From 1dfdc3b497c10a96028957dbb2989d7aa69b8b9b Mon Sep 17 00:00:00 2001 From: kuaifan Date: Fri, 30 Jun 2023 22:30:34 +0800 Subject: [PATCH] build --- CHANGELOG.md | 3 +- package.json | 2 +- .../{404.934dbba6.js => 404.4a69509c.js} | 2 +- ...itor.054eace8.js => AceEditor.fa0d76af.js} | 2 +- ....e995cbea.js => CheckinExport.a307a3ee.js} | 2 +- ....68f3aecd.js => DialogWrapper.962561b6.js} | 8 +- ...{Drawio.f9d36caf.js => Drawio.28151df2.js} | 2 +- ...nt.433fb254.js => FileContent.19861c79.js} | 2 +- ...ew.4334b185.js => FilePreview.025b3286.js} | 2 +- ...{IFrame.21d04c65.js => IFrame.057cac1d.js} | 2 +- ...load.7f60f3a4.js => ImgUpload.cbadd034.js} | 2 +- ...{Minder.e38cd318.js => Minder.52580554.js} | 2 +- ...ice.c9898129.js => OnlyOffice.55cfcbd8.js} | 2 +- ...Log.7a036454.js => ProjectLog.65503d98.js} | 2 +- ...l.6914d4af.js => ReportDetail.62478618.js} | 2 +- ...dit.9d99c827.js => ReportEdit.74592e96.js} | 2 +- ...Editor.443b30fe.js => TEditor.a8b14511.js} | 2 +- ...ail.f1c924a1.js => TaskDetail.2b58e274.js} | 2 +- ...kMenu.bdcf4604.js => TaskMenu.98a91192.js} | 2 +- ...eLog.eacff378.js => UpdateLog.a78387dc.js} | 2 +- ...ect.6a5dfe83.js => UserSelect.fe42163b.js} | 2 +- .../{app.3d81bfbf.js => app.28437e7d.js} | 14 +- ...pprove.6b185d9b.js => approve.6639cc9f.js} | 2 +- ...5f7861.js => bn.interface.min.d86da2ed.js} | 2 +- ...{bn.min.a20d8e66.js => bn.min.f47e2400.js} | 2 +- ...endar.1cc28b56.js => calendar.0167b7c7.js} | 2 +- ...heckin.da301f3f.js => checkin.3166564c.js} | 2 +- ...oard.bf35c371.js => dashboard.432a58ad.js} | 2 +- ...{delete.4bd99a36.js => delete.8ebfc31c.js} | 2 +- ...etails.ee26823b.js => details.70f91a78.js} | 2 +- ...n.90ec5b69.js => elliptic.min.2279bef2.js} | 2 +- .../{email.0685def4.js => email.75f9d899.js} | 2 +- .../{file.f8f7c6d7.js => file.9309ba9b.js} | 4 +- .../{file.7bda2cc5.js => file.b975d228.js} | 2 +- ...ileMsg.e202783e.js => fileMsg.cee86f54.js} | 2 +- ...eTask.26ddc9c9.js => fileTask.9ddf188a.js} | 2 +- .../{index.3a97bc76.js => index.4a90d45e.js} | 2 +- .../{index.e632435c.js => index.680c7fea.js} | 2 +- .../{index.e353145a.js => index.8ddea90c.js} | 2 +- .../{index.fbb6a904.js => index.cbe8908d.js} | 2 +- .../{index.8fb9f3fd.js => index.ed41beb1.js} | 2 +- ...board.7b3a2226.js => keyboard.8af1fb72.js} | 2 +- ...guage.fa5843fd.js => language.733d391d.js} | 2 +- ...icense.a7c785d4.js => license.905d25ba.js} | 2 +- .../{login.2645e9ff.js => login.44c0f794.js} | 2 +- ...{manage.f8704ace.js => manage.2b7e7263.js} | 2 +- ...nger.2c12df67.js => messenger.28878db6.js} | 2 +- ...sword.54e39187.js => password.6442867a.js} | 2 +- ...sonal.43fd91dd.js => personal.54df45dd.js} | 2 +- public/js/build/preview.245b21bf.js | 1 - public/js/build/preview.f1094d4b.js | 1 + .../{pro.2f14e151.js => pro.5eb35683.js} | 2 +- ...roject.7c800c6a.js => project.b44e8549.js} | 2 +- ....b8da8c6e.js => projectInvite.56a67275.js} | 2 +- ...l.5fbfb807.js => reportDetail.f8c5e6fd.js} | 2 +- ...dit.93b721b2.js => reportEdit.b1049887.js} | 2 +- .../{swipe.f2e8b611.js => swipe.1fc4f623.js} | 2 +- ...{system.e9d1e067.js => system.1e3ba535.js} | 2 +- .../{task.57aa2ca5.js => task.5e49e9ae.js} | 2 +- .../{theme.7883a613.js => theme.602796fd.js} | 2 +- .../{token.cf2cfab1.js => token.fd2d3201.js} | 2 +- ...ail.9625450a.js => validEmail.38e96830.js} | 2 +- .../{view.63338a5b.js => view.b49fdd4c.js} | 2 +- public/manifest.json | 270 +++++++++--------- resources/mobile | 2 +- 65 files changed, 209 insertions(+), 208 deletions(-) rename public/js/build/{404.934dbba6.js => 404.4a69509c.js} (87%) rename public/js/build/{AceEditor.054eace8.js => AceEditor.fa0d76af.js} (98%) rename public/js/build/{CheckinExport.e995cbea.js => CheckinExport.a307a3ee.js} (99%) rename public/js/build/{DialogWrapper.68f3aecd.js => DialogWrapper.962561b6.js} (98%) rename public/js/build/{Drawio.f9d36caf.js => Drawio.28151df2.js} (93%) rename public/js/build/{FileContent.433fb254.js => FileContent.19861c79.js} (92%) rename public/js/build/{FilePreview.4334b185.js => FilePreview.025b3286.js} (76%) rename public/js/build/{IFrame.21d04c65.js => IFrame.057cac1d.js} (94%) rename public/js/build/{ImgUpload.7f60f3a4.js => ImgUpload.cbadd034.js} (99%) rename public/js/build/{Minder.e38cd318.js => Minder.52580554.js} (97%) rename public/js/build/{OnlyOffice.c9898129.js => OnlyOffice.55cfcbd8.js} (96%) rename public/js/build/{ProjectLog.7a036454.js => ProjectLog.65503d98.js} (98%) rename public/js/build/{ReportDetail.6914d4af.js => ReportDetail.62478618.js} (97%) rename public/js/build/{ReportEdit.9d99c827.js => ReportEdit.74592e96.js} (94%) rename public/js/build/{TEditor.443b30fe.js => TEditor.a8b14511.js} (99%) rename public/js/build/{TaskDetail.f1c924a1.js => TaskDetail.2b58e274.js} (99%) rename public/js/build/{TaskMenu.bdcf4604.js => TaskMenu.98a91192.js} (96%) rename public/js/build/{UpdateLog.eacff378.js => UpdateLog.a78387dc.js} (95%) rename public/js/build/{UserSelect.6a5dfe83.js => UserSelect.fe42163b.js} (99%) rename public/js/build/{app.3d81bfbf.js => app.28437e7d.js} (99%) rename public/js/build/{approve.6b185d9b.js => approve.6639cc9f.js} (96%) rename public/js/build/{bn.interface.min.015f7861.js => bn.interface.min.d86da2ed.js} (96%) rename public/js/build/{bn.min.a20d8e66.js => bn.min.f47e2400.js} (99%) rename public/js/build/{calendar.1cc28b56.js => calendar.0167b7c7.js} (99%) rename public/js/build/{checkin.da301f3f.js => checkin.3166564c.js} (99%) rename public/js/build/{dashboard.bf35c371.js => dashboard.432a58ad.js} (97%) rename public/js/build/{delete.4bd99a36.js => delete.8ebfc31c.js} (99%) rename public/js/build/{details.ee26823b.js => details.70f91a78.js} (99%) rename public/js/build/{elliptic.min.90ec5b69.js => elliptic.min.2279bef2.js} (99%) rename public/js/build/{email.0685def4.js => email.75f9d899.js} (98%) rename public/js/build/{file.f8f7c6d7.js => file.9309ba9b.js} (99%) rename public/js/build/{file.7bda2cc5.js => file.b975d228.js} (88%) rename public/js/build/{fileMsg.e202783e.js => fileMsg.cee86f54.js} (71%) rename public/js/build/{fileTask.26ddc9c9.js => fileTask.9ddf188a.js} (69%) rename public/js/build/{index.3a97bc76.js => index.4a90d45e.js} (99%) rename public/js/build/{index.e632435c.js => index.680c7fea.js} (99%) rename public/js/build/{index.e353145a.js => index.8ddea90c.js} (98%) rename public/js/build/{index.fbb6a904.js => index.cbe8908d.js} (99%) rename public/js/build/{index.8fb9f3fd.js => index.ed41beb1.js} (98%) rename public/js/build/{keyboard.7b3a2226.js => keyboard.8af1fb72.js} (97%) rename public/js/build/{language.fa5843fd.js => language.733d391d.js} (95%) rename public/js/build/{license.a7c785d4.js => license.905d25ba.js} (98%) rename public/js/build/{login.2645e9ff.js => login.44c0f794.js} (99%) rename public/js/build/{manage.f8704ace.js => manage.2b7e7263.js} (99%) rename public/js/build/{messenger.2c12df67.js => messenger.28878db6.js} (98%) rename public/js/build/{password.54e39187.js => password.6442867a.js} (97%) rename public/js/build/{personal.43fd91dd.js => personal.54df45dd.js} (96%) delete mode 100644 public/js/build/preview.245b21bf.js create mode 100644 public/js/build/preview.f1094d4b.js rename public/js/build/{pro.2f14e151.js => pro.5eb35683.js} (99%) rename public/js/build/{project.7c800c6a.js => project.b44e8549.js} (99%) rename public/js/build/{projectInvite.b8da8c6e.js => projectInvite.56a67275.js} (96%) rename public/js/build/{reportDetail.5fbfb807.js => reportDetail.f8c5e6fd.js} (85%) rename public/js/build/{reportEdit.93b721b2.js => reportEdit.b1049887.js} (86%) rename public/js/build/{swipe.f2e8b611.js => swipe.1fc4f623.js} (99%) rename public/js/build/{system.e9d1e067.js => system.1e3ba535.js} (99%) rename public/js/build/{task.57aa2ca5.js => task.5e49e9ae.js} (83%) rename public/js/build/{theme.7883a613.js => theme.602796fd.js} (96%) rename public/js/build/{token.cf2cfab1.js => token.fd2d3201.js} (91%) rename public/js/build/{validEmail.9625450a.js => validEmail.38e96830.js} (95%) rename public/js/build/{view.63338a5b.js => view.b49fdd4c.js} (98%) diff --git a/CHANGELOG.md b/CHANGELOG.md index ab07b7eaa..2471abaa2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,10 +2,11 @@ All notable changes to this project will be documented in this file. -## [0.27.82] +## [0.27.85] ### Bug Fixes +- 发送消息失败再次编辑格式丢失的问题 - 修正初始化可见性人员异常问题 - 修复审批通过人员姓名显示不正确 diff --git a/package.json b/package.json index 74020b5bc..ae55cbeac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "DooTask", - "version": "0.27.82", + "version": "0.27.85", "description": "DooTask is task management system.", "scripts": { "start": "./cmd dev", diff --git a/public/js/build/404.934dbba6.js b/public/js/build/404.4a69509c.js similarity index 87% rename from public/js/build/404.934dbba6.js rename to public/js/build/404.4a69509c.js index 2386c72fd..14f2414e2 100644 --- a/public/js/build/404.934dbba6.js +++ b/public/js/build/404.4a69509c.js @@ -1 +1 @@ -import{n}from"./app.3d81bfbf.js";var r=function(){var e=this,t=e.$createElement;return e._self._c,e._m(0)},a=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"page-404"},[s("div",{staticClass:"flex-center position-ref full-height"},[s("div",{staticClass:"code"},[e._v("404")]),s("div",{staticClass:"message"},[e._v("Not Found")])])])}];const i={},_={};var o=n(i,r,a,!1,c,"7d7154a8",null,null);function c(e){for(let t in _)this[t]=_[t]}var v=function(){return o.exports}();export{v as default}; +import{n}from"./app.28437e7d.js";var r=function(){var e=this,t=e.$createElement;return e._self._c,e._m(0)},a=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"page-404"},[s("div",{staticClass:"flex-center position-ref full-height"},[s("div",{staticClass:"code"},[e._v("404")]),s("div",{staticClass:"message"},[e._v("Not Found")])])])}];const i={},_={};var o=n(i,r,a,!1,c,"7d7154a8",null,null);function c(e){for(let t in _)this[t]=_[t]}var v=function(){return o.exports}();export{v as default}; diff --git a/public/js/build/AceEditor.054eace8.js b/public/js/build/AceEditor.fa0d76af.js similarity index 98% rename from public/js/build/AceEditor.054eace8.js rename to public/js/build/AceEditor.fa0d76af.js index 3a2369cfd..27c59cb77 100644 --- a/public/js/build/AceEditor.054eace8.js +++ b/public/js/build/AceEditor.fa0d76af.js @@ -1 +1 @@ -import{m as h,n as l}from"./app.3d81bfbf.js";const d={name:"AceEditor",props:{value:{default:""},options:{type:Object,default:()=>({})},theme:{type:String,default:"auto"},ext:{type:String,default:"txt"},height:{type:Number||null,default:null},width:{type:Number||null,default:null},wrap:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1}},render(e){return e("div",{class:"no-dark-content"})},data:()=>({code:"",editor:null,cursorPosition:{row:0,column:0},supportedModes:{Apache_Conf:["^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd"],BatchFile:["bat|cmd"],C_Cpp:["cpp|c|cc|cxx|h|hh|hpp|ino"],CSharp:["cs"],CSS:["css"],Dockerfile:["^Dockerfile"],golang:["go|golang"],HTML:["html|htm|xhtml|vue|we|wpy"],Java:["java"],JavaScript:["js|jsm|jsx"],JSON:["json"],JSP:["jsp"],LESS:["less"],Lua:["lua"],Makefile:["^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make"],Markdown:["md|markdown"],MySQL:["mysql"],Nginx:["nginx|conf"],INI:["ini|conf|cfg|prefs"],ObjectiveC:["m|mm"],Perl:["pl|pm"],Perl6:["p6|pl6|pm6"],pgSQL:["pgsql"],PHP_Laravel_blade:["blade.php"],PHP:["php|inc|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp|module"],Powershell:["ps1"],Python:["py"],R:["r"],Ruby:["rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile"],Rust:["rs"],SASS:["sass"],SCSS:["scss"],SH:["sh|bash|^.bashrc"],SQL:["sql"],SQLServer:["sqlserver"],Swift:["swift"],Text:["txt"],Typescript:["ts|typescript|str"],VBScript:["vbs|vb"],Verilog:["v|vh|sv|svh"],XML:["xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl|xaml|plist"],YAML:["yaml|yml"],Compress:["tar|zip|7z|rar|gz|arj|z"],images:["icon|jpg|jpeg|webp|png|bmp|gif|tif|emf"]}}),mounted(){$A.loadScriptS(["js/ace/ace.js","js/ace/mode-json.js"]).then(e=>{this.setSize(this.$el,{height:this.height,width:this.width}),this.editor=window.ace.edit(this.$el,{wrap:this.wrap,showPrintMargin:!1,readOnly:this.readOnly,keyboardHandler:"vscode"}),this.editor.session.setMode(`ace/mode/${this.getFileMode()}`),this.$emit("mounted",this.editor),this.editor.session.$worker&&this.editor.session.$worker.addEventListener("annotate",this.workerMessage,!1),this.setValue(this.value),this.editor.setOptions(this.options),this.editTheme&&this.editor.setTheme(`ace/theme/${this.editTheme}`),this.editor.commands.addCommand({name:"\u4FDD\u5B58\u6587\u4EF6",bindKey:{win:"Ctrl-S",mac:"Command-S"},exec:()=>{this.$emit("saveData")},readOnly:!1}),this.editor.getSession().on("change",()=>{this.code=this.editor.getValue(),this.$emit("input",this.code)})})},methods:{workerMessage({data:e}){this.cursorPosition=this.editor.selection.getCursor();const[t]=e;t&&t.type==="error"?this.$emit("validationFailed",t):this.$emit("change",this.editor.getValue())},setSize(e,{width:t=this.width,height:s=this.height}){e.style.width=t&&typeof t=="number"?`${t}px`:"100%",e.style.height=s&&typeof s=="number"?`${s}px`:"100%",this.$nextTick(()=>this.editor&&this.editor.resize())},setValue(e){typeof e=="string"&&this.editor&&(this.editor.setValue(e),this.editor.clearSelection())},getFileMode(){var e=this.ext||"text";for(var t in this.supportedModes)for(var s=this.supportedModes[t],r=s[0].split("|"),a=t.toLowerCase(),i=0;i({})},theme:{type:String,default:"auto"},ext:{type:String,default:"txt"},height:{type:Number||null,default:null},width:{type:Number||null,default:null},wrap:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1}},render(e){return e("div",{class:"no-dark-content"})},data:()=>({code:"",editor:null,cursorPosition:{row:0,column:0},supportedModes:{Apache_Conf:["^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd"],BatchFile:["bat|cmd"],C_Cpp:["cpp|c|cc|cxx|h|hh|hpp|ino"],CSharp:["cs"],CSS:["css"],Dockerfile:["^Dockerfile"],golang:["go|golang"],HTML:["html|htm|xhtml|vue|we|wpy"],Java:["java"],JavaScript:["js|jsm|jsx"],JSON:["json"],JSP:["jsp"],LESS:["less"],Lua:["lua"],Makefile:["^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make"],Markdown:["md|markdown"],MySQL:["mysql"],Nginx:["nginx|conf"],INI:["ini|conf|cfg|prefs"],ObjectiveC:["m|mm"],Perl:["pl|pm"],Perl6:["p6|pl6|pm6"],pgSQL:["pgsql"],PHP_Laravel_blade:["blade.php"],PHP:["php|inc|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp|module"],Powershell:["ps1"],Python:["py"],R:["r"],Ruby:["rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile"],Rust:["rs"],SASS:["sass"],SCSS:["scss"],SH:["sh|bash|^.bashrc"],SQL:["sql"],SQLServer:["sqlserver"],Swift:["swift"],Text:["txt"],Typescript:["ts|typescript|str"],VBScript:["vbs|vb"],Verilog:["v|vh|sv|svh"],XML:["xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl|xaml|plist"],YAML:["yaml|yml"],Compress:["tar|zip|7z|rar|gz|arj|z"],images:["icon|jpg|jpeg|webp|png|bmp|gif|tif|emf"]}}),mounted(){$A.loadScriptS(["js/ace/ace.js","js/ace/mode-json.js"]).then(e=>{this.setSize(this.$el,{height:this.height,width:this.width}),this.editor=window.ace.edit(this.$el,{wrap:this.wrap,showPrintMargin:!1,readOnly:this.readOnly,keyboardHandler:"vscode"}),this.editor.session.setMode(`ace/mode/${this.getFileMode()}`),this.$emit("mounted",this.editor),this.editor.session.$worker&&this.editor.session.$worker.addEventListener("annotate",this.workerMessage,!1),this.setValue(this.value),this.editor.setOptions(this.options),this.editTheme&&this.editor.setTheme(`ace/theme/${this.editTheme}`),this.editor.commands.addCommand({name:"\u4FDD\u5B58\u6587\u4EF6",bindKey:{win:"Ctrl-S",mac:"Command-S"},exec:()=>{this.$emit("saveData")},readOnly:!1}),this.editor.getSession().on("change",()=>{this.code=this.editor.getValue(),this.$emit("input",this.code)})})},methods:{workerMessage({data:e}){this.cursorPosition=this.editor.selection.getCursor();const[t]=e;t&&t.type==="error"?this.$emit("validationFailed",t):this.$emit("change",this.editor.getValue())},setSize(e,{width:t=this.width,height:s=this.height}){e.style.width=t&&typeof t=="number"?`${t}px`:"100%",e.style.height=s&&typeof s=="number"?`${s}px`:"100%",this.$nextTick(()=>this.editor&&this.editor.resize())},setValue(e){typeof e=="string"&&this.editor&&(this.editor.setValue(e),this.editor.clearSelection())},getFileMode(){var e=this.ext||"text";for(var t in this.supportedModes)for(var s=this.supportedModes[t],r=s[0].split("|"),a=t.toLowerCase(),i=0;i0?e("Loading"):t._e()],1)]),e("div",{staticClass:"management-box",class:{"min-box":t.minBox}},[e("div",{staticClass:"management-department"},[e("ul",[e("li",{class:["level-1",t.departmentSelect===0?"active":""],on:{click:function(a){return t.onSelectDepartment(0)}}},[e("i",{staticClass:"taskfont department-icon"},[t._v("\uE766")]),e("div",{staticClass:"department-title"},[t._v(t._s(t.$L("\u9ED8\u8BA4\u90E8\u95E8")))]),e("EDropdown",{attrs:{size:"medium",trigger:"click"},on:{command:t.onOpDepartment}},[e("i",{staticClass:"taskfont department-menu",on:{click:function(a){a.stopPropagation()}}},[t._v("\uE6E9")]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:"add_0"}},[e("div",[t._v(t._s(t.$L("\u6DFB\u52A0\u5B50\u90E8\u95E8")))])])],1)],1)],1),t._l(t.departmentList,function(a){return e("li",{key:a.id,class:[`level-${a.level}`,t.departmentSelect===a.id?"active":""],on:{click:function(i){return t.onSelectDepartment(a.id)}}},[e("UserAvatar",{staticClass:"department-icon",attrs:{userid:a.owner_userid,size:20}},[e("p",[e("strong",[t._v(t._s(t.$L("\u90E8\u95E8\u8D1F\u8D23\u4EBA")))])])]),e("div",{staticClass:"department-title"},[t._v(t._s(a.name))]),e("EDropdown",{attrs:{size:"medium",trigger:"click"},on:{command:t.onOpDepartment}},[e("i",{staticClass:"taskfont department-menu",on:{click:function(i){i.stopPropagation()}}},[t._v("\uE6E9")]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a.level<=2?e("EDropdownItem",{attrs:{command:`add_${a.id}`}},[e("div",[t._v(t._s(t.$L("\u6DFB\u52A0\u5B50\u90E8\u95E8")))])]):t._e(),e("EDropdownItem",{attrs:{command:`edit_${a.id}`}},[e("div",[t._v(t._s(t.$L("\u7F16\u8F91")))])]),e("EDropdownItem",{attrs:{command:`del_${a.id}`}},[e("div",{staticStyle:{color:"#f00"}},[t._v(t._s(t.$L("\u5220\u9664")))])])],1)],1)],1)})],2),e("div",{staticClass:"department-buttons"},[e("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:function(a){return t.onShowDepartment(null)}}},[t._v(t._s(t.$L("\u65B0\u5EFA\u90E8\u95E8")))])],1)]),e("div",{staticClass:"management-user",style:t.userStyle},[e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5173\u952E\u8BCD"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{placeholder:t.$L("\u90AE\u7BB1\u3001\u6635\u79F0\u3001\u804C\u4F4D"),clearable:""},model:{value:t.keys.key,callback:function(a){t.$set(t.keys,"key",a)},expression:"keys.key"}})],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u8EAB\u4EFD"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.identity,callback:function(a){t.$set(t.keys,"identity",a)},expression:"keys.identity"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),e("Option",{attrs:{value:"admin"}},[t._v(t._s(t.$L("\u7BA1\u7406\u5458")))]),e("Option",{attrs:{value:"noadmin"}},[t._v(t._s(t.$L("\u975E\u7BA1\u7406\u5458")))]),e("Option",{attrs:{value:"temp"}},[t._v(t._s(t.$L("\u4E34\u65F6\u5E10\u53F7")))]),e("Option",{attrs:{value:"notemp"}},[t._v(t._s(t.$L("\u975E\u4E34\u65F6\u5E10\u53F7")))])],1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5728\u804C\u72B6\u6001"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5728\u804C")},model:{value:t.keys.disable,callback:function(a){t.$set(t.keys,"disable",a)},expression:"keys.disable"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5728\u804C")))]),e("Option",{attrs:{value:"yes"}},[t._v(t._s(t.$L("\u79BB\u804C")))]),e("Option",{attrs:{value:"all"}},[t._v(t._s(t.$L("\u5168\u90E8")))])],1)],1)]),t.checkinMac?e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("MAC\u5730\u5740"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{placeholder:t.$L("MAC\u5730\u5740"),clearable:""},model:{value:t.keys.checkin_mac,callback:function(a){t.$set(t.keys,"checkin_mac",a)},expression:"keys.checkin_mac"}})],1)]):e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u90AE\u7BB1\u8BA4\u8BC1"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.email_verity,callback:function(a){t.$set(t.keys,"email_verity",a)},expression:"keys.email_verity"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),e("Option",{attrs:{value:"yes"}},[t._v(t._s(t.$L("\u5DF2\u90AE\u7BB1\u8BA4\u8BC1")))]),e("Option",{attrs:{value:"no"}},[t._v(t._s(t.$L("\u672A\u90AE\u7BB1\u8BA4\u8BC1")))])],1)],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"bottom","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(a){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.windowPortrait,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])]),e("Modal",{attrs:{title:t.$L(t.departmentData.id>0?"\u4FEE\u6539\u90E8\u95E8":"\u65B0\u5EFA\u90E8\u95E8"),"mask-closable":!1},model:{value:t.departmentShow,callback:function(a){t.departmentShow=a},expression:"departmentShow"}},[e("Form",{ref:"addProject",attrs:{model:t.departmentData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{prop:"name",label:t.$L("\u90E8\u95E8\u540D\u79F0")}},[e("Input",{attrs:{type:"text",placeholder:t.$L("\u8BF7\u8F93\u5165\u90E8\u95E8\u540D\u79F0")},model:{value:t.departmentData.name,callback:function(a){t.$set(t.departmentData,"name",a)},expression:"departmentData.name"}})],1),e("FormItem",{attrs:{prop:"parent_id",label:t.$L("\u4E0A\u7EA7\u90E8\u95E8")}},[e("Select",{attrs:{disabled:t.departmentParentDisabled,placeholder:t.$L("\u8BF7\u9009\u62E9\u4E0A\u7EA7\u90E8\u95E8")},model:{value:t.departmentData.parent_id,callback:function(a){t.$set(t.departmentData,"parent_id",a)},expression:"departmentData.parent_id"}},[e("Option",{attrs:{value:0}},[t._v(t._s(t.$L("\u9ED8\u8BA4\u90E8\u95E8")))]),t._l(t.departmentList,function(a,i){return a.parent_id==0&&a.id!=t.departmentData.id?e("Option",{key:i,attrs:{value:a.id,label:a.name}},[t._v("\xA0\xA0\xA0\xA0"+t._s(a.name))]):t._e()})],2),t.departmentParentDisabled?e("div",{staticClass:"form-tip",staticStyle:{"margin-bottom":"-16px"}},[t._v(t._s(t.$L("\u542B\u6709\u5B50\u90E8\u95E8\u65E0\u6CD5\u4FEE\u6539\u4E0A\u7EA7\u90E8\u95E8")))]):t._e()],1),e("FormItem",{attrs:{prop:"owner_userid",label:t.$L("\u90E8\u95E8\u8D1F\u8D23\u4EBA")}},[e("UserSelect",{attrs:{"multiple-max":1,title:t.$L("\u8BF7\u9009\u62E9\u90E8\u95E8\u8D1F\u8D23\u4EBA")},model:{value:t.departmentData.owner_userid,callback:function(a){t.$set(t.departmentData,"owner_userid",a)},expression:"departmentData.owner_userid"}})],1),t.departmentData.id==0?[e("Divider",{attrs:{orientation:"left"}},[t._v(t._s(t.$L("\u7FA4\u7EC4\u8BBE\u7F6E")))]),e("FormItem",{attrs:{prop:"dialog_group",label:t.$L("\u90E8\u95E8\u7FA4\u804A")}},[e("RadioGroup",{model:{value:t.departmentData.dialog_group,callback:function(a){t.$set(t.departmentData,"dialog_group",a)},expression:"departmentData.dialog_group"}},[e("Radio",{attrs:{label:"new"}},[t._v(t._s(t.$L("\u521B\u5EFA\u90E8\u95E8\u7FA4")))]),e("Radio",{attrs:{label:"use"}},[t._v(t._s(t.$L("\u4F7F\u7528\u73B0\u6709\u7FA4")))])],1)],1),t.departmentData.dialog_group==="use"?e("FormItem",{attrs:{prop:"dialog_useid",label:t.$L("\u9009\u62E9\u7FA4\u7EC4")}},[e("Select",{attrs:{filterable:"","remote-method":t.dialogRemote,placeholder:t.$L("\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22\u7FA4"),loading:t.dialogLoad},model:{value:t.departmentData.dialog_useid,callback:function(a){t.$set(t.departmentData,"dialog_useid",a)},expression:"departmentData.dialog_useid"}},t._l(t.dialogList,function(a,i){return e("Option",{key:i,attrs:{value:a.id,label:a.name}},[e("div",{staticClass:"team-department-add-dialog-group"},[e("div",{staticClass:"dialog-name"},[t._v(t._s(a.name))]),e("UserAvatar",{attrs:{userid:a.owner_id,size:20}})],1)])}),1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EC5\u652F\u6301\u9009\u62E9\u4E2A\u4EBA\u7FA4\u8F6C\u4E3A\u90E8\u95E8\u7FA4")))])],1):t._e()]:t._e()],2),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.departmentShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.departmentLoading>0},on:{click:t.onSaveDepartment}},[t._v(t._s(t.$L(t.departmentData.id>0?"\u4FDD\u5B58":"\u65B0\u5EFA")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u4FEE\u6539\u7B7E\u5230MAC\u5730\u5740")},model:{value:t.checkinMacEditShow,callback:function(a){t.checkinMacEditShow=a},expression:"checkinMacEditShow"}},[e("Form",{attrs:{model:t.checkinMacEditData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u8FDB\u884C\u5E10\u53F7\u3010ID:${t.checkinMacEditData.userid}\uFF0C${t.checkinMacEditData.nickname}\u3011MAC\u5730\u5740\u4FEE\u6539\u3002`)))]),e("Row",{staticClass:"team-department-checkin-item"},[e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u8BBE\u5907MAC\u5730\u5740")))]),e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u5907\u6CE8")))])],1),t._l(t.checkinMacEditData.checkin_macs,function(a,i){return e("Row",{key:i,staticClass:"team-department-checkin-item"},[e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u8BBE\u5907MAC\u5730\u5740"),clearable:""},on:{"on-clear":function(n){return t.delCheckinDatum(i)}},model:{value:a.mac,callback:function(n){t.$set(a,"mac",n)},expression:"item.mac"}})],1),e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:100,placeholder:t.$L("\u5907\u6CE8")},model:{value:a.remark,callback:function(n){t.$set(a,"remark",n)},expression:"item.remark"}})],1)],1)}),e("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addCheckinDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u8BBE\u5907")))])],2),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.checkinMacEditShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.checkinMacEditLoading>0},on:{click:function(a){return t.operationUser(t.checkinMacEditData,!0)}}},[t._v(t._s(t.$L("\u786E\u5B9A\u4FEE\u6539")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u4FEE\u6539\u90E8\u95E8")},model:{value:t.departmentEditShow,callback:function(a){t.departmentEditShow=a},expression:"departmentEditShow"}},[e("Form",{attrs:{model:t.departmentEditData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u8FDB\u884C\u5E10\u53F7\u3010ID:${t.departmentEditData.userid}\uFF0C${t.departmentEditData.nickname}\u3011\u90E8\u95E8\u4FEE\u6539\u3002`)))]),e("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u90E8\u95E8")}},[e("Select",{attrs:{multiple:"","multiple-max":10,placeholder:t.$L("\u7559\u7A7A\u4E3A\u9ED8\u8BA4\u90E8\u95E8")},model:{value:t.departmentEditData.department,callback:function(a){t.$set(t.departmentEditData,"department",a)},expression:"departmentEditData.department"}},t._l(t.departmentList,function(a,i){return e("Option",{key:i,attrs:{value:a.id}},[t._v(t._s(a.name))])}),1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.departmentEditShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.departmentEditLoading>0},on:{click:function(a){return t.operationUser(t.departmentEditData,!0)}}},[t._v(t._s(t.$L("\u786E\u5B9A\u4FEE\u6539")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u64CD\u4F5C\u79BB\u804C")},model:{value:t.disableShow,callback:function(a){t.disableShow=a},expression:"disableShow"}},[e("Form",{attrs:{model:t.disableData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u8FDB\u884C\u5E10\u53F7\u3010ID:${t.disableData.userid}\uFF0C${t.disableData.nickname}\u3011\u79BB\u804C\u64CD\u4F5C\u3002`)))]),e("FormItem",{attrs:{label:t.$L("\u79BB\u804C\u65F6\u95F4")}},[e("DatePicker",{ref:"disableTime",staticStyle:{width:"100%"},attrs:{editable:!1,placeholder:t.$L("\u9009\u62E9\u79BB\u804C\u65F6\u95F4"),options:t.disableOptions,format:"yyyy/MM/dd HH:mm",type:"datetime"},model:{value:t.disableData.disable_time,callback:function(a){t.$set(t.disableData,"disable_time",a)},expression:"disableData.disable_time"}})],1),e("FormItem",{attrs:{label:t.$L("\u4EA4\u63A5\u4EBA")}},[e("UserSelect",{attrs:{"disabled-choice":[t.disableData.userid],"multiple-max":1,title:t.$L("\u9009\u62E9\u4EA4\u63A5\u4EBA")},model:{value:t.disableData.transfer_userid,callback:function(a){t.$set(t.disableData,"transfer_userid",a)},expression:"disableData.transfer_userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`${t.disableData.nickname} \u8D1F\u8D23\u7684\u90E8\u95E8\u3001\u9879\u76EE\u3001\u4EFB\u52A1\u548C\u6587\u4EF6\u5C06\u79FB\u4EA4\u7ED9\u4EA4\u63A5\u4EBA\uFF1B\u540C\u65F6\u9000\u51FA\u6240\u6709\u7FA4\uFF08\u5982\u679C\u662F\u7FA4\u4E3B\u5219\u8F6C\u8BA9\u7ED9\u4EA4\u63A5\u4EBA\uFF09`)))])],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.disableShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Poptip",{staticStyle:{"margin-left":"8px"},attrs:{confirm:"",placement:"bottom","ok-text":t.$L("\u786E\u5B9A"),"cancel-text":t.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(a){return t.operationUser(t.disableData,!0)}}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("p",[t._v(t._s(t.$L("\u6CE8\u610F\uFF1A\u79BB\u804C\u64CD\u4F5C\u4E0D\u53EF\u9006\uFF01")))])]),e("Button",{attrs:{type:"primary",loading:t.disableLoading>0}},[t._v(t._s(t.$L("\u786E\u5B9A\u79BB\u804C")))])],1)],1)],1)],1)},m=[];const u={name:"TeamManagement",components:{UserSelect:l},props:{checkinMac:{type:Boolean,default:!1}},data(){return{loadIng:0,minBox:!1,minWidth:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"userid",width:80,render:(t,{row:s,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",s.userid)])},{title:this.$L("\u90AE\u7BB1"),key:"email",minWidth:160,render:(t,{row:s})=>{const e=[t("AutoTip",s.email)],{email_verity:a,identity:i,disable_at:n,is_principal:c}=s;return a&&e.push(t("Icon",{props:{type:"md-mail"}})),c&&e.push(t("Tag",{props:{color:"blue"}},this.$L("\u8D1F\u8D23\u4EBA"))),i.includes("ldap")&&e.push(t("Tag",{props:{color:"orange"}},this.$L("LDAP"))),i.includes("admin")&&e.push(t("Tag",{props:{color:"warning"}},this.$L("\u7BA1\u7406\u5458"))),i.includes("temp")&&e.push(t("Tag",{props:{color:"success"}},this.$L("\u4E34\u65F6"))),i.includes("disable")&&e.push(t("Tooltip",{props:{content:this.$L("\u79BB\u804C\u65F6\u95F4")+": "+n}},[t("Tag",{props:{color:"error"}},this.$L("\u79BB\u804C"))])),t("div",{class:"team-email"},e)}},{title:this.$L("\u7535\u8BDD"),key:"tel",minWidth:80,render:(t,{row:s})=>t("QuickEdit",{props:{value:s.tel},on:{"on-update":(e,a)=>{this.operationUser({userid:s.userid,tel:e},!0).finally(a)}}},[t("AutoTip",s.tel||"-")])},{title:this.$L("\u6635\u79F0"),key:"nickname",minWidth:80,render:(t,{row:s})=>t("QuickEdit",{props:{value:s.nickname_original},on:{"on-update":(e,a)=>{this.operationUser({userid:s.userid,nickname:e},!0).finally(a)}}},[t("AutoTip",s.nickname_original||"-")])},{title:this.$L("\u804C\u4F4D/\u804C\u79F0"),key:"profession",minWidth:80,render:(t,{row:s})=>t("QuickEdit",{props:{value:s.profession},on:{"on-update":(e,a)=>{this.operationUser({userid:s.userid,profession:e},!0).finally(a)}}},[t("AutoTip",s.profession||"-")])},{title:this.$L("\u90E8\u95E8"),key:"department",minWidth:80,render:(t,{row:s})=>{let e=[];if(s.department.some(a=>{const i=this.departmentList.find(n=>n.id==a);i&&e.push(i.name)}),e.length===0)return t("div",this.$L("\u9ED8\u8BA4\u90E8\u95E8"));{const a=[];return a.push(t("span",{domProps:{title:e[0]}},e[0])),e.length>1&&(e=e.splice(1),a.push(t("ETooltip",[t("div",{slot:"content",domProps:{innerHTML:e.join("
")}}),t("div",{class:"department-tag-num"},` +${e.length}`)]))),t("div",{class:"team-table-department-warp"},a)}}},{title:this.$L("\u6700\u540E\u5728\u7EBF"),key:"line_at",width:168},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,s)=>{const e=s.row.identity,a=[];e.includes("admin")?a.push(t("EDropdownItem",{props:{command:"clearadmin"}},[t("div",this.$L("\u53D6\u6D88\u7BA1\u7406\u5458"))])):a.push(t("EDropdownItem",{props:{command:"setadmin"}},[t("div",this.$L("\u8BBE\u4E3A\u7BA1\u7406\u5458"))])),e.includes("temp")?a.push(t("EDropdownItem",{props:{command:"cleartemp"}},[t("div",this.$L("\u53D6\u6D88\u4E34\u65F6\u8EAB\u4EFD"))])):a.push(t("EDropdownItem",{props:{command:"settemp"}},[t("div",this.$L("\u8BBE\u4E3A\u4E34\u65F6\u5E10\u53F7"))])),a.push(t("EDropdownItem",{props:{command:"email"}},[t("div",this.$L("\u4FEE\u6539\u90AE\u7BB1"))])),a.push(t("EDropdownItem",{props:{command:"password"}},[t("div",this.$L("\u4FEE\u6539\u5BC6\u7801"))])),this.checkinMac&&a.push(t("EDropdownItem",{props:{command:"checkin_mac"}},[t("div",this.$L("\u4FEE\u6539MAC"))])),a.push(t("EDropdownItem",{props:{command:"department"}},[t("div",this.$L("\u4FEE\u6539\u90E8\u95E8"))])),e.includes("disable")?a.push(t("EDropdownItem",{props:{command:"cleardisable"},style:{color:"#f90"}},[t("div",this.$L("\u6062\u590D\u5E10\u53F7\uFF08\u5DF2\u79BB\u804C\uFF09"))])):a.push(t("EDropdownItem",{props:{command:"setdisable"},style:{color:"#f90"}},[t("div",this.$L("\u64CD\u4F5C\u79BB\u804C"))])),a.push(t("EDropdownItem",{props:{command:"delete"},style:{color:"red"}},[t("div",this.$L("\u5220\u9664"))]));const i=t("EDropdown",{props:{size:"small",trigger:"click"},on:{command:n=>{this.dropUser(n,s.row)}}},[t("Button",{props:{type:"primary",size:"small"},style:{fontSize:"12px"}},this.$L("\u64CD\u4F5C")),t("EDropdownMenu",{slot:"dropdown"},[a])]);return t("TableAction",{props:{column:s.column}},[i])}}],list:[],page:1,pageSize:20,total:0,noText:"",checkinMacEditShow:!1,checkinMacEditLoading:0,checkinMacEditData:{},departmentEditShow:!1,departmentEditLoading:0,departmentEditData:{},disableShow:!1,disableLoading:0,disableData:{},disableOptions:{shortcuts:[{text:this.$L("12:00"),value(){return $A.Date($A.formatDate("Y-m-d 12:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("17:00"),value(){return $A.Date($A.formatDate("Y-m-d 17:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("18:00"),value(){return $A.Date($A.formatDate("Y-m-d 18:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("19:00"),value(){return $A.Date($A.formatDate("Y-m-d 19:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("\u73B0\u5728"),value(){return new Date},onClick:t=>{t.handlePickSuccess()}}]},departmentShow:!1,departmentLoading:0,departmentSelect:-1,departmentData:{id:0,name:"",parent_id:0,owner_userid:[],dialog_group:"new",dialog_useid:0},departmentList:[],dialogLoad:!1,dialogList:[],nullCheckinDatum:{mac:"",remark:""}}},created(){this.checkinMac&&this.columns.splice(5,0,{title:this.$L("MAC\u5730\u5740"),key:"checkin_mac",minWidth:80,render:(t,{row:s})=>{let e=$A.cloneJSON(s.checkin_macs||[]);if(e.length===0)return t("div","-");{const a=n=>n.remark?`${n.mac} (${n.remark})`:n.mac,i=[];return i.push(t("AutoTip",a(e[0]))),e.length>1&&(e=e.splice(1),i.push(t("ETooltip",[t("div",{slot:"content",domProps:{innerHTML:e.map(n=>a(n)).join("
")}}),t("div",{class:"department-tag-num"},` +${e.length}`)]))),t("div",{class:"team-table-department-warp"},i)}}})},mounted(){this.getLists(),this.getDepartmentLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))},departmentSelect(){this.setPage(1)},windowPortrait:{handler(t){this.minBox=t},immediate:!0},minBox:{handler(){this.$nextTick(t=>{this.$el&&this.$el.clientWidth>0&&(this.minWidth=this.$el.clientWidth)})},immediate:!0}},computed:{departmentParentDisabled(){return!!(this.departmentData.id>0&&this.departmentList.find(({parent_id:t})=>t==this.departmentData.id))},userStyle({minWidth:t,windowPortrait:s}){const e={};return t>0&&s&&(e.minWidth=t-40+"px"),e}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="";let t=$A.cloneJSON(this.keys);this.departmentSelect>-1&&(t=Object.assign(t,{department:this.departmentSelect})),this.$store.dispatch("call",{url:"users/lists",data:{keys:t,get_checkin_mac:this.checkinMac?1:0,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:s})=>{this.page=s.current_page,this.total=s.total,this.list=s.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6210\u5458"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(s=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},dropUser(t,s){switch(t){case"settemp":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u5C06\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011\u8BBE\u4E3A\u4E34\u65F6\u5E10\u53F7\u5417\uFF1F\uFF08\u6CE8\uFF1A\u4E34\u65F6\u5E10\u53F7\u9650\u5236\u8BF7\u67E5\u770B\u7CFB\u7EDF\u8BBE\u7F6E\uFF09`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"cleartemp":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u53D6\u6D88\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011\u4E34\u65F6\u8EAB\u4EFD\u5417\uFF1F`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"email":$A.modalInput({title:"\u4FEE\u6539\u90AE\u7BB1",placeholder:`\u8BF7\u8F93\u5165\u65B0\u7684\u90AE\u7BB1\uFF08${s.email}\uFF09`,onOk:a=>a?this.operationUser({userid:s.userid,email:a}):"\u8BF7\u8F93\u5165\u65B0\u7684\u90AE\u7BB1\u5730\u5740"});break;case"password":$A.modalInput({title:"\u4FEE\u6539\u5BC6\u7801",placeholder:"\u8BF7\u8F93\u5165\u65B0\u7684\u5BC6\u7801",onOk:a=>a?this.operationUser({userid:s.userid,password:a}):"\u8BF7\u8F93\u5165\u65B0\u7684\u5BC6\u7801"});break;case"checkin_mac":this.checkinMacEditData={type:"checkin_macs",userid:s.userid,nickname:s.nickname,checkin_macs:s.checkin_macs},this.checkinMacEditData.checkin_macs.length===0&&this.addCheckinDatum(),this.checkinMacEditShow=!0;break;case"department":let e=[];s.department.some(a=>{const i=this.departmentList.find(n=>n.id==a);i&&e.push(i.owner_userid===s.userid?`${i.name} (${this.$L("\u8D1F\u8D23\u4EBA")})`:i.name)}),this.departmentEditData={type:"department",userid:s.userid,nickname:s.nickname,department:s.department.map(a=>parseInt(a))},this.departmentEditShow=!0;break;case"setdisable":this.disableData={type:"setdisable",userid:s.userid,nickname:s.nickname},this.disableShow=!0;break;case"cleardisable":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u6062\u590D\u5DF2\u79BB\u804C\u5E10\u53F7\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011\u5417\uFF1F\uFF08\u6CE8\uFF1A\u6B64\u64CD\u4F5C\u4EC5\u6062\u590D\u5E10\u53F7\u72B6\u6001\uFF0C\u65E0\u6CD5\u6062\u590D\u64CD\u4F5C\u79BB\u804C\u65F6\u79FB\u4EA4\u7684\u6570\u636E\uFF09`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"delete":$A.modalInput({title:`\u5220\u9664\u5E10\u53F7\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011`,placeholder:"\u8BF7\u8F93\u5165\u5220\u9664\u539F\u56E0",okText:"\u786E\u5B9A\u5220\u9664",onOk:a=>a?this.operationUser({userid:s.userid,type:t,delete_reason:a}):"\u5220\u9664\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"});break;default:this.operationUser({userid:s.userid,type:t},!0);break}},operationUser(t,s){return new Promise((e,a)=>{t.type=="checkin_macs"?this.checkinMacEditLoading++:t.type=="department"?this.departmentEditLoading++:t.type=="setdisable"?this.disableLoading++:this.loadIng++,this.$store.dispatch("call",{url:"users/operation",data:t}).then(({msg:i})=>{$A.messageSuccess(i),this.getLists(),e(),t.type=="checkin_macs"?this.checkinMacEditShow=!1:t.type=="department"?this.departmentEditShow=!1:t.type=="setdisable"&&(this.disableShow=!1)}).catch(({msg:i})=>{s===!0&&$A.modalError(i),this.getLists(),a(i)}).finally(i=>{t.type=="checkin_macs"?this.checkinMacEditLoading--:t.type=="department"?this.departmentEditLoading--:t.type=="setdisable"?this.disableLoading--:this.loadIng--})})},getDepartmentLists(){this.departmentLoading++,this.$store.dispatch("call",{url:"users/department/list"}).then(({data:t})=>{this.departmentList=[],this.generateDepartmentList(t,0,1)}).finally(t=>{this.departmentLoading--})},generateDepartmentList(t,s,e){t.some(a=>{a.parent_id==s&&(this.departmentList.push(Object.assign(a,{level:e+1})),this.generateDepartmentList(t,a.id,e+1))})},onShowDepartment(t){this.departmentData=Object.assign({id:0,name:"",parent_id:0,owner_userid:[],dialog_group:"new"},t||{}),this.departmentShow=!0},onSaveDepartment(){this.departmentLoading++,this.$store.dispatch("call",{url:"users/department/add",data:Object.assign(this.departmentData,{owner_userid:this.departmentData.owner_userid[0]})}).then(({msg:t})=>{$A.messageSuccess(t),this.getDepartmentLists(),this.getLists(),this.departmentShow=!1}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.departmentLoading--})},onSelectDepartment(t){if(this.windowPortrait&&(this.minBox=!0),this.departmentSelect===t){this.departmentSelect=-1;return}this.departmentSelect=t},onOpDepartment(t){if($A.leftExists(t,"add_"))this.onShowDepartment({parent_id:parseInt(t.substr(4))});else if($A.leftExists(t,"edit_")){const s=this.departmentList.find(({id:e})=>e===parseInt(t.substr(5)));s&&this.onShowDepartment(s)}else if($A.leftExists(t,"del_")){const s=this.departmentList.find(({id:e})=>e===parseInt(t.substr(4)));s&&$A.modalConfirm({title:this.$L("\u5220\u9664\u90E8\u95E8"),content:`
${this.$L(`\u4F60\u786E\u5B9A\u8981\u5220\u9664\u3010${s.name}\u3011\u90E8\u95E8\u5417\uFF1F`)}
${this.$L("\u6CE8\u610F\uFF1A\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\uFF0C\u90E8\u95E8\u4E0B\u7684\u6210\u5458\u5C06\u79FB\u81F3\u9ED8\u8BA4\u90E8\u95E8\u3002")}
`,language:!1,loading:!0,onOk:()=>new Promise((e,a)=>{this.$store.dispatch("call",{url:"users/department/del",data:{id:s.id}}).then(({msg:i})=>{s.id===this.departmentSelect&&(this.departmentSelect=-1),e(i),this.getDepartmentLists()}).catch(({msg:i})=>{a(i)})})})}},dialogRemote(t){t!==""?(this.dialogLoad=!0,this.$store.dispatch("call",{url:"dialog/group/searchuser",data:{key:t}}).then(({data:s})=>{this.dialogList=s.list}).finally(s=>{this.dialogLoad=!1})):this.dialogList=[]},addCheckinDatum(){this.checkinMacEditData.checkin_macs.push($A.cloneJSON(this.nullCheckinDatum))},delCheckinDatum(t){this.checkinMacEditData.checkin_macs.splice(t,1),this.checkinMacEditData.checkin_macs.length===0&&this.addCheckinDatum()}}},r={};var h=d(u,p,m,!1,_,null,null,null);function _(t){for(let s in r)this[s]=r[s]}var b=function(){return h.exports}(),f=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("Modal",{attrs:{title:t.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E"),"mask-closable":!1},model:{value:t.show,callback:function(a){t.show=a},expression:"show"}},[e("Form",{ref:"export",attrs:{model:t.formData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5BFC\u51FA\u6210\u5458")}},[e("UserSelect",{attrs:{"multiple-max":100,"avatar-name":"","show-disable":"",title:t.$L("\u8BF7\u9009\u62E9\u6210\u5458")},model:{value:t.formData.userid,callback:function(a){t.$set(t.formData,"userid",a)},expression:"formData.userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6BCF\u6B21\u6700\u591A\u9009\u62E9\u5BFC\u51FA100\u4E2A\u6210\u5458")))])],1),e("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u65E5\u671F")}},[e("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange",format:"yyyy/MM/dd",placeholder:t.$L("\u8BF7\u9009\u62E9\u7B7E\u5230\u65E5\u671F")},model:{value:t.formData.date,callback:function(a){t.$set(t.formData,"date",a)},expression:"formData.date"}}),e("div",{staticClass:"form-tip checkin-export-quick-select"},[e("span",[t._v(t._s(t.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),e("em",{on:{click:function(a){t.formData.date=t.dateShortcuts("prev")}}},[t._v(t._s(t.$L("\u4E0A\u4E2A\u6708")))]),e("em",{on:{click:function(a){t.formData.date=t.dateShortcuts("this")}}},[t._v(t._s(t.$L("\u8FD9\u4E2A\u6708")))])])],1),e("FormItem",{attrs:{label:t.$L("\u73ED\u6B21\u65F6\u95F4")}},[e("TimePicker",{staticStyle:{width:"100%"},attrs:{type:"timerange",format:"HH:mm",placeholder:t.$L("\u8BF7\u9009\u62E9\u73ED\u6B21\u65F6\u95F4")},model:{value:t.formData.time,callback:function(a){t.$set(t.formData,"time",a)},expression:"formData.time"}}),e("div",{staticClass:"form-tip checkin-export-quick-select"},[e("span",[t._v(t._s(t.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),e("em",{on:{click:function(a){t.formData.time=["8:30","18:00"]}}},[t._v("8:30-18:00")]),e("em",{on:{click:function(a){t.formData.time=["9:00","18:00"]}}},[t._v("9:00-18:00")]),e("em",{on:{click:function(a){t.formData.time=["9:30","18:00"]}}},[t._v("9:30-18:30")])])],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.show=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onExport}},[t._v(t._s(t.$L("\u5BFC\u51FA")))])],1)],1)},$=[];const v={name:"CheckinExport",components:{UserSelect:l},props:{value:{type:Boolean,default:!1}},data(){return{show:this.value,loadIng:0,formData:{userid:[],date:[],time:[]}}},watch:{value(t){this.show=t},show(t){this.value!==t&&this.$emit("input",t)}},methods:{dateShortcuts(t){if(t==="prev")return[$A.getSpecifyDate("\u4E0A\u4E2A\u6708"),$A.getSpecifyDate("\u4E0A\u4E2A\u6708\u7ED3\u675F")];if(t==="this")return[$A.getSpecifyDate("\u672C\u6708"),$A.getSpecifyDate("\u672C\u6708\u7ED3\u675F")]},onExport(){this.loadIng>0||(this.loadIng++,this.$store.dispatch("call",{url:"system/checkin/export",data:this.formData}).then(({data:t})=>{this.show=!1,this.$store.dispatch("downUrl",{url:t.url})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))}}},o={};var k=d(v,f,$,!1,g,null,null,null);function g(t){for(let s in o)this[s]=o[s]}var y=function(){return k.exports}();export{y as C,b as T}; +import{U as l}from"./UserSelect.fe42163b.js";import{n as d}from"./app.28437e7d.js";var p=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"team-management"},[e("div",{staticClass:"management-title"},[t._v(" "+t._s(t.$L("\u56E2\u961F\u7BA1\u7406"))+" "),e("div",{staticClass:"title-zoom",on:{click:function(a){t.minBox=!t.minBox}}},[t.minBox?e("i",{staticClass:"taskfont"},[t._v("\uE7D4")]):e("i",{staticClass:"taskfont"},[t._v("\uE7D3")])]),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"management-box",class:{"min-box":t.minBox}},[e("div",{staticClass:"management-department"},[e("ul",[e("li",{class:["level-1",t.departmentSelect===0?"active":""],on:{click:function(a){return t.onSelectDepartment(0)}}},[e("i",{staticClass:"taskfont department-icon"},[t._v("\uE766")]),e("div",{staticClass:"department-title"},[t._v(t._s(t.$L("\u9ED8\u8BA4\u90E8\u95E8")))]),e("EDropdown",{attrs:{size:"medium",trigger:"click"},on:{command:t.onOpDepartment}},[e("i",{staticClass:"taskfont department-menu",on:{click:function(a){a.stopPropagation()}}},[t._v("\uE6E9")]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:"add_0"}},[e("div",[t._v(t._s(t.$L("\u6DFB\u52A0\u5B50\u90E8\u95E8")))])])],1)],1)],1),t._l(t.departmentList,function(a){return e("li",{key:a.id,class:[`level-${a.level}`,t.departmentSelect===a.id?"active":""],on:{click:function(i){return t.onSelectDepartment(a.id)}}},[e("UserAvatar",{staticClass:"department-icon",attrs:{userid:a.owner_userid,size:20}},[e("p",[e("strong",[t._v(t._s(t.$L("\u90E8\u95E8\u8D1F\u8D23\u4EBA")))])])]),e("div",{staticClass:"department-title"},[t._v(t._s(a.name))]),e("EDropdown",{attrs:{size:"medium",trigger:"click"},on:{command:t.onOpDepartment}},[e("i",{staticClass:"taskfont department-menu",on:{click:function(i){i.stopPropagation()}}},[t._v("\uE6E9")]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a.level<=2?e("EDropdownItem",{attrs:{command:`add_${a.id}`}},[e("div",[t._v(t._s(t.$L("\u6DFB\u52A0\u5B50\u90E8\u95E8")))])]):t._e(),e("EDropdownItem",{attrs:{command:`edit_${a.id}`}},[e("div",[t._v(t._s(t.$L("\u7F16\u8F91")))])]),e("EDropdownItem",{attrs:{command:`del_${a.id}`}},[e("div",{staticStyle:{color:"#f00"}},[t._v(t._s(t.$L("\u5220\u9664")))])])],1)],1)],1)})],2),e("div",{staticClass:"department-buttons"},[e("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:function(a){return t.onShowDepartment(null)}}},[t._v(t._s(t.$L("\u65B0\u5EFA\u90E8\u95E8")))])],1)]),e("div",{staticClass:"management-user",style:t.userStyle},[e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5173\u952E\u8BCD"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{placeholder:t.$L("\u90AE\u7BB1\u3001\u6635\u79F0\u3001\u804C\u4F4D"),clearable:""},model:{value:t.keys.key,callback:function(a){t.$set(t.keys,"key",a)},expression:"keys.key"}})],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u8EAB\u4EFD"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.identity,callback:function(a){t.$set(t.keys,"identity",a)},expression:"keys.identity"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),e("Option",{attrs:{value:"admin"}},[t._v(t._s(t.$L("\u7BA1\u7406\u5458")))]),e("Option",{attrs:{value:"noadmin"}},[t._v(t._s(t.$L("\u975E\u7BA1\u7406\u5458")))]),e("Option",{attrs:{value:"temp"}},[t._v(t._s(t.$L("\u4E34\u65F6\u5E10\u53F7")))]),e("Option",{attrs:{value:"notemp"}},[t._v(t._s(t.$L("\u975E\u4E34\u65F6\u5E10\u53F7")))])],1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5728\u804C\u72B6\u6001"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5728\u804C")},model:{value:t.keys.disable,callback:function(a){t.$set(t.keys,"disable",a)},expression:"keys.disable"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5728\u804C")))]),e("Option",{attrs:{value:"yes"}},[t._v(t._s(t.$L("\u79BB\u804C")))]),e("Option",{attrs:{value:"all"}},[t._v(t._s(t.$L("\u5168\u90E8")))])],1)],1)]),t.checkinMac?e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("MAC\u5730\u5740"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{placeholder:t.$L("MAC\u5730\u5740"),clearable:""},model:{value:t.keys.checkin_mac,callback:function(a){t.$set(t.keys,"checkin_mac",a)},expression:"keys.checkin_mac"}})],1)]):e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u90AE\u7BB1\u8BA4\u8BC1"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.email_verity,callback:function(a){t.$set(t.keys,"email_verity",a)},expression:"keys.email_verity"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u5168\u90E8")))]),e("Option",{attrs:{value:"yes"}},[t._v(t._s(t.$L("\u5DF2\u90AE\u7BB1\u8BA4\u8BC1")))]),e("Option",{attrs:{value:"no"}},[t._v(t._s(t.$L("\u672A\u90AE\u7BB1\u8BA4\u8BC1")))])],1)],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"bottom","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(a){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.windowPortrait,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])]),e("Modal",{attrs:{title:t.$L(t.departmentData.id>0?"\u4FEE\u6539\u90E8\u95E8":"\u65B0\u5EFA\u90E8\u95E8"),"mask-closable":!1},model:{value:t.departmentShow,callback:function(a){t.departmentShow=a},expression:"departmentShow"}},[e("Form",{ref:"addProject",attrs:{model:t.departmentData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{prop:"name",label:t.$L("\u90E8\u95E8\u540D\u79F0")}},[e("Input",{attrs:{type:"text",placeholder:t.$L("\u8BF7\u8F93\u5165\u90E8\u95E8\u540D\u79F0")},model:{value:t.departmentData.name,callback:function(a){t.$set(t.departmentData,"name",a)},expression:"departmentData.name"}})],1),e("FormItem",{attrs:{prop:"parent_id",label:t.$L("\u4E0A\u7EA7\u90E8\u95E8")}},[e("Select",{attrs:{disabled:t.departmentParentDisabled,placeholder:t.$L("\u8BF7\u9009\u62E9\u4E0A\u7EA7\u90E8\u95E8")},model:{value:t.departmentData.parent_id,callback:function(a){t.$set(t.departmentData,"parent_id",a)},expression:"departmentData.parent_id"}},[e("Option",{attrs:{value:0}},[t._v(t._s(t.$L("\u9ED8\u8BA4\u90E8\u95E8")))]),t._l(t.departmentList,function(a,i){return a.parent_id==0&&a.id!=t.departmentData.id?e("Option",{key:i,attrs:{value:a.id,label:a.name}},[t._v("\xA0\xA0\xA0\xA0"+t._s(a.name))]):t._e()})],2),t.departmentParentDisabled?e("div",{staticClass:"form-tip",staticStyle:{"margin-bottom":"-16px"}},[t._v(t._s(t.$L("\u542B\u6709\u5B50\u90E8\u95E8\u65E0\u6CD5\u4FEE\u6539\u4E0A\u7EA7\u90E8\u95E8")))]):t._e()],1),e("FormItem",{attrs:{prop:"owner_userid",label:t.$L("\u90E8\u95E8\u8D1F\u8D23\u4EBA")}},[e("UserSelect",{attrs:{"multiple-max":1,title:t.$L("\u8BF7\u9009\u62E9\u90E8\u95E8\u8D1F\u8D23\u4EBA")},model:{value:t.departmentData.owner_userid,callback:function(a){t.$set(t.departmentData,"owner_userid",a)},expression:"departmentData.owner_userid"}})],1),t.departmentData.id==0?[e("Divider",{attrs:{orientation:"left"}},[t._v(t._s(t.$L("\u7FA4\u7EC4\u8BBE\u7F6E")))]),e("FormItem",{attrs:{prop:"dialog_group",label:t.$L("\u90E8\u95E8\u7FA4\u804A")}},[e("RadioGroup",{model:{value:t.departmentData.dialog_group,callback:function(a){t.$set(t.departmentData,"dialog_group",a)},expression:"departmentData.dialog_group"}},[e("Radio",{attrs:{label:"new"}},[t._v(t._s(t.$L("\u521B\u5EFA\u90E8\u95E8\u7FA4")))]),e("Radio",{attrs:{label:"use"}},[t._v(t._s(t.$L("\u4F7F\u7528\u73B0\u6709\u7FA4")))])],1)],1),t.departmentData.dialog_group==="use"?e("FormItem",{attrs:{prop:"dialog_useid",label:t.$L("\u9009\u62E9\u7FA4\u7EC4")}},[e("Select",{attrs:{filterable:"","remote-method":t.dialogRemote,placeholder:t.$L("\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22\u7FA4"),loading:t.dialogLoad},model:{value:t.departmentData.dialog_useid,callback:function(a){t.$set(t.departmentData,"dialog_useid",a)},expression:"departmentData.dialog_useid"}},t._l(t.dialogList,function(a,i){return e("Option",{key:i,attrs:{value:a.id,label:a.name}},[e("div",{staticClass:"team-department-add-dialog-group"},[e("div",{staticClass:"dialog-name"},[t._v(t._s(a.name))]),e("UserAvatar",{attrs:{userid:a.owner_id,size:20}})],1)])}),1),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EC5\u652F\u6301\u9009\u62E9\u4E2A\u4EBA\u7FA4\u8F6C\u4E3A\u90E8\u95E8\u7FA4")))])],1):t._e()]:t._e()],2),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.departmentShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.departmentLoading>0},on:{click:t.onSaveDepartment}},[t._v(t._s(t.$L(t.departmentData.id>0?"\u4FDD\u5B58":"\u65B0\u5EFA")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u4FEE\u6539\u7B7E\u5230MAC\u5730\u5740")},model:{value:t.checkinMacEditShow,callback:function(a){t.checkinMacEditShow=a},expression:"checkinMacEditShow"}},[e("Form",{attrs:{model:t.checkinMacEditData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u8FDB\u884C\u5E10\u53F7\u3010ID:${t.checkinMacEditData.userid}\uFF0C${t.checkinMacEditData.nickname}\u3011MAC\u5730\u5740\u4FEE\u6539\u3002`)))]),e("Row",{staticClass:"team-department-checkin-item"},[e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u8BBE\u5907MAC\u5730\u5740")))]),e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u5907\u6CE8")))])],1),t._l(t.checkinMacEditData.checkin_macs,function(a,i){return e("Row",{key:i,staticClass:"team-department-checkin-item"},[e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u8BBE\u5907MAC\u5730\u5740"),clearable:""},on:{"on-clear":function(n){return t.delCheckinDatum(i)}},model:{value:a.mac,callback:function(n){t.$set(a,"mac",n)},expression:"item.mac"}})],1),e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:100,placeholder:t.$L("\u5907\u6CE8")},model:{value:a.remark,callback:function(n){t.$set(a,"remark",n)},expression:"item.remark"}})],1)],1)}),e("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addCheckinDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u8BBE\u5907")))])],2),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.checkinMacEditShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.checkinMacEditLoading>0},on:{click:function(a){return t.operationUser(t.checkinMacEditData,!0)}}},[t._v(t._s(t.$L("\u786E\u5B9A\u4FEE\u6539")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u4FEE\u6539\u90E8\u95E8")},model:{value:t.departmentEditShow,callback:function(a){t.departmentEditShow=a},expression:"departmentEditShow"}},[e("Form",{attrs:{model:t.departmentEditData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u8FDB\u884C\u5E10\u53F7\u3010ID:${t.departmentEditData.userid}\uFF0C${t.departmentEditData.nickname}\u3011\u90E8\u95E8\u4FEE\u6539\u3002`)))]),e("FormItem",{attrs:{label:t.$L("\u4FEE\u6539\u90E8\u95E8")}},[e("Select",{attrs:{multiple:"","multiple-max":10,placeholder:t.$L("\u7559\u7A7A\u4E3A\u9ED8\u8BA4\u90E8\u95E8")},model:{value:t.departmentEditData.department,callback:function(a){t.$set(t.departmentEditData,"department",a)},expression:"departmentEditData.department"}},t._l(t.departmentList,function(a,i){return e("Option",{key:i,attrs:{value:a.id}},[t._v(t._s(a.name))])}),1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.departmentEditShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.departmentEditLoading>0},on:{click:function(a){return t.operationUser(t.departmentEditData,!0)}}},[t._v(t._s(t.$L("\u786E\u5B9A\u4FEE\u6539")))])],1)],1),e("Modal",{attrs:{title:t.$L("\u64CD\u4F5C\u79BB\u804C")},model:{value:t.disableShow,callback:function(a){t.disableShow=a},expression:"disableShow"}},[e("Form",{attrs:{model:t.disableData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("Alert",{staticStyle:{"margin-bottom":"18px"},attrs:{type:"error"}},[t._v(t._s(t.$L(`\u6B63\u5728\u8FDB\u884C\u5E10\u53F7\u3010ID:${t.disableData.userid}\uFF0C${t.disableData.nickname}\u3011\u79BB\u804C\u64CD\u4F5C\u3002`)))]),e("FormItem",{attrs:{label:t.$L("\u79BB\u804C\u65F6\u95F4")}},[e("DatePicker",{ref:"disableTime",staticStyle:{width:"100%"},attrs:{editable:!1,placeholder:t.$L("\u9009\u62E9\u79BB\u804C\u65F6\u95F4"),options:t.disableOptions,format:"yyyy/MM/dd HH:mm",type:"datetime"},model:{value:t.disableData.disable_time,callback:function(a){t.$set(t.disableData,"disable_time",a)},expression:"disableData.disable_time"}})],1),e("FormItem",{attrs:{label:t.$L("\u4EA4\u63A5\u4EBA")}},[e("UserSelect",{attrs:{"disabled-choice":[t.disableData.userid],"multiple-max":1,title:t.$L("\u9009\u62E9\u4EA4\u63A5\u4EBA")},model:{value:t.disableData.transfer_userid,callback:function(a){t.$set(t.disableData,"transfer_userid",a)},expression:"disableData.transfer_userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L(`${t.disableData.nickname} \u8D1F\u8D23\u7684\u90E8\u95E8\u3001\u9879\u76EE\u3001\u4EFB\u52A1\u548C\u6587\u4EF6\u5C06\u79FB\u4EA4\u7ED9\u4EA4\u63A5\u4EBA\uFF1B\u540C\u65F6\u9000\u51FA\u6240\u6709\u7FA4\uFF08\u5982\u679C\u662F\u7FA4\u4E3B\u5219\u8F6C\u8BA9\u7ED9\u4EA4\u63A5\u4EBA\uFF09`)))])],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.disableShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Poptip",{staticStyle:{"margin-left":"8px"},attrs:{confirm:"",placement:"bottom","ok-text":t.$L("\u786E\u5B9A"),"cancel-text":t.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(a){return t.operationUser(t.disableData,!0)}}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("p",[t._v(t._s(t.$L("\u6CE8\u610F\uFF1A\u79BB\u804C\u64CD\u4F5C\u4E0D\u53EF\u9006\uFF01")))])]),e("Button",{attrs:{type:"primary",loading:t.disableLoading>0}},[t._v(t._s(t.$L("\u786E\u5B9A\u79BB\u804C")))])],1)],1)],1)],1)},m=[];const u={name:"TeamManagement",components:{UserSelect:l},props:{checkinMac:{type:Boolean,default:!1}},data(){return{loadIng:0,minBox:!1,minWidth:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"userid",width:80,render:(t,{row:s,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",s.userid)])},{title:this.$L("\u90AE\u7BB1"),key:"email",minWidth:160,render:(t,{row:s})=>{const e=[t("AutoTip",s.email)],{email_verity:a,identity:i,disable_at:n,is_principal:c}=s;return a&&e.push(t("Icon",{props:{type:"md-mail"}})),c&&e.push(t("Tag",{props:{color:"blue"}},this.$L("\u8D1F\u8D23\u4EBA"))),i.includes("ldap")&&e.push(t("Tag",{props:{color:"orange"}},this.$L("LDAP"))),i.includes("admin")&&e.push(t("Tag",{props:{color:"warning"}},this.$L("\u7BA1\u7406\u5458"))),i.includes("temp")&&e.push(t("Tag",{props:{color:"success"}},this.$L("\u4E34\u65F6"))),i.includes("disable")&&e.push(t("Tooltip",{props:{content:this.$L("\u79BB\u804C\u65F6\u95F4")+": "+n}},[t("Tag",{props:{color:"error"}},this.$L("\u79BB\u804C"))])),t("div",{class:"team-email"},e)}},{title:this.$L("\u7535\u8BDD"),key:"tel",minWidth:80,render:(t,{row:s})=>t("QuickEdit",{props:{value:s.tel},on:{"on-update":(e,a)=>{this.operationUser({userid:s.userid,tel:e},!0).finally(a)}}},[t("AutoTip",s.tel||"-")])},{title:this.$L("\u6635\u79F0"),key:"nickname",minWidth:80,render:(t,{row:s})=>t("QuickEdit",{props:{value:s.nickname_original},on:{"on-update":(e,a)=>{this.operationUser({userid:s.userid,nickname:e},!0).finally(a)}}},[t("AutoTip",s.nickname_original||"-")])},{title:this.$L("\u804C\u4F4D/\u804C\u79F0"),key:"profession",minWidth:80,render:(t,{row:s})=>t("QuickEdit",{props:{value:s.profession},on:{"on-update":(e,a)=>{this.operationUser({userid:s.userid,profession:e},!0).finally(a)}}},[t("AutoTip",s.profession||"-")])},{title:this.$L("\u90E8\u95E8"),key:"department",minWidth:80,render:(t,{row:s})=>{let e=[];if(s.department.some(a=>{const i=this.departmentList.find(n=>n.id==a);i&&e.push(i.name)}),e.length===0)return t("div",this.$L("\u9ED8\u8BA4\u90E8\u95E8"));{const a=[];return a.push(t("span",{domProps:{title:e[0]}},e[0])),e.length>1&&(e=e.splice(1),a.push(t("ETooltip",[t("div",{slot:"content",domProps:{innerHTML:e.join("
")}}),t("div",{class:"department-tag-num"},` +${e.length}`)]))),t("div",{class:"team-table-department-warp"},a)}}},{title:this.$L("\u6700\u540E\u5728\u7EBF"),key:"line_at",width:168},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,s)=>{const e=s.row.identity,a=[];e.includes("admin")?a.push(t("EDropdownItem",{props:{command:"clearadmin"}},[t("div",this.$L("\u53D6\u6D88\u7BA1\u7406\u5458"))])):a.push(t("EDropdownItem",{props:{command:"setadmin"}},[t("div",this.$L("\u8BBE\u4E3A\u7BA1\u7406\u5458"))])),e.includes("temp")?a.push(t("EDropdownItem",{props:{command:"cleartemp"}},[t("div",this.$L("\u53D6\u6D88\u4E34\u65F6\u8EAB\u4EFD"))])):a.push(t("EDropdownItem",{props:{command:"settemp"}},[t("div",this.$L("\u8BBE\u4E3A\u4E34\u65F6\u5E10\u53F7"))])),a.push(t("EDropdownItem",{props:{command:"email"}},[t("div",this.$L("\u4FEE\u6539\u90AE\u7BB1"))])),a.push(t("EDropdownItem",{props:{command:"password"}},[t("div",this.$L("\u4FEE\u6539\u5BC6\u7801"))])),this.checkinMac&&a.push(t("EDropdownItem",{props:{command:"checkin_mac"}},[t("div",this.$L("\u4FEE\u6539MAC"))])),a.push(t("EDropdownItem",{props:{command:"department"}},[t("div",this.$L("\u4FEE\u6539\u90E8\u95E8"))])),e.includes("disable")?a.push(t("EDropdownItem",{props:{command:"cleardisable"},style:{color:"#f90"}},[t("div",this.$L("\u6062\u590D\u5E10\u53F7\uFF08\u5DF2\u79BB\u804C\uFF09"))])):a.push(t("EDropdownItem",{props:{command:"setdisable"},style:{color:"#f90"}},[t("div",this.$L("\u64CD\u4F5C\u79BB\u804C"))])),a.push(t("EDropdownItem",{props:{command:"delete"},style:{color:"red"}},[t("div",this.$L("\u5220\u9664"))]));const i=t("EDropdown",{props:{size:"small",trigger:"click"},on:{command:n=>{this.dropUser(n,s.row)}}},[t("Button",{props:{type:"primary",size:"small"},style:{fontSize:"12px"}},this.$L("\u64CD\u4F5C")),t("EDropdownMenu",{slot:"dropdown"},[a])]);return t("TableAction",{props:{column:s.column}},[i])}}],list:[],page:1,pageSize:20,total:0,noText:"",checkinMacEditShow:!1,checkinMacEditLoading:0,checkinMacEditData:{},departmentEditShow:!1,departmentEditLoading:0,departmentEditData:{},disableShow:!1,disableLoading:0,disableData:{},disableOptions:{shortcuts:[{text:this.$L("12:00"),value(){return $A.Date($A.formatDate("Y-m-d 12:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("17:00"),value(){return $A.Date($A.formatDate("Y-m-d 17:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("18:00"),value(){return $A.Date($A.formatDate("Y-m-d 18:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("19:00"),value(){return $A.Date($A.formatDate("Y-m-d 19:00:00"))},onClick:t=>{t.handlePickSuccess()}},{text:this.$L("\u73B0\u5728"),value(){return new Date},onClick:t=>{t.handlePickSuccess()}}]},departmentShow:!1,departmentLoading:0,departmentSelect:-1,departmentData:{id:0,name:"",parent_id:0,owner_userid:[],dialog_group:"new",dialog_useid:0},departmentList:[],dialogLoad:!1,dialogList:[],nullCheckinDatum:{mac:"",remark:""}}},created(){this.checkinMac&&this.columns.splice(5,0,{title:this.$L("MAC\u5730\u5740"),key:"checkin_mac",minWidth:80,render:(t,{row:s})=>{let e=$A.cloneJSON(s.checkin_macs||[]);if(e.length===0)return t("div","-");{const a=n=>n.remark?`${n.mac} (${n.remark})`:n.mac,i=[];return i.push(t("AutoTip",a(e[0]))),e.length>1&&(e=e.splice(1),i.push(t("ETooltip",[t("div",{slot:"content",domProps:{innerHTML:e.map(n=>a(n)).join("
")}}),t("div",{class:"department-tag-num"},` +${e.length}`)]))),t("div",{class:"team-table-department-warp"},i)}}})},mounted(){this.getLists(),this.getDepartmentLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))},departmentSelect(){this.setPage(1)},windowPortrait:{handler(t){this.minBox=t},immediate:!0},minBox:{handler(){this.$nextTick(t=>{this.$el&&this.$el.clientWidth>0&&(this.minWidth=this.$el.clientWidth)})},immediate:!0}},computed:{departmentParentDisabled(){return!!(this.departmentData.id>0&&this.departmentList.find(({parent_id:t})=>t==this.departmentData.id))},userStyle({minWidth:t,windowPortrait:s}){const e={};return t>0&&s&&(e.minWidth=t-40+"px"),e}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="";let t=$A.cloneJSON(this.keys);this.departmentSelect>-1&&(t=Object.assign(t,{department:this.departmentSelect})),this.$store.dispatch("call",{url:"users/lists",data:{keys:t,get_checkin_mac:this.checkinMac?1:0,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:s})=>{this.page=s.current_page,this.total=s.total,this.list=s.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6210\u5458"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(s=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},dropUser(t,s){switch(t){case"settemp":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u5C06\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011\u8BBE\u4E3A\u4E34\u65F6\u5E10\u53F7\u5417\uFF1F\uFF08\u6CE8\uFF1A\u4E34\u65F6\u5E10\u53F7\u9650\u5236\u8BF7\u67E5\u770B\u7CFB\u7EDF\u8BBE\u7F6E\uFF09`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"cleartemp":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u53D6\u6D88\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011\u4E34\u65F6\u8EAB\u4EFD\u5417\uFF1F`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"email":$A.modalInput({title:"\u4FEE\u6539\u90AE\u7BB1",placeholder:`\u8BF7\u8F93\u5165\u65B0\u7684\u90AE\u7BB1\uFF08${s.email}\uFF09`,onOk:a=>a?this.operationUser({userid:s.userid,email:a}):"\u8BF7\u8F93\u5165\u65B0\u7684\u90AE\u7BB1\u5730\u5740"});break;case"password":$A.modalInput({title:"\u4FEE\u6539\u5BC6\u7801",placeholder:"\u8BF7\u8F93\u5165\u65B0\u7684\u5BC6\u7801",onOk:a=>a?this.operationUser({userid:s.userid,password:a}):"\u8BF7\u8F93\u5165\u65B0\u7684\u5BC6\u7801"});break;case"checkin_mac":this.checkinMacEditData={type:"checkin_macs",userid:s.userid,nickname:s.nickname,checkin_macs:s.checkin_macs},this.checkinMacEditData.checkin_macs.length===0&&this.addCheckinDatum(),this.checkinMacEditShow=!0;break;case"department":let e=[];s.department.some(a=>{const i=this.departmentList.find(n=>n.id==a);i&&e.push(i.owner_userid===s.userid?`${i.name} (${this.$L("\u8D1F\u8D23\u4EBA")})`:i.name)}),this.departmentEditData={type:"department",userid:s.userid,nickname:s.nickname,department:s.department.map(a=>parseInt(a))},this.departmentEditShow=!0;break;case"setdisable":this.disableData={type:"setdisable",userid:s.userid,nickname:s.nickname},this.disableShow=!0;break;case"cleardisable":$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u6062\u590D\u5DF2\u79BB\u804C\u5E10\u53F7\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011\u5417\uFF1F\uFF08\u6CE8\uFF1A\u6B64\u64CD\u4F5C\u4EC5\u6062\u590D\u5E10\u53F7\u72B6\u6001\uFF0C\u65E0\u6CD5\u6062\u590D\u64CD\u4F5C\u79BB\u804C\u65F6\u79FB\u4EA4\u7684\u6570\u636E\uFF09`,loading:!0,onOk:()=>this.operationUser({userid:s.userid,type:t})});break;case"delete":$A.modalInput({title:`\u5220\u9664\u5E10\u53F7\u3010ID:${s.userid}\uFF0C${s.nickname}\u3011`,placeholder:"\u8BF7\u8F93\u5165\u5220\u9664\u539F\u56E0",okText:"\u786E\u5B9A\u5220\u9664",onOk:a=>a?this.operationUser({userid:s.userid,type:t,delete_reason:a}):"\u5220\u9664\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"});break;default:this.operationUser({userid:s.userid,type:t},!0);break}},operationUser(t,s){return new Promise((e,a)=>{t.type=="checkin_macs"?this.checkinMacEditLoading++:t.type=="department"?this.departmentEditLoading++:t.type=="setdisable"?this.disableLoading++:this.loadIng++,this.$store.dispatch("call",{url:"users/operation",data:t}).then(({msg:i})=>{$A.messageSuccess(i),this.getLists(),e(),t.type=="checkin_macs"?this.checkinMacEditShow=!1:t.type=="department"?this.departmentEditShow=!1:t.type=="setdisable"&&(this.disableShow=!1)}).catch(({msg:i})=>{s===!0&&$A.modalError(i),this.getLists(),a(i)}).finally(i=>{t.type=="checkin_macs"?this.checkinMacEditLoading--:t.type=="department"?this.departmentEditLoading--:t.type=="setdisable"?this.disableLoading--:this.loadIng--})})},getDepartmentLists(){this.departmentLoading++,this.$store.dispatch("call",{url:"users/department/list"}).then(({data:t})=>{this.departmentList=[],this.generateDepartmentList(t,0,1)}).finally(t=>{this.departmentLoading--})},generateDepartmentList(t,s,e){t.some(a=>{a.parent_id==s&&(this.departmentList.push(Object.assign(a,{level:e+1})),this.generateDepartmentList(t,a.id,e+1))})},onShowDepartment(t){this.departmentData=Object.assign({id:0,name:"",parent_id:0,owner_userid:[],dialog_group:"new"},t||{}),this.departmentShow=!0},onSaveDepartment(){this.departmentLoading++,this.$store.dispatch("call",{url:"users/department/add",data:Object.assign(this.departmentData,{owner_userid:this.departmentData.owner_userid[0]})}).then(({msg:t})=>{$A.messageSuccess(t),this.getDepartmentLists(),this.getLists(),this.departmentShow=!1}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.departmentLoading--})},onSelectDepartment(t){if(this.windowPortrait&&(this.minBox=!0),this.departmentSelect===t){this.departmentSelect=-1;return}this.departmentSelect=t},onOpDepartment(t){if($A.leftExists(t,"add_"))this.onShowDepartment({parent_id:parseInt(t.substr(4))});else if($A.leftExists(t,"edit_")){const s=this.departmentList.find(({id:e})=>e===parseInt(t.substr(5)));s&&this.onShowDepartment(s)}else if($A.leftExists(t,"del_")){const s=this.departmentList.find(({id:e})=>e===parseInt(t.substr(4)));s&&$A.modalConfirm({title:this.$L("\u5220\u9664\u90E8\u95E8"),content:`
${this.$L(`\u4F60\u786E\u5B9A\u8981\u5220\u9664\u3010${s.name}\u3011\u90E8\u95E8\u5417\uFF1F`)}
${this.$L("\u6CE8\u610F\uFF1A\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\uFF0C\u90E8\u95E8\u4E0B\u7684\u6210\u5458\u5C06\u79FB\u81F3\u9ED8\u8BA4\u90E8\u95E8\u3002")}
`,language:!1,loading:!0,onOk:()=>new Promise((e,a)=>{this.$store.dispatch("call",{url:"users/department/del",data:{id:s.id}}).then(({msg:i})=>{s.id===this.departmentSelect&&(this.departmentSelect=-1),e(i),this.getDepartmentLists()}).catch(({msg:i})=>{a(i)})})})}},dialogRemote(t){t!==""?(this.dialogLoad=!0,this.$store.dispatch("call",{url:"dialog/group/searchuser",data:{key:t}}).then(({data:s})=>{this.dialogList=s.list}).finally(s=>{this.dialogLoad=!1})):this.dialogList=[]},addCheckinDatum(){this.checkinMacEditData.checkin_macs.push($A.cloneJSON(this.nullCheckinDatum))},delCheckinDatum(t){this.checkinMacEditData.checkin_macs.splice(t,1),this.checkinMacEditData.checkin_macs.length===0&&this.addCheckinDatum()}}},r={};var h=d(u,p,m,!1,_,null,null,null);function _(t){for(let s in r)this[s]=r[s]}var b=function(){return h.exports}(),f=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("Modal",{attrs:{title:t.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E"),"mask-closable":!1},model:{value:t.show,callback:function(a){t.show=a},expression:"show"}},[e("Form",{ref:"export",attrs:{model:t.formData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5BFC\u51FA\u6210\u5458")}},[e("UserSelect",{attrs:{"multiple-max":100,"avatar-name":"","show-disable":"",title:t.$L("\u8BF7\u9009\u62E9\u6210\u5458")},model:{value:t.formData.userid,callback:function(a){t.$set(t.formData,"userid",a)},expression:"formData.userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6BCF\u6B21\u6700\u591A\u9009\u62E9\u5BFC\u51FA100\u4E2A\u6210\u5458")))])],1),e("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u65E5\u671F")}},[e("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange",format:"yyyy/MM/dd",placeholder:t.$L("\u8BF7\u9009\u62E9\u7B7E\u5230\u65E5\u671F")},model:{value:t.formData.date,callback:function(a){t.$set(t.formData,"date",a)},expression:"formData.date"}}),e("div",{staticClass:"form-tip checkin-export-quick-select"},[e("span",[t._v(t._s(t.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),e("em",{on:{click:function(a){t.formData.date=t.dateShortcuts("prev")}}},[t._v(t._s(t.$L("\u4E0A\u4E2A\u6708")))]),e("em",{on:{click:function(a){t.formData.date=t.dateShortcuts("this")}}},[t._v(t._s(t.$L("\u8FD9\u4E2A\u6708")))])])],1),e("FormItem",{attrs:{label:t.$L("\u73ED\u6B21\u65F6\u95F4")}},[e("TimePicker",{staticStyle:{width:"100%"},attrs:{type:"timerange",format:"HH:mm",placeholder:t.$L("\u8BF7\u9009\u62E9\u73ED\u6B21\u65F6\u95F4")},model:{value:t.formData.time,callback:function(a){t.$set(t.formData,"time",a)},expression:"formData.time"}}),e("div",{staticClass:"form-tip checkin-export-quick-select"},[e("span",[t._v(t._s(t.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),e("em",{on:{click:function(a){t.formData.time=["8:30","18:00"]}}},[t._v("8:30-18:00")]),e("em",{on:{click:function(a){t.formData.time=["9:00","18:00"]}}},[t._v("9:00-18:00")]),e("em",{on:{click:function(a){t.formData.time=["9:30","18:00"]}}},[t._v("9:30-18:30")])])],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(a){t.show=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onExport}},[t._v(t._s(t.$L("\u5BFC\u51FA")))])],1)],1)},$=[];const v={name:"CheckinExport",components:{UserSelect:l},props:{value:{type:Boolean,default:!1}},data(){return{show:this.value,loadIng:0,formData:{userid:[],date:[],time:[]}}},watch:{value(t){this.show=t},show(t){this.value!==t&&this.$emit("input",t)}},methods:{dateShortcuts(t){if(t==="prev")return[$A.getSpecifyDate("\u4E0A\u4E2A\u6708"),$A.getSpecifyDate("\u4E0A\u4E2A\u6708\u7ED3\u675F")];if(t==="this")return[$A.getSpecifyDate("\u672C\u6708"),$A.getSpecifyDate("\u672C\u6708\u7ED3\u675F")]},onExport(){this.loadIng>0||(this.loadIng++,this.$store.dispatch("call",{url:"system/checkin/export",data:this.formData}).then(({data:t})=>{this.show=!1,this.$store.dispatch("downUrl",{url:t.url})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))}}},o={};var k=d(v,f,$,!1,g,null,null,null);function g(t){for(let s in o)this[s]=o[s]}var y=function(){return k.exports}();export{y as C,b as T}; diff --git a/public/js/build/DialogWrapper.68f3aecd.js b/public/js/build/DialogWrapper.962561b6.js similarity index 98% rename from public/js/build/DialogWrapper.68f3aecd.js rename to public/js/build/DialogWrapper.962561b6.js index 3cc4cfdbf..8593db9ea 100644 --- a/public/js/build/DialogWrapper.68f3aecd.js +++ b/public/js/build/DialogWrapper.962561b6.js @@ -1,4 +1,4 @@ -import{n as Qt,g as qu,e as qa,m as Wn,c as Nl,d as Ya,f as Yu,h as zu,r as $u,V as Hu,i as Vu}from"./app.3d81bfbf.js";import{l as za}from"./longpress.43ca7fd9.js";import{D as Wu}from"./index.8fb9f3fd.js";import{U as Ol}from"./UserSelect.6a5dfe83.js";import{I as Ku}from"./ImgUpload.7f60f3a4.js";import Qu from"./details.ee26823b.js";var Xu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"common-circle",style:e.style,attrs:{"data-id":e.percent}},[n("svg",{attrs:{viewBox:"0 0 28 28"}},[n("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[n("path",{staticClass:"common-circle-path",attrs:{d:"M-500-100h997V48h-997z"}}),n("g",{attrs:{"fill-rule":"nonzero"}},[n("path",{staticClass:"common-circle-g-path-ring",attrs:{"stroke-width":"3",d:"M14 25.5c6.351 0 11.5-5.149 11.5-11.5S20.351 2.5 14 2.5 2.5 7.649 2.5 14 7.649 25.5 14 25.5z"}}),n("path",{staticClass:"common-circle-g-path-core",attrs:{d:e.arc(e.args)}})])])])])},ju=[];const Zu={name:"WCircle",props:{percent:{type:Number,default:0},size:{type:Number,default:120}},computed:{style(){let{size:e}=this;return this.isNumeric(e)&&(e+="px"),{width:e,height:e}},args(){const{percent:e}=this;let t=Math.min(360,360/100*e);return t==360?t=0:t==0&&(t=360),{x:14,y:14,r:14,start:360,end:t}}},methods:{isNumeric(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)},point(e,t,n,r){return[(e+Math.sin(r)*n).toFixed(2),(t-Math.cos(r)*n).toFixed(2)]},full(e,t,n,r){return r<=0?`M ${e-n} ${t} A ${n} ${n} 0 1 1 ${e+n} ${t} A ${n} ${n} 1 1 1 ${e-n} ${t} Z`:`M ${e-n} ${t} A ${n} ${n} 0 1 1 ${e+n} ${t} A ${n} ${n} 1 1 1 ${e-n} ${t} M ${e-r} ${t} A ${r} ${r} 0 1 1 ${e+r} ${t} A ${r} ${r} 1 1 1 ${e-r} ${t} Z`},part(e,t,n,r,a,l){const[u,c]=[a/360*2*Math.PI,l/360*2*Math.PI],d=[this.point(e,t,r,u),this.point(e,t,n,u),this.point(e,t,n,c),this.point(e,t,r,c)],f=c-u>Math.PI?"1":"0";return`M ${d[0][0]} ${d[0][1]} L ${d[1][0]} ${d[1][1]} A ${n} ${n} 0 ${f} 1 ${d[2][0]} ${d[2][1]} L ${d[3][0]} ${d[3][1]} A ${r} ${r} 0 ${f} 0 ${d[0][0]} ${d[0][1]} Z`},arc(e){const{x:t=0,y:n=0}=e;let{R:r=0,r:a=0,start:l,end:u}=e;return[r,a]=[Math.max(r,a),Math.min(r,a)],r<=0?"":l!==+l||u!==+u?this.full(t,n,r,a):Math.abs(l-u)<1e-6?"":Math.abs(l-u)%360<1e-6?this.full(t,n,r,a):([l,u]=[l%360,u%360],l>u&&(u+=360),this.part(t,n,r,a,l,u))}}},vs={};var Ju=Qt(Zu,Xu,ju,!1,ed,null,null,null);function ed(e){for(let t in vs)this[t]=vs[t]}var td=function(){return Ju.exports}();var Je={};const nd="\xC1",rd="\xE1",id="\u0102",ad="\u0103",od="\u223E",sd="\u223F",ld="\u223E\u0333",cd="\xC2",ud="\xE2",dd="\xB4",_d="\u0410",pd="\u0430",md="\xC6",fd="\xE6",gd="\u2061",hd="\u{1D504}",Ed="\u{1D51E}",Sd="\xC0",bd="\xE0",vd="\u2135",Td="\u2135",yd="\u0391",Cd="\u03B1",Rd="\u0100",Nd="\u0101",Od="\u2A3F",Ad="&",Id="&",Dd="\u2A55",xd="\u2A53",wd="\u2227",Md="\u2A5C",Ld="\u2A58",kd="\u2A5A",Pd="\u2220",Bd="\u29A4",Fd="\u2220",Ud="\u29A8",Gd="\u29A9",qd="\u29AA",Yd="\u29AB",zd="\u29AC",$d="\u29AD",Hd="\u29AE",Vd="\u29AF",Wd="\u2221",Kd="\u221F",Qd="\u22BE",Xd="\u299D",jd="\u2222",Zd="\xC5",Jd="\u237C",e_="\u0104",t_="\u0105",n_="\u{1D538}",r_="\u{1D552}",i_="\u2A6F",a_="\u2248",o_="\u2A70",s_="\u224A",l_="\u224B",c_="'",u_="\u2061",d_="\u2248",__="\u224A",p_="\xC5",m_="\xE5",f_="\u{1D49C}",g_="\u{1D4B6}",h_="\u2254",E_="*",S_="\u2248",b_="\u224D",v_="\xC3",T_="\xE3",y_="\xC4",C_="\xE4",R_="\u2233",N_="\u2A11",O_="\u224C",A_="\u03F6",I_="\u2035",D_="\u223D",x_="\u22CD",w_="\u2216",M_="\u2AE7",L_="\u22BD",k_="\u2305",P_="\u2306",B_="\u2305",F_="\u23B5",U_="\u23B6",G_="\u224C",q_="\u0411",Y_="\u0431",z_="\u201E",$_="\u2235",H_="\u2235",V_="\u2235",W_="\u29B0",K_="\u03F6",Q_="\u212C",X_="\u212C",j_="\u0392",Z_="\u03B2",J_="\u2136",ep="\u226C",tp="\u{1D505}",np="\u{1D51F}",rp="\u22C2",ip="\u25EF",ap="\u22C3",op="\u2A00",sp="\u2A01",lp="\u2A02",cp="\u2A06",up="\u2605",dp="\u25BD",_p="\u25B3",pp="\u2A04",mp="\u22C1",fp="\u22C0",gp="\u290D",hp="\u29EB",Ep="\u25AA",Sp="\u25B4",bp="\u25BE",vp="\u25C2",Tp="\u25B8",yp="\u2423",Cp="\u2592",Rp="\u2591",Np="\u2593",Op="\u2588",Ap="=\u20E5",Ip="\u2261\u20E5",Dp="\u2AED",xp="\u2310",wp="\u{1D539}",Mp="\u{1D553}",Lp="\u22A5",kp="\u22A5",Pp="\u22C8",Bp="\u29C9",Fp="\u2510",Up="\u2555",Gp="\u2556",qp="\u2557",Yp="\u250C",zp="\u2552",$p="\u2553",Hp="\u2554",Vp="\u2500",Wp="\u2550",Kp="\u252C",Qp="\u2564",Xp="\u2565",jp="\u2566",Zp="\u2534",Jp="\u2567",em="\u2568",tm="\u2569",nm="\u229F",rm="\u229E",im="\u22A0",am="\u2518",om="\u255B",sm="\u255C",lm="\u255D",cm="\u2514",um="\u2558",dm="\u2559",_m="\u255A",pm="\u2502",mm="\u2551",fm="\u253C",gm="\u256A",hm="\u256B",Em="\u256C",Sm="\u2524",bm="\u2561",vm="\u2562",Tm="\u2563",ym="\u251C",Cm="\u255E",Rm="\u255F",Nm="\u2560",Om="\u2035",Am="\u02D8",Im="\u02D8",Dm="\xA6",xm="\u{1D4B7}",wm="\u212C",Mm="\u204F",Lm="\u223D",km="\u22CD",Pm="\u29C5",Bm="\\",Fm="\u27C8",Um="\u2022",Gm="\u2022",qm="\u224E",Ym="\u2AAE",zm="\u224F",$m="\u224E",Hm="\u224F",Vm="\u0106",Wm="\u0107",Km="\u2A44",Qm="\u2A49",Xm="\u2A4B",jm="\u2229",Zm="\u22D2",Jm="\u2A47",ef="\u2A40",tf="\u2145",nf="\u2229\uFE00",rf="\u2041",af="\u02C7",of="\u212D",sf="\u2A4D",lf="\u010C",cf="\u010D",uf="\xC7",df="\xE7",_f="\u0108",pf="\u0109",mf="\u2230",ff="\u2A4C",gf="\u2A50",hf="\u010A",Ef="\u010B",Sf="\xB8",bf="\xB8",vf="\u29B2",Tf="\xA2",yf="\xB7",Cf="\xB7",Rf="\u{1D520}",Nf="\u212D",Of="\u0427",Af="\u0447",If="\u2713",Df="\u2713",xf="\u03A7",wf="\u03C7",Mf="\u02C6",Lf="\u2257",kf="\u21BA",Pf="\u21BB",Bf="\u229B",Ff="\u229A",Uf="\u229D",Gf="\u2299",qf="\xAE",Yf="\u24C8",zf="\u2296",$f="\u2295",Hf="\u2297",Vf="\u25CB",Wf="\u29C3",Kf="\u2257",Qf="\u2A10",Xf="\u2AEF",jf="\u29C2",Zf="\u2232",Jf="\u201D",e0="\u2019",t0="\u2663",n0="\u2663",r0=":",i0="\u2237",a0="\u2A74",o0="\u2254",s0="\u2254",l0=",",c0="@",u0="\u2201",d0="\u2218",_0="\u2201",p0="\u2102",m0="\u2245",f0="\u2A6D",g0="\u2261",h0="\u222E",E0="\u222F",S0="\u222E",b0="\u{1D554}",v0="\u2102",T0="\u2210",y0="\u2210",C0="\xA9",R0="\xA9",N0="\u2117",O0="\u2233",A0="\u21B5",I0="\u2717",D0="\u2A2F",x0="\u{1D49E}",w0="\u{1D4B8}",M0="\u2ACF",L0="\u2AD1",k0="\u2AD0",P0="\u2AD2",B0="\u22EF",F0="\u2938",U0="\u2935",G0="\u22DE",q0="\u22DF",Y0="\u21B6",z0="\u293D",$0="\u2A48",H0="\u2A46",V0="\u224D",W0="\u222A",K0="\u22D3",Q0="\u2A4A",X0="\u228D",j0="\u2A45",Z0="\u222A\uFE00",J0="\u21B7",eg="\u293C",tg="\u22DE",ng="\u22DF",rg="\u22CE",ig="\u22CF",ag="\xA4",og="\u21B6",sg="\u21B7",lg="\u22CE",cg="\u22CF",ug="\u2232",dg="\u2231",_g="\u232D",pg="\u2020",mg="\u2021",fg="\u2138",gg="\u2193",hg="\u21A1",Eg="\u21D3",Sg="\u2010",bg="\u2AE4",vg="\u22A3",Tg="\u290F",yg="\u02DD",Cg="\u010E",Rg="\u010F",Ng="\u0414",Og="\u0434",Ag="\u2021",Ig="\u21CA",Dg="\u2145",xg="\u2146",wg="\u2911",Mg="\u2A77",Lg="\xB0",kg="\u2207",Pg="\u0394",Bg="\u03B4",Fg="\u29B1",Ug="\u297F",Gg="\u{1D507}",qg="\u{1D521}",Yg="\u2965",zg="\u21C3",$g="\u21C2",Hg="\xB4",Vg="\u02D9",Wg="\u02DD",Kg="`",Qg="\u02DC",Xg="\u22C4",jg="\u22C4",Zg="\u22C4",Jg="\u2666",eh="\u2666",th="\xA8",nh="\u2146",rh="\u03DD",ih="\u22F2",ah="\xF7",oh="\xF7",sh="\u22C7",lh="\u22C7",ch="\u0402",uh="\u0452",dh="\u231E",_h="\u230D",ph="$",mh="\u{1D53B}",fh="\u{1D555}",gh="\xA8",hh="\u02D9",Eh="\u20DC",Sh="\u2250",bh="\u2251",vh="\u2250",Th="\u2238",yh="\u2214",Ch="\u22A1",Rh="\u2306",Nh="\u222F",Oh="\xA8",Ah="\u21D3",Ih="\u21D0",Dh="\u21D4",xh="\u2AE4",wh="\u27F8",Mh="\u27FA",Lh="\u27F9",kh="\u21D2",Ph="\u22A8",Bh="\u21D1",Fh="\u21D5",Uh="\u2225",Gh="\u2913",qh="\u2193",Yh="\u2193",zh="\u21D3",$h="\u21F5",Hh="\u0311",Vh="\u21CA",Wh="\u21C3",Kh="\u21C2",Qh="\u2950",Xh="\u295E",jh="\u2956",Zh="\u21BD",Jh="\u295F",eE="\u2957",tE="\u21C1",nE="\u21A7",rE="\u22A4",iE="\u2910",aE="\u231F",oE="\u230C",sE="\u{1D49F}",lE="\u{1D4B9}",cE="\u0405",uE="\u0455",dE="\u29F6",_E="\u0110",pE="\u0111",mE="\u22F1",fE="\u25BF",gE="\u25BE",hE="\u21F5",EE="\u296F",SE="\u29A6",bE="\u040F",vE="\u045F",TE="\u27FF",yE="\xC9",CE="\xE9",RE="\u2A6E",NE="\u011A",OE="\u011B",AE="\xCA",IE="\xEA",DE="\u2256",xE="\u2255",wE="\u042D",ME="\u044D",LE="\u2A77",kE="\u0116",PE="\u0117",BE="\u2251",FE="\u2147",UE="\u2252",GE="\u{1D508}",qE="\u{1D522}",YE="\u2A9A",zE="\xC8",$E="\xE8",HE="\u2A96",VE="\u2A98",WE="\u2A99",KE="\u2208",QE="\u23E7",XE="\u2113",jE="\u2A95",ZE="\u2A97",JE="\u0112",eS="\u0113",tS="\u2205",nS="\u2205",rS="\u25FB",iS="\u2205",aS="\u25AB",oS="\u2004",sS="\u2005",lS="\u2003",cS="\u014A",uS="\u014B",dS="\u2002",_S="\u0118",pS="\u0119",mS="\u{1D53C}",fS="\u{1D556}",gS="\u22D5",hS="\u29E3",ES="\u2A71",SS="\u03B5",bS="\u0395",vS="\u03B5",TS="\u03F5",yS="\u2256",CS="\u2255",RS="\u2242",NS="\u2A96",OS="\u2A95",AS="\u2A75",IS="=",DS="\u2242",xS="\u225F",wS="\u21CC",MS="\u2261",LS="\u2A78",kS="\u29E5",PS="\u2971",BS="\u2253",FS="\u212F",US="\u2130",GS="\u2250",qS="\u2A73",YS="\u2242",zS="\u0397",$S="\u03B7",HS="\xD0",VS="\xF0",WS="\xCB",KS="\xEB",QS="\u20AC",XS="!",jS="\u2203",ZS="\u2203",JS="\u2130",eb="\u2147",tb="\u2147",nb="\u2252",rb="\u0424",ib="\u0444",ab="\u2640",ob="\uFB03",sb="\uFB00",lb="\uFB04",cb="\u{1D509}",ub="\u{1D523}",db="\uFB01",_b="\u25FC",pb="\u25AA",mb="fj",fb="\u266D",gb="\uFB02",hb="\u25B1",Eb="\u0192",Sb="\u{1D53D}",bb="\u{1D557}",vb="\u2200",Tb="\u2200",yb="\u22D4",Cb="\u2AD9",Rb="\u2131",Nb="\u2A0D",Ob="\xBD",Ab="\u2153",Ib="\xBC",Db="\u2155",xb="\u2159",wb="\u215B",Mb="\u2154",Lb="\u2156",kb="\xBE",Pb="\u2157",Bb="\u215C",Fb="\u2158",Ub="\u215A",Gb="\u215D",qb="\u215E",Yb="\u2044",zb="\u2322",$b="\u{1D4BB}",Hb="\u2131",Vb="\u01F5",Wb="\u0393",Kb="\u03B3",Qb="\u03DC",Xb="\u03DD",jb="\u2A86",Zb="\u011E",Jb="\u011F",ev="\u0122",tv="\u011C",nv="\u011D",rv="\u0413",iv="\u0433",av="\u0120",ov="\u0121",sv="\u2265",lv="\u2267",cv="\u2A8C",uv="\u22DB",dv="\u2265",_v="\u2267",pv="\u2A7E",mv="\u2AA9",fv="\u2A7E",gv="\u2A80",hv="\u2A82",Ev="\u2A84",Sv="\u22DB\uFE00",bv="\u2A94",vv="\u{1D50A}",Tv="\u{1D524}",yv="\u226B",Cv="\u22D9",Rv="\u22D9",Nv="\u2137",Ov="\u0403",Av="\u0453",Iv="\u2AA5",Dv="\u2277",xv="\u2A92",wv="\u2AA4",Mv="\u2A8A",Lv="\u2A8A",kv="\u2A88",Pv="\u2269",Bv="\u2A88",Fv="\u2269",Uv="\u22E7",Gv="\u{1D53E}",qv="\u{1D558}",Yv="`",zv="\u2265",$v="\u22DB",Hv="\u2267",Vv="\u2AA2",Wv="\u2277",Kv="\u2A7E",Qv="\u2273",Xv="\u{1D4A2}",jv="\u210A",Zv="\u2273",Jv="\u2A8E",eT="\u2A90",tT="\u2AA7",nT="\u2A7A",rT=">",iT=">",aT="\u226B",oT="\u22D7",sT="\u2995",lT="\u2A7C",cT="\u2A86",uT="\u2978",dT="\u22D7",_T="\u22DB",pT="\u2A8C",mT="\u2277",fT="\u2273",gT="\u2269\uFE00",hT="\u2269\uFE00",ET="\u02C7",ST="\u200A",bT="\xBD",vT="\u210B",TT="\u042A",yT="\u044A",CT="\u2948",RT="\u2194",NT="\u21D4",OT="\u21AD",AT="^",IT="\u210F",DT="\u0124",xT="\u0125",wT="\u2665",MT="\u2665",LT="\u2026",kT="\u22B9",PT="\u{1D525}",BT="\u210C",FT="\u210B",UT="\u2925",GT="\u2926",qT="\u21FF",YT="\u223B",zT="\u21A9",$T="\u21AA",HT="\u{1D559}",VT="\u210D",WT="\u2015",KT="\u2500",QT="\u{1D4BD}",XT="\u210B",jT="\u210F",ZT="\u0126",JT="\u0127",ey="\u224E",ty="\u224F",ny="\u2043",ry="\u2010",iy="\xCD",ay="\xED",oy="\u2063",sy="\xCE",ly="\xEE",cy="\u0418",uy="\u0438",dy="\u0130",_y="\u0415",py="\u0435",my="\xA1",fy="\u21D4",gy="\u{1D526}",hy="\u2111",Ey="\xCC",Sy="\xEC",by="\u2148",vy="\u2A0C",Ty="\u222D",yy="\u29DC",Cy="\u2129",Ry="\u0132",Ny="\u0133",Oy="\u012A",Ay="\u012B",Iy="\u2111",Dy="\u2148",xy="\u2110",wy="\u2111",My="\u0131",Ly="\u2111",ky="\u22B7",Py="\u01B5",By="\u21D2",Fy="\u2105",Uy="\u221E",Gy="\u29DD",qy="\u0131",Yy="\u22BA",zy="\u222B",$y="\u222C",Hy="\u2124",Vy="\u222B",Wy="\u22BA",Ky="\u22C2",Qy="\u2A17",Xy="\u2A3C",jy="\u2063",Zy="\u2062",Jy="\u0401",e1="\u0451",t1="\u012E",n1="\u012F",r1="\u{1D540}",i1="\u{1D55A}",a1="\u0399",o1="\u03B9",s1="\u2A3C",l1="\xBF",c1="\u{1D4BE}",u1="\u2110",d1="\u2208",_1="\u22F5",p1="\u22F9",m1="\u22F4",f1="\u22F3",g1="\u2208",h1="\u2062",E1="\u0128",S1="\u0129",b1="\u0406",v1="\u0456",T1="\xCF",y1="\xEF",C1="\u0134",R1="\u0135",N1="\u0419",O1="\u0439",A1="\u{1D50D}",I1="\u{1D527}",D1="\u0237",x1="\u{1D541}",w1="\u{1D55B}",M1="\u{1D4A5}",L1="\u{1D4BF}",k1="\u0408",P1="\u0458",B1="\u0404",F1="\u0454",U1="\u039A",G1="\u03BA",q1="\u03F0",Y1="\u0136",z1="\u0137",$1="\u041A",H1="\u043A",V1="\u{1D50E}",W1="\u{1D528}",K1="\u0138",Q1="\u0425",X1="\u0445",j1="\u040C",Z1="\u045C",J1="\u{1D542}",eC="\u{1D55C}",tC="\u{1D4A6}",nC="\u{1D4C0}",rC="\u21DA",iC="\u0139",aC="\u013A",oC="\u29B4",sC="\u2112",lC="\u039B",cC="\u03BB",uC="\u27E8",dC="\u27EA",_C="\u2991",pC="\u27E8",mC="\u2A85",fC="\u2112",gC="\xAB",hC="\u21E4",EC="\u291F",SC="\u2190",bC="\u219E",vC="\u21D0",TC="\u291D",yC="\u21A9",CC="\u21AB",RC="\u2939",NC="\u2973",OC="\u21A2",AC="\u2919",IC="\u291B",DC="\u2AAB",xC="\u2AAD",wC="\u2AAD\uFE00",MC="\u290C",LC="\u290E",kC="\u2772",PC="{",BC="[",FC="\u298B",UC="\u298F",GC="\u298D",qC="\u013D",YC="\u013E",zC="\u013B",$C="\u013C",HC="\u2308",VC="{",WC="\u041B",KC="\u043B",QC="\u2936",XC="\u201C",jC="\u201E",ZC="\u2967",JC="\u294B",eR="\u21B2",tR="\u2264",nR="\u2266",rR="\u27E8",iR="\u21E4",aR="\u2190",oR="\u2190",sR="\u21D0",lR="\u21C6",cR="\u21A2",uR="\u2308",dR="\u27E6",_R="\u2961",pR="\u2959",mR="\u21C3",fR="\u230A",gR="\u21BD",hR="\u21BC",ER="\u21C7",SR="\u2194",bR="\u2194",vR="\u21D4",TR="\u21C6",yR="\u21CB",CR="\u21AD",RR="\u294E",NR="\u21A4",OR="\u22A3",AR="\u295A",IR="\u22CB",DR="\u29CF",xR="\u22B2",wR="\u22B4",MR="\u2951",LR="\u2960",kR="\u2958",PR="\u21BF",BR="\u2952",FR="\u21BC",UR="\u2A8B",GR="\u22DA",qR="\u2264",YR="\u2266",zR="\u2A7D",$R="\u2AA8",HR="\u2A7D",VR="\u2A7F",WR="\u2A81",KR="\u2A83",QR="\u22DA\uFE00",XR="\u2A93",jR="\u2A85",ZR="\u22D6",JR="\u22DA",eN="\u2A8B",tN="\u22DA",nN="\u2266",rN="\u2276",iN="\u2276",aN="\u2AA1",oN="\u2272",sN="\u2A7D",lN="\u2272",cN="\u297C",uN="\u230A",dN="\u{1D50F}",_N="\u{1D529}",pN="\u2276",mN="\u2A91",fN="\u2962",gN="\u21BD",hN="\u21BC",EN="\u296A",SN="\u2584",bN="\u0409",vN="\u0459",TN="\u21C7",yN="\u226A",CN="\u22D8",RN="\u231E",NN="\u21DA",ON="\u296B",AN="\u25FA",IN="\u013F",DN="\u0140",xN="\u23B0",wN="\u23B0",MN="\u2A89",LN="\u2A89",kN="\u2A87",PN="\u2268",BN="\u2A87",FN="\u2268",UN="\u22E6",GN="\u27EC",qN="\u21FD",YN="\u27E6",zN="\u27F5",$N="\u27F5",HN="\u27F8",VN="\u27F7",WN="\u27F7",KN="\u27FA",QN="\u27FC",XN="\u27F6",jN="\u27F6",ZN="\u27F9",JN="\u21AB",eO="\u21AC",tO="\u2985",nO="\u{1D543}",rO="\u{1D55D}",iO="\u2A2D",aO="\u2A34",oO="\u2217",sO="_",lO="\u2199",cO="\u2198",uO="\u25CA",dO="\u25CA",_O="\u29EB",pO="(",mO="\u2993",fO="\u21C6",gO="\u231F",hO="\u21CB",EO="\u296D",SO="\u200E",bO="\u22BF",vO="\u2039",TO="\u{1D4C1}",yO="\u2112",CO="\u21B0",RO="\u21B0",NO="\u2272",OO="\u2A8D",AO="\u2A8F",IO="[",DO="\u2018",xO="\u201A",wO="\u0141",MO="\u0142",LO="\u2AA6",kO="\u2A79",PO="<",BO="<",FO="\u226A",UO="\u22D6",GO="\u22CB",qO="\u22C9",YO="\u2976",zO="\u2A7B",$O="\u25C3",HO="\u22B4",VO="\u25C2",WO="\u2996",KO="\u294A",QO="\u2966",XO="\u2268\uFE00",jO="\u2268\uFE00",ZO="\xAF",JO="\u2642",eA="\u2720",tA="\u2720",nA="\u21A6",rA="\u21A6",iA="\u21A7",aA="\u21A4",oA="\u21A5",sA="\u25AE",lA="\u2A29",cA="\u041C",uA="\u043C",dA="\u2014",_A="\u223A",pA="\u2221",mA="\u205F",fA="\u2133",gA="\u{1D510}",hA="\u{1D52A}",EA="\u2127",SA="\xB5",bA="*",vA="\u2AF0",TA="\u2223",yA="\xB7",CA="\u229F",RA="\u2212",NA="\u2238",OA="\u2A2A",AA="\u2213",IA="\u2ADB",DA="\u2026",xA="\u2213",wA="\u22A7",MA="\u{1D544}",LA="\u{1D55E}",kA="\u2213",PA="\u{1D4C2}",BA="\u2133",FA="\u223E",UA="\u039C",GA="\u03BC",qA="\u22B8",YA="\u22B8",zA="\u2207",HA="\u0143",VA="\u0144",WA="\u2220\u20D2",KA="\u2249",QA="\u2A70\u0338",XA="\u224B\u0338",jA="\u0149",ZA="\u2249",JA="\u266E",eI="\u2115",tI="\u266E",nI="\xA0",rI="\u224E\u0338",iI="\u224F\u0338",aI="\u2A43",oI="\u0147",sI="\u0148",lI="\u0145",cI="\u0146",uI="\u2247",dI="\u2A6D\u0338",_I="\u2A42",pI="\u041D",mI="\u043D",fI="\u2013",gI="\u2924",hI="\u2197",EI="\u21D7",SI="\u2197",bI="\u2260",vI="\u2250\u0338",TI="\u200B",yI="\u200B",CI="\u200B",RI="\u200B",NI="\u2262",OI="\u2928",AI="\u2242\u0338",II="\u226B",DI="\u226A",xI=` +import{n as Qt,g as qu,e as qa,m as Wn,c as Nl,d as Ya,f as Yu,h as zu,r as $u,V as Hu,i as Vu}from"./app.28437e7d.js";import{l as za}from"./longpress.43ca7fd9.js";import{D as Wu}from"./index.ed41beb1.js";import{U as Ol}from"./UserSelect.fe42163b.js";import{I as Ku}from"./ImgUpload.cbadd034.js";import Qu from"./details.70f91a78.js";var Xu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"common-circle",style:e.style,attrs:{"data-id":e.percent}},[n("svg",{attrs:{viewBox:"0 0 28 28"}},[n("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[n("path",{staticClass:"common-circle-path",attrs:{d:"M-500-100h997V48h-997z"}}),n("g",{attrs:{"fill-rule":"nonzero"}},[n("path",{staticClass:"common-circle-g-path-ring",attrs:{"stroke-width":"3",d:"M14 25.5c6.351 0 11.5-5.149 11.5-11.5S20.351 2.5 14 2.5 2.5 7.649 2.5 14 7.649 25.5 14 25.5z"}}),n("path",{staticClass:"common-circle-g-path-core",attrs:{d:e.arc(e.args)}})])])])])},ju=[];const Zu={name:"WCircle",props:{percent:{type:Number,default:0},size:{type:Number,default:120}},computed:{style(){let{size:e}=this;return this.isNumeric(e)&&(e+="px"),{width:e,height:e}},args(){const{percent:e}=this;let t=Math.min(360,360/100*e);return t==360?t=0:t==0&&(t=360),{x:14,y:14,r:14,start:360,end:t}}},methods:{isNumeric(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)},point(e,t,n,r){return[(e+Math.sin(r)*n).toFixed(2),(t-Math.cos(r)*n).toFixed(2)]},full(e,t,n,r){return r<=0?`M ${e-n} ${t} A ${n} ${n} 0 1 1 ${e+n} ${t} A ${n} ${n} 1 1 1 ${e-n} ${t} Z`:`M ${e-n} ${t} A ${n} ${n} 0 1 1 ${e+n} ${t} A ${n} ${n} 1 1 1 ${e-n} ${t} M ${e-r} ${t} A ${r} ${r} 0 1 1 ${e+r} ${t} A ${r} ${r} 1 1 1 ${e-r} ${t} Z`},part(e,t,n,r,a,l){const[u,c]=[a/360*2*Math.PI,l/360*2*Math.PI],d=[this.point(e,t,r,u),this.point(e,t,n,u),this.point(e,t,n,c),this.point(e,t,r,c)],f=c-u>Math.PI?"1":"0";return`M ${d[0][0]} ${d[0][1]} L ${d[1][0]} ${d[1][1]} A ${n} ${n} 0 ${f} 1 ${d[2][0]} ${d[2][1]} L ${d[3][0]} ${d[3][1]} A ${r} ${r} 0 ${f} 0 ${d[0][0]} ${d[0][1]} Z`},arc(e){const{x:t=0,y:n=0}=e;let{R:r=0,r:a=0,start:l,end:u}=e;return[r,a]=[Math.max(r,a),Math.min(r,a)],r<=0?"":l!==+l||u!==+u?this.full(t,n,r,a):Math.abs(l-u)<1e-6?"":Math.abs(l-u)%360<1e-6?this.full(t,n,r,a):([l,u]=[l%360,u%360],l>u&&(u+=360),this.part(t,n,r,a,l,u))}}},vs={};var Ju=Qt(Zu,Xu,ju,!1,ed,null,null,null);function ed(e){for(let t in vs)this[t]=vs[t]}var td=function(){return Ju.exports}();var Je={};const nd="\xC1",rd="\xE1",id="\u0102",ad="\u0103",od="\u223E",sd="\u223F",ld="\u223E\u0333",cd="\xC2",ud="\xE2",dd="\xB4",_d="\u0410",pd="\u0430",md="\xC6",fd="\xE6",gd="\u2061",hd="\u{1D504}",Ed="\u{1D51E}",Sd="\xC0",bd="\xE0",vd="\u2135",Td="\u2135",yd="\u0391",Cd="\u03B1",Rd="\u0100",Nd="\u0101",Od="\u2A3F",Ad="&",Id="&",Dd="\u2A55",xd="\u2A53",wd="\u2227",Md="\u2A5C",Ld="\u2A58",kd="\u2A5A",Pd="\u2220",Bd="\u29A4",Fd="\u2220",Ud="\u29A8",Gd="\u29A9",qd="\u29AA",Yd="\u29AB",zd="\u29AC",$d="\u29AD",Hd="\u29AE",Vd="\u29AF",Wd="\u2221",Kd="\u221F",Qd="\u22BE",Xd="\u299D",jd="\u2222",Zd="\xC5",Jd="\u237C",e_="\u0104",t_="\u0105",n_="\u{1D538}",r_="\u{1D552}",i_="\u2A6F",a_="\u2248",o_="\u2A70",s_="\u224A",l_="\u224B",c_="'",u_="\u2061",d_="\u2248",__="\u224A",p_="\xC5",m_="\xE5",f_="\u{1D49C}",g_="\u{1D4B6}",h_="\u2254",E_="*",S_="\u2248",b_="\u224D",v_="\xC3",T_="\xE3",y_="\xC4",C_="\xE4",R_="\u2233",N_="\u2A11",O_="\u224C",A_="\u03F6",I_="\u2035",D_="\u223D",x_="\u22CD",w_="\u2216",M_="\u2AE7",L_="\u22BD",k_="\u2305",P_="\u2306",B_="\u2305",F_="\u23B5",U_="\u23B6",G_="\u224C",q_="\u0411",Y_="\u0431",z_="\u201E",$_="\u2235",H_="\u2235",V_="\u2235",W_="\u29B0",K_="\u03F6",Q_="\u212C",X_="\u212C",j_="\u0392",Z_="\u03B2",J_="\u2136",ep="\u226C",tp="\u{1D505}",np="\u{1D51F}",rp="\u22C2",ip="\u25EF",ap="\u22C3",op="\u2A00",sp="\u2A01",lp="\u2A02",cp="\u2A06",up="\u2605",dp="\u25BD",_p="\u25B3",pp="\u2A04",mp="\u22C1",fp="\u22C0",gp="\u290D",hp="\u29EB",Ep="\u25AA",Sp="\u25B4",bp="\u25BE",vp="\u25C2",Tp="\u25B8",yp="\u2423",Cp="\u2592",Rp="\u2591",Np="\u2593",Op="\u2588",Ap="=\u20E5",Ip="\u2261\u20E5",Dp="\u2AED",xp="\u2310",wp="\u{1D539}",Mp="\u{1D553}",Lp="\u22A5",kp="\u22A5",Pp="\u22C8",Bp="\u29C9",Fp="\u2510",Up="\u2555",Gp="\u2556",qp="\u2557",Yp="\u250C",zp="\u2552",$p="\u2553",Hp="\u2554",Vp="\u2500",Wp="\u2550",Kp="\u252C",Qp="\u2564",Xp="\u2565",jp="\u2566",Zp="\u2534",Jp="\u2567",em="\u2568",tm="\u2569",nm="\u229F",rm="\u229E",im="\u22A0",am="\u2518",om="\u255B",sm="\u255C",lm="\u255D",cm="\u2514",um="\u2558",dm="\u2559",_m="\u255A",pm="\u2502",mm="\u2551",fm="\u253C",gm="\u256A",hm="\u256B",Em="\u256C",Sm="\u2524",bm="\u2561",vm="\u2562",Tm="\u2563",ym="\u251C",Cm="\u255E",Rm="\u255F",Nm="\u2560",Om="\u2035",Am="\u02D8",Im="\u02D8",Dm="\xA6",xm="\u{1D4B7}",wm="\u212C",Mm="\u204F",Lm="\u223D",km="\u22CD",Pm="\u29C5",Bm="\\",Fm="\u27C8",Um="\u2022",Gm="\u2022",qm="\u224E",Ym="\u2AAE",zm="\u224F",$m="\u224E",Hm="\u224F",Vm="\u0106",Wm="\u0107",Km="\u2A44",Qm="\u2A49",Xm="\u2A4B",jm="\u2229",Zm="\u22D2",Jm="\u2A47",ef="\u2A40",tf="\u2145",nf="\u2229\uFE00",rf="\u2041",af="\u02C7",of="\u212D",sf="\u2A4D",lf="\u010C",cf="\u010D",uf="\xC7",df="\xE7",_f="\u0108",pf="\u0109",mf="\u2230",ff="\u2A4C",gf="\u2A50",hf="\u010A",Ef="\u010B",Sf="\xB8",bf="\xB8",vf="\u29B2",Tf="\xA2",yf="\xB7",Cf="\xB7",Rf="\u{1D520}",Nf="\u212D",Of="\u0427",Af="\u0447",If="\u2713",Df="\u2713",xf="\u03A7",wf="\u03C7",Mf="\u02C6",Lf="\u2257",kf="\u21BA",Pf="\u21BB",Bf="\u229B",Ff="\u229A",Uf="\u229D",Gf="\u2299",qf="\xAE",Yf="\u24C8",zf="\u2296",$f="\u2295",Hf="\u2297",Vf="\u25CB",Wf="\u29C3",Kf="\u2257",Qf="\u2A10",Xf="\u2AEF",jf="\u29C2",Zf="\u2232",Jf="\u201D",e0="\u2019",t0="\u2663",n0="\u2663",r0=":",i0="\u2237",a0="\u2A74",o0="\u2254",s0="\u2254",l0=",",c0="@",u0="\u2201",d0="\u2218",_0="\u2201",p0="\u2102",m0="\u2245",f0="\u2A6D",g0="\u2261",h0="\u222E",E0="\u222F",S0="\u222E",b0="\u{1D554}",v0="\u2102",T0="\u2210",y0="\u2210",C0="\xA9",R0="\xA9",N0="\u2117",O0="\u2233",A0="\u21B5",I0="\u2717",D0="\u2A2F",x0="\u{1D49E}",w0="\u{1D4B8}",M0="\u2ACF",L0="\u2AD1",k0="\u2AD0",P0="\u2AD2",B0="\u22EF",F0="\u2938",U0="\u2935",G0="\u22DE",q0="\u22DF",Y0="\u21B6",z0="\u293D",$0="\u2A48",H0="\u2A46",V0="\u224D",W0="\u222A",K0="\u22D3",Q0="\u2A4A",X0="\u228D",j0="\u2A45",Z0="\u222A\uFE00",J0="\u21B7",eg="\u293C",tg="\u22DE",ng="\u22DF",rg="\u22CE",ig="\u22CF",ag="\xA4",og="\u21B6",sg="\u21B7",lg="\u22CE",cg="\u22CF",ug="\u2232",dg="\u2231",_g="\u232D",pg="\u2020",mg="\u2021",fg="\u2138",gg="\u2193",hg="\u21A1",Eg="\u21D3",Sg="\u2010",bg="\u2AE4",vg="\u22A3",Tg="\u290F",yg="\u02DD",Cg="\u010E",Rg="\u010F",Ng="\u0414",Og="\u0434",Ag="\u2021",Ig="\u21CA",Dg="\u2145",xg="\u2146",wg="\u2911",Mg="\u2A77",Lg="\xB0",kg="\u2207",Pg="\u0394",Bg="\u03B4",Fg="\u29B1",Ug="\u297F",Gg="\u{1D507}",qg="\u{1D521}",Yg="\u2965",zg="\u21C3",$g="\u21C2",Hg="\xB4",Vg="\u02D9",Wg="\u02DD",Kg="`",Qg="\u02DC",Xg="\u22C4",jg="\u22C4",Zg="\u22C4",Jg="\u2666",eh="\u2666",th="\xA8",nh="\u2146",rh="\u03DD",ih="\u22F2",ah="\xF7",oh="\xF7",sh="\u22C7",lh="\u22C7",ch="\u0402",uh="\u0452",dh="\u231E",_h="\u230D",ph="$",mh="\u{1D53B}",fh="\u{1D555}",gh="\xA8",hh="\u02D9",Eh="\u20DC",Sh="\u2250",bh="\u2251",vh="\u2250",Th="\u2238",yh="\u2214",Ch="\u22A1",Rh="\u2306",Nh="\u222F",Oh="\xA8",Ah="\u21D3",Ih="\u21D0",Dh="\u21D4",xh="\u2AE4",wh="\u27F8",Mh="\u27FA",Lh="\u27F9",kh="\u21D2",Ph="\u22A8",Bh="\u21D1",Fh="\u21D5",Uh="\u2225",Gh="\u2913",qh="\u2193",Yh="\u2193",zh="\u21D3",$h="\u21F5",Hh="\u0311",Vh="\u21CA",Wh="\u21C3",Kh="\u21C2",Qh="\u2950",Xh="\u295E",jh="\u2956",Zh="\u21BD",Jh="\u295F",eE="\u2957",tE="\u21C1",nE="\u21A7",rE="\u22A4",iE="\u2910",aE="\u231F",oE="\u230C",sE="\u{1D49F}",lE="\u{1D4B9}",cE="\u0405",uE="\u0455",dE="\u29F6",_E="\u0110",pE="\u0111",mE="\u22F1",fE="\u25BF",gE="\u25BE",hE="\u21F5",EE="\u296F",SE="\u29A6",bE="\u040F",vE="\u045F",TE="\u27FF",yE="\xC9",CE="\xE9",RE="\u2A6E",NE="\u011A",OE="\u011B",AE="\xCA",IE="\xEA",DE="\u2256",xE="\u2255",wE="\u042D",ME="\u044D",LE="\u2A77",kE="\u0116",PE="\u0117",BE="\u2251",FE="\u2147",UE="\u2252",GE="\u{1D508}",qE="\u{1D522}",YE="\u2A9A",zE="\xC8",$E="\xE8",HE="\u2A96",VE="\u2A98",WE="\u2A99",KE="\u2208",QE="\u23E7",XE="\u2113",jE="\u2A95",ZE="\u2A97",JE="\u0112",eS="\u0113",tS="\u2205",nS="\u2205",rS="\u25FB",iS="\u2205",aS="\u25AB",oS="\u2004",sS="\u2005",lS="\u2003",cS="\u014A",uS="\u014B",dS="\u2002",_S="\u0118",pS="\u0119",mS="\u{1D53C}",fS="\u{1D556}",gS="\u22D5",hS="\u29E3",ES="\u2A71",SS="\u03B5",bS="\u0395",vS="\u03B5",TS="\u03F5",yS="\u2256",CS="\u2255",RS="\u2242",NS="\u2A96",OS="\u2A95",AS="\u2A75",IS="=",DS="\u2242",xS="\u225F",wS="\u21CC",MS="\u2261",LS="\u2A78",kS="\u29E5",PS="\u2971",BS="\u2253",FS="\u212F",US="\u2130",GS="\u2250",qS="\u2A73",YS="\u2242",zS="\u0397",$S="\u03B7",HS="\xD0",VS="\xF0",WS="\xCB",KS="\xEB",QS="\u20AC",XS="!",jS="\u2203",ZS="\u2203",JS="\u2130",eb="\u2147",tb="\u2147",nb="\u2252",rb="\u0424",ib="\u0444",ab="\u2640",ob="\uFB03",sb="\uFB00",lb="\uFB04",cb="\u{1D509}",ub="\u{1D523}",db="\uFB01",_b="\u25FC",pb="\u25AA",mb="fj",fb="\u266D",gb="\uFB02",hb="\u25B1",Eb="\u0192",Sb="\u{1D53D}",bb="\u{1D557}",vb="\u2200",Tb="\u2200",yb="\u22D4",Cb="\u2AD9",Rb="\u2131",Nb="\u2A0D",Ob="\xBD",Ab="\u2153",Ib="\xBC",Db="\u2155",xb="\u2159",wb="\u215B",Mb="\u2154",Lb="\u2156",kb="\xBE",Pb="\u2157",Bb="\u215C",Fb="\u2158",Ub="\u215A",Gb="\u215D",qb="\u215E",Yb="\u2044",zb="\u2322",$b="\u{1D4BB}",Hb="\u2131",Vb="\u01F5",Wb="\u0393",Kb="\u03B3",Qb="\u03DC",Xb="\u03DD",jb="\u2A86",Zb="\u011E",Jb="\u011F",ev="\u0122",tv="\u011C",nv="\u011D",rv="\u0413",iv="\u0433",av="\u0120",ov="\u0121",sv="\u2265",lv="\u2267",cv="\u2A8C",uv="\u22DB",dv="\u2265",_v="\u2267",pv="\u2A7E",mv="\u2AA9",fv="\u2A7E",gv="\u2A80",hv="\u2A82",Ev="\u2A84",Sv="\u22DB\uFE00",bv="\u2A94",vv="\u{1D50A}",Tv="\u{1D524}",yv="\u226B",Cv="\u22D9",Rv="\u22D9",Nv="\u2137",Ov="\u0403",Av="\u0453",Iv="\u2AA5",Dv="\u2277",xv="\u2A92",wv="\u2AA4",Mv="\u2A8A",Lv="\u2A8A",kv="\u2A88",Pv="\u2269",Bv="\u2A88",Fv="\u2269",Uv="\u22E7",Gv="\u{1D53E}",qv="\u{1D558}",Yv="`",zv="\u2265",$v="\u22DB",Hv="\u2267",Vv="\u2AA2",Wv="\u2277",Kv="\u2A7E",Qv="\u2273",Xv="\u{1D4A2}",jv="\u210A",Zv="\u2273",Jv="\u2A8E",eT="\u2A90",tT="\u2AA7",nT="\u2A7A",rT=">",iT=">",aT="\u226B",oT="\u22D7",sT="\u2995",lT="\u2A7C",cT="\u2A86",uT="\u2978",dT="\u22D7",_T="\u22DB",pT="\u2A8C",mT="\u2277",fT="\u2273",gT="\u2269\uFE00",hT="\u2269\uFE00",ET="\u02C7",ST="\u200A",bT="\xBD",vT="\u210B",TT="\u042A",yT="\u044A",CT="\u2948",RT="\u2194",NT="\u21D4",OT="\u21AD",AT="^",IT="\u210F",DT="\u0124",xT="\u0125",wT="\u2665",MT="\u2665",LT="\u2026",kT="\u22B9",PT="\u{1D525}",BT="\u210C",FT="\u210B",UT="\u2925",GT="\u2926",qT="\u21FF",YT="\u223B",zT="\u21A9",$T="\u21AA",HT="\u{1D559}",VT="\u210D",WT="\u2015",KT="\u2500",QT="\u{1D4BD}",XT="\u210B",jT="\u210F",ZT="\u0126",JT="\u0127",ey="\u224E",ty="\u224F",ny="\u2043",ry="\u2010",iy="\xCD",ay="\xED",oy="\u2063",sy="\xCE",ly="\xEE",cy="\u0418",uy="\u0438",dy="\u0130",_y="\u0415",py="\u0435",my="\xA1",fy="\u21D4",gy="\u{1D526}",hy="\u2111",Ey="\xCC",Sy="\xEC",by="\u2148",vy="\u2A0C",Ty="\u222D",yy="\u29DC",Cy="\u2129",Ry="\u0132",Ny="\u0133",Oy="\u012A",Ay="\u012B",Iy="\u2111",Dy="\u2148",xy="\u2110",wy="\u2111",My="\u0131",Ly="\u2111",ky="\u22B7",Py="\u01B5",By="\u21D2",Fy="\u2105",Uy="\u221E",Gy="\u29DD",qy="\u0131",Yy="\u22BA",zy="\u222B",$y="\u222C",Hy="\u2124",Vy="\u222B",Wy="\u22BA",Ky="\u22C2",Qy="\u2A17",Xy="\u2A3C",jy="\u2063",Zy="\u2062",Jy="\u0401",e1="\u0451",t1="\u012E",n1="\u012F",r1="\u{1D540}",i1="\u{1D55A}",a1="\u0399",o1="\u03B9",s1="\u2A3C",l1="\xBF",c1="\u{1D4BE}",u1="\u2110",d1="\u2208",_1="\u22F5",p1="\u22F9",m1="\u22F4",f1="\u22F3",g1="\u2208",h1="\u2062",E1="\u0128",S1="\u0129",b1="\u0406",v1="\u0456",T1="\xCF",y1="\xEF",C1="\u0134",R1="\u0135",N1="\u0419",O1="\u0439",A1="\u{1D50D}",I1="\u{1D527}",D1="\u0237",x1="\u{1D541}",w1="\u{1D55B}",M1="\u{1D4A5}",L1="\u{1D4BF}",k1="\u0408",P1="\u0458",B1="\u0404",F1="\u0454",U1="\u039A",G1="\u03BA",q1="\u03F0",Y1="\u0136",z1="\u0137",$1="\u041A",H1="\u043A",V1="\u{1D50E}",W1="\u{1D528}",K1="\u0138",Q1="\u0425",X1="\u0445",j1="\u040C",Z1="\u045C",J1="\u{1D542}",eC="\u{1D55C}",tC="\u{1D4A6}",nC="\u{1D4C0}",rC="\u21DA",iC="\u0139",aC="\u013A",oC="\u29B4",sC="\u2112",lC="\u039B",cC="\u03BB",uC="\u27E8",dC="\u27EA",_C="\u2991",pC="\u27E8",mC="\u2A85",fC="\u2112",gC="\xAB",hC="\u21E4",EC="\u291F",SC="\u2190",bC="\u219E",vC="\u21D0",TC="\u291D",yC="\u21A9",CC="\u21AB",RC="\u2939",NC="\u2973",OC="\u21A2",AC="\u2919",IC="\u291B",DC="\u2AAB",xC="\u2AAD",wC="\u2AAD\uFE00",MC="\u290C",LC="\u290E",kC="\u2772",PC="{",BC="[",FC="\u298B",UC="\u298F",GC="\u298D",qC="\u013D",YC="\u013E",zC="\u013B",$C="\u013C",HC="\u2308",VC="{",WC="\u041B",KC="\u043B",QC="\u2936",XC="\u201C",jC="\u201E",ZC="\u2967",JC="\u294B",eR="\u21B2",tR="\u2264",nR="\u2266",rR="\u27E8",iR="\u21E4",aR="\u2190",oR="\u2190",sR="\u21D0",lR="\u21C6",cR="\u21A2",uR="\u2308",dR="\u27E6",_R="\u2961",pR="\u2959",mR="\u21C3",fR="\u230A",gR="\u21BD",hR="\u21BC",ER="\u21C7",SR="\u2194",bR="\u2194",vR="\u21D4",TR="\u21C6",yR="\u21CB",CR="\u21AD",RR="\u294E",NR="\u21A4",OR="\u22A3",AR="\u295A",IR="\u22CB",DR="\u29CF",xR="\u22B2",wR="\u22B4",MR="\u2951",LR="\u2960",kR="\u2958",PR="\u21BF",BR="\u2952",FR="\u21BC",UR="\u2A8B",GR="\u22DA",qR="\u2264",YR="\u2266",zR="\u2A7D",$R="\u2AA8",HR="\u2A7D",VR="\u2A7F",WR="\u2A81",KR="\u2A83",QR="\u22DA\uFE00",XR="\u2A93",jR="\u2A85",ZR="\u22D6",JR="\u22DA",eN="\u2A8B",tN="\u22DA",nN="\u2266",rN="\u2276",iN="\u2276",aN="\u2AA1",oN="\u2272",sN="\u2A7D",lN="\u2272",cN="\u297C",uN="\u230A",dN="\u{1D50F}",_N="\u{1D529}",pN="\u2276",mN="\u2A91",fN="\u2962",gN="\u21BD",hN="\u21BC",EN="\u296A",SN="\u2584",bN="\u0409",vN="\u0459",TN="\u21C7",yN="\u226A",CN="\u22D8",RN="\u231E",NN="\u21DA",ON="\u296B",AN="\u25FA",IN="\u013F",DN="\u0140",xN="\u23B0",wN="\u23B0",MN="\u2A89",LN="\u2A89",kN="\u2A87",PN="\u2268",BN="\u2A87",FN="\u2268",UN="\u22E6",GN="\u27EC",qN="\u21FD",YN="\u27E6",zN="\u27F5",$N="\u27F5",HN="\u27F8",VN="\u27F7",WN="\u27F7",KN="\u27FA",QN="\u27FC",XN="\u27F6",jN="\u27F6",ZN="\u27F9",JN="\u21AB",eO="\u21AC",tO="\u2985",nO="\u{1D543}",rO="\u{1D55D}",iO="\u2A2D",aO="\u2A34",oO="\u2217",sO="_",lO="\u2199",cO="\u2198",uO="\u25CA",dO="\u25CA",_O="\u29EB",pO="(",mO="\u2993",fO="\u21C6",gO="\u231F",hO="\u21CB",EO="\u296D",SO="\u200E",bO="\u22BF",vO="\u2039",TO="\u{1D4C1}",yO="\u2112",CO="\u21B0",RO="\u21B0",NO="\u2272",OO="\u2A8D",AO="\u2A8F",IO="[",DO="\u2018",xO="\u201A",wO="\u0141",MO="\u0142",LO="\u2AA6",kO="\u2A79",PO="<",BO="<",FO="\u226A",UO="\u22D6",GO="\u22CB",qO="\u22C9",YO="\u2976",zO="\u2A7B",$O="\u25C3",HO="\u22B4",VO="\u25C2",WO="\u2996",KO="\u294A",QO="\u2966",XO="\u2268\uFE00",jO="\u2268\uFE00",ZO="\xAF",JO="\u2642",eA="\u2720",tA="\u2720",nA="\u21A6",rA="\u21A6",iA="\u21A7",aA="\u21A4",oA="\u21A5",sA="\u25AE",lA="\u2A29",cA="\u041C",uA="\u043C",dA="\u2014",_A="\u223A",pA="\u2221",mA="\u205F",fA="\u2133",gA="\u{1D510}",hA="\u{1D52A}",EA="\u2127",SA="\xB5",bA="*",vA="\u2AF0",TA="\u2223",yA="\xB7",CA="\u229F",RA="\u2212",NA="\u2238",OA="\u2A2A",AA="\u2213",IA="\u2ADB",DA="\u2026",xA="\u2213",wA="\u22A7",MA="\u{1D544}",LA="\u{1D55E}",kA="\u2213",PA="\u{1D4C2}",BA="\u2133",FA="\u223E",UA="\u039C",GA="\u03BC",qA="\u22B8",YA="\u22B8",zA="\u2207",HA="\u0143",VA="\u0144",WA="\u2220\u20D2",KA="\u2249",QA="\u2A70\u0338",XA="\u224B\u0338",jA="\u0149",ZA="\u2249",JA="\u266E",eI="\u2115",tI="\u266E",nI="\xA0",rI="\u224E\u0338",iI="\u224F\u0338",aI="\u2A43",oI="\u0147",sI="\u0148",lI="\u0145",cI="\u0146",uI="\u2247",dI="\u2A6D\u0338",_I="\u2A42",pI="\u041D",mI="\u043D",fI="\u2013",gI="\u2924",hI="\u2197",EI="\u21D7",SI="\u2197",bI="\u2260",vI="\u2250\u0338",TI="\u200B",yI="\u200B",CI="\u200B",RI="\u200B",NI="\u2262",OI="\u2928",AI="\u2242\u0338",II="\u226B",DI="\u226A",xI=` `,wI="\u2204",MI="\u2204",LI="\u{1D511}",kI="\u{1D52B}",PI="\u2267\u0338",BI="\u2271",FI="\u2271",UI="\u2267\u0338",GI="\u2A7E\u0338",qI="\u2A7E\u0338",YI="\u22D9\u0338",zI="\u2275",$I="\u226B\u20D2",HI="\u226F",VI="\u226F",WI="\u226B\u0338",KI="\u21AE",QI="\u21CE",XI="\u2AF2",jI="\u220B",ZI="\u22FC",JI="\u22FA",eD="\u220B",tD="\u040A",nD="\u045A",rD="\u219A",iD="\u21CD",aD="\u2025",oD="\u2266\u0338",sD="\u2270",lD="\u219A",cD="\u21CD",uD="\u21AE",dD="\u21CE",_D="\u2270",pD="\u2266\u0338",mD="\u2A7D\u0338",fD="\u2A7D\u0338",gD="\u226E",hD="\u22D8\u0338",ED="\u2274",SD="\u226A\u20D2",bD="\u226E",vD="\u22EA",TD="\u22EC",yD="\u226A\u0338",CD="\u2224",RD="\u2060",ND="\xA0",OD="\u{1D55F}",AD="\u2115",ID="\u2AEC",DD="\xAC",xD="\u2262",wD="\u226D",MD="\u2226",LD="\u2209",kD="\u2260",PD="\u2242\u0338",BD="\u2204",FD="\u226F",UD="\u2271",GD="\u2267\u0338",qD="\u226B\u0338",YD="\u2279",zD="\u2A7E\u0338",$D="\u2275",HD="\u224E\u0338",VD="\u224F\u0338",WD="\u2209",KD="\u22F5\u0338",QD="\u22F9\u0338",XD="\u2209",jD="\u22F7",ZD="\u22F6",JD="\u29CF\u0338",ex="\u22EA",tx="\u22EC",nx="\u226E",rx="\u2270",ix="\u2278",ax="\u226A\u0338",ox="\u2A7D\u0338",sx="\u2274",lx="\u2AA2\u0338",cx="\u2AA1\u0338",ux="\u220C",dx="\u220C",_x="\u22FE",px="\u22FD",mx="\u2280",fx="\u2AAF\u0338",gx="\u22E0",hx="\u220C",Ex="\u29D0\u0338",Sx="\u22EB",bx="\u22ED",vx="\u228F\u0338",Tx="\u22E2",yx="\u2290\u0338",Cx="\u22E3",Rx="\u2282\u20D2",Nx="\u2288",Ox="\u2281",Ax="\u2AB0\u0338",Ix="\u22E1",Dx="\u227F\u0338",xx="\u2283\u20D2",wx="\u2289",Mx="\u2241",Lx="\u2244",kx="\u2247",Px="\u2249",Bx="\u2224",Fx="\u2226",Ux="\u2226",Gx="\u2AFD\u20E5",qx="\u2202\u0338",Yx="\u2A14",zx="\u2280",$x="\u22E0",Hx="\u2280",Vx="\u2AAF\u0338",Wx="\u2AAF\u0338",Kx="\u2933\u0338",Qx="\u219B",Xx="\u21CF",jx="\u219D\u0338",Zx="\u219B",Jx="\u21CF",ew="\u22EB",tw="\u22ED",nw="\u2281",rw="\u22E1",iw="\u2AB0\u0338",aw="\u{1D4A9}",ow="\u{1D4C3}",sw="\u2224",lw="\u2226",cw="\u2241",uw="\u2244",dw="\u2244",_w="\u2224",pw="\u2226",mw="\u22E2",fw="\u22E3",gw="\u2284",hw="\u2AC5\u0338",Ew="\u2288",Sw="\u2282\u20D2",bw="\u2288",vw="\u2AC5\u0338",Tw="\u2281",yw="\u2AB0\u0338",Cw="\u2285",Rw="\u2AC6\u0338",Nw="\u2289",Ow="\u2283\u20D2",Aw="\u2289",Iw="\u2AC6\u0338",Dw="\u2279",xw="\xD1",ww="\xF1",Mw="\u2278",Lw="\u22EA",kw="\u22EC",Pw="\u22EB",Bw="\u22ED",Fw="\u039D",Uw="\u03BD",Gw="#",qw="\u2116",Yw="\u2007",zw="\u224D\u20D2",$w="\u22AC",Hw="\u22AD",Vw="\u22AE",Ww="\u22AF",Kw="\u2265\u20D2",Qw=">\u20D2",Xw="\u2904",jw="\u29DE",Zw="\u2902",Jw="\u2264\u20D2",e2="<\u20D2",t2="\u22B4\u20D2",n2="\u2903",r2="\u22B5\u20D2",i2="\u223C\u20D2",a2="\u2923",o2="\u2196",s2="\u21D6",l2="\u2196",c2="\u2927",u2="\xD3",d2="\xF3",_2="\u229B",p2="\xD4",m2="\xF4",f2="\u229A",g2="\u041E",h2="\u043E",E2="\u229D",S2="\u0150",b2="\u0151",v2="\u2A38",T2="\u2299",y2="\u29BC",C2="\u0152",R2="\u0153",N2="\u29BF",O2="\u{1D512}",A2="\u{1D52C}",I2="\u02DB",D2="\xD2",x2="\xF2",w2="\u29C1",M2="\u29B5",L2="\u03A9",k2="\u222E",P2="\u21BA",B2="\u29BE",F2="\u29BB",U2="\u203E",G2="\u29C0",q2="\u014C",Y2="\u014D",z2="\u03A9",$2="\u03C9",H2="\u039F",V2="\u03BF",W2="\u29B6",K2="\u2296",Q2="\u{1D546}",X2="\u{1D560}",j2="\u29B7",Z2="\u201C",J2="\u2018",eM="\u29B9",tM="\u2295",nM="\u21BB",rM="\u2A54",iM="\u2228",aM="\u2A5D",oM="\u2134",sM="\u2134",lM="\xAA",cM="\xBA",uM="\u22B6",dM="\u2A56",_M="\u2A57",pM="\u2A5B",mM="\u24C8",fM="\u{1D4AA}",gM="\u2134",hM="\xD8",EM="\xF8",SM="\u2298",bM="\xD5",vM="\xF5",TM="\u2A36",yM="\u2A37",CM="\u2297",RM="\xD6",NM="\xF6",OM="\u233D",AM="\u203E",IM="\u23DE",DM="\u23B4",xM="\u23DC",wM="\xB6",MM="\u2225",LM="\u2225",kM="\u2AF3",PM="\u2AFD",BM="\u2202",FM="\u2202",UM="\u041F",GM="\u043F",qM="%",YM=".",zM="\u2030",$M="\u22A5",HM="\u2031",VM="\u{1D513}",WM="\u{1D52D}",KM="\u03A6",QM="\u03C6",XM="\u03D5",jM="\u2133",ZM="\u260E",JM="\u03A0",e4="\u03C0",t4="\u22D4",n4="\u03D6",r4="\u210F",i4="\u210E",a4="\u210F",o4="\u2A23",s4="\u229E",l4="\u2A22",c4="+",u4="\u2214",d4="\u2A25",_4="\u2A72",p4="\xB1",m4="\xB1",f4="\u2A26",g4="\u2A27",h4="\xB1",E4="\u210C",S4="\u2A15",b4="\u{1D561}",v4="\u2119",T4="\xA3",y4="\u2AB7",C4="\u2ABB",R4="\u227A",N4="\u227C",O4="\u2AB7",A4="\u227A",I4="\u227C",D4="\u227A",x4="\u2AAF",w4="\u227C",M4="\u227E",L4="\u2AAF",k4="\u2AB9",P4="\u2AB5",B4="\u22E8",F4="\u2AAF",U4="\u2AB3",G4="\u227E",q4="\u2032",Y4="\u2033",z4="\u2119",$4="\u2AB9",H4="\u2AB5",V4="\u22E8",W4="\u220F",K4="\u220F",Q4="\u232E",X4="\u2312",j4="\u2313",Z4="\u221D",J4="\u221D",eL="\u2237",tL="\u221D",nL="\u227E",rL="\u22B0",iL="\u{1D4AB}",aL="\u{1D4C5}",oL="\u03A8",sL="\u03C8",lL="\u2008",cL="\u{1D514}",uL="\u{1D52E}",dL="\u2A0C",_L="\u{1D562}",pL="\u211A",mL="\u2057",fL="\u{1D4AC}",gL="\u{1D4C6}",hL="\u210D",EL="\u2A16",SL="?",bL="\u225F",vL='"',TL='"',yL="\u21DB",CL="\u223D\u0331",RL="\u0154",NL="\u0155",OL="\u221A",AL="\u29B3",IL="\u27E9",DL="\u27EB",xL="\u2992",wL="\u29A5",ML="\u27E9",LL="\xBB",kL="\u2975",PL="\u21E5",BL="\u2920",FL="\u2933",UL="\u2192",GL="\u21A0",qL="\u21D2",YL="\u291E",zL="\u21AA",$L="\u21AC",HL="\u2945",VL="\u2974",WL="\u2916",KL="\u21A3",QL="\u219D",XL="\u291A",jL="\u291C",ZL="\u2236",JL="\u211A",ek="\u290D",tk="\u290F",nk="\u2910",rk="\u2773",ik="}",ak="]",ok="\u298C",sk="\u298E",lk="\u2990",ck="\u0158",uk="\u0159",dk="\u0156",_k="\u0157",pk="\u2309",mk="}",fk="\u0420",gk="\u0440",hk="\u2937",Ek="\u2969",Sk="\u201D",bk="\u201D",vk="\u21B3",Tk="\u211C",yk="\u211B",Ck="\u211C",Rk="\u211D",Nk="\u211C",Ok="\u25AD",Ak="\xAE",Ik="\xAE",Dk="\u220B",xk="\u21CB",wk="\u296F",Mk="\u297D",Lk="\u230B",kk="\u{1D52F}",Pk="\u211C",Bk="\u2964",Fk="\u21C1",Uk="\u21C0",Gk="\u296C",qk="\u03A1",Yk="\u03C1",zk="\u03F1",$k="\u27E9",Hk="\u21E5",Vk="\u2192",Wk="\u2192",Kk="\u21D2",Qk="\u21C4",Xk="\u21A3",jk="\u2309",Zk="\u27E7",Jk="\u295D",e3="\u2955",t3="\u21C2",n3="\u230B",r3="\u21C1",i3="\u21C0",a3="\u21C4",o3="\u21CC",s3="\u21C9",l3="\u219D",c3="\u21A6",u3="\u22A2",d3="\u295B",_3="\u22CC",p3="\u29D0",m3="\u22B3",f3="\u22B5",g3="\u294F",h3="\u295C",E3="\u2954",S3="\u21BE",b3="\u2953",v3="\u21C0",T3="\u02DA",y3="\u2253",C3="\u21C4",R3="\u21CC",N3="\u200F",O3="\u23B1",A3="\u23B1",I3="\u2AEE",D3="\u27ED",x3="\u21FE",w3="\u27E7",M3="\u2986",L3="\u{1D563}",k3="\u211D",P3="\u2A2E",B3="\u2A35",F3="\u2970",U3=")",G3="\u2994",q3="\u2A12",Y3="\u21C9",z3="\u21DB",$3="\u203A",H3="\u{1D4C7}",V3="\u211B",W3="\u21B1",K3="\u21B1",Q3="]",X3="\u2019",j3="\u2019",Z3="\u22CC",J3="\u22CA",e5="\u25B9",t5="\u22B5",n5="\u25B8",r5="\u29CE",i5="\u29F4",a5="\u2968",o5="\u211E",s5="\u015A",l5="\u015B",c5="\u201A",u5="\u2AB8",d5="\u0160",_5="\u0161",p5="\u2ABC",m5="\u227B",f5="\u227D",g5="\u2AB0",h5="\u2AB4",E5="\u015E",S5="\u015F",b5="\u015C",v5="\u015D",T5="\u2ABA",y5="\u2AB6",C5="\u22E9",R5="\u2A13",N5="\u227F",O5="\u0421",A5="\u0441",I5="\u22A1",D5="\u22C5",x5="\u2A66",w5="\u2925",M5="\u2198",L5="\u21D8",k5="\u2198",P5="\xA7",B5=";",F5="\u2929",U5="\u2216",G5="\u2216",q5="\u2736",Y5="\u{1D516}",z5="\u{1D530}",$5="\u2322",H5="\u266F",V5="\u0429",W5="\u0449",K5="\u0428",Q5="\u0448",X5="\u2193",j5="\u2190",Z5="\u2223",J5="\u2225",eP="\u2192",tP="\u2191",nP="\xAD",rP="\u03A3",iP="\u03C3",aP="\u03C2",oP="\u03C2",sP="\u223C",lP="\u2A6A",cP="\u2243",uP="\u2243",dP="\u2A9E",_P="\u2AA0",pP="\u2A9D",mP="\u2A9F",fP="\u2246",gP="\u2A24",hP="\u2972",EP="\u2190",SP="\u2218",bP="\u2216",vP="\u2A33",TP="\u29E4",yP="\u2223",CP="\u2323",RP="\u2AAA",NP="\u2AAC",OP="\u2AAC\uFE00",AP="\u042C",IP="\u044C",DP="\u233F",xP="\u29C4",wP="/",MP="\u{1D54A}",LP="\u{1D564}",kP="\u2660",PP="\u2660",BP="\u2225",FP="\u2293",UP="\u2293\uFE00",GP="\u2294",qP="\u2294\uFE00",YP="\u221A",zP="\u228F",$P="\u2291",HP="\u228F",VP="\u2291",WP="\u2290",KP="\u2292",QP="\u2290",XP="\u2292",jP="\u25A1",ZP="\u25A1",JP="\u2293",e6="\u228F",t6="\u2291",n6="\u2290",r6="\u2292",i6="\u2294",a6="\u25AA",o6="\u25A1",s6="\u25AA",l6="\u2192",c6="\u{1D4AE}",u6="\u{1D4C8}",d6="\u2216",_6="\u2323",p6="\u22C6",m6="\u22C6",f6="\u2606",g6="\u2605",h6="\u03F5",E6="\u03D5",S6="\xAF",b6="\u2282",v6="\u22D0",T6="\u2ABD",y6="\u2AC5",C6="\u2286",R6="\u2AC3",N6="\u2AC1",O6="\u2ACB",A6="\u228A",I6="\u2ABF",D6="\u2979",x6="\u2282",w6="\u22D0",M6="\u2286",L6="\u2AC5",k6="\u2286",P6="\u228A",B6="\u2ACB",F6="\u2AC7",U6="\u2AD5",G6="\u2AD3",q6="\u2AB8",Y6="\u227B",z6="\u227D",$6="\u227B",H6="\u2AB0",V6="\u227D",W6="\u227F",K6="\u2AB0",Q6="\u2ABA",X6="\u2AB6",j6="\u22E9",Z6="\u227F",J6="\u220B",e7="\u2211",t7="\u2211",n7="\u266A",r7="\xB9",i7="\xB2",a7="\xB3",o7="\u2283",s7="\u22D1",l7="\u2ABE",c7="\u2AD8",u7="\u2AC6",d7="\u2287",_7="\u2AC4",p7="\u2283",m7="\u2287",f7="\u27C9",g7="\u2AD7",h7="\u297B",E7="\u2AC2",S7="\u2ACC",b7="\u228B",v7="\u2AC0",T7="\u2283",y7="\u22D1",C7="\u2287",R7="\u2AC6",N7="\u228B",O7="\u2ACC",A7="\u2AC8",I7="\u2AD4",D7="\u2AD6",x7="\u2926",w7="\u2199",M7="\u21D9",L7="\u2199",k7="\u292A",P7="\xDF",B7=" ",F7="\u2316",U7="\u03A4",G7="\u03C4",q7="\u23B4",Y7="\u0164",z7="\u0165",$7="\u0162",H7="\u0163",V7="\u0422",W7="\u0442",K7="\u20DB",Q7="\u2315",X7="\u{1D517}",j7="\u{1D531}",Z7="\u2234",J7="\u2234",e8="\u2234",t8="\u0398",n8="\u03B8",r8="\u03D1",i8="\u03D1",a8="\u2248",o8="\u223C",s8="\u205F\u200A",l8="\u2009",c8="\u2009",u8="\u2248",d8="\u223C",_8="\xDE",p8="\xFE",m8="\u02DC",f8="\u223C",g8="\u2243",h8="\u2245",E8="\u2248",S8="\u2A31",b8="\u22A0",v8="\xD7",T8="\u2A30",y8="\u222D",C8="\u2928",R8="\u2336",N8="\u2AF1",O8="\u22A4",A8="\u{1D54B}",I8="\u{1D565}",D8="\u2ADA",x8="\u2929",w8="\u2034",M8="\u2122",L8="\u2122",k8="\u25B5",P8="\u25BF",B8="\u25C3",F8="\u22B4",U8="\u225C",G8="\u25B9",q8="\u22B5",Y8="\u25EC",z8="\u225C",$8="\u2A3A",H8="\u20DB",V8="\u2A39",W8="\u29CD",K8="\u2A3B",Q8="\u23E2",X8="\u{1D4AF}",j8="\u{1D4C9}",Z8="\u0426",J8="\u0446",e9="\u040B",t9="\u045B",n9="\u0166",r9="\u0167",i9="\u226C",a9="\u219E",o9="\u21A0",s9="\xDA",l9="\xFA",c9="\u2191",u9="\u219F",d9="\u21D1",_9="\u2949",p9="\u040E",m9="\u045E",f9="\u016C",g9="\u016D",h9="\xDB",E9="\xFB",S9="\u0423",b9="\u0443",v9="\u21C5",T9="\u0170",y9="\u0171",C9="\u296E",R9="\u297E",N9="\u{1D518}",O9="\u{1D532}",A9="\xD9",I9="\xF9",D9="\u2963",x9="\u21BF",w9="\u21BE",M9="\u2580",L9="\u231C",k9="\u231C",P9="\u230F",B9="\u25F8",F9="\u016A",U9="\u016B",G9="\xA8",q9="_",Y9="\u23DF",z9="\u23B5",$9="\u23DD",H9="\u22C3",V9="\u228E",W9="\u0172",K9="\u0173",Q9="\u{1D54C}",X9="\u{1D566}",j9="\u2912",Z9="\u2191",J9="\u2191",eB="\u21D1",tB="\u21C5",nB="\u2195",rB="\u2195",iB="\u21D5",aB="\u296E",oB="\u21BF",sB="\u21BE",lB="\u228E",cB="\u2196",uB="\u2197",dB="\u03C5",_B="\u03D2",pB="\u03D2",mB="\u03A5",fB="\u03C5",gB="\u21A5",hB="\u22A5",EB="\u21C8",SB="\u231D",bB="\u231D",vB="\u230E",TB="\u016E",yB="\u016F",CB="\u25F9",RB="\u{1D4B0}",NB="\u{1D4CA}",OB="\u22F0",AB="\u0168",IB="\u0169",DB="\u25B5",xB="\u25B4",wB="\u21C8",MB="\xDC",LB="\xFC",kB="\u29A7",PB="\u299C",BB="\u03F5",FB="\u03F0",UB="\u2205",GB="\u03D5",qB="\u03D6",YB="\u221D",zB="\u2195",$B="\u21D5",HB="\u03F1",VB="\u03C2",WB="\u228A\uFE00",KB="\u2ACB\uFE00",QB="\u228B\uFE00",XB="\u2ACC\uFE00",jB="\u03D1",ZB="\u22B2",JB="\u22B3",eF="\u2AE8",tF="\u2AEB",nF="\u2AE9",rF="\u0412",iF="\u0432",aF="\u22A2",oF="\u22A8",sF="\u22A9",lF="\u22AB",cF="\u2AE6",uF="\u22BB",dF="\u2228",_F="\u22C1",pF="\u225A",mF="\u22EE",fF="|",gF="\u2016",hF="|",EF="\u2016",SF="\u2223",bF="|",vF="\u2758",TF="\u2240",yF="\u200A",CF="\u{1D519}",RF="\u{1D533}",NF="\u22B2",OF="\u2282\u20D2",AF="\u2283\u20D2",IF="\u{1D54D}",DF="\u{1D567}",xF="\u221D",wF="\u22B3",MF="\u{1D4B1}",LF="\u{1D4CB}",kF="\u2ACB\uFE00",PF="\u228A\uFE00",BF="\u2ACC\uFE00",FF="\u228B\uFE00",UF="\u22AA",GF="\u299A",qF="\u0174",YF="\u0175",zF="\u2A5F",$F="\u2227",HF="\u22C0",VF="\u2259",WF="\u2118",KF="\u{1D51A}",QF="\u{1D534}",XF="\u{1D54E}",jF="\u{1D568}",ZF="\u2118",JF="\u2240",eU="\u2240",tU="\u{1D4B2}",nU="\u{1D4CC}",rU="\u22C2",iU="\u25EF",aU="\u22C3",oU="\u25BD",sU="\u{1D51B}",lU="\u{1D535}",cU="\u27F7",uU="\u27FA",dU="\u039E",_U="\u03BE",pU="\u27F5",mU="\u27F8",fU="\u27FC",gU="\u22FB",hU="\u2A00",EU="\u{1D54F}",SU="\u{1D569}",bU="\u2A01",vU="\u2A02",TU="\u27F6",yU="\u27F9",CU="\u{1D4B3}",RU="\u{1D4CD}",NU="\u2A06",OU="\u2A04",AU="\u25B3",IU="\u22C1",DU="\u22C0",xU="\xDD",wU="\xFD",MU="\u042F",LU="\u044F",kU="\u0176",PU="\u0177",BU="\u042B",FU="\u044B",UU="\xA5",GU="\u{1D51C}",qU="\u{1D536}",YU="\u0407",zU="\u0457",$U="\u{1D550}",HU="\u{1D56A}",VU="\u{1D4B4}",WU="\u{1D4CE}",KU="\u042E",QU="\u044E",XU="\xFF",jU="\u0178",ZU="\u0179",JU="\u017A",eG="\u017D",tG="\u017E",nG="\u0417",rG="\u0437",iG="\u017B",aG="\u017C",oG="\u2128",sG="\u200B",lG="\u0396",cG="\u03B6",uG="\u{1D537}",dG="\u2128",_G="\u0416",pG="\u0436",mG="\u21DD",fG="\u{1D56B}",gG="\u2124",hG="\u{1D4B5}",EG="\u{1D4CF}",SG="\u200D",bG="\u200C";var vG={Aacute:nd,aacute:rd,Abreve:id,abreve:ad,ac:od,acd:sd,acE:ld,Acirc:cd,acirc:ud,acute:dd,Acy:_d,acy:pd,AElig:md,aelig:fd,af:gd,Afr:hd,afr:Ed,Agrave:Sd,agrave:bd,alefsym:vd,aleph:Td,Alpha:yd,alpha:Cd,Amacr:Rd,amacr:Nd,amalg:Od,amp:Ad,AMP:Id,andand:Dd,And:xd,and:wd,andd:Md,andslope:Ld,andv:kd,ang:Pd,ange:Bd,angle:Fd,angmsdaa:Ud,angmsdab:Gd,angmsdac:qd,angmsdad:Yd,angmsdae:zd,angmsdaf:$d,angmsdag:Hd,angmsdah:Vd,angmsd:Wd,angrt:Kd,angrtvb:Qd,angrtvbd:Xd,angsph:jd,angst:Zd,angzarr:Jd,Aogon:e_,aogon:t_,Aopf:n_,aopf:r_,apacir:i_,ap:a_,apE:o_,ape:s_,apid:l_,apos:c_,ApplyFunction:u_,approx:d_,approxeq:__,Aring:p_,aring:m_,Ascr:f_,ascr:g_,Assign:h_,ast:E_,asymp:S_,asympeq:b_,Atilde:v_,atilde:T_,Auml:y_,auml:C_,awconint:R_,awint:N_,backcong:O_,backepsilon:A_,backprime:I_,backsim:D_,backsimeq:x_,Backslash:w_,Barv:M_,barvee:L_,barwed:k_,Barwed:P_,barwedge:B_,bbrk:F_,bbrktbrk:U_,bcong:G_,Bcy:q_,bcy:Y_,bdquo:z_,becaus:$_,because:H_,Because:V_,bemptyv:W_,bepsi:K_,bernou:Q_,Bernoullis:X_,Beta:j_,beta:Z_,beth:J_,between:ep,Bfr:tp,bfr:np,bigcap:rp,bigcirc:ip,bigcup:ap,bigodot:op,bigoplus:sp,bigotimes:lp,bigsqcup:cp,bigstar:up,bigtriangledown:dp,bigtriangleup:_p,biguplus:pp,bigvee:mp,bigwedge:fp,bkarow:gp,blacklozenge:hp,blacksquare:Ep,blacktriangle:Sp,blacktriangledown:bp,blacktriangleleft:vp,blacktriangleright:Tp,blank:yp,blk12:Cp,blk14:Rp,blk34:Np,block:Op,bne:Ap,bnequiv:Ip,bNot:Dp,bnot:xp,Bopf:wp,bopf:Mp,bot:Lp,bottom:kp,bowtie:Pp,boxbox:Bp,boxdl:Fp,boxdL:Up,boxDl:Gp,boxDL:qp,boxdr:Yp,boxdR:zp,boxDr:$p,boxDR:Hp,boxh:Vp,boxH:Wp,boxhd:Kp,boxHd:Qp,boxhD:Xp,boxHD:jp,boxhu:Zp,boxHu:Jp,boxhU:em,boxHU:tm,boxminus:nm,boxplus:rm,boxtimes:im,boxul:am,boxuL:om,boxUl:sm,boxUL:lm,boxur:cm,boxuR:um,boxUr:dm,boxUR:_m,boxv:pm,boxV:mm,boxvh:fm,boxvH:gm,boxVh:hm,boxVH:Em,boxvl:Sm,boxvL:bm,boxVl:vm,boxVL:Tm,boxvr:ym,boxvR:Cm,boxVr:Rm,boxVR:Nm,bprime:Om,breve:Am,Breve:Im,brvbar:Dm,bscr:xm,Bscr:wm,bsemi:Mm,bsim:Lm,bsime:km,bsolb:Pm,bsol:Bm,bsolhsub:Fm,bull:Um,bullet:Gm,bump:qm,bumpE:Ym,bumpe:zm,Bumpeq:$m,bumpeq:Hm,Cacute:Vm,cacute:Wm,capand:Km,capbrcup:Qm,capcap:Xm,cap:jm,Cap:Zm,capcup:Jm,capdot:ef,CapitalDifferentialD:tf,caps:nf,caret:rf,caron:af,Cayleys:of,ccaps:sf,Ccaron:lf,ccaron:cf,Ccedil:uf,ccedil:df,Ccirc:_f,ccirc:pf,Cconint:mf,ccups:ff,ccupssm:gf,Cdot:hf,cdot:Ef,cedil:Sf,Cedilla:bf,cemptyv:vf,cent:Tf,centerdot:yf,CenterDot:Cf,cfr:Rf,Cfr:Nf,CHcy:Of,chcy:Af,check:If,checkmark:Df,Chi:xf,chi:wf,circ:Mf,circeq:Lf,circlearrowleft:kf,circlearrowright:Pf,circledast:Bf,circledcirc:Ff,circleddash:Uf,CircleDot:Gf,circledR:qf,circledS:Yf,CircleMinus:zf,CirclePlus:$f,CircleTimes:Hf,cir:Vf,cirE:Wf,cire:Kf,cirfnint:Qf,cirmid:Xf,cirscir:jf,ClockwiseContourIntegral:Zf,CloseCurlyDoubleQuote:Jf,CloseCurlyQuote:e0,clubs:t0,clubsuit:n0,colon:r0,Colon:i0,Colone:a0,colone:o0,coloneq:s0,comma:l0,commat:c0,comp:u0,compfn:d0,complement:_0,complexes:p0,cong:m0,congdot:f0,Congruent:g0,conint:h0,Conint:E0,ContourIntegral:S0,copf:b0,Copf:v0,coprod:T0,Coproduct:y0,copy:C0,COPY:R0,copysr:N0,CounterClockwiseContourIntegral:O0,crarr:A0,cross:I0,Cross:D0,Cscr:x0,cscr:w0,csub:M0,csube:L0,csup:k0,csupe:P0,ctdot:B0,cudarrl:F0,cudarrr:U0,cuepr:G0,cuesc:q0,cularr:Y0,cularrp:z0,cupbrcap:$0,cupcap:H0,CupCap:V0,cup:W0,Cup:K0,cupcup:Q0,cupdot:X0,cupor:j0,cups:Z0,curarr:J0,curarrm:eg,curlyeqprec:tg,curlyeqsucc:ng,curlyvee:rg,curlywedge:ig,curren:ag,curvearrowleft:og,curvearrowright:sg,cuvee:lg,cuwed:cg,cwconint:ug,cwint:dg,cylcty:_g,dagger:pg,Dagger:mg,daleth:fg,darr:gg,Darr:hg,dArr:Eg,dash:Sg,Dashv:bg,dashv:vg,dbkarow:Tg,dblac:yg,Dcaron:Cg,dcaron:Rg,Dcy:Ng,dcy:Og,ddagger:Ag,ddarr:Ig,DD:Dg,dd:xg,DDotrahd:wg,ddotseq:Mg,deg:Lg,Del:kg,Delta:Pg,delta:Bg,demptyv:Fg,dfisht:Ug,Dfr:Gg,dfr:qg,dHar:Yg,dharl:zg,dharr:$g,DiacriticalAcute:Hg,DiacriticalDot:Vg,DiacriticalDoubleAcute:Wg,DiacriticalGrave:Kg,DiacriticalTilde:Qg,diam:Xg,diamond:jg,Diamond:Zg,diamondsuit:Jg,diams:eh,die:th,DifferentialD:nh,digamma:rh,disin:ih,div:ah,divide:oh,divideontimes:sh,divonx:lh,DJcy:ch,djcy:uh,dlcorn:dh,dlcrop:_h,dollar:ph,Dopf:mh,dopf:fh,Dot:gh,dot:hh,DotDot:Eh,doteq:Sh,doteqdot:bh,DotEqual:vh,dotminus:Th,dotplus:yh,dotsquare:Ch,doublebarwedge:Rh,DoubleContourIntegral:Nh,DoubleDot:Oh,DoubleDownArrow:Ah,DoubleLeftArrow:Ih,DoubleLeftRightArrow:Dh,DoubleLeftTee:xh,DoubleLongLeftArrow:wh,DoubleLongLeftRightArrow:Mh,DoubleLongRightArrow:Lh,DoubleRightArrow:kh,DoubleRightTee:Ph,DoubleUpArrow:Bh,DoubleUpDownArrow:Fh,DoubleVerticalBar:Uh,DownArrowBar:Gh,downarrow:qh,DownArrow:Yh,Downarrow:zh,DownArrowUpArrow:$h,DownBreve:Hh,downdownarrows:Vh,downharpoonleft:Wh,downharpoonright:Kh,DownLeftRightVector:Qh,DownLeftTeeVector:Xh,DownLeftVectorBar:jh,DownLeftVector:Zh,DownRightTeeVector:Jh,DownRightVectorBar:eE,DownRightVector:tE,DownTeeArrow:nE,DownTee:rE,drbkarow:iE,drcorn:aE,drcrop:oE,Dscr:sE,dscr:lE,DScy:cE,dscy:uE,dsol:dE,Dstrok:_E,dstrok:pE,dtdot:mE,dtri:fE,dtrif:gE,duarr:hE,duhar:EE,dwangle:SE,DZcy:bE,dzcy:vE,dzigrarr:TE,Eacute:yE,eacute:CE,easter:RE,Ecaron:NE,ecaron:OE,Ecirc:AE,ecirc:IE,ecir:DE,ecolon:xE,Ecy:wE,ecy:ME,eDDot:LE,Edot:kE,edot:PE,eDot:BE,ee:FE,efDot:UE,Efr:GE,efr:qE,eg:YE,Egrave:zE,egrave:$E,egs:HE,egsdot:VE,el:WE,Element:KE,elinters:QE,ell:XE,els:jE,elsdot:ZE,Emacr:JE,emacr:eS,empty:tS,emptyset:nS,EmptySmallSquare:rS,emptyv:iS,EmptyVerySmallSquare:aS,emsp13:oS,emsp14:sS,emsp:lS,ENG:cS,eng:uS,ensp:dS,Eogon:_S,eogon:pS,Eopf:mS,eopf:fS,epar:gS,eparsl:hS,eplus:ES,epsi:SS,Epsilon:bS,epsilon:vS,epsiv:TS,eqcirc:yS,eqcolon:CS,eqsim:RS,eqslantgtr:NS,eqslantless:OS,Equal:AS,equals:IS,EqualTilde:DS,equest:xS,Equilibrium:wS,equiv:MS,equivDD:LS,eqvparsl:kS,erarr:PS,erDot:BS,escr:FS,Escr:US,esdot:GS,Esim:qS,esim:YS,Eta:zS,eta:$S,ETH:HS,eth:VS,Euml:WS,euml:KS,euro:QS,excl:XS,exist:jS,Exists:ZS,expectation:JS,exponentiale:eb,ExponentialE:tb,fallingdotseq:nb,Fcy:rb,fcy:ib,female:ab,ffilig:ob,fflig:sb,ffllig:lb,Ffr:cb,ffr:ub,filig:db,FilledSmallSquare:_b,FilledVerySmallSquare:pb,fjlig:mb,flat:fb,fllig:gb,fltns:hb,fnof:Eb,Fopf:Sb,fopf:bb,forall:vb,ForAll:Tb,fork:yb,forkv:Cb,Fouriertrf:Rb,fpartint:Nb,frac12:Ob,frac13:Ab,frac14:Ib,frac15:Db,frac16:xb,frac18:wb,frac23:Mb,frac25:Lb,frac34:kb,frac35:Pb,frac38:Bb,frac45:Fb,frac56:Ub,frac58:Gb,frac78:qb,frasl:Yb,frown:zb,fscr:$b,Fscr:Hb,gacute:Vb,Gamma:Wb,gamma:Kb,Gammad:Qb,gammad:Xb,gap:jb,Gbreve:Zb,gbreve:Jb,Gcedil:ev,Gcirc:tv,gcirc:nv,Gcy:rv,gcy:iv,Gdot:av,gdot:ov,ge:sv,gE:lv,gEl:cv,gel:uv,geq:dv,geqq:_v,geqslant:pv,gescc:mv,ges:fv,gesdot:gv,gesdoto:hv,gesdotol:Ev,gesl:Sv,gesles:bv,Gfr:vv,gfr:Tv,gg:yv,Gg:Cv,ggg:Rv,gimel:Nv,GJcy:Ov,gjcy:Av,gla:Iv,gl:Dv,glE:xv,glj:wv,gnap:Mv,gnapprox:Lv,gne:kv,gnE:Pv,gneq:Bv,gneqq:Fv,gnsim:Uv,Gopf:Gv,gopf:qv,grave:Yv,GreaterEqual:zv,GreaterEqualLess:$v,GreaterFullEqual:Hv,GreaterGreater:Vv,GreaterLess:Wv,GreaterSlantEqual:Kv,GreaterTilde:Qv,Gscr:Xv,gscr:jv,gsim:Zv,gsime:Jv,gsiml:eT,gtcc:tT,gtcir:nT,gt:rT,GT:iT,Gt:aT,gtdot:oT,gtlPar:sT,gtquest:lT,gtrapprox:cT,gtrarr:uT,gtrdot:dT,gtreqless:_T,gtreqqless:pT,gtrless:mT,gtrsim:fT,gvertneqq:gT,gvnE:hT,Hacek:ET,hairsp:ST,half:bT,hamilt:vT,HARDcy:TT,hardcy:yT,harrcir:CT,harr:RT,hArr:NT,harrw:OT,Hat:AT,hbar:IT,Hcirc:DT,hcirc:xT,hearts:wT,heartsuit:MT,hellip:LT,hercon:kT,hfr:PT,Hfr:BT,HilbertSpace:FT,hksearow:UT,hkswarow:GT,hoarr:qT,homtht:YT,hookleftarrow:zT,hookrightarrow:$T,hopf:HT,Hopf:VT,horbar:WT,HorizontalLine:KT,hscr:QT,Hscr:XT,hslash:jT,Hstrok:ZT,hstrok:JT,HumpDownHump:ey,HumpEqual:ty,hybull:ny,hyphen:ry,Iacute:iy,iacute:ay,ic:oy,Icirc:sy,icirc:ly,Icy:cy,icy:uy,Idot:dy,IEcy:_y,iecy:py,iexcl:my,iff:fy,ifr:gy,Ifr:hy,Igrave:Ey,igrave:Sy,ii:by,iiiint:vy,iiint:Ty,iinfin:yy,iiota:Cy,IJlig:Ry,ijlig:Ny,Imacr:Oy,imacr:Ay,image:Iy,ImaginaryI:Dy,imagline:xy,imagpart:wy,imath:My,Im:Ly,imof:ky,imped:Py,Implies:By,incare:Fy,in:"\u2208",infin:Uy,infintie:Gy,inodot:qy,intcal:Yy,int:zy,Int:$y,integers:Hy,Integral:Vy,intercal:Wy,Intersection:Ky,intlarhk:Qy,intprod:Xy,InvisibleComma:jy,InvisibleTimes:Zy,IOcy:Jy,iocy:e1,Iogon:t1,iogon:n1,Iopf:r1,iopf:i1,Iota:a1,iota:o1,iprod:s1,iquest:l1,iscr:c1,Iscr:u1,isin:d1,isindot:_1,isinE:p1,isins:m1,isinsv:f1,isinv:g1,it:h1,Itilde:E1,itilde:S1,Iukcy:b1,iukcy:v1,Iuml:T1,iuml:y1,Jcirc:C1,jcirc:R1,Jcy:N1,jcy:O1,Jfr:A1,jfr:I1,jmath:D1,Jopf:x1,jopf:w1,Jscr:M1,jscr:L1,Jsercy:k1,jsercy:P1,Jukcy:B1,jukcy:F1,Kappa:U1,kappa:G1,kappav:q1,Kcedil:Y1,kcedil:z1,Kcy:$1,kcy:H1,Kfr:V1,kfr:W1,kgreen:K1,KHcy:Q1,khcy:X1,KJcy:j1,kjcy:Z1,Kopf:J1,kopf:eC,Kscr:tC,kscr:nC,lAarr:rC,Lacute:iC,lacute:aC,laemptyv:oC,lagran:sC,Lambda:lC,lambda:cC,lang:uC,Lang:dC,langd:_C,langle:pC,lap:mC,Laplacetrf:fC,laquo:gC,larrb:hC,larrbfs:EC,larr:SC,Larr:bC,lArr:vC,larrfs:TC,larrhk:yC,larrlp:CC,larrpl:RC,larrsim:NC,larrtl:OC,latail:AC,lAtail:IC,lat:DC,late:xC,lates:wC,lbarr:MC,lBarr:LC,lbbrk:kC,lbrace:PC,lbrack:BC,lbrke:FC,lbrksld:UC,lbrkslu:GC,Lcaron:qC,lcaron:YC,Lcedil:zC,lcedil:$C,lceil:HC,lcub:VC,Lcy:WC,lcy:KC,ldca:QC,ldquo:XC,ldquor:jC,ldrdhar:ZC,ldrushar:JC,ldsh:eR,le:tR,lE:nR,LeftAngleBracket:rR,LeftArrowBar:iR,leftarrow:aR,LeftArrow:oR,Leftarrow:sR,LeftArrowRightArrow:lR,leftarrowtail:cR,LeftCeiling:uR,LeftDoubleBracket:dR,LeftDownTeeVector:_R,LeftDownVectorBar:pR,LeftDownVector:mR,LeftFloor:fR,leftharpoondown:gR,leftharpoonup:hR,leftleftarrows:ER,leftrightarrow:SR,LeftRightArrow:bR,Leftrightarrow:vR,leftrightarrows:TR,leftrightharpoons:yR,leftrightsquigarrow:CR,LeftRightVector:RR,LeftTeeArrow:NR,LeftTee:OR,LeftTeeVector:AR,leftthreetimes:IR,LeftTriangleBar:DR,LeftTriangle:xR,LeftTriangleEqual:wR,LeftUpDownVector:MR,LeftUpTeeVector:LR,LeftUpVectorBar:kR,LeftUpVector:PR,LeftVectorBar:BR,LeftVector:FR,lEg:UR,leg:GR,leq:qR,leqq:YR,leqslant:zR,lescc:$R,les:HR,lesdot:VR,lesdoto:WR,lesdotor:KR,lesg:QR,lesges:XR,lessapprox:jR,lessdot:ZR,lesseqgtr:JR,lesseqqgtr:eN,LessEqualGreater:tN,LessFullEqual:nN,LessGreater:rN,lessgtr:iN,LessLess:aN,lesssim:oN,LessSlantEqual:sN,LessTilde:lN,lfisht:cN,lfloor:uN,Lfr:dN,lfr:_N,lg:pN,lgE:mN,lHar:fN,lhard:gN,lharu:hN,lharul:EN,lhblk:SN,LJcy:bN,ljcy:vN,llarr:TN,ll:yN,Ll:CN,llcorner:RN,Lleftarrow:NN,llhard:ON,lltri:AN,Lmidot:IN,lmidot:DN,lmoustache:xN,lmoust:wN,lnap:MN,lnapprox:LN,lne:kN,lnE:PN,lneq:BN,lneqq:FN,lnsim:UN,loang:GN,loarr:qN,lobrk:YN,longleftarrow:zN,LongLeftArrow:$N,Longleftarrow:HN,longleftrightarrow:VN,LongLeftRightArrow:WN,Longleftrightarrow:KN,longmapsto:QN,longrightarrow:XN,LongRightArrow:jN,Longrightarrow:ZN,looparrowleft:JN,looparrowright:eO,lopar:tO,Lopf:nO,lopf:rO,loplus:iO,lotimes:aO,lowast:oO,lowbar:sO,LowerLeftArrow:lO,LowerRightArrow:cO,loz:uO,lozenge:dO,lozf:_O,lpar:pO,lparlt:mO,lrarr:fO,lrcorner:gO,lrhar:hO,lrhard:EO,lrm:SO,lrtri:bO,lsaquo:vO,lscr:TO,Lscr:yO,lsh:CO,Lsh:RO,lsim:NO,lsime:OO,lsimg:AO,lsqb:IO,lsquo:DO,lsquor:xO,Lstrok:wO,lstrok:MO,ltcc:LO,ltcir:kO,lt:PO,LT:BO,Lt:FO,ltdot:UO,lthree:GO,ltimes:qO,ltlarr:YO,ltquest:zO,ltri:$O,ltrie:HO,ltrif:VO,ltrPar:WO,lurdshar:KO,luruhar:QO,lvertneqq:XO,lvnE:jO,macr:ZO,male:JO,malt:eA,maltese:tA,Map:"\u2905",map:nA,mapsto:rA,mapstodown:iA,mapstoleft:aA,mapstoup:oA,marker:sA,mcomma:lA,Mcy:cA,mcy:uA,mdash:dA,mDDot:_A,measuredangle:pA,MediumSpace:mA,Mellintrf:fA,Mfr:gA,mfr:hA,mho:EA,micro:SA,midast:bA,midcir:vA,mid:TA,middot:yA,minusb:CA,minus:RA,minusd:NA,minusdu:OA,MinusPlus:AA,mlcp:IA,mldr:DA,mnplus:xA,models:wA,Mopf:MA,mopf:LA,mp:kA,mscr:PA,Mscr:BA,mstpos:FA,Mu:UA,mu:GA,multimap:qA,mumap:YA,nabla:zA,Nacute:HA,nacute:VA,nang:WA,nap:KA,napE:QA,napid:XA,napos:jA,napprox:ZA,natural:JA,naturals:eI,natur:tI,nbsp:nI,nbump:rI,nbumpe:iI,ncap:aI,Ncaron:oI,ncaron:sI,Ncedil:lI,ncedil:cI,ncong:uI,ncongdot:dI,ncup:_I,Ncy:pI,ncy:mI,ndash:fI,nearhk:gI,nearr:hI,neArr:EI,nearrow:SI,ne:bI,nedot:vI,NegativeMediumSpace:TI,NegativeThickSpace:yI,NegativeThinSpace:CI,NegativeVeryThinSpace:RI,nequiv:NI,nesear:OI,nesim:AI,NestedGreaterGreater:II,NestedLessLess:DI,NewLine:xI,nexist:wI,nexists:MI,Nfr:LI,nfr:kI,ngE:PI,nge:BI,ngeq:FI,ngeqq:UI,ngeqslant:GI,nges:qI,nGg:YI,ngsim:zI,nGt:$I,ngt:HI,ngtr:VI,nGtv:WI,nharr:KI,nhArr:QI,nhpar:XI,ni:jI,nis:ZI,nisd:JI,niv:eD,NJcy:tD,njcy:nD,nlarr:rD,nlArr:iD,nldr:aD,nlE:oD,nle:sD,nleftarrow:lD,nLeftarrow:cD,nleftrightarrow:uD,nLeftrightarrow:dD,nleq:_D,nleqq:pD,nleqslant:mD,nles:fD,nless:gD,nLl:hD,nlsim:ED,nLt:SD,nlt:bD,nltri:vD,nltrie:TD,nLtv:yD,nmid:CD,NoBreak:RD,NonBreakingSpace:ND,nopf:OD,Nopf:AD,Not:ID,not:DD,NotCongruent:xD,NotCupCap:wD,NotDoubleVerticalBar:MD,NotElement:LD,NotEqual:kD,NotEqualTilde:PD,NotExists:BD,NotGreater:FD,NotGreaterEqual:UD,NotGreaterFullEqual:GD,NotGreaterGreater:qD,NotGreaterLess:YD,NotGreaterSlantEqual:zD,NotGreaterTilde:$D,NotHumpDownHump:HD,NotHumpEqual:VD,notin:WD,notindot:KD,notinE:QD,notinva:XD,notinvb:jD,notinvc:ZD,NotLeftTriangleBar:JD,NotLeftTriangle:ex,NotLeftTriangleEqual:tx,NotLess:nx,NotLessEqual:rx,NotLessGreater:ix,NotLessLess:ax,NotLessSlantEqual:ox,NotLessTilde:sx,NotNestedGreaterGreater:lx,NotNestedLessLess:cx,notni:ux,notniva:dx,notnivb:_x,notnivc:px,NotPrecedes:mx,NotPrecedesEqual:fx,NotPrecedesSlantEqual:gx,NotReverseElement:hx,NotRightTriangleBar:Ex,NotRightTriangle:Sx,NotRightTriangleEqual:bx,NotSquareSubset:vx,NotSquareSubsetEqual:Tx,NotSquareSuperset:yx,NotSquareSupersetEqual:Cx,NotSubset:Rx,NotSubsetEqual:Nx,NotSucceeds:Ox,NotSucceedsEqual:Ax,NotSucceedsSlantEqual:Ix,NotSucceedsTilde:Dx,NotSuperset:xx,NotSupersetEqual:wx,NotTilde:Mx,NotTildeEqual:Lx,NotTildeFullEqual:kx,NotTildeTilde:Px,NotVerticalBar:Bx,nparallel:Fx,npar:Ux,nparsl:Gx,npart:qx,npolint:Yx,npr:zx,nprcue:$x,nprec:Hx,npreceq:Vx,npre:Wx,nrarrc:Kx,nrarr:Qx,nrArr:Xx,nrarrw:jx,nrightarrow:Zx,nRightarrow:Jx,nrtri:ew,nrtrie:tw,nsc:nw,nsccue:rw,nsce:iw,Nscr:aw,nscr:ow,nshortmid:sw,nshortparallel:lw,nsim:cw,nsime:uw,nsimeq:dw,nsmid:_w,nspar:pw,nsqsube:mw,nsqsupe:fw,nsub:gw,nsubE:hw,nsube:Ew,nsubset:Sw,nsubseteq:bw,nsubseteqq:vw,nsucc:Tw,nsucceq:yw,nsup:Cw,nsupE:Rw,nsupe:Nw,nsupset:Ow,nsupseteq:Aw,nsupseteqq:Iw,ntgl:Dw,Ntilde:xw,ntilde:ww,ntlg:Mw,ntriangleleft:Lw,ntrianglelefteq:kw,ntriangleright:Pw,ntrianglerighteq:Bw,Nu:Fw,nu:Uw,num:Gw,numero:qw,numsp:Yw,nvap:zw,nvdash:$w,nvDash:Hw,nVdash:Vw,nVDash:Ww,nvge:Kw,nvgt:Qw,nvHarr:Xw,nvinfin:jw,nvlArr:Zw,nvle:Jw,nvlt:e2,nvltrie:t2,nvrArr:n2,nvrtrie:r2,nvsim:i2,nwarhk:a2,nwarr:o2,nwArr:s2,nwarrow:l2,nwnear:c2,Oacute:u2,oacute:d2,oast:_2,Ocirc:p2,ocirc:m2,ocir:f2,Ocy:g2,ocy:h2,odash:E2,Odblac:S2,odblac:b2,odiv:v2,odot:T2,odsold:y2,OElig:C2,oelig:R2,ofcir:N2,Ofr:O2,ofr:A2,ogon:I2,Ograve:D2,ograve:x2,ogt:w2,ohbar:M2,ohm:L2,oint:k2,olarr:P2,olcir:B2,olcross:F2,oline:U2,olt:G2,Omacr:q2,omacr:Y2,Omega:z2,omega:$2,Omicron:H2,omicron:V2,omid:W2,ominus:K2,Oopf:Q2,oopf:X2,opar:j2,OpenCurlyDoubleQuote:Z2,OpenCurlyQuote:J2,operp:eM,oplus:tM,orarr:nM,Or:rM,or:iM,ord:aM,order:oM,orderof:sM,ordf:lM,ordm:cM,origof:uM,oror:dM,orslope:_M,orv:pM,oS:mM,Oscr:fM,oscr:gM,Oslash:hM,oslash:EM,osol:SM,Otilde:bM,otilde:vM,otimesas:TM,Otimes:yM,otimes:CM,Ouml:RM,ouml:NM,ovbar:OM,OverBar:AM,OverBrace:IM,OverBracket:DM,OverParenthesis:xM,para:wM,parallel:MM,par:LM,parsim:kM,parsl:PM,part:BM,PartialD:FM,Pcy:UM,pcy:GM,percnt:qM,period:YM,permil:zM,perp:$M,pertenk:HM,Pfr:VM,pfr:WM,Phi:KM,phi:QM,phiv:XM,phmmat:jM,phone:ZM,Pi:JM,pi:e4,pitchfork:t4,piv:n4,planck:r4,planckh:i4,plankv:a4,plusacir:o4,plusb:s4,pluscir:l4,plus:c4,plusdo:u4,plusdu:d4,pluse:_4,PlusMinus:p4,plusmn:m4,plussim:f4,plustwo:g4,pm:h4,Poincareplane:E4,pointint:S4,popf:b4,Popf:v4,pound:T4,prap:y4,Pr:C4,pr:R4,prcue:N4,precapprox:O4,prec:A4,preccurlyeq:I4,Precedes:D4,PrecedesEqual:x4,PrecedesSlantEqual:w4,PrecedesTilde:M4,preceq:L4,precnapprox:k4,precneqq:P4,precnsim:B4,pre:F4,prE:U4,precsim:G4,prime:q4,Prime:Y4,primes:z4,prnap:$4,prnE:H4,prnsim:V4,prod:W4,Product:K4,profalar:Q4,profline:X4,profsurf:j4,prop:Z4,Proportional:J4,Proportion:eL,propto:tL,prsim:nL,prurel:rL,Pscr:iL,pscr:aL,Psi:oL,psi:sL,puncsp:lL,Qfr:cL,qfr:uL,qint:dL,qopf:_L,Qopf:pL,qprime:mL,Qscr:fL,qscr:gL,quaternions:hL,quatint:EL,quest:SL,questeq:bL,quot:vL,QUOT:TL,rAarr:yL,race:CL,Racute:RL,racute:NL,radic:OL,raemptyv:AL,rang:IL,Rang:DL,rangd:xL,range:wL,rangle:ML,raquo:LL,rarrap:kL,rarrb:PL,rarrbfs:BL,rarrc:FL,rarr:UL,Rarr:GL,rArr:qL,rarrfs:YL,rarrhk:zL,rarrlp:$L,rarrpl:HL,rarrsim:VL,Rarrtl:WL,rarrtl:KL,rarrw:QL,ratail:XL,rAtail:jL,ratio:ZL,rationals:JL,rbarr:ek,rBarr:tk,RBarr:nk,rbbrk:rk,rbrace:ik,rbrack:ak,rbrke:ok,rbrksld:sk,rbrkslu:lk,Rcaron:ck,rcaron:uk,Rcedil:dk,rcedil:_k,rceil:pk,rcub:mk,Rcy:fk,rcy:gk,rdca:hk,rdldhar:Ek,rdquo:Sk,rdquor:bk,rdsh:vk,real:Tk,realine:yk,realpart:Ck,reals:Rk,Re:Nk,rect:Ok,reg:Ak,REG:Ik,ReverseElement:Dk,ReverseEquilibrium:xk,ReverseUpEquilibrium:wk,rfisht:Mk,rfloor:Lk,rfr:kk,Rfr:Pk,rHar:Bk,rhard:Fk,rharu:Uk,rharul:Gk,Rho:qk,rho:Yk,rhov:zk,RightAngleBracket:$k,RightArrowBar:Hk,rightarrow:Vk,RightArrow:Wk,Rightarrow:Kk,RightArrowLeftArrow:Qk,rightarrowtail:Xk,RightCeiling:jk,RightDoubleBracket:Zk,RightDownTeeVector:Jk,RightDownVectorBar:e3,RightDownVector:t3,RightFloor:n3,rightharpoondown:r3,rightharpoonup:i3,rightleftarrows:a3,rightleftharpoons:o3,rightrightarrows:s3,rightsquigarrow:l3,RightTeeArrow:c3,RightTee:u3,RightTeeVector:d3,rightthreetimes:_3,RightTriangleBar:p3,RightTriangle:m3,RightTriangleEqual:f3,RightUpDownVector:g3,RightUpTeeVector:h3,RightUpVectorBar:E3,RightUpVector:S3,RightVectorBar:b3,RightVector:v3,ring:T3,risingdotseq:y3,rlarr:C3,rlhar:R3,rlm:N3,rmoustache:O3,rmoust:A3,rnmid:I3,roang:D3,roarr:x3,robrk:w3,ropar:M3,ropf:L3,Ropf:k3,roplus:P3,rotimes:B3,RoundImplies:F3,rpar:U3,rpargt:G3,rppolint:q3,rrarr:Y3,Rrightarrow:z3,rsaquo:$3,rscr:H3,Rscr:V3,rsh:W3,Rsh:K3,rsqb:Q3,rsquo:X3,rsquor:j3,rthree:Z3,rtimes:J3,rtri:e5,rtrie:t5,rtrif:n5,rtriltri:r5,RuleDelayed:i5,ruluhar:a5,rx:o5,Sacute:s5,sacute:l5,sbquo:c5,scap:u5,Scaron:d5,scaron:_5,Sc:p5,sc:m5,sccue:f5,sce:g5,scE:h5,Scedil:E5,scedil:S5,Scirc:b5,scirc:v5,scnap:T5,scnE:y5,scnsim:C5,scpolint:R5,scsim:N5,Scy:O5,scy:A5,sdotb:I5,sdot:D5,sdote:x5,searhk:w5,searr:M5,seArr:L5,searrow:k5,sect:P5,semi:B5,seswar:F5,setminus:U5,setmn:G5,sext:q5,Sfr:Y5,sfr:z5,sfrown:$5,sharp:H5,SHCHcy:V5,shchcy:W5,SHcy:K5,shcy:Q5,ShortDownArrow:X5,ShortLeftArrow:j5,shortmid:Z5,shortparallel:J5,ShortRightArrow:eP,ShortUpArrow:tP,shy:nP,Sigma:rP,sigma:iP,sigmaf:aP,sigmav:oP,sim:sP,simdot:lP,sime:cP,simeq:uP,simg:dP,simgE:_P,siml:pP,simlE:mP,simne:fP,simplus:gP,simrarr:hP,slarr:EP,SmallCircle:SP,smallsetminus:bP,smashp:vP,smeparsl:TP,smid:yP,smile:CP,smt:RP,smte:NP,smtes:OP,SOFTcy:AP,softcy:IP,solbar:DP,solb:xP,sol:wP,Sopf:MP,sopf:LP,spades:kP,spadesuit:PP,spar:BP,sqcap:FP,sqcaps:UP,sqcup:GP,sqcups:qP,Sqrt:YP,sqsub:zP,sqsube:$P,sqsubset:HP,sqsubseteq:VP,sqsup:WP,sqsupe:KP,sqsupset:QP,sqsupseteq:XP,square:jP,Square:ZP,SquareIntersection:JP,SquareSubset:e6,SquareSubsetEqual:t6,SquareSuperset:n6,SquareSupersetEqual:r6,SquareUnion:i6,squarf:a6,squ:o6,squf:s6,srarr:l6,Sscr:c6,sscr:u6,ssetmn:d6,ssmile:_6,sstarf:p6,Star:m6,star:f6,starf:g6,straightepsilon:h6,straightphi:E6,strns:S6,sub:b6,Sub:v6,subdot:T6,subE:y6,sube:C6,subedot:R6,submult:N6,subnE:O6,subne:A6,subplus:I6,subrarr:D6,subset:x6,Subset:w6,subseteq:M6,subseteqq:L6,SubsetEqual:k6,subsetneq:P6,subsetneqq:B6,subsim:F6,subsub:U6,subsup:G6,succapprox:q6,succ:Y6,succcurlyeq:z6,Succeeds:$6,SucceedsEqual:H6,SucceedsSlantEqual:V6,SucceedsTilde:W6,succeq:K6,succnapprox:Q6,succneqq:X6,succnsim:j6,succsim:Z6,SuchThat:J6,sum:e7,Sum:t7,sung:n7,sup1:r7,sup2:i7,sup3:a7,sup:o7,Sup:s7,supdot:l7,supdsub:c7,supE:u7,supe:d7,supedot:_7,Superset:p7,SupersetEqual:m7,suphsol:f7,suphsub:g7,suplarr:h7,supmult:E7,supnE:S7,supne:b7,supplus:v7,supset:T7,Supset:y7,supseteq:C7,supseteqq:R7,supsetneq:N7,supsetneqq:O7,supsim:A7,supsub:I7,supsup:D7,swarhk:x7,swarr:w7,swArr:M7,swarrow:L7,swnwar:k7,szlig:P7,Tab:B7,target:F7,Tau:U7,tau:G7,tbrk:q7,Tcaron:Y7,tcaron:z7,Tcedil:$7,tcedil:H7,Tcy:V7,tcy:W7,tdot:K7,telrec:Q7,Tfr:X7,tfr:j7,there4:Z7,therefore:J7,Therefore:e8,Theta:t8,theta:n8,thetasym:r8,thetav:i8,thickapprox:a8,thicksim:o8,ThickSpace:s8,ThinSpace:l8,thinsp:c8,thkap:u8,thksim:d8,THORN:_8,thorn:p8,tilde:m8,Tilde:f8,TildeEqual:g8,TildeFullEqual:h8,TildeTilde:E8,timesbar:S8,timesb:b8,times:v8,timesd:T8,tint:y8,toea:C8,topbot:R8,topcir:N8,top:O8,Topf:A8,topf:I8,topfork:D8,tosa:x8,tprime:w8,trade:M8,TRADE:L8,triangle:k8,triangledown:P8,triangleleft:B8,trianglelefteq:F8,triangleq:U8,triangleright:G8,trianglerighteq:q8,tridot:Y8,trie:z8,triminus:$8,TripleDot:H8,triplus:V8,trisb:W8,tritime:K8,trpezium:Q8,Tscr:X8,tscr:j8,TScy:Z8,tscy:J8,TSHcy:e9,tshcy:t9,Tstrok:n9,tstrok:r9,twixt:i9,twoheadleftarrow:a9,twoheadrightarrow:o9,Uacute:s9,uacute:l9,uarr:c9,Uarr:u9,uArr:d9,Uarrocir:_9,Ubrcy:p9,ubrcy:m9,Ubreve:f9,ubreve:g9,Ucirc:h9,ucirc:E9,Ucy:S9,ucy:b9,udarr:v9,Udblac:T9,udblac:y9,udhar:C9,ufisht:R9,Ufr:N9,ufr:O9,Ugrave:A9,ugrave:I9,uHar:D9,uharl:x9,uharr:w9,uhblk:M9,ulcorn:L9,ulcorner:k9,ulcrop:P9,ultri:B9,Umacr:F9,umacr:U9,uml:G9,UnderBar:q9,UnderBrace:Y9,UnderBracket:z9,UnderParenthesis:$9,Union:H9,UnionPlus:V9,Uogon:W9,uogon:K9,Uopf:Q9,uopf:X9,UpArrowBar:j9,uparrow:Z9,UpArrow:J9,Uparrow:eB,UpArrowDownArrow:tB,updownarrow:nB,UpDownArrow:rB,Updownarrow:iB,UpEquilibrium:aB,upharpoonleft:oB,upharpoonright:sB,uplus:lB,UpperLeftArrow:cB,UpperRightArrow:uB,upsi:dB,Upsi:_B,upsih:pB,Upsilon:mB,upsilon:fB,UpTeeArrow:gB,UpTee:hB,upuparrows:EB,urcorn:SB,urcorner:bB,urcrop:vB,Uring:TB,uring:yB,urtri:CB,Uscr:RB,uscr:NB,utdot:OB,Utilde:AB,utilde:IB,utri:DB,utrif:xB,uuarr:wB,Uuml:MB,uuml:LB,uwangle:kB,vangrt:PB,varepsilon:BB,varkappa:FB,varnothing:UB,varphi:GB,varpi:qB,varpropto:YB,varr:zB,vArr:$B,varrho:HB,varsigma:VB,varsubsetneq:WB,varsubsetneqq:KB,varsupsetneq:QB,varsupsetneqq:XB,vartheta:jB,vartriangleleft:ZB,vartriangleright:JB,vBar:eF,Vbar:tF,vBarv:nF,Vcy:rF,vcy:iF,vdash:aF,vDash:oF,Vdash:sF,VDash:lF,Vdashl:cF,veebar:uF,vee:dF,Vee:_F,veeeq:pF,vellip:mF,verbar:fF,Verbar:gF,vert:hF,Vert:EF,VerticalBar:SF,VerticalLine:bF,VerticalSeparator:vF,VerticalTilde:TF,VeryThinSpace:yF,Vfr:CF,vfr:RF,vltri:NF,vnsub:OF,vnsup:AF,Vopf:IF,vopf:DF,vprop:xF,vrtri:wF,Vscr:MF,vscr:LF,vsubnE:kF,vsubne:PF,vsupnE:BF,vsupne:FF,Vvdash:UF,vzigzag:GF,Wcirc:qF,wcirc:YF,wedbar:zF,wedge:$F,Wedge:HF,wedgeq:VF,weierp:WF,Wfr:KF,wfr:QF,Wopf:XF,wopf:jF,wp:ZF,wr:JF,wreath:eU,Wscr:tU,wscr:nU,xcap:rU,xcirc:iU,xcup:aU,xdtri:oU,Xfr:sU,xfr:lU,xharr:cU,xhArr:uU,Xi:dU,xi:_U,xlarr:pU,xlArr:mU,xmap:fU,xnis:gU,xodot:hU,Xopf:EU,xopf:SU,xoplus:bU,xotime:vU,xrarr:TU,xrArr:yU,Xscr:CU,xscr:RU,xsqcup:NU,xuplus:OU,xutri:AU,xvee:IU,xwedge:DU,Yacute:xU,yacute:wU,YAcy:MU,yacy:LU,Ycirc:kU,ycirc:PU,Ycy:BU,ycy:FU,yen:UU,Yfr:GU,yfr:qU,YIcy:YU,yicy:zU,Yopf:$U,yopf:HU,Yscr:VU,yscr:WU,YUcy:KU,yucy:QU,yuml:XU,Yuml:jU,Zacute:ZU,zacute:JU,Zcaron:eG,zcaron:tG,Zcy:nG,zcy:rG,Zdot:iG,zdot:aG,zeetrf:oG,ZeroWidthSpace:sG,Zeta:lG,zeta:cG,zfr:uG,Zfr:dG,ZHcy:_G,zhcy:pG,zigrarr:mG,zopf:fG,Zopf:gG,Zscr:hG,zscr:EG,zwj:SG,zwnj:bG},Al=vG,$a=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Kn={},Ts={};function TG(e){var t,n,r=Ts[e];if(r)return r;for(r=Ts[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t=55296&&l<=57343){if(l>=55296&&l<=56319&&r+1=56320&&u<=57343)){d+=encodeURIComponent(e[r]+e[r+1]),r++;continue}d+="%EF%BF%BD";continue}d+=encodeURIComponent(e[r])}return d}Ei.defaultChars=";/?:@&=+$,-_.!~*'()#";Ei.componentChars="-_.!~*'()";var yG=Ei,ys={};function CG(e){var t,n,r=ys[e];if(r)return r;for(r=ys[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t=55296&&g<=57343?h+="\uFFFD\uFFFD\uFFFD":h+=String.fromCharCode(g),a+=6;continue}if((u&248)===240&&a+91114111?h+="\uFFFD\uFFFD\uFFFD\uFFFD":(g-=65536,h+=String.fromCharCode(55296+(g>>10),56320+(g&1023))),a+=9;continue}h+="\uFFFD"}return h})}Si.defaultChars=";/?:@&=+$,#";Si.componentChars="";var RG=Si,NG=function(t){var n="";return n+=t.protocol||"",n+=t.slashes?"//":"",n+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?n+="["+t.hostname+"]":n+=t.hostname||"",n+=t.port?":"+t.port:"",n+=t.pathname||"",n+=t.search||"",n+=t.hash||"",n};function _i(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var OG=/^([a-z0-9.+-]+:)/i,AG=/:[0-9]*$/,IG=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,DG=["<",">",'"',"`"," ","\r",` `," "],xG=["{","}","|","\\","^","`"].concat(DG),wG=["'"].concat(xG),Cs=["%","/","?",";","#"].concat(wG),Rs=["/","?","#"],MG=255,Ns=/^[+a-z0-9A-Z_-]{0,63}$/,LG=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Os={javascript:!0,"javascript:":!0},As={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function kG(e,t){if(e&&e instanceof _i)return e;var n=new _i;return n.parse(e,t),n}_i.prototype.parse=function(e,t){var n,r,a,l,u,c=e;if(c=c.trim(),!t&&e.split("#").length===1){var d=IG.exec(c);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}var f=OG.exec(c);if(f&&(f=f[0],a=f.toLowerCase(),this.protocol=f,c=c.substr(f.length)),(t||f||c.match(/^\/\/[^@\/]+@[^@\/]+/))&&(u=c.substr(0,2)==="//",u&&!(f&&Os[f])&&(c=c.substr(2),this.slashes=!0)),!Os[f]&&(u||f&&!As[f])){var g=-1;for(n=0;n127?E+="x":E+=C[v];if(!E.match(Ns)){var S=b.slice(0,n),A=b.slice(n+1),P=C.match(LG);P&&(S.push(P[1]),A.unshift(P[2])),A.length&&(c=A.join(".")+c),this.hostname=S.join(".");break}}}}this.hostname.length>MG&&(this.hostname=""),y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var F=c.indexOf("#");F!==-1&&(this.hash=c.substr(F),c=c.slice(0,F));var G=c.indexOf("?");return G!==-1&&(this.search=c.substr(G),c=c.slice(0,G)),c&&(this.pathname=c),As[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this};_i.prototype.parseHost=function(e){var t=AG.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var PG=kG;Kn.encode=yG;Kn.decode=RG;Kn.format=NG;Kn.parse=PG;var Qn={},Il=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Dl=/[\0-\x1F\x7F-\x9F]/,BG=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,xl=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;Qn.Any=Il;Qn.Cc=Dl;Qn.Cf=BG;Qn.P=$a;Qn.Z=xl;(function(e){function t(x){return Object.prototype.toString.call(x)}function n(x){return t(x)==="[object String]"}var r=Object.prototype.hasOwnProperty;function a(x,Y){return r.call(x,Y)}function l(x){var Y=Array.prototype.slice.call(arguments,1);return Y.forEach(function(W){if(!!W){if(typeof W!="object")throw new TypeError(W+"must be object");Object.keys(W).forEach(function(Z){x[Z]=W[Z]})}}),x}function u(x,Y,W){return[].concat(x.slice(0,Y),W,x.slice(Y+1))}function c(x){return!(x>=55296&&x<=57343||x>=64976&&x<=65007||(x&65535)===65535||(x&65535)===65534||x>=0&&x<=8||x===11||x>=14&&x<=31||x>=127&&x<=159||x>1114111)}function d(x){if(x>65535){x-=65536;var Y=55296+(x>>10),W=56320+(x&1023);return String.fromCharCode(Y,W)}return String.fromCharCode(x)}var f=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,g=/&([a-z#][a-z0-9]{1,31});/gi,h=new RegExp(f.source+"|"+g.source,"gi"),p=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,m=Al;function y(x,Y){var W=0;return a(m,Y)?m[Y]:Y.charCodeAt(0)===35&&p.test(Y)&&(W=Y[1].toLowerCase()==="x"?parseInt(Y.slice(2),16):parseInt(Y.slice(1),10),c(W))?d(W):x}function b(x){return x.indexOf("\\")<0?x:x.replace(f,"$1")}function C(x){return x.indexOf("\\")<0&&x.indexOf("&")<0?x:x.replace(h,function(Y,W,Z){return W||y(Y,Z)})}var E=/[&<>"]/,v=/[&<>"]/g,N={"&":"&","<":"<",">":">",'"':"""};function S(x){return N[x]}function A(x){return E.test(x)?x.replace(v,S):x}var P=/[.?*+^$[\]\\(){}|-]/g;function F(x){return x.replace(P,"\\$&")}function G(x){switch(x){case 9:case 32:return!0}return!1}function z(x){if(x>=8192&&x<=8202)return!0;switch(x){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var k=$a;function L(x){return k.test(x)}function w(x){switch(x){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function M(x){return x=x.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(x=x.replace(/ẞ/g,"\xDF")),x.toLowerCase().toUpperCase()}e.lib={},e.lib.mdurl=Kn,e.lib.ucmicro=Qn,e.assign=l,e.isString=n,e.has=a,e.unescapeMd=b,e.unescapeAll=C,e.isValidEntityCode=c,e.fromCodePoint=d,e.escapeHtml=A,e.arrayReplaceAt=u,e.isSpace=G,e.isWhiteSpace=z,e.isMdAsciiPunct=w,e.isPunctChar=L,e.escapeRE=F,e.normalizeReference=M})(Je);var bi={},FG=function(t,n,r){var a,l,u,c,d=-1,f=t.posMax,g=t.pos;for(t.pos=n+1,a=1;t.pos32))return d;if(a===41){if(l===0)break;l--}n++}return c===n||l!==0||(d.str=Is(t.slice(c,n)),d.lines=u,d.pos=n,d.ok=!0),d},GG=Je.unescapeAll,qG=function(t,n,r){var a,l,u=0,c=n,d={ok:!1,pos:0,lines:0,str:""};if(n>=r||(l=t.charCodeAt(n),l!==34&&l!==39&&l!==40))return d;for(n++,l===40&&(l=41);n"+Cn(e[t].content)+""};Xt.code_block=function(e,t,n,r,a){var l=e[t];return""+Cn(e[t].content)+` `};Xt.fence=function(e,t,n,r,a){var l=e[t],u=l.info?zG(l.info).trim():"",c="",d="",f,g,h,p,m;return u&&(h=u.split(/(\s+)/g),c=h[0],d=h.slice(2).join("")),n.highlight?f=n.highlight(l.content,c,d)||Cn(l.content):f=Cn(l.content),f.indexOf("fe.offsetTop+Te*1.5&&me.insert(` `)}return me}function lt(fe,me){var Te={},Oe=fe.style||{};return Oe.fontStyle&&ae(fe).fontStyle==="italic"&&(Te.italic=!0),Oe.fontWeight&&(ae(fe).fontWeight.startsWith("bold")||parseInt(ae(fe).fontWeight)>=700)&&(Te.bold=!0),Object.keys(Te).length>0&&(me=J(me,Te)),parseFloat(Oe.textIndent||0)>0&&(me=new h.default().insert(" ").concat(me)),me}function Me(fe,me){var Te=fe.data;if(fe.parentNode.tagName==="O:P")return me.insert(Te.trim());if(Te.trim().length===0&&fe.parentNode.classList.contains("ql-clipboard"))return me;if(!ae(fe.parentNode).whiteSpace.startsWith("pre")){var Oe=function(ze,$e){return $e=$e.replace(/[^\u00a0]/g,""),$e.length<1&&ze?" ":$e};Te=Te.replace(/\r\n/g," ").replace(/\n/g," "),Te=Te.replace(/\s\s+/g,Oe.bind(Oe,!0)),(fe.previousSibling==null&&Q(fe.parentNode)||fe.previousSibling!=null&&Q(fe.previousSibling))&&(Te=Te.replace(/^\s+/,Oe.bind(Oe,!1))),(fe.nextSibling==null&&Q(fe.parentNode)||fe.nextSibling!=null&&Q(fe.nextSibling))&&(Te=Te.replace(/\s+$/,Oe.bind(Oe,!1)))}return me.insert(Te)}r.default=X,r.matchAttributor=ue,r.matchBlot=Ee,r.matchNewline=Ye,r.matchSpacing=Ke,r.matchText=Me},function(n,r,a){Object.defineProperty(r,"__esModule",{value:!0});var l=function(){function y(b,C){for(var E=0;E '},function(n,r,a){Object.defineProperty(r,"__esModule",{value:!0});var l=function(){function y(b,C){for(var E=0;Em.right&&(b=m.right-y.right,this.root.style.left=h+b+"px"),y.leftm.bottom){var C=y.bottom-y.top,E=g.bottom-g.top+C;this.root.style.top=p-E+"px",this.root.classList.add("ql-flip")}return b}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),d}();r.default=c},function(n,r,a){Object.defineProperty(r,"__esModule",{value:!0});var l=function(){function k(L,w){var M=[],x=!0,Y=!1,W=void 0;try{for(var Z=L[Symbol.iterator](),ce;!(x=(ce=Z.next()).done)&&(M.push(ce.value),!(w&&M.length===w));x=!0);}catch(te){Y=!0,W=te}finally{try{!x&&Z.return&&Z.return()}finally{if(Y)throw W}}return M}return function(L,w){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return k(L,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function k(L,w,M){L===null&&(L=Function.prototype);var x=Object.getOwnPropertyDescriptor(L,w);if(x===void 0){var Y=Object.getPrototypeOf(L);return Y===null?void 0:k(Y,w,M)}else{if("value"in x)return x.value;var W=x.get;return W===void 0?void 0:W.call(M)}},c=function(){function k(L,w){for(var M=0;M','','',''].join(""),r.default=G},function(n,r,a){Object.defineProperty(r,"__esModule",{value:!0});var l=a(29),u=ve(l),c=a(36),d=a(38),f=a(64),g=a(65),h=ve(g),p=a(66),m=ve(p),y=a(67),b=ve(y),C=a(37),E=a(26),v=a(39),N=a(40),S=a(56),A=ve(S),P=a(68),F=ve(P),G=a(27),z=ve(G),k=a(69),L=ve(k),w=a(70),M=ve(w),x=a(71),Y=ve(x),W=a(72),Z=ve(W),ce=a(73),te=ve(ce),j=a(13),U=ve(j),X=a(74),J=ve(X),ae=a(75),le=ve(ae),Q=a(57),ie=ve(Q),_e=a(41),ue=ve(_e),Ee=a(28),Ie=ve(Ee),ke=a(59),qe=ve(ke),Ye=a(60),Ke=ve(Ye),lt=a(61),Me=ve(lt),fe=a(108),me=ve(fe),Te=a(62),Oe=ve(Te);function ve(ze){return ze&&ze.__esModule?ze:{default:ze}}u.default.register({"attributors/attribute/direction":d.DirectionAttribute,"attributors/class/align":c.AlignClass,"attributors/class/background":C.BackgroundClass,"attributors/class/color":E.ColorClass,"attributors/class/direction":d.DirectionClass,"attributors/class/font":v.FontClass,"attributors/class/size":N.SizeClass,"attributors/style/align":c.AlignStyle,"attributors/style/background":C.BackgroundStyle,"attributors/style/color":E.ColorStyle,"attributors/style/direction":d.DirectionStyle,"attributors/style/font":v.FontStyle,"attributors/style/size":N.SizeStyle},!0),u.default.register({"formats/align":c.AlignClass,"formats/direction":d.DirectionClass,"formats/indent":f.IndentClass,"formats/background":C.BackgroundStyle,"formats/color":E.ColorStyle,"formats/font":v.FontClass,"formats/size":N.SizeClass,"formats/blockquote":h.default,"formats/code-block":U.default,"formats/header":m.default,"formats/list":b.default,"formats/bold":A.default,"formats/code":j.Code,"formats/italic":F.default,"formats/link":z.default,"formats/script":L.default,"formats/strike":M.default,"formats/underline":Y.default,"formats/image":Z.default,"formats/video":te.default,"formats/list/item":y.ListItem,"modules/formula":J.default,"modules/syntax":le.default,"modules/toolbar":ie.default,"themes/bubble":me.default,"themes/snow":Oe.default,"ui/icons":ue.default,"ui/picker":Ie.default,"ui/icon-picker":Ke.default,"ui/color-picker":qe.default,"ui/tooltip":Me.default},!0),r.default=u.default},function(n,r,a){Object.defineProperty(r,"__esModule",{value:!0}),r.IndentClass=void 0;var l=function(){function b(C,E){for(var v=0;v0&&this.children.tail.format(F,G)}},{key:"formats",value:function(){return y({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(F,G){if(F instanceof v)u(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"insertBefore",this).call(this,F,G);else{var z=G==null?this.length():G.offset(this),k=this.split(z);k.parent.insertBefore(F,k)}}},{key:"optimize",value:function(F){u(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"optimize",this).call(this,F);var G=this.next;G!=null&&G.prev===this&&G.statics.blotName===this.statics.blotName&&G.domNode.tagName===this.domNode.tagName&&G.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(G.moveChildren(this),G.remove())}},{key:"replace",value:function(F){if(F.statics.blotName!==this.statics.blotName){var G=d.default.create(this.statics.defaultChild);F.moveChildren(G),this.appendChild(G)}u(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replace",this).call(this,F)}}]),A}(p.default);N.blotName="list",N.scope=d.default.Scope.BLOCK_BLOT,N.tagName=["OL","UL"],N.defaultChild="list-item",N.allowedChildren=[v],r.ListItem=v,r.default=N},function(n,r,a){Object.defineProperty(r,"__esModule",{value:!0});var l=a(56),u=c(l);function c(p){return p&&p.__esModule?p:{default:p}}function d(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function f(p,m){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:p}function g(p,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);p.prototype=Object.create(m&&m.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(p,m):p.__proto__=m)}var h=function(p){g(m,p);function m(){return d(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(u.default);h.blotName="italic",h.tagName=["EM","I"],r.default=h},function(n,r,a){Object.defineProperty(r,"__esModule",{value:!0});var l=function(){function y(b,C){for(var E=0;E-1?S?this.domNode.setAttribute(N,S):this.domNode.removeAttribute(N):u(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"format",this).call(this,N,S)}}],[{key:"create",value:function(N){var S=u(E.__proto__||Object.getPrototypeOf(E),"create",this).call(this,N);return typeof N=="string"&&S.setAttribute("src",this.sanitize(N)),S}},{key:"formats",value:function(N){return y.reduce(function(S,A){return N.hasAttribute(A)&&(S[A]=N.getAttribute(A)),S},{})}},{key:"match",value:function(N){return/\.(jpe?g|gif|png)$/.test(N)||/^data:image\/.+;base64/.test(N)}},{key:"sanitize",value:function(N){return(0,f.sanitize)(N,["http","https","data"])?N:"//:0"}},{key:"value",value:function(N){return N.getAttribute("src")}}]),E}(d.default.Embed);b.blotName="image",b.tagName="IMG",r.default=b},function(n,r,a){Object.defineProperty(r,"__esModule",{value:!0});var l=function(){function C(E,v){for(var N=0;N-1?S?this.domNode.setAttribute(N,S):this.domNode.removeAttribute(N):u(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"format",this).call(this,N,S)}}],[{key:"create",value:function(N){var S=u(E.__proto__||Object.getPrototypeOf(E),"create",this).call(this,N);return S.setAttribute("frameborder","0"),S.setAttribute("allowfullscreen",!0),S.setAttribute("src",this.sanitize(N)),S}},{key:"formats",value:function(N){return y.reduce(function(S,A){return N.hasAttribute(A)&&(S[A]=N.getAttribute(A)),S},{})}},{key:"sanitize",value:function(N){return f.default.sanitize(N)}},{key:"value",value:function(N){return N.getAttribute("src")}}]),E}(c.BlockEmbed);b.blotName="video",b.className="ql-video",b.tagName="IFRAME",r.default=b},function(n,r,a){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.FormulaBlot=void 0;var l=function(){function N(S,A){for(var P=0;P0||this.cachedText==null)&&(this.domNode.innerHTML=z(k),this.domNode.normalize(),this.attach()),this.cachedText=k)}}]),F}(y.default);N.className="ql-syntax";var S=new d.default.Attributor.Class("token","hljs",{scope:d.default.Scope.INLINE}),A=function(P){v(F,P),l(F,null,[{key:"register",value:function(){g.default.register(S,!0),g.default.register(N,!0)}}]);function F(G,z){C(this,F);var k=E(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,G,z));if(typeof k.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var L=null;return k.quill.on(g.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(L),L=setTimeout(function(){k.highlight(),L=null},k.options.interval)}),k.highlight(),k}return l(F,[{key:"highlight",value:function(){var z=this;if(!this.quill.selection.composing){this.quill.update(g.default.sources.USER);var k=this.quill.getSelection();this.quill.scroll.descendants(N).forEach(function(L){L.highlight(z.options.highlight)}),this.quill.update(g.default.sources.SILENT),k!=null&&this.quill.setSelection(k,g.default.sources.SILENT)}}}]),F}(p.default);A.DEFAULTS={highlight:function(){return window.hljs==null?null:function(P){var F=window.hljs.highlightAuto(P);return F.value}}(),interval:1e3},r.CodeBlock=N,r.CodeToken=S,r.default=A},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r){n.exports=' '},function(n,r,a){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BubbleTooltip=void 0;var l=function F(G,z,k){G===null&&(G=Function.prototype);var L=Object.getOwnPropertyDescriptor(G,z);if(L===void 0){var w=Object.getPrototypeOf(G);return w===null?void 0:F(w,z,k)}else{if("value"in L)return L.value;var M=L.get;return M===void 0?void 0:M.call(k)}},u=function(){function F(G,z){for(var k=0;k0&&Y===g.default.sources.USER){L.show(),L.root.style.left="0px",L.root.style.width="",L.root.style.width=L.root.offsetWidth+"px";var W=L.quill.getLines(M.index,M.length);if(W.length===1)L.position(L.quill.getBounds(M));else{var Z=W[W.length-1],ce=L.quill.getIndex(Z),te=Math.min(Z.length()-1,M.index+M.length-ce),j=L.quill.getBounds(new m.Range(ce,te));L.position(j)}}else document.activeElement!==L.textbox&&L.quill.hasFocus()&&L.hide()}),L}return u(G,[{key:"listen",value:function(){var k=this;l(G.prototype.__proto__||Object.getPrototypeOf(G.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){k.root.classList.remove("ql-editing")}),this.quill.on(g.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!k.root.classList.contains("ql-hidden")){var L=k.quill.getSelection();L!=null&&k.position(k.quill.getBounds(L))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(k){var L=l(G.prototype.__proto__||Object.getPrototypeOf(G.prototype),"position",this).call(this,k),w=this.root.querySelector(".ql-tooltip-arrow");if(w.style.marginLeft="",L===0)return L;w.style.marginLeft=-1*L-w.offsetWidth/2+"px"}}]),G}(h.BaseTooltip);P.TEMPLATE=['','
','','',"
"].join(""),r.BubbleTooltip=P,r.default=A},function(n,r,a){n.exports=a(63)}]).default})})(Rc);var Vt=Yu(Rc.exports);function di(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?di=function(t){return typeof t}:di=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},di(e)}function Nc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sl(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(d){throw d},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l=!0,u=!1,c;return{s:function(){n=n.call(e)},n:function(){var d=n.next();return l=d.done,d},e:function(d){u=!0,c=d},f:function(){try{!l&&n.return!=null&&n.return()}finally{if(u)throw c}}}}var rn={TAB:9,ENTER:13,ESCAPE:27,UP:38,DOWN:40};function rJ(e,t,n){var r=e;return Object.keys(t).forEach(function(a){n.indexOf(a)>-1?r.dataset[a]=t[a]:delete r.dataset[a]}),r}function iJ(e,t){return t.reduce(function(n,r){var a=e.lastIndexOf(r);return a>n.mentionCharIndex?{mentionChar:r,mentionCharIndex:a}:{mentionChar:n.mentionChar,mentionCharIndex:n.mentionCharIndex}},{mentionChar:null,mentionCharIndex:-1})}function aJ(e,t){return t.test(e)}function oJ(e,t,n){return e>-1?!(n&&!(e===0||!!t[e-1].match(/\s/g))):!1}function sJ(e){return di(e)!=="object"||e===null?e:JSON.parse(JSON.stringify(e))}var lJ=Vt.import("blots/embed"),Ai=function(e){XZ(n,e);var t=JZ(n);function n(r,a){var l;return Nc(this,n),l=t.call(this,r,a),bl(Ua(l),"hoverHandler",void 0),bl(Ua(l),"hoverHandler",void 0),l.clickHandler=null,l.hoverHandler=null,l.mounted=!1,l}return Oc(n,[{key:"attach",value:function(){Vn(fn(n.prototype),"attach",this).call(this),this.mounted||(this.mounted=!0,this.clickHandler=this.getClickHandler(),this.hoverHandler=this.getHoverHandler(),this.domNode.addEventListener("click",this.clickHandler,!1),this.domNode.addEventListener("mouseenter",this.hoverHandler,!1))}},{key:"detach",value:function(){Vn(fn(n.prototype),"detach",this).call(this),this.mounted=!1,this.clickHandler&&(this.domNode.removeEventListener("click",this.clickHandler),this.clickHandler=null)}},{key:"getClickHandler",value:function(){var a=this;return function(l){var u=a.buildEvent("mention-clicked",l);window.dispatchEvent(u),l.preventDefault()}}},{key:"getHoverHandler",value:function(){var a=this;return function(l){var u=a.buildEvent("mention-hovered",l);window.dispatchEvent(u),l.preventDefault()}}},{key:"buildEvent",value:function(a,l){var u=new Event(a,{bubbles:!0,cancelable:!0});return u.value=hi({},this.domNode.dataset),u.event=l,u}}],[{key:"create",value:function(a){var l=Vn(fn(n),"create",this).call(this),u=document.createElement("span");return u.className="ql-mention-denotation-char",u.innerHTML=a.denotationChar,l.appendChild(u),l.innerHTML+=a.value,n.setDataValues(l,a)}},{key:"setDataValues",value:function(a,l){var u=a;return Object.keys(l).forEach(function(c){u.dataset[c]=l[c]}),u}},{key:"value",value:function(a){return a.dataset}}]),n}(lJ);Ai.blotName="mention";Ai.tagName="span";Ai.className="mention";Vt.register(Ai);var cJ=function(){function e(t,n){var r=this;Nc(this,e),this.isOpen=!1,this.itemIndex=0,this.mentionCharPos=null,this.cursorPos=null,this.values=[],this.suspendMouseEnter=!1,this.existingSourceExecutionToken=null,this.quill=t,this.options={source:null,renderItem:function(d){return"".concat(d.value)},renderLoading:function(){return null},onSelect:function(d,f){f(d)},mentionDenotationChars:["@"],showDenotationChar:!0,allowedChars:/^[a-zA-Z0-9_]*$/,minChars:0,maxChars:31,offsetTop:2,offsetLeft:0,isolateCharacter:!1,fixMentionsToQuill:!1,positioningStrategy:"normal",defaultMenuOrientation:"bottom",blotName:"mention",dataAttributes:["id","value","denotationChar","link","target","disabled"],linkTarget:"_blank",onOpen:function(){return!0},onBeforeClose:function(){return!0},onClose:function(){return!0},listItemClass:"ql-mention-list-item",mentionContainerClass:"ql-mention-list-container",mentionListClass:"ql-mention-list",spaceAfterInsert:!0,selectKeys:[rn.ENTER]},hi(this.options,n,{dataAttributes:Array.isArray(n.dataAttributes)?this.options.dataAttributes.concat(n.dataAttributes):this.options.dataAttributes}),this.mentionContainer=document.createElement("div"),this.mentionContainer.className=this.options.mentionContainerClass?this.options.mentionContainerClass:"",this.mentionContainer.style.cssText="display: none; position: absolute;",this.mentionContainer.onmousemove=this.onContainerMouseMove.bind(this),this.options.fixMentionsToQuill&&(this.mentionContainer.style.width="auto"),this.mentionList=document.createElement("ul"),this.mentionList.id="quill-mention-list",t.root.setAttribute("aria-owns","quill-mention-list"),this.mentionList.className=this.options.mentionListClass?this.options.mentionListClass:"",this.mentionContainer.appendChild(this.mentionList),t.on("text-change",this.onTextChange.bind(this)),t.on("selection-change",this.onSelectionChange.bind(this)),t.container.addEventListener("paste",function(){setTimeout(function(){var c=t.getSelection();r.onSelectionChange(c)})}),t.keyboard.addBinding({key:rn.TAB},this.selectHandler.bind(this)),t.keyboard.bindings[rn.TAB].unshift(t.keyboard.bindings[rn.TAB].pop());var a=nJ(this.options.selectKeys),l;try{for(a.s();!(l=a.n()).done;){var u=l.value;t.keyboard.addBinding({key:u},this.selectHandler.bind(this))}}catch(c){a.e(c)}finally{a.f()}t.keyboard.bindings[rn.ENTER].unshift(t.keyboard.bindings[rn.ENTER].pop()),t.keyboard.addBinding({key:rn.ESCAPE},this.escapeHandler.bind(this)),t.keyboard.addBinding({key:rn.UP},this.upHandler.bind(this)),t.keyboard.addBinding({key:rn.DOWN},this.downHandler.bind(this))}return Oc(e,[{key:"selectHandler",value:function(){return this.isOpen&&!this.existingSourceExecutionToken?(this.selectItem(),!1):!0}},{key:"escapeHandler",value:function(){return this.isOpen?(this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.hideMentionList(),!1):!0}},{key:"upHandler",value:function(){return this.isOpen&&!this.existingSourceExecutionToken?(this.prevItem(),!1):!0}},{key:"downHandler",value:function(){return this.isOpen&&!this.existingSourceExecutionToken?(this.nextItem(),!1):!0}},{key:"showMentionList",value:function(){this.options.positioningStrategy==="fixed"?document.body.appendChild(this.mentionContainer):this.quill.container.appendChild(this.mentionContainer),this.mentionContainer.style.visibility="hidden",this.mentionContainer.style.display="",this.mentionContainer.scrollTop=0,this.setMentionContainerPosition(),this.setIsOpen(!0)}},{key:"hideMentionList",value:function(){this.options.onBeforeClose(),this.mentionContainer.style.display="none",this.mentionContainer.remove(),this.setIsOpen(!1),this.quill.root.removeAttribute("aria-activedescendant")}},{key:"highlightItem",value:function(){for(var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,r=0;rc-a&&(this.mentionContainer.scrollTop+=l-c+a)}}},{key:"getItemData",value:function(){var n=this.mentionList.childNodes[this.itemIndex].dataset.link,r=typeof n!="undefined",a=this.mentionList.childNodes[this.itemIndex].dataset.target;return r&&(this.mentionList.childNodes[this.itemIndex].dataset.value='-1&&(p=setTimeout(function(){g(),h(),a({statusText:"Request Timeout",status:408})},n)),window[u]=function(y){clearTimeout(p),g(),h(),r(y)};var m=document.createElement("script");m.addEventListener("error",f),m.src=e+(/\?/.test(e)?"&":"?")+d,document.body.appendChild(m)})}var dJ=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"chat-emoji-wrapper"},[n("div",{staticClass:"chat-emoji-box"},[e.type==="emosearch"?n("div",{staticClass:"chat-emoji-emosearch"},[n("Input",{attrs:{clearable:"",placeholder:e.$L("\u641C\u7D22\u8868\u60C5")},model:{value:e.emosearchKey,callback:function(r){e.emosearchKey=r},expression:"emosearchKey"}},[n("Icon",{class:{"icon-loading":e.emosearchLoad},attrs:{slot:"prefix",type:e.emosearchLoad?"ios-loading":"ios-search"},slot:"prefix"})],1)],1):e.type==="emoji"?n("div",{staticClass:"chat-emoji-nav"},e._l(e.emojiNavList,function(r){var a;return n("div",{key:r.type,class:(a={},a[`i-${r.name}`]=!0,a.active=r.type===e.emojiNavActive,a),domProps:{innerHTML:e._s(r.content)},on:{click:function(l){e.emojiNavActive=r.type}}})}),0):e._e(),n("Scrollbar",[n("ul",{class:[e.type,"no-dark-content"]},e._l(e.list,function(r){return n("li",{on:{click:function(a){return e.onSelect(a,r)}}},[r.type==="emoticon"?n("img",{attrs:{src:r.src,title:r.name,alt:r.name}}):n("span",{attrs:{title:r.name},domProps:{innerHTML:e._s(r.html)}})])}),0)])],1),e.onlyEmoji?e._e():n("ul",{staticClass:"chat-emoji-menu"},[n("li",{class:{active:e.type==="emosearch"},on:{click:function(r){e.type="emosearch"}}},[n("i",{staticClass:"taskfont"},[e._v("\uE6F8")])]),n("li",{class:{active:e.type==="emoji"},on:{click:function(r){e.type="emoji"}}},[n("span",{staticClass:"no-dark-content"},[e._v("\u{1F600}")])]),e._l(e.emoticonData,function(r){return n("li",{class:{active:e.type==="emoticon"&&e.emoticonPath==r.path},on:{click:function(a){return e.onEmoticon(r.path)}}},[n("img",{attrs:{title:r.name,alt:r.name,src:r.src}})])})],2)])},_J=[];const pJ={name:"ChatEmoji",props:{searchKey:{type:String,default:""},onlyEmoji:{type:Boolean,default:!1}},data(){return{type:"emoji",emojiNavActive:"p",emojiNavList:[{type:"p",name:"people",content:''},{type:"n",name:"nature",content:` -`},{type:"d",name:"food",content:''},{type:"s",name:"symbols",content:''},{type:"a",name:"activity",content:''},{type:"t",name:"travel",content:''},{type:"o",name:"objects",content:''},{type:"f",name:"flags",content:''}],emoticonPath:"",emosearchKey:"",emosearchCache:null,emosearchLoad:!1,emosearchTimer:null,emosearchList:[],emojiData:[],emoticonData:[]}},mounted(){this.initData()},watch:{type(){this.onEmosearch()},emosearchKey(){this.onEmosearch()},searchKey:{handler(e){this.emosearchKey=e},immediate:!0}},computed:{list(){if(this.type==="emoji")return this.emojiData.filter(e=>e.category===this.emojiNavActive);if(this.type==="emosearch")return this.emosearchList;if(this.type==="emoticon"){const e=this.emoticonData.find(({path:t})=>t===this.emoticonPath);if(e)return e.list}return[]}},methods:{initData(){$A.loadScriptS(["js/emoji.all.js","js/emoticon.all.js"]).then(e=>{const t=$A.apiUrl("../images/emoticon");$A.isArray(window.emojiData)&&(this.emojiData=window.emojiData.sort(function(n,r){return n.emoji_order-r.emoji_order}).map(n=>({type:"emoji",name:n.name,category:n.category,html:n.code_decimal}))),$A.isArray(window.emoticonData)&&(this.emoticonData=window.emoticonData.map(n=>Object.assign(n,{src:`${t}/${n.path}/${n.icon}`,list:n.list.map(r=>Object.assign(r,{type:"emoticon",asset:`images/emoticon/${n.path}/${r.path}`,src:`${t}/${n.path}/${r.path}`}))})))})},onEmosearch(){this.type!=="emosearch"||this.emosearchCache===this.emosearchKey||(this.emosearchCache=this.emosearchKey,this.emosearchLoad=!0,this.emosearchTimer&&clearTimeout(this.emosearchTimer),this.emosearchTimer=setTimeout(e=>{uJ("https://pic.sogou.com/napi/wap/pic",{query:this.emosearchKey+" \u8868\u60C5"}).then(t=>{if(this.emosearchList=[],t.status===0){const n=t.data.items;n.length>0&&(this.emosearchList=n.map(r=>({type:"emoticon",asset:"emosearch",name:r.title,src:r.thumbUrl,height:r.thumbHeight,width:r.thumbWidth})))}this.emosearchList.length===0&&$A.noticeWarning("\u6CA1\u6709\u641C\u7D22\u5230\u4EFB\u4F55\u8868\u60C5")}).catch(t=>{this.emosearchList=[],$A.noticeWarning("\u641C\u7D22\u7ED3\u679C\u4E3A\u7A7A")}).finally(t=>{this.emosearchLoad=!1})},300))},onEmoticon(e){this.type="emoticon",this.emoticonPath=e},onSelect(e,t){t.type==="emoji"?this.$emit("on-select",{type:"emoji",text:e.target.innerText}):this.$emit("on-select",t)}}},Tl={};var mJ=Qt(pJ,dJ,_J,!1,fJ,null,null,null);function fJ(e){for(let t in Tl)this[t]=Tl[t]}var Ic=function(){return mJ.exports}();const yl="ontouchend"in document;var gJ={bind(e,t){let n=!1;e.__touchMouseDown__=r=>{r.preventDefault(),n=!0,t.value("down",r)},e.__touchMouseMove__=r=>{n&&t.value("move",r)},e.__touchMouseUp__=r=>{n&&(n=!1,t.value("up"))},yl?(e.addEventListener("touchstart",e.__touchMouseDown__),e.addEventListener("touchmove",e.__touchMouseMove__),e.addEventListener("touchend",e.__touchMouseUp__)):(e.addEventListener("mousedown",e.__touchMouseDown__),document.addEventListener("mousemove",e.__touchMouseMove__),document.addEventListener("mouseup",e.__touchMouseUp__))},update(){},unbind(e){yl?(e.removeEventListener("touchstart",e.__touchMouseDown__),e.removeEventListener("touchmove",e.__touchMouseMove__),e.removeEventListener("touchend",e.__touchMouseUp__)):(e.removeEventListener("mousedown",e.__touchMouseDown__),document.removeEventListener("mousemove",e.__touchMouseMove__),document.removeEventListener("mouseup",e.__touchMouseUp__)),delete e.__touchMouseDown__,delete e.__touchMouseMove__,delete e.__touchMouseUp__}};function Yn(e){return e===void 0&&(e=document.body),e===!0?document.body:e instanceof window.Node?e:document.querySelector(e)}const hJ={inserted(e,{value:t},n){if(e.dataset&&e.dataset.transfer!=="true")return!1;e.className=e.className?e.className+" v-transfer-dom":"v-transfer-dom";const r=e.parentNode;if(!r)return;const a=document.createComment("");let l=!1;t!==!1&&(r.replaceChild(a,e),Yn(t).appendChild(e),l=!0),e.__transferDomData||(e.__transferDomData={parentNode:r,home:a,target:Yn(t),hasMovedOut:l})},componentUpdated(e,{value:t}){if(e.dataset&&e.dataset.transfer!=="true")return!1;const n=e.__transferDomData;if(!n)return;const r=n.parentNode,a=n.home,l=n.hasMovedOut;!l&&t?(r.replaceChild(a,e),Yn(t).appendChild(e),e.__transferDomData=Object.assign({},e.__transferDomData,{hasMovedOut:!0,target:Yn(t)})):l&&t===!1?(r.replaceChild(e,a),e.__transferDomData=Object.assign({},e.__transferDomData,{hasMovedOut:!1,target:Yn(t)})):t&&Yn(t).appendChild(e)},unbind(e){if(e.dataset&&e.dataset.transfer!=="true")return!1;e.className=e.className.replace("v-transfer-dom",""),e.__transferDomData&&(e.__transferDomData.hasMovedOut===!0&&e.__transferDomData.parentNode&&e.__transferDomData.parentNode.appendChild(e),e.__transferDomData=null)}};var EJ=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.hidePopover,expression:"hidePopover"}],staticClass:"chat-input-box",class:e.boxClass},[n("div",{staticClass:"chat-input-quick-emoji"},[n("EPopover",{ref:"emojiQuickRef",attrs:{visibleArrow:!1,transition:"",placement:"top-end",popperClass:"chat-quick-emoji-popover"},model:{value:e.emojiQuickShow,callback:function(r){e.emojiQuickShow=r},expression:"emojiQuickShow"}},[n("div",{attrs:{slot:"reference"},slot:"reference"}),n("ul",{staticClass:"chat-quick-emoji-wrapper"},e._l(e.emojiQuickItems,function(r){return n("li",{on:{click:function(a){return e.onEmojiQuick(r)}}},[n("img",{attrs:{title:r.name,alt:r.name,src:r.src}})])}),0)])],1),n("div",{staticClass:"chat-input-wrapper",on:{click:function(r){return r.stopPropagation(),e.focus.apply(null,arguments)}}},[e.quoteData?n("div",{staticClass:"chat-quote"},[e.quoteUpdate?n("div",{staticClass:"quote-label"},[e._v(e._s(e.$L("\u7F16\u8F91\u6D88\u606F")))]):n("UserAvatar",{attrs:{userid:e.quoteData.userid,"show-icon":!1,"show-name":!0,"tooltip-disabled":!0}}),n("div",{staticClass:"quote-desc"},[e._v(e._s(e.$A.getMsgSimpleDesc(e.quoteData)))]),n("i",{staticClass:"taskfont",on:{click:function(r){return r.stopPropagation(),e.cancelQuote.apply(null,arguments)}}},[e._v("\uE6E5")])],1):e._e(),n("div",{ref:"editor",staticClass:"no-dark-content",style:e.editorStyle,on:{click:function(r){return r.stopPropagation(),e.onClickEditor.apply(null,arguments)},paste:e.handlePaste}}),n("ul",{staticClass:"chat-toolbar",on:{click:function(r){r.stopPropagation()}}},[n("li",[e.emojiBottom?n("ETooltip",{ref:"emojiTip",attrs:{disabled:e.$isEEUiApp||e.windowTouch||e.showEmoji,placement:"top",content:e.$L("\u8868\u60C5")}},[n("i",{staticClass:"taskfont",on:{click:function(r){e.showEmoji=!e.showEmoji}}},[e._v("\uE7AD")])]):n("EPopover",{attrs:{visibleArrow:!1,placement:"top",popperClass:"chat-input-emoji-popover"},model:{value:e.showEmoji,callback:function(r){e.showEmoji=r},expression:"showEmoji"}},[n("ETooltip",{ref:"emojiTip",attrs:{slot:"reference",disabled:e.$isEEUiApp||e.windowTouch||e.showEmoji,placement:"top",content:e.$L("\u8868\u60C5")},slot:"reference"},[n("i",{staticClass:"taskfont"},[e._v("\uE7AD")])]),e.showEmoji?n("ChatEmoji",{attrs:{searchKey:e.emojiQuickKey},on:{"on-select":e.onSelectEmoji}}):e._e()],1)],1),n("li",[n("ETooltip",{attrs:{placement:"top",disabled:e.$isEEUiApp||e.windowTouch,content:e.$L("\u9009\u62E9\u6210\u5458")}},[n("i",{staticClass:"taskfont",on:{click:function(r){return e.onToolbar("user")}}},[e._v("\uE78F")])])],1),n("li",[n("ETooltip",{attrs:{placement:"top",disabled:e.$isEEUiApp||e.windowTouch,content:e.$L("\u9009\u62E9\u4EFB\u52A1")}},[n("i",{staticClass:"taskfont",on:{click:function(r){return e.onToolbar("task")}}},[e._v("\uE7D6")])])],1),n("li",[n("EPopover",{attrs:{visibleArrow:!1,placement:"top",popperClass:"chat-input-more-popover"},model:{value:e.showMore,callback:function(r){e.showMore=r},expression:"showMore"}},[n("ETooltip",{ref:"moreTip",attrs:{slot:"reference",disabled:e.$isEEUiApp||e.windowTouch||e.showMore,placement:"top",content:e.$L("\u5C55\u5F00")},slot:"reference"},[n("i",{staticClass:"taskfont"},[e._v("\uE790")])]),e.recordReady?n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("meeting")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7C1")]),e._v(" "+e._s(e.$L("\u65B0\u4F1A\u8BAE"))+" ")]):e._e(),e.canCall?n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("call")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7BA")]),e._v(" "+e._s(e.$L("\u62E8\u6253\u7535\u8BDD"))+" ")]):e._e(),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("image")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7BC")]),e._v(" "+e._s(e.$L("\u53D1\u9001\u56FE\u7247"))+" ")]),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("file")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7C0")]),e._v(" "+e._s(e.$L("\u4E0A\u4F20\u6587\u4EF6"))+" ")]),e.canAnon?n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("anon")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE690")]),e._v(" "+e._s(e.$L("\u533F\u540D\u6D88\u606F"))+" ")]):e._e(),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("full")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE6A7")]),e._v(" "+e._s(e.$L("\u5168\u5C4F\u8F93\u5165"))+" ")])],1)],1),n("li",{directives:[{name:"touchmouse",rawName:"v-touchmouse",value:e.clickSend,expression:"clickSend"},{name:"longpress",rawName:"v-longpress",value:{callback:e.longSend,delay:300},expression:"{callback: longSend, delay: 300}"}],ref:"chatSend",staticClass:"chat-send",class:e.sendClass},[n("EPopover",{attrs:{visibleArrow:!1,trigger:"manual",placement:"top",popperClass:"chat-input-more-popover"},model:{value:e.showMenu,callback:function(r){e.showMenu=r},expression:"showMenu"}},[n("ETooltip",{ref:"sendTip",attrs:{slot:"reference",placement:"top",disabled:e.$isEEUiApp||e.windowTouch||e.showMenu,content:e.$L(e.sendContent)},slot:"reference"},[e.loading?n("div",[n("div",{staticClass:"chat-load"},[n("Loading")],1)]):n("div",[n("transition",{attrs:{name:"mobile-send"}},[e.sendClass==="recorder"?n("i",{staticClass:"taskfont"},[e._v("\uE609")]):e._e()]),n("transition",{attrs:{name:"mobile-send"}},[e.sendClass!=="recorder"?n("i",{staticClass:"taskfont"},[e._v("\uE606")]):e._e()])],1)]),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onSend("silence")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7D7")]),e._v(" "+e._s(e.$L("\u65E0\u58F0\u53D1\u9001"))+" ")]),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onSend("md")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE647")]),e._v(" "+e._s(e.$L("Markdown \u683C\u5F0F\u53D1\u9001"))+" ")])],1)],1),n("li",{staticClass:"chat-record-recwave"},[n("div",{ref:"recwave"})])]),n("div",{staticClass:"chat-cover",on:{click:function(r){return r.stopPropagation(),e.onClickCover.apply(null,arguments)}}})]),e.emojiBottom&&e.showEmoji?n("ChatEmoji",{attrs:{searchKey:e.emojiQuickKey},on:{"on-select":e.onSelectEmoji}}):e._e(),n("transition",{attrs:{name:"fade"}},[["ready","ing"].includes(e.recordState)?n("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],staticClass:"chat-input-record-transfer",class:{cancel:e.touchLimitY},style:e.recordTransferStyle,attrs:{"data-transfer":!0},on:{click:e.stopRecord}},[e.recordDuration>0?n("div",{staticClass:"record-duration"},[e._v(e._s(e.recordFormatDuration))]):n("div",{staticClass:"record-loading"},[n("Loading")],1),n("div",{staticClass:"record-cancel",on:{click:function(r){return r.stopPropagation(),e.stopRecord(!0)}}},[e._v(e._s(e.$L(e.touchLimitY?"\u677E\u5F00\u53D6\u6D88":"\u5411\u4E0A\u6ED1\u52A8\u53D6\u6D88")))])]):e._e()]),n("Modal",{attrs:{"mask-closable":!1,beforeClose:e.onFullBeforeClose,"class-name":"chat-input-full-input","footer-hide":"",fullscreen:""},model:{value:e.fullInput,callback:function(r){e.fullInput=r},expression:"fullInput"}},[n("div",{staticClass:"chat-input-box"},[n("div",{staticClass:"chat-input-wrapper"},[n("div",{ref:"editorFull",staticClass:"no-dark-content"})])]),n("i",{staticClass:"taskfont",attrs:{slot:"close"},slot:"close"},[e._v("\uE6AB")])])],1)},SJ=[];const bJ={name:"ChatInput",components:{ChatEmoji:Ic},directives:{touchmouse:gJ,TransferDom:hJ,clickoutside:zu,longpress:za},props:{value:{type:[String,Number],default:""},dialogId:{type:Number,default:0},taskId:{type:Number,default:0},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},disabledRecord:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},enterSend:{type:[String,Boolean],default:null},emojiBottom:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},maxlength:{type:Number},defaultMenuOrientation:{type:String,default:"top"}},data(){return{quill:null,isFocus:!1,rangeIndex:0,_content:"",_options:{},mentionMode:"",userList:null,userCache:null,taskList:null,fileList:{},showMenu:!1,showMore:!1,showEmoji:!1,emojiQuickShow:!1,emojiQuickKey:"",emojiQuickItems:[],observer:null,wrapperWidth:0,wrapperHeight:0,editorHeight:0,recordReady:!1,recordRec:null,recordBlob:null,recordWave:null,recordInter:null,recordState:"stop",recordDuration:0,touchStart:{},touchLimitX:!1,touchLimitY:!1,pasteClean:!0,isSpecVersion:this.checkIOSVersion(),emojiTimer:null,scrollTimer:null,selectTimer:null,textTimer:null,fileTimer:null,moreTimer:null,fullInput:!1,fullQuill:null}},mounted(){this.init(),this.observer=new ResizeObserver(e=>{e.some(({target:t,contentRect:n})=>{t===this.$el?(this.wrapperWidth=n.width,this.wrapperHeight=n.height):t===this.$refs.editor&&(this.editorHeight=n.height)})}),this.observer.observe(this.$el),this.observer.observe(this.$refs.editor),this.recordInter=setInterval(e=>{this.recordState==="ing"&&(this.__recordDuration&&this.__recordDuration===this.recordDuration?(this.__recordDuration=null,this.stopRecord(!0),$A.messageWarning("\u5F55\u97F3\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")):this.__recordDuration=this.recordDuration)},1e3),this.$isEEUiApp&&(window.__onPermissionRequest=(e,t)=>{e==="recordAudio"&&t===!1&&this.stopRecord(!0)})},beforeDestroy(){this.quill&&(this.quill=null),this.recordRec&&(this.recordRec=null),this.observer&&(this.observer.disconnect(),this.observer=null),this.recordInter&&clearInterval(this.recordInter)},computed:{...Wn(["cacheProjects","cacheTasks","cacheUserBasic","cacheDialogs","dialogMsgs"]),isEnterSend({enterSend:e}){return typeof e=="boolean"?e:!0},canCall(){return this.dialogData.type==="user"&&!this.dialogData.bot&&this.$isEEUiApp},canAnon(){return this.dialogData.type==="user"&&!this.dialogData.bot},editorStyle(){const{wrapperWidth:e,editorHeight:t,value:n}=this,r={};return n.length<10&&(r.height="30px"),e>0&&t>0&&(e<280||t>40)&&(r.width="100%"),r},recordTransferStyle(){const{windowScrollY:e}=this;return e>0?{marginTop:e/2+"px"}:null},boxClass(){const e=[];return["ready","ing"].includes(this.recordState)&&(this.recordState==="ing"&&this.recordDuration>0?e.push("record-progress"):e.push("record-ready")),this.showMenu&&e.push("show-menu"),this.showMore&&e.push("show-more"),this.showEmoji&&e.push("show-emoji"),this.mentionMode&&e.push(this.mentionMode),e},sendClass(){return this.value?"sender":this.recordReady?"recorder":""},sendContent(){const{sendTip:e}=this.$refs;return e&&e.$refs.popper&&(e.$refs.popper.style.visibility="hidden",e.showPopper=!1,setTimeout(t=>{e.$refs.popper&&(e.$refs.popper.style.visibility="visible")},300)),this.sendClass==="recorder"?"\u957F\u6309\u5F55\u97F3":"\u53D1\u9001"},recordFormatDuration(){const{recordDuration:e}=this;let t=Math.floor(e/6e4),n=Math.floor(e/1e3)%60,r=("00"+e%1e3).substr(-2);return t<10&&(t=`0${t}`),n<10&&(n=`0${n}`),`${t}:${n}\u2033${r}`},dialogData(){return this.dialogId>0?this.cacheDialogs.find(({id:e})=>e==this.dialogId)||{}:{}},quoteUpdate(){return this.dialogData.extra_quote_type==="update"},quoteData(){const{extra_quote_id:e}=this.dialogData;return e?this.dialogMsgs.find(t=>t.id===e):null}},watch:{value(e){this.quill&&(e&&e!==this._content?(this._content=e,this.setContent(e)):e||this.quill.setText("")),this.$store.dispatch("saveDialogDraft",{id:this.dialogId,extra_draft_content:e})},disabled(e){var t;(t=this.quill)==null||t.enable(!e)},dialogId(){this.userList=null,this.userCache=null,this.taskList=null,this.fileList={},this.loadInputDraft()},taskId(){this.userList=null,this.userCache=null,this.taskList=null,this.fileList={},this.loadInputDraft()},"dialogData.extra_draft_content"(){this.isFocus||this.loadInputDraft()},showMenu(e){e&&(this.showMore=!1,this.showEmoji=!1,this.emojiQuickShow=!1)},showMore(e){e&&(this.showMenu=!1,this.showEmoji=!1,this.emojiQuickShow=!1)},showEmoji(e){if(this.emojiBottom&&(e?this.quill.enable(!1):this.disabled||this.quill.enable(!0)),e){let t=this.value.replace(/ /g," ");if(t=t.replace(/<[^>]+>/g,""),t&&t.indexOf(" ")===-1&&t.length>=1&&t.length<=4?this.emojiQuickKey=t:this.emojiQuickKey="",this.showMenu=!1,this.showMore=!1,this.emojiQuickShow=!1,this.quill){const n=this.quill.selection.savedRange;this.rangeIndex=n?n.index:0}}else this.rangeIndex>0&&this.quill.setSelection(this.rangeIndex);this.$emit("on-emoji-visible-change",e)},emojiQuickShow(e){e&&(this.showMenu=!1,this.showMore=!1,this.showEmoji=!1)},isFocus(e){this.scrollTimer&&clearInterval(this.scrollTimer),e?(this.$emit("on-focus"),this.hidePopover(),this.isSpecVersion||this.windowPortrait&&(this.scrollTimer=setInterval(()=>{var t;(t=this.quill)!=null&&t.hasFocus()?this.windowScrollY>0&&$A.scrollIntoViewIfNeeded(this.$refs.editor):clearInterval(this.scrollTimer)},200))):this.$emit("on-blur")},recordState(e){e==="ing"?this.recordWave=window.Recorder.FrequencyHistogramView({elem:this.$refs.recwave,lineCount:90,position:0,minHeight:1,stripeEnable:!1}):(this.recordWave=null,this.$refs.recwave.innerHTML=""),this.$emit("on-record-state",e)},wrapperHeight(e,t){this.$emit("on-height-change",{newVal:e,oldVal:t})},fullInput(e){var t;(t=this.quill)==null||t.enable(!e)}},methods:{init(){this._options=Object.assign({theme:"bubble",readOnly:!1,placeholder:this.placeholder,modules:{toolbar:[["bold","strike","italic","underline",{list:"ordered"},{list:"bullet"},"blockquote","code-block"]],keyboard:{bindings:{"short enter":{key:13,shortKey:!0,handler:e=>this.isEnterSend?!0:(this.onSend(),!1)},enter:{key:13,shiftKey:!1,handler:e=>this.isEnterSend?(this.onSend(),!1):!0},esc:{key:27,shiftKey:!1,handler:e=>this.emojiQuickShow?(this.emojiQuickShow=!1,!1):!0}}},mention:this.quillMention()}},this.options),this.quill=new Vt(this.$refs.editor,this._options),this.quill.enable(!this.disabled),this.value?this.setContent(this.value):this.loadInputDraft(),this.quill.on("selection-change",e=>{if(!e&&document.activeElement&&["ql-editor","ql-clipboard"].includes(document.activeElement.className)){this.selectTimer&&clearTimeout(this.selectTimer),this.selectTimer=setTimeout(t=>{this.quill.setSelection(document.activeElement.className==="ql-editor"?0:this.quill.getLength())},100);return}this.isFocus=!!e}),this.quill.on("text-change",e=>{this.textTimer&&clearTimeout(this.textTimer),this.textTimer=setTimeout(t=>{console.log(11),this.maxlength>0&&this.quill.getLength()>this.maxlength&&this.quill.deleteText(this.maxlength,this.quill.getLength());let n=this.$refs.editor.firstChild.innerHTML;n=n.replace(/^(

\s*<\/p>)+|(

\s*<\/p>)+$/gi,""),n=n.replace(/^(

<\/p>)+|(

<\/p>)+$/gi,""),this.updateEmojiQuick(n),this._content=n,this.$emit("input",this._content),this.$nextTick(r=>{const a=this.quill.getSelection();if(a){const l=this.quill.getText(a.index);/^\n\n$/.test(l)&&this.quill.deleteText(a.index,1)}})},100)}),this.quill.clipboard.addMatcher(Node.ELEMENT_NODE,(e,t)=>(this.pasteClean&&(t.ops=t.ops.map(n=>{const r={insert:n.insert};try{typeof r.insert.mention=="object"&&e.innerHTML&&(r.insert=e.innerHTML.replace(/<[^>]+>/g,""))}catch{}return n.attributes&&["bold","strike","italic","underline","list","blockquote","link"].some(a=>{n.attributes[a]&&(typeof r.attributes=="undefined"&&(r.attributes={}),r.attributes[a]=n.attributes[a])}),r})),t)),this.$nextTick(e=>{this.quill.root.addEventListener("keydown",t=>{if(t.key==="\r\r"&&t.keyCode===229){const n=this.quill.getSelection(!0).index;this.quill.insertText(n,`\r +`},{type:"d",name:"food",content:''},{type:"s",name:"symbols",content:''},{type:"a",name:"activity",content:''},{type:"t",name:"travel",content:''},{type:"o",name:"objects",content:''},{type:"f",name:"flags",content:''}],emoticonPath:"",emosearchKey:"",emosearchCache:null,emosearchLoad:!1,emosearchTimer:null,emosearchList:[],emojiData:[],emoticonData:[]}},mounted(){this.initData()},watch:{type(){this.onEmosearch()},emosearchKey(){this.onEmosearch()},searchKey:{handler(e){this.emosearchKey=e},immediate:!0}},computed:{list(){if(this.type==="emoji")return this.emojiData.filter(e=>e.category===this.emojiNavActive);if(this.type==="emosearch")return this.emosearchList;if(this.type==="emoticon"){const e=this.emoticonData.find(({path:t})=>t===this.emoticonPath);if(e)return e.list}return[]}},methods:{initData(){$A.loadScriptS(["js/emoji.all.js","js/emoticon.all.js"]).then(e=>{const t=$A.apiUrl("../images/emoticon");$A.isArray(window.emojiData)&&(this.emojiData=window.emojiData.sort(function(n,r){return n.emoji_order-r.emoji_order}).map(n=>({type:"emoji",name:n.name,category:n.category,html:n.code_decimal}))),$A.isArray(window.emoticonData)&&(this.emoticonData=window.emoticonData.map(n=>Object.assign(n,{src:`${t}/${n.path}/${n.icon}`,list:n.list.map(r=>Object.assign(r,{type:"emoticon",asset:`images/emoticon/${n.path}/${r.path}`,src:`${t}/${n.path}/${r.path}`}))})))})},onEmosearch(){this.type!=="emosearch"||this.emosearchCache===this.emosearchKey||(this.emosearchCache=this.emosearchKey,this.emosearchLoad=!0,this.emosearchTimer&&clearTimeout(this.emosearchTimer),this.emosearchTimer=setTimeout(e=>{uJ("https://pic.sogou.com/napi/wap/pic",{query:this.emosearchKey+" \u8868\u60C5"}).then(t=>{if(this.emosearchList=[],t.status===0){const n=t.data.items;n.length>0&&(this.emosearchList=n.map(r=>({type:"emoticon",asset:"emosearch",name:r.title,src:r.thumbUrl,height:r.thumbHeight,width:r.thumbWidth})))}this.emosearchList.length===0&&$A.noticeWarning("\u6CA1\u6709\u641C\u7D22\u5230\u4EFB\u4F55\u8868\u60C5")}).catch(t=>{this.emosearchList=[],$A.noticeWarning("\u641C\u7D22\u7ED3\u679C\u4E3A\u7A7A")}).finally(t=>{this.emosearchLoad=!1})},300))},onEmoticon(e){this.type="emoticon",this.emoticonPath=e},onSelect(e,t){t.type==="emoji"?this.$emit("on-select",{type:"emoji",text:e.target.innerText}):this.$emit("on-select",t)}}},Tl={};var mJ=Qt(pJ,dJ,_J,!1,fJ,null,null,null);function fJ(e){for(let t in Tl)this[t]=Tl[t]}var Ic=function(){return mJ.exports}();const yl="ontouchend"in document;var gJ={bind(e,t){let n=!1;e.__touchMouseDown__=r=>{r.preventDefault(),n=!0,t.value("down",r)},e.__touchMouseMove__=r=>{n&&t.value("move",r)},e.__touchMouseUp__=r=>{n&&(n=!1,t.value("up"))},yl?(e.addEventListener("touchstart",e.__touchMouseDown__),e.addEventListener("touchmove",e.__touchMouseMove__),e.addEventListener("touchend",e.__touchMouseUp__)):(e.addEventListener("mousedown",e.__touchMouseDown__),document.addEventListener("mousemove",e.__touchMouseMove__),document.addEventListener("mouseup",e.__touchMouseUp__))},update(){},unbind(e){yl?(e.removeEventListener("touchstart",e.__touchMouseDown__),e.removeEventListener("touchmove",e.__touchMouseMove__),e.removeEventListener("touchend",e.__touchMouseUp__)):(e.removeEventListener("mousedown",e.__touchMouseDown__),document.removeEventListener("mousemove",e.__touchMouseMove__),document.removeEventListener("mouseup",e.__touchMouseUp__)),delete e.__touchMouseDown__,delete e.__touchMouseMove__,delete e.__touchMouseUp__}};function Yn(e){return e===void 0&&(e=document.body),e===!0?document.body:e instanceof window.Node?e:document.querySelector(e)}const hJ={inserted(e,{value:t},n){if(e.dataset&&e.dataset.transfer!=="true")return!1;e.className=e.className?e.className+" v-transfer-dom":"v-transfer-dom";const r=e.parentNode;if(!r)return;const a=document.createComment("");let l=!1;t!==!1&&(r.replaceChild(a,e),Yn(t).appendChild(e),l=!0),e.__transferDomData||(e.__transferDomData={parentNode:r,home:a,target:Yn(t),hasMovedOut:l})},componentUpdated(e,{value:t}){if(e.dataset&&e.dataset.transfer!=="true")return!1;const n=e.__transferDomData;if(!n)return;const r=n.parentNode,a=n.home,l=n.hasMovedOut;!l&&t?(r.replaceChild(a,e),Yn(t).appendChild(e),e.__transferDomData=Object.assign({},e.__transferDomData,{hasMovedOut:!0,target:Yn(t)})):l&&t===!1?(r.replaceChild(e,a),e.__transferDomData=Object.assign({},e.__transferDomData,{hasMovedOut:!1,target:Yn(t)})):t&&Yn(t).appendChild(e)},unbind(e){if(e.dataset&&e.dataset.transfer!=="true")return!1;e.className=e.className.replace("v-transfer-dom",""),e.__transferDomData&&(e.__transferDomData.hasMovedOut===!0&&e.__transferDomData.parentNode&&e.__transferDomData.parentNode.appendChild(e),e.__transferDomData=null)}};var EJ=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.hidePopover,expression:"hidePopover"}],staticClass:"chat-input-box",class:e.boxClass},[n("div",{staticClass:"chat-input-quick-emoji"},[n("EPopover",{ref:"emojiQuickRef",attrs:{visibleArrow:!1,transition:"",placement:"top-end",popperClass:"chat-quick-emoji-popover"},model:{value:e.emojiQuickShow,callback:function(r){e.emojiQuickShow=r},expression:"emojiQuickShow"}},[n("div",{attrs:{slot:"reference"},slot:"reference"}),n("ul",{staticClass:"chat-quick-emoji-wrapper"},e._l(e.emojiQuickItems,function(r){return n("li",{on:{click:function(a){return e.onEmojiQuick(r)}}},[n("img",{attrs:{title:r.name,alt:r.name,src:r.src}})])}),0)])],1),n("div",{staticClass:"chat-input-wrapper",on:{click:function(r){return r.stopPropagation(),e.focus.apply(null,arguments)}}},[e.quoteData?n("div",{staticClass:"chat-quote"},[e.quoteUpdate?n("div",{staticClass:"quote-label"},[e._v(e._s(e.$L("\u7F16\u8F91\u6D88\u606F")))]):n("UserAvatar",{attrs:{userid:e.quoteData.userid,"show-icon":!1,"show-name":!0,"tooltip-disabled":!0}}),n("div",{staticClass:"quote-desc"},[e._v(e._s(e.$A.getMsgSimpleDesc(e.quoteData)))]),n("i",{staticClass:"taskfont",on:{click:function(r){return r.stopPropagation(),e.cancelQuote.apply(null,arguments)}}},[e._v("\uE6E5")])],1):e._e(),n("div",{ref:"editor",staticClass:"no-dark-content",style:e.editorStyle,on:{click:function(r){return r.stopPropagation(),e.onClickEditor.apply(null,arguments)},paste:e.handlePaste}}),n("ul",{staticClass:"chat-toolbar",on:{click:function(r){r.stopPropagation()}}},[n("li",[e.emojiBottom?n("ETooltip",{ref:"emojiTip",attrs:{disabled:e.$isEEUiApp||e.windowTouch||e.showEmoji,placement:"top",content:e.$L("\u8868\u60C5")}},[n("i",{staticClass:"taskfont",on:{click:function(r){e.showEmoji=!e.showEmoji}}},[e._v("\uE7AD")])]):n("EPopover",{attrs:{visibleArrow:!1,placement:"top",popperClass:"chat-input-emoji-popover"},model:{value:e.showEmoji,callback:function(r){e.showEmoji=r},expression:"showEmoji"}},[n("ETooltip",{ref:"emojiTip",attrs:{slot:"reference",disabled:e.$isEEUiApp||e.windowTouch||e.showEmoji,placement:"top",content:e.$L("\u8868\u60C5")},slot:"reference"},[n("i",{staticClass:"taskfont"},[e._v("\uE7AD")])]),e.showEmoji?n("ChatEmoji",{attrs:{searchKey:e.emojiQuickKey},on:{"on-select":e.onSelectEmoji}}):e._e()],1)],1),n("li",[n("ETooltip",{attrs:{placement:"top",disabled:e.$isEEUiApp||e.windowTouch,content:e.$L("\u9009\u62E9\u6210\u5458")}},[n("i",{staticClass:"taskfont",on:{click:function(r){return e.onToolbar("user")}}},[e._v("\uE78F")])])],1),n("li",[n("ETooltip",{attrs:{placement:"top",disabled:e.$isEEUiApp||e.windowTouch,content:e.$L("\u9009\u62E9\u4EFB\u52A1")}},[n("i",{staticClass:"taskfont",on:{click:function(r){return e.onToolbar("task")}}},[e._v("\uE7D6")])])],1),n("li",[n("EPopover",{attrs:{visibleArrow:!1,placement:"top",popperClass:"chat-input-more-popover"},model:{value:e.showMore,callback:function(r){e.showMore=r},expression:"showMore"}},[n("ETooltip",{ref:"moreTip",attrs:{slot:"reference",disabled:e.$isEEUiApp||e.windowTouch||e.showMore,placement:"top",content:e.$L("\u5C55\u5F00")},slot:"reference"},[n("i",{staticClass:"taskfont"},[e._v("\uE790")])]),e.recordReady?n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("meeting")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7C1")]),e._v(" "+e._s(e.$L("\u65B0\u4F1A\u8BAE"))+" ")]):e._e(),e.canCall?n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("call")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7BA")]),e._v(" "+e._s(e.$L("\u62E8\u6253\u7535\u8BDD"))+" ")]):e._e(),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("image")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7BC")]),e._v(" "+e._s(e.$L("\u53D1\u9001\u56FE\u7247"))+" ")]),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("file")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7C0")]),e._v(" "+e._s(e.$L("\u4E0A\u4F20\u6587\u4EF6"))+" ")]),e.canAnon?n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("anon")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE690")]),e._v(" "+e._s(e.$L("\u533F\u540D\u6D88\u606F"))+" ")]):e._e(),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onToolbar("full")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE6A7")]),e._v(" "+e._s(e.$L("\u5168\u5C4F\u8F93\u5165"))+" ")])],1)],1),n("li",{directives:[{name:"touchmouse",rawName:"v-touchmouse",value:e.clickSend,expression:"clickSend"},{name:"longpress",rawName:"v-longpress",value:{callback:e.longSend,delay:300},expression:"{callback: longSend, delay: 300}"}],ref:"chatSend",staticClass:"chat-send",class:e.sendClass},[n("EPopover",{attrs:{visibleArrow:!1,trigger:"manual",placement:"top",popperClass:"chat-input-more-popover"},model:{value:e.showMenu,callback:function(r){e.showMenu=r},expression:"showMenu"}},[n("ETooltip",{ref:"sendTip",attrs:{slot:"reference",placement:"top",disabled:e.$isEEUiApp||e.windowTouch||e.showMenu,content:e.$L(e.sendContent)},slot:"reference"},[e.loading?n("div",[n("div",{staticClass:"chat-load"},[n("Loading")],1)]):n("div",[n("transition",{attrs:{name:"mobile-send"}},[e.sendClass==="recorder"?n("i",{staticClass:"taskfont"},[e._v("\uE609")]):e._e()]),n("transition",{attrs:{name:"mobile-send"}},[e.sendClass!=="recorder"?n("i",{staticClass:"taskfont"},[e._v("\uE606")]):e._e()])],1)]),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onSend("silence")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7D7")]),e._v(" "+e._s(e.$L("\u65E0\u58F0\u53D1\u9001"))+" ")]),n("div",{staticClass:"chat-input-popover-item",on:{click:function(r){return e.onSend("md")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE647")]),e._v(" "+e._s(e.$L("Markdown \u683C\u5F0F\u53D1\u9001"))+" ")])],1)],1),n("li",{staticClass:"chat-record-recwave"},[n("div",{ref:"recwave"})])]),n("div",{staticClass:"chat-cover",on:{click:function(r){return r.stopPropagation(),e.onClickCover.apply(null,arguments)}}})]),e.emojiBottom&&e.showEmoji?n("ChatEmoji",{attrs:{searchKey:e.emojiQuickKey},on:{"on-select":e.onSelectEmoji}}):e._e(),n("transition",{attrs:{name:"fade"}},[["ready","ing"].includes(e.recordState)?n("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],staticClass:"chat-input-record-transfer",class:{cancel:e.touchLimitY},style:e.recordTransferStyle,attrs:{"data-transfer":!0},on:{click:e.stopRecord}},[e.recordDuration>0?n("div",{staticClass:"record-duration"},[e._v(e._s(e.recordFormatDuration))]):n("div",{staticClass:"record-loading"},[n("Loading")],1),n("div",{staticClass:"record-cancel",on:{click:function(r){return r.stopPropagation(),e.stopRecord(!0)}}},[e._v(e._s(e.$L(e.touchLimitY?"\u677E\u5F00\u53D6\u6D88":"\u5411\u4E0A\u6ED1\u52A8\u53D6\u6D88")))])]):e._e()]),n("Modal",{attrs:{"mask-closable":!1,beforeClose:e.onFullBeforeClose,"class-name":"chat-input-full-input","footer-hide":"",fullscreen:""},model:{value:e.fullInput,callback:function(r){e.fullInput=r},expression:"fullInput"}},[n("div",{staticClass:"chat-input-box"},[n("div",{staticClass:"chat-input-wrapper"},[n("div",{ref:"editorFull",staticClass:"no-dark-content"})])]),n("i",{staticClass:"taskfont",attrs:{slot:"close"},slot:"close"},[e._v("\uE6AB")])])],1)},SJ=[];const bJ={name:"ChatInput",components:{ChatEmoji:Ic},directives:{touchmouse:gJ,TransferDom:hJ,clickoutside:zu,longpress:za},props:{value:{type:[String,Number],default:""},dialogId:{type:Number,default:0},taskId:{type:Number,default:0},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},disabledRecord:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},enterSend:{type:[String,Boolean],default:null},emojiBottom:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},maxlength:{type:Number},defaultMenuOrientation:{type:String,default:"top"}},data(){return{quill:null,isFocus:!1,rangeIndex:0,_content:"",_options:{},mentionMode:"",userList:null,userCache:null,taskList:null,fileList:{},showMenu:!1,showMore:!1,showEmoji:!1,emojiQuickShow:!1,emojiQuickKey:"",emojiQuickItems:[],observer:null,wrapperWidth:0,wrapperHeight:0,editorHeight:0,recordReady:!1,recordRec:null,recordBlob:null,recordWave:null,recordInter:null,recordState:"stop",recordDuration:0,touchStart:{},touchLimitX:!1,touchLimitY:!1,pasteClean:!0,isSpecVersion:this.checkIOSVersion(),emojiTimer:null,scrollTimer:null,selectTimer:null,textTimer:null,fileTimer:null,moreTimer:null,fullInput:!1,fullQuill:null}},mounted(){this.init(),this.observer=new ResizeObserver(e=>{e.some(({target:t,contentRect:n})=>{t===this.$el?(this.wrapperWidth=n.width,this.wrapperHeight=n.height):t===this.$refs.editor&&(this.editorHeight=n.height)})}),this.observer.observe(this.$el),this.observer.observe(this.$refs.editor),this.recordInter=setInterval(e=>{this.recordState==="ing"&&(this.__recordDuration&&this.__recordDuration===this.recordDuration?(this.__recordDuration=null,this.stopRecord(!0),$A.messageWarning("\u5F55\u97F3\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")):this.__recordDuration=this.recordDuration)},1e3),this.$isEEUiApp&&(window.__onPermissionRequest=(e,t)=>{e==="recordAudio"&&t===!1&&this.stopRecord(!0)})},beforeDestroy(){this.quill&&(this.quill=null),this.recordRec&&(this.recordRec=null),this.observer&&(this.observer.disconnect(),this.observer=null),this.recordInter&&clearInterval(this.recordInter)},computed:{...Wn(["cacheProjects","cacheTasks","cacheUserBasic","cacheDialogs","dialogMsgs"]),isEnterSend({enterSend:e}){return typeof e=="boolean"?e:!0},canCall(){return this.dialogData.type==="user"&&!this.dialogData.bot&&this.$isEEUiApp},canAnon(){return this.dialogData.type==="user"&&!this.dialogData.bot},editorStyle(){const{wrapperWidth:e,editorHeight:t,value:n}=this,r={};return n.length<10&&(r.height="30px"),e>0&&t>0&&(e<280||t>40)&&(r.width="100%"),r},recordTransferStyle(){const{windowScrollY:e}=this;return e>0?{marginTop:e/2+"px"}:null},boxClass(){const e=[];return["ready","ing"].includes(this.recordState)&&(this.recordState==="ing"&&this.recordDuration>0?e.push("record-progress"):e.push("record-ready")),this.showMenu&&e.push("show-menu"),this.showMore&&e.push("show-more"),this.showEmoji&&e.push("show-emoji"),this.mentionMode&&e.push(this.mentionMode),e},sendClass(){return this.value?"sender":this.recordReady?"recorder":""},sendContent(){const{sendTip:e}=this.$refs;return e&&e.$refs.popper&&(e.$refs.popper.style.visibility="hidden",e.showPopper=!1,setTimeout(t=>{e.$refs.popper&&(e.$refs.popper.style.visibility="visible")},300)),this.sendClass==="recorder"?"\u957F\u6309\u5F55\u97F3":"\u53D1\u9001"},recordFormatDuration(){const{recordDuration:e}=this;let t=Math.floor(e/6e4),n=Math.floor(e/1e3)%60,r=("00"+e%1e3).substr(-2);return t<10&&(t=`0${t}`),n<10&&(n=`0${n}`),`${t}:${n}\u2033${r}`},dialogData(){return this.dialogId>0?this.cacheDialogs.find(({id:e})=>e==this.dialogId)||{}:{}},quoteUpdate(){return this.dialogData.extra_quote_type==="update"},quoteData(){const{extra_quote_id:e}=this.dialogData;return e?this.dialogMsgs.find(t=>t.id===e):null}},watch:{value(e){this.quill&&(e&&e!==this._content?(this._content=e,this.setContent(e)):e||this.quill.setText("")),this.$store.dispatch("saveDialogDraft",{id:this.dialogId,extra_draft_content:e})},disabled(e){var t;(t=this.quill)==null||t.enable(!e)},dialogId(){this.userList=null,this.userCache=null,this.taskList=null,this.fileList={},this.loadInputDraft()},taskId(){this.userList=null,this.userCache=null,this.taskList=null,this.fileList={},this.loadInputDraft()},"dialogData.extra_draft_content"(){this.isFocus||this.loadInputDraft()},showMenu(e){e&&(this.showMore=!1,this.showEmoji=!1,this.emojiQuickShow=!1)},showMore(e){e&&(this.showMenu=!1,this.showEmoji=!1,this.emojiQuickShow=!1)},showEmoji(e){if(this.emojiBottom&&(e?this.quill.enable(!1):this.disabled||this.quill.enable(!0)),e){let t=this.value.replace(/ /g," ");if(t=t.replace(/<[^>]+>/g,""),t&&t.indexOf(" ")===-1&&t.length>=1&&t.length<=4?this.emojiQuickKey=t:this.emojiQuickKey="",this.showMenu=!1,this.showMore=!1,this.emojiQuickShow=!1,this.quill){const n=this.quill.selection.savedRange;this.rangeIndex=n?n.index:0}}else this.rangeIndex>0&&this.quill.setSelection(this.rangeIndex);this.$emit("on-emoji-visible-change",e)},emojiQuickShow(e){e&&(this.showMenu=!1,this.showMore=!1,this.showEmoji=!1)},isFocus(e){this.scrollTimer&&clearInterval(this.scrollTimer),e?(this.$emit("on-focus"),this.hidePopover(),this.isSpecVersion||this.windowPortrait&&(this.scrollTimer=setInterval(()=>{var t;(t=this.quill)!=null&&t.hasFocus()?this.windowScrollY>0&&$A.scrollIntoViewIfNeeded(this.$refs.editor):clearInterval(this.scrollTimer)},200))):this.$emit("on-blur")},recordState(e){e==="ing"?this.recordWave=window.Recorder.FrequencyHistogramView({elem:this.$refs.recwave,lineCount:90,position:0,minHeight:1,stripeEnable:!1}):(this.recordWave=null,this.$refs.recwave.innerHTML=""),this.$emit("on-record-state",e)},wrapperHeight(e,t){this.$emit("on-height-change",{newVal:e,oldVal:t})},fullInput(e){var t;(t=this.quill)==null||t.enable(!e)}},methods:{init(){this._options=Object.assign({theme:"bubble",readOnly:!1,placeholder:this.placeholder,modules:{toolbar:[["bold","strike","italic","underline",{list:"ordered"},{list:"bullet"},"blockquote","code-block"]],keyboard:{bindings:{"short enter":{key:13,shortKey:!0,handler:e=>this.isEnterSend?!0:(this.onSend(),!1)},enter:{key:13,shiftKey:!1,handler:e=>this.isEnterSend?(this.onSend(),!1):!0},esc:{key:27,shiftKey:!1,handler:e=>this.emojiQuickShow?(this.emojiQuickShow=!1,!1):!0}}},mention:this.quillMention()}},this.options),this.quill=new Vt(this.$refs.editor,this._options),this.quill.enable(!this.disabled),this.value?this.setContent(this.value):this.loadInputDraft(),this.quill.on("selection-change",e=>{if(!e&&document.activeElement&&["ql-editor","ql-clipboard"].includes(document.activeElement.className)){this.selectTimer&&clearTimeout(this.selectTimer),this.selectTimer=setTimeout(t=>{this.quill.setSelection(document.activeElement.className==="ql-editor"?0:this.quill.getLength())},100);return}this.isFocus=!!e}),this.quill.on("text-change",e=>{this.textTimer&&clearTimeout(this.textTimer),this.textTimer=setTimeout(t=>{this.maxlength>0&&this.quill.getLength()>this.maxlength&&this.quill.deleteText(this.maxlength,this.quill.getLength());let n=this.$refs.editor.firstChild.innerHTML;n=n.replace(/^(

\s*<\/p>)+|(

\s*<\/p>)+$/gi,""),n=n.replace(/^(

<\/p>)+|(

<\/p>)+$/gi,""),this.updateEmojiQuick(n),this._content=n,this.$emit("input",this._content),this.$nextTick(r=>{const a=this.quill.getSelection();if(a){const l=this.quill.getText(a.index);/^\n\n$/.test(l)&&this.quill.deleteText(a.index,1)}})},100)}),this.quill.clipboard.addMatcher(Node.ELEMENT_NODE,(e,t)=>(this.pasteClean&&(t.ops=t.ops.map(n=>{const r={insert:n.insert};try{typeof r.insert.mention=="object"&&e.innerHTML&&(r.insert=e.innerHTML.replace(/<[^>]+>/g,""))}catch{}return n.attributes&&["bold","strike","italic","underline","list","blockquote","link"].some(a=>{n.attributes[a]&&(typeof r.attributes=="undefined"&&(r.attributes={}),r.attributes[a]=n.attributes[a])}),r})),t)),this.$nextTick(e=>{this.quill.root.addEventListener("keydown",t=>{if(t.key==="\r\r"&&t.keyCode===229){const n=this.quill.getSelection(!0).index;this.quill.insertText(n,`\r `)}}),this.quill.root.setAttribute("enterkeyhint","send")}),this.$emit("on-ready",this.quill),this.disabledRecord||$A.loadScriptS(["js/recorder/recorder.mp3.min.js","js/recorder/lib.fft.js","js/recorder/frequency.histogram.view.js"]).then(e=>{typeof window.Recorder=="function"&&(this.recordRec=window.Recorder({type:"mp3",bitRate:64,sampleRate:32e3,onProcess:(t,n,r,a,l,u)=>{var c;(c=this.recordWave)==null||c.input(t[t.length-1],n,a),this.recordDuration=r,r>=3*60*1e3&&this.stopRecord(!1)}}),window.Recorder.Support()&&(this.recordReady=!0))})},quillMention(){return{allowedChars:/^\S*$/,mentionDenotationChars:["@","#","~"],defaultMenuOrientation:this.defaultMenuOrientation,isolateCharacter:!0,positioningStrategy:"fixed",renderItem:e=>{if(e.disabled===!0)return`

${e.value}
`;if(e.id===0)return`
@
${e.value}
${e.tip}
`;if(e.avatar){const t=e.bot?'
':"";return`
${t}
${e.value}
`}return e.tip?`
${e.value}
${e.tip}
`:`
${e.value}
`},renderLoading:()=>"Loading...",source:(e,t,n)=>{const r=n=="@"?"user-mention":n=="#"?"task-mention":"file-mention",a=document.getElementsByClassName("ql-mention-list-container");for(let u=0;u{const c=[];u.some(d=>{let f=d.list;e&&(f=f.filter(({value:g})=>$A.strExists(g,e))),f.length>0&&(d.label&&c.push(...d.label),c.push(...f))}),$A.jsonStringify(c.map(({id:d})=>d))!==l&&(l=$A.jsonStringify(c.map(({id:d})=>d)),t(c,e))})}}},updateEmojiQuick(e){if(!this.isFocus||!e){this.emojiQuickShow=!1;return}this.emojiTimer&&clearTimeout(this.emojiTimer),this.emojiTimer=setTimeout(t=>{if(e=e.replace(/ /g," "),e=e.replace(/<[^>]+>/g,""),e&&e.indexOf(" ")===-1&&e.length>=1&&e.length<=4&&$A.isArray(window.emoticonData)){this.emojiQuickItems=[];let n=$A.apiUrl("../images/emoticon");if(window.emoticonData.some(r=>{let a=r.list.find(l=>$A.strExists(l.name+(l.key?` ${l.key}`:""),e));if(a&&(this.emojiQuickItems.push(Object.assign(a,{type:"emoticon",asset:`images/emoticon/${r.path}/${a.path}`,src:`${n}/${r.path}/${a.path}`})),this.emojiQuickItems.length>=3))return!0}),this.emojiQuickItems.length>0){this.$nextTick(r=>{this.emojiQuickShow=!0,this.$refs.emojiQuickRef.updatePopper()});return}}this.emojiQuickShow=!1},100)},getText(){return this.quill?this.quill.getText():""},setText(e){this.quill&&this.quill.setText(e)},setContent(e){this.quill&&this.quill.setContents(this.quill.clipboard.convert(e))},setPasteMode(e){this.pasteClean=e},loadInputDraft(){const{extra_draft_content:e}=this.dialogData;e?(this.pasteClean=!1,this.$emit("input",e),this.$nextTick(t=>this.pasteClean=!0)):this.$emit("input","")},onClickEditor(){this.$store.state.messengerSearchKey={dialog:"",contacts:""},this.updateEmojiQuick(this.value)},focus(){this.$nextTick(()=>{this.quill&&(this.quill.setSelection(this.quill.getLength()),this.quill.focus())})},blur(){this.$nextTick(()=>{this.quill&&this.quill.blur()})},clickSend(e,t){if(!this.loading)switch(e){case"down":if(this.touchLimitX=!1,this.touchLimitY=!1,this.touchStart=t.type==="touchstart"?t.touches[0]:t,(t.button===void 0||t.button===0)&&this.startRecord())return;break;case"move":const n=t.type==="touchmove"?t.touches[0]:t;this.touchLimitX=(this.touchStart.clientX-n.clientX)/window.innerWidth>.1,this.touchLimitY=(this.touchStart.clientY-n.clientY)/window.innerHeight>.1;break;case"up":if(this.showMenu||this.stopRecord(this.touchLimitY)||this.touchLimitY||this.touchLimitX)return;this.onSend();break}},longSend(){this.sendClass!=="recorder"&&(this.showMenu=!0)},onSend(e){this.hidePopover("send"),this.rangeIndex=0,this.$store.state.messengerSearchKey={dialog:"",contacts:""},e?this.$emit("on-send",null,e):this.$emit("on-send")},startRecord(){return this.sendClass==="recorder"?(this.$store.dispatch("audioStop",!0),this.recordDuration=0,this.recordState="ready",this.$nextTick(e=>{this.recordRec.open(t=>{this.recordState==="ready"?(this.recordState="ing",this.recordBlob=null,setTimeout(n=>{this.recordRec.start()},300)):this.recordRec.close()},t=>{this.recordState="stop",$A.messageError(t||"\u6253\u5F00\u5F55\u97F3\u5931\u8D25")})}),!0):!1},stopRecord(e){switch(this.recordState){case"ing":return this.recordState="stop",this.recordRec.stop((t,n)=>{this.recordRec.close(),e!==!0&&(n<600?$A.messageWarning("\u8BF4\u8BDD\u65F6\u95F4\u592A\u77ED"):(this.recordBlob=t,this.uploadRecord(n)))},t=>{this.recordRec.close(),$A.messageError(t||"\u5F55\u97F3\u5931\u8D25")}),!0;case"ready":return this.recordState="stop",!0;default:return this.recordState="stop",!1}},hidePopover(e){this.showMenu=!1,this.showMore=!1,e!=="send"&&(this.showEmoji=!1,this.emojiQuickShow=!1)},onClickCover(){this.hidePopover(),this.$nextTick(e=>{var t;(t=this.quill)==null||t.focus()})},uploadRecord(e){if(this.recordBlob===null)return;const t=new FileReader;t.onloadend=()=>{this.$emit("on-record",{type:this.recordBlob.type,base64:t.result,duration:e})},t.readAsDataURL(this.recordBlob)},onEmojiQuick(e){e.type==="online"?(this.$emit("input",""),this.$emit("on-send",``)):(this.$emit("input",""),this.$emit("on-send",``)),this.emojiQuickShow=!1,this.focus()},onSelectEmoji(e){!this.quill||(e.type==="emoji"?(this.quill.insertText(this.rangeIndex,e.text),this.rangeIndex+=e.text.length,this.windowLandscape&&(this.showEmoji=!1)):e.type==="emoticon"&&(this.$emit("on-send",``),e.asset==="emosearch"&&this.$emit("input",""),this.windowLandscape&&(this.showEmoji=!1)))},onToolbar(e){switch(this.hidePopover(),e){case"user":this.openMenu("@");break;case"task":this.openMenu("#");break;case"meeting":Ya.Store.set("addMeeting",{type:"create",dialog_id:this.dialogId,userids:[this.userId]});break;case"full":this.onFullInput();break;case"image":case"file":case"call":case"anon":this.$emit("on-more",e);break}},onFullInput(){this.disabled||(this.fullInput=!this.fullInput,this.fullInput&&this.$nextTick(e=>{this.fullQuill=new Vt(this.$refs.editorFull,Object.assign({theme:"bubble",readOnly:!1,placeholder:this.placeholder,modules:{toolbar:[["bold","strike","italic","underline",{list:"ordered"},{list:"bullet"},"blockquote","code-block"]],mention:this.quillMention()}},this.options)),this.fullQuill.enable(!0),this.$refs.editorFull.firstChild.innerHTML=this.$refs.editor.firstChild.innerHTML,this.$nextTick(t=>{this.fullQuill.setSelection(this.fullQuill.getLength()),this.fullQuill.focus()})}))},onFullBeforeClose(){return new Promise(e=>{var t;(t=this.$refs.editorFull)!=null&&t.firstChild&&(this.$refs.editor.firstChild.innerHTML=this.$refs.editorFull.firstChild.innerHTML),e()})},onMoreVisibleChange(e){this.showMore=e},setQuote(e,t="reply"){this.dialogId>0&&this.$store.dispatch("saveDialog",{id:this.dialogId,extra_quote_id:e,extra_quote_type:t==="update"?"update":"reply"})},cancelQuote(){this.quoteUpdate&&this.$emit("input",""),this.setQuote(0)},openMenu(e){if(!!this.quill)if(this.value.length===0||this.value.endsWith("


"))this.quill.getModule("mention").openMenu(e);else{let t=this.value.replace(/<[^>]+>/g,"");t.length===0||t.endsWith(" ")?this.quill.getModule("mention").openMenu(e):this.quill.getModule("mention").openMenu(` ${e}`)}},addMention(e){!this.quill||this.quill.getModule("mention").insertItem(e,!0)},getProjectId(){let e=null;if(this.dialogId>0){if(e=this.cacheProjects.find(({dialog_id:t})=>t==this.dialogId),e)return e.id;if(e=this.cacheTasks.find(({dialog_id:t})=>t==this.dialogId),e)return e.project_id}else if(this.taskId>0&&(e=this.cacheTasks.find(({id:t})=>t==this.taskId),e))return e.project_id;return 0},getMentionSource(e,t,n){switch(e){case"@":this.mentionMode="user-mention";const r=c=>{this.getMoreUser(t,c.map(d=>d.id)).then(d=>{this.userList=c,this.userCache=[],d.length>0?(c.length>2&&this.userCache.push({label:null,list:[{id:0,value:this.$L("\u6240\u6709\u4EBA"),tip:this.$L("\u4EC5\u63D0\u793A\u4F1A\u8BDD\u5185\u6210\u5458")}]}),this.userCache.push({label:[{id:0,value:this.$L("\u4F1A\u8BDD\u5185\u6210\u5458"),disabled:!0}],list:c},{label:[{id:0,value:this.$L("\u4F1A\u8BDD\u4EE5\u5916\u6210\u5458"),disabled:!0}],list:d})):c.length>2?this.userCache.push({label:null,list:[{id:0,value:this.$L("\u6240\u6709\u4EBA"),tip:this.$L("\u63D0\u793A\u6240\u6709\u6210\u5458")}]},{label:[{id:0,value:this.$L("\u4F1A\u8BDD\u5185\u6210\u5458"),disabled:!0}],list:c}):this.userCache.push({label:null,list:c}),n(this.userCache)})};if(this.dialogData.people&&$A.arrayLength(this.userList)!==this.dialogData.people&&(this.userList=null,this.userCache=null),this.userCache!==null&&n(this.userCache),this.userList!==null){r(this.userList);return}const a=[];if(this.dialogId>0)this.$store.dispatch("call",{url:"dialog/user",data:{dialog_id:this.dialogId,getuser:1}}).then(({data:c})=>{this.cacheDialogs.find(({id:d})=>d==this.dialogId)&&this.$store.dispatch("saveDialog",{id:this.dialogId,people:c.length}),c.length>0&&a.push(...c.map(d=>({id:d.userid,value:d.nickname,avatar:d.userimg,online:d.online,bot:d.bot}))),r(a)}).catch(c=>{r(a)});else if(this.taskId>0){const c=this.cacheTasks.find(({id:d})=>d==this.taskId);c&&$A.isArray(c.task_user)&&c.task_user.some(d=>{const f=this.cacheUserBasic.find(({userid:g})=>g==d.userid);f&&a.push({id:f.userid,value:f.nickname,avatar:f.userimg,online:f.online,bot:f.bot})}),r(a)}break;case"#":if(this.mentionMode="task-mention",this.taskList!==null){n(this.taskList);return}const l=c=>{this.taskList=[],c.length>0&&(c=c.map(g=>({id:g.id,value:g.name,tip:g.complete_at?this.$L("\u5DF2\u5B8C\u6210"):null})).splice(0,100),this.taskList.push({label:[{id:0,value:this.$L("\u9879\u76EE\u4EFB\u52A1"),disabled:!0}],list:c}));let d=this.$store.getters.transforTasks(this.$store.getters.dashboardTask.all);d.length>0&&(d=d.sort((g,h)=>$A.Date(g.end_at||"2099-12-31 23:59:59")-$A.Date(h.end_at||"2099-12-31 23:59:59")).splice(0,100),this.taskList.push({label:[{id:0,value:this.$L("\u6211\u7684\u5F85\u5B8C\u6210\u4EFB\u52A1"),disabled:!0}],list:d.map(g=>({id:g.id,value:g.name}))}));let f=this.$store.getters.assistTask;f.length>0&&(f=f.sort((g,h)=>$A.Date(g.end_at||"2099-12-31 23:59:59")-$A.Date(h.end_at||"2099-12-31 23:59:59")).splice(0,100),this.taskList.push({label:[{id:0,value:this.$L("\u6211\u534F\u52A9\u7684\u4EFB\u52A1"),disabled:!0}],list:f.map(g=>({id:g.id,value:g.name}))})),n(this.taskList)},u=this.getProjectId();if(u>0){this.$store.dispatch("getTaskForProject",u).then(c=>{const d=this.cacheTasks.filter(f=>f.archived_at?!1:f.project_id==u&&f.parent_id===0&&!f.archived_at).sort((f,g)=>$A.Date(g.complete_at||"2099-12-31 23:59:59")-$A.Date(f.complete_at||"2099-12-31 23:59:59"));d.length>0?l(d):l([])}).catch(c=>{l([])});return}l([]);break;case"~":if(this.mentionMode="file-mention",$A.isArray(this.fileList[t])){n(this.fileList[t]);return}this.fileTimer&&clearTimeout(this.fileTimer),this.fileTimer=setTimeout(c=>{this.$store.dispatch("searchFiles",t).then(({data:d})=>{this.fileList[t]=[{label:[{id:0,value:this.$L("\u6587\u4EF6\u5206\u4EAB\u67E5\u770B"),disabled:!0}],list:d.filter(f=>f.type!=="folder").map(f=>({id:f.id,value:f.ext?`${f.name}.${f.ext}`:f.name}))}],n(this.fileList[t])}).catch(()=>{n([])})},300);break;default:n([]);break}},getMoreUser(e,t){return new Promise(n=>{const{owner_id:r,type:a}=this.dialogData,l=a==="group"&&[0,this.userId].includes(r);this.taskId>0||l?(this.moreTimer&&clearTimeout(this.moreTimer),this.moreTimer=setTimeout(u=>{this.$store.dispatch("call",{url:"users/search",data:{keys:{key:e},state:1,take:30}}).then(({data:c})=>{const d=c.filter(f=>!t.includes(f.userid));n(d.map(f=>({id:f.userid,value:f.nickname,avatar:f.userimg,online:!!f.online})))}).catch(c=>{n([])})},this.userCache===null?0:600)):n([])})},checkIOSVersion(){let t=(window&&window.navigator&&window.navigator.userAgent).match(/OS ((\d+_?){2,3})\s/i);const r=(t?t[1].replace(/_/g,"."):"unknown").split(".");return+r[0]==11&&+r[1]>=0&&+r[1]<3},handlePaste(e){const t=Array.prototype.slice.call(e.clipboardData.files);t.filter(r=>!$A.leftExists(r.type,"image/")).length>0?(e.preventDefault(),this.$emit("on-file",t)):this.pasteRtf(e)&&e.preventDefault()},pasteRtf(e){if(e&&e.clipboardData&&e.clipboardData.items&&!new DOMParser().parseFromString(e.clipboardData.getData("text/html")||"","text/html").querySelector("img")){const n=[];let r=null;if(e.clipboardData.types&&[].indexOf.call(e.clipboardData.types,"text/rtf")!=-1||e.clipboardData.getData("text/rtf"))r=e.clipboardData.items[0].getAsFile(),r&&n.push(r);else for(let a=0;a0)return n.forEach(a=>{const l=new FileReader;l.onload=({target:u})=>{const c=this.quill.getSelection(!0).index;this.quill.insertEmbed(c,"image",u.result),this.quill.setSelection(c+1)},l.readAsDataURL(a)}),!0}return!1}}},Cl={};var vJ=Qt(bJ,EJ,SJ,!1,TJ,null,null,null);function TJ(e){for(let t in Cl)this[t]=Cl[t]}var yJ=function(){return vJ.exports}(),Dc={exports:{}};/*! * vue-virtual-scroll-list v2.3.4-3 * open source under the MIT license * https://github.com/tangbc/vue-virtual-scroll-list#readme */(function(e,t){(function(n,r){e.exports=r($u)})(qa,function(n){n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;function r(w,M){if(!(w instanceof M))throw new TypeError("Cannot call a class as a function")}function a(w,M){for(var x=0;xw.length)&&(M=w.length);for(var x=0,Y=new Array(M);xthis.range.start)){var Y=Math.max(x-this.param.buffer,0);this.checkRange(Y,this.getEndByStart(Y))}}},{key:"handleBehind",value:function(){var x=this.getScrollOvers();xx&&(ce=W-1)}return Y>0?--Y:0}},{key:"getIndexOffset",value:function(x){if(!x)return 0;for(var Y=0,W=0,Z=0;Z1&&arguments[1]!==void 0?arguments[1]:0;if(M>=this.dataSources.length-1)this.scrollToBottom();else{var Y=this.virtual.getOffset(M);x!==0&&(Y=Math.max(0,Y+x)),this.scrollToOffset(Y)}},scrollToBottom:function(){var M=this,x=this.$refs.shepherd;if(x){var Y=x[this.isHorizontal?"offsetLeft":"offsetTop"];this.scrollToOffset(Y),this.toBottomTime&&(clearTimeout(this.toBottomTime),this.toBottomTime=null),this.toBottomTime=setTimeout(function(){M.getOffset()+M.getClientSize()+1W+1||!W||(this.virtual.handleScroll(x),this.emitEvent(x,Y,W,M))}},emitEvent:function(M,x,Y,W){this.$emit("scroll",W,this.virtual.getRange()),this.virtual.isFront()&&!!this.dataSources.length&&M-this.topThreshold<=0?this.$emit("totop"):this.virtual.isBehind()&&M+x+this.bottomThreshold>=Y&&this.$emit("tobottom")},getRenderSlots:function(M){for(var x=[],Y=this.range,W=Y.start,Z=Y.end,ce=this.dataSources,te=this.dataKey,j=this.itemClass,U=this.itemTag,X=this.itemStyle,J=this.isHorizontal,ae=this.extraProps,le=this.dataComponent,Q=this.itemScopedSlots,ie=this.$scopedSlots&&this.$scopedSlots.item,_e=W;_e<=Z;_e++){var ue=ce[_e];if(ue){var Ee=typeof te=="function"?te(ue):ue[te];typeof Ee=="string"||typeof Ee=="number"?x.push(M(F,{props:{index:_e,tag:U,event:z.ITEM,horizontal:J,uniqueKey:Ee,source:ue,extraProps:ae,component:le,slotComponent:ie,scopedSlots:Q},style:X,class:"".concat(j).concat(this.itemClassAdd?" "+this.itemClassAdd(_e):"")})):console.warn("Cannot get the data-key '".concat(te,"' from data-sources."))}else console.warn("Cannot get the index '".concat(_e,"' from data-sources."))}return x}},render:function(M){var x=this.$slots,Y=x.header,W=x.footer,Z=this.range,ce=Z.padFront,te=Z.padBehind,j=this.isHorizontal,U=this.pageMode,X=this.rootTag,J=this.wrapTag,ae=this.wrapClass,le=this.wrapStyle,Q=this.headerTag,ie=this.headerClass,_e=this.headerStyle,ue=this.footerTag,Ee=this.footerClass,Ie=this.footerStyle,ke=this.disabled,qe={padding:j?"0px ".concat(te,"px 0px ").concat(ce,"px"):"".concat(ce,"px 0px ").concat(te,"px")},Ye=le?Object.assign({},le,qe):qe;return M(X,{ref:"root",style:ke?{overflow:"hidden"}:null,on:{"&scroll":!U&&this.onScroll}},[Y?M(G,{class:ie,style:_e,props:{tag:Q,event:z.SLOT,uniqueKey:k.HEADER}},Y):null,M(J,{class:ae,attrs:{role:"group"},style:Ye},this.getRenderSlots(M)),W?M(G,{class:Ee,style:Ie,props:{tag:ue,event:z.SLOT,uniqueKey:k.FOOTER}},W):null,M("div",{ref:"shepherd",style:{width:j?"0px":"100%",height:j?"100%":"0px"}})])}});return L})})(Dc);var CJ=Dc.exports;function RJ(){return new Promise(e=>{const t=new Hu({render(a){return a(Vu.exports.Modal,{class:"chat-emoji-one-modal",props:{fullscreen:!0,footerHide:!0},on:{"on-visible-change":l=>{l||setTimeout(u=>{document.body.removeChild(this.$el)},500)}}},[a(Ic,{attrs:{onlyEmoji:!0},on:{"on-select":l=>{this.$children[0].visible=!1,l.type==="emoji"&&e(l.text)}}})])}}),n=t.$mount();document.body.appendChild(n.$el);const r=t.$children[0];r.visible=!0,r.$el.lastChild.addEventListener("click",({target:a})=>{a.classList.contains("ivu-modal-body")&&(r.visible=!1)})})}var NJ=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isReady?n("div",{staticClass:"dialog-wrapper",class:e.wrapperClass,on:{drop:function(r){return r.preventDefault(),e.chatPasteDrag(r,"drag")},dragover:function(r){return r.preventDefault(),e.chatDragOver(!0,r)},dragleave:function(r){return r.preventDefault(),e.chatDragOver(!1,r)},touchstart:e.onTouchStart,touchmove:e.onTouchMove}},[n("div",{staticClass:"dialog-nav",style:e.navStyle},[e._t("head",function(){return[n("div",{staticClass:"nav-wrapper",class:{completed:e.$A.dialogCompleted(e.dialogData)}},[n("div",{staticClass:"dialog-back",on:{click:e.onBack}},[n("i",{staticClass:"taskfont"},[e._v("\uE676")]),e.msgUnreadOnly?n("div",{staticClass:"back-num"},[e._v(e._s(e.msgUnreadOnly))]):e._e()]),n("div",{staticClass:"dialog-block"},[n("div",{staticClass:"dialog-avatar",on:{click:e.onViewAvatar}},[e.dialogData.type=="group"?[e.dialogData.avatar?n("EAvatar",{staticClass:"img-avatar",attrs:{src:e.dialogData.avatar,size:42}}):e.dialogData.group_type=="department"?n("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):e.dialogData.group_type=="project"?n("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):e.dialogData.group_type=="task"?n("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):n("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:e.dialogData.dialog_user?n("div",{staticClass:"user-avatar"},[n("UserAvatar",{attrs:{online:e.dialogData.online_state,userid:e.dialogData.dialog_user.userid,size:42},on:{"update:online":function(r){return e.$set(e.dialogData,"online_state",r)}}},[e.dialogData.type==="user"&&e.dialogData.online_state!==!0?n("p",{attrs:{slot:"end"},slot:"end"},[e._v(" "+e._s(e.$L(e.dialogData.online_state))+" ")]):e._e()])],1):n("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}})],2),n("div",{staticClass:"dialog-title"},[n("div",{staticClass:"main-title"},[e._l(e.$A.dialogTags(e.dialogData),function(r){return r.color!="success"?[n("Tag",{attrs:{color:r.color,fade:!1}},[e._v(e._s(e.$L(r.text)))])]:e._e()}),n("h2",[e._v(e._s(e.dialogData.name))]),e.peopleNum>0?n("em",{on:{click:function(r){return e.onDialogMenu("groupInfo")}}},[e._v("("+e._s(e.peopleNum)+")")]):e._e(),e.dialogData.bot?n("Tag",{staticClass:"after",attrs:{fade:!1}},[e._v(e._s(e.$L("\u673A\u5668\u4EBA")))]):e._e(),e.dialogData.group_type=="all"?n("Tag",{staticClass:"after pointer",attrs:{fade:!1},on:{"on-click":function(r){return e.onDialogMenu("groupInfo")}}},[e._v(e._s(e.$L("\u5168\u5458")))]):e.dialogData.group_type=="department"?n("Tag",{staticClass:"after pointer",attrs:{fade:!1},on:{"on-click":function(r){return e.onDialogMenu("groupInfo")}}},[e._v(e._s(e.$L("\u90E8\u95E8")))]):e._e(),e.msgLoadIng>0?n("div",{staticClass:"load"},[n("Loading")],1):e._e()],2),n("ul",{staticClass:"title-desc"},[e.dialogData.type==="user"?n("li",{class:[e.dialogData.online_state===!0?"online":"offline"]},[e._v(" "+e._s(e.$L(e.dialogData.online_state===!0?"\u5728\u7EBF":e.dialogData.online_state))+" ")]):e._e()]),e.tagShow?n("ul",{staticClass:"title-tags scrollbar-hidden"},e._l(e.msgTags,function(r){var a;return n("li",{key:r.type,class:(a={},a[r.type||"msg"]=!0,a.active=e.msgType===r.type,a),on:{click:function(l){return e.onMsgType(r.type)}}},[n("i",{staticClass:"no-dark-content"}),n("span",[e._v(e._s(e.$L(r.label)))])])}),0):e._e()])]),n("EDropdown",{staticClass:"dialog-menu",attrs:{trigger:"click"},on:{command:e.onDialogMenu}},[n("i",{staticClass:"taskfont dialog-menu-icon"},[e._v("\uE6E9")]),n("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("EDropdownItem",{attrs:{command:"searchMsg"}},[n("div",[e._v(e._s(e.$L("\u641C\u7D22\u6D88\u606F")))])]),e.dialogData.type==="user"?[e.dialogData.bot==e.userId?n("EDropdownItem",{attrs:{command:"modifyNormal"}},[n("div",[e._v(e._s(e.$L("\u4FEE\u6539\u8D44\u6599")))])]):e._e(),n("EDropdownItem",{attrs:{command:"openCreate"}},[n("div",[e._v(e._s(e.$L("\u521B\u5EFA\u7FA4\u7EC4")))])])]:[n("EDropdownItem",{attrs:{command:"groupInfo"}},[n("div",[e._v(e._s(e.$L("\u7FA4\u7EC4\u8BBE\u7F6E")))])]),e.dialogData.owner_id!=e.userId?[e.dialogData.group_type==="all"&&e.userIsAdmin?n("EDropdownItem",{attrs:{command:"modifyAdmin"}},[n("div",[e._v(e._s(e.$L("\u4FEE\u6539\u8D44\u6599")))])]):e._e(),n("EDropdownItem",{attrs:{command:"exit"}},[n("div",{staticStyle:{color:"#f00"}},[e._v(e._s(e.$L("\u9000\u51FA\u7FA4\u7EC4")))])])]:e.dialogData.group_type==="user"?[n("EDropdownItem",{attrs:{command:"modifyNormal"}},[n("div",[e._v(e._s(e.$L("\u4FEE\u6539\u8D44\u6599")))])]),n("EDropdownItem",{attrs:{command:"transfer"}},[n("div",[e._v(e._s(e.$L("\u8F6C\u8BA9\u7FA4\u4E3B")))])]),n("EDropdownItem",{attrs:{command:"disband"}},[n("div",{staticStyle:{color:"#f00"}},[e._v(e._s(e.$L("\u89E3\u6563\u7FA4\u7EC4")))])])]:e._e()]],2)],1),e.searchShow?n("div",{staticClass:"dialog-search"},[n("div",{staticClass:"search-location"},[n("i",{staticClass:"taskfont",on:{click:function(r){return e.onSearchSwitch("prev")}}},[e._v("\uE702")]),n("i",{staticClass:"taskfont",on:{click:function(r){return e.onSearchSwitch("next")}}},[e._v("\uE705")])]),n("div",{staticClass:"search-input"},[n("Input",{ref:"searchInput",attrs:{placeholder:e.$L("\u641C\u7D22\u6D88\u606F"),clearable:""},on:{"on-keyup":e.onSearchKeyup},model:{value:e.searchKey,callback:function(r){e.searchKey=r},expression:"searchKey"}},[n("div",{staticClass:"search-pre",attrs:{slot:"prefix"},slot:"prefix"},[e.searchLoad>0?n("Loading"):n("Icon",{attrs:{type:"ios-search"}})],1)]),e.searchLoad===0&&e.searchResult.length>0?n("div",{staticClass:"search-total",attrs:{slot:"append"},slot:"append"},[e._v(e._s(e.searchLocation)+"/"+e._s(e.searchResult.length))]):e._e()],1),n("div",{staticClass:"search-cancel",on:{click:function(r){return e.onSearchKeyup(null)}}},[e._v(e._s(e.$L("\u53D6\u6D88")))])]):e._e()],1)]})],2),e.positionMsg?n("div",{staticClass:"dialog-position",class:{down:e.tagShow}},[n("div",{staticClass:"position-label",on:{click:e.onPositionMark}},[e.positionLoad>0?n("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}):n("i",{staticClass:"taskfont"},[e._v("\uE624")]),e._v(" "+e._s(e.positionMsg.label)+" ")],1)]):e._e(),n("VirtualList",{ref:"scroller",staticClass:"dialog-scroller scrollbar-virtual",class:e.scrollerClass,attrs:{"data-key":"id","data-sources":e.allMsgs,"data-component":e.msgItem,"item-class-add":e.itemClassAdd,"extra-props":{dialogData:e.dialogData,operateVisible:e.operateVisible,operateItem:e.operateItem,isMyDialog:e.isMyDialog,msgId:e.msgId},"estimate-size":e.dialogData.type=="group"?105:77,keeps:50,disabled:e.scrollDisabled},on:{scroll:e.onScroll,range:e.onRange,totop:e.onPrevPage,"on-mention":e.onMention,"on-longpress":e.onLongpress,"on-view-reply":e.onViewReply,"on-view-text":e.onViewText,"on-view-file":e.onViewFile,"on-down-file":e.onDownFile,"on-reply-list":e.onReplyList,"on-error":e.onError,"on-emoji":e.onEmoji,"on-show-emoji-user":e.onShowEmojiUser},scopedSlots:e._u([{key:"header",fn:function(){return[e.allMsgs.length===0&&e.loadIng||e.prevId>0?n("div",{staticClass:"dialog-item loading"},[e.scrollOffset<100?n("div",{staticClass:"dialog-wrapper-loading"}):e._e()]):e.allMsgs.length===0?n("div",{staticClass:"dialog-item nothing"},[e._v(e._s(e.$L("\u6682\u65E0\u6D88\u606F")))]):e._e()]},proxy:!0}],null,!1,3828201241)}),n("div",{ref:"footer",staticClass:"dialog-footer",class:e.footerClass,style:e.footerStyle,on:{click:e.onActive}},[n("div",{staticClass:"dialog-newmsg",on:{click:e.onToBottom}},[e._v(e._s(e.$L(`\u6709${e.msgNew}\u6761\u65B0\u6D88\u606F`)))]),n("div",{staticClass:"dialog-goto",on:{click:e.onToBottom}},[n("i",{staticClass:"taskfont"},[e._v("\uE72B")])]),n("DialogUpload",{ref:"chatUpload",staticClass:"chat-upload",attrs:{"dialog-id":e.dialogId},on:{"on-progress":function(r){return e.chatFile("progress",r)},"on-success":function(r){return e.chatFile("success",r)},"on-error":function(r){return e.chatFile("error",r)}}}),e.todoShow?n("div",{staticClass:"chat-bottom-menu"},[n("div",{staticClass:"bottom-menu-label"},[e._v(e._s(e.$L("\u5F85\u529E"))+":")]),n("ul",{staticClass:"scrollbar-hidden"},e._l(e.todoList,function(r){return n("li",{on:{click:function(a){return a.stopPropagation(),e.onViewTodo(r)}}},[n("div",{staticClass:"bottom-menu-desc no-dark-content"},[e._v(e._s(e.$A.getMsgSimpleDesc(r.msg_data)))])])}),0)]):e.quickShow?n("div",{staticClass:"chat-bottom-menu"},[n("ul",{staticClass:"scrollbar-hidden"},e._l(e.quickMsgs,function(r){return n("li",{on:{click:function(a){return a.stopPropagation(),e.sendQuick(r)}}},[n("div",{staticClass:"bottom-menu-desc no-dark-content",style:r.style||null},[e._v(e._s(r.label))])])}),0)]):e._e(),e.isMute?n("div",{staticClass:"chat-mute"},[e._v(" "+e._s(e.$L("\u7981\u8A00\u53D1\u8A00"))+" ")]):n("ChatInput",{ref:"input",attrs:{"dialog-id":e.dialogId,"emoji-bottom":e.windowPortrait,maxlength:2e5,placeholder:e.$L("\u8F93\u5165\u6D88\u606F...")},on:{"on-focus":e.onEventFocus,"on-blur":e.onEventBlur,"on-more":e.onEventMore,"on-file":e.sendFileMsg,"on-send":e.sendMsg,"on-record":e.sendRecord,"on-record-state":e.onRecordState,"on-emoji-visible-change":e.onEventEmojiVisibleChange,"on-height-change":e.onHeightChange},model:{value:e.msgText,callback:function(r){e.msgText=r},expression:"msgText"}})],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.operateVisible,expression:"operateVisible"}],staticClass:"operate-position",style:e.operateStyles},[n("Dropdown",{attrs:{trigger:"custom",placement:"top",visible:e.operateVisible,transferClassName:"dialog-wrapper-operate",transfer:""},on:{"on-clickoutside":function(r){e.operateVisible=!1}}},[n("div",{style:{userSelect:e.operateVisible?"none":"auto",height:e.operateStyles.height}}),n("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[n("DropdownItem",{attrs:{name:"action"}},[n("ul",{staticClass:"operate-action"},[e.msgId===0?n("li",{on:{click:function(r){return e.onOperate("reply")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE6EB")]),n("span",[e._v(e._s(e.$L("\u56DE\u590D")))])]):e._e(),e.operateItem.userid==e.userId&&e.operateItem.type==="text"?n("li",{on:{click:function(r){return e.onOperate("update")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE779")]),n("span",[e._v(e._s(e.$L("\u7F16\u8F91")))])]):e._e(),e._l(e.operateCopys,function(r){return n("li",{on:{click:function(a){return e.onOperate("copy",r)}}},[n("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(r.icon)}}),n("span",[e._v(e._s(e.$L(r.label)))])])}),n("li",{on:{click:function(r){return e.onOperate("forward")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE638")]),n("span",[e._v(e._s(e.$L("\u8F6C\u53D1")))])]),e.operateItem.userid==e.userId?n("li",{on:{click:function(r){return e.onOperate("withdraw")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE637")]),n("span",[e._v(e._s(e.$L("\u64A4\u56DE")))])]):e._e(),e.operateItem.type==="file"?[n("li",{on:{click:function(r){return e.onOperate("view")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE77B")]),n("span",[e._v(e._s(e.$L("\u67E5\u770B")))])]),n("li",{on:{click:function(r){return e.onOperate("down")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7A8")]),n("span",[e._v(e._s(e.$L("\u4E0B\u8F7D")))])])]:e._e(),n("li",{on:{click:function(r){return e.onOperate("tag")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE61E")]),n("span",[e._v(e._s(e.$L(e.operateItem.tag?"\u53D6\u6D88\u6807\u6CE8":"\u6807\u6CE8")))])]),e.operateItem.type==="text"?n("li",{on:{click:function(r){return e.onOperate("newTask")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7B8")]),n("span",[e._v(e._s(e.$L("\u65B0\u4EFB\u52A1")))])]):e._e(),n("li",{on:{click:function(r){return e.onOperate("todo")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7B7")]),n("span",[e._v(e._s(e.$L(e.operateItem.todo?"\u53D6\u6D88\u5F85\u529E":"\u8BBE\u5F85\u529E")))])]),e.msgType!==""?n("li",{on:{click:function(r){return e.onOperate("pos")}}},[n("i",{staticClass:"taskfont"},[e._v("\uEE15")]),n("span",[e._v(e._s(e.$L("\u5B8C\u6574\u5BF9\u8BDD")))])]):e._e()],2)]),n("DropdownItem",{staticClass:"dropdown-emoji",attrs:{name:"emoji"}},[n("ul",{staticClass:"operate-emoji scrollbar-hidden"},[e._l(e.operateEmojis,function(r,a){return n("li",{key:a,staticClass:"no-dark-content",domProps:{innerHTML:e._s(r)},on:{click:function(l){return e.onOperate("emoji",r)}}})}),n("li"),n("li",{staticClass:"more-emoji",on:{click:function(r){return e.onOperate("emoji","more")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE790")])])],2)])],1)],1)],1),e.dialogDrag?n("div",{staticClass:"drag-over",on:{click:function(r){e.dialogDrag=!1}}},[n("div",{staticClass:"drag-text"},[e._v(e._s(e.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):e._e(),n("Modal",{attrs:{title:e.$L(e.pasteTitle),"cancel-text":e.$L("\u53D6\u6D88"),"ok-text":e.$L("\u53D1\u9001"),"enter-ok":!0},on:{"on-ok":e.pasteSend},model:{value:e.pasteShow,callback:function(r){e.pasteShow=r},expression:"pasteShow"}},[n("ul",{staticClass:"dialog-wrapper-paste",class:e.pasteWrapperClass},e._l(e.pasteItem,function(r){return n("li",[r.type=="image"?n("img",{attrs:{src:r.result}}):n("div",[e._v(e._s(e.$L("\u6587\u4EF6"))+": "+e._s(r.name)+" ("+e._s(e.$A.bytesToSize(r.size))+")")])])}),0)]),n("Modal",{attrs:{title:e.$L("\u521B\u5EFA\u7FA4\u7EC4"),"mask-closable":!1},model:{value:e.createGroupShow,callback:function(r){e.createGroupShow=r},expression:"createGroupShow"}},[n("Form",{attrs:{model:e.createGroupData,"label-width":"auto"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("FormItem",{attrs:{prop:"avatar",label:e.$L("\u7FA4\u5934\u50CF")}},[n("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:1},model:{value:e.createGroupData.avatar,callback:function(r){e.$set(e.createGroupData,"avatar",r)},expression:"createGroupData.avatar"}})],1),n("FormItem",{attrs:{prop:"userids",label:e.$L("\u7FA4\u6210\u5458")}},[n("UserSelect",{attrs:{uncancelable:e.createGroupData.uncancelable,"multiple-max":100,"show-bot":"",title:e.$L("\u9009\u62E9\u9879\u76EE\u6210\u5458")},model:{value:e.createGroupData.userids,callback:function(r){e.$set(e.createGroupData,"userids",r)},expression:"createGroupData.userids"}})],1),n("FormItem",{attrs:{prop:"chat_name",label:e.$L("\u7FA4\u540D\u79F0")}},[n("Input",{attrs:{placeholder:e.$L("\u8F93\u5165\u7FA4\u540D\u79F0\uFF08\u9009\u586B\uFF09")},model:{value:e.createGroupData.chat_name,callback:function(r){e.$set(e.createGroupData,"chat_name",r)},expression:"createGroupData.chat_name"}})],1)],1),n("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[n("Button",{attrs:{type:"default"},on:{click:function(r){e.createGroupShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),n("Button",{attrs:{type:"primary",loading:e.createGroupLoad>0},on:{click:e.onCreateGroup}},[e._v(e._s(e.$L("\u521B\u5EFA")))])],1)],1),n("Modal",{attrs:{title:e.$L("\u4FEE\u6539\u8D44\u6599"),"mask-closable":!1},model:{value:e.modifyShow,callback:function(r){e.modifyShow=r},expression:"modifyShow"}},[n("Form",{attrs:{model:e.modifyData,"label-width":"auto"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("FormItem",{attrs:{prop:"avatar",label:e.$L("\u5934\u50CF")}},[n("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:1},model:{value:e.modifyData.avatar,callback:function(r){e.$set(e.modifyData,"avatar",r)},expression:"modifyData.avatar"}})],1),typeof e.modifyData.name!="undefined"?n("FormItem",{attrs:{prop:"name",label:e.$L("\u540D\u79F0")}},[n("Input",{attrs:{maxlength:20},model:{value:e.modifyData.name,callback:function(r){e.$set(e.modifyData,"name",r)},expression:"modifyData.name"}})],1):e._e(),typeof e.modifyData.clear_day!="undefined"?n("FormItem",{attrs:{prop:"clear_day",label:e.$L("\u6D88\u606F\u4FDD\u7559")}},[n("Input",{attrs:{maxlength:3,type:"number"},model:{value:e.modifyData.clear_day,callback:function(r){e.$set(e.modifyData,"clear_day",r)},expression:"modifyData.clear_day"}},[n("div",{attrs:{slot:"append"},slot:"append"},[e._v(e._s(e.$L("\u5929")))])])],1):e._e(),typeof e.modifyData.webhook_url!="undefined"?n("FormItem",{attrs:{prop:"webhook_url",label:"Webhook"}},[n("Input",{attrs:{maxlength:255},model:{value:e.modifyData.webhook_url,callback:function(r){e.$set(e.modifyData,"webhook_url",r)},expression:"modifyData.webhook_url"}})],1):e._e()],1),n("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[n("Button",{attrs:{type:"default"},on:{click:function(r){e.modifyShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),n("Button",{attrs:{type:"primary",loading:e.modifyLoad>0},on:{click:e.onModify}},[e._v(e._s(e.$L("\u4FDD\u5B58")))])],1)],1),n("UserSelect",{ref:"forwardSelect",attrs:{"multiple-max":50,title:e.$L("\u8F6C\u53D1"),"before-submit":e.onForward,"show-select-all":!1,"show-dialog":"",module:""},model:{value:e.forwardData,callback:function(r){e.forwardData=r},expression:"forwardData"}}),n("Modal",{attrs:{title:e.$L("\u8BBE\u7F6E\u5F85\u529E"),"mask-closable":!1},model:{value:e.todoSettingShow,callback:function(r){e.todoSettingShow=r},expression:"todoSettingShow"}},[n("Form",{ref:"todoSettingForm",attrs:{model:e.todoSettingData,"label-width":"auto"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("FormItem",{attrs:{prop:"type",label:e.$L("\u5F53\u524D\u4F1A\u8BDD")}},[n("RadioGroup",{model:{value:e.todoSettingData.type,callback:function(r){e.$set(e.todoSettingData,"type",r)},expression:"todoSettingData.type"}},[n("Radio",{attrs:{label:"all"}},[e._v(e._s(e.$L("\u6240\u6709\u6210\u5458")))]),n("Radio",{attrs:{label:"user"}},[e._v(e._s(e.$L("\u6307\u5B9A\u6210\u5458")))]),n("br"),e.todoSettingData.my_id?n("Radio",{attrs:{label:"my"}},[n("div",{staticClass:"dialog-wrapper-todo"},[n("div",[n("UserAvatar",{attrs:{userid:e.todoSettingData.my_id,"show-icon":!1,"show-name":!0}}),n("Tag",[e._v(e._s(e.$L("\u81EA\u5DF1")))])],1)])]):e._e(),e.todoSettingData.you_id?n("Radio",{attrs:{label:"you"}},[n("div",{staticClass:"dialog-wrapper-todo"},[n("div",[n("UserAvatar",{attrs:{userid:e.todoSettingData.you_id,"show-icon":!1,"show-name":!0}})],1)])]):e._e()],1)],1),e.todoSettingData.type==="user"?n("FormItem",{attrs:{prop:"userids",label:e.$L("\u6307\u5B9A\u6210\u5458")}},[n("UserSelect",{attrs:{"dialog-id":e.dialogId,title:e.$L("\u9009\u62E9\u6307\u5B9A\u6210\u5458")},model:{value:e.todoSettingData.userids,callback:function(r){e.$set(e.todoSettingData,"userids",r)},expression:"todoSettingData.userids"}})],1):e._e()],1),n("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[n("Button",{attrs:{type:"default"},on:{click:function(r){e.todoSettingShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),n("Button",{attrs:{type:"primary",loading:e.todoSettingLoad>0},on:{click:function(r){return e.onTodo("submit")}}},[e._v(e._s(e.$L("\u786E\u5B9A")))])],1)],1),n("DrawerOverlay",{attrs:{placement:"right",size:400},model:{value:e.groupInfoShow,callback:function(r){e.groupInfoShow=r},expression:"groupInfoShow"}},[e.groupInfoShow?n("DialogGroupInfo",{attrs:{dialogId:e.dialogId},on:{"on-close":function(r){e.groupInfoShow=!1}}}):e._e()],1),n("Modal",{attrs:{title:e.$L("\u8F6C\u8BA9\u7FA4\u4E3B\u8EAB\u4EFD"),"mask-closable":!1},model:{value:e.groupTransferShow,callback:function(r){e.groupTransferShow=r},expression:"groupTransferShow"}},[n("Form",{attrs:{model:e.groupTransferData,"label-width":"auto"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("FormItem",{attrs:{prop:"userid",label:e.$L("\u65B0\u7684\u7FA4\u4E3B")}},[n("UserSelect",{attrs:{disabledChoice:e.groupTransferData.disabledChoice,"multiple-max":1,title:e.$L("\u9009\u62E9\u65B0\u7684\u7FA4\u4E3B")},model:{value:e.groupTransferData.userid,callback:function(r){e.$set(e.groupTransferData,"userid",r)},expression:"groupTransferData.userid"}})],1)],1),n("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[n("Button",{attrs:{type:"default"},on:{click:function(r){e.groupTransferShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),n("Button",{attrs:{type:"primary",loading:e.groupTransferLoad>0},on:{click:function(r){return e.onDialogMenu("transferConfirm")}}},[e._v(e._s(e.$L("\u786E\u5B9A\u8F6C\u8BA9")))])],1)],1),n("DrawerOverlay",{attrs:{placement:"right","class-name":"dialog-wrapper-drawer-list",size:500},model:{value:e.replyListShow,callback:function(r){e.replyListShow=r},expression:"replyListShow"}},[e.replyListShow?n("DialogWrapper",{staticClass:"drawer-list",attrs:{dialogId:e.dialogId,msgId:e.replyListId}},[n("div",{staticClass:"drawer-title",attrs:{slot:"head"},slot:"head"},[e._v(e._s(e.$L("\u56DE\u590D\u6D88\u606F")))])]):e._e()],1),n("DrawerOverlay",{attrs:{placement:"right",size:400},model:{value:e.respondShow,callback:function(r){e.respondShow=r},expression:"respondShow"}},[e.respondShow?n("DialogRespond",{attrs:{"respond-data":e.respondData},on:{"on-close":function(r){e.respondShow=!1}}}):e._e()],1),n("DrawerOverlay",{attrs:{placement:"right","class-name":"dialog-wrapper-drawer-list",size:500},model:{value:e.todoViewShow,callback:function(r){e.todoViewShow=r},expression:"todoViewShow"}},[n("div",{staticClass:"dialog-wrapper drawer-list"},[n("div",{staticClass:"dialog-nav"},[n("div",{staticClass:"drawer-title"},[e._v(e._s(e.$L("\u5F85\u529E\u6D88\u606F")))])]),n("Scrollbar",{attrs:{"class-name":"dialog-scroller"}},[e.todoViewMsg?n("DialogItem",{attrs:{source:e.todoViewMsg,simpleView:""},on:{"on-view-text":e.onViewText,"on-view-file":e.onViewFile,"on-down-file":e.onDownFile,"on-emoji":e.onEmoji}}):e._e(),n("Button",{staticClass:"original-button",attrs:{icon:"md-exit",type:"text",loading:e.todoViewPosLoad},on:{click:e.onPosTodo}},[e._v(e._s(e.$L("\u56DE\u5230\u539F\u6587")))])],1),n("div",{staticClass:"todo-button"},[n("Button",{attrs:{type:"primary",size:"large",icon:"md-checkbox-outline",loading:e.todoViewLoad,long:""},on:{click:e.onDoneTodo}},[e._v(e._s(e.$L("\u5B8C\u6210")))])],1)],1)]),n("DrawerOverlay",{attrs:{placement:"right",size:600},model:{value:e.approveDetailsShow,callback:function(r){e.approveDetailsShow=r},expression:"approveDetailsShow"}},[e.approveDetailsShow?n("ApproveDetails",{staticStyle:{height:"100%","border-radius":"10px"},attrs:{data:e.approveDetails}}):e._e()],1)],1):e._e()},OJ=[];const AJ={name:"DialogWrapper",components:{UserSelect:Ol,ImgUpload:Ku,DialogRespond:QZ,DialogItem:fl,VirtualList:CJ,ChatInput:yJ,DialogGroupInfo:zZ,DrawerOverlay:Wu,DialogUpload:BZ,ApproveDetails:Qu},props:{dialogId:{type:Number,default:0},msgId:{type:Number,default:0},autoFocus:{type:Boolean,default:!1},isMessenger:{type:Boolean,default:!1},beforeBack:Function},data(){return{msgItem:fl,msgText:"",msgNew:0,msgType:"",loadIng:0,allMsgs:[],tempMsgs:[],tempId:$A.randNum(1e9,9999999999),msgLoadIng:0,msgActiveIndex:-1,pasteShow:!1,pasteFile:[],pasteItem:[],searchShow:!1,searchKey:"",searchLoad:0,searchLocation:1,searchResult:[],createGroupShow:!1,createGroupData:{},createGroupLoad:0,modifyShow:!1,modifyData:{},modifyLoad:0,forwardData:[],openId:0,dialogDrag:!1,groupInfoShow:!1,groupTransferShow:!1,groupTransferLoad:0,groupTransferData:{userid:[],disabledChoice:[]},navStyle:{},operateVisible:!1,operateCopys:[],operateStyles:{},operateItem:{},recordState:"",wrapperStart:{},scrollOffset:0,scrollTail:0,preventMoreLoad:!1,preventToBottom:!1,replyListShow:!1,replyListId:0,respondShow:!1,respondData:{},todoSettingShow:!1,todoSettingLoad:0,todoSettingData:{type:"all",userids:[]},todoViewLoad:!1,todoViewPosLoad:!1,todoViewShow:!1,todoViewData:{},todoViewMid:0,todoViewId:0,scrollDisabled:!1,scrollDirection:null,scrollAction:0,scrollTmp:0,positionLoad:0,approveDetails:{id:0},approveDetailsShow:!1}},beforeDestroy(){this.$store.dispatch("forgetInDialog",this._uid),this.$store.dispatch("closeDialog",this.dialogId)},computed:{...Wn(["userIsAdmin","taskId","dialogSearchMsgId","dialogMsgs","dialogTodos","dialogMsgTransfer","cacheDialogs","wsOpenNum","touchBackInProgress","dialogIns","cacheUserBasic","fileLinks","cacheEmojis","keyboardType","keyboardHeight","safeAreaBottom"]),...Nl(["isLoad"]),isReady(){return this.dialogId>0&&this.dialogData.id>0},dialogData(){return this.cacheDialogs.find(({id:e})=>e==this.dialogId)||{}},dialogList(){return this.cacheDialogs.filter(e=>!(e.name===void 0||e.dialog_delete===1)).sort((e,t)=>e.top_at||t.top_at?$A.Date(t.top_at)-$A.Date(e.top_at):e.todo_num>0||t.todo_num>0?t.todo_num-e.todo_num:$A.Date(t.last_at)-$A.Date(e.last_at))},dialogMsgList(){return this.isReady?this.dialogMsgs.filter(e=>e.dialog_id==this.dialogId):[]},tempMsgList(){return this.isReady?this.tempMsgs.filter(e=>e.dialog_id==this.dialogId):[]},allMsgList(){const e=[];if(e.push(...this.dialogMsgList.filter(t=>this.msgFilter(t))),this.msgId>0){const t=this.dialogMsgs.find(n=>n.id==this.msgId);t&&e.unshift(t)}if(this.tempMsgList.length>0){const t=e.map(({id:r})=>r),n=this.tempMsgList.filter(r=>!t.includes(r.id)&&this.msgFilter(r));n.length>0&&e.push(...n)}return e.sort((t,n)=>t.id-n.id)},loadMsg(){return this.isLoad(`msg::${this.dialogId}-${this.msgId}-${this.msgType}`)},prevId(){return this.allMsgs.length>0?$A.runNum(this.allMsgs[0].prev_id):0},peopleNum(){return this.dialogData.type==="group"?$A.runNum(this.dialogData.people):0},pasteTitle(){const{pasteItem:e}=this;let t=e.find(({type:r})=>r=="image"),n=e.find(({type:r})=>r!="image");return t&&n?"\u53D1\u9001\u6587\u4EF6/\u56FE\u7247":t?"\u53D1\u9001\u56FE\u7247":"\u53D1\u9001\u6587\u4EF6"},msgTags(){const e=[{type:"",label:"\u6D88\u606F"}];return this.dialogData.has_tag&&e.push({type:"tag",label:"\u6807\u6CE8"}),this.dialogData.has_image&&e.push({type:"image",label:"\u56FE\u7247"}),this.dialogData.has_file&&e.push({type:"file",label:"\u6587\u4EF6"}),this.dialogData.has_link&&e.push({type:"link",label:"\u94FE\u63A5"}),this.dialogData.group_type==="project"&&e.push({type:"project",label:"\u6253\u5F00\u9879\u76EE"}),this.dialogData.group_type==="task"&&e.push({type:"task",label:"\u6253\u5F00\u4EFB\u52A1"}),e},quickMsgs(){return this.dialogData.quick_msgs||[]},quickShow(){return this.quickMsgs.length>0&&this.windowScrollY===0&&this.quoteId===0},todoList(){return this.dialogData.todo_num?this.dialogTodos.filter(e=>!e.done_at&&e.dialog_id==this.dialogId).sort((e,t)=>t.id-e.id):[]},todoShow(){return this.todoList.length>0&&this.windowScrollY===0&&this.quoteId===0},wrapperClass(){return["ready","ing"].includes(this.recordState)?["record-ready"]:null},tagShow(){return this.msgTags.length>1&&this.windowScrollY===0&&!this.searchShow},scrollerClass(){return!this.$slots.head&&this.tagShow?"default-header":null},pasteWrapperClass(){return this.pasteItem.find(({type:e})=>e!=="image")?["multiple"]:[]},footerClass(){return this.msgNew>0&&this.allMsgs.length>0?"newmsg":this.scrollTail>500?"goto":null},footerStyle({keyboardType:e,keyboardHeight:t,safeAreaBottom:n,windowScrollY:r,isMessenger:a}){const l={};return r===0&&a&&e==="show"&&t>0&&t<120&&(l.paddingBottom=t+n+"px"),l},msgUnreadOnly(){let e=0;return this.cacheDialogs.some(t=>{e+=$A.getDialogNum(t)}),e<=0?"":(e>999&&(e="999+"),String(e))},isMyDialog(){const{dialogData:e,userId:t}=this;return e.dialog_user&&e.dialog_user.userid==t},isMute(){if(this.dialogData.group_type==="all"){if(this.dialogData.all_group_mute==="all")return!0;if(this.dialogData.all_group_mute==="user"&&!this.userIsAdmin)return!0}return!1},quoteId(){return this.msgId>0?this.msgId:this.dialogData.extra_quote_id||0},quoteUpdate(){return this.dialogData.extra_quote_type==="update"},quoteData(){return this.quoteId?this.allMsgs.find(({id:e})=>e===this.quoteId):null},todoViewMsg(){if(this.todoViewMid){const e=this.allMsgs.find(t=>t.id==this.todoViewMid);if(e)return e;if(this.todoViewData.id===this.todoViewMid)return this.todoViewData}return null},positionMsg(){const{unread:e,position_msgs:t}=this.dialogData;if(!t||t.length===0||e===0||this.allMsgs.length===0)return null;const n=t.sort((r,a)=>a.msg_id-r.msg_id)[0];return this.allMsgs.findIndex(({id:r})=>r==n.msg_id)===-1?n.label==="{UNREAD}"?Object.assign(n,{label:this.$L(`\u672A\u8BFB\u6D88\u606F${e}\u6761`)}):n:null},operateEmojis(){const e=this.cacheEmojis.slice(0,3);return Object.values(["\u{1F44C}","\u{1F44D}","\u{1F602}","\u{1F389}","\u2764\uFE0F","\u{1F973}\uFE0F","\u{1F970}","\u{1F625}","\u{1F62D}"]).some(t=>{e.includes(t)||e.push(t)}),e}},watch:{dialogId:{handler(e,t){e&&(this.msgNew=0,this.msgType="",this.searchShow=!1,this.allMsgList.length>0&&(this.allMsgs=this.allMsgList,requestAnimationFrame(this.onToBottom)),this.getMsgs({dialog_id:e,msg_id:this.msgId,msg_type:this.msgType}).then(n=>{this.openId=e,setTimeout(this.onSearchMsgId,100)}).catch(n=>{}),this.$store.dispatch("saveInDialog",{uid:this._uid,dialog_id:e}),this.autoFocus&&this.inputFocus()),this.$store.dispatch("closeDialog",t)},immediate:!0},loadMsg:{handler(e){e?this.loadIng++:setTimeout(t=>{this.loadIng--},300)},immediate:!0},msgType(){this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,clear_before:!0}).catch(e=>{})},searchKey(e){!e||(this.searchLoad++,setTimeout(t=>{this.searchKey===e&&(this.searchLoad++,this.searchResult=[],this.searchLocation=0,this.$store.dispatch("call",{url:"dialog/msg/search",data:{dialog_id:this.dialogId,key:e}}).then(({data:n})=>{this.searchKey===e&&(this.searchResult=n.data,this.searchLocation=this.searchResult.length)}).finally(n=>{this.searchLoad--})),this.searchLoad--},600))},searchLocation(e){if(e===0)return;const t=this.searchResult[e-1];t&&this.onPositionId(t)},dialogSearchMsgId(){this.onSearchMsgId()},dialogMsgTransfer:{handler({time:e,msgFile:t,msgRecord:n,msgText:r,dialogId:a}){e>$A.Time()&&a==this.dialogId&&(this.$store.state.dialogMsgTransfer.time=0,this.$nextTick(()=>{$A.isArray(t)&&t.length>0?this.sendFileMsg(t):$A.isJson(n)&&n.duration>0?this.sendRecord(n):r&&this.sendMsg(r)}))},immediate:!0},wsOpenNum(e){e<=1||this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType}).catch(t=>{})},allMsgList(e,t){const{tail:n}=this.scrollInfo();if($A.isIos()&&e.length!==t.length?(this.$refs.scroller.$el.style.visibility="hidden",this.allMsgs=e,this.$nextTick(r=>{this.$refs.scroller.$el.style.visibility="visible"})):this.allMsgs=e,!this.windowActive||n>10&&t.length>0){const r=t[t.length-1]?t[t.length-1].id:0,a=e.filter(l=>l.id&&l.id>r);this.msgNew+=a.length}else this.preventToBottom||this.$nextTick(this.onToBottom)},windowScrollY(e){if($A.isIos()){const{tail:t}=this.scrollInfo();this.navStyle={marginTop:e+"px"},t<=10&&requestAnimationFrame(this.onToBottom),this.$refs.input.isFocus&&$A.scrollToView(this.$refs.footer)}},windowActive(e){if(e&&this.autoFocus){const t=$A.last(this.dialogIns);t&&t.uid===this._uid&&this.inputFocus()}},dialogDrag(e){e&&(this.operateVisible=!1)},msgActiveIndex(e){e>-1&&setTimeout(t=>this.msgActiveIndex=-1,800)}},methods:{sendMsg(e,t){let n,r="text",a="no",l=!1;if(typeof e=="string"&&e?n=e:(n=this.msgText,l=!0),t==="md"?(n=this.$refs.input.getText(),r="md"):t==="silence"&&(a="yes"),n==""){this.inputFocus();return}if(r==="text"&&(n=n.replace(/<\/span> <\/p>$/,"

")),this.quoteUpdate){r==="text"&&(n=n.replace(new RegExp(`src=(["'])${$A.apiUrl("../")}`,"g"),"src=$1{{RemoteURL}}"));const u=this.quoteId;this.$store.dispatch("setLoad",{key:`msg-${u}`,delay:600}),this.cancelQuote(),this.onActive(),this.$store.dispatch("call",{url:"dialog/msg/sendtext",data:{dialog_id:this.dialogId,update_id:u,text:n,text_type:r,silence:a},method:"post",complete:c=>this.$store.dispatch("cancelLoad",`msg-${u}`)}).then(({data:c})=>{this.sendSuccess(c),this.onPositionId(u)}).catch(({msg:c})=>{$A.modalError(c)})}else{const u=$A.stringLength(n.replace(/]*?>/g,""))>5e3,c={id:this.getTempId(),dialog_id:this.dialogData.id,reply_id:this.quoteId,reply_data:this.quoteData,type:u?"loading":"text",userid:this.userId,msg:{text:u?"":n,type:r}};this.tempMsgs.push(c),this.msgType="",this.cancelQuote(),this.onActive(),this.$nextTick(this.onToBottom),this.$store.dispatch("call",{url:"dialog/msg/sendtext",data:{dialog_id:c.dialog_id,reply_id:c.reply_id,text:n,text_type:r,silence:a},method:"post"}).then(({data:d})=>{this.tempMsgs=this.tempMsgs.filter(({id:f})=>f!=c.id),this.sendSuccess(d)}).catch(d=>{this.$set(c,"error",!0),this.$set(c,"errorData",{type:"text",content:d.msg,msg:n})})}l&&requestAnimationFrame(u=>this.msgText="")},sendRecord(e){const t={id:this.getTempId(),dialog_id:this.dialogData.id,reply_id:this.quoteId,reply_data:this.quoteData,type:"loading",userid:this.userId,msg:e};this.tempMsgs.push(t),this.msgType="",this.cancelQuote(),this.onActive(),this.$nextTick(this.onToBottom),this.$store.dispatch("call",{url:"dialog/msg/sendrecord",data:Object.assign(e,{dialog_id:this.dialogId,reply_id:this.quoteId}),method:"post"}).then(({data:n})=>{this.tempMsgs=this.tempMsgs.filter(({id:r})=>r!=t.id),this.sendSuccess(n)}).catch(n=>{this.$set(t,"error",!0),this.$set(t,"errorData",{type:"record",content:n.msg,msg:e})})},sendFileMsg(e){const t=$A.isArray(e)?e:[e];t.length>0&&(this.pasteFile=[],this.pasteItem=[],t.some(n=>{const r={type:$A.getMiddle(n.type,null,"/"),name:n.name,size:n.size,result:null};if(r.type==="image"){const a=new FileReader;a.readAsDataURL(n),a.onload=({target:l})=>{r.result=l.result,this.pasteFile.push(n),this.pasteItem.push(r),this.pasteShow=!0}}else this.pasteFile.push(n),this.pasteItem.push(r),this.pasteShow=!0}))},sendQuick(e){this.sendMsg(`

${e.label}

`)},getTempId(){return this.tempId++},getMsgs(e){return new Promise((t,n)=>{setTimeout(r=>this.msgLoadIng++,2e3),this.$store.dispatch("getDialogMsgs",e).then(t).catch(n).finally(r=>{this.msgLoadIng--})})},msgFilter(e){if(this.msgType){if(this.msgType==="tag"){if(!e.tag)return!1}else if(this.msgType==="link"){if(!e.link)return!1}else if(this.msgType!==e.mtype)return!1}return!(this.msgId&&e.reply_id!=this.msgId)},onSearchMsgId(){this.dialogSearchMsgId>0&&this.openId===this.dialogId&&(this.onPositionId(this.dialogSearchMsgId),this.$store.state.dialogSearchMsgId=0)},onPositionId(e,t=0,n=0){return new Promise((r,a)=>{if(e===0){$A.modalError("\u67E5\u770B\u5931\u8D25\uFF1A\u53C2\u6570\u9519\u8BEF"),a();return}if(this.loadMsg||this.msgType!==""){if(this.msgType="",n===0)this.$store.dispatch("showSpinner",600);else if(n>20){this.$store.dispatch("hiddenSpinner"),$A.modalError("\u67E5\u770B\u5931\u8D25\uFF1A\u8BF7\u6C42\u8D85\u65F6"),a();return}n++,setTimeout(c=>{this.onPositionId(e,t,n).then(r).catch(a)},Math.min(800,200*n));return}n>0&&this.$store.dispatch("hiddenSpinner");const l=this.allMsgs.findIndex(c=>c.id===e),u=this.prevId>0?0:-1;l>u?setTimeout(c=>{this.onToIndex(l),r()},200):(t>0&&this.$store.dispatch("setLoad",{key:`msg-${t}`,delay:600}),this.preventToBottom=!0,this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,position_id:e,spinner:2e3}).finally(c=>{const d=this.allMsgs.findIndex(f=>f.id===e);d>-1&&(this.onToIndex(d),r()),t>0&&this.$store.dispatch("cancelLoad",`msg-${t}`),this.preventToBottom=!1}))})},onViewTodo(e){if(this.operateVisible)return;this.todoViewId=e.id,this.todoViewMid=e.msg_id,this.todoViewShow=!0,this.allMsgs.findIndex(n=>n.id===this.todoViewMid)===-1&&this.$store.dispatch("call",{url:"dialog/msg/one",data:{msg_id:this.todoViewMid}}).then(({data:n})=>{this.todoViewData=n})},onCloseTodo(){this.todoViewLoad=!1,this.todoViewShow=!1,this.todoViewData={},this.todoViewMid=0,this.todoViewId=0},onPosTodo(){!this.todoViewMid||(this.todoViewPosLoad=!0,this.onPositionId(this.todoViewMid).then(this.onCloseTodo).finally(e=>{this.todoViewPosLoad=!1}))},onDoneTodo(){!this.todoViewId||this.todoViewLoad||(this.todoViewLoad=!0,this.$store.dispatch("call",{url:"dialog/msg/done",data:{id:this.todoViewId}}).then(({data:e})=>{this.$store.dispatch("saveDialogTodo",{id:this.todoViewId,done_at:$A.formatDate("Y-m-d H:i:s")}),this.$store.dispatch("saveDialog",{id:this.dialogId,todo_num:this.todoList.length}),e.add&&this.sendSuccess(e.add),this.todoList.length===0&&this.$store.dispatch("getDialogTodo",this.dialogId),this.onCloseTodo()}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.todoViewLoad=!1}))},itemClassAdd(e){return e===this.msgActiveIndex?"common-shake":""},inputFocus(){this.$nextTick(e=>{this.$refs.input&&this.$refs.input.focus()})},onRecordState(e){this.recordState=e},chatPasteDrag(e,t){this.dialogDrag=!1;const n=t==="drag"?e.dataTransfer.files:e.clipboardData.files,r=Array.prototype.slice.call(n);r.length>0&&(e.preventDefault(),this.sendFileMsg(r))},chatDragOver(e,t){let n=this.__dialogDrag=$A.randomString(8);if(!e)setTimeout(()=>{n===this.__dialogDrag&&(this.dialogDrag=e)},150);else{if(t.dataTransfer.effectAllowed==="move"||Array.prototype.slice.call(t.dataTransfer.files).length===0)return;this.dialogDrag=!0}},onTouchStart(e){this.wrapperStart=Object.assign(this.scrollInfo(),{clientY:e.touches[0].clientY,exclud:!this.$refs.scroller.$el.contains(e.target)})},onTouchMove(e){if(this.windowPortrait&&this.windowScrollY>0){if(this.wrapperStart.exclud){e.preventDefault();return}this.wrapperStart.clientY>e.touches[0].clientY?this.wrapperStart.tail===0&&e.preventDefault():this.wrapperStart.offset===0&&e.preventDefault()}},pasteSend(){this.pasteFile.some(e=>{this.$refs.chatUpload.upload(e)})},chatFile(e,t){switch(e){case"progress":const n={id:t.tempId,dialog_id:this.dialogData.id,reply_id:this.quoteId,type:"loading",userid:this.userId,msg:{}};this.tempMsgs.push(n),this.msgType="",this.cancelQuote(),this.onActive(),this.$nextTick(this.onToBottom);break;case"error":this.tempMsgs=this.tempMsgs.filter(({id:r})=>r!=t.tempId);break;case"success":this.tempMsgs=this.tempMsgs.filter(({id:r})=>r!=t.tempId),this.sendSuccess(t.data);break}},sendSuccess(e){if($A.isArray(e)){e.some(this.sendSuccess);return}this.$store.dispatch("saveDialogMsg",e),this.quoteUpdate||(this.$store.dispatch("increaseTaskMsgNum",e),this.$store.dispatch("increaseMsgReplyNum",e),this.$store.dispatch("updateDialogLastMsg",e)),this.cancelQuote(),this.onActive()},setQuote(e,t){var n;(n=this.$refs.input)==null||n.setQuote(e,t)},cancelQuote(){var e;(e=this.$refs.input)==null||e.cancelQuote()},onEventFocus(){this.$emit("on-focus")},onEventBlur(){this.$emit("on-blur")},onEventMore(e){switch(e){case"image":case"file":this.$refs.chatUpload.handleClick();break;case"call":this.onCallTel();break;case"anon":this.onAnon();break}},onCallTel(){this.$store.dispatch("call",{url:"dialog/tel",data:{dialog_id:this.dialogId},spinner:600}).then(({data:e})=>{e.tel&&$A.eeuiAppSendMessage({action:"callTel",tel:e.tel}),e.add&&(this.$store.dispatch("saveDialogMsg",e.add),this.$store.dispatch("updateDialogLastMsg",e.add),this.onActive())}).catch(({msg:e})=>{$A.modalError(e)})},onAnon(){if(this.dialogData.type!=="user"||this.dialogData.bot){$A.modalWarning("\u533F\u540D\u6D88\u606F\u4EC5\u5141\u8BB8\u53D1\u9001\u7ED9\u4E2A\u4EBA");return}$A.modalInput({title:"\u53D1\u9001\u533F\u540D\u6D88\u606F",placeholder:"\u533F\u540D\u6D88\u606F\u5C06\u901A\u8FC7\u533F\u540D\u6D88\u606F\uFF08\u673A\u5668\u4EBA\uFF09\u53D1\u9001\u7ED9\u5BF9\u65B9\uFF0C\u4E0D\u4F1A\u8BB0\u5F55\u4F60\u7684\u4EFB\u4F55\u8EAB\u4EFD\u4FE1\u606F",inputProps:{type:"textarea",rows:3,autosize:{minRows:3,maxRows:6},maxlength:2e3},okText:"\u533F\u540D\u53D1\u9001",onOk:e=>e?new Promise((t,n)=>{this.$store.dispatch("call",{url:"dialog/msg/sendanon",data:{userid:this.dialogData.dialog_user.userid,text:e},method:"post"}).then(({msg:r})=>{t(r)}).catch(({msg:r})=>{n(r)})}):"\u8BF7\u8F93\u5165\u6D88\u606F\u5185\u5BB9"})},onEventEmojiVisibleChange(e){e&&this.windowPortrait&&this.onToBottom()},onHeightChange({newVal:e,oldVal:t}){const n=e-t;if(n!==0){const{offset:r,tail:a}=this.scrollInfo();a>0&&this.onToOffset(r+n)}},onActive(){this.$emit("on-active")},onToBottom(){this.msgNew=0;const e=this.$refs.scroller;e&&(e.scrollToBottom(),requestAnimationFrame(t=>e.scrollToBottom()))},onToIndex(e){const t=this.$refs.scroller;t&&(t.stopToBottom(),t.scrollToIndex(e,-100),requestAnimationFrame(n=>t.scrollToIndex(e,-100))),requestAnimationFrame(n=>this.msgActiveIndex=e)},onToOffset(e){const t=this.$refs.scroller;t&&(t.stopToBottom(),t.scrollToOffset(e),setTimeout(n=>t.scrollToOffset(e),10))},scrollInfo(){const e=this.$refs.scroller;return e?e.scrollInfo():{offset:0,scale:0,tail:0}},openProject(){!this.dialogData.group_info||(this.windowPortrait&&this.$store.dispatch("openDialog",0),this.goForward({name:"manage-project",params:{projectId:this.dialogData.group_info.id}}))},openTask(){!this.dialogData.group_info||(this.taskId>0&&this.$store.dispatch("openDialog",0),this.$store.dispatch("openTask",this.dialogData.group_info.id))},onPrevPage(){this.prevId!==0&&this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,prev_id:this.prevId,save_before:e=>this.scrollDisabled=!0,save_after:e=>this.scrollDisabled=!1}).then(({data:e})=>{const t=e.list.map(n=>n.id);this.$nextTick(()=>{const n=this.$refs.scroller,r=t.reduce((l,u)=>({size:(typeof l=="object"?l.size:n.getSize(l))+n.getSize(u)}));let a=n.getOffset()+r.size;this.prevId===0&&(a-=36),this.onToOffset(a),setTimeout(l=>n.virtual.handleFront(),10)})}).catch(()=>{})},onDialogMenu(e){var t;switch(e){case"searchMsg":this.searchShow=!0,this.$nextTick(r=>{this.$refs.searchInput.focus()});break;case"openCreate":const n=[this.userId];this.dialogData.dialog_user&&this.userId!=this.dialogData.dialog_user.userid&&n.push(this.dialogData.dialog_user.userid),this.createGroupData={userids:n,uncancelable:[this.userId]},this.createGroupShow=!0;break;case"modifyNormal":this.modifyData={dialog_id:this.dialogData.id,avatar:this.dialogData.avatar,name:this.dialogData.name},this.dialogData.type==="user"&&(this.modifyData=Object.assign(this.modifyData,{userid:this.dialogData.dialog_user.userid,avatar:(t=this.cacheUserBasic.find(r=>r.userid===this.dialogData.dialog_user.userid))==null?void 0:t.userimg,clear_day:0,webhook_url:""}),this.modifyLoad++,this.$store.dispatch("call",{url:"users/bot/info",data:{id:this.dialogData.dialog_user.userid}}).then(({data:r})=>{this.modifyData.clear_day=r.clear_day,this.modifyData.webhook_url=r.webhook_url}).finally(()=>{this.modifyLoad--})),this.modifyShow=!0;break;case"modifyAdmin":this.modifyData={dialog_id:this.dialogData.id,avatar:this.dialogData.avatar,admin:1},this.modifyShow=!0;break;case"groupInfo":this.groupInfoShow=!0;break;case"transfer":this.groupTransferData={dialog_id:this.dialogId,userid:[],disabledChoice:[this.userId]},this.groupTransferShow=!0;break;case"transferConfirm":this.onTransferGroup();break;case"disband":this.onDisbandGroup();break;case"exit":this.onExitGroup();break}},onTransferGroup(){if(this.groupTransferData.userid.length===0){$A.messageError("\u8BF7\u9009\u62E9\u65B0\u7684\u7FA4\u4E3B");return}this.groupTransferLoad++,this.$store.dispatch("call",{url:"dialog/group/transfer",data:{dialog_id:this.dialogId,userid:this.groupTransferData.userid[0]}}).then(({data:e,msg:t})=>{$A.messageSuccess(t),this.$store.dispatch("saveDialog",e)}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.groupTransferLoad--,this.groupTransferShow=!1})},onDisbandGroup(){$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u8981\u89E3\u6563\u3010${this.dialogData.name}\u3011\u7FA4\u7EC4\u5417\uFF1F`,loading:!0,okText:"\u89E3\u6563",onOk:()=>new Promise((e,t)=>{this.$store.dispatch("call",{url:"dialog/group/disband",data:{dialog_id:this.dialogId}}).then(({msg:n})=>{e(n),this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"})}).catch(({msg:n})=>{t(n)})})})},onExitGroup(){$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u7FA4\u7EC4\u5417\uFF1F",loading:!0,onOk:()=>new Promise((e,t)=>{this.$store.dispatch("call",{url:"dialog/group/deluser",data:{dialog_id:this.dialogId}}).then(({msg:n})=>{e(n),this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"})}).catch(({msg:n})=>{t(n)})})})},onCreateGroup(){this.createGroupLoad++,this.$store.dispatch("call",{url:"dialog/group/add",data:this.createGroupData}).then(({data:e,msg:t})=>{$A.messageSuccess(t),this.createGroupShow=!1,this.createGroupData={},this.$store.dispatch("saveDialog",e),this.$store.dispatch("openDialog",e.id)}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.createGroupLoad--})},onModify(){this.modifyData.userid?(this.modifyLoad++,this.$store.dispatch("call",{url:"users/bot/edit",data:{id:this.modifyData.userid,avatar:this.modifyData.avatar,name:this.modifyData.name,clear_day:this.modifyData.clear_day,webhook_url:this.modifyData.webhook_url},method:"post"}).then(({data:e,msg:t})=>{$A.messageSuccess(t),this.$store.dispatch("saveUserBasic",{userid:this.modifyData.userid,nickname:e.name,userimg:e.avatar}),this.$store.dispatch("saveDialog",{id:this.modifyData.dialog_id,name:e.name}),this.modifyShow=!1,this.modifyData={}}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.modifyLoad--})):(this.modifyLoad++,this.$store.dispatch("call",{url:"dialog/group/edit",data:this.modifyData}).then(({data:e,msg:t})=>{$A.messageSuccess(t),this.$store.dispatch("saveDialog",e),this.modifyShow=!1,this.modifyData={}}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.modifyLoad--}))},onForward(){return new Promise((e,t)=>{if(this.forwardData.length===0){$A.messageError("\u8BF7\u9009\u62E9\u8F6C\u53D1\u5BF9\u8BDD\u6216\u6210\u5458"),t();return}const n=this.forwardData.filter(a=>$A.leftExists(a,"d:")).map(a=>a.replace("d:","")),r=this.forwardData.filter(a=>!$A.leftExists(a,"d:"));this.$store.dispatch("call",{url:"dialog/msg/forward",data:{dialogids:n,userids:r,msg_id:this.operateItem.id}}).then(({data:a,msg:l})=>{this.$store.dispatch("saveDialogMsg",a.msgs),this.$store.dispatch("updateDialogLastMsg",a.msgs),$A.messageSuccess(l),e()}).catch(({msg:a})=>{$A.modalError(a),t()})})},onScroll(e){this.operateVisible=!1;const{offset:t,tail:n}=this.scrollInfo();this.scrollOffset=t,this.scrollTail=n,this.scrollTail<=10&&(this.msgNew=0),this.scrollAction=e.target.scrollTop,this.scrollDirection=this.scrollTmp<=this.scrollAction?"down":"up",setTimeout(r=>this.scrollTmp=this.scrollAction,0)},onRange(e){if(this.preventMoreLoad)return;const t=this.scrollDirection==="down"?"next_id":"prev_id";for(let n=e.start;n<=e.end;n++){const r=this.allMsgs[n][t];if(r){const a=this.allMsgs[n+(t==="next_id"?1:-1)];a&&a.id!=r&&(this.preventMoreLoad=!0,this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,[t]:r}).finally(l=>{this.preventMoreLoad=!1}))}}},onBack(){if(!this.beforeBack)return this.handleBack();const e=this.beforeBack();e&&e.then?e.then(()=>{this.handleBack()}):this.handleBack()},handleBack(){const{name:e,params:t}=this.$store.state.routeHistoryLast;e===this.$route.name&&/^\d+$/.test(t.dialogId)?this.goForward({name:this.$route.name}):this.goBack()},onMsgType(e){switch(e){case"project":this.openProject();break;case"task":this.openTask();break;default:this.loadMsg?$A.messageWarning("\u6B63\u5728\u52A0\u8F7D\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5..."):this.msgType=e;break}},onMention(e){const t=this.cacheUserBasic.find(({userid:n})=>n==e.userid);t&&this.$refs.input.addMention({denotationChar:"@",id:t.userid,value:t.nickname})},onLongpress({event:e,el:t,msgData:n}){this.operateVisible=this.operateItem.id===n.id,this.operateItem=$A.isJson(n)?n:{},this.operateCopys=[],e.target.nodeName==="IMG"&&this.$Electron?this.operateCopys.push({type:"image",icon:"",label:"\u590D\u5236\u56FE\u7247",value:$A.thumbRestore(e.target.currentSrc)}):e.target.nodeName==="A"&&(e.target.classList.contains("mention")&&e.target.classList.contains("file")&&this.findOperateFile(this.operateItem.id,e.target.href),this.operateCopys.push({type:"link",icon:"",label:"\u590D\u5236\u94FE\u63A5",value:e.target.href})),n.type==="text"&&(e.target.nodeName==="IMG"&&this.operateCopys.push({type:"imagedown",icon:"",label:"\u4E0B\u8F7D\u56FE\u7247",value:$A.thumbRestore(e.target.currentSrc)}),n.msg.text.replace(/<[^>]+>/g,"").length>0&&this.operateCopys.push({type:"text",icon:"",label:this.operateCopys.length>0?"\u590D\u5236\u6587\u672C":"\u590D\u5236",value:""})),this.$nextTick(()=>{const r=t.getBoundingClientRect(),a=this.$el.getBoundingClientRect();this.operateStyles={left:`${e.clientX-a.left}px`,top:`${r.top+this.windowScrollY}px`,height:r.height+"px"},this.operateVisible=!0})},onOperate(e,t=null){this.operateVisible=!1,this.$nextTick(n=>{switch(e){case"reply":this.onReply();break;case"update":this.onUpdate();break;case"copy":this.onCopy(t);break;case"forward":this.forwardData=[],this.$refs.forwardSelect.onSelection();break;case"withdraw":this.onWithdraw();break;case"view":this.onViewFile();break;case"down":this.onDownFile();break;case"tag":this.onTag();break;case"newTask":let r=$A.formatMsgBasic(this.operateItem.msg.text);r=r.replace(/]*?src=(["'])(.*?)(_thumb\.jpg)*\1[^>]*?>/g,''),Ya.Store.set("addTask",{owner:[this.userId],content:r});break;case"todo":this.onTodo();break;case"pos":this.onPositionId(this.operateItem.id);break;case"emoji":t==="more"?RJ().then(this.onEmoji):this.onEmoji(t);break}})},onReply(e){const{tail:t}=this.scrollInfo();this.setQuote(this.operateItem.id,e),this.inputFocus(),t<=10&&requestAnimationFrame(this.onToBottom)},onUpdate(){const{type:e}=this.operateItem;if(this.onReply(e==="text"?"update":"reply"),e==="text"){let{text:t,type:n}=this.operateItem.msg;this.$refs.input.setPasteMode(!1),n==="md"?this.$refs.input.setText(t):(t.indexOf("mention")>-1&&(t=t.replace(/
]*)>~([^>]*)<\/a>/g,'~$3'),t=t.replace(/([@#])([^>]*)<\/span>/g,'$3$4')),t=t.replace(/]*>/gi,r=>r.replace(/(width|height)="\d+"\s*/ig,"")),this.msgText=$A.formatMsgBasic(t)),this.$nextTick(r=>this.$refs.input.setPasteMode(!0))}},onCopy(e){if(!$A.isJson(e))return;const{type:t,value:n}=e;switch(t){case"image":this.$Electron&&this.getBase64Image(n).then(a=>{this.$Electron.sendMessage("copyBase64Image",{base64:a})});break;case"imagedown":this.$store.dispatch("downUrl",{url:n,token:!1});break;case"filepos":this.windowPortrait&&this.$store.dispatch("openDialog",0),this.goForward({name:"manage-file",params:n});break;case"link":this.$copyText(n).then(a=>$A.messageSuccess("\u590D\u5236\u6210\u529F")).catch(a=>$A.messageError("\u590D\u5236\u5931\u8D25"));break;case"text":const r=$A(this.$refs.scroller.$el).find(`[data-id="${this.operateItem.id}"]`).find(".dialog-content");if(r.length>0){const a=r[0].innerText.replace(/\n\n/g,` -`).replace(/(^\s*)|(\s*$)/g,"");this.$copyText(a).then(l=>$A.messageSuccess("\u590D\u5236\u6210\u529F")).catch(l=>$A.messageError("\u590D\u5236\u5931\u8D25"))}else $A.messageWarning("\u4E0D\u53EF\u590D\u5236\u7684\u5185\u5BB9");break}},onWithdraw(){$A.modalConfirm({content:"\u786E\u5B9A\u64A4\u56DE\u6B64\u4FE1\u606F\u5417\uFF1F",okText:"\u64A4\u56DE",loading:!0,onOk:()=>new Promise((e,t)=>{this.$store.dispatch("call",{url:"dialog/msg/withdraw",data:{msg_id:this.operateItem.id}}).then(()=>{e("\u6D88\u606F\u5DF2\u64A4\u56DE"),this.$store.dispatch("forgetDialogMsg",this.operateItem.id)}).catch(({msg:n})=>{t(n)})})})},onViewReply(e){this.operateVisible||this.onPositionId(e.reply_id,e.msg_id)},onViewText({target:e},t){if(this.operateVisible)return;let n=$(e).parents(".open-approve-details");if(n.length>0){let r=n[0].getAttribute("data-id");window.innerWidth<426?this.goForward({name:"manage-approve-details",query:{id:n[0].getAttribute("data-id")}}):(this.approveDetailsShow=!0,this.$nextTick(()=>{this.approveDetails={id:r}}));return}switch(e.nodeName){case"IMG":if(e.classList.contains("browse"))this.onViewPicture(e.currentSrc);else{const r=$A.getTextImagesInfo(t.outerHTML),a=r.findIndex(l=>l.src==e.currentSrc);this.$store.dispatch("previewImage",{index:a,list:r})}break;case"SPAN":e.classList.contains("mention")&&e.classList.contains("task")&&this.$store.dispatch("openTask",$A.runNum(e.getAttribute("data-id")));break}},onViewFile(e){if(this.operateVisible)return;$A.isJson(e)||(e=this.operateItem);const{msg:t}=e;if(["jpg","jpeg","webp","gif","png"].includes(t.ext)){this.onViewPicture(t.path);return}const n=`/single/file/msg/${e.id}`;this.$Electron?this.$Electron.sendMessage("windowRouter",{name:`file-msg-${e.id}`,path:n,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:`${t.name} (${$A.bytesToSize(t.size)})`,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:t.ext==="drawio"}}):this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:`${t.name} (${$A.bytesToSize(t.size)})`,url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${n}`}}):window.open($A.apiUrl(`..${n}`))},onViewPicture(e){const t=this.allMsgs.filter(a=>a.type==="file"?["jpg","jpeg","webp","gif","png"].includes(a.msg.ext):a.type==="text"?a.msg.text.match(/]*?>/):!1),n=[];t.some(({type:a,msg:l})=>{a==="file"?n.push({src:l.path,width:l.width,height:l.height}):a==="text"&&n.push(...$A.getTextImagesInfo(l.text))});const r=n.findIndex(({src:a})=>a===e);r>-1?this.$store.dispatch("previewImage",{index:r,list:n}):this.$store.dispatch("previewImage",e)},onDownFile(e){this.operateVisible||($A.isJson(e)||(e=this.operateItem),$A.modalConfirm({title:"\u4E0B\u8F7D\u6587\u4EF6",content:`${e.msg.name} (${$A.bytesToSize(e.msg.size)})`,okText:"\u7ACB\u5373\u4E0B\u8F7D",onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`dialog/msg/download?msg_id=${e.id}`))}}))},onReplyList(e){this.operateVisible||(this.replyListId=e.msg_id,this.replyListShow=!0)},onError(e){if(e.error!==!0)return;const{type:t,content:n,msg:r}=e.errorData,a={icon:"error",title:"\u53D1\u9001\u5931\u8D25",content:n,cancelText:"\u53D6\u6D88\u53D1\u9001",onCancel:l=>{this.tempMsgs=this.tempMsgs.filter(({id:u})=>u!=e.id)}};if(t==="text")a.okText="\u518D\u6B21\u7F16\u8F91",a.onOk=()=>{this.tempMsgs=this.tempMsgs.filter(({id:l})=>l!=e.id),this.msgText=r,this.inputFocus()};else if(t==="record")a.okText="\u91CD\u65B0\u53D1\u9001",a.onOk=()=>{this.tempMsgs=this.tempMsgs.filter(({id:l})=>l!=e.id),this.sendRecord(r)};else return;$A.modalConfirm(a)},onEmoji(e){$A.isJson(e)||(e={msg_id:this.operateItem.id,symbol:e});const t=this.cacheEmojis.filter(n=>n!==e.symbol);t.unshift(e.symbol),$A.IDBSave("cacheEmojis",this.$store.state.cacheEmojis=t.slice(0,3)),this.$store.dispatch("setLoad",{key:`msg-${e.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/emoji",data:e}).then(({data:n})=>{this.dialogMsgs.findIndex(a=>a.id==n.id)>-1?this.$store.dispatch("saveDialogMsg",n):this.todoViewData.id===n.id&&(this.todoViewData=Object.assign(this.todoViewData,n))}).catch(({msg:n})=>{$A.messageError(n)}).finally(n=>{this.$store.dispatch("cancelLoad",`msg-${e.msg_id}`)})},onShowEmojiUser(e){this.operateVisible||(this.respondData=e,this.respondShow=!0)},onTag(){if(this.operateVisible)return;const e={msg_id:this.operateItem.id};this.$store.dispatch("setLoad",{key:`msg-${e.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/tag",data:e}).then(({data:t})=>{this.tagOrTodoSuccess(t)}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.$store.dispatch("cancelLoad",`msg-${e.msg_id}`)})},onTodo(e){var t;if(!this.operateVisible)if(e==="submit"){const n=$A.cloneJSON(this.todoSettingData);if(n.type==="my")n.type="user",n.userids=[n.my_id];else if(n.type==="you")n.type="user",n.userids=[n.you_id];else if(n.type==="user"&&$A.arrayLength(n.userids)===0){$A.messageWarning("\u9009\u62E9\u6307\u5B9A\u6210\u5458");return}this.todoSettingLoad++,this.onTodoSubmit(n).then(r=>{$A.messageSuccess(r),this.todoSettingShow=!1}).catch($A.messageError).finally(r=>{this.todoSettingLoad--})}else{const n=(t=this.dialogData.dialog_user)==null?void 0:t.userid;this.todoSettingData={type:"all",userids:[],msg_id:this.operateItem.id,my_id:this.userId,you_id:n!=this.userId&&!this.dialogData.bot?n:0},this.operateItem.todo?$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u53D6\u6D88\u5F85\u529E\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",loading:!0,onOk:()=>this.onTodoSubmit(this.todoSettingData)}):this.todoSettingShow=!0}},onTodoSubmit(e){return new Promise((t,n)=>{this.$store.dispatch("setLoad",{key:`msg-${e.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/todo",data:e}).then(({data:r,msg:a})=>{t(a),this.tagOrTodoSuccess(r),this.onActive()}).catch(({msg:r})=>{n(r)}).finally(r=>{this.$store.dispatch("cancelLoad",`msg-${e.msg_id}`)})})},tagOrTodoSuccess(e){this.$store.dispatch("saveDialogMsg",e.update),e.add&&(this.$store.dispatch("saveDialogMsg",e.add),this.$store.dispatch("updateDialogLastMsg",e.add))},onSearchSwitch(e){if(this.searchResult.length!==0){if(this.searchLocation===1&&this.searchResult.length===1){this.onPositionId(this.searchResult[0]);return}e==="prev"?this.searchLocation<=1?this.searchLocation=this.searchResult.length:this.searchLocation--:this.searchLocation>=this.searchResult.length?this.searchLocation=1:this.searchLocation++}},onSearchKeyup(e){(e===null||e.keyCode===27)&&(this.searchShow=!1,this.searchKey="",this.searchResult=[])},onPositionMark(){if(this.positionLoad>0)return;this.positionLoad++;const{msg_id:e}=this.positionMsg;this.$store.dispatch("dialogMsgMark",{dialog_id:this.dialogId,type:"read",after_msg_id:e}).then(t=>{this.positionLoad++,this.onPositionId(e).finally(n=>{this.positionLoad--})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.positionLoad--})},findOperateFile(e,t){const n=this.fileLinks.find(r=>r.link===t);if(n){this.addFileMenu(e,n);return}this.$store.dispatch("searchFiles",{link:t}).then(({data:r})=>{if(r.length===1){const a={link:t,id:r[0].id,pid:r[0].pid};this.fileLinks.push(a),this.addFileMenu(e,a)}}).catch(r=>{})},addFileMenu(e,t){if(this.operateItem.id!=e||this.operateCopys.findIndex(r=>r.type==="filepos")!==-1)return;const n=Math.max(0,this.operateCopys.findIndex(r=>r.type==="link")-1);this.operateCopys.splice(n,0,{type:"filepos",icon:"",label:"\u663E\u793A\u6587\u4EF6",value:{folderId:t.pid,fileId:null,shakeId:t.id}})},getBase64Image(e){return new Promise(t=>{let n=document.createElement("CANVAS"),r=n.getContext("2d"),a=new Image;a.crossOrigin="Anonymous",a.onload=()=>{n.height=a.height,n.width=a.width,r.drawImage(a,0,0);let l="png";$A.rightExists(e,"jpg")||$A.rightExists(e,"jpeg")?l="jpeg":$A.rightExists(e,"webp")?l="webp":$A.rightExists(e,"git")&&(l="git"),t(n.toDataURL(`image/${l}`)),n=null},a.src=e})},onViewAvatar(e){let t=null;e.target.tagName==="IMG"?t=e.target.src:t=$A(e.target).find("img").attr("src"),t&&this.$store.dispatch("previewImage",t)}}},Rl={};var IJ=Qt(AJ,NJ,OJ,!1,DJ,null,null,null);function DJ(e){for(let t in Rl)this[t]=Rl[t]}var BJ=function(){return IJ.exports}();export{yJ as C,BJ as D}; +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var b={FRONT:"FRONT",BEHIND:"BEHIND"},C={INIT:"INIT",FIXED:"FIXED",DYNAMIC:"DYNAMIC"},E=0,v=function(){function w(M,x){r(this,w),this.init(M,x)}return l(w,[{key:"init",value:function(x,Y){this.param=x,this.callUpdate=Y,this.sizes=new Map,this.firstRangeTotalSize=0,this.firstRangeAverageSize=0,this.lastCalcIndex=0,this.fixedSizeValue=0,this.calcType=C.INIT,this.offset=0,this.direction="",this.range=Object.create(null),x&&this.checkRange(0,x.keeps-1)}},{key:"destroy",value:function(){this.init(null,null)}},{key:"getRange",value:function(){var x=Object.create(null);return x.start=this.range.start,x.end=this.range.end,x.padFront=this.range.padFront,x.padBehind=this.range.padBehind,x}},{key:"isBehind",value:function(){return this.direction===b.BEHIND}},{key:"isFront",value:function(){return this.direction===b.FRONT}},{key:"getOffset",value:function(x){return(x<1?0:this.getIndexOffset(x))+this.param.slotHeaderSize}},{key:"updateParam",value:function(x,Y){var W=this;this.param&&x in this.param&&(x==="uniqueIds"&&this.sizes.forEach(function(Z,ce){Y.includes(ce)||W.sizes.delete(ce)}),this.param[x]=Y)}},{key:"saveSize",value:function(x,Y){this.sizes.set(x,Y),this.calcType===C.INIT?(this.fixedSizeValue=Y,this.calcType=C.FIXED):this.calcType===C.FIXED&&this.fixedSizeValue!==Y&&(this.calcType=C.DYNAMIC,delete this.fixedSizeValue),this.calcType!==C.FIXED&&typeof this.firstRangeTotalSize!="undefined"&&(this.sizes.sizethis.range.start)){var Y=Math.max(x-this.param.buffer,0);this.checkRange(Y,this.getEndByStart(Y))}}},{key:"handleBehind",value:function(){var x=this.getScrollOvers();xx&&(ce=W-1)}return Y>0?--Y:0}},{key:"getIndexOffset",value:function(x){if(!x)return 0;for(var Y=0,W=0,Z=0;Z1&&arguments[1]!==void 0?arguments[1]:0;if(M>=this.dataSources.length-1)this.scrollToBottom();else{var Y=this.virtual.getOffset(M);x!==0&&(Y=Math.max(0,Y+x)),this.scrollToOffset(Y)}},scrollToBottom:function(){var M=this,x=this.$refs.shepherd;if(x){var Y=x[this.isHorizontal?"offsetLeft":"offsetTop"];this.scrollToOffset(Y),this.toBottomTime&&(clearTimeout(this.toBottomTime),this.toBottomTime=null),this.toBottomTime=setTimeout(function(){M.getOffset()+M.getClientSize()+1W+1||!W||(this.virtual.handleScroll(x),this.emitEvent(x,Y,W,M))}},emitEvent:function(M,x,Y,W){this.$emit("scroll",W,this.virtual.getRange()),this.virtual.isFront()&&!!this.dataSources.length&&M-this.topThreshold<=0?this.$emit("totop"):this.virtual.isBehind()&&M+x+this.bottomThreshold>=Y&&this.$emit("tobottom")},getRenderSlots:function(M){for(var x=[],Y=this.range,W=Y.start,Z=Y.end,ce=this.dataSources,te=this.dataKey,j=this.itemClass,U=this.itemTag,X=this.itemStyle,J=this.isHorizontal,ae=this.extraProps,le=this.dataComponent,Q=this.itemScopedSlots,ie=this.$scopedSlots&&this.$scopedSlots.item,_e=W;_e<=Z;_e++){var ue=ce[_e];if(ue){var Ee=typeof te=="function"?te(ue):ue[te];typeof Ee=="string"||typeof Ee=="number"?x.push(M(F,{props:{index:_e,tag:U,event:z.ITEM,horizontal:J,uniqueKey:Ee,source:ue,extraProps:ae,component:le,slotComponent:ie,scopedSlots:Q},style:X,class:"".concat(j).concat(this.itemClassAdd?" "+this.itemClassAdd(_e):"")})):console.warn("Cannot get the data-key '".concat(te,"' from data-sources."))}else console.warn("Cannot get the index '".concat(_e,"' from data-sources."))}return x}},render:function(M){var x=this.$slots,Y=x.header,W=x.footer,Z=this.range,ce=Z.padFront,te=Z.padBehind,j=this.isHorizontal,U=this.pageMode,X=this.rootTag,J=this.wrapTag,ae=this.wrapClass,le=this.wrapStyle,Q=this.headerTag,ie=this.headerClass,_e=this.headerStyle,ue=this.footerTag,Ee=this.footerClass,Ie=this.footerStyle,ke=this.disabled,qe={padding:j?"0px ".concat(te,"px 0px ").concat(ce,"px"):"".concat(ce,"px 0px ").concat(te,"px")},Ye=le?Object.assign({},le,qe):qe;return M(X,{ref:"root",style:ke?{overflow:"hidden"}:null,on:{"&scroll":!U&&this.onScroll}},[Y?M(G,{class:ie,style:_e,props:{tag:Q,event:z.SLOT,uniqueKey:k.HEADER}},Y):null,M(J,{class:ae,attrs:{role:"group"},style:Ye},this.getRenderSlots(M)),W?M(G,{class:Ee,style:Ie,props:{tag:ue,event:z.SLOT,uniqueKey:k.FOOTER}},W):null,M("div",{ref:"shepherd",style:{width:j?"0px":"100%",height:j?"100%":"0px"}})])}});return L})})(Dc);var CJ=Dc.exports;function RJ(){return new Promise(e=>{const t=new Hu({render(a){return a(Vu.exports.Modal,{class:"chat-emoji-one-modal",props:{fullscreen:!0,footerHide:!0},on:{"on-visible-change":l=>{l||setTimeout(u=>{document.body.removeChild(this.$el)},500)}}},[a(Ic,{attrs:{onlyEmoji:!0},on:{"on-select":l=>{this.$children[0].visible=!1,l.type==="emoji"&&e(l.text)}}})])}}),n=t.$mount();document.body.appendChild(n.$el);const r=t.$children[0];r.visible=!0,r.$el.lastChild.addEventListener("click",({target:a})=>{a.classList.contains("ivu-modal-body")&&(r.visible=!1)})})}var NJ=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isReady?n("div",{staticClass:"dialog-wrapper",class:e.wrapperClass,on:{drop:function(r){return r.preventDefault(),e.chatPasteDrag(r,"drag")},dragover:function(r){return r.preventDefault(),e.chatDragOver(!0,r)},dragleave:function(r){return r.preventDefault(),e.chatDragOver(!1,r)},touchstart:e.onTouchStart,touchmove:e.onTouchMove}},[n("div",{staticClass:"dialog-nav",style:e.navStyle},[e._t("head",function(){return[n("div",{staticClass:"nav-wrapper",class:{completed:e.$A.dialogCompleted(e.dialogData)}},[n("div",{staticClass:"dialog-back",on:{click:e.onBack}},[n("i",{staticClass:"taskfont"},[e._v("\uE676")]),e.msgUnreadOnly?n("div",{staticClass:"back-num"},[e._v(e._s(e.msgUnreadOnly))]):e._e()]),n("div",{staticClass:"dialog-block"},[n("div",{staticClass:"dialog-avatar",on:{click:e.onViewAvatar}},[e.dialogData.type=="group"?[e.dialogData.avatar?n("EAvatar",{staticClass:"img-avatar",attrs:{src:e.dialogData.avatar,size:42}}):e.dialogData.group_type=="department"?n("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):e.dialogData.group_type=="project"?n("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):e.dialogData.group_type=="task"?n("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):n("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:e.dialogData.dialog_user?n("div",{staticClass:"user-avatar"},[n("UserAvatar",{attrs:{online:e.dialogData.online_state,userid:e.dialogData.dialog_user.userid,size:42},on:{"update:online":function(r){return e.$set(e.dialogData,"online_state",r)}}},[e.dialogData.type==="user"&&e.dialogData.online_state!==!0?n("p",{attrs:{slot:"end"},slot:"end"},[e._v(" "+e._s(e.$L(e.dialogData.online_state))+" ")]):e._e()])],1):n("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}})],2),n("div",{staticClass:"dialog-title"},[n("div",{staticClass:"main-title"},[e._l(e.$A.dialogTags(e.dialogData),function(r){return r.color!="success"?[n("Tag",{attrs:{color:r.color,fade:!1}},[e._v(e._s(e.$L(r.text)))])]:e._e()}),n("h2",[e._v(e._s(e.dialogData.name))]),e.peopleNum>0?n("em",{on:{click:function(r){return e.onDialogMenu("groupInfo")}}},[e._v("("+e._s(e.peopleNum)+")")]):e._e(),e.dialogData.bot?n("Tag",{staticClass:"after",attrs:{fade:!1}},[e._v(e._s(e.$L("\u673A\u5668\u4EBA")))]):e._e(),e.dialogData.group_type=="all"?n("Tag",{staticClass:"after pointer",attrs:{fade:!1},on:{"on-click":function(r){return e.onDialogMenu("groupInfo")}}},[e._v(e._s(e.$L("\u5168\u5458")))]):e.dialogData.group_type=="department"?n("Tag",{staticClass:"after pointer",attrs:{fade:!1},on:{"on-click":function(r){return e.onDialogMenu("groupInfo")}}},[e._v(e._s(e.$L("\u90E8\u95E8")))]):e._e(),e.msgLoadIng>0?n("div",{staticClass:"load"},[n("Loading")],1):e._e()],2),n("ul",{staticClass:"title-desc"},[e.dialogData.type==="user"?n("li",{class:[e.dialogData.online_state===!0?"online":"offline"]},[e._v(" "+e._s(e.$L(e.dialogData.online_state===!0?"\u5728\u7EBF":e.dialogData.online_state))+" ")]):e._e()]),e.tagShow?n("ul",{staticClass:"title-tags scrollbar-hidden"},e._l(e.msgTags,function(r){var a;return n("li",{key:r.type,class:(a={},a[r.type||"msg"]=!0,a.active=e.msgType===r.type,a),on:{click:function(l){return e.onMsgType(r.type)}}},[n("i",{staticClass:"no-dark-content"}),n("span",[e._v(e._s(e.$L(r.label)))])])}),0):e._e()])]),n("EDropdown",{staticClass:"dialog-menu",attrs:{trigger:"click"},on:{command:e.onDialogMenu}},[n("i",{staticClass:"taskfont dialog-menu-icon"},[e._v("\uE6E9")]),n("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("EDropdownItem",{attrs:{command:"searchMsg"}},[n("div",[e._v(e._s(e.$L("\u641C\u7D22\u6D88\u606F")))])]),e.dialogData.type==="user"?[e.dialogData.bot==e.userId?n("EDropdownItem",{attrs:{command:"modifyNormal"}},[n("div",[e._v(e._s(e.$L("\u4FEE\u6539\u8D44\u6599")))])]):e._e(),n("EDropdownItem",{attrs:{command:"openCreate"}},[n("div",[e._v(e._s(e.$L("\u521B\u5EFA\u7FA4\u7EC4")))])])]:[n("EDropdownItem",{attrs:{command:"groupInfo"}},[n("div",[e._v(e._s(e.$L("\u7FA4\u7EC4\u8BBE\u7F6E")))])]),e.dialogData.owner_id!=e.userId?[e.dialogData.group_type==="all"&&e.userIsAdmin?n("EDropdownItem",{attrs:{command:"modifyAdmin"}},[n("div",[e._v(e._s(e.$L("\u4FEE\u6539\u8D44\u6599")))])]):e._e(),n("EDropdownItem",{attrs:{command:"exit"}},[n("div",{staticStyle:{color:"#f00"}},[e._v(e._s(e.$L("\u9000\u51FA\u7FA4\u7EC4")))])])]:e.dialogData.group_type==="user"?[n("EDropdownItem",{attrs:{command:"modifyNormal"}},[n("div",[e._v(e._s(e.$L("\u4FEE\u6539\u8D44\u6599")))])]),n("EDropdownItem",{attrs:{command:"transfer"}},[n("div",[e._v(e._s(e.$L("\u8F6C\u8BA9\u7FA4\u4E3B")))])]),n("EDropdownItem",{attrs:{command:"disband"}},[n("div",{staticStyle:{color:"#f00"}},[e._v(e._s(e.$L("\u89E3\u6563\u7FA4\u7EC4")))])])]:e._e()]],2)],1),e.searchShow?n("div",{staticClass:"dialog-search"},[n("div",{staticClass:"search-location"},[n("i",{staticClass:"taskfont",on:{click:function(r){return e.onSearchSwitch("prev")}}},[e._v("\uE702")]),n("i",{staticClass:"taskfont",on:{click:function(r){return e.onSearchSwitch("next")}}},[e._v("\uE705")])]),n("div",{staticClass:"search-input"},[n("Input",{ref:"searchInput",attrs:{placeholder:e.$L("\u641C\u7D22\u6D88\u606F"),clearable:""},on:{"on-keyup":e.onSearchKeyup},model:{value:e.searchKey,callback:function(r){e.searchKey=r},expression:"searchKey"}},[n("div",{staticClass:"search-pre",attrs:{slot:"prefix"},slot:"prefix"},[e.searchLoad>0?n("Loading"):n("Icon",{attrs:{type:"ios-search"}})],1)]),e.searchLoad===0&&e.searchResult.length>0?n("div",{staticClass:"search-total",attrs:{slot:"append"},slot:"append"},[e._v(e._s(e.searchLocation)+"/"+e._s(e.searchResult.length))]):e._e()],1),n("div",{staticClass:"search-cancel",on:{click:function(r){return e.onSearchKeyup(null)}}},[e._v(e._s(e.$L("\u53D6\u6D88")))])]):e._e()],1)]})],2),e.positionMsg?n("div",{staticClass:"dialog-position",class:{down:e.tagShow}},[n("div",{staticClass:"position-label",on:{click:e.onPositionMark}},[e.positionLoad>0?n("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}):n("i",{staticClass:"taskfont"},[e._v("\uE624")]),e._v(" "+e._s(e.positionMsg.label)+" ")],1)]):e._e(),n("VirtualList",{ref:"scroller",staticClass:"dialog-scroller scrollbar-virtual",class:e.scrollerClass,attrs:{"data-key":"id","data-sources":e.allMsgs,"data-component":e.msgItem,"item-class-add":e.itemClassAdd,"extra-props":{dialogData:e.dialogData,operateVisible:e.operateVisible,operateItem:e.operateItem,isMyDialog:e.isMyDialog,msgId:e.msgId},"estimate-size":e.dialogData.type=="group"?105:77,keeps:50,disabled:e.scrollDisabled},on:{scroll:e.onScroll,range:e.onRange,totop:e.onPrevPage,"on-mention":e.onMention,"on-longpress":e.onLongpress,"on-view-reply":e.onViewReply,"on-view-text":e.onViewText,"on-view-file":e.onViewFile,"on-down-file":e.onDownFile,"on-reply-list":e.onReplyList,"on-error":e.onError,"on-emoji":e.onEmoji,"on-show-emoji-user":e.onShowEmojiUser},scopedSlots:e._u([{key:"header",fn:function(){return[e.allMsgs.length===0&&e.loadIng||e.prevId>0?n("div",{staticClass:"dialog-item loading"},[e.scrollOffset<100?n("div",{staticClass:"dialog-wrapper-loading"}):e._e()]):e.allMsgs.length===0?n("div",{staticClass:"dialog-item nothing"},[e._v(e._s(e.$L("\u6682\u65E0\u6D88\u606F")))]):e._e()]},proxy:!0}],null,!1,3828201241)}),n("div",{ref:"footer",staticClass:"dialog-footer",class:e.footerClass,style:e.footerStyle,on:{click:e.onActive}},[n("div",{staticClass:"dialog-newmsg",on:{click:e.onToBottom}},[e._v(e._s(e.$L(`\u6709${e.msgNew}\u6761\u65B0\u6D88\u606F`)))]),n("div",{staticClass:"dialog-goto",on:{click:e.onToBottom}},[n("i",{staticClass:"taskfont"},[e._v("\uE72B")])]),n("DialogUpload",{ref:"chatUpload",staticClass:"chat-upload",attrs:{"dialog-id":e.dialogId},on:{"on-progress":function(r){return e.chatFile("progress",r)},"on-success":function(r){return e.chatFile("success",r)},"on-error":function(r){return e.chatFile("error",r)}}}),e.todoShow?n("div",{staticClass:"chat-bottom-menu"},[n("div",{staticClass:"bottom-menu-label"},[e._v(e._s(e.$L("\u5F85\u529E"))+":")]),n("ul",{staticClass:"scrollbar-hidden"},e._l(e.todoList,function(r){return n("li",{on:{click:function(a){return a.stopPropagation(),e.onViewTodo(r)}}},[n("div",{staticClass:"bottom-menu-desc no-dark-content"},[e._v(e._s(e.$A.getMsgSimpleDesc(r.msg_data)))])])}),0)]):e.quickShow?n("div",{staticClass:"chat-bottom-menu"},[n("ul",{staticClass:"scrollbar-hidden"},e._l(e.quickMsgs,function(r){return n("li",{on:{click:function(a){return a.stopPropagation(),e.sendQuick(r)}}},[n("div",{staticClass:"bottom-menu-desc no-dark-content",style:r.style||null},[e._v(e._s(r.label))])])}),0)]):e._e(),e.isMute?n("div",{staticClass:"chat-mute"},[e._v(" "+e._s(e.$L("\u7981\u8A00\u53D1\u8A00"))+" ")]):n("ChatInput",{ref:"input",attrs:{"dialog-id":e.dialogId,"emoji-bottom":e.windowPortrait,maxlength:2e5,placeholder:e.$L("\u8F93\u5165\u6D88\u606F...")},on:{"on-focus":e.onEventFocus,"on-blur":e.onEventBlur,"on-more":e.onEventMore,"on-file":e.sendFileMsg,"on-send":e.sendMsg,"on-record":e.sendRecord,"on-record-state":e.onRecordState,"on-emoji-visible-change":e.onEventEmojiVisibleChange,"on-height-change":e.onHeightChange},model:{value:e.msgText,callback:function(r){e.msgText=r},expression:"msgText"}})],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.operateVisible,expression:"operateVisible"}],staticClass:"operate-position",style:e.operateStyles},[n("Dropdown",{attrs:{trigger:"custom",placement:"top",visible:e.operateVisible,transferClassName:"dialog-wrapper-operate",transfer:""},on:{"on-clickoutside":function(r){e.operateVisible=!1}}},[n("div",{style:{userSelect:e.operateVisible?"none":"auto",height:e.operateStyles.height}}),n("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[n("DropdownItem",{attrs:{name:"action"}},[n("ul",{staticClass:"operate-action"},[e.msgId===0?n("li",{on:{click:function(r){return e.onOperate("reply")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE6EB")]),n("span",[e._v(e._s(e.$L("\u56DE\u590D")))])]):e._e(),e.operateItem.userid==e.userId&&e.operateItem.type==="text"?n("li",{on:{click:function(r){return e.onOperate("update")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE779")]),n("span",[e._v(e._s(e.$L("\u7F16\u8F91")))])]):e._e(),e._l(e.operateCopys,function(r){return n("li",{on:{click:function(a){return e.onOperate("copy",r)}}},[n("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(r.icon)}}),n("span",[e._v(e._s(e.$L(r.label)))])])}),n("li",{on:{click:function(r){return e.onOperate("forward")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE638")]),n("span",[e._v(e._s(e.$L("\u8F6C\u53D1")))])]),e.operateItem.userid==e.userId?n("li",{on:{click:function(r){return e.onOperate("withdraw")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE637")]),n("span",[e._v(e._s(e.$L("\u64A4\u56DE")))])]):e._e(),e.operateItem.type==="file"?[n("li",{on:{click:function(r){return e.onOperate("view")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE77B")]),n("span",[e._v(e._s(e.$L("\u67E5\u770B")))])]),n("li",{on:{click:function(r){return e.onOperate("down")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7A8")]),n("span",[e._v(e._s(e.$L("\u4E0B\u8F7D")))])])]:e._e(),n("li",{on:{click:function(r){return e.onOperate("tag")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE61E")]),n("span",[e._v(e._s(e.$L(e.operateItem.tag?"\u53D6\u6D88\u6807\u6CE8":"\u6807\u6CE8")))])]),e.operateItem.type==="text"?n("li",{on:{click:function(r){return e.onOperate("newTask")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7B8")]),n("span",[e._v(e._s(e.$L("\u65B0\u4EFB\u52A1")))])]):e._e(),n("li",{on:{click:function(r){return e.onOperate("todo")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE7B7")]),n("span",[e._v(e._s(e.$L(e.operateItem.todo?"\u53D6\u6D88\u5F85\u529E":"\u8BBE\u5F85\u529E")))])]),e.msgType!==""?n("li",{on:{click:function(r){return e.onOperate("pos")}}},[n("i",{staticClass:"taskfont"},[e._v("\uEE15")]),n("span",[e._v(e._s(e.$L("\u5B8C\u6574\u5BF9\u8BDD")))])]):e._e()],2)]),n("DropdownItem",{staticClass:"dropdown-emoji",attrs:{name:"emoji"}},[n("ul",{staticClass:"operate-emoji scrollbar-hidden"},[e._l(e.operateEmojis,function(r,a){return n("li",{key:a,staticClass:"no-dark-content",domProps:{innerHTML:e._s(r)},on:{click:function(l){return e.onOperate("emoji",r)}}})}),n("li"),n("li",{staticClass:"more-emoji",on:{click:function(r){return e.onOperate("emoji","more")}}},[n("i",{staticClass:"taskfont"},[e._v("\uE790")])])],2)])],1)],1)],1),e.dialogDrag?n("div",{staticClass:"drag-over",on:{click:function(r){e.dialogDrag=!1}}},[n("div",{staticClass:"drag-text"},[e._v(e._s(e.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):e._e(),n("Modal",{attrs:{title:e.$L(e.pasteTitle),"cancel-text":e.$L("\u53D6\u6D88"),"ok-text":e.$L("\u53D1\u9001"),"enter-ok":!0},on:{"on-ok":e.pasteSend},model:{value:e.pasteShow,callback:function(r){e.pasteShow=r},expression:"pasteShow"}},[n("ul",{staticClass:"dialog-wrapper-paste",class:e.pasteWrapperClass},e._l(e.pasteItem,function(r){return n("li",[r.type=="image"?n("img",{attrs:{src:r.result}}):n("div",[e._v(e._s(e.$L("\u6587\u4EF6"))+": "+e._s(r.name)+" ("+e._s(e.$A.bytesToSize(r.size))+")")])])}),0)]),n("Modal",{attrs:{title:e.$L("\u521B\u5EFA\u7FA4\u7EC4"),"mask-closable":!1},model:{value:e.createGroupShow,callback:function(r){e.createGroupShow=r},expression:"createGroupShow"}},[n("Form",{attrs:{model:e.createGroupData,"label-width":"auto"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("FormItem",{attrs:{prop:"avatar",label:e.$L("\u7FA4\u5934\u50CF")}},[n("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:1},model:{value:e.createGroupData.avatar,callback:function(r){e.$set(e.createGroupData,"avatar",r)},expression:"createGroupData.avatar"}})],1),n("FormItem",{attrs:{prop:"userids",label:e.$L("\u7FA4\u6210\u5458")}},[n("UserSelect",{attrs:{uncancelable:e.createGroupData.uncancelable,"multiple-max":100,"show-bot":"",title:e.$L("\u9009\u62E9\u9879\u76EE\u6210\u5458")},model:{value:e.createGroupData.userids,callback:function(r){e.$set(e.createGroupData,"userids",r)},expression:"createGroupData.userids"}})],1),n("FormItem",{attrs:{prop:"chat_name",label:e.$L("\u7FA4\u540D\u79F0")}},[n("Input",{attrs:{placeholder:e.$L("\u8F93\u5165\u7FA4\u540D\u79F0\uFF08\u9009\u586B\uFF09")},model:{value:e.createGroupData.chat_name,callback:function(r){e.$set(e.createGroupData,"chat_name",r)},expression:"createGroupData.chat_name"}})],1)],1),n("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[n("Button",{attrs:{type:"default"},on:{click:function(r){e.createGroupShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),n("Button",{attrs:{type:"primary",loading:e.createGroupLoad>0},on:{click:e.onCreateGroup}},[e._v(e._s(e.$L("\u521B\u5EFA")))])],1)],1),n("Modal",{attrs:{title:e.$L("\u4FEE\u6539\u8D44\u6599"),"mask-closable":!1},model:{value:e.modifyShow,callback:function(r){e.modifyShow=r},expression:"modifyShow"}},[n("Form",{attrs:{model:e.modifyData,"label-width":"auto"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("FormItem",{attrs:{prop:"avatar",label:e.$L("\u5934\u50CF")}},[n("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:1},model:{value:e.modifyData.avatar,callback:function(r){e.$set(e.modifyData,"avatar",r)},expression:"modifyData.avatar"}})],1),typeof e.modifyData.name!="undefined"?n("FormItem",{attrs:{prop:"name",label:e.$L("\u540D\u79F0")}},[n("Input",{attrs:{maxlength:20},model:{value:e.modifyData.name,callback:function(r){e.$set(e.modifyData,"name",r)},expression:"modifyData.name"}})],1):e._e(),typeof e.modifyData.clear_day!="undefined"?n("FormItem",{attrs:{prop:"clear_day",label:e.$L("\u6D88\u606F\u4FDD\u7559")}},[n("Input",{attrs:{maxlength:3,type:"number"},model:{value:e.modifyData.clear_day,callback:function(r){e.$set(e.modifyData,"clear_day",r)},expression:"modifyData.clear_day"}},[n("div",{attrs:{slot:"append"},slot:"append"},[e._v(e._s(e.$L("\u5929")))])])],1):e._e(),typeof e.modifyData.webhook_url!="undefined"?n("FormItem",{attrs:{prop:"webhook_url",label:"Webhook"}},[n("Input",{attrs:{maxlength:255},model:{value:e.modifyData.webhook_url,callback:function(r){e.$set(e.modifyData,"webhook_url",r)},expression:"modifyData.webhook_url"}})],1):e._e()],1),n("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[n("Button",{attrs:{type:"default"},on:{click:function(r){e.modifyShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),n("Button",{attrs:{type:"primary",loading:e.modifyLoad>0},on:{click:e.onModify}},[e._v(e._s(e.$L("\u4FDD\u5B58")))])],1)],1),n("UserSelect",{ref:"forwardSelect",attrs:{"multiple-max":50,title:e.$L("\u8F6C\u53D1"),"before-submit":e.onForward,"show-select-all":!1,"show-dialog":"",module:""},model:{value:e.forwardData,callback:function(r){e.forwardData=r},expression:"forwardData"}}),n("Modal",{attrs:{title:e.$L("\u8BBE\u7F6E\u5F85\u529E"),"mask-closable":!1},model:{value:e.todoSettingShow,callback:function(r){e.todoSettingShow=r},expression:"todoSettingShow"}},[n("Form",{ref:"todoSettingForm",attrs:{model:e.todoSettingData,"label-width":"auto"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("FormItem",{attrs:{prop:"type",label:e.$L("\u5F53\u524D\u4F1A\u8BDD")}},[n("RadioGroup",{model:{value:e.todoSettingData.type,callback:function(r){e.$set(e.todoSettingData,"type",r)},expression:"todoSettingData.type"}},[n("Radio",{attrs:{label:"all"}},[e._v(e._s(e.$L("\u6240\u6709\u6210\u5458")))]),n("Radio",{attrs:{label:"user"}},[e._v(e._s(e.$L("\u6307\u5B9A\u6210\u5458")))]),n("br"),e.todoSettingData.my_id?n("Radio",{attrs:{label:"my"}},[n("div",{staticClass:"dialog-wrapper-todo"},[n("div",[n("UserAvatar",{attrs:{userid:e.todoSettingData.my_id,"show-icon":!1,"show-name":!0}}),n("Tag",[e._v(e._s(e.$L("\u81EA\u5DF1")))])],1)])]):e._e(),e.todoSettingData.you_id?n("Radio",{attrs:{label:"you"}},[n("div",{staticClass:"dialog-wrapper-todo"},[n("div",[n("UserAvatar",{attrs:{userid:e.todoSettingData.you_id,"show-icon":!1,"show-name":!0}})],1)])]):e._e()],1)],1),e.todoSettingData.type==="user"?n("FormItem",{attrs:{prop:"userids",label:e.$L("\u6307\u5B9A\u6210\u5458")}},[n("UserSelect",{attrs:{"dialog-id":e.dialogId,title:e.$L("\u9009\u62E9\u6307\u5B9A\u6210\u5458")},model:{value:e.todoSettingData.userids,callback:function(r){e.$set(e.todoSettingData,"userids",r)},expression:"todoSettingData.userids"}})],1):e._e()],1),n("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[n("Button",{attrs:{type:"default"},on:{click:function(r){e.todoSettingShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),n("Button",{attrs:{type:"primary",loading:e.todoSettingLoad>0},on:{click:function(r){return e.onTodo("submit")}}},[e._v(e._s(e.$L("\u786E\u5B9A")))])],1)],1),n("DrawerOverlay",{attrs:{placement:"right",size:400},model:{value:e.groupInfoShow,callback:function(r){e.groupInfoShow=r},expression:"groupInfoShow"}},[e.groupInfoShow?n("DialogGroupInfo",{attrs:{dialogId:e.dialogId},on:{"on-close":function(r){e.groupInfoShow=!1}}}):e._e()],1),n("Modal",{attrs:{title:e.$L("\u8F6C\u8BA9\u7FA4\u4E3B\u8EAB\u4EFD"),"mask-closable":!1},model:{value:e.groupTransferShow,callback:function(r){e.groupTransferShow=r},expression:"groupTransferShow"}},[n("Form",{attrs:{model:e.groupTransferData,"label-width":"auto"},nativeOn:{submit:function(r){r.preventDefault()}}},[n("FormItem",{attrs:{prop:"userid",label:e.$L("\u65B0\u7684\u7FA4\u4E3B")}},[n("UserSelect",{attrs:{disabledChoice:e.groupTransferData.disabledChoice,"multiple-max":1,title:e.$L("\u9009\u62E9\u65B0\u7684\u7FA4\u4E3B")},model:{value:e.groupTransferData.userid,callback:function(r){e.$set(e.groupTransferData,"userid",r)},expression:"groupTransferData.userid"}})],1)],1),n("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[n("Button",{attrs:{type:"default"},on:{click:function(r){e.groupTransferShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),n("Button",{attrs:{type:"primary",loading:e.groupTransferLoad>0},on:{click:function(r){return e.onDialogMenu("transferConfirm")}}},[e._v(e._s(e.$L("\u786E\u5B9A\u8F6C\u8BA9")))])],1)],1),n("DrawerOverlay",{attrs:{placement:"right","class-name":"dialog-wrapper-drawer-list",size:500},model:{value:e.replyListShow,callback:function(r){e.replyListShow=r},expression:"replyListShow"}},[e.replyListShow?n("DialogWrapper",{staticClass:"drawer-list",attrs:{dialogId:e.dialogId,msgId:e.replyListId}},[n("div",{staticClass:"drawer-title",attrs:{slot:"head"},slot:"head"},[e._v(e._s(e.$L("\u56DE\u590D\u6D88\u606F")))])]):e._e()],1),n("DrawerOverlay",{attrs:{placement:"right",size:400},model:{value:e.respondShow,callback:function(r){e.respondShow=r},expression:"respondShow"}},[e.respondShow?n("DialogRespond",{attrs:{"respond-data":e.respondData},on:{"on-close":function(r){e.respondShow=!1}}}):e._e()],1),n("DrawerOverlay",{attrs:{placement:"right","class-name":"dialog-wrapper-drawer-list",size:500},model:{value:e.todoViewShow,callback:function(r){e.todoViewShow=r},expression:"todoViewShow"}},[n("div",{staticClass:"dialog-wrapper drawer-list"},[n("div",{staticClass:"dialog-nav"},[n("div",{staticClass:"drawer-title"},[e._v(e._s(e.$L("\u5F85\u529E\u6D88\u606F")))])]),n("Scrollbar",{attrs:{"class-name":"dialog-scroller"}},[e.todoViewMsg?n("DialogItem",{attrs:{source:e.todoViewMsg,simpleView:""},on:{"on-view-text":e.onViewText,"on-view-file":e.onViewFile,"on-down-file":e.onDownFile,"on-emoji":e.onEmoji}}):e._e(),n("Button",{staticClass:"original-button",attrs:{icon:"md-exit",type:"text",loading:e.todoViewPosLoad},on:{click:e.onPosTodo}},[e._v(e._s(e.$L("\u56DE\u5230\u539F\u6587")))])],1),n("div",{staticClass:"todo-button"},[n("Button",{attrs:{type:"primary",size:"large",icon:"md-checkbox-outline",loading:e.todoViewLoad,long:""},on:{click:e.onDoneTodo}},[e._v(e._s(e.$L("\u5B8C\u6210")))])],1)],1)]),n("DrawerOverlay",{attrs:{placement:"right",size:600},model:{value:e.approveDetailsShow,callback:function(r){e.approveDetailsShow=r},expression:"approveDetailsShow"}},[e.approveDetailsShow?n("ApproveDetails",{staticStyle:{height:"100%","border-radius":"10px"},attrs:{data:e.approveDetails}}):e._e()],1)],1):e._e()},OJ=[];const AJ={name:"DialogWrapper",components:{UserSelect:Ol,ImgUpload:Ku,DialogRespond:QZ,DialogItem:fl,VirtualList:CJ,ChatInput:yJ,DialogGroupInfo:zZ,DrawerOverlay:Wu,DialogUpload:BZ,ApproveDetails:Qu},props:{dialogId:{type:Number,default:0},msgId:{type:Number,default:0},autoFocus:{type:Boolean,default:!1},isMessenger:{type:Boolean,default:!1},beforeBack:Function},data(){return{msgItem:fl,msgText:"",msgNew:0,msgType:"",loadIng:0,allMsgs:[],tempMsgs:[],tempId:$A.randNum(1e9,9999999999),msgLoadIng:0,msgActiveIndex:-1,pasteShow:!1,pasteFile:[],pasteItem:[],searchShow:!1,searchKey:"",searchLoad:0,searchLocation:1,searchResult:[],createGroupShow:!1,createGroupData:{},createGroupLoad:0,modifyShow:!1,modifyData:{},modifyLoad:0,forwardData:[],openId:0,dialogDrag:!1,groupInfoShow:!1,groupTransferShow:!1,groupTransferLoad:0,groupTransferData:{userid:[],disabledChoice:[]},navStyle:{},operateVisible:!1,operateCopys:[],operateStyles:{},operateItem:{},recordState:"",wrapperStart:{},scrollOffset:0,scrollTail:0,preventMoreLoad:!1,preventToBottom:!1,replyListShow:!1,replyListId:0,respondShow:!1,respondData:{},todoSettingShow:!1,todoSettingLoad:0,todoSettingData:{type:"all",userids:[]},todoViewLoad:!1,todoViewPosLoad:!1,todoViewShow:!1,todoViewData:{},todoViewMid:0,todoViewId:0,scrollDisabled:!1,scrollDirection:null,scrollAction:0,scrollTmp:0,positionLoad:0,approveDetails:{id:0},approveDetailsShow:!1}},beforeDestroy(){this.$store.dispatch("forgetInDialog",this._uid),this.$store.dispatch("closeDialog",this.dialogId)},computed:{...Wn(["userIsAdmin","taskId","dialogSearchMsgId","dialogMsgs","dialogTodos","dialogMsgTransfer","cacheDialogs","wsOpenNum","touchBackInProgress","dialogIns","cacheUserBasic","fileLinks","cacheEmojis","keyboardType","keyboardHeight","safeAreaBottom"]),...Nl(["isLoad"]),isReady(){return this.dialogId>0&&this.dialogData.id>0},dialogData(){return this.cacheDialogs.find(({id:e})=>e==this.dialogId)||{}},dialogList(){return this.cacheDialogs.filter(e=>!(e.name===void 0||e.dialog_delete===1)).sort((e,t)=>e.top_at||t.top_at?$A.Date(t.top_at)-$A.Date(e.top_at):e.todo_num>0||t.todo_num>0?t.todo_num-e.todo_num:$A.Date(t.last_at)-$A.Date(e.last_at))},dialogMsgList(){return this.isReady?this.dialogMsgs.filter(e=>e.dialog_id==this.dialogId):[]},tempMsgList(){return this.isReady?this.tempMsgs.filter(e=>e.dialog_id==this.dialogId):[]},allMsgList(){const e=[];if(e.push(...this.dialogMsgList.filter(t=>this.msgFilter(t))),this.msgId>0){const t=this.dialogMsgs.find(n=>n.id==this.msgId);t&&e.unshift(t)}if(this.tempMsgList.length>0){const t=e.map(({id:r})=>r),n=this.tempMsgList.filter(r=>!t.includes(r.id)&&this.msgFilter(r));n.length>0&&e.push(...n)}return e.sort((t,n)=>t.id-n.id)},loadMsg(){return this.isLoad(`msg::${this.dialogId}-${this.msgId}-${this.msgType}`)},prevId(){return this.allMsgs.length>0?$A.runNum(this.allMsgs[0].prev_id):0},peopleNum(){return this.dialogData.type==="group"?$A.runNum(this.dialogData.people):0},pasteTitle(){const{pasteItem:e}=this;let t=e.find(({type:r})=>r=="image"),n=e.find(({type:r})=>r!="image");return t&&n?"\u53D1\u9001\u6587\u4EF6/\u56FE\u7247":t?"\u53D1\u9001\u56FE\u7247":"\u53D1\u9001\u6587\u4EF6"},msgTags(){const e=[{type:"",label:"\u6D88\u606F"}];return this.dialogData.has_tag&&e.push({type:"tag",label:"\u6807\u6CE8"}),this.dialogData.has_image&&e.push({type:"image",label:"\u56FE\u7247"}),this.dialogData.has_file&&e.push({type:"file",label:"\u6587\u4EF6"}),this.dialogData.has_link&&e.push({type:"link",label:"\u94FE\u63A5"}),this.dialogData.group_type==="project"&&e.push({type:"project",label:"\u6253\u5F00\u9879\u76EE"}),this.dialogData.group_type==="task"&&e.push({type:"task",label:"\u6253\u5F00\u4EFB\u52A1"}),e},quickMsgs(){return this.dialogData.quick_msgs||[]},quickShow(){return this.quickMsgs.length>0&&this.windowScrollY===0&&this.quoteId===0},todoList(){return this.dialogData.todo_num?this.dialogTodos.filter(e=>!e.done_at&&e.dialog_id==this.dialogId).sort((e,t)=>t.id-e.id):[]},todoShow(){return this.todoList.length>0&&this.windowScrollY===0&&this.quoteId===0},wrapperClass(){return["ready","ing"].includes(this.recordState)?["record-ready"]:null},tagShow(){return this.msgTags.length>1&&this.windowScrollY===0&&!this.searchShow},scrollerClass(){return!this.$slots.head&&this.tagShow?"default-header":null},pasteWrapperClass(){return this.pasteItem.find(({type:e})=>e!=="image")?["multiple"]:[]},footerClass(){return this.msgNew>0&&this.allMsgs.length>0?"newmsg":this.scrollTail>500?"goto":null},footerPaddingBottom({keyboardType:e,keyboardHeight:t,safeAreaBottom:n,windowScrollY:r,isMessenger:a}){return r===0&&a&&e==="show"&&t>0&&t<120?t+n:0},footerStyle({footerPaddingBottom:e}){const t={};return e&&(t.paddingBottom=`${e}px`),t},msgUnreadOnly(){let e=0;return this.cacheDialogs.some(t=>{e+=$A.getDialogNum(t)}),e<=0?"":(e>999&&(e="999+"),String(e))},isMyDialog(){const{dialogData:e,userId:t}=this;return e.dialog_user&&e.dialog_user.userid==t},isMute(){if(this.dialogData.group_type==="all"){if(this.dialogData.all_group_mute==="all")return!0;if(this.dialogData.all_group_mute==="user"&&!this.userIsAdmin)return!0}return!1},quoteId(){return this.msgId>0?this.msgId:this.dialogData.extra_quote_id||0},quoteUpdate(){return this.dialogData.extra_quote_type==="update"},quoteData(){return this.quoteId?this.allMsgs.find(({id:e})=>e===this.quoteId):null},todoViewMsg(){if(this.todoViewMid){const e=this.allMsgs.find(t=>t.id==this.todoViewMid);if(e)return e;if(this.todoViewData.id===this.todoViewMid)return this.todoViewData}return null},positionMsg(){const{unread:e,position_msgs:t}=this.dialogData;if(!t||t.length===0||e===0||this.allMsgs.length===0)return null;const n=t.sort((r,a)=>a.msg_id-r.msg_id)[0];return this.allMsgs.findIndex(({id:r})=>r==n.msg_id)===-1?n.label==="{UNREAD}"?Object.assign(n,{label:this.$L(`\u672A\u8BFB\u6D88\u606F${e}\u6761`)}):n:null},operateEmojis(){const e=this.cacheEmojis.slice(0,3);return Object.values(["\u{1F44C}","\u{1F44D}","\u{1F602}","\u{1F389}","\u2764\uFE0F","\u{1F973}\uFE0F","\u{1F970}","\u{1F625}","\u{1F62D}"]).some(t=>{e.includes(t)||e.push(t)}),e}},watch:{dialogId:{handler(e,t){e&&(this.msgNew=0,this.msgType="",this.searchShow=!1,this.allMsgList.length>0&&(this.allMsgs=this.allMsgList,requestAnimationFrame(this.onToBottom)),this.getMsgs({dialog_id:e,msg_id:this.msgId,msg_type:this.msgType}).then(n=>{this.openId=e,setTimeout(this.onSearchMsgId,100)}).catch(n=>{}),this.$store.dispatch("saveInDialog",{uid:this._uid,dialog_id:e}),this.autoFocus&&this.inputFocus()),this.$store.dispatch("closeDialog",t)},immediate:!0},loadMsg:{handler(e){e?this.loadIng++:setTimeout(t=>{this.loadIng--},300)},immediate:!0},msgType(){this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,clear_before:!0}).catch(e=>{})},searchKey(e){!e||(this.searchLoad++,setTimeout(t=>{this.searchKey===e&&(this.searchLoad++,this.searchResult=[],this.searchLocation=0,this.$store.dispatch("call",{url:"dialog/msg/search",data:{dialog_id:this.dialogId,key:e}}).then(({data:n})=>{this.searchKey===e&&(this.searchResult=n.data,this.searchLocation=this.searchResult.length)}).finally(n=>{this.searchLoad--})),this.searchLoad--},600))},searchLocation(e){if(e===0)return;const t=this.searchResult[e-1];t&&this.onPositionId(t)},dialogSearchMsgId(){this.onSearchMsgId()},dialogMsgTransfer:{handler({time:e,msgFile:t,msgRecord:n,msgText:r,dialogId:a}){e>$A.Time()&&a==this.dialogId&&(this.$store.state.dialogMsgTransfer.time=0,this.$nextTick(()=>{$A.isArray(t)&&t.length>0?this.sendFileMsg(t):$A.isJson(n)&&n.duration>0?this.sendRecord(n):r&&this.sendMsg(r)}))},immediate:!0},wsOpenNum(e){e<=1||this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType}).catch(t=>{})},allMsgList(e,t){const{tail:n}=this.scrollInfo();if($A.isIos()&&e.length!==t.length?(this.$refs.scroller.$el.style.visibility="hidden",this.allMsgs=e,this.$nextTick(r=>{this.$refs.scroller.$el.style.visibility="visible"})):this.allMsgs=e,!this.windowActive||n>45&&t.length>0){const r=t[t.length-1]?t[t.length-1].id:0,a=e.filter(l=>l.id&&l.id>r);this.msgNew+=a.length}else this.preventToBottom||this.$nextTick(this.onToBottom)},windowScrollY(e){if($A.isIos()){const{tail:t}=this.scrollInfo();this.navStyle={marginTop:e+"px"},t<=45&&requestAnimationFrame(this.onToBottom),this.$refs.input.isFocus&&$A.scrollToView(this.$refs.footer)}},windowActive(e){if(e&&this.autoFocus){const t=$A.last(this.dialogIns);t&&t.uid===this._uid&&this.inputFocus()}},dialogDrag(e){e&&(this.operateVisible=!1)},msgActiveIndex(e){e>-1&&setTimeout(t=>this.msgActiveIndex=-1,800)},footerPaddingBottom(e){if(e){const{tail:t}=this.scrollInfo();t<=45&&requestAnimationFrame(this.onToBottom)}}},methods:{sendMsg(e,t){let n,r="text",a="no",l=!1;if(typeof e=="string"&&e?n=e:(n=this.msgText,l=!0),t==="md"?(n=this.$refs.input.getText(),r="md"):t==="silence"&&(a="yes"),n==""){this.inputFocus();return}if(r==="text"&&(n=n.replace(/<\/span> <\/p>$/,"

")),this.quoteUpdate){r==="text"&&(n=n.replace(new RegExp(`src=(["'])${$A.apiUrl("../")}`,"g"),"src=$1{{RemoteURL}}"));const u=this.quoteId;this.$store.dispatch("setLoad",{key:`msg-${u}`,delay:600}),this.cancelQuote(),this.onActive(),this.$store.dispatch("call",{url:"dialog/msg/sendtext",data:{dialog_id:this.dialogId,update_id:u,text:n,text_type:r,silence:a},method:"post",complete:c=>this.$store.dispatch("cancelLoad",`msg-${u}`)}).then(({data:c})=>{this.sendSuccess(c),this.onPositionId(u)}).catch(({msg:c})=>{$A.modalError(c)})}else{const u=$A.stringLength(n.replace(/]*?>/g,""))>5e3,c={id:this.getTempId(),dialog_id:this.dialogData.id,reply_id:this.quoteId,reply_data:this.quoteData,type:u?"loading":"text",userid:this.userId,msg:{text:u?"":n,type:r}};this.tempMsgs.push(c),this.msgType="",this.cancelQuote(),this.onActive(),this.$nextTick(this.onToBottom),this.$store.dispatch("call",{url:"dialog/msg/sendtext",data:{dialog_id:c.dialog_id,reply_id:c.reply_id,text:n,text_type:r,silence:a},method:"post"}).then(({data:d})=>{this.tempMsgs=this.tempMsgs.filter(({id:f})=>f!=c.id),this.sendSuccess(d)}).catch(d=>{this.$set(c,"error",!0),this.$set(c,"errorData",{type:"text",content:d.msg,msg:n})})}l&&requestAnimationFrame(u=>this.msgText="")},sendRecord(e){const t={id:this.getTempId(),dialog_id:this.dialogData.id,reply_id:this.quoteId,reply_data:this.quoteData,type:"loading",userid:this.userId,msg:e};this.tempMsgs.push(t),this.msgType="",this.cancelQuote(),this.onActive(),this.$nextTick(this.onToBottom),this.$store.dispatch("call",{url:"dialog/msg/sendrecord",data:Object.assign(e,{dialog_id:this.dialogId,reply_id:this.quoteId}),method:"post"}).then(({data:n})=>{this.tempMsgs=this.tempMsgs.filter(({id:r})=>r!=t.id),this.sendSuccess(n)}).catch(n=>{this.$set(t,"error",!0),this.$set(t,"errorData",{type:"record",content:n.msg,msg:e})})},sendFileMsg(e){const t=$A.isArray(e)?e:[e];t.length>0&&(this.pasteFile=[],this.pasteItem=[],t.some(n=>{const r={type:$A.getMiddle(n.type,null,"/"),name:n.name,size:n.size,result:null};if(r.type==="image"){const a=new FileReader;a.readAsDataURL(n),a.onload=({target:l})=>{r.result=l.result,this.pasteFile.push(n),this.pasteItem.push(r),this.pasteShow=!0}}else this.pasteFile.push(n),this.pasteItem.push(r),this.pasteShow=!0}))},sendQuick(e){this.sendMsg(`

${e.label}

`)},getTempId(){return this.tempId++},getMsgs(e){return new Promise((t,n)=>{setTimeout(r=>this.msgLoadIng++,2e3),this.$store.dispatch("getDialogMsgs",e).then(t).catch(n).finally(r=>{this.msgLoadIng--})})},msgFilter(e){if(this.msgType){if(this.msgType==="tag"){if(!e.tag)return!1}else if(this.msgType==="link"){if(!e.link)return!1}else if(this.msgType!==e.mtype)return!1}return!(this.msgId&&e.reply_id!=this.msgId)},onSearchMsgId(){this.dialogSearchMsgId>0&&this.openId===this.dialogId&&(this.onPositionId(this.dialogSearchMsgId),this.$store.state.dialogSearchMsgId=0)},onPositionId(e,t=0,n=0){return new Promise((r,a)=>{if(e===0){$A.modalError("\u67E5\u770B\u5931\u8D25\uFF1A\u53C2\u6570\u9519\u8BEF"),a();return}if(this.loadMsg||this.msgType!==""){if(this.msgType="",n===0)this.$store.dispatch("showSpinner",600);else if(n>20){this.$store.dispatch("hiddenSpinner"),$A.modalError("\u67E5\u770B\u5931\u8D25\uFF1A\u8BF7\u6C42\u8D85\u65F6"),a();return}n++,setTimeout(c=>{this.onPositionId(e,t,n).then(r).catch(a)},Math.min(800,200*n));return}n>0&&this.$store.dispatch("hiddenSpinner");const l=this.allMsgs.findIndex(c=>c.id===e),u=this.prevId>0?0:-1;l>u?setTimeout(c=>{this.onToIndex(l),r()},200):(t>0&&this.$store.dispatch("setLoad",{key:`msg-${t}`,delay:600}),this.preventToBottom=!0,this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,position_id:e,spinner:2e3}).finally(c=>{const d=this.allMsgs.findIndex(f=>f.id===e);d>-1&&(this.onToIndex(d),r()),t>0&&this.$store.dispatch("cancelLoad",`msg-${t}`),this.preventToBottom=!1}))})},onViewTodo(e){if(this.operateVisible)return;this.todoViewId=e.id,this.todoViewMid=e.msg_id,this.todoViewShow=!0,this.allMsgs.findIndex(n=>n.id===this.todoViewMid)===-1&&this.$store.dispatch("call",{url:"dialog/msg/one",data:{msg_id:this.todoViewMid}}).then(({data:n})=>{this.todoViewData=n})},onCloseTodo(){this.todoViewLoad=!1,this.todoViewShow=!1,this.todoViewData={},this.todoViewMid=0,this.todoViewId=0},onPosTodo(){!this.todoViewMid||(this.todoViewPosLoad=!0,this.onPositionId(this.todoViewMid).then(this.onCloseTodo).finally(e=>{this.todoViewPosLoad=!1}))},onDoneTodo(){!this.todoViewId||this.todoViewLoad||(this.todoViewLoad=!0,this.$store.dispatch("call",{url:"dialog/msg/done",data:{id:this.todoViewId}}).then(({data:e})=>{this.$store.dispatch("saveDialogTodo",{id:this.todoViewId,done_at:$A.formatDate("Y-m-d H:i:s")}),this.$store.dispatch("saveDialog",{id:this.dialogId,todo_num:this.todoList.length}),e.add&&this.sendSuccess(e.add),this.todoList.length===0&&this.$store.dispatch("getDialogTodo",this.dialogId),this.onCloseTodo()}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.todoViewLoad=!1}))},itemClassAdd(e){return e===this.msgActiveIndex?"common-shake":""},inputFocus(){this.$nextTick(e=>{this.$refs.input&&this.$refs.input.focus()})},onRecordState(e){this.recordState=e},chatPasteDrag(e,t){this.dialogDrag=!1;const n=t==="drag"?e.dataTransfer.files:e.clipboardData.files,r=Array.prototype.slice.call(n);r.length>0&&(e.preventDefault(),this.sendFileMsg(r))},chatDragOver(e,t){let n=this.__dialogDrag=$A.randomString(8);if(!e)setTimeout(()=>{n===this.__dialogDrag&&(this.dialogDrag=e)},150);else{if(t.dataTransfer.effectAllowed==="move"||Array.prototype.slice.call(t.dataTransfer.files).length===0)return;this.dialogDrag=!0}},onTouchStart(e){this.wrapperStart=Object.assign(this.scrollInfo(),{clientY:e.touches[0].clientY,exclud:!this.$refs.scroller.$el.contains(e.target)})},onTouchMove(e){if(this.windowPortrait&&this.windowScrollY>0){if(this.wrapperStart.exclud){e.preventDefault();return}this.wrapperStart.clientY>e.touches[0].clientY?this.wrapperStart.tail===0&&e.preventDefault():this.wrapperStart.offset===0&&e.preventDefault()}},pasteSend(){this.pasteFile.some(e=>{this.$refs.chatUpload.upload(e)})},chatFile(e,t){switch(e){case"progress":const n={id:t.tempId,dialog_id:this.dialogData.id,reply_id:this.quoteId,type:"loading",userid:this.userId,msg:{}};this.tempMsgs.push(n),this.msgType="",this.cancelQuote(),this.onActive(),this.$nextTick(this.onToBottom);break;case"error":this.tempMsgs=this.tempMsgs.filter(({id:r})=>r!=t.tempId);break;case"success":this.tempMsgs=this.tempMsgs.filter(({id:r})=>r!=t.tempId),this.sendSuccess(t.data);break}},sendSuccess(e){if($A.isArray(e)){e.some(this.sendSuccess);return}this.$store.dispatch("saveDialogMsg",e),this.quoteUpdate||(this.$store.dispatch("increaseTaskMsgNum",e),this.$store.dispatch("increaseMsgReplyNum",e),this.$store.dispatch("updateDialogLastMsg",e)),this.cancelQuote(),this.onActive()},setQuote(e,t){var n;(n=this.$refs.input)==null||n.setQuote(e,t)},cancelQuote(){var e;(e=this.$refs.input)==null||e.cancelQuote()},onEventFocus(){this.$emit("on-focus")},onEventBlur(){this.$emit("on-blur")},onEventMore(e){switch(e){case"image":case"file":this.$refs.chatUpload.handleClick();break;case"call":this.onCallTel();break;case"anon":this.onAnon();break}},onCallTel(){this.$store.dispatch("call",{url:"dialog/tel",data:{dialog_id:this.dialogId},spinner:600}).then(({data:e})=>{e.tel&&$A.eeuiAppSendMessage({action:"callTel",tel:e.tel}),e.add&&(this.$store.dispatch("saveDialogMsg",e.add),this.$store.dispatch("updateDialogLastMsg",e.add),this.onActive())}).catch(({msg:e})=>{$A.modalError(e)})},onAnon(){if(this.dialogData.type!=="user"||this.dialogData.bot){$A.modalWarning("\u533F\u540D\u6D88\u606F\u4EC5\u5141\u8BB8\u53D1\u9001\u7ED9\u4E2A\u4EBA");return}$A.modalInput({title:"\u53D1\u9001\u533F\u540D\u6D88\u606F",placeholder:"\u533F\u540D\u6D88\u606F\u5C06\u901A\u8FC7\u533F\u540D\u6D88\u606F\uFF08\u673A\u5668\u4EBA\uFF09\u53D1\u9001\u7ED9\u5BF9\u65B9\uFF0C\u4E0D\u4F1A\u8BB0\u5F55\u4F60\u7684\u4EFB\u4F55\u8EAB\u4EFD\u4FE1\u606F",inputProps:{type:"textarea",rows:3,autosize:{minRows:3,maxRows:6},maxlength:2e3},okText:"\u533F\u540D\u53D1\u9001",onOk:e=>e?new Promise((t,n)=>{this.$store.dispatch("call",{url:"dialog/msg/sendanon",data:{userid:this.dialogData.dialog_user.userid,text:e},method:"post"}).then(({msg:r})=>{t(r)}).catch(({msg:r})=>{n(r)})}):"\u8BF7\u8F93\u5165\u6D88\u606F\u5185\u5BB9"})},onEventEmojiVisibleChange(e){e&&this.windowPortrait&&this.onToBottom()},onHeightChange({newVal:e,oldVal:t}){const n=e-t;if(n!==0){const{offset:r,tail:a}=this.scrollInfo();a>0&&this.onToOffset(r+n)}},onActive(){this.$emit("on-active")},onToBottom(){this.msgNew=0;const e=this.$refs.scroller;e&&(e.scrollToBottom(),requestAnimationFrame(t=>e.scrollToBottom()))},onToIndex(e){const t=this.$refs.scroller;t&&(t.stopToBottom(),t.scrollToIndex(e,-100),requestAnimationFrame(n=>t.scrollToIndex(e,-100))),requestAnimationFrame(n=>this.msgActiveIndex=e)},onToOffset(e){const t=this.$refs.scroller;t&&(t.stopToBottom(),t.scrollToOffset(e),setTimeout(n=>t.scrollToOffset(e),10))},scrollInfo(){const e=this.$refs.scroller;return e?e.scrollInfo():{offset:0,scale:0,tail:0}},openProject(){!this.dialogData.group_info||(this.windowPortrait&&this.$store.dispatch("openDialog",0),this.goForward({name:"manage-project",params:{projectId:this.dialogData.group_info.id}}))},openTask(){!this.dialogData.group_info||(this.taskId>0&&this.$store.dispatch("openDialog",0),this.$store.dispatch("openTask",this.dialogData.group_info.id))},onPrevPage(){this.prevId!==0&&this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,prev_id:this.prevId,save_before:e=>this.scrollDisabled=!0,save_after:e=>this.scrollDisabled=!1}).then(({data:e})=>{const t=e.list.map(n=>n.id);this.$nextTick(()=>{const n=this.$refs.scroller,r=t.reduce((l,u)=>({size:(typeof l=="object"?l.size:n.getSize(l))+n.getSize(u)}));let a=n.getOffset()+r.size;this.prevId===0&&(a-=36),this.onToOffset(a),setTimeout(l=>n.virtual.handleFront(),10)})}).catch(()=>{})},onDialogMenu(e){var t;switch(e){case"searchMsg":this.searchShow=!0,this.$nextTick(r=>{this.$refs.searchInput.focus()});break;case"openCreate":const n=[this.userId];this.dialogData.dialog_user&&this.userId!=this.dialogData.dialog_user.userid&&n.push(this.dialogData.dialog_user.userid),this.createGroupData={userids:n,uncancelable:[this.userId]},this.createGroupShow=!0;break;case"modifyNormal":this.modifyData={dialog_id:this.dialogData.id,avatar:this.dialogData.avatar,name:this.dialogData.name},this.dialogData.type==="user"&&(this.modifyData=Object.assign(this.modifyData,{userid:this.dialogData.dialog_user.userid,avatar:(t=this.cacheUserBasic.find(r=>r.userid===this.dialogData.dialog_user.userid))==null?void 0:t.userimg,clear_day:0,webhook_url:""}),this.modifyLoad++,this.$store.dispatch("call",{url:"users/bot/info",data:{id:this.dialogData.dialog_user.userid}}).then(({data:r})=>{this.modifyData.clear_day=r.clear_day,this.modifyData.webhook_url=r.webhook_url}).finally(()=>{this.modifyLoad--})),this.modifyShow=!0;break;case"modifyAdmin":this.modifyData={dialog_id:this.dialogData.id,avatar:this.dialogData.avatar,admin:1},this.modifyShow=!0;break;case"groupInfo":this.groupInfoShow=!0;break;case"transfer":this.groupTransferData={dialog_id:this.dialogId,userid:[],disabledChoice:[this.userId]},this.groupTransferShow=!0;break;case"transferConfirm":this.onTransferGroup();break;case"disband":this.onDisbandGroup();break;case"exit":this.onExitGroup();break}},onTransferGroup(){if(this.groupTransferData.userid.length===0){$A.messageError("\u8BF7\u9009\u62E9\u65B0\u7684\u7FA4\u4E3B");return}this.groupTransferLoad++,this.$store.dispatch("call",{url:"dialog/group/transfer",data:{dialog_id:this.dialogId,userid:this.groupTransferData.userid[0]}}).then(({data:e,msg:t})=>{$A.messageSuccess(t),this.$store.dispatch("saveDialog",e)}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.groupTransferLoad--,this.groupTransferShow=!1})},onDisbandGroup(){$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u8981\u89E3\u6563\u3010${this.dialogData.name}\u3011\u7FA4\u7EC4\u5417\uFF1F`,loading:!0,okText:"\u89E3\u6563",onOk:()=>new Promise((e,t)=>{this.$store.dispatch("call",{url:"dialog/group/disband",data:{dialog_id:this.dialogId}}).then(({msg:n})=>{e(n),this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"})}).catch(({msg:n})=>{t(n)})})})},onExitGroup(){$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u7FA4\u7EC4\u5417\uFF1F",loading:!0,onOk:()=>new Promise((e,t)=>{this.$store.dispatch("call",{url:"dialog/group/deluser",data:{dialog_id:this.dialogId}}).then(({msg:n})=>{e(n),this.$store.dispatch("forgetDialog",this.dialogId),this.goForward({name:"manage-messenger"})}).catch(({msg:n})=>{t(n)})})})},onCreateGroup(){this.createGroupLoad++,this.$store.dispatch("call",{url:"dialog/group/add",data:this.createGroupData}).then(({data:e,msg:t})=>{$A.messageSuccess(t),this.createGroupShow=!1,this.createGroupData={},this.$store.dispatch("saveDialog",e),this.$store.dispatch("openDialog",e.id)}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.createGroupLoad--})},onModify(){this.modifyData.userid?(this.modifyLoad++,this.$store.dispatch("call",{url:"users/bot/edit",data:{id:this.modifyData.userid,avatar:this.modifyData.avatar,name:this.modifyData.name,clear_day:this.modifyData.clear_day,webhook_url:this.modifyData.webhook_url},method:"post"}).then(({data:e,msg:t})=>{$A.messageSuccess(t),this.$store.dispatch("saveUserBasic",{userid:this.modifyData.userid,nickname:e.name,userimg:e.avatar}),this.$store.dispatch("saveDialog",{id:this.modifyData.dialog_id,name:e.name}),this.modifyShow=!1,this.modifyData={}}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.modifyLoad--})):(this.modifyLoad++,this.$store.dispatch("call",{url:"dialog/group/edit",data:this.modifyData}).then(({data:e,msg:t})=>{$A.messageSuccess(t),this.$store.dispatch("saveDialog",e),this.modifyShow=!1,this.modifyData={}}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.modifyLoad--}))},onForward(){return new Promise((e,t)=>{if(this.forwardData.length===0){$A.messageError("\u8BF7\u9009\u62E9\u8F6C\u53D1\u5BF9\u8BDD\u6216\u6210\u5458"),t();return}const n=this.forwardData.filter(a=>$A.leftExists(a,"d:")).map(a=>a.replace("d:","")),r=this.forwardData.filter(a=>!$A.leftExists(a,"d:"));this.$store.dispatch("call",{url:"dialog/msg/forward",data:{dialogids:n,userids:r,msg_id:this.operateItem.id}}).then(({data:a,msg:l})=>{this.$store.dispatch("saveDialogMsg",a.msgs),this.$store.dispatch("updateDialogLastMsg",a.msgs),$A.messageSuccess(l),e()}).catch(({msg:a})=>{$A.modalError(a),t()})})},onScroll(e){this.operateVisible=!1;const{offset:t,tail:n}=this.scrollInfo();this.scrollOffset=t,this.scrollTail=n,this.scrollTail<=45&&(this.msgNew=0),this.scrollAction=e.target.scrollTop,this.scrollDirection=this.scrollTmp<=this.scrollAction?"down":"up",setTimeout(r=>this.scrollTmp=this.scrollAction,0)},onRange(e){if(this.preventMoreLoad)return;const t=this.scrollDirection==="down"?"next_id":"prev_id";for(let n=e.start;n<=e.end;n++){const r=this.allMsgs[n][t];if(r){const a=this.allMsgs[n+(t==="next_id"?1:-1)];a&&a.id!=r&&(this.preventMoreLoad=!0,this.getMsgs({dialog_id:this.dialogId,msg_id:this.msgId,msg_type:this.msgType,[t]:r}).finally(l=>{this.preventMoreLoad=!1}))}}},onBack(){if(!this.beforeBack)return this.handleBack();const e=this.beforeBack();e&&e.then?e.then(()=>{this.handleBack()}):this.handleBack()},handleBack(){const{name:e,params:t}=this.$store.state.routeHistoryLast;e===this.$route.name&&/^\d+$/.test(t.dialogId)?this.goForward({name:this.$route.name}):this.goBack()},onMsgType(e){switch(e){case"project":this.openProject();break;case"task":this.openTask();break;default:this.loadMsg?$A.messageWarning("\u6B63\u5728\u52A0\u8F7D\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5..."):this.msgType=e;break}},onMention(e){const t=this.cacheUserBasic.find(({userid:n})=>n==e.userid);t&&this.$refs.input.addMention({denotationChar:"@",id:t.userid,value:t.nickname})},onLongpress({event:e,el:t,msgData:n}){this.operateVisible=this.operateItem.id===n.id,this.operateItem=$A.isJson(n)?n:{},this.operateCopys=[],e.target.nodeName==="IMG"&&this.$Electron?this.operateCopys.push({type:"image",icon:"",label:"\u590D\u5236\u56FE\u7247",value:$A.thumbRestore(e.target.currentSrc)}):e.target.nodeName==="A"&&(e.target.classList.contains("mention")&&e.target.classList.contains("file")&&this.findOperateFile(this.operateItem.id,e.target.href),this.operateCopys.push({type:"link",icon:"",label:"\u590D\u5236\u94FE\u63A5",value:e.target.href})),n.type==="text"&&(e.target.nodeName==="IMG"&&this.operateCopys.push({type:"imagedown",icon:"",label:"\u4E0B\u8F7D\u56FE\u7247",value:$A.thumbRestore(e.target.currentSrc)}),n.msg.text.replace(/<[^>]+>/g,"").length>0&&this.operateCopys.push({type:"text",icon:"",label:this.operateCopys.length>0?"\u590D\u5236\u6587\u672C":"\u590D\u5236",value:""})),this.$nextTick(()=>{const r=t.getBoundingClientRect(),a=this.$el.getBoundingClientRect();this.operateStyles={left:`${e.clientX-a.left}px`,top:`${r.top+this.windowScrollY}px`,height:r.height+"px"},this.operateVisible=!0})},onOperate(e,t=null){this.operateVisible=!1,this.$nextTick(n=>{switch(e){case"reply":this.onReply();break;case"update":this.onUpdate();break;case"copy":this.onCopy(t);break;case"forward":this.forwardData=[],this.$refs.forwardSelect.onSelection();break;case"withdraw":this.onWithdraw();break;case"view":this.onViewFile();break;case"down":this.onDownFile();break;case"tag":this.onTag();break;case"newTask":let r=$A.formatMsgBasic(this.operateItem.msg.text);r=r.replace(/]*?src=(["'])(.*?)(_thumb\.jpg)*\1[^>]*?>/g,''),Ya.Store.set("addTask",{owner:[this.userId],content:r});break;case"todo":this.onTodo();break;case"pos":this.onPositionId(this.operateItem.id);break;case"emoji":t==="more"?RJ().then(this.onEmoji):this.onEmoji(t);break}})},onReply(e){const{tail:t}=this.scrollInfo();this.setQuote(this.operateItem.id,e),this.inputFocus(),t<=45&&requestAnimationFrame(this.onToBottom)},onUpdate(){const{type:e}=this.operateItem;if(this.onReply(e==="text"?"update":"reply"),e==="text"){let{text:t,type:n}=this.operateItem.msg;this.$refs.input.setPasteMode(!1),n==="md"?this.$refs.input.setText(t):(t.indexOf("mention")>-1&&(t=t.replace(/
]*)>~([^>]*)<\/a>/g,'~$3'),t=t.replace(/([@#])([^>]*)<\/span>/g,'$3$4')),t=t.replace(/]*>/gi,r=>r.replace(/(width|height)="\d+"\s*/ig,"")),this.msgText=$A.formatMsgBasic(t)),this.$nextTick(r=>this.$refs.input.setPasteMode(!0))}},onCopy(e){if(!$A.isJson(e))return;const{type:t,value:n}=e;switch(t){case"image":this.$Electron&&this.getBase64Image(n).then(a=>{this.$Electron.sendMessage("copyBase64Image",{base64:a})});break;case"imagedown":this.$store.dispatch("downUrl",{url:n,token:!1});break;case"filepos":this.windowPortrait&&this.$store.dispatch("openDialog",0),this.goForward({name:"manage-file",params:n});break;case"link":this.$copyText(n).then(a=>$A.messageSuccess("\u590D\u5236\u6210\u529F")).catch(a=>$A.messageError("\u590D\u5236\u5931\u8D25"));break;case"text":const r=$A(this.$refs.scroller.$el).find(`[data-id="${this.operateItem.id}"]`).find(".dialog-content");if(r.length>0){const a=r[0].innerText.replace(/\n\n/g,` +`).replace(/(^\s*)|(\s*$)/g,"");this.$copyText(a).then(l=>$A.messageSuccess("\u590D\u5236\u6210\u529F")).catch(l=>$A.messageError("\u590D\u5236\u5931\u8D25"))}else $A.messageWarning("\u4E0D\u53EF\u590D\u5236\u7684\u5185\u5BB9");break}},onWithdraw(){$A.modalConfirm({content:"\u786E\u5B9A\u64A4\u56DE\u6B64\u4FE1\u606F\u5417\uFF1F",okText:"\u64A4\u56DE",loading:!0,onOk:()=>new Promise((e,t)=>{this.$store.dispatch("call",{url:"dialog/msg/withdraw",data:{msg_id:this.operateItem.id}}).then(()=>{e("\u6D88\u606F\u5DF2\u64A4\u56DE"),this.$store.dispatch("forgetDialogMsg",this.operateItem.id)}).catch(({msg:n})=>{t(n)})})})},onViewReply(e){this.operateVisible||this.onPositionId(e.reply_id,e.msg_id)},onViewText({target:e},t){if(this.operateVisible)return;let n=$(e).parents(".open-approve-details");if(n.length>0){let r=n[0].getAttribute("data-id");window.innerWidth<426?this.goForward({name:"manage-approve-details",query:{id:n[0].getAttribute("data-id")}}):(this.approveDetailsShow=!0,this.$nextTick(()=>{this.approveDetails={id:r}}));return}switch(e.nodeName){case"IMG":if(e.classList.contains("browse"))this.onViewPicture(e.currentSrc);else{const r=$A.getTextImagesInfo(t.outerHTML),a=r.findIndex(l=>l.src==e.currentSrc);this.$store.dispatch("previewImage",{index:a,list:r})}break;case"SPAN":e.classList.contains("mention")&&e.classList.contains("task")&&this.$store.dispatch("openTask",$A.runNum(e.getAttribute("data-id")));break}},onViewFile(e){if(this.operateVisible)return;$A.isJson(e)||(e=this.operateItem);const{msg:t}=e;if(["jpg","jpeg","webp","gif","png"].includes(t.ext)){this.onViewPicture(t.path);return}const n=`/single/file/msg/${e.id}`;this.$Electron?this.$Electron.sendMessage("windowRouter",{name:`file-msg-${e.id}`,path:n,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:`${t.name} (${$A.bytesToSize(t.size)})`,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:t.ext==="drawio"}}):this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:`${t.name} (${$A.bytesToSize(t.size)})`,url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${n}`}}):window.open($A.apiUrl(`..${n}`))},onViewPicture(e){const t=this.allMsgs.filter(a=>a.type==="file"?["jpg","jpeg","webp","gif","png"].includes(a.msg.ext):a.type==="text"?a.msg.text.match(/]*?>/):!1),n=[];t.some(({type:a,msg:l})=>{a==="file"?n.push({src:l.path,width:l.width,height:l.height}):a==="text"&&n.push(...$A.getTextImagesInfo(l.text))});const r=n.findIndex(({src:a})=>a===e);r>-1?this.$store.dispatch("previewImage",{index:r,list:n}):this.$store.dispatch("previewImage",e)},onDownFile(e){this.operateVisible||($A.isJson(e)||(e=this.operateItem),$A.modalConfirm({title:"\u4E0B\u8F7D\u6587\u4EF6",content:`${e.msg.name} (${$A.bytesToSize(e.msg.size)})`,okText:"\u7ACB\u5373\u4E0B\u8F7D",onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`dialog/msg/download?msg_id=${e.id}`))}}))},onReplyList(e){this.operateVisible||(this.replyListId=e.msg_id,this.replyListShow=!0)},onError(e){if(e.error!==!0)return;const{type:t,content:n,msg:r}=e.errorData,a={icon:"error",title:"\u53D1\u9001\u5931\u8D25",content:n,cancelText:"\u53D6\u6D88\u53D1\u9001",onCancel:l=>{this.tempMsgs=this.tempMsgs.filter(({id:u})=>u!=e.id)}};if(t==="text")a.okText="\u518D\u6B21\u7F16\u8F91",a.onOk=()=>{this.tempMsgs=this.tempMsgs.filter(({id:l})=>l!=e.id),this.$refs.input.setPasteMode(!1),this.msgText=r,this.inputFocus(),this.$nextTick(l=>this.$refs.input.setPasteMode(!0))};else if(t==="record")a.okText="\u91CD\u65B0\u53D1\u9001",a.onOk=()=>{this.tempMsgs=this.tempMsgs.filter(({id:l})=>l!=e.id),this.sendRecord(r)};else return;$A.modalConfirm(a)},onEmoji(e){$A.isJson(e)||(e={msg_id:this.operateItem.id,symbol:e});const t=this.cacheEmojis.filter(n=>n!==e.symbol);t.unshift(e.symbol),$A.IDBSave("cacheEmojis",this.$store.state.cacheEmojis=t.slice(0,3)),this.$store.dispatch("setLoad",{key:`msg-${e.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/emoji",data:e}).then(({data:n})=>{this.dialogMsgs.findIndex(a=>a.id==n.id)>-1?this.$store.dispatch("saveDialogMsg",n):this.todoViewData.id===n.id&&(this.todoViewData=Object.assign(this.todoViewData,n))}).catch(({msg:n})=>{$A.messageError(n)}).finally(n=>{this.$store.dispatch("cancelLoad",`msg-${e.msg_id}`)})},onShowEmojiUser(e){this.operateVisible||(this.respondData=e,this.respondShow=!0)},onTag(){if(this.operateVisible)return;const e={msg_id:this.operateItem.id};this.$store.dispatch("setLoad",{key:`msg-${e.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/tag",data:e}).then(({data:t})=>{this.tagOrTodoSuccess(t)}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.$store.dispatch("cancelLoad",`msg-${e.msg_id}`)})},onTodo(e){var t;if(!this.operateVisible)if(e==="submit"){const n=$A.cloneJSON(this.todoSettingData);if(n.type==="my")n.type="user",n.userids=[n.my_id];else if(n.type==="you")n.type="user",n.userids=[n.you_id];else if(n.type==="user"&&$A.arrayLength(n.userids)===0){$A.messageWarning("\u9009\u62E9\u6307\u5B9A\u6210\u5458");return}this.todoSettingLoad++,this.onTodoSubmit(n).then(r=>{$A.messageSuccess(r),this.todoSettingShow=!1}).catch($A.messageError).finally(r=>{this.todoSettingLoad--})}else{const n=(t=this.dialogData.dialog_user)==null?void 0:t.userid;this.todoSettingData={type:"all",userids:[],msg_id:this.operateItem.id,my_id:this.userId,you_id:n!=this.userId&&!this.dialogData.bot?n:0},this.operateItem.todo?$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u53D6\u6D88\u5F85\u529E\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",loading:!0,onOk:()=>this.onTodoSubmit(this.todoSettingData)}):this.todoSettingShow=!0}},onTodoSubmit(e){return new Promise((t,n)=>{this.$store.dispatch("setLoad",{key:`msg-${e.msg_id}`,delay:600}),this.$store.dispatch("call",{url:"dialog/msg/todo",data:e}).then(({data:r,msg:a})=>{t(a),this.tagOrTodoSuccess(r),this.onActive()}).catch(({msg:r})=>{n(r)}).finally(r=>{this.$store.dispatch("cancelLoad",`msg-${e.msg_id}`)})})},tagOrTodoSuccess(e){this.$store.dispatch("saveDialogMsg",e.update),e.add&&(this.$store.dispatch("saveDialogMsg",e.add),this.$store.dispatch("updateDialogLastMsg",e.add))},onSearchSwitch(e){if(this.searchResult.length!==0){if(this.searchLocation===1&&this.searchResult.length===1){this.onPositionId(this.searchResult[0]);return}e==="prev"?this.searchLocation<=1?this.searchLocation=this.searchResult.length:this.searchLocation--:this.searchLocation>=this.searchResult.length?this.searchLocation=1:this.searchLocation++}},onSearchKeyup(e){(e===null||e.keyCode===27)&&(this.searchShow=!1,this.searchKey="",this.searchResult=[])},onPositionMark(){if(this.positionLoad>0)return;this.positionLoad++;const{msg_id:e}=this.positionMsg;this.$store.dispatch("dialogMsgMark",{dialog_id:this.dialogId,type:"read",after_msg_id:e}).then(t=>{this.positionLoad++,this.onPositionId(e).finally(n=>{this.positionLoad--})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.positionLoad--})},findOperateFile(e,t){const n=this.fileLinks.find(r=>r.link===t);if(n){this.addFileMenu(e,n);return}this.$store.dispatch("searchFiles",{link:t}).then(({data:r})=>{if(r.length===1){const a={link:t,id:r[0].id,pid:r[0].pid};this.fileLinks.push(a),this.addFileMenu(e,a)}}).catch(r=>{})},addFileMenu(e,t){if(this.operateItem.id!=e||this.operateCopys.findIndex(r=>r.type==="filepos")!==-1)return;const n=Math.max(0,this.operateCopys.findIndex(r=>r.type==="link")-1);this.operateCopys.splice(n,0,{type:"filepos",icon:"",label:"\u663E\u793A\u6587\u4EF6",value:{folderId:t.pid,fileId:null,shakeId:t.id}})},getBase64Image(e){return new Promise(t=>{let n=document.createElement("CANVAS"),r=n.getContext("2d"),a=new Image;a.crossOrigin="Anonymous",a.onload=()=>{n.height=a.height,n.width=a.width,r.drawImage(a,0,0);let l="png";$A.rightExists(e,"jpg")||$A.rightExists(e,"jpeg")?l="jpeg":$A.rightExists(e,"webp")?l="webp":$A.rightExists(e,"git")&&(l="git"),t(n.toDataURL(`image/${l}`)),n=null},a.src=e})},onViewAvatar(e){let t=null;e.target.tagName==="IMG"?t=e.target.src:t=$A(e.target).find("img").attr("src"),t&&this.$store.dispatch("previewImage",t)}}},Rl={};var IJ=Qt(AJ,NJ,OJ,!1,DJ,null,null,null);function DJ(e){for(let t in Rl)this[t]=Rl[t]}var BJ=function(){return IJ.exports}();export{yJ as C,BJ as D}; diff --git a/public/js/build/Drawio.f9d36caf.js b/public/js/build/Drawio.28151df2.js similarity index 93% rename from public/js/build/Drawio.f9d36caf.js rename to public/js/build/Drawio.28151df2.js index 2752dcece..76dfd355d 100644 --- a/public/js/build/Drawio.f9d36caf.js +++ b/public/js/build/Drawio.28151df2.js @@ -1 +1 @@ -import{m as o,n as l,a as s}from"./app.3d81bfbf.js";import{I as d}from"./IFrame.21d04c65.js";var u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"drawio-content"},[a("IFrame",{ref:"frame",staticClass:"drawio-iframe",attrs:{src:e.url},on:{"on-message":e.onMessage}}),e.loadIng?a("div",{staticClass:"drawio-loading"},[a("Loading")],1):e._e()],1)},m=[];const c={name:"Drawio",components:{IFrame:d},props:{value:{type:Object,default:function(){return{}}},title:{type:String,default:""},readOnly:{type:Boolean,default:!1}},data(){return{loadIng:!0,url:null,bakData:""}},created(){let e=s;switch(s){case"zh-CHT":e="zh-tw";break}let t=this.readOnly?1:0,a=this.readOnly?0:1,r=this.themeIsDark?"dark":"kennedy",n=`?title=${this.title?encodeURIComponent(this.title):""}&chrome=${a}&lightbox=${t}&ui=${r}&lang=${e}&offline=1&pwa=0&embed=1&noLangIcon=1&noExitBtn=1&noSaveBtn=1&saveAndExit=0&spin=1&proto=json`;this.$Electron?this.url=$A.originUrl(`drawio/webapp/index.html${n}`):this.url=$A.apiUrl(`../drawio/webapp/${n}`)},mounted(){window.addEventListener("message",this.handleMessage)},beforeDestroy(){window.removeEventListener("message",this.handleMessage)},watch:{value:{handler(e){this.bakData!=$A.jsonStringify(e)&&(this.bakData=$A.jsonStringify(e),this.updateContent())},deep:!0}},computed:{...o(["themeIsDark"])},methods:{formatZoom(e){return e+"%"},updateContent(){this.$refs.frame.postMessage(JSON.stringify({action:"load",autosave:1,xml:this.value.xml}))},onMessage(e){switch(e.event){case"init":this.loadIng=!1,this.updateContent();break;case"load":typeof this.value.xml=="undefined"&&this.$refs.frame.postMessage(JSON.stringify({action:"template"}));break;case"autosave":const t={xml:e.xml};this.bakData=$A.jsonStringify(t),this.$emit("input",t);break;case"save":this.$emit("saveData");break}}}},i={};var h=l(c,u,m,!1,f,"6b690a27",null,null);function f(e){for(let t in i)this[t]=i[t]}var _=function(){return h.exports}();export{_ as default}; +import{m as o,n as l,a as s}from"./app.28437e7d.js";import{I as d}from"./IFrame.057cac1d.js";var u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"drawio-content"},[a("IFrame",{ref:"frame",staticClass:"drawio-iframe",attrs:{src:e.url},on:{"on-message":e.onMessage}}),e.loadIng?a("div",{staticClass:"drawio-loading"},[a("Loading")],1):e._e()],1)},m=[];const c={name:"Drawio",components:{IFrame:d},props:{value:{type:Object,default:function(){return{}}},title:{type:String,default:""},readOnly:{type:Boolean,default:!1}},data(){return{loadIng:!0,url:null,bakData:""}},created(){let e=s;switch(s){case"zh-CHT":e="zh-tw";break}let t=this.readOnly?1:0,a=this.readOnly?0:1,r=this.themeIsDark?"dark":"kennedy",n=`?title=${this.title?encodeURIComponent(this.title):""}&chrome=${a}&lightbox=${t}&ui=${r}&lang=${e}&offline=1&pwa=0&embed=1&noLangIcon=1&noExitBtn=1&noSaveBtn=1&saveAndExit=0&spin=1&proto=json`;this.$Electron?this.url=$A.originUrl(`drawio/webapp/index.html${n}`):this.url=$A.apiUrl(`../drawio/webapp/${n}`)},mounted(){window.addEventListener("message",this.handleMessage)},beforeDestroy(){window.removeEventListener("message",this.handleMessage)},watch:{value:{handler(e){this.bakData!=$A.jsonStringify(e)&&(this.bakData=$A.jsonStringify(e),this.updateContent())},deep:!0}},computed:{...o(["themeIsDark"])},methods:{formatZoom(e){return e+"%"},updateContent(){this.$refs.frame.postMessage(JSON.stringify({action:"load",autosave:1,xml:this.value.xml}))},onMessage(e){switch(e.event){case"init":this.loadIng=!1,this.updateContent();break;case"load":typeof this.value.xml=="undefined"&&this.$refs.frame.postMessage(JSON.stringify({action:"template"}));break;case"autosave":const t={xml:e.xml};this.bakData=$A.jsonStringify(t),this.$emit("input",t);break;case"save":this.$emit("saveData");break}}}},i={};var h=l(c,u,m,!1,f,"6b690a27",null,null);function f(e){for(let t in i)this[t]=i[t]}var _=function(){return h.exports}();export{_ as default}; diff --git a/public/js/build/FileContent.433fb254.js b/public/js/build/FileContent.19861c79.js similarity index 92% rename from public/js/build/FileContent.433fb254.js rename to public/js/build/FileContent.19861c79.js index 910d80b64..033348e53 100644 --- a/public/js/build/FileContent.433fb254.js +++ b/public/js/build/FileContent.19861c79.js @@ -1 +1 @@ -import{n as r,m as c,_ as n}from"./app.3d81bfbf.js";import{I as d}from"./IFrame.21d04c65.js";var h=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"file-history"},[t("Table",{attrs:{width:480,"max-height":e.windowHeight-180,columns:e.columns,data:e.list,loading:e.loadIng>0,"no-data-text":e.$L(e.noText),"highlight-row":"",stripe:""}}),e.total>e.pageSize?t("Page",{attrs:{total:e.total,current:e.page,"page-size":e.pageSize,disabled:e.loadIng>0,simple:!0},on:{"on-change":e.setPage,"on-page-size-change":e.setPageSize}}):e._e()],1)},u=[];const f={name:"FileHistory",props:{value:{type:Boolean,default:!1},file:{type:Object,default:()=>({})}},data(){return{loadIng:0,columns:[{title:this.$L("\u65E5\u671F"),key:"created_at",width:168},{title:this.$L("\u521B\u5EFA\u4EBA"),width:120,render:(e,{row:s})=>e("UserAvatar",{props:{showName:!0,size:22,userid:s.userid}})},{title:this.$L("\u5927\u5C0F"),key:"size",width:90,render:(e,{row:s})=>e("AutoTip",$A.bytesToSize(s.size))},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(e,{index:s,row:t,column:i})=>s===0&&this.page===1?e("div","-"):e("TableAction",{props:{column:i,menu:[{label:this.$L("\u67E5\u770B"),action:"preview"},{label:this.$L("\u8FD8\u539F"),action:"restore"}]},on:{action:a=>{this.onAction(a,t)}}})}],list:[],page:1,pageSize:10,total:0,noText:""}},mounted(){},watch:{value:{handler(e){e&&this.setPage(1)},immediate:!0}},computed:{fileId(){return this.file.id||0}},methods:{getLists(){this.fileId!==0&&(this.loadIng++,this.$store.dispatch("call",{url:"file/content/history",data:{id:this.fileId,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:e})=>{this.page=e.current_page,this.total=e.total,this.list=e.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(e=>{this.loadIng--}))},setPage(e){this.page=e,this.getLists()},setPageSize(e){this.page=1,this.pageSize=e,this.getLists()},onAction(e,s){switch(e){case"restore":this.$emit("on-restore",s);break;case"preview":const t=`/single/file/${this.fileId}?history_id=${s.id}&history_at=${s.created_at}`;this.$Electron?this.$Electron.sendMessage("windowRouter",{name:`file-${this.fileId}-${s.id}`,path:t,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:$A.getFileName(this.file)+` [${s.created_at}]`,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:this.file.type==="drawio"}}):this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:$A.getFileName(this.file)+` [${s.created_at}]`,url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${t}`}}):window.open($A.apiUrl(`..${t}`));break}}}},o={};var p=r(f,h,u,!1,v,"44e1704c",null,null);function v(e){for(let s in o)this[s]=o[s]}var _=function(){return p.exports}(),m=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.ready?t("div",{staticClass:"file-content"},[e.isPreview?t("IFrame",{staticClass:"preview-iframe",attrs:{src:e.previewUrl},on:{"on-load":e.onFrameLoad}}):e.contentDetail?[["word","excel","ppt"].includes(e.file.type)?t("EPopover",{attrs:{trigger:"click"},model:{value:e.historyShow,callback:function(i){e.historyShow=i},expression:"historyShow"}},[t("div",{staticClass:"file-content-history"},[t("FileHistory",{attrs:{value:e.historyShow,file:e.file},on:{"on-restore":e.onRestoreHistory}})],1),t("div",{ref:"officeHeader",staticClass:"office-header",attrs:{slot:"reference"},slot:"reference"})]):t("div",{staticClass:"edit-header"},[t("div",{staticClass:"header-title"},[e.equalContent?e._e():t("EPopover",{staticClass:"file-unsave-tip",model:{value:e.unsaveTip,callback:function(i){e.unsaveTip=i},expression:"unsaveTip"}},[t("div",{staticClass:"task-detail-delete-file-popover"},[t("p",[e._v(e._s(e.$L("\u672A\u4FDD\u5B58\u5F53\u524D\u4FEE\u6539\u5185\u5BB9\uFF1F")))]),t("div",{staticClass:"buttons"},[t("Button",{attrs:{size:"small",type:"text"},on:{click:e.unSaveGive}},[e._v(e._s(e.$L("\u653E\u5F03")))]),t("Button",{attrs:{size:"small",type:"primary"},on:{click:e.onSaveSave}},[e._v(e._s(e.$L("\u4FDD\u5B58")))])],1)]),t("span",{attrs:{slot:"reference"},slot:"reference"},[e._v("["+e._s(e.$L("\u672A\u4FDD\u5B58"))+"*]")])]),e._v(" "+e._s(e.fileName)+" ")],1),t("div",{staticClass:"header-user"},[t("ul",[e._l(e.editUser,function(i,a){return a<=10?t("li",{key:a},[t("UserAvatar",{attrs:{userid:i,size:28,"border-witdh":2}})],1):e._e()}),e.editUser.length>10?t("li",{staticClass:"more",attrs:{title:e.editUser.length}},[e._v(e._s(e.editUser.length>999?"...":e.editUser.length))]):e._e()],2)]),e.file.type=="document"&&e.contentDetail?t("div",{staticClass:"header-hint"},[t("ButtonGroup",{attrs:{size:"small",shape:"circle"}},[t("Button",{attrs:{type:`${e.contentDetail.type=="md"?"primary":"default"}`},on:{click:function(i){return e.setTextType("md")}}},[e._v(e._s(e.$L("MD\u7F16\u8F91\u5668")))]),t("Button",{attrs:{type:`${e.contentDetail.type!="md"?"primary":"default"}`},on:{click:function(i){return e.setTextType("text")}}},[e._v(e._s(e.$L("\u6587\u672C\u7F16\u8F91\u5668")))])],1)],1):e._e(),e.file.type=="mind"?t("div",{staticClass:"header-hint"},[e._v(" "+e._s(e.$L("\u9009\u4E2D\u8282\u70B9\uFF0C\u6309enter\u952E\u6DFB\u52A0\u540C\u7EA7\u8282\u70B9\uFF0Ctab\u952E\u6DFB\u52A0\u5B50\u8282\u70B9"))+" ")]):e._e(),e.file.type=="mind"?t("Dropdown",{staticClass:"header-hint",attrs:{trigger:"click",transfer:""},on:{"on-click":e.exportMenu}},[t("a",{attrs:{href:"javascript:void(0)"}},[e._v(e._s(e.$L("\u5BFC\u51FA"))),t("Icon",{attrs:{type:"ios-arrow-down"}})],1),t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t("DropdownItem",{attrs:{name:"png"}},[e._v(e._s(e.$L("\u5BFC\u51FAPNG\u56FE\u7247")))]),t("DropdownItem",{attrs:{name:"pdf"}},[e._v(e._s(e.$L("\u5BFC\u51FAPDF\u6587\u4EF6")))])],1)],1):e._e(),e.file.only_view?e._e():[t("div",{staticClass:"header-icons"},[t("ETooltip",{attrs:{disabled:e.$isEEUiApp||e.windowTouch,content:e.$L("\u6587\u4EF6\u94FE\u63A5")}},[t("div",{staticClass:"header-icon",on:{click:function(i){return e.handleClick("link")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE785")])])]),t("EPopover",{attrs:{trigger:"click"},model:{value:e.historyShow,callback:function(i){e.historyShow=i},expression:"historyShow"}},[t("div",{staticClass:"file-content-history"},[t("FileHistory",{attrs:{value:e.historyShow,file:e.file},on:{"on-restore":e.onRestoreHistory}})],1),t("ETooltip",{ref:"historyTip",attrs:{slot:"reference",disabled:e.$isEEUiApp||e.windowTouch||e.historyShow,content:e.$L("\u5386\u53F2\u7248\u672C")},slot:"reference"},[t("div",{staticClass:"header-icon"},[t("i",{staticClass:"taskfont"},[e._v("\uE71D")])])])],1)],1),t("Button",{staticClass:"header-button",attrs:{disabled:e.equalContent,loading:e.loadSave>0,size:"small",type:"primary"},on:{click:function(i){return e.handleClick("save")}}},[e._v(e._s(e.$L("\u4FDD\u5B58")))])]],2),t("div",{staticClass:"content-body"},[e.historyShow?t("div",{staticClass:"content-mask"}):e._e(),e.file.type=="document"?[e.contentDetail.type=="md"?t("MDEditor",{attrs:{height:"100%"},model:{value:e.contentDetail.content,callback:function(i){e.$set(e.contentDetail,"content",i)},expression:"contentDetail.content"}}):t("TEditor",{attrs:{height:"100%"},on:{editorSave:function(i){return e.handleClick("saveBefore")}},model:{value:e.contentDetail.content,callback:function(i){e.$set(e.contentDetail,"content",i)},expression:"contentDetail.content"}})]:e.file.type=="drawio"?t("Drawio",{ref:"myFlow",attrs:{title:e.file.name},on:{saveData:function(i){return e.handleClick("saveBefore")}},model:{value:e.contentDetail,callback:function(i){e.contentDetail=i},expression:"contentDetail"}}):e.file.type=="mind"?t("Minder",{ref:"myMind",on:{saveData:function(i){return e.handleClick("saveBefore")}},model:{value:e.contentDetail,callback:function(i){e.contentDetail=i},expression:"contentDetail"}}):["code","txt"].includes(e.file.type)?t("AceEditor",{attrs:{ext:e.file.ext},on:{saveData:function(i){return e.handleClick("saveBefore")}},model:{value:e.contentDetail.content,callback:function(i){e.$set(e.contentDetail,"content",i)},expression:"contentDetail.content"}}):["word","excel","ppt"].includes(e.file.type)?t("OnlyOffice",{attrs:{documentKey:e.documentKey},on:{"on-document-ready":function(i){return e.handleClick("officeReady")}},model:{value:e.contentDetail,callback:function(i){e.contentDetail=i},expression:"contentDetail"}}):e._e()],2)]:e._e(),e.contentLoad?t("div",{staticClass:"content-load"},[t("Loading")],1):e._e(),t("Modal",{attrs:{title:e.$L("\u6587\u4EF6\u94FE\u63A5"),"mask-closable":!1},model:{value:e.linkShow,callback:function(i){e.linkShow=i},expression:"linkShow"}},[t("div",[t("div",{staticStyle:{margin:"-10px 0 8px"}},[e._v(e._s(e.$L("\u6587\u4EF6\u540D\u79F0"))+": "+e._s(e.linkData.name))]),t("Input",{ref:"linkInput",attrs:{type:"textarea",rows:3,readonly:""},on:{"on-focus":e.linkFocus},model:{value:e.linkData.url,callback:function(i){e.$set(e.linkData,"url",i)},expression:"linkData.url"}}),t("div",{staticClass:"form-tip",staticStyle:{"padding-top":"6px"}},[e._v(e._s(e.$L("\u53EF\u901A\u8FC7\u6B64\u94FE\u63A5\u6D4F\u89C8\u6587\u4EF6\u3002"))),t("a",{attrs:{href:"javascript:void(0)"},on:{click:e.linkCopy}},[e._v(e._s(e.$L("\u70B9\u51FB\u590D\u5236\u94FE\u63A5")))])])],1),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"default"},on:{click:function(i){e.linkShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),t("Poptip",{staticStyle:{"margin-left":"8px"},attrs:{confirm:"",placement:"bottom","ok-text":e.$L("\u786E\u5B9A"),"cancel-text":e.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(i){return e.linkGet(!0)}}},[t("div",{attrs:{slot:"title"},slot:"title"},[t("p",[t("strong",[e._v(e._s(e.$L("\u6CE8\u610F\uFF1A\u5237\u65B0\u5C06\u5BFC\u81F4\u539F\u6765\u7684\u94FE\u63A5\u5931\u6548\uFF01")))])])]),t("Button",{attrs:{type:"primary",loading:e.linkLoad>0}},[e._v(e._s(e.$L("\u5237\u65B0")))])],1)],1)])],2):e._e()},y=[];const k=()=>n(()=>import("./index.fbb6a904.js"),["js/build/index.fbb6a904.js","js/build/index.4dae4044.css","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css","js/build/ImgUpload.7f60f3a4.js"]),$=()=>n(()=>import("./TEditor.443b30fe.js"),["js/build/TEditor.443b30fe.js","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css","js/build/ImgUpload.7f60f3a4.js"]),w=()=>n(()=>import("./AceEditor.054eace8.js"),["js/build/AceEditor.054eace8.js","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css"]),g=()=>n(()=>import("./OnlyOffice.c9898129.js"),["js/build/OnlyOffice.c9898129.js","js/build/OnlyOffice.a5dfbde1.css","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css","js/build/IFrame.21d04c65.js"]),D=()=>n(()=>import("./Drawio.f9d36caf.js"),["js/build/Drawio.f9d36caf.js","js/build/Drawio.fc5c6326.css","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css","js/build/IFrame.21d04c65.js"]),x=()=>n(()=>import("./Minder.e38cd318.js"),["js/build/Minder.e38cd318.js","js/build/Minder.f2273bdb.css","js/build/IFrame.21d04c65.js","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css"]),C={name:"FileContent",components:{IFrame:d,FileHistory:_,AceEditor:w,TEditor:$,MDEditor:k,OnlyOffice:g,Drawio:D,Minder:x},props:{value:{type:Boolean,default:!1},file:{type:Object,default:()=>({})}},data(){return{ready:!1,loadSave:0,loadContent:0,unsaveTip:!1,fileExt:null,contentDetail:null,contentBak:{},editUser:[],loadPreview:!0,linkShow:!1,linkData:{},linkLoad:0,historyShow:!1,officeReady:!1}},mounted(){document.addEventListener("keydown",this.keySave),window.addEventListener("message",this.handleOfficeMessage),this.$isSubElectron&&(window.__onBeforeUnload=()=>{if(!this.equalContent)return $A.modalConfirm({content:"\u4FEE\u6539\u7684\u5185\u5BB9\u5C1A\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u653E\u5F03\u4FEE\u6539\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u653E\u5F03",onOk:()=>{this.$Electron.sendMessage("windowDestroy")}}),!0})},beforeDestroy(){document.removeEventListener("keydown",this.keySave),window.removeEventListener("message",this.handleOfficeMessage)},watch:{value:{handler(e){e?(this.ready=!0,this.editUser=[this.userId],this.getContent()):(this.linkShow=!1,this.historyShow=!1,this.officeReady=!1,this.fileExt=null)},immediate:!0},historyShow(e){!e&&this.$refs.historyTip&&this.$refs.historyTip.updatePopper()},wsMsg:{handler(e){const{type:s,action:t,data:i}=e;switch(s){case"path":i.path=="/single/file/"+this.fileId&&(this.editUser=i.userids);break;case"file":t=="content"&&this.value&&i.id==this.fileId&&$A.modalConfirm({title:"\u66F4\u65B0\u63D0\u793A",content:"\u56E2\u961F\u6210\u5458\uFF08"+e.nickname+"\uFF09\u66F4\u65B0\u4E86\u5185\u5BB9\uFF0C
\u66F4\u65B0\u65F6\u95F4\uFF1A"+$A.formatDate("Y-m-d H:i:s",e.time)+"\u3002

\u70B9\u51FB\u3010\u786E\u5B9A\u3011\u52A0\u8F7D\u6700\u65B0\u5185\u5BB9\u3002",onOk:()=>{this.getContent()}});break}},deep:!0}},computed:{...c(["wsMsg"]),fileId(){return this.file.id||0},fileName(){return this.fileExt?$A.getFileName(Object.assign(this.file,{ext:this.fileExt})):$A.getFileName(this.file)},equalContent(){return this.contentBak==$A.jsonStringify(this.contentDetail)},contentLoad(){return this.loadContent>0||this.previewLoad},isPreview(){return this.contentDetail&&this.contentDetail.preview===!0},previewLoad(){return this.isPreview&&this.loadPreview===!0},previewUrl(){if(this.isPreview){const{name:e,key:s}=this.contentDetail;return $A.apiUrl(`../online/preview/${e}?key=${s}`)}return""}},methods:{handleOfficeMessage({data:e,source:s}){if(e.source==="onlyoffice")switch(e.action){case"ready":s.postMessage("createMenu","*");break;case"link":this.handleClick("link");break;case"history":const t=this.$refs.officeHeader;t&&(t.style.top=`${e.rect.top}px`,t.style.left=`${e.rect.left}px`,t.style.width=`${e.rect.width}px`,t.style.height=`${e.rect.height}px`,t.click());break}},onFrameLoad(){this.loadPreview=!1},keySave(e){this.value&&e.keyCode===83&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),this.onSaveSave())},getContent(){if(this.fileId===0){this.contentDetail={},this.updateBak();return}if(["word","excel","ppt"].includes(this.file.type)){this.contentDetail=$A.cloneJSON(this.file),this.updateBak();return}this.loadSave++,setTimeout(e=>{this.loadContent++},600),this.$store.dispatch("call",{url:"file/content",data:{id:this.fileId}}).then(({data:e})=>{this.contentDetail=e.content,this.updateBak()}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadSave--,this.loadContent--})},updateBak(){this.contentBak=$A.jsonStringify(this.contentDetail)},handleClick(e){switch(e){case"link":this.linkData={id:this.fileId,name:this.file.name},this.linkShow=!0,this.linkGet();break;case"saveBefore":!this.equalContent&&this.loadSave==0?this.handleClick("save"):$A.messageWarning("\u6CA1\u6709\u4EFB\u4F55\u4FEE\u6539\uFF01");break;case"save":if(this.file.only_view)return;this.updateBak(),this.loadSave++,this.$store.dispatch("call",{url:"file/content/save",method:"post",data:{id:this.fileId,content:this.contentBak}}).then(({data:s,msg:t})=>{$A.messageSuccess(t);const i={id:this.fileId,size:s.size};this.fileExt&&(i.ext=this.fileExt,this.fileExt=null),this.$store.dispatch("saveFile",i)}).catch(({msg:s})=>{$A.modalError(s),this.getContent()}).finally(s=>{this.loadSave--});break;case"officeReady":this.officeReady=!0;break}},onRestoreHistory(e){this.historyShow=!1,$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u6587\u4EF6\u8FD8\u539F\u81F3\u3010${e.created_at}\u3011\u5417\uFF1F`,cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",loading:!0,onOk:()=>new Promise((s,t)=>{this.$store.dispatch("call",{url:"file/content/restore",data:{id:this.fileId,history_id:e.id}}).then(({msg:i})=>{s(i),this.contentDetail=null,this.getContent()}).catch(({msg:i})=>{t(i)})})})},linkGet(e){this.linkLoad++,this.$store.dispatch("call",{url:"file/link",data:{id:this.linkData.id,refresh:e===!0?"yes":"no"}}).then(({data:s})=>{this.linkData=Object.assign(s,{id:this.linkData.id,name:this.linkData.name}),this.linkFocus()}).catch(({msg:s})=>{this.linkShow=!1,$A.modalError(s)}).finally(s=>{this.linkLoad--})},linkCopy(){!this.linkData.url||(this.linkFocus(),this.$copyText(this.linkData.url).then(e=>{$A.messageSuccess("\u590D\u5236\u6210\u529F")}).catch(e=>{$A.messageError("\u590D\u5236\u5931\u8D25")}))},linkFocus(){this.$nextTick(e=>{this.$refs.linkInput.focus({cursor:"all"})})},exportMenu(e){switch(this.file.type){case"mind":this.$refs.myMind.exportHandle(e,this.file.name);break}},unSaveGive(){this.getContent(),this.unsaveTip=!1},onSaveSave(){this.handleClick("save"),this.unsaveTip=!1},setTextType(e){this.fileExt=e,this.$set(this.contentDetail,"type",e)},documentKey(){return new Promise(e=>{this.$store.dispatch("call",{url:"file/content",data:{id:this.fileId,only_update_at:"yes"}}).then(({data:s})=>{e(`${s.id}-${$A.Time(s.update_at)}`)}).catch(()=>{e(0)})})}}},l={};var S=r(C,m,y,!1,L,null,null,null);function L(e){for(let s in l)this[s]=l[s]}var T=function(){return S.exports}();export{T as default}; +import{n as r,m as c,_ as n}from"./app.28437e7d.js";import{I as d}from"./IFrame.057cac1d.js";var h=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"file-history"},[t("Table",{attrs:{width:480,"max-height":e.windowHeight-180,columns:e.columns,data:e.list,loading:e.loadIng>0,"no-data-text":e.$L(e.noText),"highlight-row":"",stripe:""}}),e.total>e.pageSize?t("Page",{attrs:{total:e.total,current:e.page,"page-size":e.pageSize,disabled:e.loadIng>0,simple:!0},on:{"on-change":e.setPage,"on-page-size-change":e.setPageSize}}):e._e()],1)},u=[];const f={name:"FileHistory",props:{value:{type:Boolean,default:!1},file:{type:Object,default:()=>({})}},data(){return{loadIng:0,columns:[{title:this.$L("\u65E5\u671F"),key:"created_at",width:168},{title:this.$L("\u521B\u5EFA\u4EBA"),width:120,render:(e,{row:s})=>e("UserAvatar",{props:{showName:!0,size:22,userid:s.userid}})},{title:this.$L("\u5927\u5C0F"),key:"size",width:90,render:(e,{row:s})=>e("AutoTip",$A.bytesToSize(s.size))},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(e,{index:s,row:t,column:i})=>s===0&&this.page===1?e("div","-"):e("TableAction",{props:{column:i,menu:[{label:this.$L("\u67E5\u770B"),action:"preview"},{label:this.$L("\u8FD8\u539F"),action:"restore"}]},on:{action:a=>{this.onAction(a,t)}}})}],list:[],page:1,pageSize:10,total:0,noText:""}},mounted(){},watch:{value:{handler(e){e&&this.setPage(1)},immediate:!0}},computed:{fileId(){return this.file.id||0}},methods:{getLists(){this.fileId!==0&&(this.loadIng++,this.$store.dispatch("call",{url:"file/content/history",data:{id:this.fileId,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:e})=>{this.page=e.current_page,this.total=e.total,this.list=e.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(e=>{this.loadIng--}))},setPage(e){this.page=e,this.getLists()},setPageSize(e){this.page=1,this.pageSize=e,this.getLists()},onAction(e,s){switch(e){case"restore":this.$emit("on-restore",s);break;case"preview":const t=`/single/file/${this.fileId}?history_id=${s.id}&history_at=${s.created_at}`;this.$Electron?this.$Electron.sendMessage("windowRouter",{name:`file-${this.fileId}-${s.id}`,path:t,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:$A.getFileName(this.file)+` [${s.created_at}]`,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:this.file.type==="drawio"}}):this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:$A.getFileName(this.file)+` [${s.created_at}]`,url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${t}`}}):window.open($A.apiUrl(`..${t}`));break}}}},o={};var p=r(f,h,u,!1,v,"44e1704c",null,null);function v(e){for(let s in o)this[s]=o[s]}var _=function(){return p.exports}(),m=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.ready?t("div",{staticClass:"file-content"},[e.isPreview?t("IFrame",{staticClass:"preview-iframe",attrs:{src:e.previewUrl},on:{"on-load":e.onFrameLoad}}):e.contentDetail?[["word","excel","ppt"].includes(e.file.type)?t("EPopover",{attrs:{trigger:"click"},model:{value:e.historyShow,callback:function(i){e.historyShow=i},expression:"historyShow"}},[t("div",{staticClass:"file-content-history"},[t("FileHistory",{attrs:{value:e.historyShow,file:e.file},on:{"on-restore":e.onRestoreHistory}})],1),t("div",{ref:"officeHeader",staticClass:"office-header",attrs:{slot:"reference"},slot:"reference"})]):t("div",{staticClass:"edit-header"},[t("div",{staticClass:"header-title"},[e.equalContent?e._e():t("EPopover",{staticClass:"file-unsave-tip",model:{value:e.unsaveTip,callback:function(i){e.unsaveTip=i},expression:"unsaveTip"}},[t("div",{staticClass:"task-detail-delete-file-popover"},[t("p",[e._v(e._s(e.$L("\u672A\u4FDD\u5B58\u5F53\u524D\u4FEE\u6539\u5185\u5BB9\uFF1F")))]),t("div",{staticClass:"buttons"},[t("Button",{attrs:{size:"small",type:"text"},on:{click:e.unSaveGive}},[e._v(e._s(e.$L("\u653E\u5F03")))]),t("Button",{attrs:{size:"small",type:"primary"},on:{click:e.onSaveSave}},[e._v(e._s(e.$L("\u4FDD\u5B58")))])],1)]),t("span",{attrs:{slot:"reference"},slot:"reference"},[e._v("["+e._s(e.$L("\u672A\u4FDD\u5B58"))+"*]")])]),e._v(" "+e._s(e.fileName)+" ")],1),t("div",{staticClass:"header-user"},[t("ul",[e._l(e.editUser,function(i,a){return a<=10?t("li",{key:a},[t("UserAvatar",{attrs:{userid:i,size:28,"border-witdh":2}})],1):e._e()}),e.editUser.length>10?t("li",{staticClass:"more",attrs:{title:e.editUser.length}},[e._v(e._s(e.editUser.length>999?"...":e.editUser.length))]):e._e()],2)]),e.file.type=="document"&&e.contentDetail?t("div",{staticClass:"header-hint"},[t("ButtonGroup",{attrs:{size:"small",shape:"circle"}},[t("Button",{attrs:{type:`${e.contentDetail.type=="md"?"primary":"default"}`},on:{click:function(i){return e.setTextType("md")}}},[e._v(e._s(e.$L("MD\u7F16\u8F91\u5668")))]),t("Button",{attrs:{type:`${e.contentDetail.type!="md"?"primary":"default"}`},on:{click:function(i){return e.setTextType("text")}}},[e._v(e._s(e.$L("\u6587\u672C\u7F16\u8F91\u5668")))])],1)],1):e._e(),e.file.type=="mind"?t("div",{staticClass:"header-hint"},[e._v(" "+e._s(e.$L("\u9009\u4E2D\u8282\u70B9\uFF0C\u6309enter\u952E\u6DFB\u52A0\u540C\u7EA7\u8282\u70B9\uFF0Ctab\u952E\u6DFB\u52A0\u5B50\u8282\u70B9"))+" ")]):e._e(),e.file.type=="mind"?t("Dropdown",{staticClass:"header-hint",attrs:{trigger:"click",transfer:""},on:{"on-click":e.exportMenu}},[t("a",{attrs:{href:"javascript:void(0)"}},[e._v(e._s(e.$L("\u5BFC\u51FA"))),t("Icon",{attrs:{type:"ios-arrow-down"}})],1),t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t("DropdownItem",{attrs:{name:"png"}},[e._v(e._s(e.$L("\u5BFC\u51FAPNG\u56FE\u7247")))]),t("DropdownItem",{attrs:{name:"pdf"}},[e._v(e._s(e.$L("\u5BFC\u51FAPDF\u6587\u4EF6")))])],1)],1):e._e(),e.file.only_view?e._e():[t("div",{staticClass:"header-icons"},[t("ETooltip",{attrs:{disabled:e.$isEEUiApp||e.windowTouch,content:e.$L("\u6587\u4EF6\u94FE\u63A5")}},[t("div",{staticClass:"header-icon",on:{click:function(i){return e.handleClick("link")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE785")])])]),t("EPopover",{attrs:{trigger:"click"},model:{value:e.historyShow,callback:function(i){e.historyShow=i},expression:"historyShow"}},[t("div",{staticClass:"file-content-history"},[t("FileHistory",{attrs:{value:e.historyShow,file:e.file},on:{"on-restore":e.onRestoreHistory}})],1),t("ETooltip",{ref:"historyTip",attrs:{slot:"reference",disabled:e.$isEEUiApp||e.windowTouch||e.historyShow,content:e.$L("\u5386\u53F2\u7248\u672C")},slot:"reference"},[t("div",{staticClass:"header-icon"},[t("i",{staticClass:"taskfont"},[e._v("\uE71D")])])])],1)],1),t("Button",{staticClass:"header-button",attrs:{disabled:e.equalContent,loading:e.loadSave>0,size:"small",type:"primary"},on:{click:function(i){return e.handleClick("save")}}},[e._v(e._s(e.$L("\u4FDD\u5B58")))])]],2),t("div",{staticClass:"content-body"},[e.historyShow?t("div",{staticClass:"content-mask"}):e._e(),e.file.type=="document"?[e.contentDetail.type=="md"?t("MDEditor",{attrs:{height:"100%"},model:{value:e.contentDetail.content,callback:function(i){e.$set(e.contentDetail,"content",i)},expression:"contentDetail.content"}}):t("TEditor",{attrs:{height:"100%"},on:{editorSave:function(i){return e.handleClick("saveBefore")}},model:{value:e.contentDetail.content,callback:function(i){e.$set(e.contentDetail,"content",i)},expression:"contentDetail.content"}})]:e.file.type=="drawio"?t("Drawio",{ref:"myFlow",attrs:{title:e.file.name},on:{saveData:function(i){return e.handleClick("saveBefore")}},model:{value:e.contentDetail,callback:function(i){e.contentDetail=i},expression:"contentDetail"}}):e.file.type=="mind"?t("Minder",{ref:"myMind",on:{saveData:function(i){return e.handleClick("saveBefore")}},model:{value:e.contentDetail,callback:function(i){e.contentDetail=i},expression:"contentDetail"}}):["code","txt"].includes(e.file.type)?t("AceEditor",{attrs:{ext:e.file.ext},on:{saveData:function(i){return e.handleClick("saveBefore")}},model:{value:e.contentDetail.content,callback:function(i){e.$set(e.contentDetail,"content",i)},expression:"contentDetail.content"}}):["word","excel","ppt"].includes(e.file.type)?t("OnlyOffice",{attrs:{documentKey:e.documentKey},on:{"on-document-ready":function(i){return e.handleClick("officeReady")}},model:{value:e.contentDetail,callback:function(i){e.contentDetail=i},expression:"contentDetail"}}):e._e()],2)]:e._e(),e.contentLoad?t("div",{staticClass:"content-load"},[t("Loading")],1):e._e(),t("Modal",{attrs:{title:e.$L("\u6587\u4EF6\u94FE\u63A5"),"mask-closable":!1},model:{value:e.linkShow,callback:function(i){e.linkShow=i},expression:"linkShow"}},[t("div",[t("div",{staticStyle:{margin:"-10px 0 8px"}},[e._v(e._s(e.$L("\u6587\u4EF6\u540D\u79F0"))+": "+e._s(e.linkData.name))]),t("Input",{ref:"linkInput",attrs:{type:"textarea",rows:3,readonly:""},on:{"on-focus":e.linkFocus},model:{value:e.linkData.url,callback:function(i){e.$set(e.linkData,"url",i)},expression:"linkData.url"}}),t("div",{staticClass:"form-tip",staticStyle:{"padding-top":"6px"}},[e._v(e._s(e.$L("\u53EF\u901A\u8FC7\u6B64\u94FE\u63A5\u6D4F\u89C8\u6587\u4EF6\u3002"))),t("a",{attrs:{href:"javascript:void(0)"},on:{click:e.linkCopy}},[e._v(e._s(e.$L("\u70B9\u51FB\u590D\u5236\u94FE\u63A5")))])])],1),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"default"},on:{click:function(i){e.linkShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),t("Poptip",{staticStyle:{"margin-left":"8px"},attrs:{confirm:"",placement:"bottom","ok-text":e.$L("\u786E\u5B9A"),"cancel-text":e.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(i){return e.linkGet(!0)}}},[t("div",{attrs:{slot:"title"},slot:"title"},[t("p",[t("strong",[e._v(e._s(e.$L("\u6CE8\u610F\uFF1A\u5237\u65B0\u5C06\u5BFC\u81F4\u539F\u6765\u7684\u94FE\u63A5\u5931\u6548\uFF01")))])])]),t("Button",{attrs:{type:"primary",loading:e.linkLoad>0}},[e._v(e._s(e.$L("\u5237\u65B0")))])],1)],1)])],2):e._e()},y=[];const k=()=>n(()=>import("./index.cbe8908d.js"),["js/build/index.cbe8908d.js","js/build/index.4dae4044.css","js/build/app.28437e7d.js","js/build/app.3c80ad42.css","js/build/ImgUpload.cbadd034.js"]),$=()=>n(()=>import("./TEditor.a8b14511.js"),["js/build/TEditor.a8b14511.js","js/build/app.28437e7d.js","js/build/app.3c80ad42.css","js/build/ImgUpload.cbadd034.js"]),w=()=>n(()=>import("./AceEditor.fa0d76af.js"),["js/build/AceEditor.fa0d76af.js","js/build/app.28437e7d.js","js/build/app.3c80ad42.css"]),g=()=>n(()=>import("./OnlyOffice.55cfcbd8.js"),["js/build/OnlyOffice.55cfcbd8.js","js/build/OnlyOffice.a5dfbde1.css","js/build/app.28437e7d.js","js/build/app.3c80ad42.css","js/build/IFrame.057cac1d.js"]),D=()=>n(()=>import("./Drawio.28151df2.js"),["js/build/Drawio.28151df2.js","js/build/Drawio.fc5c6326.css","js/build/app.28437e7d.js","js/build/app.3c80ad42.css","js/build/IFrame.057cac1d.js"]),x=()=>n(()=>import("./Minder.52580554.js"),["js/build/Minder.52580554.js","js/build/Minder.f2273bdb.css","js/build/IFrame.057cac1d.js","js/build/app.28437e7d.js","js/build/app.3c80ad42.css"]),C={name:"FileContent",components:{IFrame:d,FileHistory:_,AceEditor:w,TEditor:$,MDEditor:k,OnlyOffice:g,Drawio:D,Minder:x},props:{value:{type:Boolean,default:!1},file:{type:Object,default:()=>({})}},data(){return{ready:!1,loadSave:0,loadContent:0,unsaveTip:!1,fileExt:null,contentDetail:null,contentBak:{},editUser:[],loadPreview:!0,linkShow:!1,linkData:{},linkLoad:0,historyShow:!1,officeReady:!1}},mounted(){document.addEventListener("keydown",this.keySave),window.addEventListener("message",this.handleOfficeMessage),this.$isSubElectron&&(window.__onBeforeUnload=()=>{if(!this.equalContent)return $A.modalConfirm({content:"\u4FEE\u6539\u7684\u5185\u5BB9\u5C1A\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u653E\u5F03\u4FEE\u6539\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u653E\u5F03",onOk:()=>{this.$Electron.sendMessage("windowDestroy")}}),!0})},beforeDestroy(){document.removeEventListener("keydown",this.keySave),window.removeEventListener("message",this.handleOfficeMessage)},watch:{value:{handler(e){e?(this.ready=!0,this.editUser=[this.userId],this.getContent()):(this.linkShow=!1,this.historyShow=!1,this.officeReady=!1,this.fileExt=null)},immediate:!0},historyShow(e){!e&&this.$refs.historyTip&&this.$refs.historyTip.updatePopper()},wsMsg:{handler(e){const{type:s,action:t,data:i}=e;switch(s){case"path":i.path=="/single/file/"+this.fileId&&(this.editUser=i.userids);break;case"file":t=="content"&&this.value&&i.id==this.fileId&&$A.modalConfirm({title:"\u66F4\u65B0\u63D0\u793A",content:"\u56E2\u961F\u6210\u5458\uFF08"+e.nickname+"\uFF09\u66F4\u65B0\u4E86\u5185\u5BB9\uFF0C
\u66F4\u65B0\u65F6\u95F4\uFF1A"+$A.formatDate("Y-m-d H:i:s",e.time)+"\u3002

\u70B9\u51FB\u3010\u786E\u5B9A\u3011\u52A0\u8F7D\u6700\u65B0\u5185\u5BB9\u3002",onOk:()=>{this.getContent()}});break}},deep:!0}},computed:{...c(["wsMsg"]),fileId(){return this.file.id||0},fileName(){return this.fileExt?$A.getFileName(Object.assign(this.file,{ext:this.fileExt})):$A.getFileName(this.file)},equalContent(){return this.contentBak==$A.jsonStringify(this.contentDetail)},contentLoad(){return this.loadContent>0||this.previewLoad},isPreview(){return this.contentDetail&&this.contentDetail.preview===!0},previewLoad(){return this.isPreview&&this.loadPreview===!0},previewUrl(){if(this.isPreview){const{name:e,key:s}=this.contentDetail;return $A.apiUrl(`../online/preview/${e}?key=${s}`)}return""}},methods:{handleOfficeMessage({data:e,source:s}){if(e.source==="onlyoffice")switch(e.action){case"ready":s.postMessage("createMenu","*");break;case"link":this.handleClick("link");break;case"history":const t=this.$refs.officeHeader;t&&(t.style.top=`${e.rect.top}px`,t.style.left=`${e.rect.left}px`,t.style.width=`${e.rect.width}px`,t.style.height=`${e.rect.height}px`,t.click());break}},onFrameLoad(){this.loadPreview=!1},keySave(e){this.value&&e.keyCode===83&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),this.onSaveSave())},getContent(){if(this.fileId===0){this.contentDetail={},this.updateBak();return}if(["word","excel","ppt"].includes(this.file.type)){this.contentDetail=$A.cloneJSON(this.file),this.updateBak();return}this.loadSave++,setTimeout(e=>{this.loadContent++},600),this.$store.dispatch("call",{url:"file/content",data:{id:this.fileId}}).then(({data:e})=>{this.contentDetail=e.content,this.updateBak()}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadSave--,this.loadContent--})},updateBak(){this.contentBak=$A.jsonStringify(this.contentDetail)},handleClick(e){switch(e){case"link":this.linkData={id:this.fileId,name:this.file.name},this.linkShow=!0,this.linkGet();break;case"saveBefore":!this.equalContent&&this.loadSave==0?this.handleClick("save"):$A.messageWarning("\u6CA1\u6709\u4EFB\u4F55\u4FEE\u6539\uFF01");break;case"save":if(this.file.only_view)return;this.updateBak(),this.loadSave++,this.$store.dispatch("call",{url:"file/content/save",method:"post",data:{id:this.fileId,content:this.contentBak}}).then(({data:s,msg:t})=>{$A.messageSuccess(t);const i={id:this.fileId,size:s.size};this.fileExt&&(i.ext=this.fileExt,this.fileExt=null),this.$store.dispatch("saveFile",i)}).catch(({msg:s})=>{$A.modalError(s),this.getContent()}).finally(s=>{this.loadSave--});break;case"officeReady":this.officeReady=!0;break}},onRestoreHistory(e){this.historyShow=!1,$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u6587\u4EF6\u8FD8\u539F\u81F3\u3010${e.created_at}\u3011\u5417\uFF1F`,cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",loading:!0,onOk:()=>new Promise((s,t)=>{this.$store.dispatch("call",{url:"file/content/restore",data:{id:this.fileId,history_id:e.id}}).then(({msg:i})=>{s(i),this.contentDetail=null,this.getContent()}).catch(({msg:i})=>{t(i)})})})},linkGet(e){this.linkLoad++,this.$store.dispatch("call",{url:"file/link",data:{id:this.linkData.id,refresh:e===!0?"yes":"no"}}).then(({data:s})=>{this.linkData=Object.assign(s,{id:this.linkData.id,name:this.linkData.name}),this.linkFocus()}).catch(({msg:s})=>{this.linkShow=!1,$A.modalError(s)}).finally(s=>{this.linkLoad--})},linkCopy(){!this.linkData.url||(this.linkFocus(),this.$copyText(this.linkData.url).then(e=>{$A.messageSuccess("\u590D\u5236\u6210\u529F")}).catch(e=>{$A.messageError("\u590D\u5236\u5931\u8D25")}))},linkFocus(){this.$nextTick(e=>{this.$refs.linkInput.focus({cursor:"all"})})},exportMenu(e){switch(this.file.type){case"mind":this.$refs.myMind.exportHandle(e,this.file.name);break}},unSaveGive(){this.getContent(),this.unsaveTip=!1},onSaveSave(){this.handleClick("save"),this.unsaveTip=!1},setTextType(e){this.fileExt=e,this.$set(this.contentDetail,"type",e)},documentKey(){return new Promise(e=>{this.$store.dispatch("call",{url:"file/content",data:{id:this.fileId,only_update_at:"yes"}}).then(({data:s})=>{e(`${s.id}-${$A.Time(s.update_at)}`)}).catch(()=>{e(0)})})}}},l={};var S=r(C,m,y,!1,L,null,null,null);function L(e){for(let s in l)this[s]=l[s]}var T=function(){return S.exports}();export{T as default}; diff --git a/public/js/build/FilePreview.4334b185.js b/public/js/build/FilePreview.025b3286.js similarity index 76% rename from public/js/build/FilePreview.4334b185.js rename to public/js/build/FilePreview.025b3286.js index f850e91eb..f440da3dc 100644 --- a/public/js/build/FilePreview.4334b185.js +++ b/public/js/build/FilePreview.025b3286.js @@ -1 +1 @@ -import{n as r,_ as n}from"./app.3d81bfbf.js";import{I as a}from"./IFrame.21d04c65.js";var s=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"file-preview"},[e.isPreview?t("IFrame",{staticClass:"preview-iframe",attrs:{src:e.previewUrl},on:{"on-load":e.onFrameLoad}}):e.contentDetail?[t("div",{directives:[{name:"show",rawName:"v-show",value:e.headerShow&&!["word","excel","ppt"].includes(e.file.type),expression:"headerShow && !['word', 'excel', 'ppt'].includes(file.type)"}],staticClass:"edit-header"},[t("div",{staticClass:"header-title"},[t("div",{staticClass:"title-name"},[e._v(e._s(e.$A.getFileName(e.file)))]),t("Tag",{attrs:{color:"default"}},[e._v(e._s(e.$L("\u53EA\u8BFB")))]),t("div",{staticClass:"refresh"},[e.contentLoad?t("Loading"):t("Icon",{attrs:{type:"ios-refresh"},on:{click:e.getContent}})],1)],1),e.file.type=="mind"?t("Dropdown",{staticClass:"header-hint",attrs:{trigger:"click"},on:{"on-click":e.exportMenu}},[t("a",{attrs:{href:"javascript:void(0)"}},[e._v(e._s(e.$L("\u5BFC\u51FA"))),t("Icon",{attrs:{type:"ios-arrow-down"}})],1),t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t("DropdownItem",{attrs:{name:"png"}},[e._v(e._s(e.$L("\u5BFC\u51FAPNG\u56FE\u7247")))]),t("DropdownItem",{attrs:{name:"pdf"}},[e._v(e._s(e.$L("\u5BFC\u51FAPDF\u6587\u4EF6")))])],1)],1):e._e()],1),t("div",{staticClass:"content-body"},[e.file.type=="document"?[e.contentDetail.type=="md"?t("MDPreview",{attrs:{initialValue:e.contentDetail.content}}):t("TEditor",{attrs:{value:e.contentDetail.content,height:"100%",readOnly:""}})]:e.file.type=="drawio"?t("Drawio",{ref:"myFlow",attrs:{value:e.contentDetail,title:e.file.name,readOnly:""}}):e.file.type=="mind"?t("Minder",{ref:"myMind",attrs:{value:e.contentDetail,readOnly:""}}):["code","txt"].includes(e.file.type)?t("AceEditor",{attrs:{value:e.contentDetail.content,ext:e.file.ext,readOnly:""}}):["word","excel","ppt"].includes(e.file.type)?t("OnlyOffice",{attrs:{value:e.contentDetail,code:e.code,historyId:e.historyId,documentKey:e.documentKey,readOnly:""}}):e._e()],2)]:e._e(),e.contentLoad?t("div",{staticClass:"content-load"},[t("Loading")],1):e._e()],2)},l=[];const d=()=>n(()=>import("./preview.245b21bf.js"),["js/build/preview.245b21bf.js","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css"]),c=()=>n(()=>import("./TEditor.443b30fe.js"),["js/build/TEditor.443b30fe.js","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css","js/build/ImgUpload.7f60f3a4.js"]),_=()=>n(()=>import("./AceEditor.054eace8.js"),["js/build/AceEditor.054eace8.js","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css"]),p=()=>n(()=>import("./OnlyOffice.c9898129.js"),["js/build/OnlyOffice.c9898129.js","js/build/OnlyOffice.a5dfbde1.css","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css","js/build/IFrame.21d04c65.js"]),u=()=>n(()=>import("./Drawio.f9d36caf.js"),["js/build/Drawio.f9d36caf.js","js/build/Drawio.fc5c6326.css","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css","js/build/IFrame.21d04c65.js"]),h=()=>n(()=>import("./Minder.e38cd318.js"),["js/build/Minder.e38cd318.js","js/build/Minder.f2273bdb.css","js/build/IFrame.21d04c65.js","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css"]),v={name:"FilePreview",components:{IFrame:a,AceEditor:_,TEditor:c,MDPreview:d,OnlyOffice:p,Drawio:u,Minder:h},props:{code:{type:String,default:""},historyId:{type:Number,default:0},file:{type:Object,default:()=>({})},headerShow:{type:Boolean,default:!0}},data(){return{loadContent:0,contentDetail:null,loadPreview:!0}},watch:{"file.id":{handler(e){e&&(this.contentDetail=null,this.getContent())},immediate:!0,deep:!0}},computed:{contentLoad(){return this.loadContent>0||this.previewLoad},isPreview(){return this.contentDetail&&this.contentDetail.preview===!0},previewLoad(){return this.isPreview&&this.loadPreview===!0},previewUrl(){if(this.isPreview){const{name:e,key:i}=this.contentDetail;return $A.apiUrl(`../online/preview/${e}?key=${i}`)}return""}},methods:{onFrameLoad(){this.loadPreview=!1},getContent(){if(["word","excel","ppt"].includes(this.file.type)){this.contentDetail=$A.cloneJSON(this.file);return}setTimeout(e=>{this.loadContent++},600),this.$store.dispatch("call",{url:"file/content",data:{id:this.code||this.file.id,history_id:this.historyId}}).then(({data:e})=>{this.contentDetail=e.content}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadContent--})},documentKey(){return new Promise(e=>{this.$store.dispatch("call",{url:"file/content",data:{id:this.code||this.file.id,only_update_at:"yes"}}).then(({data:i})=>{e(`${i.id}-${$A.Time(i.update_at)}`)}).catch(()=>{e(0)})})},exportMenu(e){switch(this.file.type){case"mind":this.$refs.myMind.exportHandle(e,this.file.name);break}}}},o={};var f=r(v,s,l,!1,m,null,null,null);function m(e){for(let i in o)this[i]=o[i]}var D=function(){return f.exports}();export{D as default}; +import{n as r,_ as n}from"./app.28437e7d.js";import{I as a}from"./IFrame.057cac1d.js";var s=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"file-preview"},[e.isPreview?t("IFrame",{staticClass:"preview-iframe",attrs:{src:e.previewUrl},on:{"on-load":e.onFrameLoad}}):e.contentDetail?[t("div",{directives:[{name:"show",rawName:"v-show",value:e.headerShow&&!["word","excel","ppt"].includes(e.file.type),expression:"headerShow && !['word', 'excel', 'ppt'].includes(file.type)"}],staticClass:"edit-header"},[t("div",{staticClass:"header-title"},[t("div",{staticClass:"title-name"},[e._v(e._s(e.$A.getFileName(e.file)))]),t("Tag",{attrs:{color:"default"}},[e._v(e._s(e.$L("\u53EA\u8BFB")))]),t("div",{staticClass:"refresh"},[e.contentLoad?t("Loading"):t("Icon",{attrs:{type:"ios-refresh"},on:{click:e.getContent}})],1)],1),e.file.type=="mind"?t("Dropdown",{staticClass:"header-hint",attrs:{trigger:"click"},on:{"on-click":e.exportMenu}},[t("a",{attrs:{href:"javascript:void(0)"}},[e._v(e._s(e.$L("\u5BFC\u51FA"))),t("Icon",{attrs:{type:"ios-arrow-down"}})],1),t("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t("DropdownItem",{attrs:{name:"png"}},[e._v(e._s(e.$L("\u5BFC\u51FAPNG\u56FE\u7247")))]),t("DropdownItem",{attrs:{name:"pdf"}},[e._v(e._s(e.$L("\u5BFC\u51FAPDF\u6587\u4EF6")))])],1)],1):e._e()],1),t("div",{staticClass:"content-body"},[e.file.type=="document"?[e.contentDetail.type=="md"?t("MDPreview",{attrs:{initialValue:e.contentDetail.content}}):t("TEditor",{attrs:{value:e.contentDetail.content,height:"100%",readOnly:""}})]:e.file.type=="drawio"?t("Drawio",{ref:"myFlow",attrs:{value:e.contentDetail,title:e.file.name,readOnly:""}}):e.file.type=="mind"?t("Minder",{ref:"myMind",attrs:{value:e.contentDetail,readOnly:""}}):["code","txt"].includes(e.file.type)?t("AceEditor",{attrs:{value:e.contentDetail.content,ext:e.file.ext,readOnly:""}}):["word","excel","ppt"].includes(e.file.type)?t("OnlyOffice",{attrs:{value:e.contentDetail,code:e.code,historyId:e.historyId,documentKey:e.documentKey,readOnly:""}}):e._e()],2)]:e._e(),e.contentLoad?t("div",{staticClass:"content-load"},[t("Loading")],1):e._e()],2)},l=[];const d=()=>n(()=>import("./preview.f1094d4b.js"),["js/build/preview.f1094d4b.js","js/build/app.28437e7d.js","js/build/app.3c80ad42.css"]),c=()=>n(()=>import("./TEditor.a8b14511.js"),["js/build/TEditor.a8b14511.js","js/build/app.28437e7d.js","js/build/app.3c80ad42.css","js/build/ImgUpload.cbadd034.js"]),_=()=>n(()=>import("./AceEditor.fa0d76af.js"),["js/build/AceEditor.fa0d76af.js","js/build/app.28437e7d.js","js/build/app.3c80ad42.css"]),p=()=>n(()=>import("./OnlyOffice.55cfcbd8.js"),["js/build/OnlyOffice.55cfcbd8.js","js/build/OnlyOffice.a5dfbde1.css","js/build/app.28437e7d.js","js/build/app.3c80ad42.css","js/build/IFrame.057cac1d.js"]),u=()=>n(()=>import("./Drawio.28151df2.js"),["js/build/Drawio.28151df2.js","js/build/Drawio.fc5c6326.css","js/build/app.28437e7d.js","js/build/app.3c80ad42.css","js/build/IFrame.057cac1d.js"]),h=()=>n(()=>import("./Minder.52580554.js"),["js/build/Minder.52580554.js","js/build/Minder.f2273bdb.css","js/build/IFrame.057cac1d.js","js/build/app.28437e7d.js","js/build/app.3c80ad42.css"]),v={name:"FilePreview",components:{IFrame:a,AceEditor:_,TEditor:c,MDPreview:d,OnlyOffice:p,Drawio:u,Minder:h},props:{code:{type:String,default:""},historyId:{type:Number,default:0},file:{type:Object,default:()=>({})},headerShow:{type:Boolean,default:!0}},data(){return{loadContent:0,contentDetail:null,loadPreview:!0}},watch:{"file.id":{handler(e){e&&(this.contentDetail=null,this.getContent())},immediate:!0,deep:!0}},computed:{contentLoad(){return this.loadContent>0||this.previewLoad},isPreview(){return this.contentDetail&&this.contentDetail.preview===!0},previewLoad(){return this.isPreview&&this.loadPreview===!0},previewUrl(){if(this.isPreview){const{name:e,key:i}=this.contentDetail;return $A.apiUrl(`../online/preview/${e}?key=${i}`)}return""}},methods:{onFrameLoad(){this.loadPreview=!1},getContent(){if(["word","excel","ppt"].includes(this.file.type)){this.contentDetail=$A.cloneJSON(this.file);return}setTimeout(e=>{this.loadContent++},600),this.$store.dispatch("call",{url:"file/content",data:{id:this.code||this.file.id,history_id:this.historyId}}).then(({data:e})=>{this.contentDetail=e.content}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadContent--})},documentKey(){return new Promise(e=>{this.$store.dispatch("call",{url:"file/content",data:{id:this.code||this.file.id,only_update_at:"yes"}}).then(({data:i})=>{e(`${i.id}-${$A.Time(i.update_at)}`)}).catch(()=>{e(0)})})},exportMenu(e){switch(this.file.type){case"mind":this.$refs.myMind.exportHandle(e,this.file.name);break}}}},o={};var f=r(v,s,l,!1,m,null,null,null);function m(e){for(let i in o)this[i]=o[i]}var D=function(){return f.exports}();export{D as default}; diff --git a/public/js/build/IFrame.21d04c65.js b/public/js/build/IFrame.057cac1d.js similarity index 94% rename from public/js/build/IFrame.21d04c65.js rename to public/js/build/IFrame.057cac1d.js index 38f19f57f..64d478cae 100644 --- a/public/js/build/IFrame.21d04c65.js +++ b/public/js/build/IFrame.057cac1d.js @@ -1 +1 @@ -import{n}from"./app.3d81bfbf.js";var i=function(){var e=this,s=e.$createElement,r=e._self._c||s;return r("iframe",{directives:[{name:"show",rawName:"v-show",value:e.src,expression:"src"}],ref:"iframe",attrs:{src:e.src}})},a=[];const o={name:"IFrame",props:{src:{type:String,default:""}},mounted(){this.$refs.iframe.addEventListener("load",this.handleLoad),window.addEventListener("message",this.handleMessage)},beforeDestroy(){this.$refs.iframe.removeEventListener("load",this.handleLoad),window.removeEventListener("message",this.handleMessage)},methods:{handleLoad(){this.$emit("on-load")},handleMessage({data:e,source:s}){var r;s===((r=this.$refs.iframe)==null?void 0:r.contentWindow)&&(e=$A.jsonParse(e),e.source==="fileView"&&e.action==="picture"&&this.$store.dispatch("previewImage",{index:e.params.index,list:e.params.array}),this.$emit("on-message",e))},postMessage(e,s="*"){this.$refs.iframe&&this.$refs.iframe.contentWindow.postMessage(e,s)}}},t={};var m=n(o,i,a,!1,c,null,null,null);function c(e){for(let s in t)this[s]=t[s]}var l=function(){return m.exports}();export{l as I}; +import{n}from"./app.28437e7d.js";var i=function(){var e=this,s=e.$createElement,r=e._self._c||s;return r("iframe",{directives:[{name:"show",rawName:"v-show",value:e.src,expression:"src"}],ref:"iframe",attrs:{src:e.src}})},a=[];const o={name:"IFrame",props:{src:{type:String,default:""}},mounted(){this.$refs.iframe.addEventListener("load",this.handleLoad),window.addEventListener("message",this.handleMessage)},beforeDestroy(){this.$refs.iframe.removeEventListener("load",this.handleLoad),window.removeEventListener("message",this.handleMessage)},methods:{handleLoad(){this.$emit("on-load")},handleMessage({data:e,source:s}){var r;s===((r=this.$refs.iframe)==null?void 0:r.contentWindow)&&(e=$A.jsonParse(e),e.source==="fileView"&&e.action==="picture"&&this.$store.dispatch("previewImage",{index:e.params.index,list:e.params.array}),this.$emit("on-message",e))},postMessage(e,s="*"){this.$refs.iframe&&this.$refs.iframe.contentWindow.postMessage(e,s)}}},t={};var m=n(o,i,a,!1,c,null,null,null);function c(e){for(let s in t)this[s]=t[s]}var l=function(){return m.exports}();export{l as I}; diff --git a/public/js/build/ImgUpload.7f60f3a4.js b/public/js/build/ImgUpload.cbadd034.js similarity index 99% rename from public/js/build/ImgUpload.7f60f3a4.js rename to public/js/build/ImgUpload.cbadd034.js index 7b94d72d2..e58988ede 100644 --- a/public/js/build/ImgUpload.7f60f3a4.js +++ b/public/js/build/ImgUpload.cbadd034.js @@ -1 +1 @@ -import{n as o}from"./app.3d81bfbf.js";var r=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"common-img-update"},[t._l(t.uploadList,function(s){return t.type!=="callback"?e("div",{staticClass:"imgcomp-upload-list"},[s.status==="finished"?[e("div",{staticClass:"imgcomp-upload-img",style:{"background-image":"url("+t.__thumb(s.thumb)+")"}}),e("div",{staticClass:"imgcomp-upload-list-cover"},[e("Icon",{attrs:{type:"ios-eye-outline"},nativeOn:{click:function(a){return t.handleView(s)}}}),e("Icon",{attrs:{type:"ios-trash-outline"},nativeOn:{click:function(a){return t.handleRemove(s)}}})],1)]:[s.showProgress?e("Progress",{attrs:{percent:s.percentage,"hide-info":""}}):t._e()]],2):t._e()}),e("div",{staticClass:"add-box",class:{"callback-add-box":t.type==="callback"}},[e("div",{staticClass:"add-box-icon"},[e("Icon",{attrs:{type:"md-add",size:"32"}})],1),e("div",{staticClass:"add-box-upload"},[e("div",{staticClass:"add-box-item",on:{click:t.browsePicture}},[e("span",[t._v(t._s(t.$L("\u6D4F\u89C8"))),t.type==="callback"?e("em",[t._v(t._s(t.$L("\u56FE\u7247")))]):t._e()])]),e("div",{staticClass:"add-box-item"},[e("Upload",{ref:"upload",attrs:{name:"image",accept:"image/*",action:t.actionUrl,headers:t.uploadHeaders,data:t.uploadParams,"show-upload-list":!1,"max-size":t.maxSize,format:["jpg","jpeg","webp","gif","png"],"default-file-list":t.defaultList,"on-progress":t.handleProgress,"on-success":t.handleSuccess,"on-error":t.handleError,"on-format-error":t.handleFormatError,"on-exceeded-size":t.handleMaxSize,"before-upload":t.handleBeforeUpload,multiple:t.multiple}},[e("span",[t._v(t._s(t.$L("\u4E0A\u4F20"))),t.type==="callback"?e("em",[t._v(t._s(t.$L("\u56FE\u7247")))]):t._e()])])],1)])]),e("Modal",{staticClass:"img-upload-modal",attrs:{title:t.$L("\u6D4F\u89C8\u56FE\u7247\u7A7A\u95F4"),width:"710"},model:{value:t.browseVisible,callback:function(s){t.browseVisible=s},expression:"browseVisible"}},[t.isLoading?e("div",{staticClass:"browse-load"},[t._v(t._s(t.$L("\u52A0\u8F7D\u4E2D...")))]):e("div",{ref:"browselistbox",staticClass:"browse-list",class:t.httpType==="input"?"browse-list-disabled":""},[t.browseList.length<=0?e("div",[t._v(t._s(t.$L("\u65E0\u5185\u5BB9")))]):t._l(t.browseList,function(s){return e("div",{staticClass:"browse-item",on:{click:function(a){return t.browseItem(s)}}},[s.active?e("Icon",{staticClass:"browse-icon",attrs:{type:"ios-checkmark-circle"}}):t._e(),e("div",{staticClass:"browse-img",style:{"background-image":"url("+s.thumb+")"}}),e("div",{staticClass:"browse-title"},[t._v(t._s(s.title))])],1)})],2),e("div",{staticClass:"img-upload-foot",attrs:{slot:"footer"},slot:"footer"},[t.type!=="callback"&&t.http&&t.httpType===""?e("div",{staticClass:"img-upload-foot-input",on:{click:function(s){t.httpType="input"}}},[e("Icon",{attrs:{type:"ios-image",size:"22"}}),e("div",{staticClass:"img-upload-foot-httptitle"},[t._v(t._s(t.$L("\u81EA\u5B9A\u4E49\u56FE\u7247\u5730\u5740")))])],1):t._e(),t.type!=="callback"&&t.http&&t.httpType==="input"?e("div",{staticClass:"img-upload-foot-input"},[e("Input",{attrs:{placeholder:t.$L("\u4EE5 http:// \u6216 https:// \u5F00\u5934"),search:"","enter-button":t.$L("\u786E\u5B9A")},on:{"on-search":t.httpEnter},model:{value:t.httpValue,callback:function(s){t.httpValue=s},expression:"httpValue"}},[e("span",{staticStyle:{cursor:"pointer"},attrs:{slot:"prepend"},on:{click:function(s){t.httpType=""}},slot:"prepend"},[t._v(t._s(t.$L("\u81EA\u5B9A\u4E49\u5730\u5740"))+": ")])])],1):t._e(),t.httpType===""?e("Button",{on:{click:function(s){t.browseVisible=!1}}},[t._v(t._s(t.$L("\u5173\u95ED")))]):t._e(),t.httpType===""?e("Button",{attrs:{type:"primary"},on:{click:function(s){return t.handleCallback(!0)}}},[t._v(t._s(t.$L("\u5B8C\u6210")))]):t._e()],1)]),e("Modal",{staticClass:"img-upload-modal",attrs:{title:t.$L("\u67E5\u770B\u56FE\u7247"),draggable:""},model:{value:t.visible,callback:function(s){t.visible=s},expression:"visible"}},[e("div",{staticStyle:{"max-height":"480px",overflow:"auto"}},[e("a",{attrs:{href:t.imgVisible,target:"_blank"}},[t.visible?e("img",{staticStyle:{"max-width":"100%","max-height":"900px",display:"block",margin:"0 auto"},attrs:{src:t.imgVisible}}):t._e()])])])],2)},n=[];const h={name:"ImgUpload",props:{value:{},num:{},width:{},height:{},whcut:{},type:{},http:{type:Boolean,default:!1},otherParams:{type:Object,default:()=>({})},uploadIng:{type:Number,default:0}},data(){return{actionUrl:$A.apiUrl("system/imgupload"),multiple:this.num>1,visible:!1,browseVisible:!1,isLoading:!1,browseList:[],browseListNext:[],imgVisible:"",defaultList:this.initItems(this.value),uploadList:[],maxNum:Math.min(Math.max($A.runNum(this.num),1),99),httpValue:"",httpType:"",maxSize:2048}},mounted(){this.uploadList=this.$refs.upload.fileList,this.$emit("input",this.uploadList);let t=$A(this.$refs.browselistbox);t.scroll(()=>{let i=t[0].scrollHeight,e=t[0].scrollTop,s=t.height();if(e+s>=i&&this.browseListNext.length>0){let a=this.browseListNext;this.browseListNext=[],this.browsePictureFor(a)}})},watch:{value(t){if(typeof t=="string"){this.$emit("input",this.initItems(t));return}t!==this.$refs.upload.fileList&&(this.$refs.upload.fileList=this.initItems(t),this.uploadList=this.$refs.upload.fileList)},browseVisible(){this.httpType="",this.httpValue=""}},computed:{uploadHeaders(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}},uploadParams(){let t={width:this.width,height:this.height,whcut:this.whcut};return Object.keys(this.otherParams).length>0?Object.assign(t,this.otherParams):t}},methods:{handleCallback(t){this.type==="callback"&&(t===!0?(this.$emit("on-callback",this.uploadList),this.$refs.upload.fileList=[],this.uploadList=this.$refs.upload.fileList):typeof t=="object"&&this.$emit("on-callback",[t])),this.browseVisible=!1},initItems(t){typeof t=="string"&&(t=[{url:t}]);let i=[];return $A.each(t,(e,s)=>{typeof s=="string"&&(s={url:s}),s.url&&(s.active=!0,s.status="finished",typeof s.path=="undefined"&&(s.path=s.url),typeof s.thumb=="undefined"&&(s.thumb=s.url),i.push(s))}),i},handleView(t){this.$store.dispatch("previewImage",t.url)},handleRemove(t){let i=this.$refs.upload.fileList;this.$refs.upload.fileList.splice(i.indexOf(t),1),this.$emit("input",this.$refs.upload.fileList)},handleProgress(t,i){i._uploadIng===void 0&&(i._uploadIng=!0,this.$emit("update:uploadIng",this.uploadIng+1))},handleSuccess(t,i){this.$emit("update:uploadIng",this.uploadIng-1),t.ret===1?(i.url=t.data.url,i.path=t.data.path,i.thumb=t.data.thumb,this.handleCallback(i)):($A.noticeWarning({title:this.$L("\u4E0A\u4F20\u5931\u8D25"),desc:this.$L("\u6587\u4EF6 "+i.name+" \u4E0A\u4F20\u5931\u8D25 "+t.msg)}),this.$refs.upload.fileList.pop()),this.$emit("input",this.$refs.upload.fileList)},handleError(){this.$emit("update:uploadIng",this.uploadIng-1)},handleFormatError(t){$A.noticeWarning({title:this.$L("\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E"),desc:this.$L("\u6587\u4EF6 "+t.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u8BF7\u4E0A\u4F20 jpg\u3001jpeg\u3001webp\u3001gif\u3001png \u683C\u5F0F\u7684\u56FE\u7247\u3002")})},handleMaxSize(t){$A.noticeWarning({title:this.$L("\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236"),desc:this.$L("\u6587\u4EF6 "+t.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u8D85\u8FC7\uFF1A"+$A.bytesToSize(this.maxSize*1024))})},handleBeforeUpload(){let t=this.uploadList.length{let e=i.dirs;for(let s=0;s{this.browseVisible=!1,$A.noticeWarning(i)}).finally(i=>{this.isLoading=!1})},browsePictureFor(t){for(let i=0;i({})},uploadIng:{type:Number,default:0}},data(){return{actionUrl:$A.apiUrl("system/imgupload"),multiple:this.num>1,visible:!1,browseVisible:!1,isLoading:!1,browseList:[],browseListNext:[],imgVisible:"",defaultList:this.initItems(this.value),uploadList:[],maxNum:Math.min(Math.max($A.runNum(this.num),1),99),httpValue:"",httpType:"",maxSize:2048}},mounted(){this.uploadList=this.$refs.upload.fileList,this.$emit("input",this.uploadList);let t=$A(this.$refs.browselistbox);t.scroll(()=>{let i=t[0].scrollHeight,e=t[0].scrollTop,s=t.height();if(e+s>=i&&this.browseListNext.length>0){let a=this.browseListNext;this.browseListNext=[],this.browsePictureFor(a)}})},watch:{value(t){if(typeof t=="string"){this.$emit("input",this.initItems(t));return}t!==this.$refs.upload.fileList&&(this.$refs.upload.fileList=this.initItems(t),this.uploadList=this.$refs.upload.fileList)},browseVisible(){this.httpType="",this.httpValue=""}},computed:{uploadHeaders(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}},uploadParams(){let t={width:this.width,height:this.height,whcut:this.whcut};return Object.keys(this.otherParams).length>0?Object.assign(t,this.otherParams):t}},methods:{handleCallback(t){this.type==="callback"&&(t===!0?(this.$emit("on-callback",this.uploadList),this.$refs.upload.fileList=[],this.uploadList=this.$refs.upload.fileList):typeof t=="object"&&this.$emit("on-callback",[t])),this.browseVisible=!1},initItems(t){typeof t=="string"&&(t=[{url:t}]);let i=[];return $A.each(t,(e,s)=>{typeof s=="string"&&(s={url:s}),s.url&&(s.active=!0,s.status="finished",typeof s.path=="undefined"&&(s.path=s.url),typeof s.thumb=="undefined"&&(s.thumb=s.url),i.push(s))}),i},handleView(t){this.$store.dispatch("previewImage",t.url)},handleRemove(t){let i=this.$refs.upload.fileList;this.$refs.upload.fileList.splice(i.indexOf(t),1),this.$emit("input",this.$refs.upload.fileList)},handleProgress(t,i){i._uploadIng===void 0&&(i._uploadIng=!0,this.$emit("update:uploadIng",this.uploadIng+1))},handleSuccess(t,i){this.$emit("update:uploadIng",this.uploadIng-1),t.ret===1?(i.url=t.data.url,i.path=t.data.path,i.thumb=t.data.thumb,this.handleCallback(i)):($A.noticeWarning({title:this.$L("\u4E0A\u4F20\u5931\u8D25"),desc:this.$L("\u6587\u4EF6 "+i.name+" \u4E0A\u4F20\u5931\u8D25 "+t.msg)}),this.$refs.upload.fileList.pop()),this.$emit("input",this.$refs.upload.fileList)},handleError(){this.$emit("update:uploadIng",this.uploadIng-1)},handleFormatError(t){$A.noticeWarning({title:this.$L("\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E"),desc:this.$L("\u6587\u4EF6 "+t.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u8BF7\u4E0A\u4F20 jpg\u3001jpeg\u3001webp\u3001gif\u3001png \u683C\u5F0F\u7684\u56FE\u7247\u3002")})},handleMaxSize(t){$A.noticeWarning({title:this.$L("\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236"),desc:this.$L("\u6587\u4EF6 "+t.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u8D85\u8FC7\uFF1A"+$A.bytesToSize(this.maxSize*1024))})},handleBeforeUpload(){let t=this.uploadList.length{let e=i.dirs;for(let s=0;s{this.browseVisible=!1,$A.noticeWarning(i)}).finally(i=>{this.isLoading=!1})},browsePictureFor(t){for(let i=0;i"office_"+Math.round(Math.random()*1e4)},code:{type:String,default:""},historyId:{type:Number,default:0},value:{type:[Object,Array],default:function(){return{}}},readOnly:{type:Boolean,default:!1},documentKey:Function},data(){return{loading:!1,loadError:!1,docEditor:null}},beforeDestroy(){this.docEditor!==null&&(this.docEditor.destroyEditor(),this.docEditor=null)},computed:{...d(["userInfo","themeIsDark"]),fileType(){return this.getType(this.value.type)},fileName(){return this.value.name},fileUrl(){let e=this.code||this.value.id,t;return $A.leftExists(e,"msgFile_")?t=`dialog/msg/download/?msg_id=${$A.leftDelete(e,"msgFile_")}&token=${this.userToken}`:$A.leftExists(e,"taskFile_")?t=`project/task/filedown/?file_id=${$A.leftDelete(e,"taskFile_")}&token=${this.userToken}`:(t=`file/content/?id=${e}&token=${this.userToken}`,this.historyId>0&&(t+=`&history_id=${this.historyId}`)),t},previewUrl(){return $A.apiUrl(this.fileUrl)+"&down=preview"}},watch:{"value.id":{handler(e){!e||!$A.isDesktop()||(this.loading=!0,this.loadError=!1,$A.loadScript($A.apiUrl("../office/web-apps/apps/api/documents/api.js")).then(t=>{if(!this.documentKey){this.handleClose();return}const i=this.documentKey();i&&i.then?i.then(this.loadFile):this.loadFile()}).catch(t=>{this.loadError=!0}).finally(t=>{this.loading=!1}))},immediate:!0},previewUrl:{handler(){$A.isDesktop()||(this.loading=!0)},immediate:!0}},methods:{onFrameLoad(){this.loading=!1},getType(e){switch(e){case"word":return"docx";case"excel":return"xlsx";case"ppt":return"pptx"}return e},loadFile(e=""){this.docEditor!==null&&(this.docEditor.destroyEditor(),this.docEditor=null);let t=l;switch(l){case"zh-CHT":t="zh-TW";break}let i=this.code||this.value.id,a=$A.strExists(this.fileName,".")?this.fileName:this.fileName+"."+this.fileType,s=`${this.fileType}-${e||i}`;this.historyId>0&&(s+=`-${this.historyId}`);const r={document:{fileType:this.fileType,title:a,key:s,url:`http://nginx/api/${this.fileUrl}`},editorConfig:{mode:"edit",lang:t,user:{id:String(this.userInfo.userid),name:this.userInfo.nickname},customization:{uiTheme:this.themeIsDark?"theme-dark":"theme-classic-light",forcesave:!0,help:!1},callbackUrl:`http://nginx/api/file/content/office?id=${i}&token=${this.userToken}`},events:{onDocumentReady:this.onDocumentReady}};/\/hideenOfficeTitle\//.test(window.navigator.userAgent)&&(r.document.title=" "),(async y=>{if((this.readOnly||this.historyId>0)&&(r.editorConfig.mode="view",r.editorConfig.callbackUrl=null,!r.editorConfig.user.id)){let o=await $A.IDBInt("officeViewer");o||(o=$A.randNum(1e3,99999),await $A.IDBSet("officeViewer",o)),r.editorConfig.user.id="viewer_"+o,r.editorConfig.user.name="Viewer_"+o}this.$nextTick(()=>{this.docEditor=new DocsAPI.DocEditor(this.id,r)})})()},onDocumentReady(){this.$emit("on-document-ready",this.docEditor)}}},n={};var p=f(m,h,u,!1,_,"38b2d892",null,null);function _(e){for(let t in n)this[t]=n[t]}var $=function(){return p.exports}();export{$ as default}; +import{m as d,n as f,a as l}from"./app.28437e7d.js";import{I as c}from"./IFrame.057cac1d.js";var h=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"component-only-office"},[e.$A.isDesktop()?[e.loadError?i("Alert",{staticClass:"load-error",attrs:{type:"error","show-icon":""}},[e._v(e._s(e.$L("\u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01")))]):e._e(),i("div",{staticClass:"placeholder",attrs:{id:e.id}})]:i("IFrame",{staticClass:"preview-iframe",attrs:{src:e.previewUrl},on:{"on-load":e.onFrameLoad}}),e.loading?i("div",{staticClass:"office-loading"},[i("Loading")],1):e._e()],2)},u=[];const m={name:"OnlyOffice",components:{IFrame:c},props:{id:{type:String,default:()=>"office_"+Math.round(Math.random()*1e4)},code:{type:String,default:""},historyId:{type:Number,default:0},value:{type:[Object,Array],default:function(){return{}}},readOnly:{type:Boolean,default:!1},documentKey:Function},data(){return{loading:!1,loadError:!1,docEditor:null}},beforeDestroy(){this.docEditor!==null&&(this.docEditor.destroyEditor(),this.docEditor=null)},computed:{...d(["userInfo","themeIsDark"]),fileType(){return this.getType(this.value.type)},fileName(){return this.value.name},fileUrl(){let e=this.code||this.value.id,t;return $A.leftExists(e,"msgFile_")?t=`dialog/msg/download/?msg_id=${$A.leftDelete(e,"msgFile_")}&token=${this.userToken}`:$A.leftExists(e,"taskFile_")?t=`project/task/filedown/?file_id=${$A.leftDelete(e,"taskFile_")}&token=${this.userToken}`:(t=`file/content/?id=${e}&token=${this.userToken}`,this.historyId>0&&(t+=`&history_id=${this.historyId}`)),t},previewUrl(){return $A.apiUrl(this.fileUrl)+"&down=preview"}},watch:{"value.id":{handler(e){!e||!$A.isDesktop()||(this.loading=!0,this.loadError=!1,$A.loadScript($A.apiUrl("../office/web-apps/apps/api/documents/api.js")).then(t=>{if(!this.documentKey){this.handleClose();return}const i=this.documentKey();i&&i.then?i.then(this.loadFile):this.loadFile()}).catch(t=>{this.loadError=!0}).finally(t=>{this.loading=!1}))},immediate:!0},previewUrl:{handler(){$A.isDesktop()||(this.loading=!0)},immediate:!0}},methods:{onFrameLoad(){this.loading=!1},getType(e){switch(e){case"word":return"docx";case"excel":return"xlsx";case"ppt":return"pptx"}return e},loadFile(e=""){this.docEditor!==null&&(this.docEditor.destroyEditor(),this.docEditor=null);let t=l;switch(l){case"zh-CHT":t="zh-TW";break}let i=this.code||this.value.id,a=$A.strExists(this.fileName,".")?this.fileName:this.fileName+"."+this.fileType,s=`${this.fileType}-${e||i}`;this.historyId>0&&(s+=`-${this.historyId}`);const r={document:{fileType:this.fileType,title:a,key:s,url:`http://nginx/api/${this.fileUrl}`},editorConfig:{mode:"edit",lang:t,user:{id:String(this.userInfo.userid),name:this.userInfo.nickname},customization:{uiTheme:this.themeIsDark?"theme-dark":"theme-classic-light",forcesave:!0,help:!1},callbackUrl:`http://nginx/api/file/content/office?id=${i}&token=${this.userToken}`},events:{onDocumentReady:this.onDocumentReady}};/\/hideenOfficeTitle\//.test(window.navigator.userAgent)&&(r.document.title=" "),(async y=>{if((this.readOnly||this.historyId>0)&&(r.editorConfig.mode="view",r.editorConfig.callbackUrl=null,!r.editorConfig.user.id)){let o=await $A.IDBInt("officeViewer");o||(o=$A.randNum(1e3,99999),await $A.IDBSet("officeViewer",o)),r.editorConfig.user.id="viewer_"+o,r.editorConfig.user.name="Viewer_"+o}this.$nextTick(()=>{this.docEditor=new DocsAPI.DocEditor(this.id,r)})})()},onDocumentReady(){this.$emit("on-document-ready",this.docEditor)}}},n={};var p=f(m,h,u,!1,_,"38b2d892",null,null);function _(e){for(let t in n)this[t]=n[t]}var $=function(){return p.exports}();export{$ as default}; diff --git a/public/js/build/ProjectLog.7a036454.js b/public/js/build/ProjectLog.65503d98.js similarity index 98% rename from public/js/build/ProjectLog.7a036454.js rename to public/js/build/ProjectLog.65503d98.js index eaee2ddb4..2de420417 100644 --- a/public/js/build/ProjectLog.7a036454.js +++ b/public/js/build/ProjectLog.65503d98.js @@ -1 +1 @@ -import{m as p,n as c}from"./app.3d81bfbf.js";var h=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"task-priority",style:t.myStyle},[t._t("default")],2)},m=[];const _={name:"TaskPriority",props:{color:{default:"#ffffff"},background:{default:"#7DBEEA"},backgroundColor:{default:"#7DBEEA"}},data(){return{}},computed:{...p(["themeIsDark"]),myStyle(){const{color:t,background:e,backgroundColor:s,themeIsDark:a}=this;return a?{color:s||e,borderColor:s||e,backgroundColor:"transparent"}:{color:t,borderColor:s||e,backgroundColor:s||e}}}},l={};var f=c(_,h,m,!1,g,null,null,null);function g(t){for(let e in l)this[e]=l[e]}var I=function(){return f.exports}(),v={name:"ProjectLogDetail",functional:!0,props:{render:Function,item:Object},render:(t,e)=>e.props.render(t,e.props.item)},$=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{class:["project-log",t.taskId==0?"is-drawer":""]},[s("div",{staticClass:"log-title"},[t._v(t._s(t.$L("\u9879\u76EE\u52A8\u6001")))]),s("ul",{staticClass:"logs-activity"},[t._l(t.lists,function(a){return s("li",[s("div",{staticClass:"logs-date"},[t._v(t._s(t.logDate(a)))]),s("div",{staticClass:"logs-section"},[s("Timeline",t._l(a.lists,function(r,o){return s("TimelineItem",{key:o},[s("div",{staticClass:"logs-dot",attrs:{slot:"dot"},slot:"dot"},[r.userid?s("UserAvatar",{attrs:{userid:r.userid,size:18,showName:""}}):s("div",{staticClass:"avatar-wrapper common-avatar"},[s("EAvatar",{attrs:{size:18}},[t._v("A")]),s("div",{staticClass:"avatar-name auto"},[t._v(t._s(t.$L("\u7CFB\u7EDF")))])],1)],1),t._l(r.lists,function(i){return[s("div",{staticClass:"log-summary"},[s("ProjectLogDetail",{attrs:{render:t.logDetail,item:i}}),t.operationList(i).length>0?s("span",{staticClass:"log-operation"},t._l(t.operationList(i),function(n,d){return s("Button",{key:d,attrs:{size:"small"},on:{click:function(P){return t.onOperation(n)}}},[t._v(t._s(n.button))])}),1):t._e(),s("span",{staticClass:"log-time"},[t._v(t._s(i.time.ymd)+" "+t._s(i.time.segment)+" "+t._s(i.time.hi))])],1),i.project_task?s("div",{staticClass:"log-task"},[s("em",{on:{click:function(n){return t.openTask(i.project_task)}}},[t._v(t._s(t.$L("\u5173\u8054\u4EFB\u52A1"))+": "+t._s(i.project_task.name))])]):t._e()]})],2)}),1)],1)])}),t.loadIng>0&&t.showLoad?s("li",{staticClass:"logs-loading"},[s("Loading")],1):t.hasMorePages?s("li",{staticClass:"logs-more",on:{click:t.getMore}},[t._v(t._s(t.$L("\u52A0\u8F7D\u66F4\u591A")))]):t.totalNum==0?s("li",{staticClass:"logs-none",on:{click:function(a){return t.getLists(!0)}}},[t._v(t._s(t.$L("\u6CA1\u6709\u4EFB\u4F55\u52A8\u6001")))]):t._e()],2)])},k=[];const y={name:"ProjectLog",components:{ProjectLogDetail:v},props:{projectId:{type:Number,default:0},taskId:{type:Number,default:0},showLoad:{type:Boolean,default:!0}},data(){return{loadIng:0,lists:[],listPage:1,listPageSize:20,hasMorePages:!1,totalNum:-1}},mounted(){this.getLists(!0)},computed:{},watch:{projectId(){this.lists=[],this.getLists(!0)},taskId(){this.lists=[],this.getLists(!0)},loadIng(t){this.$emit("on-load-change",t>0)}},methods:{logDate(t){return $A.formatDate("m-d")==t.ymd?t.ymd+" "+this.$L("\u4ECA\u5929"):t.key},getLists(t){t===!0&&(this.listPage=1),this.loadIng++,this.$store.dispatch("call",{url:"project/log/lists",data:{project_id:this.projectId,task_id:this.taskId,page:Math.max(this.listPage,1),pagesize:Math.max($A.runNum(this.listPageSize),10)}}).then(({data:e})=>{t===!0&&(this.lists=[]),e.data.some(s=>{let a=s.time,r=a.ymd+" "+a.week,o=this.lists.find(({key:i})=>i==r);if(o){let i=o.lists.find(({userid:n})=>n==s.userid);i?i.lists.push(s):o.lists.push({userid:s.userid,lists:[s]})}else this.lists.push({key:r,ymd:s.ymd,lists:[{userid:s.userid,lists:[s]}]})}),this.hasMorePages=e.current_page{this.lists=[],this.hasMorePages=!1,this.totalNum=0}).finally(e=>{this.loadIng--})},getMore(){!this.hasMorePages||(this.hasMorePages=!1,this.listPage++,this.getLists())},logDetail(t,{detail:e,record:s}){let a=[t("span",e)];if($A.isJson(s)){if($A.isArray(s.change)){let[r,o]=s.change;a.push(t("span",": ")),r&&r!=o?(a.push(t("span",{class:"change-value"},`${r||"-"}`)),a.push(t("span"," => ")),a.push(t("span",{class:"change-value"},`${o||"-"}`))):a.push(t("span",{class:"change-value"},o||"-"))}if(s.userid){let r=$A.isArray(s.userid)?s.userid:[s.userid],o=[];r.some(i=>{/^\d+$/.test(i)?o.push(t("UserAvatar",{props:{size:18,userid:i}})):o.push(t("span",i))}),o.length>0&&a.push(t("div",{class:"detail-user"},[t("div",{class:"detail-user-wrap"},o)]))}}return t("span",{class:"log-text"},a)},operationList({id:t,record:e}){let s=[];if(!$A.isJson(e))return s;if(this.taskId>0&&$A.isJson(e.flow)){let a=$A.getMiddle(e.flow.flow_item_name,"|");a&&s.push({id:t,button:this.$L("\u91CD\u7F6E"),content:this.$L(`\u786E\u5B9A\u91CD\u7F6E\u4E3A\u3010${a}\u3011\u5417\uFF1F`)})}return s},onOperation(t){$A.modalConfirm({content:t.content,loading:!0,onOk:()=>new Promise((e,s)=>{this.$store.dispatch("call",{url:"project/task/resetfromlog",data:{id:t.id}}).then(({data:a,msg:r})=>{e(r),this.$store.dispatch("saveTask",a),this.getLists(!0)}).catch(({msg:a})=>{s(a)})})})},openTask(t){this.$store.dispatch("openTask",t)}}},u={};var L=c(y,$,k,!1,C,null,null,null);function C(t){for(let e in u)this[e]=u[e]}var A=function(){return L.exports}();export{A as P,I as T}; +import{m as p,n as c}from"./app.28437e7d.js";var h=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"task-priority",style:t.myStyle},[t._t("default")],2)},m=[];const _={name:"TaskPriority",props:{color:{default:"#ffffff"},background:{default:"#7DBEEA"},backgroundColor:{default:"#7DBEEA"}},data(){return{}},computed:{...p(["themeIsDark"]),myStyle(){const{color:t,background:e,backgroundColor:s,themeIsDark:a}=this;return a?{color:s||e,borderColor:s||e,backgroundColor:"transparent"}:{color:t,borderColor:s||e,backgroundColor:s||e}}}},l={};var f=c(_,h,m,!1,g,null,null,null);function g(t){for(let e in l)this[e]=l[e]}var I=function(){return f.exports}(),v={name:"ProjectLogDetail",functional:!0,props:{render:Function,item:Object},render:(t,e)=>e.props.render(t,e.props.item)},$=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{class:["project-log",t.taskId==0?"is-drawer":""]},[s("div",{staticClass:"log-title"},[t._v(t._s(t.$L("\u9879\u76EE\u52A8\u6001")))]),s("ul",{staticClass:"logs-activity"},[t._l(t.lists,function(a){return s("li",[s("div",{staticClass:"logs-date"},[t._v(t._s(t.logDate(a)))]),s("div",{staticClass:"logs-section"},[s("Timeline",t._l(a.lists,function(r,o){return s("TimelineItem",{key:o},[s("div",{staticClass:"logs-dot",attrs:{slot:"dot"},slot:"dot"},[r.userid?s("UserAvatar",{attrs:{userid:r.userid,size:18,showName:""}}):s("div",{staticClass:"avatar-wrapper common-avatar"},[s("EAvatar",{attrs:{size:18}},[t._v("A")]),s("div",{staticClass:"avatar-name auto"},[t._v(t._s(t.$L("\u7CFB\u7EDF")))])],1)],1),t._l(r.lists,function(i){return[s("div",{staticClass:"log-summary"},[s("ProjectLogDetail",{attrs:{render:t.logDetail,item:i}}),t.operationList(i).length>0?s("span",{staticClass:"log-operation"},t._l(t.operationList(i),function(n,d){return s("Button",{key:d,attrs:{size:"small"},on:{click:function(P){return t.onOperation(n)}}},[t._v(t._s(n.button))])}),1):t._e(),s("span",{staticClass:"log-time"},[t._v(t._s(i.time.ymd)+" "+t._s(i.time.segment)+" "+t._s(i.time.hi))])],1),i.project_task?s("div",{staticClass:"log-task"},[s("em",{on:{click:function(n){return t.openTask(i.project_task)}}},[t._v(t._s(t.$L("\u5173\u8054\u4EFB\u52A1"))+": "+t._s(i.project_task.name))])]):t._e()]})],2)}),1)],1)])}),t.loadIng>0&&t.showLoad?s("li",{staticClass:"logs-loading"},[s("Loading")],1):t.hasMorePages?s("li",{staticClass:"logs-more",on:{click:t.getMore}},[t._v(t._s(t.$L("\u52A0\u8F7D\u66F4\u591A")))]):t.totalNum==0?s("li",{staticClass:"logs-none",on:{click:function(a){return t.getLists(!0)}}},[t._v(t._s(t.$L("\u6CA1\u6709\u4EFB\u4F55\u52A8\u6001")))]):t._e()],2)])},k=[];const y={name:"ProjectLog",components:{ProjectLogDetail:v},props:{projectId:{type:Number,default:0},taskId:{type:Number,default:0},showLoad:{type:Boolean,default:!0}},data(){return{loadIng:0,lists:[],listPage:1,listPageSize:20,hasMorePages:!1,totalNum:-1}},mounted(){this.getLists(!0)},computed:{},watch:{projectId(){this.lists=[],this.getLists(!0)},taskId(){this.lists=[],this.getLists(!0)},loadIng(t){this.$emit("on-load-change",t>0)}},methods:{logDate(t){return $A.formatDate("m-d")==t.ymd?t.ymd+" "+this.$L("\u4ECA\u5929"):t.key},getLists(t){t===!0&&(this.listPage=1),this.loadIng++,this.$store.dispatch("call",{url:"project/log/lists",data:{project_id:this.projectId,task_id:this.taskId,page:Math.max(this.listPage,1),pagesize:Math.max($A.runNum(this.listPageSize),10)}}).then(({data:e})=>{t===!0&&(this.lists=[]),e.data.some(s=>{let a=s.time,r=a.ymd+" "+a.week,o=this.lists.find(({key:i})=>i==r);if(o){let i=o.lists.find(({userid:n})=>n==s.userid);i?i.lists.push(s):o.lists.push({userid:s.userid,lists:[s]})}else this.lists.push({key:r,ymd:s.ymd,lists:[{userid:s.userid,lists:[s]}]})}),this.hasMorePages=e.current_page{this.lists=[],this.hasMorePages=!1,this.totalNum=0}).finally(e=>{this.loadIng--})},getMore(){!this.hasMorePages||(this.hasMorePages=!1,this.listPage++,this.getLists())},logDetail(t,{detail:e,record:s}){let a=[t("span",e)];if($A.isJson(s)){if($A.isArray(s.change)){let[r,o]=s.change;a.push(t("span",": ")),r&&r!=o?(a.push(t("span",{class:"change-value"},`${r||"-"}`)),a.push(t("span"," => ")),a.push(t("span",{class:"change-value"},`${o||"-"}`))):a.push(t("span",{class:"change-value"},o||"-"))}if(s.userid){let r=$A.isArray(s.userid)?s.userid:[s.userid],o=[];r.some(i=>{/^\d+$/.test(i)?o.push(t("UserAvatar",{props:{size:18,userid:i}})):o.push(t("span",i))}),o.length>0&&a.push(t("div",{class:"detail-user"},[t("div",{class:"detail-user-wrap"},o)]))}}return t("span",{class:"log-text"},a)},operationList({id:t,record:e}){let s=[];if(!$A.isJson(e))return s;if(this.taskId>0&&$A.isJson(e.flow)){let a=$A.getMiddle(e.flow.flow_item_name,"|");a&&s.push({id:t,button:this.$L("\u91CD\u7F6E"),content:this.$L(`\u786E\u5B9A\u91CD\u7F6E\u4E3A\u3010${a}\u3011\u5417\uFF1F`)})}return s},onOperation(t){$A.modalConfirm({content:t.content,loading:!0,onOk:()=>new Promise((e,s)=>{this.$store.dispatch("call",{url:"project/task/resetfromlog",data:{id:t.id}}).then(({data:a,msg:r})=>{e(r),this.$store.dispatch("saveTask",a),this.getLists(!0)}).catch(({msg:a})=>{s(a)})})})},openTask(t){this.$store.dispatch("openTask",t)}}},u={};var L=c(y,$,k,!1,C,null,null,null);function C(t){for(let e in u)this[e]=u[e]}var A=function(){return L.exports}();export{A as P,I as T}; diff --git a/public/js/build/ReportDetail.6914d4af.js b/public/js/build/ReportDetail.62478618.js similarity index 97% rename from public/js/build/ReportDetail.6914d4af.js rename to public/js/build/ReportDetail.62478618.js index 47d48557b..e7db75b4a 100644 --- a/public/js/build/ReportDetail.6914d4af.js +++ b/public/js/build/ReportDetail.62478618.js @@ -1 +1 @@ -import{m as i,n as l}from"./app.3d81bfbf.js";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"report-detail"},[a("div",{staticClass:"report-title"},[t._v(" "+t._s(t.data.title)+" "),t.loadIng>0?a("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}):t._e()],1),t.formLabelWidth==="auto"?a("div",{staticClass:"report-detail-context"},[a("Form",{staticClass:"report-form auto-form",attrs:{"label-width":"auto",inline:""}},[a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u4EBA")}},[a("UserAvatar",{attrs:{userid:t.data.userid,size:28}})],1),a("FormItem",{attrs:{label:t.$L("\u63D0\u4EA4\u65F6\u95F4")}},[t._v(" "+t._s(t.data.created_at)+" ")]),a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5BF9\u8C61")}},[t.data.receives_user.length===0?[t._v("-")]:t._l(t.data.receives_user,function(r,s){return a("UserAvatar",{key:s,attrs:{userid:r.userid,size:28}})})],2)],1),a("Form",{staticClass:"report-form auto-form",attrs:{"label-width":"auto"}},[a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5185\u5BB9")}},[a("div",{staticClass:"report-content",domProps:{innerHTML:t._s(t.data.content)}})])],1)],1):a("div",{staticClass:"report-detail-context"},[a("Form",{staticClass:"report-form",attrs:{labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth}},[t.formLabelWidth!=="auto"?[a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u4EBA")}},[a("UserAvatar",{attrs:{userid:t.data.userid,size:28}})],1),a("FormItem",{attrs:{label:t.$L("\u63D0\u4EA4\u65F6\u95F4")}},[t._v(" "+t._s(t.data.created_at)+" ")]),a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5BF9\u8C61")}},[t.data.receives_user.length===0?[t._v("-")]:t._l(t.data.receives_user,function(r,s){return a("UserAvatar",{key:s,attrs:{userid:r.userid,size:28}})})],2)]:t._e(),a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5185\u5BB9")}},[a("div",{staticClass:"report-content",domProps:{innerHTML:t._s(t.data.content)}})])],2)],1)])},d=[];const c={name:"ReportDetail",props:{data:{default:{}}},data(){return{loadIng:0}},computed:{...i(["formLabelPosition","formLabelWidth"])},watch:{"data.id":{handler(t){t>0&&this.sendRead()},immediate:!0}},methods:{sendRead(){this.loadIng++,this.$store.dispatch("call",{url:"report/read",data:{ids:[this.data.id]}}).then(()=>{}).catch(()=>{}).finally(t=>{this.loadIng--})}}},o={};var m=l(c,n,d,!1,u,null,null,null);function u(t){for(let e in o)this[e]=o[e]}var v=function(){return m.exports}();export{v as R}; +import{m as i,n as l}from"./app.28437e7d.js";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"report-detail"},[a("div",{staticClass:"report-title"},[t._v(" "+t._s(t.data.title)+" "),t.loadIng>0?a("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}):t._e()],1),t.formLabelWidth==="auto"?a("div",{staticClass:"report-detail-context"},[a("Form",{staticClass:"report-form auto-form",attrs:{"label-width":"auto",inline:""}},[a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u4EBA")}},[a("UserAvatar",{attrs:{userid:t.data.userid,size:28}})],1),a("FormItem",{attrs:{label:t.$L("\u63D0\u4EA4\u65F6\u95F4")}},[t._v(" "+t._s(t.data.created_at)+" ")]),a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5BF9\u8C61")}},[t.data.receives_user.length===0?[t._v("-")]:t._l(t.data.receives_user,function(r,s){return a("UserAvatar",{key:s,attrs:{userid:r.userid,size:28}})})],2)],1),a("Form",{staticClass:"report-form auto-form",attrs:{"label-width":"auto"}},[a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5185\u5BB9")}},[a("div",{staticClass:"report-content",domProps:{innerHTML:t._s(t.data.content)}})])],1)],1):a("div",{staticClass:"report-detail-context"},[a("Form",{staticClass:"report-form",attrs:{labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth}},[t.formLabelWidth!=="auto"?[a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u4EBA")}},[a("UserAvatar",{attrs:{userid:t.data.userid,size:28}})],1),a("FormItem",{attrs:{label:t.$L("\u63D0\u4EA4\u65F6\u95F4")}},[t._v(" "+t._s(t.data.created_at)+" ")]),a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5BF9\u8C61")}},[t.data.receives_user.length===0?[t._v("-")]:t._l(t.data.receives_user,function(r,s){return a("UserAvatar",{key:s,attrs:{userid:r.userid,size:28}})})],2)]:t._e(),a("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5185\u5BB9")}},[a("div",{staticClass:"report-content",domProps:{innerHTML:t._s(t.data.content)}})])],2)],1)])},d=[];const c={name:"ReportDetail",props:{data:{default:{}}},data(){return{loadIng:0}},computed:{...i(["formLabelPosition","formLabelWidth"])},watch:{"data.id":{handler(t){t>0&&this.sendRead()},immediate:!0}},methods:{sendRead(){this.loadIng++,this.$store.dispatch("call",{url:"report/read",data:{ids:[this.data.id]}}).then(()=>{}).catch(()=>{}).finally(t=>{this.loadIng--})}}},o={};var m=l(c,n,d,!1,u,null,null,null);function u(t){for(let e in o)this[e]=o[e]}var v=function(){return m.exports}();export{v as R}; diff --git a/public/js/build/ReportEdit.9d99c827.js b/public/js/build/ReportEdit.74592e96.js similarity index 94% rename from public/js/build/ReportEdit.9d99c827.js rename to public/js/build/ReportEdit.74592e96.js index 96d31dac2..710d33fe7 100644 --- a/public/js/build/ReportEdit.9d99c827.js +++ b/public/js/build/ReportEdit.74592e96.js @@ -1 +1 @@ -import{n as s,_ as o}from"./app.3d81bfbf.js";import{U as l}from"./UserSelect.6a5dfe83.js";var n=function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("Form",{staticClass:"report-edit",attrs:{"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u7C7B\u578B")}},[e("RadioGroup",{staticClass:"report-radiogroup",attrs:{type:"button","button-style":"solid",readonly:t.id>0},on:{"on-change":t.typeChange},model:{value:t.reportData.type,callback:function(a){t.$set(t.reportData,"type",a)},expression:"reportData.type"}},[e("Radio",{attrs:{label:"weekly",disabled:t.id>0&&t.reportData.type=="daily"}},[t._v(t._s(t.$L("\u5468\u62A5")))]),e("Radio",{attrs:{label:"daily",disabled:t.id>0&&t.reportData.type=="weekly"}},[t._v(t._s(t.$L("\u65E5\u62A5")))])],1),t.id===0?e("ButtonGroup",{staticClass:"report-buttongroup"},[e("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch,content:t.prevCycleText,placement:"bottom"}},[e("Button",{attrs:{type:"primary"},on:{click:t.prevCycle}},[e("Icon",{attrs:{type:"ios-arrow-back"}})],1)],1),e("div",{staticClass:"report-buttongroup-vertical"}),e("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch||t.reportData.offset>=0,content:t.nextCycleText,placement:"bottom"}},[e("Button",{attrs:{type:"primary",disabled:t.reportData.offset>=0},on:{click:t.nextCycle}},[e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)],1)],1):t._e()],1),e("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u540D\u79F0")}},[e("Input",{attrs:{disabled:""},model:{value:t.reportData.title,callback:function(a){t.$set(t.reportData,"title",a)},expression:"reportData.title"}})],1),e("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5BF9\u8C61")}},[e("div",{staticClass:"report-users"},[e("UserSelect",{attrs:{disabledChoice:[t.userId],title:t.$L("\u9009\u62E9\u63A5\u6536\u4EBA")},model:{value:t.reportData.receive,callback:function(a){t.$set(t.reportData,"receive",a)},expression:"reportData.receive"}}),e("a",{staticClass:"report-user-link",attrs:{href:"javascript:void(0);"},on:{click:t.getLastSubmitter}},[t.receiveLoad>0?e("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}):e("Icon",{attrs:{type:"ios-share-outline"}}),t._v(" "+t._s(t.$L("\u4F7F\u7528\u6211\u4E0A\u6B21\u7684\u6C47\u62A5\u5BF9\u8C61"))+" ")],1)],1)]),e("FormItem",{staticClass:"report-content-editor",attrs:{label:t.$L("\u6C47\u62A5\u5185\u5BB9")}},[e("TEditor",{attrs:{height:"100%"},model:{value:t.reportData.content,callback:function(a){t.$set(t.reportData,"content",a)},expression:"reportData.content"}})],1),e("FormItem",{staticClass:"report-foot"},[e("Button",{staticClass:"report-bottom",attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.handleSubmit}},[t._v(t._s(t.$L(t.id>0?"\u4FEE\u6539":"\u63D0\u4EA4")))])],1)],1)},p=[];const c=()=>o(()=>import("./TEditor.443b30fe.js"),["js/build/TEditor.443b30fe.js","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css","js/build/ImgUpload.7f60f3a4.js"]),h={name:"ReportEdit",components:{UserSelect:l,TEditor:c},props:{id:{default:0}},data(){return{loadIng:0,receiveLoad:0,reportData:{sign:"",title:"",content:"",type:"weekly",receive:[],id:0,offset:0},prevCycleText:this.$L("\u4E0A\u4E00\u5468"),nextCycleText:this.$L("\u4E0B\u4E00\u5468")}},watch:{id:{handler(t){t>0?this.getDetail(t):(this.reportData.offset=0,this.reportData.type="weekly",this.reportData.receive=[],this.getTemplate())},immediate:!0}},mounted(){},methods:{handleSubmit(){this.id===0&&this.reportData.id>0?$A.modalConfirm({title:"\u8986\u76D6\u63D0\u4EA4",content:"\u4F60\u5DF2\u63D0\u4EA4\u8FC7\u6B64\u65E5\u671F\u7684\u62A5\u544A\uFF0C\u662F\u5426\u8986\u76D6\u63D0\u4EA4\uFF1F",onOk:()=>{this.doSubmit()}}):this.doSubmit()},doSubmit(){this.loadIng++,this.$store.dispatch("call",{url:"report/store",data:this.reportData,method:"post"}).then(({data:t,msg:r})=>{this.reportData.offset=0,this.reportData.type="weekly",this.reportData.receive=[],this.getTemplate(),!this.$isSubElectron&&$A.messageSuccess(r),this.$emit("saveSuccess",{data:t,msg:r})}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.loadIng--})},getTemplate(){this.loadIng++,this.$store.dispatch("call",{url:"report/template",data:{type:this.reportData.type,offset:this.reportData.offset,id:this.id}}).then(({data:t})=>{t.id?(this.reportData.id=t.id,this.id>0?this.getDetail(t.id):(this.reportData.sign=t.sign,this.reportData.title=t.title,this.reportData.content=t.content)):(this.reportData.id=0,this.reportData.sign=t.sign,this.reportData.title=t.title,this.reportData.content=t.content)}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.loadIng--})},typeChange(t){this.reportData.offset=0,t==="weekly"?(this.prevCycleText=this.$L("\u4E0A\u4E00\u5468"),this.nextCycleText=this.$L("\u4E0B\u4E00\u5468")):(this.prevCycleText=this.$L("\u4E0A\u4E00\u5929"),this.nextCycleText=this.$L("\u4E0B\u4E00\u5929")),this.getTemplate()},getDetail(t){this.$store.dispatch("call",{url:"report/detail",data:{id:t}}).then(({data:r})=>{this.reportData.title=r.title,this.reportData.content=r.content,this.reportData.receive=r.receives_user.map(({userid:e})=>e),this.reportData.type=r.type_val,this.reportData.id=t}).catch(({msg:r})=>{$A.messageError(r)})},prevCycle(){this.reportData.offset-=1,this.reReportData(),this.getTemplate()},nextCycle(){this.reportData.offset<0&&(this.reportData.offset+=1),this.reReportData(),this.getTemplate()},getLastSubmitter(){setTimeout(t=>{this.receiveLoad++},300),this.$store.dispatch("call",{url:"report/last_submitter"}).then(({data:t})=>{this.reportData.receive=t}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.receiveLoad--})},reReportData(){this.reportData.title="",this.reportData.content="",this.reportData.receive=[],this.reportData.id=0}}},i={};var d=s(h,n,p,!1,m,null,null,null);function m(t){for(let r in i)this[r]=i[r]}var y=function(){return d.exports}();export{y as R}; +import{n as s,_ as o}from"./app.28437e7d.js";import{U as l}from"./UserSelect.fe42163b.js";var n=function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("Form",{staticClass:"report-edit",attrs:{"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u7C7B\u578B")}},[e("RadioGroup",{staticClass:"report-radiogroup",attrs:{type:"button","button-style":"solid",readonly:t.id>0},on:{"on-change":t.typeChange},model:{value:t.reportData.type,callback:function(a){t.$set(t.reportData,"type",a)},expression:"reportData.type"}},[e("Radio",{attrs:{label:"weekly",disabled:t.id>0&&t.reportData.type=="daily"}},[t._v(t._s(t.$L("\u5468\u62A5")))]),e("Radio",{attrs:{label:"daily",disabled:t.id>0&&t.reportData.type=="weekly"}},[t._v(t._s(t.$L("\u65E5\u62A5")))])],1),t.id===0?e("ButtonGroup",{staticClass:"report-buttongroup"},[e("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch,content:t.prevCycleText,placement:"bottom"}},[e("Button",{attrs:{type:"primary"},on:{click:t.prevCycle}},[e("Icon",{attrs:{type:"ios-arrow-back"}})],1)],1),e("div",{staticClass:"report-buttongroup-vertical"}),e("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch||t.reportData.offset>=0,content:t.nextCycleText,placement:"bottom"}},[e("Button",{attrs:{type:"primary",disabled:t.reportData.offset>=0},on:{click:t.nextCycle}},[e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)],1)],1):t._e()],1),e("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u540D\u79F0")}},[e("Input",{attrs:{disabled:""},model:{value:t.reportData.title,callback:function(a){t.$set(t.reportData,"title",a)},expression:"reportData.title"}})],1),e("FormItem",{attrs:{label:t.$L("\u6C47\u62A5\u5BF9\u8C61")}},[e("div",{staticClass:"report-users"},[e("UserSelect",{attrs:{disabledChoice:[t.userId],title:t.$L("\u9009\u62E9\u63A5\u6536\u4EBA")},model:{value:t.reportData.receive,callback:function(a){t.$set(t.reportData,"receive",a)},expression:"reportData.receive"}}),e("a",{staticClass:"report-user-link",attrs:{href:"javascript:void(0);"},on:{click:t.getLastSubmitter}},[t.receiveLoad>0?e("Icon",{staticClass:"icon-loading",attrs:{type:"ios-loading"}}):e("Icon",{attrs:{type:"ios-share-outline"}}),t._v(" "+t._s(t.$L("\u4F7F\u7528\u6211\u4E0A\u6B21\u7684\u6C47\u62A5\u5BF9\u8C61"))+" ")],1)],1)]),e("FormItem",{staticClass:"report-content-editor",attrs:{label:t.$L("\u6C47\u62A5\u5185\u5BB9")}},[e("TEditor",{attrs:{height:"100%"},model:{value:t.reportData.content,callback:function(a){t.$set(t.reportData,"content",a)},expression:"reportData.content"}})],1),e("FormItem",{staticClass:"report-foot"},[e("Button",{staticClass:"report-bottom",attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.handleSubmit}},[t._v(t._s(t.$L(t.id>0?"\u4FEE\u6539":"\u63D0\u4EA4")))])],1)],1)},p=[];const c=()=>o(()=>import("./TEditor.a8b14511.js"),["js/build/TEditor.a8b14511.js","js/build/app.28437e7d.js","js/build/app.3c80ad42.css","js/build/ImgUpload.cbadd034.js"]),h={name:"ReportEdit",components:{UserSelect:l,TEditor:c},props:{id:{default:0}},data(){return{loadIng:0,receiveLoad:0,reportData:{sign:"",title:"",content:"",type:"weekly",receive:[],id:0,offset:0},prevCycleText:this.$L("\u4E0A\u4E00\u5468"),nextCycleText:this.$L("\u4E0B\u4E00\u5468")}},watch:{id:{handler(t){t>0?this.getDetail(t):(this.reportData.offset=0,this.reportData.type="weekly",this.reportData.receive=[],this.getTemplate())},immediate:!0}},mounted(){},methods:{handleSubmit(){this.id===0&&this.reportData.id>0?$A.modalConfirm({title:"\u8986\u76D6\u63D0\u4EA4",content:"\u4F60\u5DF2\u63D0\u4EA4\u8FC7\u6B64\u65E5\u671F\u7684\u62A5\u544A\uFF0C\u662F\u5426\u8986\u76D6\u63D0\u4EA4\uFF1F",onOk:()=>{this.doSubmit()}}):this.doSubmit()},doSubmit(){this.loadIng++,this.$store.dispatch("call",{url:"report/store",data:this.reportData,method:"post"}).then(({data:t,msg:r})=>{this.reportData.offset=0,this.reportData.type="weekly",this.reportData.receive=[],this.getTemplate(),!this.$isSubElectron&&$A.messageSuccess(r),this.$emit("saveSuccess",{data:t,msg:r})}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.loadIng--})},getTemplate(){this.loadIng++,this.$store.dispatch("call",{url:"report/template",data:{type:this.reportData.type,offset:this.reportData.offset,id:this.id}}).then(({data:t})=>{t.id?(this.reportData.id=t.id,this.id>0?this.getDetail(t.id):(this.reportData.sign=t.sign,this.reportData.title=t.title,this.reportData.content=t.content)):(this.reportData.id=0,this.reportData.sign=t.sign,this.reportData.title=t.title,this.reportData.content=t.content)}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.loadIng--})},typeChange(t){this.reportData.offset=0,t==="weekly"?(this.prevCycleText=this.$L("\u4E0A\u4E00\u5468"),this.nextCycleText=this.$L("\u4E0B\u4E00\u5468")):(this.prevCycleText=this.$L("\u4E0A\u4E00\u5929"),this.nextCycleText=this.$L("\u4E0B\u4E00\u5929")),this.getTemplate()},getDetail(t){this.$store.dispatch("call",{url:"report/detail",data:{id:t}}).then(({data:r})=>{this.reportData.title=r.title,this.reportData.content=r.content,this.reportData.receive=r.receives_user.map(({userid:e})=>e),this.reportData.type=r.type_val,this.reportData.id=t}).catch(({msg:r})=>{$A.messageError(r)})},prevCycle(){this.reportData.offset-=1,this.reReportData(),this.getTemplate()},nextCycle(){this.reportData.offset<0&&(this.reportData.offset+=1),this.reReportData(),this.getTemplate()},getLastSubmitter(){setTimeout(t=>{this.receiveLoad++},300),this.$store.dispatch("call",{url:"report/last_submitter"}).then(({data:t})=>{this.reportData.receive=t}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.receiveLoad--})},reReportData(){this.reportData.title="",this.reportData.content="",this.reportData.receive=[],this.reportData.id=0}}},i={};var d=s(h,n,p,!1,m,null,null,null);function m(t){for(let r in i)this[r]=i[r]}var y=function(){return d.exports}();export{y as R}; diff --git a/public/js/build/TEditor.443b30fe.js b/public/js/build/TEditor.a8b14511.js similarity index 99% rename from public/js/build/TEditor.443b30fe.js rename to public/js/build/TEditor.a8b14511.js index 98599f821..cfffecf71 100644 --- a/public/js/build/TEditor.443b30fe.js +++ b/public/js/build/TEditor.a8b14511.js @@ -1,4 +1,4 @@ -import{e as PC,m as a2,a as IC,n as i2}from"./app.3d81bfbf.js";import{I as o2}from"./ImgUpload.7f60f3a4.js";var FC={exports:{}};(function(R){(function(){var ye=function(e){if(e===null)return"null";if(e===void 0)return"undefined";var t=typeof e;return t==="object"&&(Array.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="Array")?"array":t==="object"&&(String.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="String")?"string":t},le=function(e){return["undefined","boolean","number","string","function","xml","null"].indexOf(e)!==-1},ce=function(e,t){var n=Array.prototype.slice.call(e);return n.sort(t)},ze=function(e,t){return gt(function(n,r){return e.eq(t(n),t(r))})},gt=function(e){return{eq:e}},yr=gt(function(e,t){return e===t}),Hi=yr,ja=function(e){return gt(function(t,n){if(t.length!==n.length)return!1;for(var r=t.length,a=0;a-1},bt=function(e,t){for(var n=0,r=e.length;n=0;n--){var r=e[n];t(r,n)}},Yc=function(e,t){for(var n=[],r=[],a=0,i=e.length;a=0&&t=t.length&&e.substr(n,n+t.length)===t},d0=function(e,t){return Sr(e,t)?c0(e,t.length):e},yt=function(e,t){return e.indexOf(t)!==-1},Sr=function(e,t){return v0(e,t,0)},cs=function(e){return function(t){return t.replace(e,"")}},vs=cs(/^\s+|\s+$/g),m0=cs(/^\s+/g),uv=cs(/\s+$/g),Gi=function(e){return e.length>0},sv=function(e){return!Gi(e)},ds=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,On=function(e){return function(t){return yt(t,e)}},p0=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return yt(e,"edge/")&&yt(e,"chrome")&&yt(e,"safari")&&yt(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,ds],search:function(e){return yt(e,"chrome")&&!yt(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return yt(e,"msie")||yt(e,"trident")}},{name:"Opera",versionRegexes:[ds,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:On("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:On("firefox")},{name:"Safari",versionRegexes:[ds,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(yt(e,"safari")||yt(e,"mobile/"))&&yt(e,"applewebkit")}}],h0=[{name:"Windows",search:On("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return yt(e,"iphone")||yt(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:On("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:On("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:On("linux"),versionRegexes:[]},{name:"Solaris",search:On("sunos"),versionRegexes:[]},{name:"FreeBSD",search:On("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:On("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],fv={browsers:X(p0),oses:X(h0)},lv="Edge",cv="Chrome",vv="IE",dv="Opera",mv="Firefox",pv="Safari",g0=function(){return hv({current:void 0,version:Qa.unknown()})},hv=function(e){var t=e.current,n=e.version,r=function(a){return function(){return t===a}};return{current:t,version:n,isEdge:r(lv),isChrome:r(cv),isIE:r(vv),isOpera:r(dv),isFirefox:r(mv),isSafari:r(pv)}},gv={unknown:g0,nu:hv,edge:X(lv),chrome:X(cv),ie:X(vv),opera:X(dv),firefox:X(mv),safari:X(pv)},bv="Windows",yv="iOS",Cv="Android",wv="Linux",Sv="OSX",Ev="Solaris",kv="FreeBSD",xv="ChromeOS",b0=function(){return Nv({current:void 0,version:Qa.unknown()})},Nv=function(e){var t=e.current,n=e.version,r=function(a){return function(){return t===a}};return{current:t,version:n,isWindows:r(bv),isiOS:r(yv),isAndroid:r(Cv),isOSX:r(Sv),isLinux:r(wv),isSolaris:r(Ev),isFreeBSD:r(kv),isChromeOS:r(xv)}},Tv={unknown:b0,nu:Nv,windows:X(bv),ios:X(yv),android:X(Cv),linux:X(wv),osx:X(Sv),solaris:X(Ev),freebsd:X(kv),chromeos:X(xv)},y0=function(e,t,n){var r=fv.browsers(),a=fv.oses(),i=t.bind(function(s){return s0(r,s)}).orThunk(function(){return f0(r,e)}).fold(gv.unknown,gv.nu),o=l0(a,e).fold(Tv.unknown,Tv.nu),u=a0(o,i,e,n);return{browser:i,os:o,deviceType:u}},C0={detect:y0},w0=function(e){return window.matchMedia(e).matches},S0=fs(function(){return C0.detect(navigator.userAgent,b.from(navigator.userAgentData),w0)}),Wt=function(){return S0()},Av=navigator.userAgent,ms=Wt(),Ct=ms.browser,It=ms.os,mn=ms.deviceType,E0=/WebKit/.test(Av)&&!Ct.isEdge(),k0="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,x0=Av.indexOf("Windows Phone")!==-1,se={opera:Ct.isOpera(),webkit:E0,ie:Ct.isIE()||Ct.isEdge()?Ct.version.major:!1,gecko:Ct.isFirefox(),mac:It.isOSX()||It.isiOS(),iOS:mn.isiPad()||mn.isiPhone(),android:It.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:Ct.isIE()?document.documentMode||7:10,fileApi:k0,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!Ct.isIE(),desktop:mn.isDesktop(),windowsPhone:x0,browser:{current:Ct.current,version:Ct.version,isChrome:Ct.isChrome,isEdge:Ct.isEdge,isFirefox:Ct.isFirefox,isIE:Ct.isIE,isOpera:Ct.isOpera,isSafari:Ct.isSafari},os:{current:It.current,version:It.version,isAndroid:It.isAndroid,isChromeOS:It.isChromeOS,isFreeBSD:It.isFreeBSD,isiOS:It.isiOS,isLinux:It.isLinux,isOSX:It.isOSX,isSolaris:It.isSolaris,isWindows:It.isWindows},deviceType:{isDesktop:mn.isDesktop,isiPad:mn.isiPad,isiPhone:mn.isiPhone,isPhone:mn.isPhone,isTablet:mn.isTablet,isTouch:mn.isTouch,isWebView:mn.isWebView}},N0=/^\s*|\s*$/g,Rv=function(e){return e==null?"":(""+e).replace(N0,"")},Bv=function(e,t){return t?t==="array"&&us(e)?!0:typeof e===t:e!==void 0},T0=function(e,t,n){var r;for(e=e||[],t=t||",",typeof e=="string"&&(e=e.split(t)),n=n||{},r=e.length;r--;)n[e[r]]={};return n},A0=pe,R0=function(e,t,n){var r=this,a,i,o,u=0;e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e);var s=e[3].match(/(^|\.)(\w+)$/i)[2],f=r.createNS(e[3].replace(/\.\w+$/,""),n);if(!f[s]){if(e[2]==="static"){f[s]=t,this.onCreate&&this.onCreate(e[2],e[3],f[s]);return}t[s]||(t[s]=function(){},u=1),f[s]=t[s],r.extend(f[s].prototype,t),e[5]&&(a=r.resolve(e[5]).prototype,i=e[5].match(/\.(\w+)$/i)[1],o=f[s],u?f[s]=function(){return a[i].apply(this,arguments)}:f[s]=function(){return this.parent=a[i],o.apply(this,arguments)},f[s].prototype[s]=f[s],r.each(a,function(l,c){f[s].prototype[c]=a[c]}),r.each(t,function(l,c){a[c]?f[s].prototype[c]=function(){return this.parent=a[c],l.apply(this,arguments)}:c!==s&&(f[s].prototype[c]=l)})),r.each(t.static,function(l,c){f[s][c]=l})}},B0=function(e){for(var t=[],n=1;n1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Za(r.childNodes[0])},L0=function(e,t){var n=t||document,r=n.createElement(e);return Za(r)},$0=function(e,t){var n=t||document,r=n.createTextNode(e);return Za(r)},Za=function(e){if(e==null)throw new Error("Node cannot be null or undefined");return{dom:e}},F0=function(e,t,n){return b.from(e.dom.elementFromPoint(t,n)).map(Za)},k={fromHtml:I0,fromTag:L0,fromText:$0,fromDom:Za,fromPoint:F0},Dv=function(e,t){var n=[],r=function(i){return n.push(i),t(i)},a=t(e);do a=a.bind(r);while(a.isSome());return n},M0=function(e,t,n){return(e.compareDocumentPosition(t)&n)!==0},U0=function(e,t){return M0(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},z0=8,Ov=9,Pv=11,ps=1,H0=3,ra=function(e,t){var n=e.dom;if(n.nodeType!==ps)return!1;var r=n;if(r.matches!==void 0)return r.matches(t);if(r.msMatchesSelector!==void 0)return r.msMatchesSelector(t);if(r.webkitMatchesSelector!==void 0)return r.webkitMatchesSelector(t);if(r.mozMatchesSelector!==void 0)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Iv=function(e){return e.nodeType!==ps&&e.nodeType!==Ov&&e.nodeType!==Pv||e.childElementCount===0},V0=function(e,t){var n=t===void 0?document:t.dom;return Iv(n)?[]:De(n.querySelectorAll(e),k.fromDom)},W0=function(e,t){var n=t===void 0?document:t.dom;return Iv(n)?b.none():b.from(n.querySelector(e)).map(k.fromDom)},Te=function(e,t){return e.dom===t.dom},q0=function(e,t){var n=e.dom,r=t.dom;return n===r?!1:n.contains(r)},j0=function(e,t){return U0(e.dom,t.dom)},Wn=function(e,t){return Wt().browser.isIE()?j0(e,t):q0(e,t)};typeof window!="undefined"||Function("return this;")();var Ke=function(e){var t=e.dom.nodeName;return t.toLowerCase()},Lv=function(e){return e.dom.nodeType},Xi=function(e){return function(t){return Lv(t)===e}},K0=function(e){return Lv(e)===z0||Ke(e)==="#comment"},Zt=Xi(ps),qt=Xi(H0),G0=Xi(Ov),X0=Xi(Pv),Y0=function(e){return function(t){return Zt(t)&&Ke(t)===e}},$v=function(e){return k.fromDom(e.dom.ownerDocument)},aa=function(e){return G0(e)?e:$v(e)},Q0=function(e){return k.fromDom(aa(e).dom.documentElement)},Fv=function(e){return k.fromDom(aa(e).dom.defaultView)},Jt=function(e){return b.from(e.dom.parentNode).map(k.fromDom)},Z0=function(e,t){for(var n=Oe(t)?t:Re,r=e.dom,a=[];r.parentNode!==null&&r.parentNode!==void 0;){var i=r.parentNode,o=k.fromDom(i);if(a.push(o),n(o)===!0)break;r=i}return a},J0=function(e){var t=function(n){return me(n,function(r){return!Te(e,r)})};return Jt(e).map(jt).map(t).getOr([])},Er=function(e){return b.from(e.dom.previousSibling).map(k.fromDom)},Ja=function(e){return b.from(e.dom.nextSibling).map(k.fromDom)},Mv=function(e){return ji(Dv(e,Er))},Uv=function(e){return Dv(e,Ja)},jt=function(e){return De(e.dom.childNodes,k.fromDom)},Yi=function(e,t){var n=e.dom.childNodes;return b.from(n[t]).map(k.fromDom)},zv=function(e){return Yi(e,0)},hs=function(e){return Yi(e,e.dom.childNodes.length-1)},Hv=function(e){return e.dom.childNodes.length},ew=function(e){var t=e.dom.head;if(t==null)throw new Error("Head is not available yet");return k.fromDom(t)},Vv=function(e){return X0(e)&&Ne(e.dom.host)},Wv=Oe(Element.prototype.attachShadow)&&Oe(Node.prototype.getRootNode),tw=X(Wv),kr=Wv?function(e){return k.fromDom(e.dom.getRootNode())}:aa,gs=function(e){return Vv(e)?e:ew(aa(e))},nw=function(e){var t=kr(e);return Vv(t)?b.some(t):b.none()},rw=function(e){return k.fromDom(e.dom.host)},aw=function(e){if(tw()&&Ne(e.target)){var t=k.fromDom(e.target);if(Zt(t)&&iw(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return Pt(n)}}return b.from(e.target)},iw=function(e){return Ne(e.dom.shadowRoot)},en=function(e,t){var n=Jt(e);n.each(function(r){r.dom.insertBefore(t.dom,e.dom)})},ei=function(e,t){var n=Ja(e);n.fold(function(){var r=Jt(e);r.each(function(a){at(a,t)})},function(r){en(r,t)})},qv=function(e,t){var n=zv(e);n.fold(function(){at(e,t)},function(r){e.dom.insertBefore(t.dom,r.dom)})},at=function(e,t){e.dom.appendChild(t.dom)},ow=function(e,t){en(e,t),at(t,e)},uw=function(e,t){Y(t,function(n){en(e,n)})},Qi=function(e,t){Y(t,function(n){at(e,n)})},bs=function(e){e.dom.textContent="",Y(jt(e),function(t){tt(t)})},tt=function(e){var t=e.dom;t.parentNode!==null&&t.parentNode.removeChild(t)},jv=function(e){var t=jt(e);t.length>0&&uw(e,t),tt(e)},ti=function(e){var t=qt(e)?e.dom.parentNode:e.dom;if(t==null||t.ownerDocument===null)return!1;var n=t.ownerDocument;return nw(k.fromDom(t)).fold(function(){return n.body.contains(t)},Kc(ti,rw))},Kv=function(e,t){var n=function(r,a){return Kv(e+r,t+a)};return{left:e,top:t,translate:n}},ia=Kv,sw=function(e){var t=e.getBoundingClientRect();return ia(t.left,t.top)},Zi=function(e,t){return e!==void 0?e:t!==void 0?t:0},fw=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,a=t.documentElement;if(n===e.dom)return ia(n.offsetLeft,n.offsetTop);var i=Zi(r==null?void 0:r.pageYOffset,a.scrollTop),o=Zi(r==null?void 0:r.pageXOffset,a.scrollLeft),u=Zi(a.clientTop,n.clientTop),s=Zi(a.clientLeft,n.clientLeft);return ys(e).translate(o-s,i-u)},ys=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?ia(r.offsetLeft,r.offsetTop):ti(e)?sw(t):ia(0,0)},Cs=function(e){var t=e!==void 0?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return ia(n,r)},Gv=function(e,t,n){var r=n!==void 0?n.dom:document,a=r.defaultView;a&&a.scrollTo(e,t)},Xv=function(e,t){var n=Wt().browser.isSafari();n&&Oe(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)},lw=function(e){var t=e===void 0?window:e;return Wt().browser.isFirefox()?b.none():b.from(t.visualViewport)},Yv=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Qv=function(e){var t=e===void 0?window:e,n=t.document,r=Cs(k.fromDom(n));return lw(t).fold(function(){var a=t.document.documentElement,i=a.clientWidth,o=a.clientHeight;return Yv(r.left,r.top,i,o)},function(a){return Yv(Math.max(a.pageLeft,r.left),Math.max(a.pageTop,r.top),a.width,a.height)})},ni=function(e){return function(t){return!!t&&t.nodeType===e}},Ji=function(e){return!!e&&!Object.getPrototypeOf(e)},ae=ni(1),Kt=function(e){var t=e.map(function(n){return n.toLowerCase()});return function(n){if(n&&n.nodeName){var r=n.nodeName.toLowerCase();return Je(t,r)}return!1}},eo=function(e,t){var n=t.toLowerCase().split(" ");return function(r){if(ae(r))for(var a=0;a0})},rd=function(e){var t={},n=e.dom;if(ro(n))for(var r=0;r=e.length&&n(r)}};e.length===0?n([]):Y(e,function(o,u){o.get(i(u))})})},Dw=function(e){return _w(e,sd.nu)},sa=function(e){var t=function(c){return sa(e)},n=function(c){return sa(e)},r=function(c){return sa(c(e))},a=function(c){return sa(e)},i=function(c){c(e)},o=function(c){return c(e)},u=function(c,v){return v(e)},s=function(c){return c(e)},f=function(c){return c(e)},l=function(){return b.some(e)};return{isValue:qe,isError:Re,getOr:X(e),getOrThunk:X(e),getOrDie:X(e),or:t,orThunk:n,fold:u,map:r,mapError:a,each:i,bind:o,exists:s,forall:f,toOptional:l}},ai=function(e){var t=function(f){return f()},n=function(){return zC(String(e))()},r=Tt,a=function(f){return f()},i=function(f){return ai(e)},o=function(f){return ai(f(e))},u=function(f){return ai(e)},s=function(f,l){return f(e)};return{isValue:Re,isError:qe,getOr:Tt,getOrThunk:t,getOrDie:n,or:r,orThunk:a,fold:s,map:i,mapError:o,each:ve,bind:u,exists:Re,forall:qe,toOptional:b.none}},Ow=function(e,t){return e.fold(function(){return ai(t)},sa)},fd={value:sa,error:ai,fromOption:Ow},Pw=function(e){if(!Vt(e))throw new Error("cases must be an array");if(e.length===0)throw new Error("there must be at least one case");var t=[],n={};return Y(e,function(r,a){var i=ea(r);if(i.length!==1)throw new Error("one and only one name per case");var o=i[0],u=r[o];if(n[o]!==void 0)throw new Error("duplicate key detected:"+o);if(o==="cata")throw new Error("cannot have a case named cata (sorry)");if(!Vt(u))throw new Error("case arguments must be an array");t.push(o),n[o]=function(){for(var s=[],f=0;f-1},bt=function(e,t){for(var n=0,r=e.length;n=0;n--){var r=e[n];t(r,n)}},Yc=function(e,t){for(var n=[],r=[],a=0,i=e.length;a=0&&t=t.length&&e.substr(n,n+t.length)===t},d0=function(e,t){return Sr(e,t)?c0(e,t.length):e},yt=function(e,t){return e.indexOf(t)!==-1},Sr=function(e,t){return v0(e,t,0)},cs=function(e){return function(t){return t.replace(e,"")}},vs=cs(/^\s+|\s+$/g),m0=cs(/^\s+/g),uv=cs(/\s+$/g),Gi=function(e){return e.length>0},sv=function(e){return!Gi(e)},ds=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,On=function(e){return function(t){return yt(t,e)}},p0=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return yt(e,"edge/")&&yt(e,"chrome")&&yt(e,"safari")&&yt(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,ds],search:function(e){return yt(e,"chrome")&&!yt(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return yt(e,"msie")||yt(e,"trident")}},{name:"Opera",versionRegexes:[ds,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:On("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:On("firefox")},{name:"Safari",versionRegexes:[ds,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(yt(e,"safari")||yt(e,"mobile/"))&&yt(e,"applewebkit")}}],h0=[{name:"Windows",search:On("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return yt(e,"iphone")||yt(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:On("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:On("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:On("linux"),versionRegexes:[]},{name:"Solaris",search:On("sunos"),versionRegexes:[]},{name:"FreeBSD",search:On("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:On("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],fv={browsers:X(p0),oses:X(h0)},lv="Edge",cv="Chrome",vv="IE",dv="Opera",mv="Firefox",pv="Safari",g0=function(){return hv({current:void 0,version:Qa.unknown()})},hv=function(e){var t=e.current,n=e.version,r=function(a){return function(){return t===a}};return{current:t,version:n,isEdge:r(lv),isChrome:r(cv),isIE:r(vv),isOpera:r(dv),isFirefox:r(mv),isSafari:r(pv)}},gv={unknown:g0,nu:hv,edge:X(lv),chrome:X(cv),ie:X(vv),opera:X(dv),firefox:X(mv),safari:X(pv)},bv="Windows",yv="iOS",Cv="Android",wv="Linux",Sv="OSX",Ev="Solaris",kv="FreeBSD",xv="ChromeOS",b0=function(){return Nv({current:void 0,version:Qa.unknown()})},Nv=function(e){var t=e.current,n=e.version,r=function(a){return function(){return t===a}};return{current:t,version:n,isWindows:r(bv),isiOS:r(yv),isAndroid:r(Cv),isOSX:r(Sv),isLinux:r(wv),isSolaris:r(Ev),isFreeBSD:r(kv),isChromeOS:r(xv)}},Tv={unknown:b0,nu:Nv,windows:X(bv),ios:X(yv),android:X(Cv),linux:X(wv),osx:X(Sv),solaris:X(Ev),freebsd:X(kv),chromeos:X(xv)},y0=function(e,t,n){var r=fv.browsers(),a=fv.oses(),i=t.bind(function(s){return s0(r,s)}).orThunk(function(){return f0(r,e)}).fold(gv.unknown,gv.nu),o=l0(a,e).fold(Tv.unknown,Tv.nu),u=a0(o,i,e,n);return{browser:i,os:o,deviceType:u}},C0={detect:y0},w0=function(e){return window.matchMedia(e).matches},S0=fs(function(){return C0.detect(navigator.userAgent,b.from(navigator.userAgentData),w0)}),Wt=function(){return S0()},Av=navigator.userAgent,ms=Wt(),Ct=ms.browser,It=ms.os,mn=ms.deviceType,E0=/WebKit/.test(Av)&&!Ct.isEdge(),k0="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,x0=Av.indexOf("Windows Phone")!==-1,se={opera:Ct.isOpera(),webkit:E0,ie:Ct.isIE()||Ct.isEdge()?Ct.version.major:!1,gecko:Ct.isFirefox(),mac:It.isOSX()||It.isiOS(),iOS:mn.isiPad()||mn.isiPhone(),android:It.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:Ct.isIE()?document.documentMode||7:10,fileApi:k0,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!Ct.isIE(),desktop:mn.isDesktop(),windowsPhone:x0,browser:{current:Ct.current,version:Ct.version,isChrome:Ct.isChrome,isEdge:Ct.isEdge,isFirefox:Ct.isFirefox,isIE:Ct.isIE,isOpera:Ct.isOpera,isSafari:Ct.isSafari},os:{current:It.current,version:It.version,isAndroid:It.isAndroid,isChromeOS:It.isChromeOS,isFreeBSD:It.isFreeBSD,isiOS:It.isiOS,isLinux:It.isLinux,isOSX:It.isOSX,isSolaris:It.isSolaris,isWindows:It.isWindows},deviceType:{isDesktop:mn.isDesktop,isiPad:mn.isiPad,isiPhone:mn.isiPhone,isPhone:mn.isPhone,isTablet:mn.isTablet,isTouch:mn.isTouch,isWebView:mn.isWebView}},N0=/^\s*|\s*$/g,Rv=function(e){return e==null?"":(""+e).replace(N0,"")},Bv=function(e,t){return t?t==="array"&&us(e)?!0:typeof e===t:e!==void 0},T0=function(e,t,n){var r;for(e=e||[],t=t||",",typeof e=="string"&&(e=e.split(t)),n=n||{},r=e.length;r--;)n[e[r]]={};return n},A0=pe,R0=function(e,t,n){var r=this,a,i,o,u=0;e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e);var s=e[3].match(/(^|\.)(\w+)$/i)[2],f=r.createNS(e[3].replace(/\.\w+$/,""),n);if(!f[s]){if(e[2]==="static"){f[s]=t,this.onCreate&&this.onCreate(e[2],e[3],f[s]);return}t[s]||(t[s]=function(){},u=1),f[s]=t[s],r.extend(f[s].prototype,t),e[5]&&(a=r.resolve(e[5]).prototype,i=e[5].match(/\.(\w+)$/i)[1],o=f[s],u?f[s]=function(){return a[i].apply(this,arguments)}:f[s]=function(){return this.parent=a[i],o.apply(this,arguments)},f[s].prototype[s]=f[s],r.each(a,function(l,c){f[s].prototype[c]=a[c]}),r.each(t,function(l,c){a[c]?f[s].prototype[c]=function(){return this.parent=a[c],l.apply(this,arguments)}:c!==s&&(f[s].prototype[c]=l)})),r.each(t.static,function(l,c){f[s][c]=l})}},B0=function(e){for(var t=[],n=1;n1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Za(r.childNodes[0])},L0=function(e,t){var n=t||document,r=n.createElement(e);return Za(r)},$0=function(e,t){var n=t||document,r=n.createTextNode(e);return Za(r)},Za=function(e){if(e==null)throw new Error("Node cannot be null or undefined");return{dom:e}},F0=function(e,t,n){return b.from(e.dom.elementFromPoint(t,n)).map(Za)},k={fromHtml:I0,fromTag:L0,fromText:$0,fromDom:Za,fromPoint:F0},Dv=function(e,t){var n=[],r=function(i){return n.push(i),t(i)},a=t(e);do a=a.bind(r);while(a.isSome());return n},M0=function(e,t,n){return(e.compareDocumentPosition(t)&n)!==0},U0=function(e,t){return M0(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},z0=8,Ov=9,Pv=11,ps=1,H0=3,ra=function(e,t){var n=e.dom;if(n.nodeType!==ps)return!1;var r=n;if(r.matches!==void 0)return r.matches(t);if(r.msMatchesSelector!==void 0)return r.msMatchesSelector(t);if(r.webkitMatchesSelector!==void 0)return r.webkitMatchesSelector(t);if(r.mozMatchesSelector!==void 0)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Iv=function(e){return e.nodeType!==ps&&e.nodeType!==Ov&&e.nodeType!==Pv||e.childElementCount===0},V0=function(e,t){var n=t===void 0?document:t.dom;return Iv(n)?[]:De(n.querySelectorAll(e),k.fromDom)},W0=function(e,t){var n=t===void 0?document:t.dom;return Iv(n)?b.none():b.from(n.querySelector(e)).map(k.fromDom)},Te=function(e,t){return e.dom===t.dom},q0=function(e,t){var n=e.dom,r=t.dom;return n===r?!1:n.contains(r)},j0=function(e,t){return U0(e.dom,t.dom)},Wn=function(e,t){return Wt().browser.isIE()?j0(e,t):q0(e,t)};typeof window!="undefined"||Function("return this;")();var Ke=function(e){var t=e.dom.nodeName;return t.toLowerCase()},Lv=function(e){return e.dom.nodeType},Xi=function(e){return function(t){return Lv(t)===e}},K0=function(e){return Lv(e)===z0||Ke(e)==="#comment"},Zt=Xi(ps),qt=Xi(H0),G0=Xi(Ov),X0=Xi(Pv),Y0=function(e){return function(t){return Zt(t)&&Ke(t)===e}},$v=function(e){return k.fromDom(e.dom.ownerDocument)},aa=function(e){return G0(e)?e:$v(e)},Q0=function(e){return k.fromDom(aa(e).dom.documentElement)},Fv=function(e){return k.fromDom(aa(e).dom.defaultView)},Jt=function(e){return b.from(e.dom.parentNode).map(k.fromDom)},Z0=function(e,t){for(var n=Oe(t)?t:Re,r=e.dom,a=[];r.parentNode!==null&&r.parentNode!==void 0;){var i=r.parentNode,o=k.fromDom(i);if(a.push(o),n(o)===!0)break;r=i}return a},J0=function(e){var t=function(n){return me(n,function(r){return!Te(e,r)})};return Jt(e).map(jt).map(t).getOr([])},Er=function(e){return b.from(e.dom.previousSibling).map(k.fromDom)},Ja=function(e){return b.from(e.dom.nextSibling).map(k.fromDom)},Mv=function(e){return ji(Dv(e,Er))},Uv=function(e){return Dv(e,Ja)},jt=function(e){return De(e.dom.childNodes,k.fromDom)},Yi=function(e,t){var n=e.dom.childNodes;return b.from(n[t]).map(k.fromDom)},zv=function(e){return Yi(e,0)},hs=function(e){return Yi(e,e.dom.childNodes.length-1)},Hv=function(e){return e.dom.childNodes.length},ew=function(e){var t=e.dom.head;if(t==null)throw new Error("Head is not available yet");return k.fromDom(t)},Vv=function(e){return X0(e)&&Ne(e.dom.host)},Wv=Oe(Element.prototype.attachShadow)&&Oe(Node.prototype.getRootNode),tw=X(Wv),kr=Wv?function(e){return k.fromDom(e.dom.getRootNode())}:aa,gs=function(e){return Vv(e)?e:ew(aa(e))},nw=function(e){var t=kr(e);return Vv(t)?b.some(t):b.none()},rw=function(e){return k.fromDom(e.dom.host)},aw=function(e){if(tw()&&Ne(e.target)){var t=k.fromDom(e.target);if(Zt(t)&&iw(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return Pt(n)}}return b.from(e.target)},iw=function(e){return Ne(e.dom.shadowRoot)},en=function(e,t){var n=Jt(e);n.each(function(r){r.dom.insertBefore(t.dom,e.dom)})},ei=function(e,t){var n=Ja(e);n.fold(function(){var r=Jt(e);r.each(function(a){at(a,t)})},function(r){en(r,t)})},qv=function(e,t){var n=zv(e);n.fold(function(){at(e,t)},function(r){e.dom.insertBefore(t.dom,r.dom)})},at=function(e,t){e.dom.appendChild(t.dom)},ow=function(e,t){en(e,t),at(t,e)},uw=function(e,t){Y(t,function(n){en(e,n)})},Qi=function(e,t){Y(t,function(n){at(e,n)})},bs=function(e){e.dom.textContent="",Y(jt(e),function(t){tt(t)})},tt=function(e){var t=e.dom;t.parentNode!==null&&t.parentNode.removeChild(t)},jv=function(e){var t=jt(e);t.length>0&&uw(e,t),tt(e)},ti=function(e){var t=qt(e)?e.dom.parentNode:e.dom;if(t==null||t.ownerDocument===null)return!1;var n=t.ownerDocument;return nw(k.fromDom(t)).fold(function(){return n.body.contains(t)},Kc(ti,rw))},Kv=function(e,t){var n=function(r,a){return Kv(e+r,t+a)};return{left:e,top:t,translate:n}},ia=Kv,sw=function(e){var t=e.getBoundingClientRect();return ia(t.left,t.top)},Zi=function(e,t){return e!==void 0?e:t!==void 0?t:0},fw=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,a=t.documentElement;if(n===e.dom)return ia(n.offsetLeft,n.offsetTop);var i=Zi(r==null?void 0:r.pageYOffset,a.scrollTop),o=Zi(r==null?void 0:r.pageXOffset,a.scrollLeft),u=Zi(a.clientTop,n.clientTop),s=Zi(a.clientLeft,n.clientLeft);return ys(e).translate(o-s,i-u)},ys=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?ia(r.offsetLeft,r.offsetTop):ti(e)?sw(t):ia(0,0)},Cs=function(e){var t=e!==void 0?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return ia(n,r)},Gv=function(e,t,n){var r=n!==void 0?n.dom:document,a=r.defaultView;a&&a.scrollTo(e,t)},Xv=function(e,t){var n=Wt().browser.isSafari();n&&Oe(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)},lw=function(e){var t=e===void 0?window:e;return Wt().browser.isFirefox()?b.none():b.from(t.visualViewport)},Yv=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Qv=function(e){var t=e===void 0?window:e,n=t.document,r=Cs(k.fromDom(n));return lw(t).fold(function(){var a=t.document.documentElement,i=a.clientWidth,o=a.clientHeight;return Yv(r.left,r.top,i,o)},function(a){return Yv(Math.max(a.pageLeft,r.left),Math.max(a.pageTop,r.top),a.width,a.height)})},ni=function(e){return function(t){return!!t&&t.nodeType===e}},Ji=function(e){return!!e&&!Object.getPrototypeOf(e)},ae=ni(1),Kt=function(e){var t=e.map(function(n){return n.toLowerCase()});return function(n){if(n&&n.nodeName){var r=n.nodeName.toLowerCase();return Je(t,r)}return!1}},eo=function(e,t){var n=t.toLowerCase().split(" ");return function(r){if(ae(r))for(var a=0;a0})},rd=function(e){var t={},n=e.dom;if(ro(n))for(var r=0;r=e.length&&n(r)}};e.length===0?n([]):Y(e,function(o,u){o.get(i(u))})})},Dw=function(e){return _w(e,sd.nu)},sa=function(e){var t=function(c){return sa(e)},n=function(c){return sa(e)},r=function(c){return sa(c(e))},a=function(c){return sa(e)},i=function(c){c(e)},o=function(c){return c(e)},u=function(c,v){return v(e)},s=function(c){return c(e)},f=function(c){return c(e)},l=function(){return b.some(e)};return{isValue:qe,isError:Re,getOr:X(e),getOrThunk:X(e),getOrDie:X(e),or:t,orThunk:n,fold:u,map:r,mapError:a,each:i,bind:o,exists:s,forall:f,toOptional:l}},ai=function(e){var t=function(f){return f()},n=function(){return zC(String(e))()},r=Tt,a=function(f){return f()},i=function(f){return ai(e)},o=function(f){return ai(f(e))},u=function(f){return ai(e)},s=function(f,l){return f(e)};return{isValue:Re,isError:qe,getOr:Tt,getOrThunk:t,getOrDie:n,or:r,orThunk:a,fold:s,map:i,mapError:o,each:ve,bind:u,exists:Re,forall:qe,toOptional:b.none}},Ow=function(e,t){return e.fold(function(){return ai(t)},sa)},fd={value:sa,error:ai,fromOption:Ow},Pw=function(e){if(!Vt(e))throw new Error("cases must be an array");if(e.length===0)throw new Error("there must be at least one case");var t=[],n={};return Y(e,function(r,a){var i=ea(r);if(i.length!==1)throw new Error("one and only one name per case");var o=i[0],u=r[o];if(n[o]!==void 0)throw new Error("duplicate key detected:"+o);if(o==="cata")throw new Error("cannot have a case named cata (sorry)");if(!Vt(u))throw new Error("case arguments must be an array");t.push(o),n[o]=function(){for(var s=[],f=0;f0?g(S.fail.map(ld)):y(S.pass.map(ld))})},m=function(h){var y=_._addCacheSuffix(h);je(r,y).each(function(g){var E=--g.count;E===0&&(delete r[y],f(g.id))})},p=function(h){Y(h,function(y){m(y)})};return{load:c,loadAll:d,unload:m,unloadAll:p,_setReferrerPolicy:u}},Uw=function(){var e=new WeakMap,t=function(n,r){var a=kr(n),i=a.dom;return b.from(e.get(i)).getOrThunk(function(){var o=md(i,r);return e.set(i,o),o})};return{forElement:t}},pd=Uw(),Ge=function(){function e(t,n){this.node=t,this.rootNode=n,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}return e.prototype.current=function(){return this.node},e.prototype.next=function(t){return this.node=this.findSibling(this.node,"firstChild","nextSibling",t),this.node},e.prototype.prev=function(t){return this.node=this.findSibling(this.node,"lastChild","previousSibling",t),this.node},e.prototype.prev2=function(t){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",t),this.node},e.prototype.findSibling=function(t,n,r,a){var i,o;if(t){if(!a&&t[n])return t[n];if(t!==this.rootNode){if(i=t[r],i)return i;for(o=t.parentNode;o&&o!==this.rootNode;o=o.parentNode)if(i=o[r],i)return i}}},e.prototype.findPreviousNode=function(t,n,r,a){var i,o,u;if(t){if(i=t[r],this.rootNode&&i===this.rootNode)return;if(i){if(!a){for(u=i[n];u;u=u[n])if(!u[n])return u}return i}if(o=t.parentNode,o&&o!==this.rootNode)return o}},e}(),zw=["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"],Hw=["td","th"],Vw=["thead","tbody","tfoot"],Ww=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],qw=["h1","h2","h3","h4","h5","h6"],jw=["li","dd","dt"],Kw=["ul","ol","dl"],Gw=["pre","script","textarea","style"],Gn=function(e){var t;return function(n){return t=t||XC(e,qe),pe(t,Ke(n))}},Xw=Gn(qw),gn=Gn(zw),Yw=function(e){return Ke(e)==="table"},Bs=function(e){return Zt(e)&&!gn(e)},fa=function(e){return Zt(e)&&Ke(e)==="br"},hd=Gn(Ww),_s=Gn(Kw),oi=Gn(jw),Qw=Gn(Vw),uo=Gn(Hw),so=Gn(Gw),Zw=function(e,t,n){return io(e,t,n).isSome()},Ds="\uFEFF",At="\xA0",Jw=function(e){return e===Ds},eS=function(e){return e.replace(/\uFEFF/g,"")},nt=Ds,fo=Jw,Xn=eS,tS=ae,la=Q,ca=function(e){return la(e)&&(e=e.parentNode),tS(e)&&e.hasAttribute("data-mce-caret")},va=function(e){return la(e)&&fo(e.data)},Lt=function(e){return ca(e)||va(e)},gd=function(e){return e.firstChild!==e.lastChild||!$e(e.firstChild)},nS=function(e,t){var n=e.ownerDocument,r=n.createTextNode(nt),a=e.parentNode;if(t){var i=e.previousSibling;if(la(i)){if(Lt(i))return i;if(co(i))return i.splitText(i.data.length-1)}a.insertBefore(r,e)}else{var i=e.nextSibling;if(la(i)){if(Lt(i))return i;if(lo(i))return i.splitText(1),i}e.nextSibling?a.insertBefore(r,e.nextSibling):a.appendChild(r)}return r},Os=function(e){var t=e.container();return Q(t)?t.data.charAt(e.offset())===nt||e.isAtStart()&&va(t.previousSibling):!1},Ps=function(e){var t=e.container();return Q(t)?t.data.charAt(e.offset()-1)===nt||e.isAtEnd()&&va(t.nextSibling):!1},rS=function(){var e=document.createElement("br");return e.setAttribute("data-mce-bogus","1"),e},aS=function(e,t,n){var r=t.ownerDocument,a=r.createElement(e);a.setAttribute("data-mce-caret",n?"before":"after"),a.setAttribute("data-mce-bogus","all"),a.appendChild(rS());var i=t.parentNode;return n?i.insertBefore(a,t):t.nextSibling?i.insertBefore(a,t.nextSibling):i.appendChild(a),a},lo=function(e){return la(e)&&e.data[0]===nt},co=function(e){return la(e)&&e.data[e.data.length-1]===nt},iS=function(e){var t=e.getElementsByTagName("br"),n=t[t.length-1];xr(n)&&n.parentNode.removeChild(n)},Is=function(e){return e&&e.hasAttribute("data-mce-caret")?(iS(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null},bd=function(e){return ca(e.startContainer)},yd=pn,oS=_e,uS=$e,sS=Q,fS=Kt(["script","style","textarea"]),Cd=Kt(["img","input","textarea","hr","iframe","video","audio","object","embed"]),lS=Kt(["table"]),cS=Lt,bn=function(e){return cS(e)?!1:sS(e)?!fS(e.parentNode):Cd(e)||uS(e)||lS(e)||Ls(e)},vS=function(e){return ae(e)&&e.getAttribute("unselectable")==="true"},Ls=function(e){return vS(e)===!1&&oS(e)},dS=function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if(Ls(e))return!1;if(yd(e))return!0}return!0},mS=function(e){return Ls(e)?Qt(dn(e.getElementsByTagName("*")),function(t,n){return t||yd(n)},!1)!==!0:!1},pS=function(e){return Cd(e)||mS(e)},vo=function(e,t){return bn(e)&&dS(e,t)},hS=/^[ \t\r\n]*$/,Nr=function(e){return hS.test(e)},gS=function(e,t){var n=k.fromDom(t),r=k.fromDom(e);return Zw(r,"pre,code",G(Te,n))},bS=function(e,t){return Q(e)&&Nr(e.data)&&gS(e,t)===!1},yS=function(e){return ae(e)&&e.nodeName==="A"&&!e.hasAttribute("href")&&(e.hasAttribute("name")||e.hasAttribute("id"))},mo=function(e,t){return bn(e)&&bS(e,t)===!1||yS(e)||CS(e)},CS=Zv("data-mce-bookmark"),wS=Zv("data-mce-bogus"),SS=cw("data-mce-bogus","all"),ES=function(e,t){var n=0;if(mo(e,e))return!1;var r=e.firstChild;if(!r)return!0;var a=new Ge(r,e);do{if(t){if(SS(r)){r=a.next(!0);continue}if(wS(r)){r=a.next();continue}}if($e(r)){n++,r=a.next();continue}if(mo(r,e))return!1;r=a.next()}while(r);return n<=1},Xe=function(e,t){return t===void 0&&(t=!0),ES(e.dom,t)},kS=function(e){return e.nodeName.toLowerCase()==="span"},wd=function(e,t){return Ne(e)&&(mo(e,t)||Bs(k.fromDom(e)))},xS=function(e,t){var n=new Ge(e,t).prev(!1),r=new Ge(e,t).next(!1),a=Nt(n)||wd(n,t),i=Nt(r)||wd(r,t);return a&&i},Sd=function(e){return kS(e)&&e.getAttribute("data-mce-type")==="bookmark"},NS=function(e,t){return Q(e)&&e.data.length>0&&xS(e,t)},TS=function(e){return ae(e)?e.childNodes.length>0:!1},AS=function(e){return Es(e)||Ss(e)},$s=function(e,t,n){var r=n||t;if(ae(t)&&Sd(t))return t;for(var a=t.childNodes,i=a.length-1;i>=0;i--)$s(e,a[i],r);if(ae(t)){var o=t.childNodes;o.length===1&&Sd(o[0])&&t.parentNode.insertBefore(o[0],t)}return!AS(t)&&!mo(t,r)&&!TS(t)&&!NS(t,r)&&e.remove(t),t},RS=_.makeMap,po=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ho=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,BS=/[<>&\"\']/g,_S=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,DS={128:"\u20AC",130:"\u201A",131:"\u0192",132:"\u201E",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02C6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017D",145:"\u2018",146:"\u2019",147:"\u201C",148:"\u201D",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02DC",153:"\u2122",154:"\u0161",155:"\u203A",156:"\u0153",158:"\u017E",159:"\u0178"},Tr={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},OS={"<":"<",">":">","&":"&",""":'"',"'":"'"},PS=function(e){var t=k.fromTag("div").dom;return t.innerHTML=e,t.textContent||t.innerText||e},Ed=function(e,t){var n,r,a,i={};if(e){for(e=e.split(","),t=t||10,n=0;n1?"&#"+((n.charCodeAt(0)-55296)*1024+(n.charCodeAt(1)-56320)+65536)+";":Tr[n]||"&#"+n.charCodeAt(0)+";"})},Ms=function(e,t,n){return n=n||Fs,e.replace(t?po:ho,function(r){return Tr[r]||n[r]||r})},LS=function(e,t){var n=Ed(t)||Fs,r=function(o,u){return o.replace(u?po:ho,function(s){return Tr[s]!==void 0?Tr[s]:n[s]!==void 0?n[s]:s.length>1?"&#"+((s.charCodeAt(0)-55296)*1024+(s.charCodeAt(1)-56320)+65536)+";":"&#"+s.charCodeAt(0)+";"})},a=function(o,u){return Ms(o,u,n)},i=RS(e.replace(/\+/g,","));return i.named&&i.numeric?r:i.named?t?a:Ms:i.numeric?xd:kd},$S=function(e){return e.replace(_S,function(t,n){return n?(n.charAt(0).toLowerCase()==="x"?n=parseInt(n.substr(1),16):n=parseInt(n,10),n>65535?(n-=65536,String.fromCharCode(55296+(n>>10),56320+(n&1023))):DS[n]||String.fromCharCode(n)):OS[t]||Fs[t]||PS(t)})},Yn={encodeRaw:kd,encodeAllRaw:IS,encodeNumeric:xd,encodeNamed:Ms,getEncodeFunc:LS,decode:$S},Qn={},FS={},da=_.makeMap,ut=_.each,Us=_.extend,Nd=_.explode,MS=_.inArray,rt=function(e,t){return e=_.trim(e),e?e.split(t||" "):[]},Td=function(e,t){var n=da(e," ",da(e.toUpperCase()," "));return Us(n,t)},Ad=function(e){return Td("td th li dt dd figcaption caption details summary",e.getTextBlockElements())},US=function(e){var t={},n,r,a,i,o,u,s=function(l,c,v){var d,m,p,h=function(g,E){var S={},C,x;for(C=0,x=g.length;C
");return en(n.element,r),Up(r,function(){return tt(r)})},pN=function(e){return Up(k.fromDom(e),ve)},zp=function(e,t,n,r){gN(e,function(a,i){return hN(e,t,n,r)},n)},Hp=function(e,t,n,r,a){var i={elm:r.element.dom,alignToTop:a};if(!cN(e,i)){var o=Cs(t).top;n(t,o,r,a),vN(e,i)}},hN=function(e,t,n,r){var a=k.fromDom(e.getBody()),i=k.fromDom(e.getDoc());Sw(a);var o=mN(k.fromDom(n.startContainer),n.startOffset);Hp(e,i,t,o,r),o.cleanup()},Vp=function(e,t,n,r){var a=k.fromDom(e.getDoc());Hp(e,a,n,pN(t),r)},gN=function(e,t,n){var r=n.startContainer,a=n.startOffset,i=n.endContainer,o=n.endOffset;t(k.fromDom(r),k.fromDom(i));var u=e.dom.createRng();u.setStart(r,a),u.setEnd(i,o),e.selection.setRng(n)},Qf=function(e,t,n,r){var a=e.pos;if(n)Gv(a.left,a.top,r);else{var i=a.top-t+e.height;Gv(a.left,i,r)}},Wp=function(e,t,n,r,a){var i=n+t,o=r.pos.top,u=r.bottom,s=u-o>=n;if(oi){var f=s?a!==!1:a===!0;Qf(r,n,f,e)}else u>i&&!s&&Qf(r,n,a===!0,e)},qp=function(e,t,n,r){var a=e.dom.defaultView.innerHeight;Wp(e,t,a,n,r)},jp=function(e,t,n,r){var a=e.dom.defaultView.innerHeight;Wp(e,t,a,n,r);var i=lN(n.element),o=Qv(window);i.topo.bottom&&Xv(n.element,r===!0)},bN=function(e,t,n){return zp(e,qp,t,n)},yN=function(e,t,n){return Vp(e,t,qp,n)},CN=function(e,t,n){return zp(e,jp,t,n)},wN=function(e,t,n){return Vp(e,t,jp,n)},SN=function(e,t,n){var r=e.inline?yN:wN;r(e,t,n)},Ai=function(e,t,n){var r=e.inline?bN:CN;r(e,t,n)},EN=function(){return k.fromDom(document)},kN=function(e){return e.dom.focus()},Kp=function(e){var t=kr(e).dom;return e.dom===t.activeElement},Zf=function(e){return e===void 0&&(e=EN()),b.from(e.dom.activeElement).map(k.fromDom)},xN=function(e){return Zf(kr(e)).filter(function(t){return e.dom.contains(t.dom)})},NN=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},TN={create:NN},Jf=Kn.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),AN=function(e,t,n,r){return e.fold(t,n,r)},RN=function(e){return e.fold(Tt,Tt,Tt)},BN=Jf.before,_N=Jf.on,DN=Jf.after,ON={before:BN,on:_N,after:DN,cata:AN,getStart:RN},Ko=Kn.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),PN=function(e){return Ko.exact(e.start,e.soffset,e.finish,e.foffset)},IN=function(e){return e.match({domRange:function(t){return k.fromDom(t.startContainer)},relative:function(t,n){return ON.getStart(t)},exact:function(t,n,r,a){return t}})},LN=Ko.domRange,$N=Ko.relative,FN=Ko.exact,MN=function(e){var t=IN(e);return Fv(t)},UN=TN.create,Gp={domRange:LN,relative:$N,exact:FN,exactFromRange:PN,getWin:MN,range:UN},zN=Wt().browser,Xp=function(e,t){var n=qt(t)?Vf(t).length:jt(t).length+1;return e>n?n:e<0?0:e},HN=function(e){return Gp.range(e.start,Xp(e.soffset,e.start),e.finish,Xp(e.foffset,e.finish))},Yp=function(e,t){return!Ji(t.dom)&&(Wn(e,t)||Te(e,t))},el=function(e){return function(t){return Yp(e,t.start)&&Yp(e,t.finish)}},Qp=function(e){return e.inline===!0||zN.isIE()},Zp=function(e){return Gp.range(k.fromDom(e.startContainer),e.startOffset,k.fromDom(e.endContainer),e.endOffset)},VN=function(e){var t=e.getSelection(),n=!t||t.rangeCount===0?b.none():b.from(t.getRangeAt(0));return n.map(Zp)},WN=function(e){var t=Fv(e);return VN(t.dom).filter(el(e))},qN=function(e,t){return b.from(t).filter(el(e)).map(HN)},jN=function(e){var t=document.createRange();try{return t.setStart(e.start.dom,e.soffset),t.setEnd(e.finish.dom,e.foffset),b.some(t)}catch{return b.none()}},Go=function(e){var t=Qp(e)?WN(k.fromDom(e.getBody())):b.none();e.bookmark=t.isSome()?t:e.bookmark},KN=function(e,t){var n=k.fromDom(e.getBody()),r=Qp(e)?b.from(t):b.none(),a=r.map(Zp).filter(el(n));e.bookmark=a.isSome()?a:e.bookmark},tl=function(e){var t=e.bookmark?e.bookmark:b.none();return t.bind(function(n){return qN(k.fromDom(e.getBody()),n)}).bind(jN)},GN=function(e){tl(e).each(function(t){return e.selection.setRng(t)})},XN=function(e){var t=e.className.toString();return t.indexOf("tox-")!==-1||t.indexOf("mce-")!==-1},Jp={isEditorUIElement:XN},YN=function(e){return e.type==="nodechange"&&e.selectionChange},QN=function(e,t){var n=function(){t.throttle()};xe.DOM.bind(document,"mouseup",n),e.on("remove",function(){xe.DOM.unbind(document,"mouseup",n)})},ZN=function(e){e.on("focusout",function(){Go(e)})},JN=function(e,t){e.on("mouseup touchend",function(n){t.throttle()})},eT=function(e,t){var n=Wt().browser;n.isIE()?ZN(e):JN(e,t),e.on("keyup NodeChange",function(r){YN(r)||Go(e)})},tT=function(e){var t=cf(function(){Go(e)},0);e.on("init",function(){e.inline&&QN(e,t),eT(e,t)}),e.on("remove",function(){t.cancel()})},Ri,nl=xe.DOM,nT=function(e){return Jp.isEditorUIElement(e)},rT=function(e){var t=e.classList;return t!==void 0?t.contains("tox-edit-area")||t.contains("tox-edit-area__iframe")||t.contains("mce-content-body"):!1},Xo=function(e,t){var n=fx(e),r=nl.getParent(t,function(a){return nT(a)||(n?e.dom.is(a,n):!1)});return r!==null},aT=function(e){try{var t=kr(k.fromDom(e.getElement()));return Zf(t).fold(function(){return document.body},function(n){return n.dom})}catch{return document.body}},iT=function(e,t){var n=t.editor;tT(n),n.on("focusin",function(){var r=e.focusedEditor;r!==n&&(r&&r.fire("blur",{focusedEditor:n}),e.setActive(n),e.focusedEditor=n,n.fire("focus",{blurredEditor:r}),n.focus(!0))}),n.on("focusout",function(){ot.setEditorTimeout(n,function(){var r=e.focusedEditor;!Xo(n,aT(n))&&r===n&&(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null)})}),Ri||(Ri=function(r){var a=e.activeEditor;a&&aw(r).each(function(i){i.ownerDocument===document&&i!==document.body&&!Xo(a,i)&&e.focusedEditor===a&&(a.fire("blur",{focusedEditor:null}),e.focusedEditor=null)})},nl.bind(document,"focusin",Ri))},oT=function(e,t){e.focusedEditor===t.editor&&(e.focusedEditor=null),e.activeEditor||(nl.unbind(document,"focusin",Ri),Ri=null)},uT=function(e){e.on("AddEditor",G(iT,e)),e.on("RemoveEditor",G(oT,e))},sT=function(e,t){return e.dom.getParent(t,function(n){return e.dom.getContentEditable(n)==="true"})},fT=function(e){return e.collapsed?b.from(or(e.startContainer,e.startOffset)).map(k.fromDom):b.none()},lT=function(e,t){return fT(t).bind(function(n){return Qw(n)?b.some(n):Wn(e,n)===!1?b.some(e):b.none()})},eh=function(e,t){lT(k.fromDom(e.getBody()),t).bind(function(n){return wt(n.dom)}).fold(function(){e.selection.normalize()},function(n){return e.selection.setRng(n.toRange())})},rl=function(e){if(e.setActive)try{e.setActive()}catch{e.focus()}else e.focus()},cT=function(e){return Kp(e)||xN(e).isSome()},vT=function(e){return e.iframeElement&&Kp(k.fromDom(e.iframeElement))},dT=function(e){var t=e.getBody();return t&&cT(k.fromDom(t))},mT=function(e){var t=kr(k.fromDom(e.getElement()));return Zf(t).filter(function(n){return!rT(n.dom)&&Xo(e,n.dom)}).isSome()},$r=function(e){return e.inline?dT(e):vT(e)},pT=function(e){return $r(e)||mT(e)},hT=function(e){var t=e.selection,n=e.getBody(),r=t.getRng();e.quirks.refreshContentEditable(),e.bookmark!==void 0&&$r(e)===!1&&tl(e).each(function(i){e.selection.setRng(i),r=i});var a=sT(e,t.getNode());if(e.$.contains(n,a)){rl(a),eh(e,r),al(e);return}e.inline||(se.opera||rl(n),e.getWin().focus()),(se.gecko||e.inline)&&(rl(n),eh(e,r)),al(e)},al=function(e){return e.editorManager.setActive(e)},gT=function(e,t){e.removed||(t?al(e):hT(e))},th=function(e,t,n,r,a){var i=n?t.startContainer:t.endContainer,o=n?t.startOffset:t.endOffset;return b.from(i).map(k.fromDom).map(function(u){return!r||!t.collapsed?Yi(u,a(u,o)).getOr(u):u}).bind(function(u){return Zt(u)?b.some(u):Jt(u).filter(Zt)}).map(function(u){return u.dom}).getOr(e)},nh=function(e,t,n){return th(e,t,!0,n,function(r,a){return Math.min(Hv(r),a)})},rh=function(e,t,n){return th(e,t,!1,n,function(r,a){return a>0?a-1:a})},ah=function(e,t){for(var n=e;e&&Q(e)&&e.length===0;)e=t?e.nextSibling:e.previousSibling;return e||n},bT=function(e,t){var n,r,a;if(!t)return e;r=t.startContainer,a=t.endContainer;var i=t.startOffset,o=t.endOffset;return n=t.commonAncestorContainer,!t.collapsed&&(r===a&&o-i<2&&r.hasChildNodes()&&(n=r.childNodes[i]),r.nodeType===3&&a.nodeType===3&&(r.length===i?r=ah(r.nextSibling,!0):r=r.parentNode,o===0?a=ah(a.previousSibling,!1):a=a.parentNode,r&&r===a))?r:n&&n.nodeType===3?n.parentNode:n},yT=function(e,t,n,r){var a,i=[],o=e.getRoot();if(n=e.getParent(n||nh(o,t,t.collapsed),e.isBlock),r=e.getParent(r||rh(o,t,t.collapsed),e.isBlock),n&&n!==o&&i.push(n),n&&r&&n!==r){a=n;for(var u=new Ge(n,o);(a=u.next())&&a!==r;)e.isBlock(a)&&i.push(a)}return r&&n!==r&&r!==o&&i.push(r),i},CT=function(e,t,n){return b.from(t).map(function(r){var a=e.nodeIndex(r),i=e.createRng();return i.setStart(r.parentNode,a),i.setEnd(r.parentNode,a+1),n&&(Uf(e,i,r,!0),Uf(e,i,r,!1)),i})},il=function(e,t){return De(t,function(n){var r=e.fire("GetSelectionRange",{range:n});return r.range!==n?r.range:n})},wT={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},Yo=function(e,t,n){var r=n?"lastChild":"firstChild",a=n?"prev":"next";if(e[r])return e[r];if(e!==t){var i=e[a];if(i)return i;for(var o=e.parent;o&&o!==t;o=o.parent)if(i=o[a],i)return i}},ST=function(e){if(!Nr(e.value))return!1;var t=e.parent;return!(t&&(t.name!=="span"||t.attr("style"))&&/^[ ]+$/.test(e.value))},ih=function(e){var t=e.name==="a"&&!e.attr("href")&&e.attr("id");return e.attr("name")||e.attr("id")&&!e.firstChild||e.attr("data-mce-bookmark")||t},Xt=function(){function e(t,n){this.name=t,this.type=n,n===1&&(this.attributes=[],this.attributes.map={})}return e.create=function(t,n){var r=new e(t,wT[t]||1);return n&&Pe(n,function(a,i){r.attr(i,a)}),r},e.prototype.replace=function(t){var n=this;return t.parent&&t.remove(),n.insert(t,n),n.remove(),n},e.prototype.attr=function(t,n){var r=this,a;if(typeof t!="string")return t!=null&&Pe(t,function(o,u){r.attr(u,o)}),r;if(a=r.attributes){if(n!==void 0){if(n===null){if(t in a.map){delete a.map[t];for(var i=a.length;i--;)if(a[i].name===t)return a.splice(i,1),r}return r}if(t in a.map){for(var i=a.length;i--;)if(a[i].name===t){a[i].value=n;break}}else a.push({name:t,value:n});return a.map[t]=n,r}return a.map[t]}},e.prototype.clone=function(){var t=this,n=new e(t.name,t.type),r;if(r=t.attributes){var a=[];a.map={};for(var i=0,o=r.length;i=s.length){for(i=0,o=u.length;i=s.length||u[i]!==s[i]){r=i+1;break}}if(u.length=u.length||u[i]!==s[i]){r=i+1;break}}if(r===1)return n;for(i=0,o=u.length-(r-1);i=0;r--)if(!(f[r].length===0||f[r]===".")){if(f[r]===".."){a++;continue}if(a>0){a--;continue}i.push(f[r])}return r=s.length-a,r<=0?o=ji(i).join("/"):o=s.slice(0,r).join("/")+"/"+ji(i).join("/"),o.indexOf("/")!==0&&(o="/"+o),u&&o.lastIndexOf("/")!==o.length-1&&(o+=u),o},e.prototype.getURI=function(t){t===void 0&&(t=!1);var n;return(!this.source||t)&&(n="",t||(this.protocol?n+=this.protocol+"://":n+="//",this.userInfo&&(n+=this.userInfo+"@"),this.host&&(n+=this.host),this.port&&(n+=":"+this.port)),this.path&&(n+=this.path),this.query&&(n+="?"+this.query),this.anchor&&(n+="#"+this.anchor),this.source=n),this.source},e}(),_T=_.makeMap("button,fieldset,form,iframe,img,image,input,object,output,select,textarea"),DT=function(e){return e.indexOf("data-")===0||e.indexOf("aria-")===0},OT=fs(function(){return document.implementation.createHTMLDocument("parser")}),ul=function(e,t,n){for(var r=/<([!?\/])?([A-Za-z0-9\-_:.]+)/g,a=/(?:\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\s*|\/)>/g,i=e.getShortEndedElements(),o=1,u=n;o!==0;)for(r.lastIndex=u;;){var s=r.exec(t);if(s===null)return u;if(s[1]==="!"){Sr(s[2],"--")?u=sl(t,!1,s.index+3):u=sl(t,!0,s.index+1);break}else{a.lastIndex=r.lastIndex;var f=a.exec(t);if(Ka(f)||f.index!==r.lastIndex)continue;s[1]==="/"?o-=1:pe(i,s[2])||(o+=1),u=r.lastIndex+f[0].length;break}}return u},PT=function(e,t){return/^\s*\[if [\w\W]+\]>.*/.test(e.substr(t))},sl=function(e,t,n){n===void 0&&(n=0);var r=e.toLowerCase();if(r.indexOf("[if ",n)!==-1&&PT(r,n)){var a=r.indexOf("[endif]",n);return r.indexOf(">",a)}else if(t){var i=r.indexOf(">",n);return i!==-1?i:r.length}else{var o=/--!?>/g;o.lastIndex=n;var u=o.exec(e);return u?u.index+u[0].length:r.length}},IT=function(e,t){var n=e.exec(t);if(n){var r=n[1],a=n[2];return typeof r=="string"&&r.toLowerCase()==="data-mce-bogus"?a:null}else return null},Qo=function(e,t){t===void 0&&(t=Zn()),e=e||{};var n=OT(),r=n.createElement("form");e.fix_self_closing!==!1&&(e.fix_self_closing=!0);var a=e.comment?e.comment:ve,i=e.cdata?e.cdata:ve,o=e.text?e.text:ve,u=e.start?e.start:ve,s=e.end?e.end:ve,f=e.pi?e.pi:ve,l=e.doctype?e.doctype:ve,c=function(d,m){m===void 0&&(m="html");for(var p=d.html,h,y=0,g,E,S=[],C,x,B,L,ne,q,D,ee,U,W,F,V,K,O,j,fe,ge,he=0,We=Yn.decode,Be=_.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),lt=m==="html"?0:1,xt=function(Se){var Ee,Ue;for(Ee=S.length;Ee--&&S[Ee].name!==Se;);if(Ee>=0){for(Ue=S.length-1;Ue>=Ee;Ue--)Se=S[Ue],Se.valid&&s(Se.name);S.length=Ee}},P=function(Se,Ee){return o(ol(Se,d),Ee)},z=function(Se){Se!==""&&(Se.charAt(0)===">"&&(Se=" "+Se),!e.allow_conditional_comments&&Se.substr(0,3).toLowerCase()==="[if"&&(Se=" "+Se),a(ol(Se,d)))},Z=function(Se){return ol(Se,d)},N=function(Se,Ee){var Ue=Se||"",fn=!Sr(Ue,"--"),ln=sl(p,fn,Ee);return Se=p.substr(Ee,ln-Ee),z(fn?Ue+Se:Se),ln+1},$=function(Se,Ee,Ue,fn,ln){if(Ee=Ee.toLowerCase(),Ue=Z(Ee in Fe?Ee:We(Ue||fn||ln||"")),Le&&!ne&&DT(Ee)===!1){var cn=F[Ee];if(!cn&&V){for(var gr=V.length;gr--&&(cn=V[gr],!cn.pattern.test(Ee)););gr===-1&&(cn=null)}if(!cn||cn.validValues&&!(Ue in cn.validValues))return}var Hc=Ee==="name"||Ee==="id";Hc&&Se in _T&&(Ue in n||Ue in r)||Be[Ee]&&!fr.isDomSafe(Ue,Se,e)||ne&&(Ee in Be||Ee.indexOf("on")===0)||(C.map[Ee]=Ue,C.push({name:Ee,value:Ue}))},I=new RegExp(`<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:![Dd][Oo][Cc][Tt][Yy][Pp][Ee]([\\w\\W]*?)>)|(?:!(--)?)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_:.]*)(\\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\\s*|\\/)>))`,"g"),J=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,te=t.getShortEndedElements(),Ce=e.self_closing_elements||t.getSelfClosingElements(),Fe=t.getBoolAttrs(),Le=e.validate,Hn=e.remove_internals,ct=e.fix_self_closing,pt=t.getSpecialElements(),Me=p+">";h=I.exec(Me);){var Ot=h[0];if(yp.length){P(We(p.substr(h.index))),y=h.index+Ot.length;continue}g=g.toLowerCase(),g.charAt(0)===":"&&(g=g.substr(1)),q=g in te,ct&&Ce[g]&&S.length>0&&S[S.length-1].name===g&&xt(g);var ht=IT(J,h[9]);if(ht!==null){if(ht==="all"){y=ul(t,p,I.lastIndex),I.lastIndex=y;continue}ee=!1}if(!Le||(D=t.getElementRule(g))){if(ee=!0,Le&&(F=D.attributes,V=D.attributePatterns),(W=h[9])?(ne=W.indexOf("data-mce-type")!==-1,ne&&Hn&&(ee=!1),C=[],C.map={},W.replace(J,function(Se,Ee,Ue,fn,ln){return $(g,Ee,Ue,fn,ln),""})):(C=[],C.map={}),Le&&!ne){if(K=D.attributesRequired,O=D.attributesDefault,j=D.attributesForced,fe=D.removeEmptyAttrs,fe&&!C.length&&(ee=!1),j)for(x=j.length;x--;)U=j[x],L=U.name,ge=U.value,ge==="{$uid}"&&(ge="mce_"+he++),C.map[L]=ge,C.push({name:L,value:ge});if(O)for(x=O.length;x--;)U=O[x],L=U.name,L in C.map||(ge=U.value,ge==="{$uid}"&&(ge="mce_"+he++),C.map[L]=ge,C.push({name:L,value:ge}));if(K){for(x=K.length;x--&&!(K[x]in C.map););x===-1&&(ee=!1)}if(U=C.map["data-mce-bogus"]){if(U==="all"){y=ul(t,p,I.lastIndex),I.lastIndex=y;continue}ee=!1}}ee&&u(g,C,q)}else ee=!1;if(E=pt[g]){E.lastIndex=y=h.index+Ot.length,(h=E.exec(p))?(ee&&(B=p.substr(y,h.index-y)),y=h.index+h[0].length):(B=p.substr(y),y=p.length),ee&&(B.length>0&&P(B,!0),s(g)),I.lastIndex=y;continue}q||(!W||W.indexOf("/")!==W.length-1?S.push({name:g,valid:ee}):ee&&s(g))}else if(g=h[1])z(g);else if(g=h[2]){var _n=lt===1||e.preserve_cdata||S.length>0&&t.isValidChild(S[S.length-1].name,"#cdata");if(_n)i(g);else{y=N("",h.index+2),I.lastIndex=y;continue}}else if(g=h[3])l(g);else if((g=h[4])||Ot==="=0;x--)g=S[x],g.valid&&s(g.name)},v=function(d,m){m===void 0&&(m="html"),c(ET(d),m)};return{parse:v}};Qo.findEndTag=ul;var LT=function(e,t){var n=new RegExp(["\\s?("+e.join("|")+')="[^"]+"'].join("|"),"gi");return t.replace(n,"")},uh=function(e,t){for(var n=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,r=e.schema,a=LT(e.getTempAttrs(),t),i=r.getShortEndedElements(),o;o=n.exec(a);){var u=n.lastIndex,s=o[0].length,f=void 0;i[o[1]]?f=u:f=Qo.findEndTag(r,a,u),a=a.substring(0,u-s)+a.substring(f),n.lastIndex=u-s}return Xn(a)},$T=uh,FT=function(e,t){var n=ft(e),r=new RegExp("^(<"+n+"[^>]*>( | |\\s|\xA0|
|)<\\/"+n+`>[\r diff --git a/public/js/build/TaskDetail.f1c924a1.js b/public/js/build/TaskDetail.2b58e274.js similarity index 99% rename from public/js/build/TaskDetail.f1c924a1.js rename to public/js/build/TaskDetail.2b58e274.js index d3ddfd564..420f82373 100644 --- a/public/js/build/TaskDetail.f1c924a1.js +++ b/public/js/build/TaskDetail.2b58e274.js @@ -1 +1 @@ -import{n as r,d as c,m as h}from"./app.3d81bfbf.js";import u from"./TEditor.443b30fe.js";import{P as m,T as p}from"./ProjectLog.7a036454.js";import{C as f,D as k}from"./DialogWrapper.68f3aecd.js";import{T as _}from"./TaskMenu.bdcf4604.js";import{U as v}from"./UserSelect.6a5dfe83.js";var g=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("Upload",{ref:"upload",attrs:{name:"files",action:"",multiple:"",format:t.uploadFormat,"show-upload-list":!1,"max-size":t.maxSize,"on-format-error":t.handleFormatError,"on-exceeded-size":t.handleMaxSize,"before-upload":t.handleBeforeUpload}})},b=[];const D={name:"TaskUpload",props:{maxSize:{type:Number,default:1024e3}},data(){return{uploadFormat:["jpg","jpeg","webp","png","gif","doc","docx","xls","xlsx","ppt","pptx","txt","esp","pdf","rar","zip","gz","ai","avi","bmp","cdr","eps","mov","mp3","mp4","pr","psd","svg","tif"]}},methods:{handleFormatError(t){$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+t.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u53D1\u9001\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(t){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+t.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u53D1\u9001\u8D85\u8FC7"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleBeforeUpload(t){return this.$emit("on-select-file",t),!1},handleClick(){this.$refs.upload.handleClick()}}},n={};var w=r(D,g,b,!1,C,null,null,null);function C(t){for(let s in n)this[s]=n[s]}var y=function(){return w.exports}(),A=function(){var t=this,s=t.$createElement,e=t._self._c||s;return t.ready&&t.taskDetail.parent_id>0?e("li",[e("div",{staticClass:"subtask-icon"},[e("TaskMenu",{ref:`taskMenu_${t.taskDetail.id}`,attrs:{disabled:t.taskId===0,task:t.taskDetail,"load-status":t.taskDetail.loading===!0},on:{"on-update":t.getLogLists}})],1),t.taskDetail.flow_item_name?e("div",{staticClass:"subtask-flow"},[e("span",{class:t.taskDetail.flow_item_status,on:{click:function(a){return a.stopPropagation(),t.openMenu(a,t.taskDetail)}}},[t._v(t._s(t.taskDetail.flow_item_name))])]):t._e(),e("div",{staticClass:"subtask-name"},[e("Input",{ref:"name",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:8},maxlength:255,enterkeyhint:"done"},on:{"on-blur":function(a){return t.updateBlur("name")},"on-keydown":t.onNameKeydown},model:{value:t.taskDetail.name,callback:function(a){t.$set(t.taskDetail,"name",a)},expression:"taskDetail.name"}})],1),e("DatePicker",{staticClass:"subtask-time",attrs:{open:t.timeOpen,options:t.timeOptions,format:"yyyy/MM/dd HH:mm",type:"datetimerange",placement:"bottom-end",transfer:""},on:{"on-open-change":t.timeChange,"on-clear":t.timeClear,"on-ok":t.timeOk},model:{value:t.timeValue,callback:function(a){t.timeValue=a},expression:"timeValue"}},[!t.taskDetail.complete_at&&t.taskDetail.end_at&&t.taskDetail.end_at!=t.mainEndAt?e("div",{class:["time",t.taskDetail.today?"today":"",t.taskDetail.overdue?"overdue":""],on:{click:t.openTime}},[t._v(" "+t._s(t.expiresFormat(t.taskDetail.end_at))+" ")]):e("Icon",{staticClass:"clock",attrs:{type:"ios-clock-outline"},on:{click:t.openTime}})],1),e("UserSelect",{staticClass:"subtask-avatar",attrs:{"multiple-max":10,"avatar-size":20,title:t.$L("\u4FEE\u6539\u8D1F\u8D23\u4EBA"),"add-icon":!1,"project-id":t.taskDetail.project_id,"before-submit":t.onOwner},model:{value:t.ownerData.owner_userid,callback:function(a){t.$set(t.ownerData,"owner_userid",a)},expression:"ownerData.owner_userid"}})],1):t.ready?e("div",{class:{"task-detail":!0,"open-dialog":t.hasOpenDialog,completed:t.taskDetail.complete_at},style:t.taskDetailStyle},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.taskDetail.id>0,expression:"taskDetail.id > 0"}],staticClass:"task-info"},[e("div",{staticClass:"head"},[e("TaskMenu",{ref:`taskMenu_${t.taskDetail.id}`,staticClass:"icon",attrs:{disabled:t.taskId===0,task:t.taskDetail,size:"medium","color-show":!1},on:{"on-update":t.getLogLists}}),t.taskDetail.flow_item_name?e("div",{staticClass:"flow"},[e("span",{class:t.taskDetail.flow_item_status,on:{click:function(a){return a.stopPropagation(),t.openMenu(a,t.taskDetail)}}},[t._v(t._s(t.taskDetail.flow_item_name))])]):t._e(),t.taskDetail.archived_at?e("div",{staticClass:"flow"},[e("span",{staticClass:"archived",on:{click:function(a){return a.stopPropagation(),t.openMenu(a,t.taskDetail)}}},[t._v(t._s(t.$L("\u5DF2\u5F52\u6863")))])]):t._e(),e("div",{staticClass:"nav"},[t.projectName?e("p",[e("span",[t._v(t._s(t.projectName))])]):t._e(),t.columnName?e("p",[e("span",[t._v(t._s(t.columnName))])]):t._e(),t.taskDetail.id?e("p",[e("span",[t._v(t._s(t.taskDetail.id))])]):t._e()]),e("div",{staticClass:"function"},[t.getOwner.length===0?e("EPopover",{attrs:{placement:"bottom"},model:{value:t.receiveShow,callback:function(a){t.receiveShow=a},expression:"receiveShow"}},[e("div",{staticClass:"task-detail-receive"},[e("div",{staticClass:"receive-title"},[e("Icon",{attrs:{type:"ios-help-circle"}}),t._v(" "+t._s(t.$L("\u786E\u8BA4\u8BA1\u5212\u65F6\u95F4\u9886\u53D6\u4EFB\u52A1"))+" ")],1),e("div",{staticClass:"receive-time"},[e("DatePicker",{attrs:{options:t.timeOptions,format:"yyyy/MM/dd HH:mm",type:"datetimerange",placeholder:t.$L("\u8BF7\u8BBE\u7F6E\u8BA1\u5212\u65F6\u95F4"),clearable:!1,editable:!1},model:{value:t.timeValue,callback:function(a){t.timeValue=a},expression:"timeValue"}})],1),e("div",{staticClass:"receive-bottom"},[e("Button",{attrs:{size:"small",type:"text"},on:{click:function(a){t.receiveShow=!1}}},[t._v("\u53D6\u6D88")]),e("Button",{attrs:{loading:t.ownerLoad>0,size:"small",type:"primary"},on:{click:function(a){return t.onOwner(!0)}}},[t._v("\u786E\u5B9A")])],1)]),e("Button",{staticClass:"pick",attrs:{slot:"reference",loading:t.ownerLoad>0,type:"primary"},slot:"reference"},[t._v(t._s(t.$L("\u6211\u8981\u9886\u53D6\u4EFB\u52A1")))])],1):t._e(),t.$Electron?e("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch,content:t.$L("\u65B0\u7A97\u53E3\u6253\u5F00")}},[e("i",{staticClass:"taskfont open",on:{click:t.openNewWin}},[t._v("\uE776")])]):t._e(),e("div",{staticClass:"menu"},[e("TaskMenu",{attrs:{disabled:t.taskId===0,task:t.taskDetail,icon:"ios-more","completed-icon":"ios-more",size:"medium","color-show":!1},on:{"on-update":t.getLogLists}})],1)],1)],1),e("Scrollbar",{attrs:{"class-name":"scroller"}},[e("div",{staticClass:"title"},[e("Input",{ref:"name",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:8},maxlength:255,enterkeyhint:"done"},on:{"on-blur":function(a){return t.updateBlur("name")},"on-keydown":t.onNameKeydown},model:{value:t.taskDetail.name,callback:function(a){t.$set(t.taskDetail,"name",a)},expression:"taskDetail.name"}})],1),e("div",{staticClass:"desc"},[e("TEditor",{ref:"desc",attrs:{value:t.taskContent,plugins:t.taskPlugins,options:t.taskOptions,"option-full":t.taskOptionFull,placeholder:t.$L("\u8BE6\u7EC6\u63CF\u8FF0..."),"scroll-hide-operate-class-name":"task-modal",inline:""},on:{"on-blur":function(a){return t.updateBlur("content")}}})],1),e("Form",{staticClass:"items",attrs:{"label-position":"left","label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[t.taskDetail.p_name?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6EC")]),t._v(t._s(t.$L("\u4F18\u5148\u7EA7"))+" ")]),e("ul",{staticClass:"item-content"},[e("li",[e("EDropdown",{ref:"priority",attrs:{trigger:"click",placement:"bottom"},on:{command:function(a){return t.updateData("priority",a)}}},[e("TaskPriority",{attrs:{backgroundColor:t.taskDetail.p_color}},[t._v(t._s(t.taskDetail.p_name))]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.taskPriority,function(a,i){return e("EDropdownItem",{key:i,attrs:{command:a}},[e("i",{staticClass:"taskfont",style:{color:a.color},domProps:{innerHTML:t._s(t.taskDetail.p_name==a.name?"":"")}}),t._v(" "+t._s(a.name)+" ")])}),1)],1)],1)])]):t._e(),t.getOwner.length>0?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6E4")]),t._v(t._s(t.$L("\u8D1F\u8D23\u4EBA"))+" ")]),e("UserSelect",{staticClass:"item-content user",attrs:{"multiple-max":10,"avatar-size":28,title:t.$L("\u4FEE\u6539\u8D1F\u8D23\u4EBA"),"project-id":t.taskDetail.project_id,"add-icon":!1,"before-submit":t.onOwner},model:{value:t.ownerData.owner_userid,callback:function(a){t.$set(t.ownerData,"owner_userid",a)},expression:"ownerData.owner_userid"}})],1):t._e(),t.getAssist.length>0||t.assistForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE63F")]),t._v(t._s(t.$L("\u534F\u52A9\u4EBA\u5458"))+" ")]),e("UserSelect",{ref:"assist",staticClass:"item-content user",attrs:{"multiple-max":10,"avatar-size":28,title:t.$L(t.getAssist.length>0?"\u4FEE\u6539\u534F\u52A9\u4EBA\u5458":"\u6DFB\u52A0\u534F\u52A9\u4EBA\u5458"),"project-id":t.taskDetail.project_id,"disabled-choice":t.assistData.disabled,"add-icon":!1,"before-submit":t.onAssist},model:{value:t.assistData.assist_userid,callback:function(a){t.$set(t.assistData,"assist_userid",a)},expression:"assistData.assist_userid"}})],1):t._e(),e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE77B")]),e("EDropdown",{ref:"eDropdownRef",attrs:{trigger:"click",placement:"bottom"},on:{command:t.dropVisible}},[e("span",{staticClass:"visibility-text color"},[t._v(t._s(t.$L("\u53EF\u89C1\u6027"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE740")])]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:1}},[e("div",{staticClass:"task-menu-icon"},[t.taskDetail.is_all_visible==1?e("Icon",{staticClass:"completed",attrs:{type:"md-checkmark-circle"}}):e("Icon",{staticClass:"uncomplete",attrs:{type:"md-radio-button-off"}}),t._v(" "+t._s(t.$L("\u9879\u76EE\u4EBA\u5458"))+" ")],1)]),e("EDropdownItem",{attrs:{command:2}},[e("div",{staticClass:"task-menu-icon"},[t.taskDetail.is_all_visible==2?e("Icon",{staticClass:"completed",attrs:{type:"md-checkmark-circle"}}):e("Icon",{staticClass:"uncomplete",attrs:{type:"md-radio-button-off"}}),t._v(" "+t._s(t.$L("\u4EFB\u52A1\u4EBA\u5458"))+" ")],1)]),e("EDropdownItem",{attrs:{command:3}},[e("div",{staticClass:"task-menu-icon"},[t.taskDetail.is_all_visible==3?e("Icon",{staticClass:"completed",attrs:{type:"md-checkmark-circle"}}):e("Icon",{staticClass:"uncomplete",attrs:{type:"md-radio-button-off"}}),t._v(" "+t._s(t.$L("\u6307\u5B9A\u6210\u5458"))+" ")],1)])],1)],1)],1),e("div",{staticClass:"item-content user"},[t.taskDetail.is_all_visible==1?e("span",{staticClass:"visibility-text",on:{click:t.showCisibleDropdown}},[t._v(t._s(t.$L("\u9879\u76EE\u4EBA\u5458\u53EF\u89C1")))]):t.taskDetail.is_all_visible==2?e("span",{staticClass:"visibility-text",on:{click:t.showCisibleDropdown}},[t._v(t._s(t.$L("\u4EFB\u52A1\u4EBA\u5458\u53EF\u89C1")))]):e("UserSelect",{ref:"visibleUserSelectRef",attrs:{"avatar-size":28,title:t.$L("\u9009\u62E9\u6307\u5B9A\u4EBA\u5458"),"project-id":t.taskDetail.project_id,"add-icon":!1},on:{"on-show-change":t.visibleUserSelectShowChange},model:{value:t.taskDetail.visibility_appointor,callback:function(a){t.$set(t.taskDetail,"visibility_appointor",a)},expression:"taskDetail.visibility_appointor"}})],1)]),t.taskDetail.end_at||t.timeForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6E8")]),t._v(t._s(t.$L("\u622A\u6B62\u65F6\u95F4"))+" ")]),e("ul",{staticClass:"item-content"},[e("li",[e("DatePicker",{attrs:{open:t.timeOpen,options:t.timeOptions,format:"yyyy/MM/dd HH:mm",type:"datetimerange",transfer:""},on:{"on-open-change":t.timeChange,"on-clear":t.timeClear,"on-ok":t.timeOk},model:{value:t.timeValue,callback:function(a){t.timeValue=a},expression:"timeValue"}},[e("div",{staticClass:"picker-time"},[e("div",{staticClass:"time",on:{click:t.openTime}},[t._v(t._s(t.taskDetail.end_at?t.cutTime:"--"))]),!t.taskDetail.complete_at&&t.taskDetail.end_at?[t.within24Hours(t.taskDetail.end_at)?e("Tag",{attrs:{color:"blue"}},[e("i",{staticClass:"taskfont"},[t._v("\uE71D")]),t._v(t._s(t.expiresFormat(t.taskDetail.end_at)))]):t._e(),t.isOverdue(t.taskDetail)?e("Tag",{attrs:{color:"red"}},[t._v(t._s(t.$L("\u8D85\u671F\u672A\u5B8C\u6210")))]):t._e()]:t._e()],2)])],1)])]):t._e(),t.taskDetail.loop&&t.taskDetail.loop!="never"||t.loopForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE93F")]),t._v(t._s(t.$L("\u91CD\u590D\u5468\u671F"))+" ")]),e("ul",{staticClass:"item-content"},[e("li",[e("EDropdown",{ref:"loop",attrs:{trigger:"click",placement:"bottom"},on:{command:function(a){return t.updateData("loop",a)}}},[e("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch||!t.taskDetail.loop_at,content:`${t.$L("\u4E0B\u4E2A\u5468\u671F")}: ${t.taskDetail.loop_at}`,placement:"right"}},[e("span",[t._v(t._s(t.$L(t.loopLabel(t.taskDetail.loop))))])]),e("EDropdownMenu",{staticClass:"task-detail-loop",attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.loops,function(a){return e("EDropdownItem",{key:a.key,attrs:{command:a.key}},[t._v(" "+t._s(t.$L(a.label))+" ")])}),1)],1)],1)])]):t._e(),t.fileList.length>0?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6E6")]),t._v(t._s(t.$L("\u9644\u4EF6"))+" ")]),e("ul",{staticClass:"item-content file"},[t.taskDetail.file_num>50?e("li",{staticClass:"tip"},[t._v(t._s(t.$L(`\u5171${t.taskDetail.file_num}\u4E2A\u6587\u4EF6\uFF0C\u4EC5\u663E\u793A\u6700\u65B050\u4E2A`)))]):t._e(),t._l(t.fileList,function(a){return e("li",[a.id?e("img",{staticClass:"file-ext",attrs:{src:a.thumb}}):e("Loading",{staticClass:"file-load"}),e("div",{staticClass:"file-name"},[t._v(t._s(a.name))]),e("div",{staticClass:"file-size"},[t._v(t._s(t.$A.bytesToSize(a.size)))]),e("div",{staticClass:"file-menu",class:{show:a._show_menu}},[e("Icon",{attrs:{type:"md-eye"},on:{click:function(i){return t.viewFile(a)}}}),e("Icon",{attrs:{type:"md-arrow-round-down"},on:{click:function(i){return t.downFile(a)}}}),e("EPopover",{staticClass:"file-delete",model:{value:a._show_menu,callback:function(i){t.$set(a,"_show_menu",i)},expression:"file._show_menu"}},[e("div",{staticClass:"task-detail-delete-file-popover"},[e("p",[t._v(t._s(t.$L("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u6587\u4EF6\u5417\uFF1F")))]),e("div",{staticClass:"buttons"},[e("Button",{attrs:{size:"small",type:"text"},on:{click:function(i){a._show_menu=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{size:"small",type:"primary"},on:{click:function(i){return t.deleteFile(a)}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)]),e("i",{staticClass:"taskfont del",attrs:{slot:"reference"},slot:"reference"},[t._v("\uE6EA")])])],1)],1)})],2),e("ul",{staticClass:"item-content"},[e("li",[e("div",{staticClass:"add-button",on:{click:function(a){return t.onUploadClick(!0)}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F2")]),t._v(t._s(t.$L("\u6DFB\u52A0\u9644\u4EF6"))+" ")])])])]):t._e(),t.subList.length>0||t.addsubForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6F0")]),t._v(t._s(t.$L("\u5B50\u4EFB\u52A1"))+" ")]),e("ul",{staticClass:"item-content subtask"},t._l(t.subList,function(a,i){return e("TaskDetail",{key:i,ref:`subTask_${a.id}`,refInFor:!0,attrs:{"task-id":a.id,"open-task":a,"main-end-at":t.taskDetail.end_at,"can-update-blur":t.canUpdateBlur}})}),1),e("ul",{class:["item-content",t.subList.length===0?"nosub":""]},[e("li",[t.addsubShow?e("Input",{ref:"addsub",staticClass:"add-input",class:{loading:t.addsubLoad>0},attrs:{placeholder:t.$L("+ \u8F93\u5165\u5B50\u4EFB\u52A1\uFF0C\u56DE\u8F66\u6DFB\u52A0\u5B50\u4EFB\u52A1"),icon:t.addsubLoad>0?"ios-loading":"",enterkeyhint:"done"},on:{"on-blur":t.addsubChackClose,"on-keydown":t.addsubKeydown},model:{value:t.addsubName,callback:function(a){t.addsubName=a},expression:"addsubName"}}):e("div",{staticClass:"add-button",on:{click:t.addsubOpen}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F2")]),t._v(t._s(t.$L("\u6DFB\u52A0\u5B50\u4EFB\u52A1"))+" ")])],1)])]):t._e()],1),t.menuList.length>0?e("div",{staticClass:"add"},[e("EDropdown",{attrs:{trigger:"click",placement:"bottom"},on:{command:t.dropAdd}},[e("div",{staticClass:"add-button"},[e("i",{staticClass:"taskfont"},[t._v("\uE6F2")]),t._v(" "+t._s(t.$L("\u6DFB\u52A0"))+" "),e("em",[t._v(t._s(t.menuText))])]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.menuList,function(a,i){return e("EDropdownItem",{key:i,attrs:{command:a.command}},[e("div",{staticClass:"item"},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(a.icon)}}),t._v(t._s(t.$L(a.name))+" ")])])}),1)],1)],1):t._e()],1),e("TaskUpload",{ref:"upload",staticClass:"upload",on:{"on-select-file":t.onSelectFile}})],1),e("div",{directives:[{name:"show",rawName:"v-show",value:t.taskDetail.id>0,expression:"taskDetail.id > 0"}],staticClass:"task-dialog",style:t.dialogStyle},[t.hasOpenDialog?[t.taskId>0?e("DialogWrapper",{ref:"dialog",attrs:{"dialog-id":t.taskDetail.dialog_id}},[e("div",{staticClass:"head",attrs:{slot:"head"},slot:"head"},[e("Icon",{staticClass:"icon",attrs:{type:"ios-chatbubbles-outline"}}),e("div",{staticClass:"nav"},[e("p",{class:{active:t.navActive=="dialog"},on:{click:function(a){t.navActive="dialog"}}},[t._v(t._s(t.$L("\u804A\u5929")))]),e("p",{class:{active:t.navActive=="log"},on:{click:function(a){t.navActive="log"}}},[t._v(t._s(t.$L("\u52A8\u6001")))]),t.navActive=="log"?e("div",{staticClass:"refresh"},[t.logLoadIng?e("Loading"):e("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getLogLists}})],1):t._e()])],1)]):t._e(),t.navActive=="log"&&t.taskId>0?e("ProjectLog",{ref:"log",attrs:{"task-id":t.taskDetail.id},on:{"on-load-change":t.logLoadChange}}):t._e()]:e("div",[e("div",{staticClass:"head"},[e("Icon",{staticClass:"icon",attrs:{type:"ios-chatbubbles-outline"}}),e("div",{staticClass:"nav"},[e("p",{class:{active:t.navActive=="dialog"},on:{click:function(a){t.navActive="dialog"}}},[t._v(t._s(t.$L("\u804A\u5929")))]),e("p",{class:{active:t.navActive=="log"},on:{click:function(a){t.navActive="log"}}},[t._v(t._s(t.$L("\u52A8\u6001")))]),t.navActive=="log"?e("div",{staticClass:"refresh"},[t.logLoadIng?e("Loading"):e("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getLogLists}})],1):t._e()]),e("div",{staticClass:"menu"},[t.navActive=="dialog"&&t.taskDetail.msg_num>0?e("div",{staticClass:"menu-item",on:{click:function(a){return a.stopPropagation(),t.onSend("open")}}},[t.openLoad>0?e("div",{staticClass:"menu-load"},[e("Loading")],1):t._e(),t._v(" "+t._s(t.$L("\u4EFB\u52A1\u804A\u5929"))+" "),e("em",[t._v("("+t._s(t.taskDetail.msg_num>999?"999+":t.taskDetail.msg_num)+")")]),e("i",{staticClass:"taskfont"},[t._v("\uE703")])]):t._e()])],1),t.navActive=="log"&&t.taskId>0?e("ProjectLog",{ref:"log",attrs:{"task-id":t.taskDetail.id,"show-load":!1},on:{"on-load-change":t.logLoadChange}}):e("div",{staticClass:"no-dialog",on:{drop:function(a){return a.preventDefault(),t.taskPasteDrag(a,"drag")},dragover:function(a){return a.preventDefault(),t.taskDragOver(!0,a)},dragleave:function(a){return a.preventDefault(),t.taskDragOver(!1,a)}}},[e("div",{staticClass:"no-tip"},[t._v(t._s(t.$L("\u6682\u65E0\u6D88\u606F")))]),e("div",{staticClass:"no-input"},[e("ChatInput",{ref:"chatInput",attrs:{"task-id":t.taskId,loading:t.sendLoad>0,maxlength:2e5,placeholder:t.$L("\u8F93\u5165\u6D88\u606F...")},on:{"on-more":t.onEventMore,"on-file":t.onSelectFile,"on-record":t.onRecord,"on-send":t.onSend},model:{value:t.msgText,callback:function(a){t.msgText=a},expression:"msgText"}})],1),t.dialogDrag?e("div",{staticClass:"drag-over",on:{click:function(a){t.dialogDrag=!1}}},[e("div",{staticClass:"drag-text"},[t._v(t._s(t.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):t._e()])],1)],2),t.taskDetail.id?t._e():e("div",{staticClass:"task-load"},[e("Loading")],1)]):t._e()},L=[];const x={name:"TaskDetail",components:{UserSelect:v,ChatInput:f,TaskMenu:_,ProjectLog:m,DialogWrapper:k,TaskUpload:y,TaskPriority:p,TEditor:u},props:{taskId:{type:Number,default:0},openTask:{type:Object,default:()=>({})},mainEndAt:{default:null},canUpdateBlur:{type:Boolean,default:!0},modalMode:{type:Boolean,default:!1}},data(){return{ready:!1,taskDetail:{},ownerData:{},ownerLoad:0,receiveShow:!1,assistForce:!1,assistData:{},assistLoad:0,addsubForce:!1,addsubShow:!1,addsubName:"",addsubLoad:0,timeForce:!1,timeOpen:!1,timeValue:[],timeOptions:{shortcuts:$A.timeOptionShortcuts()},loopForce:!1,nowTime:$A.Time(),nowInterval:null,msgText:"",msgFile:[],msgRecord:{},navActive:"dialog",logLoadIng:!1,sendLoad:0,openLoad:0,taskPlugins:["advlist autolink lists link image charmap print preview hr anchor pagebreak","searchreplace visualblocks visualchars code","insertdatetime media nonbreaking save table directionality","emoticons paste codesample","autoresize"],taskOptions:{statusbar:!1,menubar:!1,autoresize_bottom_margin:2,min_height:200,max_height:380,contextmenu:"bold italic underline forecolor backcolor | link | codesample | uploadImages imagePreview | preview screenload",valid_elements:"a[href|title|target=_blank],em,strong/b,div[align],span[style],a,br,p,img[src|alt|witdh|height],pre[class],code",extended_valid_elements:"a[href|title|target=_blank]",toolbar:!1},taskOptionFull:{menubar:"file edit view",valid_elements:"a[href|title|target=_blank],em,strong/b,div[align],span[style],a,br,p,img[src|alt|witdh|height],pre[class],code",extended_valid_elements:"a[href|title|target=_blank]",toolbar:"uploadImages | bold italic underline forecolor backcolor | codesample | preview screenload"},dialogDrag:!1,imageAttachment:!0,receiveTaskSubscribe:null,loops:[{key:"never",label:"\u4ECE\u4E0D"},{key:"day",label:"\u6BCF\u5929"},{key:"weekdays",label:"\u6BCF\u4E2A\u5DE5\u4F5C\u65E5"},{key:"week",label:"\u6BCF\u5468"},{key:"twoweeks",label:"\u6BCF\u4E24\u5468"},{key:"month",label:"\u6BCF\u6708"},{key:"year",label:"\u6BCF\u5E74"},{key:"custom",label:"\u81EA\u5B9A\u4E49"}]}},created(){const t=$A.getObject(this.$route.query,"navActive");["dialog","log"].includes(t)&&(this.navActive=t)},mounted(){this.nowInterval=setInterval(()=>{this.nowTime=$A.Time()},1e3),this.receiveTaskSubscribe=c.Store.subscribe("receiveTask",()=>{this.receiveShow=!0})},destroyed(){clearInterval(this.nowInterval),this.receiveTaskSubscribe&&(this.receiveTaskSubscribe.unsubscribe(),this.receiveTaskSubscribe=null)},computed:{...h(["cacheProjects","cacheColumns","cacheTasks","taskContents","taskFiles","taskPriority","dialogId"]),projectName(){if(!this.taskDetail.project_id)return"";if(this.taskDetail.project_name)return this.taskDetail.project_name;const t=this.cacheProjects.find(({id:s})=>s==this.taskDetail.project_id);return t?t.name:""},columnName(){if(!this.taskDetail.column_id)return"";if(this.taskDetail.column_name)return this.taskDetail.column_name;const t=this.cacheColumns.find(({id:s})=>s==this.taskDetail.column_id);return t?t.name:""},taskContent(){if(!this.taskId)return"";let t=this.taskContents.find(({task_id:s})=>s==this.taskId);return t?t.content:""},fileList(){return this.taskId?this.taskFiles.filter(({task_id:t})=>t==this.taskId).sort((t,s)=>s.id-t.id):[]},subList(){return this.taskId?this.cacheTasks.filter(t=>t.parent_id==this.taskId).sort((t,s)=>t.id-s.id):[]},hasOpenDialog(){return this.taskDetail.dialog_id>0&&this.windowLandscape},dialogStyle(){const{windowHeight:t,hasOpenDialog:s}=this,e=Math.min(1100,t);if(!e)return{};if(!s)return{};const a=e>900?200:70;return{minHeight:e-a-48+"px"}},taskDetailStyle(){const{modalMode:t,windowHeight:s,hasOpenDialog:e}=this,a=Math.min(1100,s);if(t&&e){const i=a>900?200:70;return{maxHeight:a-i-30+"px"}}return{}},cutTime(){const{taskDetail:t}=this;let s=$A.Date(t.start_at,!0),e=$A.Date(t.end_at,!0),a="";return $A.formatDate("Y/m/d",s)==$A.formatDate("Y/m/d",e)?a=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("H:i",e):$A.formatDate("Y",s)==$A.formatDate("Y",e)?(a=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("m/d H:i",e),a=a.replace(/( 00:00| 23:59)/g,"")):(a=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("Y/m/d H:i",e),a=a.replace(/( 00:00| 23:59)/g,"")),a},getOwner(){const{taskDetail:t}=this;return $A.isArray(t.task_user)?t.task_user.filter(({owner:s})=>s===1).sort((s,e)=>s.id-e.id):[]},getAssist(){const{taskDetail:t}=this;return $A.isArray(t.task_user)?t.task_user.filter(({owner:s})=>s===0).sort((s,e)=>s.id-e.id):[]},menuList(){const{taskDetail:t}=this,s=[];return t.p_name||s.push({command:"priority",icon:"",name:"\u4F18\u5148\u7EA7"}),$A.isArray(t.task_user)&&t.task_user.find(({owner:e})=>e===0)||s.push({command:"assist",icon:"",name:"\u534F\u52A9\u4EBA\u5458"}),t.end_at||s.push({command:"times",icon:"",name:"\u622A\u6B62\u65F6\u95F4"}),(!t.loop||t.loop=="never")&&s.push({command:"loop",icon:"",name:"\u91CD\u590D\u5468\u671F"}),this.fileList.length==0&&s.push({command:"file",icon:"",name:"\u9644\u4EF6"}),this.subList.length==0&&s.push({command:"subtask",icon:"",name:"\u5B50\u4EFB\u52A1"}),s},menuText(){const{menuList:t}=this;let s="";return t.length>0&&t.forEach((e,a)=>{a>0&&(s+=" / "),s+=this.$L(e.name)}),s}},watch:{openTask:{handler(t){this.taskDetail=$A.cloneJSON(t),this.__openTask&&clearTimeout(this.__openTask),this.__openTask=setTimeout(s=>{var e;return(e=this.$refs.name)==null?void 0:e.resizeTextarea()},100)},immediate:!0,deep:!0},taskId:{handler(t){t>0?this.ready=!0:(this.windowPortrait&&$A.onBlur(),this.timeOpen=!1,this.timeForce=!1,this.loopForce=!1,this.assistForce=!1,this.addsubForce=!1,this.receiveShow=!1,this.$refs.chatInput&&this.$refs.chatInput.hidePopover())},immediate:!0},getOwner:{handler(t){const s=t.map(({userid:e})=>e);this.$set(this.taskDetail,"owner_userid",s),this.$set(this.ownerData,"owner_userid",s),this.$set(this.assistData,"disabled",t.map(({userid:e})=>e).filter(e=>e!=this.userId))},immediate:!0},getAssist:{handler(t){const s=t.map(({userid:e})=>e);this.$set(this.taskDetail,"assist_userid",s),this.$set(this.assistData,"assist_userid",s)},immediate:!0},receiveShow(t){t&&(this.timeValue=this.taskDetail.end_at?[this.taskDetail.start_at,this.taskDetail.end_at]:[])},"taskDetail.visibility_appointor":{handler(t){(t==null?void 0:t.length)>0&&t[0]&&(this.taskDetail.is_all_visible=3,this.updateVisible())},immediate:!0}},methods:{within24Hours(t){return $A.Date(t,!0)-this.nowTime<86400},expiresFormat(t){return $A.countDownFormat(t,this.nowTime)},isOverdue(t){return t.overdue?!0:$A.Date(t.end_at,!0)e.key===t);return s?s.label:t?`\u6BCF${t}\u5929`:"\u4ECE\u4E0D"},onNameKeydown(t){t.keyCode===13&&(t.shiftKey||(t.preventDefault(),this.updateData("name")))},checkUpdate(t){let s=!1;if(this.openTask.name!=this.taskDetail.name)if(s=!0,t===!0)this.updateData("name");else return t===!1&&this.$refs.name.focus(),!0;if(this.$refs.desc&&this.$refs.desc.getContent()!=this.taskContent)if(s=!0,t===!0)this.updateData("content");else return t===!1&&this.$refs.desc.focus(),!0;if(this.addsubShow&&this.addsubName)if(s=!0,t===!0)this.onAddsub();else return t===!1&&this.$refs.addsub.focus(),!0;return this.subList.some(({id:e})=>{this.$refs[`subTask_${e}`][0].checkUpdate(t)&&(s=!0)}),s},updateBlur(t,s){this.canUpdateBlur&&this.updateData(t,s)},updateData(t,s){let e=null;switch(t){case"priority":this.$set(this.taskDetail,"p_level",s.priority),this.$set(this.taskDetail,"p_name",s.name),this.$set(this.taskDetail,"p_color",s.color),t=["p_level","p_name","p_color"];break;case"times":if(this.taskDetail.start_at&&(Math.abs($A.Time(this.taskDetail.start_at)-$A.Time(s.start_at))>60||Math.abs($A.Time(this.taskDetail.end_at)-$A.Time(s.end_at))>60)&&typeof s.desc=="undefined"){$A.modalInput({title:"\u4FEE\u6539\u4EFB\u52A1\u65F6\u95F4",placeholder:"\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8",okText:"\u786E\u5B9A",onOk:o=>o?(this.updateData("times",Object.assign(s,{desc:o})),!1):"\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8"});return}this.$set(this.taskDetail,"times",[s.start_at,s.end_at,s.desc]);break;case"loop":if(s==="custom"){this.customLoop();return}this.$set(this.taskDetail,"loop",s);break;case"content":const i=this.$refs.desc.getContent();if(i==this.taskContent)return;this.$set(this.taskDetail,"content",i),e=()=>{this.$store.dispatch("saveTaskContent",{task_id:this.taskId,content:i})};break}let a={task_id:this.taskDetail.id};($A.isArray(t)?t:[t]).forEach(i=>{let o=this.taskDetail[i],d=this.openTask[i];$A.jsonStringify(o)!=$A.jsonStringify(d)&&(a[i]=o)}),!(Object.keys(a).length<=1)&&this.$store.dispatch("taskUpdate",a).then(({msg:i})=>{$A.messageSuccess(i),typeof e=="function"&&e()}).catch(({msg:i})=>{$A.modalError(i)})},customLoop(){let t=this.taskDetail.loop||1;$A.Modal.confirm({render:s=>s("div",[s("div",{style:{fontSize:"16px",fontWeight:"500",marginBottom:"20px"}},this.$L("\u91CD\u590D\u5468\u671F")),s("Input",{style:{width:"160px",margin:"0 auto"},props:{type:"number",value:t,maxlength:3},on:{input:e=>{t=$.runNum(e)}}},[s("span",{slot:"prepend"},this.$L("\u6BCF")),s("span",{slot:"append"},this.$L("\u5929"))])]),onOk:s=>{this.$Modal.remove(),t>0&&this.updateData("loop",t)},loading:!0,okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")})},onOwner(t){let s={task_id:this.taskDetail.id,owner:this.ownerData.owner_userid};if(t===!0){if(this.getOwner.length>0){this.receiveShow=!1,$A.messageError("\u4EFB\u52A1\u5DF2\u88AB\u9886\u53D6");return}let e=$A.date2string(this.timeValue,"Y-m-d H:i");if(e[0]&&e[1])$A.rightExists(e[0],"00:00")&&$A.rightExists(e[1],"00:00")&&(e[1]=e[1].replace("00:00","23:59"));else{$A.messageError("\u8BF7\u8BBE\u7F6E\u8BA1\u5212\u65F6\u95F4");return}s.times=e,s.owner=this.ownerData.owner_userid=[this.userId]}if($A.jsonStringify(this.taskDetail.owner_userid)!==$A.jsonStringify(this.ownerData.owner_userid))return $A.count(s.owner)==0&&(s.owner=""),this.ownerLoad++,new Promise((e,a)=>{this.$store.dispatch("taskUpdate",s).then(({msg:i})=>{$A.messageSuccess(i),this.ownerLoad--,this.receiveShow=!1,this.$store.dispatch("getTaskOne",this.taskDetail.id).catch(()=>{}),e()}).catch(({msg:i})=>{$A.modalError(i),this.ownerLoad--,this.receiveShow=!1,a()})})},onAssist(){if($A.jsonStringify(this.taskDetail.assist_userid)!==$A.jsonStringify(this.assistData.assist_userid))return new Promise((t,s)=>{this.getOwner.find(({userid:e})=>e===this.userId)&&this.assistData.assist_userid.find(e=>e===this.userId)?$A.modalConfirm({content:"\u4F60\u5F53\u524D\u662F\u8D1F\u8D23\u4EBA\uFF0C\u786E\u5B9A\u8981\u8F6C\u4E3A\u534F\u52A9\u4EBA\u5458\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",onOk:()=>{this.onAssistConfirm().then(t).catch(s)},onCancel:()=>{s()}}):this.onAssistConfirm().then(t).catch(s)})},onAssistConfirm(){return new Promise((t,s)=>{let e=this.assistData.assist_userid;e.length===0&&(e=!1),this.assistLoad++,this.$store.dispatch("taskUpdate",{task_id:this.taskDetail.id,assist:e}).then(({msg:a})=>{$A.messageSuccess(a),this.assistLoad--,this.$store.dispatch("getTaskOne",this.taskDetail.id).catch(()=>{}),t()}).catch(({msg:a})=>{$A.modalError(a),this.assistLoad--,s()})})},openTime(){this.timeOpen=!this.timeOpen,this.timeOpen&&(this.timeValue=this.taskDetail.end_at?[this.taskDetail.start_at,this.taskDetail.end_at]:[])},timeChange(t){t||(this.timeOpen=!1)},timeClear(){this.updateData("times",{start_at:!1,end_at:!1}),this.timeOpen=!1},timeOk(){let t=$A.date2string(this.timeValue,"Y-m-d H:i");t[0]&&t[1]&&$A.rightExists(t[0],"00:00")&&$A.rightExists(t[1],"00:00")&&(t[1]=t[1].replace("00:00","23:59")),this.updateData("times",{start_at:t[0],end_at:t[1]}),this.timeOpen=!1},addsubOpen(){this.addsubShow=!0,this.$nextTick(()=>{this.$refs.addsub.focus()})},addsubChackClose(){this.addsubName==""&&(this.addsubShow=!1)},addsubKeydown(t){if(t.keyCode===13){if(t.shiftKey||this.addsubLoad>0)return;t.preventDefault(),this.onAddsub()}},onAddsub(){if(this.addsubName==""){$A.messageError("\u4EFB\u52A1\u63CF\u8FF0\u4E0D\u80FD\u4E3A\u7A7A");return}this.addsubLoad++,this.$store.dispatch("taskAddSub",{task_id:this.taskDetail.id,name:this.addsubName}).then(({msg:t})=>{$A.messageSuccess(t),this.addsubLoad--,this.addsubName=""}).catch(({msg:t})=>{$A.modalError(t),this.addsubLoad--})},getLogLists(){this.navActive=="log"&&this.$refs.log.getLists(!0)},logLoadChange(t){this.logLoadIng=t},dropAdd(t){switch(t){case"priority":this.$set(this.taskDetail,"p_name",this.$L("\u672A\u8BBE\u7F6E")),this.$nextTick(()=>{this.$refs.priority.show()});break;case"assist":this.assistForce=!0,this.$nextTick(()=>{this.$refs.assist.onSelection()});break;case"times":this.timeForce=!0,this.$nextTick(()=>{this.openTime()});break;case"loop":this.loopForce=!0,this.$nextTick(()=>{this.$refs.loop.show()});break;case"file":this.onUploadClick(!0);break;case"subtask":this.addsubForce=!0,this.$nextTick(()=>{this.addsubOpen()});break}},onEventMore(t){["image","file"].includes(t)&&this.onUploadClick(!1)},onUploadClick(t){this.imageAttachment=!!t,this.$refs.upload.handleClick()},msgDialog(t=null,s=!1){this.sendLoad>0||this.openLoad>0||(s===!0?this.openLoad++:this.sendLoad++,this.$store.dispatch("call",{url:"project/task/dialog",data:{task_id:this.taskDetail.id}}).then(({data:e})=>{this.$store.dispatch("saveTask",{id:e.id,dialog_id:e.dialog_id}),this.$store.dispatch("saveDialog",e.dialog_data),$A.isSubElectron?this.resizeDialog().then(()=>{this.sendDialogMsg(t)}):this.$nextTick(()=>{if(this.windowPortrait){$A.onBlur();const a={time:$A.Time()+10,msgRecord:this.msgRecord,msgFile:this.msgFile,msgText:typeof t=="string"&&t?t:this.msgText,dialogId:e.dialog_id};this.msgRecord={},this.msgFile=[],this.msgText="",this.$nextTick(i=>{this.dialogId>0&&this.$store.dispatch("openTask",0),this.$store.dispatch("openDialog",e.dialog_id).then(o=>{this.$store.state.dialogMsgTransfer=a})})}else this.sendDialogMsg(t)})}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{s===!0?this.openLoad--:this.sendLoad--}))},sendDialogMsg(t=null){this.msgFile.length>0?this.$refs.dialog.sendFileMsg(this.msgFile.map(s=>Object.assign(s,{ajaxExtraData:{image_attachment:this.imageAttachment?1:0}}))):this.msgText?this.$refs.dialog.sendMsg(this.msgText):typeof t=="string"&&t&&this.$refs.dialog.sendMsg(t),this.msgFile=[],this.msgText=""},taskPasteDrag(t,s){this.dialogDrag=!1;const e=s==="drag"?t.dataTransfer.files:t.clipboardData.files;this.msgFile=Array.prototype.slice.call(e),this.msgFile.length>0&&(t.preventDefault(),this.msgDialog())},taskDragOver(t,s){let e=this.__dialogDrag=$A.randomString(8);if(!t)setTimeout(()=>{e===this.__dialogDrag&&(this.dialogDrag=t)},150);else{if(s.dataTransfer.effectAllowed==="move")return;this.dialogDrag=!0}},onSelectFile(t){this.msgFile=$A.isArray(t)?t:[t],this.msgDialog()},onRecord(t){this.msgRecord=t,this.msgDialog()},onSend(t){this.$refs.chatInput&&this.$refs.chatInput.hidePopover(),t==="open"?this.msgDialog(null,!0):this.msgDialog(t)},deleteFile(t){this.$set(t,"_show_menu",!1),this.$store.dispatch("forgetTaskFile",t.id),this.$store.dispatch("call",{url:"project/task/filedelete",data:{file_id:t.id}}).catch(({msg:s})=>{$A.modalError(s),this.$store.dispatch("getTaskFiles",this.taskDetail.id)})},openMenu(t,s){const e=this.$refs[`taskMenu_${s.id}`];e&&e.handleClick(t)},openNewWin(){let t={title:this.taskDetail.name,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,this.$el.clientWidth+72),height:Math.min(window.screen.availHeight,this.$el.clientHeight+72),minWidth:600,minHeight:450};this.hasOpenDialog&&(t.minWidth=800,t.minHeight=600),this.$Electron.sendMessage("windowRouter",{name:`task-${this.taskDetail.id}`,path:`/single/task/${this.taskDetail.id}?navActive=${this.navActive}`,force:!1,config:t}),this.$store.dispatch("openTask",0)},resizeDialog(){return new Promise(t=>{this.$Electron.sendMessage("windowSize",{width:Math.max(1100,this.windowWidth),height:Math.max(720,this.windowHeight),minWidth:800,minHeight:600,autoZoom:!0});let s=0,e=setInterval(()=>{s++,(this.$refs.dialog||s>20)&&(clearInterval(e),this.$refs.dialog&&t())},100)})},viewFile(t){if(["jpg","jpeg","webp","gif","png"].includes(t.ext)){const e=this.fileList.filter(i=>["jpg","jpeg","webp","gif","png"].includes(i.ext)),a=e.findIndex(i=>i.id===t.id);a>-1?this.$store.dispatch("previewImage",{index:a,list:e.map(i=>({src:i.path,width:i.width,height:i.height}))}):this.$store.dispatch("previewImage",{index:0,list:[{src:t.path,width:t.width,height:t.height}]});return}const s=`/single/file/task/${t.id}`;this.$Electron?this.$Electron.sendMessage("windowRouter",{name:`file-task-${t.id}`,path:s,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:`${t.name} (${$A.bytesToSize(t.size)})`,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:t.ext==="drawio"}}):this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:`${t.name} (${$A.bytesToSize(t.size)})`,url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${s}`}}):window.open($A.apiUrl(`..${s}`))},downFile(t){$A.modalConfirm({title:"\u4E0B\u8F7D\u6587\u4EF6",content:`${t.name} (${$A.bytesToSize(t.size)})`,okText:"\u7ACB\u5373\u4E0B\u8F7D",onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`project/task/filedown?file_id=${t.id}`))}})},showCisibleDropdown(){this.$refs.eDropdownRef.show()},visibleUserSelectShowChange(t){if(!t&&(this.taskDetail.visibility_appointor.length==0||!this.taskDetail.visibility_appointor[0])){let s=this.taskDetail.old_is_all_visible;this.taskDetail.is_all_visible=s>2?1:s||1,this.taskDetail.is_all_visible<3&&this.updateVisible()}},dropVisible(t){switch(t){case 1:case 2:this.taskDetail.is_all_visible=t,this.updateVisible();break;case 3:this.taskDetail.old_is_all_visible=this.taskDetail.is_all_visible,this.taskDetail.is_all_visible=t,this.$nextTick(()=>{this.$refs.visibleUserSelectRef.onSelection()});break}},updateVisible(){this.updateData(["is_all_visible","visibility_appointor"])}}},l={};var T=r(x,A,L,!1,I,null,null,null);function I(t){for(let s in l)this[s]=l[s]}var z=function(){return T.exports}();export{z as T}; +import{n as r,d as c,m as h}from"./app.28437e7d.js";import u from"./TEditor.a8b14511.js";import{P as m,T as p}from"./ProjectLog.65503d98.js";import{C as f,D as k}from"./DialogWrapper.962561b6.js";import{T as _}from"./TaskMenu.98a91192.js";import{U as v}from"./UserSelect.fe42163b.js";var g=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("Upload",{ref:"upload",attrs:{name:"files",action:"",multiple:"",format:t.uploadFormat,"show-upload-list":!1,"max-size":t.maxSize,"on-format-error":t.handleFormatError,"on-exceeded-size":t.handleMaxSize,"before-upload":t.handleBeforeUpload}})},b=[];const D={name:"TaskUpload",props:{maxSize:{type:Number,default:1024e3}},data(){return{uploadFormat:["jpg","jpeg","webp","png","gif","doc","docx","xls","xlsx","ppt","pptx","txt","esp","pdf","rar","zip","gz","ai","avi","bmp","cdr","eps","mov","mp3","mp4","pr","psd","svg","tif"]}},methods:{handleFormatError(t){$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+t.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u53D1\u9001\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(t){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+t.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u53D1\u9001\u8D85\u8FC7"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleBeforeUpload(t){return this.$emit("on-select-file",t),!1},handleClick(){this.$refs.upload.handleClick()}}},n={};var w=r(D,g,b,!1,C,null,null,null);function C(t){for(let s in n)this[s]=n[s]}var y=function(){return w.exports}(),A=function(){var t=this,s=t.$createElement,e=t._self._c||s;return t.ready&&t.taskDetail.parent_id>0?e("li",[e("div",{staticClass:"subtask-icon"},[e("TaskMenu",{ref:`taskMenu_${t.taskDetail.id}`,attrs:{disabled:t.taskId===0,task:t.taskDetail,"load-status":t.taskDetail.loading===!0},on:{"on-update":t.getLogLists}})],1),t.taskDetail.flow_item_name?e("div",{staticClass:"subtask-flow"},[e("span",{class:t.taskDetail.flow_item_status,on:{click:function(a){return a.stopPropagation(),t.openMenu(a,t.taskDetail)}}},[t._v(t._s(t.taskDetail.flow_item_name))])]):t._e(),e("div",{staticClass:"subtask-name"},[e("Input",{ref:"name",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:8},maxlength:255,enterkeyhint:"done"},on:{"on-blur":function(a){return t.updateBlur("name")},"on-keydown":t.onNameKeydown},model:{value:t.taskDetail.name,callback:function(a){t.$set(t.taskDetail,"name",a)},expression:"taskDetail.name"}})],1),e("DatePicker",{staticClass:"subtask-time",attrs:{open:t.timeOpen,options:t.timeOptions,format:"yyyy/MM/dd HH:mm",type:"datetimerange",placement:"bottom-end",transfer:""},on:{"on-open-change":t.timeChange,"on-clear":t.timeClear,"on-ok":t.timeOk},model:{value:t.timeValue,callback:function(a){t.timeValue=a},expression:"timeValue"}},[!t.taskDetail.complete_at&&t.taskDetail.end_at&&t.taskDetail.end_at!=t.mainEndAt?e("div",{class:["time",t.taskDetail.today?"today":"",t.taskDetail.overdue?"overdue":""],on:{click:t.openTime}},[t._v(" "+t._s(t.expiresFormat(t.taskDetail.end_at))+" ")]):e("Icon",{staticClass:"clock",attrs:{type:"ios-clock-outline"},on:{click:t.openTime}})],1),e("UserSelect",{staticClass:"subtask-avatar",attrs:{"multiple-max":10,"avatar-size":20,title:t.$L("\u4FEE\u6539\u8D1F\u8D23\u4EBA"),"add-icon":!1,"project-id":t.taskDetail.project_id,"before-submit":t.onOwner},model:{value:t.ownerData.owner_userid,callback:function(a){t.$set(t.ownerData,"owner_userid",a)},expression:"ownerData.owner_userid"}})],1):t.ready?e("div",{class:{"task-detail":!0,"open-dialog":t.hasOpenDialog,completed:t.taskDetail.complete_at},style:t.taskDetailStyle},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.taskDetail.id>0,expression:"taskDetail.id > 0"}],staticClass:"task-info"},[e("div",{staticClass:"head"},[e("TaskMenu",{ref:`taskMenu_${t.taskDetail.id}`,staticClass:"icon",attrs:{disabled:t.taskId===0,task:t.taskDetail,size:"medium","color-show":!1},on:{"on-update":t.getLogLists}}),t.taskDetail.flow_item_name?e("div",{staticClass:"flow"},[e("span",{class:t.taskDetail.flow_item_status,on:{click:function(a){return a.stopPropagation(),t.openMenu(a,t.taskDetail)}}},[t._v(t._s(t.taskDetail.flow_item_name))])]):t._e(),t.taskDetail.archived_at?e("div",{staticClass:"flow"},[e("span",{staticClass:"archived",on:{click:function(a){return a.stopPropagation(),t.openMenu(a,t.taskDetail)}}},[t._v(t._s(t.$L("\u5DF2\u5F52\u6863")))])]):t._e(),e("div",{staticClass:"nav"},[t.projectName?e("p",[e("span",[t._v(t._s(t.projectName))])]):t._e(),t.columnName?e("p",[e("span",[t._v(t._s(t.columnName))])]):t._e(),t.taskDetail.id?e("p",[e("span",[t._v(t._s(t.taskDetail.id))])]):t._e()]),e("div",{staticClass:"function"},[t.getOwner.length===0?e("EPopover",{attrs:{placement:"bottom"},model:{value:t.receiveShow,callback:function(a){t.receiveShow=a},expression:"receiveShow"}},[e("div",{staticClass:"task-detail-receive"},[e("div",{staticClass:"receive-title"},[e("Icon",{attrs:{type:"ios-help-circle"}}),t._v(" "+t._s(t.$L("\u786E\u8BA4\u8BA1\u5212\u65F6\u95F4\u9886\u53D6\u4EFB\u52A1"))+" ")],1),e("div",{staticClass:"receive-time"},[e("DatePicker",{attrs:{options:t.timeOptions,format:"yyyy/MM/dd HH:mm",type:"datetimerange",placeholder:t.$L("\u8BF7\u8BBE\u7F6E\u8BA1\u5212\u65F6\u95F4"),clearable:!1,editable:!1},model:{value:t.timeValue,callback:function(a){t.timeValue=a},expression:"timeValue"}})],1),e("div",{staticClass:"receive-bottom"},[e("Button",{attrs:{size:"small",type:"text"},on:{click:function(a){t.receiveShow=!1}}},[t._v("\u53D6\u6D88")]),e("Button",{attrs:{loading:t.ownerLoad>0,size:"small",type:"primary"},on:{click:function(a){return t.onOwner(!0)}}},[t._v("\u786E\u5B9A")])],1)]),e("Button",{staticClass:"pick",attrs:{slot:"reference",loading:t.ownerLoad>0,type:"primary"},slot:"reference"},[t._v(t._s(t.$L("\u6211\u8981\u9886\u53D6\u4EFB\u52A1")))])],1):t._e(),t.$Electron?e("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch,content:t.$L("\u65B0\u7A97\u53E3\u6253\u5F00")}},[e("i",{staticClass:"taskfont open",on:{click:t.openNewWin}},[t._v("\uE776")])]):t._e(),e("div",{staticClass:"menu"},[e("TaskMenu",{attrs:{disabled:t.taskId===0,task:t.taskDetail,icon:"ios-more","completed-icon":"ios-more",size:"medium","color-show":!1},on:{"on-update":t.getLogLists}})],1)],1)],1),e("Scrollbar",{attrs:{"class-name":"scroller"}},[e("div",{staticClass:"title"},[e("Input",{ref:"name",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:8},maxlength:255,enterkeyhint:"done"},on:{"on-blur":function(a){return t.updateBlur("name")},"on-keydown":t.onNameKeydown},model:{value:t.taskDetail.name,callback:function(a){t.$set(t.taskDetail,"name",a)},expression:"taskDetail.name"}})],1),e("div",{staticClass:"desc"},[e("TEditor",{ref:"desc",attrs:{value:t.taskContent,plugins:t.taskPlugins,options:t.taskOptions,"option-full":t.taskOptionFull,placeholder:t.$L("\u8BE6\u7EC6\u63CF\u8FF0..."),"scroll-hide-operate-class-name":"task-modal",inline:""},on:{"on-blur":function(a){return t.updateBlur("content")}}})],1),e("Form",{staticClass:"items",attrs:{"label-position":"left","label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[t.taskDetail.p_name?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6EC")]),t._v(t._s(t.$L("\u4F18\u5148\u7EA7"))+" ")]),e("ul",{staticClass:"item-content"},[e("li",[e("EDropdown",{ref:"priority",attrs:{trigger:"click",placement:"bottom"},on:{command:function(a){return t.updateData("priority",a)}}},[e("TaskPriority",{attrs:{backgroundColor:t.taskDetail.p_color}},[t._v(t._s(t.taskDetail.p_name))]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.taskPriority,function(a,i){return e("EDropdownItem",{key:i,attrs:{command:a}},[e("i",{staticClass:"taskfont",style:{color:a.color},domProps:{innerHTML:t._s(t.taskDetail.p_name==a.name?"":"")}}),t._v(" "+t._s(a.name)+" ")])}),1)],1)],1)])]):t._e(),t.getOwner.length>0?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6E4")]),t._v(t._s(t.$L("\u8D1F\u8D23\u4EBA"))+" ")]),e("UserSelect",{staticClass:"item-content user",attrs:{"multiple-max":10,"avatar-size":28,title:t.$L("\u4FEE\u6539\u8D1F\u8D23\u4EBA"),"project-id":t.taskDetail.project_id,"add-icon":!1,"before-submit":t.onOwner},model:{value:t.ownerData.owner_userid,callback:function(a){t.$set(t.ownerData,"owner_userid",a)},expression:"ownerData.owner_userid"}})],1):t._e(),t.getAssist.length>0||t.assistForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE63F")]),t._v(t._s(t.$L("\u534F\u52A9\u4EBA\u5458"))+" ")]),e("UserSelect",{ref:"assist",staticClass:"item-content user",attrs:{"multiple-max":10,"avatar-size":28,title:t.$L(t.getAssist.length>0?"\u4FEE\u6539\u534F\u52A9\u4EBA\u5458":"\u6DFB\u52A0\u534F\u52A9\u4EBA\u5458"),"project-id":t.taskDetail.project_id,"disabled-choice":t.assistData.disabled,"add-icon":!1,"before-submit":t.onAssist},model:{value:t.assistData.assist_userid,callback:function(a){t.$set(t.assistData,"assist_userid",a)},expression:"assistData.assist_userid"}})],1):t._e(),e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE77B")]),e("EDropdown",{ref:"eDropdownRef",attrs:{trigger:"click",placement:"bottom"},on:{command:t.dropVisible}},[e("span",{staticClass:"visibility-text color"},[t._v(t._s(t.$L("\u53EF\u89C1\u6027"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE740")])]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:1}},[e("div",{staticClass:"task-menu-icon"},[t.taskDetail.is_all_visible==1?e("Icon",{staticClass:"completed",attrs:{type:"md-checkmark-circle"}}):e("Icon",{staticClass:"uncomplete",attrs:{type:"md-radio-button-off"}}),t._v(" "+t._s(t.$L("\u9879\u76EE\u4EBA\u5458"))+" ")],1)]),e("EDropdownItem",{attrs:{command:2}},[e("div",{staticClass:"task-menu-icon"},[t.taskDetail.is_all_visible==2?e("Icon",{staticClass:"completed",attrs:{type:"md-checkmark-circle"}}):e("Icon",{staticClass:"uncomplete",attrs:{type:"md-radio-button-off"}}),t._v(" "+t._s(t.$L("\u4EFB\u52A1\u4EBA\u5458"))+" ")],1)]),e("EDropdownItem",{attrs:{command:3}},[e("div",{staticClass:"task-menu-icon"},[t.taskDetail.is_all_visible==3?e("Icon",{staticClass:"completed",attrs:{type:"md-checkmark-circle"}}):e("Icon",{staticClass:"uncomplete",attrs:{type:"md-radio-button-off"}}),t._v(" "+t._s(t.$L("\u6307\u5B9A\u6210\u5458"))+" ")],1)])],1)],1)],1),e("div",{staticClass:"item-content user"},[t.taskDetail.is_all_visible==1?e("span",{staticClass:"visibility-text",on:{click:t.showCisibleDropdown}},[t._v(t._s(t.$L("\u9879\u76EE\u4EBA\u5458\u53EF\u89C1")))]):t.taskDetail.is_all_visible==2?e("span",{staticClass:"visibility-text",on:{click:t.showCisibleDropdown}},[t._v(t._s(t.$L("\u4EFB\u52A1\u4EBA\u5458\u53EF\u89C1")))]):e("UserSelect",{ref:"visibleUserSelectRef",attrs:{"avatar-size":28,title:t.$L("\u9009\u62E9\u6307\u5B9A\u4EBA\u5458"),"project-id":t.taskDetail.project_id,"add-icon":!1},on:{"on-show-change":t.visibleUserSelectShowChange},model:{value:t.taskDetail.visibility_appointor,callback:function(a){t.$set(t.taskDetail,"visibility_appointor",a)},expression:"taskDetail.visibility_appointor"}})],1)]),t.taskDetail.end_at||t.timeForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6E8")]),t._v(t._s(t.$L("\u622A\u6B62\u65F6\u95F4"))+" ")]),e("ul",{staticClass:"item-content"},[e("li",[e("DatePicker",{attrs:{open:t.timeOpen,options:t.timeOptions,format:"yyyy/MM/dd HH:mm",type:"datetimerange",transfer:""},on:{"on-open-change":t.timeChange,"on-clear":t.timeClear,"on-ok":t.timeOk},model:{value:t.timeValue,callback:function(a){t.timeValue=a},expression:"timeValue"}},[e("div",{staticClass:"picker-time"},[e("div",{staticClass:"time",on:{click:t.openTime}},[t._v(t._s(t.taskDetail.end_at?t.cutTime:"--"))]),!t.taskDetail.complete_at&&t.taskDetail.end_at?[t.within24Hours(t.taskDetail.end_at)?e("Tag",{attrs:{color:"blue"}},[e("i",{staticClass:"taskfont"},[t._v("\uE71D")]),t._v(t._s(t.expiresFormat(t.taskDetail.end_at)))]):t._e(),t.isOverdue(t.taskDetail)?e("Tag",{attrs:{color:"red"}},[t._v(t._s(t.$L("\u8D85\u671F\u672A\u5B8C\u6210")))]):t._e()]:t._e()],2)])],1)])]):t._e(),t.taskDetail.loop&&t.taskDetail.loop!="never"||t.loopForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE93F")]),t._v(t._s(t.$L("\u91CD\u590D\u5468\u671F"))+" ")]),e("ul",{staticClass:"item-content"},[e("li",[e("EDropdown",{ref:"loop",attrs:{trigger:"click",placement:"bottom"},on:{command:function(a){return t.updateData("loop",a)}}},[e("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch||!t.taskDetail.loop_at,content:`${t.$L("\u4E0B\u4E2A\u5468\u671F")}: ${t.taskDetail.loop_at}`,placement:"right"}},[e("span",[t._v(t._s(t.$L(t.loopLabel(t.taskDetail.loop))))])]),e("EDropdownMenu",{staticClass:"task-detail-loop",attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.loops,function(a){return e("EDropdownItem",{key:a.key,attrs:{command:a.key}},[t._v(" "+t._s(t.$L(a.label))+" ")])}),1)],1)],1)])]):t._e(),t.fileList.length>0?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6E6")]),t._v(t._s(t.$L("\u9644\u4EF6"))+" ")]),e("ul",{staticClass:"item-content file"},[t.taskDetail.file_num>50?e("li",{staticClass:"tip"},[t._v(t._s(t.$L(`\u5171${t.taskDetail.file_num}\u4E2A\u6587\u4EF6\uFF0C\u4EC5\u663E\u793A\u6700\u65B050\u4E2A`)))]):t._e(),t._l(t.fileList,function(a){return e("li",[a.id?e("img",{staticClass:"file-ext",attrs:{src:a.thumb}}):e("Loading",{staticClass:"file-load"}),e("div",{staticClass:"file-name"},[t._v(t._s(a.name))]),e("div",{staticClass:"file-size"},[t._v(t._s(t.$A.bytesToSize(a.size)))]),e("div",{staticClass:"file-menu",class:{show:a._show_menu}},[e("Icon",{attrs:{type:"md-eye"},on:{click:function(i){return t.viewFile(a)}}}),e("Icon",{attrs:{type:"md-arrow-round-down"},on:{click:function(i){return t.downFile(a)}}}),e("EPopover",{staticClass:"file-delete",model:{value:a._show_menu,callback:function(i){t.$set(a,"_show_menu",i)},expression:"file._show_menu"}},[e("div",{staticClass:"task-detail-delete-file-popover"},[e("p",[t._v(t._s(t.$L("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u6587\u4EF6\u5417\uFF1F")))]),e("div",{staticClass:"buttons"},[e("Button",{attrs:{size:"small",type:"text"},on:{click:function(i){a._show_menu=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{size:"small",type:"primary"},on:{click:function(i){return t.deleteFile(a)}}},[t._v(t._s(t.$L("\u786E\u5B9A")))])],1)]),e("i",{staticClass:"taskfont del",attrs:{slot:"reference"},slot:"reference"},[t._v("\uE6EA")])])],1)],1)})],2),e("ul",{staticClass:"item-content"},[e("li",[e("div",{staticClass:"add-button",on:{click:function(a){return t.onUploadClick(!0)}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F2")]),t._v(t._s(t.$L("\u6DFB\u52A0\u9644\u4EF6"))+" ")])])])]):t._e(),t.subList.length>0||t.addsubForce?e("FormItem",[e("div",{staticClass:"item-label",attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"taskfont"},[t._v("\uE6F0")]),t._v(t._s(t.$L("\u5B50\u4EFB\u52A1"))+" ")]),e("ul",{staticClass:"item-content subtask"},t._l(t.subList,function(a,i){return e("TaskDetail",{key:i,ref:`subTask_${a.id}`,refInFor:!0,attrs:{"task-id":a.id,"open-task":a,"main-end-at":t.taskDetail.end_at,"can-update-blur":t.canUpdateBlur}})}),1),e("ul",{class:["item-content",t.subList.length===0?"nosub":""]},[e("li",[t.addsubShow?e("Input",{ref:"addsub",staticClass:"add-input",class:{loading:t.addsubLoad>0},attrs:{placeholder:t.$L("+ \u8F93\u5165\u5B50\u4EFB\u52A1\uFF0C\u56DE\u8F66\u6DFB\u52A0\u5B50\u4EFB\u52A1"),icon:t.addsubLoad>0?"ios-loading":"",enterkeyhint:"done"},on:{"on-blur":t.addsubChackClose,"on-keydown":t.addsubKeydown},model:{value:t.addsubName,callback:function(a){t.addsubName=a},expression:"addsubName"}}):e("div",{staticClass:"add-button",on:{click:t.addsubOpen}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F2")]),t._v(t._s(t.$L("\u6DFB\u52A0\u5B50\u4EFB\u52A1"))+" ")])],1)])]):t._e()],1),t.menuList.length>0?e("div",{staticClass:"add"},[e("EDropdown",{attrs:{trigger:"click",placement:"bottom"},on:{command:t.dropAdd}},[e("div",{staticClass:"add-button"},[e("i",{staticClass:"taskfont"},[t._v("\uE6F2")]),t._v(" "+t._s(t.$L("\u6DFB\u52A0"))+" "),e("em",[t._v(t._s(t.menuText))])]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.menuList,function(a,i){return e("EDropdownItem",{key:i,attrs:{command:a.command}},[e("div",{staticClass:"item"},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(a.icon)}}),t._v(t._s(t.$L(a.name))+" ")])])}),1)],1)],1):t._e()],1),e("TaskUpload",{ref:"upload",staticClass:"upload",on:{"on-select-file":t.onSelectFile}})],1),e("div",{directives:[{name:"show",rawName:"v-show",value:t.taskDetail.id>0,expression:"taskDetail.id > 0"}],staticClass:"task-dialog",style:t.dialogStyle},[t.hasOpenDialog?[t.taskId>0?e("DialogWrapper",{ref:"dialog",attrs:{"dialog-id":t.taskDetail.dialog_id}},[e("div",{staticClass:"head",attrs:{slot:"head"},slot:"head"},[e("Icon",{staticClass:"icon",attrs:{type:"ios-chatbubbles-outline"}}),e("div",{staticClass:"nav"},[e("p",{class:{active:t.navActive=="dialog"},on:{click:function(a){t.navActive="dialog"}}},[t._v(t._s(t.$L("\u804A\u5929")))]),e("p",{class:{active:t.navActive=="log"},on:{click:function(a){t.navActive="log"}}},[t._v(t._s(t.$L("\u52A8\u6001")))]),t.navActive=="log"?e("div",{staticClass:"refresh"},[t.logLoadIng?e("Loading"):e("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getLogLists}})],1):t._e()])],1)]):t._e(),t.navActive=="log"&&t.taskId>0?e("ProjectLog",{ref:"log",attrs:{"task-id":t.taskDetail.id},on:{"on-load-change":t.logLoadChange}}):t._e()]:e("div",[e("div",{staticClass:"head"},[e("Icon",{staticClass:"icon",attrs:{type:"ios-chatbubbles-outline"}}),e("div",{staticClass:"nav"},[e("p",{class:{active:t.navActive=="dialog"},on:{click:function(a){t.navActive="dialog"}}},[t._v(t._s(t.$L("\u804A\u5929")))]),e("p",{class:{active:t.navActive=="log"},on:{click:function(a){t.navActive="log"}}},[t._v(t._s(t.$L("\u52A8\u6001")))]),t.navActive=="log"?e("div",{staticClass:"refresh"},[t.logLoadIng?e("Loading"):e("Icon",{attrs:{type:"ios-refresh"},on:{click:t.getLogLists}})],1):t._e()]),e("div",{staticClass:"menu"},[t.navActive=="dialog"&&t.taskDetail.msg_num>0?e("div",{staticClass:"menu-item",on:{click:function(a){return a.stopPropagation(),t.onSend("open")}}},[t.openLoad>0?e("div",{staticClass:"menu-load"},[e("Loading")],1):t._e(),t._v(" "+t._s(t.$L("\u4EFB\u52A1\u804A\u5929"))+" "),e("em",[t._v("("+t._s(t.taskDetail.msg_num>999?"999+":t.taskDetail.msg_num)+")")]),e("i",{staticClass:"taskfont"},[t._v("\uE703")])]):t._e()])],1),t.navActive=="log"&&t.taskId>0?e("ProjectLog",{ref:"log",attrs:{"task-id":t.taskDetail.id,"show-load":!1},on:{"on-load-change":t.logLoadChange}}):e("div",{staticClass:"no-dialog",on:{drop:function(a){return a.preventDefault(),t.taskPasteDrag(a,"drag")},dragover:function(a){return a.preventDefault(),t.taskDragOver(!0,a)},dragleave:function(a){return a.preventDefault(),t.taskDragOver(!1,a)}}},[e("div",{staticClass:"no-tip"},[t._v(t._s(t.$L("\u6682\u65E0\u6D88\u606F")))]),e("div",{staticClass:"no-input"},[e("ChatInput",{ref:"chatInput",attrs:{"task-id":t.taskId,loading:t.sendLoad>0,maxlength:2e5,placeholder:t.$L("\u8F93\u5165\u6D88\u606F...")},on:{"on-more":t.onEventMore,"on-file":t.onSelectFile,"on-record":t.onRecord,"on-send":t.onSend},model:{value:t.msgText,callback:function(a){t.msgText=a},expression:"msgText"}})],1),t.dialogDrag?e("div",{staticClass:"drag-over",on:{click:function(a){t.dialogDrag=!1}}},[e("div",{staticClass:"drag-text"},[t._v(t._s(t.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):t._e()])],1)],2),t.taskDetail.id?t._e():e("div",{staticClass:"task-load"},[e("Loading")],1)]):t._e()},L=[];const x={name:"TaskDetail",components:{UserSelect:v,ChatInput:f,TaskMenu:_,ProjectLog:m,DialogWrapper:k,TaskUpload:y,TaskPriority:p,TEditor:u},props:{taskId:{type:Number,default:0},openTask:{type:Object,default:()=>({})},mainEndAt:{default:null},canUpdateBlur:{type:Boolean,default:!0},modalMode:{type:Boolean,default:!1}},data(){return{ready:!1,taskDetail:{},ownerData:{},ownerLoad:0,receiveShow:!1,assistForce:!1,assistData:{},assistLoad:0,addsubForce:!1,addsubShow:!1,addsubName:"",addsubLoad:0,timeForce:!1,timeOpen:!1,timeValue:[],timeOptions:{shortcuts:$A.timeOptionShortcuts()},loopForce:!1,nowTime:$A.Time(),nowInterval:null,msgText:"",msgFile:[],msgRecord:{},navActive:"dialog",logLoadIng:!1,sendLoad:0,openLoad:0,taskPlugins:["advlist autolink lists link image charmap print preview hr anchor pagebreak","searchreplace visualblocks visualchars code","insertdatetime media nonbreaking save table directionality","emoticons paste codesample","autoresize"],taskOptions:{statusbar:!1,menubar:!1,autoresize_bottom_margin:2,min_height:200,max_height:380,contextmenu:"bold italic underline forecolor backcolor | link | codesample | uploadImages imagePreview | preview screenload",valid_elements:"a[href|title|target=_blank],em,strong/b,div[align],span[style],a,br,p,img[src|alt|witdh|height],pre[class],code",extended_valid_elements:"a[href|title|target=_blank]",toolbar:!1},taskOptionFull:{menubar:"file edit view",valid_elements:"a[href|title|target=_blank],em,strong/b,div[align],span[style],a,br,p,img[src|alt|witdh|height],pre[class],code",extended_valid_elements:"a[href|title|target=_blank]",toolbar:"uploadImages | bold italic underline forecolor backcolor | codesample | preview screenload"},dialogDrag:!1,imageAttachment:!0,receiveTaskSubscribe:null,loops:[{key:"never",label:"\u4ECE\u4E0D"},{key:"day",label:"\u6BCF\u5929"},{key:"weekdays",label:"\u6BCF\u4E2A\u5DE5\u4F5C\u65E5"},{key:"week",label:"\u6BCF\u5468"},{key:"twoweeks",label:"\u6BCF\u4E24\u5468"},{key:"month",label:"\u6BCF\u6708"},{key:"year",label:"\u6BCF\u5E74"},{key:"custom",label:"\u81EA\u5B9A\u4E49"}]}},created(){const t=$A.getObject(this.$route.query,"navActive");["dialog","log"].includes(t)&&(this.navActive=t)},mounted(){this.nowInterval=setInterval(()=>{this.nowTime=$A.Time()},1e3),this.receiveTaskSubscribe=c.Store.subscribe("receiveTask",()=>{this.receiveShow=!0})},destroyed(){clearInterval(this.nowInterval),this.receiveTaskSubscribe&&(this.receiveTaskSubscribe.unsubscribe(),this.receiveTaskSubscribe=null)},computed:{...h(["cacheProjects","cacheColumns","cacheTasks","taskContents","taskFiles","taskPriority","dialogId"]),projectName(){if(!this.taskDetail.project_id)return"";if(this.taskDetail.project_name)return this.taskDetail.project_name;const t=this.cacheProjects.find(({id:s})=>s==this.taskDetail.project_id);return t?t.name:""},columnName(){if(!this.taskDetail.column_id)return"";if(this.taskDetail.column_name)return this.taskDetail.column_name;const t=this.cacheColumns.find(({id:s})=>s==this.taskDetail.column_id);return t?t.name:""},taskContent(){if(!this.taskId)return"";let t=this.taskContents.find(({task_id:s})=>s==this.taskId);return t?t.content:""},fileList(){return this.taskId?this.taskFiles.filter(({task_id:t})=>t==this.taskId).sort((t,s)=>s.id-t.id):[]},subList(){return this.taskId?this.cacheTasks.filter(t=>t.parent_id==this.taskId).sort((t,s)=>t.id-s.id):[]},hasOpenDialog(){return this.taskDetail.dialog_id>0&&this.windowLandscape},dialogStyle(){const{windowHeight:t,hasOpenDialog:s}=this,e=Math.min(1100,t);if(!e)return{};if(!s)return{};const a=e>900?200:70;return{minHeight:e-a-48+"px"}},taskDetailStyle(){const{modalMode:t,windowHeight:s,hasOpenDialog:e}=this,a=Math.min(1100,s);if(t&&e){const i=a>900?200:70;return{maxHeight:a-i-30+"px"}}return{}},cutTime(){const{taskDetail:t}=this;let s=$A.Date(t.start_at,!0),e=$A.Date(t.end_at,!0),a="";return $A.formatDate("Y/m/d",s)==$A.formatDate("Y/m/d",e)?a=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("H:i",e):$A.formatDate("Y",s)==$A.formatDate("Y",e)?(a=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("m/d H:i",e),a=a.replace(/( 00:00| 23:59)/g,"")):(a=$A.formatDate("Y/m/d H:i",s)+" ~ "+$A.formatDate("Y/m/d H:i",e),a=a.replace(/( 00:00| 23:59)/g,"")),a},getOwner(){const{taskDetail:t}=this;return $A.isArray(t.task_user)?t.task_user.filter(({owner:s})=>s===1).sort((s,e)=>s.id-e.id):[]},getAssist(){const{taskDetail:t}=this;return $A.isArray(t.task_user)?t.task_user.filter(({owner:s})=>s===0).sort((s,e)=>s.id-e.id):[]},menuList(){const{taskDetail:t}=this,s=[];return t.p_name||s.push({command:"priority",icon:"",name:"\u4F18\u5148\u7EA7"}),$A.isArray(t.task_user)&&t.task_user.find(({owner:e})=>e===0)||s.push({command:"assist",icon:"",name:"\u534F\u52A9\u4EBA\u5458"}),t.end_at||s.push({command:"times",icon:"",name:"\u622A\u6B62\u65F6\u95F4"}),(!t.loop||t.loop=="never")&&s.push({command:"loop",icon:"",name:"\u91CD\u590D\u5468\u671F"}),this.fileList.length==0&&s.push({command:"file",icon:"",name:"\u9644\u4EF6"}),this.subList.length==0&&s.push({command:"subtask",icon:"",name:"\u5B50\u4EFB\u52A1"}),s},menuText(){const{menuList:t}=this;let s="";return t.length>0&&t.forEach((e,a)=>{a>0&&(s+=" / "),s+=this.$L(e.name)}),s}},watch:{openTask:{handler(t){this.taskDetail=$A.cloneJSON(t),this.__openTask&&clearTimeout(this.__openTask),this.__openTask=setTimeout(s=>{var e;return(e=this.$refs.name)==null?void 0:e.resizeTextarea()},100)},immediate:!0,deep:!0},taskId:{handler(t){t>0?this.ready=!0:(this.windowPortrait&&$A.onBlur(),this.timeOpen=!1,this.timeForce=!1,this.loopForce=!1,this.assistForce=!1,this.addsubForce=!1,this.receiveShow=!1,this.$refs.chatInput&&this.$refs.chatInput.hidePopover())},immediate:!0},getOwner:{handler(t){const s=t.map(({userid:e})=>e);this.$set(this.taskDetail,"owner_userid",s),this.$set(this.ownerData,"owner_userid",s),this.$set(this.assistData,"disabled",t.map(({userid:e})=>e).filter(e=>e!=this.userId))},immediate:!0},getAssist:{handler(t){const s=t.map(({userid:e})=>e);this.$set(this.taskDetail,"assist_userid",s),this.$set(this.assistData,"assist_userid",s)},immediate:!0},receiveShow(t){t&&(this.timeValue=this.taskDetail.end_at?[this.taskDetail.start_at,this.taskDetail.end_at]:[])},"taskDetail.visibility_appointor":{handler(t){(t==null?void 0:t.length)>0&&t[0]&&(this.taskDetail.is_all_visible=3,this.updateVisible())},immediate:!0}},methods:{within24Hours(t){return $A.Date(t,!0)-this.nowTime<86400},expiresFormat(t){return $A.countDownFormat(t,this.nowTime)},isOverdue(t){return t.overdue?!0:$A.Date(t.end_at,!0)e.key===t);return s?s.label:t?`\u6BCF${t}\u5929`:"\u4ECE\u4E0D"},onNameKeydown(t){t.keyCode===13&&(t.shiftKey||(t.preventDefault(),this.updateData("name")))},checkUpdate(t){let s=!1;if(this.openTask.name!=this.taskDetail.name)if(s=!0,t===!0)this.updateData("name");else return t===!1&&this.$refs.name.focus(),!0;if(this.$refs.desc&&this.$refs.desc.getContent()!=this.taskContent)if(s=!0,t===!0)this.updateData("content");else return t===!1&&this.$refs.desc.focus(),!0;if(this.addsubShow&&this.addsubName)if(s=!0,t===!0)this.onAddsub();else return t===!1&&this.$refs.addsub.focus(),!0;return this.subList.some(({id:e})=>{this.$refs[`subTask_${e}`][0].checkUpdate(t)&&(s=!0)}),s},updateBlur(t,s){this.canUpdateBlur&&this.updateData(t,s)},updateData(t,s){let e=null;switch(t){case"priority":this.$set(this.taskDetail,"p_level",s.priority),this.$set(this.taskDetail,"p_name",s.name),this.$set(this.taskDetail,"p_color",s.color),t=["p_level","p_name","p_color"];break;case"times":if(this.taskDetail.start_at&&(Math.abs($A.Time(this.taskDetail.start_at)-$A.Time(s.start_at))>60||Math.abs($A.Time(this.taskDetail.end_at)-$A.Time(s.end_at))>60)&&typeof s.desc=="undefined"){$A.modalInput({title:"\u4FEE\u6539\u4EFB\u52A1\u65F6\u95F4",placeholder:"\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8",okText:"\u786E\u5B9A",onOk:o=>o?(this.updateData("times",Object.assign(s,{desc:o})),!1):"\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8"});return}this.$set(this.taskDetail,"times",[s.start_at,s.end_at,s.desc]);break;case"loop":if(s==="custom"){this.customLoop();return}this.$set(this.taskDetail,"loop",s);break;case"content":const i=this.$refs.desc.getContent();if(i==this.taskContent)return;this.$set(this.taskDetail,"content",i),e=()=>{this.$store.dispatch("saveTaskContent",{task_id:this.taskId,content:i})};break}let a={task_id:this.taskDetail.id};($A.isArray(t)?t:[t]).forEach(i=>{let o=this.taskDetail[i],d=this.openTask[i];$A.jsonStringify(o)!=$A.jsonStringify(d)&&(a[i]=o)}),!(Object.keys(a).length<=1)&&this.$store.dispatch("taskUpdate",a).then(({msg:i})=>{$A.messageSuccess(i),typeof e=="function"&&e()}).catch(({msg:i})=>{$A.modalError(i)})},customLoop(){let t=this.taskDetail.loop||1;$A.Modal.confirm({render:s=>s("div",[s("div",{style:{fontSize:"16px",fontWeight:"500",marginBottom:"20px"}},this.$L("\u91CD\u590D\u5468\u671F")),s("Input",{style:{width:"160px",margin:"0 auto"},props:{type:"number",value:t,maxlength:3},on:{input:e=>{t=$.runNum(e)}}},[s("span",{slot:"prepend"},this.$L("\u6BCF")),s("span",{slot:"append"},this.$L("\u5929"))])]),onOk:s=>{this.$Modal.remove(),t>0&&this.updateData("loop",t)},loading:!0,okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")})},onOwner(t){let s={task_id:this.taskDetail.id,owner:this.ownerData.owner_userid};if(t===!0){if(this.getOwner.length>0){this.receiveShow=!1,$A.messageError("\u4EFB\u52A1\u5DF2\u88AB\u9886\u53D6");return}let e=$A.date2string(this.timeValue,"Y-m-d H:i");if(e[0]&&e[1])$A.rightExists(e[0],"00:00")&&$A.rightExists(e[1],"00:00")&&(e[1]=e[1].replace("00:00","23:59"));else{$A.messageError("\u8BF7\u8BBE\u7F6E\u8BA1\u5212\u65F6\u95F4");return}s.times=e,s.owner=this.ownerData.owner_userid=[this.userId]}if($A.jsonStringify(this.taskDetail.owner_userid)!==$A.jsonStringify(this.ownerData.owner_userid))return $A.count(s.owner)==0&&(s.owner=""),this.ownerLoad++,new Promise((e,a)=>{this.$store.dispatch("taskUpdate",s).then(({msg:i})=>{$A.messageSuccess(i),this.ownerLoad--,this.receiveShow=!1,this.$store.dispatch("getTaskOne",this.taskDetail.id).catch(()=>{}),e()}).catch(({msg:i})=>{$A.modalError(i),this.ownerLoad--,this.receiveShow=!1,a()})})},onAssist(){if($A.jsonStringify(this.taskDetail.assist_userid)!==$A.jsonStringify(this.assistData.assist_userid))return new Promise((t,s)=>{this.getOwner.find(({userid:e})=>e===this.userId)&&this.assistData.assist_userid.find(e=>e===this.userId)?$A.modalConfirm({content:"\u4F60\u5F53\u524D\u662F\u8D1F\u8D23\u4EBA\uFF0C\u786E\u5B9A\u8981\u8F6C\u4E3A\u534F\u52A9\u4EBA\u5458\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",onOk:()=>{this.onAssistConfirm().then(t).catch(s)},onCancel:()=>{s()}}):this.onAssistConfirm().then(t).catch(s)})},onAssistConfirm(){return new Promise((t,s)=>{let e=this.assistData.assist_userid;e.length===0&&(e=!1),this.assistLoad++,this.$store.dispatch("taskUpdate",{task_id:this.taskDetail.id,assist:e}).then(({msg:a})=>{$A.messageSuccess(a),this.assistLoad--,this.$store.dispatch("getTaskOne",this.taskDetail.id).catch(()=>{}),t()}).catch(({msg:a})=>{$A.modalError(a),this.assistLoad--,s()})})},openTime(){this.timeOpen=!this.timeOpen,this.timeOpen&&(this.timeValue=this.taskDetail.end_at?[this.taskDetail.start_at,this.taskDetail.end_at]:[])},timeChange(t){t||(this.timeOpen=!1)},timeClear(){this.updateData("times",{start_at:!1,end_at:!1}),this.timeOpen=!1},timeOk(){let t=$A.date2string(this.timeValue,"Y-m-d H:i");t[0]&&t[1]&&$A.rightExists(t[0],"00:00")&&$A.rightExists(t[1],"00:00")&&(t[1]=t[1].replace("00:00","23:59")),this.updateData("times",{start_at:t[0],end_at:t[1]}),this.timeOpen=!1},addsubOpen(){this.addsubShow=!0,this.$nextTick(()=>{this.$refs.addsub.focus()})},addsubChackClose(){this.addsubName==""&&(this.addsubShow=!1)},addsubKeydown(t){if(t.keyCode===13){if(t.shiftKey||this.addsubLoad>0)return;t.preventDefault(),this.onAddsub()}},onAddsub(){if(this.addsubName==""){$A.messageError("\u4EFB\u52A1\u63CF\u8FF0\u4E0D\u80FD\u4E3A\u7A7A");return}this.addsubLoad++,this.$store.dispatch("taskAddSub",{task_id:this.taskDetail.id,name:this.addsubName}).then(({msg:t})=>{$A.messageSuccess(t),this.addsubLoad--,this.addsubName=""}).catch(({msg:t})=>{$A.modalError(t),this.addsubLoad--})},getLogLists(){this.navActive=="log"&&this.$refs.log.getLists(!0)},logLoadChange(t){this.logLoadIng=t},dropAdd(t){switch(t){case"priority":this.$set(this.taskDetail,"p_name",this.$L("\u672A\u8BBE\u7F6E")),this.$nextTick(()=>{this.$refs.priority.show()});break;case"assist":this.assistForce=!0,this.$nextTick(()=>{this.$refs.assist.onSelection()});break;case"times":this.timeForce=!0,this.$nextTick(()=>{this.openTime()});break;case"loop":this.loopForce=!0,this.$nextTick(()=>{this.$refs.loop.show()});break;case"file":this.onUploadClick(!0);break;case"subtask":this.addsubForce=!0,this.$nextTick(()=>{this.addsubOpen()});break}},onEventMore(t){["image","file"].includes(t)&&this.onUploadClick(!1)},onUploadClick(t){this.imageAttachment=!!t,this.$refs.upload.handleClick()},msgDialog(t=null,s=!1){this.sendLoad>0||this.openLoad>0||(s===!0?this.openLoad++:this.sendLoad++,this.$store.dispatch("call",{url:"project/task/dialog",data:{task_id:this.taskDetail.id}}).then(({data:e})=>{this.$store.dispatch("saveTask",{id:e.id,dialog_id:e.dialog_id}),this.$store.dispatch("saveDialog",e.dialog_data),$A.isSubElectron?this.resizeDialog().then(()=>{this.sendDialogMsg(t)}):this.$nextTick(()=>{if(this.windowPortrait){$A.onBlur();const a={time:$A.Time()+10,msgRecord:this.msgRecord,msgFile:this.msgFile,msgText:typeof t=="string"&&t?t:this.msgText,dialogId:e.dialog_id};this.msgRecord={},this.msgFile=[],this.msgText="",this.$nextTick(i=>{this.dialogId>0&&this.$store.dispatch("openTask",0),this.$store.dispatch("openDialog",e.dialog_id).then(o=>{this.$store.state.dialogMsgTransfer=a})})}else this.sendDialogMsg(t)})}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{s===!0?this.openLoad--:this.sendLoad--}))},sendDialogMsg(t=null){this.msgFile.length>0?this.$refs.dialog.sendFileMsg(this.msgFile.map(s=>Object.assign(s,{ajaxExtraData:{image_attachment:this.imageAttachment?1:0}}))):this.msgText?this.$refs.dialog.sendMsg(this.msgText):typeof t=="string"&&t&&this.$refs.dialog.sendMsg(t),this.msgFile=[],this.msgText=""},taskPasteDrag(t,s){this.dialogDrag=!1;const e=s==="drag"?t.dataTransfer.files:t.clipboardData.files;this.msgFile=Array.prototype.slice.call(e),this.msgFile.length>0&&(t.preventDefault(),this.msgDialog())},taskDragOver(t,s){let e=this.__dialogDrag=$A.randomString(8);if(!t)setTimeout(()=>{e===this.__dialogDrag&&(this.dialogDrag=t)},150);else{if(s.dataTransfer.effectAllowed==="move")return;this.dialogDrag=!0}},onSelectFile(t){this.msgFile=$A.isArray(t)?t:[t],this.msgDialog()},onRecord(t){this.msgRecord=t,this.msgDialog()},onSend(t){this.$refs.chatInput&&this.$refs.chatInput.hidePopover(),t==="open"?this.msgDialog(null,!0):this.msgDialog(t)},deleteFile(t){this.$set(t,"_show_menu",!1),this.$store.dispatch("forgetTaskFile",t.id),this.$store.dispatch("call",{url:"project/task/filedelete",data:{file_id:t.id}}).catch(({msg:s})=>{$A.modalError(s),this.$store.dispatch("getTaskFiles",this.taskDetail.id)})},openMenu(t,s){const e=this.$refs[`taskMenu_${s.id}`];e&&e.handleClick(t)},openNewWin(){let t={title:this.taskDetail.name,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,this.$el.clientWidth+72),height:Math.min(window.screen.availHeight,this.$el.clientHeight+72),minWidth:600,minHeight:450};this.hasOpenDialog&&(t.minWidth=800,t.minHeight=600),this.$Electron.sendMessage("windowRouter",{name:`task-${this.taskDetail.id}`,path:`/single/task/${this.taskDetail.id}?navActive=${this.navActive}`,force:!1,config:t}),this.$store.dispatch("openTask",0)},resizeDialog(){return new Promise(t=>{this.$Electron.sendMessage("windowSize",{width:Math.max(1100,this.windowWidth),height:Math.max(720,this.windowHeight),minWidth:800,minHeight:600,autoZoom:!0});let s=0,e=setInterval(()=>{s++,(this.$refs.dialog||s>20)&&(clearInterval(e),this.$refs.dialog&&t())},100)})},viewFile(t){if(["jpg","jpeg","webp","gif","png"].includes(t.ext)){const e=this.fileList.filter(i=>["jpg","jpeg","webp","gif","png"].includes(i.ext)),a=e.findIndex(i=>i.id===t.id);a>-1?this.$store.dispatch("previewImage",{index:a,list:e.map(i=>({src:i.path,width:i.width,height:i.height}))}):this.$store.dispatch("previewImage",{index:0,list:[{src:t.path,width:t.width,height:t.height}]});return}const s=`/single/file/task/${t.id}`;this.$Electron?this.$Electron.sendMessage("windowRouter",{name:`file-task-${t.id}`,path:s,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:`${t.name} (${$A.bytesToSize(t.size)})`,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:t.ext==="drawio"}}):this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:`${t.name} (${$A.bytesToSize(t.size)})`,url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${s}`}}):window.open($A.apiUrl(`..${s}`))},downFile(t){$A.modalConfirm({title:"\u4E0B\u8F7D\u6587\u4EF6",content:`${t.name} (${$A.bytesToSize(t.size)})`,okText:"\u7ACB\u5373\u4E0B\u8F7D",onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`project/task/filedown?file_id=${t.id}`))}})},showCisibleDropdown(){this.$refs.eDropdownRef.show()},visibleUserSelectShowChange(t){if(!t&&(this.taskDetail.visibility_appointor.length==0||!this.taskDetail.visibility_appointor[0])){let s=this.taskDetail.old_is_all_visible;this.taskDetail.is_all_visible=s>2?1:s||1,this.taskDetail.is_all_visible<3&&this.updateVisible()}},dropVisible(t){switch(t){case 1:case 2:this.taskDetail.is_all_visible=t,this.updateVisible();break;case 3:this.taskDetail.old_is_all_visible=this.taskDetail.is_all_visible,this.taskDetail.is_all_visible=t,this.$nextTick(()=>{this.$refs.visibleUserSelectRef.onSelection()});break}},updateVisible(){this.updateData(["is_all_visible","visibility_appointor"])}}},l={};var T=r(x,A,L,!1,I,null,null,null);function I(t){for(let s in l)this[s]=l[s]}var z=function(){return T.exports}();export{z as T}; diff --git a/public/js/build/TaskMenu.bdcf4604.js b/public/js/build/TaskMenu.98a91192.js similarity index 96% rename from public/js/build/TaskMenu.bdcf4604.js rename to public/js/build/TaskMenu.98a91192.js index 0d2f51690..1cc9a7a07 100644 --- a/public/js/build/TaskMenu.bdcf4604.js +++ b/public/js/build/TaskMenu.98a91192.js @@ -1 +1 @@ -import{m as i,c as n,n as l}from"./app.3d81bfbf.js";var r=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"task-menu-icon",on:{click:t.handleClick}},[t.loadIng?e("div",{staticClass:"loading"},[e("Loading")],1):[t.task.complete_at?e("Icon",{staticClass:"completed",attrs:{type:t.completedIcon}}):e("Icon",{staticClass:"uncomplete",attrs:{type:t.icon}})]],2)},c=[];const d={name:"TaskMenu",props:{task:{type:Object,default:()=>({})},loadStatus:{type:Boolean,default:!1},colorShow:{type:Boolean,default:!0},updateBefore:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:"small"},icon:{type:String,default:"md-radio-button-off"},completedIcon:{type:String,default:"md-checkmark-circle"}},computed:{...i(["loads","taskFlows"]),...n(["isLoad"]),loadIng(){return this.loadStatus?!0:this.isLoad(`task-${this.task.id}`)}},methods:{handleClick(t){this.$store.state.taskOperation={event:t,task:this.task,loadStatus:this.loadStatus,colorShow:this.colorShow,updateBefore:this.updateBefore,disabled:this.disabled,size:this.size,onUpdate:s=>{this.$emit("on-update",s)}}},updateTask(t){if(this.loadIng)return;Object.keys(t).forEach(e=>this.$set(this.task,e,t[e]));const s=Object.assign(t,{task_id:this.task.id});this.$store.dispatch("taskUpdate",s).then(({data:e,msg:o})=>{$A.messageSuccess(o),this.$store.dispatch("saveTaskBrowse",s.task_id),this.$emit("on-update",e)}).catch(({msg:e})=>{$A.modalError(e),this.$store.dispatch("getTaskOne",s.task_id).catch(()=>{})})}}},a={};var u=l(d,r,c,!1,p,null,null,null);function p(t){for(let s in a)this[s]=a[s]}var m=function(){return u.exports}();export{m as T}; +import{m as i,c as n,n as l}from"./app.28437e7d.js";var r=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"task-menu-icon",on:{click:t.handleClick}},[t.loadIng?e("div",{staticClass:"loading"},[e("Loading")],1):[t.task.complete_at?e("Icon",{staticClass:"completed",attrs:{type:t.completedIcon}}):e("Icon",{staticClass:"uncomplete",attrs:{type:t.icon}})]],2)},c=[];const d={name:"TaskMenu",props:{task:{type:Object,default:()=>({})},loadStatus:{type:Boolean,default:!1},colorShow:{type:Boolean,default:!0},updateBefore:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:"small"},icon:{type:String,default:"md-radio-button-off"},completedIcon:{type:String,default:"md-checkmark-circle"}},computed:{...i(["loads","taskFlows"]),...n(["isLoad"]),loadIng(){return this.loadStatus?!0:this.isLoad(`task-${this.task.id}`)}},methods:{handleClick(t){this.$store.state.taskOperation={event:t,task:this.task,loadStatus:this.loadStatus,colorShow:this.colorShow,updateBefore:this.updateBefore,disabled:this.disabled,size:this.size,onUpdate:s=>{this.$emit("on-update",s)}}},updateTask(t){if(this.loadIng)return;Object.keys(t).forEach(e=>this.$set(this.task,e,t[e]));const s=Object.assign(t,{task_id:this.task.id});this.$store.dispatch("taskUpdate",s).then(({data:e,msg:o})=>{$A.messageSuccess(o),this.$store.dispatch("saveTaskBrowse",s.task_id),this.$emit("on-update",e)}).catch(({msg:e})=>{$A.modalError(e),this.$store.dispatch("getTaskOne",s.task_id).catch(()=>{})})}}},a={};var u=l(d,r,c,!1,p,null,null,null);function p(t){for(let s in a)this[s]=a[s]}var m=function(){return u.exports}();export{m as T}; diff --git a/public/js/build/UpdateLog.eacff378.js b/public/js/build/UpdateLog.a78387dc.js similarity index 95% rename from public/js/build/UpdateLog.eacff378.js rename to public/js/build/UpdateLog.a78387dc.js index 0fca756f3..87af4d91e 100644 --- a/public/js/build/UpdateLog.eacff378.js +++ b/public/js/build/UpdateLog.a78387dc.js @@ -1 +1 @@ -import{n as s,p as r}from"./app.3d81bfbf.js";var n=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("Modal",{attrs:{fullscreen:t.uplogFull,"class-name":"update-log"},model:{value:t.uplogShow,callback:function(l){t.uplogShow=l},expression:"uplogShow"}},[e("div",{attrs:{slot:"header"},slot:"header"},[e("div",{staticClass:"uplog-head"},[e("div",{staticClass:"uplog-title"},[t._v(t._s(t.$L("\u66F4\u65B0\u65E5\u5FD7")))]),t.updateVer?e("Tag",{attrs:{color:"volcano"}},[t._v(t._s(t.updateVer))]):t._e()],1)]),e("Scrollbar",{attrs:{"class-name":"uplog-body"}},[e("MarkdownPreview",{attrs:{initialValue:t.updateLog}})],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(l){t.uplogFull=!t.uplogFull}}},[t._v(t._s(t.$L(t.uplogFull?"\u7F29\u5C0F\u67E5\u770B":"\u5168\u5C4F\u67E5\u770B")))])],1)],1)},u=[];const p={name:"UpdateLog",components:{MarkdownPreview:r},props:{value:{type:Boolean,default:!1},updateVer:{},updateLog:{}},data(){return{uplogShow:!1,uplogFull:!1}},watch:{value:{handler(t){this.uplogShow=t},immediate:!0},uplogShow(t){this.$emit("input",t)}}},a={};var i=s(p,n,u,!1,c,null,null,null);function c(t){for(let o in a)this[o]=a[o]}var v=function(){return i.exports}();export{v as U}; +import{n as s,p as r}from"./app.28437e7d.js";var n=function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("Modal",{attrs:{fullscreen:t.uplogFull,"class-name":"update-log"},model:{value:t.uplogShow,callback:function(l){t.uplogShow=l},expression:"uplogShow"}},[e("div",{attrs:{slot:"header"},slot:"header"},[e("div",{staticClass:"uplog-head"},[e("div",{staticClass:"uplog-title"},[t._v(t._s(t.$L("\u66F4\u65B0\u65E5\u5FD7")))]),t.updateVer?e("Tag",{attrs:{color:"volcano"}},[t._v(t._s(t.updateVer))]):t._e()],1)]),e("Scrollbar",{attrs:{"class-name":"uplog-body"}},[e("MarkdownPreview",{attrs:{initialValue:t.updateLog}})],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(l){t.uplogFull=!t.uplogFull}}},[t._v(t._s(t.$L(t.uplogFull?"\u7F29\u5C0F\u67E5\u770B":"\u5168\u5C4F\u67E5\u770B")))])],1)],1)},u=[];const p={name:"UpdateLog",components:{MarkdownPreview:r},props:{value:{type:Boolean,default:!1},updateVer:{},updateLog:{}},data(){return{uplogShow:!1,uplogFull:!1}},watch:{value:{handler(t){this.uplogShow=t},immediate:!0},uplogShow(t){this.$emit("input",t)}}},a={};var i=s(p,n,u,!1,c,null,null,null);function c(t){for(let o in a)this[o]=a[o]}var v=function(){return i.exports}();export{v as U}; diff --git a/public/js/build/UserSelect.6a5dfe83.js b/public/js/build/UserSelect.fe42163b.js similarity index 99% rename from public/js/build/UserSelect.6a5dfe83.js rename to public/js/build/UserSelect.fe42163b.js index e693feac1..2e735f717 100644 --- a/public/js/build/UserSelect.6a5dfe83.js +++ b/public/js/build/UserSelect.fe42163b.js @@ -1 +1 @@ -import{m as r,n}from"./app.3d81bfbf.js";var o=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"common-user-select",class:e.warpClass},[e.module?e._e():t("ul",{on:{click:e.onSelection}},[e._l(e.values,function(s){return s?t("li",[t("UserAvatar",{attrs:{userid:s,size:e.avatarSize,"show-icon":e.avatarIcon,"show-name":e.avatarName,"tooltip-disabled":""}})],1):e._e()}),e.addIcon||e.values.length===0?t("li",{staticClass:"add-icon",style:e.addStyle,on:{click:function(s){return s.stopPropagation(),e.onSelection.apply(null,arguments)}}}):e._e()],2),t("Modal",{attrs:{"class-name":"common-user-select-modal","mask-closable":!1,closable:!e.isFullscreen,fullscreen:e.isFullscreen,"footer-hide":e.isFullscreen,width:"640"},scopedSlots:e._u([{key:"header",fn:function(){return[e.isFullscreen?t("div",{staticClass:"user-modal-header"},[t("div",{staticClass:"user-modal-close",on:{click:function(s){e.showModal=!1}}},[e._v(e._s(e.$L("\u5173\u95ED")))]),t("div",{staticClass:"user-modal-title"},[t("span",[e._v(e._s(e.localTitle))])]),t("div",{staticClass:"user-modal-submit",on:{click:e.onSubmit}},[e.loadIng>0?t("div",{staticClass:"submit-loading"},[t("Loading")],1):e._e(),e._v(" "+e._s(e.$L("\u786E\u5B9A"))+" "),e.selects.length>0?[e._v(" ("+e._s(e.selects.length)),e.multipleMax?t("span",[e._v("/"+e._s(e.multipleMax))]):e._e(),e._v(") ")]:e._e()],2)]):t("div",{staticClass:"ivu-modal-header-inner"},[e._v(e._s(e.localTitle))])]},proxy:!0},{key:"close",fn:function(){return[t("i",{staticClass:"ivu-icon ivu-icon-ios-close"})]},proxy:!0},{key:"footer",fn:function(){return[t("Button",{attrs:{type:"primary",loading:e.submittIng>0},on:{click:e.onSubmit}},[e._v(" "+e._s(e.$L("\u786E\u5B9A"))+" "),e.selects.length>0?[e._v(" ("+e._s(e.selects.length)),e.multipleMax?t("span",[e._v("/"+e._s(e.multipleMax))]):e._e(),e._v(") ")]:e._e()],2)]},proxy:!0}]),model:{value:e.showModal,callback:function(s){e.showModal=s},expression:"showModal"}},[t("div",{staticClass:"user-modal-search"},[e.selects.length>0?t("Scrollbar",{ref:"selected",staticClass:"search-selected",attrs:{"enable-x":"","enable-y":!1}},[t("ul",e._l(e.formatSelect(e.selects),function(s){return t("li",{attrs:{"data-id":s.userid},on:{click:function(i){return i.stopPropagation(),e.onRemoveItem(s.userid)}}},[s.type=="group"?[s.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:s.avatar,size:32}}):s.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):s.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):s.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:t("UserAvatar",{attrs:{userid:s.userid,"tooltip-disabled":""}})],2)}),0)]):e._e(),t("Input",{staticClass:"search-input",attrs:{placeholder:e.localPlaceholder,clearable:""},model:{value:e.searchKey,callback:function(s){e.searchKey=s},expression:"searchKey"}},[t("div",{staticClass:"search-pre",attrs:{slot:"prefix"},slot:"prefix"},[e.loadIng>0?t("Loading"):t("Icon",{attrs:{type:"ios-search"}})],1)])],1),e.isWhole?t("ul",{staticClass:"user-modal-switch"},e._l(e.switchItems,function(s){return t("li",{key:s.key,class:{active:e.switchActive===s.key},on:{click:function(i){e.switchActive=s.key}}},[e._v(e._s(e.$L(s.label)))])}),0):e._e(),e.lists.length>0?t("Scrollbar",{staticClass:"user-modal-list"},[e.switchActive=="project"?t("ul",{staticClass:"user-modal-project"},e._l(e.lists,function(s){return t("li",{class:e.selectClass(s.userid_list),on:{click:function(i){return e.onSelectProject(s.userid_list)}}},[t("Icon",{staticClass:"user-modal-icon",attrs:{type:e.selectIcon(s.userid_list)}}),t("div",{staticClass:"user-modal-avatar"},[t("i",{staticClass:"taskfont icon-avatar"},[e._v("\uE6F9")]),t("div",{staticClass:"project-name"},[t("div",{staticClass:"label"},[e._v(e._s(s.name))]),t("div",{staticClass:"subtitle"},[e._v(" "+e._s(s.userid_list.length)+" "+e._s(e.$L("\u9879\u76EE\u6210\u5458"))+" "),t("em",{staticClass:"all"},[e._v(e._s(e.$L("\u5DF2\u5168\u9009")))]),t("em",{staticClass:"some"},[e._v(e._s(e.$L("\u5DF2\u9009\u90E8\u5206")))])])])])],1)}),0):t("ul",[e.showSelectAll?t("li",{class:e.selectClass("all"),on:{click:e.onSelectAll}},[t("Icon",{staticClass:"user-modal-icon",attrs:{type:e.selectIcon("all")}}),t("div",{staticClass:"user-modal-all"},[e._v(e._s(e.$L("\u5168\u9009")))])],1):e._e(),e._l(e.lists,function(s){return t("li",{class:{selected:e.selects.includes(s.userid),disabled:e.isUncancelable(s.userid)||e.isDisabled(s.userid)},on:{click:function(i){return e.onSelectItem(s)}}},[e.selects.includes(s.userid)?t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-checkmark-circle"}}):t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-radio-button-off"}}),s.type=="group"?t("div",{staticClass:"user-modal-avatar"},[s.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:s.avatar,size:40}}):s.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):s.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):s.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}}),t("div",{staticClass:"avatar-name"},[t("span",[e._v(e._s(s.name))])])],1):t("UserAvatar",{staticClass:"user-modal-avatar",attrs:{userid:s.userid,size:40,"show-name":"","tooltip-disabled":""}})],1)})],2)]):t("div",{staticClass:"user-modal-empty"},[e.waitIng>0?t("Loading"):[t("div",{staticClass:"empty-icon"},[t("Icon",{attrs:{type:"ios-cafe-outline"}})],1),t("div",{staticClass:"empty-text"},[e._v(e._s(e.$L("\u6682\u65E0\u7ED3\u679C")))])]],2)],1)],1)},h=[];const u={name:"UserSelect",props:{value:{type:[String,Number,Array],default:()=>[]},uncancelable:{type:Array,default:()=>[]},disabledChoice:{type:Array,default:()=>[]},projectId:{type:Number,default:0},noProjectId:{type:Number,default:0},dialogId:{type:Number,default:0},showBot:{type:Boolean,default:!1},showDisable:{type:Boolean,default:!1},multipleMax:{type:Number},avatarSize:{type:Number,default:28},avatarIcon:{type:Boolean,default:!0},avatarName:{type:Boolean,default:!1},addIcon:{type:Boolean,default:!0},border:{type:Boolean,default:!1},title:{type:String},placeholder:{type:String},showSelectAll:{type:Boolean,default:!0},showDialog:{type:Boolean,default:!1},module:{type:Boolean,default:!1},beforeSubmit:Function},data(){return{switchItems:[{key:"recent",label:"\u6700\u8FD1"},{key:"contact",label:"\u901A\u8BAF\u5F55"},{key:"project",label:"\u9879\u76EE\u6210\u5458"}],switchActive:"recent",loadIng:0,waitIng:0,submittIng:0,values:[],selects:[],recents:[],contacts:[],projects:[],showModal:!1,searchKey:null,searchCache:[]}},watch:{value:{handler(e){typeof e=="number"?this.$emit("input",e>0?[e]:[]):typeof e=="string"&&(e=e.indexOf(",")>-1?e.split(","):[e],this.$emit("input",e.map(a=>$A.runNum(a)).filter(a=>a>0))),this.values=e},immediate:!0},isWhole:{handler(e){e?this.switchActive="recent":this.switchActive="contact"},immediate:!0},showModal(e){e?this.searchBefore():this.searchKey="",this.$emit("onShowChange",e)},searchKey(){this.searchBefore()},switchActive(){this.searchBefore()}},computed:{...r(["cacheDialogs"]),isFullscreen({windowWidth:e}){return e<576},isWhole({projectId:e,noProjectId:a,dialogId:t}){return e===0&&a===0&&t===0},lists({switchActive:e,searchKey:a,recents:t,contacts:s,projects:i}){switch(e){case"recent":return a?t.filter(l=>`${l.name}`.indexOf(a)>-1):t;case"contact":return s;case"project":return i}return[]},isSelectAll({lists:e,selects:a}){return e.length>0&&e.filter(t=>a.includes(t.userid)).length===e.length},warpClass(){return{"select-module":this.module,"select-border":this.border,"select-whole":this.isWhole}},addStyle({avatarSize:e}){return{width:e+"px",height:e+"px"}},localTitle({title:e}){return e===void 0?this.$L("\u9009\u62E9\u4F1A\u5458"):e},localPlaceholder({placeholder:e}){return e===void 0?this.$L("\u641C\u7D22"):e}},methods:{isUncancelable(e){return this.uncancelable.length===0?!1:this.uncancelable.includes(e)},isDisabled(e){return this.disabledChoice.length===0?!1:this.disabledChoice.includes(e)},formatSelect(e){return e.map(a=>$A.leftExists(a,"d:")?this.recents.find(t=>t.userid===a):{type:"user",userid:a})},selectIcon(e){if(e==="all")return this.isSelectAll?"ios-checkmark-circle":"ios-radio-button-off";if($A.isArray(e)&&e.length>0){const a=e.filter(t=>this.selects.includes(t)).length;if(a===e.length)return"ios-checkmark-circle";if(a>0)return"ios-remove-circle"}return"ios-radio-button-off"},selectClass(e){switch(this.selectIcon(e)){case"ios-checkmark-circle":return"selected";case"ios-remove-circle":return"somed"}return""},searchBefore(){!this.showModal||(this.switchActive==="recent"?this.searchRecent():this.switchActive==="contact"?this.searchContact():this.switchActive==="project"&&this.searchProject())},searchRecent(){this.recents=this.cacheDialogs.filter(e=>e.name===void 0||e.dialog_delete===1||!this.showBot&&e.bot?!1:this.showDialog||e.type==="user").sort((e,a)=>e.top_at||a.top_at?$A.Date(a.top_at)-$A.Date(e.top_at):e.todo_num>0||a.todo_num>0?a.todo_num-e.todo_num:$A.Date(a.last_at)-$A.Date(e.last_at)).map(({id:e,name:a,type:t,group_type:s,avatar:i,dialog_user:l})=>({name:a,type:t,group_type:s,avatar:i,userid:t==="user"?l.userid:`d:${e}`}))},searchContact(){let e=this.searchKey;const a=this.searchCache.find(t=>t.type==="contact"&&t.key==e);a&&(this.contacts=a.data),this.waitIng++,setTimeout(()=>{if(this.searchKey!=e){this.waitIng--;return}setTimeout(()=>{this.loadIng++},300),this.$store.dispatch("call",{url:"users/search",data:{keys:{key:e,project_id:this.projectId,no_project_id:this.noProjectId,dialog_id:this.dialogId,bot:this.showBot&&e?2:0,disable:this.showDisable&&e?2:0},take:50}}).then(({data:t})=>{t=t.map(l=>Object.assign(l,{type:"user"})),this.contacts=t;const s=this.searchCache.findIndex(l=>l.key==e),i={type:"contact",key:e,data:t,time:$A.Time()};s>-1?this.searchCache.splice(s,1,i):this.searchCache.push(i)}).catch(({msg:t})=>{this.contacts=[],$A.messageWarning(t)}).finally(t=>{this.loadIng--,this.waitIng--})},this.searchCache.length>0?300:0)},searchProject(){let e=this.searchKey;const a=this.searchCache.find(t=>t.type==="project"&&t.key==e);a&&(this.projects=a.data),this.waitIng++,setTimeout(()=>{if(this.searchKey!=e){this.waitIng--;return}setTimeout(()=>{this.loadIng++},300),this.$store.dispatch("call",{url:"project/lists",data:{type:"team",keys:{name:e},getuserid:"yes",getstatistics:"no"}}).then(({data:t})=>{t=t.data.map(l=>Object.assign(l,{type:"project"})),this.projects=t;const s=this.searchCache.findIndex(l=>l.key==e),i={type:"project",key:e,data:t,time:$A.Time()};s>-1?this.searchCache.splice(s,1,i):this.searchCache.push(i)}).catch(({msg:t})=>{this.projects=[],$A.messageWarning(t)}).finally(t=>{this.loadIng--,this.waitIng--})},this.searchCache.length>0?300:0)},onSelection(){this.$nextTick(e=>{this.selects=$A.cloneJSON(this.values),this.showModal=!0})},onSelectAll(){if(this.isSelectAll){this.selects=$A.cloneJSON(this.uncancelable);return}this.lists.some(e=>{if(this.isDisabled(e.userid))return!1;if(this.multipleMax&&this.selects.length>=this.multipleMax)return $A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF"),!0;this.selects.includes(e.userid)||this.selects.push(e.userid)})},onSelectItem({userid:e}){if(this.selects.includes(e)){if(this.isUncancelable(e))return;this.selects=this.selects.filter(a=>a!=e)}else{if(this.isDisabled(e))return;if(this.multipleMax&&this.selects.length>=this.multipleMax){$A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF");return}this.selects.push(e),this.$nextTick(()=>{$A.scrollIntoViewIfNeeded(this.$refs.selected.querySelector(`li[data-id="${e}"]`))})}},onSelectProject(e){switch(this.selectIcon(e)){case"ios-checkmark-circle":const a=e.filter(s=>!this.isUncancelable(s));a.length!=e.length&&$A.messageWarning("\u90E8\u5206\u6210\u5458\u7981\u6B62\u53D6\u6D88"),this.selects=this.selects.filter(s=>!a.includes(s));break;default:const t=e.filter(s=>!this.isDisabled(s));t.length!=e.length&&$A.messageWarning("\u90E8\u5206\u6210\u5458\u7981\u6B62\u9009\u62E9"),this.selects=this.selects.concat(t.filter(s=>!this.selects.includes(s))),this.multipleMax&&this.selects.length>this.multipleMax&&($A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF"),this.selects=this.selects.slice(0,this.multipleMax));break}},onRemoveItem(e){this.isUncancelable(e)||(this.selects=this.selects.filter(a=>a!=e))},onSubmit(){if(this.submittIng>0)return;const e=$A.cloneJSON(this.values);if(this.values=$A.cloneJSON(this.selects),this.$emit("input",this.values),this.$emit("onSubmit",this.values),!this.beforeSubmit){this.showModal=!1;return}const a=this.beforeSubmit();a&&a.then?(this.submittIng++,a.then(()=>{this.showModal=!1}).catch(()=>{this.values=e,this.$emit("input",this.values)}).finally(()=>{this.submittIng--})):this.showModal=!1}}},c={};var d=n(u,o,h,!1,f,null,null,null);function f(e){for(let a in c)this[a]=c[a]}var m=function(){return d.exports}();export{m as U}; +import{m as r,n}from"./app.28437e7d.js";var o=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"common-user-select",class:e.warpClass},[e.module?e._e():t("ul",{on:{click:e.onSelection}},[e._l(e.values,function(s){return s?t("li",[t("UserAvatar",{attrs:{userid:s,size:e.avatarSize,"show-icon":e.avatarIcon,"show-name":e.avatarName,"tooltip-disabled":""}})],1):e._e()}),e.addIcon||e.values.length===0?t("li",{staticClass:"add-icon",style:e.addStyle,on:{click:function(s){return s.stopPropagation(),e.onSelection.apply(null,arguments)}}}):e._e()],2),t("Modal",{attrs:{"class-name":"common-user-select-modal","mask-closable":!1,closable:!e.isFullscreen,fullscreen:e.isFullscreen,"footer-hide":e.isFullscreen,width:"640"},scopedSlots:e._u([{key:"header",fn:function(){return[e.isFullscreen?t("div",{staticClass:"user-modal-header"},[t("div",{staticClass:"user-modal-close",on:{click:function(s){e.showModal=!1}}},[e._v(e._s(e.$L("\u5173\u95ED")))]),t("div",{staticClass:"user-modal-title"},[t("span",[e._v(e._s(e.localTitle))])]),t("div",{staticClass:"user-modal-submit",on:{click:e.onSubmit}},[e.loadIng>0?t("div",{staticClass:"submit-loading"},[t("Loading")],1):e._e(),e._v(" "+e._s(e.$L("\u786E\u5B9A"))+" "),e.selects.length>0?[e._v(" ("+e._s(e.selects.length)),e.multipleMax?t("span",[e._v("/"+e._s(e.multipleMax))]):e._e(),e._v(") ")]:e._e()],2)]):t("div",{staticClass:"ivu-modal-header-inner"},[e._v(e._s(e.localTitle))])]},proxy:!0},{key:"close",fn:function(){return[t("i",{staticClass:"ivu-icon ivu-icon-ios-close"})]},proxy:!0},{key:"footer",fn:function(){return[t("Button",{attrs:{type:"primary",loading:e.submittIng>0},on:{click:e.onSubmit}},[e._v(" "+e._s(e.$L("\u786E\u5B9A"))+" "),e.selects.length>0?[e._v(" ("+e._s(e.selects.length)),e.multipleMax?t("span",[e._v("/"+e._s(e.multipleMax))]):e._e(),e._v(") ")]:e._e()],2)]},proxy:!0}]),model:{value:e.showModal,callback:function(s){e.showModal=s},expression:"showModal"}},[t("div",{staticClass:"user-modal-search"},[e.selects.length>0?t("Scrollbar",{ref:"selected",staticClass:"search-selected",attrs:{"enable-x":"","enable-y":!1}},[t("ul",e._l(e.formatSelect(e.selects),function(s){return t("li",{attrs:{"data-id":s.userid},on:{click:function(i){return i.stopPropagation(),e.onRemoveItem(s.userid)}}},[s.type=="group"?[s.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:s.avatar,size:32}}):s.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):s.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):s.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:t("UserAvatar",{attrs:{userid:s.userid,"tooltip-disabled":""}})],2)}),0)]):e._e(),t("Input",{staticClass:"search-input",attrs:{placeholder:e.localPlaceholder,clearable:""},model:{value:e.searchKey,callback:function(s){e.searchKey=s},expression:"searchKey"}},[t("div",{staticClass:"search-pre",attrs:{slot:"prefix"},slot:"prefix"},[e.loadIng>0?t("Loading"):t("Icon",{attrs:{type:"ios-search"}})],1)])],1),e.isWhole?t("ul",{staticClass:"user-modal-switch"},e._l(e.switchItems,function(s){return t("li",{key:s.key,class:{active:e.switchActive===s.key},on:{click:function(i){e.switchActive=s.key}}},[e._v(e._s(e.$L(s.label)))])}),0):e._e(),e.lists.length>0?t("Scrollbar",{staticClass:"user-modal-list"},[e.switchActive=="project"?t("ul",{staticClass:"user-modal-project"},e._l(e.lists,function(s){return t("li",{class:e.selectClass(s.userid_list),on:{click:function(i){return e.onSelectProject(s.userid_list)}}},[t("Icon",{staticClass:"user-modal-icon",attrs:{type:e.selectIcon(s.userid_list)}}),t("div",{staticClass:"user-modal-avatar"},[t("i",{staticClass:"taskfont icon-avatar"},[e._v("\uE6F9")]),t("div",{staticClass:"project-name"},[t("div",{staticClass:"label"},[e._v(e._s(s.name))]),t("div",{staticClass:"subtitle"},[e._v(" "+e._s(s.userid_list.length)+" "+e._s(e.$L("\u9879\u76EE\u6210\u5458"))+" "),t("em",{staticClass:"all"},[e._v(e._s(e.$L("\u5DF2\u5168\u9009")))]),t("em",{staticClass:"some"},[e._v(e._s(e.$L("\u5DF2\u9009\u90E8\u5206")))])])])])],1)}),0):t("ul",[e.showSelectAll?t("li",{class:e.selectClass("all"),on:{click:e.onSelectAll}},[t("Icon",{staticClass:"user-modal-icon",attrs:{type:e.selectIcon("all")}}),t("div",{staticClass:"user-modal-all"},[e._v(e._s(e.$L("\u5168\u9009")))])],1):e._e(),e._l(e.lists,function(s){return t("li",{class:{selected:e.selects.includes(s.userid),disabled:e.isUncancelable(s.userid)||e.isDisabled(s.userid)},on:{click:function(i){return e.onSelectItem(s)}}},[e.selects.includes(s.userid)?t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-checkmark-circle"}}):t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-radio-button-off"}}),s.type=="group"?t("div",{staticClass:"user-modal-avatar"},[s.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:s.avatar,size:40}}):s.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):s.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):s.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}}),t("div",{staticClass:"avatar-name"},[t("span",[e._v(e._s(s.name))])])],1):t("UserAvatar",{staticClass:"user-modal-avatar",attrs:{userid:s.userid,size:40,"show-name":"","tooltip-disabled":""}})],1)})],2)]):t("div",{staticClass:"user-modal-empty"},[e.waitIng>0?t("Loading"):[t("div",{staticClass:"empty-icon"},[t("Icon",{attrs:{type:"ios-cafe-outline"}})],1),t("div",{staticClass:"empty-text"},[e._v(e._s(e.$L("\u6682\u65E0\u7ED3\u679C")))])]],2)],1)],1)},h=[];const u={name:"UserSelect",props:{value:{type:[String,Number,Array],default:()=>[]},uncancelable:{type:Array,default:()=>[]},disabledChoice:{type:Array,default:()=>[]},projectId:{type:Number,default:0},noProjectId:{type:Number,default:0},dialogId:{type:Number,default:0},showBot:{type:Boolean,default:!1},showDisable:{type:Boolean,default:!1},multipleMax:{type:Number},avatarSize:{type:Number,default:28},avatarIcon:{type:Boolean,default:!0},avatarName:{type:Boolean,default:!1},addIcon:{type:Boolean,default:!0},border:{type:Boolean,default:!1},title:{type:String},placeholder:{type:String},showSelectAll:{type:Boolean,default:!0},showDialog:{type:Boolean,default:!1},module:{type:Boolean,default:!1},beforeSubmit:Function},data(){return{switchItems:[{key:"recent",label:"\u6700\u8FD1"},{key:"contact",label:"\u901A\u8BAF\u5F55"},{key:"project",label:"\u9879\u76EE\u6210\u5458"}],switchActive:"recent",loadIng:0,waitIng:0,submittIng:0,values:[],selects:[],recents:[],contacts:[],projects:[],showModal:!1,searchKey:null,searchCache:[]}},watch:{value:{handler(e){typeof e=="number"?this.$emit("input",e>0?[e]:[]):typeof e=="string"&&(e=e.indexOf(",")>-1?e.split(","):[e],this.$emit("input",e.map(a=>$A.runNum(a)).filter(a=>a>0))),this.values=e},immediate:!0},isWhole:{handler(e){e?this.switchActive="recent":this.switchActive="contact"},immediate:!0},showModal(e){e?this.searchBefore():this.searchKey="",this.$emit("onShowChange",e)},searchKey(){this.searchBefore()},switchActive(){this.searchBefore()}},computed:{...r(["cacheDialogs"]),isFullscreen({windowWidth:e}){return e<576},isWhole({projectId:e,noProjectId:a,dialogId:t}){return e===0&&a===0&&t===0},lists({switchActive:e,searchKey:a,recents:t,contacts:s,projects:i}){switch(e){case"recent":return a?t.filter(l=>`${l.name}`.indexOf(a)>-1):t;case"contact":return s;case"project":return i}return[]},isSelectAll({lists:e,selects:a}){return e.length>0&&e.filter(t=>a.includes(t.userid)).length===e.length},warpClass(){return{"select-module":this.module,"select-border":this.border,"select-whole":this.isWhole}},addStyle({avatarSize:e}){return{width:e+"px",height:e+"px"}},localTitle({title:e}){return e===void 0?this.$L("\u9009\u62E9\u4F1A\u5458"):e},localPlaceholder({placeholder:e}){return e===void 0?this.$L("\u641C\u7D22"):e}},methods:{isUncancelable(e){return this.uncancelable.length===0?!1:this.uncancelable.includes(e)},isDisabled(e){return this.disabledChoice.length===0?!1:this.disabledChoice.includes(e)},formatSelect(e){return e.map(a=>$A.leftExists(a,"d:")?this.recents.find(t=>t.userid===a):{type:"user",userid:a})},selectIcon(e){if(e==="all")return this.isSelectAll?"ios-checkmark-circle":"ios-radio-button-off";if($A.isArray(e)&&e.length>0){const a=e.filter(t=>this.selects.includes(t)).length;if(a===e.length)return"ios-checkmark-circle";if(a>0)return"ios-remove-circle"}return"ios-radio-button-off"},selectClass(e){switch(this.selectIcon(e)){case"ios-checkmark-circle":return"selected";case"ios-remove-circle":return"somed"}return""},searchBefore(){!this.showModal||(this.switchActive==="recent"?this.searchRecent():this.switchActive==="contact"?this.searchContact():this.switchActive==="project"&&this.searchProject())},searchRecent(){this.recents=this.cacheDialogs.filter(e=>e.name===void 0||e.dialog_delete===1||!this.showBot&&e.bot?!1:this.showDialog||e.type==="user").sort((e,a)=>e.top_at||a.top_at?$A.Date(a.top_at)-$A.Date(e.top_at):e.todo_num>0||a.todo_num>0?a.todo_num-e.todo_num:$A.Date(a.last_at)-$A.Date(e.last_at)).map(({id:e,name:a,type:t,group_type:s,avatar:i,dialog_user:l})=>({name:a,type:t,group_type:s,avatar:i,userid:t==="user"?l.userid:`d:${e}`}))},searchContact(){let e=this.searchKey;const a=this.searchCache.find(t=>t.type==="contact"&&t.key==e);a&&(this.contacts=a.data),this.waitIng++,setTimeout(()=>{if(this.searchKey!=e){this.waitIng--;return}setTimeout(()=>{this.loadIng++},300),this.$store.dispatch("call",{url:"users/search",data:{keys:{key:e,project_id:this.projectId,no_project_id:this.noProjectId,dialog_id:this.dialogId,bot:this.showBot&&e?2:0,disable:this.showDisable&&e?2:0},take:50}}).then(({data:t})=>{t=t.map(l=>Object.assign(l,{type:"user"})),this.contacts=t;const s=this.searchCache.findIndex(l=>l.key==e),i={type:"contact",key:e,data:t,time:$A.Time()};s>-1?this.searchCache.splice(s,1,i):this.searchCache.push(i)}).catch(({msg:t})=>{this.contacts=[],$A.messageWarning(t)}).finally(t=>{this.loadIng--,this.waitIng--})},this.searchCache.length>0?300:0)},searchProject(){let e=this.searchKey;const a=this.searchCache.find(t=>t.type==="project"&&t.key==e);a&&(this.projects=a.data),this.waitIng++,setTimeout(()=>{if(this.searchKey!=e){this.waitIng--;return}setTimeout(()=>{this.loadIng++},300),this.$store.dispatch("call",{url:"project/lists",data:{type:"team",keys:{name:e},getuserid:"yes",getstatistics:"no"}}).then(({data:t})=>{t=t.data.map(l=>Object.assign(l,{type:"project"})),this.projects=t;const s=this.searchCache.findIndex(l=>l.key==e),i={type:"project",key:e,data:t,time:$A.Time()};s>-1?this.searchCache.splice(s,1,i):this.searchCache.push(i)}).catch(({msg:t})=>{this.projects=[],$A.messageWarning(t)}).finally(t=>{this.loadIng--,this.waitIng--})},this.searchCache.length>0?300:0)},onSelection(){this.$nextTick(e=>{this.selects=$A.cloneJSON(this.values),this.showModal=!0})},onSelectAll(){if(this.isSelectAll){this.selects=$A.cloneJSON(this.uncancelable);return}this.lists.some(e=>{if(this.isDisabled(e.userid))return!1;if(this.multipleMax&&this.selects.length>=this.multipleMax)return $A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF"),!0;this.selects.includes(e.userid)||this.selects.push(e.userid)})},onSelectItem({userid:e}){if(this.selects.includes(e)){if(this.isUncancelable(e))return;this.selects=this.selects.filter(a=>a!=e)}else{if(this.isDisabled(e))return;if(this.multipleMax&&this.selects.length>=this.multipleMax){$A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF");return}this.selects.push(e),this.$nextTick(()=>{$A.scrollIntoViewIfNeeded(this.$refs.selected.querySelector(`li[data-id="${e}"]`))})}},onSelectProject(e){switch(this.selectIcon(e)){case"ios-checkmark-circle":const a=e.filter(s=>!this.isUncancelable(s));a.length!=e.length&&$A.messageWarning("\u90E8\u5206\u6210\u5458\u7981\u6B62\u53D6\u6D88"),this.selects=this.selects.filter(s=>!a.includes(s));break;default:const t=e.filter(s=>!this.isDisabled(s));t.length!=e.length&&$A.messageWarning("\u90E8\u5206\u6210\u5458\u7981\u6B62\u9009\u62E9"),this.selects=this.selects.concat(t.filter(s=>!this.selects.includes(s))),this.multipleMax&&this.selects.length>this.multipleMax&&($A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF"),this.selects=this.selects.slice(0,this.multipleMax));break}},onRemoveItem(e){this.isUncancelable(e)||(this.selects=this.selects.filter(a=>a!=e))},onSubmit(){if(this.submittIng>0)return;const e=$A.cloneJSON(this.values);if(this.values=$A.cloneJSON(this.selects),this.$emit("input",this.values),this.$emit("onSubmit",this.values),!this.beforeSubmit){this.showModal=!1;return}const a=this.beforeSubmit();a&&a.then?(this.submittIng++,a.then(()=>{this.showModal=!1}).catch(()=>{this.values=e,this.$emit("input",this.values)}).finally(()=>{this.submittIng--})):this.showModal=!1}}},c={};var d=n(u,o,h,!1,f,null,null,null);function f(e){for(let a in c)this[a]=c[a]}var m=function(){return d.exports}();export{m as U}; diff --git a/public/js/build/app.3d81bfbf.js b/public/js/build/app.28437e7d.js similarity index 99% rename from public/js/build/app.3d81bfbf.js rename to public/js/build/app.28437e7d.js index 164a2254f..14b678f41 100644 --- a/public/js/build/app.3d81bfbf.js +++ b/public/js/build/app.28437e7d.js @@ -134,7 +134,7 @@ var o$={languageTypes:{zh:"\u7B80\u4F53\u4E2D\u6587","zh-CHT":"\u7E41\u9AD4\u4E2 `};cr.prototype.strong=function(e){return""+e+""};cr.prototype.em=function(e){return""+e+""};cr.prototype.codespan=function(e){return""+e+""};cr.prototype.br=function(){return this.options.xhtml?"
":"
"};cr.prototype.del=function(e){return""+e+""};cr.prototype.link=function(e,t,r){if(e=BE(this.options.sanitize,this.options.baseUrl,e),e===null)return r;var i='
",i};cr.prototype.image=function(e,t,r){if(e=BE(this.options.sanitize,this.options.baseUrl,e),e===null)return r;var i=''+r+'":">",i};cr.prototype.text=function(e){return e};function Ga(){}Ga.prototype.strong=Ga.prototype.em=Ga.prototype.codespan=Ga.prototype.del=Ga.prototype.text=function(e){return e};Ga.prototype.link=Ga.prototype.image=function(e,t,r){return""+r};Ga.prototype.br=function(){return""};function wa(e){this.tokens=[],this.token=null,this.options=e||Gn.defaults,this.options.renderer=this.options.renderer||new cr,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new D0}wa.parse=function(e,t){var r=new wa(t);return r.parse(e)};wa.prototype.parse=function(e){this.inline=new _i(e.links,this.options),this.inlineText=new _i(e.links,Ca({},this.options,{renderer:new Ga})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t};wa.prototype.next=function(){return this.token=this.tokens.pop(),this.token};wa.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0};wa.prototype.parseText=function(){for(var e=this.token.text;this.peek().type==="text";)e+=` `+this.next().text;return this.inline.output(e)};wa.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,NE(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":{var e="",t="",r,i,a,s;for(a="",r=0;r?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var r=t;do this.seen[r]++,t=r+"-"+this.seen[r];while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t};function Un(e,t){if(t){if(Un.escapeTest.test(e))return e.replace(Un.escapeReplace,function(r){return Un.replacements[r]})}else if(Un.escapeTestNoEncode.test(e))return e.replace(Un.escapeReplaceNoEncode,function(r){return Un.replacements[r]});return e}Un.escapeTest=/[&<>"']/;Un.escapeReplace=/[&<>"']/g;Un.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"};Un.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/;Un.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;function NE(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,function(t,r){return r=r.toLowerCase(),r==="colon"?":":r.charAt(0)==="#"?r.charAt(1)==="x"?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):""})}function Er(e,t){return e=e.source||e,t=t||"",{replace:function(r,i){return i=i.source||i,i=i.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(r,i),this},getRegex:function(){return new RegExp(e,t)}}}function BE(e,t,r){if(e){try{var i=decodeURIComponent(NE(r)).replace(/[^\w:]/g,"").toLowerCase()}catch{return null}if(i.indexOf("javascript:")===0||i.indexOf("vbscript:")===0||i.indexOf("data:")===0)return null}t&&!_B.test(r)&&(r=mB(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch{return null}return r}function mB(e,t){return Nh[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?Nh[" "+e]=e+"/":Nh[" "+e]=FE(e,"/",!0)),e=Nh[" "+e],t.slice(0,2)==="//"?e.replace(/:[\s\S]*/,":")+t:t.charAt(0)==="/"?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+t:e+t}var Nh={},_B=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function fl(){}fl.exec=fl;function Ca(e){for(var t=1,r,i;t=0&&c[n]==="\\";)h=!h;return h?"|":" |"}),i=r.split(/ \|/),a=0;if(i.length>t)i.splice(t);else for(;i.lengthAn error occurred:

"+Un(h.message+"",!0)+"
";throw h}}Gn.options=Gn.setOptions=function(e){return Ca(Gn.defaults,e),Gn};Gn.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new cr,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}};Gn.defaults=Gn.getDefaults();Gn.Parser=wa;Gn.parser=wa.parse;Gn.Renderer=cr;Gn.TextRenderer=Ga;Gn.Lexer=Ts;Gn.lexer=Ts.lex;Gn.InlineLexer=_i;Gn.inlineLexer=_i.output;Gn.Slugger=D0;Gn.parse=Gn;an.initHighlightingOnLoad();const yB=new Gn.Renderer;var bB=Gn.setOptions({renderer:yB,gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,smartLists:!0,highlight:function(e){return an.highlightAuto(e).value}}),wB=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{ref:"preview",staticClass:"markdown-preview-warp"},[r("div",{class:`markdown-preview ${"markdown-theme-"+e.theme}`,domProps:{innerHTML:e._s(e.html)}}),r("div",{class:["preview-img",e.previewImgModal?"active":""]},[r("span",{staticClass:"close icon-close iconfont",on:{click:function(i){e.previewImgModal=!1}}}),r("img",{class:[e.previewImgMode],attrs:{src:e.previewImgSrc,alt:""}})])])},CB=[];const xB={name:"markdown-preview",props:{initialValue:{type:String,default:""},markedOptions:{type:Object,default:()=>({})},theme:{type:String,default:"light"},copyCode:{type:Boolean,default:!0},copyBtnText:{type:String,default:"\u590D\u5236\u4EE3\u7801"}},data(){return{html:"",previewImgModal:!1,previewImgSrc:"",previewImgMode:""}},mounted(){this.translateMarkdown()},methods:{tocLevel(e,t){let r=9999;return t.forEach(({level:i})=>{r=Math.min(r,i)}),r===9999?e:e-(r-1)},translateMarkdown(){let e=bB(this.initialValue,{sanitize:!1,...this.markedOptions}).replace(/href="/gi,'target="_blank" href="');if(this.copyCode&&(e=e.replace(/
/g,'
'+this.copyBtnText+"
").replace(/<\/pre>/g,"
")),/\[\[TOC\]\]/.test(e)){let t="";Hg.tocItems.forEach(r=>{t+=`
  • ${r.text}
  • `}),e=e.replace(/\[\[TOC\]\]/g,`
      ${t}
    `)}this.html=e,this.addCopyListener(),this.addImageClickListener()},addCopyListener(){setTimeout(()=>{const e=document.querySelectorAll(".code-block .copy-code");this.btns=e;for(let t=0,r=e.length;t{const i=e[t].parentNode.querySelectorAll("pre")[0].innerText,a=document.createElement("input");a.setAttribute("value",i),document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a),this.$emit("on-copy",i)}},600)},addImageClickListener(){const{imgs:e=[]}=this;if(e.length>0)for(let t=0,r=e.length;t{if(!!this.$refs.preview){this.imgs=this.$refs.preview.querySelectorAll("img");for(let t=0,r=this.imgs.length;t{const i=this.imgs[t].getAttribute("src");this.previewImage(i)}}},600)},previewImage(e){const t=new Image;t.src=e,t.onload=()=>{const r=t.naturalWidth;t.naturalHeight/r>1.4?this.previewImgMode="horizontal":this.previewImgMode="vertical",this.previewImgSrc=e,this.previewImgModal=!0}}},watch:{initialValue(){this.translateMarkdown()}}},qx={};var SB=ii(xB,wB,CB,!1,kB,"7c98e74e",null,null);function kB(e){for(let t in qx)this[t]=qx[t]}var EB=function(){return SB.exports}(),O0={exports:{}},zE=function(t,r){return function(){for(var a=new Array(arguments.length),s=0;s=0)return;i==="set-cookie"?r[i]=(r[i]?r[i]:[]).concat([a]):r[i]=r[i]?r[i]+", "+a:a}}),r},tS=Ji,iF=tS.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),i;function a(s){var u=s;return t&&(r.setAttribute("href",u),u=r.href),r.setAttribute("href",u),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=a(window.location.href),function(u){var c=tS.isString(u)?a(u):u;return c.protocol===i.protocol&&c.host===i.host}}():function(){return function(){return!0}}();function A0(e){this.message=e}A0.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};A0.prototype.__CANCEL__=!0;var Nv=A0,zh=Ji,aF=XB,sF=JB,oF=VE,lF=tF,uF=rF,cF=iF,T_=KE,dF=Fv,fF=Nv,nS=function(t){return new Promise(function(i,a){var s=t.data,u=t.headers,c=t.responseType,h;function n(){t.cancelToken&&t.cancelToken.unsubscribe(h),t.signal&&t.signal.removeEventListener("abort",h)}zh.isFormData(s)&&delete u["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",v=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";u.Authorization="Basic "+btoa(d+":"+v)}var m=lF(t.baseURL,t.url);p.open(t.method.toUpperCase(),oF(m,t.params,t.paramsSerializer),!0),p.timeout=t.timeout;function g(){if(!!p){var b="getAllResponseHeaders"in p?uF(p.getAllResponseHeaders()):null,k=!c||c==="text"||c==="json"?p.responseText:p.response,O={data:k,status:p.status,statusText:p.statusText,headers:b,config:t,request:p};aF(function(x){i(x),n()},function(x){a(x),n()},O),p=null}}if("onloadend"in p?p.onloadend=g:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(g)},p.onabort=function(){!p||(a(T_("Request aborted",t,"ECONNABORTED",p)),p=null)},p.onerror=function(){a(T_("Network Error",t,null,p)),p=null},p.ontimeout=function(){var k=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",O=t.transitional||dF.transitional;t.timeoutErrorMessage&&(k=t.timeoutErrorMessage),a(T_(k,t,O.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},zh.isStandardBrowserEnv()){var y=(t.withCredentials||cF(m))&&t.xsrfCookieName?sF.read(t.xsrfCookieName):void 0;y&&(u[t.xsrfHeaderName]=y)}"setRequestHeader"in p&&zh.forEach(u,function(k,O){typeof s=="undefined"&&O.toLowerCase()==="content-type"?delete u[O]:p.setRequestHeader(O,k)}),zh.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),c&&c!=="json"&&(p.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&p.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(h=function(b){!p||(a(!b||b&&b.type?new fF("canceled"):b),p.abort(),p=null)},t.cancelToken&&t.cancelToken.subscribe(h),t.signal&&(t.signal.aborted?h():t.signal.addEventListener("abort",h))),s||(s=null),p.send(s)})},jr=Ji,rS=HB,hF=WE,pF={"Content-Type":"application/x-www-form-urlencoded"};function iS(e,t){!jr.isUndefined(e)&&jr.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function vF(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=nS),e}function mF(e,t,r){if(jr.isString(e))try{return(t||JSON.parse)(e),jr.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(r||JSON.stringify)(e)}var Bv={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:vF(),transformRequest:[function(t,r){return rS(r,"Accept"),rS(r,"Content-Type"),jr.isFormData(t)||jr.isArrayBuffer(t)||jr.isBuffer(t)||jr.isStream(t)||jr.isFile(t)||jr.isBlob(t)?t:jr.isArrayBufferView(t)?t.buffer:jr.isURLSearchParams(t)?(iS(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):jr.isObject(t)||r&&r["Content-Type"]==="application/json"?(iS(r,"application/json"),mF(t)):t}],transformResponse:[function(t){var r=this.transitional||Bv.transitional,i=r&&r.silentJSONParsing,a=r&&r.forcedJSONParsing,s=!i&&this.responseType==="json";if(s||a&&jr.isString(t)&&t.length)try{return JSON.parse(t)}catch(u){if(s)throw u.name==="SyntaxError"?hF(u,this,"E_JSON_PARSE"):u}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};jr.forEach(["delete","get","head"],function(t){Bv.headers[t]={}});jr.forEach(["post","put","patch"],function(t){Bv.headers[t]=jr.merge(pF)});var Fv=Bv,_F=Ji,gF=Fv,yF=function(t,r,i){var a=this||gF;return _F.forEach(i,function(u){t=u.call(a,t,r)}),t},HE=function(t){return!!(t&&t.__CANCEL__)},aS=Ji,A_=yF,bF=HE,wF=Fv,CF=Nv;function M_(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CF("canceled")}var xF=function(t){M_(t),t.headers=t.headers||{},t.data=A_.call(t,t.data,t.headers,t.transformRequest),t.headers=aS.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),aS.forEach(["delete","get","head","post","put","patch","common"],function(a){delete t.headers[a]});var r=t.adapter||wF.adapter;return r(t).then(function(a){return M_(t),a.data=A_.call(t,a.data,a.headers,t.transformResponse),a},function(a){return bF(a)||(M_(t),a&&a.response&&(a.response.data=A_.call(t,a.response.data,a.response.headers,t.transformResponse))),Promise.reject(a)})},Fi=Ji,GE=function(t,r){r=r||{};var i={};function a(p,d){return Fi.isPlainObject(p)&&Fi.isPlainObject(d)?Fi.merge(p,d):Fi.isPlainObject(d)?Fi.merge({},d):Fi.isArray(d)?d.slice():d}function s(p){if(Fi.isUndefined(r[p])){if(!Fi.isUndefined(t[p]))return a(void 0,t[p])}else return a(t[p],r[p])}function u(p){if(!Fi.isUndefined(r[p]))return a(void 0,r[p])}function c(p){if(Fi.isUndefined(r[p])){if(!Fi.isUndefined(t[p]))return a(void 0,t[p])}else return a(void 0,r[p])}function h(p){if(p in r)return a(t[p],r[p]);if(p in t)return a(void 0,t[p])}var n={url:u,method:u,data:u,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:h};return Fi.forEach(Object.keys(t).concat(Object.keys(r)),function(d){var v=n[d]||s,m=v(d);Fi.isUndefined(m)&&v!==h||(i[d]=m)}),i},YE={version:"0.24.0"},SF=YE.version,M0={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){M0[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});var sS={};M0.transitional=function(t,r,i){function a(s,u){return"[Axios v"+SF+"] Transitional option '"+s+"'"+u+(i?". "+i:"")}return function(s,u,c){if(t===!1)throw new Error(a(u," has been removed"+(r?" in "+r:"")));return r&&!sS[u]&&(sS[u]=!0,console.warn(a(u," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,u,c):!0}};function kF(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var i=Object.keys(e),a=i.length;a-- >0;){var s=i[a],u=t[s];if(u){var c=e[s],h=c===void 0||u(c,s,e);if(h!==!0)throw new TypeError("option "+s+" must be "+h);continue}if(r!==!0)throw Error("Unknown option "+s)}}var EF={assertOptions:kF,validators:M0},XE=Ji,DF=VE,oS=WB,lS=xF,zv=GE,JE=EF,Hl=JE.validators;function Sd(e){this.defaults=e,this.interceptors={request:new oS,response:new oS}}Sd.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=zv(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&JE.assertOptions(r,{silentJSONParsing:Hl.transitional(Hl.boolean),forcedJSONParsing:Hl.transitional(Hl.boolean),clarifyTimeoutError:Hl.transitional(Hl.boolean)},!1);var i=[],a=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(t)===!1||(a=a&&v.synchronous,i.unshift(v.fulfilled,v.rejected))});var s=[];this.interceptors.response.forEach(function(v){s.push(v.fulfilled,v.rejected)});var u;if(!a){var c=[lS,void 0];for(Array.prototype.unshift.apply(c,i),c=c.concat(s),u=Promise.resolve(t);c.length;)u=u.then(c.shift(),c.shift());return u}for(var h=t;i.length;){var n=i.shift(),p=i.shift();try{h=n(h)}catch(d){p(d);break}}try{u=lS(h)}catch(d){return Promise.reject(d)}for(;s.length;)u=u.then(s.shift(),s.shift());return u};Sd.prototype.getUri=function(t){return t=zv(this.defaults,t),DF(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};XE.forEach(["delete","get","head","options"],function(t){Sd.prototype[t]=function(r,i){return this.request(zv(i||{},{method:t,url:r,data:(i||{}).data}))}});XE.forEach(["post","put","patch"],function(t){Sd.prototype[t]=function(r,i,a){return this.request(zv(a||{},{method:t,url:r,data:i}))}});var OF=Sd,PF=Nv;function gu(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(a){t=a});var r=this;this.promise.then(function(i){if(!!r._listeners){var a,s=r._listeners.length;for(a=0;a v"+e._s(e.updateVersion))])],1),e.$Platform==="mac"?r("div",{staticClass:"notification-tip"},[e._v(e._s(e.$L("\u79BB\u6700\u65B0\u7248\u672C\u53EA\u6709\u4E00\u6B65\u4E4B\u9065\u4E86\uFF01\u91CD\u65B0\u542F\u52A8\u5E94\u7528\u5373\u53EF\u5B8C\u6210\u66F4\u65B0\u3002")))]):e._e()]),r("Scrollbar",{attrs:{"class-name":"notification-body"}},[r("MarkdownPreview",{attrs:{initialValue:e.updateNote}})],1),r("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[r("Button",{attrs:{type:"default"},on:{click:function(i){e.updateShow=!1}}},[e._v(e._s(e.$L("\u7A0D\u540E")))]),r("Button",{attrs:{type:"primary",loading:e.updateIng},on:{click:e.updateQuitAndInstall}},[e._v(e._s(e.$L(e.$Platform==="mac"?"\u91CD\u65B0\u542F\u52A8":"\u7ACB\u5373\u5347\u7EA7")))])],1)],1)],2)},WF=[];const KF={name:"RightBottom",components:{MarkdownPreview:EB},data(){return{loadIng:0,subscribe:null,apiVersion:"",systemVersion:window.systemInfo.version,updateVersion:"",updateNote:"",updateShow:!1,updateBottomShow:!1,updateIng:!1,downloadUrl:""}},mounted(){this.checkVersion(),this.$Electron&&(this.subscribe=il.Store.subscribe("updateNotification",e=>{this.updateShow=!0}),this.$Electron.registerMsgListener("updateDownloaded",e=>{this.$store.state.clientNewVersion=e.version,this.updateVersion=e.version,this.updateNote=e.releaseNotes||this.$L("\u6CA1\u6709\u66F4\u65B0\u63CF\u8FF0\u3002"),this.updateShow=$A.strExists(this.updateNote,`[${this.updateVersion}-Release]`)}))},beforeDestroy(){this.subscribe&&(this.subscribe.unsubscribe(),this.subscribe=null)},watch:{updateShow(e){e&&(this.updateBottomShow=!0)}},computed:{isSoftware(){return this.$Electron||this.$isEEUiApp},showSSO(){return this.isSoftware&&["login"].includes(this.$route.name)},showDown(){return!this.$isEEUiApp&&!this.windowTouch&&["login","index","manage-dashboard"].includes(this.$route.name)},showPrivacy(){return $A.isDooServer()&&this.$isEEUiApp&&["login"].includes(this.$route.name)}},methods:{isNotServer(){let e=$A.getDomain(window.systemInfo.apiUrl);return this.isSoftware&&(e==""||e=="public")},checkVersion(){this.isNotServer()||(cS.get($A.apiUrl("system/version")).then(({status:e,data:t})=>{e===200&&(this.apiVersion=t.version||"",this.compareVersion(this.apiVersion,"0.19.0")===-1&&$A.modalWarning({title:"\u6E29\u99A8\u63D0\u793A",message:"\u670D\u52A1\u5668\u63A5\u53E3\u7248\u672C\u8FC7\u4F4E\uFF0C\u90E8\u5206\u529F\u80FD\u53EF\u80FD\u65E0\u6CD5\u6B63\u5E38\u4F7F\u7528\u3002"}),this.$Electron?this.$Electron.sendMessage("updateCheckAndDownload",{apiVersion:this.apiVersion}):this.getDownloadUrl(t.publish))}).catch(e=>{}),this.__checkVersion&&clearTimeout(this.__checkVersion),this.__checkVersion=setTimeout(this.checkVersion,600*1e3))},getDownloadUrl(e){if(!!$A.isJson(e))switch(e.provider){case"generic":this.downloadUrl=`${e.url}/latest`;break;case"github":(async t=>{let r="cacheAppdown::"+this.apiVersion,i=await $A.IDBJson(r),a=600;if(i.time&&i.time+a>Math.round(new Date().getTime()/1e3)){this.downloadUrl=i.data.html_url;return}this.loadIng>0||(this.loadIng++,cS.get(`https://api.github.com/repos/${e.owner}/${e.repo}/releases`).then(({status:s,data:u})=>{this.loadIng--,s===200&&$A.isArray(u)&&(i.time=Math.round(new Date().getTime()/1e3),i.data=u.find(({tag_name:c})=>this.compareVersion(this.tagVersion(c),this.apiVersion)===0)||{},$A.IDBSave(r,i),this.downloadUrl=i.data.html_url)}).catch(()=>{this.loadIng--}))})();break}},updateQuitAndInstall(){this.updateIng=!0,setTimeout(()=>{this.$Electron.sendMessage("updateQuitAndInstall")},301)},useSSOLogin(){il.Store.set("useSSOLogin",!0)},tagVersion(e){return e?$A.leftDelete(e.toLowerCase(),"v"):""},compareVersion(e,t){let r=0,i=0;if(e===t)return 0;const a=(s,u)=>{let c=u;for(;s[c]!=="."&&ch?1:-1;r=s+1,i=u+1}for(;r0)return 1;r=s+1}for(;i0)return-1;i=s+1}return 0}}},dS={};var HF=ii(KF,VF,WF,!1,GF,null,null,null);function GF(e){for(let t in dS)this[t]=dS[t]}var YF=function(){return HF.exports}();const XF="modulepreload",fS={},JF="/",Cn=function(t,r){return!r||r.length===0?t():Promise.all(r.map(i=>{if(i=`${JF}${i}`,i in fS)return;fS[i]=!0;const a=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":XF,a||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),a)return new Promise((c,h)=>{u.addEventListener("load",c),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};var ZF=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Modal",{attrs:{mask:!1,"mask-closable":!1,"footer-hide":!0,"transition-names":["",""],"class-name":e.viewMode==="desktop"?"common-preview-image-view":"common-preview-image-swipe",fullscreen:""},model:{value:e.show,callback:function(i){e.show=i},expression:"show"}},[e.list.length>0?[e.viewMode==="desktop"?r("PreviewImageView",{attrs:{"initial-index":e.index,"url-list":e.list,infinite:""}}):e._e(),e.viewMode==="mobile"?r("PreviewImageSwipe",{attrs:{"initial-index":e.index,"url-list":e.list},on:{"on-destroy":function(i){e.show=!1}}}):e._e()]:e._e()],2)},QF=[];const qF=()=>Cn(()=>import("./view.63338a5b.js"),["js/build/view.63338a5b.js","js/build/view.310641c1.css"]),ez=()=>Cn(()=>import("./swipe.f2e8b611.js"),["js/build/swipe.f2e8b611.js","js/build/swipe.750bd8d1.css"]),tz={name:"PreviewImage",components:{PreviewImageSwipe:ez,PreviewImageView:qF},props:{value:{type:Boolean,default:!1},index:{type:Number,default:0},list:{type:Array,default:()=>[]},mode:{type:String,default:null}},data(){return{show:this.value}},watch:{value(e){this.show=e},show(e){this.value!==e&&this.$emit("input",e)}},computed:{viewMode(){return this.mode?this.mode:this.windowTouch?"mobile":"desktop"}}},hS={};var nz=ii(tz,ZF,QF,!1,rz,null,null,null);function rz(e){for(let t in hS)this[t]=hS[t]}var iz=function(){return nz.exports}(),az=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("PreviewImage",{attrs:{index:e.previewImageIndex,list:e.previewImageList},model:{value:e.show,callback:function(i){e.show=i},expression:"show"}})},sz=[];const oz={name:"PreviewImageState",components:{PreviewImage:iz},computed:{...Ns(["previewImageIndex","previewImageList"])},data(){return{show:!1}},watch:{show(e){e?this.$store.state.previewImageIndex=Math.min(Math.max(this.$store.state.previewImageIndex,0),this.$store.state.previewImageList.length-1):(this.$store.state.previewImageIndex=0,this.$store.state.previewImageList=[])},previewImageList(e){if(e.length>0)if($A.isEEUiApp){const t=Math.min(Math.max(this.$store.state.previewImageIndex,0),this.$store.state.previewImageList.length-1),r=e.map(i=>$A.isJson(i)?$A.thumbRestore(i.src):$A.thumbRestore(i));$A.eeuiAppSendMessage({action:"picturePreview",position:t,paths:r})}else this.show=!0}}},pS={};var lz=ii(oz,az,sz,!1,uz,null,null,null);function uz(e){for(let t in pS)this[t]=pS[t]}var cz=function(){return lz.exports}(),dz=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"common-network-exception"},[e.type==="alert"?[e.show?r("Alert",{attrs:{type:"error","show-icon":"",closable:""}},[e._v(e._s(e.$L("\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8BBE\u7F6E\u3002")))]):e._e()]:e.type==="modal"?[r("Modal",{attrs:{width:416,closable:!1,"footer-hide":!0,"class-name":"common-network-exception-modal"},model:{value:e.show,callback:function(i){e.show=i},expression:"show"}},[r("div",{staticClass:"ivu-modal-confirm"},[r("div",{staticClass:"ivu-modal-confirm-head"},[r("div",{staticClass:"ivu-modal-confirm-head-icon ivu-modal-confirm-head-icon-error"},[r("Icon",{attrs:{type:"ios-close-circle"}})],1),r("div",{staticClass:"ivu-modal-confirm-head-title"},[e._v(e._s(e.$L("\u6E29\u99A8\u63D0\u793A")))])]),r("div",{staticClass:"ivu-modal-confirm-body"},[r("div",[e._v(e._s(e.$L("\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8BBE\u7F6E\u3002")))])]),r("div",{staticClass:"ivu-modal-confirm-footer"},[r("Button",{attrs:{type:"primary"},on:{click:function(i){e.show=!1}}},[e._v(e._s(e.$L("\u786E\u5B9A")))])],1)])])]:e._e()],2)},fz=[];const hz={name:"NetworkException",props:{type:{type:String,default:"modal"}},data(){return{show:!1}},beforeDestroy(){this.show=!1},computed:{...Ns(["ajaxNetworkException"])},watch:{ajaxNetworkException:{handler(e){this.show=e},immediate:!0}}},vS={};var pz=ii(hz,dz,fz,!1,vz,null,null,null);function vz(e){for(let t in vS)this[t]=vS[t]}var mz=function(){return pz.exports}(),_z=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("EDropdown",{ref:"dropdown",staticClass:"task-operation-dropdown",style:e.styles,attrs:{trigger:"click",disabled:e.disabled,size:e.size,placement:"bottom"},on:{command:e.dropTask,"visible-change":e.visibleChange}},[r("div",{ref:"icon",staticClass:"task-operation-icon"}),r("EDropdownMenu",{ref:"dropdownMenu",staticClass:"task-operation-more-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[r("li",{staticClass:"task-operation-more-warp",class:e.size},[r("ul",[e.flow?e.turns.length>0?e._l(e.turns,function(i){return r("EDropdownItem",{key:i.id,attrs:{command:`turn::${i.id}`}},[r("div",{staticClass:"item flow"},[i.id==e.task.flow_item_id&&e.flow.auto_assign!==!0?r("Icon",{staticClass:"check",attrs:{type:"md-checkmark-circle-outline"}}):r("Icon",{attrs:{type:"md-radio-button-off"}}),r("div",{staticClass:"flow-name",class:i.status},[e._v(e._s(i.name))])],1)])}):[e.task.complete_at?r("EDropdownItem",{attrs:{command:"uncomplete"}},[r("div",{staticClass:"item red"},[r("Icon",{attrs:{type:"md-checkmark-circle-outline"}}),e._v(e._s(e.$L("\u6807\u8BB0\u672A\u5B8C\u6210"))+" ")],1)]):r("EDropdownItem",{attrs:{command:"complete"}},[r("div",{staticClass:"item"},[r("Icon",{attrs:{type:"md-radio-button-off"}}),e._v(e._s(e.$L("\u5B8C\u6210"))+" ")],1)])]:r("EDropdownItem",{staticClass:"load-flow",attrs:{disabled:""}},[r("div",{staticClass:"load-flow-warp"},[r("Loading")],1)]),e.task.parent_id===0?[r("EDropdownItem",{attrs:{divided:e.turns.length>0,command:"archived"}},[r("div",{staticClass:"item"},[r("Icon",{attrs:{type:"ios-filing"}}),e._v(e._s(e.$L(e.task.archived_at?"\u8FD8\u539F\u5F52\u6863":"\u5F52\u6863"))+" ")],1)]),r("EDropdownItem",{attrs:{command:"remove"}},[r("div",{staticClass:"item hover-del"},[r("Icon",{attrs:{type:"md-trash"}}),e._v(e._s(e.$L("\u5220\u9664"))+" ")],1)]),e.colorShow?e._l(e.taskColorList,function(i,a){return r("EDropdownItem",{key:"c_"+a,attrs:{divided:a==0,command:i}},[r("div",{staticClass:"item"},[r("i",{staticClass:"taskfont",style:{color:i.color||"#f9f9f9"},domProps:{innerHTML:e._s(i.color==e.task.color?"":"")}}),e._v(e._s(e.$L(i.name))+" ")])])}):e._e()]:r("EDropdownItem",{attrs:{command:"remove",divided:e.turns.length>0}},[r("div",{staticClass:"item"},[r("Icon",{attrs:{type:"md-trash"}}),e._v(e._s(e.$L("\u5220\u9664"))+" ")],1)])],2)])])],1)},gz=[];const yz={name:"TaskOperation",data(){return{task:{},loadStatus:!1,colorShow:!0,updateBefore:!1,disabled:!1,size:"small",onUpdate:null,element:null,target:null,styles:{}}},beforeDestroy(){this.target&&this.target.removeEventListener("scroll",this.handlerEventListeners)},computed:{...Ns(["loads","taskOperation","taskColorList","taskFlows","taskFlowItems"]),...C0(["isLoad"]),loadIng(){return this.loadStatus?!0:this.isLoad(`task-${this.task.id}`)},flow(){return this.taskFlows.find(({task_id:e})=>e==this.task.id)},turns(){if(!this.flow)return[];let e=this.taskFlowItems.find(({id:t})=>t==this.flow.flow_item_id);return e?this.taskFlowItems.filter(({id:t})=>e.turns.includes(t)):[]}},watch:{taskOperation(e){if(e.event&&e.task){if(this.$refs.dropdown.visible&&this.element===e.event.target){this.hide();return}const t=e.event.target.getBoundingClientRect();this.styles={left:`${t.left}px`,top:`${t.top}px`,width:`${t.width}px`,height:`${t.height}px`},this.task=e.task,this.loadStatus=typeof e.loadStatus=="undefined"?!1:e.loadStatus,this.colorShow=typeof e.colorShow=="undefined"?!0:e.colorShow,this.updateBefore=typeof e.updateBefore=="undefined"?!1:e.updateBefore,this.disabled=typeof e.disabled=="undefined"?!1:e.disabled,this.size=typeof e.size=="undefined"?"small":e.size,this.onUpdate=typeof e.onUpdate=="function"?e.onUpdate:null,this.$refs.icon.focus(),this.updatePopper(),this.show(),this.$store.dispatch("getTaskFlow",this.task.id).finally(this.updatePopper),this.setupEventListeners(e.event)}else this.hide()}},methods:{show(){this.$refs.dropdown.show()},hide(){this.$refs.dropdown.hide()},dropTask(e){const t=this.task,r=i=>{i?this.$store.dispatch("saveTaskCompleteTemp",t.id):this.$store.dispatch("forgetTaskCompleteTemp",t.id)};if($A.isJson(e)){e.name&&this.updateTask({color:e.color}).catch(()=>{});return}if($A.leftExists(e,"turn::")){let i=$A.leftDelete(e,"turn::");if(i==this.task.flow_item_id)return;let a=this.taskFlowItems.find(({id:h})=>h==this.flow.flow_item_id)||{},s=this.taskFlowItems.find(({id:h})=>h==i)||{},u=a.status!=="end"&&s.status==="end",c=a.status==="end"&&s.status!=="end";this.updateBefore&&(u?r(!0):c&&r(!1)),this.updateTask({flow_item_id:i}).then(()=>{u?r(!0):c&&r(!1)}).catch(()=>{u?r(!1):c&&r(!0)});return}switch(e){case"complete":if(this.task.complete_at)return;this.updateBefore&&r(!0),this.updateTask({complete_at:$A.formatDate("Y-m-d H:i:s")}).then(()=>{r(!0)}).catch(()=>{r(!1)});break;case"uncomplete":if(!this.task.complete_at)return;this.updateBefore&&r(!1),this.updateTask({complete_at:!1}).then(()=>{r(!1)}).catch(()=>{r(!0)});break;case"archived":case"remove":this.archivedOrRemoveTask(e);break}},updateTask(e){return new Promise((t,r)=>{if(this.loadIng){r();return}Object.keys(e).forEach(a=>this.$set(this.task,a,e[a]));const i=Object.assign(e,{task_id:this.task.id});this.$store.dispatch("taskUpdate",i).then(({data:a,msg:s})=>{$A.messageSuccess(s),t(),this.$store.dispatch("saveTaskBrowse",i.task_id),typeof this.onUpdate=="function"&&this.onUpdate(a)}).catch(({msg:a})=>{$A.modalError(a),this.$store.dispatch("getTaskOne",i.task_id).catch(()=>{}),r()})})},archivedOrRemoveTask(e){let t="removeTask",r="\u5220\u9664",i={task_id:this.task.id},a=this.task.parent_id>0?"\u5B50\u4EFB\u52A1":"\u4EFB\u52A1";e=="archived"&&(t="archivedTask",r="\u5F52\u6863",this.task.archived_at&&(r="\u8FD8\u539F\u5F52\u6863",i={task_id:this.task.id,type:"recovery"})),$A.modalConfirm({title:r+a,content:"\u4F60\u786E\u5B9A\u8981"+r+a+"\u3010"+this.task.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>{if(!this.loadIng)return new Promise((s,u)=>{this.$store.dispatch(t,i).then(({msg:c})=>{s(c),this.$store.dispatch("saveTaskBrowse",i.task_id)}).catch(({msg:c})=>{u(c)})})}})},visibleChange(e){this.visible=e},updatePopper(){this.$nextTick(this.$refs.dropdownMenu.updatePopper)},setupEventListeners(e){this.element=e.target;let t=this.getScrollParent(this.element);if((t===window.document.body||t===window.document.documentElement)&&(t=window),this.target){if(this.target===t)return;this.target.removeEventListener("scroll",this.handlerEventListeners)}this.target=t,this.target.addEventListener("scroll",this.handlerEventListeners)},handlerEventListeners(e){if(!this.visible||!this.element)return;const t=e.target.getBoundingClientRect(),r=this.element.getBoundingClientRect();if(r.topt.top+t.height){this.hide();return}this.styles={left:`${r.left}px`,top:`${r.top}px`,width:`${r.width}px`,height:`${r.height}px`},this.updatePopper()},getScrollParent(e){const t=e.parentNode;return t?t===window.document?window.document.body.scrollTop||window.document.body.scrollLeft?window.document.body:window.document.documentElement:["scroll","auto"].indexOf(this.getStyleComputedProperty(t,"overflow"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(t,"overflow-x"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(t,"overflow-y"))!==-1?t:this.getScrollParent(e.parentNode):e},getStyleComputedProperty(e,t){return window.getComputedStyle(e,null)[t]}}},mS={};var bz=ii(yz,_z,gz,!1,wz,null,null,null);function wz(e){for(let t in mS)this[t]=mS[t]}var Cz=function(){return bz.exports}(),xz=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"app"}},[r("keep-alive",[r("router-view",{staticClass:"child-view"})],1),r("TaskOperation"),r("FloatSpinner"),r("RightBottom"),r("PreviewImageState"),e.windowLandscape?r("NetworkException"):e._e(),e._l(e.iframes,function(i){return i.url?r("iframe",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],key:i.key,attrs:{src:i.url}}):e._e()})],2)},Sz=[];const kz={components:{TaskOperation:Cz,NetworkException:mz,PreviewImageState:cz,RightBottom:YF,FloatSpinner:KN},data(){return{routePath:null,searchInter:null,iframes:[]}},created(){this.electronEvents(),this.eeuiEvents(),this.otherEvents(),this.synchThemeLanguage()},mounted(){window.addEventListener("resize",this.windowSizeListener),window.addEventListener("scroll",this.windowScrollListener),this.searchInter=setInterval(this.searchEnter,1e3)},beforeDestroy(){window.removeEventListener("resize",this.windowSizeListener),window.removeEventListener("scroll",this.windowScrollListener),this.searchInter&&clearInterval(this.searchInter)},computed:{...Ns(["ws","themeMode","windowOrientation"]),isSoftware(){return this.$Electron||this.$isEEUiApp}},watch:{$route:{handler(e){this.routePath=e.path},immediate:!0},routePath:{handler(e){e&&this.userId>0&&(e=e.replace(/^\/manage\/file\/\d+\/(\d+)$/,"/single/file/$1"),this.$store.dispatch("websocketPath",e))},immediate:!0},userId:{handler(){this.$store.dispatch("websocketConnection"),this.userId>0&&(this.$isEEUiApp&&($A.eeuiAppSendMessage({action:"intiUmeng"}),setTimeout(e=>{$A.eeuiAppSendMessage({action:"setUmengAlias",userid:this.userId,token:this.userToken,url:$A.apiUrl("users/umeng/alias")})},6e3)),$A.IDBString("logOpen").then(e=>{$A.openLog=e==="open",$A.openLog&&$A.loadScript("js/vconsole.min.js").then(t=>{window.vConsole=new window.VConsole({onReady:()=>{console.log("vConsole: onReady")},onClearLog:()=>{console.log("vConsole: onClearLog")}})}).catch(t=>{$A.modalError("vConsole \u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01")})}))},immediate:!0},windowTouch:{handler(e){e?$A("body").addClass("window-touch"):$A("body").removeClass("window-touch")},immediate:!0},windowOrientation:{handler(e){$A("body").removeClass(["window-landscape","window-portrait"]),$A("body").addClass("window-"+e)},immediate:!0},windowActive(e){e?(this.__windowTimer&&clearTimeout(this.__windowTimer),this.__windowTimer=setTimeout(t=>{this.$store.dispatch("call",{url:"users/socket/status"}).then(r=>{this.$store.dispatch("websocketSend",{type:"handshake"}).catch(i=>{this.$store.dispatch("websocketConnection")})}).catch(r=>{this.$store.dispatch("websocketConnection")}),this.themeMode==="auto"&&$A.dark.autoDarkMode()},600)):this.$store.dispatch("audioStop",!0)},themeMode(){this.synchThemeLanguage()}},methods:{searchEnter(){let e=$A(".sreachBox");if(e.length===0||e.attr("data-enter-init")==="init")return;e.attr("data-enter-init","init");let t=e.find("button[type='button']"),r=null;t.length!==0&&(t.each((i,a)=>{$A(a).text().indexOf("\u641C\u7D22")&&(r=$A(a))}),r!==null&&e.find("input.ivu-input").keydown(function(i){i.keyCode==13&&(r.hasClass("ivu-btn-loading")||r.click())}))},synchThemeLanguage(){this.isSoftware&&(this.iframes=this.iframes.filter(({key:e})=>e!="synchThemeLanguage"),this.iframes.push({key:"synchThemeLanguage",url:$A.apiUrl(`../setting/theme_language?theme=${this.themeMode}&language=${el}`)}))},windowSizeListener(){const e=$A(window).width(),t=$A(window).height(),r=$A.screenOrientation();this.$store.state.windowTouch="ontouchend"in document,this.$store.state.windowWidth=e,this.$store.state.windowHeight=t,this.$store.state.windowOrientation=r,this.$store.state.windowLandscape=r==="landscape",this.$store.state.windowPortrait=r==="portrait",this.$store.state.formLabelPosition=e>576?"right":"top",this.$store.state.formLabelWidth=e>576?"auto":""},windowScrollListener(){this.$store.state.windowScrollY=window.scrollY},electronEvents(){!this.$Electron||(window.__onBeforeUnload=()=>{if(this.$Modal.removeLast())return!0},this.$Electron.registerMsgListener("dispatch",e=>{if(!$A.isJson(e))return;let{action:t,data:r}=e;this.$store.dispatch(t,r)}),this.$Electron.registerMsgListener("browserWindowBlur",e=>{this.$store.state.windowActive=!1}),this.$Electron.registerMsgListener("browserWindowFocus",e=>{this.$store.state.windowActive=!0}),this.iframes.push({key:"manifest",url:$A.apiUrl("../manifest")}),$A.bindScreenshotKey($A.jsonParse(window.localStorage.getItem("__keyboard:data__"))||{}))},eeuiEvents(){!this.$isEEUiApp||(window.__onPagePause=()=>{this.$store.state.windowActive=!1,this.$store.dispatch("getBasicData",-1)},window.__onPageResume=e=>{this.$store.state.windowActive=!0,e>0&&this.$store.dispatch("getBasicData",600)},window.__onKeyboardStatus=e=>{const t=$A.jsonParse(decodeURIComponent(e));this.$store.state.keyboardType=t.keyboardType,this.$store.state.keyboardHeight=t.keyboardHeight,this.$store.state.safeAreaBottom=t.safeAreaBottom},window.__onNotificationPermissionStatus=e=>{this.$store.state.appNotificationPermission=$A.runNum(e)==1})},otherEvents(){if(!this.isSoftware){const e="hidden"in document?"hidden":"webkitHidden"in document?"webkitHidden":"mozHidden"in document?"mozHidden":null,t=e.replace(/hidden/i,"visibilitychange");document.addEventListener(t,()=>{this.$store.state.windowActive=!document[e]})}}}},_S={};var Ez=ii(kz,xz,Sz,!1,Dz,"12f31488",null,null);function Dz(e){for(let t in _S)this[t]=_S[t]}var Oz=function(){return Ez.exports}(),Pz=[{name:"index",path:"/",component:()=>Cn(()=>import("./index.e632435c.js"),["js/build/index.e632435c.js","js/build/UpdateLog.eacff378.js"])},{name:"pro",path:"/pro",component:()=>Cn(()=>import("./pro.2f14e151.js"),["js/build/pro.2f14e151.js","js/build/pro.26bf0cbb.css","js/build/UpdateLog.eacff378.js"])},{name:"manage",path:"/manage",component:()=>Cn(()=>import("./manage.f8704ace.js"),["js/build/manage.f8704ace.js","js/build/manage.a77f99dc.css","js/build/CheckinExport.e995cbea.js","js/build/CheckinExport.68b4950e.css","js/build/UserSelect.6a5dfe83.js","js/build/index.8fb9f3fd.js","js/build/index.da7adf84.css","js/build/TEditor.443b30fe.js","js/build/ImgUpload.7f60f3a4.js","js/build/ReportEdit.9d99c827.js","js/build/ReportDetail.6914d4af.js","js/build/longpress.43ca7fd9.js","js/build/DialogWrapper.68f3aecd.js","js/build/DialogWrapper.f63c0b9e.css","js/build/details.ee26823b.js","js/build/TaskDetail.f1c924a1.js","js/build/ProjectLog.7a036454.js","js/build/TaskMenu.bdcf4604.js"]),children:[{name:"manage-dashboard",path:"dashboard",component:()=>Cn(()=>import("./dashboard.bf35c371.js"),["js/build/dashboard.bf35c371.js","js/build/TaskMenu.bdcf4604.js"])},{name:"manage-calendar",path:"calendar",component:()=>Cn(()=>import("./calendar.1cc28b56.js"),["js/build/calendar.1cc28b56.js","js/build/calendar.05643a5b.css","js/build/TaskMenu.bdcf4604.js"])},{name:"manage-messenger",path:"messenger/:dialogAction?",component:()=>Cn(()=>import("./messenger.2c12df67.js"),["js/build/messenger.2c12df67.js","js/build/DialogWrapper.68f3aecd.js","js/build/DialogWrapper.f63c0b9e.css","js/build/longpress.43ca7fd9.js","js/build/index.8fb9f3fd.js","js/build/index.da7adf84.css","js/build/UserSelect.6a5dfe83.js","js/build/ImgUpload.7f60f3a4.js","js/build/details.ee26823b.js"])},{name:"manage-approve",path:"approve",component:()=>Cn(()=>import("./index.3a97bc76.js"),["js/build/index.3a97bc76.js","js/build/index.9d0cdd21.css","js/build/details.ee26823b.js","js/build/ImgUpload.7f60f3a4.js","js/build/index.8fb9f3fd.js","js/build/index.da7adf84.css"])},{name:"manage-approve-details",path:"approve/details",component:()=>Cn(()=>import("./details.ee26823b.js"),["js/build/details.ee26823b.js","js/build/ImgUpload.7f60f3a4.js"])},{name:"manage-setting",path:"setting",component:()=>Cn(()=>import("./index.e353145a.js"),[]),children:[{name:"manage-setting-personal",path:"personal",component:()=>Cn(()=>import("./personal.43fd91dd.js"),["js/build/personal.43fd91dd.js","js/build/ImgUpload.7f60f3a4.js"])},{name:"manage-setting-checkin",path:"checkin",component:()=>Cn(()=>import("./checkin.da301f3f.js"),["js/build/checkin.da301f3f.js","js/build/checkin.01811e2e.css"])},{name:"manage-setting-approve",path:"approve",component:()=>Cn(()=>import("./approve.6b185d9b.js"),["js/build/approve.6b185d9b.js","js/build/approve.14748925.css","js/build/index.8fb9f3fd.js","js/build/index.da7adf84.css"])},{name:"manage-setting-language",path:"language",component:()=>Cn(()=>import("./language.fa5843fd.js"),[])},{name:"manage-setting-theme",path:"theme",component:()=>Cn(()=>import("./theme.7883a613.js"),[])},{name:"manage-setting-keyboard",path:"keyboard",component:()=>Cn(()=>import("./keyboard.7b3a2226.js"),["js/build/keyboard.7b3a2226.js","js/build/keyboard.83204363.css"])},{name:"manage-setting-license",path:"license",component:()=>Cn(()=>import("./license.a7c785d4.js"),["js/build/license.a7c785d4.js","js/build/license.2d98adda.css"])},{name:"manage-setting-password",path:"password",component:()=>Cn(()=>import("./password.54e39187.js"),[])},{name:"manage-setting-email",path:"email",component:()=>Cn(()=>import("./email.0685def4.js"),[])},{name:"manage-setting-system",path:"system",component:()=>Cn(()=>import("./system.e9d1e067.js"),["js/build/system.e9d1e067.js","js/build/index.8fb9f3fd.js","js/build/index.da7adf84.css","js/build/CheckinExport.e995cbea.js","js/build/CheckinExport.68b4950e.css","js/build/UserSelect.6a5dfe83.js"])},{name:"manage-setting-delete",path:"delete",component:()=>Cn(()=>import("./delete.4bd99a36.js"),[])}]},{name:"manage-project-invite",path:"project/invite",component:()=>Cn(()=>import("./projectInvite.b8da8c6e.js"),["js/build/projectInvite.b8da8c6e.js","js/build/projectInvite.c62994fb.css"])},{name:"manage-project",path:"project/:projectId",component:()=>Cn(()=>import("./project.7c800c6a.js"),["js/build/project.7c800c6a.js","js/build/ProjectLog.7a036454.js","js/build/TaskMenu.bdcf4604.js","js/build/index.8fb9f3fd.js","js/build/index.da7adf84.css","js/build/UserSelect.6a5dfe83.js","js/build/DialogWrapper.68f3aecd.js","js/build/DialogWrapper.f63c0b9e.css","js/build/longpress.43ca7fd9.js","js/build/ImgUpload.7f60f3a4.js","js/build/details.ee26823b.js"])},{name:"manage-file",path:"file/:folderId?/:fileId?",component:()=>Cn(()=>import("./file.f8f7c6d7.js"),["js/build/file.f8f7c6d7.js","js/build/index.8fb9f3fd.js","js/build/index.da7adf84.css","js/build/longpress.43ca7fd9.js","js/build/UserSelect.6a5dfe83.js"])}]},{name:"single-file-msg",path:"/single/file/msg/:msgId",component:()=>Cn(()=>import("./fileMsg.e202783e.js"),["js/build/fileMsg.e202783e.js","js/build/fileMsg.1a0b76dd.css","js/build/IFrame.21d04c65.js"])},{name:"single-file-task",path:"/single/file/task/:fileId",component:()=>Cn(()=>import("./fileTask.26ddc9c9.js"),["js/build/fileTask.26ddc9c9.js","js/build/fileTask.93338ba0.css","js/build/IFrame.21d04c65.js"])},{name:"single-file",path:"/single/file/:codeOrFileId",component:()=>Cn(()=>import("./file.7bda2cc5.js"),["js/build/file.7bda2cc5.js","js/build/file.1cbb23e7.css","js/build/FileContent.433fb254.js","js/build/FileContent.5c6a1e1c.css","js/build/IFrame.21d04c65.js","js/build/FilePreview.4334b185.js"])},{name:"single-task",path:"/single/task/:taskId",component:()=>Cn(()=>import("./task.57aa2ca5.js"),["js/build/task.57aa2ca5.js","js/build/task.0d7ca2d3.css","js/build/TaskDetail.f1c924a1.js","js/build/TEditor.443b30fe.js","js/build/ImgUpload.7f60f3a4.js","js/build/ProjectLog.7a036454.js","js/build/DialogWrapper.68f3aecd.js","js/build/DialogWrapper.f63c0b9e.css","js/build/longpress.43ca7fd9.js","js/build/index.8fb9f3fd.js","js/build/index.da7adf84.css","js/build/UserSelect.6a5dfe83.js","js/build/details.ee26823b.js","js/build/TaskMenu.bdcf4604.js"])},{name:"valid-email",path:"/single/valid/email",component:()=>Cn(()=>import("./validEmail.9625450a.js"),["js/build/validEmail.9625450a.js","js/build/validEmail.6e361ca9.css"])},{name:"report-edit",path:"/single/report/edit/:reportEditId",component:()=>Cn(()=>import("./reportEdit.93b721b2.js"),["js/build/reportEdit.93b721b2.js","js/build/reportEdit.5c397123.css","js/build/ReportEdit.9d99c827.js","js/build/UserSelect.6a5dfe83.js"])},{name:"report-detail",path:"/single/report/detail/:reportDetailId",component:()=>Cn(()=>import("./reportDetail.5fbfb807.js"),["js/build/reportDetail.5fbfb807.js","js/build/reportDetail.c12bef4b.css","js/build/ReportDetail.6914d4af.js"])},{name:"token",path:"/token",component:()=>Cn(()=>import("./token.cf2cfab1.js"),["js/build/token.cf2cfab1.js","js/build/token.7afc4e00.css"])},{name:"login",path:"/login",component:()=>Cn(()=>import("./login.2645e9ff.js"),[])},{name:"404",path:"*",component:()=>Cn(()=>import("./404.934dbba6.js"),["js/build/404.934dbba6.js","js/build/404.d686a01f.css"])}];/*! +`),function(c){if(s=c.indexOf(":"),i=P_.trim(c.substr(0,s)).toLowerCase(),a=P_.trim(c.substr(s+1)),i){if(r[i]&&nF.indexOf(i)>=0)return;i==="set-cookie"?r[i]=(r[i]?r[i]:[]).concat([a]):r[i]=r[i]?r[i]+", "+a:a}}),r},tS=Ji,iF=tS.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),i;function a(s){var u=s;return t&&(r.setAttribute("href",u),u=r.href),r.setAttribute("href",u),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=a(window.location.href),function(u){var c=tS.isString(u)?a(u):u;return c.protocol===i.protocol&&c.host===i.host}}():function(){return function(){return!0}}();function A0(e){this.message=e}A0.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};A0.prototype.__CANCEL__=!0;var Nv=A0,zh=Ji,aF=XB,sF=JB,oF=VE,lF=tF,uF=rF,cF=iF,T_=KE,dF=Fv,fF=Nv,nS=function(t){return new Promise(function(i,a){var s=t.data,u=t.headers,c=t.responseType,h;function n(){t.cancelToken&&t.cancelToken.unsubscribe(h),t.signal&&t.signal.removeEventListener("abort",h)}zh.isFormData(s)&&delete u["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",v=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";u.Authorization="Basic "+btoa(d+":"+v)}var m=lF(t.baseURL,t.url);p.open(t.method.toUpperCase(),oF(m,t.params,t.paramsSerializer),!0),p.timeout=t.timeout;function g(){if(!!p){var b="getAllResponseHeaders"in p?uF(p.getAllResponseHeaders()):null,k=!c||c==="text"||c==="json"?p.responseText:p.response,O={data:k,status:p.status,statusText:p.statusText,headers:b,config:t,request:p};aF(function(x){i(x),n()},function(x){a(x),n()},O),p=null}}if("onloadend"in p?p.onloadend=g:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(g)},p.onabort=function(){!p||(a(T_("Request aborted",t,"ECONNABORTED",p)),p=null)},p.onerror=function(){a(T_("Network Error",t,null,p)),p=null},p.ontimeout=function(){var k=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",O=t.transitional||dF.transitional;t.timeoutErrorMessage&&(k=t.timeoutErrorMessage),a(T_(k,t,O.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},zh.isStandardBrowserEnv()){var y=(t.withCredentials||cF(m))&&t.xsrfCookieName?sF.read(t.xsrfCookieName):void 0;y&&(u[t.xsrfHeaderName]=y)}"setRequestHeader"in p&&zh.forEach(u,function(k,O){typeof s=="undefined"&&O.toLowerCase()==="content-type"?delete u[O]:p.setRequestHeader(O,k)}),zh.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),c&&c!=="json"&&(p.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&p.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(h=function(b){!p||(a(!b||b&&b.type?new fF("canceled"):b),p.abort(),p=null)},t.cancelToken&&t.cancelToken.subscribe(h),t.signal&&(t.signal.aborted?h():t.signal.addEventListener("abort",h))),s||(s=null),p.send(s)})},jr=Ji,rS=HB,hF=WE,pF={"Content-Type":"application/x-www-form-urlencoded"};function iS(e,t){!jr.isUndefined(e)&&jr.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function vF(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=nS),e}function mF(e,t,r){if(jr.isString(e))try{return(t||JSON.parse)(e),jr.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(r||JSON.stringify)(e)}var Bv={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:vF(),transformRequest:[function(t,r){return rS(r,"Accept"),rS(r,"Content-Type"),jr.isFormData(t)||jr.isArrayBuffer(t)||jr.isBuffer(t)||jr.isStream(t)||jr.isFile(t)||jr.isBlob(t)?t:jr.isArrayBufferView(t)?t.buffer:jr.isURLSearchParams(t)?(iS(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):jr.isObject(t)||r&&r["Content-Type"]==="application/json"?(iS(r,"application/json"),mF(t)):t}],transformResponse:[function(t){var r=this.transitional||Bv.transitional,i=r&&r.silentJSONParsing,a=r&&r.forcedJSONParsing,s=!i&&this.responseType==="json";if(s||a&&jr.isString(t)&&t.length)try{return JSON.parse(t)}catch(u){if(s)throw u.name==="SyntaxError"?hF(u,this,"E_JSON_PARSE"):u}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};jr.forEach(["delete","get","head"],function(t){Bv.headers[t]={}});jr.forEach(["post","put","patch"],function(t){Bv.headers[t]=jr.merge(pF)});var Fv=Bv,_F=Ji,gF=Fv,yF=function(t,r,i){var a=this||gF;return _F.forEach(i,function(u){t=u.call(a,t,r)}),t},HE=function(t){return!!(t&&t.__CANCEL__)},aS=Ji,A_=yF,bF=HE,wF=Fv,CF=Nv;function M_(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CF("canceled")}var xF=function(t){M_(t),t.headers=t.headers||{},t.data=A_.call(t,t.data,t.headers,t.transformRequest),t.headers=aS.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),aS.forEach(["delete","get","head","post","put","patch","common"],function(a){delete t.headers[a]});var r=t.adapter||wF.adapter;return r(t).then(function(a){return M_(t),a.data=A_.call(t,a.data,a.headers,t.transformResponse),a},function(a){return bF(a)||(M_(t),a&&a.response&&(a.response.data=A_.call(t,a.response.data,a.response.headers,t.transformResponse))),Promise.reject(a)})},Fi=Ji,GE=function(t,r){r=r||{};var i={};function a(p,d){return Fi.isPlainObject(p)&&Fi.isPlainObject(d)?Fi.merge(p,d):Fi.isPlainObject(d)?Fi.merge({},d):Fi.isArray(d)?d.slice():d}function s(p){if(Fi.isUndefined(r[p])){if(!Fi.isUndefined(t[p]))return a(void 0,t[p])}else return a(t[p],r[p])}function u(p){if(!Fi.isUndefined(r[p]))return a(void 0,r[p])}function c(p){if(Fi.isUndefined(r[p])){if(!Fi.isUndefined(t[p]))return a(void 0,t[p])}else return a(void 0,r[p])}function h(p){if(p in r)return a(t[p],r[p]);if(p in t)return a(void 0,t[p])}var n={url:u,method:u,data:u,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:h};return Fi.forEach(Object.keys(t).concat(Object.keys(r)),function(d){var v=n[d]||s,m=v(d);Fi.isUndefined(m)&&v!==h||(i[d]=m)}),i},YE={version:"0.24.0"},SF=YE.version,M0={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){M0[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});var sS={};M0.transitional=function(t,r,i){function a(s,u){return"[Axios v"+SF+"] Transitional option '"+s+"'"+u+(i?". "+i:"")}return function(s,u,c){if(t===!1)throw new Error(a(u," has been removed"+(r?" in "+r:"")));return r&&!sS[u]&&(sS[u]=!0,console.warn(a(u," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,u,c):!0}};function kF(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var i=Object.keys(e),a=i.length;a-- >0;){var s=i[a],u=t[s];if(u){var c=e[s],h=c===void 0||u(c,s,e);if(h!==!0)throw new TypeError("option "+s+" must be "+h);continue}if(r!==!0)throw Error("Unknown option "+s)}}var EF={assertOptions:kF,validators:M0},XE=Ji,DF=VE,oS=WB,lS=xF,zv=GE,JE=EF,Hl=JE.validators;function Sd(e){this.defaults=e,this.interceptors={request:new oS,response:new oS}}Sd.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=zv(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&JE.assertOptions(r,{silentJSONParsing:Hl.transitional(Hl.boolean),forcedJSONParsing:Hl.transitional(Hl.boolean),clarifyTimeoutError:Hl.transitional(Hl.boolean)},!1);var i=[],a=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(t)===!1||(a=a&&v.synchronous,i.unshift(v.fulfilled,v.rejected))});var s=[];this.interceptors.response.forEach(function(v){s.push(v.fulfilled,v.rejected)});var u;if(!a){var c=[lS,void 0];for(Array.prototype.unshift.apply(c,i),c=c.concat(s),u=Promise.resolve(t);c.length;)u=u.then(c.shift(),c.shift());return u}for(var h=t;i.length;){var n=i.shift(),p=i.shift();try{h=n(h)}catch(d){p(d);break}}try{u=lS(h)}catch(d){return Promise.reject(d)}for(;s.length;)u=u.then(s.shift(),s.shift());return u};Sd.prototype.getUri=function(t){return t=zv(this.defaults,t),DF(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};XE.forEach(["delete","get","head","options"],function(t){Sd.prototype[t]=function(r,i){return this.request(zv(i||{},{method:t,url:r,data:(i||{}).data}))}});XE.forEach(["post","put","patch"],function(t){Sd.prototype[t]=function(r,i,a){return this.request(zv(a||{},{method:t,url:r,data:i}))}});var OF=Sd,PF=Nv;function gu(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(a){t=a});var r=this;this.promise.then(function(i){if(!!r._listeners){var a,s=r._listeners.length;for(a=0;a v"+e._s(e.updateVersion))])],1),e.$Platform==="mac"?r("div",{staticClass:"notification-tip"},[e._v(e._s(e.$L("\u79BB\u6700\u65B0\u7248\u672C\u53EA\u6709\u4E00\u6B65\u4E4B\u9065\u4E86\uFF01\u91CD\u65B0\u542F\u52A8\u5E94\u7528\u5373\u53EF\u5B8C\u6210\u66F4\u65B0\u3002")))]):e._e()]),r("Scrollbar",{attrs:{"class-name":"notification-body"}},[r("MarkdownPreview",{attrs:{initialValue:e.updateNote}})],1),r("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[r("Button",{attrs:{type:"default"},on:{click:function(i){e.updateShow=!1}}},[e._v(e._s(e.$L("\u7A0D\u540E")))]),r("Button",{attrs:{type:"primary",loading:e.updateIng},on:{click:e.updateQuitAndInstall}},[e._v(e._s(e.$L(e.$Platform==="mac"?"\u91CD\u65B0\u542F\u52A8":"\u7ACB\u5373\u5347\u7EA7")))])],1)],1)],2)},WF=[];const KF={name:"RightBottom",components:{MarkdownPreview:EB},data(){return{loadIng:0,subscribe:null,apiVersion:"",systemVersion:window.systemInfo.version,updateVersion:"",updateNote:"",updateShow:!1,updateBottomShow:!1,updateIng:!1,downloadUrl:""}},mounted(){this.checkVersion(),this.$Electron&&(this.subscribe=il.Store.subscribe("updateNotification",e=>{this.updateShow=!0}),this.$Electron.registerMsgListener("updateDownloaded",e=>{this.$store.state.clientNewVersion=e.version,this.updateVersion=e.version,this.updateNote=e.releaseNotes||this.$L("\u6CA1\u6709\u66F4\u65B0\u63CF\u8FF0\u3002"),this.updateShow=$A.strExists(this.updateNote,`[${this.updateVersion}-Release]`)}))},beforeDestroy(){this.subscribe&&(this.subscribe.unsubscribe(),this.subscribe=null)},watch:{updateShow(e){e&&(this.updateBottomShow=!0)}},computed:{isSoftware(){return this.$Electron||this.$isEEUiApp},showSSO(){return this.isSoftware&&["login"].includes(this.$route.name)},showDown(){return!this.$isEEUiApp&&!this.windowTouch&&["login","index","manage-dashboard"].includes(this.$route.name)},showPrivacy(){return $A.isDooServer()&&this.$isEEUiApp&&["login"].includes(this.$route.name)}},methods:{isNotServer(){let e=$A.getDomain(window.systemInfo.apiUrl);return this.isSoftware&&(e==""||e=="public")},checkVersion(){this.isNotServer()||(cS.get($A.apiUrl("system/version")).then(({status:e,data:t})=>{e===200&&(this.apiVersion=t.version||"",this.compareVersion(this.apiVersion,"0.19.0")===-1&&$A.modalWarning({title:"\u6E29\u99A8\u63D0\u793A",message:"\u670D\u52A1\u5668\u63A5\u53E3\u7248\u672C\u8FC7\u4F4E\uFF0C\u90E8\u5206\u529F\u80FD\u53EF\u80FD\u65E0\u6CD5\u6B63\u5E38\u4F7F\u7528\u3002"}),this.$Electron?this.$Electron.sendMessage("updateCheckAndDownload",{apiVersion:this.apiVersion}):this.getDownloadUrl(t.publish))}).catch(e=>{}),this.__checkVersion&&clearTimeout(this.__checkVersion),this.__checkVersion=setTimeout(this.checkVersion,600*1e3))},getDownloadUrl(e){if(!!$A.isJson(e))switch(e.provider){case"generic":this.downloadUrl=`${e.url}/latest`;break;case"github":(async t=>{let r="cacheAppdown::"+this.apiVersion,i=await $A.IDBJson(r),a=600;if(i.time&&i.time+a>Math.round(new Date().getTime()/1e3)){this.downloadUrl=i.data.html_url;return}this.loadIng>0||(this.loadIng++,cS.get(`https://api.github.com/repos/${e.owner}/${e.repo}/releases`).then(({status:s,data:u})=>{this.loadIng--,s===200&&$A.isArray(u)&&(i.time=Math.round(new Date().getTime()/1e3),i.data=u.find(({tag_name:c})=>this.compareVersion(this.tagVersion(c),this.apiVersion)===0)||{},$A.IDBSave(r,i),this.downloadUrl=i.data.html_url)}).catch(()=>{this.loadIng--}))})();break}},updateQuitAndInstall(){this.updateIng=!0,setTimeout(()=>{this.$Electron.sendMessage("updateQuitAndInstall")},301)},useSSOLogin(){il.Store.set("useSSOLogin",!0)},tagVersion(e){return e?$A.leftDelete(e.toLowerCase(),"v"):""},compareVersion(e,t){let r=0,i=0;if(e===t)return 0;const a=(s,u)=>{let c=u;for(;s[c]!=="."&&ch?1:-1;r=s+1,i=u+1}for(;r0)return 1;r=s+1}for(;i0)return-1;i=s+1}return 0}}},dS={};var HF=ii(KF,VF,WF,!1,GF,null,null,null);function GF(e){for(let t in dS)this[t]=dS[t]}var YF=function(){return HF.exports}();const XF="modulepreload",fS={},JF="/",Cn=function(t,r){return!r||r.length===0?t():Promise.all(r.map(i=>{if(i=`${JF}${i}`,i in fS)return;fS[i]=!0;const a=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":XF,a||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),a)return new Promise((c,h)=>{u.addEventListener("load",c),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};var ZF=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Modal",{attrs:{mask:!1,"mask-closable":!1,"footer-hide":!0,"transition-names":["",""],"class-name":e.viewMode==="desktop"?"common-preview-image-view":"common-preview-image-swipe",fullscreen:""},model:{value:e.show,callback:function(i){e.show=i},expression:"show"}},[e.list.length>0?[e.viewMode==="desktop"?r("PreviewImageView",{attrs:{"initial-index":e.index,"url-list":e.list,infinite:""}}):e._e(),e.viewMode==="mobile"?r("PreviewImageSwipe",{attrs:{"initial-index":e.index,"url-list":e.list},on:{"on-destroy":function(i){e.show=!1}}}):e._e()]:e._e()],2)},QF=[];const qF=()=>Cn(()=>import("./view.b49fdd4c.js"),["js/build/view.b49fdd4c.js","js/build/view.310641c1.css"]),ez=()=>Cn(()=>import("./swipe.1fc4f623.js"),["js/build/swipe.1fc4f623.js","js/build/swipe.750bd8d1.css"]),tz={name:"PreviewImage",components:{PreviewImageSwipe:ez,PreviewImageView:qF},props:{value:{type:Boolean,default:!1},index:{type:Number,default:0},list:{type:Array,default:()=>[]},mode:{type:String,default:null}},data(){return{show:this.value}},watch:{value(e){this.show=e},show(e){this.value!==e&&this.$emit("input",e)}},computed:{viewMode(){return this.mode?this.mode:this.windowTouch?"mobile":"desktop"}}},hS={};var nz=ii(tz,ZF,QF,!1,rz,null,null,null);function rz(e){for(let t in hS)this[t]=hS[t]}var iz=function(){return nz.exports}(),az=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("PreviewImage",{attrs:{index:e.previewImageIndex,list:e.previewImageList},model:{value:e.show,callback:function(i){e.show=i},expression:"show"}})},sz=[];const oz={name:"PreviewImageState",components:{PreviewImage:iz},computed:{...Ns(["previewImageIndex","previewImageList"])},data(){return{show:!1}},watch:{show(e){e?this.$store.state.previewImageIndex=Math.min(Math.max(this.$store.state.previewImageIndex,0),this.$store.state.previewImageList.length-1):(this.$store.state.previewImageIndex=0,this.$store.state.previewImageList=[])},previewImageList(e){if(e.length>0)if($A.isEEUiApp){const t=Math.min(Math.max(this.$store.state.previewImageIndex,0),this.$store.state.previewImageList.length-1),r=e.map(i=>$A.isJson(i)?$A.thumbRestore(i.src):$A.thumbRestore(i));$A.eeuiAppSendMessage({action:"picturePreview",position:t,paths:r})}else this.show=!0}}},pS={};var lz=ii(oz,az,sz,!1,uz,null,null,null);function uz(e){for(let t in pS)this[t]=pS[t]}var cz=function(){return lz.exports}(),dz=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"common-network-exception"},[e.type==="alert"?[e.show?r("Alert",{attrs:{type:"error","show-icon":"",closable:""}},[e._v(e._s(e.$L("\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8BBE\u7F6E\u3002")))]):e._e()]:e.type==="modal"?[r("Modal",{attrs:{width:416,closable:!1,"footer-hide":!0,"class-name":"common-network-exception-modal"},model:{value:e.show,callback:function(i){e.show=i},expression:"show"}},[r("div",{staticClass:"ivu-modal-confirm"},[r("div",{staticClass:"ivu-modal-confirm-head"},[r("div",{staticClass:"ivu-modal-confirm-head-icon ivu-modal-confirm-head-icon-error"},[r("Icon",{attrs:{type:"ios-close-circle"}})],1),r("div",{staticClass:"ivu-modal-confirm-head-title"},[e._v(e._s(e.$L("\u6E29\u99A8\u63D0\u793A")))])]),r("div",{staticClass:"ivu-modal-confirm-body"},[r("div",[e._v(e._s(e.$L("\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8BBE\u7F6E\u3002")))])]),r("div",{staticClass:"ivu-modal-confirm-footer"},[r("Button",{attrs:{type:"primary"},on:{click:function(i){e.show=!1}}},[e._v(e._s(e.$L("\u786E\u5B9A")))])],1)])])]:e._e()],2)},fz=[];const hz={name:"NetworkException",props:{type:{type:String,default:"modal"}},data(){return{show:!1}},beforeDestroy(){this.show=!1},computed:{...Ns(["ajaxNetworkException"])},watch:{ajaxNetworkException:{handler(e){this.show=e},immediate:!0}}},vS={};var pz=ii(hz,dz,fz,!1,vz,null,null,null);function vz(e){for(let t in vS)this[t]=vS[t]}var mz=function(){return pz.exports}(),_z=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("EDropdown",{ref:"dropdown",staticClass:"task-operation-dropdown",style:e.styles,attrs:{trigger:"click",disabled:e.disabled,size:e.size,placement:"bottom"},on:{command:e.dropTask,"visible-change":e.visibleChange}},[r("div",{ref:"icon",staticClass:"task-operation-icon"}),r("EDropdownMenu",{ref:"dropdownMenu",staticClass:"task-operation-more-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[r("li",{staticClass:"task-operation-more-warp",class:e.size},[r("ul",[e.flow?e.turns.length>0?e._l(e.turns,function(i){return r("EDropdownItem",{key:i.id,attrs:{command:`turn::${i.id}`}},[r("div",{staticClass:"item flow"},[i.id==e.task.flow_item_id&&e.flow.auto_assign!==!0?r("Icon",{staticClass:"check",attrs:{type:"md-checkmark-circle-outline"}}):r("Icon",{attrs:{type:"md-radio-button-off"}}),r("div",{staticClass:"flow-name",class:i.status},[e._v(e._s(i.name))])],1)])}):[e.task.complete_at?r("EDropdownItem",{attrs:{command:"uncomplete"}},[r("div",{staticClass:"item red"},[r("Icon",{attrs:{type:"md-checkmark-circle-outline"}}),e._v(e._s(e.$L("\u6807\u8BB0\u672A\u5B8C\u6210"))+" ")],1)]):r("EDropdownItem",{attrs:{command:"complete"}},[r("div",{staticClass:"item"},[r("Icon",{attrs:{type:"md-radio-button-off"}}),e._v(e._s(e.$L("\u5B8C\u6210"))+" ")],1)])]:r("EDropdownItem",{staticClass:"load-flow",attrs:{disabled:""}},[r("div",{staticClass:"load-flow-warp"},[r("Loading")],1)]),e.task.parent_id===0?[r("EDropdownItem",{attrs:{divided:e.turns.length>0,command:"archived"}},[r("div",{staticClass:"item"},[r("Icon",{attrs:{type:"ios-filing"}}),e._v(e._s(e.$L(e.task.archived_at?"\u8FD8\u539F\u5F52\u6863":"\u5F52\u6863"))+" ")],1)]),r("EDropdownItem",{attrs:{command:"remove"}},[r("div",{staticClass:"item hover-del"},[r("Icon",{attrs:{type:"md-trash"}}),e._v(e._s(e.$L("\u5220\u9664"))+" ")],1)]),e.colorShow?e._l(e.taskColorList,function(i,a){return r("EDropdownItem",{key:"c_"+a,attrs:{divided:a==0,command:i}},[r("div",{staticClass:"item"},[r("i",{staticClass:"taskfont",style:{color:i.color||"#f9f9f9"},domProps:{innerHTML:e._s(i.color==e.task.color?"":"")}}),e._v(e._s(e.$L(i.name))+" ")])])}):e._e()]:r("EDropdownItem",{attrs:{command:"remove",divided:e.turns.length>0}},[r("div",{staticClass:"item"},[r("Icon",{attrs:{type:"md-trash"}}),e._v(e._s(e.$L("\u5220\u9664"))+" ")],1)])],2)])])],1)},gz=[];const yz={name:"TaskOperation",data(){return{task:{},loadStatus:!1,colorShow:!0,updateBefore:!1,disabled:!1,size:"small",onUpdate:null,element:null,target:null,styles:{}}},beforeDestroy(){this.target&&this.target.removeEventListener("scroll",this.handlerEventListeners)},computed:{...Ns(["loads","taskOperation","taskColorList","taskFlows","taskFlowItems"]),...C0(["isLoad"]),loadIng(){return this.loadStatus?!0:this.isLoad(`task-${this.task.id}`)},flow(){return this.taskFlows.find(({task_id:e})=>e==this.task.id)},turns(){if(!this.flow)return[];let e=this.taskFlowItems.find(({id:t})=>t==this.flow.flow_item_id);return e?this.taskFlowItems.filter(({id:t})=>e.turns.includes(t)):[]}},watch:{taskOperation(e){if(e.event&&e.task){if(this.$refs.dropdown.visible&&this.element===e.event.target){this.hide();return}const t=e.event.target.getBoundingClientRect();this.styles={left:`${t.left}px`,top:`${t.top}px`,width:`${t.width}px`,height:`${t.height}px`},this.task=e.task,this.loadStatus=typeof e.loadStatus=="undefined"?!1:e.loadStatus,this.colorShow=typeof e.colorShow=="undefined"?!0:e.colorShow,this.updateBefore=typeof e.updateBefore=="undefined"?!1:e.updateBefore,this.disabled=typeof e.disabled=="undefined"?!1:e.disabled,this.size=typeof e.size=="undefined"?"small":e.size,this.onUpdate=typeof e.onUpdate=="function"?e.onUpdate:null,this.$refs.icon.focus(),this.updatePopper(),this.show(),this.$store.dispatch("getTaskFlow",this.task.id).finally(this.updatePopper),this.setupEventListeners(e.event)}else this.hide()}},methods:{show(){this.$refs.dropdown.show()},hide(){this.$refs.dropdown.hide()},dropTask(e){const t=this.task,r=i=>{i?this.$store.dispatch("saveTaskCompleteTemp",t.id):this.$store.dispatch("forgetTaskCompleteTemp",t.id)};if($A.isJson(e)){e.name&&this.updateTask({color:e.color}).catch(()=>{});return}if($A.leftExists(e,"turn::")){let i=$A.leftDelete(e,"turn::");if(i==this.task.flow_item_id)return;let a=this.taskFlowItems.find(({id:h})=>h==this.flow.flow_item_id)||{},s=this.taskFlowItems.find(({id:h})=>h==i)||{},u=a.status!=="end"&&s.status==="end",c=a.status==="end"&&s.status!=="end";this.updateBefore&&(u?r(!0):c&&r(!1)),this.updateTask({flow_item_id:i}).then(()=>{u?r(!0):c&&r(!1)}).catch(()=>{u?r(!1):c&&r(!0)});return}switch(e){case"complete":if(this.task.complete_at)return;this.updateBefore&&r(!0),this.updateTask({complete_at:$A.formatDate("Y-m-d H:i:s")}).then(()=>{r(!0)}).catch(()=>{r(!1)});break;case"uncomplete":if(!this.task.complete_at)return;this.updateBefore&&r(!1),this.updateTask({complete_at:!1}).then(()=>{r(!1)}).catch(()=>{r(!0)});break;case"archived":case"remove":this.archivedOrRemoveTask(e);break}},updateTask(e){return new Promise((t,r)=>{if(this.loadIng){r();return}Object.keys(e).forEach(a=>this.$set(this.task,a,e[a]));const i=Object.assign(e,{task_id:this.task.id});this.$store.dispatch("taskUpdate",i).then(({data:a,msg:s})=>{$A.messageSuccess(s),t(),this.$store.dispatch("saveTaskBrowse",i.task_id),typeof this.onUpdate=="function"&&this.onUpdate(a)}).catch(({msg:a})=>{$A.modalError(a),this.$store.dispatch("getTaskOne",i.task_id).catch(()=>{}),r()})})},archivedOrRemoveTask(e){let t="removeTask",r="\u5220\u9664",i={task_id:this.task.id},a=this.task.parent_id>0?"\u5B50\u4EFB\u52A1":"\u4EFB\u52A1";e=="archived"&&(t="archivedTask",r="\u5F52\u6863",this.task.archived_at&&(r="\u8FD8\u539F\u5F52\u6863",i={task_id:this.task.id,type:"recovery"})),$A.modalConfirm({title:r+a,content:"\u4F60\u786E\u5B9A\u8981"+r+a+"\u3010"+this.task.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>{if(!this.loadIng)return new Promise((s,u)=>{this.$store.dispatch(t,i).then(({msg:c})=>{s(c),this.$store.dispatch("saveTaskBrowse",i.task_id)}).catch(({msg:c})=>{u(c)})})}})},visibleChange(e){this.visible=e},updatePopper(){this.$nextTick(this.$refs.dropdownMenu.updatePopper)},setupEventListeners(e){this.element=e.target;let t=this.getScrollParent(this.element);if((t===window.document.body||t===window.document.documentElement)&&(t=window),this.target){if(this.target===t)return;this.target.removeEventListener("scroll",this.handlerEventListeners)}this.target=t,this.target.addEventListener("scroll",this.handlerEventListeners)},handlerEventListeners(e){if(!this.visible||!this.element)return;const t=e.target.getBoundingClientRect(),r=this.element.getBoundingClientRect();if(r.topt.top+t.height){this.hide();return}this.styles={left:`${r.left}px`,top:`${r.top}px`,width:`${r.width}px`,height:`${r.height}px`},this.updatePopper()},getScrollParent(e){const t=e.parentNode;return t?t===window.document?window.document.body.scrollTop||window.document.body.scrollLeft?window.document.body:window.document.documentElement:["scroll","auto"].indexOf(this.getStyleComputedProperty(t,"overflow"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(t,"overflow-x"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(t,"overflow-y"))!==-1?t:this.getScrollParent(e.parentNode):e},getStyleComputedProperty(e,t){return window.getComputedStyle(e,null)[t]}}},mS={};var bz=ii(yz,_z,gz,!1,wz,null,null,null);function wz(e){for(let t in mS)this[t]=mS[t]}var Cz=function(){return bz.exports}(),xz=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{attrs:{id:"app"}},[r("keep-alive",[r("router-view",{staticClass:"child-view"})],1),r("TaskOperation"),r("FloatSpinner"),r("RightBottom"),r("PreviewImageState"),e.windowLandscape?r("NetworkException"):e._e(),e._l(e.iframes,function(i){return i.url?r("iframe",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],key:i.key,attrs:{src:i.url}}):e._e()})],2)},Sz=[];const kz={components:{TaskOperation:Cz,NetworkException:mz,PreviewImageState:cz,RightBottom:YF,FloatSpinner:KN},data(){return{routePath:null,searchInter:null,iframes:[]}},created(){this.electronEvents(),this.eeuiEvents(),this.otherEvents(),this.synchThemeLanguage()},mounted(){window.addEventListener("resize",this.windowSizeListener),window.addEventListener("scroll",this.windowScrollListener),this.searchInter=setInterval(this.searchEnter,1e3)},beforeDestroy(){window.removeEventListener("resize",this.windowSizeListener),window.removeEventListener("scroll",this.windowScrollListener),this.searchInter&&clearInterval(this.searchInter)},computed:{...Ns(["ws","themeMode","windowOrientation"]),isSoftware(){return this.$Electron||this.$isEEUiApp}},watch:{$route:{handler(e){this.routePath=e.path},immediate:!0},routePath:{handler(e){e&&this.userId>0&&(e=e.replace(/^\/manage\/file\/\d+\/(\d+)$/,"/single/file/$1"),this.$store.dispatch("websocketPath",e))},immediate:!0},userId:{handler(){this.$store.dispatch("websocketConnection"),this.userId>0&&(this.$isEEUiApp&&($A.eeuiAppSendMessage({action:"intiUmeng"}),setTimeout(e=>{$A.eeuiAppSendMessage({action:"setUmengAlias",userid:this.userId,token:this.userToken,url:$A.apiUrl("users/umeng/alias")})},6e3)),$A.IDBString("logOpen").then(e=>{$A.openLog=e==="open",$A.openLog&&$A.loadScript("js/vconsole.min.js").then(t=>{window.vConsole=new window.VConsole({onReady:()=>{console.log("vConsole: onReady")},onClearLog:()=>{console.log("vConsole: onClearLog")}})}).catch(t=>{$A.modalError("vConsole \u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01")})}))},immediate:!0},windowTouch:{handler(e){e?$A("body").addClass("window-touch"):$A("body").removeClass("window-touch")},immediate:!0},windowOrientation:{handler(e){$A("body").removeClass(["window-landscape","window-portrait"]),$A("body").addClass("window-"+e)},immediate:!0},windowActive(e){e?(this.__windowTimer&&clearTimeout(this.__windowTimer),this.__windowTimer=setTimeout(t=>{this.$store.dispatch("call",{url:"users/socket/status"}).then(r=>{this.$store.dispatch("websocketSend",{type:"handshake"}).catch(i=>{this.$store.dispatch("websocketConnection")})}).catch(r=>{this.$store.dispatch("websocketConnection")}),this.themeMode==="auto"&&$A.dark.autoDarkMode()},600)):this.$store.dispatch("audioStop",!0)},themeMode(){this.synchThemeLanguage()}},methods:{searchEnter(){let e=$A(".sreachBox");if(e.length===0||e.attr("data-enter-init")==="init")return;e.attr("data-enter-init","init");let t=e.find("button[type='button']"),r=null;t.length!==0&&(t.each((i,a)=>{$A(a).text().indexOf("\u641C\u7D22")&&(r=$A(a))}),r!==null&&e.find("input.ivu-input").keydown(function(i){i.keyCode==13&&(r.hasClass("ivu-btn-loading")||r.click())}))},synchThemeLanguage(){this.isSoftware&&(this.iframes=this.iframes.filter(({key:e})=>e!="synchThemeLanguage"),this.iframes.push({key:"synchThemeLanguage",url:$A.apiUrl(`../setting/theme_language?theme=${this.themeMode}&language=${el}`)}))},windowSizeListener(){const e=$A(window).width(),t=$A(window).height(),r=$A.screenOrientation();this.$store.state.windowTouch="ontouchend"in document,this.$store.state.windowWidth=e,this.$store.state.windowHeight=t,this.$store.state.windowOrientation=r,this.$store.state.windowLandscape=r==="landscape",this.$store.state.windowPortrait=r==="portrait",this.$store.state.formLabelPosition=e>576?"right":"top",this.$store.state.formLabelWidth=e>576?"auto":""},windowScrollListener(){this.$store.state.windowScrollY=window.scrollY},electronEvents(){!this.$Electron||(window.__onBeforeUnload=()=>{if(this.$Modal.removeLast())return!0},this.$Electron.registerMsgListener("dispatch",e=>{if(!$A.isJson(e))return;let{action:t,data:r}=e;this.$store.dispatch(t,r)}),this.$Electron.registerMsgListener("browserWindowBlur",e=>{this.$store.state.windowActive=!1}),this.$Electron.registerMsgListener("browserWindowFocus",e=>{this.$store.state.windowActive=!0}),this.iframes.push({key:"manifest",url:$A.apiUrl("../manifest")}),$A.bindScreenshotKey($A.jsonParse(window.localStorage.getItem("__keyboard:data__"))||{}))},eeuiEvents(){!this.$isEEUiApp||(window.__onPagePause=()=>{this.$store.state.windowActive=!1,this.$store.dispatch("getBasicData",-1)},window.__onPageResume=e=>{this.$store.state.windowActive=!0,e>0&&this.$store.dispatch("getBasicData",600)},window.__onKeyboardStatus=e=>{const t=$A.jsonParse(decodeURIComponent(e));this.$store.state.keyboardType=t.keyboardType,this.$store.state.keyboardHeight=t.keyboardHeight,this.$store.state.safeAreaBottom=t.safeAreaBottom},window.__onNotificationPermissionStatus=e=>{this.$store.state.appNotificationPermission=$A.runNum(e)==1})},otherEvents(){if(!this.isSoftware){const e="hidden"in document?"hidden":"webkitHidden"in document?"webkitHidden":"mozHidden"in document?"mozHidden":null,t=e.replace(/hidden/i,"visibilitychange");document.addEventListener(t,()=>{this.$store.state.windowActive=!document[e]})}}}},_S={};var Ez=ii(kz,xz,Sz,!1,Dz,"12f31488",null,null);function Dz(e){for(let t in _S)this[t]=_S[t]}var Oz=function(){return Ez.exports}(),Pz=[{name:"index",path:"/",component:()=>Cn(()=>import("./index.680c7fea.js"),["js/build/index.680c7fea.js","js/build/UpdateLog.a78387dc.js"])},{name:"pro",path:"/pro",component:()=>Cn(()=>import("./pro.5eb35683.js"),["js/build/pro.5eb35683.js","js/build/pro.26bf0cbb.css","js/build/UpdateLog.a78387dc.js"])},{name:"manage",path:"/manage",component:()=>Cn(()=>import("./manage.2b7e7263.js"),["js/build/manage.2b7e7263.js","js/build/manage.a77f99dc.css","js/build/CheckinExport.a307a3ee.js","js/build/CheckinExport.68b4950e.css","js/build/UserSelect.fe42163b.js","js/build/index.ed41beb1.js","js/build/index.da7adf84.css","js/build/TEditor.a8b14511.js","js/build/ImgUpload.cbadd034.js","js/build/ReportEdit.74592e96.js","js/build/ReportDetail.62478618.js","js/build/longpress.43ca7fd9.js","js/build/DialogWrapper.962561b6.js","js/build/DialogWrapper.f63c0b9e.css","js/build/details.70f91a78.js","js/build/TaskDetail.2b58e274.js","js/build/ProjectLog.65503d98.js","js/build/TaskMenu.98a91192.js"]),children:[{name:"manage-dashboard",path:"dashboard",component:()=>Cn(()=>import("./dashboard.432a58ad.js"),["js/build/dashboard.432a58ad.js","js/build/TaskMenu.98a91192.js"])},{name:"manage-calendar",path:"calendar",component:()=>Cn(()=>import("./calendar.0167b7c7.js"),["js/build/calendar.0167b7c7.js","js/build/calendar.05643a5b.css","js/build/TaskMenu.98a91192.js"])},{name:"manage-messenger",path:"messenger/:dialogAction?",component:()=>Cn(()=>import("./messenger.28878db6.js"),["js/build/messenger.28878db6.js","js/build/DialogWrapper.962561b6.js","js/build/DialogWrapper.f63c0b9e.css","js/build/longpress.43ca7fd9.js","js/build/index.ed41beb1.js","js/build/index.da7adf84.css","js/build/UserSelect.fe42163b.js","js/build/ImgUpload.cbadd034.js","js/build/details.70f91a78.js"])},{name:"manage-approve",path:"approve",component:()=>Cn(()=>import("./index.4a90d45e.js"),["js/build/index.4a90d45e.js","js/build/index.9d0cdd21.css","js/build/details.70f91a78.js","js/build/ImgUpload.cbadd034.js","js/build/index.ed41beb1.js","js/build/index.da7adf84.css"])},{name:"manage-approve-details",path:"approve/details",component:()=>Cn(()=>import("./details.70f91a78.js"),["js/build/details.70f91a78.js","js/build/ImgUpload.cbadd034.js"])},{name:"manage-setting",path:"setting",component:()=>Cn(()=>import("./index.8ddea90c.js"),[]),children:[{name:"manage-setting-personal",path:"personal",component:()=>Cn(()=>import("./personal.54df45dd.js"),["js/build/personal.54df45dd.js","js/build/ImgUpload.cbadd034.js"])},{name:"manage-setting-checkin",path:"checkin",component:()=>Cn(()=>import("./checkin.3166564c.js"),["js/build/checkin.3166564c.js","js/build/checkin.01811e2e.css"])},{name:"manage-setting-approve",path:"approve",component:()=>Cn(()=>import("./approve.6639cc9f.js"),["js/build/approve.6639cc9f.js","js/build/approve.14748925.css","js/build/index.ed41beb1.js","js/build/index.da7adf84.css"])},{name:"manage-setting-language",path:"language",component:()=>Cn(()=>import("./language.733d391d.js"),[])},{name:"manage-setting-theme",path:"theme",component:()=>Cn(()=>import("./theme.602796fd.js"),[])},{name:"manage-setting-keyboard",path:"keyboard",component:()=>Cn(()=>import("./keyboard.8af1fb72.js"),["js/build/keyboard.8af1fb72.js","js/build/keyboard.83204363.css"])},{name:"manage-setting-license",path:"license",component:()=>Cn(()=>import("./license.905d25ba.js"),["js/build/license.905d25ba.js","js/build/license.2d98adda.css"])},{name:"manage-setting-password",path:"password",component:()=>Cn(()=>import("./password.6442867a.js"),[])},{name:"manage-setting-email",path:"email",component:()=>Cn(()=>import("./email.75f9d899.js"),[])},{name:"manage-setting-system",path:"system",component:()=>Cn(()=>import("./system.1e3ba535.js"),["js/build/system.1e3ba535.js","js/build/index.ed41beb1.js","js/build/index.da7adf84.css","js/build/CheckinExport.a307a3ee.js","js/build/CheckinExport.68b4950e.css","js/build/UserSelect.fe42163b.js"])},{name:"manage-setting-delete",path:"delete",component:()=>Cn(()=>import("./delete.8ebfc31c.js"),[])}]},{name:"manage-project-invite",path:"project/invite",component:()=>Cn(()=>import("./projectInvite.56a67275.js"),["js/build/projectInvite.56a67275.js","js/build/projectInvite.c62994fb.css"])},{name:"manage-project",path:"project/:projectId",component:()=>Cn(()=>import("./project.b44e8549.js"),["js/build/project.b44e8549.js","js/build/ProjectLog.65503d98.js","js/build/TaskMenu.98a91192.js","js/build/index.ed41beb1.js","js/build/index.da7adf84.css","js/build/UserSelect.fe42163b.js","js/build/DialogWrapper.962561b6.js","js/build/DialogWrapper.f63c0b9e.css","js/build/longpress.43ca7fd9.js","js/build/ImgUpload.cbadd034.js","js/build/details.70f91a78.js"])},{name:"manage-file",path:"file/:folderId?/:fileId?",component:()=>Cn(()=>import("./file.9309ba9b.js"),["js/build/file.9309ba9b.js","js/build/index.ed41beb1.js","js/build/index.da7adf84.css","js/build/longpress.43ca7fd9.js","js/build/UserSelect.fe42163b.js"])}]},{name:"single-file-msg",path:"/single/file/msg/:msgId",component:()=>Cn(()=>import("./fileMsg.cee86f54.js"),["js/build/fileMsg.cee86f54.js","js/build/fileMsg.1a0b76dd.css","js/build/IFrame.057cac1d.js"])},{name:"single-file-task",path:"/single/file/task/:fileId",component:()=>Cn(()=>import("./fileTask.9ddf188a.js"),["js/build/fileTask.9ddf188a.js","js/build/fileTask.93338ba0.css","js/build/IFrame.057cac1d.js"])},{name:"single-file",path:"/single/file/:codeOrFileId",component:()=>Cn(()=>import("./file.b975d228.js"),["js/build/file.b975d228.js","js/build/file.1cbb23e7.css","js/build/FileContent.19861c79.js","js/build/FileContent.5c6a1e1c.css","js/build/IFrame.057cac1d.js","js/build/FilePreview.025b3286.js"])},{name:"single-task",path:"/single/task/:taskId",component:()=>Cn(()=>import("./task.5e49e9ae.js"),["js/build/task.5e49e9ae.js","js/build/task.0d7ca2d3.css","js/build/TaskDetail.2b58e274.js","js/build/TEditor.a8b14511.js","js/build/ImgUpload.cbadd034.js","js/build/ProjectLog.65503d98.js","js/build/DialogWrapper.962561b6.js","js/build/DialogWrapper.f63c0b9e.css","js/build/longpress.43ca7fd9.js","js/build/index.ed41beb1.js","js/build/index.da7adf84.css","js/build/UserSelect.fe42163b.js","js/build/details.70f91a78.js","js/build/TaskMenu.98a91192.js"])},{name:"valid-email",path:"/single/valid/email",component:()=>Cn(()=>import("./validEmail.38e96830.js"),["js/build/validEmail.38e96830.js","js/build/validEmail.6e361ca9.css"])},{name:"report-edit",path:"/single/report/edit/:reportEditId",component:()=>Cn(()=>import("./reportEdit.b1049887.js"),["js/build/reportEdit.b1049887.js","js/build/reportEdit.5c397123.css","js/build/ReportEdit.74592e96.js","js/build/UserSelect.fe42163b.js"])},{name:"report-detail",path:"/single/report/detail/:reportDetailId",component:()=>Cn(()=>import("./reportDetail.f8c5e6fd.js"),["js/build/reportDetail.f8c5e6fd.js","js/build/reportDetail.c12bef4b.css","js/build/ReportDetail.62478618.js"])},{name:"token",path:"/token",component:()=>Cn(()=>import("./token.fd2d3201.js"),["js/build/token.fd2d3201.js","js/build/token.7afc4e00.css"])},{name:"login",path:"/login",component:()=>Cn(()=>import("./login.44c0f794.js"),[])},{name:"404",path:"*",component:()=>Cn(()=>import("./404.4a69509c.js"),["js/build/404.4a69509c.js","js/build/404.d686a01f.css"])}];/*! * vue-router v3.6.5 * (c) 2022 Evan You * @license MIT @@ -228,7 +228,7 @@ Please report this to https://github.com/markedjs/marked.`,(t||Gn.defaults).sile `,pe+="@keyframes "+ue+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",j(pe)}}function S(Y){Y.className+=" "+g+"_animation_active"}function x(Y,N,W){if(Y.addEventListener)Y.addEventListener(N,W);else if(Y.attachEvent)Y.attachEvent("on"+N,W);else return h.error("[scroll] Don't know how to add event listeners.")}function E(Y,N,W){if(Y.removeEventListener)Y.removeEventListener(N,W);else if(Y.detachEvent)Y.detachEvent("on"+N,W);else return h.error("[scroll] Don't know how to remove event listeners.")}function w(Y){return p(Y).container.childNodes[0].childNodes[0].childNodes[0]}function T(Y){return p(Y).container.childNodes[0].childNodes[0].childNodes[1]}function M(Y,N){var W=p(Y).listeners;if(!W.push)throw new Error("Cannot add listener to an element that is not detectable.");p(Y).listeners.push(N)}function A(Y,N,W){W||(W=N,N=Y,Y=null),Y=Y||{};function j(){if(Y.debug){var Z=Array.prototype.slice.call(arguments);if(Z.unshift(d.get(N),"Scroll: "),h.log.apply)h.log.apply(null,Z);else for(var Oe=0;Oe0?[n._l(n.markList,function(v,m){return d("div",{key:m,class:[n.prefixCls+"-stop"],style:{left:v.position+"%"},on:{click:function(y){return y.target!==y.currentTarget?null:n.sliderClick.apply(null,arguments)}}})}),n._v(" "),d("div",{staticClass:"ivu-slider-marks"},n._l(n.markList,function(v,m){return d("SliderMarker",{key:m,style:{left:v.position+"%"},attrs:{mark:v.mark},nativeOn:{click:function(y){return n.sliderClick.apply(null,arguments)}}})}),1)]:n._e(),n._v(" "),d("div",{class:[n.prefixCls+"-button-wrap"],style:{left:n.minPosition+"%"},on:{touchstart:function(m){return n.onPointerDown(m,"min")},mousedown:function(m){return n.onPointerDown(m,"min")}}},[d("Tooltip",{ref:"minTooltip",attrs:{controlled:n.pointerDown==="min",placement:"top",content:n.tipFormat(n.exportValue[0]),disabled:n.tipDisabled,always:n.showTip==="always"}},[d("div",{class:n.minButtonClasses,attrs:{tabindex:"0"},on:{focus:function(m){return n.handleFocus("min")},blur:function(m){return n.handleBlur("min")},keydown:[function(v){return!v.type.indexOf("key")&&n._k(v.keyCode,"left",37,v.key,["Left","ArrowLeft"])||"button"in v&&v.button!==0?null:n.onKeyLeft(v,"min")},function(v){return!v.type.indexOf("key")&&n._k(v.keyCode,"down",40,v.key,["Down","ArrowDown"])?null:n.onKeyLeft(v,"min")},function(v){return!v.type.indexOf("key")&&n._k(v.keyCode,"right",39,v.key,["Right","ArrowRight"])||"button"in v&&v.button!==2?null:n.onKeyRight(v,"min")},function(v){return!v.type.indexOf("key")&&n._k(v.keyCode,"up",38,v.key,["Up","ArrowUp"])?null:n.onKeyRight(v,"min")}]}})])],1),n._v(" "),n.range?d("div",{class:[n.prefixCls+"-button-wrap"],style:{left:n.maxPosition+"%"},on:{touchstart:function(m){return n.onPointerDown(m,"max")},mousedown:function(m){return n.onPointerDown(m,"max")}}},[d("Tooltip",{ref:"maxTooltip",attrs:{controlled:n.pointerDown==="max",placement:"top",content:n.tipFormat(n.exportValue[1]),disabled:n.tipDisabled,always:n.showTip==="always"}},[d("div",{class:n.maxButtonClasses,attrs:{tabindex:"0"},on:{focus:function(m){return n.handleFocus("max")},blur:function(m){return n.handleBlur("max")},keydown:[function(v){return!v.type.indexOf("key")&&n._k(v.keyCode,"left",37,v.key,["Left","ArrowLeft"])||"button"in v&&v.button!==0?null:n.onKeyLeft(v,"max")},function(v){return!v.type.indexOf("key")&&n._k(v.keyCode,"down",40,v.key,["Down","ArrowDown"])?null:n.onKeyLeft(v,"max")},function(v){return!v.type.indexOf("key")&&n._k(v.keyCode,"right",39,v.key,["Right","ArrowRight"])||"button"in v&&v.button!==2?null:n.onKeyRight(v,"max")},function(v){return!v.type.indexOf("key")&&n._k(v.keyCode,"up",38,v.key,["Up","ArrowUp"])?null:n.onKeyRight(v,"max")}]}})])],1):n._e()],2)],1)},c=[];a.render=u,a.staticRenderFns=c},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(1),c=p(u),h=s(543),n=p(h);function p(g){return g&&g.__esModule?g:{default:g}}var d=void 0;function v(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0;return d=d||n.default.newInstance({render:g}),d}function m(g){var y="render"in g?g.render:void 0,b=v(y);b.show(g)}n.default.show=function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return m(g)},n.default.hide=function(){var g=this;if(!d)return!1;var y=v();y.remove(function(){(0,c.default)(this,g),d=null}.bind(this))},a.default=n.default},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(14),c=y(u),h=s(1),n=y(h),p=s(17),d=y(p),v=s(91),m=y(v),g=s(33);function y(O){return O&&O.__esModule?O:{default:O}}function b(){return(0,g.transferIncrease)(),(0,g.getTransferIndex)()}var k=b();m.default.newInstance=function(O){(0,n.default)(void 0,void 0);var S=O||{},x=new d.default({data:(0,c.default)({},S,{}),render:function(M){var A="";return this.render?A=M(m.default,{props:{fix:!0,fullscreen:!0}},[this.render(M)]):A=M(m.default,{props:{size:"large",fix:!0,fullscreen:!0}}),M("div",{class:"ivu-spin-fullscreen ivu-spin-fullscreen-wrapper",style:{"z-index":(0,g.hasTransferIndex)(k,2010+k)}},[A])}}),E=x.$mount();document.body.appendChild(E.$el);var w=x.$children[0];return{show:function(){w.visible=!0,k=b()},remove:function(M){w.visible=!1,setTimeout(function(){w.$parent.$destroy(),document.getElementsByClassName("ivu-spin-fullscreen")[0]!==void 0&&document.body.removeChild(document.getElementsByClassName("ivu-spin-fullscreen")[0]),M()},500)},component:w}}.bind(void 0),a.default=m.default},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(545),c=p(u),h=s(547),n=p(h);function p(d){return d&&d.__esModule?d:{default:d}}c.default.Step=n.default,a.default=c.default},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(232),c=s.n(u);for(var h in u)h!=="default"&&function(b){s.d(a,b,function(){return u[b]})}(h);var n=s(546);s.n(n);var p=s(0),d=!1,v=null,m=null,g=null,y=Object(p.a)(c.a,n.render,n.staticRenderFns,d,v,m,g);a.default=y.exports},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=function(){var n=this,p=n.$createElement,d=n._self._c||p;return d("div",{class:n.classes},[n._t("default")],2)},c=[];a.render=u,a.staticRenderFns=c},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(233),c=s.n(u);for(var h in u)h!=="default"&&function(b){s.d(a,b,function(){return u[b]})}(h);var n=s(548);s.n(n);var p=s(0),d=!1,v=null,m=null,g=null,y=Object(p.a)(c.a,n.render,n.staticRenderFns,d,v,m,g);a.default=y.exports},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=function(){var n=this,p=n.$createElement,d=n._self._c||p;return d("div",{class:n.wrapClasses},[d("div",{class:[n.prefixCls+"-tail"]},[d("i")]),n._v(" "),d("div",{class:[n.prefixCls+"-head"]},[d("div",{class:[n.prefixCls+"-head-inner"]},[!n.icon&&!n.$slots.icon&&n.currentStatus!=="finish"&&n.currentStatus!=="error"?d("span",[n._v(n._s(n.stepNumber))]):n.$slots.icon?d("span",{staticClass:"ivu-steps-icon"},[n._t("icon")],2):d("span",{class:n.iconClasses})])]),n._v(" "),d("div",{class:[n.prefixCls+"-main"]},[d("div",{class:[n.prefixCls+"-title"]},[n._t("title",function(){return[n._v(n._s(n.title))]})],2),n._v(" "),n.content||n.$slots.content?d("div",{class:[n.prefixCls+"-content"]},[n._t("content",function(){return[n._v(n._s(n.content))]})],2):n._e()])])},c=[];a.render=u,a.staticRenderFns=c},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(550),c=h(u);function h(n){return n&&n.__esModule?n:{default:n}}a.default=c.default},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(234),c=s.n(u);for(var h in u)h!=="default"&&function(b){s.d(a,b,function(){return u[b]})}(h);var n=s(551);s.n(n);var p=s(0),d=!1,v=null,m=null,g=null,y=Object(p.a)(c.a,n.render,n.staticRenderFns,d,v,m,g);a.default=y.exports},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=function(){var n=this,p=n.$createElement,d=n._self._c||p;return d("span",{class:n.wrapClasses,style:n.wrapStyles,attrs:{tabindex:"0"},on:{click:n.toggle,keydown:function(m){return!m.type.indexOf("key")&&n._k(m.keyCode,"space",32,m.key,[" ","Spacebar"])?null:n.toggle.apply(null,arguments)}}},[d("input",{attrs:{type:"hidden",name:n.name},domProps:{value:n.currentValue}}),n._v(" "),d("span",{class:n.innerClasses},[n.currentValue===n.trueValue?n._t("open"):n._e(),n._v(" "),n.currentValue===n.falseValue?n._t("close"):n._e()],2)])},c=[];a.render=u,a.staticRenderFns=c},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(553),c=h(u);function h(n){return n&&n.__esModule?n:{default:n}}a.default=c.default},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(235),c=s.n(u);for(var h in u)h!=="default"&&function(b){s.d(a,b,function(){return u[b]})}(h);var n=s(583);s.n(n);var p=s(0),d=!1,v=null,m=null,g=null,y=Object(p.a)(c.a,n.render,n.staticRenderFns,d,v,m,g);a.default=y.exports},function(i,a,s){i.exports={default:s(555),__esModule:!0}},function(i,a,s){s(79),s(36),s(46),s(556),s(562),s(565),s(567),i.exports=s(5).Set},function(i,a,s){var u=s(557),c=s(236),h="Set";i.exports=s(558)(h,function(n){return function(){return n(this,arguments.length>0?arguments[0]:void 0)}},{add:function(p){return u.def(c(this,h),p=p===0?0:p,p)}},u)},function(i,a,s){var u=s(16).f,c=s(55),h=s(90),n=s(25),p=s(88),d=s(51),v=s(72),m=s(102),g=s(190),y=s(13),b=s(77).fastKey,k=s(236),O=y?"_s":"size",S=function(x,E){var w=b(E),T;if(w!=="F")return x._i[w];for(T=x._f;T;T=T.n)if(T.k==E)return T};i.exports={getConstructor:function(x,E,w,T){var M=x(function(A,L){p(A,M,E,"_i"),A._t=E,A._i=c(null),A._f=void 0,A._l=void 0,A[O]=0,L!=null&&d(L,w,A[T],A)});return h(M.prototype,{clear:function(){for(var L=k(this,E),Y=L._i,N=L._f;N;N=N.n)N.r=!0,N.p&&(N.p=N.p.n=void 0),delete Y[N.i];L._f=L._l=void 0,L[O]=0},delete:function(A){var L=k(this,E),Y=S(L,A);if(Y){var N=Y.n,W=Y.p;delete L._i[Y.i],Y.r=!0,W&&(W.n=N),N&&(N.p=W),L._f==Y&&(L._f=N),L._l==Y&&(L._l=W),L[O]--}return!!Y},forEach:function(L){k(this,E);for(var Y=n(L,arguments.length>1?arguments[1]:void 0,3),N;N=N?N.n:this._f;)for(Y(N.v,N.k,this);N&&N.r;)N=N.p},has:function(L){return!!S(k(this,E),L)}}),y&&u(M.prototype,"size",{get:function(){return k(this,E)[O]}}),M},def:function(x,E,w){var T=S(x,E),M,A;return T?T.v=w:(x._l=T={i:A=b(E,!0),k:E,v:w,p:M=x._l,n:void 0,r:!1},x._f||(x._f=T),M&&(M.n=T),x[O]++,A!=="F"&&(x._i[A]=T)),x},getEntry:S,setStrong:function(x,E,w){v(x,E,function(T,M){this._t=k(T,E),this._k=M,this._l=void 0},function(){for(var T=this,M=T._k,A=T._l;A&&A.r;)A=A.p;return!T._t||!(T._l=A=A?A.n:T._t._f)?(T._t=void 0,m(1)):M=="keys"?m(0,A.k):M=="values"?m(0,A.v):m(0,[A.k,A.v])},w?"entries":"values",!w,!0),g(E)}}},function(i,a,s){var u=s(9),c=s(7),h=s(77),n=s(31),p=s(26),d=s(90),v=s(51),m=s(88),g=s(19),y=s(47),b=s(16).f,k=s(559)(0),O=s(13);i.exports=function(S,x,E,w,T,M){var A=u[S],L=A,Y=T?"set":"add",N=L&&L.prototype,W={};return!O||typeof L!="function"||!(M||N.forEach&&!n(function(){new L().entries().next()}))?(L=w.getConstructor(x,S,T,Y),d(L.prototype,E),h.NEED=!0):(L=x(function(j,ue){m(j,L,S,"_c"),j._c=new A,ue!=null&&v(ue,T,j[Y],j)}),k("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(j){var ue=j=="add"||j=="set";j in N&&!(M&&j=="clear")&&p(L.prototype,j,function(Te,pe){if(m(this,L,j),!ue&&M&&!g(Te))return j=="get"?void 0:!1;var ye=this._c[j](Te===0?0:Te,pe);return ue?this:ye})}),M||b(L.prototype,"size",{get:function(){return this._c.size}})),y(L,S),W[S]=L,c(c.G+c.W+c.F,W),M||w.setStrong(L,S,T),L}},function(i,a,s){var u=s(25),c=s(64),h=s(29),n=s(52),p=s(560);i.exports=function(d,v){var m=d==1,g=d==2,y=d==3,b=d==4,k=d==6,O=d==5||k,S=v||p;return function(x,E,w){for(var T=h(x),M=c(T),A=u(E,w,3),L=n(M.length),Y=0,N=m?S(x,L):g?S(x,0):void 0,W,j;L>Y;Y++)if((O||Y in M)&&(W=M[Y],j=A(W,Y,T),d)){if(m)N[Y]=j;else if(j)switch(d){case 3:return!0;case 5:return W;case 6:return Y;case 2:N.push(W)}else if(b)return!1}return k?-1:y||b?b:N}}},function(i,a,s){var u=s(561);i.exports=function(c,h){return new(u(c))(h)}},function(i,a,s){var u=s(19),c=s(111),h=s(10)("species");i.exports=function(n){var p;return c(n)&&(p=n.constructor,typeof p=="function"&&(p===Array||c(p.prototype))&&(p=void 0),u(p)&&(p=p[h],p===null&&(p=void 0))),p===void 0?Array:p}},function(i,a,s){var u=s(7);u(u.P+u.R,"Set",{toJSON:s(563)("Set")})},function(i,a,s){var u=s(56),c=s(564);i.exports=function(h){return function(){if(u(this)!=h)throw TypeError(h+"#toJSON isn't generic");return c(this)}}},function(i,a,s){var u=s(51);i.exports=function(c,h){var n=[];return u(c,!1,n.push,n,h),n}},function(i,a,s){s(566)("Set")},function(i,a,s){var u=s(7);i.exports=function(c){u(u.S,c,{of:function(){for(var n=arguments.length,p=new Array(n);n--;)p[n]=arguments[n];return new this(p)}})}},function(i,a,s){s(568)("Set")},function(i,a,s){var u=s(7),c=s(43),h=s(25),n=s(51);i.exports=function(p){u(u.S,p,{from:function(v){var m=arguments[1],g,y,b,k;return c(this),g=m!==void 0,g&&c(m),v==null?new this:(y=[],g?(b=0,k=h(m,arguments[2],2),n(v,!1,function(O){y.push(k(O,b++))})):n(v,!1,y.push,y),new this(y))}})}},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(237),c=s.n(u);for(var h in u)h!=="default"&&function(b){s.d(a,b,function(){return u[b]})}(h);var n=s(571);s.n(n);var p=s(0),d=!1,v=null,m=null,g=null,y=Object(p.a)(c.a,n.render,n.staticRenderFns,d,v,m,g);a.default=y.exports},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(1),c=h(u);function h(n){return n&&n.__esModule?n:{default:n}}a.default={name:"TableRenderHeader",functional:!0,props:{render:Function,column:Object,index:Number},render:function(p,d){(0,c.default)(void 0,void 0);var v={column:d.props.column,index:d.props.index};return d.props.render(p,v)}.bind(void 0)}},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=function(){var n=this,p=n.$createElement,d=n._self._c||p;return d("table",{style:n.styles,attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[d("colgroup",[n._l(n.columns,function(v,m){return d("col",{attrs:{width:n.setCellWidth(v)}})}),n._v(" "),n.$parent.showVerticalScrollBar?d("col",{attrs:{width:n.$parent.scrollBarWidth}}):n._e()],2),n._v(" "),d("thead",n._l(n.headRows,function(v,m){return d("tr",[n._l(v,function(g,y){var b;return d("th",{class:n.alignCls(g),attrs:{colspan:g.colSpan,rowspan:g.rowSpan}},[d("div",{class:n.cellClasses(g)},[g.type==="expand"?[g.renderHeader?d("render-header",{attrs:{render:g.renderHeader,column:g,index:y}}):d("span",[n._v(n._s(g.title||""))])]:g.type==="selection"?[g.hideSelectAll?n._e():d("Checkbox",{attrs:{value:n.isSelectAll,disabled:n.isSelectDisabled},on:{"on-change":n.selectAll}})]:[g.renderHeader?d("render-header",{attrs:{render:g.renderHeader,column:g,index:y}}):d("span",{class:(b={},b[n.prefixCls+"-cell-sort"]=g.sortable,b),on:{click:function(O){g.sortable&&n.handleSortByHead(n.getColumn(m,y)._index)}}},[n._v(n._s(g.title||"#"))]),n._v(" "),g.sortable?d("span",{class:[n.prefixCls+"-sort"]},[d("i",{staticClass:"ivu-icon ivu-icon-md-arrow-dropup",class:{on:n.getColumn(m,y)._sortType==="asc"},on:{click:function(O){n.handleSort(n.getColumn(m,y)._index,"asc")}}}),n._v(" "),d("i",{staticClass:"ivu-icon ivu-icon-md-arrow-dropdown",class:{on:n.getColumn(m,y)._sortType==="desc"},on:{click:function(O){n.handleSort(n.getColumn(m,y)._index,"desc")}}})]):n._e(),n._v(" "),n.isPopperShow(g)?d("Poptip",{attrs:{placement:"bottom","popper-class":"ivu-table-popper",transfer:"",capture:!1},on:{"on-popper-hide":function(O){n.handleFilterHide(n.getColumn(m,y)._index)}},model:{value:n.getColumn(m,y)._filterVisible,callback:function(O){n.$set(n.getColumn(m,y),"_filterVisible",O)},expression:"getColumn(rowIndex, index)._filterVisible"}},[d("span",{class:[n.prefixCls+"-filter"]},[d("i",{staticClass:"ivu-icon ivu-icon-ios-funnel",class:{on:n.getColumn(m,y)._isFiltered}})]),n._v(" "),n.getColumn(m,y)._filterMultiple?d("div",{class:[n.prefixCls+"-filter-list"],attrs:{slot:"content"},slot:"content"},[d("div",{class:[n.prefixCls+"-filter-list-item"]},[d("checkbox-group",{model:{value:n.getColumn(m,y)._filterChecked,callback:function(O){n.$set(n.getColumn(m,y),"_filterChecked",O)},expression:"getColumn(rowIndex, index)._filterChecked"}},n._l(g.filters,function(k,O){return d("checkbox",{key:O,attrs:{label:k.value}},[n._v(n._s(k.label))])}),1)],1),n._v(" "),d("div",{class:[n.prefixCls+"-filter-footer"]},[d("i-button",{attrs:{type:"text",size:"small",disabled:!n.getColumn(m,y)._filterChecked.length},nativeOn:{click:function(O){n.handleFilter(n.getColumn(m,y)._index)}}},[n._v(n._s(n.t("i.table.confirmFilter")))]),n._v(" "),d("i-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(O){n.handleReset(n.getColumn(m,y)._index)}}},[n._v(n._s(n.t("i.table.resetFilter")))])],1)]):d("div",{class:[n.prefixCls+"-filter-list"],attrs:{slot:"content"},slot:"content"},[d("ul",{class:[n.prefixCls+"-filter-list-single"]},[d("li",{class:n.itemAllClasses(n.getColumn(m,y)),on:{click:function(O){n.handleReset(n.getColumn(m,y)._index)}}},[n._v(n._s(n.t("i.table.clearFilter")))]),n._v(" "),n._l(g.filters,function(k){return d("li",{class:n.itemClasses(n.getColumn(m,y),k),on:{click:function(S){n.handleSelect(n.getColumn(m,y)._index,k.value)}}},[n._v(n._s(k.label))])})],2)])]):n._e()]],2),n._v(" "),g.resizable?d("div",{staticClass:"ivu-table-header-resizable",on:{mousedown:function(O){return n.handleMouseDown(g,O)},mousemove:function(O){return n.handleMouseMove(g,O)},mouseout:n.handleMouseOut}}):n._e()])}),n._v(" "),n.$parent.showVerticalScrollBar&&m===0?d("th",{class:n.scrollBarCellClass(),attrs:{rowspan:n.headRows.length}}):n._e()],2)}),0)])},c=[];a.render=u,a.staticRenderFns=c},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(238),c=s.n(u);for(var h in u)h!=="default"&&function(k){s.d(a,k,function(){return u[k]})}(h);var n=s(0),p,d,v=!1,m=null,g=null,y=null,b=Object(n.a)(c.a,p,d,v,m,g,y);a.default=b.exports},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(239),c=s.n(u);for(var h in u)h!=="default"&&function(b){s.d(a,b,function(){return u[b]})}(h);var n=s(574);s.n(n);var p=s(0),d=!1,v=null,m=null,g=null,y=Object(p.a)(c.a,n.render,n.staticRenderFns,d,v,m,g);a.default=y.exports},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=function(){var n=this,p=n.$createElement,d=n._self._c||p;return n.draggable?d("tr",{class:n.rowClasses(n.row._index),attrs:{draggable:n.draggable},on:{dragstart:function(m){return n.onDrag(m,n.row._index)},drop:function(m){return n.onDrop(m,n.row._index)},dragover:function(m){return n.allowDrop(m)}}},[n._t("default")],2):d("tr",{class:n.rowClasses(n.row._index),attrs:{draggable:!1}},[n._t("default")],2)},c=[];a.render=u,a.staticRenderFns=c},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(240),c=s.n(u);for(var h in u)h!=="default"&&function(b){s.d(a,b,function(){return u[b]})}(h);var n=s(577);s.n(n);var p=s(0),d=!1,v=null,m=null,g=null,y=Object(p.a)(c.a,n.render,n.staticRenderFns,d,v,m,g);a.default=y.exports},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(1),c=h(u);function h(n){return n&&n.__esModule?n:{default:n}}a.default={name:"TableSlot",functional:!0,inject:["tableRoot"],props:{row:Object,index:Number,column:{type:Object,default:null},display:{type:String,default:"block"}},render:function(p,d){return(0,c.default)(void 0,void 0),p("div",{class:{"ivu-table-cell-slot":!0,"ivu-table-cell-slot-inline":d.props.display==="inline","ivu-table-cell-slot-inline-block":d.props.display==="inline-block"}},d.injections.tableRoot.$scopedSlots[d.props.column.slot]({row:d.props.row,column:d.props.column,index:d.props.index}))}.bind(void 0)}},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=function(){var n=this,p=n.$createElement,d=n._self._c||p;return d("div",{ref:"cell",class:n.classes},[n.renderType==="index"?[d("span",[n._v(n._s(n.column.indexMethod?n.column.indexMethod(n.row,n.naturalIndex):n.naturalIndex+1))])]:n._e(),n._v(" "),n.renderType==="selection"?[d("Checkbox",{attrs:{value:n.checked,disabled:n.disabled},on:{"on-change":n.toggleSelect},nativeOn:{click:function(m){return m.stopPropagation(),n.handleClick.apply(null,arguments)}}})]:n._e(),n._v(" "),n.showLevel?d("div",{staticClass:"ivu-table-cell-tree-level",style:n.treeLevelStyle}):n._e(),n._v(" "),n.showChildren?d("div",{staticClass:"ivu-table-cell-tree",class:{"ivu-table-cell-tree-loading":n.childrenLoading},on:{click:function(m){return m.preventDefault(),m.stopPropagation(),n.handleToggleTree.apply(null,arguments)}}},[n.childrenLoading?d("Icon",{staticClass:"ivu-load-loop",attrs:{type:"ios-loading"}}):n.childrenExpand?d("Icon",{attrs:{type:"ios-remove"}}):d("Icon",{attrs:{type:"ios-add"}})],1):n.showTreeNode?d("div",{staticClass:"ivu-table-cell-tree ivu-table-cell-tree-empty"}):n._e(),n._v(" "),n.renderType==="html"?[d("span",{domProps:{innerHTML:n._s(n.row[n.column.key])}})]:n._e(),n._v(" "),n.renderType==="normal"?[n.column.tooltip?[d("Tooltip",{staticClass:"ivu-table-cell-tooltip",attrs:{transfer:"",content:n.row[n.column.key],theme:n.column.tooltipTheme?n.column.tooltipTheme:n.tableRoot.tooltipTheme,disabled:!n.showTooltip,"max-width":n.column.tooltipMaxWidth?n.column.tooltipMaxWidth:n.tableRoot.tooltipMaxWidth}},[d("span",{ref:"content",staticClass:"ivu-table-cell-tooltip-content",on:{mouseenter:n.handleTooltipIn}},[n._v(n._s(n.row[n.column.key]))])])]:d("span",[n._v(n._s(n.row[n.column.key]))])]:n._e(),n._v(" "),n.renderType==="expand"&&!n.row._disableExpand?[d("div",{class:n.expandCls,on:{click:n.toggleExpand}},[d("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]:n._e(),n._v(" "),n.renderType==="render"?d("table-expand",{attrs:{row:n.row,column:n.column,index:n.index,render:n.column.render}}):n._e(),n._v(" "),n.renderType==="slot"?d("table-slot",{attrs:{row:n.row,column:n.column,display:n.column.display||"block",index:n.index}}):n._e()],2)},c=[];a.render=u,a.staticRenderFns=c},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(242),c=s.n(u);for(var h in u)h!=="default"&&function(b){s.d(a,b,function(){return u[b]})}(h);var n=s(579);s.n(n);var p=s(0),d=!1,v=null,m=null,g=null,y=Object(p.a)(c.a,n.render,n.staticRenderFns,d,v,m,g);a.default=y.exports},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=function(){var n=this,p=n.$createElement,d=n._self._c||p;return d("div",{staticStyle:{overflow:"hidden"}},[d("table",{staticClass:"ivu-table-summary",style:n.styleObject,attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[d("colgroup",n._l(n.columns,function(v,m){return d("col",{attrs:{width:n.setCellWidth(v)}})}),0),n._v(" "),d("tbody",{class:[n.prefixCls+"-tbody"]},[d("tr",{staticClass:"ivu-table-row"},n._l(n.columns,function(v,m){return d("td",{class:n.alignCls(v)},[d("div",{staticClass:"ivu-table-cell",class:n.cellCls(v)},[d("span",[n._v(n._s(n.data[v.key].value))])])])}),0)])])])},c=[];a.render=u,a.staticRenderFns=c},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(22),c=v(u),h=s(14),n=v(h),p=s(1),d=v(p);a.default=b;function v(k){return k&&k.__esModule?k:{default:k}}var m=`\r `,g=function(k,O,S){var x=S.separator,E=S.quoted;(0,d.default)(void 0,void 0);var w=O.map(function(T){return(0,d.default)(void 0,void 0),E?(T=typeof T=="string"?T.replace(/"/g,'"'):T,'"'+String(T)+'"'):T}.bind(void 0));k.push(w.join(x))}.bind(void 0),y={separator:",",quoted:!1};function b(k,O,S){var x=this,E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;S=(0,n.default)({},y,S);var w=void 0,T=[],M=[];return k?(w=k.map(function(A){return(0,d.default)(this,x),typeof A=="string"?A:(E||M.push(typeof A.title!="undefined"?A.title:A.key),A.key)}.bind(this)),M.length>0&&g(T,M,S)):(w=[],O.forEach(function(A){(0,d.default)(this,x),Array.isArray(A)||(w=w.concat((0,c.default)(A)))}.bind(this)),w.length>0&&(w=w.filter(function(A,L,Y){return(0,d.default)(this,x),Y.indexOf(A)===L}.bind(this)),E||g(T,w,S))),Array.isArray(O)&&O.forEach(function(A){(0,d.default)(this,x),Array.isArray(A)||(A=w.map(function(L){return(0,d.default)(this,x),typeof A[L]!="undefined"?A[L]:""}.bind(this))),g(T,A,S)}.bind(this)),T.join(m)}},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});function u(h){var n=navigator.userAgent;if(h==="ie"){var p=n.indexOf("compatible")>-1&&n.indexOf("MSIE")>-1;if(p){var d=new RegExp("MSIE (\\d+\\.\\d+);");return d.test(n),parseFloat(RegExp.$1)}else return!1}else return n.indexOf(h)>-1}var c={_isIE11:function(){var n=0,p=/MSIE (\d+\.\d+);/.test(navigator.userAgent),d=!!navigator.userAgent.match(/Trident\/7.0/),v=navigator.userAgent.indexOf("rv:11.0");return p&&(n=Number(RegExp.$1)),navigator.appVersion.indexOf("MSIE 10")!==-1&&(n=10),d&&v!==-1&&(n=11),n===11},_isEdge:function(){return/Edge/.test(navigator.userAgent)},_getDownloadUrl:function(n){var p="\uFEFF";if(window.Blob&&window.URL&&window.URL.createObjectURL){var d=new Blob([p+n],{type:"text/csv"});return URL.createObjectURL(d)}else return"data:attachment/csv;charset=utf-8,"+p+encodeURIComponent(n)},download:function(n,p){if(u("ie")&&u("ie")<10){var d=window.top.open("about:blank","_blank");d.document.charset="utf-8",d.document.write(p),d.document.close(),d.document.execCommand("SaveAs",n),d.close()}else if(u("ie")===10||this._isIE11()||this._isEdge()){var v="\uFEFF",m=new Blob([v+p],{type:"text/csv"});navigator.msSaveBlob(m,n)}else{var g=document.createElement("a");g.download=n,g.href=this._getDownloadUrl(p),document.body.appendChild(g),g.click(),document.body.removeChild(g)}}};a.default=c},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0}),a.getRandomStr=a.convertToRows=a.getAllColumns=a.convertColumnOrder=void 0;var u=s(1),c=n(u),h=s(3);function n(g){return g&&g.__esModule?g:{default:g}}var p=function(g,y){(0,c.default)(void 0,void 0);var b=[],k=[];return g.forEach(function(O){(0,c.default)(void 0,void 0),O.fixed&&O.fixed===y?b.push(O):k.push(O)}.bind(void 0)),b.concat(k)}.bind(void 0);a.convertColumnOrder=p;var d=function(g){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;(0,c.default)(void 0,void 0);var b=(0,h.deepCopy)(g),k=[];return b.forEach(function(O){(0,c.default)(void 0,void 0),O.children?(y&&k.push(O),k.push.apply(k,d(O.children,y))):k.push(O)}.bind(void 0)),k}.bind(void 0);a.getAllColumns=d;var v=function(g){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;(0,c.default)(void 0,void 0);var b=y?y==="left"?(0,h.deepCopy)(p(g,"left")):(0,h.deepCopy)(p(g,"right")):(0,h.deepCopy)(g),k=1,O=function(w,T){if((0,c.default)(void 0,void 0),T&&(w.level=T.level+1,k0&&arguments[0]!==void 0?arguments[0]:32,b="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",k=b.length,O="",S=0;S=6e4&&k<36e5?O=Math.floor(k/6e4)+(g("i.time.minutes")||"\u5206\u949F")+S:k>=36e5&&k<864e5?O=Math.floor(k/36e5)+(g("i.time.hours")||"\u5C0F\u65F6")+S:k>=864e5&&k<262386e4?O=Math.floor(k/864e5)+(g("i.time.days")||"\u5929")+S:k>=262386e4&&k<=3156786e4&&b?O=d(m):O=d(m,"year"),O}.bind(void 0)},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=function(){var n=this,p=n.$createElement,d=n._self._c||p;return d("span",{class:n.classes,on:{click:n.handleClick}},[n._v(n._s(n.date))])},c=[];a.render=u,a.staticRenderFns=c},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(597),c=p(u),h=s(599),n=p(h);function p(d){return d&&d.__esModule?d:{default:d}}c.default.Item=n.default,a.default=c.default},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(247),c=s.n(u);for(var h in u)h!=="default"&&function(b){s.d(a,b,function(){return u[b]})}(h);var n=s(598);s.n(n);var p=s(0),d=!1,v=null,m=null,g=null,y=Object(p.a)(c.a,n.render,n.staticRenderFns,d,v,m,g);a.default=y.exports},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=function(){var n=this,p=n.$createElement,d=n._self._c||p;return d("ul",{class:n.classes},[n._t("default")],2)},c=[];a.render=u,a.staticRenderFns=c},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(248),c=s.n(u);for(var h in u)h!=="default"&&function(b){s.d(a,b,function(){return u[b]})}(h);var n=s(600);s.n(n);var p=s(0),d=!1,v=null,m=null,g=null,y=Object(p.a)(c.a,n.render,n.staticRenderFns,d,v,m,g);a.default=y.exports},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=function(){var n=this,p=n.$createElement,d=n._self._c||p;return d("li",{class:n.itemClasses},[d("div",{class:n.tailClasses}),n._v(" "),d("div",{ref:"dot",class:n.headClasses,style:n.customColor},[n._t("dot")],2),n._v(" "),d("div",{class:n.contentClasses},[n._t("default")],2)])},c=[];a.render=u,a.staticRenderFns=c},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(602),c=h(u);function h(n){return n&&n.__esModule?n:{default:n}}a.default=c.default},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(1),c=k(u),h=s(157),n=k(h),p=s(166),d=k(p),v=s(175),m=k(v),g=s(58),y=k(g),b=s(3);function k(O){return O&&O.__esModule?O:{default:O}}a.default={mixins:[n.default,y.default],components:{TimePickerPanel:d.default,RangeTimePickerPanel:m.default},props:{type:{validator:function(S){return(0,b.oneOf)(S,["time","timerange"])},default:"time"}},computed:{panel:function(){var S=this.type==="timerange";return S?"RangeTimePickerPanel":"TimePickerPanel"},ownPickerProps:function(){return{disabledHours:this.disabledHours,disabledMinutes:this.disabledMinutes,disabledSeconds:this.disabledSeconds,hideDisabledOptions:this.hideDisabledOptions}}},watch:{visible:function(S){var x=this;S&&this.$nextTick(function(){(0,c.default)(this,x);var E=(0,b.findComponentsDownward)(this,"TimeSpinner");E.forEach(function(w){return(0,c.default)(this,x),w.updateScroll()}.bind(this))}.bind(this))}}}},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(93),c=h(u);function h(n){return n&&n.__esModule?n:{default:n}}a.default=c.default},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(605),c=h(u);function h(n){return n&&n.__esModule?n:{default:n}}a.default=c.default},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(249),c=s.n(u);for(var h in u)h!=="default"&&function(k){s.d(a,k,function(){return u[k]})}(h);var n=s(0),p,d,v=!1,m=null,g=null,y=null,b=Object(n.a)(c.a,p,d,v,m,g,y);a.default=b.exports},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(250),c=s.n(u);for(var h in u)h!=="default"&&function(b){s.d(a,b,function(){return u[b]})}(h);var n=s(609);s.n(n);var p=s(0),d=!1,v=null,m=null,g=null,y=Object(p.a)(c.a,n.render,n.staticRenderFns,d,v,m,g);a.default=y.exports},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(251),c=s.n(u);for(var h in u)h!=="default"&&function(b){s.d(a,b,function(){return u[b]})}(h);var n=s(608);s.n(n);var p=s(0),d=!1,v=null,m=null,g=null,y=Object(p.a)(c.a,n.render,n.staticRenderFns,d,v,m,g);a.default=y.exports},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=function(){var n=this,p=n.$createElement,d=n._self._c||p;return d("div",{class:n.prefixCls},[d("i-input",{attrs:{size:"small",icon:n.icon,placeholder:n.placeholder},on:{"on-click":n.handleClick},model:{value:n.currentQuery,callback:function(m){n.currentQuery=m},expression:"currentQuery"}})],1)},c=[];a.render=u,a.staticRenderFns=c},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=function(){var n=this,p=n.$createElement,d=n._self._c||p;return d("div",{class:n.classes,style:n.listStyle},[d("div",{class:n.prefixCls+"-header"},[d("Checkbox",{attrs:{value:n.checkedAll,disabled:n.checkedAllDisabled},on:{"on-change":n.toggleSelectAll}}),n._v(" "),d("span",{class:n.prefixCls+"-header-title",on:{click:function(m){return n.toggleSelectAll(!n.checkedAll)}}},[n._v(n._s(n.title))]),n._v(" "),d("span",{class:n.prefixCls+"-header-count"},[n._v(n._s(n.count))])],1),n._v(" "),d("div",{class:n.bodyClasses},[n.filterable?d("div",{class:n.prefixCls+"-body-search-wrapper"},[d("Search",{attrs:{"prefix-cls":n.prefixCls+"-search",query:n.query,placeholder:n.filterPlaceholder},on:{"on-query-clear":n.handleQueryClear,"on-query-change":n.handleQueryChange}})],1):n._e(),n._v(" "),d("ul",{class:n.prefixCls+"-content"},[n._l(n.filterData,function(v){return d("li",{class:n.itemClasses(v),on:{click:function(g){return g.preventDefault(),n.select(v)}}},[d("Checkbox",{attrs:{value:n.isCheck(v),disabled:v.disabled}}),n._v(" "),d("span",{domProps:{innerHTML:n._s(n.showLabel(v))}})],1)}),n._v(" "),d("li",{class:n.prefixCls+"-content-not-found"},[n._v(n._s(n.notFoundText))])],2)]),n._v(" "),n.showFooter?d("div",{class:n.prefixCls+"-footer"},[n._t("default")],2):n._e()])},c=[];a.render=u,a.staticRenderFns=c},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(252),c=s.n(u);for(var h in u)h!=="default"&&function(b){s.d(a,b,function(){return u[b]})}(h);var n=s(611);s.n(n);var p=s(0),d=!1,v=null,m=null,g=null,y=Object(p.a)(c.a,n.render,n.staticRenderFns,d,v,m,g);a.default=y.exports},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=function(){var n=this,p=n.$createElement,d=n._self._c||p;return d("div",{class:n.prefixCls+"-operation"},[n.reverseOperation?[d("i-button",{attrs:{type:"primary",size:"small",disabled:!n.leftActive},nativeOn:{click:function(m){return n.moveToRight.apply(null,arguments)}}},[d("span",[n._v(n._s(n.operations[1]))]),n._v(" "),d("Icon",{attrs:{type:"ios-arrow-forward"}})],1),n._v(" "),d("i-button",{attrs:{type:"primary",size:"small",disabled:!n.rightActive},nativeOn:{click:function(m){return n.moveToLeft.apply(null,arguments)}}},[d("Icon",{attrs:{type:"ios-arrow-back"}}),n._v(" "),d("span",[n._v(n._s(n.operations[0]))])],1)]:[d("i-button",{attrs:{type:"primary",size:"small",disabled:!n.rightActive},nativeOn:{click:function(m){return n.moveToLeft.apply(null,arguments)}}},[d("Icon",{attrs:{type:"ios-arrow-back"}}),n._v(" "),d("span",[n._v(n._s(n.operations[0]))])],1),n._v(" "),d("i-button",{attrs:{type:"primary",size:"small",disabled:!n.leftActive},nativeOn:{click:function(m){return n.moveToRight.apply(null,arguments)}}},[d("span",[n._v(n._s(n.operations[1]))]),n._v(" "),d("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]],2)},c=[];a.render=u,a.staticRenderFns=c},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(613),c=h(u);function h(n){return n&&n.__esModule?n:{default:n}}a.default=c.default},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(253),c=s.n(u);for(var h in u)h!=="default"&&function(b){s.d(a,b,function(){return u[b]})}(h);var n=s(617);s.n(n);var p=s(0),d=!1,v=null,m=null,g=null,y=Object(p.a)(c.a,n.render,n.staticRenderFns,d,v,m,g);a.default=y.exports},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(254),c=s.n(u);for(var h in u)h!=="default"&&function(b){s.d(a,b,function(){return u[b]})}(h);var n=s(616);s.n(n);var p=s(0),d=!1,v=null,m=null,g=null,y=Object(p.a)(c.a,n.render,n.staticRenderFns,d,v,m,g);a.default=y.exports},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(1),c=h(u);function h(n){return n&&n.__esModule?n:{default:n}}a.default={name:"RenderCell",functional:!0,props:{render:Function,data:Object,node:Array},render:function(p,d){(0,c.default)(void 0,void 0);var v={root:d.props.node[0],node:d.props.node[1],data:d.props.data};return d.props.render(p,v)}.bind(void 0)}},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=function(){var n=this,p=n.$createElement,d=n._self._c||p;return d("collapse-transition",{attrs:{appear:n.appear}},[d("ul",{class:n.classes},[d("li",{on:{contextmenu:function(m){return m.stopPropagation(),n.handleContextmenu(n.data,m)},selectstart:function(m){return m.stopPropagation(),n.handlePreventSelect(n.data,m)}}},[d("span",{class:n.arrowClasses,on:{click:n.handleExpand}},[n.showArrow?d("Icon",{attrs:{type:n.arrowType,custom:n.customArrowType,size:n.arrowSize}}):n._e(),n._v(" "),n.showLoading?d("Icon",{staticClass:"ivu-load-loop",attrs:{type:"ios-loading"}}):n._e()],1),n._v(" "),n.showCheckbox?d("Checkbox",{attrs:{value:n.data.checked,indeterminate:n.data.indeterminate,disabled:n.data.disabled||n.data.disableCheckbox},nativeOn:{click:function(m){return m.preventDefault(),n.handleCheck.apply(null,arguments)}}}):n._e(),n._v(" "),d("span",{class:n.titleClasses,on:{click:n.handleClickNode}},[n.data.render?d("Render",{attrs:{render:n.data.render,data:n.data,node:n.node}}):n.isParentRender?d("Render",{attrs:{render:n.parentRender,data:n.data,node:n.node}}):[n._v(n._s(n.data.title))]],2),n._v(" "),n._l(n.children,function(v,m){return n.data.expand?d("Tree-node",{key:m,attrs:{appear:n.appearByClickArrow,data:v,multiple:n.multiple,"show-checkbox":n.showCheckbox,"children-key":n.childrenKey}}):n._e()})],2)])])},c=[];a.render=u,a.staticRenderFns=c},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=function(){var n=this,p=n.$createElement,d=n._self._c||p;return d("div",{ref:"treeWrap",class:n.prefixCls},[n._l(n.stateTree,function(v,m){return d("Tree-node",{key:m,attrs:{data:v,visible:"",multiple:n.multiple,"show-checkbox":n.showCheckbox,"children-key":n.childrenKey}})}),n._v(" "),n.stateTree.length?n._e():d("div",{class:[n.prefixCls+"-empty"]},[n._v(n._s(n.localeEmptyText))]),n._v(" "),d("div",{staticClass:"ivu-tree-context-menu",style:n.contextMenuStyles},[d("Dropdown",{attrs:{trigger:"custom",visible:n.contextMenuVisible,transfer:""},on:{"on-clickoutside":n.handleClickContextMenuOutside}},[d("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[n._t("contextMenu")],2)],1)],1)],2)},c=[];a.render=u,a.staticRenderFns=c},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(619),c=h(u);function h(n){return n&&n.__esModule?n:{default:n}}a.default=c.default},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(255),c=s.n(u);for(var h in u)h!=="default"&&function(b){s.d(a,b,function(){return u[b]})}(h);var n=s(623);s.n(n);var p=s(0),d=!1,v=null,m=null,g=null,y=Object(p.a)(c.a,n.render,n.staticRenderFns,d,v,m,g);a.default=y.exports},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(256),c=s.n(u);for(var h in u)h!=="default"&&function(b){s.d(a,b,function(){return u[b]})}(h);var n=s(621);s.n(n);var p=s(0),d=!1,v=null,m=null,g=null,y=Object(p.a)(c.a,n.render,n.staticRenderFns,d,v,m,g);a.default=y.exports},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=function(){var n=this,p=n.$createElement,d=n._self._c||p;return d("ul",{class:[n.prefixCls+"-list"]},n._l(n.files,function(v){return d("li",{class:n.fileCls(v),on:{click:function(g){return n.handleClick(v)}}},[d("span",{on:{click:function(g){return n.handlePreview(v)}}},[d("Icon",{attrs:{type:n.format(v)}}),n._v(" "+n._s(v.name)+` `)],1),n._v(" "),d("Icon",{directives:[{name:"show",rawName:"v-show",value:v.status==="finished",expression:"file.status === 'finished'"}],class:[n.prefixCls+"-list-remove"],attrs:{type:"ios-close"},nativeOn:{click:function(g){return n.handleRemove(v)}}}),n._v(" "),d("transition",{attrs:{name:"fade"}},[v.showProgress?d("i-progress",{attrs:{"stroke-width":2,percent:n.parsePercentage(v.percentage),status:v.status==="finished"&&v.showProgress?"success":"normal"}}):n._e()],1)],1)}),0)},c=[];a.render=u,a.staticRenderFns=c},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(1),c=p(u),h=s(22),n=p(h);a.default=m;function p(g){return g&&g.__esModule?g:{default:g}}function d(g,y,b){var k="fail to post "+String(g)+" "+String(b.status)+"'",O=new Error(k);return O.status=b.status,O.method="post",O.url=g,O}function v(g){var y=g.responseText||g.response;if(!y)return y;try{return JSON.parse(y)}catch{return y}}function m(g){var y=this;if(typeof XMLHttpRequest!="undefined"){var b=new XMLHttpRequest,k=g.action;b.upload&&(b.upload.onprogress=function(w){w.total>0&&(w.percent=w.loaded/w.total*100),g.onProgress(w)});var O=new FormData;g.data&&(0,n.default)(g.data).map(function(E){(0,c.default)(this,y),O.append(E,g.data[E])}.bind(this)),O.append(g.filename,g.file),b.onerror=function(w){g.onError(w)},b.onload=function(){if(b.status<200||b.status>=300)return g.onError(d(k,g,b),v(b));g.onSuccess(v(b))},b.open("post",k,!0),g.withCredentials&&"withCredentials"in b&&(b.withCredentials=!0);var S=g.headers||{};for(var x in S)S.hasOwnProperty(x)&&S[x]!==null&&b.setRequestHeader(x,S[x]);b.send(O)}}},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=function(){var n=this,p=n.$createElement,d=n._self._c||p;return d("div",{class:[n.prefixCls]},[d("div",{class:n.classes,on:{click:n.handleClick,drop:function(m){return m.preventDefault(),n.onDrop.apply(null,arguments)},paste:n.handlePaste,dragover:function(m){m.preventDefault(),n.dragOver=!0},dragleave:function(m){m.preventDefault(),n.dragOver=!1}}},[d("input",{ref:"input",class:[n.prefixCls+"-input"],attrs:{type:"file",multiple:n.multiple,webkitdirectory:n.webkitdirectory,accept:n.accept},on:{change:n.handleChange}}),n._v(" "),n._t("default")],2),n._v(" "),n._t("tip"),n._v(" "),n.showUploadList?d("upload-list",{attrs:{files:n.fileList},on:{"on-file-remove":n.handleRemove,"on-file-preview":n.handlePreview}}):n._e()],2)},c=[];a.render=u,a.staticRenderFns=c},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0}),a.Col=a.Row=void 0;var u=s(625),c=p(u),h=s(627),n=p(h);function p(d){return d&&d.__esModule?d:{default:d}}a.Row=c.default,a.Col=n.default},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(257),c=s.n(u);for(var h in u)h!=="default"&&function(b){s.d(a,b,function(){return u[b]})}(h);var n=s(626);s.n(n);var p=s(0),d=!1,v=null,m=null,g=null,y=Object(p.a)(c.a,n.render,n.staticRenderFns,d,v,m,g);a.default=y.exports},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=function(){var n=this,p=n.$createElement,d=n._self._c||p;return d("div",{class:n.classes,style:n.styles},[n._t("default")],2)},c=[];a.render=u,a.staticRenderFns=c},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(258),c=s.n(u);for(var h in u)h!=="default"&&function(b){s.d(a,b,function(){return u[b]})}(h);var n=s(628);s.n(n);var p=s(0),d=!1,v=null,m=null,g=null,y=Object(p.a)(c.a,n.render,n.staticRenderFns,d,v,m,g);a.default=y.exports},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=function(){var n=this,p=n.$createElement,d=n._self._c||p;return d("div",{class:n.classes,style:n.styles},[n._t("default")],2)},c=[];a.render=u,a.staticRenderFns=c},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0}),a.OptionGroup=a.Option=a.Select=void 0;var u=s(74),c=v(u),h=s(81),n=v(h),p=s(630),d=v(p);function v(m){return m&&m.__esModule?m:{default:m}}a.Select=c.default,a.Option=n.default,a.OptionGroup=d.default,a.default=c.default},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=s(259),c=s.n(u);for(var h in u)h!=="default"&&function(b){s.d(a,b,function(){return u[b]})}(h);var n=s(631);s.n(n);var p=s(0),d=!1,v=null,m=null,g=null,y=Object(p.a)(c.a,n.render,n.staticRenderFns,d,v,m,g);a.default=y.exports},function(i,a,s){Object.defineProperty(a,"__esModule",{value:!0});var u=function(){var n=this,p=n.$createElement,d=n._self._c||p;return d("li",{directives:[{name:"show",rawName:"v-show",value:!n.hidden,expression:"!hidden"}],class:[n.prefixCls+"-wrap"]},[d("div",{class:[n.prefixCls+"-title"]},[n._v(n._s(n.label))]),n._v(" "),d("ul",[d("li",{ref:"options",class:[n.prefixCls]},[n._t("default")],2)])])},c=[];a.render=u,a.staticRenderFns=c}])})})(y6);var ta=u$(y6.exports);const I_=$A(window).width(),Mj=$A(window).height(),$_=$A.screenOrientation();var Ij={clientId:"",windowActive:!0,windowScrollY:0,windowTouch:"ontouchend"in document,windowWidth:I_,windowHeight:Mj,windowOrientation:$_,windowLandscape:$_==="landscape",windowPortrait:$_==="portrait",formLabelPosition:I_>576?"right":"top",formLabelWidth:I_>576?"auto":"",keyboardType:null,keyboardHeight:0,safeAreaBottom:0,appNotificationPermission:!0,audioPlaying:null,routeHistorys:[],routeHistoryLast:{},callAt:[],loads:[],loadDashboardTasks:!1,loadUserBasic:!1,loadProjects:0,loadDialogs:0,floatSpinnerTimer:[],floatSpinnerLoad:0,touchBackInProgress:!1,cacheUserActive:{},cacheUserWait:[],cacheUserBasic:[],cacheDialogs:[],cacheProjects:[],cacheColumns:[],cacheTasks:[],cacheProjectParameter:[],cacheTaskBrowse:[],cacheEmojis:[],cacheServerUrl:"",ajaxWsReady:!1,ajaxWsListener:[],ajaxNetworkException:!1,ws:null,wsMsg:{},wsCall:{},wsTimeout:null,wsRandom:0,wsOpenNum:0,wsListener:{},wsReadTimeout:null,wsReadWaitData:{},userInfo:{},userId:0,userToken:"",userIsAdmin:!1,userOnline:{},userAvatar:{},dialogId:0,dialogSearchMsgId:0,dialogIns:[],dialogMsgs:[],dialogTodos:[],dialogHistory:[],dialogDraftTimer:{},dialogMsgTransfer:{time:0},messengerSearchKey:{dialog:"",contacts:""},fileLists:[],fileLinks:[],projectId:0,projectTotal:0,projectLoad:0,taskId:0,taskCompleteTemps:[],taskContents:[],taskFiles:[],taskLogs:[],taskOperation:{},taskArchiveView:0,taskOneLoad:{},taskFlows:[],taskFlowItems:[],taskPriority:[],columnTemplate:[],columnColorList:[{name:"\u9ED8\u8BA4",color:""},{name:"\u7070\u8272",color:"#444444"},{name:"\u68D5\u8272",color:"#947364"},{name:"\u6A58\u8272",color:"#faaa6c"},{name:"\u9EC4\u8272",color:"#f2d86d"},{name:"\u7EFF\u8272",color:"#73b45c"},{name:"\u84DD\u8272",color:"#51abea"},{name:"\u7D2B\u8272",color:"#b583e3"},{name:"\u7C89\u8272",color:"#ff819c"},{name:"\u7EA2\u8272",color:"#ff7070"}],taskColorList:[{name:"\u9ED8\u8BA4",color:""},{name:"\u9EC4\u8272",color:"#fffae6"},{name:"\u84DD\u8272",color:"#e5f5ff"},{name:"\u7EFF\u8272",color:"#ecffe5"},{name:"\u7C89\u8272",color:"#ffeaee"},{name:"\u7D2B\u8272",color:"#f6ecff"},{name:"\u7070\u8272",color:"#f3f3f3"}],themeMode:window.localStorage.getItem("__theme:mode__"),themeList:[{name:"\u8DDF\u968F\u7CFB\u7EDF",value:"auto"},{name:"\u660E\u4EAE",value:"light"},{name:"\u6697\u9ED1",value:"dark"}],themeIsDark:!1,clientNewVersion:null,previewImageIndex:0,previewImageList:[],reportUnreadNumber:0,apiKeyData:{},localKeyPair:{},localKeyLock:!1,approveUnreadNumber:0},$j={isLoad(e){return function(t){const r=e.loads.find(i=>i.key===t);return r&&r.num>0}},projectData(e){if(e.projectId>0){let t=e.cacheProjects.find(({id:r})=>r==e.projectId);if(t){let r=e.cacheProjectParameter.find(({project_id:i})=>i==e.projectId);return r||(r=$A.projectParameterTemplate(e.projectId),e.cacheProjectParameter.push(r)),r.menuType===void 0&&(r.menuType="column"),t.cacheParameter=r,t}}return{cacheParameter:{}}},taskData(e){let t=e.taskId;if(t==0&&(t=$A.runNum(window.__taskId)),t>0){window.__taskId=t;const r=e.cacheTasks.find(({id:i})=>i==t);if(r)return r}return{}},transforTasks(e){return function(t){return t.filter(({parent_id:r})=>!(r>0&&t.find(({id:i})=>i==r))).map(r=>{if(r.parent_id>0){const i=e.cacheTasks.find(({id:a})=>a==r.parent_id);return i?Object.assign({},i,{id:r.id,parent_id:r.parent_id,name:r.name,start_at:r.start_at,end_at:r.end_at,complete_at:r.complete_at,_time:r._time,flow_item_id:r.flow_item_id,flow_item_name:r.flow_item_name,flow_item_status:r.flow_item_status,sub_top:!0,sub_my:[]}):Object.assign({},r,{sub_top:!0,sub_my:[]})}else return Object.assign({},r,{sub_top:!1,sub_my:t.filter(({parent_id:i})=>i==r.id)})})}},dashboardTask(e){const t=$A.Date($A.formatDate("Y-m-d 00:00:00")),r=$A.Date($A.formatDate("Y-m-d 23:59:59")),i=$A.Date($A.formatDate("Y-m-d H:i:s")),a=(p,d=!0)=>p.archived_at||p.complete_at&&d===!0?!1:p.owner;let s=e.cacheTasks.filter(p=>a(p)),u=0;if(e.taskCompleteTemps.length>0){let p=e.cacheTasks.filter(d=>e.taskCompleteTemps.includes(d.id)&&a(d,!1));p.length>0&&(u=p.length,s=$A.cloneJSON(s),s.push(...p))}const c=s.filter(p=>{const d=$A.Date(p.end_at);return t<=d&&d<=r}),h=s.filter(p=>p.end_at&&$A.Date(p.end_at)<=i),n={today:c,today_count:c.length,overdue:h,overdue_count:h.length,all:s,all_count:s.length};return u>0&&(n.today_count-=c.filter(p=>e.taskCompleteTemps.includes(p.id)).length,n.overdue_count-=h.filter(p=>e.taskCompleteTemps.includes(p.id)).length,n.all_count-=u),n},assistTask(e){const t=(i,a=!0)=>i.archived_at||i.complete_at&&a===!0?!1:i.assist&&!i.owner;let r=e.cacheTasks.filter(i=>t(i));if(e.taskCompleteTemps.length>0){let i=e.cacheTasks.filter(a=>e.taskCompleteTemps.includes(a.id)&&t(a,!1));i.length>0&&(r=$A.cloneJSON(r),r.push(...i))}return r}};const Ki=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},au=Symbol("doneWritingPromise"),b6=Symbol("doneWritingResolve"),w6=Symbol("doneWritingReject"),Sc=Symbol("readingIndex");class Qa extends Array{constructor(){super(),this[au]=new Promise((t,r)=>{this[b6]=t,this[w6]=r}),this[au].catch(()=>{})}}function mr(e){return e&&e.getReader&&Array.isArray(e)}function $c(e){if(!mr(e)){const t=e.getWriter(),r=t.releaseLock;return t.releaseLock=()=>{t.closed.catch(function(){}),r.call(t)},t}this.stream=e}Qa.prototype.getReader=function(){return this[Sc]===void 0&&(this[Sc]=0),{read:async()=>(await this[au],this[Sc]===this.length?{value:void 0,done:!0}:{value:this[this[Sc]++],done:!1})}},Qa.prototype.readToEnd=async function(e){await this[au];const t=e(this.slice(this[Sc]));return this.length=0,t},Qa.prototype.clone=function(){const e=new Qa;return e[au]=this[au].then(()=>{e.push(...this)}),e},$c.prototype.write=async function(e){this.stream.push(e)},$c.prototype.close=async function(){this.stream[b6]()},$c.prototype.abort=async function(e){return this.stream[w6](e),e},$c.prototype.releaseLock=function(){};const Gv=typeof Ki.process=="object"&&typeof Ki.process.versions=="object",IS=Gv&&void 0;function $i(e){return mr(e)?"array":Ki.ReadableStream&&Ki.ReadableStream.prototype.isPrototypeOf(e)?"web":Ps&&Ps.prototype.isPrototypeOf(e)?"ponyfill":IS&&IS.prototype.isPrototypeOf(e)?"node":!(!e||!e.getReader)&&"web-like"}function Yv(e){return Uint8Array.prototype.isPrototypeOf(e)}function C6(e){if(e.length===1)return e[0];let t=0;for(let a=0;a{r||(Rj.isBuffer(a)&&(a=new Uint8Array(a.buffer,a.byteOffset,a.byteLength)),i.enqueue(a),t.pause())}),t.on("end",()=>{r||i.close()}),t.on("error",a=>i.error(a))},pull(){t.resume()},cancel(i){r=!0,t.destroy(i)}})};class e extends $S{constructor(r,i){super(i),this._reader=ls(r)}async _read(r){try{for(;;){const{done:i,value:a}=await this._reader.read();if(i){this.push(null);break}if(!this.push(a)||this._cancelling){this._reading=!1;break}}}catch(i){this.emit("error",i)}}_destroy(r){this._reader.cancel(r)}}j0=function(t,r){return new e(t,r)}}const RS=new WeakSet,Jn=Symbol("externalBuffer");function Fa(e){if(this.stream=e,e[Jn]&&(this[Jn]=e[Jn].slice()),mr(e)){const i=e.getReader();return this._read=i.read.bind(i),this._releaseLock=()=>{},void(this._cancel=()=>{})}let t=$i(e);if(t==="node"&&(e=Xv(e)),t){const i=e.getReader();return this._read=i.read.bind(i),this._releaseLock=()=>{i.closed.catch(function(){}),i.releaseLock()},void(this._cancel=i.cancel.bind(i))}let r=!1;this._read=async()=>r||RS.has(e)?{value:void 0,done:!0}:(r=!0,{value:e,done:!1}),this._releaseLock=()=>{if(r)try{RS.add(e)}catch{}}}Fa.prototype.read=async function(){return this[Jn]&&this[Jn].length?{done:!1,value:this[Jn].shift()}:this._read()},Fa.prototype.releaseLock=function(){this[Jn]&&(this.stream[Jn]=this[Jn]),this._releaseLock()},Fa.prototype.cancel=function(e){return this._cancel(e)},Fa.prototype.readLine=async function(){let e,t=[];for(;!e;){let{done:r,value:i}=await this.read();if(i+="",r)return t.length?Ti(t):void 0;const a=i.indexOf(` -`)+1;a&&(e=Ti(t.concat(i.substr(0,a))),t=[]),a!==i.length&&t.push(i.substr(a))}return this.unshift(...t),e},Fa.prototype.readByte=async function(){const{done:e,value:t}=await this.read();if(e)return;const r=t[0];return this.unshift(Wr(t,1)),r},Fa.prototype.readBytes=async function(e){const t=[];let r=0;for(;;){const{done:i,value:a}=await this.read();if(i)return t.length?Ti(t):void 0;if(t.push(a),r+=a.length,r>=e){const s=Ti(t);return this.unshift(Wr(s,e)),Wr(s,0,e)}}},Fa.prototype.peekBytes=async function(e){const t=await this.readBytes(e);return this.unshift(t),t},Fa.prototype.unshift=function(...e){this[Jn]||(this[Jn]=[]),e.length===1&&Yv(e[0])&&this[Jn].length&&e[0].length&&this[Jn][0].byteOffset>=e[0].length?this[Jn][0]=new Uint8Array(this[Jn][0].buffer,this[Jn][0].byteOffset-e[0].length,this[Jn][0].byteLength+e[0].length):this[Jn].unshift(...e.filter(t=>t&&t.length))},Fa.prototype.readToEnd=async function(e=Ti){const t=[];for(;;){const{done:r,value:i}=await this.read();if(r)break;t.push(i)}return e(t)};let ny,x6,{ReadableStream:Ps,WritableStream:S6,TransformStream:bu}=Ki;async function k6(){if(bu)return;const[e,t]=await Promise.all([Cn(()=>import("./ponyfill.es6.min.cf6531cc.js"),[]),Cn(()=>import("./web-streams-adapter.min.da4ec8d3.js"),[])]);({ReadableStream:Ps,WritableStream:S6,TransformStream:bu}=e);const{createReadableStreamWrapper:r}=t;Ki.ReadableStream&&Ps!==Ki.ReadableStream&&(ny=r(Ps),x6=r(Ki.ReadableStream))}const Xc=Gv&&void 0;function Dd(e){let t=$i(e);return t==="node"?Xv(e):t==="web"&&ny?ny(e):t?e:new Ps({start(r){r.enqueue(e),r.close()}})}function E6(e){if($i(e))return e;const t=new Qa;return(async()=>{const r=Ri(t);await r.write(e),await r.close()})(),t}function Ti(e){return e.some(t=>$i(t)&&!mr(t))?function(t){t=t.map(Dd);const r=O6(async function(s){await Promise.all(a.map(u=>ry(u,s)))});let i=Promise.resolve();const a=t.map((s,u)=>As(s,(c,h)=>(i=i.then(()=>vo(c,r.writable,{preventClose:u!==t.length-1})),i)));return r.readable}(e):e.some(t=>mr(t))?function(t){const r=new Qa;let i=Promise.resolve();return t.forEach((a,s)=>(i=i.then(()=>vo(a,r,{preventClose:s!==t.length-1})),i)),r}(e):typeof e[0]=="string"?e.join(""):Xc&&Xc.isBuffer(e[0])?Xc.concat(e):C6(e)}function ls(e){return new Fa(e)}function Ri(e){return new $c(e)}async function vo(e,t,{preventClose:r=!1,preventAbort:i=!1,preventCancel:a=!1}={}){if($i(e)&&!mr(e)){e=Dd(e);try{if(e[Jn]){const c=Ri(t);for(let h=0;h{t=s}),t=null)},close:r.close.bind(r),abort:r.error.bind(r)})}}function fr(e,t=()=>{},r=()=>{}){if(mr(e)){const s=new Qa;return(async()=>{const u=Ri(s);try{const c=await gr(e),h=t(c),n=r();let p;p=h!==void 0&&n!==void 0?Ti([h,n]):h!==void 0?h:n,await u.write(p),await u.close()}catch(c){await u.abort(c)}})(),s}if($i(e))return D6(e,{async transform(s,u){try{const c=await t(s);c!==void 0&&u.enqueue(c)}catch(c){u.error(c)}},async flush(s){try{const u=await r();u!==void 0&&s.enqueue(u)}catch(u){s.error(u)}}});const i=t(e),a=r();return i!==void 0&&a!==void 0?Ti([i,a]):i!==void 0?i:a}function As(e,t){if($i(e)&&!mr(e)){let i;const a=new bu({start(c){i=c}}),s=vo(e,a.writable),u=O6(async function(c){i.error(c),await s,await new Promise(setTimeout)});return t(a.readable,u.writable),u.readable}e=E6(e);const r=new Qa;return t(e,r),r}function Jv(e,t){let r;const i=As(e,(a,s)=>{const u=ls(a);u.remainder=()=>(u.releaseLock(),vo(a,s),i),r=t(u)});return r}function hl(e){if(mr(e))return e.clone();if($i(e)){const t=function(r){if(mr(r))throw Error("ArrayStream cannot be tee()d, use clone() instead");if($i(r)){const i=Dd(r).tee();return i[0][Jn]=i[1][Jn]=r[Jn],i}return[Wr(r),Wr(r)]}(e);return P6(e,t[0]),t[1]}return Wr(e)}function cu(e){return mr(e)?hl(e):$i(e)?new Ps({start(t){const r=As(e,async(i,a)=>{const s=ls(i),u=Ri(a);try{for(;;){await u.ready;const{done:c,value:h}=await s.read();if(c){try{t.close()}catch{}return void await u.close()}try{t.enqueue(h)}catch{}await u.write(h)}}catch(c){t.error(c),await u.abort(c)}});P6(e,r)}}):Wr(e)}function P6(e,t){Object.entries(Object.getOwnPropertyDescriptors(e.constructor.prototype)).forEach(([r,i])=>{r!=="constructor"&&(i.value?i.value=i.value.bind(t):i.get=i.get.bind(t),Object.defineProperty(e,r,i))})}function Wr(e,t=0,r=1/0){if(mr(e))throw Error("Not implemented");if($i(e)){if(t>=0&&r>=0){let i=0;return D6(e,{transform(a,s){i=t&&s.enqueue(Wr(a,Math.max(t-i,0),r-i)),i+=a.length):s.terminate()}})}if(t<0&&(r<0||r===1/0)){let i=[];return fr(e,a=>{a.length>=-t?i=[a]:i.push(a)},()=>Wr(Ti(i),t,r))}if(t===0&&r<0){let i;return fr(e,a=>{const s=i?Ti([i,a]):a;if(s.length>=-r)return i=Wr(s,r),Wr(s,t,r);i=s})}return console.warn(`stream.slice(input, ${t}, ${r}) not implemented efficiently.`),wo(async()=>Wr(await gr(e),t,r))}return e[Jn]&&(e=Ti(e[Jn].concat([e]))),!Yv(e)||Xc&&Xc.isBuffer(e)?e.slice(t,r):(r===1/0&&(r=e.length),e.subarray(t,r))}async function gr(e,t=Ti){return mr(e)?e.readToEnd(t):$i(e)?ls(e).readToEnd(t):e}async function ry(e,t){if($i(e)){if(e.cancel)return e.cancel(t);if(e.destroy)return e.destroy(t),await new Promise(setTimeout),t}}function wo(e){const t=new Qa;return(async()=>{const r=Ri(t);try{await r.write(await e()),await r.close()}catch(i){await r.abort(i)}})(),t}const T6="3.7.5",Lj=T6,Nj=typeof atob=="function",Bj=typeof btoa=="function",Iu=typeof Buffer=="function",LS=typeof TextDecoder=="function"?new TextDecoder:void 0,NS=typeof TextEncoder=="function"?new TextEncoder:void 0,Rc=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Uh=(e=>{let t={};return Rc.forEach((r,i)=>t[r]=i),t})(),Fj=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Ur=String.fromCharCode.bind(String),BS=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),A6=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),M6=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),I6=e=>{let t,r,i,a,s="";const u=e.length%3;for(let c=0;c255||(i=e.charCodeAt(c++))>255||(a=e.charCodeAt(c++))>255)throw new TypeError("invalid character found");t=r<<16|i<<8|a,s+=Rc[t>>18&63]+Rc[t>>12&63]+Rc[t>>6&63]+Rc[63&t]}return u?s.slice(0,u-3)+"===".substring(u):s},U0=Bj?e=>btoa(e):Iu?e=>Buffer.from(e,"binary").toString("base64"):I6,iy=Iu?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,i=e.length;rt?A6(iy(e)):iy(e),zj=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?Ur(192|t>>>6)+Ur(128|63&t):Ur(224|t>>>12&15)+Ur(128|t>>>6&63)+Ur(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return Ur(240|t>>>18&7)+Ur(128|t>>>12&63)+Ur(128|t>>>6&63)+Ur(128|63&t)},jj=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,$6=e=>e.replace(jj,zj),FS=Iu?e=>Buffer.from(e,"utf8").toString("base64"):NS?e=>iy(NS.encode(e)):e=>U0($6(e)),du=(e,t=!1)=>t?A6(FS(e)):FS(e),zS=e=>du(e,!0),Uj=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Vj=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return Ur(55296+(t>>>10))+Ur(56320+(1023&t));case 3:return Ur((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Ur((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},R6=e=>e.replace(Uj,Vj),L6=e=>{if(e=e.replace(/\s+/g,""),!Fj.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r,i,a="";for(let s=0;s>16&255):i===64?Ur(t>>16&255,t>>8&255):Ur(t>>16&255,t>>8&255,255&t);return a},V0=Nj?e=>atob(M6(e)):Iu?e=>Buffer.from(e,"base64").toString("binary"):L6,N6=Iu?e=>BS(Buffer.from(e,"base64")):e=>BS(V0(e).split("").map(t=>t.charCodeAt(0))),B6=e=>N6(F6(e)),Wj=Iu?e=>Buffer.from(e,"base64").toString("utf8"):LS?e=>LS.decode(N6(e)):e=>R6(V0(e)),F6=e=>M6(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),ay=e=>Wj(F6(e)),z6=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),jS=function(){const e=(t,r)=>Object.defineProperty(String.prototype,t,z6(r));e("fromBase64",function(){return ay(this)}),e("toBase64",function(t){return du(this,t)}),e("toBase64URI",function(){return du(this,!0)}),e("toBase64URL",function(){return du(this,!0)}),e("toUint8Array",function(){return B6(this)})},US=function(){const e=(t,r)=>Object.defineProperty(Uint8Array.prototype,t,z6(r));e("toBase64",function(t){return Sp(this,t)}),e("toBase64URI",function(){return Sp(this,!0)}),e("toBase64URL",function(){return Sp(this,!0)})},VS={version:T6,VERSION:Lj,atob:V0,atobPolyfill:L6,btoa:U0,btoaPolyfill:I6,fromBase64:ay,toBase64:du,encode:du,encodeURI:zS,encodeURL:zS,utob:$6,btou:R6,decode:ay,isValid:e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:Sp,toUint8Array:B6,extendString:jS,extendUint8Array:US,extendBuiltins:()=>{jS(),US()}};class hi{constructor(t){if(t===void 0)throw Error("Invalid BigInteger input");if(t instanceof Uint8Array){const r=t,i=Array(r.length);for(let a=0;aBigInt(0);){const u=i&BigInt(1);i>>=BigInt(1);const c=s*a%r.value;s=u?c:s,a=a*a%r.value}return new hi(s)}modInv(t){const{gcd:r,x:i}=this._egcd(t);if(!r.isOne())throw Error("Inverse does not exist");return i.add(t).mod(t)}_egcd(t){let r=BigInt(0),i=BigInt(1),a=BigInt(1),s=BigInt(0),u=this.value;for(t=t.value;t!==BigInt(0);){const c=u/t;let h=r;r=a-c*r,a=h,h=i,i=s-c*i,s=h,h=t,t=u%t,u=h}return{x:new hi(a),y:new hi(s),gcd:new hi(u)}}gcd(t){let r=this.value;for(t=t.value;t!==BigInt(0);){const i=t;t=r%t,r=i}return new hi(r)}ileftShift(t){return this.value<<=t.value,this}leftShift(t){return this.clone().ileftShift(t)}irightShift(t){return this.value>>=t.value,this}rightShift(t){return this.clone().irightShift(t)}equal(t){return this.value===t.value}lt(t){return this.valuet.value}gte(t){return this.value>=t.value}isZero(){return this.value===BigInt(0)}isOne(){return this.value===BigInt(1)}isNegative(){return this.valueNumber.MAX_SAFE_INTEGER)throw Error("Number can only safely store up to 53 bits");return t}getBit(t){return(this.value>>BigInt(t)&BigInt(1))===BigInt(0)?0:1}bitLength(){const t=new hi(0),r=new hi(1),i=new hi(-1),a=this.isNegative()?i:t;let s=1;const u=this.clone();for(;!u.irightShift(r).equal(a);)s++;return s}byteLength(){const t=new hi(0),r=new hi(-1),i=this.isNegative()?r:t,a=new hi(8);let s=1;const u=this.clone();for(;!u.irightShift(a).equal(i);)s++;return s}toUint8Array(t="be",r){let i=this.value.toString(16);i.length%2==1&&(i="0"+i);const a=i.length/2,s=new Uint8Array(r||a),u=r?r-a:0;let c=0;for(;ctypeof BigInt!="undefined",WS=(()=>{try{return!1}catch{}return!1})(),Pe={isString:function(e){return typeof e=="string"||e instanceof String},isArray:function(e){return e instanceof Array},isUint8Array:Yv,isStream:$i,readNumber:function(e){let t=0;for(let r=0;r>8*(t-i-1)&255;return r},readDate:function(e){const t=Pe.readNumber(e);return new Date(1e3*t)},writeDate:function(e){const t=Math.floor(e.getTime()/1e3);return Pe.writeNumber(t,4)},normalizeDate:function(e=Date.now()){return e===null||e===1/0?e:new Date(1e3*Math.floor(+e/1e3))},readMPI:function(e){const t=(e[0]<<8|e[1])+7>>>3;return e.subarray(2,2+t)},leftPad(e,t){const r=new Uint8Array(t),i=t-e.length;return r.set(e,i),r},uint8ArrayToMPI:function(e){const t=Pe.uint8ArrayBitLength(e);if(t===0)throw Error("Zero MPI");const r=e.subarray(e.length-Math.ceil(t/8)),i=new Uint8Array([(65280&t)>>8,255&t]);return Pe.concatUint8Array([i,r])},uint8ArrayBitLength:function(e){let t;for(t=0;t>1);for(let r=0;r>1;r++)t[r]=parseInt(e.substr(r<<1,2),16);return t},uint8ArrayToHex:function(e){const t=[],r=e.length;let i,a=0;for(;a{if(!Pe.isString(t))throw Error("stringToUint8Array: Data must be in the form of a string");const r=new Uint8Array(t.length);for(let i=0;ir("",!0))},decodeUTF8:function(e){const t=new TextDecoder("utf-8");function r(i,a=!1){return t.decode(i,{stream:!a})}return fr(e,r,()=>r(new Uint8Array,!0))},concat:Ti,concatUint8Array:C6,equalsUint8Array:function(e,t){if(!Pe.isUint8Array(e)||!Pe.isUint8Array(t))throw Error("Data must be in the form of a Uint8Array");if(e.length!==t.length)return!1;for(let r=0;r>>16;return r!==0&&(e=r,t+=16),r=e>>8,r!==0&&(e=r,t+=8),r=e>>4,r!==0&&(e=r,t+=4),r=e>>2,r!==0&&(e=r,t+=2),r=e>>1,r!==0&&(e=r,t+=1),t},double:function(e){const t=new Uint8Array(e.length),r=e.length-1;for(let i=0;i>7;return t[r]=e[r]<<1^135*(e[0]>>7),t},shiftRight:function(e,t){if(t)for(let r=e.length-1;r>=0;r--)e[r]>>=t,r>0&&(e[r]|=e[r-1]<<8-t);return e},getWebCrypto:function(){return Ki!==void 0&&Ki.crypto&&Ki.crypto.subtle},getBigInteger:async function(){if(Kj())return hi;{const{default:e}=await Cn(()=>import("./bn.interface.min.015f7861.js"),["js/build/bn.interface.min.015f7861.js","js/build/bn.min.a20d8e66.js"]);return e}},getNodeCrypto:function(){},getNodeZlib:function(){},getNodeBuffer:function(){return{}.Buffer},getHardwareConcurrency:function(){return typeof navigator!="undefined"?navigator.hardwareConcurrency||1:(void 0).cpus().length},isEmailAddress:function(e){return Pe.isString(e)?/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+([a-zA-Z]{2,}|xn--[a-zA-Z\-0-9]+)))$/.test(e):!1},canonicalizeEOL:function(e){let t=!1;return fr(e,r=>{let i;t&&(r=Pe.concatUint8Array([new Uint8Array([13]),r])),r[r.length-1]===13?(t=!0,r=r.subarray(0,-1)):t=!1;const a=[];for(let c=0;i=r.indexOf(10,c)+1,i;c=i)r[i-2]!==13&&a.push(i);if(!a.length)return r;const s=new Uint8Array(r.length+a.length);let u=0;for(let c=0;ct?new Uint8Array([13]):void 0)},nativeEOL:function(e){let t=!1;return fr(e,r=>{let i;(r=t&&r[0]!==10?Pe.concatUint8Array([new Uint8Array([13]),r]):new Uint8Array(r))[r.length-1]===13?(t=!0,r=r.subarray(0,-1)):t=!1;let a=0;for(let s=0;s!==r.length;s=i){i=r.indexOf(13,s)+1,i||(i=r.length);const u=i-(r[i]===10?1:0);s&&r.copyWithin(a,s,u),a+=u-s}return r.subarray(0,a)},()=>t?new Uint8Array([13]):void 0)},removeTrailingSpaces:function(e){return e.split(` +`)+1;a&&(e=Ti(t.concat(i.substr(0,a))),t=[]),a!==i.length&&t.push(i.substr(a))}return this.unshift(...t),e},Fa.prototype.readByte=async function(){const{done:e,value:t}=await this.read();if(e)return;const r=t[0];return this.unshift(Wr(t,1)),r},Fa.prototype.readBytes=async function(e){const t=[];let r=0;for(;;){const{done:i,value:a}=await this.read();if(i)return t.length?Ti(t):void 0;if(t.push(a),r+=a.length,r>=e){const s=Ti(t);return this.unshift(Wr(s,e)),Wr(s,0,e)}}},Fa.prototype.peekBytes=async function(e){const t=await this.readBytes(e);return this.unshift(t),t},Fa.prototype.unshift=function(...e){this[Jn]||(this[Jn]=[]),e.length===1&&Yv(e[0])&&this[Jn].length&&e[0].length&&this[Jn][0].byteOffset>=e[0].length?this[Jn][0]=new Uint8Array(this[Jn][0].buffer,this[Jn][0].byteOffset-e[0].length,this[Jn][0].byteLength+e[0].length):this[Jn].unshift(...e.filter(t=>t&&t.length))},Fa.prototype.readToEnd=async function(e=Ti){const t=[];for(;;){const{done:r,value:i}=await this.read();if(r)break;t.push(i)}return e(t)};let ny,x6,{ReadableStream:Ps,WritableStream:S6,TransformStream:bu}=Ki;async function k6(){if(bu)return;const[e,t]=await Promise.all([Cn(()=>import("./ponyfill.es6.min.cf6531cc.js"),[]),Cn(()=>import("./web-streams-adapter.min.da4ec8d3.js"),[])]);({ReadableStream:Ps,WritableStream:S6,TransformStream:bu}=e);const{createReadableStreamWrapper:r}=t;Ki.ReadableStream&&Ps!==Ki.ReadableStream&&(ny=r(Ps),x6=r(Ki.ReadableStream))}const Xc=Gv&&void 0;function Dd(e){let t=$i(e);return t==="node"?Xv(e):t==="web"&&ny?ny(e):t?e:new Ps({start(r){r.enqueue(e),r.close()}})}function E6(e){if($i(e))return e;const t=new Qa;return(async()=>{const r=Ri(t);await r.write(e),await r.close()})(),t}function Ti(e){return e.some(t=>$i(t)&&!mr(t))?function(t){t=t.map(Dd);const r=O6(async function(s){await Promise.all(a.map(u=>ry(u,s)))});let i=Promise.resolve();const a=t.map((s,u)=>As(s,(c,h)=>(i=i.then(()=>vo(c,r.writable,{preventClose:u!==t.length-1})),i)));return r.readable}(e):e.some(t=>mr(t))?function(t){const r=new Qa;let i=Promise.resolve();return t.forEach((a,s)=>(i=i.then(()=>vo(a,r,{preventClose:s!==t.length-1})),i)),r}(e):typeof e[0]=="string"?e.join(""):Xc&&Xc.isBuffer(e[0])?Xc.concat(e):C6(e)}function ls(e){return new Fa(e)}function Ri(e){return new $c(e)}async function vo(e,t,{preventClose:r=!1,preventAbort:i=!1,preventCancel:a=!1}={}){if($i(e)&&!mr(e)){e=Dd(e);try{if(e[Jn]){const c=Ri(t);for(let h=0;h{t=s}),t=null)},close:r.close.bind(r),abort:r.error.bind(r)})}}function fr(e,t=()=>{},r=()=>{}){if(mr(e)){const s=new Qa;return(async()=>{const u=Ri(s);try{const c=await gr(e),h=t(c),n=r();let p;p=h!==void 0&&n!==void 0?Ti([h,n]):h!==void 0?h:n,await u.write(p),await u.close()}catch(c){await u.abort(c)}})(),s}if($i(e))return D6(e,{async transform(s,u){try{const c=await t(s);c!==void 0&&u.enqueue(c)}catch(c){u.error(c)}},async flush(s){try{const u=await r();u!==void 0&&s.enqueue(u)}catch(u){s.error(u)}}});const i=t(e),a=r();return i!==void 0&&a!==void 0?Ti([i,a]):i!==void 0?i:a}function As(e,t){if($i(e)&&!mr(e)){let i;const a=new bu({start(c){i=c}}),s=vo(e,a.writable),u=O6(async function(c){i.error(c),await s,await new Promise(setTimeout)});return t(a.readable,u.writable),u.readable}e=E6(e);const r=new Qa;return t(e,r),r}function Jv(e,t){let r;const i=As(e,(a,s)=>{const u=ls(a);u.remainder=()=>(u.releaseLock(),vo(a,s),i),r=t(u)});return r}function hl(e){if(mr(e))return e.clone();if($i(e)){const t=function(r){if(mr(r))throw Error("ArrayStream cannot be tee()d, use clone() instead");if($i(r)){const i=Dd(r).tee();return i[0][Jn]=i[1][Jn]=r[Jn],i}return[Wr(r),Wr(r)]}(e);return P6(e,t[0]),t[1]}return Wr(e)}function cu(e){return mr(e)?hl(e):$i(e)?new Ps({start(t){const r=As(e,async(i,a)=>{const s=ls(i),u=Ri(a);try{for(;;){await u.ready;const{done:c,value:h}=await s.read();if(c){try{t.close()}catch{}return void await u.close()}try{t.enqueue(h)}catch{}await u.write(h)}}catch(c){t.error(c),await u.abort(c)}});P6(e,r)}}):Wr(e)}function P6(e,t){Object.entries(Object.getOwnPropertyDescriptors(e.constructor.prototype)).forEach(([r,i])=>{r!=="constructor"&&(i.value?i.value=i.value.bind(t):i.get=i.get.bind(t),Object.defineProperty(e,r,i))})}function Wr(e,t=0,r=1/0){if(mr(e))throw Error("Not implemented");if($i(e)){if(t>=0&&r>=0){let i=0;return D6(e,{transform(a,s){i=t&&s.enqueue(Wr(a,Math.max(t-i,0),r-i)),i+=a.length):s.terminate()}})}if(t<0&&(r<0||r===1/0)){let i=[];return fr(e,a=>{a.length>=-t?i=[a]:i.push(a)},()=>Wr(Ti(i),t,r))}if(t===0&&r<0){let i;return fr(e,a=>{const s=i?Ti([i,a]):a;if(s.length>=-r)return i=Wr(s,r),Wr(s,t,r);i=s})}return console.warn(`stream.slice(input, ${t}, ${r}) not implemented efficiently.`),wo(async()=>Wr(await gr(e),t,r))}return e[Jn]&&(e=Ti(e[Jn].concat([e]))),!Yv(e)||Xc&&Xc.isBuffer(e)?e.slice(t,r):(r===1/0&&(r=e.length),e.subarray(t,r))}async function gr(e,t=Ti){return mr(e)?e.readToEnd(t):$i(e)?ls(e).readToEnd(t):e}async function ry(e,t){if($i(e)){if(e.cancel)return e.cancel(t);if(e.destroy)return e.destroy(t),await new Promise(setTimeout),t}}function wo(e){const t=new Qa;return(async()=>{const r=Ri(t);try{await r.write(await e()),await r.close()}catch(i){await r.abort(i)}})(),t}const T6="3.7.5",Lj=T6,Nj=typeof atob=="function",Bj=typeof btoa=="function",Iu=typeof Buffer=="function",LS=typeof TextDecoder=="function"?new TextDecoder:void 0,NS=typeof TextEncoder=="function"?new TextEncoder:void 0,Rc=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Uh=(e=>{let t={};return Rc.forEach((r,i)=>t[r]=i),t})(),Fj=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Ur=String.fromCharCode.bind(String),BS=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),A6=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),M6=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),I6=e=>{let t,r,i,a,s="";const u=e.length%3;for(let c=0;c255||(i=e.charCodeAt(c++))>255||(a=e.charCodeAt(c++))>255)throw new TypeError("invalid character found");t=r<<16|i<<8|a,s+=Rc[t>>18&63]+Rc[t>>12&63]+Rc[t>>6&63]+Rc[63&t]}return u?s.slice(0,u-3)+"===".substring(u):s},U0=Bj?e=>btoa(e):Iu?e=>Buffer.from(e,"binary").toString("base64"):I6,iy=Iu?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,i=e.length;rt?A6(iy(e)):iy(e),zj=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?Ur(192|t>>>6)+Ur(128|63&t):Ur(224|t>>>12&15)+Ur(128|t>>>6&63)+Ur(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return Ur(240|t>>>18&7)+Ur(128|t>>>12&63)+Ur(128|t>>>6&63)+Ur(128|63&t)},jj=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,$6=e=>e.replace(jj,zj),FS=Iu?e=>Buffer.from(e,"utf8").toString("base64"):NS?e=>iy(NS.encode(e)):e=>U0($6(e)),du=(e,t=!1)=>t?A6(FS(e)):FS(e),zS=e=>du(e,!0),Uj=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Vj=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return Ur(55296+(t>>>10))+Ur(56320+(1023&t));case 3:return Ur((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Ur((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},R6=e=>e.replace(Uj,Vj),L6=e=>{if(e=e.replace(/\s+/g,""),!Fj.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r,i,a="";for(let s=0;s>16&255):i===64?Ur(t>>16&255,t>>8&255):Ur(t>>16&255,t>>8&255,255&t);return a},V0=Nj?e=>atob(M6(e)):Iu?e=>Buffer.from(e,"base64").toString("binary"):L6,N6=Iu?e=>BS(Buffer.from(e,"base64")):e=>BS(V0(e).split("").map(t=>t.charCodeAt(0))),B6=e=>N6(F6(e)),Wj=Iu?e=>Buffer.from(e,"base64").toString("utf8"):LS?e=>LS.decode(N6(e)):e=>R6(V0(e)),F6=e=>M6(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),ay=e=>Wj(F6(e)),z6=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),jS=function(){const e=(t,r)=>Object.defineProperty(String.prototype,t,z6(r));e("fromBase64",function(){return ay(this)}),e("toBase64",function(t){return du(this,t)}),e("toBase64URI",function(){return du(this,!0)}),e("toBase64URL",function(){return du(this,!0)}),e("toUint8Array",function(){return B6(this)})},US=function(){const e=(t,r)=>Object.defineProperty(Uint8Array.prototype,t,z6(r));e("toBase64",function(t){return Sp(this,t)}),e("toBase64URI",function(){return Sp(this,!0)}),e("toBase64URL",function(){return Sp(this,!0)})},VS={version:T6,VERSION:Lj,atob:V0,atobPolyfill:L6,btoa:U0,btoaPolyfill:I6,fromBase64:ay,toBase64:du,encode:du,encodeURI:zS,encodeURL:zS,utob:$6,btou:R6,decode:ay,isValid:e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:Sp,toUint8Array:B6,extendString:jS,extendUint8Array:US,extendBuiltins:()=>{jS(),US()}};class hi{constructor(t){if(t===void 0)throw Error("Invalid BigInteger input");if(t instanceof Uint8Array){const r=t,i=Array(r.length);for(let a=0;aBigInt(0);){const u=i&BigInt(1);i>>=BigInt(1);const c=s*a%r.value;s=u?c:s,a=a*a%r.value}return new hi(s)}modInv(t){const{gcd:r,x:i}=this._egcd(t);if(!r.isOne())throw Error("Inverse does not exist");return i.add(t).mod(t)}_egcd(t){let r=BigInt(0),i=BigInt(1),a=BigInt(1),s=BigInt(0),u=this.value;for(t=t.value;t!==BigInt(0);){const c=u/t;let h=r;r=a-c*r,a=h,h=i,i=s-c*i,s=h,h=t,t=u%t,u=h}return{x:new hi(a),y:new hi(s),gcd:new hi(u)}}gcd(t){let r=this.value;for(t=t.value;t!==BigInt(0);){const i=t;t=r%t,r=i}return new hi(r)}ileftShift(t){return this.value<<=t.value,this}leftShift(t){return this.clone().ileftShift(t)}irightShift(t){return this.value>>=t.value,this}rightShift(t){return this.clone().irightShift(t)}equal(t){return this.value===t.value}lt(t){return this.valuet.value}gte(t){return this.value>=t.value}isZero(){return this.value===BigInt(0)}isOne(){return this.value===BigInt(1)}isNegative(){return this.valueNumber.MAX_SAFE_INTEGER)throw Error("Number can only safely store up to 53 bits");return t}getBit(t){return(this.value>>BigInt(t)&BigInt(1))===BigInt(0)?0:1}bitLength(){const t=new hi(0),r=new hi(1),i=new hi(-1),a=this.isNegative()?i:t;let s=1;const u=this.clone();for(;!u.irightShift(r).equal(a);)s++;return s}byteLength(){const t=new hi(0),r=new hi(-1),i=this.isNegative()?r:t,a=new hi(8);let s=1;const u=this.clone();for(;!u.irightShift(a).equal(i);)s++;return s}toUint8Array(t="be",r){let i=this.value.toString(16);i.length%2==1&&(i="0"+i);const a=i.length/2,s=new Uint8Array(r||a),u=r?r-a:0;let c=0;for(;ctypeof BigInt!="undefined",WS=(()=>{try{return!1}catch{}return!1})(),Pe={isString:function(e){return typeof e=="string"||e instanceof String},isArray:function(e){return e instanceof Array},isUint8Array:Yv,isStream:$i,readNumber:function(e){let t=0;for(let r=0;r>8*(t-i-1)&255;return r},readDate:function(e){const t=Pe.readNumber(e);return new Date(1e3*t)},writeDate:function(e){const t=Math.floor(e.getTime()/1e3);return Pe.writeNumber(t,4)},normalizeDate:function(e=Date.now()){return e===null||e===1/0?e:new Date(1e3*Math.floor(+e/1e3))},readMPI:function(e){const t=(e[0]<<8|e[1])+7>>>3;return e.subarray(2,2+t)},leftPad(e,t){const r=new Uint8Array(t),i=t-e.length;return r.set(e,i),r},uint8ArrayToMPI:function(e){const t=Pe.uint8ArrayBitLength(e);if(t===0)throw Error("Zero MPI");const r=e.subarray(e.length-Math.ceil(t/8)),i=new Uint8Array([(65280&t)>>8,255&t]);return Pe.concatUint8Array([i,r])},uint8ArrayBitLength:function(e){let t;for(t=0;t>1);for(let r=0;r>1;r++)t[r]=parseInt(e.substr(r<<1,2),16);return t},uint8ArrayToHex:function(e){const t=[],r=e.length;let i,a=0;for(;a{if(!Pe.isString(t))throw Error("stringToUint8Array: Data must be in the form of a string");const r=new Uint8Array(t.length);for(let i=0;ir("",!0))},decodeUTF8:function(e){const t=new TextDecoder("utf-8");function r(i,a=!1){return t.decode(i,{stream:!a})}return fr(e,r,()=>r(new Uint8Array,!0))},concat:Ti,concatUint8Array:C6,equalsUint8Array:function(e,t){if(!Pe.isUint8Array(e)||!Pe.isUint8Array(t))throw Error("Data must be in the form of a Uint8Array");if(e.length!==t.length)return!1;for(let r=0;r>>16;return r!==0&&(e=r,t+=16),r=e>>8,r!==0&&(e=r,t+=8),r=e>>4,r!==0&&(e=r,t+=4),r=e>>2,r!==0&&(e=r,t+=2),r=e>>1,r!==0&&(e=r,t+=1),t},double:function(e){const t=new Uint8Array(e.length),r=e.length-1;for(let i=0;i>7;return t[r]=e[r]<<1^135*(e[0]>>7),t},shiftRight:function(e,t){if(t)for(let r=e.length-1;r>=0;r--)e[r]>>=t,r>0&&(e[r]|=e[r-1]<<8-t);return e},getWebCrypto:function(){return Ki!==void 0&&Ki.crypto&&Ki.crypto.subtle},getBigInteger:async function(){if(Kj())return hi;{const{default:e}=await Cn(()=>import("./bn.interface.min.d86da2ed.js"),["js/build/bn.interface.min.d86da2ed.js","js/build/bn.min.f47e2400.js"]);return e}},getNodeCrypto:function(){},getNodeZlib:function(){},getNodeBuffer:function(){return{}.Buffer},getHardwareConcurrency:function(){return typeof navigator!="undefined"?navigator.hardwareConcurrency||1:(void 0).cpus().length},isEmailAddress:function(e){return Pe.isString(e)?/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+([a-zA-Z]{2,}|xn--[a-zA-Z\-0-9]+)))$/.test(e):!1},canonicalizeEOL:function(e){let t=!1;return fr(e,r=>{let i;t&&(r=Pe.concatUint8Array([new Uint8Array([13]),r])),r[r.length-1]===13?(t=!0,r=r.subarray(0,-1)):t=!1;const a=[];for(let c=0;i=r.indexOf(10,c)+1,i;c=i)r[i-2]!==13&&a.push(i);if(!a.length)return r;const s=new Uint8Array(r.length+a.length);let u=0;for(let c=0;ct?new Uint8Array([13]):void 0)},nativeEOL:function(e){let t=!1;return fr(e,r=>{let i;(r=t&&r[0]!==10?Pe.concatUint8Array([new Uint8Array([13]),r]):new Uint8Array(r))[r.length-1]===13?(t=!0,r=r.subarray(0,-1)):t=!1;let a=0;for(let s=0;s!==r.length;s=i){i=r.indexOf(13,s)+1,i||(i=r.length);const u=i-(r[i]===10?1:0);s&&r.copyWithin(a,s,u),a+=u-s}return r.subarray(0,a)},()=>t?new Uint8Array([13]):void 0)},removeTrailingSpaces:function(e){return e.split(` `).map(t=>{let r=t.length-1;for(;r>=0&&(t[r]===" "||t[r]===" "||t[r]==="\r");r--);return t.substr(0,r+1)}).join(` `)},wrapError:function(e,t){if(!t)return Error(e);try{t.message=e+": "+t.message}catch{}return t},constructAllowedPackets:function(e){const t={};return e.forEach(r=>{if(!r.tag)throw Error("Invalid input: expected a packet class");t[r.tag]=r}),t},anyPromise:function(e){return new Promise(async(t,r)=>{let i;await Promise.all(e.map(async a=>{try{t(await a)}catch(s){i=s}})),r(i)})},selectUint8Array:function(e,t,r){const i=Math.max(t.length,r.length),a=new Uint8Array(i);let s=0;for(let u=0;u{t=Pe.concatUint8Array([t,r]);const i=[],a=Math.floor(t.length/45),s=45*a,u=rv(t.subarray(0,s));for(let c=0;ct.length?rv(t)+` @@ -257,7 +257,7 @@ Please report this to https://github.com/markedjs/marked.`,(t||Gn.defaults).sile `),n.push(No(a,s)),n.push(gs(t)),n.push("=",Gs(h)),n.push(`-----END PGP PRIVATE KEY BLOCK----- `);break;case he.armor.signature:n.push(`-----BEGIN PGP SIGNATURE----- `),n.push(No(a,s)),n.push(gs(t)),n.push("=",Gs(h)),n.push(`-----END PGP SIGNATURE----- -`)}return Pe.concat(n)}class mo{constructor(){this.bytes=""}read(t){this.bytes=Pe.uint8ArrayToString(t.subarray(0,8))}write(){return Pe.stringToUint8Array(this.bytes)}toHex(){return Pe.uint8ArrayToHex(Pe.stringToUint8Array(this.bytes))}equals(t,r=!1){return r&&(t.isWildcard()||this.isWildcard())||this.bytes===t.bytes}isNull(){return this.bytes===""}isWildcard(){return/^0+$/.test(this.toHex())}static mapToHex(t){return t.toHex()}static fromID(t){const r=new mo;return r.read(Pe.hexToUint8Array(t)),r}static wildcard(){const t=new mo;return t.read(new Uint8Array(8)),t}}var En=function(){var e,t,r=!1;function i(d,v){var m=e[(t[d]+t[v])%255];return d!==0&&v!==0||(m=0),m}var a,s,u,c,h=!1;function n(){function d(y){var b,k,O;for(k=O=function(S){var x=e[255-t[S]];return S===0&&(x=0),x}(y),b=0;b<4;b++)O^=k=255&(k<<1|k>>>7);return O^=99}r||function(){e=[],t=[];var y,b,k=1;for(y=0;y<255;y++)e[y]=k,b=128&k,k<<=1,k&=255,b===128&&(k^=27),k^=e[y],t[e[y]]=y;e[255]=e[0],t[0]=0,r=!0}(),a=[],s=[],u=[[],[],[],[]],c=[[],[],[],[]];for(var v=0;v<256;v++){var m=d(v);a[v]=m,s[m]=v,u[0][v]=i(2,m)<<24|m<<16|m<<8|i(3,m),c[0][m]=i(14,v)<<24|i(9,v)<<16|i(13,v)<<8|i(11,v);for(var g=1;g<4;g++)u[g][v]=u[g-1][v]>>>8|u[g-1][v]<<24,c[g][m]=c[g-1][m]>>>8|c[g-1][m]<<24}h=!0}var p=function(d,v){h||n();var m=new Uint32Array(v);m.set(a,512),m.set(s,768);for(var g=0;g<4;g++)m.set(u[g],4096+1024*g>>2),m.set(c[g],8192+1024*g>>2);var y=function(b,k,O){var S=0,x=0,E=0,w=0,T=0,M=0,A=0,L=0,Y=0,N=0,W=0,j=0,ue=0,Te=0,pe=0,ye=0,de=0,ke=0,ie=0,be=0,Ie=0,De=new b.Uint32Array(O),ae=new b.Uint8Array(O);function ee(ce,le,Ve,Je,gt,Pt,At,It){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0,gt=gt|0,Pt=Pt|0,At=At|0,It=It|0;var ht=0,Rt=0,Tt=0,dn=0,nn=0,Xt=0,Gt=0,Zt=0;for(ht=Ve|1024,Rt=Ve|2048,Tt=Ve|3072,gt=gt^De[(ce|0)>>2],Pt=Pt^De[(ce|4)>>2],At=At^De[(ce|8)>>2],It=It^De[(ce|12)>>2],Zt=16;(Zt|0)<=Je<<4;Zt=Zt+16|0)dn=De[(Ve|gt>>22&1020)>>2]^De[(ht|Pt>>14&1020)>>2]^De[(Rt|At>>6&1020)>>2]^De[(Tt|It<<2&1020)>>2]^De[(ce|Zt|0)>>2],nn=De[(Ve|Pt>>22&1020)>>2]^De[(ht|At>>14&1020)>>2]^De[(Rt|It>>6&1020)>>2]^De[(Tt|gt<<2&1020)>>2]^De[(ce|Zt|4)>>2],Xt=De[(Ve|At>>22&1020)>>2]^De[(ht|It>>14&1020)>>2]^De[(Rt|gt>>6&1020)>>2]^De[(Tt|Pt<<2&1020)>>2]^De[(ce|Zt|8)>>2],Gt=De[(Ve|It>>22&1020)>>2]^De[(ht|gt>>14&1020)>>2]^De[(Rt|Pt>>6&1020)>>2]^De[(Tt|At<<2&1020)>>2]^De[(ce|Zt|12)>>2],gt=dn,Pt=nn,At=Xt,It=Gt;S=De[(le|gt>>22&1020)>>2]<<24^De[(le|Pt>>14&1020)>>2]<<16^De[(le|At>>6&1020)>>2]<<8^De[(le|It<<2&1020)>>2]^De[(ce|Zt|0)>>2],x=De[(le|Pt>>22&1020)>>2]<<24^De[(le|At>>14&1020)>>2]<<16^De[(le|It>>6&1020)>>2]<<8^De[(le|gt<<2&1020)>>2]^De[(ce|Zt|4)>>2],E=De[(le|At>>22&1020)>>2]<<24^De[(le|It>>14&1020)>>2]<<16^De[(le|gt>>6&1020)>>2]<<8^De[(le|Pt<<2&1020)>>2]^De[(ce|Zt|8)>>2],w=De[(le|It>>22&1020)>>2]<<24^De[(le|gt>>14&1020)>>2]<<16^De[(le|Pt>>6&1020)>>2]<<8^De[(le|At<<2&1020)>>2]^De[(ce|Zt|12)>>2]}function F(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0,ee(0,2048,4096,Ie,ce,le,Ve,Je)}function I(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0;var gt=0;ee(1024,3072,8192,Ie,ce,Je,Ve,le),gt=x,x=w,w=gt}function J(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0,ee(0,2048,4096,Ie,T^ce,M^le,A^Ve,L^Je),T=S,M=x,A=E,L=w}function q(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0;var gt=0;ee(1024,3072,8192,Ie,ce,Je,Ve,le),gt=x,x=w,w=gt,S=S^T,x=x^M,E=E^A,w=w^L,T=ce,M=le,A=Ve,L=Je}function fe(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0,ee(0,2048,4096,Ie,T,M,A,L),T=S=S^ce,M=x=x^le,A=E=E^Ve,L=w=w^Je}function Ce(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0,ee(0,2048,4096,Ie,T,M,A,L),S=S^ce,x=x^le,E=E^Ve,w=w^Je,T=ce,M=le,A=Ve,L=Je}function X(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0,ee(0,2048,4096,Ie,T,M,A,L),T=S,M=x,A=E,L=w,S=S^ce,x=x^le,E=E^Ve,w=w^Je}function H(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0,ee(0,2048,4096,Ie,Y,N,W,j),j=~ye&j|ye&j+1,W=~pe&W|pe&W+((j|0)==0),N=~Te&N|Te&N+((W|0)==0),Y=~ue&Y|ue&Y+((N|0)==0),S=S^ce,x=x^le,E=E^Ve,w=w^Je}function re(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0;var gt=0,Pt=0,At=0,It=0,ht=0,Rt=0,Tt=0,dn=0,nn=0,Xt=0;for(ce=ce^T,le=le^M,Ve=Ve^A,Je=Je^L,gt=de|0,Pt=ke|0,At=ie|0,It=be|0;(nn|0)<128;nn=nn+1|0)gt>>>31&&(ht=ht^ce,Rt=Rt^le,Tt=Tt^Ve,dn=dn^Je),gt=gt<<1|Pt>>>31,Pt=Pt<<1|At>>>31,At=At<<1|It>>>31,It=It<<1,Xt=Je&1,Je=Je>>>1|Ve<<31,Ve=Ve>>>1|le<<31,le=le>>>1|ce<<31,ce=ce>>>1,Xt&&(ce=ce^3774873600);T=ht,M=Rt,A=Tt,L=dn}function Z(ce){ce=ce|0,Ie=ce}function Oe(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0,S=ce,x=le,E=Ve,w=Je}function ve(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0,T=ce,M=le,A=Ve,L=Je}function U(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0,Y=ce,N=le,W=Ve,j=Je}function xe(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0,ue=ce,Te=le,pe=Ve,ye=Je}function me(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0,j=~ye&j|ye&Je,W=~pe&W|pe&Ve,N=~Te&N|Te&le,Y=~ue&Y|ue&ce}function se(ce){return ce=ce|0,ce&15?-1:(ae[ce|0]=S>>>24,ae[ce|1]=S>>>16&255,ae[ce|2]=S>>>8&255,ae[ce|3]=S&255,ae[ce|4]=x>>>24,ae[ce|5]=x>>>16&255,ae[ce|6]=x>>>8&255,ae[ce|7]=x&255,ae[ce|8]=E>>>24,ae[ce|9]=E>>>16&255,ae[ce|10]=E>>>8&255,ae[ce|11]=E&255,ae[ce|12]=w>>>24,ae[ce|13]=w>>>16&255,ae[ce|14]=w>>>8&255,ae[ce|15]=w&255,16)}function B(ce){return ce=ce|0,ce&15?-1:(ae[ce|0]=T>>>24,ae[ce|1]=T>>>16&255,ae[ce|2]=T>>>8&255,ae[ce|3]=T&255,ae[ce|4]=M>>>24,ae[ce|5]=M>>>16&255,ae[ce|6]=M>>>8&255,ae[ce|7]=M&255,ae[ce|8]=A>>>24,ae[ce|9]=A>>>16&255,ae[ce|10]=A>>>8&255,ae[ce|11]=A&255,ae[ce|12]=L>>>24,ae[ce|13]=L>>>16&255,ae[ce|14]=L>>>8&255,ae[ce|15]=L&255,16)}function V(){F(0,0,0,0),de=S,ke=x,ie=E,be=w}function G(ce,le,Ve){ce=ce|0,le=le|0,Ve=Ve|0;var Je=0;if(le&15)return-1;for(;(Ve|0)>=16;)oe[ce&7](ae[le|0]<<24|ae[le|1]<<16|ae[le|2]<<8|ae[le|3],ae[le|4]<<24|ae[le|5]<<16|ae[le|6]<<8|ae[le|7],ae[le|8]<<24|ae[le|9]<<16|ae[le|10]<<8|ae[le|11],ae[le|12]<<24|ae[le|13]<<16|ae[le|14]<<8|ae[le|15]),ae[le|0]=S>>>24,ae[le|1]=S>>>16&255,ae[le|2]=S>>>8&255,ae[le|3]=S&255,ae[le|4]=x>>>24,ae[le|5]=x>>>16&255,ae[le|6]=x>>>8&255,ae[le|7]=x&255,ae[le|8]=E>>>24,ae[le|9]=E>>>16&255,ae[le|10]=E>>>8&255,ae[le|11]=E&255,ae[le|12]=w>>>24,ae[le|13]=w>>>16&255,ae[le|14]=w>>>8&255,ae[le|15]=w&255,Je=Je+16|0,le=le+16|0,Ve=Ve-16|0;return Je|0}function te(ce,le,Ve){ce=ce|0,le=le|0,Ve=Ve|0;var Je=0;if(le&15)return-1;for(;(Ve|0)>=16;)_e[ce&1](ae[le|0]<<24|ae[le|1]<<16|ae[le|2]<<8|ae[le|3],ae[le|4]<<24|ae[le|5]<<16|ae[le|6]<<8|ae[le|7],ae[le|8]<<24|ae[le|9]<<16|ae[le|10]<<8|ae[le|11],ae[le|12]<<24|ae[le|13]<<16|ae[le|14]<<8|ae[le|15]),Je=Je+16|0,le=le+16|0,Ve=Ve-16|0;return Je|0}var oe=[F,I,J,q,fe,Ce,X,H],_e=[J,re];return{set_rounds:Z,set_state:Oe,set_iv:ve,set_nonce:U,set_mask:xe,set_counter:me,get_state:se,get_iv:B,gcm_init:V,cipher:G,mac:te}}({Uint8Array,Uint32Array},d,v);return y.set_key=function(b,k,O,S,x,E,w,T,M){var A=m.subarray(0,60),L=m.subarray(256,316);A.set([k,O,S,x,E,w,T,M]);for(var Y=b,N=1;Y<4*b+28;Y++){var W=A[Y-1];(Y%b==0||b===8&&Y%b==4)&&(W=a[W>>>24]<<24^a[W>>>16&255]<<16^a[W>>>8&255]<<8^a[255&W]),Y%b==0&&(W=W<<8^W>>>24^N<<24,N=N<<1^(128&N?27:0)),A[Y]=A[Y-b]^W}for(var j=0;j=Y-4?W:c[0][a[W>>>24]]^c[1][a[W>>>16&255]]^c[2][a[W>>>8&255]]^c[3][a[255&W]];y.set_rounds(b+5)},y};return p.ENC={ECB:0,CBC:2,CFB:4,OFB:6,CTR:7},p.DEC={ECB:1,CBC:3,CFB:5,OFB:6,CTR:7},p.MAC={CBC:0,GCM:1},p.HEAP_DATA=16384,p}();function HS(e){return e instanceof Uint8Array}function W0(e,t){const r=e?e.byteLength:t||65536;if(4095&r||r<=0)throw Error("heap size must be a positive integer and a multiple of 4096");return e=e||new Uint8Array(new ArrayBuffer(r))}function Yo(e,t,r,i,a){const s=e.length-t,u=sa+s.length,0),r=new Uint8Array(t);let i=0;for(let a=0;a>2,s.getUint32(0),s.getUint32(4),s.getUint32(8),s.getUint32(12),a>16?s.getUint32(16):0,a>16?s.getUint32(20):0,a>24?s.getUint32(24):0,a>24?s.getUint32(28):0),r!==void 0){if(r.length!==16)throw new Ds("illegal iv size");let u=new DataView(r.buffer,r.byteOffset,r.byteLength);i.set_iv(u.getUint32(0),u.getUint32(4),u.getUint32(8),u.getUint32(12))}else i.set_iv(0,0,0,0)}AES_Encrypt_process(t){if(!HS(t))throw new TypeError("data isn't of expected type");let{heap:r,asm:i}=this.acquire_asm(),a=En.ENC[this.mode],s=En.HEAP_DATA,u=this.pos,c=this.len,h=0,n=t.length||0,p=0,d=0,v=new Uint8Array(c+n&-16);for(;n>0;)d=Yo(r,u+c,t,h,n),c+=d,h+=d,n-=d,d=i.cipher(a,s+u,c),d&&v.set(r.subarray(u,u+d),p),p+=d,d0;)m=Yo(r,u+c,t,h,n),c+=m,h+=m,n-=m,m=i.cipher(a,s+u,c-(n?0:v)),m&&g.set(r.subarray(u,u+m),p),p+=m,m0){if(u%16){if(this.hasOwnProperty("padding"))throw new Ds("data length must be a multiple of the block size");u+=16-u%16}if(r.cipher(i,a+s,u),this.hasOwnProperty("padding")&&this.padding){let n=t[s+c-1];if(n<1||n>16||n>c)throw new oy("bad padding");let p=0;for(let d=n;d>1;d--)p|=n^t[s+c-d];if(p)throw new oy("bad padding");c-=n}}const h=new Uint8Array(c);return c>0&&h.set(t.subarray(s,s+c)),this.pos=0,this.len=0,this.release_asm(),h}}class av{static encrypt(t,r,i=!1){return new av(r,i).encrypt(t)}static decrypt(t,r,i=!1){return new av(r,i).decrypt(t)}constructor(t,r=!1,i){this.aes=i||new Td(t,void 0,r,"ECB")}encrypt(t){return _o(this.aes.AES_Encrypt_process(t),this.aes.AES_Encrypt_finish())}decrypt(t){return _o(this.aes.AES_Decrypt_process(t),this.aes.AES_Decrypt_finish())}}function K0(e){const t=function(r){const i=new av(r);this.encrypt=function(a){return i.encrypt(a)},this.decrypt=function(a){return i.decrypt(a)}};return t.blockSize=t.prototype.blockSize=16,t.keySize=t.prototype.keySize=e/8,t}function Jc(e,t,r,i,a,s){const u=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756],c=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],h=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584],n=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],p=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080],d=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312],v=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154],m=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];let g,y,b,k,O,S,x,E,w,T,M,A,L,Y,N=0,W=t.length;const j=e.length===32?3:9;E=j===3?r?[0,32,2]:[30,-2,-2]:r?[0,32,2,62,30,-2,64,96,2]:[94,62,-2,32,64,2,30,-2,-2],r&&(t=function(pe,ye){const de=8-pe.length%8;let ke;if(ye===2&&de<8)ke=32;else if(ye===1)ke=de;else{if(ye||!(de<8)){if(de===8)return pe;throw Error("des: invalid padding")}ke=0}const ie=new Uint8Array(pe.length+de);for(let be=0;be>>4^x),x^=b,S^=b<<4,b=65535&(S>>>16^x),x^=b,S^=b<<16,b=858993459&(x>>>2^S),S^=b,x^=b<<2,b=16711935&(x>>>8^S),S^=b,x^=b<<8,b=1431655765&(S>>>1^x),x^=b,S^=b<<1,S=S<<1|S>>>31,x=x<<1|x>>>31,y=0;y>>4|x<<28)^e[g+1],b=S,S=x,x=b^(c[k>>>24&63]|n[k>>>16&63]|d[k>>>8&63]|m[63&k]|u[O>>>24&63]|h[O>>>16&63]|p[O>>>8&63]|v[63&O]);b=S,S=x,x=b}S=S>>>1|S<<31,x=x>>>1|x<<31,b=1431655765&(S>>>1^x),x^=b,S^=b<<1,b=16711935&(x>>>8^S),S^=b,x^=b<<8,b=858993459&(x>>>2^S),S^=b,x^=b<<2,b=65535&(S>>>16^x),x^=b,S^=b<<16,b=252645135&(S>>>4^x),x^=b,S^=b<<4,i===1&&(r?(w=S,M=x):(S^=T,x^=A)),ue[Te++]=S>>>24,ue[Te++]=S>>>16&255,ue[Te++]=S>>>8&255,ue[Te++]=255&S,ue[Te++]=x>>>24,ue[Te++]=x>>>16&255,ue[Te++]=x>>>8&255,ue[Te++]=255&x}return r||(ue=function(pe,ye){let de,ke=null;if(ye===2)de=32;else if(ye===1)ke=pe[pe.length-1];else{if(ye)throw Error("des: invalid padding");de=0}if(!ke){for(ke=1;pe[pe.length-ke]===de;)ke++;ke--}return pe.subarray(0,pe.length-ke)}(ue,s)),ue}function Zc(e){const t=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],r=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],i=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],a=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],s=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],u=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],c=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],h=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],n=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],p=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],d=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],v=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],m=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],g=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],y=e.length>8?3:1,b=Array(32*y),k=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0];let O,S,x,E=0,w=0;for(let T=0;T>>4^A),A^=x,M^=x<<4,x=65535&(A>>>-16^M),M^=x,A^=x<<-16,x=858993459&(M>>>2^A),A^=x,M^=x<<2,x=65535&(A>>>-16^M),M^=x,A^=x<<-16,x=1431655765&(M>>>1^A),A^=x,M^=x<<1,x=16711935&(A>>>8^M),M^=x,A^=x<<8,x=1431655765&(M>>>1^A),A^=x,M^=x<<1,x=M<<8|A>>>20&240,M=A<<24|A<<8&16711680|A>>>8&65280|A>>>24&240,A=x;for(let L=0;L<16;L++)k[L]?(M=M<<2|M>>>26,A=A<<2|A>>>26):(M=M<<1|M>>>27,A=A<<1|A>>>27),M&=-15,A&=-15,O=t[M>>>28]|r[M>>>24&15]|i[M>>>20&15]|a[M>>>16&15]|s[M>>>12&15]|u[M>>>8&15]|c[M>>>4&15],S=h[A>>>28]|n[A>>>24&15]|p[A>>>20&15]|d[A>>>16&15]|v[A>>>12&15]|m[A>>>8&15]|g[A>>>4&15],x=65535&(S>>>16^O),b[w++]=O^x,b[w++]=S^x<<16}return b}function Lc(e){this.key=[];for(let t=0;t<3;t++)this.key.push(new Uint8Array(e.subarray(8*t,8*t+8)));this.encrypt=function(t){return Jc(Zc(this.key[2]),Jc(Zc(this.key[1]),Jc(Zc(this.key[0]),t,!0,0,null,null),!1,0,null,null),!0,0,null,null)}}function Xj(){this.BlockSize=8,this.KeySize=16,this.setKey=function(u){if(this.masking=Array(16),this.rotate=Array(16),this.reset(),u.length!==this.KeySize)throw Error("CAST-128: keys must be 16 bytes");return this.keySchedule(u),!0},this.reset=function(){for(let u=0;u<16;u++)this.masking[u]=0,this.rotate[u]=0},this.getBlockSize=function(){return this.BlockSize},this.encrypt=function(u){const c=Array(u.length);for(let h=0;h>>24&255,c[h+1]=d>>>16&255,c[h+2]=d>>>8&255,c[h+3]=255&d,c[h+4]=p>>>24&255,c[h+5]=p>>>16&255,c[h+6]=p>>>8&255,c[h+7]=255&p}return c},this.decrypt=function(u){const c=Array(u.length);for(let h=0;h>>24&255,c[h+1]=d>>>16&255,c[h+2]=d>>>8&255,c[h+3]=255&d,c[h+4]=p>>>24&255,c[h+5]=p>>16&255,c[h+6]=p>>8&255,c[h+7]=255&p}return c};const e=[,,,,];e[0]=[,,,,],e[0][0]=[4,0,13,15,12,14,8],e[0][1]=[5,2,16,18,17,19,10],e[0][2]=[6,3,23,22,21,20,9],e[0][3]=[7,1,26,25,27,24,11],e[1]=[,,,,],e[1][0]=[0,6,21,23,20,22,16],e[1][1]=[1,4,0,2,1,3,18],e[1][2]=[2,5,7,6,5,4,17],e[1][3]=[3,7,10,9,11,8,19],e[2]=[,,,,],e[2][0]=[4,0,13,15,12,14,8],e[2][1]=[5,2,16,18,17,19,10],e[2][2]=[6,3,23,22,21,20,9],e[2][3]=[7,1,26,25,27,24,11],e[3]=[,,,,],e[3][0]=[0,6,21,23,20,22,16],e[3][1]=[1,4,0,2,1,3,18],e[3][2]=[2,5,7,6,5,4,17],e[3][3]=[3,7,10,9,11,8,19];const t=[,,,,];function r(u,c,h){const n=c+u,p=n<>>32-h;return(s[0][p>>>24]^s[1][p>>>16&255])-s[2][p>>>8&255]+s[3][255&p]}function i(u,c,h){const n=c^u,p=n<>>32-h;return s[0][p>>>24]-s[1][p>>>16&255]+s[2][p>>>8&255]^s[3][255&p]}function a(u,c,h){const n=c-u,p=n<>>32-h;return(s[0][p>>>24]+s[1][p>>>16&255]^s[2][p>>>8&255])-s[3][255&p]}t[0]=[,,,,],t[0][0]=[24,25,23,22,18],t[0][1]=[26,27,21,20,22],t[0][2]=[28,29,19,18,25],t[0][3]=[30,31,17,16,28],t[1]=[,,,,],t[1][0]=[3,2,12,13,8],t[1][1]=[1,0,14,15,13],t[1][2]=[7,6,8,9,3],t[1][3]=[5,4,10,11,7],t[2]=[,,,,],t[2][0]=[19,18,28,29,25],t[2][1]=[17,16,30,31,28],t[2][2]=[23,22,24,25,18],t[2][3]=[21,20,26,27,22],t[3]=[,,,,],t[3][0]=[8,9,7,6,3],t[3][1]=[10,11,5,4,7],t[3][2]=[12,13,3,2,8],t[3][3]=[14,15,1,0,13],this.keySchedule=function(u){const c=[,,,,,,,,],h=Array(32);let n;for(let m=0;m<4;m++)n=4*m,c[m]=u[n]<<24|u[n+1]<<16|u[n+2]<<8|u[n+3];const p=[6,7,4,5];let d,v=0;for(let m=0;m<2;m++)for(let g=0;g<4;g++){for(n=0;n<4;n++){const y=e[g][n];d=c[y[1]],d^=s[4][c[y[2]>>>2]>>>24-8*(3&y[2])&255],d^=s[5][c[y[3]>>>2]>>>24-8*(3&y[3])&255],d^=s[6][c[y[4]>>>2]>>>24-8*(3&y[4])&255],d^=s[7][c[y[5]>>>2]>>>24-8*(3&y[5])&255],d^=s[p[n]][c[y[6]>>>2]>>>24-8*(3&y[6])&255],c[y[0]]=d}for(n=0;n<4;n++){const y=t[g][n];d=s[4][c[y[0]>>>2]>>>24-8*(3&y[0])&255],d^=s[5][c[y[1]>>>2]>>>24-8*(3&y[1])&255],d^=s[6][c[y[2]>>>2]>>>24-8*(3&y[2])&255],d^=s[7][c[y[3]>>>2]>>>24-8*(3&y[3])&255],d^=s[4+n][c[y[4]>>>2]>>>24-8*(3&y[4])&255],h[v]=d,v++}}for(let m=0;m<16;m++)this.masking[m]=h[m],this.rotate[m]=31&h[16+m]};const s=[,,,,,,,,];s[0]=[821772500,2678128395,1810681135,1059425402,505495343,2617265619,1610868032,3483355465,3218386727,2294005173,3791863952,2563806837,1852023008,365126098,3269944861,584384398,677919599,3229601881,4280515016,2002735330,1136869587,3744433750,2289869850,2731719981,2714362070,879511577,1639411079,575934255,717107937,2857637483,576097850,2731753936,1725645e3,2810460463,5111599,767152862,2543075244,1251459544,1383482551,3052681127,3089939183,3612463449,1878520045,1510570527,2189125840,2431448366,582008916,3163445557,1265446783,1354458274,3529918736,3202711853,3073581712,3912963487,3029263377,1275016285,4249207360,2905708351,3304509486,1442611557,3585198765,2712415662,2731849581,3248163920,2283946226,208555832,2766454743,1331405426,1447828783,3315356441,3108627284,2957404670,2981538698,3339933917,1669711173,286233437,1465092821,1782121619,3862771680,710211251,980974943,1651941557,430374111,2051154026,704238805,4128970897,3144820574,2857402727,948965521,3333752299,2227686284,718756367,2269778983,2731643755,718440111,2857816721,3616097120,1113355533,2478022182,410092745,1811985197,1944238868,2696854588,1415722873,1682284203,1060277122,1998114690,1503841958,82706478,2315155686,1068173648,845149890,2167947013,1768146376,1993038550,3566826697,3390574031,940016341,3355073782,2328040721,904371731,1205506512,4094660742,2816623006,825647681,85914773,2857843460,1249926541,1417871568,3287612,3211054559,3126306446,1975924523,1353700161,2814456437,2438597621,1800716203,722146342,2873936343,1151126914,4160483941,2877670899,458611604,2866078500,3483680063,770352098,2652916994,3367839148,3940505011,3585973912,3809620402,718646636,2504206814,2914927912,3631288169,2857486607,2860018678,575749918,2857478043,718488780,2069512688,3548183469,453416197,1106044049,3032691430,52586708,3378514636,3459808877,3211506028,1785789304,218356169,3571399134,3759170522,1194783844,1523787992,3007827094,1975193539,2555452411,1341901877,3045838698,3776907964,3217423946,2802510864,2889438986,1057244207,1636348243,3761863214,1462225785,2632663439,481089165,718503062,24497053,3332243209,3344655856,3655024856,3960371065,1195698900,2971415156,3710176158,2115785917,4027663609,3525578417,2524296189,2745972565,3564906415,1372086093,1452307862,2780501478,1476592880,3389271281,18495466,2378148571,901398090,891748256,3279637769,3157290713,2560960102,1447622437,4284372637,216884176,2086908623,1879786977,3588903153,2242455666,2938092967,3559082096,2810645491,758861177,1121993112,215018983,642190776,4169236812,1196255959,2081185372,3508738393,941322904,4124243163,2877523539,1848581667,2205260958,3180453958,2589345134,3694731276,550028657,2519456284,3789985535,2973870856,2093648313,443148163,46942275,2734146937,1117713533,1115362972,1523183689,3717140224,1551984063],s[1]=[522195092,4010518363,1776537470,960447360,4267822970,4005896314,1435016340,1929119313,2913464185,1310552629,3579470798,3724818106,2579771631,1594623892,417127293,2715217907,2696228731,1508390405,3994398868,3925858569,3695444102,4019471449,3129199795,3770928635,3520741761,990456497,4187484609,2783367035,21106139,3840405339,631373633,3783325702,532942976,396095098,3548038825,4267192484,2564721535,2011709262,2039648873,620404603,3776170075,2898526339,3612357925,4159332703,1645490516,223693667,1567101217,3362177881,1029951347,3470931136,3570957959,1550265121,119497089,972513919,907948164,3840628539,1613718692,3594177948,465323573,2659255085,654439692,2575596212,2699288441,3127702412,277098644,624404830,4100943870,2717858591,546110314,2403699828,3655377447,1321679412,4236791657,1045293279,4010672264,895050893,2319792268,494945126,1914543101,2777056443,3894764339,2219737618,311263384,4275257268,3458730721,669096869,3584475730,3835122877,3319158237,3949359204,2005142349,2713102337,2228954793,3769984788,569394103,3855636576,1425027204,108000370,2736431443,3671869269,3043122623,1750473702,2211081108,762237499,3972989403,2798899386,3061857628,2943854345,867476300,964413654,1591880597,1594774276,2179821409,552026980,3026064248,3726140315,2283577634,3110545105,2152310760,582474363,1582640421,1383256631,2043843868,3322775884,1217180674,463797851,2763038571,480777679,2718707717,2289164131,3118346187,214354409,200212307,3810608407,3025414197,2674075964,3997296425,1847405948,1342460550,510035443,4080271814,815934613,833030224,1620250387,1945732119,2703661145,3966000196,1388869545,3456054182,2687178561,2092620194,562037615,1356438536,3409922145,3261847397,1688467115,2150901366,631725691,3840332284,549916902,3455104640,394546491,837744717,2114462948,751520235,2221554606,2415360136,3999097078,2063029875,803036379,2702586305,821456707,3019566164,360699898,4018502092,3511869016,3677355358,2402471449,812317050,49299192,2570164949,3259169295,2816732080,3331213574,3101303564,2156015656,3705598920,3546263921,143268808,3200304480,1638124008,3165189453,3341807610,578956953,2193977524,3638120073,2333881532,807278310,658237817,2969561766,1641658566,11683945,3086995007,148645947,1138423386,4158756760,1981396783,2401016740,3699783584,380097457,2680394679,2803068651,3334260286,441530178,4016580796,1375954390,761952171,891809099,2183123478,157052462,3683840763,1592404427,341349109,2438483839,1417898363,644327628,2233032776,2353769706,2201510100,220455161,1815641738,182899273,2995019788,3627381533,3702638151,2890684138,1052606899,588164016,1681439879,4038439418,2405343923,4229449282,167996282,1336969661,1688053129,2739224926,1543734051,1046297529,1138201970,2121126012,115334942,1819067631,1902159161,1941945968,2206692869,1159982321],s[2]=[2381300288,637164959,3952098751,3893414151,1197506559,916448331,2350892612,2932787856,3199334847,4009478890,3905886544,1373570990,2450425862,4037870920,3778841987,2456817877,286293407,124026297,3001279700,1028597854,3115296800,4208886496,2691114635,2188540206,1430237888,1218109995,3572471700,308166588,570424558,2187009021,2455094765,307733056,1310360322,3135275007,1384269543,2388071438,863238079,2359263624,2801553128,3380786597,2831162807,1470087780,1728663345,4072488799,1090516929,532123132,2389430977,1132193179,2578464191,3051079243,1670234342,1434557849,2711078940,1241591150,3314043432,3435360113,3091448339,1812415473,2198440252,267246943,796911696,3619716990,38830015,1526438404,2806502096,374413614,2943401790,1489179520,1603809326,1920779204,168801282,260042626,2358705581,1563175598,2397674057,1356499128,2217211040,514611088,2037363785,2186468373,4022173083,2792511869,2913485016,1173701892,4200428547,3896427269,1334932762,2455136706,602925377,2835607854,1613172210,41346230,2499634548,2457437618,2188827595,41386358,4172255629,1313404830,2405527007,3801973774,2217704835,873260488,2528884354,2478092616,4012915883,2555359016,2006953883,2463913485,575479328,2218240648,2099895446,660001756,2341502190,3038761536,3888151779,3848713377,3286851934,1022894237,1620365795,3449594689,1551255054,15374395,3570825345,4249311020,4151111129,3181912732,310226346,1133119310,530038928,136043402,2476768958,3107506709,2544909567,1036173560,2367337196,1681395281,1758231547,3641649032,306774401,1575354324,3716085866,1990386196,3114533736,2455606671,1262092282,3124342505,2768229131,4210529083,1833535011,423410938,660763973,2187129978,1639812e3,3508421329,3467445492,310289298,272797111,2188552562,2456863912,310240523,677093832,1013118031,901835429,3892695601,1116285435,3036471170,1337354835,243122523,520626091,277223598,4244441197,4194248841,1766575121,594173102,316590669,742362309,3536858622,4176435350,3838792410,2501204839,1229605004,3115755532,1552908988,2312334149,979407927,3959474601,1148277331,176638793,3614686272,2083809052,40992502,1340822838,2731552767,3535757508,3560899520,1354035053,122129617,7215240,2732932949,3118912700,2718203926,2539075635,3609230695,3725561661,1928887091,2882293555,1988674909,2063640240,2491088897,1459647954,4189817080,2302804382,1113892351,2237858528,1927010603,4002880361,1856122846,1594404395,2944033133,3855189863,3474975698,1643104450,4054590833,3431086530,1730235576,2984608721,3084664418,2131803598,4178205752,267404349,1617849798,1616132681,1462223176,736725533,2327058232,551665188,2945899023,1749386277,2575514597,1611482493,674206544,2201269090,3642560800,728599968,1680547377,2620414464,1388111496,453204106,4156223445,1094905244,2754698257,2201108165,3757000246,2704524545,3922940700,3996465027],s[3]=[2645754912,532081118,2814278639,3530793624,1246723035,1689095255,2236679235,4194438865,2116582143,3859789411,157234593,2045505824,4245003587,1687664561,4083425123,605965023,672431967,1336064205,3376611392,214114848,4258466608,3232053071,489488601,605322005,3998028058,264917351,1912574028,756637694,436560991,202637054,135989450,85393697,2152923392,3896401662,2895836408,2145855233,3535335007,115294817,3147733898,1922296357,3464822751,4117858305,1037454084,2725193275,2127856640,1417604070,1148013728,1827919605,642362335,2929772533,909348033,1346338451,3547799649,297154785,1917849091,4161712827,2883604526,3968694238,1469521537,3780077382,3375584256,1763717519,136166297,4290970789,1295325189,2134727907,2798151366,1566297257,3672928234,2677174161,2672173615,965822077,2780786062,289653839,1133871874,3491843819,35685304,1068898316,418943774,672553190,642281022,2346158704,1954014401,3037126780,4079815205,2030668546,3840588673,672283427,1776201016,359975446,3750173538,555499703,2769985273,1324923,69110472,152125443,3176785106,3822147285,1340634837,798073664,1434183902,15393959,216384236,1303690150,3881221631,3711134124,3960975413,106373927,2578434224,1455997841,1801814300,1578393881,1854262133,3188178946,3258078583,2302670060,1539295533,3505142565,3078625975,2372746020,549938159,3278284284,2620926080,181285381,2865321098,3970029511,68876850,488006234,1728155692,2608167508,836007927,2435231793,919367643,3339422534,3655756360,1457871481,40520939,1380155135,797931188,234455205,2255801827,3990488299,397000196,739833055,3077865373,2871719860,4022553888,772369276,390177364,3853951029,557662966,740064294,1640166671,1699928825,3535942136,622006121,3625353122,68743880,1742502,219489963,1664179233,1577743084,1236991741,410585305,2366487942,823226535,1050371084,3426619607,3586839478,212779912,4147118561,1819446015,1911218849,530248558,3486241071,3252585495,2886188651,3410272728,2342195030,20547779,2982490058,3032363469,3631753222,312714466,1870521650,1493008054,3491686656,615382978,4103671749,2534517445,1932181,2196105170,278426614,6369430,3274544417,2913018367,697336853,2143000447,2946413531,701099306,1558357093,2805003052,3500818408,2321334417,3567135975,216290473,3591032198,23009561,1996984579,3735042806,2024298078,3739440863,569400510,2339758983,3016033873,3097871343,3639523026,3844324983,3256173865,795471839,2951117563,4101031090,4091603803,3603732598,971261452,534414648,428311343,3389027175,2844869880,694888862,1227866773,2456207019,3043454569,2614353370,3749578031,3676663836,459166190,4132644070,1794958188,51825668,2252611902,3084671440,2036672799,3436641603,1099053433,2469121526,3059204941,1323291266,2061838604,1018778475,2233344254,2553501054,334295216,3556750194,1065731521,183467730],s[4]=[2127105028,745436345,2601412319,2788391185,3093987327,500390133,1155374404,389092991,150729210,3891597772,3523549952,1935325696,716645080,946045387,2901812282,1774124410,3869435775,4039581901,3293136918,3438657920,948246080,363898952,3867875531,1286266623,1598556673,68334250,630723836,1104211938,1312863373,613332731,2377784574,1101634306,441780740,3129959883,1917973735,2510624549,3238456535,2544211978,3308894634,1299840618,4076074851,1756332096,3977027158,297047435,3790297736,2265573040,3621810518,1311375015,1667687725,47300608,3299642885,2474112369,201668394,1468347890,576830978,3594690761,3742605952,1958042578,1747032512,3558991340,1408974056,3366841779,682131401,1033214337,1545599232,4265137049,206503691,103024618,2855227313,1337551222,2428998917,2963842932,4015366655,3852247746,2796956967,3865723491,3747938335,247794022,3755824572,702416469,2434691994,397379957,851939612,2314769512,218229120,1380406772,62274761,214451378,3170103466,2276210409,3845813286,28563499,446592073,1693330814,3453727194,29968656,3093872512,220656637,2470637031,77972100,1667708854,1358280214,4064765667,2395616961,325977563,4277240721,4220025399,3605526484,3355147721,811859167,3069544926,3962126810,652502677,3075892249,4132761541,3498924215,1217549313,3250244479,3858715919,3053989961,1538642152,2279026266,2875879137,574252750,3324769229,2651358713,1758150215,141295887,2719868960,3515574750,4093007735,4194485238,1082055363,3417560400,395511885,2966884026,179534037,3646028556,3738688086,1092926436,2496269142,257381841,3772900718,1636087230,1477059743,2499234752,3811018894,2675660129,3285975680,90732309,1684827095,1150307763,1723134115,3237045386,1769919919,1240018934,815675215,750138730,2239792499,1234303040,1995484674,138143821,675421338,1145607174,1936608440,3238603024,2345230278,2105974004,323969391,779555213,3004902369,2861610098,1017501463,2098600890,2628620304,2940611490,2682542546,1171473753,3656571411,3687208071,4091869518,393037935,159126506,1662887367,1147106178,391545844,3452332695,1891500680,3016609650,1851642611,546529401,1167818917,3194020571,2848076033,3953471836,575554290,475796850,4134673196,450035699,2351251534,844027695,1080539133,86184846,1554234488,3692025454,1972511363,2018339607,1491841390,1141460869,1061690759,4244549243,2008416118,2351104703,2868147542,1598468138,722020353,1027143159,212344630,1387219594,1725294528,3745187956,2500153616,458938280,4129215917,1828119673,544571780,3503225445,2297937496,1241802790,267843827,2694610800,1397140384,1558801448,3782667683,1806446719,929573330,2234912681,400817706,616011623,4121520928,3603768725,1761550015,1968522284,4053731006,4192232858,4005120285,872482584,3140537016,3894607381,2287405443,1963876937,3663887957,1584857e3,2975024454,1833426440,4025083860],s[5]=[4143615901,749497569,1285769319,3795025788,2514159847,23610292,3974978748,844452780,3214870880,3751928557,2213566365,1676510905,448177848,3730751033,4086298418,2307502392,871450977,3222878141,4110862042,3831651966,2735270553,1310974780,2043402188,1218528103,2736035353,4274605013,2702448458,3936360550,2693061421,162023535,2827510090,687910808,23484817,3784910947,3371371616,779677500,3503626546,3473927188,4157212626,3500679282,4248902014,2466621104,3899384794,1958663117,925738300,1283408968,3669349440,1840910019,137959847,2679828185,1239142320,1315376211,1547541505,1690155329,739140458,3128809933,3933172616,3876308834,905091803,1548541325,4040461708,3095483362,144808038,451078856,676114313,2861728291,2469707347,993665471,373509091,2599041286,4025009006,4170239449,2149739950,3275793571,3749616649,2794760199,1534877388,572371878,2590613551,1753320020,3467782511,1405125690,4270405205,633333386,3026356924,3475123903,632057672,2846462855,1404951397,3882875879,3915906424,195638627,2385783745,3902872553,1233155085,3355999740,2380578713,2702246304,2144565621,3663341248,3894384975,2502479241,4248018925,3094885567,1594115437,572884632,3385116731,767645374,1331858858,1475698373,3793881790,3532746431,1321687957,619889600,1121017241,3440213920,2070816767,2833025776,1933951238,4095615791,890643334,3874130214,859025556,360630002,925594799,1764062180,3920222280,4078305929,979562269,2810700344,4087740022,1949714515,546639971,1165388173,3069891591,1495988560,922170659,1291546247,2107952832,1813327274,3406010024,3306028637,4241950635,153207855,2313154747,1608695416,1150242611,1967526857,721801357,1220138373,3691287617,3356069787,2112743302,3281662835,1111556101,1778980689,250857638,2298507990,673216130,2846488510,3207751581,3562756981,3008625920,3417367384,2198807050,529510932,3547516680,3426503187,2364944742,102533054,2294910856,1617093527,1204784762,3066581635,1019391227,1069574518,1317995090,1691889997,3661132003,510022745,3238594800,1362108837,1817929911,2184153760,805817662,1953603311,3699844737,120799444,2118332377,207536705,2282301548,4120041617,145305846,2508124933,3086745533,3261524335,1877257368,2977164480,3160454186,2503252186,4221677074,759945014,254147243,2767453419,3801518371,629083197,2471014217,907280572,3900796746,940896768,2751021123,2625262786,3161476951,3661752313,3260732218,1425318020,2977912069,1496677566,3988592072,2140652971,3126511541,3069632175,977771578,1392695845,1698528874,1411812681,1369733098,1343739227,3620887944,1142123638,67414216,3102056737,3088749194,1626167401,2546293654,3941374235,697522451,33404913,143560186,2595682037,994885535,1247667115,3859094837,2699155541,3547024625,4114935275,2968073508,3199963069,2732024527,1237921620,951448369,1898488916,1211705605,2790989240,2233243581,3598044975],s[6]=[2246066201,858518887,1714274303,3485882003,713916271,2879113490,3730835617,539548191,36158695,1298409750,419087104,1358007170,749914897,2989680476,1261868530,2995193822,2690628854,3443622377,3780124940,3796824509,2976433025,4259637129,1551479e3,512490819,1296650241,951993153,2436689437,2460458047,144139966,3136204276,310820559,3068840729,643875328,1969602020,1680088954,2185813161,3283332454,672358534,198762408,896343282,276269502,3014846926,84060815,197145886,376173866,3943890818,3813173521,3545068822,1316698879,1598252827,2633424951,1233235075,859989710,2358460855,3503838400,3409603720,1203513385,1193654839,2792018475,2060853022,207403770,1144516871,3068631394,1121114134,177607304,3785736302,326409831,1929119770,2983279095,4183308101,3474579288,3200513878,3228482096,119610148,1170376745,3378393471,3163473169,951863017,3337026068,3135789130,2907618374,1183797387,2015970143,4045674555,2182986399,2952138740,3928772205,384012900,2454997643,10178499,2879818989,2596892536,111523738,2995089006,451689641,3196290696,235406569,1441906262,3890558523,3013735005,4158569349,1644036924,376726067,1006849064,3664579700,2041234796,1021632941,1374734338,2566452058,371631263,4007144233,490221539,206551450,3140638584,1053219195,1853335209,3412429660,3562156231,735133835,1623211703,3104214392,2738312436,4096837757,3366392578,3110964274,3956598718,3196820781,2038037254,3877786376,2339753847,300912036,3766732888,2372630639,1516443558,4200396704,1574567987,4069441456,4122592016,2699739776,146372218,2748961456,2043888151,35287437,2596680554,655490400,1132482787,110692520,1031794116,2188192751,1324057718,1217253157,919197030,686247489,3261139658,1028237775,3135486431,3059715558,2460921700,986174950,2661811465,4062904701,2752986992,3709736643,367056889,1353824391,731860949,1650113154,1778481506,784341916,357075625,3608602432,1074092588,2480052770,3811426202,92751289,877911070,3600361838,1231880047,480201094,3756190983,3094495953,434011822,87971354,363687820,1717726236,1901380172,3926403882,2481662265,400339184,1490350766,2661455099,1389319756,2558787174,784598401,1983468483,30828846,3550527752,2716276238,3841122214,1765724805,1955612312,1277890269,1333098070,1564029816,2704417615,1026694237,3287671188,1260819201,3349086767,1016692350,1582273796,1073413053,1995943182,694588404,1025494639,3323872702,3551898420,4146854327,453260480,1316140391,1435673405,3038941953,3486689407,1622062951,403978347,817677117,950059133,4246079218,3278066075,1486738320,1417279718,481875527,2549965225,3933690356,760697757,1452955855,3897451437,1177426808,1702951038,4085348628,2447005172,1084371187,3516436277,3068336338,1073369276,1027665953,3284188590,1230553676,1368340146,2226246512,267243139,2274220762,4070734279,2497715176,2423353163,2504755875],s[7]=[3793104909,3151888380,2817252029,895778965,2005530807,3871412763,237245952,86829237,296341424,3851759377,3974600970,2475086196,709006108,1994621201,2972577594,937287164,3734691505,168608556,3189338153,2225080640,3139713551,3033610191,3025041904,77524477,185966941,1208824168,2344345178,1721625922,3354191921,1066374631,1927223579,1971335949,2483503697,1551748602,2881383779,2856329572,3003241482,48746954,1398218158,2050065058,313056748,4255789917,393167848,1912293076,940740642,3465845460,3091687853,2522601570,2197016661,1727764327,364383054,492521376,1291706479,3264136376,1474851438,1685747964,2575719748,1619776915,1814040067,970743798,1561002147,2925768690,2123093554,1880132620,3151188041,697884420,2550985770,2607674513,2659114323,110200136,1489731079,997519150,1378877361,3527870668,478029773,2766872923,1022481122,431258168,1112503832,897933369,2635587303,669726182,3383752315,918222264,163866573,3246985393,3776823163,114105080,1903216136,761148244,3571337562,1690750982,3166750252,1037045171,1888456500,2010454850,642736655,616092351,365016990,1185228132,4174898510,1043824992,2023083429,2241598885,3863320456,3279669087,3674716684,108438443,2132974366,830746235,606445527,4173263986,2204105912,1844756978,2532684181,4245352700,2969441100,3796921661,1335562986,4061524517,2720232303,2679424040,634407289,885462008,3294724487,3933892248,2094100220,339117932,4048830727,3202280980,1458155303,2689246273,1022871705,2464987878,3714515309,353796843,2822958815,4256850100,4052777845,551748367,618185374,3778635579,4020649912,1904685140,3069366075,2670879810,3407193292,2954511620,4058283405,2219449317,3135758300,1120655984,3447565834,1474845562,3577699062,550456716,3466908712,2043752612,881257467,869518812,2005220179,938474677,3305539448,3850417126,1315485940,3318264702,226533026,965733244,321539988,1136104718,804158748,573969341,3708209826,937399083,3290727049,2901666755,1461057207,4013193437,4066861423,3242773476,2421326174,1581322155,3028952165,786071460,3900391652,3918438532,1485433313,4023619836,3708277595,3678951060,953673138,1467089153,1930354364,1533292819,2492563023,1346121658,1685000834,1965281866,3765933717,4190206607,2052792609,3515332758,690371149,3125873887,2180283551,2903598061,3933952357,436236910,289419410,14314871,1242357089,2904507907,1616633776,2666382180,585885352,3471299210,2699507360,1432659641,277164553,3354103607,770115018,2303809295,3741942315,3177781868,2853364978,2269453327,3774259834,987383833,1290892879,225909803,1741533526,890078084,1496906255,1111072499,916028167,243534141,1252605537,2204162171,531204876,290011180,3916834213,102027703,237315147,209093447,1486785922,220223953,2758195998,4175039106,82940208,3127791296,2569425252,518464269,1353887104,3941492737,2377294467,3935040926]}function Nc(e){this.cast5=new Xj,this.cast5.setKey(e),this.encrypt=function(t){return this.cast5.encrypt(t)}}Lc.keySize=Lc.prototype.keySize=24,Lc.blockSize=Lc.prototype.blockSize=8,Nc.blockSize=Nc.prototype.blockSize=8,Nc.keySize=Nc.prototype.keySize=16;const na=4294967295;function La(e,t){return(e<>>32-t)&na}function vs(e,t){return e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24}function Ks(e,t,r){e.splice(t,4,255&r,r>>>8&255,r>>>16&255,r>>>24&255)}function wn(e,t){return e>>>8*t&255}function Bc(e){this.tf=function(){let t=null,r=null,i=-1,a=[],s=[[],[],[],[]];function u(p){return s[0][wn(p,0)]^s[1][wn(p,1)]^s[2][wn(p,2)]^s[3][wn(p,3)]}function c(p){return s[0][wn(p,3)]^s[1][wn(p,0)]^s[2][wn(p,1)]^s[3][wn(p,2)]}function h(p,d){let v=u(d[0]),m=c(d[1]);d[2]=La(d[2]^v+m+a[4*p+8]&na,31),d[3]=La(d[3],1)^v+2*m+a[4*p+9]&na,v=u(d[2]),m=c(d[3]),d[0]=La(d[0]^v+m+a[4*p+10]&na,31),d[1]=La(d[1],1)^v+2*m+a[4*p+11]&na}function n(p,d){let v=u(d[0]),m=c(d[1]);d[2]=La(d[2],1)^v+m+a[4*p+10]&na,d[3]=La(d[3]^v+2*m+a[4*p+11]&na,31),v=u(d[2]),m=c(d[3]),d[0]=La(d[0],1)^v+m+a[4*p+8]&na,d[1]=La(d[1]^v+2*m+a[4*p+9]&na,31)}return{name:"twofish",blocksize:16,open:function(p){let d,v,m,g,y;t=p;const b=[],k=[],O=[];let S;const x=[];let E,w,T;const M=[[8,1,7,13,6,15,3,2,0,11,5,9,14,12,10,4],[2,8,11,13,15,7,6,14,3,1,9,4,0,10,12,5]],A=[[14,12,11,8,1,2,3,5,15,4,10,6,7,0,9,13],[1,14,2,11,4,12,3,7,6,13,10,5,15,9,0,8]],L=[[11,10,5,14,6,13,9,0,12,8,15,3,2,4,7,1],[4,12,7,5,1,6,9,10,0,14,13,8,2,11,3,15]],Y=[[13,7,15,4,1,2,6,14,9,11,3,0,8,5,12,10],[11,9,5,1,12,3,13,14,6,4,7,15,2,0,8,10]],N=[0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15],W=[0,9,2,11,4,13,6,15,8,1,10,3,12,5,14,7],j=[[],[]],ue=[[],[],[],[]];function Te(ie){return ie^ie>>2^[0,90,180,238][3&ie]}function pe(ie){return ie^ie>>1^ie>>2^[0,238,180,90][3&ie]}function ye(ie,be){let Ie,De,ae;for(Ie=0;Ie<8;Ie++)De=be>>>24,be=be<<8&na|ie>>>24,ie=ie<<8&na,ae=De<<1,128&De&&(ae^=333),be^=De^ae<<16,ae^=De>>>1,1&De&&(ae^=166),be^=ae<<24|ae<<8;return be}function de(ie,be){const Ie=be>>4,De=15&be,ae=M[ie][Ie^De],ee=A[ie][N[De]^W[Ie]];return Y[ie][N[ee]^W[ae]]<<4|L[ie][ae^ee]}function ke(ie,be){let Ie=wn(ie,0),De=wn(ie,1),ae=wn(ie,2),ee=wn(ie,3);switch(S){case 4:Ie=j[1][Ie]^wn(be[3],0),De=j[0][De]^wn(be[3],1),ae=j[0][ae]^wn(be[3],2),ee=j[1][ee]^wn(be[3],3);case 3:Ie=j[1][Ie]^wn(be[2],0),De=j[1][De]^wn(be[2],1),ae=j[0][ae]^wn(be[2],2),ee=j[0][ee]^wn(be[2],3);case 2:Ie=j[0][j[0][Ie]^wn(be[1],0)]^wn(be[0],0),De=j[0][j[1][De]^wn(be[1],1)]^wn(be[0],1),ae=j[1][j[0][ae]^wn(be[1],2)]^wn(be[0],2),ee=j[1][j[1][ee]^wn(be[1],3)]^wn(be[0],3)}return ue[0][Ie]^ue[1][De]^ue[2][ae]^ue[3][ee]}for(t=t.slice(0,32),d=t.length;d!==16&&d!==24&&d!==32;)t[d++]=0;for(d=0;d>2]=vs(t,d);for(d=0;d<256;d++)j[0][d]=de(0,d),j[1][d]=de(1,d);for(d=0;d<256;d++)E=j[1][d],w=Te(E),T=pe(E),ue[0][d]=E+(w<<8)+(T<<16)+(T<<24),ue[2][d]=w+(T<<8)+(E<<16)+(T<<24),E=j[0][d],w=Te(E),T=pe(E),ue[1][d]=T+(T<<8)+(w<<16)+(E<<24),ue[3][d]=w+(E<<8)+(T<<16)+(w<<24);for(S=O.length/2,d=0;d=0;m--)n(m,v);Ks(r,i,v[2]^a[0]),Ks(r,i+4,v[3]^a[1]),Ks(r,i+8,v[0]^a[2]),Ks(r,i+12,v[1]^a[3]),i+=16},finalize:function(){return r}}}(),this.tf.open(Array.from(e),0),this.encrypt=function(t){return this.tf.encrypt(Array.from(t),0)}}function fa(){}function Fc(e){this.bf=new fa,this.bf.init(e),this.encrypt=function(t){return this.bf.encryptBlock(t)}}Bc.keySize=Bc.prototype.keySize=32,Bc.blockSize=Bc.prototype.blockSize=16,fa.prototype.BLOCKSIZE=8,fa.prototype.SBOXES=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]],fa.prototype.PARRAY=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],fa.prototype.NN=16,fa.prototype._clean=function(e){return e<0&&(e=(2147483647&e)+2147483648),e},fa.prototype._F=function(e){let t;const r=255&e,i=255&(e>>>=8),a=255&(e>>>=8),s=255&(e>>>=8);return t=this.sboxes[0][s]+this.sboxes[1][a],t^=this.sboxes[2][i],t+=this.sboxes[3][r],t},fa.prototype._encryptBlock=function(e){let t,r=e[0],i=e[1];for(t=0;t>>24-8*t&255,a[t+i]=r[1]>>>24-8*t&255;return a},fa.prototype._decryptBlock=function(e){let t,r=e[0],i=e[1];for(t=this.NN+1;t>1;--t){r^=this.parray[t],i=this._F(r)^i;const a=r;r=i,i=a}r^=this.parray[1],i^=this.parray[0],e[0]=this._clean(i),e[1]=this._clean(r)},fa.prototype.init=function(e){let t,r=0;for(this.parray=[],t=0;t=e.length&&(r=0);this.parray[t]=this.PARRAY[t]^a}for(this.sboxes=[],t=0;t<4;++t)for(this.sboxes[t]=[],r=0;r<256;++r)this.sboxes[t][r]=this.SBOXES[t][r];const i=[0,0];for(t=0;t>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=ye+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=de+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=ke+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=ie+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=be+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=Ie+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=De+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=ae+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=ee+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=F+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=I+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=J+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=q+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=fe+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=Ce+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=q^ae^de^pe,xe=ve<<1|ve>>>31,U=xe+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=fe^ee^ke^ye,me=ve<<1|ve>>>31,U=me+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Ce^F^ie^de,se=ve<<1|ve>>>31,U=se+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=xe^I^be^ke,B=ve<<1|ve>>>31,U=B+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=me^J^Ie^ie,V=ve<<1|ve>>>31,U=V+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=se^q^De^be,G=ve<<1|ve>>>31,U=G+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=B^fe^ae^Ie,te=ve<<1|ve>>>31,U=te+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=V^Ce^ee^De,oe=ve<<1|ve>>>31,U=oe+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=G^xe^F^ae,_e=ve<<1|ve>>>31,U=_e+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=te^me^I^ee,ce=ve<<1|ve>>>31,U=ce+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=oe^se^J^F,le=ve<<1|ve>>>31,U=le+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=_e^B^q^I,Ve=ve<<1|ve>>>31,U=Ve+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=ce^V^fe^J,Je=ve<<1|ve>>>31,U=Je+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=le^G^Ce^q,gt=ve<<1|ve>>>31,U=gt+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Ve^te^xe^fe,Pt=ve<<1|ve>>>31,U=Pt+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Je^oe^me^Ce,At=ve<<1|ve>>>31,U=At+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=gt^_e^se^xe,It=ve<<1|ve>>>31,U=It+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Pt^ce^B^me,ht=ve<<1|ve>>>31,U=ht+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=At^le^V^se,Rt=ve<<1|ve>>>31,U=Rt+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=It^Ve^G^B,Tt=ve<<1|ve>>>31,U=Tt+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=ht^Je^te^V,dn=ve<<1|ve>>>31,U=dn+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Rt^gt^oe^G,nn=ve<<1|ve>>>31,U=nn+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Tt^Pt^_e^te,Xt=ve<<1|ve>>>31,U=Xt+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=dn^At^ce^oe,Gt=ve<<1|ve>>>31,U=Gt+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=nn^It^le^_e,Zt=ve<<1|ve>>>31,U=Zt+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Xt^ht^Ve^ce,Yt=ve<<1|ve>>>31,U=Yt+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Gt^Rt^Je^le,un=ve<<1|ve>>>31,U=un+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Zt^Tt^gt^Ve,qt=ve<<1|ve>>>31,U=qt+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Yt^dn^Pt^Je,rt=ve<<1|ve>>>31,U=rt+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=un^nn^At^gt,at=ve<<1|ve>>>31,U=at+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=qt^Xt^It^Pt,xt=ve<<1|ve>>>31,U=xt+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=rt^Gt^ht^At,Ut=ve<<1|ve>>>31,U=Ut+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=at^Zt^Rt^It,Ee=ve<<1|ve>>>31,U=Ee+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=xt^Yt^Tt^ht,Be=ve<<1|ve>>>31,U=Be+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Ut^un^dn^Rt,Fe=ve<<1|ve>>>31,U=Fe+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Ee^qt^nn^Tt,Le=ve<<1|ve>>>31,U=Le+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Be^rt^Xt^dn,tt=ve<<1|ve>>>31,U=tt+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Fe^at^Gt^nn,ot=ve<<1|ve>>>31,U=ot+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Le^xt^Zt^Xt,pt=ve<<1|ve>>>31,U=pt+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=tt^Ut^Yt^Gt,yt=ve<<1|ve>>>31,U=yt+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=ot^Ee^un^Zt,Dt=ve<<1|ve>>>31,U=Dt+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=pt^Be^qt^Yt,jt=ve<<1|ve>>>31,U=jt+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=yt^Fe^rt^un,Ht=ve<<1|ve>>>31,U=Ht+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Dt^Le^at^qt,zt=ve<<1|ve>>>31,U=zt+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=jt^tt^xt^rt,en=ve<<1|ve>>>31,U=en+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Ht^ot^Ut^at,Qt=ve<<1|ve>>>31,U=Qt+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=zt^pt^Ee^xt,rn=ve<<1|ve>>>31,U=rn+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=en^yt^Be^Ut,On=ve<<1|ve>>>31,U=On+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Qt^Dt^Fe^Ee,ir=ve<<1|ve>>>31,U=ir+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=rn^jt^Le^Be,ar=ve<<1|ve>>>31,U=ar+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=On^Ht^tt^Fe,Yn=ve<<1|ve>>>31,U=Yn+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=ir^zt^ot^Le,jn=ve<<1|ve>>>31,U=jn+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=ar^en^pt^tt,Dr=ve<<1|ve>>>31,U=Dr+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Yn^Qt^yt^ot,hr=ve<<1|ve>>>31,U=hr+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=jn^rn^Dt^pt,yi=ve<<1|ve>>>31,U=yi+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Dr^On^jt^yt,Rr=ve<<1|ve>>>31,U=Rr+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=hr^ir^Ht^Dt,ai=ve<<1|ve>>>31,U=ai+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=yi^ar^zt^jt,bi=ve<<1|ve>>>31,U=bi+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Rr^Yn^en^Ht,sr=ve<<1|ve>>>31,U=sr+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=ai^jn^Qt^zt,Cr=ve<<1|ve>>>31,U=Cr+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=bi^Dr^rn^en,si=ve<<1|ve>>>31,U=si+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=sr^hr^On^Qt,wi=ve<<1|ve>>>31,U=wi+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Cr^yi^ir^rn,Me=ve<<1|ve>>>31,U=Me+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=si^Rr^ar^On,We=ve<<1|ve>>>31,U=We+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,i=i+X|0,a=a+H|0,s=s+re|0,u=u+Z|0,c=c+Oe|0}function w(pe){pe=pe|0,E(x[pe|0]<<24|x[pe|1]<<16|x[pe|2]<<8|x[pe|3],x[pe|4]<<24|x[pe|5]<<16|x[pe|6]<<8|x[pe|7],x[pe|8]<<24|x[pe|9]<<16|x[pe|10]<<8|x[pe|11],x[pe|12]<<24|x[pe|13]<<16|x[pe|14]<<8|x[pe|15],x[pe|16]<<24|x[pe|17]<<16|x[pe|18]<<8|x[pe|19],x[pe|20]<<24|x[pe|21]<<16|x[pe|22]<<8|x[pe|23],x[pe|24]<<24|x[pe|25]<<16|x[pe|26]<<8|x[pe|27],x[pe|28]<<24|x[pe|29]<<16|x[pe|30]<<8|x[pe|31],x[pe|32]<<24|x[pe|33]<<16|x[pe|34]<<8|x[pe|35],x[pe|36]<<24|x[pe|37]<<16|x[pe|38]<<8|x[pe|39],x[pe|40]<<24|x[pe|41]<<16|x[pe|42]<<8|x[pe|43],x[pe|44]<<24|x[pe|45]<<16|x[pe|46]<<8|x[pe|47],x[pe|48]<<24|x[pe|49]<<16|x[pe|50]<<8|x[pe|51],x[pe|52]<<24|x[pe|53]<<16|x[pe|54]<<8|x[pe|55],x[pe|56]<<24|x[pe|57]<<16|x[pe|58]<<8|x[pe|59],x[pe|60]<<24|x[pe|61]<<16|x[pe|62]<<8|x[pe|63])}function T(pe){pe=pe|0,x[pe|0]=i>>>24,x[pe|1]=i>>>16&255,x[pe|2]=i>>>8&255,x[pe|3]=i&255,x[pe|4]=a>>>24,x[pe|5]=a>>>16&255,x[pe|6]=a>>>8&255,x[pe|7]=a&255,x[pe|8]=s>>>24,x[pe|9]=s>>>16&255,x[pe|10]=s>>>8&255,x[pe|11]=s&255,x[pe|12]=u>>>24,x[pe|13]=u>>>16&255,x[pe|14]=u>>>8&255,x[pe|15]=u&255,x[pe|16]=c>>>24,x[pe|17]=c>>>16&255,x[pe|18]=c>>>8&255,x[pe|19]=c&255}function M(){i=1732584193,a=4023233417,s=2562383102,u=271733878,c=3285377520,h=n=0}function A(pe,ye,de,ke,ie,be,Ie){pe=pe|0,ye=ye|0,de=de|0,ke=ke|0,ie=ie|0,be=be|0,Ie=Ie|0,i=pe,a=ye,s=de,u=ke,c=ie,h=be,n=Ie}function L(pe,ye){pe=pe|0,ye=ye|0;var de=0;if(pe&63)return-1;for(;(ye|0)>=64;)w(pe),pe=pe+64|0,ye=ye-64|0,de=de+64|0;return h=h+de|0,h>>>0>>0&&(n=n+1|0),de|0}function Y(pe,ye,de){pe=pe|0,ye=ye|0,de=de|0;var ke=0,ie=0;if(pe&63||~de&&de&31)return-1;if((ye|0)>=64){if(ke=L(pe,ye)|0,(ke|0)==-1)return-1;pe=pe+ke|0,ye=ye-ke|0}if(ke=ke+ye|0,h=h+ye|0,h>>>0>>0&&(n=n+1|0),x[pe|ye]=128,(ye|0)>=56){for(ie=ye+1|0;(ie|0)<64;ie=ie+1|0)x[pe|ie]=0;w(pe),ye=0,x[pe|0]=0}for(ie=ye+1|0;(ie|0)<59;ie=ie+1|0)x[pe|ie]=0;return x[pe|56]=n>>>21&255,x[pe|57]=n>>>13&255,x[pe|58]=n>>>5&255,x[pe|59]=n<<3&255|h>>>29,x[pe|60]=h>>>21&255,x[pe|61]=h>>>13&255,x[pe|62]=h>>>5&255,x[pe|63]=h<<3&255,w(pe),~de&&T(de),ke|0}function N(){i=p,a=d,s=v,u=m,c=g,h=64,n=0}function W(){i=y,a=b,s=k,u=O,c=S,h=64,n=0}function j(pe,ye,de,ke,ie,be,Ie,De,ae,ee,F,I,J,q,fe,Ce){pe=pe|0,ye=ye|0,de=de|0,ke=ke|0,ie=ie|0,be=be|0,Ie=Ie|0,De=De|0,ae=ae|0,ee=ee|0,F=F|0,I=I|0,J=J|0,q=q|0,fe=fe|0,Ce=Ce|0,M(),E(pe^1549556828,ye^1549556828,de^1549556828,ke^1549556828,ie^1549556828,be^1549556828,Ie^1549556828,De^1549556828,ae^1549556828,ee^1549556828,F^1549556828,I^1549556828,J^1549556828,q^1549556828,fe^1549556828,Ce^1549556828),y=i,b=a,k=s,O=u,S=c,M(),E(pe^909522486,ye^909522486,de^909522486,ke^909522486,ie^909522486,be^909522486,Ie^909522486,De^909522486,ae^909522486,ee^909522486,F^909522486,I^909522486,J^909522486,q^909522486,fe^909522486,Ce^909522486),p=i,d=a,v=s,m=u,g=c,h=64,n=0}function ue(pe,ye,de){pe=pe|0,ye=ye|0,de=de|0;var ke=0,ie=0,be=0,Ie=0,De=0,ae=0;return pe&63||~de&&de&31?-1:(ae=Y(pe,ye,-1)|0,ke=i,ie=a,be=s,Ie=u,De=c,W(),E(ke,ie,be,Ie,De,2147483648,0,0,0,0,0,0,0,0,0,672),~de&&T(de),ae|0)}function Te(pe,ye,de,ke,ie){pe=pe|0,ye=ye|0,de=de|0,ke=ke|0,ie=ie|0;var be=0,Ie=0,De=0,ae=0,ee=0,F=0,I=0,J=0,q=0,fe=0;if(pe&63||~ie&&ie&31)return-1;for(x[pe+ye|0]=de>>>24,x[pe+ye+1|0]=de>>>16&255,x[pe+ye+2|0]=de>>>8&255,x[pe+ye+3|0]=de&255,ue(pe,ye+4|0,-1)|0,be=F=i,Ie=I=a,De=J=s,ae=q=u,ee=fe=c,ke=ke-1|0;(ke|0)>0;)N(),E(F,I,J,q,fe,2147483648,0,0,0,0,0,0,0,0,0,672),F=i,I=a,J=s,q=u,fe=c,W(),E(F,I,J,q,fe,2147483648,0,0,0,0,0,0,0,0,0,672),F=i,I=a,J=s,q=u,fe=c,be=be^i,Ie=Ie^a,De=De^s,ae=ae^u,ee=ee^c,ke=ke-1|0;return i=be,a=Ie,s=De,u=ae,c=ee,~ie&&T(ie),0}return{reset:M,init:A,process:L,finish:Y,hmac_reset:N,hmac_init:j,hmac_finish:ue,pbkdf2_generate_block:Te}};class V6{constructor(){this.pos=0,this.len=0}reset(){const{asm:t}=this.acquire_asm();return this.result=null,this.pos=0,this.len=0,t.reset(),this}process(t){if(this.result!==null)throw new sy("state must be reset before processing new data");const{asm:r,heap:i}=this.acquire_asm();let a=this.pos,s=this.len,u=0,c=t.length,h=0;for(;c>0;)h=Yo(i,a+s,t,u,c),s+=h,u+=h,c-=h,h=r.process(a,s),a+=h,s-=h,s||(a=0);return this.pos=a,this.len=s,this}finish(){if(this.result!==null)throw new sy("state must be reset before processing new data");const{asm:t,heap:r}=this.acquire_asm();return t.finish(this.pos,this.len,0),this.result=new Uint8Array(this.HASH_SIZE),this.result.set(r.subarray(0,this.HASH_SIZE)),this.pos=0,this.len=0,this.release_asm(),this}}const XS=[],JS=[];class Xo extends V6{constructor(){super(),this.NAME="sha1",this.BLOCK_SIZE=64,this.HASH_SIZE=20,this.acquire_asm()}acquire_asm(){return this.heap!==void 0&&this.asm!==void 0||(this.heap=XS.pop()||W0(),this.asm=JS.pop()||U6({Uint8Array},null,this.heap.buffer),this.reset()),{heap:this.heap,asm:this.asm}}release_asm(){this.heap!==void 0&&this.asm!==void 0&&(XS.push(this.heap),JS.push(this.asm)),this.heap=void 0,this.asm=void 0}static bytes(t){return new Xo().process(t).finish().result}}Xo.NAME="sha1",Xo.heap_pool=[],Xo.asm_pool=[],Xo.asm_function=U6;const ZS=[],QS=[];class Zv extends V6{constructor(){super(),this.NAME="sha256",this.BLOCK_SIZE=64,this.HASH_SIZE=32,this.acquire_asm()}acquire_asm(){return this.heap!==void 0&&this.asm!==void 0||(this.heap=ZS.pop()||W0(),this.asm=QS.pop()||function(t,r,i){var a=0,s=0,u=0,c=0,h=0,n=0,p=0,d=0,v=0,m=0,g=0,y=0,b=0,k=0,O=0,S=0,x=0,E=0,w=0,T=0,M=0,A=0,L=0,Y=0,N=0,W=0,j=new t.Uint8Array(i);function ue(F,I,J,q,fe,Ce,X,H,re,Z,Oe,ve,U,xe,me,se){F=F|0,I=I|0,J=J|0,q=q|0,fe=fe|0,Ce=Ce|0,X=X|0,H=H|0,re=re|0,Z=Z|0,Oe=Oe|0,ve=ve|0,U=U|0,xe=xe|0,me=me|0,se=se|0;var B=0,V=0,G=0,te=0,oe=0,_e=0,ce=0,le=0;B=a,V=s,G=u,te=c,oe=h,_e=n,ce=p,le=d,le=F+le+(oe>>>6^oe>>>11^oe>>>25^oe<<26^oe<<21^oe<<7)+(ce^oe&(_e^ce))+1116352408|0,te=te+le|0,le=le+(B&V^G&(B^V))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0,ce=I+ce+(te>>>6^te>>>11^te>>>25^te<<26^te<<21^te<<7)+(_e^te&(oe^_e))+1899447441|0,G=G+ce|0,ce=ce+(le&B^V&(le^B))+(le>>>2^le>>>13^le>>>22^le<<30^le<<19^le<<10)|0,_e=J+_e+(G>>>6^G>>>11^G>>>25^G<<26^G<<21^G<<7)+(oe^G&(te^oe))+3049323471|0,V=V+_e|0,_e=_e+(ce&le^B&(ce^le))+(ce>>>2^ce>>>13^ce>>>22^ce<<30^ce<<19^ce<<10)|0,oe=q+oe+(V>>>6^V>>>11^V>>>25^V<<26^V<<21^V<<7)+(te^V&(G^te))+3921009573|0,B=B+oe|0,oe=oe+(_e&ce^le&(_e^ce))+(_e>>>2^_e>>>13^_e>>>22^_e<<30^_e<<19^_e<<10)|0,te=fe+te+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(G^B&(V^G))+961987163|0,le=le+te|0,te=te+(oe&_e^ce&(oe^_e))+(oe>>>2^oe>>>13^oe>>>22^oe<<30^oe<<19^oe<<10)|0,G=Ce+G+(le>>>6^le>>>11^le>>>25^le<<26^le<<21^le<<7)+(V^le&(B^V))+1508970993|0,ce=ce+G|0,G=G+(te&oe^_e&(te^oe))+(te>>>2^te>>>13^te>>>22^te<<30^te<<19^te<<10)|0,V=X+V+(ce>>>6^ce>>>11^ce>>>25^ce<<26^ce<<21^ce<<7)+(B^ce&(le^B))+2453635748|0,_e=_e+V|0,V=V+(G&te^oe&(G^te))+(G>>>2^G>>>13^G>>>22^G<<30^G<<19^G<<10)|0,B=H+B+(_e>>>6^_e>>>11^_e>>>25^_e<<26^_e<<21^_e<<7)+(le^_e&(ce^le))+2870763221|0,oe=oe+B|0,B=B+(V&G^te&(V^G))+(V>>>2^V>>>13^V>>>22^V<<30^V<<19^V<<10)|0,le=re+le+(oe>>>6^oe>>>11^oe>>>25^oe<<26^oe<<21^oe<<7)+(ce^oe&(_e^ce))+3624381080|0,te=te+le|0,le=le+(B&V^G&(B^V))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0,ce=Z+ce+(te>>>6^te>>>11^te>>>25^te<<26^te<<21^te<<7)+(_e^te&(oe^_e))+310598401|0,G=G+ce|0,ce=ce+(le&B^V&(le^B))+(le>>>2^le>>>13^le>>>22^le<<30^le<<19^le<<10)|0,_e=Oe+_e+(G>>>6^G>>>11^G>>>25^G<<26^G<<21^G<<7)+(oe^G&(te^oe))+607225278|0,V=V+_e|0,_e=_e+(ce&le^B&(ce^le))+(ce>>>2^ce>>>13^ce>>>22^ce<<30^ce<<19^ce<<10)|0,oe=ve+oe+(V>>>6^V>>>11^V>>>25^V<<26^V<<21^V<<7)+(te^V&(G^te))+1426881987|0,B=B+oe|0,oe=oe+(_e&ce^le&(_e^ce))+(_e>>>2^_e>>>13^_e>>>22^_e<<30^_e<<19^_e<<10)|0,te=U+te+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(G^B&(V^G))+1925078388|0,le=le+te|0,te=te+(oe&_e^ce&(oe^_e))+(oe>>>2^oe>>>13^oe>>>22^oe<<30^oe<<19^oe<<10)|0,G=xe+G+(le>>>6^le>>>11^le>>>25^le<<26^le<<21^le<<7)+(V^le&(B^V))+2162078206|0,ce=ce+G|0,G=G+(te&oe^_e&(te^oe))+(te>>>2^te>>>13^te>>>22^te<<30^te<<19^te<<10)|0,V=me+V+(ce>>>6^ce>>>11^ce>>>25^ce<<26^ce<<21^ce<<7)+(B^ce&(le^B))+2614888103|0,_e=_e+V|0,V=V+(G&te^oe&(G^te))+(G>>>2^G>>>13^G>>>22^G<<30^G<<19^G<<10)|0,B=se+B+(_e>>>6^_e>>>11^_e>>>25^_e<<26^_e<<21^_e<<7)+(le^_e&(ce^le))+3248222580|0,oe=oe+B|0,B=B+(V&G^te&(V^G))+(V>>>2^V>>>13^V>>>22^V<<30^V<<19^V<<10)|0,F=(I>>>7^I>>>18^I>>>3^I<<25^I<<14)+(me>>>17^me>>>19^me>>>10^me<<15^me<<13)+F+Z|0,le=F+le+(oe>>>6^oe>>>11^oe>>>25^oe<<26^oe<<21^oe<<7)+(ce^oe&(_e^ce))+3835390401|0,te=te+le|0,le=le+(B&V^G&(B^V))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0,I=(J>>>7^J>>>18^J>>>3^J<<25^J<<14)+(se>>>17^se>>>19^se>>>10^se<<15^se<<13)+I+Oe|0,ce=I+ce+(te>>>6^te>>>11^te>>>25^te<<26^te<<21^te<<7)+(_e^te&(oe^_e))+4022224774|0,G=G+ce|0,ce=ce+(le&B^V&(le^B))+(le>>>2^le>>>13^le>>>22^le<<30^le<<19^le<<10)|0,J=(q>>>7^q>>>18^q>>>3^q<<25^q<<14)+(F>>>17^F>>>19^F>>>10^F<<15^F<<13)+J+ve|0,_e=J+_e+(G>>>6^G>>>11^G>>>25^G<<26^G<<21^G<<7)+(oe^G&(te^oe))+264347078|0,V=V+_e|0,_e=_e+(ce&le^B&(ce^le))+(ce>>>2^ce>>>13^ce>>>22^ce<<30^ce<<19^ce<<10)|0,q=(fe>>>7^fe>>>18^fe>>>3^fe<<25^fe<<14)+(I>>>17^I>>>19^I>>>10^I<<15^I<<13)+q+U|0,oe=q+oe+(V>>>6^V>>>11^V>>>25^V<<26^V<<21^V<<7)+(te^V&(G^te))+604807628|0,B=B+oe|0,oe=oe+(_e&ce^le&(_e^ce))+(_e>>>2^_e>>>13^_e>>>22^_e<<30^_e<<19^_e<<10)|0,fe=(Ce>>>7^Ce>>>18^Ce>>>3^Ce<<25^Ce<<14)+(J>>>17^J>>>19^J>>>10^J<<15^J<<13)+fe+xe|0,te=fe+te+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(G^B&(V^G))+770255983|0,le=le+te|0,te=te+(oe&_e^ce&(oe^_e))+(oe>>>2^oe>>>13^oe>>>22^oe<<30^oe<<19^oe<<10)|0,Ce=(X>>>7^X>>>18^X>>>3^X<<25^X<<14)+(q>>>17^q>>>19^q>>>10^q<<15^q<<13)+Ce+me|0,G=Ce+G+(le>>>6^le>>>11^le>>>25^le<<26^le<<21^le<<7)+(V^le&(B^V))+1249150122|0,ce=ce+G|0,G=G+(te&oe^_e&(te^oe))+(te>>>2^te>>>13^te>>>22^te<<30^te<<19^te<<10)|0,X=(H>>>7^H>>>18^H>>>3^H<<25^H<<14)+(fe>>>17^fe>>>19^fe>>>10^fe<<15^fe<<13)+X+se|0,V=X+V+(ce>>>6^ce>>>11^ce>>>25^ce<<26^ce<<21^ce<<7)+(B^ce&(le^B))+1555081692|0,_e=_e+V|0,V=V+(G&te^oe&(G^te))+(G>>>2^G>>>13^G>>>22^G<<30^G<<19^G<<10)|0,H=(re>>>7^re>>>18^re>>>3^re<<25^re<<14)+(Ce>>>17^Ce>>>19^Ce>>>10^Ce<<15^Ce<<13)+H+F|0,B=H+B+(_e>>>6^_e>>>11^_e>>>25^_e<<26^_e<<21^_e<<7)+(le^_e&(ce^le))+1996064986|0,oe=oe+B|0,B=B+(V&G^te&(V^G))+(V>>>2^V>>>13^V>>>22^V<<30^V<<19^V<<10)|0,re=(Z>>>7^Z>>>18^Z>>>3^Z<<25^Z<<14)+(X>>>17^X>>>19^X>>>10^X<<15^X<<13)+re+I|0,le=re+le+(oe>>>6^oe>>>11^oe>>>25^oe<<26^oe<<21^oe<<7)+(ce^oe&(_e^ce))+2554220882|0,te=te+le|0,le=le+(B&V^G&(B^V))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0,Z=(Oe>>>7^Oe>>>18^Oe>>>3^Oe<<25^Oe<<14)+(H>>>17^H>>>19^H>>>10^H<<15^H<<13)+Z+J|0,ce=Z+ce+(te>>>6^te>>>11^te>>>25^te<<26^te<<21^te<<7)+(_e^te&(oe^_e))+2821834349|0,G=G+ce|0,ce=ce+(le&B^V&(le^B))+(le>>>2^le>>>13^le>>>22^le<<30^le<<19^le<<10)|0,Oe=(ve>>>7^ve>>>18^ve>>>3^ve<<25^ve<<14)+(re>>>17^re>>>19^re>>>10^re<<15^re<<13)+Oe+q|0,_e=Oe+_e+(G>>>6^G>>>11^G>>>25^G<<26^G<<21^G<<7)+(oe^G&(te^oe))+2952996808|0,V=V+_e|0,_e=_e+(ce&le^B&(ce^le))+(ce>>>2^ce>>>13^ce>>>22^ce<<30^ce<<19^ce<<10)|0,ve=(U>>>7^U>>>18^U>>>3^U<<25^U<<14)+(Z>>>17^Z>>>19^Z>>>10^Z<<15^Z<<13)+ve+fe|0,oe=ve+oe+(V>>>6^V>>>11^V>>>25^V<<26^V<<21^V<<7)+(te^V&(G^te))+3210313671|0,B=B+oe|0,oe=oe+(_e&ce^le&(_e^ce))+(_e>>>2^_e>>>13^_e>>>22^_e<<30^_e<<19^_e<<10)|0,U=(xe>>>7^xe>>>18^xe>>>3^xe<<25^xe<<14)+(Oe>>>17^Oe>>>19^Oe>>>10^Oe<<15^Oe<<13)+U+Ce|0,te=U+te+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(G^B&(V^G))+3336571891|0,le=le+te|0,te=te+(oe&_e^ce&(oe^_e))+(oe>>>2^oe>>>13^oe>>>22^oe<<30^oe<<19^oe<<10)|0,xe=(me>>>7^me>>>18^me>>>3^me<<25^me<<14)+(ve>>>17^ve>>>19^ve>>>10^ve<<15^ve<<13)+xe+X|0,G=xe+G+(le>>>6^le>>>11^le>>>25^le<<26^le<<21^le<<7)+(V^le&(B^V))+3584528711|0,ce=ce+G|0,G=G+(te&oe^_e&(te^oe))+(te>>>2^te>>>13^te>>>22^te<<30^te<<19^te<<10)|0,me=(se>>>7^se>>>18^se>>>3^se<<25^se<<14)+(U>>>17^U>>>19^U>>>10^U<<15^U<<13)+me+H|0,V=me+V+(ce>>>6^ce>>>11^ce>>>25^ce<<26^ce<<21^ce<<7)+(B^ce&(le^B))+113926993|0,_e=_e+V|0,V=V+(G&te^oe&(G^te))+(G>>>2^G>>>13^G>>>22^G<<30^G<<19^G<<10)|0,se=(F>>>7^F>>>18^F>>>3^F<<25^F<<14)+(xe>>>17^xe>>>19^xe>>>10^xe<<15^xe<<13)+se+re|0,B=se+B+(_e>>>6^_e>>>11^_e>>>25^_e<<26^_e<<21^_e<<7)+(le^_e&(ce^le))+338241895|0,oe=oe+B|0,B=B+(V&G^te&(V^G))+(V>>>2^V>>>13^V>>>22^V<<30^V<<19^V<<10)|0,F=(I>>>7^I>>>18^I>>>3^I<<25^I<<14)+(me>>>17^me>>>19^me>>>10^me<<15^me<<13)+F+Z|0,le=F+le+(oe>>>6^oe>>>11^oe>>>25^oe<<26^oe<<21^oe<<7)+(ce^oe&(_e^ce))+666307205|0,te=te+le|0,le=le+(B&V^G&(B^V))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0,I=(J>>>7^J>>>18^J>>>3^J<<25^J<<14)+(se>>>17^se>>>19^se>>>10^se<<15^se<<13)+I+Oe|0,ce=I+ce+(te>>>6^te>>>11^te>>>25^te<<26^te<<21^te<<7)+(_e^te&(oe^_e))+773529912|0,G=G+ce|0,ce=ce+(le&B^V&(le^B))+(le>>>2^le>>>13^le>>>22^le<<30^le<<19^le<<10)|0,J=(q>>>7^q>>>18^q>>>3^q<<25^q<<14)+(F>>>17^F>>>19^F>>>10^F<<15^F<<13)+J+ve|0,_e=J+_e+(G>>>6^G>>>11^G>>>25^G<<26^G<<21^G<<7)+(oe^G&(te^oe))+1294757372|0,V=V+_e|0,_e=_e+(ce&le^B&(ce^le))+(ce>>>2^ce>>>13^ce>>>22^ce<<30^ce<<19^ce<<10)|0,q=(fe>>>7^fe>>>18^fe>>>3^fe<<25^fe<<14)+(I>>>17^I>>>19^I>>>10^I<<15^I<<13)+q+U|0,oe=q+oe+(V>>>6^V>>>11^V>>>25^V<<26^V<<21^V<<7)+(te^V&(G^te))+1396182291|0,B=B+oe|0,oe=oe+(_e&ce^le&(_e^ce))+(_e>>>2^_e>>>13^_e>>>22^_e<<30^_e<<19^_e<<10)|0,fe=(Ce>>>7^Ce>>>18^Ce>>>3^Ce<<25^Ce<<14)+(J>>>17^J>>>19^J>>>10^J<<15^J<<13)+fe+xe|0,te=fe+te+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(G^B&(V^G))+1695183700|0,le=le+te|0,te=te+(oe&_e^ce&(oe^_e))+(oe>>>2^oe>>>13^oe>>>22^oe<<30^oe<<19^oe<<10)|0,Ce=(X>>>7^X>>>18^X>>>3^X<<25^X<<14)+(q>>>17^q>>>19^q>>>10^q<<15^q<<13)+Ce+me|0,G=Ce+G+(le>>>6^le>>>11^le>>>25^le<<26^le<<21^le<<7)+(V^le&(B^V))+1986661051|0,ce=ce+G|0,G=G+(te&oe^_e&(te^oe))+(te>>>2^te>>>13^te>>>22^te<<30^te<<19^te<<10)|0,X=(H>>>7^H>>>18^H>>>3^H<<25^H<<14)+(fe>>>17^fe>>>19^fe>>>10^fe<<15^fe<<13)+X+se|0,V=X+V+(ce>>>6^ce>>>11^ce>>>25^ce<<26^ce<<21^ce<<7)+(B^ce&(le^B))+2177026350|0,_e=_e+V|0,V=V+(G&te^oe&(G^te))+(G>>>2^G>>>13^G>>>22^G<<30^G<<19^G<<10)|0,H=(re>>>7^re>>>18^re>>>3^re<<25^re<<14)+(Ce>>>17^Ce>>>19^Ce>>>10^Ce<<15^Ce<<13)+H+F|0,B=H+B+(_e>>>6^_e>>>11^_e>>>25^_e<<26^_e<<21^_e<<7)+(le^_e&(ce^le))+2456956037|0,oe=oe+B|0,B=B+(V&G^te&(V^G))+(V>>>2^V>>>13^V>>>22^V<<30^V<<19^V<<10)|0,re=(Z>>>7^Z>>>18^Z>>>3^Z<<25^Z<<14)+(X>>>17^X>>>19^X>>>10^X<<15^X<<13)+re+I|0,le=re+le+(oe>>>6^oe>>>11^oe>>>25^oe<<26^oe<<21^oe<<7)+(ce^oe&(_e^ce))+2730485921|0,te=te+le|0,le=le+(B&V^G&(B^V))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0,Z=(Oe>>>7^Oe>>>18^Oe>>>3^Oe<<25^Oe<<14)+(H>>>17^H>>>19^H>>>10^H<<15^H<<13)+Z+J|0,ce=Z+ce+(te>>>6^te>>>11^te>>>25^te<<26^te<<21^te<<7)+(_e^te&(oe^_e))+2820302411|0,G=G+ce|0,ce=ce+(le&B^V&(le^B))+(le>>>2^le>>>13^le>>>22^le<<30^le<<19^le<<10)|0,Oe=(ve>>>7^ve>>>18^ve>>>3^ve<<25^ve<<14)+(re>>>17^re>>>19^re>>>10^re<<15^re<<13)+Oe+q|0,_e=Oe+_e+(G>>>6^G>>>11^G>>>25^G<<26^G<<21^G<<7)+(oe^G&(te^oe))+3259730800|0,V=V+_e|0,_e=_e+(ce&le^B&(ce^le))+(ce>>>2^ce>>>13^ce>>>22^ce<<30^ce<<19^ce<<10)|0,ve=(U>>>7^U>>>18^U>>>3^U<<25^U<<14)+(Z>>>17^Z>>>19^Z>>>10^Z<<15^Z<<13)+ve+fe|0,oe=ve+oe+(V>>>6^V>>>11^V>>>25^V<<26^V<<21^V<<7)+(te^V&(G^te))+3345764771|0,B=B+oe|0,oe=oe+(_e&ce^le&(_e^ce))+(_e>>>2^_e>>>13^_e>>>22^_e<<30^_e<<19^_e<<10)|0,U=(xe>>>7^xe>>>18^xe>>>3^xe<<25^xe<<14)+(Oe>>>17^Oe>>>19^Oe>>>10^Oe<<15^Oe<<13)+U+Ce|0,te=U+te+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(G^B&(V^G))+3516065817|0,le=le+te|0,te=te+(oe&_e^ce&(oe^_e))+(oe>>>2^oe>>>13^oe>>>22^oe<<30^oe<<19^oe<<10)|0,xe=(me>>>7^me>>>18^me>>>3^me<<25^me<<14)+(ve>>>17^ve>>>19^ve>>>10^ve<<15^ve<<13)+xe+X|0,G=xe+G+(le>>>6^le>>>11^le>>>25^le<<26^le<<21^le<<7)+(V^le&(B^V))+3600352804|0,ce=ce+G|0,G=G+(te&oe^_e&(te^oe))+(te>>>2^te>>>13^te>>>22^te<<30^te<<19^te<<10)|0,me=(se>>>7^se>>>18^se>>>3^se<<25^se<<14)+(U>>>17^U>>>19^U>>>10^U<<15^U<<13)+me+H|0,V=me+V+(ce>>>6^ce>>>11^ce>>>25^ce<<26^ce<<21^ce<<7)+(B^ce&(le^B))+4094571909|0,_e=_e+V|0,V=V+(G&te^oe&(G^te))+(G>>>2^G>>>13^G>>>22^G<<30^G<<19^G<<10)|0,se=(F>>>7^F>>>18^F>>>3^F<<25^F<<14)+(xe>>>17^xe>>>19^xe>>>10^xe<<15^xe<<13)+se+re|0,B=se+B+(_e>>>6^_e>>>11^_e>>>25^_e<<26^_e<<21^_e<<7)+(le^_e&(ce^le))+275423344|0,oe=oe+B|0,B=B+(V&G^te&(V^G))+(V>>>2^V>>>13^V>>>22^V<<30^V<<19^V<<10)|0,F=(I>>>7^I>>>18^I>>>3^I<<25^I<<14)+(me>>>17^me>>>19^me>>>10^me<<15^me<<13)+F+Z|0,le=F+le+(oe>>>6^oe>>>11^oe>>>25^oe<<26^oe<<21^oe<<7)+(ce^oe&(_e^ce))+430227734|0,te=te+le|0,le=le+(B&V^G&(B^V))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0,I=(J>>>7^J>>>18^J>>>3^J<<25^J<<14)+(se>>>17^se>>>19^se>>>10^se<<15^se<<13)+I+Oe|0,ce=I+ce+(te>>>6^te>>>11^te>>>25^te<<26^te<<21^te<<7)+(_e^te&(oe^_e))+506948616|0,G=G+ce|0,ce=ce+(le&B^V&(le^B))+(le>>>2^le>>>13^le>>>22^le<<30^le<<19^le<<10)|0,J=(q>>>7^q>>>18^q>>>3^q<<25^q<<14)+(F>>>17^F>>>19^F>>>10^F<<15^F<<13)+J+ve|0,_e=J+_e+(G>>>6^G>>>11^G>>>25^G<<26^G<<21^G<<7)+(oe^G&(te^oe))+659060556|0,V=V+_e|0,_e=_e+(ce&le^B&(ce^le))+(ce>>>2^ce>>>13^ce>>>22^ce<<30^ce<<19^ce<<10)|0,q=(fe>>>7^fe>>>18^fe>>>3^fe<<25^fe<<14)+(I>>>17^I>>>19^I>>>10^I<<15^I<<13)+q+U|0,oe=q+oe+(V>>>6^V>>>11^V>>>25^V<<26^V<<21^V<<7)+(te^V&(G^te))+883997877|0,B=B+oe|0,oe=oe+(_e&ce^le&(_e^ce))+(_e>>>2^_e>>>13^_e>>>22^_e<<30^_e<<19^_e<<10)|0,fe=(Ce>>>7^Ce>>>18^Ce>>>3^Ce<<25^Ce<<14)+(J>>>17^J>>>19^J>>>10^J<<15^J<<13)+fe+xe|0,te=fe+te+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(G^B&(V^G))+958139571|0,le=le+te|0,te=te+(oe&_e^ce&(oe^_e))+(oe>>>2^oe>>>13^oe>>>22^oe<<30^oe<<19^oe<<10)|0,Ce=(X>>>7^X>>>18^X>>>3^X<<25^X<<14)+(q>>>17^q>>>19^q>>>10^q<<15^q<<13)+Ce+me|0,G=Ce+G+(le>>>6^le>>>11^le>>>25^le<<26^le<<21^le<<7)+(V^le&(B^V))+1322822218|0,ce=ce+G|0,G=G+(te&oe^_e&(te^oe))+(te>>>2^te>>>13^te>>>22^te<<30^te<<19^te<<10)|0,X=(H>>>7^H>>>18^H>>>3^H<<25^H<<14)+(fe>>>17^fe>>>19^fe>>>10^fe<<15^fe<<13)+X+se|0,V=X+V+(ce>>>6^ce>>>11^ce>>>25^ce<<26^ce<<21^ce<<7)+(B^ce&(le^B))+1537002063|0,_e=_e+V|0,V=V+(G&te^oe&(G^te))+(G>>>2^G>>>13^G>>>22^G<<30^G<<19^G<<10)|0,H=(re>>>7^re>>>18^re>>>3^re<<25^re<<14)+(Ce>>>17^Ce>>>19^Ce>>>10^Ce<<15^Ce<<13)+H+F|0,B=H+B+(_e>>>6^_e>>>11^_e>>>25^_e<<26^_e<<21^_e<<7)+(le^_e&(ce^le))+1747873779|0,oe=oe+B|0,B=B+(V&G^te&(V^G))+(V>>>2^V>>>13^V>>>22^V<<30^V<<19^V<<10)|0,re=(Z>>>7^Z>>>18^Z>>>3^Z<<25^Z<<14)+(X>>>17^X>>>19^X>>>10^X<<15^X<<13)+re+I|0,le=re+le+(oe>>>6^oe>>>11^oe>>>25^oe<<26^oe<<21^oe<<7)+(ce^oe&(_e^ce))+1955562222|0,te=te+le|0,le=le+(B&V^G&(B^V))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0,Z=(Oe>>>7^Oe>>>18^Oe>>>3^Oe<<25^Oe<<14)+(H>>>17^H>>>19^H>>>10^H<<15^H<<13)+Z+J|0,ce=Z+ce+(te>>>6^te>>>11^te>>>25^te<<26^te<<21^te<<7)+(_e^te&(oe^_e))+2024104815|0,G=G+ce|0,ce=ce+(le&B^V&(le^B))+(le>>>2^le>>>13^le>>>22^le<<30^le<<19^le<<10)|0,Oe=(ve>>>7^ve>>>18^ve>>>3^ve<<25^ve<<14)+(re>>>17^re>>>19^re>>>10^re<<15^re<<13)+Oe+q|0,_e=Oe+_e+(G>>>6^G>>>11^G>>>25^G<<26^G<<21^G<<7)+(oe^G&(te^oe))+2227730452|0,V=V+_e|0,_e=_e+(ce&le^B&(ce^le))+(ce>>>2^ce>>>13^ce>>>22^ce<<30^ce<<19^ce<<10)|0,ve=(U>>>7^U>>>18^U>>>3^U<<25^U<<14)+(Z>>>17^Z>>>19^Z>>>10^Z<<15^Z<<13)+ve+fe|0,oe=ve+oe+(V>>>6^V>>>11^V>>>25^V<<26^V<<21^V<<7)+(te^V&(G^te))+2361852424|0,B=B+oe|0,oe=oe+(_e&ce^le&(_e^ce))+(_e>>>2^_e>>>13^_e>>>22^_e<<30^_e<<19^_e<<10)|0,U=(xe>>>7^xe>>>18^xe>>>3^xe<<25^xe<<14)+(Oe>>>17^Oe>>>19^Oe>>>10^Oe<<15^Oe<<13)+U+Ce|0,te=U+te+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(G^B&(V^G))+2428436474|0,le=le+te|0,te=te+(oe&_e^ce&(oe^_e))+(oe>>>2^oe>>>13^oe>>>22^oe<<30^oe<<19^oe<<10)|0,xe=(me>>>7^me>>>18^me>>>3^me<<25^me<<14)+(ve>>>17^ve>>>19^ve>>>10^ve<<15^ve<<13)+xe+X|0,G=xe+G+(le>>>6^le>>>11^le>>>25^le<<26^le<<21^le<<7)+(V^le&(B^V))+2756734187|0,ce=ce+G|0,G=G+(te&oe^_e&(te^oe))+(te>>>2^te>>>13^te>>>22^te<<30^te<<19^te<<10)|0,me=(se>>>7^se>>>18^se>>>3^se<<25^se<<14)+(U>>>17^U>>>19^U>>>10^U<<15^U<<13)+me+H|0,V=me+V+(ce>>>6^ce>>>11^ce>>>25^ce<<26^ce<<21^ce<<7)+(B^ce&(le^B))+3204031479|0,_e=_e+V|0,V=V+(G&te^oe&(G^te))+(G>>>2^G>>>13^G>>>22^G<<30^G<<19^G<<10)|0,se=(F>>>7^F>>>18^F>>>3^F<<25^F<<14)+(xe>>>17^xe>>>19^xe>>>10^xe<<15^xe<<13)+se+re|0,B=se+B+(_e>>>6^_e>>>11^_e>>>25^_e<<26^_e<<21^_e<<7)+(le^_e&(ce^le))+3329325298|0,oe=oe+B|0,B=B+(V&G^te&(V^G))+(V>>>2^V>>>13^V>>>22^V<<30^V<<19^V<<10)|0,a=a+B|0,s=s+V|0,u=u+G|0,c=c+te|0,h=h+oe|0,n=n+_e|0,p=p+ce|0,d=d+le|0}function Te(F){F=F|0,ue(j[F|0]<<24|j[F|1]<<16|j[F|2]<<8|j[F|3],j[F|4]<<24|j[F|5]<<16|j[F|6]<<8|j[F|7],j[F|8]<<24|j[F|9]<<16|j[F|10]<<8|j[F|11],j[F|12]<<24|j[F|13]<<16|j[F|14]<<8|j[F|15],j[F|16]<<24|j[F|17]<<16|j[F|18]<<8|j[F|19],j[F|20]<<24|j[F|21]<<16|j[F|22]<<8|j[F|23],j[F|24]<<24|j[F|25]<<16|j[F|26]<<8|j[F|27],j[F|28]<<24|j[F|29]<<16|j[F|30]<<8|j[F|31],j[F|32]<<24|j[F|33]<<16|j[F|34]<<8|j[F|35],j[F|36]<<24|j[F|37]<<16|j[F|38]<<8|j[F|39],j[F|40]<<24|j[F|41]<<16|j[F|42]<<8|j[F|43],j[F|44]<<24|j[F|45]<<16|j[F|46]<<8|j[F|47],j[F|48]<<24|j[F|49]<<16|j[F|50]<<8|j[F|51],j[F|52]<<24|j[F|53]<<16|j[F|54]<<8|j[F|55],j[F|56]<<24|j[F|57]<<16|j[F|58]<<8|j[F|59],j[F|60]<<24|j[F|61]<<16|j[F|62]<<8|j[F|63])}function pe(F){F=F|0,j[F|0]=a>>>24,j[F|1]=a>>>16&255,j[F|2]=a>>>8&255,j[F|3]=a&255,j[F|4]=s>>>24,j[F|5]=s>>>16&255,j[F|6]=s>>>8&255,j[F|7]=s&255,j[F|8]=u>>>24,j[F|9]=u>>>16&255,j[F|10]=u>>>8&255,j[F|11]=u&255,j[F|12]=c>>>24,j[F|13]=c>>>16&255,j[F|14]=c>>>8&255,j[F|15]=c&255,j[F|16]=h>>>24,j[F|17]=h>>>16&255,j[F|18]=h>>>8&255,j[F|19]=h&255,j[F|20]=n>>>24,j[F|21]=n>>>16&255,j[F|22]=n>>>8&255,j[F|23]=n&255,j[F|24]=p>>>24,j[F|25]=p>>>16&255,j[F|26]=p>>>8&255,j[F|27]=p&255,j[F|28]=d>>>24,j[F|29]=d>>>16&255,j[F|30]=d>>>8&255,j[F|31]=d&255}function ye(){a=1779033703,s=3144134277,u=1013904242,c=2773480762,h=1359893119,n=2600822924,p=528734635,d=1541459225,v=m=0}function de(F,I,J,q,fe,Ce,X,H,re,Z){F=F|0,I=I|0,J=J|0,q=q|0,fe=fe|0,Ce=Ce|0,X=X|0,H=H|0,re=re|0,Z=Z|0,a=F,s=I,u=J,c=q,h=fe,n=Ce,p=X,d=H,v=re,m=Z}function ke(F,I){F=F|0,I=I|0;var J=0;if(F&63)return-1;for(;(I|0)>=64;)Te(F),F=F+64|0,I=I-64|0,J=J+64|0;return v=v+J|0,v>>>0>>0&&(m=m+1|0),J|0}function ie(F,I,J){F=F|0,I=I|0,J=J|0;var q=0,fe=0;if(F&63||~J&&J&31)return-1;if((I|0)>=64){if(q=ke(F,I)|0,(q|0)==-1)return-1;F=F+q|0,I=I-q|0}if(q=q+I|0,v=v+I|0,v>>>0>>0&&(m=m+1|0),j[F|I]=128,(I|0)>=56){for(fe=I+1|0;(fe|0)<64;fe=fe+1|0)j[F|fe]=0;Te(F),I=0,j[F|0]=0}for(fe=I+1|0;(fe|0)<59;fe=fe+1|0)j[F|fe]=0;return j[F|56]=m>>>21&255,j[F|57]=m>>>13&255,j[F|58]=m>>>5&255,j[F|59]=m<<3&255|v>>>29,j[F|60]=v>>>21&255,j[F|61]=v>>>13&255,j[F|62]=v>>>5&255,j[F|63]=v<<3&255,Te(F),~J&&pe(J),q|0}function be(){a=g,s=y,u=b,c=k,h=O,n=S,p=x,d=E,v=64,m=0}function Ie(){a=w,s=T,u=M,c=A,h=L,n=Y,p=N,d=W,v=64,m=0}function De(F,I,J,q,fe,Ce,X,H,re,Z,Oe,ve,U,xe,me,se){F=F|0,I=I|0,J=J|0,q=q|0,fe=fe|0,Ce=Ce|0,X=X|0,H=H|0,re=re|0,Z=Z|0,Oe=Oe|0,ve=ve|0,U=U|0,xe=xe|0,me=me|0,se=se|0,ye(),ue(F^1549556828,I^1549556828,J^1549556828,q^1549556828,fe^1549556828,Ce^1549556828,X^1549556828,H^1549556828,re^1549556828,Z^1549556828,Oe^1549556828,ve^1549556828,U^1549556828,xe^1549556828,me^1549556828,se^1549556828),w=a,T=s,M=u,A=c,L=h,Y=n,N=p,W=d,ye(),ue(F^909522486,I^909522486,J^909522486,q^909522486,fe^909522486,Ce^909522486,X^909522486,H^909522486,re^909522486,Z^909522486,Oe^909522486,ve^909522486,U^909522486,xe^909522486,me^909522486,se^909522486),g=a,y=s,b=u,k=c,O=h,S=n,x=p,E=d,v=64,m=0}function ae(F,I,J){F=F|0,I=I|0,J=J|0;var q=0,fe=0,Ce=0,X=0,H=0,re=0,Z=0,Oe=0,ve=0;return F&63||~J&&J&31?-1:(ve=ie(F,I,-1)|0,q=a,fe=s,Ce=u,X=c,H=h,re=n,Z=p,Oe=d,Ie(),ue(q,fe,Ce,X,H,re,Z,Oe,2147483648,0,0,0,0,0,0,768),~J&&pe(J),ve|0)}function ee(F,I,J,q,fe){F=F|0,I=I|0,J=J|0,q=q|0,fe=fe|0;var Ce=0,X=0,H=0,re=0,Z=0,Oe=0,ve=0,U=0,xe=0,me=0,se=0,B=0,V=0,G=0,te=0,oe=0;if(F&63||~fe&&fe&31)return-1;for(j[F+I|0]=J>>>24,j[F+I+1|0]=J>>>16&255,j[F+I+2|0]=J>>>8&255,j[F+I+3|0]=J&255,ae(F,I+4|0,-1)|0,Ce=xe=a,X=me=s,H=se=u,re=B=c,Z=V=h,Oe=G=n,ve=te=p,U=oe=d,q=q-1|0;(q|0)>0;)be(),ue(xe,me,se,B,V,G,te,oe,2147483648,0,0,0,0,0,0,768),xe=a,me=s,se=u,B=c,V=h,G=n,te=p,oe=d,Ie(),ue(xe,me,se,B,V,G,te,oe,2147483648,0,0,0,0,0,0,768),xe=a,me=s,se=u,B=c,V=h,G=n,te=p,oe=d,Ce=Ce^a,X=X^s,H=H^u,re=re^c,Z=Z^h,Oe=Oe^n,ve=ve^p,U=U^d,q=q-1|0;return a=Ce,s=X,u=H,c=re,h=Z,n=Oe,p=ve,d=U,~fe&&pe(fe),0}return{reset:ye,init:de,process:ke,finish:ie,hmac_reset:be,hmac_init:De,hmac_finish:ae,pbkdf2_generate_block:ee}}({Uint8Array},null,this.heap.buffer),this.reset()),{heap:this.heap,asm:this.asm}}release_asm(){this.heap!==void 0&&this.asm!==void 0&&(ZS.push(this.heap),QS.push(this.asm)),this.heap=void 0,this.asm=void 0}static bytes(t){return new Zv().process(t).finish().result}}Zv.NAME="sha256";var Qv=W6;function W6(e,t){if(!e)throw Error(t||"Assertion failed")}W6.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)};var lZ=Ki!==void 0?Ki:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function H0(e,t){return e(t={exports:{}},t.exports),t.exports}function qj(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var eU=H0(function(e){e.exports=typeof Object.create=="function"?function(t,r){t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}),tU=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(typeof e=="string")if(t){if(t==="hex")for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>8,u=255&a;s?r.push(s,u):r.push(u)}else for(i=0;i>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}var rU=function(e,t){for(var r="",i=0;i>>0}return s},aU=function(e,t){for(var r=Array(4*e.length),i=0,a=0;i>>24,r[a+1]=s>>>16&255,r[a+2]=s>>>8&255,r[a+3]=255&s):(r[a+3]=s>>>24,r[a+2]=s>>>16&255,r[a+1]=s>>>8&255,r[a]=255&s)}return r},Tn={inherits:eU,toArray:tU,toHex:nU,htonl:K6,toHex32:rU,zero2:H6,zero8:G6,join32:iU,split32:aU,rotr32:function(e,t){return e>>>t|e<<32-t},rotl32:function(e,t){return e<>>32-t},sum32:function(e,t){return e+t>>>0},sum32_3:function(e,t,r){return e+t+r>>>0},sum32_4:function(e,t,r,i){return e+t+r+i>>>0},sum32_5:function(e,t,r,i,a){return e+t+r+i+a>>>0},sum64:function(e,t,r,i){var a=e[t],s=i+e[t+1]>>>0,u=(s>>0,e[t+1]=s},sum64_hi:function(e,t,r,i){return(t+i>>>0>>0},sum64_lo:function(e,t,r,i){return t+i>>>0},sum64_4_hi:function(e,t,r,i,a,s,u,c){var h=0,n=t;return h+=(n=n+i>>>0)>>0)>>0)>>0},sum64_4_lo:function(e,t,r,i,a,s,u,c){return t+i+s+c>>>0},sum64_5_hi:function(e,t,r,i,a,s,u,c,h,n){var p=0,d=t;return p+=(d=d+i>>>0)>>0)>>0)>>0)>>0},sum64_5_lo:function(e,t,r,i,a,s,u,c,h,n){return t+i+s+c+n>>>0},rotr64_hi:function(e,t,r){return(t<<32-r|e>>>r)>>>0},rotr64_lo:function(e,t,r){return(e<<32-r|t>>>r)>>>0},shr64_hi:function(e,t,r){return e>>>r},shr64_lo:function(e,t,r){return(e<<32-r|t>>>r)>>>0}};function kp(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var sU=kp;kp.prototype.update=function(e,t){if(e=Tn.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),this.pending.length===0&&(this.pending=null),e=Tn.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,i[a++]=e>>>16&255,i[a++]=e>>>8&255,i[a++]=255&e}else for(i[a++]=255&e,i[a++]=e>>>8&255,i[a++]=e>>>16&255,i[a++]=e>>>24&255,i[a++]=0,i[a++]=0,i[a++]=0,i[a++]=0,s=8;s>>3},g1_256:function(e){return Na(e,17)^Na(e,19)^e>>>10}},da=Tn.sum32,lU=Tn.sum32_4,uU=Tn.sum32_5,cU=$u.ch32,dU=$u.maj32,fU=$u.s0_256,hU=$u.s1_256,pU=$u.g0_256,vU=$u.g1_256,Z6=G0.BlockHash,mU=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function Va(){if(!(this instanceof Va))return new Va;Z6.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=mU,this.W=Array(64)}Tn.inherits(Va,Z6);var Q6=Va;function Cs(){if(!(this instanceof Cs))return new Cs;Q6.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}Va.blockSize=512,Va.outSize=256,Va.hmacStrength=192,Va.padLength=64,Va.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i>>32-a,r)}function Xr(e,t,r,i,a,s,u){return em(t&r|~t&i,e,t,a,s,u)}function Jr(e,t,r,i,a,s,u){return em(t&i|r&~i,e,t,a,s,u)}function Zr(e,t,r,i,a,s,u){return em(t^r^i,e,t,a,s,u)}function Qr(e,t,r,i,a,s,u){return em(r^(t|~i),e,t,a,s,u)}function UU(e){const t=[];let r;for(r=0;r<64;r+=4)t[r>>2]=e.charCodeAt(r)+(e.charCodeAt(r+1)<<8)+(e.charCodeAt(r+2)<<16)+(e.charCodeAt(r+3)<<24);return t}const n5="0123456789abcdef".split("");function VU(e){let t="",r=0;for(;r<4;r++)t+=n5[e>>8*r+4&15]+n5[e>>8*r&15];return t}function to(e,t){return e+t&4294967295}const sv=Pe.getWebCrypto(),ov=Pe.getNodeCrypto(),WU=ov&&ov.getHashes();function Bo(e){if(ov&&WU.includes(e))return async function(t){const r=ov.createHash(e);return fr(t,i=>{r.update(i)},()=>new Uint8Array(r.digest()))}}function Wh(e,t){return async function(r,i=Nt){if(mr(r)&&(r=await gr(r)),!Pe.isStream(r)&&sv&&t&&r.length>=i.minBytesForWebCrypto)return new Uint8Array(await sv.digest(t,r));const a=e();return fr(r,s=>{a.update(s)},()=>new Uint8Array(a.digest()))}}function r5(e,t){return async function(r,i=Nt){if(mr(r)&&(r=await gr(r)),Pe.isStream(r)){const a=new e;return fr(r,s=>{a.process(s)},()=>a.finish().result)}return sv&&t&&r.length>=i.minBytesForWebCrypto?new Uint8Array(await sv.digest(t,r)):e.bytes(r)}}const Fo={md5:Bo("md5")||async function(e){const t=function(r){const i=r.length,a=[1732584193,-271733879,-1732584194,271733878];let s;for(s=64;s<=r.length;s+=64)B_(a,UU(r.substring(s-64,s)));r=r.substring(s-64);const u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(s=0;s>2]|=r.charCodeAt(s)<<(s%4<<3);if(u[s>>2]|=128<<(s%4<<3),s>55)for(B_(a,u),s=0;s<16;s++)u[s]=0;return u[14]=8*i,B_(a,u),a}(Pe.uint8ArrayToString(e));return Pe.hexToUint8Array(function(r){for(let i=0;inew Uint8Array(b.update(k)))}(e,t,r,i);if(s.substr(0,3)==="aes")return function(d,v,m,g,y){if(Pe.getWebCrypto()&&v.length!==24&&!Pe.isStream(m)&&m.length>=3e3*y.minBytesForWebCrypto)return async function(k,O,S,x){const E="AES-CBC",w=await i5.importKey("raw",O,{name:E},!1,["encrypt"]),{blockSize:T}=uo(k),M=Pe.concatUint8Array([new Uint8Array(T),S]),A=new Uint8Array(await i5.encrypt({name:E,iv:x},w,M)).subarray(0,S.length);return function(L,Y){for(let N=0;Nb.aes.AES_Encrypt_process(k),()=>b.aes.AES_Encrypt_finish())}(e,t,r,i,a);const u=new(uo(e))(t),c=u.blockSize,h=i.slice();let n=new Uint8Array;const p=d=>{d&&(n=Pe.concatUint8Array([n,d]));const v=new Uint8Array(n.length);let m,g=0;for(;d?n.length>=c:n.length;){const y=u.encrypt(h);for(m=0;mnew Uint8Array(y.update(b)))}(e,t,r,i);if(a.substr(0,3)==="aes")return function(p,d,v,m){if(Pe.isStream(v)){const g=new fu(d,m);return fr(v,y=>g.aes.AES_Decrypt_process(y),()=>g.aes.AES_Decrypt_finish())}return fu.decrypt(v,d,m)}(0,t,r,i);const s=new(uo(e))(t),u=s.blockSize;let c=i,h=new Uint8Array;const n=p=>{p&&(h=Pe.concatUint8Array([h,p]));const d=new Uint8Array(h.length);let v,m=0;for(;p?h.length>=u:h.length;){const g=s.encrypt(c);for(c=h,v=0;v48)throw new Ds("illegal counter size");let s=Math.pow(2,i)-1;a.set_mask(0,0,s/4294967296|0,0|s)}else i=48,a.set_mask(0,0,65535,4294967295);if(t===void 0)throw Error("nonce is required");{let s=t.length;if(!s||s>16)throw new Ds("illegal nonce size");let u=new DataView(new ArrayBuffer(16));new Uint8Array(u.buffer).set(t),a.set_nonce(u.getUint32(0),u.getUint32(4),u.getUint32(8),u.getUint32(12))}if(r!==void 0){if(r<0||r>=Math.pow(2,i))throw new Ds("illegal counter value");a.set_counter(0,0,r/4294967296|0,0|r)}}}class cv{static encrypt(t,r,i=!0,a){return new cv(r,a,i).encrypt(t)}static decrypt(t,r,i=!0,a){return new cv(r,a,i).decrypt(t)}constructor(t,r,i=!0,a){this.aes=a||new Td(t,r,i,"CBC")}encrypt(t){return _o(this.aes.AES_Encrypt_process(t),this.aes.AES_Encrypt_finish())}decrypt(t){return _o(this.aes.AES_Decrypt_process(t),this.aes.AES_Decrypt_finish())}}const a5=Pe.getWebCrypto(),HU=Pe.getNodeCrypto(),ys=16;function s5(e,t){const r=e.length-ys;for(let i=0;i>3),17+(m>>3)),8-(7&m)).subarray(1),k=new Uint8Array(pi),O=new Uint8Array(h.length+Ys);let S,x=0;for(S=0;S16)throw new Ds("illegal tagSize value");const h=r.length||0,n=new Uint8Array(16);h!==12?(this._gcm_mac_process(r),c[0]=0,c[1]=0,c[2]=0,c[3]=0,c[4]=0,c[5]=0,c[6]=0,c[7]=0,c[8]=0,c[9]=0,c[10]=0,c[11]=h>>>29,c[12]=h>>>21&255,c[13]=h>>>13&255,c[14]=h>>>5&255,c[15]=h<<3&255,u.mac(En.MAC.GCM,En.HEAP_DATA,16),u.get_iv(En.HEAP_DATA),u.set_iv(0,0,0,0),n.set(c.subarray(0,16))):(n.set(r),n[15]=1);const p=new DataView(n.buffer);if(this.gamma0=p.getUint32(12),u.set_nonce(p.getUint32(0),p.getUint32(4),p.getUint32(8),0),u.set_mask(0,0,0,4294967295),i!==void 0){if(i.length>z_)throw new Ds("illegal adata length");i.length?(this.adata=i,this._gcm_mac_process(i)):this.adata=void 0}else this.adata=void 0;if(this.counter<1||this.counter>4294967295)throw new RangeError("counter must be a positive 32-bit integer");u.set_counter(0,0,0,this.gamma0+this.counter|0)}static encrypt(t,r,i,a,s){return new Jo(r,i,a,s).encrypt(t)}static decrypt(t,r,i,a,s){return new Jo(r,i,a,s).decrypt(t)}encrypt(t){return this.AES_GCM_encrypt(t)}decrypt(t){return this.AES_GCM_decrypt(t)}AES_GCM_Encrypt_process(t){let r=0,i=t.length||0,{asm:a,heap:s}=this.aes.acquire_asm(),u=this.counter,c=this.aes.pos,h=this.aes.len,n=0,p=h+i&-16,d=0;if((u-1<<4)+h+i>z_)throw new RangeError("counter overflow");const v=new Uint8Array(p);for(;i>0;)d=Yo(s,c+h,t,r,i),h+=d,r+=d,i-=d,d=a.cipher(En.ENC.CTR,En.HEAP_DATA+c,h),d=a.mac(En.MAC.GCM,En.HEAP_DATA+c,d),d&&v.set(s.subarray(c,c+d),n),u+=d>>>4,n+=d,d>>29,r[4]=p>>>21,r[5]=p>>>13&255,r[6]=p>>>5&255,r[7]=p<<3&255,r[8]=r[9]=r[10]=0,r[11]=d>>>29,r[12]=d>>>21&255,r[13]=d>>>13&255,r[14]=d>>>5&255,r[15]=d<<3&255,t.mac(En.MAC.GCM,En.HEAP_DATA,16),t.get_iv(En.HEAP_DATA),t.set_counter(0,0,0,this.gamma0),t.cipher(En.ENC.CTR,En.HEAP_DATA,16),h.set(r.subarray(0,a),c),this.counter=1,this.aes.pos=0,this.aes.len=0,h}AES_GCM_Decrypt_process(t){let r=0,i=t.length||0,{asm:a,heap:s}=this.aes.acquire_asm(),u=this.counter,c=this.tagSize,h=this.aes.pos,n=this.aes.len,p=0,d=n+i>c?n+i-c&-16:0,v=n+i-d,m=0;if((u-1<<4)+n+i>z_)throw new RangeError("counter overflow");const g=new Uint8Array(d);for(;i>v;)m=Yo(s,h+n,t,r,i-v),n+=m,r+=m,i-=m,m=a.mac(En.MAC.GCM,En.HEAP_DATA+h,m),m=a.cipher(En.DEC.CTR,En.HEAP_DATA+h,m),m&&g.set(s.subarray(h,h+m),p),u+=m>>>4,p+=m,h=0,n=0;return i>0&&(n+=Yo(s,0,t,r,i)),this.counter=u,this.aes.pos=h,this.aes.len=n,g}AES_GCM_Decrypt_finish(){let{asm:t,heap:r}=this.aes.acquire_asm(),i=this.tagSize,a=this.adata,s=this.counter,u=this.aes.pos,c=this.aes.len,h=c-i;if(c>>29,r[4]=v>>>21,r[5]=v>>>13&255,r[6]=v>>>5&255,r[7]=v<<3&255,r[8]=r[9]=r[10]=0,r[11]=m>>>29,r[12]=m>>>21&255,r[13]=m>>>13&255,r[14]=m>>>5&255,r[15]=m<<3&255,t.mac(En.MAC.GCM,En.HEAP_DATA,16),t.get_iv(En.HEAP_DATA),t.set_counter(0,0,0,this.gamma0),t.cipher(En.ENC.CTR,En.HEAP_DATA,16);let g=0;for(let y=0;y0;){for(u=Yo(i,0,t,a,s),a+=u,s-=u;15&u;)i[u++]=0;r.mac(En.MAC.GCM,En.HEAP_DATA,u)}}}const j_=Pe.getWebCrypto(),c5=Pe.getNodeCrypto(),d5=Pe.getNodeBuffer(),tu=16,U_="AES-GCM";async function su(e,t){if(e!==he.symmetric.aes128&&e!==he.symmetric.aes192&&e!==he.symmetric.aes256)throw Error("GCM mode supports only AES cipher");if(Pe.getWebCrypto()&&t.length!==24){const r=await j_.importKey("raw",t,{name:U_},!1,["encrypt","decrypt"]);return{encrypt:async function(i,a,s=new Uint8Array){if(!i.length)return Jo.encrypt(i,t,a,s);const u=await j_.encrypt({name:U_,iv:a,additionalData:s,tagLength:8*tu},r,i);return new Uint8Array(u)},decrypt:async function(i,a,s=new Uint8Array){if(i.length===tu)return Jo.decrypt(i,t,a,s);const u=await j_.decrypt({name:U_,iv:a,additionalData:s,tagLength:8*tu},r,i);return new Uint8Array(u)}}}return Pe.getNodeCrypto()?{encrypt:async function(r,i,a=new Uint8Array){const s=new c5.createCipheriv("aes-"+8*t.length+"-gcm",t,i);s.setAAD(a);const u=d5.concat([s.update(r),s.final(),s.getAuthTag()]);return new Uint8Array(u)},decrypt:async function(r,i,a=new Uint8Array){const s=new c5.createDecipheriv("aes-"+8*t.length+"-gcm",t,i);s.setAAD(a),s.setAuthTag(r.slice(r.length-tu,r.length));const u=d5.concat([s.update(r.slice(0,r.length-tu)),s.final()]);return new Uint8Array(u)}}:{encrypt:async function(r,i,a){return Jo.encrypt(r,t,i,a)},decrypt:async function(r,i,a){return Jo.decrypt(r,t,i,a)}}}su.getNonce=function(e,t){const r=e.slice();for(let i=0;i>>8)-1}(ae,ee,F,I,32)}function g(ae,ee){var F;for(F=0;F<16;F++)ae[F]=0|ee[F]}function y(ae){var ee,F,I=1;for(ee=0;ee<16;ee++)F=ae[ee]+I+65535,I=Math.floor(F/65536),ae[ee]=F-65536*I;ae[0]+=I-1+37*(I-1)}function b(ae,ee,F){for(var I,J=~(F-1),q=0;q<16;q++)I=J&(ae[q]^ee[q]),ae[q]^=I,ee[q]^=I}function k(ae,ee){var F,I,J,q=r(),fe=r();for(F=0;F<16;F++)fe[F]=ee[F];for(y(fe),y(fe),y(fe),I=0;I<2;I++){for(q[0]=fe[0]-65517,F=1;F<15;F++)q[F]=fe[F]-65535-(q[F-1]>>16&1),q[F-1]&=65535;q[15]=fe[15]-32767-(q[14]>>16&1),J=q[15]>>16&1,q[14]&=65535,b(fe,q,1-J)}for(F=0;F<16;F++)ae[2*F]=255&fe[F],ae[2*F+1]=fe[F]>>8}function O(ae,ee){var F=new Uint8Array(32),I=new Uint8Array(32);return k(F,ae),k(I,ee),m(F,0,I,0)}function S(ae){var ee=new Uint8Array(32);return k(ee,ae),1&ee[0]}function x(ae,ee){var F;for(F=0;F<16;F++)ae[F]=ee[2*F]+(ee[2*F+1]<<8);ae[15]&=32767}function E(ae,ee,F){for(var I=0;I<16;I++)ae[I]=ee[I]+F[I]}function w(ae,ee,F){for(var I=0;I<16;I++)ae[I]=ee[I]-F[I]}function T(ae,ee,F){var I,J,q=0,fe=0,Ce=0,X=0,H=0,re=0,Z=0,Oe=0,ve=0,U=0,xe=0,me=0,se=0,B=0,V=0,G=0,te=0,oe=0,_e=0,ce=0,le=0,Ve=0,Je=0,gt=0,Pt=0,At=0,It=0,ht=0,Rt=0,Tt=0,dn=0,nn=F[0],Xt=F[1],Gt=F[2],Zt=F[3],Yt=F[4],un=F[5],qt=F[6],rt=F[7],at=F[8],xt=F[9],Ut=F[10],Ee=F[11],Be=F[12],Fe=F[13],Le=F[14],tt=F[15];q+=(I=ee[0])*nn,fe+=I*Xt,Ce+=I*Gt,X+=I*Zt,H+=I*Yt,re+=I*un,Z+=I*qt,Oe+=I*rt,ve+=I*at,U+=I*xt,xe+=I*Ut,me+=I*Ee,se+=I*Be,B+=I*Fe,V+=I*Le,G+=I*tt,fe+=(I=ee[1])*nn,Ce+=I*Xt,X+=I*Gt,H+=I*Zt,re+=I*Yt,Z+=I*un,Oe+=I*qt,ve+=I*rt,U+=I*at,xe+=I*xt,me+=I*Ut,se+=I*Ee,B+=I*Be,V+=I*Fe,G+=I*Le,te+=I*tt,Ce+=(I=ee[2])*nn,X+=I*Xt,H+=I*Gt,re+=I*Zt,Z+=I*Yt,Oe+=I*un,ve+=I*qt,U+=I*rt,xe+=I*at,me+=I*xt,se+=I*Ut,B+=I*Ee,V+=I*Be,G+=I*Fe,te+=I*Le,oe+=I*tt,X+=(I=ee[3])*nn,H+=I*Xt,re+=I*Gt,Z+=I*Zt,Oe+=I*Yt,ve+=I*un,U+=I*qt,xe+=I*rt,me+=I*at,se+=I*xt,B+=I*Ut,V+=I*Ee,G+=I*Be,te+=I*Fe,oe+=I*Le,_e+=I*tt,H+=(I=ee[4])*nn,re+=I*Xt,Z+=I*Gt,Oe+=I*Zt,ve+=I*Yt,U+=I*un,xe+=I*qt,me+=I*rt,se+=I*at,B+=I*xt,V+=I*Ut,G+=I*Ee,te+=I*Be,oe+=I*Fe,_e+=I*Le,ce+=I*tt,re+=(I=ee[5])*nn,Z+=I*Xt,Oe+=I*Gt,ve+=I*Zt,U+=I*Yt,xe+=I*un,me+=I*qt,se+=I*rt,B+=I*at,V+=I*xt,G+=I*Ut,te+=I*Ee,oe+=I*Be,_e+=I*Fe,ce+=I*Le,le+=I*tt,Z+=(I=ee[6])*nn,Oe+=I*Xt,ve+=I*Gt,U+=I*Zt,xe+=I*Yt,me+=I*un,se+=I*qt,B+=I*rt,V+=I*at,G+=I*xt,te+=I*Ut,oe+=I*Ee,_e+=I*Be,ce+=I*Fe,le+=I*Le,Ve+=I*tt,Oe+=(I=ee[7])*nn,ve+=I*Xt,U+=I*Gt,xe+=I*Zt,me+=I*Yt,se+=I*un,B+=I*qt,V+=I*rt,G+=I*at,te+=I*xt,oe+=I*Ut,_e+=I*Ee,ce+=I*Be,le+=I*Fe,Ve+=I*Le,Je+=I*tt,ve+=(I=ee[8])*nn,U+=I*Xt,xe+=I*Gt,me+=I*Zt,se+=I*Yt,B+=I*un,V+=I*qt,G+=I*rt,te+=I*at,oe+=I*xt,_e+=I*Ut,ce+=I*Ee,le+=I*Be,Ve+=I*Fe,Je+=I*Le,gt+=I*tt,U+=(I=ee[9])*nn,xe+=I*Xt,me+=I*Gt,se+=I*Zt,B+=I*Yt,V+=I*un,G+=I*qt,te+=I*rt,oe+=I*at,_e+=I*xt,ce+=I*Ut,le+=I*Ee,Ve+=I*Be,Je+=I*Fe,gt+=I*Le,Pt+=I*tt,xe+=(I=ee[10])*nn,me+=I*Xt,se+=I*Gt,B+=I*Zt,V+=I*Yt,G+=I*un,te+=I*qt,oe+=I*rt,_e+=I*at,ce+=I*xt,le+=I*Ut,Ve+=I*Ee,Je+=I*Be,gt+=I*Fe,Pt+=I*Le,At+=I*tt,me+=(I=ee[11])*nn,se+=I*Xt,B+=I*Gt,V+=I*Zt,G+=I*Yt,te+=I*un,oe+=I*qt,_e+=I*rt,ce+=I*at,le+=I*xt,Ve+=I*Ut,Je+=I*Ee,gt+=I*Be,Pt+=I*Fe,At+=I*Le,It+=I*tt,se+=(I=ee[12])*nn,B+=I*Xt,V+=I*Gt,G+=I*Zt,te+=I*Yt,oe+=I*un,_e+=I*qt,ce+=I*rt,le+=I*at,Ve+=I*xt,Je+=I*Ut,gt+=I*Ee,Pt+=I*Be,At+=I*Fe,It+=I*Le,ht+=I*tt,B+=(I=ee[13])*nn,V+=I*Xt,G+=I*Gt,te+=I*Zt,oe+=I*Yt,_e+=I*un,ce+=I*qt,le+=I*rt,Ve+=I*at,Je+=I*xt,gt+=I*Ut,Pt+=I*Ee,At+=I*Be,It+=I*Fe,ht+=I*Le,Rt+=I*tt,V+=(I=ee[14])*nn,G+=I*Xt,te+=I*Gt,oe+=I*Zt,_e+=I*Yt,ce+=I*un,le+=I*qt,Ve+=I*rt,Je+=I*at,gt+=I*xt,Pt+=I*Ut,At+=I*Ee,It+=I*Be,ht+=I*Fe,Rt+=I*Le,Tt+=I*tt,G+=(I=ee[15])*nn,fe+=38*(oe+=I*Gt),Ce+=38*(_e+=I*Zt),X+=38*(ce+=I*Yt),H+=38*(le+=I*un),re+=38*(Ve+=I*qt),Z+=38*(Je+=I*rt),Oe+=38*(gt+=I*at),ve+=38*(Pt+=I*xt),U+=38*(At+=I*Ut),xe+=38*(It+=I*Ee),me+=38*(ht+=I*Be),se+=38*(Rt+=I*Fe),B+=38*(Tt+=I*Le),V+=38*(dn+=I*tt),q=(I=(q+=38*(te+=I*Xt))+(J=1)+65535)-65536*(J=Math.floor(I/65536)),fe=(I=fe+J+65535)-65536*(J=Math.floor(I/65536)),Ce=(I=Ce+J+65535)-65536*(J=Math.floor(I/65536)),X=(I=X+J+65535)-65536*(J=Math.floor(I/65536)),H=(I=H+J+65535)-65536*(J=Math.floor(I/65536)),re=(I=re+J+65535)-65536*(J=Math.floor(I/65536)),Z=(I=Z+J+65535)-65536*(J=Math.floor(I/65536)),Oe=(I=Oe+J+65535)-65536*(J=Math.floor(I/65536)),ve=(I=ve+J+65535)-65536*(J=Math.floor(I/65536)),U=(I=U+J+65535)-65536*(J=Math.floor(I/65536)),xe=(I=xe+J+65535)-65536*(J=Math.floor(I/65536)),me=(I=me+J+65535)-65536*(J=Math.floor(I/65536)),se=(I=se+J+65535)-65536*(J=Math.floor(I/65536)),B=(I=B+J+65535)-65536*(J=Math.floor(I/65536)),V=(I=V+J+65535)-65536*(J=Math.floor(I/65536)),G=(I=G+J+65535)-65536*(J=Math.floor(I/65536)),q=(I=(q+=J-1+37*(J-1))+(J=1)+65535)-65536*(J=Math.floor(I/65536)),fe=(I=fe+J+65535)-65536*(J=Math.floor(I/65536)),Ce=(I=Ce+J+65535)-65536*(J=Math.floor(I/65536)),X=(I=X+J+65535)-65536*(J=Math.floor(I/65536)),H=(I=H+J+65535)-65536*(J=Math.floor(I/65536)),re=(I=re+J+65535)-65536*(J=Math.floor(I/65536)),Z=(I=Z+J+65535)-65536*(J=Math.floor(I/65536)),Oe=(I=Oe+J+65535)-65536*(J=Math.floor(I/65536)),ve=(I=ve+J+65535)-65536*(J=Math.floor(I/65536)),U=(I=U+J+65535)-65536*(J=Math.floor(I/65536)),xe=(I=xe+J+65535)-65536*(J=Math.floor(I/65536)),me=(I=me+J+65535)-65536*(J=Math.floor(I/65536)),se=(I=se+J+65535)-65536*(J=Math.floor(I/65536)),B=(I=B+J+65535)-65536*(J=Math.floor(I/65536)),V=(I=V+J+65535)-65536*(J=Math.floor(I/65536)),G=(I=G+J+65535)-65536*(J=Math.floor(I/65536)),q+=J-1+37*(J-1),ae[0]=q,ae[1]=fe,ae[2]=Ce,ae[3]=X,ae[4]=H,ae[5]=re,ae[6]=Z,ae[7]=Oe,ae[8]=ve,ae[9]=U,ae[10]=xe,ae[11]=me,ae[12]=se,ae[13]=B,ae[14]=V,ae[15]=G}function M(ae,ee){T(ae,ee,ee)}function A(ae,ee){var F,I=r();for(F=0;F<16;F++)I[F]=ee[F];for(F=253;F>=0;F--)M(I,I),F!==2&&F!==4&&T(I,I,ee);for(F=0;F<16;F++)ae[F]=I[F]}function L(ae,ee,F){var I,J,q=new Uint8Array(32),fe=new Float64Array(80),Ce=r(),X=r(),H=r(),re=r(),Z=r(),Oe=r();for(J=0;J<31;J++)q[J]=ee[J];for(q[31]=127&ee[31]|64,q[0]&=248,x(fe,F),J=0;J<16;J++)X[J]=fe[J],re[J]=Ce[J]=H[J]=0;for(Ce[0]=re[0]=1,J=254;J>=0;--J)b(Ce,X,I=q[J>>>3]>>>(7&J)&1),b(H,re,I),E(Z,Ce,H),w(Ce,Ce,H),E(H,X,re),w(X,X,re),M(re,Z),M(Oe,Ce),T(Ce,H,Ce),T(H,X,Z),E(Z,Ce,H),w(Ce,Ce,H),M(X,Ce),w(H,re,Oe),T(Ce,H,c),E(Ce,Ce,re),T(H,H,Ce),T(Ce,re,Oe),T(re,X,fe),M(X,Z),b(Ce,X,I),b(H,re,I);for(J=0;J<16;J++)fe[J+16]=Ce[J],fe[J+32]=H[J],fe[J+48]=X[J],fe[J+64]=re[J];var ve=fe.subarray(32),U=fe.subarray(16);return A(ve,ve),T(U,U,ve),k(ae,U),0}function Y(ae,ee){return L(ae,ee,a)}function N(ae,ee){var F=r(),I=r(),J=r(),q=r(),fe=r(),Ce=r(),X=r(),H=r(),re=r();w(F,ae[1],ae[0]),w(re,ee[1],ee[0]),T(F,F,re),E(I,ae[0],ae[1]),E(re,ee[0],ee[1]),T(I,I,re),T(J,ae[3],ee[3]),T(J,J,n),T(q,ae[2],ee[2]),E(q,q,q),w(fe,I,F),w(Ce,q,J),E(X,q,J),E(H,I,F),T(ae[0],fe,Ce),T(ae[1],H,X),T(ae[2],X,Ce),T(ae[3],fe,H)}function W(ae,ee,F){var I;for(I=0;I<4;I++)b(ae[I],ee[I],F)}function j(ae,ee){var F=r(),I=r(),J=r();A(J,ee[2]),T(F,ee[0],J),T(I,ee[1],J),k(ae,I),ae[31]^=S(F)<<7}function ue(ae,ee,F){var I,J;for(g(ae[0],s),g(ae[1],u),g(ae[2],u),g(ae[3],s),J=255;J>=0;--J)W(ae,ee,I=F[J/8|0]>>(7&J)&1),N(ee,ae),N(ae,ae),W(ae,ee,I)}function Te(ae,ee){var F=[r(),r(),r(),r()];g(F[0],p),g(F[1],d),g(F[2],u),T(F[3],p,d),ue(ae,F,ee)}function pe(ae,ee,F){var I,J,q=[r(),r(),r(),r()];for(F||i(ee,32),(I=t.hash(ee.subarray(0,32)))[0]&=248,I[31]&=127,I[31]|=64,Te(q,I),j(ae,q),J=0;J<32;J++)ee[J+32]=ae[J];return 0}var ye=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function de(ae,ee){var F,I,J,q;for(I=63;I>=32;--I){for(F=0,J=I-32,q=I-12;J>4)*ye[J],F=ee[J]>>8,ee[J]&=255;for(J=0;J<32;J++)ee[J]-=F*ye[J];for(I=0;I<32;I++)ee[I+1]+=ee[I]>>8,ae[I]=255&ee[I]}function ke(ae){var ee,F=new Float64Array(64);for(ee=0;ee<64;ee++)F[ee]=ae[ee];for(ee=0;ee<64;ee++)ae[ee]=0;de(ae,F)}function ie(ae,ee){var F=r(),I=r(),J=r(),q=r(),fe=r(),Ce=r(),X=r();return g(ae[2],u),x(ae[1],ee),M(J,ae[1]),T(q,J,h),w(J,J,ae[2]),E(q,ae[2],q),M(fe,q),M(Ce,fe),T(X,Ce,fe),T(F,X,J),T(F,F,q),function(H,re){var Z,Oe=r();for(Z=0;Z<16;Z++)Oe[Z]=re[Z];for(Z=250;Z>=0;Z--)M(Oe,Oe),Z!==1&&T(Oe,Oe,re);for(Z=0;Z<16;Z++)H[Z]=Oe[Z]}(F,F),T(F,F,J),T(F,F,q),T(F,F,q),T(ae[0],F,q),M(I,ae[0]),T(I,I,q),O(I,J)&&T(ae[0],ae[0],v),M(I,ae[0]),T(I,I,q),O(I,J)?-1:(S(ae[0])===ee[31]>>7&&w(ae[0],s,ae[0]),T(ae[3],ae[0],ae[1]),0)}var be=64;function Ie(){for(var ae=0;ae=0},t.sign.keyPair=function(){var ae=new Uint8Array(32),ee=new Uint8Array(64);return pe(ae,ee),{publicKey:ae,secretKey:ee}},t.sign.keyPair.fromSecretKey=function(ae){if(Ie(ae),ae.length!==64)throw Error("bad secret key size");for(var ee=new Uint8Array(32),F=0;Fe&&(h.imod(s.leftShift(a)).iadd(s),n=h.mod(u).toNumber());while(!await sD(h,t,r));return h}async function sD(e,t,r){return!(t&&!e.dec().gcd(t).isOne())&&!!await async function(i){const a=await Pe.getBigInteger();return tV.every(s=>i.mod(new a(s))!==0)}(e)&&!!await async function(i,a){const s=await Pe.getBigInteger();return a=a||new s(2),a.modExp(i.dec(),i).isOne()}(e)&&!!await async function(i,a,s){const u=await Pe.getBigInteger(),c=i.bitLength();a||(a=Math.max(1,c/48|0));const h=i.dec();let n=0;for(;!h.getBit(n);)n++;const p=i.rightShift(new u(n));for(;a>0;a--){let d,v=(s?s():await Is(new u(2),h)).modExp(p,i);if(!v.isOne()&&!v.equal(h)){for(d=1;dt-11)throw Error("Message too long");const i=function(s){const u=new Uint8Array(s);let c=0;for(;c=8&!i;if(t)return Pe.selectUint8Array(u,s,t);if(u)return s;throw Error("Decryption error")}async function cy(e,t,r){let i;if(t.length!==wu.getHashByteLength(e))throw Error("Invalid hash length");const a=new Uint8Array(ja[e].length);for(i=0;iimport("./bn.min.a20d8e66.js"),[]),O=new k(g),S=new k(y),x=new k(m),E=x.mod(S.subn(1)),w=x.mod(O.subn(1)),T=ei.createSign(he.read(he.hash,n));T.write(p),T.end();const M={version:0,modulus:new k(d),publicExponent:new k(v),privateExponent:new k(m),prime1:new k(y),prime2:new k(g),exponent1:E,exponent2:w,coefficient:new k(b)};if(ei.createPrivateKey!==void 0){const L=Xl.encode(M,"der");return new Uint8Array(T.sign({key:L,format:"der",type:"pkcs1"}))}const A=Xl.encode(M,"pem",{label:"RSA PRIVATE KEY"});return new Uint8Array(T.sign(A))}(e,t,r,i,a,s,u,c)}return async function(n,p,d,v){const m=await Pe.getBigInteger();p=new m(p);const g=new m(await cy(n,v,p.byteLength()));if(d=new m(d),g.gte(p))throw Error("Message size cannot exceed modulus size");return g.modExp(d,p).toUint8Array("be",p.byteLength())}(e,r,a,h)},verify:async function(e,t,r,i,a,s){if(t&&!Pe.isStream(t)){if(Pe.getWebCrypto())try{return await async function(u,c,h,n,p){const d=function(m,g){return{kty:"RSA",n:zi(m,!0),e:zi(g,!0),ext:!0}}(n,p),v=await Yl.importKey("jwk",d,{name:"RSASSA-PKCS1-v1_5",hash:{name:u}},!1,["verify"]);return Yl.verify("RSASSA-PKCS1-v1_5",v,h,c)}(he.read(he.webHash,e),t,r,i,a)}catch(u){Pe.printDebugError(u)}else if(Pe.getNodeCrypto())return async function(u,c,h,n,p){const{default:d}=await Cn(()=>import("./bn.min.a20d8e66.js"),[]),v=ei.createVerify(he.read(he.hash,u));v.write(c),v.end();const m={modulus:new d(n),publicExponent:new d(p)};let g;ei.createPrivateKey!==void 0?g={key:Yh.encode(m,"der"),format:"der",type:"pkcs1"}:g=Yh.encode(m,"pem",{label:"RSA PUBLIC KEY"});try{return await v.verify(g,h)}catch{return!1}}(e,t,r,i,a)}return async function(u,c,h,n,p){const d=await Pe.getBigInteger();if(h=new d(h),c=new d(c),n=new d(n),c.gte(h))throw Error("Signature size cannot exceed modulus size");const v=c.modExp(n,h).toUint8Array("be",h.byteLength()),m=await cy(u,p,h.byteLength());return Pe.equalsUint8Array(v,m)}(e,r,i,a,s)},encrypt:async function(e,t,r){return Pe.getNodeCrypto()?async function(i,a,s){const{default:u}=await Cn(()=>import("./bn.min.a20d8e66.js"),[]),c={modulus:new u(a),publicExponent:new u(s)};let h;return ei.createPrivateKey!==void 0?h={key:Yh.encode(c,"der"),format:"der",type:"pkcs1",padding:ei.constants.RSA_PKCS1_PADDING}:h={key:Yh.encode(c,"pem",{label:"RSA PUBLIC KEY"}),padding:ei.constants.RSA_PKCS1_PADDING},new Uint8Array(ei.publicEncrypt(h,i))}(e,t,r):async function(i,a,s){const u=await Pe.getBigInteger();if(a=new u(a),i=new u(Y0(i,a.byteLength())),s=new u(s),i.gte(a))throw Error("Message size cannot exceed modulus size");return i.modExp(s,a).toUint8Array("be",a.byteLength())}(e,t,r)},decrypt:async function(e,t,r,i,a,s,u,c){return Pe.getNodeCrypto()?async function(h,n,p,d,v,m,g,y){const{default:b}=await Cn(()=>import("./bn.min.a20d8e66.js"),[]),k=new b(v),O=new b(m),S=new b(d),x=S.mod(O.subn(1)),E=S.mod(k.subn(1)),w={version:0,modulus:new b(n),publicExponent:new b(p),privateExponent:new b(d),prime1:new b(m),prime2:new b(v),exponent1:x,exponent2:E,coefficient:new b(g)};let T;ei.createPrivateKey!==void 0?T={key:Xl.encode(w,"der"),format:"der",type:"pkcs1",padding:ei.constants.RSA_PKCS1_PADDING}:T={key:Xl.encode(w,"pem",{label:"RSA PRIVATE KEY"}),padding:ei.constants.RSA_PKCS1_PADDING};try{return new Uint8Array(ei.privateDecrypt(T,h))}catch{if(y)return y;throw Error("Decryption error")}}(e,t,r,i,a,s,u,c):async function(h,n,p,d,v,m,g,y){const b=await Pe.getBigInteger();if(h=new b(h),n=new b(n),p=new b(p),d=new b(d),v=new b(v),m=new b(m),g=new b(g),h.gte(n))throw Error("Data too large.");const k=d.mod(m.dec()),O=d.mod(v.dec()),S=(await Is(new b(2),n)).mod(n),x=S.modInv(n).modExp(p,n);h=h.mul(x).mod(n);const E=h.modExp(O,v),w=h.modExp(k,m);let M=g.mul(w.sub(E)).mod(m).mul(v).add(E);return M=M.mul(S).mod(n),X0(M.toUint8Array("be",n.byteLength()),y)}(e,t,r,i,a,s,u,c)},generate:async function(e,t){if(t=new(await Pe.getBigInteger())(t),Pe.getWebCrypto()){const u={name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:t.toUint8Array(),hash:{name:"SHA-1"}},c=await Yl.generateKey(u,!0,["sign","verify"]),h=await Yl.exportKey("jwk",c.privateKey);return{n:ws(h.n),e:t.toUint8Array(),d:ws(h.d),p:ws(h.q),q:ws(h.p),u:ws(h.qi)}}if(Pe.getNodeCrypto()&&ei.generateKeyPair&&Xl){const u={modulusLength:e,publicExponent:t.toNumber(),publicKeyEncoding:{type:"pkcs1",format:"der"},privateKeyEncoding:{type:"pkcs1",format:"der"}},c=await new Promise((h,n)=>{ei.generateKeyPair("rsa",u,(p,d,v)=>{p?n(p):h(Xl.decode(v,"der"))})});return{n:c.modulus.toArrayLike(Uint8Array),e:c.publicExponent.toArrayLike(Uint8Array),d:c.privateExponent.toArrayLike(Uint8Array),p:c.prime2.toArrayLike(Uint8Array),q:c.prime1.toArrayLike(Uint8Array),u:c.coefficient.toArrayLike(Uint8Array)}}let r,i,a;do i=await h5(e-(e>>1),t,40),r=await h5(e>>1,t,40),a=r.mul(i);while(a.bitLength()!==e);const s=r.dec().imul(i.dec());return i.lt(r)&&([r,i]=[i,r]),{n:a.toUint8Array(),e:t.toUint8Array(),d:t.modInv(s).toUint8Array(),p:r.toUint8Array(),q:i.toUint8Array(),u:r.modInv(i).toUint8Array()}},validateParams:async function(e,t,r,i,a,s){const u=await Pe.getBigInteger();if(e=new u(e),i=new u(i),a=new u(a),!i.mul(a).equal(e))return!1;const c=new u(2);if(s=new u(s),!i.mul(s).mod(a).isOne())return!1;t=new u(t),r=new u(r);const h=new u(Math.floor(e.bitLength()/3)),n=await Is(c,c.leftShift(h)),p=n.mul(r).mul(t);return!(!p.mod(i.dec()).equal(n)||!p.mod(a.dec()).equal(n))}}),iV=Object.freeze({__proto__:null,encrypt:async function(e,t,r,i){const a=await Pe.getBigInteger();t=new a(t),r=new a(r),i=new a(i);const s=new a(Y0(e,t.byteLength())),u=await Is(new a(1),t.dec());return{c1:r.modExp(u,t).toUint8Array(),c2:i.modExp(u,t).imul(s).imod(t).toUint8Array()}},decrypt:async function(e,t,r,i,a){const s=await Pe.getBigInteger();return e=new s(e),t=new s(t),r=new s(r),i=new s(i),X0(e.modExp(i,r).modInv(r).imul(t).imod(r).toUint8Array("be",r.byteLength()),a)},validateParams:async function(e,t,r,i){const a=await Pe.getBigInteger();e=new a(e),t=new a(t),r=new a(r);const s=new a(1);if(t.lte(s)||t.gte(e))return!1;const u=new a(e.bitLength()),c=new a(1023);if(u.lt(c)||!t.modExp(e.dec(),e).isOne())return!1;let h=t;const n=new a(1),p=new a(2).leftShift(new a(17));for(;n.lt(p);){if(h=h.mul(t).imod(e),h.isOne())return!1;n.iinc()}i=new a(i);const d=new a(2),v=await Is(d.leftShift(u.dec()),d.leftShift(u)),m=e.dec().imul(v).iadd(i);return!!r.equal(t.modExp(m,e))}});class Ka{constructor(t){if(t instanceof Ka)this.oid=t.oid;else if(Pe.isArray(t)||Pe.isUint8Array(t)){if((t=new Uint8Array(t))[0]===6){if(t[1]!==t.length-2)throw Error("Length mismatch in DER encoded oid");t=t.subarray(2)}this.oid=t}else this.oid=""}read(t){if(t.length>=1){const r=t[0];if(t.length>=1+r)return this.oid=t.subarray(1,1+r),1+this.oid.length}throw Error("Invalid oid")}write(){return Pe.concatUint8Array([new Uint8Array([this.oid.length]),this.oid])}toHex(){return Pe.uint8ArrayToHex(this.oid)}getName(){const t=this.toHex();if(he.curve[t])return he.write(he.curve,t);throw Error("Unknown curve object identifier.")}}function tm(e,t){return e.keyPair({priv:t})}function nm(e,t){const r=e.keyPair({pub:t});if(r.validate().result!==!0)throw Error("Invalid elliptic public key");return r}async function Ru(e){if(!Nt.useIndutnyElliptic)throw Error("This curve is only supported in the full build of OpenPGP.js");const{default:t}=await Cn(()=>import("./elliptic.min.90ec5b69.js"),["js/build/elliptic.min.90ec5b69.js","js/build/bn.min.a20d8e66.js"]);return new t.ec(e)}function lD(e){let t,r=0;const i=e[0];return i<192?([r]=e,t=1):i<255?(r=(e[0]-192<<8)+e[1]+192,t=2):i===255&&(r=Pe.readNumber(e.subarray(1,5)),t=5),{len:r,offset:t}}function Md(e){return e<192?new Uint8Array([e]):e>191&&e<8384?new Uint8Array([192+(e-192>>8),e-192&255]):Pe.concatUint8Array([new Uint8Array([255]),Pe.writeNumber(e,4)])}function aV(e){if(e<0||e>30)throw Error("Partial Length power must be between 1 and 30");return new Uint8Array([224+e])}function uD(e){return new Uint8Array([192|e])}function p5(e,t){return Pe.concatUint8Array([uD(e),Md(t)])}function Ep(e){return[he.packet.literalData,he.packet.compressedData,he.packet.symmetricallyEncryptedData,he.packet.symEncryptedIntegrityProtectedData,he.packet.aeadEncryptedData].includes(e)}async function sV(e,t){const r=ls(e);let i,a;try{const s=await r.peekBytes(2);if(!s||s.length<2||(128&s[0])==0)throw Error("Error during parsing. This message / key probably does not conform to a valid OpenPGP format.");const u=await r.readByte();let c,h,n=-1,p=-1;p=0,(64&u)!=0&&(p=1),p?n=63&u:(n=(63&u)>>2,h=3&u);const d=Ep(n);let v,m=null;if(d){if(Pe.isStream(e)==="array"){const y=new Qa;i=Ri(y),m=y}else{const y=new bu;i=Ri(y.writable),m=y.readable}a=t({tag:n,packet:m})}else m=[];do{if(p){const y=await r.readByte();if(v=!1,y<192)c=y;else if(y>=192&&y<224)c=(y-192<<8)+await r.readByte()+192;else if(y>223&&y<255){if(c=1<<(31&y),v=!0,!d)throw new TypeError("This packet type does not support partial lengths.")}else c=await r.readByte()<<24|await r.readByte()<<16|await r.readByte()<<8|await r.readByte()}else switch(h){case 0:c=await r.readByte();break;case 1:c=await r.readByte()<<8|await r.readByte();break;case 2:c=await r.readByte()<<24|await r.readByte()<<16|await r.readByte()<<8|await r.readByte();break;default:c=1/0}if(c>0){let y=0;for(;;){i&&await i.ready;const{done:b,value:k}=await r.read();if(b){if(c===1/0)break;throw Error("Unexpected end of packet")}const O=c===1/0?k:k.subarray(0,c-y);if(i?await i.write(O):m.push(O),y+=k.length,y>=c){r.unshift(k.subarray(c-y+k.length));break}}}}while(v);const g=await r.peekBytes(d?1/0:2);return i?(await i.ready,await i.close()):(m=Pe.concatUint8Array(m),await t({tag:n,packet:m})),!g||!g.length}catch(s){if(i)return await i.abort(s),!0;throw s}finally{i&&await a,r.releaseLock()}}class kr extends Error{constructor(...t){super(...t),Error.captureStackTrace&&Error.captureStackTrace(this,kr),this.name="UnsupportedError"}}class dy{constructor(t,r){this.tag=t,this.rawContent=r}write(){return this.rawContent}}const V_=Pe.getWebCrypto(),dv=Pe.getNodeCrypto(),is={p256:"P-256",p384:"P-384",p521:"P-521"},ms=dv?dv.getCurves():[],Xs=dv?{secp256k1:ms.includes("secp256k1")?"secp256k1":void 0,p256:ms.includes("prime256v1")?"prime256v1":void 0,p384:ms.includes("secp384r1")?"secp384r1":void 0,p521:ms.includes("secp521r1")?"secp521r1":void 0,ed25519:ms.includes("ED25519")?"ED25519":void 0,curve25519:ms.includes("X25519")?"X25519":void 0,brainpoolP256r1:ms.includes("brainpoolP256r1")?"brainpoolP256r1":void 0,brainpoolP384r1:ms.includes("brainpoolP384r1")?"brainpoolP384r1":void 0,brainpoolP512r1:ms.includes("brainpoolP512r1")?"brainpoolP512r1":void 0}:{},Dp={p256:{oid:[6,8,42,134,72,206,61,3,1,7],keyType:he.publicKey.ecdsa,hash:he.hash.sha256,cipher:he.symmetric.aes128,node:Xs.p256,web:is.p256,payloadSize:32,sharedSize:256},p384:{oid:[6,5,43,129,4,0,34],keyType:he.publicKey.ecdsa,hash:he.hash.sha384,cipher:he.symmetric.aes192,node:Xs.p384,web:is.p384,payloadSize:48,sharedSize:384},p521:{oid:[6,5,43,129,4,0,35],keyType:he.publicKey.ecdsa,hash:he.hash.sha512,cipher:he.symmetric.aes256,node:Xs.p521,web:is.p521,payloadSize:66,sharedSize:528},secp256k1:{oid:[6,5,43,129,4,0,10],keyType:he.publicKey.ecdsa,hash:he.hash.sha256,cipher:he.symmetric.aes128,node:Xs.secp256k1,payloadSize:32},ed25519:{oid:[6,9,43,6,1,4,1,218,71,15,1],keyType:he.publicKey.eddsa,hash:he.hash.sha512,node:!1,payloadSize:32},curve25519:{oid:[6,10,43,6,1,4,1,151,85,1,5,1],keyType:he.publicKey.ecdh,hash:he.hash.sha256,cipher:he.symmetric.aes128,node:!1,payloadSize:32},brainpoolP256r1:{oid:[6,9,43,36,3,3,2,8,1,1,7],keyType:he.publicKey.ecdsa,hash:he.hash.sha256,cipher:he.symmetric.aes128,node:Xs.brainpoolP256r1,payloadSize:32},brainpoolP384r1:{oid:[6,9,43,36,3,3,2,8,1,1,11],keyType:he.publicKey.ecdsa,hash:he.hash.sha384,cipher:he.symmetric.aes192,node:Xs.brainpoolP384r1,payloadSize:48},brainpoolP512r1:{oid:[6,9,43,36,3,3,2,8,1,1,13],keyType:he.publicKey.ecdsa,hash:he.hash.sha512,cipher:he.symmetric.aes256,node:Xs.brainpoolP512r1,payloadSize:64}};class $s{constructor(t,r){try{(Pe.isArray(t)||Pe.isUint8Array(t))&&(t=new Ka(t)),t instanceof Ka&&(t=t.getName()),this.name=he.write(he.curve,t)}catch{throw new kr("Unknown curve")}r=r||Dp[this.name],this.keyType=r.keyType,this.oid=r.oid,this.hash=r.hash,this.cipher=r.cipher,this.node=r.node&&Dp[this.name],this.web=r.web&&Dp[this.name],this.payloadSize=r.payloadSize,this.web&&Pe.getWebCrypto()?this.type="web":this.node&&Pe.getNodeCrypto()?this.type="node":this.name==="curve25519"?this.type="curve25519":this.name==="ed25519"&&(this.type="ed25519")}async genKeyPair(){let t;switch(this.type){case"web":try{return await async function(i){const a=await V_.generateKey({name:"ECDSA",namedCurve:is[i]},!0,["sign","verify"]),s=await V_.exportKey("jwk",a.privateKey),u=await V_.exportKey("jwk",a.publicKey);return{publicKey:dD(u),privateKey:ws(s.d)}}(this.name)}catch(i){Pe.printDebugError("Browser did not support generating ec key "+i.message);break}case"node":return async function(i){const a=dv.createECDH(Xs[i]);return await a.generateKeys(),{publicKey:new Uint8Array(a.getPublicKey()),privateKey:new Uint8Array(a.getPrivateKey())}}(this.name);case"curve25519":{const i=rs(32);i[0]=127&i[0]|64,i[31]&=248;const a=i.slice().reverse();return t=ns.box.keyPair.fromSecretKey(a),{publicKey:Pe.concatUint8Array([new Uint8Array([64]),t.publicKey]),privateKey:i}}case"ed25519":{const i=rs(32),a=ns.sign.keyPair.fromSeed(i);return{publicKey:Pe.concatUint8Array([new Uint8Array([64]),a.publicKey]),privateKey:i}}}return t=await(await Ru(this.name)).genKeyPair({entropy:Pe.uint8ArrayToString(rs(32))}),{publicKey:new Uint8Array(t.getPublic("array",!1)),privateKey:t.getPrivate().toArrayLike(Uint8Array)}}}async function cD(e,t,r,i){const a={p256:!0,p384:!0,p521:!0,secp256k1:!0,curve25519:e===he.publicKey.ecdh,brainpoolP256r1:!0,brainpoolP384r1:!0,brainpoolP512r1:!0},s=t.getName();if(!a[s])return!1;if(s==="curve25519"){i=i.slice().reverse();const{publicKey:c}=ns.box.keyPair.fromSecretKey(i);r=new Uint8Array(r);const h=new Uint8Array([64,...c]);return!!Pe.equalsUint8Array(h,r)}const u=await Ru(s);try{r=nm(u,r).getPublic()}catch{return!1}return!!tm(u,i).getPublic().eq(r)}function dD(e){const t=ws(e.x),r=ws(e.y),i=new Uint8Array(t.length+r.length+1);return i[0]=4,i.set(t,1),i.set(r,t.length+1),i}function rm(e,t,r){const i=e,a=r.slice(1,i+1),s=r.slice(i+1,2*i+1);return{kty:"EC",crv:t,x:zi(a,!0),y:zi(s,!0),ext:!0}}function fD(e,t,r,i){const a=rm(e,t,r);return a.d=zi(i,!0),a}const fv=Pe.getWebCrypto(),Lu=Pe.getNodeCrypto();async function v5(e,t,r,i,a,s){const u=new $s(e);if(r&&!Pe.isStream(r)){const c={publicKey:i,privateKey:a};switch(u.type){case"web":try{return await async function(h,n,p,d){const v=h.payloadSize,m=fD(h.payloadSize,is[h.name],d.publicKey,d.privateKey),g=await fv.importKey("jwk",m,{name:"ECDSA",namedCurve:is[h.name],hash:{name:he.read(he.webHash,h.hash)}},!1,["sign"]),y=new Uint8Array(await fv.sign({name:"ECDSA",namedCurve:is[h.name],hash:{name:he.read(he.webHash,n)}},g,p));return{r:y.slice(0,v),s:y.slice(v,v<<1)}}(u,t,r,c)}catch(h){if(u.name!=="p521"&&(h.name==="DataError"||h.name==="OperationError"))throw h;Pe.printDebugError("Browser did not support signing: "+h.message)}break;case"node":{const h=await async function(n,p,d,v){const m=Lu.createSign(he.read(he.hash,p));m.write(d),m.end();const g=oV.encode({version:1,parameters:n.oid,privateKey:Array.from(v.privateKey),publicKey:{unused:0,data:Array.from(v.publicKey)}},"pem",{label:"EC PRIVATE KEY"});return hD.decode(m.sign(g),"der")}(u,t,r,c);return{r:h.r.toArrayLike(Uint8Array),s:h.s.toArrayLike(Uint8Array)}}}}return async function(c,h,n){const p=await Ru(c.name),d=tm(p,n),v=d.sign(h);return{r:v.r.toArrayLike(Uint8Array),s:v.s.toArrayLike(Uint8Array)}}(u,s,a)}async function m5(e,t,r,i,a,s){const u=new $s(e);if(i&&!Pe.isStream(i))switch(u.type){case"web":try{return await async function(c,h,{r:n,s:p},d,v){const m=rm(c.payloadSize,is[c.name],v),g=await fv.importKey("jwk",m,{name:"ECDSA",namedCurve:is[c.name],hash:{name:he.read(he.webHash,c.hash)}},!1,["verify"]),y=Pe.concatUint8Array([n,p]).buffer;return fv.verify({name:"ECDSA",namedCurve:is[c.name],hash:{name:he.read(he.webHash,h)}},g,y,d)}(u,t,r,i,a)}catch(c){if(u.name!=="p521"&&(c.name==="DataError"||c.name==="OperationError"))throw c;Pe.printDebugError("Browser did not support verifying: "+c.message)}break;case"node":return async function(c,h,{r:n,s:p},d,v){const{default:m}=await Cn(()=>import("./bn.min.a20d8e66.js"),[]),g=Lu.createVerify(he.read(he.hash,h));g.write(d),g.end();const y=uV.encode({algorithm:{algorithm:[1,2,840,10045,2,1],parameters:c.oid},subjectPublicKey:{unused:0,data:Array.from(v)}},"pem",{label:"PUBLIC KEY"}),b=hD.encode({r:new m(n),s:new m(p)},"der");try{return g.verify(y,b)}catch{return!1}}(u,t,r,i,a)}return async function(c,h,n,p){const d=await Ru(c.name);return nm(d,p).verify(n,h)}(u,r,t===void 0?i:s,a)}const im=void 0,hD=Lu?im.define("ECDSASignature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())}):void 0,oV=Lu?im.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").explicit(0).optional().any(),this.key("publicKey").explicit(1).optional().bitstr())}):void 0,lV=Lu?im.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional().any())}):void 0,uV=Lu?im.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(lV),this.key("subjectPublicKey").bitstr())}):void 0;var cV=Object.freeze({__proto__:null,sign:v5,verify:m5,validateParams:async function(e,t,r){const i=new $s(e);if(i.keyType!==he.publicKey.ecdsa)return!1;switch(i.type){case"web":case"node":{const a=rs(8),s=he.hash.sha256,u=await wu.digest(s,a);try{const c=await v5(e,s,a,t,r,u);return await m5(e,s,c,a,t,u)}catch{return!1}}default:return cD(he.publicKey.ecdsa,e,t,r)}}});ns.hash=e=>new Uint8Array(qv().update(e).digest());var dV=Object.freeze({__proto__:null,sign:async function(e,t,r,i,a,s){if(wu.getHashByteLength(t)=0;--p)for(let d=c-1;d>=0;--d)h[1]=c*p+(d+1),n[0]=s[0]^h[0],n[1]=s[1]^h[1],n[2]=u[2*d],n[3]=u[2*d+1],n=hv(r.decrypt(pv(n))),s=n.subarray(0,2),u[2*d]=n[2],u[2*d+1]=n[3];if(s[0]===i[0]&&s[1]===i[1])return pv(u);throw Error("Key Data Integrity failed")}function hv(e){const{length:t}=e,r=function(s){if(Pe.isString(s)){const{length:u}=s,c=new ArrayBuffer(u),h=new Uint8Array(c);for(let n=0;n0){const r=e[t-1];if(r>=1){const i=e.subarray(t-r),a=new Uint8Array(r).fill(r);if(Pe.equalsUint8Array(i,a))return e.subarray(0,t-r)}}throw Error("Invalid padding")}var hV=Object.freeze({__proto__:null,encode:mD,decode:_D});const no=Pe.getWebCrypto(),gD=Pe.getNodeCrypto();function _5(e,t,r,i){return Pe.concatUint8Array([t.write(),new Uint8Array([e]),r.write(),Pe.stringToUint8Array("Anonymous Sender "),i.subarray(0,20)])}async function g5(e,t,r,i,a=!1,s=!1){let u;if(a){for(u=0;u=0&&t[u]===0;u--);t=t.subarray(0,u+1)}return(await wu.digest(e,Pe.concatUint8Array([new Uint8Array([0,0,0,1]),t,i]))).subarray(0,r)}async function pV(e,t){switch(e.type){case"curve25519":{const r=rs(32),{secretKey:i,sharedKey:a}=await yD(e,t,null,r);let{publicKey:s}=ns.box.keyPair.fromSecretKey(i);return s=Pe.concatUint8Array([new Uint8Array([64]),s]),{publicKey:s,sharedKey:a}}case"web":if(e.web&&Pe.getWebCrypto())try{return await async function(r,i){const a=rm(r.payloadSize,r.web.web,i);let s=no.generateKey({name:"ECDH",namedCurve:r.web.web},!0,["deriveKey","deriveBits"]),u=no.importKey("jwk",a,{name:"ECDH",namedCurve:r.web.web},!1,[]);[s,u]=await Promise.all([s,u]);let c=no.deriveBits({name:"ECDH",namedCurve:r.web.web,public:u},s.privateKey,r.web.sharedSize),h=no.exportKey("jwk",s.publicKey);[c,h]=await Promise.all([c,h]);const n=new Uint8Array(c);return{publicKey:new Uint8Array(dD(h)),sharedKey:n}}(e,t)}catch(r){Pe.printDebugError(r)}break;case"node":return async function(r,i){const a=gD.createECDH(r.node.node);a.generateKeys();const s=new Uint8Array(a.computeSecret(i));return{publicKey:new Uint8Array(a.getPublicKey()),sharedKey:s}}(e,t)}return async function(r,i){const a=await Ru(r.name),s=await r.genKeyPair();i=nm(a,i);const u=tm(a,s.privateKey),c=s.publicKey,h=u.derive(i.getPublic()),n=a.curve.p.byteLength(),p=h.toArrayLike(Uint8Array,"be",n);return{publicKey:c,sharedKey:p}}(e,t)}async function yD(e,t,r,i){if(i.length!==e.payloadSize){const a=new Uint8Array(e.payloadSize);a.set(i,e.payloadSize-i.length),i=a}switch(e.type){case"curve25519":{const a=i.slice().reverse();return{secretKey:a,sharedKey:ns.scalarMult(a,t.subarray(1))}}case"web":if(e.web&&Pe.getWebCrypto())try{return await async function(a,s,u,c){const h=fD(a.payloadSize,a.web.web,u,c);let n=no.importKey("jwk",h,{name:"ECDH",namedCurve:a.web.web},!0,["deriveKey","deriveBits"]);const p=rm(a.payloadSize,a.web.web,s);let d=no.importKey("jwk",p,{name:"ECDH",namedCurve:a.web.web},!0,[]);[n,d]=await Promise.all([n,d]);let v=no.deriveBits({name:"ECDH",namedCurve:a.web.web,public:d},n,a.web.sharedSize),m=no.exportKey("jwk",n);[v,m]=await Promise.all([v,m]);const g=new Uint8Array(v);return{secretKey:ws(m.d),sharedKey:g}}(e,t,r,i)}catch(a){Pe.printDebugError(a)}break;case"node":return async function(a,s,u){const c=gD.createECDH(a.node.node);c.setPrivateKey(u);const h=new Uint8Array(c.computeSecret(s));return{secretKey:new Uint8Array(c.getPrivateKey()),sharedKey:h}}(e,t,i)}return async function(a,s,u){const c=await Ru(a.name);s=nm(c,s),u=tm(c,u);const h=new Uint8Array(u.getPrivate()),n=u.derive(s.getPublic()),p=c.curve.p.byteLength(),d=n.toArrayLike(Uint8Array,"be",p);return{secretKey:h,sharedKey:d}}(e,t,i)}var vV=Object.freeze({__proto__:null,validateParams:async function(e,t,r){return cD(he.publicKey.ecdh,e,t,r)},encrypt:async function(e,t,r,i,a){const s=mD(r),u=new $s(e),{publicKey:c,sharedKey:h}=await pV(u,i),n=_5(he.publicKey.ecdh,e,t,a),{keySize:p}=uo(t.cipher);return{publicKey:c,wrappedKey:pD(await g5(t.hash,h,p,n),s)}},decrypt:async function(e,t,r,i,a,s,u){const c=new $s(e),{sharedKey:h}=await yD(c,r,a,s),n=_5(he.publicKey.ecdh,e,t,u),{keySize:p}=uo(t.cipher);let d;for(let v=0;v<3;v++)try{return _D(vD(await g5(t.hash,h,p,n,v===1,v===2),i))}catch(m){d=m}throw d}}),mV=Object.freeze({__proto__:null,Curve:$s,ecdh:vV,ecdsa:cV,eddsa:dV,generate:async function(e){const t=await Pe.getBigInteger();e=new $s(e);const r=await e.genKeyPair(),i=new t(r.publicKey).toUint8Array(),a=new t(r.privateKey).toUint8Array("be",e.payloadSize);return{oid:e.oid,Q:i,secret:a,hash:e.hash,cipher:e.cipher}},getPreferredHashAlgo:function(e){return Dp[he.write(he.curve,e.toHex())].hash}}),_V=Object.freeze({__proto__:null,sign:async function(e,t,r,i,a,s){const u=await Pe.getBigInteger(),c=new u(1);let h,n,p,d;i=new u(i),a=new u(a),r=new u(r),s=new u(s),r=r.mod(i),s=s.mod(a);const v=new u(t.subarray(0,a.byteLength())).mod(a);for(;;){if(h=await Is(c,a),n=r.modExp(h,i).imod(a),n.isZero())continue;const m=s.mul(n).imod(a);if(d=v.add(m).imod(a),p=h.modInv(a).imul(d).imod(a),!p.isZero())break}return{r:n.toUint8Array("be",a.byteLength()),s:p.toUint8Array("be",a.byteLength())}},verify:async function(e,t,r,i,a,s,u,c){const h=await Pe.getBigInteger(),n=new h(0);if(t=new h(t),r=new h(r),s=new h(s),u=new h(u),a=new h(a),c=new h(c),t.lte(n)||t.gte(u)||r.lte(n)||r.gte(u))return Pe.printDebug("invalid DSA Signature"),!1;const p=new h(i.subarray(0,u.byteLength())).imod(u),d=r.modInv(u);if(d.isZero())return Pe.printDebug("invalid DSA Signature"),!1;a=a.mod(s),c=c.mod(s);const v=p.mul(d).imod(u),m=t.mul(d).imod(u),g=a.modExp(v,s),y=c.modExp(m,s);return g.mul(y).imod(s).imod(u).equal(t)},validateParams:async function(e,t,r,i,a){const s=await Pe.getBigInteger();e=new s(e),t=new s(t),r=new s(r),i=new s(i);const u=new s(1);if(r.lte(u)||r.gte(e)||!e.dec().mod(t).isZero()||!r.modExp(t,e).isOne())return!1;const c=new s(t.bitLength()),h=new s(150);if(c.lt(h)||!await sD(t,null,32))return!1;a=new s(a);const n=new s(2),p=await Is(n.leftShift(c.dec()),n.leftShift(c)),d=t.mul(p).add(a);return!!i.equal(r.modExp(d,e))}}),nr={rsa:rV,elgamal:iV,elliptic:mV,dsa:_V,nacl:ns},gV=Object.freeze({__proto__:null,parseSignatureParams:function(e,t){let r=0;switch(e){case he.publicKey.rsaEncryptSign:case he.publicKey.rsaEncrypt:case he.publicKey.rsaSign:return{s:Pe.readMPI(t.subarray(r))};case he.publicKey.dsa:case he.publicKey.ecdsa:{const i=Pe.readMPI(t.subarray(r));return r+=i.length+2,{r:i,s:Pe.readMPI(t.subarray(r))}}case he.publicKey.eddsa:{let i=Pe.readMPI(t.subarray(r));r+=i.length+2,i=Pe.leftPad(i,32);let a=Pe.readMPI(t.subarray(r));return a=Pe.leftPad(a,32),{r:i,s:a}}default:throw new kr("Unknown signature algorithm.")}},verify:async function(e,t,r,i,a,s){switch(e){case he.publicKey.rsaEncryptSign:case he.publicKey.rsaEncrypt:case he.publicKey.rsaSign:{const{n:u,e:c}=i,h=Pe.leftPad(r.s,u.length);return nr.rsa.verify(t,a,h,u,c,s)}case he.publicKey.dsa:{const{g:u,p:c,q:h,y:n}=i,{r:p,s:d}=r;return nr.dsa.verify(t,p,d,s,u,c,h,n)}case he.publicKey.ecdsa:{const{oid:u,Q:c}=i,h=new nr.elliptic.Curve(u).payloadSize,n=Pe.leftPad(r.r,h),p=Pe.leftPad(r.s,h);return nr.elliptic.ecdsa.verify(u,t,{r:n,s:p},a,c,s)}case he.publicKey.eddsa:{const{oid:u,Q:c}=i;return nr.elliptic.eddsa.verify(u,t,r,a,c,s)}default:throw Error("Unknown signature algorithm.")}},sign:async function(e,t,r,i,a,s){if(!r||!i)throw Error("Missing key parameters");switch(e){case he.publicKey.rsaEncryptSign:case he.publicKey.rsaEncrypt:case he.publicKey.rsaSign:{const{n:u,e:c}=r,{d:h,p:n,q:p,u:d}=i;return{s:await nr.rsa.sign(t,a,u,c,h,n,p,d,s)}}case he.publicKey.dsa:{const{g:u,p:c,q:h}=r,{x:n}=i;return nr.dsa.sign(t,s,u,c,h,n)}case he.publicKey.elgamal:throw Error("Signing with Elgamal is not defined in the OpenPGP standard.");case he.publicKey.ecdsa:{const{oid:u,Q:c}=r,{d:h}=i;return nr.elliptic.ecdsa.sign(u,t,a,c,h,s)}case he.publicKey.eddsa:{const{oid:u,Q:c}=r,{seed:h}=i;return nr.elliptic.eddsa.sign(u,t,a,c,h,s)}default:throw Error("Unknown signature algorithm.")}}});class y5{constructor(t){t=t===void 0?new Uint8Array([]):Pe.isString(t)?Pe.stringToUint8Array(t):new Uint8Array(t),this.data=t}read(t){if(t.length>=1){const r=t[0];if(t.length>=1+r)return this.data=t.subarray(1,1+r),1+this.data.length}throw Error("Invalid symmetric key")}write(){return Pe.concatUint8Array([new Uint8Array([this.data.length]),this.data])}}class b5{constructor(t){if(t){const{hash:r,cipher:i}=t;this.hash=r,this.cipher=i}else this.hash=null,this.cipher=null}read(t){if(t.length<4||t[0]!==3||t[1]!==1)throw Error("Cannot read KDFParams");return this.hash=t[2],this.cipher=t[3],4}write(){return new Uint8Array([3,1,this.hash,this.cipher])}}function W_(e){try{e.getName()}catch{throw new kr("Unknown curve OID")}}var yV=Object.freeze({__proto__:null,publicKeyEncrypt:async function(e,t,r,i){switch(e){case he.publicKey.rsaEncrypt:case he.publicKey.rsaEncryptSign:{const{n:a,e:s}=t;return{c:await nr.rsa.encrypt(r,a,s)}}case he.publicKey.elgamal:{const{p:a,g:s,y:u}=t;return nr.elgamal.encrypt(r,a,s,u)}case he.publicKey.ecdh:{const{oid:a,Q:s,kdfParams:u}=t,{publicKey:c,wrappedKey:h}=await nr.elliptic.ecdh.encrypt(a,u,r,s,i);return{V:c,C:new y5(h)}}default:return[]}},publicKeyDecrypt:async function(e,t,r,i,a,s){switch(e){case he.publicKey.rsaEncryptSign:case he.publicKey.rsaEncrypt:{const{c:u}=i,{n:c,e:h}=t,{d:n,p,q:d,u:v}=r;return nr.rsa.decrypt(u,c,h,n,p,d,v,s)}case he.publicKey.elgamal:{const{c1:u,c2:c}=i,h=t.p,n=r.x;return nr.elgamal.decrypt(u,c,h,n,s)}case he.publicKey.ecdh:{const{oid:u,Q:c,kdfParams:h}=t,{d:n}=r,{V:p,C:d}=i;return nr.elliptic.ecdh.decrypt(u,h,p,d.data,c,n,a)}default:throw Error("Unknown public key encryption algorithm.")}},parsePublicKeyParams:function(e,t){let r=0;switch(e){case he.publicKey.rsaEncrypt:case he.publicKey.rsaEncryptSign:case he.publicKey.rsaSign:{const i=Pe.readMPI(t.subarray(r));r+=i.length+2;const a=Pe.readMPI(t.subarray(r));return r+=a.length+2,{read:r,publicParams:{n:i,e:a}}}case he.publicKey.dsa:{const i=Pe.readMPI(t.subarray(r));r+=i.length+2;const a=Pe.readMPI(t.subarray(r));r+=a.length+2;const s=Pe.readMPI(t.subarray(r));r+=s.length+2;const u=Pe.readMPI(t.subarray(r));return r+=u.length+2,{read:r,publicParams:{p:i,q:a,g:s,y:u}}}case he.publicKey.elgamal:{const i=Pe.readMPI(t.subarray(r));r+=i.length+2;const a=Pe.readMPI(t.subarray(r));r+=a.length+2;const s=Pe.readMPI(t.subarray(r));return r+=s.length+2,{read:r,publicParams:{p:i,g:a,y:s}}}case he.publicKey.ecdsa:{const i=new Ka;r+=i.read(t),W_(i);const a=Pe.readMPI(t.subarray(r));return r+=a.length+2,{read:r,publicParams:{oid:i,Q:a}}}case he.publicKey.eddsa:{const i=new Ka;r+=i.read(t),W_(i);let a=Pe.readMPI(t.subarray(r));return r+=a.length+2,a=Pe.leftPad(a,33),{read:r,publicParams:{oid:i,Q:a}}}case he.publicKey.ecdh:{const i=new Ka;r+=i.read(t),W_(i);const a=Pe.readMPI(t.subarray(r));r+=a.length+2;const s=new b5;return r+=s.read(t.subarray(r)),{read:r,publicParams:{oid:i,Q:a,kdfParams:s}}}default:throw new kr("Unknown public key encryption algorithm.")}},parsePrivateKeyParams:function(e,t,r){let i=0;switch(e){case he.publicKey.rsaEncrypt:case he.publicKey.rsaEncryptSign:case he.publicKey.rsaSign:{const a=Pe.readMPI(t.subarray(i));i+=a.length+2;const s=Pe.readMPI(t.subarray(i));i+=s.length+2;const u=Pe.readMPI(t.subarray(i));i+=u.length+2;const c=Pe.readMPI(t.subarray(i));return i+=c.length+2,{read:i,privateParams:{d:a,p:s,q:u,u:c}}}case he.publicKey.dsa:case he.publicKey.elgamal:{const a=Pe.readMPI(t.subarray(i));return i+=a.length+2,{read:i,privateParams:{x:a}}}case he.publicKey.ecdsa:case he.publicKey.ecdh:{const a=new $s(r.oid);let s=Pe.readMPI(t.subarray(i));return i+=s.length+2,s=Pe.leftPad(s,a.payloadSize),{read:i,privateParams:{d:s}}}case he.publicKey.eddsa:{const a=new $s(r.oid);let s=Pe.readMPI(t.subarray(i));return i+=s.length+2,s=Pe.leftPad(s,a.payloadSize),{read:i,privateParams:{seed:s}}}default:throw new kr("Unknown public key encryption algorithm.")}},parseEncSessionKeyParams:function(e,t){let r=0;switch(e){case he.publicKey.rsaEncrypt:case he.publicKey.rsaEncryptSign:return{c:Pe.readMPI(t.subarray(r))};case he.publicKey.elgamal:{const i=Pe.readMPI(t.subarray(r));return r+=i.length+2,{c1:i,c2:Pe.readMPI(t.subarray(r))}}case he.publicKey.ecdh:{const i=Pe.readMPI(t.subarray(r));r+=i.length+2;const a=new y5;return a.read(t.subarray(r)),{V:i,C:a}}default:throw new kr("Unknown public key encryption algorithm.")}},serializeParams:function(e,t){const r=Object.keys(t).map(i=>{const a=t[i];return Pe.isUint8Array(a)?Pe.uint8ArrayToMPI(a):a.write()});return Pe.concatUint8Array(r)},generateParams:function(e,t,r){switch(e){case he.publicKey.rsaEncrypt:case he.publicKey.rsaEncryptSign:case he.publicKey.rsaSign:return nr.rsa.generate(t,65537).then(({n:i,e:a,d:s,p:u,q:c,u:h})=>({privateParams:{d:s,p:u,q:c,u:h},publicParams:{n:i,e:a}}));case he.publicKey.ecdsa:return nr.elliptic.generate(r).then(({oid:i,Q:a,secret:s})=>({privateParams:{d:s},publicParams:{oid:new Ka(i),Q:a}}));case he.publicKey.eddsa:return nr.elliptic.generate(r).then(({oid:i,Q:a,secret:s})=>({privateParams:{seed:s},publicParams:{oid:new Ka(i),Q:a}}));case he.publicKey.ecdh:return nr.elliptic.generate(r).then(({oid:i,Q:a,secret:s,hash:u,cipher:c})=>({privateParams:{d:s},publicParams:{oid:new Ka(i),Q:a,kdfParams:new b5({hash:u,cipher:c})}}));case he.publicKey.dsa:case he.publicKey.elgamal:throw Error("Unsupported algorithm for key generation.");default:throw Error("Unknown public key algorithm.")}},validateParams:async function(e,t,r){if(!t||!r)throw Error("Missing key parameters");switch(e){case he.publicKey.rsaEncrypt:case he.publicKey.rsaEncryptSign:case he.publicKey.rsaSign:{const{n:i,e:a}=t,{d:s,p:u,q:c,u:h}=r;return nr.rsa.validateParams(i,a,s,u,c,h)}case he.publicKey.dsa:{const{p:i,q:a,g:s,y:u}=t,{x:c}=r;return nr.dsa.validateParams(i,a,s,u,c)}case he.publicKey.elgamal:{const{p:i,g:a,y:s}=t,{x:u}=r;return nr.elgamal.validateParams(i,a,s,u)}case he.publicKey.ecdsa:case he.publicKey.ecdh:{const i=nr.elliptic[he.read(he.publicKey,e)],{oid:a,Q:s}=t,{d:u}=r;return i.validateParams(a,s,u)}case he.publicKey.eddsa:{const{oid:i,Q:a}=t,{seed:s}=r;return nr.elliptic.eddsa.validateParams(i,a,s)}default:throw Error("Unknown public key algorithm.")}},getPrefixRandom:async function(e){const{blockSize:t}=uo(e),r=await rs(t),i=new Uint8Array([r[r.length-2],r[r.length-1]]);return Pe.concat([r,i])},generateSessionKey:function(e){const{keySize:t}=uo(e);return rs(t)},getAEADMode:function(e){const t=he.read(he.aead,e);return aD[t]},getCipher:uo});const Kt={cipher:Ad,hash:wu,mode:aD,publicKey:nr,signature:gV,random:eV,pkcs1:nV,pkcs5:hV,aesKW:fV};Object.assign(Kt,yV);var Id=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";function bD(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)}const wD={arraySet:function(e,t,r,i,a){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+i),a);else for(let s=0;s=0;)e[t]=0}const SV=0,DD=1,kV=2,Z0=29,$d=256,dd=$d+1+Z0,hu=30,Q0=19,S5=2*dd+1,Zo=15,K_=16,EV=7,q0=256,OD=16,PD=17,TD=18,hy=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Op=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],DV=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],k5=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],bs=Array(2*(dd+2));Nu(bs);const qc=Array(2*hu);Nu(qc);const fd=Array(512);Nu(fd);const hd=Array(256);Nu(hd);const eb=Array(Z0);Nu(eb);const mv=Array(hu);function H_(e,t,r,i,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=a,this.has_stree=e&&e.length}let E5,D5,O5;function G_(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function AD(e){return e<256?fd[e]:fd[256+(e>>>7)]}function pd(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function Di(e,t,r){e.bi_valid>K_-r?(e.bi_buf|=t<>K_-e.bi_valid,e.bi_valid+=r-K_):(e.bi_buf|=t<>>=1,r<<=1;while(--t>0);return r>>>1}function ID(e,t,r){const i=Array(Zo+1);let a,s,u=0;for(a=1;a<=Zo;a++)i[a]=u=u+r[a-1]<<1;for(s=0;s<=t;s++){const c=e[2*s+1];c!==0&&(e[2*s]=MD(i[c]++,c))}}function $D(e){let t;for(t=0;t8?pd(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function P5(e,t,r,i){const a=2*t,s=2*r;return e[a]>1;u>=1;u--)Y_(e,r,u);h=s;do u=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Y_(e,r,1),c=e.heap[1],e.heap[--e.heap_max]=u,e.heap[--e.heap_max]=c,r[2*h]=r[2*u]+r[2*c],e.depth[h]=(e.depth[u]>=e.depth[c]?e.depth[u]:e.depth[c])+1,r[2*u+1]=r[2*c+1]=h,e.heap[1]=h++,Y_(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(p,d){const v=d.dyn_tree,m=d.max_code,g=d.stat_desc.static_tree,y=d.stat_desc.has_stree,b=d.stat_desc.extra_bits,k=d.stat_desc.extra_base,O=d.stat_desc.max_length;let S,x,E,w,T,M,A=0;for(w=0;w<=Zo;w++)p.bl_count[w]=0;for(v[2*p.heap[p.heap_max]+1]=0,S=p.heap_max+1;SO&&(w=O,A++),v[2*x+1]=w,x>m||(p.bl_count[w]++,T=0,x>=k&&(T=b[x-k]),M=v[2*x],p.opt_len+=M*(w+T),y&&(p.static_len+=M*(g[2*x+1]+T)));if(A!==0){do{for(w=O-1;p.bl_count[w]===0;)w--;p.bl_count[w]--,p.bl_count[w+1]+=2,p.bl_count[O]--,A-=2}while(A>0);for(w=O;w!==0;w--)for(x=p.bl_count[w];x!==0;)E=p.heap[--S],E>m||(v[2*E+1]!==w&&(p.opt_len+=(w-v[2*E+1])*v[2*E],v[2*E+1]=w),x--)}}(e,t),ID(r,n,e.bl_count)}function A5(e,t,r){let i,a,s=-1,u=t[1],c=0,h=7,n=4;for(u===0&&(h=138,n=3),t[2*(r+1)+1]=65535,i=0;i<=r;i++)a=u,u=t[2*(i+1)+1],++c>=7;a=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(e)}function TV(e,t,r,i){let a,s,u=0;e.level>0?(e.strm.data_type===ED&&(e.strm.data_type=function(c){let h,n=4093624447;for(h=0;h<=31;h++,n>>>=1)if(1&n&&c.dyn_ltree[2*h]!==0)return C5;if(c.dyn_ltree[18]!==0||c.dyn_ltree[20]!==0||c.dyn_ltree[26]!==0)return x5;for(h=32;h<$d;h++)if(c.dyn_ltree[2*h]!==0)return x5;return C5}(e)),X_(e,e.l_desc),X_(e,e.d_desc),u=function(c){let h;for(A5(c,c.dyn_ltree,c.l_desc.max_code),A5(c,c.dyn_dtree,c.d_desc.max_code),X_(c,c.bl_desc),h=Q0-1;h>=3&&c.bl_tree[2*k5[h]+1]===0;h--);return c.opt_len+=3*(h+1)+5+5+4,h}(e),a=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=a&&(a=s)):a=s=r+5,r+4<=a&&t!==-1?LD(e,t,r,i):e.strategy===kD||s===a?(Di(e,(DD<<1)+(i?1:0),3),T5(e,bs,qc)):(Di(e,(kV<<1)+(i?1:0),3),function(c,h,n,p){let d;for(Di(c,h-257,5),Di(c,n-1,5),Di(c,p-4,4),d=0;d>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,t===0?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(hd[r]+$d+1)]++,e.dyn_dtree[2*AD(t)]++),e.last_lit===e.lit_bufsize-1}function vd(e,t,r,i){let a=65535&e|0,s=e>>>16&65535|0,u=0;for(;r!==0;){u=r>2e3?2e3:r,r-=u;do a=a+t[i++]|0,s=s+a|0;while(--u);a%=65521,s%=65521}return a|s<<16|0}const AV=function(){let e;const t=[];for(let r=0;r<256;r++){e=r;for(let i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();function Tr(e,t,r,i){const a=AV,s=i+r;e^=-1;for(let u=i;u>>8^a[255&(e^t[u])];return-1^e}var md={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};const MV=9,Mn=3,ro=258,ga=ro+Mn+1,IV=32,_v=42,py=69,Pp=73,Tp=91,Ap=103,Qo=113,Uc=666,Ar=1,ed=2,qo=3,pu=4,$V=3;function io(e,t){return e.msg=md[t],t}function $5(e){return(e<<1)-(e>4?9:0)}function qs(e){let t=e.length;for(;--t>=0;)e[t]=0}function Js(e){const t=e.state;let r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(as(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}function Vr(e,t){TV(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Js(e.strm)}function Ln(e,t){e.pending_buf[e.pending++]=t}function Dc(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function RV(e,t,r,i){let a=e.avail_in;return a>i&&(a=i),a===0?0:(e.avail_in-=a,as(t,e.input,e.next_in,a,r),e.state.wrap===1?e.adler=vd(e.adler,t,a,r):e.state.wrap===2&&(e.adler=Tr(e.adler,t,a,r)),e.next_in+=a,e.total_in+=a,a)}function ND(e,t){let r,i,a=e.max_chain_length,s=e.strstart,u=e.prev_length,c=e.nice_match;const h=e.strstart>e.w_size-ga?e.strstart-(e.w_size-ga):0,n=e.window,p=e.w_mask,d=e.prev,v=e.strstart+ro;let m=n[s+u-1],g=n[s+u];e.prev_length>=e.good_match&&(a>>=2),c>e.lookahead&&(c=e.lookahead);do if(r=t,n[r+u]===g&&n[r+u-1]===m&&n[r]===n[s]&&n[++r]===n[s+1]){s+=2,r++;do;while(n[++s]===n[++r]&&n[++s]===n[++r]&&n[++s]===n[++r]&&n[++s]===n[++r]&&n[++s]===n[++r]&&n[++s]===n[++r]&&n[++s]===n[++r]&&n[++s]===n[++r]&&su){if(e.match_start=t,u=i,i>=c)break;m=n[s+u-1],g=n[s+u]}}while((t=d[t&p])>h&&--a!=0);return u<=e.lookahead?u:e.lookahead}function pl(e){const t=e.w_size;let r,i,a,s,u;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-ga)){as(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do a=e.head[--r],e.head[r]=a>=t?a-t:0;while(--i);i=t,r=i;do a=e.prev[--r],e.prev[r]=a>=t?a-t:0;while(--i);s+=t}if(e.strm.avail_in===0)break;if(i=RV(e.strm,e.window,e.strstart+e.lookahead,s),e.lookahead+=i,e.lookahead+e.insert>=Mn)for(u=e.strstart-e.insert,e.ins_h=e.window[u],e.ins_h=(e.ins_h<=Mn&&(e.ins_h=(e.ins_h<=Mn)if(i=co(e,e.strstart-e.match_start,e.match_length-Mn),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Mn){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<=Mn&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=Mn-1)),e.prev_length>=Mn&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-Mn,i=co(e,e.strstart-1-e.prev_match,e.prev_length-Mn),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(pl(e),e.lookahead===0&&t===ss)return Ar;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;const i=e.block_start+r;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,Vr(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-ga&&(Vr(e,!1),e.strm.avail_out===0))return Ar}return e.insert=0,t===Ir?(Vr(e,!0),e.strm.avail_out===0?qo:pu):(e.strstart>e.block_start&&(Vr(e,!1),e.strm.avail_out),Ar)}),new Ba(4,4,8,4,J_),new Ba(4,5,16,8,J_),new Ba(4,6,32,32,J_),new Ba(4,4,16,16,Jl),new Ba(8,16,32,32,Jl),new Ba(8,16,128,128,Jl),new Ba(8,32,128,256,Jl),new Ba(32,128,258,1024,Jl),new Ba(32,258,258,4096,Jl)];class LV{constructor(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Cu,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new ia(1146),this.dyn_dtree=new ia(122),this.bl_tree=new ia(78),qs(this.dyn_ltree),qs(this.dyn_dtree),qs(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new ia(16),this.heap=new ia(573),qs(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new ia(573),qs(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}}function NV(e){const t=function(r){let i;return r&&r.state?(r.total_in=r.total_out=0,r.data_type=ED,i=r.state,i.pending=0,i.pending_out=0,i.wrap<0&&(i.wrap=-i.wrap),i.status=i.wrap?_v:Qo,r.adler=i.wrap===2?0:1,i.last_flush=ss,OV(i),Vn):io(r,br)}(e);return t===Vn&&function(r){r.window_size=2*r.w_size,qs(r.head),r.max_lazy_match=Vc[r.level].max_lazy,r.good_match=Vc[r.level].good_length,r.nice_match=Vc[r.level].nice_length,r.max_chain_length=Vc[r.level].max_chain,r.strstart=0,r.block_start=0,r.lookahead=0,r.insert=0,r.match_length=r.prev_length=Mn-1,r.match_available=0,r.ins_h=0}(e.state),t}function BV(e,t){let r,i,a,s;if(!e||!e.state||t>fy||t<0)return e?io(e,br):br;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===Uc&&t!==Ir)return io(e,e.avail_out===0?Qc:br);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===_v)if(i.wrap===2)e.adler=0,Ln(i,31),Ln(i,139),Ln(i,8),i.gzhead?(Ln(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),Ln(i,255&i.gzhead.time),Ln(i,i.gzhead.time>>8&255),Ln(i,i.gzhead.time>>16&255),Ln(i,i.gzhead.time>>24&255),Ln(i,i.level===9?2:i.strategy>=Jh||i.level<2?4:0),Ln(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(Ln(i,255&i.gzhead.extra.length),Ln(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=Tr(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=py):(Ln(i,0),Ln(i,0),Ln(i,0),Ln(i,0),Ln(i,0),Ln(i,i.level===9?2:i.strategy>=Jh||i.level<2?4:0),Ln(i,$V),i.status=Qo);else{let c=Cu+(i.w_bits-8<<4)<<8,h=-1;h=i.strategy>=Jh||i.level<2?0:i.level<6?1:i.level===6?2:3,c|=h<<6,i.strstart!==0&&(c|=IV),c+=31-c%31,i.status=Qo,Dc(i,c),i.strstart!==0&&(Dc(i,e.adler>>>16),Dc(i,65535&e.adler)),e.adler=1}if(i.status===py)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=Tr(e.adler,i.pending_buf,i.pending-a,a)),Js(e),a=i.pending,i.pending!==i.pending_buf_size));)Ln(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=Tr(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=Pp)}else i.status=Pp;if(i.status===Pp)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=Tr(e.adler,i.pending_buf,i.pending-a,a)),Js(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}s=i.gzindexa&&(e.adler=Tr(e.adler,i.pending_buf,i.pending-a,a)),s===0&&(i.gzindex=0,i.status=Tp)}else i.status=Tp;if(i.status===Tp)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=Tr(e.adler,i.pending_buf,i.pending-a,a)),Js(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}s=i.gzindexa&&(e.adler=Tr(e.adler,i.pending_buf,i.pending-a,a)),s===0&&(i.status=Ap)}else i.status=Ap;if(i.status===Ap&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&Js(e),i.pending+2<=i.pending_buf_size&&(Ln(i,255&e.adler),Ln(i,e.adler>>8&255),e.adler=0,i.status=Qo)):i.status=Qo),i.pending!==0){if(Js(e),e.avail_out===0)return i.last_flush=-1,Vn}else if(e.avail_in===0&&$5(t)<=$5(r)&&t!==Ir)return io(e,Qc);if(i.status===Uc&&e.avail_in!==0)return io(e,Qc);if(e.avail_in!==0||i.lookahead!==0||t!==ss&&i.status!==Uc){var u=i.strategy===Jh?function(c,h){let n;for(;;){if(c.lookahead===0&&(pl(c),c.lookahead===0)){if(h===ss)return Ar;break}if(c.match_length=0,n=co(c,0,c.window[c.strstart]),c.lookahead--,c.strstart++,n&&(Vr(c,!1),c.strm.avail_out===0))return Ar}return c.insert=0,h===Ir?(Vr(c,!0),c.strm.avail_out===0?qo:pu):c.last_lit&&(Vr(c,!1),c.strm.avail_out===0)?Ar:ed}(i,t):i.strategy===xV?function(c,h){let n,p,d,v;const m=c.window;for(;;){if(c.lookahead<=ro){if(pl(c),c.lookahead<=ro&&h===ss)return Ar;if(c.lookahead===0)break}if(c.match_length=0,c.lookahead>=Mn&&c.strstart>0&&(d=c.strstart-1,p=m[d],p===m[++d]&&p===m[++d]&&p===m[++d])){v=c.strstart+ro;do;while(p===m[++d]&&p===m[++d]&&p===m[++d]&&p===m[++d]&&p===m[++d]&&p===m[++d]&&p===m[++d]&&p===m[++d]&&dc.lookahead&&(c.match_length=c.lookahead)}if(c.match_length>=Mn?(n=co(c,1,c.match_length-Mn),c.lookahead-=c.match_length,c.strstart+=c.match_length,c.match_length=0):(n=co(c,0,c.window[c.strstart]),c.lookahead--,c.strstart++),n&&(Vr(c,!1),c.strm.avail_out===0))return Ar}return c.insert=0,h===Ir?(Vr(c,!0),c.strm.avail_out===0?qo:pu):c.last_lit&&(Vr(c,!1),c.strm.avail_out===0)?Ar:ed}(i,t):Vc[i.level].func(i,t);if(u!==qo&&u!==pu||(i.status=Uc),u===Ar||u===qo)return e.avail_out===0&&(i.last_flush=-1),Vn;if(u===ed&&(t===bV?PV(i):t!==fy&&(LD(i,0,0,!1),t===wV&&(qs(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),Js(e),e.avail_out===0))return i.last_flush=-1,Vn}return t!==Ir?Vn:i.wrap<=0?Os:(i.wrap===2?(Ln(i,255&e.adler),Ln(i,e.adler>>8&255),Ln(i,e.adler>>16&255),Ln(i,e.adler>>24&255),Ln(i,255&e.total_in),Ln(i,e.total_in>>8&255),Ln(i,e.total_in>>16&255),Ln(i,e.total_in>>24&255)):(Dc(i,e.adler>>>16),Dc(i,65535&e.adler)),Js(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?Vn:Os)}try{String.fromCharCode.call(null,0)}catch{}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{}const vy=new qa(256);for(let e=0;e<256;e++)vy[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;function my(e){let t,r,i,a,s=0;const u=e.length;for(i=0;i>>6,c[a++]=128|63&t):t<65536?(c[a++]=224|t>>>12,c[a++]=128|t>>>6&63,c[a++]=128|63&t):(c[a++]=240|t>>>18,c[a++]=128|t>>>12&63,c[a++]=128|t>>>6&63,c[a++]=128|63&t);return c}vy[254]=vy[254]=1;class BD{constructor(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}}class _y{constructor(t){this.options={level:w5,method:Cu,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,...t||{}};const r=this.options;r.raw&&r.windowBits>0?r.windowBits=-r.windowBits:r.gzip&&r.windowBits>0&&r.windowBits<16&&(r.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new BD,this.strm.avail_out=0;var i,a,s=function(u,c,h,n,p,d){if(!u)return br;let v=1;if(c===w5&&(c=6),n<0?(v=0,n=-n):n>15&&(v=2,n-=16),p<1||p>MV||h!==Cu||n<8||n>15||c<0||c>9||d<0||d>kD)return io(u,br);n===8&&(n=9);const m=new LV;return u.state=m,m.strm=u,m.wrap=v,m.gzhead=null,m.w_bits=n,m.w_size=1<=n.w_size&&(v===0&&(qs(n.head),n.strstart=0,n.block_start=0,n.insert=0),b=new qa(n.w_size),as(b,h,k-n.w_size,n.w_size,0),h=b,k=n.w_size),m=c.avail_in,g=c.next_in,y=c.input,c.avail_in=k,c.next_in=0,c.input=h,pl(n);n.lookahead>=Mn;){p=n.strstart,d=n.lookahead-(Mn-1);do n.ins_h=(n.ins_h<0||i.avail_out===0)&&s!==Os);return u===Ir?(s=function(c){let h;return c&&c.state?(h=c.state.status,h!==_v&&h!==py&&h!==Pp&&h!==Tp&&h!==Ap&&h!==Qo&&h!==Uc?io(c,br):(c.state=null,h===Qo?io(c,J0):Vn)):br}(this.strm),this.onEnd(s),this.ended=!0,s===Vn):u!==cd||(this.onEnd(Vn),i.avail_out=0,!0)}onData(t){this.chunks.push(t)}onEnd(t){t===Vn&&(this.result=xD(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg}}const Zh=30,FV=12;function zV(e,t){let r,i,a,s,u,c,h,n,p,d;const v=e.state;r=e.next_in;const m=e.input,g=r+(e.avail_in-5);i=e.next_out;const y=e.output,b=i-(t-e.avail_out),k=i+(e.avail_out-257),O=v.dmax,S=v.wsize,x=v.whave,E=v.wnext,w=v.window;a=v.hold,s=v.bits;const T=v.lencode,M=v.distcode,A=(1<>>24,a>>>=c,s-=c,c=u>>>16&255,c===0)y[i++]=65535&u;else{if(!(16&c)){if((64&c)==0){u=T[(65535&u)+(a&(1<>>=c,s-=c),s<15&&(a+=m[r++]<>>24,a>>>=c,s-=c,c=u>>>16&255,!(16&c)){if((64&c)==0){u=M[(65535&u)+(a&(1<O){e.msg="invalid distance too far back",v.mode=Zh;break e}if(a>>>=c,s-=c,c=i-b,n>c){if(c=n-c,c>x&&v.sane){e.msg="invalid distance too far back",v.mode=Zh;break e}if(p=0,d=w,E===0){if(p+=S-c,c2;)y[i++]=d[p++],y[i++]=d[p++],y[i++]=d[p++],h-=3;h&&(y[i++]=d[p++],h>1&&(y[i++]=d[p++]))}else{p=i-n;do y[i++]=y[p++],y[i++]=y[p++],y[i++]=y[p++],h-=3;while(h>2);h&&(y[i++]=y[p++],h>1&&(y[i++]=y[p++]))}break}}break}}while(r>3,r-=h,s-=h<<3,a&=(1<=1&&L[k]===0;k--);if(O>k&&(O=k),k===0)return a[s++]=20971520,a[s++]=20971520,c.bits=1,0;for(b=1;b0&&(e===N5||k!==1))return-1;for(Y[1]=0,g=1;gR5||e===B5&&w>L5)return 1;for(;;){N=g-x,u[y]m?(W=ue[Te+u[y]],j=M[A+u[y]]):(W=96,j=0),n=1<>x)+p]=N<<24|W<<16|j|0;while(p!==0);for(n=1<>=1;if(n!==0?(T&=n-1,T+=n):T=0,y++,--L[g]==0){if(g===k)break;g=t[r+u[y]]}if(g>O&&(T&pe)!==d){for(x===0&&(x=O),v+=b,S=g-x,E=1<R5||e===B5&&w>L5)return 1;d=T&pe,a[d]=O<<24|S<<16|v-s|0}}return T!==0&&(a[v+T]=g-x<<24|64<<16|0),c.bits=O,0}const KV=0,FD=1,zD=2,jD=1,F5=2,z5=3,j5=4,U5=5,V5=6,W5=7,K5=8,H5=9,G5=10,gv=11,_s=12,Q_=13,Y5=14,q_=15,X5=16,J5=17,Z5=18,Q5=19,Qh=20,qh=21,q5=22,ek=23,tk=24,nk=25,rk=26,eg=27,ik=28,ak=29,lr=30,HV=852,GV=592;function sk(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}class YV{constructor(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new ia(320),this.work=new ia(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}}function XV(e){let t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,function(r){let i;return r&&r.state?(i=r.state,r.total_in=r.total_out=i.total=0,r.msg="",i.wrap&&(r.adler=1&i.wrap),i.mode=jD,i.last=0,i.havedict=0,i.dmax=32768,i.head=null,i.hold=0,i.bits=0,i.lencode=i.lendyn=new vv(HV),i.distcode=i.distdyn=new vv(GV),i.sane=1,i.back=-1,Vn):br}(e)):br}function JV(e,t){let r,i;return e?(i=new YV,e.state=i,i.window=null,r=function(a,s){let u,c;return a&&a.state?(c=a.state,s<0?(u=0,s=-s):(u=1+(s>>4),s<48&&(s&=15)),s&&(s<8||s>15)?br:(c.window!==null&&c.wbits!==s&&(c.window=null),c.wrap=u,c.wbits=s,XV(a))):br}(e,t),r!==Vn&&(e.state=null),r):br}let tg,ng,ok=!0;function ZV(e){if(ok){let t;for(tg=new vv(512),ng=new vv(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(td(FD,e.lens,0,288,tg,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;td(zD,e.lens,0,32,ng,0,e.work,{bits:5}),ok=!1}e.lencode=tg,e.lenbits=9,e.distcode=ng,e.distbits=5}function UD(e,t,r,i){let a;const s=e.state;return s.window===null&&(s.wsize=1<=s.wsize?(as(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(a=s.wsize-s.wnext,a>i&&(a=i),as(s.window,t,r-i,a,s.wnext),(i-=a)?(as(s.window,t,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=a,s.wnext===s.wsize&&(s.wnext=0),s.whave>>8&255,r.check=Tr(r.check,Y,2,0),n=0,p=0,r.mode=F5;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&n)<<8)+(n>>8))%31){e.msg="incorrect header check",r.mode=lr;break}if((15&n)!==Cu){e.msg="unknown compression method",r.mode=lr;break}if(n>>>=4,p-=4,w=8+(15&n),r.wbits===0)r.wbits=w;else if(w>r.wbits){e.msg="invalid window size",r.mode=lr;break}r.dmax=1<>8&1),512&r.flags&&(Y[0]=255&n,Y[1]=n>>>8&255,r.check=Tr(r.check,Y,2,0)),n=0,p=0,r.mode=z5;case z5:for(;p<32;){if(c===0)break e;c--,n+=i[s++]<>>8&255,Y[2]=n>>>16&255,Y[3]=n>>>24&255,r.check=Tr(r.check,Y,4,0)),n=0,p=0,r.mode=j5;case j5:for(;p<16;){if(c===0)break e;c--,n+=i[s++]<>8),512&r.flags&&(Y[0]=255&n,Y[1]=n>>>8&255,r.check=Tr(r.check,Y,2,0)),n=0,p=0,r.mode=U5;case U5:if(1024&r.flags){for(;p<16;){if(c===0)break e;c--,n+=i[s++]<>>8&255,r.check=Tr(r.check,Y,2,0)),n=0,p=0}else r.head&&(r.head.extra=null);r.mode=V5;case V5:if(1024&r.flags&&(m=r.length,m>c&&(m=c),m&&(r.head&&(w=r.head.extra_len-r.length,r.head.extra||(r.head.extra=Array(r.head.extra_len)),as(r.head.extra,i,s,m,w)),512&r.flags&&(r.check=Tr(r.check,i,m,s)),c-=m,s+=m,r.length-=m),r.length))break e;r.length=0,r.mode=W5;case W5:if(2048&r.flags){if(c===0)break e;m=0;do w=i[s+m++],r.head&&w&&r.length<65536&&(r.head.name+=String.fromCharCode(w));while(w&&m>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=_s;break;case G5:for(;p<32;){if(c===0)break e;c--,n+=i[s++]<>>=7&p,p-=7&p,r.mode=eg;break}for(;p<3;){if(c===0)break e;c--,n+=i[s++]<>>=1,p-=1,3&n){case 0:r.mode=Y5;break;case 1:if(ZV(r),r.mode=Qh,t===Xh){n>>>=2,p-=2;break e}break;case 2:r.mode=J5;break;case 3:e.msg="invalid block type",r.mode=lr}n>>>=2,p-=2;break;case Y5:for(n>>>=7&p,p-=7&p;p<32;){if(c===0)break e;c--,n+=i[s++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=lr;break}if(r.length=65535&n,n=0,p=0,r.mode=q_,t===Xh)break e;case q_:r.mode=X5;case X5:if(m=r.length,m){if(m>c&&(m=c),m>h&&(m=h),m===0)break e;as(a,i,s,m,u),c-=m,s+=m,h-=m,u+=m,r.length-=m;break}r.mode=_s;break;case J5:for(;p<14;){if(c===0)break e;c--,n+=i[s++]<>>=5,p-=5,r.ndist=1+(31&n),n>>>=5,p-=5,r.ncode=4+(15&n),n>>>=4,p-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=lr;break}r.have=0,r.mode=Z5;case Z5:for(;r.have>>=3,p-=3}for(;r.have<19;)r.lens[N[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,M={bits:r.lenbits},T=td(KV,r.lens,0,19,r.lencode,0,r.work,M),r.lenbits=M.bits,T){e.msg="invalid code lengths set",r.mode=lr;break}r.have=0,r.mode=Q5;case Q5:for(;r.have>>24,k=L>>>16&255,O=65535&L,!(b<=p);){if(c===0)break e;c--,n+=i[s++]<>>=b,p-=b,r.lens[r.have++]=O;else{if(O===16){for(A=b+2;p>>=b,p-=b,r.have===0){e.msg="invalid bit length repeat",r.mode=lr;break}w=r.lens[r.have-1],m=3+(3&n),n>>>=2,p-=2}else if(O===17){for(A=b+3;p>>=b,p-=b,w=0,m=3+(7&n),n>>>=3,p-=3}else{for(A=b+7;p>>=b,p-=b,w=0,m=11+(127&n),n>>>=7,p-=7}if(r.have+m>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=lr;break}for(;m--;)r.lens[r.have++]=w}}if(r.mode===lr)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=lr;break}if(r.lenbits=9,M={bits:r.lenbits},T=td(FD,r.lens,0,r.nlen,r.lencode,0,r.work,M),r.lenbits=M.bits,T){e.msg="invalid literal/lengths set",r.mode=lr;break}if(r.distbits=6,r.distcode=r.distdyn,M={bits:r.distbits},T=td(zD,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,M),r.distbits=M.bits,T){e.msg="invalid distances set",r.mode=lr;break}if(r.mode=Qh,t===Xh)break e;case Qh:r.mode=qh;case qh:if(c>=6&&h>=258){e.next_out=u,e.avail_out=h,e.next_in=s,e.avail_in=c,r.hold=n,r.bits=p,zV(e,v),u=e.next_out,a=e.output,h=e.avail_out,s=e.next_in,i=e.input,c=e.avail_in,n=r.hold,p=r.bits,r.mode===_s&&(r.back=-1);break}for(r.back=0;L=r.lencode[n&(1<>>24,k=L>>>16&255,O=65535&L,!(b<=p);){if(c===0)break e;c--,n+=i[s++]<>S)],b=L>>>24,k=L>>>16&255,O=65535&L,!(S+b<=p);){if(c===0)break e;c--,n+=i[s++]<>>=S,p-=S,r.back+=S}if(n>>>=b,p-=b,r.back+=b,r.length=O,k===0){r.mode=rk;break}if(32&k){r.back=-1,r.mode=_s;break}if(64&k){e.msg="invalid literal/length code",r.mode=lr;break}r.extra=15&k,r.mode=q5;case q5:if(r.extra){for(A=r.extra;p>>=r.extra,p-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=ek;case ek:for(;L=r.distcode[n&(1<>>24,k=L>>>16&255,O=65535&L,!(b<=p);){if(c===0)break e;c--,n+=i[s++]<>S)],b=L>>>24,k=L>>>16&255,O=65535&L,!(S+b<=p);){if(c===0)break e;c--,n+=i[s++]<>>=S,p-=S,r.back+=S}if(n>>>=b,p-=b,r.back+=b,64&k){e.msg="invalid distance code",r.mode=lr;break}r.offset=O,r.extra=15&k,r.mode=tk;case tk:if(r.extra){for(A=r.extra;p>>=r.extra,p-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=lr;break}r.mode=nk;case nk:if(h===0)break e;if(m=v-h,r.offset>m){if(m=r.offset-m,m>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=lr;break}m>r.wnext?(m-=r.wnext,g=r.wsize-m):g=r.wnext-m,m>r.length&&(m=r.length),y=r.window}else y=a,g=u-r.offset,m=r.length;m>h&&(m=h),h-=m,r.length-=m;do a[u++]=y[g++];while(--m);r.length===0&&(r.mode=qh);break;case rk:if(h===0)break e;a[u++]=r.length,h--,r.mode=qh;break;case eg:if(r.wrap){for(;p<32;){if(c===0)break e;c--,n|=i[s++]<=0&&r.windowBits<16&&(r.windowBits=-r.windowBits,r.windowBits===0&&(r.windowBits=-15)),!(r.windowBits>=0&&r.windowBits<16)||t&&t.windowBits||(r.windowBits+=32),r.windowBits>15&&r.windowBits<48&&(15&r.windowBits)==0&&(r.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new BD,this.strm.avail_out=0;let i=JV(this.strm,r.windowBits);if(i!==Vn||(this.header=new qV,function(a,s){let u;a&&a.state&&(u=a.state,(2&u.wrap)==0||(u.head=s,s.done=!1))}(this.strm,this.header),r.dictionary&&(typeof r.dictionary=="string"?r.dictionary=my(r.dictionary):r.dictionary instanceof ArrayBuffer&&(r.dictionary=new Uint8Array(r.dictionary)),r.raw&&(i=lk(this.strm,r.dictionary),i!==Vn))))throw Error(md[i])}push(t,r){const{strm:i,options:{chunkSize:a,dictionary:s}}=this;let u,c,h=!1;if(this.ended)return!1;c=r===~~r?r:r===!0?Ir:ss,typeof t=="string"?i.input=function(n){const p=new qa(n.length);for(let d=0,v=p.length;d0||i.avail_out===0)&&u!==Os);return u===Os&&(c=Ir),c===Ir?(u=function(n){if(!n||!n.state)return br;const p=n.state;return p.window&&(p.window=null),n.state=null,Vn}(this.strm),this.onEnd(u),this.ended=!0,u===Vn):c!==cd||(this.onEnd(Vn),i.avail_out=0,!0)}onData(t){this.chunks.push(t)}onEnd(t){t===Vn&&(this.result=xD(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg}}var ck=[0,1,3,7,15,31,63,127,255],Wc=function(e){this.stream=e,this.bitOffset=0,this.curByte=0,this.hasByte=!1};Wc.prototype._ensureByte=function(){this.hasByte||(this.curByte=this.stream.readByte(),this.hasByte=!0)},Wc.prototype.read=function(e){for(var t=0;e>0;){this._ensureByte();var r=8-this.bitOffset;if(e>=r)t<<=r,t|=ck[r]&this.curByte,this.hasByte=!1,this.bitOffset=0,e-=r;else{t<<=e;var i=r-e;t|=(this.curByte&ck[e]<>i,this.bitOffset+=e,e=0}}return t},Wc.prototype.seek=function(e){var t=e%8,r=(e-t)/8;this.bitOffset=t,this.stream.seek(r),this.hasByte=!1},Wc.prototype.pi=function(){var e,t=new Uint8Array(6);for(e=0;e("00"+i.toString(16)).slice(-2)).join("")}(t)};var eW=Wc,Vo=function(){};Vo.prototype.readByte=function(){throw Error("abstract method readByte() not implemented")},Vo.prototype.read=function(e,t,r){for(var i=0;i>>0},this.updateCRC=function(t){e=e<<8^rg[255&(e>>>24^t)]},this.updateCRCRun=function(t,r){for(;r-- >0;)e=e<<8^rg[255&(e>>>24^t)]}}),dk=function(e,t){var r,i=e[t];for(r=t;r>0;r--)e[r]=e[r-1];return e[0]=i,i},ur={OK:0,LAST_BLOCK:-1,NOT_BZIP_DATA:-2,UNEXPECTED_INPUT_EOF:-3,UNEXPECTED_OUTPUT_EOF:-4,DATA_ERROR:-5,OUT_OF_MEMORY:-6,OBSOLETE_INPUT:-7,END_OF_BLOCK:-8},Zs={};Zs[ur.LAST_BLOCK]="Bad file checksum",Zs[ur.NOT_BZIP_DATA]="Not bzip data",Zs[ur.UNEXPECTED_INPUT_EOF]="Unexpected input EOF",Zs[ur.UNEXPECTED_OUTPUT_EOF]="Unexpected output EOF",Zs[ur.DATA_ERROR]="Data error",Zs[ur.OUT_OF_MEMORY]="Out of memory",Zs[ur.OBSOLETE_INPUT]="Obsolete (pre 0.9.5) bzip format not supported.";var zr=function(e,t){var r=Zs[e]||"unknown error";t&&(r+=": "+t);var i=new TypeError(r);throw i.errorCode=e,i},Kc=function(e,t){this.writePos=this.writeCurrent=this.writeCount=0,this._start_bunzip(e,t)};Kc.prototype._init_block=function(){return this._get_next_block()?(this.blockCRC=new tW,!0):(this.writeCount=-1,!1)},Kc.prototype._start_bunzip=function(e,t){var r=new Uint8Array(4);e.read(r,0,4)===4&&String.fromCharCode(r[0],r[1],r[2])==="BZh"||zr(ur.NOT_BZIP_DATA,"bad magic");var i=r[3]-48;(i<1||i>9)&&zr(ur.NOT_BZIP_DATA,"level out of range"),this.reader=new eW(e),this.dbufSize=1e5*i,this.nextoutput=0,this.outputStream=t,this.streamCRC=0},Kc.prototype._get_next_block=function(){var e,t,r,i=this.reader,a=i.pi();if(a==="177245385090")return!1;a!=="314159265359"&&zr(ur.NOT_BZIP_DATA),this.targetBlockCRC=i.read(32)>>>0,this.streamCRC=(this.targetBlockCRC^(this.streamCRC<<1|this.streamCRC>>>31))>>>0,i.read(1)&&zr(ur.OBSOLETE_INPUT);var s=i.read(24);s>this.dbufSize&&zr(ur.DATA_ERROR,"initial position out of bounds");var u=i.read(16),c=new Uint8Array(256),h=0;for(e=0;e<16;e++)if(u&1<<15-e){var n=16*e;for(r=i.read(16),t=0;t<16;t++)r&1<<15-t&&(c[h++]=n+t)}var p=i.read(3);(p<2||p>6)&&zr(ur.DATA_ERROR);var d=i.read(15);d===0&&zr(ur.DATA_ERROR);var v=new Uint8Array(256);for(e=0;e=p&&zr(ur.DATA_ERROR);m[e]=dk(v,t)}var g,y=h+2,b=[];for(t=0;t20)&&zr(ur.DATA_ERROR),i.read(1);)i.read(1)?u--:u++;S[e]=u}for(k=O=S[0],e=1;eO?O=S[e]:S[e]=d&&zr(ur.DATA_ERROR),g=b[m[L++]]),e=g.minLen,t=i.read(e);e>g.maxLen&&zr(ur.DATA_ERROR),!(t<=g.limit[e]);e++)t=t<<1|i.read(1);((t-=g.base[e])<0||t>=258)&&zr(ur.DATA_ERROR);var N=g.permute[t];if(N!==0&&N!==1){if(M)for(M=0,A+u>this.dbufSize&&zr(ur.DATA_ERROR),w[T=c[v[0]]]+=u;u--;)Y[A++]=T;if(N>h)break;A>=this.dbufSize&&zr(ur.DATA_ERROR),w[T=c[T=dk(v,e=N-1)]]++,Y[A++]=T}else M||(M=1,u=0),u+=N===0?M:2*M,M<<=1}for((s<0||s>=A)&&zr(ur.DATA_ERROR),t=0,e=0;e<256;e++)r=t+w[e],w[e]=t,t=r;for(e=0;e>=8,ue=-1),this.writePos=W,this.writeCurrent=j,this.writeCount=A,this.writeRun=ue,!0},Kc.prototype._read_bunzip=function(e,t){var r,i,a;if(this.writeCount<0)return 0;var s=this.dbuf,u=this.writePos,c=this.writeCurrent,h=this.writeCount;this.outputsize;for(var n=this.writeRun;h;){for(h--,i=c,c=255&(u=s[u]),u>>=8,n++==3?(r=c,a=i,c=-1):(r=1,a=c),this.blockCRC.updateCRCRun(a,r);r--;)this.outputStream.writeByte(a),this.nextoutput++;c!=i&&(n=0)}return this.writeCount=h,this.blockCRC.getCRC()!==this.targetBlockCRC&&zr(ur.DATA_ERROR,"Bad block CRC (got "+this.blockCRC.getCRC().toString(16)+" expected "+this.targetBlockCRC.toString(16)+")"),this.nextoutput};var nW=function(e){if("readByte"in e)return e;var t=new VD;return t.pos=0,t.readByte=function(){return e[this.pos++]},t.seek=function(r){this.pos=r},t.eof=function(){return this.pos>=e.length},t},rW=function(e){var t=new VD,r=!0;if(e)if(typeof e=="number")t.buffer=new Uint8Array(e),r=!1;else{if("writeByte"in e)return e;t.buffer=e,r=!1}else t.buffer=new Uint8Array(16384);return t.pos=0,t.writeByte=function(i){if(r&&this.pos>=this.buffer.length){var a=new Uint8Array(2*this.buffer.length);a.set(this.buffer),this.buffer=a}this.buffer[this.pos++]=i},t.getBuffer=function(){if(this.pos!==this.buffer.length){if(!r)throw new TypeError("outputsize does not match decoded input");var i=new Uint8Array(this.pos);i.set(this.buffer.subarray(0,this.pos)),this.buffer=i}return this.buffer},t._coerced=!0,t},fk=function(e,t,r){for(var i=nW(e),a=rW(t),s=new Kc(i,a);!("eof"in i)||!i.eof();)if(s._init_block())s._read_bunzip();else{var u=s.reader.read(32)>>>0;if(u!==s.streamCRC&&zr(ur.DATA_ERROR,"Bad stream CRC (got "+s.streamCRC.toString(16)+" expected "+u.toString(16)+")"),!r||!("eof"in i)||i.eof())break;s._start_bunzip(i,a)}if("getBuffer"in a)return a.getBuffer()};class Bu{static get tag(){return he.packet.literalData}constructor(t=new Date){this.format=he.literal.utf8,this.date=Pe.normalizeDate(t),this.text=null,this.data=null,this.filename=""}setText(t,r=he.literal.utf8){this.format=r,this.text=t,this.data=null}getText(t=!1){return(this.text===null||Pe.isStream(this.text))&&(this.text=Pe.decodeUTF8(Pe.nativeEOL(this.getBytes(t)))),this.text}setBytes(t,r){this.format=r,this.data=t,this.text=null}getBytes(t=!1){return this.data===null&&(this.data=Pe.canonicalizeEOL(Pe.encodeUTF8(this.text))),t?cu(this.data):this.data}setFilename(t){this.filename=t}getFilename(){return this.filename}async read(t){await Jv(t,async r=>{const i=await r.readByte(),a=await r.readByte();this.filename=Pe.decodeUTF8(await r.readBytes(a)),this.date=Pe.readDate(await r.readBytes(4));let s=r.remainder();mr(s)&&(s=await gr(s)),this.setBytes(s,i)})}writeHeader(){const t=Pe.encodeUTF8(this.filename),r=new Uint8Array([t.length]),i=new Uint8Array([this.format]),a=Pe.writeDate(this.date);return Pe.concatUint8Array([i,r,t,a])}write(){const t=this.writeHeader(),r=this.getBytes();return Pe.concat([t,r])}}const Oc=Symbol("verified"),iW=new Set([he.signatureSubpacket.issuer,he.signatureSubpacket.issuerFingerprint,he.signatureSubpacket.embeddedSignature]);class Hr{static get tag(){return he.packet.signature}constructor(){this.version=null,this.signatureType=null,this.hashAlgorithm=null,this.publicKeyAlgorithm=null,this.signatureData=null,this.unhashedSubpackets=[],this.signedHashValue=null,this.created=null,this.signatureExpirationTime=null,this.signatureNeverExpires=!0,this.exportable=null,this.trustLevel=null,this.trustAmount=null,this.regularExpression=null,this.revocable=null,this.keyExpirationTime=null,this.keyNeverExpires=null,this.preferredSymmetricAlgorithms=null,this.revocationKeyClass=null,this.revocationKeyAlgorithm=null,this.revocationKeyFingerprint=null,this.issuerKeyID=new mo,this.rawNotations=[],this.notations={},this.preferredHashAlgorithms=null,this.preferredCompressionAlgorithms=null,this.keyServerPreferences=null,this.preferredKeyServer=null,this.isPrimaryUserID=null,this.policyURI=null,this.keyFlags=null,this.signersUserID=null,this.reasonForRevocationFlag=null,this.reasonForRevocationString=null,this.features=null,this.signatureTargetPublicKeyAlgorithm=null,this.signatureTargetHashAlgorithm=null,this.signatureTargetHash=null,this.embeddedSignature=null,this.issuerKeyVersion=null,this.issuerFingerprint=null,this.preferredAEADAlgorithms=null,this.revoked=null,this[Oc]=null}read(t){let r=0;if(this.version=t[r++],this.version!==4&&this.version!==5)throw new kr(`Version ${this.version} of the signature packet is unsupported.`);if(this.signatureType=t[r++],this.publicKeyAlgorithm=t[r++],this.hashAlgorithm=t[r++],r+=this.readSubPackets(t.subarray(r,t.length),!0),!this.created)throw Error("Missing signature creation time subpacket.");this.signatureData=t.subarray(0,r),r+=this.readSubPackets(t.subarray(r,t.length),!1),this.signedHashValue=t.subarray(r,r+2),r+=2,this.params=Kt.signature.parseSignatureParams(this.publicKeyAlgorithm,t.subarray(r,t.length))}writeParams(){return this.params instanceof Promise?wo(async()=>Kt.serializeParams(this.publicKeyAlgorithm,await this.params)):Kt.serializeParams(this.publicKeyAlgorithm,this.params)}write(){const t=[];return t.push(this.signatureData),t.push(this.writeUnhashedSubPackets()),t.push(this.signedHashValue),t.push(this.writeParams()),Pe.concat(t)}async sign(t,r,i=new Date,a=!1){t.version===5?this.version=5:this.version=4;const s=[new Uint8Array([this.version,this.signatureType,this.publicKeyAlgorithm,this.hashAlgorithm])];this.created=Pe.normalizeDate(i),this.issuerKeyVersion=t.version,this.issuerFingerprint=t.getFingerprintBytes(),this.issuerKeyID=t.getKeyID(),s.push(this.writeHashedSubPackets()),this.unhashedSubpackets=[],this.signatureData=Pe.concat(s);const u=this.toHash(this.signatureType,r,a),c=await this.hash(this.signatureType,r,u,a);this.signedHashValue=Wr(hl(c),0,2);const h=async()=>Kt.signature.sign(this.publicKeyAlgorithm,this.hashAlgorithm,t.publicParams,t.privateParams,u,await gr(c));Pe.isStream(c)?this.params=h():(this.params=await h(),this[Oc]=!0)}writeHashedSubPackets(){const t=he.signatureSubpacket,r=[];let i;if(this.created===null)throw Error("Missing signature creation time");r.push(tr(t.signatureCreationTime,!0,Pe.writeDate(this.created))),this.signatureExpirationTime!==null&&r.push(tr(t.signatureExpirationTime,!0,Pe.writeNumber(this.signatureExpirationTime,4))),this.exportable!==null&&r.push(tr(t.exportableCertification,!0,new Uint8Array([this.exportable?1:0]))),this.trustLevel!==null&&(i=new Uint8Array([this.trustLevel,this.trustAmount]),r.push(tr(t.trustSignature,!0,i))),this.regularExpression!==null&&r.push(tr(t.regularExpression,!0,this.regularExpression)),this.revocable!==null&&r.push(tr(t.revocable,!0,new Uint8Array([this.revocable?1:0]))),this.keyExpirationTime!==null&&r.push(tr(t.keyExpirationTime,!0,Pe.writeNumber(this.keyExpirationTime,4))),this.preferredSymmetricAlgorithms!==null&&(i=Pe.stringToUint8Array(Pe.uint8ArrayToString(this.preferredSymmetricAlgorithms)),r.push(tr(t.preferredSymmetricAlgorithms,!1,i))),this.revocationKeyClass!==null&&(i=new Uint8Array([this.revocationKeyClass,this.revocationKeyAlgorithm]),i=Pe.concat([i,this.revocationKeyFingerprint]),r.push(tr(t.revocationKey,!1,i))),this.issuerKeyID.isNull()||this.issuerKeyVersion===5||r.push(tr(t.issuer,!0,this.issuerKeyID.write())),this.rawNotations.forEach(({name:u,value:c,humanReadable:h,critical:n})=>{i=[new Uint8Array([h?128:0,0,0,0])];const p=Pe.encodeUTF8(u);i.push(Pe.writeNumber(p.length,2)),i.push(Pe.writeNumber(c.length,2)),i.push(p),i.push(c),i=Pe.concat(i),r.push(tr(t.notationData,n,i))}),this.preferredHashAlgorithms!==null&&(i=Pe.stringToUint8Array(Pe.uint8ArrayToString(this.preferredHashAlgorithms)),r.push(tr(t.preferredHashAlgorithms,!1,i))),this.preferredCompressionAlgorithms!==null&&(i=Pe.stringToUint8Array(Pe.uint8ArrayToString(this.preferredCompressionAlgorithms)),r.push(tr(t.preferredCompressionAlgorithms,!1,i))),this.keyServerPreferences!==null&&(i=Pe.stringToUint8Array(Pe.uint8ArrayToString(this.keyServerPreferences)),r.push(tr(t.keyServerPreferences,!1,i))),this.preferredKeyServer!==null&&r.push(tr(t.preferredKeyServer,!1,Pe.encodeUTF8(this.preferredKeyServer))),this.isPrimaryUserID!==null&&r.push(tr(t.primaryUserID,!1,new Uint8Array([this.isPrimaryUserID?1:0]))),this.policyURI!==null&&r.push(tr(t.policyURI,!1,Pe.encodeUTF8(this.policyURI))),this.keyFlags!==null&&(i=Pe.stringToUint8Array(Pe.uint8ArrayToString(this.keyFlags)),r.push(tr(t.keyFlags,!0,i))),this.signersUserID!==null&&r.push(tr(t.signersUserID,!1,Pe.encodeUTF8(this.signersUserID))),this.reasonForRevocationFlag!==null&&(i=Pe.stringToUint8Array(String.fromCharCode(this.reasonForRevocationFlag)+this.reasonForRevocationString),r.push(tr(t.reasonForRevocation,!0,i))),this.features!==null&&(i=Pe.stringToUint8Array(Pe.uint8ArrayToString(this.features)),r.push(tr(t.features,!1,i))),this.signatureTargetPublicKeyAlgorithm!==null&&(i=[new Uint8Array([this.signatureTargetPublicKeyAlgorithm,this.signatureTargetHashAlgorithm])],i.push(Pe.stringToUint8Array(this.signatureTargetHash)),i=Pe.concat(i),r.push(tr(t.signatureTarget,!0,i))),this.embeddedSignature!==null&&r.push(tr(t.embeddedSignature,!0,this.embeddedSignature.write())),this.issuerFingerprint!==null&&(i=[new Uint8Array([this.issuerKeyVersion]),this.issuerFingerprint],i=Pe.concat(i),r.push(tr(t.issuerFingerprint,this.version===5,i))),this.preferredAEADAlgorithms!==null&&(i=Pe.stringToUint8Array(Pe.uint8ArrayToString(this.preferredAEADAlgorithms)),r.push(tr(t.preferredAEADAlgorithms,!1,i)));const a=Pe.concat(r),s=Pe.writeNumber(a.length,2);return Pe.concat([s,a])}writeUnhashedSubPackets(){const t=[];this.unhashedSubpackets.forEach(a=>{t.push(Md(a.length)),t.push(a)});const r=Pe.concat(t),i=Pe.writeNumber(r.length,2);return Pe.concat([i,r])}readSubPacket(t,r=!0){let i=0;const a=!!(128&t[i]),s=127&t[i];if(r||(this.unhashedSubpackets.push(t.subarray(i,t.length)),iW.has(s)))switch(i++,s){case he.signatureSubpacket.signatureCreationTime:this.created=Pe.readDate(t.subarray(i,t.length));break;case he.signatureSubpacket.signatureExpirationTime:{const u=Pe.readNumber(t.subarray(i,t.length));this.signatureNeverExpires=u===0,this.signatureExpirationTime=u;break}case he.signatureSubpacket.exportableCertification:this.exportable=t[i++]===1;break;case he.signatureSubpacket.trustSignature:this.trustLevel=t[i++],this.trustAmount=t[i++];break;case he.signatureSubpacket.regularExpression:this.regularExpression=t[i];break;case he.signatureSubpacket.revocable:this.revocable=t[i++]===1;break;case he.signatureSubpacket.keyExpirationTime:{const u=Pe.readNumber(t.subarray(i,t.length));this.keyExpirationTime=u,this.keyNeverExpires=u===0;break}case he.signatureSubpacket.preferredSymmetricAlgorithms:this.preferredSymmetricAlgorithms=[...t.subarray(i,t.length)];break;case he.signatureSubpacket.revocationKey:this.revocationKeyClass=t[i++],this.revocationKeyAlgorithm=t[i++],this.revocationKeyFingerprint=t.subarray(i,i+20);break;case he.signatureSubpacket.issuer:this.issuerKeyID.read(t.subarray(i,t.length));break;case he.signatureSubpacket.notationData:{const u=!!(128&t[i]);i+=4;const c=Pe.readNumber(t.subarray(i,i+2));i+=2;const h=Pe.readNumber(t.subarray(i,i+2));i+=2;const n=Pe.decodeUTF8(t.subarray(i,i+c)),p=t.subarray(i+c,i+c+h);this.rawNotations.push({name:n,humanReadable:u,value:p,critical:a}),u&&(this.notations[n]=Pe.decodeUTF8(p));break}case he.signatureSubpacket.preferredHashAlgorithms:this.preferredHashAlgorithms=[...t.subarray(i,t.length)];break;case he.signatureSubpacket.preferredCompressionAlgorithms:this.preferredCompressionAlgorithms=[...t.subarray(i,t.length)];break;case he.signatureSubpacket.keyServerPreferences:this.keyServerPreferences=[...t.subarray(i,t.length)];break;case he.signatureSubpacket.preferredKeyServer:this.preferredKeyServer=Pe.decodeUTF8(t.subarray(i,t.length));break;case he.signatureSubpacket.primaryUserID:this.isPrimaryUserID=t[i++]!==0;break;case he.signatureSubpacket.policyURI:this.policyURI=Pe.decodeUTF8(t.subarray(i,t.length));break;case he.signatureSubpacket.keyFlags:this.keyFlags=[...t.subarray(i,t.length)];break;case he.signatureSubpacket.signersUserID:this.signersUserID=Pe.decodeUTF8(t.subarray(i,t.length));break;case he.signatureSubpacket.reasonForRevocation:this.reasonForRevocationFlag=t[i++],this.reasonForRevocationString=Pe.decodeUTF8(t.subarray(i,t.length));break;case he.signatureSubpacket.features:this.features=[...t.subarray(i,t.length)];break;case he.signatureSubpacket.signatureTarget:{this.signatureTargetPublicKeyAlgorithm=t[i++],this.signatureTargetHashAlgorithm=t[i++];const u=Kt.getHashByteLength(this.signatureTargetHashAlgorithm);this.signatureTargetHash=Pe.uint8ArrayToString(t.subarray(i,i+u));break}case he.signatureSubpacket.embeddedSignature:this.embeddedSignature=new Hr,this.embeddedSignature.read(t.subarray(i,t.length));break;case he.signatureSubpacket.issuerFingerprint:this.issuerKeyVersion=t[i++],this.issuerFingerprint=t.subarray(i,t.length),this.issuerKeyVersion===5?this.issuerKeyID.read(this.issuerFingerprint):this.issuerKeyID.read(this.issuerFingerprint.subarray(-8));break;case he.signatureSubpacket.preferredAEADAlgorithms:this.preferredAEADAlgorithms=[...t.subarray(i,t.length)];break;default:{const u=Error("Unknown signature subpacket type "+s);if(a)throw u;Pe.printDebug(u)}}}readSubPackets(t,r=!0,i){const a=Pe.readNumber(t.subarray(0,2));let s=2;for(;s<2+a;){const u=lD(t.subarray(s,t.length));s+=u.offset,this.readSubPacket(t.subarray(s,s+u.len),r,i),s+=u.len}return s}toSign(t,r){const i=he.signature;switch(t){case i.binary:return r.text!==null?Pe.encodeUTF8(r.getText(!0)):r.getBytes(!0);case i.text:{const a=r.getBytes(!0);return Pe.canonicalizeEOL(a)}case i.standalone:return new Uint8Array(0);case i.certGeneric:case i.certPersona:case i.certCasual:case i.certPositive:case i.certRevocation:{let a,s;if(r.userID)s=180,a=r.userID;else{if(!r.userAttribute)throw Error("Either a userID or userAttribute packet needs to be supplied for certification.");s=209,a=r.userAttribute}const u=a.write();return Pe.concat([this.toSign(i.key,r),new Uint8Array([s]),Pe.writeNumber(u.length,4),u])}case i.subkeyBinding:case i.subkeyRevocation:case i.keyBinding:return Pe.concat([this.toSign(i.key,r),this.toSign(i.key,{key:r.bind})]);case i.key:if(r.key===void 0)throw Error("Key packet is required for this signature.");return r.key.writeForHash(this.version);case i.keyRevocation:return this.toSign(i.key,r);case i.timestamp:return new Uint8Array(0);case i.thirdParty:throw Error("Not implemented");default:throw Error("Unknown signature type.")}}calculateTrailer(t,r){let i=0;return fr(hl(this.signatureData),a=>{i+=a.length},()=>{const a=[];return this.version!==5||this.signatureType!==he.signature.binary&&this.signatureType!==he.signature.text||(r?a.push(new Uint8Array(6)):a.push(t.writeHeader())),a.push(new Uint8Array([this.version,255])),this.version===5&&a.push(new Uint8Array(4)),a.push(Pe.writeNumber(i,4)),Pe.concat(a)})}toHash(t,r,i=!1){const a=this.toSign(t,r);return Pe.concat([a,this.signatureData,this.calculateTrailer(r,i)])}async hash(t,r,i,a=!1){return i||(i=this.toHash(t,r,a)),Kt.hash.digest(this.hashAlgorithm,i)}async verify(t,r,i,a=new Date,s=!1,u=Nt){if(!this.issuerKeyID.equals(t.getKeyID()))throw Error("Signature was not issued by the given public key");if(this.publicKeyAlgorithm!==t.algorithm)throw Error("Public key algorithm used to sign signature does not match issuer key algorithm.");const c=r===he.signature.binary||r===he.signature.text;if(!(this[Oc]&&!c)){let n,p;if(this.hashed?p=await this.hashed:(n=this.toHash(r,i,s),p=await this.hash(r,i,n)),p=await gr(p),this.signedHashValue[0]!==p[0]||this.signedHashValue[1]!==p[1])throw Error("Signed digest did not match");if(this.params=await this.params,this[Oc]=await Kt.signature.verify(this.publicKeyAlgorithm,this.hashAlgorithm,this.params,t.publicParams,n,p),!this[Oc])throw Error("Signature verification failed")}const h=Pe.normalizeDate(a);if(h&&this.created>h)throw Error("Signature creation time is in the future");if(h&&h>=this.getExpirationTime())throw Error("Signature is expired");if(u.rejectHashAlgorithms.has(this.hashAlgorithm))throw Error("Insecure hash algorithm: "+he.read(he.hash,this.hashAlgorithm).toUpperCase());if(u.rejectMessageHashAlgorithms.has(this.hashAlgorithm)&&[he.signature.binary,he.signature.text].includes(this.signatureType))throw Error("Insecure message hash algorithm: "+he.read(he.hash,this.hashAlgorithm).toUpperCase());if(this.rawNotations.forEach(({name:n,critical:p})=>{if(p&&u.knownNotations.indexOf(n)<0)throw Error("Unknown critical notation: "+n)}),this.revocationKeyClass!==null)throw Error("This key is intended to be revoked with an authorized key, which OpenPGP.js does not support.")}isExpired(t=new Date){const r=Pe.normalizeDate(t);return r!==null&&!(this.created<=r&&rHr.prototype.calculateTrailer.apply(await this.correspondingSig,t))}async verify(){const t=await this.correspondingSig;if(!t||t.constructor.tag!==he.packet.signature)throw Error("Corresponding signature packet missing");if(t.signatureType!==this.signatureType||t.hashAlgorithm!==this.hashAlgorithm||t.publicKeyAlgorithm!==this.publicKeyAlgorithm||!t.issuerKeyID.equals(this.issuerKeyID))throw Error("Corresponding signature packet does not match one-pass signature packet");return t.hashed=this.hashed,t.verify.apply(t,arguments)}}function aW(e,t){if(!t[e]){let r;try{r=he.read(he.packet,e)}catch{throw new kr("Unknown packet type with tag: "+e)}throw Error("Packet not allowed in this context: "+r)}return new t[e]}ya.prototype.hash=Hr.prototype.hash,ya.prototype.toHash=Hr.prototype.toHash,ya.prototype.toSign=Hr.prototype.toSign;class zn extends Array{static async fromBinary(t,r,i=Nt){const a=new zn;return await a.read(t,r,i),a}async read(t,r,i=Nt){this.stream=As(t,async(s,u)=>{const c=Ri(u);try{for(;;)if(await c.ready,await sV(s,async h=>{try{if(h.tag===he.packet.marker||h.tag===he.packet.trust)return;const n=aW(h.tag,r);n.packets=new zn,n.fromStream=Pe.isStream(h.packet),await n.read(h.packet,i),await c.write(n)}catch(n){const p=!i.ignoreUnsupportedPackets&&n instanceof kr,d=!(i.ignoreMalformedPackets||n instanceof kr);if(p||d||Ep(h.tag))await c.abort(n);else{const v=new dy(h.tag,h.packet);await c.write(v)}Pe.printDebugError(n)}}))return await c.ready,void await c.close()}catch(h){await c.abort(h)}});const a=ls(this.stream);for(;;){const{done:s,value:u}=await a.read();if(s?this.stream=null:this.push(u),s||Ep(u.constructor.tag))break}a.releaseLock()}write(){const t=[];for(let r=0;r{if(s.push(h),u+=h.length,u>=c){const n=Math.min(Math.log(u)/Math.LN2|0,30),p=2**n,d=Pe.concat([aV(n)].concat(s));return s=[d.subarray(1+p)],u=s[0].length,d.subarray(0,1+p)}},()=>Pe.concat([Md(u)].concat(s))))}else{if(Pe.isStream(a)){let s=0;t.push(fr(hl(a),u=>{s+=u.length},()=>p5(i,s)))}else t.push(p5(i,a.length));t.push(a)}}return Pe.concat(t)}filterByTag(...t){const r=new zn,i=a=>s=>a===s;for(let a=0;ar.constructor.tag===t)}indexOfTag(...t){const r=[],i=this,a=s=>u=>s===u;for(let s=0;s{this.algorithm=await i.readByte(),this.compressed=i.remainder(),await this.decompress(r)})}write(){return this.compressed===null&&this.compress(),Pe.concat([new Uint8Array([this.algorithm]),this.compressed])}async decompress(t=Nt){const r=he.read(he.compression,this.algorithm),i=lW[r];if(!i)throw Error(r+" decompression not supported");this.packets=await zn.fromBinary(i(this.compressed),sW,t)}compress(){const t=he.read(he.compression,this.algorithm),r=oW[t];if(!r)throw Error(t+" compression not supported");this.compressed=r(this.packets.write(),this.deflateLevel)}}const Xa=Pe.getNodeZlib();function hk(e){return e}function yv(e,t,r={}){return function(i){return!Pe.isStream(i)||mr(i)?wo(()=>gr(i).then(a=>new Promise((s,u)=>{e(a,r,(c,h)=>{if(c)return u(c);s(h)})}))):Xv(j0(i).pipe(t(r)))}}function bv(e,t={}){return function(r){const i=new e(t);return fr(r,a=>{if(a.length)return i.push(a,cd),i.result},()=>{if(e===_y)return i.push([],Ir),i.result})}}function pk(e){return function(t){return wo(async()=>e(await gr(t)))}}const oW=Xa?{zip:(e,t)=>yv(Xa.deflateRaw,Xa.createDeflateRaw,{level:t})(e),zlib:(e,t)=>yv(Xa.deflate,Xa.createDeflate,{level:t})(e)}:{zip:(e,t)=>bv(_y,{raw:!0,level:t})(e),zlib:(e,t)=>bv(_y,{level:t})(e)},lW=Xa?{uncompressed:hk,zip:yv(Xa.inflateRaw,Xa.createInflateRaw),zlib:yv(Xa.inflate,Xa.createInflate),bzip2:pk(fk)}:{uncompressed:hk,zip:bv(uk,{raw:!0}),zlib:bv(uk),bzip2:pk(fk)},uW=Pe.constructAllowedPackets([Bu,Rd,ya,Hr]);class WD{static get tag(){return he.packet.symEncryptedIntegrityProtectedData}constructor(){this.version=1,this.encrypted=null,this.packets=null}async read(t){await Jv(t,async r=>{const i=await r.readByte();if(i!==1)throw new kr(`Version ${i} of the SEIP packet is unsupported.`);this.encrypted=r.remainder()})}write(){return Pe.concat([new Uint8Array([1]),this.encrypted])}async encrypt(t,r,i=Nt){const{blockSize:a}=Kt.getCipher(t);let s=this.packets.write();mr(s)&&(s=await gr(s));const u=await Kt.getPrefixRandom(t),c=new Uint8Array([211,20]),h=Pe.concat([u,s,c]),n=await Kt.hash.sha1(cu(h)),p=Pe.concat([h,n]);return this.encrypted=await Kt.mode.cfb.encrypt(t,r,p,new Uint8Array(a),i),!0}async decrypt(t,r,i=Nt){const{blockSize:a}=Kt.getCipher(t);let s=hl(this.encrypted);mr(s)&&(s=await gr(s));const u=await Kt.mode.cfb.decrypt(t,r,s,new Uint8Array(a)),c=Wr(cu(u),-20),h=Wr(u,0,-20),n=Promise.all([gr(await Kt.hash.sha1(cu(h))),gr(c)]).then(([v,m])=>{if(!Pe.equalsUint8Array(v,m))throw Error("Modification detected.");return new Uint8Array}),p=Wr(h,a+2);let d=Wr(p,0,-2);return d=Ti([d,wo(()=>n)]),Pe.isStream(s)&&i.allowUnauthenticatedStream||(d=await gr(d)),this.packets=await zn.fromBinary(d,uW,i),!0}}const cW=Pe.constructAllowedPackets([Bu,Rd,ya,Hr]);class am{static get tag(){return he.packet.aeadEncryptedData}constructor(){this.version=1,this.cipherAlgorithm=null,this.aeadAlgorithm=he.aead.eax,this.chunkSizeByte=null,this.iv=null,this.encrypted=null,this.packets=null}async read(t){await Jv(t,async r=>{const i=await r.readByte();if(i!==1)throw new kr(`Version ${i} of the AEAD-encrypted data packet is not supported.`);this.cipherAlgorithm=await r.readByte(),this.aeadAlgorithm=await r.readByte(),this.chunkSizeByte=await r.readByte();const a=Kt.getAEADMode(this.aeadAlgorithm);this.iv=await r.readBytes(a.ivLength),this.encrypted=r.remainder()})}write(){return Pe.concat([new Uint8Array([this.version,this.cipherAlgorithm,this.aeadAlgorithm,this.chunkSizeByte]),this.iv,this.encrypted])}async decrypt(t,r,i=Nt){this.packets=await zn.fromBinary(await this.crypt("decrypt",r,hl(this.encrypted)),cW,i)}async encrypt(t,r,i=Nt){this.cipherAlgorithm=t;const{ivLength:a}=Kt.getAEADMode(this.aeadAlgorithm);this.iv=Kt.random.getRandomBytes(a),this.chunkSizeByte=i.aeadChunkSizeByte;const s=this.packets.write();this.encrypted=await this.crypt("encrypt",r,s)}async crypt(t,r,i){const a=Kt.getAEADMode(this.aeadAlgorithm),s=await a(this.cipherAlgorithm,r),u=t==="decrypt"?a.tagLength:0,c=t==="encrypt"?a.tagLength:0,h=2**(this.chunkSizeByte+6)+u,n=new ArrayBuffer(21),p=new Uint8Array(n,0,13),d=new Uint8Array(n),v=new DataView(n),m=new Uint8Array(n,5,8);p.set([192|am.tag,this.version,this.cipherAlgorithm,this.aeadAlgorithm,this.chunkSizeByte],0);let g=0,y=Promise.resolve(),b=0,k=0;const O=this.iv;return As(i,async(S,x)=>{if(Pe.isStream(S)!=="array"){const T=new bu({},{highWaterMark:Pe.getHardwareConcurrency()*2**(this.chunkSizeByte+6),size:M=>M.length});vo(T.readable,x),x=T.writable}const E=ls(S),w=Ri(x);try{for(;;){let T=await E.readBytes(h+u)||new Uint8Array;const M=T.subarray(T.length-u);let A,L;if(T=T.subarray(0,T.length-u),!g||T.length?(E.unshift(M),A=s[t](T,a.getNonce(O,m),p),k+=T.length-u+c):(v.setInt32(17,b),A=s[t](M,a.getNonce(O,m),d),k+=c,L=!0),b+=T.length-u,y=y.then(()=>A).then(async Y=>{await w.ready,await w.write(Y),k-=Y.length}).catch(Y=>w.abort(Y)),(L||k>w.desiredSize)&&await y,L){await w.close();break}v.setInt32(9,++g)}}catch(T){await w.abort(T)}})}}class gy{static get tag(){return he.packet.publicKeyEncryptedSessionKey}constructor(){this.version=3,this.publicKeyID=new mo,this.publicKeyAlgorithm=null,this.sessionKey=null,this.sessionKeyAlgorithm=null,this.encrypted={}}read(t){if(this.version=t[0],this.version!==3)throw new kr(`Version ${this.version} of the PKESK packet is unsupported.`);this.publicKeyID.read(t.subarray(1,t.length)),this.publicKeyAlgorithm=t[9],this.encrypted=Kt.parseEncSessionKeyParams(this.publicKeyAlgorithm,t.subarray(10))}write(){const t=[new Uint8Array([this.version]),this.publicKeyID.write(),new Uint8Array([this.publicKeyAlgorithm]),Kt.serializeParams(this.publicKeyAlgorithm,this.encrypted)];return Pe.concatUint8Array(t)}async encrypt(t){const r=Pe.concatUint8Array([new Uint8Array([he.write(he.symmetric,this.sessionKeyAlgorithm)]),this.sessionKey,Pe.writeChecksum(this.sessionKey)]),i=he.write(he.publicKey,this.publicKeyAlgorithm);this.encrypted=await Kt.publicKeyEncrypt(i,t.publicParams,r,t.getFingerprintBytes())}async decrypt(t,r){if(this.publicKeyAlgorithm!==t.algorithm)throw Error("Decryption error");const i=r?Pe.concatUint8Array([new Uint8Array([r.sessionKeyAlgorithm]),r.sessionKey,Pe.writeChecksum(r.sessionKey)]):null,a=await Kt.publicKeyDecrypt(this.publicKeyAlgorithm,t.publicParams,t.privateParams,this.encrypted,t.getFingerprintBytes(),i),s=a[0],u=a.subarray(1,a.length-2),c=a.subarray(a.length-2),h=Pe.writeChecksum(u),n=h[0]===c[0]&h[1]===c[1];if(r){const p=n&s===r.sessionKeyAlgorithm&u.length===r.sessionKey.length;this.sessionKeyAlgorithm=Pe.selectUint8(p,s,r.sessionKeyAlgorithm),this.sessionKey=Pe.selectUint8Array(p,u,r.sessionKey)}else{if(!(n&&he.read(he.symmetric,s)))throw Error("Decryption error");this.sessionKey=u,this.sessionKeyAlgorithm=s}}}class nd{constructor(t=Nt){this.algorithm=he.hash.sha256,this.type="iterated",this.c=t.s2kIterationCountByte,this.salt=null}getCount(){return 16+(15&this.c)<<6+(this.c>>4)}read(t){let r=0;switch(this.type=he.read(he.s2k,t[r++]),this.algorithm=t[r++],this.type){case"simple":break;case"salted":this.salt=t.subarray(r,r+8),r+=8;break;case"iterated":this.salt=t.subarray(r,r+8),r+=8,this.c=t[r++];break;case"gnu":if(Pe.uint8ArrayToString(t.subarray(r,r+3))!=="GNU")throw Error("Unknown s2k type.");if(r+=3,1e3+t[r++]!==1001)throw Error("Unknown s2k gnu protection mode.");this.type="gnu-dummy";break;default:throw Error("Unknown s2k type.")}return r}write(){if(this.type==="gnu-dummy")return new Uint8Array([101,0,...Pe.stringToUint8Array("GNU"),1]);const t=[new Uint8Array([he.write(he.s2k,this.type),this.algorithm])];switch(this.type){case"simple":break;case"salted":t.push(this.salt);break;case"iterated":t.push(this.salt),t.push(new Uint8Array([this.c]));break;case"gnu":throw Error("GNU s2k type not supported.");default:throw Error("Unknown s2k type.")}return Pe.concatUint8Array(t)}async produceKey(t,r){t=Pe.encodeUTF8(t);const i=[];let a=0,s=0;for(;a{this.privateParams[t].fill(0),delete this.privateParams[t]}),this.privateParams=null,this.isEncrypted=!0)}}async function vk(e,t,r){const{keySize:i}=Kt.getCipher(r);return e.produceKey(t,i)}var hW=H0(function(e){(function(t){function r(a){function s(){return Zt0&&(at.semantic=" "),at}}function S(rt,at){return function(){var xt,Ut,Ee,Be,Fe;for(Be=u(),xt=n("star"),Ee=0,Fe=at===void 0?0:at;(Ut=rt())!==null;)Ee+=1,d(xt,Ut);return Ee>=Fe?xt:(c(Be),null)}}function x(rt){return rt.charCodeAt(0)>=128}function E(){return p("cr",m("\r")())}function w(){return p("crlf",g(E,A)())}function T(){return p("dquote",m('"')())}function M(){return p("htab",m(" ")())}function A(){return p("lf",m(` +`)}return Pe.concat(n)}class mo{constructor(){this.bytes=""}read(t){this.bytes=Pe.uint8ArrayToString(t.subarray(0,8))}write(){return Pe.stringToUint8Array(this.bytes)}toHex(){return Pe.uint8ArrayToHex(Pe.stringToUint8Array(this.bytes))}equals(t,r=!1){return r&&(t.isWildcard()||this.isWildcard())||this.bytes===t.bytes}isNull(){return this.bytes===""}isWildcard(){return/^0+$/.test(this.toHex())}static mapToHex(t){return t.toHex()}static fromID(t){const r=new mo;return r.read(Pe.hexToUint8Array(t)),r}static wildcard(){const t=new mo;return t.read(new Uint8Array(8)),t}}var En=function(){var e,t,r=!1;function i(d,v){var m=e[(t[d]+t[v])%255];return d!==0&&v!==0||(m=0),m}var a,s,u,c,h=!1;function n(){function d(y){var b,k,O;for(k=O=function(S){var x=e[255-t[S]];return S===0&&(x=0),x}(y),b=0;b<4;b++)O^=k=255&(k<<1|k>>>7);return O^=99}r||function(){e=[],t=[];var y,b,k=1;for(y=0;y<255;y++)e[y]=k,b=128&k,k<<=1,k&=255,b===128&&(k^=27),k^=e[y],t[e[y]]=y;e[255]=e[0],t[0]=0,r=!0}(),a=[],s=[],u=[[],[],[],[]],c=[[],[],[],[]];for(var v=0;v<256;v++){var m=d(v);a[v]=m,s[m]=v,u[0][v]=i(2,m)<<24|m<<16|m<<8|i(3,m),c[0][m]=i(14,v)<<24|i(9,v)<<16|i(13,v)<<8|i(11,v);for(var g=1;g<4;g++)u[g][v]=u[g-1][v]>>>8|u[g-1][v]<<24,c[g][m]=c[g-1][m]>>>8|c[g-1][m]<<24}h=!0}var p=function(d,v){h||n();var m=new Uint32Array(v);m.set(a,512),m.set(s,768);for(var g=0;g<4;g++)m.set(u[g],4096+1024*g>>2),m.set(c[g],8192+1024*g>>2);var y=function(b,k,O){var S=0,x=0,E=0,w=0,T=0,M=0,A=0,L=0,Y=0,N=0,W=0,j=0,ue=0,Te=0,pe=0,ye=0,de=0,ke=0,ie=0,be=0,Ie=0,De=new b.Uint32Array(O),ae=new b.Uint8Array(O);function ee(ce,le,Ve,Je,gt,Pt,At,It){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0,gt=gt|0,Pt=Pt|0,At=At|0,It=It|0;var ht=0,Rt=0,Tt=0,dn=0,nn=0,Xt=0,Gt=0,Zt=0;for(ht=Ve|1024,Rt=Ve|2048,Tt=Ve|3072,gt=gt^De[(ce|0)>>2],Pt=Pt^De[(ce|4)>>2],At=At^De[(ce|8)>>2],It=It^De[(ce|12)>>2],Zt=16;(Zt|0)<=Je<<4;Zt=Zt+16|0)dn=De[(Ve|gt>>22&1020)>>2]^De[(ht|Pt>>14&1020)>>2]^De[(Rt|At>>6&1020)>>2]^De[(Tt|It<<2&1020)>>2]^De[(ce|Zt|0)>>2],nn=De[(Ve|Pt>>22&1020)>>2]^De[(ht|At>>14&1020)>>2]^De[(Rt|It>>6&1020)>>2]^De[(Tt|gt<<2&1020)>>2]^De[(ce|Zt|4)>>2],Xt=De[(Ve|At>>22&1020)>>2]^De[(ht|It>>14&1020)>>2]^De[(Rt|gt>>6&1020)>>2]^De[(Tt|Pt<<2&1020)>>2]^De[(ce|Zt|8)>>2],Gt=De[(Ve|It>>22&1020)>>2]^De[(ht|gt>>14&1020)>>2]^De[(Rt|Pt>>6&1020)>>2]^De[(Tt|At<<2&1020)>>2]^De[(ce|Zt|12)>>2],gt=dn,Pt=nn,At=Xt,It=Gt;S=De[(le|gt>>22&1020)>>2]<<24^De[(le|Pt>>14&1020)>>2]<<16^De[(le|At>>6&1020)>>2]<<8^De[(le|It<<2&1020)>>2]^De[(ce|Zt|0)>>2],x=De[(le|Pt>>22&1020)>>2]<<24^De[(le|At>>14&1020)>>2]<<16^De[(le|It>>6&1020)>>2]<<8^De[(le|gt<<2&1020)>>2]^De[(ce|Zt|4)>>2],E=De[(le|At>>22&1020)>>2]<<24^De[(le|It>>14&1020)>>2]<<16^De[(le|gt>>6&1020)>>2]<<8^De[(le|Pt<<2&1020)>>2]^De[(ce|Zt|8)>>2],w=De[(le|It>>22&1020)>>2]<<24^De[(le|gt>>14&1020)>>2]<<16^De[(le|Pt>>6&1020)>>2]<<8^De[(le|At<<2&1020)>>2]^De[(ce|Zt|12)>>2]}function F(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0,ee(0,2048,4096,Ie,ce,le,Ve,Je)}function I(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0;var gt=0;ee(1024,3072,8192,Ie,ce,Je,Ve,le),gt=x,x=w,w=gt}function J(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0,ee(0,2048,4096,Ie,T^ce,M^le,A^Ve,L^Je),T=S,M=x,A=E,L=w}function q(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0;var gt=0;ee(1024,3072,8192,Ie,ce,Je,Ve,le),gt=x,x=w,w=gt,S=S^T,x=x^M,E=E^A,w=w^L,T=ce,M=le,A=Ve,L=Je}function fe(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0,ee(0,2048,4096,Ie,T,M,A,L),T=S=S^ce,M=x=x^le,A=E=E^Ve,L=w=w^Je}function Ce(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0,ee(0,2048,4096,Ie,T,M,A,L),S=S^ce,x=x^le,E=E^Ve,w=w^Je,T=ce,M=le,A=Ve,L=Je}function X(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0,ee(0,2048,4096,Ie,T,M,A,L),T=S,M=x,A=E,L=w,S=S^ce,x=x^le,E=E^Ve,w=w^Je}function H(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0,ee(0,2048,4096,Ie,Y,N,W,j),j=~ye&j|ye&j+1,W=~pe&W|pe&W+((j|0)==0),N=~Te&N|Te&N+((W|0)==0),Y=~ue&Y|ue&Y+((N|0)==0),S=S^ce,x=x^le,E=E^Ve,w=w^Je}function re(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0;var gt=0,Pt=0,At=0,It=0,ht=0,Rt=0,Tt=0,dn=0,nn=0,Xt=0;for(ce=ce^T,le=le^M,Ve=Ve^A,Je=Je^L,gt=de|0,Pt=ke|0,At=ie|0,It=be|0;(nn|0)<128;nn=nn+1|0)gt>>>31&&(ht=ht^ce,Rt=Rt^le,Tt=Tt^Ve,dn=dn^Je),gt=gt<<1|Pt>>>31,Pt=Pt<<1|At>>>31,At=At<<1|It>>>31,It=It<<1,Xt=Je&1,Je=Je>>>1|Ve<<31,Ve=Ve>>>1|le<<31,le=le>>>1|ce<<31,ce=ce>>>1,Xt&&(ce=ce^3774873600);T=ht,M=Rt,A=Tt,L=dn}function Z(ce){ce=ce|0,Ie=ce}function Oe(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0,S=ce,x=le,E=Ve,w=Je}function ve(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0,T=ce,M=le,A=Ve,L=Je}function U(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0,Y=ce,N=le,W=Ve,j=Je}function xe(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0,ue=ce,Te=le,pe=Ve,ye=Je}function me(ce,le,Ve,Je){ce=ce|0,le=le|0,Ve=Ve|0,Je=Je|0,j=~ye&j|ye&Je,W=~pe&W|pe&Ve,N=~Te&N|Te&le,Y=~ue&Y|ue&ce}function se(ce){return ce=ce|0,ce&15?-1:(ae[ce|0]=S>>>24,ae[ce|1]=S>>>16&255,ae[ce|2]=S>>>8&255,ae[ce|3]=S&255,ae[ce|4]=x>>>24,ae[ce|5]=x>>>16&255,ae[ce|6]=x>>>8&255,ae[ce|7]=x&255,ae[ce|8]=E>>>24,ae[ce|9]=E>>>16&255,ae[ce|10]=E>>>8&255,ae[ce|11]=E&255,ae[ce|12]=w>>>24,ae[ce|13]=w>>>16&255,ae[ce|14]=w>>>8&255,ae[ce|15]=w&255,16)}function B(ce){return ce=ce|0,ce&15?-1:(ae[ce|0]=T>>>24,ae[ce|1]=T>>>16&255,ae[ce|2]=T>>>8&255,ae[ce|3]=T&255,ae[ce|4]=M>>>24,ae[ce|5]=M>>>16&255,ae[ce|6]=M>>>8&255,ae[ce|7]=M&255,ae[ce|8]=A>>>24,ae[ce|9]=A>>>16&255,ae[ce|10]=A>>>8&255,ae[ce|11]=A&255,ae[ce|12]=L>>>24,ae[ce|13]=L>>>16&255,ae[ce|14]=L>>>8&255,ae[ce|15]=L&255,16)}function V(){F(0,0,0,0),de=S,ke=x,ie=E,be=w}function G(ce,le,Ve){ce=ce|0,le=le|0,Ve=Ve|0;var Je=0;if(le&15)return-1;for(;(Ve|0)>=16;)oe[ce&7](ae[le|0]<<24|ae[le|1]<<16|ae[le|2]<<8|ae[le|3],ae[le|4]<<24|ae[le|5]<<16|ae[le|6]<<8|ae[le|7],ae[le|8]<<24|ae[le|9]<<16|ae[le|10]<<8|ae[le|11],ae[le|12]<<24|ae[le|13]<<16|ae[le|14]<<8|ae[le|15]),ae[le|0]=S>>>24,ae[le|1]=S>>>16&255,ae[le|2]=S>>>8&255,ae[le|3]=S&255,ae[le|4]=x>>>24,ae[le|5]=x>>>16&255,ae[le|6]=x>>>8&255,ae[le|7]=x&255,ae[le|8]=E>>>24,ae[le|9]=E>>>16&255,ae[le|10]=E>>>8&255,ae[le|11]=E&255,ae[le|12]=w>>>24,ae[le|13]=w>>>16&255,ae[le|14]=w>>>8&255,ae[le|15]=w&255,Je=Je+16|0,le=le+16|0,Ve=Ve-16|0;return Je|0}function te(ce,le,Ve){ce=ce|0,le=le|0,Ve=Ve|0;var Je=0;if(le&15)return-1;for(;(Ve|0)>=16;)_e[ce&1](ae[le|0]<<24|ae[le|1]<<16|ae[le|2]<<8|ae[le|3],ae[le|4]<<24|ae[le|5]<<16|ae[le|6]<<8|ae[le|7],ae[le|8]<<24|ae[le|9]<<16|ae[le|10]<<8|ae[le|11],ae[le|12]<<24|ae[le|13]<<16|ae[le|14]<<8|ae[le|15]),Je=Je+16|0,le=le+16|0,Ve=Ve-16|0;return Je|0}var oe=[F,I,J,q,fe,Ce,X,H],_e=[J,re];return{set_rounds:Z,set_state:Oe,set_iv:ve,set_nonce:U,set_mask:xe,set_counter:me,get_state:se,get_iv:B,gcm_init:V,cipher:G,mac:te}}({Uint8Array,Uint32Array},d,v);return y.set_key=function(b,k,O,S,x,E,w,T,M){var A=m.subarray(0,60),L=m.subarray(256,316);A.set([k,O,S,x,E,w,T,M]);for(var Y=b,N=1;Y<4*b+28;Y++){var W=A[Y-1];(Y%b==0||b===8&&Y%b==4)&&(W=a[W>>>24]<<24^a[W>>>16&255]<<16^a[W>>>8&255]<<8^a[255&W]),Y%b==0&&(W=W<<8^W>>>24^N<<24,N=N<<1^(128&N?27:0)),A[Y]=A[Y-b]^W}for(var j=0;j=Y-4?W:c[0][a[W>>>24]]^c[1][a[W>>>16&255]]^c[2][a[W>>>8&255]]^c[3][a[255&W]];y.set_rounds(b+5)},y};return p.ENC={ECB:0,CBC:2,CFB:4,OFB:6,CTR:7},p.DEC={ECB:1,CBC:3,CFB:5,OFB:6,CTR:7},p.MAC={CBC:0,GCM:1},p.HEAP_DATA=16384,p}();function HS(e){return e instanceof Uint8Array}function W0(e,t){const r=e?e.byteLength:t||65536;if(4095&r||r<=0)throw Error("heap size must be a positive integer and a multiple of 4096");return e=e||new Uint8Array(new ArrayBuffer(r))}function Yo(e,t,r,i,a){const s=e.length-t,u=sa+s.length,0),r=new Uint8Array(t);let i=0;for(let a=0;a>2,s.getUint32(0),s.getUint32(4),s.getUint32(8),s.getUint32(12),a>16?s.getUint32(16):0,a>16?s.getUint32(20):0,a>24?s.getUint32(24):0,a>24?s.getUint32(28):0),r!==void 0){if(r.length!==16)throw new Ds("illegal iv size");let u=new DataView(r.buffer,r.byteOffset,r.byteLength);i.set_iv(u.getUint32(0),u.getUint32(4),u.getUint32(8),u.getUint32(12))}else i.set_iv(0,0,0,0)}AES_Encrypt_process(t){if(!HS(t))throw new TypeError("data isn't of expected type");let{heap:r,asm:i}=this.acquire_asm(),a=En.ENC[this.mode],s=En.HEAP_DATA,u=this.pos,c=this.len,h=0,n=t.length||0,p=0,d=0,v=new Uint8Array(c+n&-16);for(;n>0;)d=Yo(r,u+c,t,h,n),c+=d,h+=d,n-=d,d=i.cipher(a,s+u,c),d&&v.set(r.subarray(u,u+d),p),p+=d,d0;)m=Yo(r,u+c,t,h,n),c+=m,h+=m,n-=m,m=i.cipher(a,s+u,c-(n?0:v)),m&&g.set(r.subarray(u,u+m),p),p+=m,m0){if(u%16){if(this.hasOwnProperty("padding"))throw new Ds("data length must be a multiple of the block size");u+=16-u%16}if(r.cipher(i,a+s,u),this.hasOwnProperty("padding")&&this.padding){let n=t[s+c-1];if(n<1||n>16||n>c)throw new oy("bad padding");let p=0;for(let d=n;d>1;d--)p|=n^t[s+c-d];if(p)throw new oy("bad padding");c-=n}}const h=new Uint8Array(c);return c>0&&h.set(t.subarray(s,s+c)),this.pos=0,this.len=0,this.release_asm(),h}}class av{static encrypt(t,r,i=!1){return new av(r,i).encrypt(t)}static decrypt(t,r,i=!1){return new av(r,i).decrypt(t)}constructor(t,r=!1,i){this.aes=i||new Td(t,void 0,r,"ECB")}encrypt(t){return _o(this.aes.AES_Encrypt_process(t),this.aes.AES_Encrypt_finish())}decrypt(t){return _o(this.aes.AES_Decrypt_process(t),this.aes.AES_Decrypt_finish())}}function K0(e){const t=function(r){const i=new av(r);this.encrypt=function(a){return i.encrypt(a)},this.decrypt=function(a){return i.decrypt(a)}};return t.blockSize=t.prototype.blockSize=16,t.keySize=t.prototype.keySize=e/8,t}function Jc(e,t,r,i,a,s){const u=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756],c=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],h=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584],n=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],p=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080],d=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312],v=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154],m=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];let g,y,b,k,O,S,x,E,w,T,M,A,L,Y,N=0,W=t.length;const j=e.length===32?3:9;E=j===3?r?[0,32,2]:[30,-2,-2]:r?[0,32,2,62,30,-2,64,96,2]:[94,62,-2,32,64,2,30,-2,-2],r&&(t=function(pe,ye){const de=8-pe.length%8;let ke;if(ye===2&&de<8)ke=32;else if(ye===1)ke=de;else{if(ye||!(de<8)){if(de===8)return pe;throw Error("des: invalid padding")}ke=0}const ie=new Uint8Array(pe.length+de);for(let be=0;be>>4^x),x^=b,S^=b<<4,b=65535&(S>>>16^x),x^=b,S^=b<<16,b=858993459&(x>>>2^S),S^=b,x^=b<<2,b=16711935&(x>>>8^S),S^=b,x^=b<<8,b=1431655765&(S>>>1^x),x^=b,S^=b<<1,S=S<<1|S>>>31,x=x<<1|x>>>31,y=0;y>>4|x<<28)^e[g+1],b=S,S=x,x=b^(c[k>>>24&63]|n[k>>>16&63]|d[k>>>8&63]|m[63&k]|u[O>>>24&63]|h[O>>>16&63]|p[O>>>8&63]|v[63&O]);b=S,S=x,x=b}S=S>>>1|S<<31,x=x>>>1|x<<31,b=1431655765&(S>>>1^x),x^=b,S^=b<<1,b=16711935&(x>>>8^S),S^=b,x^=b<<8,b=858993459&(x>>>2^S),S^=b,x^=b<<2,b=65535&(S>>>16^x),x^=b,S^=b<<16,b=252645135&(S>>>4^x),x^=b,S^=b<<4,i===1&&(r?(w=S,M=x):(S^=T,x^=A)),ue[Te++]=S>>>24,ue[Te++]=S>>>16&255,ue[Te++]=S>>>8&255,ue[Te++]=255&S,ue[Te++]=x>>>24,ue[Te++]=x>>>16&255,ue[Te++]=x>>>8&255,ue[Te++]=255&x}return r||(ue=function(pe,ye){let de,ke=null;if(ye===2)de=32;else if(ye===1)ke=pe[pe.length-1];else{if(ye)throw Error("des: invalid padding");de=0}if(!ke){for(ke=1;pe[pe.length-ke]===de;)ke++;ke--}return pe.subarray(0,pe.length-ke)}(ue,s)),ue}function Zc(e){const t=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],r=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],i=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],a=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],s=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],u=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],c=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],h=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],n=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],p=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],d=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],v=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],m=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],g=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],y=e.length>8?3:1,b=Array(32*y),k=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0];let O,S,x,E=0,w=0;for(let T=0;T>>4^A),A^=x,M^=x<<4,x=65535&(A>>>-16^M),M^=x,A^=x<<-16,x=858993459&(M>>>2^A),A^=x,M^=x<<2,x=65535&(A>>>-16^M),M^=x,A^=x<<-16,x=1431655765&(M>>>1^A),A^=x,M^=x<<1,x=16711935&(A>>>8^M),M^=x,A^=x<<8,x=1431655765&(M>>>1^A),A^=x,M^=x<<1,x=M<<8|A>>>20&240,M=A<<24|A<<8&16711680|A>>>8&65280|A>>>24&240,A=x;for(let L=0;L<16;L++)k[L]?(M=M<<2|M>>>26,A=A<<2|A>>>26):(M=M<<1|M>>>27,A=A<<1|A>>>27),M&=-15,A&=-15,O=t[M>>>28]|r[M>>>24&15]|i[M>>>20&15]|a[M>>>16&15]|s[M>>>12&15]|u[M>>>8&15]|c[M>>>4&15],S=h[A>>>28]|n[A>>>24&15]|p[A>>>20&15]|d[A>>>16&15]|v[A>>>12&15]|m[A>>>8&15]|g[A>>>4&15],x=65535&(S>>>16^O),b[w++]=O^x,b[w++]=S^x<<16}return b}function Lc(e){this.key=[];for(let t=0;t<3;t++)this.key.push(new Uint8Array(e.subarray(8*t,8*t+8)));this.encrypt=function(t){return Jc(Zc(this.key[2]),Jc(Zc(this.key[1]),Jc(Zc(this.key[0]),t,!0,0,null,null),!1,0,null,null),!0,0,null,null)}}function Xj(){this.BlockSize=8,this.KeySize=16,this.setKey=function(u){if(this.masking=Array(16),this.rotate=Array(16),this.reset(),u.length!==this.KeySize)throw Error("CAST-128: keys must be 16 bytes");return this.keySchedule(u),!0},this.reset=function(){for(let u=0;u<16;u++)this.masking[u]=0,this.rotate[u]=0},this.getBlockSize=function(){return this.BlockSize},this.encrypt=function(u){const c=Array(u.length);for(let h=0;h>>24&255,c[h+1]=d>>>16&255,c[h+2]=d>>>8&255,c[h+3]=255&d,c[h+4]=p>>>24&255,c[h+5]=p>>>16&255,c[h+6]=p>>>8&255,c[h+7]=255&p}return c},this.decrypt=function(u){const c=Array(u.length);for(let h=0;h>>24&255,c[h+1]=d>>>16&255,c[h+2]=d>>>8&255,c[h+3]=255&d,c[h+4]=p>>>24&255,c[h+5]=p>>16&255,c[h+6]=p>>8&255,c[h+7]=255&p}return c};const e=[,,,,];e[0]=[,,,,],e[0][0]=[4,0,13,15,12,14,8],e[0][1]=[5,2,16,18,17,19,10],e[0][2]=[6,3,23,22,21,20,9],e[0][3]=[7,1,26,25,27,24,11],e[1]=[,,,,],e[1][0]=[0,6,21,23,20,22,16],e[1][1]=[1,4,0,2,1,3,18],e[1][2]=[2,5,7,6,5,4,17],e[1][3]=[3,7,10,9,11,8,19],e[2]=[,,,,],e[2][0]=[4,0,13,15,12,14,8],e[2][1]=[5,2,16,18,17,19,10],e[2][2]=[6,3,23,22,21,20,9],e[2][3]=[7,1,26,25,27,24,11],e[3]=[,,,,],e[3][0]=[0,6,21,23,20,22,16],e[3][1]=[1,4,0,2,1,3,18],e[3][2]=[2,5,7,6,5,4,17],e[3][3]=[3,7,10,9,11,8,19];const t=[,,,,];function r(u,c,h){const n=c+u,p=n<>>32-h;return(s[0][p>>>24]^s[1][p>>>16&255])-s[2][p>>>8&255]+s[3][255&p]}function i(u,c,h){const n=c^u,p=n<>>32-h;return s[0][p>>>24]-s[1][p>>>16&255]+s[2][p>>>8&255]^s[3][255&p]}function a(u,c,h){const n=c-u,p=n<>>32-h;return(s[0][p>>>24]+s[1][p>>>16&255]^s[2][p>>>8&255])-s[3][255&p]}t[0]=[,,,,],t[0][0]=[24,25,23,22,18],t[0][1]=[26,27,21,20,22],t[0][2]=[28,29,19,18,25],t[0][3]=[30,31,17,16,28],t[1]=[,,,,],t[1][0]=[3,2,12,13,8],t[1][1]=[1,0,14,15,13],t[1][2]=[7,6,8,9,3],t[1][3]=[5,4,10,11,7],t[2]=[,,,,],t[2][0]=[19,18,28,29,25],t[2][1]=[17,16,30,31,28],t[2][2]=[23,22,24,25,18],t[2][3]=[21,20,26,27,22],t[3]=[,,,,],t[3][0]=[8,9,7,6,3],t[3][1]=[10,11,5,4,7],t[3][2]=[12,13,3,2,8],t[3][3]=[14,15,1,0,13],this.keySchedule=function(u){const c=[,,,,,,,,],h=Array(32);let n;for(let m=0;m<4;m++)n=4*m,c[m]=u[n]<<24|u[n+1]<<16|u[n+2]<<8|u[n+3];const p=[6,7,4,5];let d,v=0;for(let m=0;m<2;m++)for(let g=0;g<4;g++){for(n=0;n<4;n++){const y=e[g][n];d=c[y[1]],d^=s[4][c[y[2]>>>2]>>>24-8*(3&y[2])&255],d^=s[5][c[y[3]>>>2]>>>24-8*(3&y[3])&255],d^=s[6][c[y[4]>>>2]>>>24-8*(3&y[4])&255],d^=s[7][c[y[5]>>>2]>>>24-8*(3&y[5])&255],d^=s[p[n]][c[y[6]>>>2]>>>24-8*(3&y[6])&255],c[y[0]]=d}for(n=0;n<4;n++){const y=t[g][n];d=s[4][c[y[0]>>>2]>>>24-8*(3&y[0])&255],d^=s[5][c[y[1]>>>2]>>>24-8*(3&y[1])&255],d^=s[6][c[y[2]>>>2]>>>24-8*(3&y[2])&255],d^=s[7][c[y[3]>>>2]>>>24-8*(3&y[3])&255],d^=s[4+n][c[y[4]>>>2]>>>24-8*(3&y[4])&255],h[v]=d,v++}}for(let m=0;m<16;m++)this.masking[m]=h[m],this.rotate[m]=31&h[16+m]};const s=[,,,,,,,,];s[0]=[821772500,2678128395,1810681135,1059425402,505495343,2617265619,1610868032,3483355465,3218386727,2294005173,3791863952,2563806837,1852023008,365126098,3269944861,584384398,677919599,3229601881,4280515016,2002735330,1136869587,3744433750,2289869850,2731719981,2714362070,879511577,1639411079,575934255,717107937,2857637483,576097850,2731753936,1725645e3,2810460463,5111599,767152862,2543075244,1251459544,1383482551,3052681127,3089939183,3612463449,1878520045,1510570527,2189125840,2431448366,582008916,3163445557,1265446783,1354458274,3529918736,3202711853,3073581712,3912963487,3029263377,1275016285,4249207360,2905708351,3304509486,1442611557,3585198765,2712415662,2731849581,3248163920,2283946226,208555832,2766454743,1331405426,1447828783,3315356441,3108627284,2957404670,2981538698,3339933917,1669711173,286233437,1465092821,1782121619,3862771680,710211251,980974943,1651941557,430374111,2051154026,704238805,4128970897,3144820574,2857402727,948965521,3333752299,2227686284,718756367,2269778983,2731643755,718440111,2857816721,3616097120,1113355533,2478022182,410092745,1811985197,1944238868,2696854588,1415722873,1682284203,1060277122,1998114690,1503841958,82706478,2315155686,1068173648,845149890,2167947013,1768146376,1993038550,3566826697,3390574031,940016341,3355073782,2328040721,904371731,1205506512,4094660742,2816623006,825647681,85914773,2857843460,1249926541,1417871568,3287612,3211054559,3126306446,1975924523,1353700161,2814456437,2438597621,1800716203,722146342,2873936343,1151126914,4160483941,2877670899,458611604,2866078500,3483680063,770352098,2652916994,3367839148,3940505011,3585973912,3809620402,718646636,2504206814,2914927912,3631288169,2857486607,2860018678,575749918,2857478043,718488780,2069512688,3548183469,453416197,1106044049,3032691430,52586708,3378514636,3459808877,3211506028,1785789304,218356169,3571399134,3759170522,1194783844,1523787992,3007827094,1975193539,2555452411,1341901877,3045838698,3776907964,3217423946,2802510864,2889438986,1057244207,1636348243,3761863214,1462225785,2632663439,481089165,718503062,24497053,3332243209,3344655856,3655024856,3960371065,1195698900,2971415156,3710176158,2115785917,4027663609,3525578417,2524296189,2745972565,3564906415,1372086093,1452307862,2780501478,1476592880,3389271281,18495466,2378148571,901398090,891748256,3279637769,3157290713,2560960102,1447622437,4284372637,216884176,2086908623,1879786977,3588903153,2242455666,2938092967,3559082096,2810645491,758861177,1121993112,215018983,642190776,4169236812,1196255959,2081185372,3508738393,941322904,4124243163,2877523539,1848581667,2205260958,3180453958,2589345134,3694731276,550028657,2519456284,3789985535,2973870856,2093648313,443148163,46942275,2734146937,1117713533,1115362972,1523183689,3717140224,1551984063],s[1]=[522195092,4010518363,1776537470,960447360,4267822970,4005896314,1435016340,1929119313,2913464185,1310552629,3579470798,3724818106,2579771631,1594623892,417127293,2715217907,2696228731,1508390405,3994398868,3925858569,3695444102,4019471449,3129199795,3770928635,3520741761,990456497,4187484609,2783367035,21106139,3840405339,631373633,3783325702,532942976,396095098,3548038825,4267192484,2564721535,2011709262,2039648873,620404603,3776170075,2898526339,3612357925,4159332703,1645490516,223693667,1567101217,3362177881,1029951347,3470931136,3570957959,1550265121,119497089,972513919,907948164,3840628539,1613718692,3594177948,465323573,2659255085,654439692,2575596212,2699288441,3127702412,277098644,624404830,4100943870,2717858591,546110314,2403699828,3655377447,1321679412,4236791657,1045293279,4010672264,895050893,2319792268,494945126,1914543101,2777056443,3894764339,2219737618,311263384,4275257268,3458730721,669096869,3584475730,3835122877,3319158237,3949359204,2005142349,2713102337,2228954793,3769984788,569394103,3855636576,1425027204,108000370,2736431443,3671869269,3043122623,1750473702,2211081108,762237499,3972989403,2798899386,3061857628,2943854345,867476300,964413654,1591880597,1594774276,2179821409,552026980,3026064248,3726140315,2283577634,3110545105,2152310760,582474363,1582640421,1383256631,2043843868,3322775884,1217180674,463797851,2763038571,480777679,2718707717,2289164131,3118346187,214354409,200212307,3810608407,3025414197,2674075964,3997296425,1847405948,1342460550,510035443,4080271814,815934613,833030224,1620250387,1945732119,2703661145,3966000196,1388869545,3456054182,2687178561,2092620194,562037615,1356438536,3409922145,3261847397,1688467115,2150901366,631725691,3840332284,549916902,3455104640,394546491,837744717,2114462948,751520235,2221554606,2415360136,3999097078,2063029875,803036379,2702586305,821456707,3019566164,360699898,4018502092,3511869016,3677355358,2402471449,812317050,49299192,2570164949,3259169295,2816732080,3331213574,3101303564,2156015656,3705598920,3546263921,143268808,3200304480,1638124008,3165189453,3341807610,578956953,2193977524,3638120073,2333881532,807278310,658237817,2969561766,1641658566,11683945,3086995007,148645947,1138423386,4158756760,1981396783,2401016740,3699783584,380097457,2680394679,2803068651,3334260286,441530178,4016580796,1375954390,761952171,891809099,2183123478,157052462,3683840763,1592404427,341349109,2438483839,1417898363,644327628,2233032776,2353769706,2201510100,220455161,1815641738,182899273,2995019788,3627381533,3702638151,2890684138,1052606899,588164016,1681439879,4038439418,2405343923,4229449282,167996282,1336969661,1688053129,2739224926,1543734051,1046297529,1138201970,2121126012,115334942,1819067631,1902159161,1941945968,2206692869,1159982321],s[2]=[2381300288,637164959,3952098751,3893414151,1197506559,916448331,2350892612,2932787856,3199334847,4009478890,3905886544,1373570990,2450425862,4037870920,3778841987,2456817877,286293407,124026297,3001279700,1028597854,3115296800,4208886496,2691114635,2188540206,1430237888,1218109995,3572471700,308166588,570424558,2187009021,2455094765,307733056,1310360322,3135275007,1384269543,2388071438,863238079,2359263624,2801553128,3380786597,2831162807,1470087780,1728663345,4072488799,1090516929,532123132,2389430977,1132193179,2578464191,3051079243,1670234342,1434557849,2711078940,1241591150,3314043432,3435360113,3091448339,1812415473,2198440252,267246943,796911696,3619716990,38830015,1526438404,2806502096,374413614,2943401790,1489179520,1603809326,1920779204,168801282,260042626,2358705581,1563175598,2397674057,1356499128,2217211040,514611088,2037363785,2186468373,4022173083,2792511869,2913485016,1173701892,4200428547,3896427269,1334932762,2455136706,602925377,2835607854,1613172210,41346230,2499634548,2457437618,2188827595,41386358,4172255629,1313404830,2405527007,3801973774,2217704835,873260488,2528884354,2478092616,4012915883,2555359016,2006953883,2463913485,575479328,2218240648,2099895446,660001756,2341502190,3038761536,3888151779,3848713377,3286851934,1022894237,1620365795,3449594689,1551255054,15374395,3570825345,4249311020,4151111129,3181912732,310226346,1133119310,530038928,136043402,2476768958,3107506709,2544909567,1036173560,2367337196,1681395281,1758231547,3641649032,306774401,1575354324,3716085866,1990386196,3114533736,2455606671,1262092282,3124342505,2768229131,4210529083,1833535011,423410938,660763973,2187129978,1639812e3,3508421329,3467445492,310289298,272797111,2188552562,2456863912,310240523,677093832,1013118031,901835429,3892695601,1116285435,3036471170,1337354835,243122523,520626091,277223598,4244441197,4194248841,1766575121,594173102,316590669,742362309,3536858622,4176435350,3838792410,2501204839,1229605004,3115755532,1552908988,2312334149,979407927,3959474601,1148277331,176638793,3614686272,2083809052,40992502,1340822838,2731552767,3535757508,3560899520,1354035053,122129617,7215240,2732932949,3118912700,2718203926,2539075635,3609230695,3725561661,1928887091,2882293555,1988674909,2063640240,2491088897,1459647954,4189817080,2302804382,1113892351,2237858528,1927010603,4002880361,1856122846,1594404395,2944033133,3855189863,3474975698,1643104450,4054590833,3431086530,1730235576,2984608721,3084664418,2131803598,4178205752,267404349,1617849798,1616132681,1462223176,736725533,2327058232,551665188,2945899023,1749386277,2575514597,1611482493,674206544,2201269090,3642560800,728599968,1680547377,2620414464,1388111496,453204106,4156223445,1094905244,2754698257,2201108165,3757000246,2704524545,3922940700,3996465027],s[3]=[2645754912,532081118,2814278639,3530793624,1246723035,1689095255,2236679235,4194438865,2116582143,3859789411,157234593,2045505824,4245003587,1687664561,4083425123,605965023,672431967,1336064205,3376611392,214114848,4258466608,3232053071,489488601,605322005,3998028058,264917351,1912574028,756637694,436560991,202637054,135989450,85393697,2152923392,3896401662,2895836408,2145855233,3535335007,115294817,3147733898,1922296357,3464822751,4117858305,1037454084,2725193275,2127856640,1417604070,1148013728,1827919605,642362335,2929772533,909348033,1346338451,3547799649,297154785,1917849091,4161712827,2883604526,3968694238,1469521537,3780077382,3375584256,1763717519,136166297,4290970789,1295325189,2134727907,2798151366,1566297257,3672928234,2677174161,2672173615,965822077,2780786062,289653839,1133871874,3491843819,35685304,1068898316,418943774,672553190,642281022,2346158704,1954014401,3037126780,4079815205,2030668546,3840588673,672283427,1776201016,359975446,3750173538,555499703,2769985273,1324923,69110472,152125443,3176785106,3822147285,1340634837,798073664,1434183902,15393959,216384236,1303690150,3881221631,3711134124,3960975413,106373927,2578434224,1455997841,1801814300,1578393881,1854262133,3188178946,3258078583,2302670060,1539295533,3505142565,3078625975,2372746020,549938159,3278284284,2620926080,181285381,2865321098,3970029511,68876850,488006234,1728155692,2608167508,836007927,2435231793,919367643,3339422534,3655756360,1457871481,40520939,1380155135,797931188,234455205,2255801827,3990488299,397000196,739833055,3077865373,2871719860,4022553888,772369276,390177364,3853951029,557662966,740064294,1640166671,1699928825,3535942136,622006121,3625353122,68743880,1742502,219489963,1664179233,1577743084,1236991741,410585305,2366487942,823226535,1050371084,3426619607,3586839478,212779912,4147118561,1819446015,1911218849,530248558,3486241071,3252585495,2886188651,3410272728,2342195030,20547779,2982490058,3032363469,3631753222,312714466,1870521650,1493008054,3491686656,615382978,4103671749,2534517445,1932181,2196105170,278426614,6369430,3274544417,2913018367,697336853,2143000447,2946413531,701099306,1558357093,2805003052,3500818408,2321334417,3567135975,216290473,3591032198,23009561,1996984579,3735042806,2024298078,3739440863,569400510,2339758983,3016033873,3097871343,3639523026,3844324983,3256173865,795471839,2951117563,4101031090,4091603803,3603732598,971261452,534414648,428311343,3389027175,2844869880,694888862,1227866773,2456207019,3043454569,2614353370,3749578031,3676663836,459166190,4132644070,1794958188,51825668,2252611902,3084671440,2036672799,3436641603,1099053433,2469121526,3059204941,1323291266,2061838604,1018778475,2233344254,2553501054,334295216,3556750194,1065731521,183467730],s[4]=[2127105028,745436345,2601412319,2788391185,3093987327,500390133,1155374404,389092991,150729210,3891597772,3523549952,1935325696,716645080,946045387,2901812282,1774124410,3869435775,4039581901,3293136918,3438657920,948246080,363898952,3867875531,1286266623,1598556673,68334250,630723836,1104211938,1312863373,613332731,2377784574,1101634306,441780740,3129959883,1917973735,2510624549,3238456535,2544211978,3308894634,1299840618,4076074851,1756332096,3977027158,297047435,3790297736,2265573040,3621810518,1311375015,1667687725,47300608,3299642885,2474112369,201668394,1468347890,576830978,3594690761,3742605952,1958042578,1747032512,3558991340,1408974056,3366841779,682131401,1033214337,1545599232,4265137049,206503691,103024618,2855227313,1337551222,2428998917,2963842932,4015366655,3852247746,2796956967,3865723491,3747938335,247794022,3755824572,702416469,2434691994,397379957,851939612,2314769512,218229120,1380406772,62274761,214451378,3170103466,2276210409,3845813286,28563499,446592073,1693330814,3453727194,29968656,3093872512,220656637,2470637031,77972100,1667708854,1358280214,4064765667,2395616961,325977563,4277240721,4220025399,3605526484,3355147721,811859167,3069544926,3962126810,652502677,3075892249,4132761541,3498924215,1217549313,3250244479,3858715919,3053989961,1538642152,2279026266,2875879137,574252750,3324769229,2651358713,1758150215,141295887,2719868960,3515574750,4093007735,4194485238,1082055363,3417560400,395511885,2966884026,179534037,3646028556,3738688086,1092926436,2496269142,257381841,3772900718,1636087230,1477059743,2499234752,3811018894,2675660129,3285975680,90732309,1684827095,1150307763,1723134115,3237045386,1769919919,1240018934,815675215,750138730,2239792499,1234303040,1995484674,138143821,675421338,1145607174,1936608440,3238603024,2345230278,2105974004,323969391,779555213,3004902369,2861610098,1017501463,2098600890,2628620304,2940611490,2682542546,1171473753,3656571411,3687208071,4091869518,393037935,159126506,1662887367,1147106178,391545844,3452332695,1891500680,3016609650,1851642611,546529401,1167818917,3194020571,2848076033,3953471836,575554290,475796850,4134673196,450035699,2351251534,844027695,1080539133,86184846,1554234488,3692025454,1972511363,2018339607,1491841390,1141460869,1061690759,4244549243,2008416118,2351104703,2868147542,1598468138,722020353,1027143159,212344630,1387219594,1725294528,3745187956,2500153616,458938280,4129215917,1828119673,544571780,3503225445,2297937496,1241802790,267843827,2694610800,1397140384,1558801448,3782667683,1806446719,929573330,2234912681,400817706,616011623,4121520928,3603768725,1761550015,1968522284,4053731006,4192232858,4005120285,872482584,3140537016,3894607381,2287405443,1963876937,3663887957,1584857e3,2975024454,1833426440,4025083860],s[5]=[4143615901,749497569,1285769319,3795025788,2514159847,23610292,3974978748,844452780,3214870880,3751928557,2213566365,1676510905,448177848,3730751033,4086298418,2307502392,871450977,3222878141,4110862042,3831651966,2735270553,1310974780,2043402188,1218528103,2736035353,4274605013,2702448458,3936360550,2693061421,162023535,2827510090,687910808,23484817,3784910947,3371371616,779677500,3503626546,3473927188,4157212626,3500679282,4248902014,2466621104,3899384794,1958663117,925738300,1283408968,3669349440,1840910019,137959847,2679828185,1239142320,1315376211,1547541505,1690155329,739140458,3128809933,3933172616,3876308834,905091803,1548541325,4040461708,3095483362,144808038,451078856,676114313,2861728291,2469707347,993665471,373509091,2599041286,4025009006,4170239449,2149739950,3275793571,3749616649,2794760199,1534877388,572371878,2590613551,1753320020,3467782511,1405125690,4270405205,633333386,3026356924,3475123903,632057672,2846462855,1404951397,3882875879,3915906424,195638627,2385783745,3902872553,1233155085,3355999740,2380578713,2702246304,2144565621,3663341248,3894384975,2502479241,4248018925,3094885567,1594115437,572884632,3385116731,767645374,1331858858,1475698373,3793881790,3532746431,1321687957,619889600,1121017241,3440213920,2070816767,2833025776,1933951238,4095615791,890643334,3874130214,859025556,360630002,925594799,1764062180,3920222280,4078305929,979562269,2810700344,4087740022,1949714515,546639971,1165388173,3069891591,1495988560,922170659,1291546247,2107952832,1813327274,3406010024,3306028637,4241950635,153207855,2313154747,1608695416,1150242611,1967526857,721801357,1220138373,3691287617,3356069787,2112743302,3281662835,1111556101,1778980689,250857638,2298507990,673216130,2846488510,3207751581,3562756981,3008625920,3417367384,2198807050,529510932,3547516680,3426503187,2364944742,102533054,2294910856,1617093527,1204784762,3066581635,1019391227,1069574518,1317995090,1691889997,3661132003,510022745,3238594800,1362108837,1817929911,2184153760,805817662,1953603311,3699844737,120799444,2118332377,207536705,2282301548,4120041617,145305846,2508124933,3086745533,3261524335,1877257368,2977164480,3160454186,2503252186,4221677074,759945014,254147243,2767453419,3801518371,629083197,2471014217,907280572,3900796746,940896768,2751021123,2625262786,3161476951,3661752313,3260732218,1425318020,2977912069,1496677566,3988592072,2140652971,3126511541,3069632175,977771578,1392695845,1698528874,1411812681,1369733098,1343739227,3620887944,1142123638,67414216,3102056737,3088749194,1626167401,2546293654,3941374235,697522451,33404913,143560186,2595682037,994885535,1247667115,3859094837,2699155541,3547024625,4114935275,2968073508,3199963069,2732024527,1237921620,951448369,1898488916,1211705605,2790989240,2233243581,3598044975],s[6]=[2246066201,858518887,1714274303,3485882003,713916271,2879113490,3730835617,539548191,36158695,1298409750,419087104,1358007170,749914897,2989680476,1261868530,2995193822,2690628854,3443622377,3780124940,3796824509,2976433025,4259637129,1551479e3,512490819,1296650241,951993153,2436689437,2460458047,144139966,3136204276,310820559,3068840729,643875328,1969602020,1680088954,2185813161,3283332454,672358534,198762408,896343282,276269502,3014846926,84060815,197145886,376173866,3943890818,3813173521,3545068822,1316698879,1598252827,2633424951,1233235075,859989710,2358460855,3503838400,3409603720,1203513385,1193654839,2792018475,2060853022,207403770,1144516871,3068631394,1121114134,177607304,3785736302,326409831,1929119770,2983279095,4183308101,3474579288,3200513878,3228482096,119610148,1170376745,3378393471,3163473169,951863017,3337026068,3135789130,2907618374,1183797387,2015970143,4045674555,2182986399,2952138740,3928772205,384012900,2454997643,10178499,2879818989,2596892536,111523738,2995089006,451689641,3196290696,235406569,1441906262,3890558523,3013735005,4158569349,1644036924,376726067,1006849064,3664579700,2041234796,1021632941,1374734338,2566452058,371631263,4007144233,490221539,206551450,3140638584,1053219195,1853335209,3412429660,3562156231,735133835,1623211703,3104214392,2738312436,4096837757,3366392578,3110964274,3956598718,3196820781,2038037254,3877786376,2339753847,300912036,3766732888,2372630639,1516443558,4200396704,1574567987,4069441456,4122592016,2699739776,146372218,2748961456,2043888151,35287437,2596680554,655490400,1132482787,110692520,1031794116,2188192751,1324057718,1217253157,919197030,686247489,3261139658,1028237775,3135486431,3059715558,2460921700,986174950,2661811465,4062904701,2752986992,3709736643,367056889,1353824391,731860949,1650113154,1778481506,784341916,357075625,3608602432,1074092588,2480052770,3811426202,92751289,877911070,3600361838,1231880047,480201094,3756190983,3094495953,434011822,87971354,363687820,1717726236,1901380172,3926403882,2481662265,400339184,1490350766,2661455099,1389319756,2558787174,784598401,1983468483,30828846,3550527752,2716276238,3841122214,1765724805,1955612312,1277890269,1333098070,1564029816,2704417615,1026694237,3287671188,1260819201,3349086767,1016692350,1582273796,1073413053,1995943182,694588404,1025494639,3323872702,3551898420,4146854327,453260480,1316140391,1435673405,3038941953,3486689407,1622062951,403978347,817677117,950059133,4246079218,3278066075,1486738320,1417279718,481875527,2549965225,3933690356,760697757,1452955855,3897451437,1177426808,1702951038,4085348628,2447005172,1084371187,3516436277,3068336338,1073369276,1027665953,3284188590,1230553676,1368340146,2226246512,267243139,2274220762,4070734279,2497715176,2423353163,2504755875],s[7]=[3793104909,3151888380,2817252029,895778965,2005530807,3871412763,237245952,86829237,296341424,3851759377,3974600970,2475086196,709006108,1994621201,2972577594,937287164,3734691505,168608556,3189338153,2225080640,3139713551,3033610191,3025041904,77524477,185966941,1208824168,2344345178,1721625922,3354191921,1066374631,1927223579,1971335949,2483503697,1551748602,2881383779,2856329572,3003241482,48746954,1398218158,2050065058,313056748,4255789917,393167848,1912293076,940740642,3465845460,3091687853,2522601570,2197016661,1727764327,364383054,492521376,1291706479,3264136376,1474851438,1685747964,2575719748,1619776915,1814040067,970743798,1561002147,2925768690,2123093554,1880132620,3151188041,697884420,2550985770,2607674513,2659114323,110200136,1489731079,997519150,1378877361,3527870668,478029773,2766872923,1022481122,431258168,1112503832,897933369,2635587303,669726182,3383752315,918222264,163866573,3246985393,3776823163,114105080,1903216136,761148244,3571337562,1690750982,3166750252,1037045171,1888456500,2010454850,642736655,616092351,365016990,1185228132,4174898510,1043824992,2023083429,2241598885,3863320456,3279669087,3674716684,108438443,2132974366,830746235,606445527,4173263986,2204105912,1844756978,2532684181,4245352700,2969441100,3796921661,1335562986,4061524517,2720232303,2679424040,634407289,885462008,3294724487,3933892248,2094100220,339117932,4048830727,3202280980,1458155303,2689246273,1022871705,2464987878,3714515309,353796843,2822958815,4256850100,4052777845,551748367,618185374,3778635579,4020649912,1904685140,3069366075,2670879810,3407193292,2954511620,4058283405,2219449317,3135758300,1120655984,3447565834,1474845562,3577699062,550456716,3466908712,2043752612,881257467,869518812,2005220179,938474677,3305539448,3850417126,1315485940,3318264702,226533026,965733244,321539988,1136104718,804158748,573969341,3708209826,937399083,3290727049,2901666755,1461057207,4013193437,4066861423,3242773476,2421326174,1581322155,3028952165,786071460,3900391652,3918438532,1485433313,4023619836,3708277595,3678951060,953673138,1467089153,1930354364,1533292819,2492563023,1346121658,1685000834,1965281866,3765933717,4190206607,2052792609,3515332758,690371149,3125873887,2180283551,2903598061,3933952357,436236910,289419410,14314871,1242357089,2904507907,1616633776,2666382180,585885352,3471299210,2699507360,1432659641,277164553,3354103607,770115018,2303809295,3741942315,3177781868,2853364978,2269453327,3774259834,987383833,1290892879,225909803,1741533526,890078084,1496906255,1111072499,916028167,243534141,1252605537,2204162171,531204876,290011180,3916834213,102027703,237315147,209093447,1486785922,220223953,2758195998,4175039106,82940208,3127791296,2569425252,518464269,1353887104,3941492737,2377294467,3935040926]}function Nc(e){this.cast5=new Xj,this.cast5.setKey(e),this.encrypt=function(t){return this.cast5.encrypt(t)}}Lc.keySize=Lc.prototype.keySize=24,Lc.blockSize=Lc.prototype.blockSize=8,Nc.blockSize=Nc.prototype.blockSize=8,Nc.keySize=Nc.prototype.keySize=16;const na=4294967295;function La(e,t){return(e<>>32-t)&na}function vs(e,t){return e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24}function Ks(e,t,r){e.splice(t,4,255&r,r>>>8&255,r>>>16&255,r>>>24&255)}function wn(e,t){return e>>>8*t&255}function Bc(e){this.tf=function(){let t=null,r=null,i=-1,a=[],s=[[],[],[],[]];function u(p){return s[0][wn(p,0)]^s[1][wn(p,1)]^s[2][wn(p,2)]^s[3][wn(p,3)]}function c(p){return s[0][wn(p,3)]^s[1][wn(p,0)]^s[2][wn(p,1)]^s[3][wn(p,2)]}function h(p,d){let v=u(d[0]),m=c(d[1]);d[2]=La(d[2]^v+m+a[4*p+8]&na,31),d[3]=La(d[3],1)^v+2*m+a[4*p+9]&na,v=u(d[2]),m=c(d[3]),d[0]=La(d[0]^v+m+a[4*p+10]&na,31),d[1]=La(d[1],1)^v+2*m+a[4*p+11]&na}function n(p,d){let v=u(d[0]),m=c(d[1]);d[2]=La(d[2],1)^v+m+a[4*p+10]&na,d[3]=La(d[3]^v+2*m+a[4*p+11]&na,31),v=u(d[2]),m=c(d[3]),d[0]=La(d[0],1)^v+m+a[4*p+8]&na,d[1]=La(d[1]^v+2*m+a[4*p+9]&na,31)}return{name:"twofish",blocksize:16,open:function(p){let d,v,m,g,y;t=p;const b=[],k=[],O=[];let S;const x=[];let E,w,T;const M=[[8,1,7,13,6,15,3,2,0,11,5,9,14,12,10,4],[2,8,11,13,15,7,6,14,3,1,9,4,0,10,12,5]],A=[[14,12,11,8,1,2,3,5,15,4,10,6,7,0,9,13],[1,14,2,11,4,12,3,7,6,13,10,5,15,9,0,8]],L=[[11,10,5,14,6,13,9,0,12,8,15,3,2,4,7,1],[4,12,7,5,1,6,9,10,0,14,13,8,2,11,3,15]],Y=[[13,7,15,4,1,2,6,14,9,11,3,0,8,5,12,10],[11,9,5,1,12,3,13,14,6,4,7,15,2,0,8,10]],N=[0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15],W=[0,9,2,11,4,13,6,15,8,1,10,3,12,5,14,7],j=[[],[]],ue=[[],[],[],[]];function Te(ie){return ie^ie>>2^[0,90,180,238][3&ie]}function pe(ie){return ie^ie>>1^ie>>2^[0,238,180,90][3&ie]}function ye(ie,be){let Ie,De,ae;for(Ie=0;Ie<8;Ie++)De=be>>>24,be=be<<8&na|ie>>>24,ie=ie<<8&na,ae=De<<1,128&De&&(ae^=333),be^=De^ae<<16,ae^=De>>>1,1&De&&(ae^=166),be^=ae<<24|ae<<8;return be}function de(ie,be){const Ie=be>>4,De=15&be,ae=M[ie][Ie^De],ee=A[ie][N[De]^W[Ie]];return Y[ie][N[ee]^W[ae]]<<4|L[ie][ae^ee]}function ke(ie,be){let Ie=wn(ie,0),De=wn(ie,1),ae=wn(ie,2),ee=wn(ie,3);switch(S){case 4:Ie=j[1][Ie]^wn(be[3],0),De=j[0][De]^wn(be[3],1),ae=j[0][ae]^wn(be[3],2),ee=j[1][ee]^wn(be[3],3);case 3:Ie=j[1][Ie]^wn(be[2],0),De=j[1][De]^wn(be[2],1),ae=j[0][ae]^wn(be[2],2),ee=j[0][ee]^wn(be[2],3);case 2:Ie=j[0][j[0][Ie]^wn(be[1],0)]^wn(be[0],0),De=j[0][j[1][De]^wn(be[1],1)]^wn(be[0],1),ae=j[1][j[0][ae]^wn(be[1],2)]^wn(be[0],2),ee=j[1][j[1][ee]^wn(be[1],3)]^wn(be[0],3)}return ue[0][Ie]^ue[1][De]^ue[2][ae]^ue[3][ee]}for(t=t.slice(0,32),d=t.length;d!==16&&d!==24&&d!==32;)t[d++]=0;for(d=0;d>2]=vs(t,d);for(d=0;d<256;d++)j[0][d]=de(0,d),j[1][d]=de(1,d);for(d=0;d<256;d++)E=j[1][d],w=Te(E),T=pe(E),ue[0][d]=E+(w<<8)+(T<<16)+(T<<24),ue[2][d]=w+(T<<8)+(E<<16)+(T<<24),E=j[0][d],w=Te(E),T=pe(E),ue[1][d]=T+(T<<8)+(w<<16)+(E<<24),ue[3][d]=w+(E<<8)+(T<<16)+(w<<24);for(S=O.length/2,d=0;d=0;m--)n(m,v);Ks(r,i,v[2]^a[0]),Ks(r,i+4,v[3]^a[1]),Ks(r,i+8,v[0]^a[2]),Ks(r,i+12,v[1]^a[3]),i+=16},finalize:function(){return r}}}(),this.tf.open(Array.from(e),0),this.encrypt=function(t){return this.tf.encrypt(Array.from(t),0)}}function fa(){}function Fc(e){this.bf=new fa,this.bf.init(e),this.encrypt=function(t){return this.bf.encryptBlock(t)}}Bc.keySize=Bc.prototype.keySize=32,Bc.blockSize=Bc.prototype.blockSize=16,fa.prototype.BLOCKSIZE=8,fa.prototype.SBOXES=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]],fa.prototype.PARRAY=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],fa.prototype.NN=16,fa.prototype._clean=function(e){return e<0&&(e=(2147483647&e)+2147483648),e},fa.prototype._F=function(e){let t;const r=255&e,i=255&(e>>>=8),a=255&(e>>>=8),s=255&(e>>>=8);return t=this.sboxes[0][s]+this.sboxes[1][a],t^=this.sboxes[2][i],t+=this.sboxes[3][r],t},fa.prototype._encryptBlock=function(e){let t,r=e[0],i=e[1];for(t=0;t>>24-8*t&255,a[t+i]=r[1]>>>24-8*t&255;return a},fa.prototype._decryptBlock=function(e){let t,r=e[0],i=e[1];for(t=this.NN+1;t>1;--t){r^=this.parray[t],i=this._F(r)^i;const a=r;r=i,i=a}r^=this.parray[1],i^=this.parray[0],e[0]=this._clean(i),e[1]=this._clean(r)},fa.prototype.init=function(e){let t,r=0;for(this.parray=[],t=0;t=e.length&&(r=0);this.parray[t]=this.PARRAY[t]^a}for(this.sboxes=[],t=0;t<4;++t)for(this.sboxes[t]=[],r=0;r<256;++r)this.sboxes[t][r]=this.SBOXES[t][r];const i=[0,0];for(t=0;t>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=ye+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=de+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=ke+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=ie+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=be+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=Ie+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=De+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=ae+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=ee+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=F+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=I+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=J+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=q+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=fe+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,U=Ce+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=q^ae^de^pe,xe=ve<<1|ve>>>31,U=xe+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=fe^ee^ke^ye,me=ve<<1|ve>>>31,U=me+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Ce^F^ie^de,se=ve<<1|ve>>>31,U=se+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=xe^I^be^ke,B=ve<<1|ve>>>31,U=B+(X<<5|X>>>27)+Oe+(H&re|~H&Z)+1518500249|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=me^J^Ie^ie,V=ve<<1|ve>>>31,U=V+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=se^q^De^be,G=ve<<1|ve>>>31,U=G+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=B^fe^ae^Ie,te=ve<<1|ve>>>31,U=te+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=V^Ce^ee^De,oe=ve<<1|ve>>>31,U=oe+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=G^xe^F^ae,_e=ve<<1|ve>>>31,U=_e+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=te^me^I^ee,ce=ve<<1|ve>>>31,U=ce+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=oe^se^J^F,le=ve<<1|ve>>>31,U=le+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=_e^B^q^I,Ve=ve<<1|ve>>>31,U=Ve+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=ce^V^fe^J,Je=ve<<1|ve>>>31,U=Je+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=le^G^Ce^q,gt=ve<<1|ve>>>31,U=gt+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Ve^te^xe^fe,Pt=ve<<1|ve>>>31,U=Pt+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Je^oe^me^Ce,At=ve<<1|ve>>>31,U=At+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=gt^_e^se^xe,It=ve<<1|ve>>>31,U=It+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Pt^ce^B^me,ht=ve<<1|ve>>>31,U=ht+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=At^le^V^se,Rt=ve<<1|ve>>>31,U=Rt+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=It^Ve^G^B,Tt=ve<<1|ve>>>31,U=Tt+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=ht^Je^te^V,dn=ve<<1|ve>>>31,U=dn+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Rt^gt^oe^G,nn=ve<<1|ve>>>31,U=nn+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Tt^Pt^_e^te,Xt=ve<<1|ve>>>31,U=Xt+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=dn^At^ce^oe,Gt=ve<<1|ve>>>31,U=Gt+(X<<5|X>>>27)+Oe+(H^re^Z)+1859775393|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=nn^It^le^_e,Zt=ve<<1|ve>>>31,U=Zt+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Xt^ht^Ve^ce,Yt=ve<<1|ve>>>31,U=Yt+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Gt^Rt^Je^le,un=ve<<1|ve>>>31,U=un+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Zt^Tt^gt^Ve,qt=ve<<1|ve>>>31,U=qt+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Yt^dn^Pt^Je,rt=ve<<1|ve>>>31,U=rt+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=un^nn^At^gt,at=ve<<1|ve>>>31,U=at+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=qt^Xt^It^Pt,xt=ve<<1|ve>>>31,U=xt+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=rt^Gt^ht^At,Ut=ve<<1|ve>>>31,U=Ut+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=at^Zt^Rt^It,Ee=ve<<1|ve>>>31,U=Ee+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=xt^Yt^Tt^ht,Be=ve<<1|ve>>>31,U=Be+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Ut^un^dn^Rt,Fe=ve<<1|ve>>>31,U=Fe+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Ee^qt^nn^Tt,Le=ve<<1|ve>>>31,U=Le+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Be^rt^Xt^dn,tt=ve<<1|ve>>>31,U=tt+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Fe^at^Gt^nn,ot=ve<<1|ve>>>31,U=ot+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Le^xt^Zt^Xt,pt=ve<<1|ve>>>31,U=pt+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=tt^Ut^Yt^Gt,yt=ve<<1|ve>>>31,U=yt+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=ot^Ee^un^Zt,Dt=ve<<1|ve>>>31,U=Dt+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=pt^Be^qt^Yt,jt=ve<<1|ve>>>31,U=jt+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=yt^Fe^rt^un,Ht=ve<<1|ve>>>31,U=Ht+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Dt^Le^at^qt,zt=ve<<1|ve>>>31,U=zt+(X<<5|X>>>27)+Oe+(H&re|H&Z|re&Z)-1894007588|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=jt^tt^xt^rt,en=ve<<1|ve>>>31,U=en+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Ht^ot^Ut^at,Qt=ve<<1|ve>>>31,U=Qt+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=zt^pt^Ee^xt,rn=ve<<1|ve>>>31,U=rn+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=en^yt^Be^Ut,On=ve<<1|ve>>>31,U=On+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Qt^Dt^Fe^Ee,ir=ve<<1|ve>>>31,U=ir+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=rn^jt^Le^Be,ar=ve<<1|ve>>>31,U=ar+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=On^Ht^tt^Fe,Yn=ve<<1|ve>>>31,U=Yn+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=ir^zt^ot^Le,jn=ve<<1|ve>>>31,U=jn+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=ar^en^pt^tt,Dr=ve<<1|ve>>>31,U=Dr+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Yn^Qt^yt^ot,hr=ve<<1|ve>>>31,U=hr+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=jn^rn^Dt^pt,yi=ve<<1|ve>>>31,U=yi+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Dr^On^jt^yt,Rr=ve<<1|ve>>>31,U=Rr+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=hr^ir^Ht^Dt,ai=ve<<1|ve>>>31,U=ai+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=yi^ar^zt^jt,bi=ve<<1|ve>>>31,U=bi+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Rr^Yn^en^Ht,sr=ve<<1|ve>>>31,U=sr+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=ai^jn^Qt^zt,Cr=ve<<1|ve>>>31,U=Cr+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=bi^Dr^rn^en,si=ve<<1|ve>>>31,U=si+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=sr^hr^On^Qt,wi=ve<<1|ve>>>31,U=wi+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=Cr^yi^ir^rn,Me=ve<<1|ve>>>31,U=Me+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,ve=si^Rr^ar^On,We=ve<<1|ve>>>31,U=We+(X<<5|X>>>27)+Oe+(H^re^Z)-899497514|0,Oe=Z,Z=re,re=H<<30|H>>>2,H=X,X=U,i=i+X|0,a=a+H|0,s=s+re|0,u=u+Z|0,c=c+Oe|0}function w(pe){pe=pe|0,E(x[pe|0]<<24|x[pe|1]<<16|x[pe|2]<<8|x[pe|3],x[pe|4]<<24|x[pe|5]<<16|x[pe|6]<<8|x[pe|7],x[pe|8]<<24|x[pe|9]<<16|x[pe|10]<<8|x[pe|11],x[pe|12]<<24|x[pe|13]<<16|x[pe|14]<<8|x[pe|15],x[pe|16]<<24|x[pe|17]<<16|x[pe|18]<<8|x[pe|19],x[pe|20]<<24|x[pe|21]<<16|x[pe|22]<<8|x[pe|23],x[pe|24]<<24|x[pe|25]<<16|x[pe|26]<<8|x[pe|27],x[pe|28]<<24|x[pe|29]<<16|x[pe|30]<<8|x[pe|31],x[pe|32]<<24|x[pe|33]<<16|x[pe|34]<<8|x[pe|35],x[pe|36]<<24|x[pe|37]<<16|x[pe|38]<<8|x[pe|39],x[pe|40]<<24|x[pe|41]<<16|x[pe|42]<<8|x[pe|43],x[pe|44]<<24|x[pe|45]<<16|x[pe|46]<<8|x[pe|47],x[pe|48]<<24|x[pe|49]<<16|x[pe|50]<<8|x[pe|51],x[pe|52]<<24|x[pe|53]<<16|x[pe|54]<<8|x[pe|55],x[pe|56]<<24|x[pe|57]<<16|x[pe|58]<<8|x[pe|59],x[pe|60]<<24|x[pe|61]<<16|x[pe|62]<<8|x[pe|63])}function T(pe){pe=pe|0,x[pe|0]=i>>>24,x[pe|1]=i>>>16&255,x[pe|2]=i>>>8&255,x[pe|3]=i&255,x[pe|4]=a>>>24,x[pe|5]=a>>>16&255,x[pe|6]=a>>>8&255,x[pe|7]=a&255,x[pe|8]=s>>>24,x[pe|9]=s>>>16&255,x[pe|10]=s>>>8&255,x[pe|11]=s&255,x[pe|12]=u>>>24,x[pe|13]=u>>>16&255,x[pe|14]=u>>>8&255,x[pe|15]=u&255,x[pe|16]=c>>>24,x[pe|17]=c>>>16&255,x[pe|18]=c>>>8&255,x[pe|19]=c&255}function M(){i=1732584193,a=4023233417,s=2562383102,u=271733878,c=3285377520,h=n=0}function A(pe,ye,de,ke,ie,be,Ie){pe=pe|0,ye=ye|0,de=de|0,ke=ke|0,ie=ie|0,be=be|0,Ie=Ie|0,i=pe,a=ye,s=de,u=ke,c=ie,h=be,n=Ie}function L(pe,ye){pe=pe|0,ye=ye|0;var de=0;if(pe&63)return-1;for(;(ye|0)>=64;)w(pe),pe=pe+64|0,ye=ye-64|0,de=de+64|0;return h=h+de|0,h>>>0>>0&&(n=n+1|0),de|0}function Y(pe,ye,de){pe=pe|0,ye=ye|0,de=de|0;var ke=0,ie=0;if(pe&63||~de&&de&31)return-1;if((ye|0)>=64){if(ke=L(pe,ye)|0,(ke|0)==-1)return-1;pe=pe+ke|0,ye=ye-ke|0}if(ke=ke+ye|0,h=h+ye|0,h>>>0>>0&&(n=n+1|0),x[pe|ye]=128,(ye|0)>=56){for(ie=ye+1|0;(ie|0)<64;ie=ie+1|0)x[pe|ie]=0;w(pe),ye=0,x[pe|0]=0}for(ie=ye+1|0;(ie|0)<59;ie=ie+1|0)x[pe|ie]=0;return x[pe|56]=n>>>21&255,x[pe|57]=n>>>13&255,x[pe|58]=n>>>5&255,x[pe|59]=n<<3&255|h>>>29,x[pe|60]=h>>>21&255,x[pe|61]=h>>>13&255,x[pe|62]=h>>>5&255,x[pe|63]=h<<3&255,w(pe),~de&&T(de),ke|0}function N(){i=p,a=d,s=v,u=m,c=g,h=64,n=0}function W(){i=y,a=b,s=k,u=O,c=S,h=64,n=0}function j(pe,ye,de,ke,ie,be,Ie,De,ae,ee,F,I,J,q,fe,Ce){pe=pe|0,ye=ye|0,de=de|0,ke=ke|0,ie=ie|0,be=be|0,Ie=Ie|0,De=De|0,ae=ae|0,ee=ee|0,F=F|0,I=I|0,J=J|0,q=q|0,fe=fe|0,Ce=Ce|0,M(),E(pe^1549556828,ye^1549556828,de^1549556828,ke^1549556828,ie^1549556828,be^1549556828,Ie^1549556828,De^1549556828,ae^1549556828,ee^1549556828,F^1549556828,I^1549556828,J^1549556828,q^1549556828,fe^1549556828,Ce^1549556828),y=i,b=a,k=s,O=u,S=c,M(),E(pe^909522486,ye^909522486,de^909522486,ke^909522486,ie^909522486,be^909522486,Ie^909522486,De^909522486,ae^909522486,ee^909522486,F^909522486,I^909522486,J^909522486,q^909522486,fe^909522486,Ce^909522486),p=i,d=a,v=s,m=u,g=c,h=64,n=0}function ue(pe,ye,de){pe=pe|0,ye=ye|0,de=de|0;var ke=0,ie=0,be=0,Ie=0,De=0,ae=0;return pe&63||~de&&de&31?-1:(ae=Y(pe,ye,-1)|0,ke=i,ie=a,be=s,Ie=u,De=c,W(),E(ke,ie,be,Ie,De,2147483648,0,0,0,0,0,0,0,0,0,672),~de&&T(de),ae|0)}function Te(pe,ye,de,ke,ie){pe=pe|0,ye=ye|0,de=de|0,ke=ke|0,ie=ie|0;var be=0,Ie=0,De=0,ae=0,ee=0,F=0,I=0,J=0,q=0,fe=0;if(pe&63||~ie&&ie&31)return-1;for(x[pe+ye|0]=de>>>24,x[pe+ye+1|0]=de>>>16&255,x[pe+ye+2|0]=de>>>8&255,x[pe+ye+3|0]=de&255,ue(pe,ye+4|0,-1)|0,be=F=i,Ie=I=a,De=J=s,ae=q=u,ee=fe=c,ke=ke-1|0;(ke|0)>0;)N(),E(F,I,J,q,fe,2147483648,0,0,0,0,0,0,0,0,0,672),F=i,I=a,J=s,q=u,fe=c,W(),E(F,I,J,q,fe,2147483648,0,0,0,0,0,0,0,0,0,672),F=i,I=a,J=s,q=u,fe=c,be=be^i,Ie=Ie^a,De=De^s,ae=ae^u,ee=ee^c,ke=ke-1|0;return i=be,a=Ie,s=De,u=ae,c=ee,~ie&&T(ie),0}return{reset:M,init:A,process:L,finish:Y,hmac_reset:N,hmac_init:j,hmac_finish:ue,pbkdf2_generate_block:Te}};class V6{constructor(){this.pos=0,this.len=0}reset(){const{asm:t}=this.acquire_asm();return this.result=null,this.pos=0,this.len=0,t.reset(),this}process(t){if(this.result!==null)throw new sy("state must be reset before processing new data");const{asm:r,heap:i}=this.acquire_asm();let a=this.pos,s=this.len,u=0,c=t.length,h=0;for(;c>0;)h=Yo(i,a+s,t,u,c),s+=h,u+=h,c-=h,h=r.process(a,s),a+=h,s-=h,s||(a=0);return this.pos=a,this.len=s,this}finish(){if(this.result!==null)throw new sy("state must be reset before processing new data");const{asm:t,heap:r}=this.acquire_asm();return t.finish(this.pos,this.len,0),this.result=new Uint8Array(this.HASH_SIZE),this.result.set(r.subarray(0,this.HASH_SIZE)),this.pos=0,this.len=0,this.release_asm(),this}}const XS=[],JS=[];class Xo extends V6{constructor(){super(),this.NAME="sha1",this.BLOCK_SIZE=64,this.HASH_SIZE=20,this.acquire_asm()}acquire_asm(){return this.heap!==void 0&&this.asm!==void 0||(this.heap=XS.pop()||W0(),this.asm=JS.pop()||U6({Uint8Array},null,this.heap.buffer),this.reset()),{heap:this.heap,asm:this.asm}}release_asm(){this.heap!==void 0&&this.asm!==void 0&&(XS.push(this.heap),JS.push(this.asm)),this.heap=void 0,this.asm=void 0}static bytes(t){return new Xo().process(t).finish().result}}Xo.NAME="sha1",Xo.heap_pool=[],Xo.asm_pool=[],Xo.asm_function=U6;const ZS=[],QS=[];class Zv extends V6{constructor(){super(),this.NAME="sha256",this.BLOCK_SIZE=64,this.HASH_SIZE=32,this.acquire_asm()}acquire_asm(){return this.heap!==void 0&&this.asm!==void 0||(this.heap=ZS.pop()||W0(),this.asm=QS.pop()||function(t,r,i){var a=0,s=0,u=0,c=0,h=0,n=0,p=0,d=0,v=0,m=0,g=0,y=0,b=0,k=0,O=0,S=0,x=0,E=0,w=0,T=0,M=0,A=0,L=0,Y=0,N=0,W=0,j=new t.Uint8Array(i);function ue(F,I,J,q,fe,Ce,X,H,re,Z,Oe,ve,U,xe,me,se){F=F|0,I=I|0,J=J|0,q=q|0,fe=fe|0,Ce=Ce|0,X=X|0,H=H|0,re=re|0,Z=Z|0,Oe=Oe|0,ve=ve|0,U=U|0,xe=xe|0,me=me|0,se=se|0;var B=0,V=0,G=0,te=0,oe=0,_e=0,ce=0,le=0;B=a,V=s,G=u,te=c,oe=h,_e=n,ce=p,le=d,le=F+le+(oe>>>6^oe>>>11^oe>>>25^oe<<26^oe<<21^oe<<7)+(ce^oe&(_e^ce))+1116352408|0,te=te+le|0,le=le+(B&V^G&(B^V))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0,ce=I+ce+(te>>>6^te>>>11^te>>>25^te<<26^te<<21^te<<7)+(_e^te&(oe^_e))+1899447441|0,G=G+ce|0,ce=ce+(le&B^V&(le^B))+(le>>>2^le>>>13^le>>>22^le<<30^le<<19^le<<10)|0,_e=J+_e+(G>>>6^G>>>11^G>>>25^G<<26^G<<21^G<<7)+(oe^G&(te^oe))+3049323471|0,V=V+_e|0,_e=_e+(ce&le^B&(ce^le))+(ce>>>2^ce>>>13^ce>>>22^ce<<30^ce<<19^ce<<10)|0,oe=q+oe+(V>>>6^V>>>11^V>>>25^V<<26^V<<21^V<<7)+(te^V&(G^te))+3921009573|0,B=B+oe|0,oe=oe+(_e&ce^le&(_e^ce))+(_e>>>2^_e>>>13^_e>>>22^_e<<30^_e<<19^_e<<10)|0,te=fe+te+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(G^B&(V^G))+961987163|0,le=le+te|0,te=te+(oe&_e^ce&(oe^_e))+(oe>>>2^oe>>>13^oe>>>22^oe<<30^oe<<19^oe<<10)|0,G=Ce+G+(le>>>6^le>>>11^le>>>25^le<<26^le<<21^le<<7)+(V^le&(B^V))+1508970993|0,ce=ce+G|0,G=G+(te&oe^_e&(te^oe))+(te>>>2^te>>>13^te>>>22^te<<30^te<<19^te<<10)|0,V=X+V+(ce>>>6^ce>>>11^ce>>>25^ce<<26^ce<<21^ce<<7)+(B^ce&(le^B))+2453635748|0,_e=_e+V|0,V=V+(G&te^oe&(G^te))+(G>>>2^G>>>13^G>>>22^G<<30^G<<19^G<<10)|0,B=H+B+(_e>>>6^_e>>>11^_e>>>25^_e<<26^_e<<21^_e<<7)+(le^_e&(ce^le))+2870763221|0,oe=oe+B|0,B=B+(V&G^te&(V^G))+(V>>>2^V>>>13^V>>>22^V<<30^V<<19^V<<10)|0,le=re+le+(oe>>>6^oe>>>11^oe>>>25^oe<<26^oe<<21^oe<<7)+(ce^oe&(_e^ce))+3624381080|0,te=te+le|0,le=le+(B&V^G&(B^V))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0,ce=Z+ce+(te>>>6^te>>>11^te>>>25^te<<26^te<<21^te<<7)+(_e^te&(oe^_e))+310598401|0,G=G+ce|0,ce=ce+(le&B^V&(le^B))+(le>>>2^le>>>13^le>>>22^le<<30^le<<19^le<<10)|0,_e=Oe+_e+(G>>>6^G>>>11^G>>>25^G<<26^G<<21^G<<7)+(oe^G&(te^oe))+607225278|0,V=V+_e|0,_e=_e+(ce&le^B&(ce^le))+(ce>>>2^ce>>>13^ce>>>22^ce<<30^ce<<19^ce<<10)|0,oe=ve+oe+(V>>>6^V>>>11^V>>>25^V<<26^V<<21^V<<7)+(te^V&(G^te))+1426881987|0,B=B+oe|0,oe=oe+(_e&ce^le&(_e^ce))+(_e>>>2^_e>>>13^_e>>>22^_e<<30^_e<<19^_e<<10)|0,te=U+te+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(G^B&(V^G))+1925078388|0,le=le+te|0,te=te+(oe&_e^ce&(oe^_e))+(oe>>>2^oe>>>13^oe>>>22^oe<<30^oe<<19^oe<<10)|0,G=xe+G+(le>>>6^le>>>11^le>>>25^le<<26^le<<21^le<<7)+(V^le&(B^V))+2162078206|0,ce=ce+G|0,G=G+(te&oe^_e&(te^oe))+(te>>>2^te>>>13^te>>>22^te<<30^te<<19^te<<10)|0,V=me+V+(ce>>>6^ce>>>11^ce>>>25^ce<<26^ce<<21^ce<<7)+(B^ce&(le^B))+2614888103|0,_e=_e+V|0,V=V+(G&te^oe&(G^te))+(G>>>2^G>>>13^G>>>22^G<<30^G<<19^G<<10)|0,B=se+B+(_e>>>6^_e>>>11^_e>>>25^_e<<26^_e<<21^_e<<7)+(le^_e&(ce^le))+3248222580|0,oe=oe+B|0,B=B+(V&G^te&(V^G))+(V>>>2^V>>>13^V>>>22^V<<30^V<<19^V<<10)|0,F=(I>>>7^I>>>18^I>>>3^I<<25^I<<14)+(me>>>17^me>>>19^me>>>10^me<<15^me<<13)+F+Z|0,le=F+le+(oe>>>6^oe>>>11^oe>>>25^oe<<26^oe<<21^oe<<7)+(ce^oe&(_e^ce))+3835390401|0,te=te+le|0,le=le+(B&V^G&(B^V))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0,I=(J>>>7^J>>>18^J>>>3^J<<25^J<<14)+(se>>>17^se>>>19^se>>>10^se<<15^se<<13)+I+Oe|0,ce=I+ce+(te>>>6^te>>>11^te>>>25^te<<26^te<<21^te<<7)+(_e^te&(oe^_e))+4022224774|0,G=G+ce|0,ce=ce+(le&B^V&(le^B))+(le>>>2^le>>>13^le>>>22^le<<30^le<<19^le<<10)|0,J=(q>>>7^q>>>18^q>>>3^q<<25^q<<14)+(F>>>17^F>>>19^F>>>10^F<<15^F<<13)+J+ve|0,_e=J+_e+(G>>>6^G>>>11^G>>>25^G<<26^G<<21^G<<7)+(oe^G&(te^oe))+264347078|0,V=V+_e|0,_e=_e+(ce&le^B&(ce^le))+(ce>>>2^ce>>>13^ce>>>22^ce<<30^ce<<19^ce<<10)|0,q=(fe>>>7^fe>>>18^fe>>>3^fe<<25^fe<<14)+(I>>>17^I>>>19^I>>>10^I<<15^I<<13)+q+U|0,oe=q+oe+(V>>>6^V>>>11^V>>>25^V<<26^V<<21^V<<7)+(te^V&(G^te))+604807628|0,B=B+oe|0,oe=oe+(_e&ce^le&(_e^ce))+(_e>>>2^_e>>>13^_e>>>22^_e<<30^_e<<19^_e<<10)|0,fe=(Ce>>>7^Ce>>>18^Ce>>>3^Ce<<25^Ce<<14)+(J>>>17^J>>>19^J>>>10^J<<15^J<<13)+fe+xe|0,te=fe+te+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(G^B&(V^G))+770255983|0,le=le+te|0,te=te+(oe&_e^ce&(oe^_e))+(oe>>>2^oe>>>13^oe>>>22^oe<<30^oe<<19^oe<<10)|0,Ce=(X>>>7^X>>>18^X>>>3^X<<25^X<<14)+(q>>>17^q>>>19^q>>>10^q<<15^q<<13)+Ce+me|0,G=Ce+G+(le>>>6^le>>>11^le>>>25^le<<26^le<<21^le<<7)+(V^le&(B^V))+1249150122|0,ce=ce+G|0,G=G+(te&oe^_e&(te^oe))+(te>>>2^te>>>13^te>>>22^te<<30^te<<19^te<<10)|0,X=(H>>>7^H>>>18^H>>>3^H<<25^H<<14)+(fe>>>17^fe>>>19^fe>>>10^fe<<15^fe<<13)+X+se|0,V=X+V+(ce>>>6^ce>>>11^ce>>>25^ce<<26^ce<<21^ce<<7)+(B^ce&(le^B))+1555081692|0,_e=_e+V|0,V=V+(G&te^oe&(G^te))+(G>>>2^G>>>13^G>>>22^G<<30^G<<19^G<<10)|0,H=(re>>>7^re>>>18^re>>>3^re<<25^re<<14)+(Ce>>>17^Ce>>>19^Ce>>>10^Ce<<15^Ce<<13)+H+F|0,B=H+B+(_e>>>6^_e>>>11^_e>>>25^_e<<26^_e<<21^_e<<7)+(le^_e&(ce^le))+1996064986|0,oe=oe+B|0,B=B+(V&G^te&(V^G))+(V>>>2^V>>>13^V>>>22^V<<30^V<<19^V<<10)|0,re=(Z>>>7^Z>>>18^Z>>>3^Z<<25^Z<<14)+(X>>>17^X>>>19^X>>>10^X<<15^X<<13)+re+I|0,le=re+le+(oe>>>6^oe>>>11^oe>>>25^oe<<26^oe<<21^oe<<7)+(ce^oe&(_e^ce))+2554220882|0,te=te+le|0,le=le+(B&V^G&(B^V))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0,Z=(Oe>>>7^Oe>>>18^Oe>>>3^Oe<<25^Oe<<14)+(H>>>17^H>>>19^H>>>10^H<<15^H<<13)+Z+J|0,ce=Z+ce+(te>>>6^te>>>11^te>>>25^te<<26^te<<21^te<<7)+(_e^te&(oe^_e))+2821834349|0,G=G+ce|0,ce=ce+(le&B^V&(le^B))+(le>>>2^le>>>13^le>>>22^le<<30^le<<19^le<<10)|0,Oe=(ve>>>7^ve>>>18^ve>>>3^ve<<25^ve<<14)+(re>>>17^re>>>19^re>>>10^re<<15^re<<13)+Oe+q|0,_e=Oe+_e+(G>>>6^G>>>11^G>>>25^G<<26^G<<21^G<<7)+(oe^G&(te^oe))+2952996808|0,V=V+_e|0,_e=_e+(ce&le^B&(ce^le))+(ce>>>2^ce>>>13^ce>>>22^ce<<30^ce<<19^ce<<10)|0,ve=(U>>>7^U>>>18^U>>>3^U<<25^U<<14)+(Z>>>17^Z>>>19^Z>>>10^Z<<15^Z<<13)+ve+fe|0,oe=ve+oe+(V>>>6^V>>>11^V>>>25^V<<26^V<<21^V<<7)+(te^V&(G^te))+3210313671|0,B=B+oe|0,oe=oe+(_e&ce^le&(_e^ce))+(_e>>>2^_e>>>13^_e>>>22^_e<<30^_e<<19^_e<<10)|0,U=(xe>>>7^xe>>>18^xe>>>3^xe<<25^xe<<14)+(Oe>>>17^Oe>>>19^Oe>>>10^Oe<<15^Oe<<13)+U+Ce|0,te=U+te+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(G^B&(V^G))+3336571891|0,le=le+te|0,te=te+(oe&_e^ce&(oe^_e))+(oe>>>2^oe>>>13^oe>>>22^oe<<30^oe<<19^oe<<10)|0,xe=(me>>>7^me>>>18^me>>>3^me<<25^me<<14)+(ve>>>17^ve>>>19^ve>>>10^ve<<15^ve<<13)+xe+X|0,G=xe+G+(le>>>6^le>>>11^le>>>25^le<<26^le<<21^le<<7)+(V^le&(B^V))+3584528711|0,ce=ce+G|0,G=G+(te&oe^_e&(te^oe))+(te>>>2^te>>>13^te>>>22^te<<30^te<<19^te<<10)|0,me=(se>>>7^se>>>18^se>>>3^se<<25^se<<14)+(U>>>17^U>>>19^U>>>10^U<<15^U<<13)+me+H|0,V=me+V+(ce>>>6^ce>>>11^ce>>>25^ce<<26^ce<<21^ce<<7)+(B^ce&(le^B))+113926993|0,_e=_e+V|0,V=V+(G&te^oe&(G^te))+(G>>>2^G>>>13^G>>>22^G<<30^G<<19^G<<10)|0,se=(F>>>7^F>>>18^F>>>3^F<<25^F<<14)+(xe>>>17^xe>>>19^xe>>>10^xe<<15^xe<<13)+se+re|0,B=se+B+(_e>>>6^_e>>>11^_e>>>25^_e<<26^_e<<21^_e<<7)+(le^_e&(ce^le))+338241895|0,oe=oe+B|0,B=B+(V&G^te&(V^G))+(V>>>2^V>>>13^V>>>22^V<<30^V<<19^V<<10)|0,F=(I>>>7^I>>>18^I>>>3^I<<25^I<<14)+(me>>>17^me>>>19^me>>>10^me<<15^me<<13)+F+Z|0,le=F+le+(oe>>>6^oe>>>11^oe>>>25^oe<<26^oe<<21^oe<<7)+(ce^oe&(_e^ce))+666307205|0,te=te+le|0,le=le+(B&V^G&(B^V))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0,I=(J>>>7^J>>>18^J>>>3^J<<25^J<<14)+(se>>>17^se>>>19^se>>>10^se<<15^se<<13)+I+Oe|0,ce=I+ce+(te>>>6^te>>>11^te>>>25^te<<26^te<<21^te<<7)+(_e^te&(oe^_e))+773529912|0,G=G+ce|0,ce=ce+(le&B^V&(le^B))+(le>>>2^le>>>13^le>>>22^le<<30^le<<19^le<<10)|0,J=(q>>>7^q>>>18^q>>>3^q<<25^q<<14)+(F>>>17^F>>>19^F>>>10^F<<15^F<<13)+J+ve|0,_e=J+_e+(G>>>6^G>>>11^G>>>25^G<<26^G<<21^G<<7)+(oe^G&(te^oe))+1294757372|0,V=V+_e|0,_e=_e+(ce&le^B&(ce^le))+(ce>>>2^ce>>>13^ce>>>22^ce<<30^ce<<19^ce<<10)|0,q=(fe>>>7^fe>>>18^fe>>>3^fe<<25^fe<<14)+(I>>>17^I>>>19^I>>>10^I<<15^I<<13)+q+U|0,oe=q+oe+(V>>>6^V>>>11^V>>>25^V<<26^V<<21^V<<7)+(te^V&(G^te))+1396182291|0,B=B+oe|0,oe=oe+(_e&ce^le&(_e^ce))+(_e>>>2^_e>>>13^_e>>>22^_e<<30^_e<<19^_e<<10)|0,fe=(Ce>>>7^Ce>>>18^Ce>>>3^Ce<<25^Ce<<14)+(J>>>17^J>>>19^J>>>10^J<<15^J<<13)+fe+xe|0,te=fe+te+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(G^B&(V^G))+1695183700|0,le=le+te|0,te=te+(oe&_e^ce&(oe^_e))+(oe>>>2^oe>>>13^oe>>>22^oe<<30^oe<<19^oe<<10)|0,Ce=(X>>>7^X>>>18^X>>>3^X<<25^X<<14)+(q>>>17^q>>>19^q>>>10^q<<15^q<<13)+Ce+me|0,G=Ce+G+(le>>>6^le>>>11^le>>>25^le<<26^le<<21^le<<7)+(V^le&(B^V))+1986661051|0,ce=ce+G|0,G=G+(te&oe^_e&(te^oe))+(te>>>2^te>>>13^te>>>22^te<<30^te<<19^te<<10)|0,X=(H>>>7^H>>>18^H>>>3^H<<25^H<<14)+(fe>>>17^fe>>>19^fe>>>10^fe<<15^fe<<13)+X+se|0,V=X+V+(ce>>>6^ce>>>11^ce>>>25^ce<<26^ce<<21^ce<<7)+(B^ce&(le^B))+2177026350|0,_e=_e+V|0,V=V+(G&te^oe&(G^te))+(G>>>2^G>>>13^G>>>22^G<<30^G<<19^G<<10)|0,H=(re>>>7^re>>>18^re>>>3^re<<25^re<<14)+(Ce>>>17^Ce>>>19^Ce>>>10^Ce<<15^Ce<<13)+H+F|0,B=H+B+(_e>>>6^_e>>>11^_e>>>25^_e<<26^_e<<21^_e<<7)+(le^_e&(ce^le))+2456956037|0,oe=oe+B|0,B=B+(V&G^te&(V^G))+(V>>>2^V>>>13^V>>>22^V<<30^V<<19^V<<10)|0,re=(Z>>>7^Z>>>18^Z>>>3^Z<<25^Z<<14)+(X>>>17^X>>>19^X>>>10^X<<15^X<<13)+re+I|0,le=re+le+(oe>>>6^oe>>>11^oe>>>25^oe<<26^oe<<21^oe<<7)+(ce^oe&(_e^ce))+2730485921|0,te=te+le|0,le=le+(B&V^G&(B^V))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0,Z=(Oe>>>7^Oe>>>18^Oe>>>3^Oe<<25^Oe<<14)+(H>>>17^H>>>19^H>>>10^H<<15^H<<13)+Z+J|0,ce=Z+ce+(te>>>6^te>>>11^te>>>25^te<<26^te<<21^te<<7)+(_e^te&(oe^_e))+2820302411|0,G=G+ce|0,ce=ce+(le&B^V&(le^B))+(le>>>2^le>>>13^le>>>22^le<<30^le<<19^le<<10)|0,Oe=(ve>>>7^ve>>>18^ve>>>3^ve<<25^ve<<14)+(re>>>17^re>>>19^re>>>10^re<<15^re<<13)+Oe+q|0,_e=Oe+_e+(G>>>6^G>>>11^G>>>25^G<<26^G<<21^G<<7)+(oe^G&(te^oe))+3259730800|0,V=V+_e|0,_e=_e+(ce&le^B&(ce^le))+(ce>>>2^ce>>>13^ce>>>22^ce<<30^ce<<19^ce<<10)|0,ve=(U>>>7^U>>>18^U>>>3^U<<25^U<<14)+(Z>>>17^Z>>>19^Z>>>10^Z<<15^Z<<13)+ve+fe|0,oe=ve+oe+(V>>>6^V>>>11^V>>>25^V<<26^V<<21^V<<7)+(te^V&(G^te))+3345764771|0,B=B+oe|0,oe=oe+(_e&ce^le&(_e^ce))+(_e>>>2^_e>>>13^_e>>>22^_e<<30^_e<<19^_e<<10)|0,U=(xe>>>7^xe>>>18^xe>>>3^xe<<25^xe<<14)+(Oe>>>17^Oe>>>19^Oe>>>10^Oe<<15^Oe<<13)+U+Ce|0,te=U+te+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(G^B&(V^G))+3516065817|0,le=le+te|0,te=te+(oe&_e^ce&(oe^_e))+(oe>>>2^oe>>>13^oe>>>22^oe<<30^oe<<19^oe<<10)|0,xe=(me>>>7^me>>>18^me>>>3^me<<25^me<<14)+(ve>>>17^ve>>>19^ve>>>10^ve<<15^ve<<13)+xe+X|0,G=xe+G+(le>>>6^le>>>11^le>>>25^le<<26^le<<21^le<<7)+(V^le&(B^V))+3600352804|0,ce=ce+G|0,G=G+(te&oe^_e&(te^oe))+(te>>>2^te>>>13^te>>>22^te<<30^te<<19^te<<10)|0,me=(se>>>7^se>>>18^se>>>3^se<<25^se<<14)+(U>>>17^U>>>19^U>>>10^U<<15^U<<13)+me+H|0,V=me+V+(ce>>>6^ce>>>11^ce>>>25^ce<<26^ce<<21^ce<<7)+(B^ce&(le^B))+4094571909|0,_e=_e+V|0,V=V+(G&te^oe&(G^te))+(G>>>2^G>>>13^G>>>22^G<<30^G<<19^G<<10)|0,se=(F>>>7^F>>>18^F>>>3^F<<25^F<<14)+(xe>>>17^xe>>>19^xe>>>10^xe<<15^xe<<13)+se+re|0,B=se+B+(_e>>>6^_e>>>11^_e>>>25^_e<<26^_e<<21^_e<<7)+(le^_e&(ce^le))+275423344|0,oe=oe+B|0,B=B+(V&G^te&(V^G))+(V>>>2^V>>>13^V>>>22^V<<30^V<<19^V<<10)|0,F=(I>>>7^I>>>18^I>>>3^I<<25^I<<14)+(me>>>17^me>>>19^me>>>10^me<<15^me<<13)+F+Z|0,le=F+le+(oe>>>6^oe>>>11^oe>>>25^oe<<26^oe<<21^oe<<7)+(ce^oe&(_e^ce))+430227734|0,te=te+le|0,le=le+(B&V^G&(B^V))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0,I=(J>>>7^J>>>18^J>>>3^J<<25^J<<14)+(se>>>17^se>>>19^se>>>10^se<<15^se<<13)+I+Oe|0,ce=I+ce+(te>>>6^te>>>11^te>>>25^te<<26^te<<21^te<<7)+(_e^te&(oe^_e))+506948616|0,G=G+ce|0,ce=ce+(le&B^V&(le^B))+(le>>>2^le>>>13^le>>>22^le<<30^le<<19^le<<10)|0,J=(q>>>7^q>>>18^q>>>3^q<<25^q<<14)+(F>>>17^F>>>19^F>>>10^F<<15^F<<13)+J+ve|0,_e=J+_e+(G>>>6^G>>>11^G>>>25^G<<26^G<<21^G<<7)+(oe^G&(te^oe))+659060556|0,V=V+_e|0,_e=_e+(ce&le^B&(ce^le))+(ce>>>2^ce>>>13^ce>>>22^ce<<30^ce<<19^ce<<10)|0,q=(fe>>>7^fe>>>18^fe>>>3^fe<<25^fe<<14)+(I>>>17^I>>>19^I>>>10^I<<15^I<<13)+q+U|0,oe=q+oe+(V>>>6^V>>>11^V>>>25^V<<26^V<<21^V<<7)+(te^V&(G^te))+883997877|0,B=B+oe|0,oe=oe+(_e&ce^le&(_e^ce))+(_e>>>2^_e>>>13^_e>>>22^_e<<30^_e<<19^_e<<10)|0,fe=(Ce>>>7^Ce>>>18^Ce>>>3^Ce<<25^Ce<<14)+(J>>>17^J>>>19^J>>>10^J<<15^J<<13)+fe+xe|0,te=fe+te+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(G^B&(V^G))+958139571|0,le=le+te|0,te=te+(oe&_e^ce&(oe^_e))+(oe>>>2^oe>>>13^oe>>>22^oe<<30^oe<<19^oe<<10)|0,Ce=(X>>>7^X>>>18^X>>>3^X<<25^X<<14)+(q>>>17^q>>>19^q>>>10^q<<15^q<<13)+Ce+me|0,G=Ce+G+(le>>>6^le>>>11^le>>>25^le<<26^le<<21^le<<7)+(V^le&(B^V))+1322822218|0,ce=ce+G|0,G=G+(te&oe^_e&(te^oe))+(te>>>2^te>>>13^te>>>22^te<<30^te<<19^te<<10)|0,X=(H>>>7^H>>>18^H>>>3^H<<25^H<<14)+(fe>>>17^fe>>>19^fe>>>10^fe<<15^fe<<13)+X+se|0,V=X+V+(ce>>>6^ce>>>11^ce>>>25^ce<<26^ce<<21^ce<<7)+(B^ce&(le^B))+1537002063|0,_e=_e+V|0,V=V+(G&te^oe&(G^te))+(G>>>2^G>>>13^G>>>22^G<<30^G<<19^G<<10)|0,H=(re>>>7^re>>>18^re>>>3^re<<25^re<<14)+(Ce>>>17^Ce>>>19^Ce>>>10^Ce<<15^Ce<<13)+H+F|0,B=H+B+(_e>>>6^_e>>>11^_e>>>25^_e<<26^_e<<21^_e<<7)+(le^_e&(ce^le))+1747873779|0,oe=oe+B|0,B=B+(V&G^te&(V^G))+(V>>>2^V>>>13^V>>>22^V<<30^V<<19^V<<10)|0,re=(Z>>>7^Z>>>18^Z>>>3^Z<<25^Z<<14)+(X>>>17^X>>>19^X>>>10^X<<15^X<<13)+re+I|0,le=re+le+(oe>>>6^oe>>>11^oe>>>25^oe<<26^oe<<21^oe<<7)+(ce^oe&(_e^ce))+1955562222|0,te=te+le|0,le=le+(B&V^G&(B^V))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0,Z=(Oe>>>7^Oe>>>18^Oe>>>3^Oe<<25^Oe<<14)+(H>>>17^H>>>19^H>>>10^H<<15^H<<13)+Z+J|0,ce=Z+ce+(te>>>6^te>>>11^te>>>25^te<<26^te<<21^te<<7)+(_e^te&(oe^_e))+2024104815|0,G=G+ce|0,ce=ce+(le&B^V&(le^B))+(le>>>2^le>>>13^le>>>22^le<<30^le<<19^le<<10)|0,Oe=(ve>>>7^ve>>>18^ve>>>3^ve<<25^ve<<14)+(re>>>17^re>>>19^re>>>10^re<<15^re<<13)+Oe+q|0,_e=Oe+_e+(G>>>6^G>>>11^G>>>25^G<<26^G<<21^G<<7)+(oe^G&(te^oe))+2227730452|0,V=V+_e|0,_e=_e+(ce&le^B&(ce^le))+(ce>>>2^ce>>>13^ce>>>22^ce<<30^ce<<19^ce<<10)|0,ve=(U>>>7^U>>>18^U>>>3^U<<25^U<<14)+(Z>>>17^Z>>>19^Z>>>10^Z<<15^Z<<13)+ve+fe|0,oe=ve+oe+(V>>>6^V>>>11^V>>>25^V<<26^V<<21^V<<7)+(te^V&(G^te))+2361852424|0,B=B+oe|0,oe=oe+(_e&ce^le&(_e^ce))+(_e>>>2^_e>>>13^_e>>>22^_e<<30^_e<<19^_e<<10)|0,U=(xe>>>7^xe>>>18^xe>>>3^xe<<25^xe<<14)+(Oe>>>17^Oe>>>19^Oe>>>10^Oe<<15^Oe<<13)+U+Ce|0,te=U+te+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(G^B&(V^G))+2428436474|0,le=le+te|0,te=te+(oe&_e^ce&(oe^_e))+(oe>>>2^oe>>>13^oe>>>22^oe<<30^oe<<19^oe<<10)|0,xe=(me>>>7^me>>>18^me>>>3^me<<25^me<<14)+(ve>>>17^ve>>>19^ve>>>10^ve<<15^ve<<13)+xe+X|0,G=xe+G+(le>>>6^le>>>11^le>>>25^le<<26^le<<21^le<<7)+(V^le&(B^V))+2756734187|0,ce=ce+G|0,G=G+(te&oe^_e&(te^oe))+(te>>>2^te>>>13^te>>>22^te<<30^te<<19^te<<10)|0,me=(se>>>7^se>>>18^se>>>3^se<<25^se<<14)+(U>>>17^U>>>19^U>>>10^U<<15^U<<13)+me+H|0,V=me+V+(ce>>>6^ce>>>11^ce>>>25^ce<<26^ce<<21^ce<<7)+(B^ce&(le^B))+3204031479|0,_e=_e+V|0,V=V+(G&te^oe&(G^te))+(G>>>2^G>>>13^G>>>22^G<<30^G<<19^G<<10)|0,se=(F>>>7^F>>>18^F>>>3^F<<25^F<<14)+(xe>>>17^xe>>>19^xe>>>10^xe<<15^xe<<13)+se+re|0,B=se+B+(_e>>>6^_e>>>11^_e>>>25^_e<<26^_e<<21^_e<<7)+(le^_e&(ce^le))+3329325298|0,oe=oe+B|0,B=B+(V&G^te&(V^G))+(V>>>2^V>>>13^V>>>22^V<<30^V<<19^V<<10)|0,a=a+B|0,s=s+V|0,u=u+G|0,c=c+te|0,h=h+oe|0,n=n+_e|0,p=p+ce|0,d=d+le|0}function Te(F){F=F|0,ue(j[F|0]<<24|j[F|1]<<16|j[F|2]<<8|j[F|3],j[F|4]<<24|j[F|5]<<16|j[F|6]<<8|j[F|7],j[F|8]<<24|j[F|9]<<16|j[F|10]<<8|j[F|11],j[F|12]<<24|j[F|13]<<16|j[F|14]<<8|j[F|15],j[F|16]<<24|j[F|17]<<16|j[F|18]<<8|j[F|19],j[F|20]<<24|j[F|21]<<16|j[F|22]<<8|j[F|23],j[F|24]<<24|j[F|25]<<16|j[F|26]<<8|j[F|27],j[F|28]<<24|j[F|29]<<16|j[F|30]<<8|j[F|31],j[F|32]<<24|j[F|33]<<16|j[F|34]<<8|j[F|35],j[F|36]<<24|j[F|37]<<16|j[F|38]<<8|j[F|39],j[F|40]<<24|j[F|41]<<16|j[F|42]<<8|j[F|43],j[F|44]<<24|j[F|45]<<16|j[F|46]<<8|j[F|47],j[F|48]<<24|j[F|49]<<16|j[F|50]<<8|j[F|51],j[F|52]<<24|j[F|53]<<16|j[F|54]<<8|j[F|55],j[F|56]<<24|j[F|57]<<16|j[F|58]<<8|j[F|59],j[F|60]<<24|j[F|61]<<16|j[F|62]<<8|j[F|63])}function pe(F){F=F|0,j[F|0]=a>>>24,j[F|1]=a>>>16&255,j[F|2]=a>>>8&255,j[F|3]=a&255,j[F|4]=s>>>24,j[F|5]=s>>>16&255,j[F|6]=s>>>8&255,j[F|7]=s&255,j[F|8]=u>>>24,j[F|9]=u>>>16&255,j[F|10]=u>>>8&255,j[F|11]=u&255,j[F|12]=c>>>24,j[F|13]=c>>>16&255,j[F|14]=c>>>8&255,j[F|15]=c&255,j[F|16]=h>>>24,j[F|17]=h>>>16&255,j[F|18]=h>>>8&255,j[F|19]=h&255,j[F|20]=n>>>24,j[F|21]=n>>>16&255,j[F|22]=n>>>8&255,j[F|23]=n&255,j[F|24]=p>>>24,j[F|25]=p>>>16&255,j[F|26]=p>>>8&255,j[F|27]=p&255,j[F|28]=d>>>24,j[F|29]=d>>>16&255,j[F|30]=d>>>8&255,j[F|31]=d&255}function ye(){a=1779033703,s=3144134277,u=1013904242,c=2773480762,h=1359893119,n=2600822924,p=528734635,d=1541459225,v=m=0}function de(F,I,J,q,fe,Ce,X,H,re,Z){F=F|0,I=I|0,J=J|0,q=q|0,fe=fe|0,Ce=Ce|0,X=X|0,H=H|0,re=re|0,Z=Z|0,a=F,s=I,u=J,c=q,h=fe,n=Ce,p=X,d=H,v=re,m=Z}function ke(F,I){F=F|0,I=I|0;var J=0;if(F&63)return-1;for(;(I|0)>=64;)Te(F),F=F+64|0,I=I-64|0,J=J+64|0;return v=v+J|0,v>>>0>>0&&(m=m+1|0),J|0}function ie(F,I,J){F=F|0,I=I|0,J=J|0;var q=0,fe=0;if(F&63||~J&&J&31)return-1;if((I|0)>=64){if(q=ke(F,I)|0,(q|0)==-1)return-1;F=F+q|0,I=I-q|0}if(q=q+I|0,v=v+I|0,v>>>0>>0&&(m=m+1|0),j[F|I]=128,(I|0)>=56){for(fe=I+1|0;(fe|0)<64;fe=fe+1|0)j[F|fe]=0;Te(F),I=0,j[F|0]=0}for(fe=I+1|0;(fe|0)<59;fe=fe+1|0)j[F|fe]=0;return j[F|56]=m>>>21&255,j[F|57]=m>>>13&255,j[F|58]=m>>>5&255,j[F|59]=m<<3&255|v>>>29,j[F|60]=v>>>21&255,j[F|61]=v>>>13&255,j[F|62]=v>>>5&255,j[F|63]=v<<3&255,Te(F),~J&&pe(J),q|0}function be(){a=g,s=y,u=b,c=k,h=O,n=S,p=x,d=E,v=64,m=0}function Ie(){a=w,s=T,u=M,c=A,h=L,n=Y,p=N,d=W,v=64,m=0}function De(F,I,J,q,fe,Ce,X,H,re,Z,Oe,ve,U,xe,me,se){F=F|0,I=I|0,J=J|0,q=q|0,fe=fe|0,Ce=Ce|0,X=X|0,H=H|0,re=re|0,Z=Z|0,Oe=Oe|0,ve=ve|0,U=U|0,xe=xe|0,me=me|0,se=se|0,ye(),ue(F^1549556828,I^1549556828,J^1549556828,q^1549556828,fe^1549556828,Ce^1549556828,X^1549556828,H^1549556828,re^1549556828,Z^1549556828,Oe^1549556828,ve^1549556828,U^1549556828,xe^1549556828,me^1549556828,se^1549556828),w=a,T=s,M=u,A=c,L=h,Y=n,N=p,W=d,ye(),ue(F^909522486,I^909522486,J^909522486,q^909522486,fe^909522486,Ce^909522486,X^909522486,H^909522486,re^909522486,Z^909522486,Oe^909522486,ve^909522486,U^909522486,xe^909522486,me^909522486,se^909522486),g=a,y=s,b=u,k=c,O=h,S=n,x=p,E=d,v=64,m=0}function ae(F,I,J){F=F|0,I=I|0,J=J|0;var q=0,fe=0,Ce=0,X=0,H=0,re=0,Z=0,Oe=0,ve=0;return F&63||~J&&J&31?-1:(ve=ie(F,I,-1)|0,q=a,fe=s,Ce=u,X=c,H=h,re=n,Z=p,Oe=d,Ie(),ue(q,fe,Ce,X,H,re,Z,Oe,2147483648,0,0,0,0,0,0,768),~J&&pe(J),ve|0)}function ee(F,I,J,q,fe){F=F|0,I=I|0,J=J|0,q=q|0,fe=fe|0;var Ce=0,X=0,H=0,re=0,Z=0,Oe=0,ve=0,U=0,xe=0,me=0,se=0,B=0,V=0,G=0,te=0,oe=0;if(F&63||~fe&&fe&31)return-1;for(j[F+I|0]=J>>>24,j[F+I+1|0]=J>>>16&255,j[F+I+2|0]=J>>>8&255,j[F+I+3|0]=J&255,ae(F,I+4|0,-1)|0,Ce=xe=a,X=me=s,H=se=u,re=B=c,Z=V=h,Oe=G=n,ve=te=p,U=oe=d,q=q-1|0;(q|0)>0;)be(),ue(xe,me,se,B,V,G,te,oe,2147483648,0,0,0,0,0,0,768),xe=a,me=s,se=u,B=c,V=h,G=n,te=p,oe=d,Ie(),ue(xe,me,se,B,V,G,te,oe,2147483648,0,0,0,0,0,0,768),xe=a,me=s,se=u,B=c,V=h,G=n,te=p,oe=d,Ce=Ce^a,X=X^s,H=H^u,re=re^c,Z=Z^h,Oe=Oe^n,ve=ve^p,U=U^d,q=q-1|0;return a=Ce,s=X,u=H,c=re,h=Z,n=Oe,p=ve,d=U,~fe&&pe(fe),0}return{reset:ye,init:de,process:ke,finish:ie,hmac_reset:be,hmac_init:De,hmac_finish:ae,pbkdf2_generate_block:ee}}({Uint8Array},null,this.heap.buffer),this.reset()),{heap:this.heap,asm:this.asm}}release_asm(){this.heap!==void 0&&this.asm!==void 0&&(ZS.push(this.heap),QS.push(this.asm)),this.heap=void 0,this.asm=void 0}static bytes(t){return new Zv().process(t).finish().result}}Zv.NAME="sha256";var Qv=W6;function W6(e,t){if(!e)throw Error(t||"Assertion failed")}W6.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)};var lZ=Ki!==void 0?Ki:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function H0(e,t){return e(t={exports:{}},t.exports),t.exports}function qj(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var eU=H0(function(e){e.exports=typeof Object.create=="function"?function(t,r){t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}),tU=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(typeof e=="string")if(t){if(t==="hex")for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>8,u=255&a;s?r.push(s,u):r.push(u)}else for(i=0;i>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}var rU=function(e,t){for(var r="",i=0;i>>0}return s},aU=function(e,t){for(var r=Array(4*e.length),i=0,a=0;i>>24,r[a+1]=s>>>16&255,r[a+2]=s>>>8&255,r[a+3]=255&s):(r[a+3]=s>>>24,r[a+2]=s>>>16&255,r[a+1]=s>>>8&255,r[a]=255&s)}return r},Tn={inherits:eU,toArray:tU,toHex:nU,htonl:K6,toHex32:rU,zero2:H6,zero8:G6,join32:iU,split32:aU,rotr32:function(e,t){return e>>>t|e<<32-t},rotl32:function(e,t){return e<>>32-t},sum32:function(e,t){return e+t>>>0},sum32_3:function(e,t,r){return e+t+r>>>0},sum32_4:function(e,t,r,i){return e+t+r+i>>>0},sum32_5:function(e,t,r,i,a){return e+t+r+i+a>>>0},sum64:function(e,t,r,i){var a=e[t],s=i+e[t+1]>>>0,u=(s>>0,e[t+1]=s},sum64_hi:function(e,t,r,i){return(t+i>>>0>>0},sum64_lo:function(e,t,r,i){return t+i>>>0},sum64_4_hi:function(e,t,r,i,a,s,u,c){var h=0,n=t;return h+=(n=n+i>>>0)>>0)>>0)>>0},sum64_4_lo:function(e,t,r,i,a,s,u,c){return t+i+s+c>>>0},sum64_5_hi:function(e,t,r,i,a,s,u,c,h,n){var p=0,d=t;return p+=(d=d+i>>>0)>>0)>>0)>>0)>>0},sum64_5_lo:function(e,t,r,i,a,s,u,c,h,n){return t+i+s+c+n>>>0},rotr64_hi:function(e,t,r){return(t<<32-r|e>>>r)>>>0},rotr64_lo:function(e,t,r){return(e<<32-r|t>>>r)>>>0},shr64_hi:function(e,t,r){return e>>>r},shr64_lo:function(e,t,r){return(e<<32-r|t>>>r)>>>0}};function kp(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var sU=kp;kp.prototype.update=function(e,t){if(e=Tn.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),this.pending.length===0&&(this.pending=null),e=Tn.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,i[a++]=e>>>16&255,i[a++]=e>>>8&255,i[a++]=255&e}else for(i[a++]=255&e,i[a++]=e>>>8&255,i[a++]=e>>>16&255,i[a++]=e>>>24&255,i[a++]=0,i[a++]=0,i[a++]=0,i[a++]=0,s=8;s>>3},g1_256:function(e){return Na(e,17)^Na(e,19)^e>>>10}},da=Tn.sum32,lU=Tn.sum32_4,uU=Tn.sum32_5,cU=$u.ch32,dU=$u.maj32,fU=$u.s0_256,hU=$u.s1_256,pU=$u.g0_256,vU=$u.g1_256,Z6=G0.BlockHash,mU=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function Va(){if(!(this instanceof Va))return new Va;Z6.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=mU,this.W=Array(64)}Tn.inherits(Va,Z6);var Q6=Va;function Cs(){if(!(this instanceof Cs))return new Cs;Q6.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}Va.blockSize=512,Va.outSize=256,Va.hmacStrength=192,Va.padLength=64,Va.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i>>32-a,r)}function Xr(e,t,r,i,a,s,u){return em(t&r|~t&i,e,t,a,s,u)}function Jr(e,t,r,i,a,s,u){return em(t&i|r&~i,e,t,a,s,u)}function Zr(e,t,r,i,a,s,u){return em(t^r^i,e,t,a,s,u)}function Qr(e,t,r,i,a,s,u){return em(r^(t|~i),e,t,a,s,u)}function UU(e){const t=[];let r;for(r=0;r<64;r+=4)t[r>>2]=e.charCodeAt(r)+(e.charCodeAt(r+1)<<8)+(e.charCodeAt(r+2)<<16)+(e.charCodeAt(r+3)<<24);return t}const n5="0123456789abcdef".split("");function VU(e){let t="",r=0;for(;r<4;r++)t+=n5[e>>8*r+4&15]+n5[e>>8*r&15];return t}function to(e,t){return e+t&4294967295}const sv=Pe.getWebCrypto(),ov=Pe.getNodeCrypto(),WU=ov&&ov.getHashes();function Bo(e){if(ov&&WU.includes(e))return async function(t){const r=ov.createHash(e);return fr(t,i=>{r.update(i)},()=>new Uint8Array(r.digest()))}}function Wh(e,t){return async function(r,i=Nt){if(mr(r)&&(r=await gr(r)),!Pe.isStream(r)&&sv&&t&&r.length>=i.minBytesForWebCrypto)return new Uint8Array(await sv.digest(t,r));const a=e();return fr(r,s=>{a.update(s)},()=>new Uint8Array(a.digest()))}}function r5(e,t){return async function(r,i=Nt){if(mr(r)&&(r=await gr(r)),Pe.isStream(r)){const a=new e;return fr(r,s=>{a.process(s)},()=>a.finish().result)}return sv&&t&&r.length>=i.minBytesForWebCrypto?new Uint8Array(await sv.digest(t,r)):e.bytes(r)}}const Fo={md5:Bo("md5")||async function(e){const t=function(r){const i=r.length,a=[1732584193,-271733879,-1732584194,271733878];let s;for(s=64;s<=r.length;s+=64)B_(a,UU(r.substring(s-64,s)));r=r.substring(s-64);const u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(s=0;s>2]|=r.charCodeAt(s)<<(s%4<<3);if(u[s>>2]|=128<<(s%4<<3),s>55)for(B_(a,u),s=0;s<16;s++)u[s]=0;return u[14]=8*i,B_(a,u),a}(Pe.uint8ArrayToString(e));return Pe.hexToUint8Array(function(r){for(let i=0;inew Uint8Array(b.update(k)))}(e,t,r,i);if(s.substr(0,3)==="aes")return function(d,v,m,g,y){if(Pe.getWebCrypto()&&v.length!==24&&!Pe.isStream(m)&&m.length>=3e3*y.minBytesForWebCrypto)return async function(k,O,S,x){const E="AES-CBC",w=await i5.importKey("raw",O,{name:E},!1,["encrypt"]),{blockSize:T}=uo(k),M=Pe.concatUint8Array([new Uint8Array(T),S]),A=new Uint8Array(await i5.encrypt({name:E,iv:x},w,M)).subarray(0,S.length);return function(L,Y){for(let N=0;Nb.aes.AES_Encrypt_process(k),()=>b.aes.AES_Encrypt_finish())}(e,t,r,i,a);const u=new(uo(e))(t),c=u.blockSize,h=i.slice();let n=new Uint8Array;const p=d=>{d&&(n=Pe.concatUint8Array([n,d]));const v=new Uint8Array(n.length);let m,g=0;for(;d?n.length>=c:n.length;){const y=u.encrypt(h);for(m=0;mnew Uint8Array(y.update(b)))}(e,t,r,i);if(a.substr(0,3)==="aes")return function(p,d,v,m){if(Pe.isStream(v)){const g=new fu(d,m);return fr(v,y=>g.aes.AES_Decrypt_process(y),()=>g.aes.AES_Decrypt_finish())}return fu.decrypt(v,d,m)}(0,t,r,i);const s=new(uo(e))(t),u=s.blockSize;let c=i,h=new Uint8Array;const n=p=>{p&&(h=Pe.concatUint8Array([h,p]));const d=new Uint8Array(h.length);let v,m=0;for(;p?h.length>=u:h.length;){const g=s.encrypt(c);for(c=h,v=0;v48)throw new Ds("illegal counter size");let s=Math.pow(2,i)-1;a.set_mask(0,0,s/4294967296|0,0|s)}else i=48,a.set_mask(0,0,65535,4294967295);if(t===void 0)throw Error("nonce is required");{let s=t.length;if(!s||s>16)throw new Ds("illegal nonce size");let u=new DataView(new ArrayBuffer(16));new Uint8Array(u.buffer).set(t),a.set_nonce(u.getUint32(0),u.getUint32(4),u.getUint32(8),u.getUint32(12))}if(r!==void 0){if(r<0||r>=Math.pow(2,i))throw new Ds("illegal counter value");a.set_counter(0,0,r/4294967296|0,0|r)}}}class cv{static encrypt(t,r,i=!0,a){return new cv(r,a,i).encrypt(t)}static decrypt(t,r,i=!0,a){return new cv(r,a,i).decrypt(t)}constructor(t,r,i=!0,a){this.aes=a||new Td(t,r,i,"CBC")}encrypt(t){return _o(this.aes.AES_Encrypt_process(t),this.aes.AES_Encrypt_finish())}decrypt(t){return _o(this.aes.AES_Decrypt_process(t),this.aes.AES_Decrypt_finish())}}const a5=Pe.getWebCrypto(),HU=Pe.getNodeCrypto(),ys=16;function s5(e,t){const r=e.length-ys;for(let i=0;i>3),17+(m>>3)),8-(7&m)).subarray(1),k=new Uint8Array(pi),O=new Uint8Array(h.length+Ys);let S,x=0;for(S=0;S16)throw new Ds("illegal tagSize value");const h=r.length||0,n=new Uint8Array(16);h!==12?(this._gcm_mac_process(r),c[0]=0,c[1]=0,c[2]=0,c[3]=0,c[4]=0,c[5]=0,c[6]=0,c[7]=0,c[8]=0,c[9]=0,c[10]=0,c[11]=h>>>29,c[12]=h>>>21&255,c[13]=h>>>13&255,c[14]=h>>>5&255,c[15]=h<<3&255,u.mac(En.MAC.GCM,En.HEAP_DATA,16),u.get_iv(En.HEAP_DATA),u.set_iv(0,0,0,0),n.set(c.subarray(0,16))):(n.set(r),n[15]=1);const p=new DataView(n.buffer);if(this.gamma0=p.getUint32(12),u.set_nonce(p.getUint32(0),p.getUint32(4),p.getUint32(8),0),u.set_mask(0,0,0,4294967295),i!==void 0){if(i.length>z_)throw new Ds("illegal adata length");i.length?(this.adata=i,this._gcm_mac_process(i)):this.adata=void 0}else this.adata=void 0;if(this.counter<1||this.counter>4294967295)throw new RangeError("counter must be a positive 32-bit integer");u.set_counter(0,0,0,this.gamma0+this.counter|0)}static encrypt(t,r,i,a,s){return new Jo(r,i,a,s).encrypt(t)}static decrypt(t,r,i,a,s){return new Jo(r,i,a,s).decrypt(t)}encrypt(t){return this.AES_GCM_encrypt(t)}decrypt(t){return this.AES_GCM_decrypt(t)}AES_GCM_Encrypt_process(t){let r=0,i=t.length||0,{asm:a,heap:s}=this.aes.acquire_asm(),u=this.counter,c=this.aes.pos,h=this.aes.len,n=0,p=h+i&-16,d=0;if((u-1<<4)+h+i>z_)throw new RangeError("counter overflow");const v=new Uint8Array(p);for(;i>0;)d=Yo(s,c+h,t,r,i),h+=d,r+=d,i-=d,d=a.cipher(En.ENC.CTR,En.HEAP_DATA+c,h),d=a.mac(En.MAC.GCM,En.HEAP_DATA+c,d),d&&v.set(s.subarray(c,c+d),n),u+=d>>>4,n+=d,d>>29,r[4]=p>>>21,r[5]=p>>>13&255,r[6]=p>>>5&255,r[7]=p<<3&255,r[8]=r[9]=r[10]=0,r[11]=d>>>29,r[12]=d>>>21&255,r[13]=d>>>13&255,r[14]=d>>>5&255,r[15]=d<<3&255,t.mac(En.MAC.GCM,En.HEAP_DATA,16),t.get_iv(En.HEAP_DATA),t.set_counter(0,0,0,this.gamma0),t.cipher(En.ENC.CTR,En.HEAP_DATA,16),h.set(r.subarray(0,a),c),this.counter=1,this.aes.pos=0,this.aes.len=0,h}AES_GCM_Decrypt_process(t){let r=0,i=t.length||0,{asm:a,heap:s}=this.aes.acquire_asm(),u=this.counter,c=this.tagSize,h=this.aes.pos,n=this.aes.len,p=0,d=n+i>c?n+i-c&-16:0,v=n+i-d,m=0;if((u-1<<4)+n+i>z_)throw new RangeError("counter overflow");const g=new Uint8Array(d);for(;i>v;)m=Yo(s,h+n,t,r,i-v),n+=m,r+=m,i-=m,m=a.mac(En.MAC.GCM,En.HEAP_DATA+h,m),m=a.cipher(En.DEC.CTR,En.HEAP_DATA+h,m),m&&g.set(s.subarray(h,h+m),p),u+=m>>>4,p+=m,h=0,n=0;return i>0&&(n+=Yo(s,0,t,r,i)),this.counter=u,this.aes.pos=h,this.aes.len=n,g}AES_GCM_Decrypt_finish(){let{asm:t,heap:r}=this.aes.acquire_asm(),i=this.tagSize,a=this.adata,s=this.counter,u=this.aes.pos,c=this.aes.len,h=c-i;if(c>>29,r[4]=v>>>21,r[5]=v>>>13&255,r[6]=v>>>5&255,r[7]=v<<3&255,r[8]=r[9]=r[10]=0,r[11]=m>>>29,r[12]=m>>>21&255,r[13]=m>>>13&255,r[14]=m>>>5&255,r[15]=m<<3&255,t.mac(En.MAC.GCM,En.HEAP_DATA,16),t.get_iv(En.HEAP_DATA),t.set_counter(0,0,0,this.gamma0),t.cipher(En.ENC.CTR,En.HEAP_DATA,16);let g=0;for(let y=0;y0;){for(u=Yo(i,0,t,a,s),a+=u,s-=u;15&u;)i[u++]=0;r.mac(En.MAC.GCM,En.HEAP_DATA,u)}}}const j_=Pe.getWebCrypto(),c5=Pe.getNodeCrypto(),d5=Pe.getNodeBuffer(),tu=16,U_="AES-GCM";async function su(e,t){if(e!==he.symmetric.aes128&&e!==he.symmetric.aes192&&e!==he.symmetric.aes256)throw Error("GCM mode supports only AES cipher");if(Pe.getWebCrypto()&&t.length!==24){const r=await j_.importKey("raw",t,{name:U_},!1,["encrypt","decrypt"]);return{encrypt:async function(i,a,s=new Uint8Array){if(!i.length)return Jo.encrypt(i,t,a,s);const u=await j_.encrypt({name:U_,iv:a,additionalData:s,tagLength:8*tu},r,i);return new Uint8Array(u)},decrypt:async function(i,a,s=new Uint8Array){if(i.length===tu)return Jo.decrypt(i,t,a,s);const u=await j_.decrypt({name:U_,iv:a,additionalData:s,tagLength:8*tu},r,i);return new Uint8Array(u)}}}return Pe.getNodeCrypto()?{encrypt:async function(r,i,a=new Uint8Array){const s=new c5.createCipheriv("aes-"+8*t.length+"-gcm",t,i);s.setAAD(a);const u=d5.concat([s.update(r),s.final(),s.getAuthTag()]);return new Uint8Array(u)},decrypt:async function(r,i,a=new Uint8Array){const s=new c5.createDecipheriv("aes-"+8*t.length+"-gcm",t,i);s.setAAD(a),s.setAuthTag(r.slice(r.length-tu,r.length));const u=d5.concat([s.update(r.slice(0,r.length-tu)),s.final()]);return new Uint8Array(u)}}:{encrypt:async function(r,i,a){return Jo.encrypt(r,t,i,a)},decrypt:async function(r,i,a){return Jo.decrypt(r,t,i,a)}}}su.getNonce=function(e,t){const r=e.slice();for(let i=0;i>>8)-1}(ae,ee,F,I,32)}function g(ae,ee){var F;for(F=0;F<16;F++)ae[F]=0|ee[F]}function y(ae){var ee,F,I=1;for(ee=0;ee<16;ee++)F=ae[ee]+I+65535,I=Math.floor(F/65536),ae[ee]=F-65536*I;ae[0]+=I-1+37*(I-1)}function b(ae,ee,F){for(var I,J=~(F-1),q=0;q<16;q++)I=J&(ae[q]^ee[q]),ae[q]^=I,ee[q]^=I}function k(ae,ee){var F,I,J,q=r(),fe=r();for(F=0;F<16;F++)fe[F]=ee[F];for(y(fe),y(fe),y(fe),I=0;I<2;I++){for(q[0]=fe[0]-65517,F=1;F<15;F++)q[F]=fe[F]-65535-(q[F-1]>>16&1),q[F-1]&=65535;q[15]=fe[15]-32767-(q[14]>>16&1),J=q[15]>>16&1,q[14]&=65535,b(fe,q,1-J)}for(F=0;F<16;F++)ae[2*F]=255&fe[F],ae[2*F+1]=fe[F]>>8}function O(ae,ee){var F=new Uint8Array(32),I=new Uint8Array(32);return k(F,ae),k(I,ee),m(F,0,I,0)}function S(ae){var ee=new Uint8Array(32);return k(ee,ae),1&ee[0]}function x(ae,ee){var F;for(F=0;F<16;F++)ae[F]=ee[2*F]+(ee[2*F+1]<<8);ae[15]&=32767}function E(ae,ee,F){for(var I=0;I<16;I++)ae[I]=ee[I]+F[I]}function w(ae,ee,F){for(var I=0;I<16;I++)ae[I]=ee[I]-F[I]}function T(ae,ee,F){var I,J,q=0,fe=0,Ce=0,X=0,H=0,re=0,Z=0,Oe=0,ve=0,U=0,xe=0,me=0,se=0,B=0,V=0,G=0,te=0,oe=0,_e=0,ce=0,le=0,Ve=0,Je=0,gt=0,Pt=0,At=0,It=0,ht=0,Rt=0,Tt=0,dn=0,nn=F[0],Xt=F[1],Gt=F[2],Zt=F[3],Yt=F[4],un=F[5],qt=F[6],rt=F[7],at=F[8],xt=F[9],Ut=F[10],Ee=F[11],Be=F[12],Fe=F[13],Le=F[14],tt=F[15];q+=(I=ee[0])*nn,fe+=I*Xt,Ce+=I*Gt,X+=I*Zt,H+=I*Yt,re+=I*un,Z+=I*qt,Oe+=I*rt,ve+=I*at,U+=I*xt,xe+=I*Ut,me+=I*Ee,se+=I*Be,B+=I*Fe,V+=I*Le,G+=I*tt,fe+=(I=ee[1])*nn,Ce+=I*Xt,X+=I*Gt,H+=I*Zt,re+=I*Yt,Z+=I*un,Oe+=I*qt,ve+=I*rt,U+=I*at,xe+=I*xt,me+=I*Ut,se+=I*Ee,B+=I*Be,V+=I*Fe,G+=I*Le,te+=I*tt,Ce+=(I=ee[2])*nn,X+=I*Xt,H+=I*Gt,re+=I*Zt,Z+=I*Yt,Oe+=I*un,ve+=I*qt,U+=I*rt,xe+=I*at,me+=I*xt,se+=I*Ut,B+=I*Ee,V+=I*Be,G+=I*Fe,te+=I*Le,oe+=I*tt,X+=(I=ee[3])*nn,H+=I*Xt,re+=I*Gt,Z+=I*Zt,Oe+=I*Yt,ve+=I*un,U+=I*qt,xe+=I*rt,me+=I*at,se+=I*xt,B+=I*Ut,V+=I*Ee,G+=I*Be,te+=I*Fe,oe+=I*Le,_e+=I*tt,H+=(I=ee[4])*nn,re+=I*Xt,Z+=I*Gt,Oe+=I*Zt,ve+=I*Yt,U+=I*un,xe+=I*qt,me+=I*rt,se+=I*at,B+=I*xt,V+=I*Ut,G+=I*Ee,te+=I*Be,oe+=I*Fe,_e+=I*Le,ce+=I*tt,re+=(I=ee[5])*nn,Z+=I*Xt,Oe+=I*Gt,ve+=I*Zt,U+=I*Yt,xe+=I*un,me+=I*qt,se+=I*rt,B+=I*at,V+=I*xt,G+=I*Ut,te+=I*Ee,oe+=I*Be,_e+=I*Fe,ce+=I*Le,le+=I*tt,Z+=(I=ee[6])*nn,Oe+=I*Xt,ve+=I*Gt,U+=I*Zt,xe+=I*Yt,me+=I*un,se+=I*qt,B+=I*rt,V+=I*at,G+=I*xt,te+=I*Ut,oe+=I*Ee,_e+=I*Be,ce+=I*Fe,le+=I*Le,Ve+=I*tt,Oe+=(I=ee[7])*nn,ve+=I*Xt,U+=I*Gt,xe+=I*Zt,me+=I*Yt,se+=I*un,B+=I*qt,V+=I*rt,G+=I*at,te+=I*xt,oe+=I*Ut,_e+=I*Ee,ce+=I*Be,le+=I*Fe,Ve+=I*Le,Je+=I*tt,ve+=(I=ee[8])*nn,U+=I*Xt,xe+=I*Gt,me+=I*Zt,se+=I*Yt,B+=I*un,V+=I*qt,G+=I*rt,te+=I*at,oe+=I*xt,_e+=I*Ut,ce+=I*Ee,le+=I*Be,Ve+=I*Fe,Je+=I*Le,gt+=I*tt,U+=(I=ee[9])*nn,xe+=I*Xt,me+=I*Gt,se+=I*Zt,B+=I*Yt,V+=I*un,G+=I*qt,te+=I*rt,oe+=I*at,_e+=I*xt,ce+=I*Ut,le+=I*Ee,Ve+=I*Be,Je+=I*Fe,gt+=I*Le,Pt+=I*tt,xe+=(I=ee[10])*nn,me+=I*Xt,se+=I*Gt,B+=I*Zt,V+=I*Yt,G+=I*un,te+=I*qt,oe+=I*rt,_e+=I*at,ce+=I*xt,le+=I*Ut,Ve+=I*Ee,Je+=I*Be,gt+=I*Fe,Pt+=I*Le,At+=I*tt,me+=(I=ee[11])*nn,se+=I*Xt,B+=I*Gt,V+=I*Zt,G+=I*Yt,te+=I*un,oe+=I*qt,_e+=I*rt,ce+=I*at,le+=I*xt,Ve+=I*Ut,Je+=I*Ee,gt+=I*Be,Pt+=I*Fe,At+=I*Le,It+=I*tt,se+=(I=ee[12])*nn,B+=I*Xt,V+=I*Gt,G+=I*Zt,te+=I*Yt,oe+=I*un,_e+=I*qt,ce+=I*rt,le+=I*at,Ve+=I*xt,Je+=I*Ut,gt+=I*Ee,Pt+=I*Be,At+=I*Fe,It+=I*Le,ht+=I*tt,B+=(I=ee[13])*nn,V+=I*Xt,G+=I*Gt,te+=I*Zt,oe+=I*Yt,_e+=I*un,ce+=I*qt,le+=I*rt,Ve+=I*at,Je+=I*xt,gt+=I*Ut,Pt+=I*Ee,At+=I*Be,It+=I*Fe,ht+=I*Le,Rt+=I*tt,V+=(I=ee[14])*nn,G+=I*Xt,te+=I*Gt,oe+=I*Zt,_e+=I*Yt,ce+=I*un,le+=I*qt,Ve+=I*rt,Je+=I*at,gt+=I*xt,Pt+=I*Ut,At+=I*Ee,It+=I*Be,ht+=I*Fe,Rt+=I*Le,Tt+=I*tt,G+=(I=ee[15])*nn,fe+=38*(oe+=I*Gt),Ce+=38*(_e+=I*Zt),X+=38*(ce+=I*Yt),H+=38*(le+=I*un),re+=38*(Ve+=I*qt),Z+=38*(Je+=I*rt),Oe+=38*(gt+=I*at),ve+=38*(Pt+=I*xt),U+=38*(At+=I*Ut),xe+=38*(It+=I*Ee),me+=38*(ht+=I*Be),se+=38*(Rt+=I*Fe),B+=38*(Tt+=I*Le),V+=38*(dn+=I*tt),q=(I=(q+=38*(te+=I*Xt))+(J=1)+65535)-65536*(J=Math.floor(I/65536)),fe=(I=fe+J+65535)-65536*(J=Math.floor(I/65536)),Ce=(I=Ce+J+65535)-65536*(J=Math.floor(I/65536)),X=(I=X+J+65535)-65536*(J=Math.floor(I/65536)),H=(I=H+J+65535)-65536*(J=Math.floor(I/65536)),re=(I=re+J+65535)-65536*(J=Math.floor(I/65536)),Z=(I=Z+J+65535)-65536*(J=Math.floor(I/65536)),Oe=(I=Oe+J+65535)-65536*(J=Math.floor(I/65536)),ve=(I=ve+J+65535)-65536*(J=Math.floor(I/65536)),U=(I=U+J+65535)-65536*(J=Math.floor(I/65536)),xe=(I=xe+J+65535)-65536*(J=Math.floor(I/65536)),me=(I=me+J+65535)-65536*(J=Math.floor(I/65536)),se=(I=se+J+65535)-65536*(J=Math.floor(I/65536)),B=(I=B+J+65535)-65536*(J=Math.floor(I/65536)),V=(I=V+J+65535)-65536*(J=Math.floor(I/65536)),G=(I=G+J+65535)-65536*(J=Math.floor(I/65536)),q=(I=(q+=J-1+37*(J-1))+(J=1)+65535)-65536*(J=Math.floor(I/65536)),fe=(I=fe+J+65535)-65536*(J=Math.floor(I/65536)),Ce=(I=Ce+J+65535)-65536*(J=Math.floor(I/65536)),X=(I=X+J+65535)-65536*(J=Math.floor(I/65536)),H=(I=H+J+65535)-65536*(J=Math.floor(I/65536)),re=(I=re+J+65535)-65536*(J=Math.floor(I/65536)),Z=(I=Z+J+65535)-65536*(J=Math.floor(I/65536)),Oe=(I=Oe+J+65535)-65536*(J=Math.floor(I/65536)),ve=(I=ve+J+65535)-65536*(J=Math.floor(I/65536)),U=(I=U+J+65535)-65536*(J=Math.floor(I/65536)),xe=(I=xe+J+65535)-65536*(J=Math.floor(I/65536)),me=(I=me+J+65535)-65536*(J=Math.floor(I/65536)),se=(I=se+J+65535)-65536*(J=Math.floor(I/65536)),B=(I=B+J+65535)-65536*(J=Math.floor(I/65536)),V=(I=V+J+65535)-65536*(J=Math.floor(I/65536)),G=(I=G+J+65535)-65536*(J=Math.floor(I/65536)),q+=J-1+37*(J-1),ae[0]=q,ae[1]=fe,ae[2]=Ce,ae[3]=X,ae[4]=H,ae[5]=re,ae[6]=Z,ae[7]=Oe,ae[8]=ve,ae[9]=U,ae[10]=xe,ae[11]=me,ae[12]=se,ae[13]=B,ae[14]=V,ae[15]=G}function M(ae,ee){T(ae,ee,ee)}function A(ae,ee){var F,I=r();for(F=0;F<16;F++)I[F]=ee[F];for(F=253;F>=0;F--)M(I,I),F!==2&&F!==4&&T(I,I,ee);for(F=0;F<16;F++)ae[F]=I[F]}function L(ae,ee,F){var I,J,q=new Uint8Array(32),fe=new Float64Array(80),Ce=r(),X=r(),H=r(),re=r(),Z=r(),Oe=r();for(J=0;J<31;J++)q[J]=ee[J];for(q[31]=127&ee[31]|64,q[0]&=248,x(fe,F),J=0;J<16;J++)X[J]=fe[J],re[J]=Ce[J]=H[J]=0;for(Ce[0]=re[0]=1,J=254;J>=0;--J)b(Ce,X,I=q[J>>>3]>>>(7&J)&1),b(H,re,I),E(Z,Ce,H),w(Ce,Ce,H),E(H,X,re),w(X,X,re),M(re,Z),M(Oe,Ce),T(Ce,H,Ce),T(H,X,Z),E(Z,Ce,H),w(Ce,Ce,H),M(X,Ce),w(H,re,Oe),T(Ce,H,c),E(Ce,Ce,re),T(H,H,Ce),T(Ce,re,Oe),T(re,X,fe),M(X,Z),b(Ce,X,I),b(H,re,I);for(J=0;J<16;J++)fe[J+16]=Ce[J],fe[J+32]=H[J],fe[J+48]=X[J],fe[J+64]=re[J];var ve=fe.subarray(32),U=fe.subarray(16);return A(ve,ve),T(U,U,ve),k(ae,U),0}function Y(ae,ee){return L(ae,ee,a)}function N(ae,ee){var F=r(),I=r(),J=r(),q=r(),fe=r(),Ce=r(),X=r(),H=r(),re=r();w(F,ae[1],ae[0]),w(re,ee[1],ee[0]),T(F,F,re),E(I,ae[0],ae[1]),E(re,ee[0],ee[1]),T(I,I,re),T(J,ae[3],ee[3]),T(J,J,n),T(q,ae[2],ee[2]),E(q,q,q),w(fe,I,F),w(Ce,q,J),E(X,q,J),E(H,I,F),T(ae[0],fe,Ce),T(ae[1],H,X),T(ae[2],X,Ce),T(ae[3],fe,H)}function W(ae,ee,F){var I;for(I=0;I<4;I++)b(ae[I],ee[I],F)}function j(ae,ee){var F=r(),I=r(),J=r();A(J,ee[2]),T(F,ee[0],J),T(I,ee[1],J),k(ae,I),ae[31]^=S(F)<<7}function ue(ae,ee,F){var I,J;for(g(ae[0],s),g(ae[1],u),g(ae[2],u),g(ae[3],s),J=255;J>=0;--J)W(ae,ee,I=F[J/8|0]>>(7&J)&1),N(ee,ae),N(ae,ae),W(ae,ee,I)}function Te(ae,ee){var F=[r(),r(),r(),r()];g(F[0],p),g(F[1],d),g(F[2],u),T(F[3],p,d),ue(ae,F,ee)}function pe(ae,ee,F){var I,J,q=[r(),r(),r(),r()];for(F||i(ee,32),(I=t.hash(ee.subarray(0,32)))[0]&=248,I[31]&=127,I[31]|=64,Te(q,I),j(ae,q),J=0;J<32;J++)ee[J+32]=ae[J];return 0}var ye=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function de(ae,ee){var F,I,J,q;for(I=63;I>=32;--I){for(F=0,J=I-32,q=I-12;J>4)*ye[J],F=ee[J]>>8,ee[J]&=255;for(J=0;J<32;J++)ee[J]-=F*ye[J];for(I=0;I<32;I++)ee[I+1]+=ee[I]>>8,ae[I]=255&ee[I]}function ke(ae){var ee,F=new Float64Array(64);for(ee=0;ee<64;ee++)F[ee]=ae[ee];for(ee=0;ee<64;ee++)ae[ee]=0;de(ae,F)}function ie(ae,ee){var F=r(),I=r(),J=r(),q=r(),fe=r(),Ce=r(),X=r();return g(ae[2],u),x(ae[1],ee),M(J,ae[1]),T(q,J,h),w(J,J,ae[2]),E(q,ae[2],q),M(fe,q),M(Ce,fe),T(X,Ce,fe),T(F,X,J),T(F,F,q),function(H,re){var Z,Oe=r();for(Z=0;Z<16;Z++)Oe[Z]=re[Z];for(Z=250;Z>=0;Z--)M(Oe,Oe),Z!==1&&T(Oe,Oe,re);for(Z=0;Z<16;Z++)H[Z]=Oe[Z]}(F,F),T(F,F,J),T(F,F,q),T(F,F,q),T(ae[0],F,q),M(I,ae[0]),T(I,I,q),O(I,J)&&T(ae[0],ae[0],v),M(I,ae[0]),T(I,I,q),O(I,J)?-1:(S(ae[0])===ee[31]>>7&&w(ae[0],s,ae[0]),T(ae[3],ae[0],ae[1]),0)}var be=64;function Ie(){for(var ae=0;ae=0},t.sign.keyPair=function(){var ae=new Uint8Array(32),ee=new Uint8Array(64);return pe(ae,ee),{publicKey:ae,secretKey:ee}},t.sign.keyPair.fromSecretKey=function(ae){if(Ie(ae),ae.length!==64)throw Error("bad secret key size");for(var ee=new Uint8Array(32),F=0;Fe&&(h.imod(s.leftShift(a)).iadd(s),n=h.mod(u).toNumber());while(!await sD(h,t,r));return h}async function sD(e,t,r){return!(t&&!e.dec().gcd(t).isOne())&&!!await async function(i){const a=await Pe.getBigInteger();return tV.every(s=>i.mod(new a(s))!==0)}(e)&&!!await async function(i,a){const s=await Pe.getBigInteger();return a=a||new s(2),a.modExp(i.dec(),i).isOne()}(e)&&!!await async function(i,a,s){const u=await Pe.getBigInteger(),c=i.bitLength();a||(a=Math.max(1,c/48|0));const h=i.dec();let n=0;for(;!h.getBit(n);)n++;const p=i.rightShift(new u(n));for(;a>0;a--){let d,v=(s?s():await Is(new u(2),h)).modExp(p,i);if(!v.isOne()&&!v.equal(h)){for(d=1;dt-11)throw Error("Message too long");const i=function(s){const u=new Uint8Array(s);let c=0;for(;c=8&!i;if(t)return Pe.selectUint8Array(u,s,t);if(u)return s;throw Error("Decryption error")}async function cy(e,t,r){let i;if(t.length!==wu.getHashByteLength(e))throw Error("Invalid hash length");const a=new Uint8Array(ja[e].length);for(i=0;iimport("./bn.min.f47e2400.js"),[]),O=new k(g),S=new k(y),x=new k(m),E=x.mod(S.subn(1)),w=x.mod(O.subn(1)),T=ei.createSign(he.read(he.hash,n));T.write(p),T.end();const M={version:0,modulus:new k(d),publicExponent:new k(v),privateExponent:new k(m),prime1:new k(y),prime2:new k(g),exponent1:E,exponent2:w,coefficient:new k(b)};if(ei.createPrivateKey!==void 0){const L=Xl.encode(M,"der");return new Uint8Array(T.sign({key:L,format:"der",type:"pkcs1"}))}const A=Xl.encode(M,"pem",{label:"RSA PRIVATE KEY"});return new Uint8Array(T.sign(A))}(e,t,r,i,a,s,u,c)}return async function(n,p,d,v){const m=await Pe.getBigInteger();p=new m(p);const g=new m(await cy(n,v,p.byteLength()));if(d=new m(d),g.gte(p))throw Error("Message size cannot exceed modulus size");return g.modExp(d,p).toUint8Array("be",p.byteLength())}(e,r,a,h)},verify:async function(e,t,r,i,a,s){if(t&&!Pe.isStream(t)){if(Pe.getWebCrypto())try{return await async function(u,c,h,n,p){const d=function(m,g){return{kty:"RSA",n:zi(m,!0),e:zi(g,!0),ext:!0}}(n,p),v=await Yl.importKey("jwk",d,{name:"RSASSA-PKCS1-v1_5",hash:{name:u}},!1,["verify"]);return Yl.verify("RSASSA-PKCS1-v1_5",v,h,c)}(he.read(he.webHash,e),t,r,i,a)}catch(u){Pe.printDebugError(u)}else if(Pe.getNodeCrypto())return async function(u,c,h,n,p){const{default:d}=await Cn(()=>import("./bn.min.f47e2400.js"),[]),v=ei.createVerify(he.read(he.hash,u));v.write(c),v.end();const m={modulus:new d(n),publicExponent:new d(p)};let g;ei.createPrivateKey!==void 0?g={key:Yh.encode(m,"der"),format:"der",type:"pkcs1"}:g=Yh.encode(m,"pem",{label:"RSA PUBLIC KEY"});try{return await v.verify(g,h)}catch{return!1}}(e,t,r,i,a)}return async function(u,c,h,n,p){const d=await Pe.getBigInteger();if(h=new d(h),c=new d(c),n=new d(n),c.gte(h))throw Error("Signature size cannot exceed modulus size");const v=c.modExp(n,h).toUint8Array("be",h.byteLength()),m=await cy(u,p,h.byteLength());return Pe.equalsUint8Array(v,m)}(e,r,i,a,s)},encrypt:async function(e,t,r){return Pe.getNodeCrypto()?async function(i,a,s){const{default:u}=await Cn(()=>import("./bn.min.f47e2400.js"),[]),c={modulus:new u(a),publicExponent:new u(s)};let h;return ei.createPrivateKey!==void 0?h={key:Yh.encode(c,"der"),format:"der",type:"pkcs1",padding:ei.constants.RSA_PKCS1_PADDING}:h={key:Yh.encode(c,"pem",{label:"RSA PUBLIC KEY"}),padding:ei.constants.RSA_PKCS1_PADDING},new Uint8Array(ei.publicEncrypt(h,i))}(e,t,r):async function(i,a,s){const u=await Pe.getBigInteger();if(a=new u(a),i=new u(Y0(i,a.byteLength())),s=new u(s),i.gte(a))throw Error("Message size cannot exceed modulus size");return i.modExp(s,a).toUint8Array("be",a.byteLength())}(e,t,r)},decrypt:async function(e,t,r,i,a,s,u,c){return Pe.getNodeCrypto()?async function(h,n,p,d,v,m,g,y){const{default:b}=await Cn(()=>import("./bn.min.f47e2400.js"),[]),k=new b(v),O=new b(m),S=new b(d),x=S.mod(O.subn(1)),E=S.mod(k.subn(1)),w={version:0,modulus:new b(n),publicExponent:new b(p),privateExponent:new b(d),prime1:new b(m),prime2:new b(v),exponent1:x,exponent2:E,coefficient:new b(g)};let T;ei.createPrivateKey!==void 0?T={key:Xl.encode(w,"der"),format:"der",type:"pkcs1",padding:ei.constants.RSA_PKCS1_PADDING}:T={key:Xl.encode(w,"pem",{label:"RSA PRIVATE KEY"}),padding:ei.constants.RSA_PKCS1_PADDING};try{return new Uint8Array(ei.privateDecrypt(T,h))}catch{if(y)return y;throw Error("Decryption error")}}(e,t,r,i,a,s,u,c):async function(h,n,p,d,v,m,g,y){const b=await Pe.getBigInteger();if(h=new b(h),n=new b(n),p=new b(p),d=new b(d),v=new b(v),m=new b(m),g=new b(g),h.gte(n))throw Error("Data too large.");const k=d.mod(m.dec()),O=d.mod(v.dec()),S=(await Is(new b(2),n)).mod(n),x=S.modInv(n).modExp(p,n);h=h.mul(x).mod(n);const E=h.modExp(O,v),w=h.modExp(k,m);let M=g.mul(w.sub(E)).mod(m).mul(v).add(E);return M=M.mul(S).mod(n),X0(M.toUint8Array("be",n.byteLength()),y)}(e,t,r,i,a,s,u,c)},generate:async function(e,t){if(t=new(await Pe.getBigInteger())(t),Pe.getWebCrypto()){const u={name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:t.toUint8Array(),hash:{name:"SHA-1"}},c=await Yl.generateKey(u,!0,["sign","verify"]),h=await Yl.exportKey("jwk",c.privateKey);return{n:ws(h.n),e:t.toUint8Array(),d:ws(h.d),p:ws(h.q),q:ws(h.p),u:ws(h.qi)}}if(Pe.getNodeCrypto()&&ei.generateKeyPair&&Xl){const u={modulusLength:e,publicExponent:t.toNumber(),publicKeyEncoding:{type:"pkcs1",format:"der"},privateKeyEncoding:{type:"pkcs1",format:"der"}},c=await new Promise((h,n)=>{ei.generateKeyPair("rsa",u,(p,d,v)=>{p?n(p):h(Xl.decode(v,"der"))})});return{n:c.modulus.toArrayLike(Uint8Array),e:c.publicExponent.toArrayLike(Uint8Array),d:c.privateExponent.toArrayLike(Uint8Array),p:c.prime2.toArrayLike(Uint8Array),q:c.prime1.toArrayLike(Uint8Array),u:c.coefficient.toArrayLike(Uint8Array)}}let r,i,a;do i=await h5(e-(e>>1),t,40),r=await h5(e>>1,t,40),a=r.mul(i);while(a.bitLength()!==e);const s=r.dec().imul(i.dec());return i.lt(r)&&([r,i]=[i,r]),{n:a.toUint8Array(),e:t.toUint8Array(),d:t.modInv(s).toUint8Array(),p:r.toUint8Array(),q:i.toUint8Array(),u:r.modInv(i).toUint8Array()}},validateParams:async function(e,t,r,i,a,s){const u=await Pe.getBigInteger();if(e=new u(e),i=new u(i),a=new u(a),!i.mul(a).equal(e))return!1;const c=new u(2);if(s=new u(s),!i.mul(s).mod(a).isOne())return!1;t=new u(t),r=new u(r);const h=new u(Math.floor(e.bitLength()/3)),n=await Is(c,c.leftShift(h)),p=n.mul(r).mul(t);return!(!p.mod(i.dec()).equal(n)||!p.mod(a.dec()).equal(n))}}),iV=Object.freeze({__proto__:null,encrypt:async function(e,t,r,i){const a=await Pe.getBigInteger();t=new a(t),r=new a(r),i=new a(i);const s=new a(Y0(e,t.byteLength())),u=await Is(new a(1),t.dec());return{c1:r.modExp(u,t).toUint8Array(),c2:i.modExp(u,t).imul(s).imod(t).toUint8Array()}},decrypt:async function(e,t,r,i,a){const s=await Pe.getBigInteger();return e=new s(e),t=new s(t),r=new s(r),i=new s(i),X0(e.modExp(i,r).modInv(r).imul(t).imod(r).toUint8Array("be",r.byteLength()),a)},validateParams:async function(e,t,r,i){const a=await Pe.getBigInteger();e=new a(e),t=new a(t),r=new a(r);const s=new a(1);if(t.lte(s)||t.gte(e))return!1;const u=new a(e.bitLength()),c=new a(1023);if(u.lt(c)||!t.modExp(e.dec(),e).isOne())return!1;let h=t;const n=new a(1),p=new a(2).leftShift(new a(17));for(;n.lt(p);){if(h=h.mul(t).imod(e),h.isOne())return!1;n.iinc()}i=new a(i);const d=new a(2),v=await Is(d.leftShift(u.dec()),d.leftShift(u)),m=e.dec().imul(v).iadd(i);return!!r.equal(t.modExp(m,e))}});class Ka{constructor(t){if(t instanceof Ka)this.oid=t.oid;else if(Pe.isArray(t)||Pe.isUint8Array(t)){if((t=new Uint8Array(t))[0]===6){if(t[1]!==t.length-2)throw Error("Length mismatch in DER encoded oid");t=t.subarray(2)}this.oid=t}else this.oid=""}read(t){if(t.length>=1){const r=t[0];if(t.length>=1+r)return this.oid=t.subarray(1,1+r),1+this.oid.length}throw Error("Invalid oid")}write(){return Pe.concatUint8Array([new Uint8Array([this.oid.length]),this.oid])}toHex(){return Pe.uint8ArrayToHex(this.oid)}getName(){const t=this.toHex();if(he.curve[t])return he.write(he.curve,t);throw Error("Unknown curve object identifier.")}}function tm(e,t){return e.keyPair({priv:t})}function nm(e,t){const r=e.keyPair({pub:t});if(r.validate().result!==!0)throw Error("Invalid elliptic public key");return r}async function Ru(e){if(!Nt.useIndutnyElliptic)throw Error("This curve is only supported in the full build of OpenPGP.js");const{default:t}=await Cn(()=>import("./elliptic.min.2279bef2.js"),["js/build/elliptic.min.2279bef2.js","js/build/bn.min.f47e2400.js"]);return new t.ec(e)}function lD(e){let t,r=0;const i=e[0];return i<192?([r]=e,t=1):i<255?(r=(e[0]-192<<8)+e[1]+192,t=2):i===255&&(r=Pe.readNumber(e.subarray(1,5)),t=5),{len:r,offset:t}}function Md(e){return e<192?new Uint8Array([e]):e>191&&e<8384?new Uint8Array([192+(e-192>>8),e-192&255]):Pe.concatUint8Array([new Uint8Array([255]),Pe.writeNumber(e,4)])}function aV(e){if(e<0||e>30)throw Error("Partial Length power must be between 1 and 30");return new Uint8Array([224+e])}function uD(e){return new Uint8Array([192|e])}function p5(e,t){return Pe.concatUint8Array([uD(e),Md(t)])}function Ep(e){return[he.packet.literalData,he.packet.compressedData,he.packet.symmetricallyEncryptedData,he.packet.symEncryptedIntegrityProtectedData,he.packet.aeadEncryptedData].includes(e)}async function sV(e,t){const r=ls(e);let i,a;try{const s=await r.peekBytes(2);if(!s||s.length<2||(128&s[0])==0)throw Error("Error during parsing. This message / key probably does not conform to a valid OpenPGP format.");const u=await r.readByte();let c,h,n=-1,p=-1;p=0,(64&u)!=0&&(p=1),p?n=63&u:(n=(63&u)>>2,h=3&u);const d=Ep(n);let v,m=null;if(d){if(Pe.isStream(e)==="array"){const y=new Qa;i=Ri(y),m=y}else{const y=new bu;i=Ri(y.writable),m=y.readable}a=t({tag:n,packet:m})}else m=[];do{if(p){const y=await r.readByte();if(v=!1,y<192)c=y;else if(y>=192&&y<224)c=(y-192<<8)+await r.readByte()+192;else if(y>223&&y<255){if(c=1<<(31&y),v=!0,!d)throw new TypeError("This packet type does not support partial lengths.")}else c=await r.readByte()<<24|await r.readByte()<<16|await r.readByte()<<8|await r.readByte()}else switch(h){case 0:c=await r.readByte();break;case 1:c=await r.readByte()<<8|await r.readByte();break;case 2:c=await r.readByte()<<24|await r.readByte()<<16|await r.readByte()<<8|await r.readByte();break;default:c=1/0}if(c>0){let y=0;for(;;){i&&await i.ready;const{done:b,value:k}=await r.read();if(b){if(c===1/0)break;throw Error("Unexpected end of packet")}const O=c===1/0?k:k.subarray(0,c-y);if(i?await i.write(O):m.push(O),y+=k.length,y>=c){r.unshift(k.subarray(c-y+k.length));break}}}}while(v);const g=await r.peekBytes(d?1/0:2);return i?(await i.ready,await i.close()):(m=Pe.concatUint8Array(m),await t({tag:n,packet:m})),!g||!g.length}catch(s){if(i)return await i.abort(s),!0;throw s}finally{i&&await a,r.releaseLock()}}class kr extends Error{constructor(...t){super(...t),Error.captureStackTrace&&Error.captureStackTrace(this,kr),this.name="UnsupportedError"}}class dy{constructor(t,r){this.tag=t,this.rawContent=r}write(){return this.rawContent}}const V_=Pe.getWebCrypto(),dv=Pe.getNodeCrypto(),is={p256:"P-256",p384:"P-384",p521:"P-521"},ms=dv?dv.getCurves():[],Xs=dv?{secp256k1:ms.includes("secp256k1")?"secp256k1":void 0,p256:ms.includes("prime256v1")?"prime256v1":void 0,p384:ms.includes("secp384r1")?"secp384r1":void 0,p521:ms.includes("secp521r1")?"secp521r1":void 0,ed25519:ms.includes("ED25519")?"ED25519":void 0,curve25519:ms.includes("X25519")?"X25519":void 0,brainpoolP256r1:ms.includes("brainpoolP256r1")?"brainpoolP256r1":void 0,brainpoolP384r1:ms.includes("brainpoolP384r1")?"brainpoolP384r1":void 0,brainpoolP512r1:ms.includes("brainpoolP512r1")?"brainpoolP512r1":void 0}:{},Dp={p256:{oid:[6,8,42,134,72,206,61,3,1,7],keyType:he.publicKey.ecdsa,hash:he.hash.sha256,cipher:he.symmetric.aes128,node:Xs.p256,web:is.p256,payloadSize:32,sharedSize:256},p384:{oid:[6,5,43,129,4,0,34],keyType:he.publicKey.ecdsa,hash:he.hash.sha384,cipher:he.symmetric.aes192,node:Xs.p384,web:is.p384,payloadSize:48,sharedSize:384},p521:{oid:[6,5,43,129,4,0,35],keyType:he.publicKey.ecdsa,hash:he.hash.sha512,cipher:he.symmetric.aes256,node:Xs.p521,web:is.p521,payloadSize:66,sharedSize:528},secp256k1:{oid:[6,5,43,129,4,0,10],keyType:he.publicKey.ecdsa,hash:he.hash.sha256,cipher:he.symmetric.aes128,node:Xs.secp256k1,payloadSize:32},ed25519:{oid:[6,9,43,6,1,4,1,218,71,15,1],keyType:he.publicKey.eddsa,hash:he.hash.sha512,node:!1,payloadSize:32},curve25519:{oid:[6,10,43,6,1,4,1,151,85,1,5,1],keyType:he.publicKey.ecdh,hash:he.hash.sha256,cipher:he.symmetric.aes128,node:!1,payloadSize:32},brainpoolP256r1:{oid:[6,9,43,36,3,3,2,8,1,1,7],keyType:he.publicKey.ecdsa,hash:he.hash.sha256,cipher:he.symmetric.aes128,node:Xs.brainpoolP256r1,payloadSize:32},brainpoolP384r1:{oid:[6,9,43,36,3,3,2,8,1,1,11],keyType:he.publicKey.ecdsa,hash:he.hash.sha384,cipher:he.symmetric.aes192,node:Xs.brainpoolP384r1,payloadSize:48},brainpoolP512r1:{oid:[6,9,43,36,3,3,2,8,1,1,13],keyType:he.publicKey.ecdsa,hash:he.hash.sha512,cipher:he.symmetric.aes256,node:Xs.brainpoolP512r1,payloadSize:64}};class $s{constructor(t,r){try{(Pe.isArray(t)||Pe.isUint8Array(t))&&(t=new Ka(t)),t instanceof Ka&&(t=t.getName()),this.name=he.write(he.curve,t)}catch{throw new kr("Unknown curve")}r=r||Dp[this.name],this.keyType=r.keyType,this.oid=r.oid,this.hash=r.hash,this.cipher=r.cipher,this.node=r.node&&Dp[this.name],this.web=r.web&&Dp[this.name],this.payloadSize=r.payloadSize,this.web&&Pe.getWebCrypto()?this.type="web":this.node&&Pe.getNodeCrypto()?this.type="node":this.name==="curve25519"?this.type="curve25519":this.name==="ed25519"&&(this.type="ed25519")}async genKeyPair(){let t;switch(this.type){case"web":try{return await async function(i){const a=await V_.generateKey({name:"ECDSA",namedCurve:is[i]},!0,["sign","verify"]),s=await V_.exportKey("jwk",a.privateKey),u=await V_.exportKey("jwk",a.publicKey);return{publicKey:dD(u),privateKey:ws(s.d)}}(this.name)}catch(i){Pe.printDebugError("Browser did not support generating ec key "+i.message);break}case"node":return async function(i){const a=dv.createECDH(Xs[i]);return await a.generateKeys(),{publicKey:new Uint8Array(a.getPublicKey()),privateKey:new Uint8Array(a.getPrivateKey())}}(this.name);case"curve25519":{const i=rs(32);i[0]=127&i[0]|64,i[31]&=248;const a=i.slice().reverse();return t=ns.box.keyPair.fromSecretKey(a),{publicKey:Pe.concatUint8Array([new Uint8Array([64]),t.publicKey]),privateKey:i}}case"ed25519":{const i=rs(32),a=ns.sign.keyPair.fromSeed(i);return{publicKey:Pe.concatUint8Array([new Uint8Array([64]),a.publicKey]),privateKey:i}}}return t=await(await Ru(this.name)).genKeyPair({entropy:Pe.uint8ArrayToString(rs(32))}),{publicKey:new Uint8Array(t.getPublic("array",!1)),privateKey:t.getPrivate().toArrayLike(Uint8Array)}}}async function cD(e,t,r,i){const a={p256:!0,p384:!0,p521:!0,secp256k1:!0,curve25519:e===he.publicKey.ecdh,brainpoolP256r1:!0,brainpoolP384r1:!0,brainpoolP512r1:!0},s=t.getName();if(!a[s])return!1;if(s==="curve25519"){i=i.slice().reverse();const{publicKey:c}=ns.box.keyPair.fromSecretKey(i);r=new Uint8Array(r);const h=new Uint8Array([64,...c]);return!!Pe.equalsUint8Array(h,r)}const u=await Ru(s);try{r=nm(u,r).getPublic()}catch{return!1}return!!tm(u,i).getPublic().eq(r)}function dD(e){const t=ws(e.x),r=ws(e.y),i=new Uint8Array(t.length+r.length+1);return i[0]=4,i.set(t,1),i.set(r,t.length+1),i}function rm(e,t,r){const i=e,a=r.slice(1,i+1),s=r.slice(i+1,2*i+1);return{kty:"EC",crv:t,x:zi(a,!0),y:zi(s,!0),ext:!0}}function fD(e,t,r,i){const a=rm(e,t,r);return a.d=zi(i,!0),a}const fv=Pe.getWebCrypto(),Lu=Pe.getNodeCrypto();async function v5(e,t,r,i,a,s){const u=new $s(e);if(r&&!Pe.isStream(r)){const c={publicKey:i,privateKey:a};switch(u.type){case"web":try{return await async function(h,n,p,d){const v=h.payloadSize,m=fD(h.payloadSize,is[h.name],d.publicKey,d.privateKey),g=await fv.importKey("jwk",m,{name:"ECDSA",namedCurve:is[h.name],hash:{name:he.read(he.webHash,h.hash)}},!1,["sign"]),y=new Uint8Array(await fv.sign({name:"ECDSA",namedCurve:is[h.name],hash:{name:he.read(he.webHash,n)}},g,p));return{r:y.slice(0,v),s:y.slice(v,v<<1)}}(u,t,r,c)}catch(h){if(u.name!=="p521"&&(h.name==="DataError"||h.name==="OperationError"))throw h;Pe.printDebugError("Browser did not support signing: "+h.message)}break;case"node":{const h=await async function(n,p,d,v){const m=Lu.createSign(he.read(he.hash,p));m.write(d),m.end();const g=oV.encode({version:1,parameters:n.oid,privateKey:Array.from(v.privateKey),publicKey:{unused:0,data:Array.from(v.publicKey)}},"pem",{label:"EC PRIVATE KEY"});return hD.decode(m.sign(g),"der")}(u,t,r,c);return{r:h.r.toArrayLike(Uint8Array),s:h.s.toArrayLike(Uint8Array)}}}}return async function(c,h,n){const p=await Ru(c.name),d=tm(p,n),v=d.sign(h);return{r:v.r.toArrayLike(Uint8Array),s:v.s.toArrayLike(Uint8Array)}}(u,s,a)}async function m5(e,t,r,i,a,s){const u=new $s(e);if(i&&!Pe.isStream(i))switch(u.type){case"web":try{return await async function(c,h,{r:n,s:p},d,v){const m=rm(c.payloadSize,is[c.name],v),g=await fv.importKey("jwk",m,{name:"ECDSA",namedCurve:is[c.name],hash:{name:he.read(he.webHash,c.hash)}},!1,["verify"]),y=Pe.concatUint8Array([n,p]).buffer;return fv.verify({name:"ECDSA",namedCurve:is[c.name],hash:{name:he.read(he.webHash,h)}},g,y,d)}(u,t,r,i,a)}catch(c){if(u.name!=="p521"&&(c.name==="DataError"||c.name==="OperationError"))throw c;Pe.printDebugError("Browser did not support verifying: "+c.message)}break;case"node":return async function(c,h,{r:n,s:p},d,v){const{default:m}=await Cn(()=>import("./bn.min.f47e2400.js"),[]),g=Lu.createVerify(he.read(he.hash,h));g.write(d),g.end();const y=uV.encode({algorithm:{algorithm:[1,2,840,10045,2,1],parameters:c.oid},subjectPublicKey:{unused:0,data:Array.from(v)}},"pem",{label:"PUBLIC KEY"}),b=hD.encode({r:new m(n),s:new m(p)},"der");try{return g.verify(y,b)}catch{return!1}}(u,t,r,i,a)}return async function(c,h,n,p){const d=await Ru(c.name);return nm(d,p).verify(n,h)}(u,r,t===void 0?i:s,a)}const im=void 0,hD=Lu?im.define("ECDSASignature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())}):void 0,oV=Lu?im.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").explicit(0).optional().any(),this.key("publicKey").explicit(1).optional().bitstr())}):void 0,lV=Lu?im.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional().any())}):void 0,uV=Lu?im.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(lV),this.key("subjectPublicKey").bitstr())}):void 0;var cV=Object.freeze({__proto__:null,sign:v5,verify:m5,validateParams:async function(e,t,r){const i=new $s(e);if(i.keyType!==he.publicKey.ecdsa)return!1;switch(i.type){case"web":case"node":{const a=rs(8),s=he.hash.sha256,u=await wu.digest(s,a);try{const c=await v5(e,s,a,t,r,u);return await m5(e,s,c,a,t,u)}catch{return!1}}default:return cD(he.publicKey.ecdsa,e,t,r)}}});ns.hash=e=>new Uint8Array(qv().update(e).digest());var dV=Object.freeze({__proto__:null,sign:async function(e,t,r,i,a,s){if(wu.getHashByteLength(t)=0;--p)for(let d=c-1;d>=0;--d)h[1]=c*p+(d+1),n[0]=s[0]^h[0],n[1]=s[1]^h[1],n[2]=u[2*d],n[3]=u[2*d+1],n=hv(r.decrypt(pv(n))),s=n.subarray(0,2),u[2*d]=n[2],u[2*d+1]=n[3];if(s[0]===i[0]&&s[1]===i[1])return pv(u);throw Error("Key Data Integrity failed")}function hv(e){const{length:t}=e,r=function(s){if(Pe.isString(s)){const{length:u}=s,c=new ArrayBuffer(u),h=new Uint8Array(c);for(let n=0;n0){const r=e[t-1];if(r>=1){const i=e.subarray(t-r),a=new Uint8Array(r).fill(r);if(Pe.equalsUint8Array(i,a))return e.subarray(0,t-r)}}throw Error("Invalid padding")}var hV=Object.freeze({__proto__:null,encode:mD,decode:_D});const no=Pe.getWebCrypto(),gD=Pe.getNodeCrypto();function _5(e,t,r,i){return Pe.concatUint8Array([t.write(),new Uint8Array([e]),r.write(),Pe.stringToUint8Array("Anonymous Sender "),i.subarray(0,20)])}async function g5(e,t,r,i,a=!1,s=!1){let u;if(a){for(u=0;u=0&&t[u]===0;u--);t=t.subarray(0,u+1)}return(await wu.digest(e,Pe.concatUint8Array([new Uint8Array([0,0,0,1]),t,i]))).subarray(0,r)}async function pV(e,t){switch(e.type){case"curve25519":{const r=rs(32),{secretKey:i,sharedKey:a}=await yD(e,t,null,r);let{publicKey:s}=ns.box.keyPair.fromSecretKey(i);return s=Pe.concatUint8Array([new Uint8Array([64]),s]),{publicKey:s,sharedKey:a}}case"web":if(e.web&&Pe.getWebCrypto())try{return await async function(r,i){const a=rm(r.payloadSize,r.web.web,i);let s=no.generateKey({name:"ECDH",namedCurve:r.web.web},!0,["deriveKey","deriveBits"]),u=no.importKey("jwk",a,{name:"ECDH",namedCurve:r.web.web},!1,[]);[s,u]=await Promise.all([s,u]);let c=no.deriveBits({name:"ECDH",namedCurve:r.web.web,public:u},s.privateKey,r.web.sharedSize),h=no.exportKey("jwk",s.publicKey);[c,h]=await Promise.all([c,h]);const n=new Uint8Array(c);return{publicKey:new Uint8Array(dD(h)),sharedKey:n}}(e,t)}catch(r){Pe.printDebugError(r)}break;case"node":return async function(r,i){const a=gD.createECDH(r.node.node);a.generateKeys();const s=new Uint8Array(a.computeSecret(i));return{publicKey:new Uint8Array(a.getPublicKey()),sharedKey:s}}(e,t)}return async function(r,i){const a=await Ru(r.name),s=await r.genKeyPair();i=nm(a,i);const u=tm(a,s.privateKey),c=s.publicKey,h=u.derive(i.getPublic()),n=a.curve.p.byteLength(),p=h.toArrayLike(Uint8Array,"be",n);return{publicKey:c,sharedKey:p}}(e,t)}async function yD(e,t,r,i){if(i.length!==e.payloadSize){const a=new Uint8Array(e.payloadSize);a.set(i,e.payloadSize-i.length),i=a}switch(e.type){case"curve25519":{const a=i.slice().reverse();return{secretKey:a,sharedKey:ns.scalarMult(a,t.subarray(1))}}case"web":if(e.web&&Pe.getWebCrypto())try{return await async function(a,s,u,c){const h=fD(a.payloadSize,a.web.web,u,c);let n=no.importKey("jwk",h,{name:"ECDH",namedCurve:a.web.web},!0,["deriveKey","deriveBits"]);const p=rm(a.payloadSize,a.web.web,s);let d=no.importKey("jwk",p,{name:"ECDH",namedCurve:a.web.web},!0,[]);[n,d]=await Promise.all([n,d]);let v=no.deriveBits({name:"ECDH",namedCurve:a.web.web,public:d},n,a.web.sharedSize),m=no.exportKey("jwk",n);[v,m]=await Promise.all([v,m]);const g=new Uint8Array(v);return{secretKey:ws(m.d),sharedKey:g}}(e,t,r,i)}catch(a){Pe.printDebugError(a)}break;case"node":return async function(a,s,u){const c=gD.createECDH(a.node.node);c.setPrivateKey(u);const h=new Uint8Array(c.computeSecret(s));return{secretKey:new Uint8Array(c.getPrivateKey()),sharedKey:h}}(e,t,i)}return async function(a,s,u){const c=await Ru(a.name);s=nm(c,s),u=tm(c,u);const h=new Uint8Array(u.getPrivate()),n=u.derive(s.getPublic()),p=c.curve.p.byteLength(),d=n.toArrayLike(Uint8Array,"be",p);return{secretKey:h,sharedKey:d}}(e,t,i)}var vV=Object.freeze({__proto__:null,validateParams:async function(e,t,r){return cD(he.publicKey.ecdh,e,t,r)},encrypt:async function(e,t,r,i,a){const s=mD(r),u=new $s(e),{publicKey:c,sharedKey:h}=await pV(u,i),n=_5(he.publicKey.ecdh,e,t,a),{keySize:p}=uo(t.cipher);return{publicKey:c,wrappedKey:pD(await g5(t.hash,h,p,n),s)}},decrypt:async function(e,t,r,i,a,s,u){const c=new $s(e),{sharedKey:h}=await yD(c,r,a,s),n=_5(he.publicKey.ecdh,e,t,u),{keySize:p}=uo(t.cipher);let d;for(let v=0;v<3;v++)try{return _D(vD(await g5(t.hash,h,p,n,v===1,v===2),i))}catch(m){d=m}throw d}}),mV=Object.freeze({__proto__:null,Curve:$s,ecdh:vV,ecdsa:cV,eddsa:dV,generate:async function(e){const t=await Pe.getBigInteger();e=new $s(e);const r=await e.genKeyPair(),i=new t(r.publicKey).toUint8Array(),a=new t(r.privateKey).toUint8Array("be",e.payloadSize);return{oid:e.oid,Q:i,secret:a,hash:e.hash,cipher:e.cipher}},getPreferredHashAlgo:function(e){return Dp[he.write(he.curve,e.toHex())].hash}}),_V=Object.freeze({__proto__:null,sign:async function(e,t,r,i,a,s){const u=await Pe.getBigInteger(),c=new u(1);let h,n,p,d;i=new u(i),a=new u(a),r=new u(r),s=new u(s),r=r.mod(i),s=s.mod(a);const v=new u(t.subarray(0,a.byteLength())).mod(a);for(;;){if(h=await Is(c,a),n=r.modExp(h,i).imod(a),n.isZero())continue;const m=s.mul(n).imod(a);if(d=v.add(m).imod(a),p=h.modInv(a).imul(d).imod(a),!p.isZero())break}return{r:n.toUint8Array("be",a.byteLength()),s:p.toUint8Array("be",a.byteLength())}},verify:async function(e,t,r,i,a,s,u,c){const h=await Pe.getBigInteger(),n=new h(0);if(t=new h(t),r=new h(r),s=new h(s),u=new h(u),a=new h(a),c=new h(c),t.lte(n)||t.gte(u)||r.lte(n)||r.gte(u))return Pe.printDebug("invalid DSA Signature"),!1;const p=new h(i.subarray(0,u.byteLength())).imod(u),d=r.modInv(u);if(d.isZero())return Pe.printDebug("invalid DSA Signature"),!1;a=a.mod(s),c=c.mod(s);const v=p.mul(d).imod(u),m=t.mul(d).imod(u),g=a.modExp(v,s),y=c.modExp(m,s);return g.mul(y).imod(s).imod(u).equal(t)},validateParams:async function(e,t,r,i,a){const s=await Pe.getBigInteger();e=new s(e),t=new s(t),r=new s(r),i=new s(i);const u=new s(1);if(r.lte(u)||r.gte(e)||!e.dec().mod(t).isZero()||!r.modExp(t,e).isOne())return!1;const c=new s(t.bitLength()),h=new s(150);if(c.lt(h)||!await sD(t,null,32))return!1;a=new s(a);const n=new s(2),p=await Is(n.leftShift(c.dec()),n.leftShift(c)),d=t.mul(p).add(a);return!!i.equal(r.modExp(d,e))}}),nr={rsa:rV,elgamal:iV,elliptic:mV,dsa:_V,nacl:ns},gV=Object.freeze({__proto__:null,parseSignatureParams:function(e,t){let r=0;switch(e){case he.publicKey.rsaEncryptSign:case he.publicKey.rsaEncrypt:case he.publicKey.rsaSign:return{s:Pe.readMPI(t.subarray(r))};case he.publicKey.dsa:case he.publicKey.ecdsa:{const i=Pe.readMPI(t.subarray(r));return r+=i.length+2,{r:i,s:Pe.readMPI(t.subarray(r))}}case he.publicKey.eddsa:{let i=Pe.readMPI(t.subarray(r));r+=i.length+2,i=Pe.leftPad(i,32);let a=Pe.readMPI(t.subarray(r));return a=Pe.leftPad(a,32),{r:i,s:a}}default:throw new kr("Unknown signature algorithm.")}},verify:async function(e,t,r,i,a,s){switch(e){case he.publicKey.rsaEncryptSign:case he.publicKey.rsaEncrypt:case he.publicKey.rsaSign:{const{n:u,e:c}=i,h=Pe.leftPad(r.s,u.length);return nr.rsa.verify(t,a,h,u,c,s)}case he.publicKey.dsa:{const{g:u,p:c,q:h,y:n}=i,{r:p,s:d}=r;return nr.dsa.verify(t,p,d,s,u,c,h,n)}case he.publicKey.ecdsa:{const{oid:u,Q:c}=i,h=new nr.elliptic.Curve(u).payloadSize,n=Pe.leftPad(r.r,h),p=Pe.leftPad(r.s,h);return nr.elliptic.ecdsa.verify(u,t,{r:n,s:p},a,c,s)}case he.publicKey.eddsa:{const{oid:u,Q:c}=i;return nr.elliptic.eddsa.verify(u,t,r,a,c,s)}default:throw Error("Unknown signature algorithm.")}},sign:async function(e,t,r,i,a,s){if(!r||!i)throw Error("Missing key parameters");switch(e){case he.publicKey.rsaEncryptSign:case he.publicKey.rsaEncrypt:case he.publicKey.rsaSign:{const{n:u,e:c}=r,{d:h,p:n,q:p,u:d}=i;return{s:await nr.rsa.sign(t,a,u,c,h,n,p,d,s)}}case he.publicKey.dsa:{const{g:u,p:c,q:h}=r,{x:n}=i;return nr.dsa.sign(t,s,u,c,h,n)}case he.publicKey.elgamal:throw Error("Signing with Elgamal is not defined in the OpenPGP standard.");case he.publicKey.ecdsa:{const{oid:u,Q:c}=r,{d:h}=i;return nr.elliptic.ecdsa.sign(u,t,a,c,h,s)}case he.publicKey.eddsa:{const{oid:u,Q:c}=r,{seed:h}=i;return nr.elliptic.eddsa.sign(u,t,a,c,h,s)}default:throw Error("Unknown signature algorithm.")}}});class y5{constructor(t){t=t===void 0?new Uint8Array([]):Pe.isString(t)?Pe.stringToUint8Array(t):new Uint8Array(t),this.data=t}read(t){if(t.length>=1){const r=t[0];if(t.length>=1+r)return this.data=t.subarray(1,1+r),1+this.data.length}throw Error("Invalid symmetric key")}write(){return Pe.concatUint8Array([new Uint8Array([this.data.length]),this.data])}}class b5{constructor(t){if(t){const{hash:r,cipher:i}=t;this.hash=r,this.cipher=i}else this.hash=null,this.cipher=null}read(t){if(t.length<4||t[0]!==3||t[1]!==1)throw Error("Cannot read KDFParams");return this.hash=t[2],this.cipher=t[3],4}write(){return new Uint8Array([3,1,this.hash,this.cipher])}}function W_(e){try{e.getName()}catch{throw new kr("Unknown curve OID")}}var yV=Object.freeze({__proto__:null,publicKeyEncrypt:async function(e,t,r,i){switch(e){case he.publicKey.rsaEncrypt:case he.publicKey.rsaEncryptSign:{const{n:a,e:s}=t;return{c:await nr.rsa.encrypt(r,a,s)}}case he.publicKey.elgamal:{const{p:a,g:s,y:u}=t;return nr.elgamal.encrypt(r,a,s,u)}case he.publicKey.ecdh:{const{oid:a,Q:s,kdfParams:u}=t,{publicKey:c,wrappedKey:h}=await nr.elliptic.ecdh.encrypt(a,u,r,s,i);return{V:c,C:new y5(h)}}default:return[]}},publicKeyDecrypt:async function(e,t,r,i,a,s){switch(e){case he.publicKey.rsaEncryptSign:case he.publicKey.rsaEncrypt:{const{c:u}=i,{n:c,e:h}=t,{d:n,p,q:d,u:v}=r;return nr.rsa.decrypt(u,c,h,n,p,d,v,s)}case he.publicKey.elgamal:{const{c1:u,c2:c}=i,h=t.p,n=r.x;return nr.elgamal.decrypt(u,c,h,n,s)}case he.publicKey.ecdh:{const{oid:u,Q:c,kdfParams:h}=t,{d:n}=r,{V:p,C:d}=i;return nr.elliptic.ecdh.decrypt(u,h,p,d.data,c,n,a)}default:throw Error("Unknown public key encryption algorithm.")}},parsePublicKeyParams:function(e,t){let r=0;switch(e){case he.publicKey.rsaEncrypt:case he.publicKey.rsaEncryptSign:case he.publicKey.rsaSign:{const i=Pe.readMPI(t.subarray(r));r+=i.length+2;const a=Pe.readMPI(t.subarray(r));return r+=a.length+2,{read:r,publicParams:{n:i,e:a}}}case he.publicKey.dsa:{const i=Pe.readMPI(t.subarray(r));r+=i.length+2;const a=Pe.readMPI(t.subarray(r));r+=a.length+2;const s=Pe.readMPI(t.subarray(r));r+=s.length+2;const u=Pe.readMPI(t.subarray(r));return r+=u.length+2,{read:r,publicParams:{p:i,q:a,g:s,y:u}}}case he.publicKey.elgamal:{const i=Pe.readMPI(t.subarray(r));r+=i.length+2;const a=Pe.readMPI(t.subarray(r));r+=a.length+2;const s=Pe.readMPI(t.subarray(r));return r+=s.length+2,{read:r,publicParams:{p:i,g:a,y:s}}}case he.publicKey.ecdsa:{const i=new Ka;r+=i.read(t),W_(i);const a=Pe.readMPI(t.subarray(r));return r+=a.length+2,{read:r,publicParams:{oid:i,Q:a}}}case he.publicKey.eddsa:{const i=new Ka;r+=i.read(t),W_(i);let a=Pe.readMPI(t.subarray(r));return r+=a.length+2,a=Pe.leftPad(a,33),{read:r,publicParams:{oid:i,Q:a}}}case he.publicKey.ecdh:{const i=new Ka;r+=i.read(t),W_(i);const a=Pe.readMPI(t.subarray(r));r+=a.length+2;const s=new b5;return r+=s.read(t.subarray(r)),{read:r,publicParams:{oid:i,Q:a,kdfParams:s}}}default:throw new kr("Unknown public key encryption algorithm.")}},parsePrivateKeyParams:function(e,t,r){let i=0;switch(e){case he.publicKey.rsaEncrypt:case he.publicKey.rsaEncryptSign:case he.publicKey.rsaSign:{const a=Pe.readMPI(t.subarray(i));i+=a.length+2;const s=Pe.readMPI(t.subarray(i));i+=s.length+2;const u=Pe.readMPI(t.subarray(i));i+=u.length+2;const c=Pe.readMPI(t.subarray(i));return i+=c.length+2,{read:i,privateParams:{d:a,p:s,q:u,u:c}}}case he.publicKey.dsa:case he.publicKey.elgamal:{const a=Pe.readMPI(t.subarray(i));return i+=a.length+2,{read:i,privateParams:{x:a}}}case he.publicKey.ecdsa:case he.publicKey.ecdh:{const a=new $s(r.oid);let s=Pe.readMPI(t.subarray(i));return i+=s.length+2,s=Pe.leftPad(s,a.payloadSize),{read:i,privateParams:{d:s}}}case he.publicKey.eddsa:{const a=new $s(r.oid);let s=Pe.readMPI(t.subarray(i));return i+=s.length+2,s=Pe.leftPad(s,a.payloadSize),{read:i,privateParams:{seed:s}}}default:throw new kr("Unknown public key encryption algorithm.")}},parseEncSessionKeyParams:function(e,t){let r=0;switch(e){case he.publicKey.rsaEncrypt:case he.publicKey.rsaEncryptSign:return{c:Pe.readMPI(t.subarray(r))};case he.publicKey.elgamal:{const i=Pe.readMPI(t.subarray(r));return r+=i.length+2,{c1:i,c2:Pe.readMPI(t.subarray(r))}}case he.publicKey.ecdh:{const i=Pe.readMPI(t.subarray(r));r+=i.length+2;const a=new y5;return a.read(t.subarray(r)),{V:i,C:a}}default:throw new kr("Unknown public key encryption algorithm.")}},serializeParams:function(e,t){const r=Object.keys(t).map(i=>{const a=t[i];return Pe.isUint8Array(a)?Pe.uint8ArrayToMPI(a):a.write()});return Pe.concatUint8Array(r)},generateParams:function(e,t,r){switch(e){case he.publicKey.rsaEncrypt:case he.publicKey.rsaEncryptSign:case he.publicKey.rsaSign:return nr.rsa.generate(t,65537).then(({n:i,e:a,d:s,p:u,q:c,u:h})=>({privateParams:{d:s,p:u,q:c,u:h},publicParams:{n:i,e:a}}));case he.publicKey.ecdsa:return nr.elliptic.generate(r).then(({oid:i,Q:a,secret:s})=>({privateParams:{d:s},publicParams:{oid:new Ka(i),Q:a}}));case he.publicKey.eddsa:return nr.elliptic.generate(r).then(({oid:i,Q:a,secret:s})=>({privateParams:{seed:s},publicParams:{oid:new Ka(i),Q:a}}));case he.publicKey.ecdh:return nr.elliptic.generate(r).then(({oid:i,Q:a,secret:s,hash:u,cipher:c})=>({privateParams:{d:s},publicParams:{oid:new Ka(i),Q:a,kdfParams:new b5({hash:u,cipher:c})}}));case he.publicKey.dsa:case he.publicKey.elgamal:throw Error("Unsupported algorithm for key generation.");default:throw Error("Unknown public key algorithm.")}},validateParams:async function(e,t,r){if(!t||!r)throw Error("Missing key parameters");switch(e){case he.publicKey.rsaEncrypt:case he.publicKey.rsaEncryptSign:case he.publicKey.rsaSign:{const{n:i,e:a}=t,{d:s,p:u,q:c,u:h}=r;return nr.rsa.validateParams(i,a,s,u,c,h)}case he.publicKey.dsa:{const{p:i,q:a,g:s,y:u}=t,{x:c}=r;return nr.dsa.validateParams(i,a,s,u,c)}case he.publicKey.elgamal:{const{p:i,g:a,y:s}=t,{x:u}=r;return nr.elgamal.validateParams(i,a,s,u)}case he.publicKey.ecdsa:case he.publicKey.ecdh:{const i=nr.elliptic[he.read(he.publicKey,e)],{oid:a,Q:s}=t,{d:u}=r;return i.validateParams(a,s,u)}case he.publicKey.eddsa:{const{oid:i,Q:a}=t,{seed:s}=r;return nr.elliptic.eddsa.validateParams(i,a,s)}default:throw Error("Unknown public key algorithm.")}},getPrefixRandom:async function(e){const{blockSize:t}=uo(e),r=await rs(t),i=new Uint8Array([r[r.length-2],r[r.length-1]]);return Pe.concat([r,i])},generateSessionKey:function(e){const{keySize:t}=uo(e);return rs(t)},getAEADMode:function(e){const t=he.read(he.aead,e);return aD[t]},getCipher:uo});const Kt={cipher:Ad,hash:wu,mode:aD,publicKey:nr,signature:gV,random:eV,pkcs1:nV,pkcs5:hV,aesKW:fV};Object.assign(Kt,yV);var Id=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";function bD(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)}const wD={arraySet:function(e,t,r,i,a){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+i),a);else for(let s=0;s=0;)e[t]=0}const SV=0,DD=1,kV=2,Z0=29,$d=256,dd=$d+1+Z0,hu=30,Q0=19,S5=2*dd+1,Zo=15,K_=16,EV=7,q0=256,OD=16,PD=17,TD=18,hy=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Op=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],DV=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],k5=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],bs=Array(2*(dd+2));Nu(bs);const qc=Array(2*hu);Nu(qc);const fd=Array(512);Nu(fd);const hd=Array(256);Nu(hd);const eb=Array(Z0);Nu(eb);const mv=Array(hu);function H_(e,t,r,i,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=a,this.has_stree=e&&e.length}let E5,D5,O5;function G_(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function AD(e){return e<256?fd[e]:fd[256+(e>>>7)]}function pd(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function Di(e,t,r){e.bi_valid>K_-r?(e.bi_buf|=t<>K_-e.bi_valid,e.bi_valid+=r-K_):(e.bi_buf|=t<>>=1,r<<=1;while(--t>0);return r>>>1}function ID(e,t,r){const i=Array(Zo+1);let a,s,u=0;for(a=1;a<=Zo;a++)i[a]=u=u+r[a-1]<<1;for(s=0;s<=t;s++){const c=e[2*s+1];c!==0&&(e[2*s]=MD(i[c]++,c))}}function $D(e){let t;for(t=0;t8?pd(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function P5(e,t,r,i){const a=2*t,s=2*r;return e[a]>1;u>=1;u--)Y_(e,r,u);h=s;do u=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Y_(e,r,1),c=e.heap[1],e.heap[--e.heap_max]=u,e.heap[--e.heap_max]=c,r[2*h]=r[2*u]+r[2*c],e.depth[h]=(e.depth[u]>=e.depth[c]?e.depth[u]:e.depth[c])+1,r[2*u+1]=r[2*c+1]=h,e.heap[1]=h++,Y_(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(p,d){const v=d.dyn_tree,m=d.max_code,g=d.stat_desc.static_tree,y=d.stat_desc.has_stree,b=d.stat_desc.extra_bits,k=d.stat_desc.extra_base,O=d.stat_desc.max_length;let S,x,E,w,T,M,A=0;for(w=0;w<=Zo;w++)p.bl_count[w]=0;for(v[2*p.heap[p.heap_max]+1]=0,S=p.heap_max+1;SO&&(w=O,A++),v[2*x+1]=w,x>m||(p.bl_count[w]++,T=0,x>=k&&(T=b[x-k]),M=v[2*x],p.opt_len+=M*(w+T),y&&(p.static_len+=M*(g[2*x+1]+T)));if(A!==0){do{for(w=O-1;p.bl_count[w]===0;)w--;p.bl_count[w]--,p.bl_count[w+1]+=2,p.bl_count[O]--,A-=2}while(A>0);for(w=O;w!==0;w--)for(x=p.bl_count[w];x!==0;)E=p.heap[--S],E>m||(v[2*E+1]!==w&&(p.opt_len+=(w-v[2*E+1])*v[2*E],v[2*E+1]=w),x--)}}(e,t),ID(r,n,e.bl_count)}function A5(e,t,r){let i,a,s=-1,u=t[1],c=0,h=7,n=4;for(u===0&&(h=138,n=3),t[2*(r+1)+1]=65535,i=0;i<=r;i++)a=u,u=t[2*(i+1)+1],++c>=7;a=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(e)}function TV(e,t,r,i){let a,s,u=0;e.level>0?(e.strm.data_type===ED&&(e.strm.data_type=function(c){let h,n=4093624447;for(h=0;h<=31;h++,n>>>=1)if(1&n&&c.dyn_ltree[2*h]!==0)return C5;if(c.dyn_ltree[18]!==0||c.dyn_ltree[20]!==0||c.dyn_ltree[26]!==0)return x5;for(h=32;h<$d;h++)if(c.dyn_ltree[2*h]!==0)return x5;return C5}(e)),X_(e,e.l_desc),X_(e,e.d_desc),u=function(c){let h;for(A5(c,c.dyn_ltree,c.l_desc.max_code),A5(c,c.dyn_dtree,c.d_desc.max_code),X_(c,c.bl_desc),h=Q0-1;h>=3&&c.bl_tree[2*k5[h]+1]===0;h--);return c.opt_len+=3*(h+1)+5+5+4,h}(e),a=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=a&&(a=s)):a=s=r+5,r+4<=a&&t!==-1?LD(e,t,r,i):e.strategy===kD||s===a?(Di(e,(DD<<1)+(i?1:0),3),T5(e,bs,qc)):(Di(e,(kV<<1)+(i?1:0),3),function(c,h,n,p){let d;for(Di(c,h-257,5),Di(c,n-1,5),Di(c,p-4,4),d=0;d>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,t===0?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(hd[r]+$d+1)]++,e.dyn_dtree[2*AD(t)]++),e.last_lit===e.lit_bufsize-1}function vd(e,t,r,i){let a=65535&e|0,s=e>>>16&65535|0,u=0;for(;r!==0;){u=r>2e3?2e3:r,r-=u;do a=a+t[i++]|0,s=s+a|0;while(--u);a%=65521,s%=65521}return a|s<<16|0}const AV=function(){let e;const t=[];for(let r=0;r<256;r++){e=r;for(let i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();function Tr(e,t,r,i){const a=AV,s=i+r;e^=-1;for(let u=i;u>>8^a[255&(e^t[u])];return-1^e}var md={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};const MV=9,Mn=3,ro=258,ga=ro+Mn+1,IV=32,_v=42,py=69,Pp=73,Tp=91,Ap=103,Qo=113,Uc=666,Ar=1,ed=2,qo=3,pu=4,$V=3;function io(e,t){return e.msg=md[t],t}function $5(e){return(e<<1)-(e>4?9:0)}function qs(e){let t=e.length;for(;--t>=0;)e[t]=0}function Js(e){const t=e.state;let r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(as(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}function Vr(e,t){TV(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Js(e.strm)}function Ln(e,t){e.pending_buf[e.pending++]=t}function Dc(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function RV(e,t,r,i){let a=e.avail_in;return a>i&&(a=i),a===0?0:(e.avail_in-=a,as(t,e.input,e.next_in,a,r),e.state.wrap===1?e.adler=vd(e.adler,t,a,r):e.state.wrap===2&&(e.adler=Tr(e.adler,t,a,r)),e.next_in+=a,e.total_in+=a,a)}function ND(e,t){let r,i,a=e.max_chain_length,s=e.strstart,u=e.prev_length,c=e.nice_match;const h=e.strstart>e.w_size-ga?e.strstart-(e.w_size-ga):0,n=e.window,p=e.w_mask,d=e.prev,v=e.strstart+ro;let m=n[s+u-1],g=n[s+u];e.prev_length>=e.good_match&&(a>>=2),c>e.lookahead&&(c=e.lookahead);do if(r=t,n[r+u]===g&&n[r+u-1]===m&&n[r]===n[s]&&n[++r]===n[s+1]){s+=2,r++;do;while(n[++s]===n[++r]&&n[++s]===n[++r]&&n[++s]===n[++r]&&n[++s]===n[++r]&&n[++s]===n[++r]&&n[++s]===n[++r]&&n[++s]===n[++r]&&n[++s]===n[++r]&&su){if(e.match_start=t,u=i,i>=c)break;m=n[s+u-1],g=n[s+u]}}while((t=d[t&p])>h&&--a!=0);return u<=e.lookahead?u:e.lookahead}function pl(e){const t=e.w_size;let r,i,a,s,u;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-ga)){as(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do a=e.head[--r],e.head[r]=a>=t?a-t:0;while(--i);i=t,r=i;do a=e.prev[--r],e.prev[r]=a>=t?a-t:0;while(--i);s+=t}if(e.strm.avail_in===0)break;if(i=RV(e.strm,e.window,e.strstart+e.lookahead,s),e.lookahead+=i,e.lookahead+e.insert>=Mn)for(u=e.strstart-e.insert,e.ins_h=e.window[u],e.ins_h=(e.ins_h<=Mn&&(e.ins_h=(e.ins_h<=Mn)if(i=co(e,e.strstart-e.match_start,e.match_length-Mn),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=Mn){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<=Mn&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=Mn-1)),e.prev_length>=Mn&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-Mn,i=co(e,e.strstart-1-e.prev_match,e.prev_length-Mn),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(pl(e),e.lookahead===0&&t===ss)return Ar;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;const i=e.block_start+r;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,Vr(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-ga&&(Vr(e,!1),e.strm.avail_out===0))return Ar}return e.insert=0,t===Ir?(Vr(e,!0),e.strm.avail_out===0?qo:pu):(e.strstart>e.block_start&&(Vr(e,!1),e.strm.avail_out),Ar)}),new Ba(4,4,8,4,J_),new Ba(4,5,16,8,J_),new Ba(4,6,32,32,J_),new Ba(4,4,16,16,Jl),new Ba(8,16,32,32,Jl),new Ba(8,16,128,128,Jl),new Ba(8,32,128,256,Jl),new Ba(32,128,258,1024,Jl),new Ba(32,258,258,4096,Jl)];class LV{constructor(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Cu,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new ia(1146),this.dyn_dtree=new ia(122),this.bl_tree=new ia(78),qs(this.dyn_ltree),qs(this.dyn_dtree),qs(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new ia(16),this.heap=new ia(573),qs(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new ia(573),qs(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}}function NV(e){const t=function(r){let i;return r&&r.state?(r.total_in=r.total_out=0,r.data_type=ED,i=r.state,i.pending=0,i.pending_out=0,i.wrap<0&&(i.wrap=-i.wrap),i.status=i.wrap?_v:Qo,r.adler=i.wrap===2?0:1,i.last_flush=ss,OV(i),Vn):io(r,br)}(e);return t===Vn&&function(r){r.window_size=2*r.w_size,qs(r.head),r.max_lazy_match=Vc[r.level].max_lazy,r.good_match=Vc[r.level].good_length,r.nice_match=Vc[r.level].nice_length,r.max_chain_length=Vc[r.level].max_chain,r.strstart=0,r.block_start=0,r.lookahead=0,r.insert=0,r.match_length=r.prev_length=Mn-1,r.match_available=0,r.ins_h=0}(e.state),t}function BV(e,t){let r,i,a,s;if(!e||!e.state||t>fy||t<0)return e?io(e,br):br;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===Uc&&t!==Ir)return io(e,e.avail_out===0?Qc:br);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===_v)if(i.wrap===2)e.adler=0,Ln(i,31),Ln(i,139),Ln(i,8),i.gzhead?(Ln(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),Ln(i,255&i.gzhead.time),Ln(i,i.gzhead.time>>8&255),Ln(i,i.gzhead.time>>16&255),Ln(i,i.gzhead.time>>24&255),Ln(i,i.level===9?2:i.strategy>=Jh||i.level<2?4:0),Ln(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(Ln(i,255&i.gzhead.extra.length),Ln(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=Tr(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=py):(Ln(i,0),Ln(i,0),Ln(i,0),Ln(i,0),Ln(i,0),Ln(i,i.level===9?2:i.strategy>=Jh||i.level<2?4:0),Ln(i,$V),i.status=Qo);else{let c=Cu+(i.w_bits-8<<4)<<8,h=-1;h=i.strategy>=Jh||i.level<2?0:i.level<6?1:i.level===6?2:3,c|=h<<6,i.strstart!==0&&(c|=IV),c+=31-c%31,i.status=Qo,Dc(i,c),i.strstart!==0&&(Dc(i,e.adler>>>16),Dc(i,65535&e.adler)),e.adler=1}if(i.status===py)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=Tr(e.adler,i.pending_buf,i.pending-a,a)),Js(e),a=i.pending,i.pending!==i.pending_buf_size));)Ln(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=Tr(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=Pp)}else i.status=Pp;if(i.status===Pp)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=Tr(e.adler,i.pending_buf,i.pending-a,a)),Js(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}s=i.gzindexa&&(e.adler=Tr(e.adler,i.pending_buf,i.pending-a,a)),s===0&&(i.gzindex=0,i.status=Tp)}else i.status=Tp;if(i.status===Tp)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=Tr(e.adler,i.pending_buf,i.pending-a,a)),Js(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}s=i.gzindexa&&(e.adler=Tr(e.adler,i.pending_buf,i.pending-a,a)),s===0&&(i.status=Ap)}else i.status=Ap;if(i.status===Ap&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&Js(e),i.pending+2<=i.pending_buf_size&&(Ln(i,255&e.adler),Ln(i,e.adler>>8&255),e.adler=0,i.status=Qo)):i.status=Qo),i.pending!==0){if(Js(e),e.avail_out===0)return i.last_flush=-1,Vn}else if(e.avail_in===0&&$5(t)<=$5(r)&&t!==Ir)return io(e,Qc);if(i.status===Uc&&e.avail_in!==0)return io(e,Qc);if(e.avail_in!==0||i.lookahead!==0||t!==ss&&i.status!==Uc){var u=i.strategy===Jh?function(c,h){let n;for(;;){if(c.lookahead===0&&(pl(c),c.lookahead===0)){if(h===ss)return Ar;break}if(c.match_length=0,n=co(c,0,c.window[c.strstart]),c.lookahead--,c.strstart++,n&&(Vr(c,!1),c.strm.avail_out===0))return Ar}return c.insert=0,h===Ir?(Vr(c,!0),c.strm.avail_out===0?qo:pu):c.last_lit&&(Vr(c,!1),c.strm.avail_out===0)?Ar:ed}(i,t):i.strategy===xV?function(c,h){let n,p,d,v;const m=c.window;for(;;){if(c.lookahead<=ro){if(pl(c),c.lookahead<=ro&&h===ss)return Ar;if(c.lookahead===0)break}if(c.match_length=0,c.lookahead>=Mn&&c.strstart>0&&(d=c.strstart-1,p=m[d],p===m[++d]&&p===m[++d]&&p===m[++d])){v=c.strstart+ro;do;while(p===m[++d]&&p===m[++d]&&p===m[++d]&&p===m[++d]&&p===m[++d]&&p===m[++d]&&p===m[++d]&&p===m[++d]&&dc.lookahead&&(c.match_length=c.lookahead)}if(c.match_length>=Mn?(n=co(c,1,c.match_length-Mn),c.lookahead-=c.match_length,c.strstart+=c.match_length,c.match_length=0):(n=co(c,0,c.window[c.strstart]),c.lookahead--,c.strstart++),n&&(Vr(c,!1),c.strm.avail_out===0))return Ar}return c.insert=0,h===Ir?(Vr(c,!0),c.strm.avail_out===0?qo:pu):c.last_lit&&(Vr(c,!1),c.strm.avail_out===0)?Ar:ed}(i,t):Vc[i.level].func(i,t);if(u!==qo&&u!==pu||(i.status=Uc),u===Ar||u===qo)return e.avail_out===0&&(i.last_flush=-1),Vn;if(u===ed&&(t===bV?PV(i):t!==fy&&(LD(i,0,0,!1),t===wV&&(qs(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),Js(e),e.avail_out===0))return i.last_flush=-1,Vn}return t!==Ir?Vn:i.wrap<=0?Os:(i.wrap===2?(Ln(i,255&e.adler),Ln(i,e.adler>>8&255),Ln(i,e.adler>>16&255),Ln(i,e.adler>>24&255),Ln(i,255&e.total_in),Ln(i,e.total_in>>8&255),Ln(i,e.total_in>>16&255),Ln(i,e.total_in>>24&255)):(Dc(i,e.adler>>>16),Dc(i,65535&e.adler)),Js(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?Vn:Os)}try{String.fromCharCode.call(null,0)}catch{}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{}const vy=new qa(256);for(let e=0;e<256;e++)vy[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;function my(e){let t,r,i,a,s=0;const u=e.length;for(i=0;i>>6,c[a++]=128|63&t):t<65536?(c[a++]=224|t>>>12,c[a++]=128|t>>>6&63,c[a++]=128|63&t):(c[a++]=240|t>>>18,c[a++]=128|t>>>12&63,c[a++]=128|t>>>6&63,c[a++]=128|63&t);return c}vy[254]=vy[254]=1;class BD{constructor(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}}class _y{constructor(t){this.options={level:w5,method:Cu,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,...t||{}};const r=this.options;r.raw&&r.windowBits>0?r.windowBits=-r.windowBits:r.gzip&&r.windowBits>0&&r.windowBits<16&&(r.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new BD,this.strm.avail_out=0;var i,a,s=function(u,c,h,n,p,d){if(!u)return br;let v=1;if(c===w5&&(c=6),n<0?(v=0,n=-n):n>15&&(v=2,n-=16),p<1||p>MV||h!==Cu||n<8||n>15||c<0||c>9||d<0||d>kD)return io(u,br);n===8&&(n=9);const m=new LV;return u.state=m,m.strm=u,m.wrap=v,m.gzhead=null,m.w_bits=n,m.w_size=1<=n.w_size&&(v===0&&(qs(n.head),n.strstart=0,n.block_start=0,n.insert=0),b=new qa(n.w_size),as(b,h,k-n.w_size,n.w_size,0),h=b,k=n.w_size),m=c.avail_in,g=c.next_in,y=c.input,c.avail_in=k,c.next_in=0,c.input=h,pl(n);n.lookahead>=Mn;){p=n.strstart,d=n.lookahead-(Mn-1);do n.ins_h=(n.ins_h<0||i.avail_out===0)&&s!==Os);return u===Ir?(s=function(c){let h;return c&&c.state?(h=c.state.status,h!==_v&&h!==py&&h!==Pp&&h!==Tp&&h!==Ap&&h!==Qo&&h!==Uc?io(c,br):(c.state=null,h===Qo?io(c,J0):Vn)):br}(this.strm),this.onEnd(s),this.ended=!0,s===Vn):u!==cd||(this.onEnd(Vn),i.avail_out=0,!0)}onData(t){this.chunks.push(t)}onEnd(t){t===Vn&&(this.result=xD(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg}}const Zh=30,FV=12;function zV(e,t){let r,i,a,s,u,c,h,n,p,d;const v=e.state;r=e.next_in;const m=e.input,g=r+(e.avail_in-5);i=e.next_out;const y=e.output,b=i-(t-e.avail_out),k=i+(e.avail_out-257),O=v.dmax,S=v.wsize,x=v.whave,E=v.wnext,w=v.window;a=v.hold,s=v.bits;const T=v.lencode,M=v.distcode,A=(1<>>24,a>>>=c,s-=c,c=u>>>16&255,c===0)y[i++]=65535&u;else{if(!(16&c)){if((64&c)==0){u=T[(65535&u)+(a&(1<>>=c,s-=c),s<15&&(a+=m[r++]<>>24,a>>>=c,s-=c,c=u>>>16&255,!(16&c)){if((64&c)==0){u=M[(65535&u)+(a&(1<O){e.msg="invalid distance too far back",v.mode=Zh;break e}if(a>>>=c,s-=c,c=i-b,n>c){if(c=n-c,c>x&&v.sane){e.msg="invalid distance too far back",v.mode=Zh;break e}if(p=0,d=w,E===0){if(p+=S-c,c2;)y[i++]=d[p++],y[i++]=d[p++],y[i++]=d[p++],h-=3;h&&(y[i++]=d[p++],h>1&&(y[i++]=d[p++]))}else{p=i-n;do y[i++]=y[p++],y[i++]=y[p++],y[i++]=y[p++],h-=3;while(h>2);h&&(y[i++]=y[p++],h>1&&(y[i++]=y[p++]))}break}}break}}while(r>3,r-=h,s-=h<<3,a&=(1<=1&&L[k]===0;k--);if(O>k&&(O=k),k===0)return a[s++]=20971520,a[s++]=20971520,c.bits=1,0;for(b=1;b0&&(e===N5||k!==1))return-1;for(Y[1]=0,g=1;gR5||e===B5&&w>L5)return 1;for(;;){N=g-x,u[y]m?(W=ue[Te+u[y]],j=M[A+u[y]]):(W=96,j=0),n=1<>x)+p]=N<<24|W<<16|j|0;while(p!==0);for(n=1<>=1;if(n!==0?(T&=n-1,T+=n):T=0,y++,--L[g]==0){if(g===k)break;g=t[r+u[y]]}if(g>O&&(T&pe)!==d){for(x===0&&(x=O),v+=b,S=g-x,E=1<R5||e===B5&&w>L5)return 1;d=T&pe,a[d]=O<<24|S<<16|v-s|0}}return T!==0&&(a[v+T]=g-x<<24|64<<16|0),c.bits=O,0}const KV=0,FD=1,zD=2,jD=1,F5=2,z5=3,j5=4,U5=5,V5=6,W5=7,K5=8,H5=9,G5=10,gv=11,_s=12,Q_=13,Y5=14,q_=15,X5=16,J5=17,Z5=18,Q5=19,Qh=20,qh=21,q5=22,ek=23,tk=24,nk=25,rk=26,eg=27,ik=28,ak=29,lr=30,HV=852,GV=592;function sk(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}class YV{constructor(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new ia(320),this.work=new ia(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}}function XV(e){let t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,function(r){let i;return r&&r.state?(i=r.state,r.total_in=r.total_out=i.total=0,r.msg="",i.wrap&&(r.adler=1&i.wrap),i.mode=jD,i.last=0,i.havedict=0,i.dmax=32768,i.head=null,i.hold=0,i.bits=0,i.lencode=i.lendyn=new vv(HV),i.distcode=i.distdyn=new vv(GV),i.sane=1,i.back=-1,Vn):br}(e)):br}function JV(e,t){let r,i;return e?(i=new YV,e.state=i,i.window=null,r=function(a,s){let u,c;return a&&a.state?(c=a.state,s<0?(u=0,s=-s):(u=1+(s>>4),s<48&&(s&=15)),s&&(s<8||s>15)?br:(c.window!==null&&c.wbits!==s&&(c.window=null),c.wrap=u,c.wbits=s,XV(a))):br}(e,t),r!==Vn&&(e.state=null),r):br}let tg,ng,ok=!0;function ZV(e){if(ok){let t;for(tg=new vv(512),ng=new vv(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(td(FD,e.lens,0,288,tg,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;td(zD,e.lens,0,32,ng,0,e.work,{bits:5}),ok=!1}e.lencode=tg,e.lenbits=9,e.distcode=ng,e.distbits=5}function UD(e,t,r,i){let a;const s=e.state;return s.window===null&&(s.wsize=1<=s.wsize?(as(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(a=s.wsize-s.wnext,a>i&&(a=i),as(s.window,t,r-i,a,s.wnext),(i-=a)?(as(s.window,t,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=a,s.wnext===s.wsize&&(s.wnext=0),s.whave>>8&255,r.check=Tr(r.check,Y,2,0),n=0,p=0,r.mode=F5;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&n)<<8)+(n>>8))%31){e.msg="incorrect header check",r.mode=lr;break}if((15&n)!==Cu){e.msg="unknown compression method",r.mode=lr;break}if(n>>>=4,p-=4,w=8+(15&n),r.wbits===0)r.wbits=w;else if(w>r.wbits){e.msg="invalid window size",r.mode=lr;break}r.dmax=1<>8&1),512&r.flags&&(Y[0]=255&n,Y[1]=n>>>8&255,r.check=Tr(r.check,Y,2,0)),n=0,p=0,r.mode=z5;case z5:for(;p<32;){if(c===0)break e;c--,n+=i[s++]<>>8&255,Y[2]=n>>>16&255,Y[3]=n>>>24&255,r.check=Tr(r.check,Y,4,0)),n=0,p=0,r.mode=j5;case j5:for(;p<16;){if(c===0)break e;c--,n+=i[s++]<>8),512&r.flags&&(Y[0]=255&n,Y[1]=n>>>8&255,r.check=Tr(r.check,Y,2,0)),n=0,p=0,r.mode=U5;case U5:if(1024&r.flags){for(;p<16;){if(c===0)break e;c--,n+=i[s++]<>>8&255,r.check=Tr(r.check,Y,2,0)),n=0,p=0}else r.head&&(r.head.extra=null);r.mode=V5;case V5:if(1024&r.flags&&(m=r.length,m>c&&(m=c),m&&(r.head&&(w=r.head.extra_len-r.length,r.head.extra||(r.head.extra=Array(r.head.extra_len)),as(r.head.extra,i,s,m,w)),512&r.flags&&(r.check=Tr(r.check,i,m,s)),c-=m,s+=m,r.length-=m),r.length))break e;r.length=0,r.mode=W5;case W5:if(2048&r.flags){if(c===0)break e;m=0;do w=i[s+m++],r.head&&w&&r.length<65536&&(r.head.name+=String.fromCharCode(w));while(w&&m>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=_s;break;case G5:for(;p<32;){if(c===0)break e;c--,n+=i[s++]<>>=7&p,p-=7&p,r.mode=eg;break}for(;p<3;){if(c===0)break e;c--,n+=i[s++]<>>=1,p-=1,3&n){case 0:r.mode=Y5;break;case 1:if(ZV(r),r.mode=Qh,t===Xh){n>>>=2,p-=2;break e}break;case 2:r.mode=J5;break;case 3:e.msg="invalid block type",r.mode=lr}n>>>=2,p-=2;break;case Y5:for(n>>>=7&p,p-=7&p;p<32;){if(c===0)break e;c--,n+=i[s++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=lr;break}if(r.length=65535&n,n=0,p=0,r.mode=q_,t===Xh)break e;case q_:r.mode=X5;case X5:if(m=r.length,m){if(m>c&&(m=c),m>h&&(m=h),m===0)break e;as(a,i,s,m,u),c-=m,s+=m,h-=m,u+=m,r.length-=m;break}r.mode=_s;break;case J5:for(;p<14;){if(c===0)break e;c--,n+=i[s++]<>>=5,p-=5,r.ndist=1+(31&n),n>>>=5,p-=5,r.ncode=4+(15&n),n>>>=4,p-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=lr;break}r.have=0,r.mode=Z5;case Z5:for(;r.have>>=3,p-=3}for(;r.have<19;)r.lens[N[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,M={bits:r.lenbits},T=td(KV,r.lens,0,19,r.lencode,0,r.work,M),r.lenbits=M.bits,T){e.msg="invalid code lengths set",r.mode=lr;break}r.have=0,r.mode=Q5;case Q5:for(;r.have>>24,k=L>>>16&255,O=65535&L,!(b<=p);){if(c===0)break e;c--,n+=i[s++]<>>=b,p-=b,r.lens[r.have++]=O;else{if(O===16){for(A=b+2;p>>=b,p-=b,r.have===0){e.msg="invalid bit length repeat",r.mode=lr;break}w=r.lens[r.have-1],m=3+(3&n),n>>>=2,p-=2}else if(O===17){for(A=b+3;p>>=b,p-=b,w=0,m=3+(7&n),n>>>=3,p-=3}else{for(A=b+7;p>>=b,p-=b,w=0,m=11+(127&n),n>>>=7,p-=7}if(r.have+m>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=lr;break}for(;m--;)r.lens[r.have++]=w}}if(r.mode===lr)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=lr;break}if(r.lenbits=9,M={bits:r.lenbits},T=td(FD,r.lens,0,r.nlen,r.lencode,0,r.work,M),r.lenbits=M.bits,T){e.msg="invalid literal/lengths set",r.mode=lr;break}if(r.distbits=6,r.distcode=r.distdyn,M={bits:r.distbits},T=td(zD,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,M),r.distbits=M.bits,T){e.msg="invalid distances set",r.mode=lr;break}if(r.mode=Qh,t===Xh)break e;case Qh:r.mode=qh;case qh:if(c>=6&&h>=258){e.next_out=u,e.avail_out=h,e.next_in=s,e.avail_in=c,r.hold=n,r.bits=p,zV(e,v),u=e.next_out,a=e.output,h=e.avail_out,s=e.next_in,i=e.input,c=e.avail_in,n=r.hold,p=r.bits,r.mode===_s&&(r.back=-1);break}for(r.back=0;L=r.lencode[n&(1<>>24,k=L>>>16&255,O=65535&L,!(b<=p);){if(c===0)break e;c--,n+=i[s++]<>S)],b=L>>>24,k=L>>>16&255,O=65535&L,!(S+b<=p);){if(c===0)break e;c--,n+=i[s++]<>>=S,p-=S,r.back+=S}if(n>>>=b,p-=b,r.back+=b,r.length=O,k===0){r.mode=rk;break}if(32&k){r.back=-1,r.mode=_s;break}if(64&k){e.msg="invalid literal/length code",r.mode=lr;break}r.extra=15&k,r.mode=q5;case q5:if(r.extra){for(A=r.extra;p>>=r.extra,p-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=ek;case ek:for(;L=r.distcode[n&(1<>>24,k=L>>>16&255,O=65535&L,!(b<=p);){if(c===0)break e;c--,n+=i[s++]<>S)],b=L>>>24,k=L>>>16&255,O=65535&L,!(S+b<=p);){if(c===0)break e;c--,n+=i[s++]<>>=S,p-=S,r.back+=S}if(n>>>=b,p-=b,r.back+=b,64&k){e.msg="invalid distance code",r.mode=lr;break}r.offset=O,r.extra=15&k,r.mode=tk;case tk:if(r.extra){for(A=r.extra;p>>=r.extra,p-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=lr;break}r.mode=nk;case nk:if(h===0)break e;if(m=v-h,r.offset>m){if(m=r.offset-m,m>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=lr;break}m>r.wnext?(m-=r.wnext,g=r.wsize-m):g=r.wnext-m,m>r.length&&(m=r.length),y=r.window}else y=a,g=u-r.offset,m=r.length;m>h&&(m=h),h-=m,r.length-=m;do a[u++]=y[g++];while(--m);r.length===0&&(r.mode=qh);break;case rk:if(h===0)break e;a[u++]=r.length,h--,r.mode=qh;break;case eg:if(r.wrap){for(;p<32;){if(c===0)break e;c--,n|=i[s++]<=0&&r.windowBits<16&&(r.windowBits=-r.windowBits,r.windowBits===0&&(r.windowBits=-15)),!(r.windowBits>=0&&r.windowBits<16)||t&&t.windowBits||(r.windowBits+=32),r.windowBits>15&&r.windowBits<48&&(15&r.windowBits)==0&&(r.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new BD,this.strm.avail_out=0;let i=JV(this.strm,r.windowBits);if(i!==Vn||(this.header=new qV,function(a,s){let u;a&&a.state&&(u=a.state,(2&u.wrap)==0||(u.head=s,s.done=!1))}(this.strm,this.header),r.dictionary&&(typeof r.dictionary=="string"?r.dictionary=my(r.dictionary):r.dictionary instanceof ArrayBuffer&&(r.dictionary=new Uint8Array(r.dictionary)),r.raw&&(i=lk(this.strm,r.dictionary),i!==Vn))))throw Error(md[i])}push(t,r){const{strm:i,options:{chunkSize:a,dictionary:s}}=this;let u,c,h=!1;if(this.ended)return!1;c=r===~~r?r:r===!0?Ir:ss,typeof t=="string"?i.input=function(n){const p=new qa(n.length);for(let d=0,v=p.length;d0||i.avail_out===0)&&u!==Os);return u===Os&&(c=Ir),c===Ir?(u=function(n){if(!n||!n.state)return br;const p=n.state;return p.window&&(p.window=null),n.state=null,Vn}(this.strm),this.onEnd(u),this.ended=!0,u===Vn):c!==cd||(this.onEnd(Vn),i.avail_out=0,!0)}onData(t){this.chunks.push(t)}onEnd(t){t===Vn&&(this.result=xD(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg}}var ck=[0,1,3,7,15,31,63,127,255],Wc=function(e){this.stream=e,this.bitOffset=0,this.curByte=0,this.hasByte=!1};Wc.prototype._ensureByte=function(){this.hasByte||(this.curByte=this.stream.readByte(),this.hasByte=!0)},Wc.prototype.read=function(e){for(var t=0;e>0;){this._ensureByte();var r=8-this.bitOffset;if(e>=r)t<<=r,t|=ck[r]&this.curByte,this.hasByte=!1,this.bitOffset=0,e-=r;else{t<<=e;var i=r-e;t|=(this.curByte&ck[e]<>i,this.bitOffset+=e,e=0}}return t},Wc.prototype.seek=function(e){var t=e%8,r=(e-t)/8;this.bitOffset=t,this.stream.seek(r),this.hasByte=!1},Wc.prototype.pi=function(){var e,t=new Uint8Array(6);for(e=0;e("00"+i.toString(16)).slice(-2)).join("")}(t)};var eW=Wc,Vo=function(){};Vo.prototype.readByte=function(){throw Error("abstract method readByte() not implemented")},Vo.prototype.read=function(e,t,r){for(var i=0;i>>0},this.updateCRC=function(t){e=e<<8^rg[255&(e>>>24^t)]},this.updateCRCRun=function(t,r){for(;r-- >0;)e=e<<8^rg[255&(e>>>24^t)]}}),dk=function(e,t){var r,i=e[t];for(r=t;r>0;r--)e[r]=e[r-1];return e[0]=i,i},ur={OK:0,LAST_BLOCK:-1,NOT_BZIP_DATA:-2,UNEXPECTED_INPUT_EOF:-3,UNEXPECTED_OUTPUT_EOF:-4,DATA_ERROR:-5,OUT_OF_MEMORY:-6,OBSOLETE_INPUT:-7,END_OF_BLOCK:-8},Zs={};Zs[ur.LAST_BLOCK]="Bad file checksum",Zs[ur.NOT_BZIP_DATA]="Not bzip data",Zs[ur.UNEXPECTED_INPUT_EOF]="Unexpected input EOF",Zs[ur.UNEXPECTED_OUTPUT_EOF]="Unexpected output EOF",Zs[ur.DATA_ERROR]="Data error",Zs[ur.OUT_OF_MEMORY]="Out of memory",Zs[ur.OBSOLETE_INPUT]="Obsolete (pre 0.9.5) bzip format not supported.";var zr=function(e,t){var r=Zs[e]||"unknown error";t&&(r+=": "+t);var i=new TypeError(r);throw i.errorCode=e,i},Kc=function(e,t){this.writePos=this.writeCurrent=this.writeCount=0,this._start_bunzip(e,t)};Kc.prototype._init_block=function(){return this._get_next_block()?(this.blockCRC=new tW,!0):(this.writeCount=-1,!1)},Kc.prototype._start_bunzip=function(e,t){var r=new Uint8Array(4);e.read(r,0,4)===4&&String.fromCharCode(r[0],r[1],r[2])==="BZh"||zr(ur.NOT_BZIP_DATA,"bad magic");var i=r[3]-48;(i<1||i>9)&&zr(ur.NOT_BZIP_DATA,"level out of range"),this.reader=new eW(e),this.dbufSize=1e5*i,this.nextoutput=0,this.outputStream=t,this.streamCRC=0},Kc.prototype._get_next_block=function(){var e,t,r,i=this.reader,a=i.pi();if(a==="177245385090")return!1;a!=="314159265359"&&zr(ur.NOT_BZIP_DATA),this.targetBlockCRC=i.read(32)>>>0,this.streamCRC=(this.targetBlockCRC^(this.streamCRC<<1|this.streamCRC>>>31))>>>0,i.read(1)&&zr(ur.OBSOLETE_INPUT);var s=i.read(24);s>this.dbufSize&&zr(ur.DATA_ERROR,"initial position out of bounds");var u=i.read(16),c=new Uint8Array(256),h=0;for(e=0;e<16;e++)if(u&1<<15-e){var n=16*e;for(r=i.read(16),t=0;t<16;t++)r&1<<15-t&&(c[h++]=n+t)}var p=i.read(3);(p<2||p>6)&&zr(ur.DATA_ERROR);var d=i.read(15);d===0&&zr(ur.DATA_ERROR);var v=new Uint8Array(256);for(e=0;e=p&&zr(ur.DATA_ERROR);m[e]=dk(v,t)}var g,y=h+2,b=[];for(t=0;t20)&&zr(ur.DATA_ERROR),i.read(1);)i.read(1)?u--:u++;S[e]=u}for(k=O=S[0],e=1;eO?O=S[e]:S[e]=d&&zr(ur.DATA_ERROR),g=b[m[L++]]),e=g.minLen,t=i.read(e);e>g.maxLen&&zr(ur.DATA_ERROR),!(t<=g.limit[e]);e++)t=t<<1|i.read(1);((t-=g.base[e])<0||t>=258)&&zr(ur.DATA_ERROR);var N=g.permute[t];if(N!==0&&N!==1){if(M)for(M=0,A+u>this.dbufSize&&zr(ur.DATA_ERROR),w[T=c[v[0]]]+=u;u--;)Y[A++]=T;if(N>h)break;A>=this.dbufSize&&zr(ur.DATA_ERROR),w[T=c[T=dk(v,e=N-1)]]++,Y[A++]=T}else M||(M=1,u=0),u+=N===0?M:2*M,M<<=1}for((s<0||s>=A)&&zr(ur.DATA_ERROR),t=0,e=0;e<256;e++)r=t+w[e],w[e]=t,t=r;for(e=0;e>=8,ue=-1),this.writePos=W,this.writeCurrent=j,this.writeCount=A,this.writeRun=ue,!0},Kc.prototype._read_bunzip=function(e,t){var r,i,a;if(this.writeCount<0)return 0;var s=this.dbuf,u=this.writePos,c=this.writeCurrent,h=this.writeCount;this.outputsize;for(var n=this.writeRun;h;){for(h--,i=c,c=255&(u=s[u]),u>>=8,n++==3?(r=c,a=i,c=-1):(r=1,a=c),this.blockCRC.updateCRCRun(a,r);r--;)this.outputStream.writeByte(a),this.nextoutput++;c!=i&&(n=0)}return this.writeCount=h,this.blockCRC.getCRC()!==this.targetBlockCRC&&zr(ur.DATA_ERROR,"Bad block CRC (got "+this.blockCRC.getCRC().toString(16)+" expected "+this.targetBlockCRC.toString(16)+")"),this.nextoutput};var nW=function(e){if("readByte"in e)return e;var t=new VD;return t.pos=0,t.readByte=function(){return e[this.pos++]},t.seek=function(r){this.pos=r},t.eof=function(){return this.pos>=e.length},t},rW=function(e){var t=new VD,r=!0;if(e)if(typeof e=="number")t.buffer=new Uint8Array(e),r=!1;else{if("writeByte"in e)return e;t.buffer=e,r=!1}else t.buffer=new Uint8Array(16384);return t.pos=0,t.writeByte=function(i){if(r&&this.pos>=this.buffer.length){var a=new Uint8Array(2*this.buffer.length);a.set(this.buffer),this.buffer=a}this.buffer[this.pos++]=i},t.getBuffer=function(){if(this.pos!==this.buffer.length){if(!r)throw new TypeError("outputsize does not match decoded input");var i=new Uint8Array(this.pos);i.set(this.buffer.subarray(0,this.pos)),this.buffer=i}return this.buffer},t._coerced=!0,t},fk=function(e,t,r){for(var i=nW(e),a=rW(t),s=new Kc(i,a);!("eof"in i)||!i.eof();)if(s._init_block())s._read_bunzip();else{var u=s.reader.read(32)>>>0;if(u!==s.streamCRC&&zr(ur.DATA_ERROR,"Bad stream CRC (got "+s.streamCRC.toString(16)+" expected "+u.toString(16)+")"),!r||!("eof"in i)||i.eof())break;s._start_bunzip(i,a)}if("getBuffer"in a)return a.getBuffer()};class Bu{static get tag(){return he.packet.literalData}constructor(t=new Date){this.format=he.literal.utf8,this.date=Pe.normalizeDate(t),this.text=null,this.data=null,this.filename=""}setText(t,r=he.literal.utf8){this.format=r,this.text=t,this.data=null}getText(t=!1){return(this.text===null||Pe.isStream(this.text))&&(this.text=Pe.decodeUTF8(Pe.nativeEOL(this.getBytes(t)))),this.text}setBytes(t,r){this.format=r,this.data=t,this.text=null}getBytes(t=!1){return this.data===null&&(this.data=Pe.canonicalizeEOL(Pe.encodeUTF8(this.text))),t?cu(this.data):this.data}setFilename(t){this.filename=t}getFilename(){return this.filename}async read(t){await Jv(t,async r=>{const i=await r.readByte(),a=await r.readByte();this.filename=Pe.decodeUTF8(await r.readBytes(a)),this.date=Pe.readDate(await r.readBytes(4));let s=r.remainder();mr(s)&&(s=await gr(s)),this.setBytes(s,i)})}writeHeader(){const t=Pe.encodeUTF8(this.filename),r=new Uint8Array([t.length]),i=new Uint8Array([this.format]),a=Pe.writeDate(this.date);return Pe.concatUint8Array([i,r,t,a])}write(){const t=this.writeHeader(),r=this.getBytes();return Pe.concat([t,r])}}const Oc=Symbol("verified"),iW=new Set([he.signatureSubpacket.issuer,he.signatureSubpacket.issuerFingerprint,he.signatureSubpacket.embeddedSignature]);class Hr{static get tag(){return he.packet.signature}constructor(){this.version=null,this.signatureType=null,this.hashAlgorithm=null,this.publicKeyAlgorithm=null,this.signatureData=null,this.unhashedSubpackets=[],this.signedHashValue=null,this.created=null,this.signatureExpirationTime=null,this.signatureNeverExpires=!0,this.exportable=null,this.trustLevel=null,this.trustAmount=null,this.regularExpression=null,this.revocable=null,this.keyExpirationTime=null,this.keyNeverExpires=null,this.preferredSymmetricAlgorithms=null,this.revocationKeyClass=null,this.revocationKeyAlgorithm=null,this.revocationKeyFingerprint=null,this.issuerKeyID=new mo,this.rawNotations=[],this.notations={},this.preferredHashAlgorithms=null,this.preferredCompressionAlgorithms=null,this.keyServerPreferences=null,this.preferredKeyServer=null,this.isPrimaryUserID=null,this.policyURI=null,this.keyFlags=null,this.signersUserID=null,this.reasonForRevocationFlag=null,this.reasonForRevocationString=null,this.features=null,this.signatureTargetPublicKeyAlgorithm=null,this.signatureTargetHashAlgorithm=null,this.signatureTargetHash=null,this.embeddedSignature=null,this.issuerKeyVersion=null,this.issuerFingerprint=null,this.preferredAEADAlgorithms=null,this.revoked=null,this[Oc]=null}read(t){let r=0;if(this.version=t[r++],this.version!==4&&this.version!==5)throw new kr(`Version ${this.version} of the signature packet is unsupported.`);if(this.signatureType=t[r++],this.publicKeyAlgorithm=t[r++],this.hashAlgorithm=t[r++],r+=this.readSubPackets(t.subarray(r,t.length),!0),!this.created)throw Error("Missing signature creation time subpacket.");this.signatureData=t.subarray(0,r),r+=this.readSubPackets(t.subarray(r,t.length),!1),this.signedHashValue=t.subarray(r,r+2),r+=2,this.params=Kt.signature.parseSignatureParams(this.publicKeyAlgorithm,t.subarray(r,t.length))}writeParams(){return this.params instanceof Promise?wo(async()=>Kt.serializeParams(this.publicKeyAlgorithm,await this.params)):Kt.serializeParams(this.publicKeyAlgorithm,this.params)}write(){const t=[];return t.push(this.signatureData),t.push(this.writeUnhashedSubPackets()),t.push(this.signedHashValue),t.push(this.writeParams()),Pe.concat(t)}async sign(t,r,i=new Date,a=!1){t.version===5?this.version=5:this.version=4;const s=[new Uint8Array([this.version,this.signatureType,this.publicKeyAlgorithm,this.hashAlgorithm])];this.created=Pe.normalizeDate(i),this.issuerKeyVersion=t.version,this.issuerFingerprint=t.getFingerprintBytes(),this.issuerKeyID=t.getKeyID(),s.push(this.writeHashedSubPackets()),this.unhashedSubpackets=[],this.signatureData=Pe.concat(s);const u=this.toHash(this.signatureType,r,a),c=await this.hash(this.signatureType,r,u,a);this.signedHashValue=Wr(hl(c),0,2);const h=async()=>Kt.signature.sign(this.publicKeyAlgorithm,this.hashAlgorithm,t.publicParams,t.privateParams,u,await gr(c));Pe.isStream(c)?this.params=h():(this.params=await h(),this[Oc]=!0)}writeHashedSubPackets(){const t=he.signatureSubpacket,r=[];let i;if(this.created===null)throw Error("Missing signature creation time");r.push(tr(t.signatureCreationTime,!0,Pe.writeDate(this.created))),this.signatureExpirationTime!==null&&r.push(tr(t.signatureExpirationTime,!0,Pe.writeNumber(this.signatureExpirationTime,4))),this.exportable!==null&&r.push(tr(t.exportableCertification,!0,new Uint8Array([this.exportable?1:0]))),this.trustLevel!==null&&(i=new Uint8Array([this.trustLevel,this.trustAmount]),r.push(tr(t.trustSignature,!0,i))),this.regularExpression!==null&&r.push(tr(t.regularExpression,!0,this.regularExpression)),this.revocable!==null&&r.push(tr(t.revocable,!0,new Uint8Array([this.revocable?1:0]))),this.keyExpirationTime!==null&&r.push(tr(t.keyExpirationTime,!0,Pe.writeNumber(this.keyExpirationTime,4))),this.preferredSymmetricAlgorithms!==null&&(i=Pe.stringToUint8Array(Pe.uint8ArrayToString(this.preferredSymmetricAlgorithms)),r.push(tr(t.preferredSymmetricAlgorithms,!1,i))),this.revocationKeyClass!==null&&(i=new Uint8Array([this.revocationKeyClass,this.revocationKeyAlgorithm]),i=Pe.concat([i,this.revocationKeyFingerprint]),r.push(tr(t.revocationKey,!1,i))),this.issuerKeyID.isNull()||this.issuerKeyVersion===5||r.push(tr(t.issuer,!0,this.issuerKeyID.write())),this.rawNotations.forEach(({name:u,value:c,humanReadable:h,critical:n})=>{i=[new Uint8Array([h?128:0,0,0,0])];const p=Pe.encodeUTF8(u);i.push(Pe.writeNumber(p.length,2)),i.push(Pe.writeNumber(c.length,2)),i.push(p),i.push(c),i=Pe.concat(i),r.push(tr(t.notationData,n,i))}),this.preferredHashAlgorithms!==null&&(i=Pe.stringToUint8Array(Pe.uint8ArrayToString(this.preferredHashAlgorithms)),r.push(tr(t.preferredHashAlgorithms,!1,i))),this.preferredCompressionAlgorithms!==null&&(i=Pe.stringToUint8Array(Pe.uint8ArrayToString(this.preferredCompressionAlgorithms)),r.push(tr(t.preferredCompressionAlgorithms,!1,i))),this.keyServerPreferences!==null&&(i=Pe.stringToUint8Array(Pe.uint8ArrayToString(this.keyServerPreferences)),r.push(tr(t.keyServerPreferences,!1,i))),this.preferredKeyServer!==null&&r.push(tr(t.preferredKeyServer,!1,Pe.encodeUTF8(this.preferredKeyServer))),this.isPrimaryUserID!==null&&r.push(tr(t.primaryUserID,!1,new Uint8Array([this.isPrimaryUserID?1:0]))),this.policyURI!==null&&r.push(tr(t.policyURI,!1,Pe.encodeUTF8(this.policyURI))),this.keyFlags!==null&&(i=Pe.stringToUint8Array(Pe.uint8ArrayToString(this.keyFlags)),r.push(tr(t.keyFlags,!0,i))),this.signersUserID!==null&&r.push(tr(t.signersUserID,!1,Pe.encodeUTF8(this.signersUserID))),this.reasonForRevocationFlag!==null&&(i=Pe.stringToUint8Array(String.fromCharCode(this.reasonForRevocationFlag)+this.reasonForRevocationString),r.push(tr(t.reasonForRevocation,!0,i))),this.features!==null&&(i=Pe.stringToUint8Array(Pe.uint8ArrayToString(this.features)),r.push(tr(t.features,!1,i))),this.signatureTargetPublicKeyAlgorithm!==null&&(i=[new Uint8Array([this.signatureTargetPublicKeyAlgorithm,this.signatureTargetHashAlgorithm])],i.push(Pe.stringToUint8Array(this.signatureTargetHash)),i=Pe.concat(i),r.push(tr(t.signatureTarget,!0,i))),this.embeddedSignature!==null&&r.push(tr(t.embeddedSignature,!0,this.embeddedSignature.write())),this.issuerFingerprint!==null&&(i=[new Uint8Array([this.issuerKeyVersion]),this.issuerFingerprint],i=Pe.concat(i),r.push(tr(t.issuerFingerprint,this.version===5,i))),this.preferredAEADAlgorithms!==null&&(i=Pe.stringToUint8Array(Pe.uint8ArrayToString(this.preferredAEADAlgorithms)),r.push(tr(t.preferredAEADAlgorithms,!1,i)));const a=Pe.concat(r),s=Pe.writeNumber(a.length,2);return Pe.concat([s,a])}writeUnhashedSubPackets(){const t=[];this.unhashedSubpackets.forEach(a=>{t.push(Md(a.length)),t.push(a)});const r=Pe.concat(t),i=Pe.writeNumber(r.length,2);return Pe.concat([i,r])}readSubPacket(t,r=!0){let i=0;const a=!!(128&t[i]),s=127&t[i];if(r||(this.unhashedSubpackets.push(t.subarray(i,t.length)),iW.has(s)))switch(i++,s){case he.signatureSubpacket.signatureCreationTime:this.created=Pe.readDate(t.subarray(i,t.length));break;case he.signatureSubpacket.signatureExpirationTime:{const u=Pe.readNumber(t.subarray(i,t.length));this.signatureNeverExpires=u===0,this.signatureExpirationTime=u;break}case he.signatureSubpacket.exportableCertification:this.exportable=t[i++]===1;break;case he.signatureSubpacket.trustSignature:this.trustLevel=t[i++],this.trustAmount=t[i++];break;case he.signatureSubpacket.regularExpression:this.regularExpression=t[i];break;case he.signatureSubpacket.revocable:this.revocable=t[i++]===1;break;case he.signatureSubpacket.keyExpirationTime:{const u=Pe.readNumber(t.subarray(i,t.length));this.keyExpirationTime=u,this.keyNeverExpires=u===0;break}case he.signatureSubpacket.preferredSymmetricAlgorithms:this.preferredSymmetricAlgorithms=[...t.subarray(i,t.length)];break;case he.signatureSubpacket.revocationKey:this.revocationKeyClass=t[i++],this.revocationKeyAlgorithm=t[i++],this.revocationKeyFingerprint=t.subarray(i,i+20);break;case he.signatureSubpacket.issuer:this.issuerKeyID.read(t.subarray(i,t.length));break;case he.signatureSubpacket.notationData:{const u=!!(128&t[i]);i+=4;const c=Pe.readNumber(t.subarray(i,i+2));i+=2;const h=Pe.readNumber(t.subarray(i,i+2));i+=2;const n=Pe.decodeUTF8(t.subarray(i,i+c)),p=t.subarray(i+c,i+c+h);this.rawNotations.push({name:n,humanReadable:u,value:p,critical:a}),u&&(this.notations[n]=Pe.decodeUTF8(p));break}case he.signatureSubpacket.preferredHashAlgorithms:this.preferredHashAlgorithms=[...t.subarray(i,t.length)];break;case he.signatureSubpacket.preferredCompressionAlgorithms:this.preferredCompressionAlgorithms=[...t.subarray(i,t.length)];break;case he.signatureSubpacket.keyServerPreferences:this.keyServerPreferences=[...t.subarray(i,t.length)];break;case he.signatureSubpacket.preferredKeyServer:this.preferredKeyServer=Pe.decodeUTF8(t.subarray(i,t.length));break;case he.signatureSubpacket.primaryUserID:this.isPrimaryUserID=t[i++]!==0;break;case he.signatureSubpacket.policyURI:this.policyURI=Pe.decodeUTF8(t.subarray(i,t.length));break;case he.signatureSubpacket.keyFlags:this.keyFlags=[...t.subarray(i,t.length)];break;case he.signatureSubpacket.signersUserID:this.signersUserID=Pe.decodeUTF8(t.subarray(i,t.length));break;case he.signatureSubpacket.reasonForRevocation:this.reasonForRevocationFlag=t[i++],this.reasonForRevocationString=Pe.decodeUTF8(t.subarray(i,t.length));break;case he.signatureSubpacket.features:this.features=[...t.subarray(i,t.length)];break;case he.signatureSubpacket.signatureTarget:{this.signatureTargetPublicKeyAlgorithm=t[i++],this.signatureTargetHashAlgorithm=t[i++];const u=Kt.getHashByteLength(this.signatureTargetHashAlgorithm);this.signatureTargetHash=Pe.uint8ArrayToString(t.subarray(i,i+u));break}case he.signatureSubpacket.embeddedSignature:this.embeddedSignature=new Hr,this.embeddedSignature.read(t.subarray(i,t.length));break;case he.signatureSubpacket.issuerFingerprint:this.issuerKeyVersion=t[i++],this.issuerFingerprint=t.subarray(i,t.length),this.issuerKeyVersion===5?this.issuerKeyID.read(this.issuerFingerprint):this.issuerKeyID.read(this.issuerFingerprint.subarray(-8));break;case he.signatureSubpacket.preferredAEADAlgorithms:this.preferredAEADAlgorithms=[...t.subarray(i,t.length)];break;default:{const u=Error("Unknown signature subpacket type "+s);if(a)throw u;Pe.printDebug(u)}}}readSubPackets(t,r=!0,i){const a=Pe.readNumber(t.subarray(0,2));let s=2;for(;s<2+a;){const u=lD(t.subarray(s,t.length));s+=u.offset,this.readSubPacket(t.subarray(s,s+u.len),r,i),s+=u.len}return s}toSign(t,r){const i=he.signature;switch(t){case i.binary:return r.text!==null?Pe.encodeUTF8(r.getText(!0)):r.getBytes(!0);case i.text:{const a=r.getBytes(!0);return Pe.canonicalizeEOL(a)}case i.standalone:return new Uint8Array(0);case i.certGeneric:case i.certPersona:case i.certCasual:case i.certPositive:case i.certRevocation:{let a,s;if(r.userID)s=180,a=r.userID;else{if(!r.userAttribute)throw Error("Either a userID or userAttribute packet needs to be supplied for certification.");s=209,a=r.userAttribute}const u=a.write();return Pe.concat([this.toSign(i.key,r),new Uint8Array([s]),Pe.writeNumber(u.length,4),u])}case i.subkeyBinding:case i.subkeyRevocation:case i.keyBinding:return Pe.concat([this.toSign(i.key,r),this.toSign(i.key,{key:r.bind})]);case i.key:if(r.key===void 0)throw Error("Key packet is required for this signature.");return r.key.writeForHash(this.version);case i.keyRevocation:return this.toSign(i.key,r);case i.timestamp:return new Uint8Array(0);case i.thirdParty:throw Error("Not implemented");default:throw Error("Unknown signature type.")}}calculateTrailer(t,r){let i=0;return fr(hl(this.signatureData),a=>{i+=a.length},()=>{const a=[];return this.version!==5||this.signatureType!==he.signature.binary&&this.signatureType!==he.signature.text||(r?a.push(new Uint8Array(6)):a.push(t.writeHeader())),a.push(new Uint8Array([this.version,255])),this.version===5&&a.push(new Uint8Array(4)),a.push(Pe.writeNumber(i,4)),Pe.concat(a)})}toHash(t,r,i=!1){const a=this.toSign(t,r);return Pe.concat([a,this.signatureData,this.calculateTrailer(r,i)])}async hash(t,r,i,a=!1){return i||(i=this.toHash(t,r,a)),Kt.hash.digest(this.hashAlgorithm,i)}async verify(t,r,i,a=new Date,s=!1,u=Nt){if(!this.issuerKeyID.equals(t.getKeyID()))throw Error("Signature was not issued by the given public key");if(this.publicKeyAlgorithm!==t.algorithm)throw Error("Public key algorithm used to sign signature does not match issuer key algorithm.");const c=r===he.signature.binary||r===he.signature.text;if(!(this[Oc]&&!c)){let n,p;if(this.hashed?p=await this.hashed:(n=this.toHash(r,i,s),p=await this.hash(r,i,n)),p=await gr(p),this.signedHashValue[0]!==p[0]||this.signedHashValue[1]!==p[1])throw Error("Signed digest did not match");if(this.params=await this.params,this[Oc]=await Kt.signature.verify(this.publicKeyAlgorithm,this.hashAlgorithm,this.params,t.publicParams,n,p),!this[Oc])throw Error("Signature verification failed")}const h=Pe.normalizeDate(a);if(h&&this.created>h)throw Error("Signature creation time is in the future");if(h&&h>=this.getExpirationTime())throw Error("Signature is expired");if(u.rejectHashAlgorithms.has(this.hashAlgorithm))throw Error("Insecure hash algorithm: "+he.read(he.hash,this.hashAlgorithm).toUpperCase());if(u.rejectMessageHashAlgorithms.has(this.hashAlgorithm)&&[he.signature.binary,he.signature.text].includes(this.signatureType))throw Error("Insecure message hash algorithm: "+he.read(he.hash,this.hashAlgorithm).toUpperCase());if(this.rawNotations.forEach(({name:n,critical:p})=>{if(p&&u.knownNotations.indexOf(n)<0)throw Error("Unknown critical notation: "+n)}),this.revocationKeyClass!==null)throw Error("This key is intended to be revoked with an authorized key, which OpenPGP.js does not support.")}isExpired(t=new Date){const r=Pe.normalizeDate(t);return r!==null&&!(this.created<=r&&rHr.prototype.calculateTrailer.apply(await this.correspondingSig,t))}async verify(){const t=await this.correspondingSig;if(!t||t.constructor.tag!==he.packet.signature)throw Error("Corresponding signature packet missing");if(t.signatureType!==this.signatureType||t.hashAlgorithm!==this.hashAlgorithm||t.publicKeyAlgorithm!==this.publicKeyAlgorithm||!t.issuerKeyID.equals(this.issuerKeyID))throw Error("Corresponding signature packet does not match one-pass signature packet");return t.hashed=this.hashed,t.verify.apply(t,arguments)}}function aW(e,t){if(!t[e]){let r;try{r=he.read(he.packet,e)}catch{throw new kr("Unknown packet type with tag: "+e)}throw Error("Packet not allowed in this context: "+r)}return new t[e]}ya.prototype.hash=Hr.prototype.hash,ya.prototype.toHash=Hr.prototype.toHash,ya.prototype.toSign=Hr.prototype.toSign;class zn extends Array{static async fromBinary(t,r,i=Nt){const a=new zn;return await a.read(t,r,i),a}async read(t,r,i=Nt){this.stream=As(t,async(s,u)=>{const c=Ri(u);try{for(;;)if(await c.ready,await sV(s,async h=>{try{if(h.tag===he.packet.marker||h.tag===he.packet.trust)return;const n=aW(h.tag,r);n.packets=new zn,n.fromStream=Pe.isStream(h.packet),await n.read(h.packet,i),await c.write(n)}catch(n){const p=!i.ignoreUnsupportedPackets&&n instanceof kr,d=!(i.ignoreMalformedPackets||n instanceof kr);if(p||d||Ep(h.tag))await c.abort(n);else{const v=new dy(h.tag,h.packet);await c.write(v)}Pe.printDebugError(n)}}))return await c.ready,void await c.close()}catch(h){await c.abort(h)}});const a=ls(this.stream);for(;;){const{done:s,value:u}=await a.read();if(s?this.stream=null:this.push(u),s||Ep(u.constructor.tag))break}a.releaseLock()}write(){const t=[];for(let r=0;r{if(s.push(h),u+=h.length,u>=c){const n=Math.min(Math.log(u)/Math.LN2|0,30),p=2**n,d=Pe.concat([aV(n)].concat(s));return s=[d.subarray(1+p)],u=s[0].length,d.subarray(0,1+p)}},()=>Pe.concat([Md(u)].concat(s))))}else{if(Pe.isStream(a)){let s=0;t.push(fr(hl(a),u=>{s+=u.length},()=>p5(i,s)))}else t.push(p5(i,a.length));t.push(a)}}return Pe.concat(t)}filterByTag(...t){const r=new zn,i=a=>s=>a===s;for(let a=0;ar.constructor.tag===t)}indexOfTag(...t){const r=[],i=this,a=s=>u=>s===u;for(let s=0;s{this.algorithm=await i.readByte(),this.compressed=i.remainder(),await this.decompress(r)})}write(){return this.compressed===null&&this.compress(),Pe.concat([new Uint8Array([this.algorithm]),this.compressed])}async decompress(t=Nt){const r=he.read(he.compression,this.algorithm),i=lW[r];if(!i)throw Error(r+" decompression not supported");this.packets=await zn.fromBinary(i(this.compressed),sW,t)}compress(){const t=he.read(he.compression,this.algorithm),r=oW[t];if(!r)throw Error(t+" compression not supported");this.compressed=r(this.packets.write(),this.deflateLevel)}}const Xa=Pe.getNodeZlib();function hk(e){return e}function yv(e,t,r={}){return function(i){return!Pe.isStream(i)||mr(i)?wo(()=>gr(i).then(a=>new Promise((s,u)=>{e(a,r,(c,h)=>{if(c)return u(c);s(h)})}))):Xv(j0(i).pipe(t(r)))}}function bv(e,t={}){return function(r){const i=new e(t);return fr(r,a=>{if(a.length)return i.push(a,cd),i.result},()=>{if(e===_y)return i.push([],Ir),i.result})}}function pk(e){return function(t){return wo(async()=>e(await gr(t)))}}const oW=Xa?{zip:(e,t)=>yv(Xa.deflateRaw,Xa.createDeflateRaw,{level:t})(e),zlib:(e,t)=>yv(Xa.deflate,Xa.createDeflate,{level:t})(e)}:{zip:(e,t)=>bv(_y,{raw:!0,level:t})(e),zlib:(e,t)=>bv(_y,{level:t})(e)},lW=Xa?{uncompressed:hk,zip:yv(Xa.inflateRaw,Xa.createInflateRaw),zlib:yv(Xa.inflate,Xa.createInflate),bzip2:pk(fk)}:{uncompressed:hk,zip:bv(uk,{raw:!0}),zlib:bv(uk),bzip2:pk(fk)},uW=Pe.constructAllowedPackets([Bu,Rd,ya,Hr]);class WD{static get tag(){return he.packet.symEncryptedIntegrityProtectedData}constructor(){this.version=1,this.encrypted=null,this.packets=null}async read(t){await Jv(t,async r=>{const i=await r.readByte();if(i!==1)throw new kr(`Version ${i} of the SEIP packet is unsupported.`);this.encrypted=r.remainder()})}write(){return Pe.concat([new Uint8Array([1]),this.encrypted])}async encrypt(t,r,i=Nt){const{blockSize:a}=Kt.getCipher(t);let s=this.packets.write();mr(s)&&(s=await gr(s));const u=await Kt.getPrefixRandom(t),c=new Uint8Array([211,20]),h=Pe.concat([u,s,c]),n=await Kt.hash.sha1(cu(h)),p=Pe.concat([h,n]);return this.encrypted=await Kt.mode.cfb.encrypt(t,r,p,new Uint8Array(a),i),!0}async decrypt(t,r,i=Nt){const{blockSize:a}=Kt.getCipher(t);let s=hl(this.encrypted);mr(s)&&(s=await gr(s));const u=await Kt.mode.cfb.decrypt(t,r,s,new Uint8Array(a)),c=Wr(cu(u),-20),h=Wr(u,0,-20),n=Promise.all([gr(await Kt.hash.sha1(cu(h))),gr(c)]).then(([v,m])=>{if(!Pe.equalsUint8Array(v,m))throw Error("Modification detected.");return new Uint8Array}),p=Wr(h,a+2);let d=Wr(p,0,-2);return d=Ti([d,wo(()=>n)]),Pe.isStream(s)&&i.allowUnauthenticatedStream||(d=await gr(d)),this.packets=await zn.fromBinary(d,uW,i),!0}}const cW=Pe.constructAllowedPackets([Bu,Rd,ya,Hr]);class am{static get tag(){return he.packet.aeadEncryptedData}constructor(){this.version=1,this.cipherAlgorithm=null,this.aeadAlgorithm=he.aead.eax,this.chunkSizeByte=null,this.iv=null,this.encrypted=null,this.packets=null}async read(t){await Jv(t,async r=>{const i=await r.readByte();if(i!==1)throw new kr(`Version ${i} of the AEAD-encrypted data packet is not supported.`);this.cipherAlgorithm=await r.readByte(),this.aeadAlgorithm=await r.readByte(),this.chunkSizeByte=await r.readByte();const a=Kt.getAEADMode(this.aeadAlgorithm);this.iv=await r.readBytes(a.ivLength),this.encrypted=r.remainder()})}write(){return Pe.concat([new Uint8Array([this.version,this.cipherAlgorithm,this.aeadAlgorithm,this.chunkSizeByte]),this.iv,this.encrypted])}async decrypt(t,r,i=Nt){this.packets=await zn.fromBinary(await this.crypt("decrypt",r,hl(this.encrypted)),cW,i)}async encrypt(t,r,i=Nt){this.cipherAlgorithm=t;const{ivLength:a}=Kt.getAEADMode(this.aeadAlgorithm);this.iv=Kt.random.getRandomBytes(a),this.chunkSizeByte=i.aeadChunkSizeByte;const s=this.packets.write();this.encrypted=await this.crypt("encrypt",r,s)}async crypt(t,r,i){const a=Kt.getAEADMode(this.aeadAlgorithm),s=await a(this.cipherAlgorithm,r),u=t==="decrypt"?a.tagLength:0,c=t==="encrypt"?a.tagLength:0,h=2**(this.chunkSizeByte+6)+u,n=new ArrayBuffer(21),p=new Uint8Array(n,0,13),d=new Uint8Array(n),v=new DataView(n),m=new Uint8Array(n,5,8);p.set([192|am.tag,this.version,this.cipherAlgorithm,this.aeadAlgorithm,this.chunkSizeByte],0);let g=0,y=Promise.resolve(),b=0,k=0;const O=this.iv;return As(i,async(S,x)=>{if(Pe.isStream(S)!=="array"){const T=new bu({},{highWaterMark:Pe.getHardwareConcurrency()*2**(this.chunkSizeByte+6),size:M=>M.length});vo(T.readable,x),x=T.writable}const E=ls(S),w=Ri(x);try{for(;;){let T=await E.readBytes(h+u)||new Uint8Array;const M=T.subarray(T.length-u);let A,L;if(T=T.subarray(0,T.length-u),!g||T.length?(E.unshift(M),A=s[t](T,a.getNonce(O,m),p),k+=T.length-u+c):(v.setInt32(17,b),A=s[t](M,a.getNonce(O,m),d),k+=c,L=!0),b+=T.length-u,y=y.then(()=>A).then(async Y=>{await w.ready,await w.write(Y),k-=Y.length}).catch(Y=>w.abort(Y)),(L||k>w.desiredSize)&&await y,L){await w.close();break}v.setInt32(9,++g)}}catch(T){await w.abort(T)}})}}class gy{static get tag(){return he.packet.publicKeyEncryptedSessionKey}constructor(){this.version=3,this.publicKeyID=new mo,this.publicKeyAlgorithm=null,this.sessionKey=null,this.sessionKeyAlgorithm=null,this.encrypted={}}read(t){if(this.version=t[0],this.version!==3)throw new kr(`Version ${this.version} of the PKESK packet is unsupported.`);this.publicKeyID.read(t.subarray(1,t.length)),this.publicKeyAlgorithm=t[9],this.encrypted=Kt.parseEncSessionKeyParams(this.publicKeyAlgorithm,t.subarray(10))}write(){const t=[new Uint8Array([this.version]),this.publicKeyID.write(),new Uint8Array([this.publicKeyAlgorithm]),Kt.serializeParams(this.publicKeyAlgorithm,this.encrypted)];return Pe.concatUint8Array(t)}async encrypt(t){const r=Pe.concatUint8Array([new Uint8Array([he.write(he.symmetric,this.sessionKeyAlgorithm)]),this.sessionKey,Pe.writeChecksum(this.sessionKey)]),i=he.write(he.publicKey,this.publicKeyAlgorithm);this.encrypted=await Kt.publicKeyEncrypt(i,t.publicParams,r,t.getFingerprintBytes())}async decrypt(t,r){if(this.publicKeyAlgorithm!==t.algorithm)throw Error("Decryption error");const i=r?Pe.concatUint8Array([new Uint8Array([r.sessionKeyAlgorithm]),r.sessionKey,Pe.writeChecksum(r.sessionKey)]):null,a=await Kt.publicKeyDecrypt(this.publicKeyAlgorithm,t.publicParams,t.privateParams,this.encrypted,t.getFingerprintBytes(),i),s=a[0],u=a.subarray(1,a.length-2),c=a.subarray(a.length-2),h=Pe.writeChecksum(u),n=h[0]===c[0]&h[1]===c[1];if(r){const p=n&s===r.sessionKeyAlgorithm&u.length===r.sessionKey.length;this.sessionKeyAlgorithm=Pe.selectUint8(p,s,r.sessionKeyAlgorithm),this.sessionKey=Pe.selectUint8Array(p,u,r.sessionKey)}else{if(!(n&&he.read(he.symmetric,s)))throw Error("Decryption error");this.sessionKey=u,this.sessionKeyAlgorithm=s}}}class nd{constructor(t=Nt){this.algorithm=he.hash.sha256,this.type="iterated",this.c=t.s2kIterationCountByte,this.salt=null}getCount(){return 16+(15&this.c)<<6+(this.c>>4)}read(t){let r=0;switch(this.type=he.read(he.s2k,t[r++]),this.algorithm=t[r++],this.type){case"simple":break;case"salted":this.salt=t.subarray(r,r+8),r+=8;break;case"iterated":this.salt=t.subarray(r,r+8),r+=8,this.c=t[r++];break;case"gnu":if(Pe.uint8ArrayToString(t.subarray(r,r+3))!=="GNU")throw Error("Unknown s2k type.");if(r+=3,1e3+t[r++]!==1001)throw Error("Unknown s2k gnu protection mode.");this.type="gnu-dummy";break;default:throw Error("Unknown s2k type.")}return r}write(){if(this.type==="gnu-dummy")return new Uint8Array([101,0,...Pe.stringToUint8Array("GNU"),1]);const t=[new Uint8Array([he.write(he.s2k,this.type),this.algorithm])];switch(this.type){case"simple":break;case"salted":t.push(this.salt);break;case"iterated":t.push(this.salt),t.push(new Uint8Array([this.c]));break;case"gnu":throw Error("GNU s2k type not supported.");default:throw Error("Unknown s2k type.")}return Pe.concatUint8Array(t)}async produceKey(t,r){t=Pe.encodeUTF8(t);const i=[];let a=0,s=0;for(;a{this.privateParams[t].fill(0),delete this.privateParams[t]}),this.privateParams=null,this.isEncrypted=!0)}}async function vk(e,t,r){const{keySize:i}=Kt.getCipher(r);return e.produceKey(t,i)}var hW=H0(function(e){(function(t){function r(a){function s(){return Zt0&&(at.semantic=" "),at}}function S(rt,at){return function(){var xt,Ut,Ee,Be,Fe;for(Be=u(),xt=n("star"),Ee=0,Fe=at===void 0?0:at;(Ut=rt())!==null;)Ee+=1,d(xt,Ut);return Ee>=Fe?xt:(c(Be),null)}}function x(rt){return rt.charCodeAt(0)>=128}function E(){return p("cr",m("\r")())}function w(){return p("crlf",g(E,A)())}function T(){return p("dquote",m('"')())}function M(){return p("htab",m(" ")())}function A(){return p("lf",m(` `)())}function L(){return p("sp",m(" ")())}function Y(){return p("vchar",v(function(rt){var at=rt.charCodeAt(0),xt=33<=at&&at<=126;return a.rfc6532&&(xt=xt||x(rt)),xt}))}function N(){return p("wsp",y(L,M)())}function W(){var rt=p("quoted-pair",y(g(m("\\"),y(Y,N)),V)());return rt===null?null:(rt.semantic=rt.semantic[1],rt)}function j(){return p("fws",y(te,g(b(g(S(N),k(w))),S(N,1)))())}function ue(){return p("ctext",y(function(){return v(function(rt){var at=rt.charCodeAt(0),xt=33<=at&&at<=39||42<=at&&at<=91||93<=at&&at<=126;return a.rfc6532&&(xt=xt||x(rt)),xt})},se)())}function Te(){return p("ccontent",y(ue,W,pe)())}function pe(){return p("comment",g(m("("),S(g(b(j),Te)),b(j),m(")"))())}function ye(){return p("cfws",y(g(S(g(b(j),pe),1),b(j)),j)())}function de(){return p("atext",v(function(rt){var at="a"<=rt&&rt<="z"||"A"<=rt&&rt<="Z"||"0"<=rt&&rt<="9"||["!","#","$","%","&","'","*","+","-","/","=","?","^","_","`","{","|","}","~"].indexOf(rt)>=0;return a.rfc6532&&(at=at||x(rt)),at}))}function ke(){return p("atom",g(O(b(ye)),S(de,1),O(b(ye)))())}function ie(){var rt,at;return(rt=p("dot-atom-text",S(de,1)()))===null||(at=S(g(m("."),S(de,1)))())!==null&&d(rt,at),rt}function be(){return p("dot-atom",g(k(b(ye)),ie,k(b(ye)))())}function Ie(){return p("qtext",y(function(){return v(function(rt){var at=rt.charCodeAt(0),xt=at===33||35<=at&&at<=91||93<=at&&at<=126;return a.rfc6532&&(xt=xt||x(rt)),xt})},B)())}function De(){return p("qcontent",y(Ie,W)())}function ae(){return p("quoted-string",g(k(b(ye)),k(T),S(g(b(O(j)),De)),b(k(j)),k(T),k(b(ye)))())}function ee(){return p("word",y(ke,ae)())}function F(){return p("address",y(I,fe)())}function I(){return p("mailbox",y(J,xe)())}function J(){return p("name-addr",g(b(Ce),q)())}function q(){return p("angle-addr",y(g(k(b(ye)),m("<"),xe,m(">"),k(b(ye))),oe)())}function fe(){return p("group",g(Ce,m(":"),b(re),m(";"),k(b(ye)))())}function Ce(){return p("display-name",((rt=p("phrase",y(G,S(ee,1))()))!==null&&(rt.semantic=function(at){return at.replace(/([ \t]|\r\n)+/g," ").replace(/^\s*/,"").replace(/\s*$/,"")}(rt.semantic)),rt));var rt}function X(){return p("mailbox-list",y(g(I,S(g(m(","),I))),le)())}function H(){return p("address-list",y(g(F,S(g(m(","),F))),Ve)())}function re(){return p("group-list",y(X,k(ye),Je)())}function Z(){return p("local-part",y(gt,be,ae)())}function Oe(){return p("dtext",y(function(){return v(function(rt){var at=rt.charCodeAt(0),xt=33<=at&&at<=90||94<=at&&at<=126;return a.rfc6532&&(xt=xt||x(rt)),xt})},At)())}function ve(){return p("domain-literal",g(k(b(ye)),m("["),S(g(b(j),Oe)),b(j),m("]"),k(b(ye)))())}function U(){return p("domain",(rt=y(Pt,be,ve)(),a.rejectTLD&&rt&&rt.semantic&&rt.semantic.indexOf(".")<0?null:(rt&&(rt.semantic=rt.semantic.replace(/\s+/g,"")),rt)));var rt}function xe(){return p("addr-spec",g(Z,m("@"),U)())}function me(){return a.strict?null:p("obs-NO-WS-CTL",v(function(rt){var at=rt.charCodeAt(0);return 1<=at&&at<=8||at===11||at===12||14<=at&&at<=31||at===127}))}function se(){return a.strict?null:p("obs-ctext",me())}function B(){return a.strict?null:p("obs-qtext",me())}function V(){return a.strict?null:p("obs-qp",g(m("\\"),y(m("\0"),me,A,E))())}function G(){return a.strict?null:a.atInDisplayName?p("obs-phrase",g(ee,S(y(ee,m("."),m("@"),O(ye))))()):p("obs-phrase",g(ee,S(y(ee,m("."),O(ye))))())}function te(){return a.strict?null:p("obs-FWS",S(g(k(b(w)),N),1)())}function oe(){return a.strict?null:p("obs-angle-addr",g(k(b(ye)),m("<"),_e,xe,m(">"),k(b(ye)))())}function _e(){return a.strict?null:p("obs-route",g(ce,m(":"))())}function ce(){return a.strict?null:p("obs-domain-list",g(S(y(k(ye),m(","))),m("@"),U,S(g(m(","),k(b(ye)),b(g(m("@"),U)))))())}function le(){return a.strict?null:p("obs-mbox-list",g(S(g(k(b(ye)),m(","))),I,S(g(m(","),b(g(I,k(ye))))))())}function Ve(){return a.strict?null:p("obs-addr-list",g(S(g(k(b(ye)),m(","))),F,S(g(m(","),b(g(F,k(ye))))))())}function Je(){return a.strict?null:p("obs-group-list",g(S(g(k(b(ye)),m(",")),1),k(b(ye)))())}function gt(){return a.strict?null:p("obs-local-part",g(ee,S(g(m("."),ee)))())}function Pt(){return a.strict?null:p("obs-domain",g(ke,S(g(m("."),ke)))())}function At(){return a.strict?null:p("obs-dtext",y(me,W)())}function It(rt,at){var xt,Ut,Ee;if(at==null)return null;for(Ut=[at];Ut.length>0;){if((Ee=Ut.pop()).name===rt)return Ee;for(xt=Ee.children.length-1;xt>=0;xt-=1)Ut.push(Ee.children[xt])}return null}function ht(rt,at){var xt,Ut,Ee,Be,Fe;if(at==null)return null;for(Ut=[at],Be=[],Fe={},xt=0;xt0;)if((Ee=Ut.pop()).name in Fe)Be.push(Ee);else for(xt=Ee.children.length-1;xt>=0;xt-=1)Ut.push(Ee.children[xt]);return Be}function Rt(rt){var at,xt,Ut,Ee,Be;if(rt===null)return null;for(at=[],xt=ht(["group","mailbox"],rt),Ut=0;Ut1?null:Fe.addresses&&Fe.addresses[0]}(Be):a.simple?Be&&Be.addresses:Be}function Tt(rt){var at,xt=It("display-name",rt),Ut=[],Ee=ht(["mailbox"],rt);for(at=0;at0;)for((yt=pt.pop()).name===Le&&Dt.push(yt),ot=yt.children.length-1;ot>=0;ot-=1)pt.push(yt.children[ot]);return Dt}("cfws",rt),Ee=ht(["comment"],rt),Be=It("local-part",xt),Fe=It("domain",xt);return{node:rt,parts:{name:at,address:xt,local:Be,domain:Fe,comments:Ut},type:rt.name,name:nn(at),address:nn(xt),local:nn(Be),domain:nn(Fe),comments:Xt(Ee),groupName:nn(rt.groupName)}}function nn(rt){return rt!=null?rt.semantic:null}function Xt(rt){var at="";if(rt)for(var xt=0;xt`),r.userID=i.join(" "),r}read(t,r=Nt){const i=Pe.decodeUTF8(t);if(i.length>r.maxUserIDLength)throw Error("User ID string is too long");try{const{name:a,address:s,comments:u}=hW.parseOneAddress({input:i,atInDisplayName:!0});this.comment=u.replace(/^\(|\)$/g,""),this.name=a,this.email=s}catch{}this.userID=i}write(){return Pe.encodeUTF8(this.userID)}equals(t){return t&&t.userID===this.userID}}class nb extends sm{static get tag(){return he.packet.secretSubkey}constructor(t=new Date,r=Nt){super(t,r)}}class KD{constructor(t){this.packets=t||new zn}write(){return this.packets.write()}armor(t=Nt){return Pd(he.armor.signature,this.write(),void 0,void 0,void 0,t)}getSigningKeyIDs(){return this.packets.map(t=>t.issuerKeyID)}}async function HD(e,t){const r=new nb(e.date,t);return r.packets=null,r.algorithm=he.write(he.publicKey,e.algorithm),await r.generate(e.rsaBits,e.curve),await r.computeFingerprintAndKeyID(),r}async function pW(e,t){const r=new sm(e.date,t);return r.packets=null,r.algorithm=he.write(he.publicKey,e.algorithm),await r.generate(e.rsaBits,e.curve,e.config),await r.computeFingerprintAndKeyID(),r}async function Ua(e,t,r,i,a=new Date,s){let u,c;for(let h=e.length-1;h>=0;h--)try{(!u||e[h].created>=u.created)&&(await e[h].verify(t,r,i,a,void 0,s),u=e[h])}catch(n){c=n}if(!u)throw Pe.wrapError(`Could not find valid ${he.read(he.signature,r)} signature in key ${t.getKeyID().toHex()}`.replace("certGeneric ","self-").replace(/([a-z])([A-Z])/g,(h,n,p)=>n+" "+p.toLowerCase()),c);return u}function yy(e,t,r=new Date){const i=Pe.normalizeDate(r);if(i!==null){const a=wv(e,t);return!(e.created<=i&&i0&&(s.keyExpirationTime=r.keyExpirationTime,s.keyNeverExpires=!1),await s.sign(t,a,r.date),s}async function lm(e,t,r=new Date,i={},a){let s=a.preferredHashAlgorithm,u=s;if(e){const c=await e.getPrimaryUser(r,i,a);c.selfCertification.preferredHashAlgorithms&&([u]=c.selfCertification.preferredHashAlgorithms,s=Kt.hash.getHashByteLength(s)<=Kt.hash.getHashByteLength(u)?u:s)}switch(Object.getPrototypeOf(t)){case sm.prototype:case ma.prototype:case nb.prototype:case Ld.prototype:switch(t.algorithm){case he.publicKey.ecdh:case he.publicKey.ecdsa:case he.publicKey.eddsa:u=Kt.publicKey.elliptic.getPreferredHashAlgo(t.publicParams.oid)}}return Kt.hash.getHashByteLength(s)<=Kt.hash.getHashByteLength(u)?u:s}async function by(e,t=[],r=new Date,i=[],a=Nt){const s={symmetric:he.symmetric.aes128,aead:he.aead.eax,compression:he.compression.uncompressed}[e],u={symmetric:a.preferredSymmetricAlgorithm,aead:a.preferredAEADAlgorithm,compression:a.preferredCompressionAlgorithm}[e],c={symmetric:"preferredSymmetricAlgorithms",aead:"preferredAEADAlgorithms",compression:"preferredCompressionAlgorithms"}[e];return(await Promise.all(t.map(async function(h,n){const p=(await h.getPrimaryUser(r,i[n],a)).selfCertification[c];return!!p&&p.indexOf(u)>=0}))).every(Boolean)?u:s}async function vl(e,t,r,i,a,s,u=[],c=!1,h){if(r.isDummy())throw Error("Cannot sign with a gnu-dummy key.");if(!r.isDecrypted())throw Error("Signing key is not decrypted.");const n=new Hr;return Object.assign(n,i),n.publicKeyAlgorithm=r.algorithm,n.hashAlgorithm=await lm(t,r,a,s,h),n.rawNotations=u,await n.sign(r,e,a,c),n}async function al(e,t,r,i=new Date,a){(e=e[r])&&(t[r].length?await Promise.all(e.map(async function(s){s.isExpired(i)||a&&!await a(s)||t[r].some(function(u){return Pe.equalsUint8Array(u.writeParams(),s.writeParams())})||t[r].push(s)})):t[r]=e)}async function Su(e,t,r,i,a,s,u=new Date,c){s=s||e;const h=[];return await Promise.all(i.map(async function(n){try{a&&!n.issuerKeyID.equals(a.issuerKeyID)||(await n.verify(s,t,r,c.revocationsExpire?u:null,!1,c),h.push(n.issuerKeyID))}catch{}})),a?(a.revoked=!!h.some(n=>n.equals(a.issuerKeyID))||a.revoked||!1,a.revoked):h.length>0}function wv(e,t){let r;return t.keyNeverExpires===!1&&(r=e.created.getTime()+1e3*t.keyExpirationTime),r?new Date(r):1/0}function wy(e,t={}){switch(e.type=e.type||t.type,e.curve=e.curve||t.curve,e.rsaBits=e.rsaBits||t.rsaBits,e.keyExpirationTime=e.keyExpirationTime!==void 0?e.keyExpirationTime:t.keyExpirationTime,e.passphrase=Pe.isString(e.passphrase)?e.passphrase:t.passphrase,e.date=e.date||t.date,e.sign=e.sign||!1,e.type){case"ecc":try{e.curve=he.write(he.curve,e.curve)}catch{throw Error("Unknown curve")}e.curve!==he.curve.ed25519&&e.curve!==he.curve.curve25519||(e.curve=e.sign?he.curve.ed25519:he.curve.curve25519),e.sign?e.algorithm=e.curve===he.curve.ed25519?he.publicKey.eddsa:he.publicKey.ecdsa:e.algorithm=he.publicKey.ecdh;break;case"rsa":e.algorithm=he.publicKey.rsaEncryptSign;break;default:throw Error("Unsupported key type "+e.type)}return e}function mk(e,t){const r=e.algorithm;return r!==he.publicKey.rsaEncrypt&&r!==he.publicKey.elgamal&&r!==he.publicKey.ecdh&&(!t.keyFlags||(t.keyFlags[0]&he.keyFlags.signData)!=0)}function _k(e,t){const r=e.algorithm;return r!==he.publicKey.dsa&&r!==he.publicKey.rsaSign&&r!==he.publicKey.ecdsa&&r!==he.publicKey.eddsa&&(!t.keyFlags||(t.keyFlags[0]&he.keyFlags.encryptCommunication)!=0||(t.keyFlags[0]&he.keyFlags.encryptStorage)!=0)}function gk(e,t){return!!t.allowInsecureDecryptionWithSigningKeys||!e.keyFlags||(e.keyFlags[0]&he.keyFlags.encryptCommunication)!=0||(e.keyFlags[0]&he.keyFlags.encryptStorage)!=0}function ou(e,t){const r=he.write(he.publicKey,e.algorithm),i=e.getAlgorithmInfo();if(t.rejectPublicKeyAlgorithms.has(r))throw Error(i.algorithm+" keys are considered too weak.");switch(r){case he.publicKey.rsaEncryptSign:case he.publicKey.rsaSign:case he.publicKey.rsaEncrypt:if(i.bitsp.getKeys(h).length>0);return n.length===0?null:(await Promise.all(n.map(async p=>{const d=await p.getSigningKey(h,t.created,void 0,a);if(t.revoked||await s.isRevoked(t,d.keyPacket,i,a))throw Error("User certificate is revoked");try{await t.verify(d.keyPacket,he.signature.certGeneric,c,i,void 0,a)}catch(v){throw Pe.wrapError("User certificate is invalid",v)}})),!0)}async verifyAllCertifications(t,r=new Date,i){const a=this,s=this.selfCertifications.concat(this.otherCertifications);return Promise.all(s.map(async u=>({keyID:u.issuerKeyID,valid:await a.verifyCertificate(u,t,r,i).catch(()=>!1)})))}async verify(t=new Date,r){if(!this.selfCertifications.length)throw Error("No self-certifications found");const i=this,a=this.mainKey.keyPacket,s={userID:this.userID,userAttribute:this.userAttribute,key:a};let u;for(let c=this.selfCertifications.length-1;c>=0;c--)try{const h=this.selfCertifications[c];if(h.revoked||await i.isRevoked(h,void 0,t,r))throw Error("Self-certification is revoked");try{await h.verify(a,he.signature.certGeneric,s,t,void 0,r)}catch(n){throw Pe.wrapError("Self-certification is invalid",n)}return!0}catch(h){u=h}throw u}async update(t,r,i){const a=this.mainKey.keyPacket,s={userID:this.userID,userAttribute:this.userAttribute,key:a};await al(t,this,"selfCertifications",r,async function(u){try{return await u.verify(a,he.signature.certGeneric,s,r,!1,i),!0}catch{return!1}}),await al(t,this,"otherCertifications",r),await al(t,this,"revocationSignatures",r,function(u){return Su(a,he.signature.certRevocation,s,[u],void 0,void 0,r,i)})}async revoke(t,{flag:r=he.reasonForRevocation.noReason,string:i=""}={},a=new Date,s=Nt){const u={userID:this.userID,userAttribute:this.userAttribute,key:t},c=new rd(u.userID||u.userAttribute,this.mainKey);return c.revocationSignatures.push(await vl(u,null,t,{signatureType:he.signature.certRevocation,reasonForRevocationFlag:he.write(he.reasonForRevocation,r),reasonForRevocationString:i},a,void 0,void 0,!1,s)),await c.update(this),c}}class ku{constructor(t,r){this.keyPacket=t,this.bindingSignatures=[],this.revocationSignatures=[],this.mainKey=r}toPacketList(){const t=new zn;return t.push(this.keyPacket),t.push(...this.revocationSignatures),t.push(...this.bindingSignatures),t}clone(){const t=new ku(this.keyPacket,this.mainKey);return t.bindingSignatures=[...this.bindingSignatures],t.revocationSignatures=[...this.revocationSignatures],t}async isRevoked(t,r,i=new Date,a=Nt){const s=this.mainKey.keyPacket;return Su(s,he.signature.subkeyRevocation,{key:s,bind:this.keyPacket},this.revocationSignatures,t,r,i,a)}async verify(t=new Date,r=Nt){const i=this.mainKey.keyPacket,a={key:i,bind:this.keyPacket},s=await Ua(this.bindingSignatures,i,he.signature.subkeyBinding,a,t,r);if(s.revoked||await this.isRevoked(s,null,t,r))throw Error("Subkey is revoked");if(yy(this.keyPacket,s,t))throw Error("Subkey is expired");return s}async getExpirationTime(t=new Date,r=Nt){const i=this.mainKey.keyPacket,a={key:i,bind:this.keyPacket};let s;try{s=await Ua(this.bindingSignatures,i,he.signature.subkeyBinding,a,t,r)}catch{return null}const u=wv(this.keyPacket,s),c=s.getExpirationTime();return us.bindingSignatures[h].created&&(s.bindingSignatures[h]=c),!1;try{return await c.verify(a,he.signature.subkeyBinding,u,r,void 0,i),!0}catch{return!1}}),await al(t,this,"revocationSignatures",r,function(c){return Su(a,he.signature.subkeyRevocation,u,[c],void 0,void 0,r,i)})}async revoke(t,{flag:r=he.reasonForRevocation.noReason,string:i=""}={},a=new Date,s=Nt){const u={key:t,bind:this.keyPacket},c=new ku(this.keyPacket,this.mainKey);return c.revocationSignatures.push(await vl(u,null,t,{signatureType:he.signature.subkeyRevocation,reasonForRevocationFlag:he.write(he.reasonForRevocation,r),reasonForRevocationString:i},a,void 0,void 0,!1,s)),await c.update(this),c}hasSameFingerprintAs(t){return this.keyPacket.hasSameFingerprintAs(t.keyPacket||t)}}["getKeyID","getFingerprint","getAlgorithmInfo","getCreationTime","isDecrypted"].forEach(e=>{ku.prototype[e]=function(){return this.keyPacket[e]()}});const vW=Pe.constructAllowedPackets([Hr]),yk=new Set([he.packet.publicKey,he.packet.privateKey]),bk=new Set([he.packet.publicKey,he.packet.privateKey,he.packet.publicSubkey,he.packet.privateSubkey]);class YD{packetListToStructure(t,r=new Set){let i,a,s,u;for(const c of t){if(c instanceof dy){bk.has(c.tag)&&!u&&(u=yk.has(c.tag)?yk:bk);continue}const h=c.constructor.tag;if(u){if(!u.has(h))continue;u=null}if(r.has(h))throw Error("Unexpected packet type: "+h);switch(h){case he.packet.publicKey:case he.packet.secretKey:if(this.keyPacket)throw Error("Key block contains multiple keys");if(this.keyPacket=c,a=this.getKeyID(),!a)throw Error("Missing Key ID");break;case he.packet.userID:case he.packet.userAttribute:i=new rd(c,this),this.users.push(i);break;case he.packet.publicSubkey:case he.packet.secretSubkey:i=null,s=new ku(c,this),this.subkeys.push(s);break;case he.packet.signature:switch(c.signatureType){case he.signature.certGeneric:case he.signature.certPersona:case he.signature.certCasual:case he.signature.certPositive:if(!i){Pe.printDebug("Dropping certification signatures without preceding user packet");continue}c.issuerKeyID.equals(a)?i.selfCertifications.push(c):i.otherCertifications.push(c);break;case he.signature.certRevocation:i?i.revocationSignatures.push(c):this.directSignatures.push(c);break;case he.signature.key:this.directSignatures.push(c);break;case he.signature.subkeyBinding:if(!s){Pe.printDebug("Dropping subkey binding signature without preceding subkey packet");continue}s.bindingSignatures.push(c);break;case he.signature.keyRevocation:this.revocationSignatures.push(c);break;case he.signature.subkeyRevocation:if(!s){Pe.printDebug("Dropping subkey revocation signature without preceding subkey packet");continue}s.revocationSignatures.push(c)}}}}toPacketList(){const t=new zn;return t.push(this.keyPacket),t.push(...this.revocationSignatures),t.push(...this.directSignatures),this.users.map(r=>t.push(...r.toPacketList())),this.subkeys.map(r=>t.push(...r.toPacketList())),t}clone(t=!1){const r=new this.constructor(this.toPacketList());return t&&r.getKeys().forEach(i=>{if(i.keyPacket=Object.create(Object.getPrototypeOf(i.keyPacket),Object.getOwnPropertyDescriptors(i.keyPacket)),!i.keyPacket.isDecrypted())return;const a={};Object.keys(i.keyPacket.privateParams).forEach(s=>{a[s]=new Uint8Array(i.keyPacket.privateParams[s])}),i.keyPacket.privateParams=a}),r}getSubkeys(t=null){return this.subkeys.filter(r=>!t||r.getKeyID().equals(t,!0))}getKeys(t=null){const r=[];return t&&!this.getKeyID().equals(t,!0)||r.push(this),r.concat(this.getSubkeys(t))}getKeyIDs(){return this.getKeys().map(t=>t.getKeyID())}getUserIDs(){return this.users.map(t=>t.userID?t.userID.userID:null).filter(t=>t!==null)}write(){return this.toPacketList().write()}async getSigningKey(t=null,r=new Date,i={},a=Nt){await this.verifyPrimaryKey(r,i,a);const s=this.keyPacket,u=this.subkeys.slice().sort((h,n)=>n.keyPacket.created-h.keyPacket.created);let c;for(const h of u)if(!t||h.getKeyID().equals(t))try{await h.verify(r,a);const n={key:s,bind:h.keyPacket},p=await Ua(h.bindingSignatures,s,he.signature.subkeyBinding,n,r,a);if(!mk(h.keyPacket,p))continue;if(!p.embeddedSignature)throw Error("Missing embedded signature");return await Ua([p.embeddedSignature],h.keyPacket,he.signature.keyBinding,n,r,a),ou(h.keyPacket,a),h}catch(n){c=n}try{const h=await this.getPrimaryUser(r,i,a);if((!t||s.getKeyID().equals(t))&&mk(s,h.selfCertification))return ou(s,a),this}catch(h){c=h}throw Pe.wrapError("Could not find valid signing key packet in key "+this.getKeyID().toHex(),c)}async getEncryptionKey(t,r=new Date,i={},a=Nt){await this.verifyPrimaryKey(r,i,a);const s=this.keyPacket,u=this.subkeys.slice().sort((h,n)=>n.keyPacket.created-h.keyPacket.created);let c;for(const h of u)if(!t||h.getKeyID().equals(t))try{await h.verify(r,a);const n={key:s,bind:h.keyPacket},p=await Ua(h.bindingSignatures,s,he.signature.subkeyBinding,n,r,a);if(_k(h.keyPacket,p))return ou(h.keyPacket,a),h}catch(n){c=n}try{const h=await this.getPrimaryUser(r,i,a);if((!t||s.getKeyID().equals(t))&&_k(s,h.selfCertification))return ou(s,a),this}catch(h){c=h}throw Pe.wrapError("Could not find valid encryption key packet in key "+this.getKeyID().toHex(),c)}async isRevoked(t,r,i=new Date,a=Nt){return Su(this.keyPacket,he.signature.keyRevocation,{key:this.keyPacket},this.revocationSignatures,t,r,i,a)}async verifyPrimaryKey(t=new Date,r={},i=Nt){const a=this.keyPacket;if(await this.isRevoked(null,null,t,i))throw Error("Primary key is revoked");const{selfCertification:s}=await this.getPrimaryUser(t,r,i);if(yy(a,s,t))throw Error("Primary key is expired");const u=await Ua(this.directSignatures,a,he.signature.key,{key:a},t,i).catch(()=>{});if(u&&yy(a,u,t))throw Error("Primary key is expired")}async getExpirationTime(t,r=Nt){let i;try{const{selfCertification:a}=await this.getPrimaryUser(null,t,r),s=wv(this.keyPacket,a),u=a.getExpirationTime(),c=await Ua(this.directSignatures,this.keyPacket,he.signature.key,{key:this.keyPacket},null,r).catch(()=>{});if(c){const h=wv(this.keyPacket,c);i=Math.min(s,u,h)}else i=st.subkeys.some(u=>s.hasSameFingerprintAs(u)))))throw Error("Cannot update public key with private key if subkeys mismatch");return t.update(this,i)}const a=this.clone();return await al(t,a,"revocationSignatures",r,s=>Su(a.keyPacket,he.signature.keyRevocation,a,[s],null,t.keyPacket,r,i)),await al(t,a,"directSignatures",r),await Promise.all(t.users.map(async s=>{const u=a.users.filter(c=>s.userID&&s.userID.equals(c.userID)||s.userAttribute&&s.userAttribute.equals(c.userAttribute));if(u.length>0)await Promise.all(u.map(c=>c.update(s,r,i)));else{const c=s.clone();c.mainKey=a,a.users.push(c)}})),await Promise.all(t.subkeys.map(async s=>{const u=a.subkeys.filter(c=>c.hasSameFingerprintAs(s));if(u.length>0)await Promise.all(u.map(c=>c.update(s,r,i)));else{const c=s.clone();c.mainKey=a,a.subkeys.push(c)}})),a}async getRevocationCertificate(t=new Date,r=Nt){const i={key:this.keyPacket},a=await Ua(this.revocationSignatures,this.keyPacket,he.signature.keyRevocation,i,t,r),s=new zn;return s.push(a),Pd(he.armor.publicKey,s.write(),null,null,"This is a revocation certificate")}async applyRevocationCertificate(t,r=new Date,i=Nt){const a=await Od(t,i),s=(await zn.fromBinary(a.data,vW,i)).findPacket(he.packet.signature);if(!s||s.signatureType!==he.signature.keyRevocation)throw Error("Could not find revocation signature packet");if(!s.issuerKeyID.equals(this.getKeyID()))throw Error("Revocation signature does not match key");try{await s.verify(this.keyPacket,he.signature.keyRevocation,{key:this.keyPacket},r,void 0,i)}catch(c){throw Pe.wrapError("Could not verify revocation signature",c)}const u=this.clone();return u.revocationSignatures.push(s),u}async signPrimaryUser(t,r,i,a=Nt){const{index:s,user:u}=await this.getPrimaryUser(r,i,a),c=await u.certify(t,r,a),h=this.clone();return h.users[s]=c,h}async signAllUsers(t,r=new Date,i=Nt){const a=this.clone();return a.users=await Promise.all(this.users.map(function(s){return s.certify(t,r,i)})),a}async verifyPrimaryUser(t,r=new Date,i,a=Nt){const s=this.keyPacket,{user:u}=await this.getPrimaryUser(r,i,a);return t?await u.verifyAllCertifications(t,r,a):[{keyID:s.getKeyID(),valid:await u.verify(r,a).catch(()=>!1)}]}async verifyAllUsers(t,r=new Date,i=Nt){const a=this.keyPacket,s=[];return await Promise.all(this.users.map(async u=>{const c=t?await u.verifyAllCertifications(t,r,i):[{keyID:a.getKeyID(),valid:await u.verify(r,i).catch(()=>!1)}];s.push(...c.map(h=>({userID:u.userID.userID,keyID:h.keyID,valid:h.valid})))})),s}}["getKeyID","getFingerprint","getAlgorithmInfo","getCreationTime","hasSameFingerprintAs"].forEach(e=>{YD.prototype[e]=ku.prototype[e]});class Cy extends YD{constructor(t){if(super(),this.keyPacket=null,this.revocationSignatures=[],this.directSignatures=[],this.users=[],this.subkeys=[],t&&(this.packetListToStructure(t,new Set([he.packet.secretKey,he.packet.secretSubkey])),!this.keyPacket))throw Error("Invalid key: missing public-key packet")}isPrivate(){return!1}toPublic(){return this}armor(t=Nt){return Pd(he.armor.publicKey,this.toPacketList().write(),void 0,void 0,void 0,t)}}class Nd extends Cy{constructor(t){if(super(),this.packetListToStructure(t,new Set([he.packet.publicKey,he.packet.publicSubkey])),!this.keyPacket)throw Error("Invalid key: missing private-key packet")}isPrivate(){return!0}toPublic(){const t=new zn,r=this.toPacketList();for(const i of r)switch(i.constructor.tag){case he.packet.secretKey:{const a=ma.fromSecretKeyPacket(i);t.push(a);break}case he.packet.secretSubkey:{const a=Ld.fromSecretSubkeyPacket(i);t.push(a);break}default:t.push(i)}return new Cy(t)}armor(t=Nt){return Pd(he.armor.privateKey,this.toPacketList().write(),void 0,void 0,void 0,t)}async getDecryptionKeys(t,r=new Date,i={},a=Nt){const s=this.keyPacket,u=[];for(let h=0;ht.isDecrypted())}async validate(t=Nt){if(!this.isPrivate())throw Error("Cannot validate a public key");let r;if(this.keyPacket.isDummy()){const i=await this.getSigningKey(null,null,void 0,{...t,rejectPublicKeyAlgorithms:new Set,minRSABits:0});i&&!i.keyPacket.isDummy()&&(r=i.keyPacket)}else r=this.keyPacket;if(r)return r.validate();{const i=this.getKeys();if(i.map(a=>a.keyPacket.isDummy()).every(Boolean))throw Error("Cannot validate an all-gnu-dummy key");return Promise.all(i.map(async a=>a.keyPacket.validate()))}}clearPrivateParams(){this.getKeys().forEach(({keyPacket:t})=>{t.isDecrypted()&&t.clearPrivateParams()})}async revoke({flag:t=he.reasonForRevocation.noReason,string:r=""}={},i=new Date,a=Nt){if(!this.isPrivate())throw Error("Need private key for revoking");const s={key:this.keyPacket},u=this.clone();return u.revocationSignatures.push(await vl(s,null,this.keyPacket,{signatureType:he.signature.keyRevocation,reasonForRevocationFlag:he.write(he.reasonForRevocation,t),reasonForRevocationString:r},i,void 0,void 0,void 0,a)),u}async addSubkey(t={}){const r={...Nt,...t.config};if(t.passphrase)throw Error("Subkey could not be encrypted here, please encrypt whole key");if(t.rsaBitsg!==m)]}const n=om.fromObject(u),p={};p.userID=n,p.key=e;const d=new Hr;return d.signatureType=he.signature.certGeneric,d.publicKeyAlgorithm=e.algorithm,d.hashAlgorithm=await lm(null,e,void 0,void 0,i),d.keyFlags=[he.keyFlags.certifyKeys|he.keyFlags.signData],d.preferredSymmetricAlgorithms=h([he.symmetric.aes256,he.symmetric.aes128,he.symmetric.aes192],i.preferredSymmetricAlgorithm),i.aeadProtect&&(d.preferredAEADAlgorithms=h([he.aead.eax,he.aead.ocb],i.preferredAEADAlgorithm)),d.preferredHashAlgorithms=h([he.hash.sha256,he.hash.sha512],i.preferredHashAlgorithm),d.preferredCompressionAlgorithms=h([he.compression.zlib,he.compression.zip,he.compression.uncompressed],i.preferredCompressionAlgorithm),c===0&&(d.isPrimaryUserID=!0),d.features=[0],d.features[0]|=he.features.modificationDetection,i.aeadProtect&&(d.features[0]|=he.features.aead),i.v5Keys&&(d.features[0]|=he.features.v5Keys),r.keyExpirationTime>0&&(d.keyExpirationTime=r.keyExpirationTime,d.keyNeverExpires=!1),await d.sign(e,p,r.date),{userIDPacket:n,signaturePacket:d}})).then(u=>{u.forEach(({userIDPacket:c,signaturePacket:h})=>{a.push(c),a.push(h)})}),await Promise.all(t.map(async function(u,c){const h=r.subkeys[c];return{secretSubkeyPacket:u,subkeySignaturePacket:await GD(u,e,h,i)}})).then(u=>{u.forEach(({secretSubkeyPacket:c,subkeySignaturePacket:h})=>{a.push(c),a.push(h)})});const s={key:e};return a.push(await vl(s,null,e,{signatureType:he.signature.keyRevocation,reasonForRevocationFlag:he.reasonForRevocation.noReason,reasonForRevocationString:""},r.date,void 0,void 0,void 0,i)),r.passphrase&&e.clearPrivateParams(),await Promise.all(t.map(async function(u,c){r.subkeys[c].passphrase&&u.clearPrivateParams()})),new Nd(a)}async function gW({armoredKey:e,binaryKey:t,config:r,...i}){if(r={...Nt,...r},!e&&!t)throw Error("readKey: must pass options object containing `armoredKey` or `binaryKey`");if(e&&!Pe.isString(e))throw Error("readKey: options.armoredKey must be a string");if(t&&!Pe.isUint8Array(t))throw Error("readKey: options.binaryKey must be a Uint8Array");const a=Object.keys(i);if(a.length>0)throw Error("Unknown option: "+a.join(", "));let s;if(e){const{type:u,data:c}=await Od(e,r);if(u!==he.armor.publicKey&&u!==he.armor.privateKey)throw Error("Armored text not of type key");s=c}else s=t;return mW(await zn.fromBinary(s,XD,r))}async function yW({armoredKey:e,binaryKey:t,config:r,...i}){if(r={...Nt,...r},!e&&!t)throw Error("readPrivateKey: must pass options object containing `armoredKey` or `binaryKey`");if(e&&!Pe.isString(e))throw Error("readPrivateKey: options.armoredKey must be a string");if(t&&!Pe.isUint8Array(t))throw Error("readPrivateKey: options.binaryKey must be a Uint8Array");const a=Object.keys(i);if(a.length>0)throw Error("Unknown option: "+a.join(", "));let s;if(e){const{type:c,data:h}=await Od(e,r);if(c!==he.armor.privateKey)throw Error("Armored text not of type private key");s=h}else s=t;const u=await zn.fromBinary(s,XD,r);return new Nd(u)}const bW=Pe.constructAllowedPackets([Bu,Rd,am,WD,fW,gy,xu,ya,Hr]),wW=Pe.constructAllowedPackets([xu]),CW=Pe.constructAllowedPackets([Hr]);class ra{constructor(t){this.packets=t||new zn}getEncryptionKeyIDs(){const t=[];return this.packets.filterByTag(he.packet.publicKeyEncryptedSessionKey).forEach(function(r){t.push(r.publicKeyID)}),t}getSigningKeyIDs(){const t=this.unwrapCompressed(),r=t.packets.filterByTag(he.packet.onePassSignature);return r.length>0?r.map(i=>i.issuerKeyID):t.packets.filterByTag(he.packet.signature).map(i=>i.issuerKeyID)}async decrypt(t,r,i,a=new Date,s=Nt){const u=i||await this.decryptSessionKeys(t,r,a,s),c=this.packets.filterByTag(he.packet.symmetricallyEncryptedData,he.packet.symEncryptedIntegrityProtectedData,he.packet.aeadEncryptedData);if(c.length===0)throw Error("No encrypted data found");const h=c[0];let n=null;const p=Promise.all(u.map(async({algorithm:v,data:m})=>{if(!Pe.isUint8Array(m)||!Pe.isString(v))throw Error("Invalid session key for decryption.");try{const g=he.write(he.symmetric,v);await h.decrypt(g,m,s)}catch(g){Pe.printDebugError(g),n=g}}));if(ry(h.encrypted),h.encrypted=null,await p,!h.packets||!h.packets.length)throw n||Error("Decryption failed.");const d=new ra(h.packets);return h.packets=new zn,d}async decryptSessionKeys(t,r,i=new Date,a=Nt){let s,u=[];if(r){const c=this.packets.filterByTag(he.packet.symEncryptedSessionKey);if(c.length===0)throw Error("No symmetrically encrypted session key packet found.");await Promise.all(r.map(async function(h,n){let p;p=n?await zn.fromBinary(c.write(),wW,a):c,await Promise.all(p.map(async function(d){try{await d.decrypt(h),u.push(d)}catch(v){Pe.printDebugError(v)}}))}))}else{if(!t)throw Error("No key or password specified.");{const c=this.packets.filterByTag(he.packet.publicKeyEncryptedSessionKey);if(c.length===0)throw Error("No public key encrypted session key packet found.");await Promise.all(c.map(async function(h){await Promise.all(t.map(async function(n){let p=[he.symmetric.aes256,he.symmetric.aes128,he.symmetric.tripledes,he.symmetric.cast5];try{const v=await n.getPrimaryUser(i,void 0,a);v.selfCertification.preferredSymmetricAlgorithms&&(p=p.concat(v.selfCertification.preferredSymmetricAlgorithms))}catch{}const d=(await n.getDecryptionKeys(h.publicKeyID,null,void 0,a)).map(v=>v.keyPacket);await Promise.all(d.map(async function(v){if(!(!v||v.isDummy())){if(!v.isDecrypted())throw Error("Decryption key is not decrypted.");if(a.constantTimePKCS1Decryption&&(h.publicKeyAlgorithm===he.publicKey.rsaEncrypt||h.publicKeyAlgorithm===he.publicKey.rsaEncryptSign||h.publicKeyAlgorithm===he.publicKey.rsaSign||h.publicKeyAlgorithm===he.publicKey.elgamal)){const m=h.write();await Promise.all(Array.from(a.constantTimePKCS1DecryptionSupportedSymmetricAlgorithms).map(async g=>{const y=new gy;y.read(m);const b={sessionKeyAlgorithm:g,sessionKey:Kt.generateSessionKey(g)};try{await y.decrypt(v,b),u.push(y)}catch(k){Pe.printDebugError(k),s=k}}))}else try{if(await h.decrypt(v),!p.includes(he.write(he.symmetric,h.sessionKeyAlgorithm)))throw Error("A non-preferred symmetric algorithm was used.");u.push(h)}catch(m){Pe.printDebugError(m),s=m}}}))})),ry(h.encrypted),h.encrypted=null}))}}if(u.length>0){if(u.length>1){const c=new Set;u=u.filter(h=>{const n=h.sessionKeyAlgorithm+Pe.uint8ArrayToString(h.sessionKey);return!c.has(n)&&(c.add(n),!0)})}return u.map(c=>({data:c.sessionKey,algorithm:he.read(he.symmetric,c.sessionKeyAlgorithm)}))}throw s||Error("Session key decryption failed.")}getLiteralData(){const t=this.unwrapCompressed().packets.findPacket(he.packet.literalData);return t&&t.getBytes()||null}getFilename(){const t=this.unwrapCompressed().packets.findPacket(he.packet.literalData);return t&&t.getFilename()||null}getText(){const t=this.unwrapCompressed().packets.findPacket(he.packet.literalData);return t?t.getText():null}static async generateSessionKey(t=[],r=new Date,i=[],a=Nt){const s=await by("symmetric",t,r,i,a),u=he.read(he.symmetric,s),c=a.aeadProtect&&await async function(h,n=new Date,p=[],d=Nt){let v=!0;return await Promise.all(h.map(async function(m,g){const y=await m.getPrimaryUser(n,p[g],d);y.selfCertification.features&&y.selfCertification.features[0]&he.features.aead||(v=!1)})),v}(t,r,i,a)?he.read(he.aead,await by("aead",t,r,i,a)):void 0;return{data:Kt.generateSessionKey(s),algorithm:u,aeadAlgorithm:c}}async encrypt(t,r,i,a=!1,s=[],u=new Date,c=[],h=Nt){if(i){if(!Pe.isUint8Array(i.data)||!Pe.isString(i.algorithm))throw Error("Invalid session key for encryption.")}else if(t&&t.length)i=await ra.generateSessionKey(t,u,c,h);else{if(!r||!r.length)throw Error("No keys, passwords, or session key provided.");i=await ra.generateSessionKey(void 0,void 0,void 0,h)}const{data:n,algorithm:p,aeadAlgorithm:d}=i,v=await ra.encryptSessionKey(n,p,d,t,r,a,s,u,c,h);let m;d?(m=new am,m.aeadAlgorithm=he.write(he.aead,d)):m=new WD,m.packets=this.packets;const g=he.write(he.symmetric,p);return await m.encrypt(g,n,h),v.packets.push(m),m.packets=new zn,v}static async encryptSessionKey(t,r,i,a,s,u=!1,c=[],h=new Date,n=[],p=Nt){const d=new zn,v=he.write(he.symmetric,r),m=i&&he.write(he.aead,i);if(a){const g=await Promise.all(a.map(async function(y,b){const k=await y.getEncryptionKey(c[b],h,n,p),O=new gy;return O.publicKeyID=u?mo.wildcard():k.getKeyID(),O.publicKeyAlgorithm=k.keyPacket.algorithm,O.sessionKey=t,O.sessionKeyAlgorithm=v,await O.encrypt(k.keyPacket),delete O.sessionKey,O}));d.push(...g)}if(s){const g=async function(O,S){try{return await O.decrypt(S),1}catch{return 0}},y=(O,S)=>O+S,b=async function(O,S,x,E){const w=new xu(p);return w.sessionKey=O,w.sessionKeyAlgorithm=S,x&&(w.aeadAlgorithm=x),await w.encrypt(E,p),p.passwordCollisionCheck&&(await Promise.all(s.map(T=>g(w,T)))).reduce(y)!==1?b(O,S,E):(delete w.sessionKey,w)},k=await Promise.all(s.map(O=>b(t,v,m,O)));d.push(...k)}return new ra(d)}async sign(t=[],r=null,i=[],a=new Date,s=[],u=[],c=Nt){const h=new zn,n=this.packets.findPacket(he.packet.literalData);if(!n)throw Error("No literal data packet to sign.");let p,d;const v=n.text===null?he.signature.binary:he.signature.text;if(r)for(d=r.packets.filterByTag(he.packet.signature),p=d.length-1;p>=0;p--){const m=d[p],g=new ya;g.signatureType=m.signatureType,g.hashAlgorithm=m.hashAlgorithm,g.publicKeyAlgorithm=m.publicKeyAlgorithm,g.issuerKeyID=m.issuerKeyID,t.length||p!==0||(g.flags=1),h.push(g)}return await Promise.all(Array.from(t).reverse().map(async function(m,g){if(!m.isPrivate())throw Error("Need private key for signing");const y=i[t.length-1-g],b=await m.getSigningKey(y,a,s,c),k=new ya;return k.signatureType=v,k.hashAlgorithm=await lm(m,b.keyPacket,a,s,c),k.publicKeyAlgorithm=b.keyPacket.algorithm,k.issuerKeyID=b.getKeyID(),g===t.length-1&&(k.flags=1),k})).then(m=>{m.forEach(g=>h.push(g))}),h.push(n),h.push(...await wk(n,t,r,i,a,s,u,!1,c)),new ra(h)}compress(t,r=Nt){if(t===he.compression.uncompressed)return this;const i=new Rd(r);i.algorithm=t,i.packets=this.packets;const a=new zn;return a.push(i),new ra(a)}async signDetached(t=[],r=null,i=[],a=new Date,s=[],u=[],c=Nt){const h=this.packets.findPacket(he.packet.literalData);if(!h)throw Error("No literal data packet to sign.");return new KD(await wk(h,t,r,i,a,s,u,!0,c))}async verify(t,r=new Date,i=Nt){const a=this.unwrapCompressed(),s=a.packets.filterByTag(he.packet.literalData);if(s.length!==1)throw Error("Can only verify message with one literal data packet.");mr(a.packets.stream)&&a.packets.push(...await gr(a.packets.stream,h=>h||[]));const u=a.packets.filterByTag(he.packet.onePassSignature).reverse(),c=a.packets.filterByTag(he.packet.signature);return u.length&&!c.length&&Pe.isStream(a.packets.stream)&&!mr(a.packets.stream)?(await Promise.all(u.map(async h=>{h.correspondingSig=new Promise((n,p)=>{h.correspondingSigResolve=n,h.correspondingSigReject=p}),h.signatureData=wo(async()=>(await h.correspondingSig).signatureData),h.hashed=gr(await h.hash(h.signatureType,s[0],void 0,!1)),h.hashed.catch(()=>{})})),a.packets.stream=As(a.packets.stream,async(h,n)=>{const p=ls(h),d=Ri(n);try{for(let v=0;v{m.correspondingSigReject(v)}),await d.abort(v)}}),ig(u,s,t,r,!1,i)):ig(c,s,t,r,!1,i)}verifyDetached(t,r,i=new Date,a=Nt){const s=this.unwrapCompressed().packets.filterByTag(he.packet.literalData);if(s.length!==1)throw Error("Can only verify message with one literal data packet.");return ig(t.packets,s,r,i,!0,a)}unwrapCompressed(){const t=this.packets.filterByTag(he.packet.compressedData);return t.length?new ra(t[0].packets):this}async appendSignature(t,r=Nt){await this.packets.read(Pe.isUint8Array(t)?t:(await Od(t)).data,CW,r)}write(){return this.packets.write()}armor(t=Nt){return Pd(he.armor.message,this.write(),null,null,null,t)}}async function wk(e,t,r=null,i=[],a=new Date,s=[],u=[],c=!1,h=Nt){const n=new zn,p=e.text===null?he.signature.binary:he.signature.text;if(await Promise.all(t.map(async(d,v)=>{const m=s[v];if(!d.isPrivate())throw Error("Need private key for signing");const g=await d.getSigningKey(i[v],a,m,h);return vl(e,d,g.keyPacket,{signatureType:p},a,m,u,c,h)})).then(d=>{n.push(...d)}),r){const d=r.packets.filterByTag(he.packet.signature);n.push(...d)}return n}async function ig(e,t,r,i=new Date,a=!1,s=Nt){return Promise.all(e.filter(function(u){return["text","binary"].includes(he.read(he.signature,u.signatureType))}).map(async function(u){return async function(c,h,n,p=new Date,d=!1,v=Nt){let m,g;for(const k of n){const O=k.getKeys(c.issuerKeyID);if(O.length>0){m=k,g=O[0];break}}const y=c instanceof ya?c.correspondingSig:c,b={keyID:c.issuerKeyID,verified:(async()=>{if(!g)throw Error("Could not find signing key with key ID "+c.issuerKeyID.toHex());await c.verify(g.keyPacket,c.signatureType,h[0],p,d,v);const k=await y;if(g.getCreationTime()>k.created)throw Error("Key is newer than the signature");try{await m.getSigningKey(g.getKeyID(),k.created,void 0,v)}catch(O){if(!v.allowInsecureVerificationWithReformattedKeys||!O.message.match(/Signature creation time is in the future/))throw O;await m.getSigningKey(g.getKeyID(),p,void 0,v)}return!0})(),signature:(async()=>{const k=await y,O=new zn;return k&&O.push(k),new KD(O)})()};return b.signature.catch(()=>{}),b.verified.catch(()=>{}),b}(u,t,r,i,a,s)}))}async function xW({armoredMessage:e,binaryMessage:t,config:r,...i}){r={...Nt,...r};let a=e||t;if(!a)throw Error("readMessage: must pass options object containing `armoredMessage` or `binaryMessage`");if(e&&!Pe.isString(e)&&!Pe.isStream(e))throw Error("readMessage: options.armoredMessage must be a string or stream");if(t&&!Pe.isUint8Array(t)&&!Pe.isStream(t))throw Error("readMessage: options.binaryMessage must be a Uint8Array or stream");const s=Object.keys(i);if(s.length>0)throw Error("Unknown option: "+s.join(", "));const u=Pe.isStream(a);if(u&&(await k6(),a=Dd(a)),e){const{type:n,data:p}=await Od(a,r);if(n!==he.armor.message)throw Error("Armored text not of type message");a=p}const c=await zn.fromBinary(a,bW,r),h=new ra(c);return h.fromStream=u,h}async function SW({text:e,binary:t,filename:r,date:i=new Date,format:a=e!==void 0?"utf8":"binary",...s}){let u=e!==void 0?e:t;if(u===void 0)throw Error("createMessage: must pass options object containing `text` or `binary`");if(e&&!Pe.isString(e)&&!Pe.isStream(e))throw Error("createMessage: options.text must be a string or stream");if(t&&!Pe.isUint8Array(t)&&!Pe.isStream(t))throw Error("createMessage: options.binary must be a Uint8Array or stream");const c=Object.keys(s);if(c.length>0)throw Error("Unknown option: "+c.join(", "));const h=Pe.isStream(u);h&&(await k6(),u=Dd(u));const n=new Bu(i);e!==void 0?n.setText(u,he.write(he.literal,a)):n.setBytes(u,he.write(he.literal,a)),r!==void 0&&n.setFilename(r);const p=new zn;p.push(n);const d=new ra(p);return d.fromStream=h,d}async function kW({userIDs:e=[],passphrase:t,type:r="ecc",rsaBits:i=4096,curve:a="curve25519",keyExpirationTime:s=0,date:u=new Date,subkeys:c=[{}],format:h="armored",config:n,...p}){um(n={...Nt,...n}),e=ji(e);const d=Object.keys(p);if(d.length>0)throw Error("Unknown option: "+d.join(", "));if(e.length===0)throw Error("UserIDs are required for key generation");if(r==="rsa"&&iwy(y.subkeys[w],y));let k=[pW(y,b)];k=k.concat(y.subkeys.map(E=>HD(E,b)));const O=await Promise.all(k),S=await _W(O[0],O.slice(1),y,b),x=await S.getRevocationCertificate(y.date,b);return S.revocationSignatures=[],{key:S,revocationCertificate:x}}(v,n);return m.getKeys().forEach(({keyPacket:y})=>ou(y,n)),{privateKey:Ck(m,h,n),publicKey:Ck(m.toPublic(),h,n),revocationCertificate:g}}catch(m){throw Pe.wrapError("Error generating keypair",m)}}async function EW({privateKey:e,passphrase:t,config:r,...i}){um(r={...Nt,...r});const a=Object.keys(i);if(a.length>0)throw Error("Unknown option: "+a.join(", "));if(!e.isPrivate())throw Error("Cannot decrypt a public key");const s=e.clone(!0),u=Pe.isArray(t)?t:[t];try{return await Promise.all(s.getKeys().map(c=>Pe.anyPromise(u.map(h=>c.keyPacket.decrypt(h))))),await s.validate(r),s}catch(c){throw s.clearPrivateParams(),Pe.wrapError("Error decrypting private key",c)}}async function DW({message:e,encryptionKeys:t,signingKeys:r,passwords:i,sessionKey:a,format:s="armored",signature:u=null,wildcard:c=!1,signingKeyIDs:h=[],encryptionKeyIDs:n=[],date:p=new Date,signingUserIDs:d=[],encryptionUserIDs:v=[],signatureNotations:m=[],config:g,...y}){if(um(g={...Nt,...g}),JD(e),PW(s),t=ji(t),r=ji(r),i=ji(i),h=ji(h),n=ji(n),d=ji(d),v=ji(v),m=ji(m),y.detached)throw Error("The `detached` option has been removed from openpgp.encrypt, separately call openpgp.sign instead. Don't forget to remove the `privateKeys` option as well.");if(y.publicKeys)throw Error("The `publicKeys` option has been removed from openpgp.encrypt, pass `encryptionKeys` instead");if(y.privateKeys)throw Error("The `privateKeys` option has been removed from openpgp.encrypt, pass `signingKeys` instead");if(y.armor!==void 0)throw Error("The `armor` option has been removed from openpgp.encrypt, pass `format` instead.");const b=Object.keys(y);if(b.length>0)throw Error("Unknown option: "+b.join(", "));r||(r=[]);const k=e.fromStream;try{if((r.length||u)&&(e=await e.sign(r,u,h,p,d,m,g)),e=e.compress(await by("compression",t,p,v,g),g),e=await e.encrypt(t,i,a,c,n,p,v,g),s==="object")return e;const O=s==="armored";return ZD(O?e.armor(g):e.write(),k,O?"utf8":"binary")}catch(O){throw Pe.wrapError("Error encrypting message",O)}}async function OW({message:e,decryptionKeys:t,passwords:r,sessionKeys:i,verificationKeys:a,expectSigned:s=!1,format:u="utf8",signature:c=null,date:h=new Date,config:n,...p}){if(um(n={...Nt,...n}),JD(e),a=ji(a),t=ji(t),r=ji(r),i=ji(i),p.privateKeys)throw Error("The `privateKeys` option has been removed from openpgp.decrypt, pass `decryptionKeys` instead");if(p.publicKeys)throw Error("The `publicKeys` option has been removed from openpgp.decrypt, pass `verificationKeys` instead");const d=Object.keys(p);if(d.length>0)throw Error("Unknown option: "+d.join(", "));try{const v=await e.decrypt(t,r,i,h,n);a||(a=[]);const m={};if(m.signatures=c?await v.verifyDetached(c,a,h,n):await v.verify(a,h,n),m.data=u==="binary"?v.getLiteralData():v.getText(),m.filename=v.getFilename(),AW(m,e),s){if(a.length===0)throw Error("Verification keys are required to verify message signatures");if(m.signatures.length===0)throw Error("Message is not signed");m.data=Ti([m.data,wo(async()=>{await Pe.anyPromise(m.signatures.map(g=>g.verified))})])}return m.data=await ZD(m.data,e.fromStream,u),m}catch(v){throw Pe.wrapError("Error decrypting message",v)}}function JD(e){if(!(e instanceof ra))throw Error("Parameter [message] needs to be of type Message")}function PW(e){if(e!=="armored"&&e!=="binary"&&e!=="object")throw Error("Unsupported format "+e)}const TW=Object.keys(Nt).length;function um(e){const t=Object.keys(e);if(t.length!==TW){for(const r of t)if(Nt[r]===void 0)throw Error("Unknown config property: "+r)}}function ji(e){return e&&!Pe.isArray(e)&&(e=[e]),e}async function ZD(e,t,r="utf8"){const i=Pe.isStream(e);return i==="array"?gr(e):t==="node"?(e=j0(e),r!=="binary"&&e.setEncoding(r),e):t==="web"&&i==="ponyfill"?x6(e):e}function AW(e,t){e.data=As(t.packets.stream,async(r,i)=>{await vo(e.data,i,{preventClose:!0});const a=Ri(i);try{await gr(r,s=>s),await a.close()}catch(s){await a.abort(s)}})}function Ck(e,t,r){switch(t){case"object":return e;case"armored":return e.armor(r);case"binary":return e.write();default:throw Error("Unsupported format "+t)}}function MW(e,t,r){$A.isJson(t)||(t={});const i=e+"::"+encodeURIComponent(new URLSearchParams($.sortObject(t,["page","pagesize","hideload","timerange"])).toString()),a=r.callAt.find(s=>s.key===i)||{};return typeof a.key=="undefined"&&(a.key=i,a.updated=0,a.deleted=0,r.callAt.push(a),$A.IDBSet("callAt",r.callAt).then(s=>{})),this.get=()=>(t.timerange=t.timerange||`${a.updated}-${a.deleted}`,t),this.save=({total:s,current_page:u,deleted_id:c})=>new Promise(h=>{if(u===1){let n=!1;const p=$A.Time();s>0&&(a.updated=p,n=!0),$A.isArray(c)&&c.length>0?(a.deleted=p,n=!0):c=[],n?$A.IDBSet("callAt",r.callAt).then(d=>h(c)):h(c)}}),this.showLoad=()=>!t.hideload,this}function ag(e,t,r){return new MW(e,t,r)}function IW(e,t=!0){return e&&(t?e=String(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/\n/g,"$"):e=String(e).replace(/\-/g,"+").replace(/\_/g,"/").replace(/\$/g,` `)),e}var $W={init({state:e,dispatch:t}){return new Promise(async r=>{let i=null;if(!await $A.IDBBoolean("initTag")){await $A.IDBSet("initTag",!0);const u=$A.getStorageJson("userInfo");u.userid>0&&(await $A.IDBSet("userInfo",u),await $A.IDBSet("cacheServerUrl",$A.getStorageString("cacheServerUrl")),window.localStorage.clear())}switch(e.clientId=await $A.IDBString("clientId"),e.cacheServerUrl=await $A.IDBString("cacheServerUrl"),e.cacheUserBasic=await $A.IDBArray("cacheUserBasic"),e.cacheDialogs=(await $A.IDBArray("cacheDialogs")).map(u=>Object.assign(u,{loading:!1,extra_draft_has:u.extra_draft_content?1:0})),e.cacheProjects=await $A.IDBArray("cacheProjects"),e.cacheColumns=await $A.IDBArray("cacheColumns"),e.cacheTasks=await $A.IDBArray("cacheTasks"),e.cacheProjectParameter=await $A.IDBArray("cacheProjectParameter"),e.cacheTaskBrowse=await $A.IDBArray("cacheTaskBrowse"),e.dialogMsgs=await $A.IDBArray("dialogMsgs"),e.fileLists=await $A.IDBArray("fileLists"),e.userInfo=await $A.IDBJson("userInfo"),e.callAt=await $A.IDBArray("callAt"),e.cacheEmojis=await $A.IDBArray("cacheEmojis"),e.userInfo.userid&&(e.userId=e.userInfo.userid=$A.runNum(e.userInfo.userid),e.userToken=e.userInfo.token,e.userIsAdmin=$A.inArray("admin",e.userInfo.identity)),e.cacheServerUrl&&(window.systemInfo.apiUrl=e.cacheServerUrl),e.themeMode){case"dark":$A.dark.enableDarkMode();break;case"light":$A.dark.disableDarkMode();break;default:e.themeMode="auto",$A.dark.autoDarkMode();break}e.themeIsDark=$A.dark.isDarkEnabled(),e.clientId||(e.clientId=$A.randomString(6),await $A.IDBSet("clientId",e.clientId));const s=await $A.IDBString("clearCache");s&&(await $A.IDBRemove("clearCache"),await $A.IDBSet("callAt",e.callAt=[]),s==="handle"&&await t(i="handleClearCache")),t("call",{url:"users/key/client",data:{client_id:e.clientId},encrypt:!1}).then(({data:u})=>{e.apiKeyData=u}),await $A.loadScriptS(["language/web/key.js",`language/web/${el}.js`]),r(i)})},call({state:e,dispatch:t},r){$A.isJson(r)||(r={url:r});const i={"Content-Type":"application/json",language:el,token:e.userToken,fd:$A.getSessionStorageString("userWsFd"),version:window.systemInfo.version||"0.0.1",platform:$A.Platform};if($A.isJson(r.header)?r.header=Object.assign(i,r.header):r.header=i,r.encrypt===void 0&&$A.inArray(r.url,["users/login","users/editpass","users/operation","users/delete/account","system/license","users/bot/*","dialog/msg/*"],!0)&&(r.encrypt=!0),r.encrypt){const s=window.navigator.userAgent;(/Windows NT 5.1|Windows XP/.test(s)||s.indexOf("Windows NT 6.0")!==-1||s.indexOf("Windows NT 6.1")!==-1||s.indexOf("Windows NT 6.2")!==-1)&&(r.encrypt=!1)}r.url=$A.apiUrl(r.url),r.data=$A.date2string(r.data);const a=$A.cloneJSON(r);return new Promise(async(s,u)=>{const c=[];if(r.encrypt===!0&&(r.data&&e.apiKeyData.type==="pgp"&&(c.push(`encrypt_type=${e.apiKeyData.type};encrypt_id=${e.apiKeyData.id}`),r.method="post",r.data={encrypted:await t("pgpEncryptApi",r.data)}),c.push("client_type=pgp;client_key="+(await t("pgpGetLocalKey")).publicKeyB64)),c.length>0&&(r.header.encrypt=c.join(";")),r.method==="post"&&(r.data=JSON.stringify(r.data)),r.spinner===!0||typeof r.spinner=="number"&&r.spinner>0){const{before:h,complete:n}=r;r.before=()=>{t("showSpinner",typeof r.spinner=="number"?r.spinner:0),typeof h=="function"&&h()},r.complete=()=>{t("hiddenSpinner"),typeof n=="function"&&n()}}if(r.success=async(h,n,p)=>{if(e.ajaxNetworkException=!1,!$A.isJson(h)){console.log(h,n,p),u({ret:-1,data:{},msg:"Return error"});return}r.encrypt===!0&&h.encrypted&&(h=await t("pgpDecryptApi",h.encrypted));const{ret:d,data:v,msg:m}=h;if(d===-1&&(e.userId=0,r.skipAuthError!==!0)){$A.modalError({content:m,onOk:()=>{t("logout")}}),u(h);return}if(d===-2&&r.checkNick!==!1){t("userEditInput","nickname").then(()=>{t("call",a).then(s).catch(u)}).catch(g=>{u({ret:-1,data:v,msg:g||$A.L("\u8BF7\u8BBE\u7F6E\u6635\u79F0\uFF01")})});return}if(d===-3&&r.checkTel!==!1){t("userEditInput","tel").then(()=>{t("call",a).then(s).catch(u)}).catch(g=>{u({ret:-1,data:v,msg:g||$A.L("\u8BF7\u8BBE\u7F6E\u8054\u7CFB\u7535\u8BDD\uFF01")})});return}d===1?s({data:v,msg:m}):(u({ret:d,data:v,msg:m||"Unknown error"}),d===-4001?t("forgetProject",v.project_id):d===-4002?t("forgetTask",v.task_id):d===-4003&&t("forgetDialog",v.dialog_id))},r.error=(h,n)=>{const p=window.navigator.onLine===!1||n===0&&h.readyState===4;if(p&&a.__networkFailureRetry!==!0){setTimeout(d=>{a.__networkFailureRetry=!0,t("call",a).then(s).catch(u)},300);return}r.checkNetwork!==!1&&(e.ajaxNetworkException=p),u(p?{ret:-1001,data:{},msg:"Network exception"}:{ret:-1,data:{},msg:"System error"})},r.websocket===!0){const h=$A.randomString(16),n=setTimeout(()=>{const p=e.ajaxWsListener.find(d=>d.apiWebsocket==h);p&&(p.complete(),p.error("timeout"),p.after()),e.ajaxWsListener=e.ajaxWsListener.filter(d=>d.apiWebsocket!=h)},r.timeout||3e4);e.ajaxWsListener.push({apiWebsocket:h,complete:typeof r.complete=="function"?r.complete:()=>{},success:typeof r.success=="function"?r.success:()=>{},error:typeof r.error=="function"?r.error:()=>{},after:typeof r.after=="function"?r.after:()=>{}}),r.complete=()=>{},r.success=()=>{},r.error=()=>{},r.after=()=>{},r.header["Api-Websocket"]=h,e.ajaxWsReady===!1&&(e.ajaxWsReady=!0,t("websocketMsgListener",{name:"apiWebsocket",callback:p=>{switch(p.type){case"apiWebsocket":clearTimeout(n);const d=p.apiWebsocket,v=p.apiSuccess,m=p.data,g=e.ajaxWsListener.find(y=>y.apiWebsocket==d);g&&(g.complete(),v?g.success(m):g.error(m),g.after()),e.ajaxWsListener=e.ajaxWsListener.filter(y=>y.apiWebsocket!=d);break}}}))}$A.ajaxc(r)})},needHome({dispatch:e,state:t}){return new Promise((r,i)=>{e("call",{url:"system/get/starthome"}).then(({data:a})=>{a.need_start?r(a):i()}).catch(i)})},downUrl({state:e},t){if(!t)return;let r=t,i=!0;if($A.isJson(t)&&(r=t.url,i=!!t.token),i){let a={token:e.userToken};$A.isJson(t)&&(r=t.url,a=t.params||{}),r=$A.urlAddParams(r,a)}$A.Electron?$A.Electron.request({action:"openExternal",url:r},()=>{},()=>{}):$A.isEEUiApp?$A.eeuiAppOpenWeb(r):window.open(r)},toggleProjectParameter({state:e},t){$A.execMainDispatch("toggleProjectParameter",t);let r=t,i=null,a=e.projectId;if($A.isJson(t)&&(r=t.key,i=t.value,a=t.project_id),a){let s=e.cacheProjectParameter.findIndex(c=>c.project_id==a);s===-1&&(e.cacheProjectParameter.push($A.projectParameterTemplate(a)),s=e.cacheProjectParameter.findIndex(c=>c.project_id==a));const u=e.cacheProjectParameter[s];$A.isJson(r)||(r={[r]:i||!u[r]}),e.cacheProjectParameter.splice(s,1,Object.assign(u,r)),$A.IDBSave("cacheProjectParameter",e.cacheProjectParameter)}},setTheme({state:e},t){return new Promise(function(r){if(t===void 0){r(!1);return}if(!$A.isChrome()){$A.isEEUiApp?$A.modalWarning("\u4EC5Android\u8BBE\u7F6E\u652F\u6301\u4E3B\u9898\u529F\u80FD"):$A.modalWarning("\u4EC5\u5BA2\u6237\u7AEF\u6216Chrome\u6D4F\u89C8\u5668\u652F\u6301\u4E3B\u9898\u529F\u80FD"),r(!1);return}switch(t){case"dark":$A.dark.enableDarkMode();break;case"light":$A.dark.disableDarkMode();break;default:$A.dark.autoDarkMode();break}e.themeMode=t,e.themeIsDark=$A.dark.isDarkEnabled(),window.localStorage.setItem("__theme:mode__",t),r(!0)})},getBasicData({state:e,dispatch:t},r){if(typeof r=="number"){window.__getBasicDataTimer&&clearTimeout(window.__getBasicDataTimer),r>-1&&(window.__getBasicDataTimer=setTimeout(s=>t("getBasicData",null),r));return}const i=e.userId+$A.Time();if(window.__getBasicDataKey===i)return;window.__getBasicDataKey=i,t("getProjects").catch(()=>{}),t("getDialogs").catch(()=>{}),t("getReportUnread",1e3),t("getApproveUnread",1e3),t("getTaskForDashboard"),t("dialogMsgRead");const a=Object.values(e.userAvatar).map(({userid:s})=>s);[...new Set(a)].some(s=>t("getUserBasic",{userid:s}))},getReportUnread({state:e,dispatch:t},r){window.__getReportUnread&&clearTimeout(window.__getReportUnread),window.__getReportUnread=setTimeout(()=>{e.userId===0?e.reportUnreadNumber=0:t("call",{url:"report/unread"}).then(({data:i})=>{e.reportUnreadNumber=i.total||0}).catch(i=>{})},typeof r=="number"?r:1e3)},getApproveUnread({state:e,dispatch:t},r){window.__getApproveUnread&&clearTimeout(window.__getApproveUnread),window.__getApproveUnread=setTimeout(()=>{e.userId===0?e.approveUnreadNumber=0:t("call",{url:"approve/process/findTask",data:{page:1,page_size:500}}).then(({data:i})=>{e.approveUnreadNumber=i.total||0}).catch(i=>{})},typeof r=="number"?r:1e3)},getUserInfo({dispatch:e}){return new Promise(function(t,r){e("call",{url:"users/info"}).then(i=>{e("saveUserInfo",i.data),t(i)}).catch(i=>{console.warn(i),r(i)})})},saveUserInfo({state:e,dispatch:t},r){return new Promise(async i=>{const a=$A.cloneJSON(r);a.userid=$A.runNum(a.userid),a.token=a.userid>0?a.token||e.userToken:"",e.userInfo=a,e.userId=a.userid,e.userToken=a.token,e.userIsAdmin=$A.inArray("admin",a.identity),await $A.IDBSet("userInfo",e.userInfo),$A.eeuiAppSendMessage({action:"userChatList",token:e.userToken,url:$A.apiUrl("../api/users/share/list")+`?token=${e.userToken}`}),$A.eeuiAppSendMessage({action:"userUploadUrl",token:e.userToken,dirUrl:$A.apiUrl("../api/file/content/upload")+`?token=${e.userToken}`,chatUrl:$A.apiUrl("../api/dialog/msg/sendfiles")+`?token=${e.userToken}`}),t("getBasicData",null),e.userId>0&&(e.cacheUserBasic=e.cacheUserBasic.filter(({userid:s})=>s!==e.userId),t("saveUserBasic",e.userInfo)),i()})},saveUserOnlineStatus({state:e},t){const{userid:r,online:i}=t;e.userOnline[r]!==i&&(e.userOnline=Object.assign({},e.userOnline,{[r]:i}))},getUserBasic({state:e,dispatch:t},r){if(e.loadUserBasic===!0){r&&e.cacheUserWait.push(r);return}let i=$A.Time(),a=$A.cloneJSON(e.cacheUserWait);r&&r.userid&&a.push(r),e.cacheUserWait=[];let s=[],u=0;a.some(c=>{let h=e.cacheUserBasic.find(({userid:n})=>n==c.userid);if(h&&i-h._time<=30)return setTimeout(()=>{e.cacheUserActive=Object.assign(h,{__:Math.random()}),il.Store.set("cacheUserActive",h)},u+=5),!1;s.push(c)}),s.length!==0&&(s.length>30&&(e.cacheUserWait=s.slice(30),s=s.slice(0,30)),e.loadUserBasic=!0,t("call",{url:"users/basic",data:{userid:[...new Set(s.map(({userid:c})=>c))]},skipAuthError:!0}).then(c=>{i=$A.Time(),s.forEach(h=>{let n=c.data.find(({userid:p})=>p==h.userid)||Object.assign(h,{email:""});n._time=i,t("saveUserBasic",n)}),e.loadUserBasic=!1,t("getUserBasic")}).catch(c=>{console.warn(c),e.loadUserBasic=!1,t("getUserBasic")}))},saveUserBasic({state:e},t){$A.execMainDispatch("saveUserBasic",t);const r=e.cacheUserBasic.findIndex(({userid:i})=>i==t.userid);r>-1?(t=Object.assign({},e.cacheUserBasic[r],t),e.cacheUserBasic.splice(r,1,t)):e.cacheUserBasic.push(t),e.cacheUserActive=Object.assign(t,{__:Math.random()}),il.Store.set("cacheUserActive",t),$A.IDBSave("cacheUserBasic",e.cacheUserBasic)},userEditInput({dispatch:e},t){return new Promise(function(r,i){let a="";if(t==="nickname")a="\u6635\u79F0";else if(t==="tel")a="\u8054\u7CFB\u7535\u8BDD";else{i("\u53C2\u6570\u9519\u8BEF");return}setTimeout(s=>{$A.modalInput({title:`\u8BBE\u7F6E${a}`,placeholder:`\u8BF7\u8F93\u5165\u60A8\u7684${a}`,okText:"\u4FDD\u5B58",onOk:u=>u?new Promise((c,h)=>{e("call",{url:"users/editdata",data:{[t]:u},checkNick:!1,checkTel:!1}).then(()=>{e("getUserInfo").finally(n=>{c(),r()})}).catch(({msg:n})=>{h(n)})}):`\u8BF7\u8F93\u5165${a}`,onCancel:u=>i})},100)})},logout({state:e,dispatch:t},r=!0){t("handleClearCache",{}).then(()=>{let i=["/","/login"].includes(window.location.pathname)?"":encodeURIComponent(window.location.href);r===!1&&(i=null),$A.goForward({name:"login",query:i?{from:i}:{}},!0)})},handleClearCache({state:e,dispatch:t},r){return new Promise(async i=>{try{e.cacheUserBasic=[],e.cacheDialogs=[],e.cacheProjects=[],e.cacheColumns=[],e.cacheTasks=[],e.callAt=[];const a=window.localStorage.getItem("__language:type__"),s=window.localStorage.getItem("__keyboard:data__"),u=window.localStorage.getItem("__theme:mode__");window.localStorage.clear(),window.localStorage.setItem("__language:type__",a),window.localStorage.setItem("__keyboard:data__",s),window.localStorage.setItem("__theme:mode__",u);const c=await $A.IDBString("cacheLoginEmail"),h=await $A.IDBJson("cacheFileSort");await $A.IDBClear(),await $A.IDBSet("clientId",e.clientId),await $A.IDBSet("cacheServerUrl",e.cacheServerUrl),await $A.IDBSet("cacheProjectParameter",e.cacheProjectParameter),await $A.IDBSet("cacheLoginEmail",c),await $A.IDBSet("cacheFileSort",h),await $A.IDBSet("cacheTaskBrowse",e.cacheTaskBrowse),await $A.IDBSet("cacheEmojis",e.cacheEmojis),t("saveUserInfo",$A.isJson(r)?r:e.userInfo).then(i)}catch{i()}})},saveFile({state:e,dispatch:t},r){if($A.execMainDispatch("saveFile",r),$A.isArray(r))r.forEach(i=>{t("saveFile",i)});else if($A.isJson(r)){let i={_load:!1,_edit:!1};const a=e.fileLists.findIndex(({id:s})=>s==r.id);a>-1?e.fileLists.splice(a,1,Object.assign(i,e.fileLists[a],r)):e.fileLists.push(Object.assign(i,r)),$A.IDBSave("fileLists",e.fileLists,600)}},forgetFile({state:e,dispatch:t},r){$A.execMainDispatch("forgetFile",r),($A.isArray(r)?r:[r]).some(a=>{e.fileLists=e.fileLists.filter(s=>s.id!=a),e.fileLists.some(s=>{s.pid==a&&t("forgetFile",s.id)}),$A.IDBSave("fileLists",e.fileLists,600)})},getFiles({state:e,dispatch:t},r){return new Promise(function(i,a){t("call",{url:"file/lists",data:{pid:r}}).then(s=>{const u=s.data.map(({id:c})=>c);e.fileLists=e.fileLists.filter(c=>c.pid!=r||u.includes(c.id)),$A.IDBSave("fileLists",e.fileLists,600),t("saveFile",s.data),i(s)}).catch(s=>{console.warn(s),a(s)})})},searchFiles({state:e,dispatch:t},r){return $A.isJson(r)||(r={key:r}),new Promise(function(i,a){t("call",{url:"file/search",data:r}).then(s=>{t("saveFile",s.data),i(s)}).catch(s=>{console.warn(s),a(s)})})},saveProject({state:e,dispatch:t},r){if($A.execMainDispatch("saveProject",r),$A.isArray(r))r.forEach(i=>{t("saveProject",i)});else if($A.isJson(r)){typeof r.project_column!="undefined"&&(t("saveColumn",r.project_column),delete r.project_column);const i=e.cacheProjects.findIndex(({id:a})=>a==r.id);i>-1?e.cacheProjects.splice(i,1,Object.assign({},e.cacheProjects[i],r)):(typeof r.project_user=="undefined"&&(r.project_user=[]),e.cacheProjects.push(r),e.projectTotal++),e.cacheDialogs.some(a=>{if(a.type=="group"&&a.group_type=="project"&&a.group_info.id==r.id){r.name!==void 0&&(a.name=r.name);for(let s in a.group_info)!a.group_info.hasOwnProperty(s)||r[s]===void 0||(a.group_info[s]=r[s])}}),$A.IDBSave("cacheProjects",e.cacheProjects)}},forgetProject({state:e,dispatch:t},r){$A.execMainDispatch("forgetProject",r);const i=$A.isArray(r)?r:[r];if(i.some(a=>{const s=e.cacheProjects.findIndex(u=>u.id==a);s>-1&&(t("forgetTask",e.cacheTasks.filter(u=>u.project_id==r).map(u=>u.id)),t("forgetColumn",e.cacheColumns.filter(u=>u.project_id==r).map(u=>u.id)),e.cacheProjects.splice(s,1),e.projectTotal=Math.max(0,e.projectTotal-1))}),i.includes(e.projectId)){const a=$A.cloneJSON(e.cacheProjects).sort((s,u)=>s.top_at||u.top_at?$A.Date(u.top_at)-$A.Date(s.top_at):u.id-s.id).find(({id:s})=>s&&s!=r);a?$A.goForward({name:"manage-project",params:{projectId:a.id}}):$A.goForward({name:"manage-dashboard"})}$A.IDBSave("cacheProjects",e.cacheProjects)},getProjects({state:e,dispatch:t,getters:r},i){return new Promise(function(a,s){if(e.userId===0){e.cacheProjects=[],s({msg:"Parameter error"});return}const u=ag("projects",i,e);u.showLoad()&&e.loadProjects++,t("call",{url:"project/lists",data:u.get()}).then(({data:c})=>{e.projectTotal=c.total_all,t("saveProject",c.data),u.save(c).then(h=>t("forgetProject",h)),a(c)}).catch(c=>{console.warn(c),s(c)}).finally(c=>{u.showLoad()&&e.loadProjects--})})},getProjectOne({state:e,dispatch:t},r){return new Promise(function(i,a){if($A.runNum(r)===0){a({msg:"Parameter error"});return}e.projectLoad++,t("call",{url:"project/one",data:{project_id:r}}).then(s=>{setTimeout(()=>{e.projectLoad--},10),t("saveProject",s.data),i(s)}).catch(s=>{console.warn(s),e.projectLoad--,a(s)})})},archivedProject({state:e,dispatch:t},r){return new Promise(function(i,a){if($A.runNum(r)===0){a({msg:"Parameter error"});return}t("call",{url:"project/archived",data:{project_id:r}}).then(s=>{t("forgetProject",r),i(s)}).catch(s=>{console.warn(s),t("getProjectOne",r).catch(()=>{}),a(s)})})},removeProject({state:e,dispatch:t},r){return new Promise(function(i,a){if($A.runNum(r)===0){a({msg:"Parameter error"});return}t("call",{url:"project/remove",data:{project_id:r}}).then(s=>{t("forgetProject",r),i(s)}).catch(s=>{console.warn(s),t("getProjectOne",r).catch(()=>{}),a(s)})})},exitProject({state:e,dispatch:t},r){return new Promise(function(i,a){if($A.runNum(r)===0){a({msg:"Parameter error"});return}t("call",{url:"project/exit",data:{project_id:r}}).then(s=>{t("forgetProject",r),i(s)}).catch(s=>{console.warn(s),t("getProjectOne",r).catch(()=>{}),a(s)})})},saveColumn({state:e,dispatch:t},r){if($A.execMainDispatch("saveColumn",r),$A.isArray(r))r.forEach(i=>{t("saveColumn",i)});else if($A.isJson(r)){const i=e.cacheColumns.findIndex(({id:a})=>a==r.id);i>-1?e.cacheColumns.splice(i,1,Object.assign({},e.cacheColumns[i],r)):e.cacheColumns.push(r),$A.IDBSave("cacheColumns",e.cacheColumns)}},forgetColumn({state:e,dispatch:t},r){$A.execMainDispatch("forgetColumn",r);const i=$A.isArray(r)?r:[r],a=[];i.some(s=>{const u=e.cacheColumns.findIndex(c=>c.id==s);u>-1&&(t("forgetTask",e.cacheTasks.filter(c=>c.column_id==r).map(c=>c.id)),a.push(e.cacheColumns[u].project_id),e.cacheColumns.splice(u,1))}),Array.from(new Set(a)).some(s=>t("getProjectOne",s).catch(()=>{})),$A.IDBSave("cacheColumns",e.cacheColumns)},getColumns({state:e,dispatch:t},r){return new Promise(function(i,a){if(e.userId===0){e.cacheColumns=[],a({msg:"Parameter error"});return}e.projectLoad++,t("call",{url:"project/column/lists",data:{project_id:r}}).then(({data:s})=>{e.projectLoad--;const u=s.data.map(({id:c})=>c);if(e.cacheColumns=e.cacheColumns.filter(c=>c.project_id!=r||u.includes(c.id)),t("saveColumn",s.data),i(s.data),e.cacheColumns.filter(c=>c.project_id==r).length===1){const c=e.cacheProjectParameter.find(h=>h.project_id==r)||{};(typeof c.menuInit=="undefined"||c.menuInit===!1)&&t("toggleProjectParameter",{project_id:r,key:{menuInit:!0,menuType:"table"}})}}).catch(s=>{console.warn(s),e.projectLoad--,a(s)})})},removeColumn({state:e,dispatch:t},r){return new Promise(function(i,a){if($A.runNum(r)===0){a({msg:"Parameter error"});return}t("call",{url:"project/column/remove",data:{column_id:r}}).then(s=>{t("forgetColumn",r),i(s)}).catch(s=>{console.warn(s),a(s)})})},saveTask({state:e,dispatch:t},r){if($A.execMainDispatch("saveTask",r),$A.isArray(r))r.forEach(i=>{t("saveTask",i)});else if($A.isJson(r)){r._time=$A.Time(),r.flow_item_name&&r.flow_item_name.indexOf("|")!==-1&&([r.flow_item_status,r.flow_item_name]=r.flow_item_name.split("|")),typeof r.archived_at!="undefined"&&e.cacheTasks.filter(s=>s.parent_id==r.id).some(s=>{t("saveTask",Object.assign(s,{archived_at:r.archived_at,archived_userid:r.archived_userid}))});let i={};typeof r.update_marking!="undefined"&&(i=$A.isJson(r.update_marking)?r.update_marking:{},delete r.update_marking);const a=e.cacheTasks.findIndex(({id:s})=>s==r.id);a>-1?e.cacheTasks.splice(a,1,Object.assign({},e.cacheTasks[a],r)):e.cacheTasks.push(r),(i.is_update_maintask===!0||r.parent_id>0&&e.cacheTasks.findIndex(({id:s})=>s==r.parent_id)===-1)&&t("getTaskOne",r.parent_id).catch(()=>{}),i.is_update_project===!0&&t("getProjectOne",r.project_id).catch(()=>{}),i.is_update_content===!0&&t("getTaskContent",r.id),i.is_update_subtask===!0&&t("getTaskForParent",r.id).catch(()=>{}),e.cacheDialogs.some(s=>{if(s.name===void 0||s.dialog_delete===1)return!1;if(s.type=="group"&&s.group_type=="task"&&s.group_info.id==r.id){r.name!==void 0&&(s.name=r.name);for(let u in s.group_info)!s.group_info.hasOwnProperty(u)||r[u]===void 0||(s.group_info[u]=r[u])}}),$A.IDBSave("cacheTasks",e.cacheTasks)}},forgetTask({state:e,dispatch:t},r){$A.execMainDispatch("forgetTask",r);const i=($A.isArray(r)?r:[r]).filter(u=>u!=e.taskArchiveView),a=[],s=[];i.some(u=>{const c=e.cacheTasks.findIndex(h=>h.id==u);c>-1&&(e.cacheTasks[c].parent_id&&a.push(e.cacheTasks[c].parent_id),s.push(e.cacheTasks[c].project_id),e.cacheTasks.splice(c,1)),e.cacheTasks.filter(h=>h.parent_id==u).some(h=>{let n=e.cacheTasks.findIndex(p=>p.id==h.id);n>-1&&(s.push(h.project_id),e.cacheTasks.splice(n,1))})}),Array.from(new Set(a)).some(u=>t("getTaskOne",u).catch(()=>{})),Array.from(new Set(s)).some(u=>t("getProjectOne",u).catch(()=>{})),i.includes(e.taskId)&&(e.taskId=0),$A.IDBSave("cacheTasks",e.cacheTasks)},increaseTaskMsgNum({state:e},t){if($A.execMainDispatch("increaseTaskMsgNum",t),!$A.execMainCacheJudge(`increaseTaskMsgNum:${t.id}`)&&t.dialog_id){const r=e.cacheTasks.find(({dialog_id:i})=>i===t.dialog_id);r&&r.msg_num++}},increaseMsgReplyNum({state:e,dispatch:t},r){if($A.execMainDispatch("increaseMsgReplyNum",r),!$A.execMainCacheJudge(`increaseMsgReplyNum:${r.id}`)&&r.reply_id>0){const i=e.dialogMsgs.find(({id:a})=>a==r.reply_id);i&&i.reply_num++}},decrementMsgReplyNum({state:e,dispatch:t},r){if($A.execMainDispatch("decrementMsgReplyNum",r),!$A.execMainCacheJudge(`decrementMsgReplyNum:${r.id}`)&&r.reply_id>0){const i=e.dialogMsgs.find(({id:a})=>a==r.reply_id);i&&i.reply_num--}},getTasks({state:e,dispatch:t},r){const i=[];r===null&&(r={}),$A.isArray(r.taskData)&&(i.push(...r.taskData),delete r.taskData);const a=ag("tasks",r,e);return new Promise(function(s,u){if(e.userId===0){e.cacheTasks=[],u({msg:"Parameter error"});return}r.project_id&&e.projectLoad++,t("call",{url:"project/task/lists",data:a.get()}).then(({data:c})=>{r.project_id&&e.projectLoad--,i.push(...c.data),a.save(c).then(h=>t("forgetTask",h)),c.next_page_url?(r.page=c.current_page+1,r.taskData=i,c.current_page%10===0?$A.modalWarning({content:"\u6570\u636E\u5DF2\u8D85\u8FC7"+c.to+"\u6761\uFF0C\u662F\u5426\u7EE7\u7EED\u52A0\u8F7D\uFF1F",onOk:()=>{t("getTasks",r).then(s).catch(u)},onCancel:()=>{t("saveTask",i),s()}}):t("getTasks",r).then(s).catch(u)):(t("saveTask",i),s())}).catch(c=>{console.warn(c),u(c),r.project_id&&e.projectLoad--})})},getTaskOne({state:e,dispatch:t},r){return new Promise(function(i,a){if(/^\d+$/.test(r)&&(r={task_id:r}),$A.runNum(r.task_id)===0){a({msg:"Parameter error"});return}if($A.isArray(e.taskOneLoad[r.task_id])){e.taskOneLoad[r.task_id].push({resolve:i,reject:a});return}e.taskOneLoad[r.task_id]=[],t("call",{url:"project/task/one",data:r}).then(s=>{t("saveTask",s.data),i(s),e.taskOneLoad[r.task_id].some(u=>{u.resolve(s)})}).catch(s=>{console.warn(s),a(s),e.taskOneLoad[r.task_id].some(u=>{u.reject(s)})}).finally(s=>{delete e.taskOneLoad[r.task_id]})})},getTaskForDashboard({state:e,dispatch:t,getters:r},i){if(window.__getTaskForDashboard&&clearTimeout(window.__getTaskForDashboard),typeof i=="number"){i>-1&&(window.__getTaskForDashboard=setTimeout(a=>t("getTaskForDashboard",null),i));return}e.loadDashboardTasks!==!0&&(e.loadDashboardTasks=!0,t("getTasks",null).finally(a=>{e.loadDashboardTasks=!1}))},getTaskForProject({state:e,dispatch:t},r){return new Promise(function(i,a){t("getTasks",{project_id:r}).then(i).catch(a)})},getTaskForParent({state:e,dispatch:t},r){return new Promise(function(i,a){t("getTasks",{parent_id:r}).then(i).catch(a)})},removeTask({state:e,dispatch:t},r){return new Promise(function(i,a){if($A.runNum(r.task_id)===0){a({msg:"Parameter error"});return}t("setLoad",{key:`task-${r.task_id}`,delay:300}),t("call",{url:"project/task/remove",data:r}).then(s=>{t("forgetTask",r.task_id),i(s)}).catch(s=>{console.warn(s),t("getTaskOne",r.task_id).catch(()=>{}),a(s)}).finally(s=>{t("cancelLoad",`task-${r.task_id}`)})})},archivedTask({state:e,dispatch:t},r){return new Promise(function(i,a){if(/^\d+$/.test(r)&&(r={task_id:r}),$A.runNum(r.task_id)===0){a({msg:"Parameter error"});return}t("setLoad",{key:`task-${r.task_id}`,delay:300}),t("call",{url:"project/task/archived",data:r}).then(s=>{t("saveTask",s.data),i(s)}).catch(s=>{console.warn(s),t("getTaskOne",r.task_id).catch(()=>{}),a(s)}).finally(s=>{t("cancelLoad",`task-${r.task_id}`)})})},getTaskContent({state:e,dispatch:t},r){$A.runNum(r)!==0&&t("call",{url:"project/task/content",data:{task_id:r}}).then(i=>{t("saveTaskContent",i.data)}).catch(i=>{console.warn(i)})},saveTaskContent({state:e,dispatch:t},r){if($A.execMainDispatch("saveTaskContent",r),$A.isArray(r))r.forEach(i=>{t("saveTaskContent",i)});else if($A.isJson(r)){const i=e.taskContents.findIndex(({task_id:a})=>a==r.task_id);i>-1?e.taskContents.splice(i,1,Object.assign({},e.taskContents[i],r)):e.taskContents.push(r)}},getTaskFiles({state:e,dispatch:t},r){$A.runNum(r)!==0&&t("call",{url:"project/task/files",data:{task_id:r}}).then(i=>{i.data.forEach(a=>{const s=e.taskFiles.findIndex(({id:u})=>u==a.id);s>-1?e.taskFiles.splice(s,1,a):e.taskFiles.push(a)}),t("saveTask",{id:r,file_num:i.data.length})}).catch(i=>{console.warn(i)})},forgetTaskFile({state:e,dispatch:t},r){($A.isArray(r)?r:[r]).some(a=>{const s=e.taskFiles.findIndex(u=>u.id==a);s>-1&&e.taskFiles.splice(s,1)})},openTask({state:e,dispatch:t},r){let i=r;$A.isJson(r)&&(r.parent_id>0?i=r.parent_id:i=r.id),e.taskArchiveView=i,e.taskId=i,i>0&&t("getTaskOne",{task_id:i,archived:"all"}).then(()=>{t("getTaskContent",i),t("getTaskFiles",i),t("getTaskForParent",i).catch(()=>{}),t("saveTaskBrowse",i)}).catch(({msg:a})=>{$A.modalWarning({content:a,onOk:()=>{e.taskId=0}})})},taskAdd({state:e,dispatch:t},r){return new Promise(function(i,a){const s=$A.cloneJSON($A.date2string(r));$A.isArray(s.column_id)&&(s.column_id=s.column_id.find(u=>u)),t("call",{url:"project/task/add",data:s,method:"post"}).then(u=>{u.data.is_visible===1&&t("addTaskSuccess",u.data),i(u)}).catch(u=>{console.warn(u),a(u)})})},taskAddSub({dispatch:e},t){return new Promise(function(r,i){e("call",{url:"project/task/addsub",data:t}).then(a=>{e("addTaskSuccess",a.data),r(a)}).catch(a=>{console.warn(a),i(a)})})},addTaskSuccess({dispatch:e},t){typeof t.new_column!="undefined"&&(e("saveColumn",t.new_column),delete t.new_column),e("saveTask",t),e("getProjectOne",t.project_id).catch(()=>{})},taskUpdate({state:e,dispatch:t},r){return new Promise(function(i,a){t("taskBeforeUpdate",r).then(({post:s})=>{t("setLoad",{key:`task-${s.task_id}`,delay:300}),t("call",{url:"project/task/update",data:s,method:"post"}).then(u=>{t("saveTask",u.data),i(u)}).catch(u=>{console.warn(u),t("getTaskOne",s.task_id).catch(()=>{}),a(u)}).finally(u=>{t("cancelLoad",`task-${s.task_id}`)})}).catch(a)})},taskBeforeUpdate({state:e,dispatch:t},r){return new Promise(function(i,a){let s=$A.cloneJSON($A.date2string(r)),u="\u6E29\u99A8\u63D0\u793A",c=null;if(typeof s.times!="undefined"){r.times[0]===!1&&(c="\u4F60\u786E\u5B9A\u8981\u53D6\u6D88\u4EFB\u52A1\u65F6\u95F4\u5417\uFF1F");const h=e.cacheTasks.find(({id:n})=>n==s.task_id);u=h.parent_id>0?"\u66F4\u65B0\u5B50\u4EFB\u52A1":"\u66F4\u65B0\u4E3B\u4EFB\u52A1",h&&(h.parent_id>0?s.times[0]&&e.cacheTasks.some(n=>{if(n.id!=h.parent_id)return!1;if(!n.end_at)return c="\u4E3B\u4EFB\u52A1\u6CA1\u6709\u8BBE\u7F6E\u65F6\u95F4\uFF0C\u8BBE\u7F6E\u5B50\u4EFB\u52A1\u5C06\u540C\u6B65\u8BBE\u7F6E\u4E3B\u4EFB\u52A1",!0;let p=$A.Date(s.times[0],!0),d=$A.Date(s.times[1],!0),v=$A.Date(n.start_at,!0),m=$A.Date(n.end_at,!0);if(pm)return c="\u65B0\u8BBE\u7F6E\u7684\u5B50\u4EFB\u52A1\u7ED3\u675F\u65F6\u95F4\u5728\u4E3B\u4EFB\u52A1\u65F6\u95F4\u4E4B\u5916\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u4E3B\u4EFB\u52A1",!0}):e.cacheTasks.some(n=>{if(n.parent_id!=h.id||!n.end_at)return!1;let p=$A.Date(s.times[0],!0),d=$A.Date(s.times[1],!0),v=$A.Date(h.start_at,!0),m=$A.Date(h.end_at,!0),g=$A.Date(n.start_at,!0),y=$A.Date(n.end_at,!0);if(v==g&&m==y)return!1;if(!s.times[0])return c=`\u5B50\u4EFB\u52A1\uFF08${n.name}\uFF09\u5DF2\u8BBE\u7F6E\u65F6\u95F4\uFF0C\u6E05\u9664\u4E3B\u4EFB\u52A1\u65F6\u95F4\u540E\u5C06\u540C\u6B65\u6E05\u9664\u5B50\u4EFB\u52A1\u7684\u65F6\u95F4`,!0;if(p>g)return c=`\u65B0\u8BBE\u7F6E\u7684\u5F00\u59CB\u65F6\u95F4\u5728\u5B50\u4EFB\u52A1\uFF08${n.name}\uFF09\u65F6\u95F4\u4E4B\u5185\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u5B50\u4EFB\u52A1`,!0;if(d{i({confirm:!0,post:s})},onCancel:()=>{a({msg:!1})}})})},getTaskFlow({state:e,dispatch:t},r){return new Promise(function(i,a){t("call",{url:"project/task/flow",data:{task_id:r}}).then(s=>{let u=e.cacheTasks.find(({id:n})=>n==r),{data:c}=s;c.turns.some(n=>{const p=e.taskFlowItems.findIndex(({id:d})=>d==n.id);p>-1?e.taskFlowItems.splice(p,1,n):e.taskFlowItems.push(n),u&&u.flow_item_id==n.id&&u.flow_item_name!=n.name&&e.cacheTasks.filter(({flow_item_id:d})=>d==n.id).some(d=>{t("saveTask",{id:d.id,flow_item_name:`${n.status}|${n.name}`})})}),delete c.turns;const h=e.taskFlows.findIndex(({task_id:n})=>n==c.task_id);h>-1?e.taskFlows.splice(h,1,c):e.taskFlows.push(c),i(s)}).catch(s=>{console.warn(s),a(s)})})},getTaskPriority({state:e,dispatch:t}){return new Promise(function(r,i){t("call",{url:"system/priority"}).then(a=>{e.taskPriority=a.data,r(a)}).catch(a=>{console.warn(a),i(a)})})},getColumnTemplate({state:e,dispatch:t}){return new Promise(function(r,i){t("call",{url:"system/column/template"}).then(a=>{e.columnTemplate=a.data,r(a)}).catch(a=>{console.warn(a),i(a)})})},saveTaskCompleteTemp({state:e},t){/^\d+$/.test(t)&&!e.taskCompleteTemps.includes(t)&&e.taskCompleteTemps.push(t)},forgetTaskCompleteTemp({state:e},t){t===!0?e.taskCompleteTemps=[]:/^\d+$/.test(t)&&(e.taskCompleteTemps=e.taskCompleteTemps.filter(r=>r!=t))},saveTaskBrowse({state:e},t){const r=e.cacheTaskBrowse.findIndex(({id:i})=>i==t);r>-1&&e.cacheTaskBrowse.splice(r,1),e.cacheTaskBrowse.unshift({id:t,userid:e.userId}),e.cacheTaskBrowse.length>200&&e.cacheTaskBrowse.splice(200),$A.IDBSave("cacheTaskBrowse",e.cacheTaskBrowse)},saveDialog({state:e,dispatch:t},r){if($A.execMainDispatch("saveDialog",r),$A.isArray(r))r.forEach(i=>{t("saveDialog",i)});else if($A.isJson(r)){r.id=parseInt(r.id);const i=e.cacheDialogs.findIndex(({id:a})=>a==r.id);if(i>-1){const a=e.cacheDialogs[i],s=r.user_ms,u=a.user_ms||0;s{t("updateDialogLastMsg",i)});else if($A.isJson(r))if(e.cacheDialogs.findIndex(({id:a})=>a==r.dialog_id)>-1){const a={id:r.dialog_id,last_msg:r,last_at:$A.formatDate("Y-m-d H:i:s")};r.mtype=="tag"&&(a.has_tag=!0),r.mtype=="image"&&(a.has_image=!0),r.mtype=="file"&&(a.has_file=!0),r.link&&(a.has_link=!0),t("saveDialog",a)}else t("getDialogOne",r.dialog_id).catch(()=>{})},getDialogs({state:e,dispatch:t,getters:r},i){return new Promise(function(a,s){if(e.userId===0){e.cacheDialogs=[],s({msg:"Parameter error"});return}$A.isJson(i)||(i={}),typeof i.page=="undefined"&&(i.page=1),typeof i.pagesize=="undefined"&&(i.pagesize=20);const u=ag("dialogs",i,e);u.showLoad()&&e.loadDialogs++,t("call",{url:"dialog/lists",data:u.get()}).then(({data:c})=>{t("saveDialog",c.data),u.save(c).then(h=>t("forgetDialog",h)),c.next_page_url&&c.current_page<5?(i.page++,t("getDialogs",i).then(a).catch(s)):a()}).catch(c=>{console.warn(c),s(c)}).finally(c=>{u.showLoad()&&e.loadDialogs--})})},getDialogOne({state:e,dispatch:t},r){return new Promise(function(i,a){if($A.runNum(r)===0){a({msg:"Parameter error"});return}t("call",{url:"dialog/one",data:{dialog_id:r}}).then(s=>{t("saveDialog",s.data),i(s)}).catch(s=>{console.warn(s),a(s)})})},getDialogTodo({state:e,dispatch:t},r){t("call",{url:"dialog/todo",data:{dialog_id:r}}).then(({data:i})=>{$A.arrayLength(i)>0?(t("saveDialog",{id:r,todo_num:$A.arrayLength(i)}),e.dialogTodos=e.dialogTodos.filter(a=>a.dialog_id!=r),t("saveDialogTodo",i)):t("saveDialog",{id:r,todo_num:0})}).catch(console.warn)},openDialog({state:e,dispatch:t},r){return new Promise(i=>{let a;$A.isJson(r)&&(a=r.search_msg_id,r=r.dialog_id),requestAnimationFrame(s=>{e.dialogSearchMsgId=/^\d+$/.test(a)?a:0,e.dialogId=/^\d+$/.test(r)?r:0,i()})})},openDialogUserid({state:e,dispatch:t},r){return new Promise(function(i,a){const s=e.cacheDialogs.find(u=>u.type!=="user"||!u.dialog_user?!1:u.dialog_user.userid===r);if(s){t("openDialog",s.id),i(s);return}t("showSpinner",600),t("call",{url:"dialog/open/user",data:{userid:r}}).then(({data:u})=>{t("saveDialog",u),t("openDialog",u.id),i(u)}).catch(u=>{console.warn(u),a(u)}).finally(u=>{t("hiddenSpinner")})})},forgetDialog({state:e,dispatch:t},r){$A.execMainDispatch("forgetDialog",r);const i=$A.isArray(r)?r:[r];i.some(a=>{const s=e.cacheDialogs.findIndex(u=>u.id==a);s>-1&&(t("forgetDialogMsg",e.dialogMsgs.filter(u=>u.dialog_id==r).map(u=>u.id)),e.cacheDialogs.splice(s,1))}),i.includes(e.dialogId)&&(e.dialogId=0),$A.IDBSave("cacheDialogs",e.cacheDialogs)},saveInDialog({state:e,dispatch:t},r){$A.execMainDispatch("saveInDialog",r);const i=e.dialogIns.findIndex(u=>u.uid==r.uid);i>-1?e.dialogIns.splice(i,1,Object.assign({},e.dialogIns[i],r)):e.dialogIns.push(r);const a=1500,s=30;if(e.dialogHistory=e.dialogHistory.filter(u=>u!=r.dialog_id),e.dialogHistory.push(r.dialog_id),e.dialogMsgs.length>a&&e.dialogHistory.length>s){const u=e.dialogHistory.slice().reverse(),c=[],h=[];u.forEach(n=>{c.lengthp.dialog_id==n)>-1?c.push(n):h.push(n)}),h.length>0&&(e.dialogMsgs=e.dialogMsgs.filter(n=>!h.includes(n.dialog_id)),$A.IDBSave("dialogMsgs",e.dialogMsgs,600)),e.dialogHistory=c}},forgetInDialog({state:e,dispatch:t},r){$A.execMainDispatch("forgetInDialog",r);const i=e.dialogIns.findIndex(a=>a.uid==r);i>-1&&e.dialogIns.splice(i,1)},closeDialog({state:e,dispatch:t},r){if($A.execMainDispatch("closeDialog",r),!/^\d+$/.test(r))return;const i=e.cacheDialogs.find(u=>u.id==r);i&&(i.extra_draft_has=i.extra_draft_content?1:0);const a=50,s=e.dialogMsgs.filter(u=>u.dialog_id==r);if(s.length>a){const u=s.sort((c,h)=>h.id-c.id).splice(a).map(c=>c.id);e.dialogMsgs=e.dialogMsgs.filter(c=>!u.includes(c.id)),$A.IDBSave("dialogMsgs",e.dialogMsgs,600)}},saveDialogTodo({state:e,dispatch:t},r){if($A.execMainDispatch("saveDialogTodo",r),$A.isArray(r))r.forEach(i=>{t("saveDialogTodo",i)});else if($A.isJson(r)){const i=e.dialogTodos.findIndex(a=>a.id==r.id);i>-1?e.dialogTodos.splice(i,1,Object.assign({},e.dialogTodos[i],r)):e.dialogTodos.push(r)}},forgetDialogTodoForMsgId({state:e,dispatch:t},r){$A.execMainDispatch("forgetDialogTodoForMsgId",r);const i=e.dialogTodos.findIndex(a=>a.msg_id==r);i>-1&&e.dialogTodos.splice(i,1)},saveDialogDraft({state:e,dispatch:t},r){e.dialogDraftTimer[r.id]&&clearInterval(e.dialogDraftTimer[r.id]),e.dialogDraftTimer[r.id]=setTimeout(i=>{e.dialogId!=r.id&&(r.extra_draft_has=r.extra_draft_content?1:0),t("saveDialog",r)},r.extra_draft_content?600:0)},saveDialogMsg({state:e,dispatch:t},r){if($A.execMainDispatch("saveDialogMsg",r),$A.isArray(r))r.forEach(i=>{t("saveDialogMsg",i)});else if($A.isJson(r)){const i=e.dialogMsgs.findIndex(({id:s})=>s==r.id);r=Object.assign({},e.dialogMsgs[i],r),i>-1?e.dialogMsgs.splice(i,1,r):e.dialogMsgs.push(r),$A.IDBSave("dialogMsgs",e.dialogMsgs,600);const a=e.cacheDialogs.find(({id:s,last_msg:u})=>s==r.dialog_id&&u&&u.id===r.id);a&&t("saveDialog",{id:r.dialog_id,last_msg:Object.assign({},a.last_msg,r)})}},forgetDialogMsg({state:e,dispatch:t},r){$A.execMainDispatch("forgetDialogMsg",r),($A.isArray(r)?r:[r]).some(a=>{const s=e.dialogMsgs.findIndex(u=>u.id==a);if(s>-1){const u=e.dialogMsgs[s];t("decrementMsgReplyNum",u),t("audioStop",$A.getObject(u,"msg.path")),e.dialogMsgs.splice(s,1),$A.IDBSave("dialogMsgs",e.dialogMsgs,600)}}),t("forgetDialogTodoForMsgId",r)},getDialogMsgs({state:e,dispatch:t,getters:r},i){return new Promise((a,s)=>{let u=d=>{},c=d=>{},h=!1,n=!1;typeof i.save_before!="undefined"&&(u=typeof i.save_before=="function"?i.save_before:d=>{},delete i.save_before),typeof i.save_after!="undefined"&&(c=typeof i.save_after=="function"?i.save_after:d=>{},delete i.save_after),typeof i.clear_before!="undefined"&&(h=typeof i.clear_before=="boolean"?i.clear_before:!1,delete i.clear_before),typeof i.spinner!="undefined"&&(n=i.spinner,delete i.spinner);const p=`msg::${i.dialog_id}-${i.msg_id}-${i.msg_type||""}`;if(r.isLoad(p)){s({msg:"Loading"});return}t("setLoad",p),h&&(e.dialogMsgs=e.dialogMsgs.filter(({dialog_id:d})=>d!==i.dialog_id),$A.IDBSave("dialogMsgs",e.dialogMsgs,600)),t("call",{url:"dialog/msg/list",data:i,spinner:n,complete:d=>t("cancelLoad",p)}).then(d=>{u();const v=d.data;if($A.isJson(v.dialog)){setTimeout(g=>t("saveDialog",v.dialog),10);const m=v.list.map(({id:g})=>g);e.dialogMsgs=e.dialogMsgs.filter(g=>g.dialog_id!=i.dialog_id||m.includes(g.id)||$A.Time(g.created_at)>=v.time),$A.IDBSave("dialogMsgs",e.dialogMsgs,600)}$A.isArray(v.todo)&&(e.dialogTodos=e.dialogTodos.filter(m=>m.dialog_id!=i.dialog_id),t("saveDialogTodo",v.todo)),t("saveDialogMsg",v.list),a(d),c()}).catch(d=>{console.warn(d),s(d)}).finally(d=>{if(i.prev_id){const v=e.dialogMsgs.find(({prev_id:m})=>m==i.prev_id);v&&(v.prev_id=0)}if(i.next_id){const v=e.dialogMsgs.find(({next_id:m})=>m==i.next_id);v&&(v.next_id=0)}})})},dialogMsgRead({state:e,dispatch:t},r){if($A.isJson(r)){if(r.userid==e.userId||r.read_at)return;r.read_at=$A.formatDate(),e.wsReadWaitData[r.id]=r.id}clearTimeout(e.wsReadTimeout),e.wsReadTimeout=setTimeout(i=>{const a=Object.values(e.wsReadWaitData);e.wsReadWaitData={},a.length!==0&&t("call",{url:"dialog/msg/read",data:{id:a.join(",")}}).then(({data:s})=>{t("saveDialog",s)}).catch(s=>{a.some(u=>{e.wsReadWaitData[u]=u})})},50)},dialogMsgMark({state:e,dispatch:t},r){return new Promise((i,a)=>{t("call",{url:"dialog/msg/mark",data:r}).then(s=>{t("saveDialog",s.data),i(s)}).catch(s=>{a(s)})})},setLoad({state:e,dispatch:t},r){if($A.isJson(r)){setTimeout(a=>{t("setLoad",r.key)},r.delay||0);return}const i=e.loads.find(a=>a.key==r);i?i.num++:e.loads.push({key:r,num:1})},cancelLoad({state:e},t){const r=e.loads.find(i=>i.key==t);r?r.num--:e.loads.push({key:t,num:-1})},showSpinner({state:e},t){const r=$A.randomString(6);e.floatSpinnerTimer.push({id:r,timer:setTimeout(i=>{e.floatSpinnerTimer=e.floatSpinnerTimer.filter(a=>a.id!==r),e.floatSpinnerLoad++},typeof t=="number"?t:0)})},hiddenSpinner({state:e}){const t=e.floatSpinnerTimer.shift();t?clearTimeout(t.timer):e.floatSpinnerLoad--},previewImage({state:e},t){$A.isJson(t)||(t={index:0,list:[t]}),e.previewImageIndex=t.index,e.previewImageList=t.list},audioPlay({state:e,dispatch:t},r){const i=document.getElementById("__audio_play_element__");if(i&&(i.pause(),i.src=null,i.parentNode.removeChild(i)),!r||r===e.audioPlaying){e.audioPlaying=null;return}const a=document.createElement("audio");a.id=e.audioPlayId="__audio_play_element__",a.controls=!1,a.loop=!1,a.volume=1,a.src=e.audioPlaying=r,a.onended=s=>{t("audioStop",a.src)},document.body.appendChild(a),a.play().then(s=>{})},audioStop({state:e},t){const r=document.getElementById("__audio_play_element__");!r||(r.src===t||t===!0)&&(r.pause(),r.src=null,r.parentNode.removeChild(r),e.audioPlaying=null)},websocketConnection({state:e,dispatch:t,commit:r}){if(clearTimeout(e.wsTimeout),e.ws&&(e.ws.close(),e.ws=null),e.userId===0)return;let i=$A.apiUrl("../ws");i=i.replace("https://","wss://"),i=i.replace("http://","ws://"),i+=`?action=web&token=${e.userToken}&language=${el}`;const a=$A.openLog,s=$A.randomString(16);e.wsRandom=s,e.ws=new WebSocket(i),e.ws.onopen=async u=>{a&&console.log("[WS] Open",u,$A.formatDate()),e.wsOpenNum++,t("websocketSend",{type:"encrypt",data:{type:"pgp",key:(await t("pgpGetLocalKey")).publicKeyB64}})},e.ws.onclose=async u=>{a&&console.log("[WS] Close",u,$A.formatDate()),e.ws=null,clearTimeout(e.wsTimeout),e.wsTimeout=setTimeout(()=>{s===e.wsRandom&&t("websocketConnection")},3e3)},e.ws.onerror=async u=>{a&&console.log("[WS] Error",u,$A.formatDate()),e.ws=null,clearTimeout(e.wsTimeout),e.wsTimeout=setTimeout(()=>{s===e.wsRandom&&t("websocketConnection")},3e3)},e.ws.onmessage=async u=>{a&&console.log("[WS] Message",u);let c=$A.jsonParse(u.data);c.type==="encrypt"&&c.encrypted&&(c=await t("pgpDecryptApi",c.encrypted));const h=$A.formatMsgBasic(c),{type:n,msgId:p}=h;switch(n){case"open":$A.setSessionStorage("userWsFd",h.data.fd);break;case"receipt":typeof e.wsCall[p]=="function"&&e.wsCall[p](h.body,!0),delete e.wsCall[p];break;case"line":t("saveUserOnlineStatus",h.data);break;default:switch(p&&t("websocketSend",{type:"receipt",msgId:p}).catch(d=>{}),e.wsMsg=h,Object.values(e.wsListener).forEach(d=>{if(typeof d=="function")try{d(h)}catch(v){a&&console.log("[WS] Callerr",v)}}),n){case"dialog":(function(d){const{mode:v,silence:m,data:g}=d,{dialog_id:y}=g;switch(v){case"delete":if(t("forgetDialogMsg",g.id),e.cacheDialogs.find(({id:k})=>k==y)){const k={id:y,last_at:g.last_msg&&g.last_msg.created_at,last_msg:g.last_msg};g.update_read?t("call",{url:"dialog/msg/unread",data:{dialog_id:y}}).then(({data:O})=>{t("saveDialog",Object.assign(k,O))}).catch(()=>{}):t("saveDialog",k)}break;case"add":case"chat":if(!e.dialogMsgs.find(({id:k})=>k==g.id)){if(t("increaseTaskMsgNum",g),t("increaseMsgReplyNum",g),v==="chat"||$A.isSubElectron)return;if(g.userid!==e.userId){const k=e.cacheDialogs.find(({id:O})=>O==y);if(k){const O={id:y,unread:k.unread+1,mention:k.mention,user_at:g.user_at,user_ms:g.user_ms};g.mention&&O.mention++,t("saveDialog",O)}}m||il.Store.set("dialogMsgPush",g)}t("saveDialogMsg",g),t("updateDialogLastMsg",g);break;case"update":case"readed":if(e.dialogMsgs.find(({id:k})=>k==g.id))t("saveDialogMsg",g),typeof g.todo!="undefined"&&t("getDialogTodo",y);else if(v==="readed"){let k=0;const O=setInterval(S=>{k>6&&clearInterval(O),e.dialogMsgs.find(({id:x})=>x==g.id)&&(clearInterval(O),t("saveDialogMsg",g)),k++},500)}break;case"groupAdd":case"groupJoin":case"groupRestore":t("getDialogOne",g.id).catch(()=>{});break;case"groupUpdate":e.cacheDialogs.find(({id:k})=>k==g.id)&&t("saveDialog",g);break;case"groupExit":case"groupDelete":t("forgetDialog",g.id);break}})(h);break;case"project":(function(d){const{action:v,data:m}=d;switch(v){case"add":case"update":case"recovery":t("saveProject",m);break;case"detail":t("getProjectOne",m.id).catch(()=>{}),t("getTaskForProject",m.id).catch(()=>{});break;case"delete":case"archived":t("forgetProject",m.id);break;case"sort":t("getTaskForProject",m.id).catch(()=>{});break}})(h);break;case"projectColumn":(function(d){const{action:v,data:m}=d;switch(v){case"add":case"update":t("saveColumn",m);break;case"delete":t("forgetColumn",m.id);break}})(h);break;case"projectTask":(function(d){const{action:v,data:m}=d;switch(v){case"add":case"restore":t("addTaskSuccess",m);break;case"update":case"archived":case"recovery":t("saveTask",m);break;case"dialog":t("saveTask",m),t("getDialogOne",m.dialog_id).catch(()=>{});break;case"upload":t("getTaskFiles",m.task_id);break;case"filedelete":t("forgetTaskFile",m.id);break;case"delete":t("forgetTask",m.id);break}})(h);break;case"file":(function(d){const{action:v,data:m}=d;switch(v){case"add":case"update":t("saveFile",m);break;case"delete":t("forgetFile",m.id);break}})(h);break}break}}},websocketSend({state:e},t){return new Promise((r,i)=>{var h;if(!$A.isJson(t)){i();return}const{type:a,data:s,callback:u}=t;let c;if(!e.ws){typeof u=="function"&&u(null,!1),i();return}typeof u=="function"&&(c=$A.randomString(16),e.wsCall[c]=u);try{(h=e.ws)==null||h.send(JSON.stringify({type:a,msgId:c,data:s})),r()}catch(n){typeof u=="function"&&u(null,!1),i(n)}})},websocketPath({state:e,dispatch:t},r){clearTimeout(e.wsPathTimeout),e.wsPathValue=r,e.wsPathTimeout=setTimeout(()=>{e.wsPathValue==r&&t("websocketSend",{type:"path",data:{path:r}}).catch(i=>{})},1e3)},websocketMsgListener({state:e},t){const{name:r,callback:i}=t;typeof i=="function"?e.wsListener[r]=i:e.wsListener[r]&&delete e.wsListener[r]},websocketClose({state:e}){e.ws&&(e.ws.close(),e.ws=null)},pgpGenerate({state:e}){return new Promise(async t=>{const r=await kW({type:"ecc",curve:"curve25519",passphrase:e.clientId,userIDs:[{name:"doo",email:"admin@admin.com"}]});r.publicKeyB64=IW(r.publicKey.replace(/\s*-----(BEGIN|END) PGP PUBLIC KEY BLOCK-----\s*/g,"")),t(r)})},pgpGetLocalKey({state:e,dispatch:t}){return new Promise(async r=>{if(e.localKeyPair.privateKey)return r(e.localKeyPair);for(;e.localKeyLock===!0;)await new Promise(i=>setTimeout(i,100));if(e.localKeyPair.privateKey)return r(e.localKeyPair);e.localKeyLock=!0,e.localKeyPair=await t("pgpGenerate"),e.localKeyLock=!1,r(e.localKeyPair)})},pgpEncrypt({state:e,dispatch:t},r){return new Promise(async i=>{$A.isJson(r)||(r={message:r});const a=r.message||r.text,s=r.publicKey||r.key||(await t("pgpGetLocalKey")).publicKey,u=await gW({armoredKey:s}),c=await DW({message:await SW({text:a}),encryptionKeys:u});i(c)})},pgpDecrypt({state:e,dispatch:t},r){return new Promise(async i=>{$A.isJson(r)||(r={encrypted:r});const a=r.encrypted||r.text,s=r.privateKey||r.key||(await t("pgpGetLocalKey")).privateKey,u=await EW({privateKey:await yW({armoredKey:s}),passphrase:r.passphrase||e.clientId}),{data:c}=await OW({message:await xW({armoredMessage:a}),decryptionKeys:u});i(c)})},pgpEncryptApi({state:e,dispatch:t},r){return new Promise(i=>{r=$A.jsonStringify(r),t("pgpEncrypt",{message:r,publicKey:e.apiKeyData.key}).then(a=>{i(a.replace(/\s*-----(BEGIN|END) PGP MESSAGE-----\s*/g,""))})})},pgpDecryptApi({state:e,dispatch:t},r){return new Promise(i=>{t("pgpDecrypt",{encrypted:`-----BEGIN PGP MESSAGE----- @@ -341,18 +341,18 @@ Please report this to https://github.com/markedjs/marked.`,(t||Gn.defaults).sile `)])],1)])])])},HP=[];$1._withStripped=!0;var hs=i(12),bf=i.n(hs),GP=i(39),YP=i.n(GP),o_=void 0,R1={success:"success",info:"info",warning:"warning",error:"error"},XP={mixins:[A.a,O.a],props:{modal:{default:!0},lockScroll:{default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{default:!0},closeOnPressEscape:{default:!0},closeOnHashChange:{default:!0},center:{default:!1,type:Boolean},roundButton:{default:!1,type:Boolean}},components:{ElInput:b.a,ElButton:B.a},computed:{icon:function(){var l=this.type,f=this.iconClass;return f||(l&&R1[l]?"el-icon-"+R1[l]:"")},confirmButtonClasses:function(){return"el-button--primary "+this.confirmButtonClass},cancelButtonClasses:function(){return""+this.cancelButtonClass}},methods:{getSafeClose:function(){var l=this,f=this.uid;return function(){l.$nextTick(function(){f===l.uid&&l.doClose()})}},doClose:function(){var l=this;!this.visible||(this.visible=!1,this._closing=!0,this.onClose&&this.onClose(),o_.closeDialog(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose(),setTimeout(function(){l.action&&l.callback(l.action,l)}))},handleWrapperClick:function(){this.closeOnClickModal&&this.handleAction(this.distinguishCancelAndClose?"close":"cancel")},handleInputEnter:function(){if(this.inputType!=="textarea")return this.handleAction("confirm")},handleAction:function(l){this.$type==="prompt"&&l==="confirm"&&!this.validate()||(this.action=l,typeof this.beforeClose=="function"?(this.close=this.getSafeClose(),this.beforeClose(l,this,this.close)):this.doClose())},validate:function(){if(this.$type==="prompt"){var l=this.inputPattern;if(l&&!l.test(this.inputValue||""))return this.editorErrorMessage=this.inputErrorMessage||Object(hs.t)("el.messagebox.error"),Object(Le.addClass)(this.getInputElement(),"invalid"),!1;var f=this.inputValidator;if(typeof f=="function"){var _=f(this.inputValue);if(_===!1)return this.editorErrorMessage=this.inputErrorMessage||Object(hs.t)("el.messagebox.error"),Object(Le.addClass)(this.getInputElement(),"invalid"),!1;if(typeof _=="string")return this.editorErrorMessage=_,Object(Le.addClass)(this.getInputElement(),"invalid"),!1}}return this.editorErrorMessage="",Object(Le.removeClass)(this.getInputElement(),"invalid"),!0},getFirstFocus:function(){var l=this.$el.querySelector(".el-message-box__btns .el-button"),f=this.$el.querySelector(".el-message-box__btns .el-message-box__title");return l||f},getInputElement:function(){var l=this.$refs.input.$refs;return l.input||l.textarea},handleClose:function(){this.handleAction("close")}},watch:{inputValue:{immediate:!0,handler:function(l){var f=this;this.$nextTick(function(_){f.$type==="prompt"&&l!==null&&f.validate()})}},visible:function(l){var f=this;l&&(this.uid++,(this.$type==="alert"||this.$type==="confirm")&&this.$nextTick(function(){f.$refs.confirm.$el.focus()}),this.focusAfterClosed=document.activeElement,o_=new YP.a(this.$el,this.focusAfterClosed,this.getFirstFocus())),this.$type==="prompt"&&(l?setTimeout(function(){f.$refs.input&&f.$refs.input.$el&&f.getInputElement().focus()},500):(this.editorErrorMessage="",Object(Le.removeClass)(this.getInputElement(),"invalid")))}},mounted:function(){var l=this;this.$nextTick(function(){l.closeOnHashChange&&window.addEventListener("hashchange",l.close)})},beforeDestroy:function(){this.closeOnHashChange&&window.removeEventListener("hashchange",this.close),setTimeout(function(){o_.closeDialog()})},data:function(){return{uid:1,title:void 0,message:"",type:"",iconClass:"",customClass:"",showInput:!1,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,action:"",confirmButtonText:"",cancelButtonText:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonClass:"",confirmButtonDisabled:!1,cancelButtonClass:"",editorErrorMessage:null,callback:null,dangerouslyUseHTMLString:!1,focusAfterClosed:null,isOnComposition:!1,distinguishCancelAndClose:!1}}},JP=XP,L1=h(JP,$1,HP,!1,null,null,null);L1.options.__file="packages/message-box/src/main.vue";var ZP=L1.exports,Bl=i(22),l_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},N1={title:null,message:"",type:"",iconClass:"",showInput:!1,showClose:!0,modalFade:!0,lockScroll:!0,closeOnClickModal:!0,closeOnPressEscape:!0,closeOnHashChange:!0,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,confirmButtonPosition:"right",confirmButtonHighlight:!1,cancelButtonHighlight:!1,confirmButtonText:"",cancelButtonText:"",confirmButtonClass:"",cancelButtonClass:"",customClass:"",beforeClose:null,dangerouslyUseHTMLString:!1,center:!1,roundButton:!1,distinguishCancelAndClose:!1},QP=Bt.a.extend(ZP),Ia=void 0,er=void 0,cc=[],B1=function(l){if(Ia){var f=Ia.callback;typeof f=="function"&&(er.showInput?f(er.inputValue,l):f(l)),Ia.resolve&&(l==="confirm"?er.showInput?Ia.resolve({value:er.inputValue,action:l}):Ia.resolve(l):Ia.reject&&(l==="cancel"||l==="close")&&Ia.reject(l))}},qP=function(){er=new QP({el:document.createElement("div")}),er.callback=B1},F1=function o(){if(er||qP(),er.action="",(!er.visible||er.closeTimer)&&cc.length>0){Ia=cc.shift();var l=Ia.options;for(var f in l)l.hasOwnProperty(f)&&(er[f]=l[f]);l.callback===void 0&&(er.callback=B1);var _=er.callback;er.callback=function(C,P){_(C,P),o()},Object(Bl.isVNode)(er.message)?(er.$slots.default=[er.message],er.message=null):delete er.$slots.default,["modal","showClose","closeOnClickModal","closeOnPressEscape","closeOnHashChange"].forEach(function(C){er[C]===void 0&&(er[C]=!0)}),document.body.appendChild(er.$el),Bt.a.nextTick(function(){er.visible=!0})}},$a=function o(l,f){if(!Bt.a.prototype.$isServer){if(typeof l=="string"||Object(Bl.isVNode)(l)?(l={message:l},typeof arguments[1]=="string"&&(l.title=arguments[1])):l.callback&&!f&&(f=l.callback),typeof Promise!="undefined")return new Promise(function(_,C){cc.push({options:bn()({},N1,o.defaults,l),callback:f,resolve:_,reject:C}),F1()});cc.push({options:bn()({},N1,o.defaults,l),callback:f}),F1()}};$a.setDefaults=function(o){$a.defaults=o},$a.alert=function(o,l,f){return(typeof l=="undefined"?"undefined":l_(l))==="object"?(f=l,l=""):l===void 0&&(l=""),$a(bn()({title:l,message:o,$type:"alert",closeOnPressEscape:!1,closeOnClickModal:!1},f))},$a.confirm=function(o,l,f){return(typeof l=="undefined"?"undefined":l_(l))==="object"?(f=l,l=""):l===void 0&&(l=""),$a(bn()({title:l,message:o,$type:"confirm",showCancelButton:!0},f))},$a.prompt=function(o,l,f){return(typeof l=="undefined"?"undefined":l_(l))==="object"?(f=l,l=""):l===void 0&&(l=""),$a(bn()({title:l,message:o,showCancelButton:!0,showInput:!0,$type:"prompt"},f))},$a.close=function(){er.doClose(),er.visible=!1,cc=[],Ia=null};var eT=$a,dc=eT,z1=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-breadcrumb",attrs:{"aria-label":"Breadcrumb",role:"navigation"}},[o._t("default")],2)},tT=[];z1._withStripped=!0;var nT={name:"ElBreadcrumb",props:{separator:{type:String,default:"/"},separatorClass:{type:String,default:""}},provide:function(){return{elBreadcrumb:this}},mounted:function(){var l=this.$el.querySelectorAll(".el-breadcrumb__item");l.length&&l[l.length-1].setAttribute("aria-current","page")}},rT=nT,j1=h(rT,z1,tT,!1,null,null,null);j1.options.__file="packages/breadcrumb/src/breadcrumb.vue";var wf=j1.exports;wf.install=function(o){o.component(wf.name,wf)};var U1=wf,V1=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("span",{staticClass:"el-breadcrumb__item"},[f("span",{ref:"link",class:["el-breadcrumb__inner",o.to?"is-link":""],attrs:{role:"link"}},[o._t("default")],2),o.separatorClass?f("i",{staticClass:"el-breadcrumb__separator",class:o.separatorClass}):f("span",{staticClass:"el-breadcrumb__separator",attrs:{role:"presentation"}},[o._v(o._s(o.separator))])])},iT=[];V1._withStripped=!0;var aT={name:"ElBreadcrumbItem",props:{to:{},replace:Boolean},data:function(){return{separator:"",separatorClass:""}},inject:["elBreadcrumb"],mounted:function(){var l=this;this.separator=this.elBreadcrumb.separator,this.separatorClass=this.elBreadcrumb.separatorClass;var f=this.$refs.link;f.setAttribute("role","link"),f.addEventListener("click",function(_){var C=l.to,P=l.$router;!C||!P||(l.replace?P.replace(C):P.push(C))})}},sT=aT,W1=h(sT,V1,iT,!1,null,null,null);W1.options.__file="packages/breadcrumb/src/breadcrumb-item.vue";var Cf=W1.exports;Cf.install=function(o){o.component(Cf.name,Cf)};var K1=Cf,H1=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("form",{staticClass:"el-form",class:[o.labelPosition?"el-form--label-"+o.labelPosition:"",{"el-form--inline":o.inline}]},[o._t("default")],2)},oT=[];H1._withStripped=!0;var lT={name:"ElForm",componentName:"ElForm",provide:function(){return{elForm:this}},props:{model:Object,rules:Object,labelPosition:String,labelWidth:String,labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:String,disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1}},watch:{rules:function(){this.fields.forEach(function(l){l.removeValidateEvents(),l.addValidateEvents()}),this.validateOnRuleChange&&this.validate(function(){})}},computed:{autoLabelWidth:function(){if(!this.potentialLabelWidthArr.length)return 0;var l=Math.max.apply(Math,this.potentialLabelWidthArr);return l?l+"px":""}},data:function(){return{fields:[],potentialLabelWidthArr:[]}},created:function(){var l=this;this.$on("el.form.addField",function(f){f&&l.fields.push(f)}),this.$on("el.form.removeField",function(f){f.prop&&l.fields.splice(l.fields.indexOf(f),1)})},methods:{resetFields:function(){if(!this.model){console.warn("[Element Warn][Form]model is required for resetFields to work.");return}this.fields.forEach(function(l){l.resetField()})},clearValidate:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=l.length?typeof l=="string"?this.fields.filter(function(_){return l===_.prop}):this.fields.filter(function(_){return l.indexOf(_.prop)>-1}):this.fields;f.forEach(function(_){_.clearValidate()})},validate:function(l){var f=this;if(!this.model){console.warn("[Element Warn][Form]model is required for validate to work!");return}var _=void 0;typeof l!="function"&&window.Promise&&(_=new window.Promise(function(ne,Se){l=function(Ue,Xe){Ue?ne(Ue):Se(Xe)}}));var C=!0,P=0;this.fields.length===0&&l&&l(!0);var z={};if(this.fields.forEach(function(ne){ne.validate("",function(Se,Re){Se&&(C=!1),z=bn()({},z,Re),typeof l=="function"&&++P===f.fields.length&&l(C,z)})}),_)return _},validateField:function(l,f){l=[].concat(l);var _=this.fields.filter(function(C){return l.indexOf(C.prop)!==-1});if(!_.length){console.warn("[Element Warn]please pass correct props!");return}_.forEach(function(C){C.validate("",f)})},getLabelWidthIndex:function(l){var f=this.potentialLabelWidthArr.indexOf(l);if(f===-1)throw new Error("[ElementForm]unpected width ",l);return f},registerLabelWidth:function(l,f){if(l&&f){var _=this.getLabelWidthIndex(f);this.potentialLabelWidthArr.splice(_,1,l)}else l&&this.potentialLabelWidthArr.push(l)},deregisterLabelWidth:function(l){var f=this.getLabelWidthIndex(l);this.potentialLabelWidthArr.splice(f,1)}}},uT=lT,G1=h(uT,H1,oT,!1,null,null,null);G1.options.__file="packages/form/src/form.vue";var xf=G1.exports;xf.install=function(o){o.component(xf.name,xf)};var Y1=xf,X1=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-form-item",class:[{"el-form-item--feedback":o.elForm&&o.elForm.statusIcon,"is-error":o.validateState==="error","is-validating":o.validateState==="validating","is-success":o.validateState==="success","is-required":o.isRequired||o.required,"is-no-asterisk":o.elForm&&o.elForm.hideRequiredAsterisk},o.sizeClass?"el-form-item--"+o.sizeClass:""]},[f("label-wrap",{attrs:{"is-auto-width":o.labelStyle&&o.labelStyle.width==="auto","update-all":o.form.labelWidth==="auto"}},[o.label||o.$slots.label?f("label",{staticClass:"el-form-item__label",style:o.labelStyle,attrs:{for:o.labelFor}},[o._t("label",[o._v(o._s(o.label+o.form.labelSuffix))])],2):o._e()]),f("div",{staticClass:"el-form-item__content",style:o.contentStyle},[o._t("default"),f("transition",{attrs:{name:"el-zoom-in-top"}},[o.validateState==="error"&&o.showMessage&&o.form.showMessage?o._t("error",[f("div",{staticClass:"el-form-item__error",class:{"el-form-item__error--inline":typeof o.inlineMessage=="boolean"?o.inlineMessage:o.elForm&&o.elForm.inlineMessage||!1}},[o._v(` `+o._s(o.validateMessage)+` `)])],{error:o.validateMessage}):o._e()],2)],2)],1)},cT=[];X1._withStripped=!0;var dT=i(40),fT=i.n(dT),hT={props:{isAutoWidth:Boolean,updateAll:Boolean},inject:["elForm","elFormItem"],render:function(){var l=arguments[0],f=this.$slots.default;if(!f)return null;if(this.isAutoWidth){var _=this.elForm.autoLabelWidth,C={};if(_&&_!=="auto"){var P=parseInt(_,10)-this.computedWidth;P&&(C.marginLeft=P+"px")}return l("div",{class:"el-form-item__label-wrap",style:C},[f])}else return f[0]},methods:{getLabelWidth:function(){if(this.$el&&this.$el.firstElementChild){var l=window.getComputedStyle(this.$el.firstElementChild).width;return Math.ceil(parseFloat(l))}else return 0},updateLabelWidth:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"update";this.$slots.default&&this.isAutoWidth&&this.$el.firstElementChild&&(l==="update"?this.computedWidth=this.getLabelWidth():l==="remove"&&this.elForm.deregisterLabelWidth(this.computedWidth))}},watch:{computedWidth:function(l,f){this.updateAll&&(this.elForm.registerLabelWidth(l,f),this.elFormItem.updateComputedLabelWidth(l))}},data:function(){return{computedWidth:0}},mounted:function(){this.updateLabelWidth("update")},updated:function(){this.updateLabelWidth("update")},beforeDestroy:function(){this.updateLabelWidth("remove")}},pT=hT,vT,mT,J1=h(pT,vT,mT,!1,null,null,null);J1.options.__file="packages/form/src/label-wrap.vue";var _T=J1.exports,gT={name:"ElFormItem",componentName:"ElFormItem",mixins:[W.a],provide:function(){return{elFormItem:this}},inject:["elForm"],props:{label:String,labelWidth:String,prop:String,required:{type:Boolean,default:void 0},rules:[Object,Array],error:String,validateStatus:String,for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:String},components:{LabelWrap:_T},watch:{error:{immediate:!0,handler:function(l){this.validateMessage=l,this.validateState=l?"error":""}},validateStatus:function(l){this.validateState=l},rules:function(l){(!l||l.length===0)&&this.required===void 0&&this.clearValidate()}},computed:{labelFor:function(){return this.for||this.prop},labelStyle:function(){var l={};if(this.form.labelPosition==="top")return l;var f=this.labelWidth||this.form.labelWidth;return f&&(l.width=f),l},contentStyle:function(){var l={},f=this.label;if(this.form.labelPosition==="top"||this.form.inline||!f&&!this.labelWidth&&this.isNested)return l;var _=this.labelWidth||this.form.labelWidth;return _==="auto"?this.labelWidth==="auto"?l.marginLeft=this.computedLabelWidth:this.form.labelWidth==="auto"&&(l.marginLeft=this.elForm.autoLabelWidth):l.marginLeft=_,l},form:function(){for(var l=this.$parent,f=l.$options.componentName;f!=="ElForm";)f==="ElFormItem"&&(this.isNested=!0),l=l.$parent,f=l.$options.componentName;return l},fieldValue:function(){var l=this.form.model;if(!(!l||!this.prop)){var f=this.prop;return f.indexOf(":")!==-1&&(f=f.replace(/:/,".")),Object(S.getPropByPath)(l,f,!0).v}},isRequired:function(){var l=this.getRules(),f=!1;return l&&l.length&&l.every(function(_){return _.required?(f=!0,!1):!0}),f},_formSize:function(){return this.elForm.size},elFormItemSize:function(){return this.size||this._formSize},sizeClass:function(){return this.elFormItemSize||(this.$ELEMENT||{}).size}},data:function(){return{validateState:"",validateMessage:"",validateDisabled:!1,validator:{},isNested:!1,computedLabelWidth:""}},methods:{validate:function(l){var f=this,_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S.noop;this.validateDisabled=!1;var C=this.getFilteredRule(l);if((!C||C.length===0)&&this.required===void 0)return _(),!0;this.validateState="validating";var P={};C&&C.length>0&&C.forEach(function(Se){delete Se.trigger}),P[this.prop]=C;var z=new fT.a(P),ne={};ne[this.prop]=this.fieldValue,z.validate(ne,{firstFields:!0},function(Se,Re){f.validateState=Se?"error":"success",f.validateMessage=Se?Se[0].message:"",_(f.validateMessage,Re),f.elForm&&f.elForm.$emit("validate",f.prop,!Se,f.validateMessage||null)})},clearValidate:function(){this.validateState="",this.validateMessage="",this.validateDisabled=!1},resetField:function(){var l=this;this.validateState="",this.validateMessage="";var f=this.form.model,_=this.fieldValue,C=this.prop;C.indexOf(":")!==-1&&(C=C.replace(/:/,"."));var P=Object(S.getPropByPath)(f,C,!0);this.validateDisabled=!0,Array.isArray(_)?P.o[P.k]=[].concat(this.initialValue):P.o[P.k]=this.initialValue,this.$nextTick(function(){l.validateDisabled=!1}),this.broadcast("ElTimeSelect","fieldReset",this.initialValue)},getRules:function(){var l=this.form.rules,f=this.rules,_=this.required!==void 0?{required:!!this.required}:[],C=Object(S.getPropByPath)(l,this.prop||"");return l=l?C.o[this.prop||""]||C.v:[],[].concat(f||l||[]).concat(_)},getFilteredRule:function(l){var f=this.getRules();return f.filter(function(_){return!_.trigger||l===""?!0:Array.isArray(_.trigger)?_.trigger.indexOf(l)>-1:_.trigger===l}).map(function(_){return bn()({},_)})},onFieldBlur:function(){this.validate("blur")},onFieldChange:function(){if(this.validateDisabled){this.validateDisabled=!1;return}this.validate("change")},updateComputedLabelWidth:function(l){this.computedLabelWidth=l?l+"px":""},addValidateEvents:function(){var l=this.getRules();(l.length||this.required!==void 0)&&(this.$on("el.form.blur",this.onFieldBlur),this.$on("el.form.change",this.onFieldChange))},removeValidateEvents:function(){this.$off()}},mounted:function(){if(this.prop){this.dispatch("ElForm","el.form.addField",[this]);var l=this.fieldValue;Array.isArray(l)&&(l=[].concat(l)),Object.defineProperty(this,"initialValue",{value:l}),this.addValidateEvents()}},beforeDestroy:function(){this.dispatch("ElForm","el.form.removeField",[this])}},yT=gT,Z1=h(yT,X1,cT,!1,null,null,null);Z1.options.__file="packages/form/src/form-item.vue";var Sf=Z1.exports;Sf.install=function(o){o.component(Sf.name,Sf)};var Q1=Sf,q1=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-tabs__active-bar",class:"is-"+o.rootTabs.tabPosition,style:o.barStyle})},bT=[];q1._withStripped=!0;var wT={name:"TabBar",props:{tabs:Array},inject:["rootTabs"],computed:{barStyle:{get:function(){var l=this,f={},_=0,C=0,P=["top","bottom"].indexOf(this.rootTabs.tabPosition)!==-1?"width":"height",z=P==="width"?"x":"y",ne=function(Ue){return Ue.toLowerCase().replace(/( |^)[a-z]/g,function(Xe){return Xe.toUpperCase()})};this.tabs.every(function(Re,Ue){var Xe=Object(S.arrayFind)(l.$parent.$refs.tabs||[],function(Ot){return Ot.id.replace("tab-","")===Re.paneName});if(!Xe)return!1;if(Re.active){C=Xe["client"+ne(P)];var dt=window.getComputedStyle(Xe);return P==="width"&&l.tabs.length>1&&(C-=parseFloat(dt.paddingLeft)+parseFloat(dt.paddingRight)),P==="width"&&(_+=parseFloat(dt.paddingLeft)),!1}else return _+=Xe["client"+ne(P)],!0});var Se="translate"+ne(z)+"("+_+"px)";return f[P]=C+"px",f.transform=Se,f.msTransform=Se,f.webkitTransform=Se,f}}}},CT=wT,e2=h(CT,q1,bT,!1,null,null,null);e2.options.__file="packages/tabs/src/tab-bar.vue";var xT=e2.exports;function t2(){}var fc=function(l){return l.toLowerCase().replace(/( |^)[a-z]/g,function(f){return f.toUpperCase()})},ST={name:"TabNav",components:{TabBar:xT},inject:["rootTabs"],props:{panes:Array,currentName:String,editable:Boolean,onTabClick:{type:Function,default:t2},onTabRemove:{type:Function,default:t2},type:String,stretch:Boolean},data:function(){return{scrollable:!1,navOffset:0,isFocus:!1,focusable:!0}},computed:{navStyle:function(){var l=["top","bottom"].indexOf(this.rootTabs.tabPosition)!==-1?"X":"Y";return{transform:"translate"+l+"(-"+this.navOffset+"px)"}},sizeName:function(){return["top","bottom"].indexOf(this.rootTabs.tabPosition)!==-1?"width":"height"}},methods:{scrollPrev:function(){var l=this.$refs.navScroll["offset"+fc(this.sizeName)],f=this.navOffset;if(!!f){var _=f>l?f-l:0;this.navOffset=_}},scrollNext:function(){var l=this.$refs.nav["offset"+fc(this.sizeName)],f=this.$refs.navScroll["offset"+fc(this.sizeName)],_=this.navOffset;if(!(l-_<=f)){var C=l-_>f*2?_+f:l-f;this.navOffset=C}},scrollToActiveTab:function(){if(!!this.scrollable){var l=this.$refs.nav,f=this.$el.querySelector(".is-active");if(!!f){var _=this.$refs.navScroll,C=["top","bottom"].indexOf(this.rootTabs.tabPosition)!==-1,P=f.getBoundingClientRect(),z=_.getBoundingClientRect(),ne=C?l.offsetWidth-z.width:l.offsetHeight-z.height,Se=this.navOffset,Re=Se;C?(P.leftz.right&&(Re=Se+P.right-z.right)):(P.topz.bottom&&(Re=Se+(P.bottom-z.bottom))),Re=Math.max(Re,0),this.navOffset=Math.min(Re,ne)}}},update:function(){if(!!this.$refs.nav){var l=this.sizeName,f=this.$refs.nav["offset"+fc(l)],_=this.$refs.navScroll["offset"+fc(l)],C=this.navOffset;if(_0&&(this.navOffset=0)}},changeTab:function(l){var f=l.keyCode,_=void 0,C=void 0,P=void 0;if([37,38,39,40].indexOf(f)!==-1)P=l.currentTarget.querySelectorAll("[role=tab]"),C=Array.prototype.indexOf.call(P,l.target);else return;f===37||f===38?C===0?_=P.length-1:_=C-1:C0&&arguments[0]!==void 0?arguments[0]:!1;if(this.$slots.default){var _=this.$slots.default.filter(function(z){return z.tag&&z.componentOptions&&z.componentOptions.Ctor.options.name==="ElTabPane"}),C=_.map(function(z){var ne=z.componentInstance;return ne}),P=!(C.length===this.panes.length&&C.every(function(z,ne){return z===l.panes[ne]}));(f||P)&&(this.panes=C)}else this.panes.length!==0&&(this.panes=[])},handleTabClick:function(l,f,_){l.disabled||(this.setCurrentName(f),this.$emit("tab-click",l,_))},handleTabRemove:function(l,f){l.disabled||(f.stopPropagation(),this.$emit("edit",l.name,"remove"),this.$emit("tab-remove",l.name))},handleTabAdd:function(){this.$emit("edit",null,"add"),this.$emit("tab-add")},setCurrentName:function(l){var f=this,_=function(){f.currentName=l,f.$emit("input",l)};if(this.currentName!==l&&this.beforeLeave){var C=this.beforeLeave(l,this.currentName);C&&C.then?C.then(function(){_(),f.$refs.nav&&f.$refs.nav.removeFocus()},function(){}):C!==!1&&_()}else _()}},render:function(l){var f,_=this.type,C=this.handleTabClick,P=this.handleTabRemove,z=this.handleTabAdd,ne=this.currentName,Se=this.panes,Re=this.editable,Ue=this.addable,Xe=this.tabPosition,dt=this.stretch,Ot=Re||Ue?l("span",{class:"el-tabs__new-tab",on:{click:z,keydown:function(hn){hn.keyCode===13&&z()}},attrs:{tabindex:"0"}},[l("i",{class:"el-icon-plus"})]):null,Mt={props:{currentName:ne,onTabClick:C,onTabRemove:P,editable:Re,type:_,panes:Se,stretch:dt},ref:"nav"},Lt=l("div",{class:["el-tabs__header","is-"+Xe]},[Ot,l("tab-nav",Mt)]),ft=l("div",{class:"el-tabs__content"},[this.$slots.default]);return l("div",{class:(f={"el-tabs":!0,"el-tabs--card":_==="card"},f["el-tabs--"+Xe]=!0,f["el-tabs--border-card"]=_==="border-card",f)},[Xe!=="bottom"?[Lt,ft]:[ft,Lt]])},created:function(){this.currentName||this.setCurrentName("0"),this.$on("tab-nav-update",this.calcPaneInstances.bind(null,!0))},mounted:function(){this.calcPaneInstances()},updated:function(){this.calcPaneInstances()}},TT=PT,AT,MT,r2=h(TT,AT,MT,!1,null,null,null);r2.options.__file="packages/tabs/src/tabs.vue";var kf=r2.exports;kf.install=function(o){o.component(kf.name,kf)};var i2=kf,a2=function(){var o=this,l=o.$createElement,f=o._self._c||l;return!o.lazy||o.loaded||o.active?f("div",{directives:[{name:"show",rawName:"v-show",value:o.active,expression:"active"}],staticClass:"el-tab-pane",attrs:{role:"tabpanel","aria-hidden":!o.active,id:"pane-"+o.paneName,"aria-labelledby":"tab-"+o.paneName}},[o._t("default")],2):o._e()},IT=[];a2._withStripped=!0;var $T={name:"ElTabPane",componentName:"ElTabPane",props:{label:String,labelContent:Function,name:String,closable:Boolean,disabled:Boolean,lazy:Boolean},data:function(){return{index:null,loaded:!1}},computed:{isClosable:function(){return this.closable||this.$parent.closable},active:function(){var l=this.$parent.currentName===(this.name||this.index);return l&&(this.loaded=!0),l},paneName:function(){return this.name||this.index}},updated:function(){this.$parent.$emit("tab-nav-update")}},RT=$T,s2=h(RT,a2,IT,!1,null,null,null);s2.options.__file="packages/tabs/src/tab-pane.vue";var Ef=s2.exports;Ef.install=function(o){o.component(Ef.name,Ef)};var o2=Ef,LT={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(l){return["dark","light","plain"].indexOf(l)!==-1}}},methods:{handleClose:function(l){l.stopPropagation(),this.$emit("close",l)},handleClick:function(l){this.$emit("click",l)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(l){var f=this.type,_=this.tagSize,C=this.hit,P=this.effect,z=["el-tag",f?"el-tag--"+f:"",_?"el-tag--"+_:"",P?"el-tag--"+P:"",C&&"is-hit"],ne=l("span",{class:z,style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&l("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?ne:l("transition",{attrs:{name:"el-zoom-in-center"}},[ne])}},NT=LT,BT,FT,l2=h(NT,BT,FT,!1,null,null,null);l2.options.__file="packages/tag/src/tag.vue";var Df=l2.exports;Df.install=function(o){o.component(Df.name,Df)};var u2=Df,c2=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-tree",class:{"el-tree--highlight-current":o.highlightCurrent,"is-dragging":!!o.dragState.draggingNode,"is-drop-not-allow":!o.dragState.allowDrop,"is-drop-inner":o.dragState.dropType==="inner"},attrs:{role:"tree"}},[o._l(o.root.childNodes,function(_){return f("el-tree-node",{key:o.getNodeKey(_),attrs:{node:_,props:o.props,"render-after-expand":o.renderAfterExpand,"show-checkbox":o.showCheckbox,"render-content":o.renderContent},on:{"node-expand":o.handleNodeExpand}})}),o.isEmpty?f("div",{staticClass:"el-tree__empty-block"},[f("span",{staticClass:"el-tree__empty-text"},[o._v(o._s(o.emptyText))])]):o._e(),f("div",{directives:[{name:"show",rawName:"v-show",value:o.dragState.showDropIndicator,expression:"dragState.showDropIndicator"}],ref:"dropIndicator",staticClass:"el-tree__drop-indicator"})],2)},zT=[];c2._withStripped=!0;var Fl="$treeNodeId",d2=function(l,f){!f||f[Fl]||Object.defineProperty(f,Fl,{value:l.id,enumerable:!1,configurable:!1,writable:!1})},u_=function(l,f){return l?f[l]:f[Fl]},jT=function(l,f){for(var _=l;_&&_.tagName!=="BODY";){if(_.__vue__&&_.__vue__.$options.name===f)return _.__vue__;_=_.parentNode}return null},UT=function(){function o(l,f){for(var _=0;_0&&_.lazy&&_.defaultExpandAll&&this.expand(),Array.isArray(this.data)||d2(this,this.data),!!this.data){var z=_.defaultExpandedKeys,ne=_.key;ne&&z&&z.indexOf(this.key)!==-1&&this.expand(null,_.autoExpandParent),ne&&_.currentNodeKey!==void 0&&this.key===_.currentNodeKey&&(_.currentNode=this,_.currentNode.isCurrent=!0),_.lazy&&_._initDefaultCheckedNode(this),this.updateLeafState()}}return o.prototype.setData=function(f){Array.isArray(f)||d2(this,f),this.data=f,this.childNodes=[];var _=void 0;this.level===0&&this.data instanceof Array?_=this.data:_=Of(this,"children")||[];for(var C=0,P=_.length;C1&&arguments[1]!==void 0?arguments[1]:!0,C=function P(z){for(var ne=z.childNodes||[],Se=!1,Re=0,Ue=ne.length;Re-1&&_.splice(C,1);var P=this.childNodes.indexOf(f);P>-1&&(this.store&&this.store.deregisterNode(f),f.parent=null,this.childNodes.splice(P,1)),this.updateLeafState()},o.prototype.removeChildByData=function(f){for(var _=null,C=0;C0;)ne.expanded=!0,ne=ne.parent;C.expanded=!0,f&&f()};this.shouldLoadData()?this.loadData(function(z){z instanceof Array&&(C.checked?C.setChecked(!0,!0):C.store.checkStrictly||d_(C),P())}):P()},o.prototype.doCreateChildren=function(f){var _=this,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};f.forEach(function(P){_.insertChild(bn()({data:P},C),void 0,!0)})},o.prototype.collapse=function(){this.expanded=!1},o.prototype.shouldLoadData=function(){return this.store.lazy===!0&&this.store.load&&!this.loaded},o.prototype.updateLeafState=function(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser!="undefined"){this.isLeaf=this.isLeafByUser;return}var f=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!f||f.length===0;return}this.isLeaf=!1},o.prototype.setChecked=function(f,_,C,P){var z=this;if(this.indeterminate=f==="half",this.checked=f===!0,!this.store.checkStrictly){if(!(this.shouldLoadData()&&!this.store.checkDescendants)){var ne=c_(this.childNodes),Se=ne.all,Re=ne.allWithoutDisable;!this.isLeaf&&!Se&&Re&&(this.checked=!1,f=!1);var Ue=function(){if(_){for(var Ot=z.childNodes,Mt=0,Lt=Ot.length;Mt0&&arguments[0]!==void 0?arguments[0]:!1;if(this.level===0)return this.data;var _=this.data;if(!_)return null;var C=this.store.props,P="children";return C&&(P=C.children||"children"),_[P]===void 0&&(_[P]=null),f&&!_[P]&&(_[P]=[]),_[P]},o.prototype.updateChildren=function(){var f=this,_=this.getChildren()||[],C=this.childNodes.map(function(ne){return ne.data}),P={},z=[];_.forEach(function(ne,Se){var Re=ne[Fl],Ue=!!Re&&Object(S.arrayFindIndex)(C,function(Xe){return Xe[Fl]===Re})>=0;Ue?P[Re]={index:Se,data:ne}:z.push({index:Se,data:ne})}),this.store.lazy||C.forEach(function(ne){P[ne[Fl]]||f.removeChildByData(ne)}),z.forEach(function(ne){var Se=ne.index,Re=ne.data;f.insertChild({data:Re},Se)}),this.updateLeafState()},o.prototype.loadData=function(f){var _=this,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(C).length)){this.loading=!0;var P=function(ne){_.childNodes=[],_.doCreateChildren(ne,C),_.loaded=!0,_.loading=!1,_.updateLeafState(),f&&f.call(_,ne)};this.store.load(this,P)}else f&&f.call(this)},UT(o,[{key:"label",get:function(){return Of(this,"label")}},{key:"key",get:function(){var f=this.store.key;return this.data?this.data[f]:null}},{key:"disabled",get:function(){return Of(this,"disabled")}},{key:"nextSibling",get:function(){var f=this.parent;if(f){var _=f.childNodes.indexOf(this);if(_>-1)return f.childNodes[_+1]}return null}},{key:"previousSibling",get:function(){var f=this.parent;if(f){var _=f.childNodes.indexOf(this);if(_>-1)return _>0?f.childNodes[_-1]:null}return null}}]),o}(),f2=KT,HT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o};function GT(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}var YT=function(){function o(l){var f=this;GT(this,o),this.currentNode=null,this.currentNodeKey=null;for(var _ in l)l.hasOwnProperty(_)&&(this[_]=l[_]);if(this.nodesMap={},this.root=new f2({data:this.data,store:this}),this.lazy&&this.load){var C=this.load;C(this.root,function(P){f.root.doCreateChildren(P),f._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}return o.prototype.filter=function(f){var _=this.filterNodeMethod,C=this.lazy,P=function z(ne){var Se=ne.root?ne.root.childNodes:ne.childNodes;if(Se.forEach(function(Ue){Ue.visible=_.call(Ue,f,Ue.data,Ue),z(Ue)}),!ne.visible&&Se.length){var Re=!0;Re=!Se.some(function(Ue){return Ue.visible}),ne.root?ne.root.visible=Re===!1:ne.visible=Re===!1}!f||ne.visible&&!ne.isLeaf&&!C&&ne.expand()};P(this)},o.prototype.setData=function(f){var _=f!==this.root.data;_?(this.root.setData(f),this._initDefaultCheckedNodes()):this.root.updateChildren()},o.prototype.getNode=function(f){if(f instanceof f2)return f;var _=(typeof f=="undefined"?"undefined":HT(f))!=="object"?f:u_(this.key,f);return this.nodesMap[_]||null},o.prototype.insertBefore=function(f,_){var C=this.getNode(_);C.parent.insertBefore({data:f},C)},o.prototype.insertAfter=function(f,_){var C=this.getNode(_);C.parent.insertAfter({data:f},C)},o.prototype.remove=function(f){var _=this.getNode(f);_&&_.parent&&(_===this.currentNode&&(this.currentNode=null),_.parent.removeChild(_))},o.prototype.append=function(f,_){var C=_?this.getNode(_):this.root;C&&C.insertChild({data:f})},o.prototype._initDefaultCheckedNodes=function(){var f=this,_=this.defaultCheckedKeys||[],C=this.nodesMap;_.forEach(function(P){var z=C[P];z&&z.setChecked(!0,!f.checkStrictly)})},o.prototype._initDefaultCheckedNode=function(f){var _=this.defaultCheckedKeys||[];_.indexOf(f.key)!==-1&&f.setChecked(!0,!this.checkStrictly)},o.prototype.setDefaultCheckedKey=function(f){f!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=f,this._initDefaultCheckedNodes())},o.prototype.registerNode=function(f){var _=this.key;if(!(!_||!f||!f.data)){var C=f.key;C!==void 0&&(this.nodesMap[f.key]=f)}},o.prototype.deregisterNode=function(f){var _=this,C=this.key;!C||!f||!f.data||(f.childNodes.forEach(function(P){_.deregisterNode(P)}),delete this.nodesMap[f.key])},o.prototype.getCheckedNodes=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=[],P=function z(ne){var Se=ne.root?ne.root.childNodes:ne.childNodes;Se.forEach(function(Re){(Re.checked||_&&Re.indeterminate)&&(!f||f&&Re.isLeaf)&&C.push(Re.data),z(Re)})};return P(this),C},o.prototype.getCheckedKeys=function(){var f=this,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return this.getCheckedNodes(_).map(function(C){return(C||{})[f.key]})},o.prototype.getHalfCheckedNodes=function(){var f=[],_=function C(P){var z=P.root?P.root.childNodes:P.childNodes;z.forEach(function(ne){ne.indeterminate&&f.push(ne.data),C(ne)})};return _(this),f},o.prototype.getHalfCheckedKeys=function(){var f=this;return this.getHalfCheckedNodes().map(function(_){return(_||{})[f.key]})},o.prototype._getAllNodes=function(){var f=[],_=this.nodesMap;for(var C in _)_.hasOwnProperty(C)&&f.push(_[C]);return f},o.prototype.updateChildren=function(f,_){var C=this.nodesMap[f];if(!!C){for(var P=C.childNodes,z=P.length-1;z>=0;z--){var ne=P[z];this.remove(ne.data)}for(var Se=0,Re=_.length;Se1&&arguments[1]!==void 0?arguments[1]:!1,C=arguments[2],P=this._getAllNodes().sort(function(Mt,Lt){return Lt.level-Mt.level}),z=Object.create(null),ne=Object.keys(C);P.forEach(function(Mt){return Mt.setChecked(!1,!1)});for(var Se=0,Re=P.length;Se-1;if(!dt){Ue.checked&&!z[Xe]&&Ue.setChecked(!1,!1);continue}for(var Ot=Ue.parent;Ot&&Ot.level>0;)z[Ot.data[f]]=!0,Ot=Ot.parent;if(Ue.isLeaf||this.checkStrictly){Ue.setChecked(!0,!1);continue}Ue.setChecked(!0,!0),_&&function(){Ue.setChecked(!1,!1);var Mt=function Lt(ft){var kn=ft.childNodes;kn.forEach(function(hn){hn.isLeaf||hn.setChecked(!1,!1),Lt(hn)})};Mt(Ue)}()}},o.prototype.setCheckedNodes=function(f){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=this.key,P={};f.forEach(function(z){P[(z||{})[C]]=!0}),this._setCheckedKeys(C,_,P)},o.prototype.setCheckedKeys=function(f){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;this.defaultCheckedKeys=f;var C=this.key,P={};f.forEach(function(z){P[z]=!0}),this._setCheckedKeys(C,_,P)},o.prototype.setDefaultExpandedKeys=function(f){var _=this;f=f||[],this.defaultExpandedKeys=f,f.forEach(function(C){var P=_.getNode(C);P&&P.expand(null,_.autoExpandParent)})},o.prototype.setChecked=function(f,_,C){var P=this.getNode(f);P&&P.setChecked(!!_,C)},o.prototype.getCurrentNode=function(){return this.currentNode},o.prototype.setCurrentNode=function(f){var _=this.currentNode;_&&(_.isCurrent=!1),this.currentNode=f,this.currentNode.isCurrent=!0},o.prototype.setUserCurrentNode=function(f){var _=f[this.key],C=this.nodesMap[_];this.setCurrentNode(C)},o.prototype.setCurrentNodeKey=function(f){if(f==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}var _=this.getNode(f);_&&this.setCurrentNode(_)},o}(),XT=YT,h2=function(){var o=this,l=this,f=l.$createElement,_=l._self._c||f;return _("div",{directives:[{name:"show",rawName:"v-show",value:l.node.visible,expression:"node.visible"}],ref:"node",staticClass:"el-tree-node",class:{"is-expanded":l.expanded,"is-current":l.node.isCurrent,"is-hidden":!l.node.visible,"is-focusable":!l.node.disabled,"is-checked":!l.node.disabled&&l.node.checked},attrs:{role:"treeitem",tabindex:"-1","aria-expanded":l.expanded,"aria-disabled":l.node.disabled,"aria-checked":l.node.checked,draggable:l.tree.draggable},on:{click:function(C){return C.stopPropagation(),l.handleClick(C)},contextmenu:function(C){return o.handleContextMenu(C)},dragstart:function(C){return C.stopPropagation(),l.handleDragStart(C)},dragover:function(C){return C.stopPropagation(),l.handleDragOver(C)},dragend:function(C){return C.stopPropagation(),l.handleDragEnd(C)},drop:function(C){return C.stopPropagation(),l.handleDrop(C)}}},[_("div",{staticClass:"el-tree-node__content",style:{"padding-left":(l.node.level-1)*l.tree.indent+"px"}},[_("span",{class:[{"is-leaf":l.node.isLeaf,expanded:!l.node.isLeaf&&l.expanded},"el-tree-node__expand-icon",l.tree.iconClass?l.tree.iconClass:"el-icon-caret-right"],on:{click:function(C){return C.stopPropagation(),l.handleExpandIconClick(C)}}}),l.showCheckbox?_("el-checkbox",{attrs:{indeterminate:l.node.indeterminate,disabled:!!l.node.disabled},on:{change:l.handleCheckChange},nativeOn:{click:function(C){C.stopPropagation()}},model:{value:l.node.checked,callback:function(C){l.$set(l.node,"checked",C)},expression:"node.checked"}}):l._e(),l.node.loading?_("span",{staticClass:"el-tree-node__loading-icon el-icon-loading"}):l._e(),_("node-content",{attrs:{node:l.node}})],1),_("el-collapse-transition",[!l.renderAfterExpand||l.childNodeRendered?_("div",{directives:[{name:"show",rawName:"v-show",value:l.expanded,expression:"expanded"}],staticClass:"el-tree-node__children",attrs:{role:"group","aria-expanded":l.expanded}},l._l(l.node.childNodes,function(C){return _("el-tree-node",{key:l.getNodeKey(C),attrs:{"render-content":l.renderContent,"render-after-expand":l.renderAfterExpand,"show-checkbox":l.showCheckbox,node:C},on:{"node-expand":l.handleChildNodeExpand}})}),1):l._e()])],1)},JT=[];h2._withStripped=!0;var ZT={name:"ElTreeNode",componentName:"ElTreeNode",mixins:[W.a],props:{node:{default:function(){return{}}},props:{},renderContent:Function,renderAfterExpand:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1}},components:{ElCollapseTransition:en.a,ElCheckbox:He.a,NodeContent:{props:{node:{required:!0}},render:function(l){var f=this.$parent,_=f.tree,C=this.node,P=C.data,z=C.store;return f.renderContent?f.renderContent.call(f._renderProxy,l,{_self:_.$vnode.context,node:C,data:P,store:z}):_.$scopedSlots.default?_.$scopedSlots.default({node:C,data:P}):l("span",{class:"el-tree-node__label"},[C.label])}}},data:function(){return{tree:null,expanded:!1,childNodeRendered:!1,oldChecked:null,oldIndeterminate:null}},watch:{"node.indeterminate":function(l){this.handleSelectChange(this.node.checked,l)},"node.checked":function(l){this.handleSelectChange(l,this.node.indeterminate)},"node.expanded":function(l){var f=this;this.$nextTick(function(){return f.expanded=l}),l&&(this.childNodeRendered=!0)}},methods:{getNodeKey:function(l){return u_(this.tree.nodeKey,l.data)},handleSelectChange:function(l,f){this.oldChecked!==l&&this.oldIndeterminate!==f&&this.tree.$emit("check-change",this.node.data,l,f),this.oldChecked=l,this.indeterminate=f},handleClick:function(){var l=this.tree.store;l.setCurrentNode(this.node),this.tree.$emit("current-change",l.currentNode?l.currentNode.data:null,l.currentNode),this.tree.currentNode=this,this.tree.expandOnClickNode&&this.handleExpandIconClick(),this.tree.checkOnClickNode&&!this.node.disabled&&this.handleCheckChange(null,{target:{checked:!this.node.checked}}),this.tree.$emit("node-click",this.node.data,this.node,this)},handleContextMenu:function(l){this.tree._events["node-contextmenu"]&&this.tree._events["node-contextmenu"].length>0&&(l.stopPropagation(),l.preventDefault()),this.tree.$emit("node-contextmenu",l,this.node.data,this.node,this)},handleExpandIconClick:function(){this.node.isLeaf||(this.expanded?(this.tree.$emit("node-collapse",this.node.data,this.node,this),this.node.collapse()):(this.node.expand(),this.$emit("node-expand",this.node.data,this.node,this)))},handleCheckChange:function(l,f){var _=this;this.node.setChecked(f.target.checked,!this.tree.checkStrictly),this.$nextTick(function(){var C=_.tree.store;_.tree.$emit("check",_.node.data,{checkedNodes:C.getCheckedNodes(),checkedKeys:C.getCheckedKeys(),halfCheckedNodes:C.getHalfCheckedNodes(),halfCheckedKeys:C.getHalfCheckedKeys()})})},handleChildNodeExpand:function(l,f,_){this.broadcast("ElTreeNode","tree-node-expand",f),this.tree.$emit("node-expand",l,f,_)},handleDragStart:function(l){!this.tree.draggable||this.tree.$emit("tree-node-drag-start",l,this)},handleDragOver:function(l){!this.tree.draggable||(this.tree.$emit("tree-node-drag-over",l,this),l.preventDefault())},handleDrop:function(l){l.preventDefault()},handleDragEnd:function(l){!this.tree.draggable||this.tree.$emit("tree-node-drag-end",l,this)}},created:function(){var l=this,f=this.$parent;f.isTree?this.tree=f:this.tree=f.tree;var _=this.tree;_||console.warn("Can not find node's tree.");var C=_.props||{},P=C.children||"children";this.$watch("node.data."+P,function(){l.node.updateChildren()}),this.node.expanded&&(this.expanded=!0,this.childNodeRendered=!0),this.tree.accordion&&this.$on("tree-node-expand",function(z){l.node!==z&&l.node.collapse()})}},QT=ZT,p2=h(QT,h2,JT,!1,null,null,null);p2.options.__file="packages/tree/src/tree-node.vue";var qT=p2.exports,e7={name:"ElTree",mixins:[W.a],components:{ElTreeNode:qT},data:function(){return{store:null,root:null,currentNode:null,treeItems:null,checkboxItems:[],dragState:{showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0}}},props:{data:{type:Array},emptyText:{type:String,default:function(){return Object(hs.t)("el.tree.emptyText")}},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{default:function(){return{children:"children",label:"label",disabled:"disabled"}}},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},iconClass:String},computed:{children:{set:function(l){this.data=l},get:function(){return this.data}},treeItemArray:function(){return Array.prototype.slice.call(this.treeItems)},isEmpty:function(){var l=this.root.childNodes;return!l||l.length===0||l.every(function(f){var _=f.visible;return!_})}},watch:{defaultCheckedKeys:function(l){this.store.setDefaultCheckedKey(l)},defaultExpandedKeys:function(l){this.store.defaultExpandedKeys=l,this.store.setDefaultExpandedKeys(l)},data:function(l){this.store.setData(l)},checkboxItems:function(l){Array.prototype.forEach.call(l,function(f){f.setAttribute("tabindex",-1)})},checkStrictly:function(l){this.store.checkStrictly=l}},methods:{filter:function(l){if(!this.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");this.store.filter(l)},getNodeKey:function(l){return u_(this.nodeKey,l.data)},getNodePath:function(l){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");var f=this.store.getNode(l);if(!f)return[];for(var _=[f.data],C=f.parent;C&&C!==this.root;)_.push(C.data),C=C.parent;return _.reverse()},getCheckedNodes:function(l,f){return this.store.getCheckedNodes(l,f)},getCheckedKeys:function(l){return this.store.getCheckedKeys(l)},getCurrentNode:function(){var l=this.store.getCurrentNode();return l?l.data:null},getCurrentKey:function(){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");var l=this.getCurrentNode();return l?l[this.nodeKey]:null},setCheckedNodes:function(l,f){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");this.store.setCheckedNodes(l,f)},setCheckedKeys:function(l,f){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");this.store.setCheckedKeys(l,f)},setChecked:function(l,f,_){this.store.setChecked(l,f,_)},getHalfCheckedNodes:function(){return this.store.getHalfCheckedNodes()},getHalfCheckedKeys:function(){return this.store.getHalfCheckedKeys()},setCurrentNode:function(l){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");this.store.setUserCurrentNode(l)},setCurrentKey:function(l){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");this.store.setCurrentNodeKey(l)},getNode:function(l){return this.store.getNode(l)},remove:function(l){this.store.remove(l)},append:function(l,f){this.store.append(l,f)},insertBefore:function(l,f){this.store.insertBefore(l,f)},insertAfter:function(l,f){this.store.insertAfter(l,f)},handleNodeExpand:function(l,f,_){this.broadcast("ElTreeNode","tree-node-expand",f),this.$emit("node-expand",l,f,_)},updateKeyChildren:function(l,f){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");this.store.updateChildren(l,f)},initTabIndex:function(){this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]");var l=this.$el.querySelectorAll(".is-checked[role=treeitem]");if(l.length){l[0].setAttribute("tabindex",0);return}this.treeItems[0]&&this.treeItems[0].setAttribute("tabindex",0)},handleKeydown:function(l){var f=l.target;if(f.className.indexOf("el-tree-node")!==-1){var _=l.keyCode;this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]");var C=this.treeItemArray.indexOf(f),P=void 0;[38,40].indexOf(_)>-1&&(l.preventDefault(),_===38?P=C!==0?C-1:0:P=C-1&&(l.preventDefault(),f.click());var z=f.querySelector('[type="checkbox"]');[13,32].indexOf(_)>-1&&z&&(l.preventDefault(),z.click())}}},created:function(){var l=this;this.isTree=!0,this.store=new XT({key:this.nodeKey,data:this.data,lazy:this.lazy,props:this.props,load:this.load,currentNodeKey:this.currentNodeKey,checkStrictly:this.checkStrictly,checkDescendants:this.checkDescendants,defaultCheckedKeys:this.defaultCheckedKeys,defaultExpandedKeys:this.defaultExpandedKeys,autoExpandParent:this.autoExpandParent,defaultExpandAll:this.defaultExpandAll,filterNodeMethod:this.filterNodeMethod}),this.root=this.store.root;var f=this.dragState;this.$on("tree-node-drag-start",function(_,C){if(typeof l.allowDrag=="function"&&!l.allowDrag(C.node))return _.preventDefault(),!1;_.dataTransfer.effectAllowed="move";try{_.dataTransfer.setData("text/plain","")}catch{}f.draggingNode=C,l.$emit("node-drag-start",C.node,_)}),this.$on("tree-node-drag-over",function(_,C){var P=jT(_.target,"ElTreeNode"),z=f.dropNode;z&&z!==P&&Object(Le.removeClass)(z.$el,"is-drop-inner");var ne=f.draggingNode;if(!(!ne||!P)){var Se=!0,Re=!0,Ue=!0,Xe=!0;typeof l.allowDrop=="function"&&(Se=l.allowDrop(ne.node,P.node,"prev"),Xe=Re=l.allowDrop(ne.node,P.node,"inner"),Ue=l.allowDrop(ne.node,P.node,"next")),_.dataTransfer.dropEffect=Re?"move":"none",(Se||Re||Ue)&&z!==P&&(z&&l.$emit("node-drag-leave",ne.node,z.node,_),l.$emit("node-drag-enter",ne.node,P.node,_)),(Se||Re||Ue)&&(f.dropNode=P),P.node.nextSibling===ne.node&&(Ue=!1),P.node.previousSibling===ne.node&&(Se=!1),P.node.contains(ne.node,!1)&&(Re=!1),(ne.node===P.node||ne.node.contains(P.node))&&(Se=!1,Re=!1,Ue=!1);var dt=P.$el.getBoundingClientRect(),Ot=l.$el.getBoundingClientRect(),Mt=void 0,Lt=Se?Re?.25:Ue?.45:1:-1,ft=Ue?Re?.75:Se?.55:0:1,kn=-9999,hn=_.clientY-dt.top;hndt.height*ft?Mt="after":Re?Mt="inner":Mt="none";var Rn=P.$el.querySelector(".el-tree-node__expand-icon").getBoundingClientRect(),An=l.$refs.dropIndicator;Mt==="before"?kn=Rn.top-Ot.top:Mt==="after"&&(kn=Rn.bottom-Ot.top),An.style.top=kn+"px",An.style.left=Rn.right-Ot.left+"px",Mt==="inner"?Object(Le.addClass)(P.$el,"is-drop-inner"):Object(Le.removeClass)(P.$el,"is-drop-inner"),f.showDropIndicator=Mt==="before"||Mt==="after",f.allowDrop=f.showDropIndicator||Xe,f.dropType=Mt,l.$emit("node-drag-over",ne.node,P.node,_)}}),this.$on("tree-node-drag-end",function(_){var C=f.draggingNode,P=f.dropType,z=f.dropNode;if(_.preventDefault(),_.dataTransfer.dropEffect="move",C&&z){var ne={data:C.node.data};P!=="none"&&C.node.remove(),P==="before"?z.node.parent.insertBefore(ne,z.node):P==="after"?z.node.parent.insertAfter(ne,z.node):P==="inner"&&z.node.insertChild(ne),P!=="none"&&l.store.registerNode(ne),Object(Le.removeClass)(z.$el,"is-drop-inner"),l.$emit("node-drag-end",C.node,z.node,P,_),P!=="none"&&l.$emit("node-drop",C.node,z.node,P,_)}C&&!z&&l.$emit("node-drag-end",C.node,null,P,_),f.showDropIndicator=!1,f.draggingNode=null,f.dropNode=null,f.allowDrop=!0})},mounted:function(){this.initTabIndex(),this.$el.addEventListener("keydown",this.handleKeydown)},updated:function(){this.treeItems=this.$el.querySelectorAll("[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]")}},t7=e7,v2=h(t7,c2,zT,!1,null,null,null);v2.options.__file="packages/tree/src/tree.vue";var Pf=v2.exports;Pf.install=function(o){o.component(Pf.name,Pf)};var m2=Pf,_2=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("transition",{attrs:{name:"el-alert-fade"}},[f("div",{directives:[{name:"show",rawName:"v-show",value:o.visible,expression:"visible"}],staticClass:"el-alert",class:[o.typeClass,o.center?"is-center":"","is-"+o.effect],attrs:{role:"alert"}},[o.showIcon?f("i",{staticClass:"el-alert__icon",class:[o.iconClass,o.isBigIcon]}):o._e(),f("div",{staticClass:"el-alert__content"},[o.title||o.$slots.title?f("span",{staticClass:"el-alert__title",class:[o.isBoldTitle]},[o._t("title",[o._v(o._s(o.title))])],2):o._e(),o.$slots.default&&!o.description?f("p",{staticClass:"el-alert__description"},[o._t("default")],2):o._e(),o.description&&!o.$slots.default?f("p",{staticClass:"el-alert__description"},[o._v(o._s(o.description))]):o._e(),f("i",{directives:[{name:"show",rawName:"v-show",value:o.closable,expression:"closable"}],staticClass:"el-alert__closebtn",class:{"is-customed":o.closeText!=="","el-icon-close":o.closeText===""},on:{click:function(_){o.close()}}},[o._v(o._s(o.closeText))])])])])},n7=[];_2._withStripped=!0;var r7={success:"el-icon-success",warning:"el-icon-warning",error:"el-icon-error"},i7={name:"ElAlert",props:{title:{type:String,default:""},description:{type:String,default:""},type:{type:String,default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,default:"light",validator:function(l){return["light","dark"].indexOf(l)!==-1}}},data:function(){return{visible:!0}},methods:{close:function(){this.visible=!1,this.$emit("close")}},computed:{typeClass:function(){return"el-alert--"+this.type},iconClass:function(){return r7[this.type]||"el-icon-info"},isBigIcon:function(){return this.description||this.$slots.default?"is-big":""},isBoldTitle:function(){return this.description||this.$slots.default?"is-bold":""}}},a7=i7,g2=h(a7,_2,n7,!1,null,null,null);g2.options.__file="packages/alert/src/main.vue";var Tf=g2.exports;Tf.install=function(o){o.component(Tf.name,Tf)};var y2=Tf,b2=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("transition",{attrs:{name:"el-notification-fade"}},[f("div",{directives:[{name:"show",rawName:"v-show",value:o.visible,expression:"visible"}],class:["el-notification",o.customClass,o.horizontalClass],style:o.positionStyle,attrs:{role:"alert"},on:{mouseenter:function(_){o.clearTimer()},mouseleave:function(_){o.startTimer()},click:o.click}},[o.type||o.iconClass?f("i",{staticClass:"el-notification__icon",class:[o.typeClass,o.iconClass]}):o._e(),f("div",{staticClass:"el-notification__group",class:{"is-with-icon":o.typeClass||o.iconClass}},[f("h2",{staticClass:"el-notification__title",domProps:{textContent:o._s(o.title)}}),f("div",{directives:[{name:"show",rawName:"v-show",value:o.message,expression:"message"}],staticClass:"el-notification__content"},[o._t("default",[o.dangerouslyUseHTMLString?f("p",{domProps:{innerHTML:o._s(o.message)}}):f("p",[o._v(o._s(o.message))])])],2),o.showClose?f("div",{staticClass:"el-notification__closeBtn el-icon-close",on:{click:function(_){return _.stopPropagation(),o.close(_)}}}):o._e()])])])},s7=[];b2._withStripped=!0;var w2={success:"success",info:"info",warning:"warning",error:"error"},o7={data:function(){return{visible:!1,title:"",message:"",duration:4500,type:"",showClose:!0,customClass:"",iconClass:"",onClose:null,onClick:null,closed:!1,verticalOffset:0,timer:null,dangerouslyUseHTMLString:!1,position:"top-right"}},computed:{typeClass:function(){return this.type&&w2[this.type]?"el-icon-"+w2[this.type]:""},horizontalClass:function(){return this.position.indexOf("right")>-1?"right":"left"},verticalProperty:function(){return/^top-/.test(this.position)?"top":"bottom"},positionStyle:function(){var l;return l={},l[this.verticalProperty]=this.verticalOffset+"px",l}},watch:{closed:function(l){l&&(this.visible=!1,this.$el.addEventListener("transitionend",this.destroyElement))}},methods:{destroyElement:function(){this.$el.removeEventListener("transitionend",this.destroyElement),this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},click:function(){typeof this.onClick=="function"&&this.onClick()},close:function(){this.closed=!0,typeof this.onClose=="function"&&this.onClose()},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var l=this;this.duration>0&&(this.timer=setTimeout(function(){l.closed||l.close()},this.duration))},keydown:function(l){l.keyCode===46||l.keyCode===8?this.clearTimer():l.keyCode===27?this.closed||this.close():this.startTimer()}},mounted:function(){var l=this;this.duration>0&&(this.timer=setTimeout(function(){l.closed||l.close()},this.duration)),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},l7=o7,C2=h(l7,b2,s7,!1,null,null,null);C2.options.__file="packages/notification/src/main.vue";var u7=C2.exports,c7=Bt.a.extend(u7),qi=void 0,Ra=[],d7=1,hc=function o(l){if(!Bt.a.prototype.$isServer){l=bn()({},l);var f=l.onClose,_="notification_"+d7++,C=l.position||"top-right";l.onClose=function(){o.close(_,f)},qi=new c7({data:l}),Object(Bl.isVNode)(l.message)&&(qi.$slots.default=[l.message],l.message="REPLACED_BY_VNODE"),qi.id=_,qi.$mount(),document.body.appendChild(qi.$el),qi.visible=!0,qi.dom=qi.$el,qi.dom.style.zIndex=M.PopupManager.nextZIndex();var P=l.offset||0;return Ra.filter(function(z){return z.position===C}).forEach(function(z){P+=z.$el.offsetHeight+16}),P+=16,qi.verticalOffset=P,Ra.push(qi),qi}};["success","warning","info","error"].forEach(function(o){hc[o]=function(l){return(typeof l=="string"||Object(Bl.isVNode)(l))&&(l={message:l}),l.type=o,hc(l)}}),hc.close=function(o,l){var f=-1,_=Ra.length,C=Ra.filter(function(Se,Re){return Se.id===o?(f=Re,!0):!1})[0];if(!!C&&(typeof l=="function"&&l(C),Ra.splice(f,1),!(_<=1)))for(var P=C.position,z=C.dom.offsetHeight,ne=f;ne<_-1;ne++)Ra[ne].position===P&&(Ra[ne].dom.style[C.verticalProperty]=parseInt(Ra[ne].dom.style[C.verticalProperty],10)-z-16+"px")},hc.closeAll=function(){for(var o=Ra.length-1;o>=0;o--)Ra[o].close()};var f7=hc,x2=f7,S2=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-slider",class:{"is-vertical":o.vertical,"el-slider--with-input":o.showInput},attrs:{role:"slider","aria-valuemin":o.min,"aria-valuemax":o.max,"aria-orientation":o.vertical?"vertical":"horizontal","aria-disabled":o.sliderDisabled}},[o.showInput&&!o.range?f("el-input-number",{ref:"input",staticClass:"el-slider__input",attrs:{step:o.step,disabled:o.sliderDisabled,controls:o.showInputControls,min:o.min,max:o.max,debounce:o.debounce,size:o.inputSize},on:{change:o.emitChange},model:{value:o.firstValue,callback:function(_){o.firstValue=_},expression:"firstValue"}}):o._e(),f("div",{ref:"slider",staticClass:"el-slider__runway",class:{"show-input":o.showInput,disabled:o.sliderDisabled},style:o.runwayStyle,on:{click:o.onSliderClick}},[f("div",{staticClass:"el-slider__bar",style:o.barStyle}),f("slider-button",{ref:"button1",attrs:{vertical:o.vertical,"tooltip-class":o.tooltipClass},model:{value:o.firstValue,callback:function(_){o.firstValue=_},expression:"firstValue"}}),o.range?f("slider-button",{ref:"button2",attrs:{vertical:o.vertical,"tooltip-class":o.tooltipClass},model:{value:o.secondValue,callback:function(_){o.secondValue=_},expression:"secondValue"}}):o._e(),o._l(o.stops,function(_,C){return o.showStops?f("div",{key:C,staticClass:"el-slider__stop",style:o.getStopStyle(_)}):o._e()}),o.markList.length>0?[f("div",o._l(o.markList,function(_,C){return f("div",{key:C,staticClass:"el-slider__stop el-slider__marks-stop",style:o.getStopStyle(_.position)})}),0),f("div",{staticClass:"el-slider__marks"},o._l(o.markList,function(_,C){return f("slider-marker",{key:C,style:o.getStopStyle(_.position),attrs:{mark:_.mark}})}),1)]:o._e()],2)],1)},h7=[];S2._withStripped=!0;var p7=i(41),v7=i.n(p7),k2=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{ref:"button",staticClass:"el-slider__button-wrapper",class:{hover:o.hovering,dragging:o.dragging},style:o.wrapperStyle,attrs:{tabindex:"0"},on:{mouseenter:o.handleMouseEnter,mouseleave:o.handleMouseLeave,mousedown:o.onButtonDown,touchstart:o.onButtonDown,focus:o.handleMouseEnter,blur:o.handleMouseLeave,keydown:[function(_){return!("button"in _)&&o._k(_.keyCode,"left",37,_.key,["Left","ArrowLeft"])||"button"in _&&_.button!==0?null:o.onLeftKeyDown(_)},function(_){return!("button"in _)&&o._k(_.keyCode,"right",39,_.key,["Right","ArrowRight"])||"button"in _&&_.button!==2?null:o.onRightKeyDown(_)},function(_){return!("button"in _)&&o._k(_.keyCode,"down",40,_.key,["Down","ArrowDown"])?null:(_.preventDefault(),o.onLeftKeyDown(_))},function(_){return!("button"in _)&&o._k(_.keyCode,"up",38,_.key,["Up","ArrowUp"])?null:(_.preventDefault(),o.onRightKeyDown(_))}]}},[f("el-tooltip",{ref:"tooltip",attrs:{placement:"top","popper-class":o.tooltipClass,disabled:!o.showTooltip}},[f("span",{attrs:{slot:"content"},slot:"content"},[o._v(o._s(o.formatValue))]),f("div",{staticClass:"el-slider__button",class:{hover:o.hovering,dragging:o.dragging}})])],1)},m7=[];k2._withStripped=!0;var _7={name:"ElSliderButton",components:{ElTooltip:bi.a},props:{value:{type:Number,default:0},vertical:{type:Boolean,default:!1},tooltipClass:String},data:function(){return{hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:null,oldValue:this.value}},computed:{disabled:function(){return this.$parent.sliderDisabled},max:function(){return this.$parent.max},min:function(){return this.$parent.min},step:function(){return this.$parent.step},showTooltip:function(){return this.$parent.showTooltip},precision:function(){return this.$parent.precision},currentPosition:function(){return(this.value-this.min)/(this.max-this.min)*100+"%"},enableFormat:function(){return this.$parent.formatTooltip instanceof Function},formatValue:function(){return this.enableFormat&&this.$parent.formatTooltip(this.value)||this.value},wrapperStyle:function(){return this.vertical?{bottom:this.currentPosition}:{left:this.currentPosition}}},watch:{dragging:function(l){this.$parent.dragging=l}},methods:{displayTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!0)},hideTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!1)},handleMouseEnter:function(){this.hovering=!0,this.displayTooltip()},handleMouseLeave:function(){this.hovering=!1,this.hideTooltip()},onButtonDown:function(l){this.disabled||(l.preventDefault(),this.onDragStart(l),window.addEventListener("mousemove",this.onDragging),window.addEventListener("touchmove",this.onDragging),window.addEventListener("mouseup",this.onDragEnd),window.addEventListener("touchend",this.onDragEnd),window.addEventListener("contextmenu",this.onDragEnd))},onLeftKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onRightKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onDragStart:function(l){this.dragging=!0,this.isClick=!0,l.type==="touchstart"&&(l.clientY=l.touches[0].clientY,l.clientX=l.touches[0].clientX),this.vertical?this.startY=l.clientY:this.startX=l.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging:function(l){if(this.dragging){this.isClick=!1,this.displayTooltip(),this.$parent.resetSize();var f=0;l.type==="touchmove"&&(l.clientY=l.touches[0].clientY,l.clientX=l.touches[0].clientX),this.vertical?(this.currentY=l.clientY,f=(this.startY-this.currentY)/this.$parent.sliderSize*100):(this.currentX=l.clientX,f=(this.currentX-this.startX)/this.$parent.sliderSize*100),this.newPosition=this.startPosition+f,this.setPosition(this.newPosition)}},onDragEnd:function(){var l=this;this.dragging&&(setTimeout(function(){l.dragging=!1,l.hideTooltip(),l.isClick||(l.setPosition(l.newPosition),l.$parent.emitChange())},0),window.removeEventListener("mousemove",this.onDragging),window.removeEventListener("touchmove",this.onDragging),window.removeEventListener("mouseup",this.onDragEnd),window.removeEventListener("touchend",this.onDragEnd),window.removeEventListener("contextmenu",this.onDragEnd))},setPosition:function(l){var f=this;if(!(l===null||isNaN(l))){l<0?l=0:l>100&&(l=100);var _=100/((this.max-this.min)/this.step),C=Math.round(l/_),P=C*_*(this.max-this.min)*.01+this.min;P=parseFloat(P.toFixed(this.precision)),this.$emit("input",P),this.$nextTick(function(){f.displayTooltip(),f.$refs.tooltip&&f.$refs.tooltip.updatePopper()}),!this.dragging&&this.value!==this.oldValue&&(this.oldValue=this.value)}}}},g7=_7,E2=h(g7,k2,m7,!1,null,null,null);E2.options.__file="packages/slider/src/button.vue";var y7=E2.exports,b7={name:"ElMarker",props:{mark:{type:[String,Object]}},render:function(){var l=arguments[0],f=typeof this.mark=="string"?this.mark:this.mark.label;return l("div",{class:"el-slider__marks-text",style:this.mark.style||{}},[f])}},w7={name:"ElSlider",mixins:[W.a],inject:{elForm:{default:""}},props:{min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},value:{type:[Number,Array],default:0},showInput:{type:Boolean,default:!1},showInputControls:{type:Boolean,default:!0},inputSize:{type:String,default:"small"},showStops:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!0},formatTooltip:Function,disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},height:{type:String},debounce:{type:Number,default:300},label:{type:String},tooltipClass:String,marks:Object},components:{ElInputNumber:v7.a,SliderButton:y7,SliderMarker:b7},data:function(){return{firstValue:null,secondValue:null,oldValue:null,dragging:!1,sliderSize:1}},watch:{value:function(l,f){this.dragging||Array.isArray(l)&&Array.isArray(f)&&l.every(function(_,C){return _===f[C]})||this.setValues()},dragging:function(l){l||this.setValues()},firstValue:function(l){this.range?this.$emit("input",[this.minValue,this.maxValue]):this.$emit("input",l)},secondValue:function(){this.range&&this.$emit("input",[this.minValue,this.maxValue])},min:function(){this.setValues()},max:function(){this.setValues()}},methods:{valueChanged:function(){var l=this;return this.range?![this.minValue,this.maxValue].every(function(f,_){return f===l.oldValue[_]}):this.value!==this.oldValue},setValues:function(){if(this.min>this.max){console.error("[Element Error][Slider]min should not be greater than max.");return}var l=this.value;this.range&&Array.isArray(l)?l[1]this.max?this.$emit("input",[this.max,this.max]):l[0]this.max?this.$emit("input",[l[0],this.max]):(this.firstValue=l[0],this.secondValue=l[1],this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",[this.minValue,this.maxValue]),this.oldValue=l.slice())):!this.range&&typeof l=="number"&&!isNaN(l)&&(lthis.max?this.$emit("input",this.max):(this.firstValue=l,this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",l),this.oldValue=l)))},setPosition:function(l){var f=this.min+l*(this.max-this.min)/100;if(!this.range){this.$refs.button1.setPosition(l);return}var _=void 0;Math.abs(this.minValue-f)this.secondValue?"button1":"button2",this.$refs[_].setPosition(l)},onSliderClick:function(l){if(!(this.sliderDisabled||this.dragging)){if(this.resetSize(),this.vertical){var f=this.$refs.slider.getBoundingClientRect().bottom;this.setPosition((f-l.clientY)/this.sliderSize*100)}else{var _=this.$refs.slider.getBoundingClientRect().left;this.setPosition((l.clientX-_)/this.sliderSize*100)}this.emitChange()}},resetSize:function(){this.$refs.slider&&(this.sliderSize=this.$refs.slider["client"+(this.vertical?"Height":"Width")])},emitChange:function(){var l=this;this.$nextTick(function(){l.$emit("change",l.range?[l.minValue,l.maxValue]:l.value)})},getStopStyle:function(l){return this.vertical?{bottom:l+"%"}:{left:l+"%"}}},computed:{stops:function(){var l=this;if(!this.showStops||this.min>this.max)return[];if(this.step===0)return[];for(var f=(this.max-this.min)/this.step,_=100*this.step/(this.max-this.min),C=[],P=1;P100*(l.maxValue-l.min)/(l.max-l.min)}):C.filter(function(z){return z>100*(l.firstValue-l.min)/(l.max-l.min)})},markList:function(){var l=this;if(!this.marks)return[];var f=Object.keys(this.marks);return f.map(parseFloat).sort(function(_,C){return _-C}).filter(function(_){return _<=l.max&&_>=l.min}).map(function(_){return{point:_,position:(_-l.min)*100/(l.max-l.min),mark:l.marks[_]}})},minValue:function(){return Math.min(this.firstValue,this.secondValue)},maxValue:function(){return Math.max(this.firstValue,this.secondValue)},barSize:function(){return this.range?100*(this.maxValue-this.minValue)/(this.max-this.min)+"%":100*(this.firstValue-this.min)/(this.max-this.min)+"%"},barStart:function(){return this.range?100*(this.minValue-this.min)/(this.max-this.min)+"%":"0%"},precision:function(){var l=[this.min,this.max,this.step].map(function(f){var _=(""+f).split(".")[1];return _?_.length:0});return Math.max.apply(null,l)},runwayStyle:function(){return this.vertical?{height:this.height}:{}},barStyle:function(){return this.vertical?{height:this.barSize,bottom:this.barStart}:{width:this.barSize,left:this.barStart}},sliderDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},mounted:function(){var l=void 0;this.range?(Array.isArray(this.value)?(this.firstValue=Math.max(this.min,this.value[0]),this.secondValue=Math.min(this.max,this.value[1])):(this.firstValue=this.min,this.secondValue=this.max),this.oldValue=[this.firstValue,this.secondValue],l=this.firstValue+"-"+this.secondValue):(typeof this.value!="number"||isNaN(this.value)?this.firstValue=this.min:this.firstValue=Math.min(this.max,Math.max(this.min,this.value)),this.oldValue=this.firstValue,l=this.firstValue),this.$el.setAttribute("aria-valuetext",l),this.$el.setAttribute("aria-label",this.label?this.label:"slider between "+this.min+" and "+this.max),this.resetSize(),window.addEventListener("resize",this.resetSize)},beforeDestroy:function(){window.removeEventListener("resize",this.resetSize)}},C7=w7,D2=h(C7,S2,h7,!1,null,null,null);D2.options.__file="packages/slider/src/main.vue";var Af=D2.exports;Af.install=function(o){o.component(Af.name,Af)};var O2=Af,P2=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":o.handleAfterLeave}},[f("div",{directives:[{name:"show",rawName:"v-show",value:o.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[o.customClass,{"is-fullscreen":o.fullscreen}],style:{backgroundColor:o.background||""}},[f("div",{staticClass:"el-loading-spinner"},[o.spinner?f("i",{class:o.spinner}):f("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[f("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),o.text?f("p",{staticClass:"el-loading-text"},[o._v(o._s(o.text))]):o._e()])])])},x7=[];P2._withStripped=!0;var S7={data:function(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave:function(){this.$emit("after-leave")},setText:function(l){this.text=l}}},k7=S7,T2=h(k7,P2,x7,!1,null,null,null);T2.options.__file="packages/loading/src/loading.vue";var A2=T2.exports,E7=i(32),M2=i.n(E7),D7=Bt.a.extend(A2),I2={};I2.install=function(o){if(!o.prototype.$isServer){var l=function(C,P){P.value?o.nextTick(function(){P.modifiers.fullscreen?(C.originalPosition=Object(Le.getStyle)(document.body,"position"),C.originalOverflow=Object(Le.getStyle)(document.body,"overflow"),C.maskStyle.zIndex=M.PopupManager.nextZIndex(),Object(Le.addClass)(C.mask,"is-fullscreen"),f(document.body,C,P)):(Object(Le.removeClass)(C.mask,"is-fullscreen"),P.modifiers.body?(C.originalPosition=Object(Le.getStyle)(document.body,"position"),["top","left"].forEach(function(z){var ne=z==="top"?"scrollTop":"scrollLeft";C.maskStyle[z]=C.getBoundingClientRect()[z]+document.body[ne]+document.documentElement[ne]-parseInt(Object(Le.getStyle)(document.body,"margin-"+z),10)+"px"}),["height","width"].forEach(function(z){C.maskStyle[z]=C.getBoundingClientRect()[z]+"px"}),f(document.body,C,P)):(C.originalPosition=Object(Le.getStyle)(C,"position"),f(C,C,P)))}):(M2()(C.instance,function(z){if(!!C.instance.hiding){C.domVisible=!1;var ne=P.modifiers.fullscreen||P.modifiers.body?document.body:C;Object(Le.removeClass)(ne,"el-loading-parent--relative"),Object(Le.removeClass)(ne,"el-loading-parent--hidden"),C.instance.hiding=!1}},300,!0),C.instance.visible=!1,C.instance.hiding=!0)},f=function(C,P,z){!P.domVisible&&Object(Le.getStyle)(P,"display")!=="none"&&Object(Le.getStyle)(P,"visibility")!=="hidden"?(Object.keys(P.maskStyle).forEach(function(ne){P.mask.style[ne]=P.maskStyle[ne]}),P.originalPosition!=="absolute"&&P.originalPosition!=="fixed"&&P.originalPosition!=="sticky"&&Object(Le.addClass)(C,"el-loading-parent--relative"),z.modifiers.fullscreen&&z.modifiers.lock&&Object(Le.addClass)(C,"el-loading-parent--hidden"),P.domVisible=!0,C.appendChild(P.mask),o.nextTick(function(){P.instance.hiding?P.instance.$emit("after-leave"):P.instance.visible=!0}),P.domInserted=!0):P.domVisible&&P.instance.hiding===!0&&(P.instance.visible=!0,P.instance.hiding=!1)};o.directive("loading",{bind:function(C,P,z){var ne=C.getAttribute("element-loading-text"),Se=C.getAttribute("element-loading-spinner"),Re=C.getAttribute("element-loading-background"),Ue=C.getAttribute("element-loading-custom-class"),Xe=z.context,dt=new D7({el:document.createElement("div"),data:{text:Xe&&Xe[ne]||ne,spinner:Xe&&Xe[Se]||Se,background:Xe&&Xe[Re]||Re,customClass:Xe&&Xe[Ue]||Ue,fullscreen:!!P.modifiers.fullscreen}});C.instance=dt,C.mask=dt.$el,C.maskStyle={},P.value&&l(C,P)},update:function(C,P){C.instance.setText(C.getAttribute("element-loading-text")),P.oldValue!==P.value&&l(C,P)},unbind:function(C,P){C.domInserted&&(C.mask&&C.mask.parentNode&&C.mask.parentNode.removeChild(C.mask),l(C,{value:!1,modifiers:P.modifiers})),C.instance&&C.instance.$destroy()}})}};var $2=I2,Mf=Bt.a.extend(A2),O7={text:null,fullscreen:!0,body:!1,lock:!1,customClass:""},If=void 0;Mf.prototype.originalPosition="",Mf.prototype.originalOverflow="",Mf.prototype.close=function(){var o=this;this.fullscreen&&(If=void 0),M2()(this,function(l){var f=o.fullscreen||o.body?document.body:o.target;Object(Le.removeClass)(f,"el-loading-parent--relative"),Object(Le.removeClass)(f,"el-loading-parent--hidden"),o.$el&&o.$el.parentNode&&o.$el.parentNode.removeChild(o.$el),o.$destroy()},300),this.visible=!1};var P7=function(l,f,_){var C={};l.fullscreen?(_.originalPosition=Object(Le.getStyle)(document.body,"position"),_.originalOverflow=Object(Le.getStyle)(document.body,"overflow"),C.zIndex=M.PopupManager.nextZIndex()):l.body?(_.originalPosition=Object(Le.getStyle)(document.body,"position"),["top","left"].forEach(function(P){var z=P==="top"?"scrollTop":"scrollLeft";C[P]=l.target.getBoundingClientRect()[P]+document.body[z]+document.documentElement[z]+"px"}),["height","width"].forEach(function(P){C[P]=l.target.getBoundingClientRect()[P]+"px"})):_.originalPosition=Object(Le.getStyle)(f,"position"),Object.keys(C).forEach(function(P){_.$el.style[P]=C[P]})},T7=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!Bt.a.prototype.$isServer){if(l=bn()({},O7,l),typeof l.target=="string"&&(l.target=document.querySelector(l.target)),l.target=l.target||document.body,l.target!==document.body?l.fullscreen=!1:l.body=!0,l.fullscreen&&If)return If;var f=l.body?document.body:l.target,_=new Mf({el:document.createElement("div"),data:l});return P7(l,f,_),_.originalPosition!=="absolute"&&_.originalPosition!=="fixed"&&_.originalPosition!=="sticky"&&Object(Le.addClass)(f,"el-loading-parent--relative"),l.fullscreen&&l.lock&&Object(Le.addClass)(f,"el-loading-parent--hidden"),f.appendChild(_.$el),Bt.a.nextTick(function(){_.visible=!0}),l.fullscreen&&(If=_),_}},R2=T7,f_={install:function(l){l.use($2),l.prototype.$loading=R2},directive:$2,service:R2},L2=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("i",{class:"el-icon-"+o.name})},A7=[];L2._withStripped=!0;var M7={name:"ElIcon",props:{name:String}},I7=M7,N2=h(I7,L2,A7,!1,null,null,null);N2.options.__file="packages/icon/src/icon.vue";var $f=N2.exports;$f.install=function(o){o.component($f.name,$f)};var B2=$f,Rf={name:"ElRow",componentName:"ElRow",props:{tag:{type:String,default:"div"},gutter:Number,type:String,justify:{type:String,default:"start"},align:String},computed:{style:function(){var l={};return this.gutter&&(l.marginLeft="-"+this.gutter/2+"px",l.marginRight=l.marginLeft),l}},render:function(l){return l(this.tag,{class:["el-row",this.justify!=="start"?"is-justify-"+this.justify:"",this.align?"is-align-"+this.align:"",{"el-row--flex":this.type==="flex"}],style:this.style},this.$slots.default)}};Rf.install=function(o){o.component(Rf.name,Rf)};var F2=Rf,$7=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Lf={name:"ElCol",props:{span:{type:Number,default:24},tag:{type:String,default:"div"},offset:Number,pull:Number,push:Number,xs:[Number,Object],sm:[Number,Object],md:[Number,Object],lg:[Number,Object],xl:[Number,Object]},computed:{gutter:function(){for(var l=this.$parent;l&&l.$options.componentName!=="ElRow";)l=l.$parent;return l?l.gutter:0}},render:function(l){var f=this,_=[],C={};return this.gutter&&(C.paddingLeft=this.gutter/2+"px",C.paddingRight=C.paddingLeft),["span","offset","pull","push"].forEach(function(P){(f[P]||f[P]===0)&&_.push(P!=="span"?"el-col-"+P+"-"+f[P]:"el-col-"+f[P])}),["xs","sm","md","lg","xl"].forEach(function(P){if(typeof f[P]=="number")_.push("el-col-"+P+"-"+f[P]);else if($7(f[P])==="object"){var z=f[P];Object.keys(z).forEach(function(ne){_.push(ne!=="span"?"el-col-"+P+"-"+ne+"-"+z[ne]:"el-col-"+P+"-"+z[ne])})}}),l(this.tag,{class:["el-col",_],style:C},this.$slots.default)}};Lf.install=function(o){o.component(Lf.name,Lf)};var z2=Lf,j2=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("transition-group",{class:["el-upload-list","el-upload-list--"+o.listType,{"is-disabled":o.disabled}],attrs:{tag:"ul",name:"el-list"}},o._l(o.files,function(_){return f("li",{key:_.uid,class:["el-upload-list__item","is-"+_.status,o.focusing?"focusing":""],attrs:{tabindex:"0"},on:{keydown:function(C){if(!("button"in C)&&o._k(C.keyCode,"delete",[8,46],C.key,["Backspace","Delete","Del"]))return null;!o.disabled&&o.$emit("remove",_)},focus:function(C){o.focusing=!0},blur:function(C){o.focusing=!1},click:function(C){o.focusing=!1}}},[o._t("default",[_.status!=="uploading"&&["picture-card","picture"].indexOf(o.listType)>-1?f("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:_.url,alt:""}}):o._e(),f("a",{staticClass:"el-upload-list__item-name",on:{click:function(C){o.handleClick(_)}}},[f("i",{staticClass:"el-icon-document"}),o._v(o._s(_.name)+` - `)]),f("label",{staticClass:"el-upload-list__item-status-label"},[f("i",{class:{"el-icon-upload-success":!0,"el-icon-circle-check":o.listType==="text","el-icon-check":["picture-card","picture"].indexOf(o.listType)>-1}})]),o.disabled?o._e():f("i",{staticClass:"el-icon-close",on:{click:function(C){o.$emit("remove",_)}}}),o.disabled?o._e():f("i",{staticClass:"el-icon-close-tip"},[o._v(o._s(o.t("el.upload.deleteTip")))]),_.status==="uploading"?f("el-progress",{attrs:{type:o.listType==="picture-card"?"circle":"line","stroke-width":o.listType==="picture-card"?6:2,percentage:o.parsePercentage(_.percentage)}}):o._e(),o.listType==="picture-card"?f("span",{staticClass:"el-upload-list__item-actions"},[o.handlePreview&&o.listType==="picture-card"?f("span",{staticClass:"el-upload-list__item-preview",on:{click:function(C){o.handlePreview(_)}}},[f("i",{staticClass:"el-icon-zoom-in"})]):o._e(),o.disabled?o._e():f("span",{staticClass:"el-upload-list__item-delete",on:{click:function(C){o.$emit("remove",_)}}},[f("i",{staticClass:"el-icon-delete"})])]):o._e()],{file:_})],2)}),0)},R7=[];j2._withStripped=!0;var L7=i(33),U2=i.n(L7),N7={name:"ElUploadList",mixins:[O.a],data:function(){return{focusing:!1}},components:{ElProgress:U2.a},props:{files:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},handlePreview:Function,listType:String},methods:{parsePercentage:function(l){return parseInt(l,10)},handleClick:function(l){this.handlePreview&&this.handlePreview(l)}}},B7=N7,V2=h(B7,j2,R7,!1,null,null,null);V2.options.__file="packages/upload/src/upload-list.vue";var W2=V2.exports,F7=i(24),pc=i.n(F7);function z7(o,l,f){var _=void 0;f.response?_=""+(f.response.error||f.response):f.responseText?_=""+f.responseText:_="fail to post "+o+" "+f.status;var C=new Error(_);return C.status=f.status,C.method="post",C.url=o,C}function j7(o){var l=o.responseText||o.response;if(!l)return l;try{return JSON.parse(l)}catch{return l}}function U7(o){if(typeof XMLHttpRequest!="undefined"){var l=new XMLHttpRequest,f=o.action;l.upload&&(l.upload.onprogress=function(ne){ne.total>0&&(ne.percent=ne.loaded/ne.total*100),o.onProgress(ne)});var _=new FormData;o.data&&Object.keys(o.data).forEach(function(z){_.append(z,o.data[z])}),_.append(o.filename,o.file,o.file.name),l.onerror=function(ne){o.onError(ne)},l.onload=function(){if(l.status<200||l.status>=300)return o.onError(z7(f,o,l));o.onSuccess(j7(l))},l.open("post",f,!0),o.withCredentials&&"withCredentials"in l&&(l.withCredentials=!0);var C=o.headers||{};for(var P in C)C.hasOwnProperty(P)&&C[P]!==null&&l.setRequestHeader(P,C[P]);return l.send(_),l}}var K2=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-upload-dragger",class:{"is-dragover":o.dragover},on:{drop:function(_){return _.preventDefault(),o.onDrop(_)},dragover:function(_){return _.preventDefault(),o.onDragover(_)},dragleave:function(_){_.preventDefault(),o.dragover=!1}}},[o._t("default")],2)},V7=[];K2._withStripped=!0;var W7={name:"ElUploadDrag",props:{disabled:Boolean},inject:{uploader:{default:""}},data:function(){return{dragover:!1}},methods:{onDragover:function(){this.disabled||(this.dragover=!0)},onDrop:function(l){if(!(this.disabled||!this.uploader)){var f=this.uploader.accept;if(this.dragover=!1,!f){this.$emit("file",l.dataTransfer.files);return}this.$emit("file",[].slice.call(l.dataTransfer.files).filter(function(_){var C=_.type,P=_.name,z=P.indexOf(".")>-1?"."+P.split(".").pop():"",ne=C.replace(/\/.*$/,"");return f.split(",").map(function(Se){return Se.trim()}).filter(function(Se){return Se}).some(function(Se){return/\..+$/.test(Se)?z===Se:/\/\*$/.test(Se)?ne===Se.replace(/\/\*$/,""):/^[^\/]+\/[^\/]+$/.test(Se)?C===Se:!1})}))}}}},K7=W7,H2=h(K7,K2,V7,!1,null,null,null);H2.options.__file="packages/upload/src/upload-dragger.vue";var H7=H2.exports,G7={inject:["uploader"],components:{UploadDragger:H7},props:{type:String,action:{type:String,required:!0},name:{type:String,default:"file"},data:Object,headers:Object,withCredentials:Boolean,multiple:Boolean,accept:String,onStart:Function,onProgress:Function,onSuccess:Function,onError:Function,beforeUpload:Function,drag:Boolean,onPreview:{type:Function,default:function(){}},onRemove:{type:Function,default:function(){}},fileList:Array,autoUpload:Boolean,listType:String,httpRequest:{type:Function,default:U7},disabled:Boolean,limit:Number,onExceed:Function},data:function(){return{mouseover:!1,reqs:{}}},methods:{isImage:function(l){return l.indexOf("image")!==-1},handleChange:function(l){var f=l.target.files;!f||this.uploadFiles(f)},uploadFiles:function(l){var f=this;if(this.limit&&this.fileList.length+l.length>this.limit){this.onExceed&&this.onExceed(l,this.fileList);return}var _=Array.prototype.slice.call(l);this.multiple||(_=_.slice(0,1)),_.length!==0&&_.forEach(function(C){f.onStart(C),f.autoUpload&&f.upload(C)})},upload:function(l){var f=this;if(this.$refs.input.value=null,!this.beforeUpload)return this.post(l);var _=this.beforeUpload(l);_&&_.then?_.then(function(C){var P=Object.prototype.toString.call(C);if(P==="[object File]"||P==="[object Blob]"){P==="[object Blob]"&&(C=new File([C],l.name,{type:l.type}));for(var z in l)l.hasOwnProperty(z)&&(C[z]=l[z]);f.post(C)}else f.post(l)},function(){f.onRemove(null,l)}):_!==!1?this.post(l):this.onRemove(null,l)},abort:function(l){var f=this.reqs;if(l){var _=l;l.uid&&(_=l.uid),f[_]&&f[_].abort()}else Object.keys(f).forEach(function(C){f[C]&&f[C].abort(),delete f[C]})},post:function(l){var f=this,_=l.uid,C={headers:this.headers,withCredentials:this.withCredentials,file:l,data:this.data,filename:this.name,action:this.action,onProgress:function(ne){f.onProgress(ne,l)},onSuccess:function(ne){f.onSuccess(ne,l),delete f.reqs[_]},onError:function(ne){f.onError(ne,l),delete f.reqs[_]}},P=this.httpRequest(C);this.reqs[_]=P,P&&P.then&&P.then(C.onSuccess,C.onError)},handleClick:function(){this.disabled||(this.$refs.input.value=null,this.$refs.input.click())},handleKeydown:function(l){l.target===l.currentTarget&&(l.keyCode===13||l.keyCode===32)&&this.handleClick()}},render:function(l){var f=this.handleClick,_=this.drag,C=this.name,P=this.handleChange,z=this.multiple,ne=this.accept,Se=this.listType,Re=this.uploadFiles,Ue=this.disabled,Xe=this.handleKeydown,dt={class:{"el-upload":!0},on:{click:f,keydown:Xe}};return dt.class["el-upload--"+Se]=!0,l("div",pc()([dt,{attrs:{tabindex:"0"}}]),[_?l("upload-dragger",{attrs:{disabled:Ue},on:{file:Re}},[this.$slots.default]):this.$slots.default,l("input",{class:"el-upload__input",attrs:{type:"file",name:C,multiple:z,accept:ne},ref:"input",on:{change:P}})])}},Y7=G7,X7,J7,G2=h(Y7,X7,J7,!1,null,null,null);G2.options.__file="packages/upload/src/upload.vue";var Z7=G2.exports;function Ao(){}var Q7={name:"ElUpload",mixins:[Y.a],components:{ElProgress:U2.a,UploadList:W2,Upload:Z7},provide:function(){return{uploader:this}},inject:{elForm:{default:""}},props:{action:{type:String,required:!0},headers:{type:Object,default:function(){return{}}},data:Object,multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,dragger:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:String,type:{type:String,default:"select"},beforeUpload:Function,beforeRemove:Function,onRemove:{type:Function,default:Ao},onChange:{type:Function,default:Ao},onPreview:{type:Function},onSuccess:{type:Function,default:Ao},onProgress:{type:Function,default:Ao},onError:{type:Function,default:Ao},fileList:{type:Array,default:function(){return[]}},autoUpload:{type:Boolean,default:!0},listType:{type:String,default:"text"},httpRequest:Function,disabled:Boolean,limit:Number,onExceed:{type:Function,default:Ao}},data:function(){return{uploadFiles:[],dragOver:!1,draging:!1,tempIndex:1}},computed:{uploadDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{listType:function(l){(l==="picture-card"||l==="picture")&&(this.uploadFiles=this.uploadFiles.map(function(f){if(!f.url&&f.raw)try{f.url=URL.createObjectURL(f.raw)}catch(_){console.error("[Element Error][Upload]",_)}return f}))},fileList:{immediate:!0,handler:function(l){var f=this;this.uploadFiles=l.map(function(_){return _.uid=_.uid||Date.now()+f.tempIndex++,_.status=_.status||"success",_})}}},methods:{handleStart:function(l){l.uid=Date.now()+this.tempIndex++;var f={status:"ready",name:l.name,size:l.size,percentage:0,uid:l.uid,raw:l};if(this.listType==="picture-card"||this.listType==="picture")try{f.url=URL.createObjectURL(l)}catch(_){console.error("[Element Error][Upload]",_);return}this.uploadFiles.push(f),this.onChange(f,this.uploadFiles)},handleProgress:function(l,f){var _=this.getFile(f);this.onProgress(l,_,this.uploadFiles),_.status="uploading",_.percentage=l.percent||0},handleSuccess:function(l,f){var _=this.getFile(f);_&&(_.status="success",_.response=l,this.onSuccess(l,_,this.uploadFiles),this.onChange(_,this.uploadFiles))},handleError:function(l,f){var _=this.getFile(f),C=this.uploadFiles;_.status="fail",C.splice(C.indexOf(_),1),this.onError(l,_,this.uploadFiles),this.onChange(_,this.uploadFiles)},handleRemove:function(l,f){var _=this;f&&(l=this.getFile(f));var C=function(){_.abort(l);var ne=_.uploadFiles;ne.splice(ne.indexOf(l),1),_.onRemove(l,ne)};if(!this.beforeRemove)C();else if(typeof this.beforeRemove=="function"){var P=this.beforeRemove(l,this.uploadFiles);P&&P.then?P.then(function(){C()},Ao):P!==!1&&C()}},getFile:function(l){var f=this.uploadFiles,_=void 0;return f.every(function(C){return _=l.uid===C.uid?C:null,!_}),_},abort:function(l){this.$refs["upload-inner"].abort(l)},clearFiles:function(){this.uploadFiles=[]},submit:function(){var l=this;this.uploadFiles.filter(function(f){return f.status==="ready"}).forEach(function(f){l.$refs["upload-inner"].upload(f.raw)})},getMigratingConfig:function(){return{props:{"default-file-list":"default-file-list is renamed to file-list.","show-upload-list":"show-upload-list is renamed to show-file-list.","thumbnail-mode":"thumbnail-mode has been deprecated, you can implement the same effect according to this case: http://element.eleme.io/#/zh-CN/component/upload#yong-hu-tou-xiang-shang-chuan"}}}},beforeDestroy:function(){this.uploadFiles.forEach(function(l){l.url&&l.url.indexOf("blob:")===0&&URL.revokeObjectURL(l.url)})},render:function(l){var f=this,_=void 0;this.showFileList&&(_=l(W2,{attrs:{disabled:this.uploadDisabled,listType:this.listType,files:this.uploadFiles,handlePreview:this.onPreview},on:{remove:this.handleRemove}},[function(ne){if(f.$scopedSlots.file)return f.$scopedSlots.file({file:ne.file})}]));var C={props:{type:this.type,drag:this.drag,action:this.action,multiple:this.multiple,"before-upload":this.beforeUpload,"with-credentials":this.withCredentials,headers:this.headers,name:this.name,data:this.data,accept:this.accept,fileList:this.uploadFiles,autoUpload:this.autoUpload,listType:this.listType,disabled:this.uploadDisabled,limit:this.limit,"on-exceed":this.onExceed,"on-start":this.handleStart,"on-progress":this.handleProgress,"on-success":this.handleSuccess,"on-error":this.handleError,"on-preview":this.onPreview,"on-remove":this.handleRemove,"http-request":this.httpRequest},ref:"upload-inner"},P=this.$slots.trigger||this.$slots.default,z=l("upload",C,[P]);return l("div",[this.listType==="picture-card"?_:"",this.$slots.trigger?[z,this.$slots.default]:z,this.$slots.tip,this.listType!=="picture-card"?_:""])}},q7=Q7,eA,tA,Y2=h(q7,eA,tA,!1,null,null,null);Y2.options.__file="packages/upload/src/index.vue";var Nf=Y2.exports;Nf.install=function(o){o.component(Nf.name,Nf)};var X2=Nf,J2=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-progress",class:["el-progress--"+o.type,o.status?"is-"+o.status:"",{"el-progress--without-text":!o.showText,"el-progress--text-inside":o.textInside}],attrs:{role:"progressbar","aria-valuenow":o.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},[o.type==="line"?f("div",{staticClass:"el-progress-bar"},[f("div",{staticClass:"el-progress-bar__outer",style:{height:o.strokeWidth+"px"}},[f("div",{staticClass:"el-progress-bar__inner",style:o.barStyle},[o.showText&&o.textInside?f("div",{staticClass:"el-progress-bar__innerText"},[o._v(o._s(o.content))]):o._e()])])]):f("div",{staticClass:"el-progress-circle",style:{height:o.width+"px",width:o.width+"px"}},[f("svg",{attrs:{viewBox:"0 0 100 100"}},[f("path",{staticClass:"el-progress-circle__track",style:o.trailPathStyle,attrs:{d:o.trackPath,stroke:"#e5e9f2","stroke-width":o.relativeStrokeWidth,fill:"none"}}),f("path",{staticClass:"el-progress-circle__path",style:o.circlePathStyle,attrs:{d:o.trackPath,stroke:o.stroke,fill:"none","stroke-linecap":o.strokeLinecap,"stroke-width":o.percentage?o.relativeStrokeWidth:0}})])]),o.showText&&!o.textInside?f("div",{staticClass:"el-progress__text",style:{fontSize:o.progressTextSize+"px"}},[o.status?f("i",{class:o.iconClass}):[o._v(o._s(o.content))]],2):o._e()])},nA=[];J2._withStripped=!0;var rA={name:"ElProgress",props:{type:{type:String,default:"line",validator:function(l){return["line","circle","dashboard"].indexOf(l)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(l){return l>=0&&l<=100}},status:{type:String,validator:function(l){return["success","exception","warning"].indexOf(l)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},format:Function},computed:{barStyle:function(){var l={};return l.width=this.percentage+"%",l.backgroundColor=this.getCurrentColor(this.percentage),l},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return this.type==="circle"||this.type==="dashboard"?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var l=this.radius,f=this.type==="dashboard";return` + `)]),f("label",{staticClass:"el-upload-list__item-status-label"},[f("i",{class:{"el-icon-upload-success":!0,"el-icon-circle-check":o.listType==="text","el-icon-check":["picture-card","picture"].indexOf(o.listType)>-1}})]),o.disabled?o._e():f("i",{staticClass:"el-icon-close",on:{click:function(C){o.$emit("remove",_)}}}),o.disabled?o._e():f("i",{staticClass:"el-icon-close-tip"},[o._v(o._s(o.t("el.upload.deleteTip")))]),_.status==="uploading"?f("el-progress",{attrs:{type:o.listType==="picture-card"?"circle":"line","stroke-width":o.listType==="picture-card"?6:2,percentage:o.parsePercentage(_.percentage)}}):o._e(),o.listType==="picture-card"?f("span",{staticClass:"el-upload-list__item-actions"},[o.handlePreview&&o.listType==="picture-card"?f("span",{staticClass:"el-upload-list__item-preview",on:{click:function(C){o.handlePreview(_)}}},[f("i",{staticClass:"el-icon-zoom-in"})]):o._e(),o.disabled?o._e():f("span",{staticClass:"el-upload-list__item-delete",on:{click:function(C){o.$emit("remove",_)}}},[f("i",{staticClass:"el-icon-delete"})])]):o._e()],{file:_})],2)}),0)},R7=[];j2._withStripped=!0;var L7=i(33),U2=i.n(L7),N7={name:"ElUploadList",mixins:[O.a],data:function(){return{focusing:!1}},components:{ElProgress:U2.a},props:{files:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},handlePreview:Function,listType:String},methods:{parsePercentage:function(l){return parseInt(l,10)},handleClick:function(l){this.handlePreview&&this.handlePreview(l)}}},B7=N7,V2=h(B7,j2,R7,!1,null,null,null);V2.options.__file="packages/upload/src/upload-list.vue";var W2=V2.exports,F7=i(24),pc=i.n(F7);function z7(o,l,f){var _=void 0;f.response?_=""+(f.response.error||f.response):f.responseText?_=""+f.responseText:_="fail to post "+o+" "+f.status;var C=new Error(_);return C.status=f.status,C.method="post",C.url=o,C}function j7(o){var l=o.responseText||o.response;if(!l)return l;try{return JSON.parse(l)}catch{return l}}function U7(o){if(typeof XMLHttpRequest!="undefined"){var l=new XMLHttpRequest,f=o.action;l.upload&&(l.upload.onprogress=function(ne){ne.total>0&&(ne.percent=ne.loaded/ne.total*100),o.onProgress(ne)});var _=new FormData;o.data&&Object.keys(o.data).forEach(function(z){_.append(z,o.data[z])}),_.append(o.filename,o.file,o.file.name),l.onerror=function(ne){o.onError(ne)},l.onload=function(){if(l.status<200||l.status>=300)return o.onError(z7(f,o,l));o.onSuccess(j7(l))},l.open("post",f,!0),o.withCredentials&&"withCredentials"in l&&(l.withCredentials=!0);var C=o.headers||{};for(var P in C)C.hasOwnProperty(P)&&C[P]!==null&&l.setRequestHeader(P,C[P]);return l.send(_),l}}var K2=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-upload-dragger",class:{"is-dragover":o.dragover},on:{drop:function(_){return _.preventDefault(),o.onDrop(_)},dragover:function(_){return _.preventDefault(),o.onDragover(_)},dragleave:function(_){_.preventDefault(),o.dragover=!1}}},[o._t("default")],2)},V7=[];K2._withStripped=!0;var W7={name:"ElUploadDrag",props:{disabled:Boolean},inject:{uploader:{default:""}},data:function(){return{dragover:!1}},methods:{onDragover:function(){this.disabled||(this.dragover=!0)},onDrop:function(l){if(!(this.disabled||!this.uploader)){var f=this.uploader.accept;if(this.dragover=!1,!f){this.$emit("file",l.dataTransfer.files);return}this.$emit("file",[].slice.call(l.dataTransfer.files).filter(function(_){var C=_.type,P=_.name,z=P.indexOf(".")>-1?"."+P.split(".").pop():"",ne=C.replace(/\/.*$/,"");return f.split(",").map(function(Se){return Se.trim()}).filter(function(Se){return Se}).some(function(Se){return/\..+$/.test(Se)?z===Se:/\/\*$/.test(Se)?ne===Se.replace(/\/\*$/,""):/^[^\/]+\/[^\/]+$/.test(Se)?C===Se:!1})}))}}}},K7=W7,H2=h(K7,K2,V7,!1,null,null,null);H2.options.__file="packages/upload/src/upload-dragger.vue";var H7=H2.exports,G7={inject:["uploader"],components:{UploadDragger:H7},props:{type:String,action:{type:String,required:!0},name:{type:String,default:"file"},data:Object,headers:Object,withCredentials:Boolean,multiple:Boolean,accept:String,onStart:Function,onProgress:Function,onSuccess:Function,onError:Function,beforeUpload:Function,drag:Boolean,onPreview:{type:Function,default:function(){}},onRemove:{type:Function,default:function(){}},fileList:Array,autoUpload:Boolean,listType:String,httpRequest:{type:Function,default:U7},disabled:Boolean,limit:Number,onExceed:Function},data:function(){return{mouseover:!1,reqs:{}}},methods:{isImage:function(l){return l.indexOf("image")!==-1},handleChange:function(l){var f=l.target.files;!f||this.uploadFiles(f)},uploadFiles:function(l){var f=this;if(this.limit&&this.fileList.length+l.length>this.limit){this.onExceed&&this.onExceed(l,this.fileList);return}var _=Array.prototype.slice.call(l);this.multiple||(_=_.slice(0,1)),_.length!==0&&_.forEach(function(C){f.onStart(C),f.autoUpload&&f.upload(C)})},upload:function(l){var f=this;if(this.$refs.input.value=null,!this.beforeUpload)return this.post(l);var _=this.beforeUpload(l);_&&_.then?_.then(function(C){var P=Object.prototype.toString.call(C);if(P==="[object File]"||P==="[object Blob]"){P==="[object Blob]"&&(C=new File([C],l.name,{type:l.type}));for(var z in l)l.hasOwnProperty(z)&&(C[z]=l[z]);f.post(C)}else f.post(l)},function(){f.onRemove(null,l)}):_!==!1?this.post(l):this.onRemove(null,l)},abort:function(l){var f=this.reqs;if(l){var _=l;l.uid&&(_=l.uid),f[_]&&f[_].abort()}else Object.keys(f).forEach(function(C){f[C]&&f[C].abort(),delete f[C]})},post:function(l){var f=this,_=l.uid,C={headers:this.headers,withCredentials:this.withCredentials,file:l,data:this.data,filename:this.name,action:this.action,onProgress:function(ne){f.onProgress(ne,l)},onSuccess:function(ne){f.onSuccess(ne,l),delete f.reqs[_]},onError:function(ne){f.onError(ne,l),delete f.reqs[_]}},P=this.httpRequest(C);this.reqs[_]=P,P&&P.then&&P.then(C.onSuccess,C.onError)},handleClick:function(){this.disabled||(this.$refs.input.value=null,this.$refs.input.click())},handleKeydown:function(l){l.target===l.currentTarget&&(l.keyCode===13||l.keyCode===32)&&this.handleClick()}},render:function(l){var f=this.handleClick,_=this.drag,C=this.name,P=this.handleChange,z=this.multiple,ne=this.accept,Se=this.listType,Re=this.uploadFiles,Ue=this.disabled,Xe=this.handleKeydown,dt={class:{"el-upload":!0},on:{click:f,keydown:Xe}};return dt.class["el-upload--"+Se]=!0,l("div",pc()([dt,{attrs:{tabindex:"0"}}]),[_?l("upload-dragger",{attrs:{disabled:Ue},on:{file:Re}},[this.$slots.default]):this.$slots.default,l("input",{class:"el-upload__input",attrs:{type:"file",name:C,multiple:z,accept:ne},ref:"input",on:{change:P}})])}},Y7=G7,X7,J7,G2=h(Y7,X7,J7,!1,null,null,null);G2.options.__file="packages/upload/src/upload.vue";var Z7=G2.exports;function Ao(){}var Q7={name:"ElUpload",mixins:[Y.a],components:{ElProgress:U2.a,UploadList:W2,Upload:Z7},provide:function(){return{uploader:this}},inject:{elForm:{default:""}},props:{action:{type:String,required:!0},headers:{type:Object,default:function(){return{}}},data:Object,multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,dragger:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:String,type:{type:String,default:"select"},beforeUpload:Function,beforeRemove:Function,onRemove:{type:Function,default:Ao},onChange:{type:Function,default:Ao},onPreview:{type:Function},onSuccess:{type:Function,default:Ao},onProgress:{type:Function,default:Ao},onError:{type:Function,default:Ao},fileList:{type:Array,default:function(){return[]}},autoUpload:{type:Boolean,default:!0},listType:{type:String,default:"text"},httpRequest:Function,disabled:Boolean,limit:Number,onExceed:{type:Function,default:Ao}},data:function(){return{uploadFiles:[],dragOver:!1,draging:!1,tempIndex:1}},computed:{uploadDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{listType:function(l){(l==="picture-card"||l==="picture")&&(this.uploadFiles=this.uploadFiles.map(function(f){if(!f.url&&f.raw)try{f.url=URL.createObjectURL(f.raw)}catch(_){console.error("[Element Error][Upload]",_)}return f}))},fileList:{immediate:!0,handler:function(l){var f=this;this.uploadFiles=l.map(function(_){return _.uid=_.uid||Date.now()+f.tempIndex++,_.status=_.status||"success",_})}}},methods:{handleStart:function(l){l.uid=Date.now()+this.tempIndex++;var f={status:"ready",name:l.name,size:l.size,percentage:0,uid:l.uid,raw:l};if(this.listType==="picture-card"||this.listType==="picture")try{f.url=URL.createObjectURL(l)}catch(_){console.error("[Element Error][Upload]",_);return}this.uploadFiles.push(f),this.onChange(f,this.uploadFiles)},handleProgress:function(l,f){var _=this.getFile(f);this.onProgress(l,_,this.uploadFiles),_.status="uploading",_.percentage=l.percent||0},handleSuccess:function(l,f){var _=this.getFile(f);_&&(_.status="success",_.response=l,this.onSuccess(l,_,this.uploadFiles),this.onChange(_,this.uploadFiles))},handleError:function(l,f){var _=this.getFile(f),C=this.uploadFiles;_.status="fail",C.splice(C.indexOf(_),1),this.onError(l,_,this.uploadFiles),this.onChange(_,this.uploadFiles)},handleRemove:function(l,f){var _=this;f&&(l=this.getFile(f));var C=function(){_.abort(l);var ne=_.uploadFiles;ne.splice(ne.indexOf(l),1),_.onRemove(l,ne)};if(!this.beforeRemove)C();else if(typeof this.beforeRemove=="function"){var P=this.beforeRemove(l,this.uploadFiles);P&&P.then?P.then(function(){C()},Ao):P!==!1&&C()}},getFile:function(l){var f=this.uploadFiles,_=void 0;return f.every(function(C){return _=l.uid===C.uid?C:null,!_}),_},abort:function(l){this.$refs["upload-inner"].abort(l)},clearFiles:function(){this.uploadFiles=[]},submit:function(){var l=this;this.uploadFiles.filter(function(f){return f.status==="ready"}).forEach(function(f){l.$refs["upload-inner"].upload(f.raw)})},getMigratingConfig:function(){return{props:{"default-file-list":"default-file-list is renamed to file-list.","show-upload-list":"show-upload-list is renamed to show-file-list.","thumbnail-mode":"thumbnail-mode has been deprecated, you can implement the same effect according to this case: http://element.eleme.io/#/zh-CN/component/upload#yong-hu-tou-xiang-shang-chuan"}}}},beforeDestroy:function(){this.uploadFiles.forEach(function(l){l.url&&l.url.indexOf("blob:")===0&&URL.revokeObjectURL(l.url)})},render:function(l){var f=this,_=void 0;this.showFileList&&(_=l(W2,{attrs:{disabled:this.uploadDisabled,listType:this.listType,files:this.uploadFiles,handlePreview:this.onPreview},on:{remove:this.handleRemove}},[function(ne){if(f.$scopedSlots.file)return f.$scopedSlots.file({file:ne.file})}]));var C={props:{type:this.type,drag:this.drag,action:this.action,multiple:this.multiple,"before-upload":this.beforeUpload,"with-credentials":this.withCredentials,headers:this.headers,name:this.name,data:this.data,accept:this.accept,fileList:this.uploadFiles,autoUpload:this.autoUpload,listType:this.listType,disabled:this.uploadDisabled,limit:this.limit,"on-exceed":this.onExceed,"on-start":this.handleStart,"on-progress":this.handleProgress,"on-success":this.handleSuccess,"on-error":this.handleError,"on-preview":this.onPreview,"on-remove":this.handleRemove,"http-request":this.httpRequest},ref:"upload-inner"},P=this.$slots.trigger||this.$slots.default,z=l("upload",C,[P]);return l("div",[this.listType==="picture-card"?_:"",this.$slots.trigger?[z,this.$slots.default]:z,this.$slots.tip,this.listType!=="picture-card"?_:""])}},q7=Q7,e9,t9,Y2=h(q7,e9,t9,!1,null,null,null);Y2.options.__file="packages/upload/src/index.vue";var Nf=Y2.exports;Nf.install=function(o){o.component(Nf.name,Nf)};var X2=Nf,J2=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-progress",class:["el-progress--"+o.type,o.status?"is-"+o.status:"",{"el-progress--without-text":!o.showText,"el-progress--text-inside":o.textInside}],attrs:{role:"progressbar","aria-valuenow":o.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},[o.type==="line"?f("div",{staticClass:"el-progress-bar"},[f("div",{staticClass:"el-progress-bar__outer",style:{height:o.strokeWidth+"px"}},[f("div",{staticClass:"el-progress-bar__inner",style:o.barStyle},[o.showText&&o.textInside?f("div",{staticClass:"el-progress-bar__innerText"},[o._v(o._s(o.content))]):o._e()])])]):f("div",{staticClass:"el-progress-circle",style:{height:o.width+"px",width:o.width+"px"}},[f("svg",{attrs:{viewBox:"0 0 100 100"}},[f("path",{staticClass:"el-progress-circle__track",style:o.trailPathStyle,attrs:{d:o.trackPath,stroke:"#e5e9f2","stroke-width":o.relativeStrokeWidth,fill:"none"}}),f("path",{staticClass:"el-progress-circle__path",style:o.circlePathStyle,attrs:{d:o.trackPath,stroke:o.stroke,fill:"none","stroke-linecap":o.strokeLinecap,"stroke-width":o.percentage?o.relativeStrokeWidth:0}})])]),o.showText&&!o.textInside?f("div",{staticClass:"el-progress__text",style:{fontSize:o.progressTextSize+"px"}},[o.status?f("i",{class:o.iconClass}):[o._v(o._s(o.content))]],2):o._e()])},n9=[];J2._withStripped=!0;var r9={name:"ElProgress",props:{type:{type:String,default:"line",validator:function(l){return["line","circle","dashboard"].indexOf(l)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(l){return l>=0&&l<=100}},status:{type:String,validator:function(l){return["success","exception","warning"].indexOf(l)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},format:Function},computed:{barStyle:function(){var l={};return l.width=this.percentage+"%",l.backgroundColor=this.getCurrentColor(this.percentage),l},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return this.type==="circle"||this.type==="dashboard"?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var l=this.radius,f=this.type==="dashboard";return` M 50 50 m 0 `+(f?"":"-")+l+` a `+l+" "+l+" 0 1 1 0 "+(f?"-":"")+l*2+` a `+l+" "+l+" 0 1 1 0 "+(f?"":"-")+l*2+` - `},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return this.type==="dashboard"?.75:1},strokeDashoffset:function(){var l=-1*this.perimeter*(1-this.rate)/2;return l+"px"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var l=void 0;if(this.color)l=this.getCurrentColor(this.percentage);else switch(this.status){case"success":l="#13ce66";break;case"exception":l="#ff4949";break;case"warning":l="#e6a23c";break;default:l="#20a0ff"}return l},iconClass:function(){return this.status==="warning"?"el-icon-warning":this.type==="line"?this.status==="success"?"el-icon-circle-check":"el-icon-circle-close":this.status==="success"?"el-icon-check":"el-icon-close"},progressTextSize:function(){return this.type==="line"?12+this.strokeWidth*.4:this.width*.111111+2},content:function(){return typeof this.format=="function"?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(l){return typeof this.color=="function"?this.color(l):typeof this.color=="string"?this.color:this.getLevelColor(l)},getLevelColor:function(l){for(var f=this.getColorArray().sort(function(C,P){return C.percentage-P.percentage}),_=0;_l)return f[_].color;return f[f.length-1].color},getColorArray:function(){var l=this.color,f=100/l.length;return l.map(function(_,C){return typeof _=="string"?{color:_,percentage:(C+1)*f}:_})}}},iA=rA,Z2=h(iA,J2,nA,!1,null,null,null);Z2.options.__file="packages/progress/src/progress.vue";var Bf=Z2.exports;Bf.install=function(o){o.component(Bf.name,Bf)};var Q2=Bf,q2=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("span",{staticClass:"el-spinner"},[f("svg",{staticClass:"el-spinner-inner",style:{width:o.radius/2+"px",height:o.radius/2+"px"},attrs:{viewBox:"0 0 50 50"}},[f("circle",{staticClass:"path",attrs:{cx:"25",cy:"25",r:"20",fill:"none",stroke:o.strokeColor,"stroke-width":o.strokeWidth}})])])},aA=[];q2._withStripped=!0;var sA={name:"ElSpinner",props:{type:String,radius:{type:Number,default:100},strokeWidth:{type:Number,default:5},strokeColor:{type:String,default:"#efefef"}}},oA=sA,ew=h(oA,q2,aA,!1,null,null,null);ew.options.__file="packages/spinner/src/spinner.vue";var Ff=ew.exports;Ff.install=function(o){o.component(Ff.name,Ff)};var tw=Ff,nw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("transition",{attrs:{name:"el-message-fade"},on:{"after-leave":o.handleAfterLeave}},[f("div",{directives:[{name:"show",rawName:"v-show",value:o.visible,expression:"visible"}],class:["el-message",o.type&&!o.iconClass?"el-message--"+o.type:"",o.center?"is-center":"",o.showClose?"is-closable":"",o.customClass],style:o.positionStyle,attrs:{role:"alert"},on:{mouseenter:o.clearTimer,mouseleave:o.startTimer}},[o.iconClass?f("i",{class:o.iconClass}):f("i",{class:o.typeClass}),o._t("default",[o.dangerouslyUseHTMLString?f("p",{staticClass:"el-message__content",domProps:{innerHTML:o._s(o.message)}}):f("p",{staticClass:"el-message__content"},[o._v(o._s(o.message))])]),o.showClose?f("i",{staticClass:"el-message__closeBtn el-icon-close",on:{click:o.close}}):o._e()],2)])},lA=[];nw._withStripped=!0;var uA={success:"success",info:"info",warning:"warning",error:"error"},cA={data:function(){return{visible:!1,message:"",duration:3e3,type:"info",iconClass:"",customClass:"",onClose:null,showClose:!1,closed:!1,verticalOffset:20,timer:null,dangerouslyUseHTMLString:!1,center:!1}},computed:{typeClass:function(){return this.type&&!this.iconClass?"el-message__icon el-icon-"+uA[this.type]:""},positionStyle:function(){return{top:this.verticalOffset+"px"}}},watch:{closed:function(l){l&&(this.visible=!1)}},methods:{handleAfterLeave:function(){this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},close:function(){this.closed=!0,typeof this.onClose=="function"&&this.onClose(this)},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var l=this;this.duration>0&&(this.timer=setTimeout(function(){l.closed||l.close()},this.duration))},keydown:function(l){l.keyCode===27&&(this.closed||this.close())}},mounted:function(){this.startTimer(),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},dA=cA,rw=h(dA,nw,lA,!1,null,null,null);rw.options.__file="packages/message/src/main.vue";var fA=rw.exports,ea=i(16),hA=Object.assign||function(o){for(var l=1;lca.length-1))for(var z=_;z=0;o--)ca[o].close()};var mA=zl,iw=mA,aw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-badge"},[o._t("default"),f("transition",{attrs:{name:"el-zoom-in-center"}},[f("sup",{directives:[{name:"show",rawName:"v-show",value:!o.hidden&&(o.content||o.content===0||o.isDot),expression:"!hidden && (content || content === 0 || isDot)"}],staticClass:"el-badge__content",class:[o.type?"el-badge__content--"+o.type:null,{"is-fixed":o.$slots.default,"is-dot":o.isDot}],domProps:{textContent:o._s(o.content)}})])],2)},_A=[];aw._withStripped=!0;var gA={name:"ElBadge",props:{value:[String,Number],max:Number,isDot:Boolean,hidden:Boolean,type:{type:String,validator:function(l){return["primary","success","warning","info","danger"].indexOf(l)>-1}}},computed:{content:function(){if(!this.isDot){var l=this.value,f=this.max;return typeof l=="number"&&typeof f=="number"&&f0&&l-1this.value,_=this.allowHalf&&this.pointerAtLeftHalf&&l-.5<=this.currentValue&&l>this.currentValue;return f||_},getIconStyle:function(l){var f=this.rateDisabled?this.disabledVoidColor:this.voidColor;return{color:l<=this.currentValue?this.activeColor:f}},selectValue:function(l){this.rateDisabled||(this.allowHalf&&this.pointerAtLeftHalf?(this.$emit("input",this.currentValue),this.$emit("change",this.currentValue)):(this.$emit("input",l),this.$emit("change",l)))},handleKey:function(l){if(!this.rateDisabled){var f=this.currentValue,_=l.keyCode;_===38||_===39?(this.allowHalf?f+=.5:f+=1,l.stopPropagation(),l.preventDefault()):(_===37||_===40)&&(this.allowHalf?f-=.5:f-=1,l.stopPropagation(),l.preventDefault()),f=f<0?0:f,f=f>this.max?this.max:f,this.$emit("input",f),this.$emit("change",f)}},setCurrentValue:function(l,f){if(!this.rateDisabled){if(this.allowHalf){var _=f.target;Object(Le.hasClass)(_,"el-rate__item")&&(_=_.querySelector(".el-rate__icon")),Object(Le.hasClass)(_,"el-rate__decimal")&&(_=_.parentNode),this.pointerAtLeftHalf=f.offsetX*2<=_.clientWidth,this.currentValue=this.pointerAtLeftHalf?l-.5:l}else this.currentValue=l;this.hoverIndex=l}},resetCurrentValue:function(){this.rateDisabled||(this.allowHalf&&(this.pointerAtLeftHalf=this.value!==Math.floor(this.value)),this.currentValue=this.value,this.hoverIndex=-1)}},created:function(){this.value||this.$emit("input",0)}},kA=SA,fw=h(kA,dw,xA,!1,null,null,null);fw.options.__file="packages/rate/src/main.vue";var Uf=fw.exports;Uf.install=function(o){o.component(Uf.name,Uf)};var hw=Uf,pw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-steps",class:[!o.simple&&"el-steps--"+o.direction,o.simple&&"el-steps--simple"]},[o._t("default")],2)},EA=[];pw._withStripped=!0;var DA={name:"ElSteps",mixins:[Y.a],props:{space:[Number,String],active:Number,direction:{type:String,default:"horizontal"},alignCenter:Boolean,simple:Boolean,finishStatus:{type:String,default:"finish"},processStatus:{type:String,default:"process"}},data:function(){return{steps:[],stepOffset:0}},methods:{getMigratingConfig:function(){return{props:{center:"center is removed."}}}},watch:{active:function(l,f){this.$emit("change",l,f)},steps:function(l){l.forEach(function(f,_){f.index=_})}}},OA=DA,vw=h(OA,pw,EA,!1,null,null,null);vw.options.__file="packages/steps/src/steps.vue";var Vf=vw.exports;Vf.install=function(o){o.component(Vf.name,Vf)};var mw=Vf,_w=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-step",class:[!o.isSimple&&"is-"+o.$parent.direction,o.isSimple&&"is-simple",o.isLast&&!o.space&&!o.isCenter&&"is-flex",o.isCenter&&!o.isVertical&&!o.isSimple&&"is-center"],style:o.style},[f("div",{staticClass:"el-step__head",class:"is-"+o.currentStatus},[f("div",{staticClass:"el-step__line",style:o.isLast?"":{marginRight:o.$parent.stepOffset+"px"}},[f("i",{staticClass:"el-step__line-inner",style:o.lineStyle})]),f("div",{staticClass:"el-step__icon",class:"is-"+(o.icon?"icon":"text")},[o.currentStatus!=="success"&&o.currentStatus!=="error"?o._t("icon",[o.icon?f("i",{staticClass:"el-step__icon-inner",class:[o.icon]}):o._e(),!o.icon&&!o.isSimple?f("div",{staticClass:"el-step__icon-inner"},[o._v(o._s(o.index+1))]):o._e()]):f("i",{staticClass:"el-step__icon-inner is-status",class:["el-icon-"+(o.currentStatus==="success"?"check":"close")]})],2)]),f("div",{staticClass:"el-step__main"},[f("div",{ref:"title",staticClass:"el-step__title",class:["is-"+o.currentStatus]},[o._t("title",[o._v(o._s(o.title))])],2),o.isSimple?f("div",{staticClass:"el-step__arrow"}):f("div",{staticClass:"el-step__description",class:["is-"+o.currentStatus]},[o._t("description",[o._v(o._s(o.description))])],2)])])},PA=[];_w._withStripped=!0;var TA={name:"ElStep",props:{title:String,icon:String,description:String,status:String},data:function(){return{index:-1,lineStyle:{},internalStatus:""}},beforeCreate:function(){this.$parent.steps.push(this)},beforeDestroy:function(){var l=this.$parent.steps,f=l.indexOf(this);f>=0&&l.splice(f,1)},computed:{currentStatus:function(){return this.status||this.internalStatus},prevStatus:function(){var l=this.$parent.steps[this.index-1];return l?l.currentStatus:"wait"},isCenter:function(){return this.$parent.alignCenter},isVertical:function(){return this.$parent.direction==="vertical"},isSimple:function(){return this.$parent.simple},isLast:function(){var l=this.$parent;return l.steps[l.steps.length-1]===this},stepsCount:function(){return this.$parent.steps.length},space:function(){var l=this.isSimple,f=this.$parent.space;return l?"":f},style:function(){var l={},f=this.$parent,_=f.steps.length,C=typeof this.space=="number"?this.space+"px":this.space?this.space:100/(_-(this.isCenter?0:1))+"%";return l.flexBasis=C,this.isVertical||(this.isLast?l.maxWidth=100/this.stepsCount+"%":l.marginRight=-this.$parent.stepOffset+"px"),l}},methods:{updateStatus:function(l){var f=this.$parent.$children[this.index-1];l>this.index?this.internalStatus=this.$parent.finishStatus:l===this.index&&this.prevStatus!=="error"?this.internalStatus=this.$parent.processStatus:this.internalStatus="wait",f&&f.calcProgress(this.internalStatus)},calcProgress:function(l){var f=100,_={};_.transitionDelay=150*this.index+"ms",l===this.$parent.processStatus?f=(this.currentStatus!=="error",0):l==="wait"&&(f=0,_.transitionDelay=-150*this.index+"ms"),_.borderWidth=f&&!this.isSimple?"1px":0,this.$parent.direction==="vertical"?_.height=f+"%":_.width=f+"%",this.lineStyle=_}},mounted:function(){var l=this,f=this.$watch("index",function(_){l.$watch("$parent.active",l.updateStatus,{immediate:!0}),l.$watch("$parent.processStatus",function(){var C=l.$parent.active;l.updateStatus(C)},{immediate:!0}),f()})}},AA=TA,gw=h(AA,_w,PA,!1,null,null,null);gw.options.__file="packages/steps/src/step.vue";var Wf=gw.exports;Wf.install=function(o){o.component(Wf.name,Wf)};var yw=Wf,bw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{class:o.carouselClasses,on:{mouseenter:function(_){return _.stopPropagation(),o.handleMouseEnter(_)},mouseleave:function(_){return _.stopPropagation(),o.handleMouseLeave(_)}}},[f("div",{staticClass:"el-carousel__container",style:{height:o.height}},[o.arrowDisplay?f("transition",{attrs:{name:"carousel-arrow-left"}},[f("button",{directives:[{name:"show",rawName:"v-show",value:(o.arrow==="always"||o.hover)&&(o.loop||o.activeIndex>0),expression:"(arrow === 'always' || hover) && (loop || activeIndex > 0)"}],staticClass:"el-carousel__arrow el-carousel__arrow--left",attrs:{type:"button"},on:{mouseenter:function(_){o.handleButtonEnter("left")},mouseleave:o.handleButtonLeave,click:function(_){_.stopPropagation(),o.throttledArrowClick(o.activeIndex-1)}}},[f("i",{staticClass:"el-icon-arrow-left"})])]):o._e(),o.arrowDisplay?f("transition",{attrs:{name:"carousel-arrow-right"}},[f("button",{directives:[{name:"show",rawName:"v-show",value:(o.arrow==="always"||o.hover)&&(o.loop||o.activeIndex0})},carouselClasses:function(){var l=["el-carousel","el-carousel--"+this.direction];return this.type==="card"&&l.push("el-carousel--card"),l},indicatorsClasses:function(){var l=["el-carousel__indicators","el-carousel__indicators--"+this.direction];return this.hasLabel&&l.push("el-carousel__indicators--labels"),(this.indicatorPosition==="outside"||this.type==="card")&&l.push("el-carousel__indicators--outside"),l}},watch:{items:function(l){l.length>0&&this.setActiveItem(this.initialIndex)},activeIndex:function(l,f){this.resetItemPosition(f),f>-1&&this.$emit("change",l,f)},autoplay:function(l){l?this.startTimer():this.pauseTimer()},loop:function(){this.setActiveItem(this.activeIndex)},interval:function(){this.pauseTimer(),this.startTimer()}},methods:{handleMouseEnter:function(){this.hover=!0,this.pauseTimer()},handleMouseLeave:function(){this.hover=!1,this.startTimer()},itemInStage:function(l,f){var _=this.items.length;return f===_-1&&l.inStage&&this.items[0].active||l.inStage&&this.items[f+1]&&this.items[f+1].active?"left":f===0&&l.inStage&&this.items[_-1].active||l.inStage&&this.items[f-1]&&this.items[f-1].active?"right":!1},handleButtonEnter:function(l){var f=this;this.direction!=="vertical"&&this.items.forEach(function(_,C){l===f.itemInStage(_,C)&&(_.hover=!0)})},handleButtonLeave:function(){this.direction!=="vertical"&&this.items.forEach(function(l){l.hover=!1})},updateItems:function(){this.items=this.$children.filter(function(l){return l.$options.name==="ElCarouselItem"})},resetItemPosition:function(l){var f=this;this.items.forEach(function(_,C){_.translateItem(C,f.activeIndex,l)})},playSlides:function(){this.activeIndex0&&(l=this.items.indexOf(f[0]))}if(l=Number(l),isNaN(l)||l!==Math.floor(l)){console.warn("[Element Warn][Carousel]index must be an integer.");return}var _=this.items.length,C=this.activeIndex;l<0?this.activeIndex=this.loop?_-1:0:l>=_?this.activeIndex=this.loop?0:_-1:this.activeIndex=l,C===this.activeIndex&&this.resetItemPosition(C),this.resetTimer()},prev:function(){this.setActiveItem(this.activeIndex-1)},next:function(){this.setActiveItem(this.activeIndex+1)},handleIndicatorClick:function(l){this.activeIndex=l},handleIndicatorHover:function(l){this.trigger==="hover"&&l!==this.activeIndex&&(this.activeIndex=l)}},created:function(){var l=this;this.throttledArrowClick=Kf()(300,!0,function(f){l.setActiveItem(f)}),this.throttledIndicatorHover=Kf()(300,function(f){l.handleIndicatorHover(f)})},mounted:function(){var l=this;this.updateItems(),this.$nextTick(function(){Object(Ci.addResizeListener)(l.$el,l.resetItemPosition),l.initialIndex=0&&(l.activeIndex=l.initialIndex),l.startTimer()})},beforeDestroy:function(){this.$el&&Object(Ci.removeResizeListener)(this.$el,this.resetItemPosition),this.pauseTimer()}},LA=RA,ww=h(LA,bw,MA,!1,null,null,null);ww.options.__file="packages/carousel/src/main.vue";var Hf=ww.exports;Hf.install=function(o){o.component(Hf.name,Hf)};var Cw=Hf,NA={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function BA(o){var l=o.move,f=o.size,_=o.bar,C={},P="translate"+_.axis+"("+l+"%)";return C[_.size]=f,C.transform=P,C.msTransform=P,C.webkitTransform=P,C}var h_={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return NA[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(l){var f=this.size,_=this.move,C=this.bar;return l("div",{class:["el-scrollbar__bar","is-"+C.key],on:{mousedown:this.clickTrackHandler}},[l("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:BA({size:f,move:_,bar:C})})])},methods:{clickThumbHandler:function(l){l.ctrlKey||l.button===2||(this.startDrag(l),this[this.bar.axis]=l.currentTarget[this.bar.offset]-(l[this.bar.client]-l.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(l){var f=Math.abs(l.target.getBoundingClientRect()[this.bar.direction]-l[this.bar.client]),_=this.$refs.thumb[this.bar.offset]/2,C=(f-_)*100/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=C*this.wrap[this.bar.scrollSize]/100},startDrag:function(l){l.stopImmediatePropagation(),this.cursorDown=!0,Object(Le.on)(document,"mousemove",this.mouseMoveDocumentHandler),Object(Le.on)(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(l){if(this.cursorDown!==!1){var f=this[this.bar.axis];if(!!f){var _=(this.$el.getBoundingClientRect()[this.bar.direction]-l[this.bar.client])*-1,C=this.$refs.thumb[this.bar.offset]-f,P=(_-C)*100/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=P*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(l){this.cursorDown=!1,this[this.bar.axis]=0,Object(Le.off)(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(Le.off)(document,"mouseup",this.mouseUpDocumentHandler)}},Gf={name:"ElScrollbar",components:{Bar:h_},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(l){var f=Bb()(),_=this.wrapStyle;if(f){var C="-"+f+"px",P="margin-bottom: "+C+"; margin-right: "+C+";";Array.isArray(this.wrapStyle)?(_=Object(S.toObject)(this.wrapStyle),_.marginRight=_.marginBottom=C):typeof this.wrapStyle=="string"?_+=P:_=P}var z=l(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),ne=l("div",{ref:"wrap",style:_,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",f?"":"el-scrollbar__wrap--hidden-default"]},[[z]]),Se=void 0;return this.native?Se=[l("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:_},[[z]])]:Se=[ne,l(h_,{attrs:{move:this.moveX,size:this.sizeWidth}}),l(h_,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],l("div",{class:"el-scrollbar"},Se)},methods:{handleScroll:function(){var l=this.wrap;this.moveY=l.scrollTop*100/l.clientHeight,this.moveX=l.scrollLeft*100/l.clientWidth},update:function(){var l=void 0,f=void 0,_=this.wrap;!_||(l=_.clientHeight*100/_.scrollHeight,f=_.clientWidth*100/_.scrollWidth,this.sizeHeight=l<100?l+"%":"",this.sizeWidth=f<100?f+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(Ci.addResizeListener)(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(Ci.removeResizeListener)(this.$refs.resize,this.update)}};Gf.install=function(o){o.component(Gf.name,Gf)};var xw=Gf,Sw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{directives:[{name:"show",rawName:"v-show",value:o.ready,expression:"ready"}],staticClass:"el-carousel__item",class:{"is-active":o.active,"el-carousel__item--card":o.$parent.type==="card","is-in-stage":o.inStage,"is-hover":o.hover,"is-animating":o.animating},style:o.itemStyle,on:{click:o.handleItemClick}},[o.$parent.type==="card"?f("div",{directives:[{name:"show",rawName:"v-show",value:!o.active,expression:"!active"}],staticClass:"el-carousel__mask"}):o._e(),o._t("default")],2)},FA=[];Sw._withStripped=!0;var Yf=.83,zA={name:"ElCarouselItem",props:{name:String,label:{type:[String,Number],default:""}},data:function(){return{hover:!1,translate:0,scale:1,active:!1,ready:!1,inStage:!1,animating:!1}},methods:{processIndex:function(l,f,_){return f===0&&l===_-1?-1:f===_-1&&l===0?_:l=_/2?_+1:l>f+1&&l-f>=_/2?-2:l},calcCardTranslate:function(l,f){var _=this.$parent.$el.offsetWidth;return this.inStage?_*((2-Yf)*(l-f)+1)/4:l2&&this.$parent.loop&&(l=this.processIndex(l,f,z)),C==="card")P==="vertical"&&console.warn("[Element Warn][Carousel]vertical direction is not supported in card mode"),this.inStage=Math.round(Math.abs(l-f))<=1,this.active=l===f,this.translate=this.calcCardTranslate(l,f),this.scale=this.active?1:Yf;else{this.active=l===f;var ne=P==="vertical";this.translate=this.calcTranslate(l,f,ne),this.scale=1}this.ready=!0},handleItemClick:function(){var l=this.$parent;if(l&&l.type==="card"){var f=l.items.indexOf(this);l.setActiveItem(f)}}},computed:{parentDirection:function(){return this.$parent.direction},itemStyle:function(){var l=this.parentDirection==="vertical"?"translateY":"translateX",f=l+"("+this.translate+"px) scale("+this.scale+")",_={transform:f};return Object(S.autoprefixer)(_)}},created:function(){this.$parent&&this.$parent.updateItems()},destroyed:function(){this.$parent&&this.$parent.updateItems()}},jA=zA,kw=h(jA,Sw,FA,!1,null,null,null);kw.options.__file="packages/carousel/src/item.vue";var Xf=kw.exports;Xf.install=function(o){o.component(Xf.name,Xf)};var Ew=Xf,Dw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-collapse",attrs:{role:"tablist","aria-multiselectable":"true"}},[o._t("default")],2)},UA=[];Dw._withStripped=!0;var VA={name:"ElCollapse",componentName:"ElCollapse",props:{accordion:Boolean,value:{type:[Array,String,Number],default:function(){return[]}}},data:function(){return{activeNames:[].concat(this.value)}},provide:function(){return{collapse:this}},watch:{value:function(l){this.activeNames=[].concat(l)}},methods:{setActiveNames:function(l){l=[].concat(l);var f=this.accordion?l[0]:l;this.activeNames=l,this.$emit("input",f),this.$emit("change",f)},handleItemClick:function(l){if(this.accordion)this.setActiveNames((this.activeNames[0]||this.activeNames[0]===0)&&this.activeNames[0]===l.name?"":l.name);else{var f=this.activeNames.slice(0),_=f.indexOf(l.name);_>-1?f.splice(_,1):f.push(l.name),this.setActiveNames(f)}}},created:function(){this.$on("item-click",this.handleItemClick)}},WA=VA,Ow=h(WA,Dw,UA,!1,null,null,null);Ow.options.__file="packages/collapse/src/collapse.vue";var Jf=Ow.exports;Jf.install=function(o){o.component(Jf.name,Jf)};var Pw=Jf,Tw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-collapse-item",class:{"is-active":o.isActive,"is-disabled":o.disabled}},[f("div",{attrs:{role:"tab","aria-expanded":o.isActive,"aria-controls":"el-collapse-content-"+o.id,"aria-describedby":"el-collapse-content-"+o.id}},[f("div",{staticClass:"el-collapse-item__header",class:{focusing:o.focusing,"is-active":o.isActive},attrs:{role:"button",id:"el-collapse-head-"+o.id,tabindex:o.disabled?void 0:0},on:{click:o.handleHeaderClick,keyup:function(_){return!("button"in _)&&o._k(_.keyCode,"space",32,_.key,[" ","Spacebar"])&&o._k(_.keyCode,"enter",13,_.key,"Enter")?null:(_.stopPropagation(),o.handleEnterClick(_))},focus:o.handleFocus,blur:function(_){o.focusing=!1}}},[o._t("title",[o._v(o._s(o.title))]),f("i",{staticClass:"el-collapse-item__arrow el-icon-arrow-right",class:{"is-active":o.isActive}})],2)]),f("el-collapse-transition",[f("div",{directives:[{name:"show",rawName:"v-show",value:o.isActive,expression:"isActive"}],staticClass:"el-collapse-item__wrap",attrs:{role:"tabpanel","aria-hidden":!o.isActive,"aria-labelledby":"el-collapse-head-"+o.id,id:"el-collapse-content-"+o.id}},[f("div",{staticClass:"el-collapse-item__content"},[o._t("default")],2)])])],1)},KA=[];Tw._withStripped=!0;var HA={name:"ElCollapseItem",componentName:"ElCollapseItem",mixins:[W.a],components:{ElCollapseTransition:en.a},data:function(){return{contentWrapStyle:{height:"auto",display:"block"},contentHeight:0,focusing:!1,isClick:!1,id:Object(S.generateId)()}},inject:["collapse"],props:{title:String,name:{type:[String,Number],default:function(){return this._uid}},disabled:Boolean},computed:{isActive:function(){return this.collapse.activeNames.indexOf(this.name)>-1}},methods:{handleFocus:function(){var l=this;setTimeout(function(){l.isClick?l.isClick=!1:l.focusing=!0},50)},handleHeaderClick:function(){this.disabled||(this.dispatch("ElCollapse","item-click",this),this.focusing=!1,this.isClick=!0)},handleEnterClick:function(){this.dispatch("ElCollapse","item-click",this)}}},GA=HA,Aw=h(GA,Tw,KA,!1,null,null,null);Aw.options.__file="packages/collapse/src/collapse-item.vue";var Zf=Aw.exports;Zf.install=function(o){o.component(Zf.name,Zf)};var Mw=Zf,Iw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:function(){return o.toggleDropDownVisible(!1)},expression:"() => toggleDropDownVisible(false)"}],ref:"reference",class:["el-cascader",o.realSize&&"el-cascader--"+o.realSize,{"is-disabled":o.isDisabled}],on:{mouseenter:function(_){o.inputHover=!0},mouseleave:function(_){o.inputHover=!1},click:function(){return o.toggleDropDownVisible(o.readonly?void 0:!0)},keydown:o.handleKeyDown}},[f("el-input",{ref:"input",class:{"is-focus":o.dropDownVisible},attrs:{size:o.realSize,placeholder:o.placeholder,readonly:o.readonly,disabled:o.isDisabled,"validate-event":!1},on:{focus:o.handleFocus,blur:o.handleBlur,input:o.handleInput},model:{value:o.multiple?o.presentText:o.inputValue,callback:function(_){o.multiple?o.presentText:o.inputValue=_},expression:"multiple ? presentText : inputValue"}},[f("template",{slot:"suffix"},[o.clearBtnVisible?f("i",{key:"clear",staticClass:"el-input__icon el-icon-circle-close",on:{click:function(_){return _.stopPropagation(),o.handleClear(_)}}}):f("i",{key:"arrow-down",class:["el-input__icon","el-icon-arrow-down",o.dropDownVisible&&"is-reverse"],on:{click:function(_){_.stopPropagation(),o.toggleDropDownVisible()}}})])],2),o.multiple?f("div",{staticClass:"el-cascader__tags"},[o._l(o.presentTags,function(_){return f("el-tag",{key:_.key,attrs:{type:"info",size:o.tagSize,hit:_.hitState,closable:_.closable,"disable-transitions":""},on:{close:function(C){o.deleteTag(_)}}},[f("span",[o._v(o._s(_.text))])])}),o.filterable&&!o.isDisabled?f("input",{directives:[{name:"model",rawName:"v-model.trim",value:o.inputValue,expression:"inputValue",modifiers:{trim:!0}}],staticClass:"el-cascader__search-input",attrs:{type:"text",placeholder:o.presentTags.length?"":o.placeholder},domProps:{value:o.inputValue},on:{input:[function(_){_.target.composing||(o.inputValue=_.target.value.trim())},function(_){return o.handleInput(o.inputValue,_)}],click:function(_){_.stopPropagation(),o.toggleDropDownVisible(!0)},keydown:function(_){return!("button"in _)&&o._k(_.keyCode,"delete",[8,46],_.key,["Backspace","Delete","Del"])?null:o.handleDelete(_)},blur:function(_){o.$forceUpdate()}}}):o._e()],2):o._e(),f("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":o.handleDropdownLeave}},[f("div",{directives:[{name:"show",rawName:"v-show",value:o.dropDownVisible,expression:"dropDownVisible"}],ref:"popper",class:["el-popper","el-cascader__dropdown",o.popperClass]},[f("el-cascader-panel",{directives:[{name:"show",rawName:"v-show",value:!o.filtering,expression:"!filtering"}],ref:"panel",attrs:{options:o.options,props:o.config,border:!1,"render-label":o.$scopedSlots.default},on:{"expand-change":o.handleExpandChange,close:function(_){o.toggleDropDownVisible(!1)}},model:{value:o.checkedValue,callback:function(_){o.checkedValue=_},expression:"checkedValue"}}),o.filterable?f("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:o.filtering,expression:"filtering"}],ref:"suggestionPanel",staticClass:"el-cascader__suggestion-panel",attrs:{tag:"ul","view-class":"el-cascader__suggestion-list"},nativeOn:{keydown:function(_){return o.handleSuggestionKeyDown(_)}}},[o.suggestions.length?o._l(o.suggestions,function(_,C){return f("li",{key:_.uid,class:["el-cascader__suggestion-item",_.checked&&"is-checked"],attrs:{tabindex:-1},on:{click:function(P){o.handleSuggestionClick(C)}}},[f("span",[o._v(o._s(_.text))]),_.checked?f("i",{staticClass:"el-icon-check"}):o._e()])}):o._t("empty",[f("li",{staticClass:"el-cascader__empty-text"},[o._v(o._s(o.t("el.cascader.noMatch")))])])],2):o._e()],1)])],1)},YA=[];Iw._withStripped=!0;var XA=i(42),JA=i.n(XA),ZA=i(34),$w=i.n(ZA),ps=$w.a.keys,Rw={expandTrigger:{newProp:"expandTrigger",type:String},changeOnSelect:{newProp:"checkStrictly",type:Boolean},hoverThreshold:{newProp:"hoverThreshold",type:Number}},QA={props:{placement:{type:String,default:"bottom-start"},appendToBody:I.a.props.appendToBody,visibleArrow:{type:Boolean,default:!0},arrowOffset:I.a.props.arrowOffset,offset:I.a.props.offset,boundariesPadding:I.a.props.boundariesPadding,popperOptions:I.a.props.popperOptions,transformOrigin:I.a.props.transformOrigin},methods:I.a.methods,data:I.a.data,beforeDestroy:I.a.beforeDestroy},qA={medium:36,small:32,mini:28},e9={name:"ElCascader",directives:{Clickoutside:De.a},mixins:[QA,W.a,O.a,Y.a],inject:{elForm:{default:""},elFormItem:{default:""}},components:{ElInput:b.a,ElTag:Eo.a,ElScrollbar:q.a,ElCascaderPanel:JA.a},props:{value:{},options:Array,props:Object,size:String,placeholder:{type:String,default:function(){return Object(hs.t)("el.cascader.placeholder")}},disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:Function,separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,debounce:{type:Number,default:300},beforeFilter:{type:Function,default:function(){return function(){}}},popperClass:String},data:function(){return{dropDownVisible:!1,checkedValue:this.value,inputHover:!1,inputValue:null,presentText:null,presentTags:[],checkedNodes:[],filtering:!1,suggestions:[],inputInitialHeight:0,pressDeleteCount:0}},computed:{realSize:function(){var l=(this.elFormItem||{}).elFormItemSize;return this.size||l||(this.$ELEMENT||{}).size},tagSize:function(){return["small","mini"].indexOf(this.realSize)>-1?"mini":"small"},isDisabled:function(){return this.disabled||(this.elForm||{}).disabled},config:function(){var l=this.props||{},f=this.$attrs;return Object.keys(Rw).forEach(function(_){var C=Rw[_],P=C.newProp,z=C.type,ne=f[_]||f[Object(S.kebabCase)(_)];Object(qn.isDef)(_)&&!Object(qn.isDef)(l[P])&&(z===Boolean&&ne===""&&(ne=!0),l[P]=ne)}),l},multiple:function(){return this.config.multiple},leafOnly:function(){return!this.config.checkStrictly},readonly:function(){return!this.filterable||this.multiple},clearBtnVisible:function(){return!this.clearable||this.isDisabled||this.filtering||!this.inputHover?!1:this.multiple?!!this.checkedNodes.filter(function(l){return!l.isDisabled}).length:!!this.presentText},panel:function(){return this.$refs.panel}},watch:{disabled:function(){this.computePresentContent()},value:function(l){Object(S.isEqual)(l,this.checkedValue)||(this.checkedValue=l,this.computePresentContent())},checkedValue:function(l){var f=this.value,_=this.dropDownVisible,C=this.config,P=C.checkStrictly,z=C.multiple;(!Object(S.isEqual)(l,f)||Object(ea.isUndefined)(f))&&(this.computePresentContent(),!z&&!P&&_&&this.toggleDropDownVisible(!1),this.$emit("input",l),this.$emit("change",l),this.dispatch("ElFormItem","el.form.change",[l]))},options:{handler:function(){this.$nextTick(this.computePresentContent)},deep:!0},presentText:function(l){this.inputValue=l},presentTags:function(l,f){this.multiple&&(l.length||f.length)&&this.$nextTick(this.updateStyle)},filtering:function(l){this.$nextTick(this.updatePopper)}},mounted:function(){var l=this,f=this.$refs.input;f&&f.$el&&(this.inputInitialHeight=f.$el.offsetHeight||qA[this.realSize]||40),this.isEmptyValue(this.value)||this.computePresentContent(),this.filterHandler=be()(this.debounce,function(){var _=l.inputValue;if(!_){l.filtering=!1;return}var C=l.beforeFilter(_);C&&C.then?C.then(l.getSuggestions):C!==!1?l.getSuggestions():l.filtering=!1}),Object(Ci.addResizeListener)(this.$el,this.updateStyle)},beforeDestroy:function(){Object(Ci.removeResizeListener)(this.$el,this.updateStyle)},methods:{getMigratingConfig:function(){return{props:{"expand-trigger":"expand-trigger is removed, use `props.expandTrigger` instead.","change-on-select":"change-on-select is removed, use `props.checkStrictly` instead.","hover-threshold":"hover-threshold is removed, use `props.hoverThreshold` instead"},events:{"active-item-change":"active-item-change is renamed to expand-change"}}},toggleDropDownVisible:function(l){var f=this;if(!this.isDisabled){var _=this.dropDownVisible,C=this.$refs.input;l=Object(qn.isDef)(l)?l:!_,l!==_&&(this.dropDownVisible=l,l&&this.$nextTick(function(){f.updatePopper(),f.panel.scrollIntoView()}),C.$refs.input.setAttribute("aria-expanded",l),this.$emit("visible-change",l))}},handleDropdownLeave:function(){this.filtering=!1,this.inputValue=this.presentText,this.doDestroy()},handleKeyDown:function(l){switch(l.keyCode){case ps.enter:this.toggleDropDownVisible();break;case ps.down:this.toggleDropDownVisible(!0),this.focusFirstNode(),l.preventDefault();break;case ps.esc:case ps.tab:this.toggleDropDownVisible(!1);break}},handleFocus:function(l){this.$emit("focus",l)},handleBlur:function(l){this.$emit("blur",l)},handleInput:function(l,f){!this.dropDownVisible&&this.toggleDropDownVisible(!0),!(f&&f.isComposing)&&(l?this.filterHandler():this.filtering=!1)},handleClear:function(){this.presentText="",this.panel.clearCheckedNodes()},handleExpandChange:function(l){this.$nextTick(this.updatePopper.bind(this)),this.$emit("expand-change",l),this.$emit("active-item-change",l)},focusFirstNode:function(){var l=this;this.$nextTick(function(){var f=l.filtering,_=l.$refs,C=_.popper,P=_.suggestionPanel,z=null;if(f&&P)z=P.$el.querySelector(".el-cascader__suggestion-item");else{var ne=C.querySelector(".el-cascader-menu");z=ne.querySelector('.el-cascader-node[tabindex="-1"]')}z&&(z.focus(),!f&&z.click())})},computePresentContent:function(){var l=this;this.$nextTick(function(){l.config.multiple?(l.computePresentTags(),l.presentText=l.presentTags.length?" ":null):l.computePresentText()})},isEmptyValue:function(l){var f=this.multiple,_=this.panel.config.emitPath;return f||_?Object(S.isEmpty)(l):!1},computePresentText:function(){var l=this.checkedValue,f=this.config;if(!this.isEmptyValue(l)){var _=this.panel.getNodeByValue(l);if(_&&(f.checkStrictly||_.isLeaf)){this.presentText=_.getText(this.showAllLevels,this.separator);return}}this.presentText=null},computePresentTags:function(){var l=this.isDisabled,f=this.leafOnly,_=this.showAllLevels,C=this.separator,P=this.collapseTags,z=this.getCheckedNodes(f),ne=[],Se=function(Ot){return{node:Ot,key:Ot.uid,text:Ot.getText(_,C),hitState:!1,closable:!l&&!Ot.isDisabled}};if(z.length){var Re=z[0],Ue=z.slice(1),Xe=Ue.length;ne.push(Se(Re)),Xe&&(P?ne.push({key:-1,text:"+ "+Xe,closable:!1}):Ue.forEach(function(dt){return ne.push(Se(dt))}))}this.checkedNodes=z,this.presentTags=ne},getSuggestions:function(){var l=this,f=this.filterMethod;Object(ea.isFunction)(f)||(f=function(P,z){return P.text.includes(z)});var _=this.panel.getFlattedNodes(this.leafOnly).filter(function(C){return C.isDisabled?!1:(C.text=C.getText(l.showAllLevels,l.separator)||"",f(C,l.inputValue))});this.multiple?this.presentTags.forEach(function(C){C.hitState=!1}):_.forEach(function(C){C.checked=Object(S.isEqual)(l.checkedValue,C.getValueByOption())}),this.filtering=!0,this.suggestions=_,this.$nextTick(this.updatePopper)},handleSuggestionKeyDown:function(l){var f=l.keyCode,_=l.target;switch(f){case ps.enter:_.click();break;case ps.up:var C=_.previousElementSibling;C&&C.focus();break;case ps.down:var P=_.nextElementSibling;P&&P.focus();break;case ps.esc:case ps.tab:this.toggleDropDownVisible(!1);break}},handleDelete:function(){var l=this.inputValue,f=this.pressDeleteCount,_=this.presentTags,C=_.length-1,P=_[C];this.pressDeleteCount=l?0:f+1,!!P&&this.pressDeleteCount&&(P.hitState?this.deleteTag(P):P.hitState=!0)},handleSuggestionClick:function(l){var f=this.multiple,_=this.suggestions[l];if(f){var C=_.checked;_.doCheck(!C),this.panel.calculateMultiCheckedValue()}else this.checkedValue=_.getValueByOption(),this.toggleDropDownVisible(!1)},deleteTag:function(l){var f=this.checkedValue,_=l.node.getValueByOption(),C=f.find(function(P){return Object(S.isEqual)(P,_)});this.checkedValue=f.filter(function(P){return!Object(S.isEqual)(P,_)}),this.$emit("remove-tag",C)},updateStyle:function(){var l=this.$el,f=this.inputInitialHeight;if(!(this.$isServer||!l)){var _=this.$refs.suggestionPanel,C=l.querySelector(".el-input__inner");if(!!C){var P=l.querySelector(".el-cascader__tags"),z=null;if(_&&(z=_.$el)){var ne=z.querySelector(".el-cascader__suggestion-list");ne.style.minWidth=C.offsetWidth+"px"}if(P){var Se=Math.round(P.getBoundingClientRect().height),Re=Math.max(Se+6,f)+"px";C.style.height=Re,this.dropDownVisible&&this.updatePopper()}}}},getCheckedNodes:function(l){return this.panel.getCheckedNodes(l)}}},t9=e9,Lw=h(t9,Iw,YA,!1,null,null,null);Lw.options.__file="packages/cascader/src/cascader.vue";var Qf=Lw.exports;Qf.install=function(o){o.component(Qf.name,Qf)};var Nw=Qf,Bw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:o.hide,expression:"hide"}],class:["el-color-picker",o.colorDisabled?"is-disabled":"",o.colorSize?"el-color-picker--"+o.colorSize:""]},[o.colorDisabled?f("div",{staticClass:"el-color-picker__mask"}):o._e(),f("div",{staticClass:"el-color-picker__trigger",on:{click:o.handleTrigger}},[f("span",{staticClass:"el-color-picker__color",class:{"is-alpha":o.showAlpha}},[f("span",{staticClass:"el-color-picker__color-inner",style:{backgroundColor:o.displayedColor}}),!o.value&&!o.showPanelColor?f("span",{staticClass:"el-color-picker__empty el-icon-close"}):o._e()]),f("span",{directives:[{name:"show",rawName:"v-show",value:o.value||o.showPanelColor,expression:"value || showPanelColor"}],staticClass:"el-color-picker__icon el-icon-arrow-down"})]),f("picker-dropdown",{ref:"dropdown",class:["el-color-picker__panel",o.popperClass||""],attrs:{color:o.color,"show-alpha":o.showAlpha,predefine:o.predefine},on:{pick:o.confirmValue,clear:o.clearValue},model:{value:o.showPicker,callback:function(_){o.showPicker=_},expression:"showPicker"}})],1)},n9=[];Bw._withStripped=!0;var r9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o};function i9(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}var Fw=function(l,f,_){return[l,f*_/((l=(2-f)*_)<1?l:2-l)||0,l/2]},a9=function(l){return typeof l=="string"&&l.indexOf(".")!==-1&&parseFloat(l)===1},s9=function(l){return typeof l=="string"&&l.indexOf("%")!==-1},jl=function(l,f){a9(l)&&(l="100%");var _=s9(l);return l=Math.min(f,Math.max(0,parseFloat(l))),_&&(l=parseInt(l*f,10)/100),Math.abs(l-f)<1e-6?1:l%f/parseFloat(f)},zw={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},o9=function(l){var f=l.r,_=l.g,C=l.b,P=function(ne){ne=Math.min(Math.round(ne),255);var Se=Math.floor(ne/16),Re=ne%16;return""+(zw[Se]||Se)+(zw[Re]||Re)};return isNaN(f)||isNaN(_)||isNaN(C)?"":"#"+P(f)+P(_)+P(C)},p_={A:10,B:11,C:12,D:13,E:14,F:15},Mo=function(l){return l.length===2?(p_[l[0].toUpperCase()]||+l[0])*16+(p_[l[1].toUpperCase()]||+l[1]):p_[l[1].toUpperCase()]||+l[1]},l9=function(l,f,_){f=f/100,_=_/100;var C=f,P=Math.max(_,.01),z=void 0,ne=void 0;return _*=2,f*=_<=1?_:2-_,C*=P<=1?P:2-P,ne=(_+f)/2,z=_===0?2*C/(P+C):2*f/(_+f),{h:l,s:z*100,v:ne*100}},jw=function(l,f,_){l=jl(l,255),f=jl(f,255),_=jl(_,255);var C=Math.max(l,f,_),P=Math.min(l,f,_),z=void 0,ne=void 0,Se=C,Re=C-P;if(ne=C===0?0:Re/C,C===P)z=0;else{switch(C){case l:z=(f-_)/Re+(f<_?6:0);break;case f:z=(_-l)/Re+2;break;case _:z=(l-f)/Re+4;break}z/=6}return{h:z*360,s:ne*100,v:Se*100}},qf=function(l,f,_){l=jl(l,360)*6,f=jl(f,100),_=jl(_,100);var C=Math.floor(l),P=l-C,z=_*(1-f),ne=_*(1-P*f),Se=_*(1-(1-P)*f),Re=C%6,Ue=[_,ne,z,z,Se,_][Re],Xe=[Se,_,_,ne,z,z][Re],dt=[z,z,Se,_,_,ne][Re];return{r:Math.round(Ue*255),g:Math.round(Xe*255),b:Math.round(dt*255)}},u9=function(){function o(l){i9(this,o),this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="",l=l||{};for(var f in l)l.hasOwnProperty(f)&&(this[f]=l[f]);this.doOnChange()}return o.prototype.set=function(f,_){if(arguments.length===1&&(typeof f=="undefined"?"undefined":r9(f))==="object"){for(var C in f)f.hasOwnProperty(C)&&this.set(C,f[C]);return}this["_"+f]=_,this.doOnChange()},o.prototype.get=function(f){return this["_"+f]},o.prototype.toRgb=function(){return qf(this._hue,this._saturation,this._value)},o.prototype.fromString=function(f){var _=this;if(!f){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}var C=function(yr,fi,Fr){_._hue=Math.max(0,Math.min(360,yr)),_._saturation=Math.max(0,Math.min(100,fi)),_._value=Math.max(0,Math.min(100,Fr)),_.doOnChange()};if(f.indexOf("hsl")!==-1){var P=f.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(function(or){return or!==""}).map(function(or,yr){return yr>2?parseFloat(or):parseInt(or,10)});if(P.length===4?this._alpha=Math.floor(parseFloat(P[3])*100):P.length===3&&(this._alpha=100),P.length>=3){var z=l9(P[0],P[1],P[2]),ne=z.h,Se=z.s,Re=z.v;C(ne,Se,Re)}}else if(f.indexOf("hsv")!==-1){var Ue=f.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(function(or){return or!==""}).map(function(or,yr){return yr>2?parseFloat(or):parseInt(or,10)});Ue.length===4?this._alpha=Math.floor(parseFloat(Ue[3])*100):Ue.length===3&&(this._alpha=100),Ue.length>=3&&C(Ue[0],Ue[1],Ue[2])}else if(f.indexOf("rgb")!==-1){var Xe=f.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(function(or){return or!==""}).map(function(or,yr){return yr>2?parseFloat(or):parseInt(or,10)});if(Xe.length===4?this._alpha=Math.floor(parseFloat(Xe[3])*100):Xe.length===3&&(this._alpha=100),Xe.length>=3){var dt=jw(Xe[0],Xe[1],Xe[2]),Ot=dt.h,Mt=dt.s,Lt=dt.v;C(Ot,Mt,Lt)}}else if(f.indexOf("#")!==-1){var ft=f.replace("#","").trim();if(!/^(?:[0-9a-fA-F]{3}){1,2}|[0-9a-fA-F]{8}$/.test(ft))return;var kn=void 0,hn=void 0,Rn=void 0;ft.length===3?(kn=Mo(ft[0]+ft[0]),hn=Mo(ft[1]+ft[1]),Rn=Mo(ft[2]+ft[2])):(ft.length===6||ft.length===8)&&(kn=Mo(ft.substring(0,2)),hn=Mo(ft.substring(2,4)),Rn=Mo(ft.substring(4,6))),ft.length===8?this._alpha=Math.floor(Mo(ft.substring(6))/255*100):(ft.length===3||ft.length===6)&&(this._alpha=100);var An=jw(kn,hn,Rn),di=An.h,Br=An.s,Hn=An.v;C(di,Br,Hn)}},o.prototype.compare=function(f){return Math.abs(f._hue-this._hue)<2&&Math.abs(f._saturation-this._saturation)<1&&Math.abs(f._value-this._value)<1&&Math.abs(f._alpha-this._alpha)<1},o.prototype.doOnChange=function(){var f=this._hue,_=this._saturation,C=this._value,P=this._alpha,z=this.format;if(this.enableAlpha)switch(z){case"hsl":var ne=Fw(f,_/100,C/100);this.value="hsla("+f+", "+Math.round(ne[1]*100)+"%, "+Math.round(ne[2]*100)+"%, "+P/100+")";break;case"hsv":this.value="hsva("+f+", "+Math.round(_)+"%, "+Math.round(C)+"%, "+P/100+")";break;default:var Se=qf(f,_,C),Re=Se.r,Ue=Se.g,Xe=Se.b;this.value="rgba("+Re+", "+Ue+", "+Xe+", "+P/100+")"}else switch(z){case"hsl":var dt=Fw(f,_/100,C/100);this.value="hsl("+f+", "+Math.round(dt[1]*100)+"%, "+Math.round(dt[2]*100)+"%)";break;case"hsv":this.value="hsv("+f+", "+Math.round(_)+"%, "+Math.round(C)+"%)";break;case"rgb":var Ot=qf(f,_,C),Mt=Ot.r,Lt=Ot.g,ft=Ot.b;this.value="rgb("+Mt+", "+Lt+", "+ft+")";break;default:this.value=o9(qf(f,_,C))}},o}(),vc=u9,Uw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":o.doDestroy}},[f("div",{directives:[{name:"show",rawName:"v-show",value:o.showPopper,expression:"showPopper"}],staticClass:"el-color-dropdown"},[f("div",{staticClass:"el-color-dropdown__main-wrapper"},[f("hue-slider",{ref:"hue",staticStyle:{float:"right"},attrs:{color:o.color,vertical:""}}),f("sv-panel",{ref:"sl",attrs:{color:o.color}})],1),o.showAlpha?f("alpha-slider",{ref:"alpha",attrs:{color:o.color}}):o._e(),o.predefine?f("predefine",{attrs:{color:o.color,colors:o.predefine}}):o._e(),f("div",{staticClass:"el-color-dropdown__btns"},[f("span",{staticClass:"el-color-dropdown__value"},[f("el-input",{attrs:{"validate-event":!1,size:"mini"},on:{blur:o.handleConfirm},nativeOn:{keyup:function(_){return!("button"in _)&&o._k(_.keyCode,"enter",13,_.key,"Enter")?null:o.handleConfirm(_)}},model:{value:o.customInput,callback:function(_){o.customInput=_},expression:"customInput"}})],1),f("el-button",{staticClass:"el-color-dropdown__link-btn",attrs:{size:"mini",type:"text"},on:{click:function(_){o.$emit("clear")}}},[o._v(` + `},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return this.type==="dashboard"?.75:1},strokeDashoffset:function(){var l=-1*this.perimeter*(1-this.rate)/2;return l+"px"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var l=void 0;if(this.color)l=this.getCurrentColor(this.percentage);else switch(this.status){case"success":l="#13ce66";break;case"exception":l="#ff4949";break;case"warning":l="#e6a23c";break;default:l="#20a0ff"}return l},iconClass:function(){return this.status==="warning"?"el-icon-warning":this.type==="line"?this.status==="success"?"el-icon-circle-check":"el-icon-circle-close":this.status==="success"?"el-icon-check":"el-icon-close"},progressTextSize:function(){return this.type==="line"?12+this.strokeWidth*.4:this.width*.111111+2},content:function(){return typeof this.format=="function"?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(l){return typeof this.color=="function"?this.color(l):typeof this.color=="string"?this.color:this.getLevelColor(l)},getLevelColor:function(l){for(var f=this.getColorArray().sort(function(C,P){return C.percentage-P.percentage}),_=0;_l)return f[_].color;return f[f.length-1].color},getColorArray:function(){var l=this.color,f=100/l.length;return l.map(function(_,C){return typeof _=="string"?{color:_,percentage:(C+1)*f}:_})}}},i9=r9,Z2=h(i9,J2,n9,!1,null,null,null);Z2.options.__file="packages/progress/src/progress.vue";var Bf=Z2.exports;Bf.install=function(o){o.component(Bf.name,Bf)};var Q2=Bf,q2=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("span",{staticClass:"el-spinner"},[f("svg",{staticClass:"el-spinner-inner",style:{width:o.radius/2+"px",height:o.radius/2+"px"},attrs:{viewBox:"0 0 50 50"}},[f("circle",{staticClass:"path",attrs:{cx:"25",cy:"25",r:"20",fill:"none",stroke:o.strokeColor,"stroke-width":o.strokeWidth}})])])},a9=[];q2._withStripped=!0;var s9={name:"ElSpinner",props:{type:String,radius:{type:Number,default:100},strokeWidth:{type:Number,default:5},strokeColor:{type:String,default:"#efefef"}}},o9=s9,ew=h(o9,q2,a9,!1,null,null,null);ew.options.__file="packages/spinner/src/spinner.vue";var Ff=ew.exports;Ff.install=function(o){o.component(Ff.name,Ff)};var tw=Ff,nw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("transition",{attrs:{name:"el-message-fade"},on:{"after-leave":o.handleAfterLeave}},[f("div",{directives:[{name:"show",rawName:"v-show",value:o.visible,expression:"visible"}],class:["el-message",o.type&&!o.iconClass?"el-message--"+o.type:"",o.center?"is-center":"",o.showClose?"is-closable":"",o.customClass],style:o.positionStyle,attrs:{role:"alert"},on:{mouseenter:o.clearTimer,mouseleave:o.startTimer}},[o.iconClass?f("i",{class:o.iconClass}):f("i",{class:o.typeClass}),o._t("default",[o.dangerouslyUseHTMLString?f("p",{staticClass:"el-message__content",domProps:{innerHTML:o._s(o.message)}}):f("p",{staticClass:"el-message__content"},[o._v(o._s(o.message))])]),o.showClose?f("i",{staticClass:"el-message__closeBtn el-icon-close",on:{click:o.close}}):o._e()],2)])},l9=[];nw._withStripped=!0;var u9={success:"success",info:"info",warning:"warning",error:"error"},c9={data:function(){return{visible:!1,message:"",duration:3e3,type:"info",iconClass:"",customClass:"",onClose:null,showClose:!1,closed:!1,verticalOffset:20,timer:null,dangerouslyUseHTMLString:!1,center:!1}},computed:{typeClass:function(){return this.type&&!this.iconClass?"el-message__icon el-icon-"+u9[this.type]:""},positionStyle:function(){return{top:this.verticalOffset+"px"}}},watch:{closed:function(l){l&&(this.visible=!1)}},methods:{handleAfterLeave:function(){this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},close:function(){this.closed=!0,typeof this.onClose=="function"&&this.onClose(this)},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var l=this;this.duration>0&&(this.timer=setTimeout(function(){l.closed||l.close()},this.duration))},keydown:function(l){l.keyCode===27&&(this.closed||this.close())}},mounted:function(){this.startTimer(),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},d9=c9,rw=h(d9,nw,l9,!1,null,null,null);rw.options.__file="packages/message/src/main.vue";var f9=rw.exports,ea=i(16),h9=Object.assign||function(o){for(var l=1;lca.length-1))for(var z=_;z=0;o--)ca[o].close()};var m9=zl,iw=m9,aw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-badge"},[o._t("default"),f("transition",{attrs:{name:"el-zoom-in-center"}},[f("sup",{directives:[{name:"show",rawName:"v-show",value:!o.hidden&&(o.content||o.content===0||o.isDot),expression:"!hidden && (content || content === 0 || isDot)"}],staticClass:"el-badge__content",class:[o.type?"el-badge__content--"+o.type:null,{"is-fixed":o.$slots.default,"is-dot":o.isDot}],domProps:{textContent:o._s(o.content)}})])],2)},_9=[];aw._withStripped=!0;var g9={name:"ElBadge",props:{value:[String,Number],max:Number,isDot:Boolean,hidden:Boolean,type:{type:String,validator:function(l){return["primary","success","warning","info","danger"].indexOf(l)>-1}}},computed:{content:function(){if(!this.isDot){var l=this.value,f=this.max;return typeof l=="number"&&typeof f=="number"&&f0&&l-1this.value,_=this.allowHalf&&this.pointerAtLeftHalf&&l-.5<=this.currentValue&&l>this.currentValue;return f||_},getIconStyle:function(l){var f=this.rateDisabled?this.disabledVoidColor:this.voidColor;return{color:l<=this.currentValue?this.activeColor:f}},selectValue:function(l){this.rateDisabled||(this.allowHalf&&this.pointerAtLeftHalf?(this.$emit("input",this.currentValue),this.$emit("change",this.currentValue)):(this.$emit("input",l),this.$emit("change",l)))},handleKey:function(l){if(!this.rateDisabled){var f=this.currentValue,_=l.keyCode;_===38||_===39?(this.allowHalf?f+=.5:f+=1,l.stopPropagation(),l.preventDefault()):(_===37||_===40)&&(this.allowHalf?f-=.5:f-=1,l.stopPropagation(),l.preventDefault()),f=f<0?0:f,f=f>this.max?this.max:f,this.$emit("input",f),this.$emit("change",f)}},setCurrentValue:function(l,f){if(!this.rateDisabled){if(this.allowHalf){var _=f.target;Object(Le.hasClass)(_,"el-rate__item")&&(_=_.querySelector(".el-rate__icon")),Object(Le.hasClass)(_,"el-rate__decimal")&&(_=_.parentNode),this.pointerAtLeftHalf=f.offsetX*2<=_.clientWidth,this.currentValue=this.pointerAtLeftHalf?l-.5:l}else this.currentValue=l;this.hoverIndex=l}},resetCurrentValue:function(){this.rateDisabled||(this.allowHalf&&(this.pointerAtLeftHalf=this.value!==Math.floor(this.value)),this.currentValue=this.value,this.hoverIndex=-1)}},created:function(){this.value||this.$emit("input",0)}},k9=S9,fw=h(k9,dw,x9,!1,null,null,null);fw.options.__file="packages/rate/src/main.vue";var Uf=fw.exports;Uf.install=function(o){o.component(Uf.name,Uf)};var hw=Uf,pw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-steps",class:[!o.simple&&"el-steps--"+o.direction,o.simple&&"el-steps--simple"]},[o._t("default")],2)},E9=[];pw._withStripped=!0;var D9={name:"ElSteps",mixins:[Y.a],props:{space:[Number,String],active:Number,direction:{type:String,default:"horizontal"},alignCenter:Boolean,simple:Boolean,finishStatus:{type:String,default:"finish"},processStatus:{type:String,default:"process"}},data:function(){return{steps:[],stepOffset:0}},methods:{getMigratingConfig:function(){return{props:{center:"center is removed."}}}},watch:{active:function(l,f){this.$emit("change",l,f)},steps:function(l){l.forEach(function(f,_){f.index=_})}}},O9=D9,vw=h(O9,pw,E9,!1,null,null,null);vw.options.__file="packages/steps/src/steps.vue";var Vf=vw.exports;Vf.install=function(o){o.component(Vf.name,Vf)};var mw=Vf,_w=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-step",class:[!o.isSimple&&"is-"+o.$parent.direction,o.isSimple&&"is-simple",o.isLast&&!o.space&&!o.isCenter&&"is-flex",o.isCenter&&!o.isVertical&&!o.isSimple&&"is-center"],style:o.style},[f("div",{staticClass:"el-step__head",class:"is-"+o.currentStatus},[f("div",{staticClass:"el-step__line",style:o.isLast?"":{marginRight:o.$parent.stepOffset+"px"}},[f("i",{staticClass:"el-step__line-inner",style:o.lineStyle})]),f("div",{staticClass:"el-step__icon",class:"is-"+(o.icon?"icon":"text")},[o.currentStatus!=="success"&&o.currentStatus!=="error"?o._t("icon",[o.icon?f("i",{staticClass:"el-step__icon-inner",class:[o.icon]}):o._e(),!o.icon&&!o.isSimple?f("div",{staticClass:"el-step__icon-inner"},[o._v(o._s(o.index+1))]):o._e()]):f("i",{staticClass:"el-step__icon-inner is-status",class:["el-icon-"+(o.currentStatus==="success"?"check":"close")]})],2)]),f("div",{staticClass:"el-step__main"},[f("div",{ref:"title",staticClass:"el-step__title",class:["is-"+o.currentStatus]},[o._t("title",[o._v(o._s(o.title))])],2),o.isSimple?f("div",{staticClass:"el-step__arrow"}):f("div",{staticClass:"el-step__description",class:["is-"+o.currentStatus]},[o._t("description",[o._v(o._s(o.description))])],2)])])},P9=[];_w._withStripped=!0;var T9={name:"ElStep",props:{title:String,icon:String,description:String,status:String},data:function(){return{index:-1,lineStyle:{},internalStatus:""}},beforeCreate:function(){this.$parent.steps.push(this)},beforeDestroy:function(){var l=this.$parent.steps,f=l.indexOf(this);f>=0&&l.splice(f,1)},computed:{currentStatus:function(){return this.status||this.internalStatus},prevStatus:function(){var l=this.$parent.steps[this.index-1];return l?l.currentStatus:"wait"},isCenter:function(){return this.$parent.alignCenter},isVertical:function(){return this.$parent.direction==="vertical"},isSimple:function(){return this.$parent.simple},isLast:function(){var l=this.$parent;return l.steps[l.steps.length-1]===this},stepsCount:function(){return this.$parent.steps.length},space:function(){var l=this.isSimple,f=this.$parent.space;return l?"":f},style:function(){var l={},f=this.$parent,_=f.steps.length,C=typeof this.space=="number"?this.space+"px":this.space?this.space:100/(_-(this.isCenter?0:1))+"%";return l.flexBasis=C,this.isVertical||(this.isLast?l.maxWidth=100/this.stepsCount+"%":l.marginRight=-this.$parent.stepOffset+"px"),l}},methods:{updateStatus:function(l){var f=this.$parent.$children[this.index-1];l>this.index?this.internalStatus=this.$parent.finishStatus:l===this.index&&this.prevStatus!=="error"?this.internalStatus=this.$parent.processStatus:this.internalStatus="wait",f&&f.calcProgress(this.internalStatus)},calcProgress:function(l){var f=100,_={};_.transitionDelay=150*this.index+"ms",l===this.$parent.processStatus?f=(this.currentStatus!=="error",0):l==="wait"&&(f=0,_.transitionDelay=-150*this.index+"ms"),_.borderWidth=f&&!this.isSimple?"1px":0,this.$parent.direction==="vertical"?_.height=f+"%":_.width=f+"%",this.lineStyle=_}},mounted:function(){var l=this,f=this.$watch("index",function(_){l.$watch("$parent.active",l.updateStatus,{immediate:!0}),l.$watch("$parent.processStatus",function(){var C=l.$parent.active;l.updateStatus(C)},{immediate:!0}),f()})}},A9=T9,gw=h(A9,_w,P9,!1,null,null,null);gw.options.__file="packages/steps/src/step.vue";var Wf=gw.exports;Wf.install=function(o){o.component(Wf.name,Wf)};var yw=Wf,bw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{class:o.carouselClasses,on:{mouseenter:function(_){return _.stopPropagation(),o.handleMouseEnter(_)},mouseleave:function(_){return _.stopPropagation(),o.handleMouseLeave(_)}}},[f("div",{staticClass:"el-carousel__container",style:{height:o.height}},[o.arrowDisplay?f("transition",{attrs:{name:"carousel-arrow-left"}},[f("button",{directives:[{name:"show",rawName:"v-show",value:(o.arrow==="always"||o.hover)&&(o.loop||o.activeIndex>0),expression:"(arrow === 'always' || hover) && (loop || activeIndex > 0)"}],staticClass:"el-carousel__arrow el-carousel__arrow--left",attrs:{type:"button"},on:{mouseenter:function(_){o.handleButtonEnter("left")},mouseleave:o.handleButtonLeave,click:function(_){_.stopPropagation(),o.throttledArrowClick(o.activeIndex-1)}}},[f("i",{staticClass:"el-icon-arrow-left"})])]):o._e(),o.arrowDisplay?f("transition",{attrs:{name:"carousel-arrow-right"}},[f("button",{directives:[{name:"show",rawName:"v-show",value:(o.arrow==="always"||o.hover)&&(o.loop||o.activeIndex0})},carouselClasses:function(){var l=["el-carousel","el-carousel--"+this.direction];return this.type==="card"&&l.push("el-carousel--card"),l},indicatorsClasses:function(){var l=["el-carousel__indicators","el-carousel__indicators--"+this.direction];return this.hasLabel&&l.push("el-carousel__indicators--labels"),(this.indicatorPosition==="outside"||this.type==="card")&&l.push("el-carousel__indicators--outside"),l}},watch:{items:function(l){l.length>0&&this.setActiveItem(this.initialIndex)},activeIndex:function(l,f){this.resetItemPosition(f),f>-1&&this.$emit("change",l,f)},autoplay:function(l){l?this.startTimer():this.pauseTimer()},loop:function(){this.setActiveItem(this.activeIndex)},interval:function(){this.pauseTimer(),this.startTimer()}},methods:{handleMouseEnter:function(){this.hover=!0,this.pauseTimer()},handleMouseLeave:function(){this.hover=!1,this.startTimer()},itemInStage:function(l,f){var _=this.items.length;return f===_-1&&l.inStage&&this.items[0].active||l.inStage&&this.items[f+1]&&this.items[f+1].active?"left":f===0&&l.inStage&&this.items[_-1].active||l.inStage&&this.items[f-1]&&this.items[f-1].active?"right":!1},handleButtonEnter:function(l){var f=this;this.direction!=="vertical"&&this.items.forEach(function(_,C){l===f.itemInStage(_,C)&&(_.hover=!0)})},handleButtonLeave:function(){this.direction!=="vertical"&&this.items.forEach(function(l){l.hover=!1})},updateItems:function(){this.items=this.$children.filter(function(l){return l.$options.name==="ElCarouselItem"})},resetItemPosition:function(l){var f=this;this.items.forEach(function(_,C){_.translateItem(C,f.activeIndex,l)})},playSlides:function(){this.activeIndex0&&(l=this.items.indexOf(f[0]))}if(l=Number(l),isNaN(l)||l!==Math.floor(l)){console.warn("[Element Warn][Carousel]index must be an integer.");return}var _=this.items.length,C=this.activeIndex;l<0?this.activeIndex=this.loop?_-1:0:l>=_?this.activeIndex=this.loop?0:_-1:this.activeIndex=l,C===this.activeIndex&&this.resetItemPosition(C),this.resetTimer()},prev:function(){this.setActiveItem(this.activeIndex-1)},next:function(){this.setActiveItem(this.activeIndex+1)},handleIndicatorClick:function(l){this.activeIndex=l},handleIndicatorHover:function(l){this.trigger==="hover"&&l!==this.activeIndex&&(this.activeIndex=l)}},created:function(){var l=this;this.throttledArrowClick=Kf()(300,!0,function(f){l.setActiveItem(f)}),this.throttledIndicatorHover=Kf()(300,function(f){l.handleIndicatorHover(f)})},mounted:function(){var l=this;this.updateItems(),this.$nextTick(function(){Object(Ci.addResizeListener)(l.$el,l.resetItemPosition),l.initialIndex=0&&(l.activeIndex=l.initialIndex),l.startTimer()})},beforeDestroy:function(){this.$el&&Object(Ci.removeResizeListener)(this.$el,this.resetItemPosition),this.pauseTimer()}},R9=$9,ww=h(R9,bw,M9,!1,null,null,null);ww.options.__file="packages/carousel/src/main.vue";var Hf=ww.exports;Hf.install=function(o){o.component(Hf.name,Hf)};var Cw=Hf,L9={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function N9(o){var l=o.move,f=o.size,_=o.bar,C={},P="translate"+_.axis+"("+l+"%)";return C[_.size]=f,C.transform=P,C.msTransform=P,C.webkitTransform=P,C}var h_={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return L9[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(l){var f=this.size,_=this.move,C=this.bar;return l("div",{class:["el-scrollbar__bar","is-"+C.key],on:{mousedown:this.clickTrackHandler}},[l("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:N9({size:f,move:_,bar:C})})])},methods:{clickThumbHandler:function(l){l.ctrlKey||l.button===2||(this.startDrag(l),this[this.bar.axis]=l.currentTarget[this.bar.offset]-(l[this.bar.client]-l.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(l){var f=Math.abs(l.target.getBoundingClientRect()[this.bar.direction]-l[this.bar.client]),_=this.$refs.thumb[this.bar.offset]/2,C=(f-_)*100/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=C*this.wrap[this.bar.scrollSize]/100},startDrag:function(l){l.stopImmediatePropagation(),this.cursorDown=!0,Object(Le.on)(document,"mousemove",this.mouseMoveDocumentHandler),Object(Le.on)(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(l){if(this.cursorDown!==!1){var f=this[this.bar.axis];if(!!f){var _=(this.$el.getBoundingClientRect()[this.bar.direction]-l[this.bar.client])*-1,C=this.$refs.thumb[this.bar.offset]-f,P=(_-C)*100/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=P*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(l){this.cursorDown=!1,this[this.bar.axis]=0,Object(Le.off)(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(Le.off)(document,"mouseup",this.mouseUpDocumentHandler)}},Gf={name:"ElScrollbar",components:{Bar:h_},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(l){var f=Bb()(),_=this.wrapStyle;if(f){var C="-"+f+"px",P="margin-bottom: "+C+"; margin-right: "+C+";";Array.isArray(this.wrapStyle)?(_=Object(S.toObject)(this.wrapStyle),_.marginRight=_.marginBottom=C):typeof this.wrapStyle=="string"?_+=P:_=P}var z=l(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),ne=l("div",{ref:"wrap",style:_,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",f?"":"el-scrollbar__wrap--hidden-default"]},[[z]]),Se=void 0;return this.native?Se=[l("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:_},[[z]])]:Se=[ne,l(h_,{attrs:{move:this.moveX,size:this.sizeWidth}}),l(h_,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],l("div",{class:"el-scrollbar"},Se)},methods:{handleScroll:function(){var l=this.wrap;this.moveY=l.scrollTop*100/l.clientHeight,this.moveX=l.scrollLeft*100/l.clientWidth},update:function(){var l=void 0,f=void 0,_=this.wrap;!_||(l=_.clientHeight*100/_.scrollHeight,f=_.clientWidth*100/_.scrollWidth,this.sizeHeight=l<100?l+"%":"",this.sizeWidth=f<100?f+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(Ci.addResizeListener)(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(Ci.removeResizeListener)(this.$refs.resize,this.update)}};Gf.install=function(o){o.component(Gf.name,Gf)};var xw=Gf,Sw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{directives:[{name:"show",rawName:"v-show",value:o.ready,expression:"ready"}],staticClass:"el-carousel__item",class:{"is-active":o.active,"el-carousel__item--card":o.$parent.type==="card","is-in-stage":o.inStage,"is-hover":o.hover,"is-animating":o.animating},style:o.itemStyle,on:{click:o.handleItemClick}},[o.$parent.type==="card"?f("div",{directives:[{name:"show",rawName:"v-show",value:!o.active,expression:"!active"}],staticClass:"el-carousel__mask"}):o._e(),o._t("default")],2)},B9=[];Sw._withStripped=!0;var Yf=.83,F9={name:"ElCarouselItem",props:{name:String,label:{type:[String,Number],default:""}},data:function(){return{hover:!1,translate:0,scale:1,active:!1,ready:!1,inStage:!1,animating:!1}},methods:{processIndex:function(l,f,_){return f===0&&l===_-1?-1:f===_-1&&l===0?_:l=_/2?_+1:l>f+1&&l-f>=_/2?-2:l},calcCardTranslate:function(l,f){var _=this.$parent.$el.offsetWidth;return this.inStage?_*((2-Yf)*(l-f)+1)/4:l2&&this.$parent.loop&&(l=this.processIndex(l,f,z)),C==="card")P==="vertical"&&console.warn("[Element Warn][Carousel]vertical direction is not supported in card mode"),this.inStage=Math.round(Math.abs(l-f))<=1,this.active=l===f,this.translate=this.calcCardTranslate(l,f),this.scale=this.active?1:Yf;else{this.active=l===f;var ne=P==="vertical";this.translate=this.calcTranslate(l,f,ne),this.scale=1}this.ready=!0},handleItemClick:function(){var l=this.$parent;if(l&&l.type==="card"){var f=l.items.indexOf(this);l.setActiveItem(f)}}},computed:{parentDirection:function(){return this.$parent.direction},itemStyle:function(){var l=this.parentDirection==="vertical"?"translateY":"translateX",f=l+"("+this.translate+"px) scale("+this.scale+")",_={transform:f};return Object(S.autoprefixer)(_)}},created:function(){this.$parent&&this.$parent.updateItems()},destroyed:function(){this.$parent&&this.$parent.updateItems()}},z9=F9,kw=h(z9,Sw,B9,!1,null,null,null);kw.options.__file="packages/carousel/src/item.vue";var Xf=kw.exports;Xf.install=function(o){o.component(Xf.name,Xf)};var Ew=Xf,Dw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-collapse",attrs:{role:"tablist","aria-multiselectable":"true"}},[o._t("default")],2)},j9=[];Dw._withStripped=!0;var U9={name:"ElCollapse",componentName:"ElCollapse",props:{accordion:Boolean,value:{type:[Array,String,Number],default:function(){return[]}}},data:function(){return{activeNames:[].concat(this.value)}},provide:function(){return{collapse:this}},watch:{value:function(l){this.activeNames=[].concat(l)}},methods:{setActiveNames:function(l){l=[].concat(l);var f=this.accordion?l[0]:l;this.activeNames=l,this.$emit("input",f),this.$emit("change",f)},handleItemClick:function(l){if(this.accordion)this.setActiveNames((this.activeNames[0]||this.activeNames[0]===0)&&this.activeNames[0]===l.name?"":l.name);else{var f=this.activeNames.slice(0),_=f.indexOf(l.name);_>-1?f.splice(_,1):f.push(l.name),this.setActiveNames(f)}}},created:function(){this.$on("item-click",this.handleItemClick)}},V9=U9,Ow=h(V9,Dw,j9,!1,null,null,null);Ow.options.__file="packages/collapse/src/collapse.vue";var Jf=Ow.exports;Jf.install=function(o){o.component(Jf.name,Jf)};var Pw=Jf,Tw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-collapse-item",class:{"is-active":o.isActive,"is-disabled":o.disabled}},[f("div",{attrs:{role:"tab","aria-expanded":o.isActive,"aria-controls":"el-collapse-content-"+o.id,"aria-describedby":"el-collapse-content-"+o.id}},[f("div",{staticClass:"el-collapse-item__header",class:{focusing:o.focusing,"is-active":o.isActive},attrs:{role:"button",id:"el-collapse-head-"+o.id,tabindex:o.disabled?void 0:0},on:{click:o.handleHeaderClick,keyup:function(_){return!("button"in _)&&o._k(_.keyCode,"space",32,_.key,[" ","Spacebar"])&&o._k(_.keyCode,"enter",13,_.key,"Enter")?null:(_.stopPropagation(),o.handleEnterClick(_))},focus:o.handleFocus,blur:function(_){o.focusing=!1}}},[o._t("title",[o._v(o._s(o.title))]),f("i",{staticClass:"el-collapse-item__arrow el-icon-arrow-right",class:{"is-active":o.isActive}})],2)]),f("el-collapse-transition",[f("div",{directives:[{name:"show",rawName:"v-show",value:o.isActive,expression:"isActive"}],staticClass:"el-collapse-item__wrap",attrs:{role:"tabpanel","aria-hidden":!o.isActive,"aria-labelledby":"el-collapse-head-"+o.id,id:"el-collapse-content-"+o.id}},[f("div",{staticClass:"el-collapse-item__content"},[o._t("default")],2)])])],1)},W9=[];Tw._withStripped=!0;var K9={name:"ElCollapseItem",componentName:"ElCollapseItem",mixins:[W.a],components:{ElCollapseTransition:en.a},data:function(){return{contentWrapStyle:{height:"auto",display:"block"},contentHeight:0,focusing:!1,isClick:!1,id:Object(S.generateId)()}},inject:["collapse"],props:{title:String,name:{type:[String,Number],default:function(){return this._uid}},disabled:Boolean},computed:{isActive:function(){return this.collapse.activeNames.indexOf(this.name)>-1}},methods:{handleFocus:function(){var l=this;setTimeout(function(){l.isClick?l.isClick=!1:l.focusing=!0},50)},handleHeaderClick:function(){this.disabled||(this.dispatch("ElCollapse","item-click",this),this.focusing=!1,this.isClick=!0)},handleEnterClick:function(){this.dispatch("ElCollapse","item-click",this)}}},H9=K9,Aw=h(H9,Tw,W9,!1,null,null,null);Aw.options.__file="packages/collapse/src/collapse-item.vue";var Zf=Aw.exports;Zf.install=function(o){o.component(Zf.name,Zf)};var Mw=Zf,Iw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:function(){return o.toggleDropDownVisible(!1)},expression:"() => toggleDropDownVisible(false)"}],ref:"reference",class:["el-cascader",o.realSize&&"el-cascader--"+o.realSize,{"is-disabled":o.isDisabled}],on:{mouseenter:function(_){o.inputHover=!0},mouseleave:function(_){o.inputHover=!1},click:function(){return o.toggleDropDownVisible(o.readonly?void 0:!0)},keydown:o.handleKeyDown}},[f("el-input",{ref:"input",class:{"is-focus":o.dropDownVisible},attrs:{size:o.realSize,placeholder:o.placeholder,readonly:o.readonly,disabled:o.isDisabled,"validate-event":!1},on:{focus:o.handleFocus,blur:o.handleBlur,input:o.handleInput},model:{value:o.multiple?o.presentText:o.inputValue,callback:function(_){o.multiple?o.presentText:o.inputValue=_},expression:"multiple ? presentText : inputValue"}},[f("template",{slot:"suffix"},[o.clearBtnVisible?f("i",{key:"clear",staticClass:"el-input__icon el-icon-circle-close",on:{click:function(_){return _.stopPropagation(),o.handleClear(_)}}}):f("i",{key:"arrow-down",class:["el-input__icon","el-icon-arrow-down",o.dropDownVisible&&"is-reverse"],on:{click:function(_){_.stopPropagation(),o.toggleDropDownVisible()}}})])],2),o.multiple?f("div",{staticClass:"el-cascader__tags"},[o._l(o.presentTags,function(_){return f("el-tag",{key:_.key,attrs:{type:"info",size:o.tagSize,hit:_.hitState,closable:_.closable,"disable-transitions":""},on:{close:function(C){o.deleteTag(_)}}},[f("span",[o._v(o._s(_.text))])])}),o.filterable&&!o.isDisabled?f("input",{directives:[{name:"model",rawName:"v-model.trim",value:o.inputValue,expression:"inputValue",modifiers:{trim:!0}}],staticClass:"el-cascader__search-input",attrs:{type:"text",placeholder:o.presentTags.length?"":o.placeholder},domProps:{value:o.inputValue},on:{input:[function(_){_.target.composing||(o.inputValue=_.target.value.trim())},function(_){return o.handleInput(o.inputValue,_)}],click:function(_){_.stopPropagation(),o.toggleDropDownVisible(!0)},keydown:function(_){return!("button"in _)&&o._k(_.keyCode,"delete",[8,46],_.key,["Backspace","Delete","Del"])?null:o.handleDelete(_)},blur:function(_){o.$forceUpdate()}}}):o._e()],2):o._e(),f("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":o.handleDropdownLeave}},[f("div",{directives:[{name:"show",rawName:"v-show",value:o.dropDownVisible,expression:"dropDownVisible"}],ref:"popper",class:["el-popper","el-cascader__dropdown",o.popperClass]},[f("el-cascader-panel",{directives:[{name:"show",rawName:"v-show",value:!o.filtering,expression:"!filtering"}],ref:"panel",attrs:{options:o.options,props:o.config,border:!1,"render-label":o.$scopedSlots.default},on:{"expand-change":o.handleExpandChange,close:function(_){o.toggleDropDownVisible(!1)}},model:{value:o.checkedValue,callback:function(_){o.checkedValue=_},expression:"checkedValue"}}),o.filterable?f("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:o.filtering,expression:"filtering"}],ref:"suggestionPanel",staticClass:"el-cascader__suggestion-panel",attrs:{tag:"ul","view-class":"el-cascader__suggestion-list"},nativeOn:{keydown:function(_){return o.handleSuggestionKeyDown(_)}}},[o.suggestions.length?o._l(o.suggestions,function(_,C){return f("li",{key:_.uid,class:["el-cascader__suggestion-item",_.checked&&"is-checked"],attrs:{tabindex:-1},on:{click:function(P){o.handleSuggestionClick(C)}}},[f("span",[o._v(o._s(_.text))]),_.checked?f("i",{staticClass:"el-icon-check"}):o._e()])}):o._t("empty",[f("li",{staticClass:"el-cascader__empty-text"},[o._v(o._s(o.t("el.cascader.noMatch")))])])],2):o._e()],1)])],1)},G9=[];Iw._withStripped=!0;var Y9=i(42),X9=i.n(Y9),J9=i(34),$w=i.n(J9),ps=$w.a.keys,Rw={expandTrigger:{newProp:"expandTrigger",type:String},changeOnSelect:{newProp:"checkStrictly",type:Boolean},hoverThreshold:{newProp:"hoverThreshold",type:Number}},Z9={props:{placement:{type:String,default:"bottom-start"},appendToBody:I.a.props.appendToBody,visibleArrow:{type:Boolean,default:!0},arrowOffset:I.a.props.arrowOffset,offset:I.a.props.offset,boundariesPadding:I.a.props.boundariesPadding,popperOptions:I.a.props.popperOptions,transformOrigin:I.a.props.transformOrigin},methods:I.a.methods,data:I.a.data,beforeDestroy:I.a.beforeDestroy},Q9={medium:36,small:32,mini:28},q9={name:"ElCascader",directives:{Clickoutside:De.a},mixins:[Z9,W.a,O.a,Y.a],inject:{elForm:{default:""},elFormItem:{default:""}},components:{ElInput:b.a,ElTag:Eo.a,ElScrollbar:q.a,ElCascaderPanel:X9.a},props:{value:{},options:Array,props:Object,size:String,placeholder:{type:String,default:function(){return Object(hs.t)("el.cascader.placeholder")}},disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:Function,separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,debounce:{type:Number,default:300},beforeFilter:{type:Function,default:function(){return function(){}}},popperClass:String},data:function(){return{dropDownVisible:!1,checkedValue:this.value,inputHover:!1,inputValue:null,presentText:null,presentTags:[],checkedNodes:[],filtering:!1,suggestions:[],inputInitialHeight:0,pressDeleteCount:0}},computed:{realSize:function(){var l=(this.elFormItem||{}).elFormItemSize;return this.size||l||(this.$ELEMENT||{}).size},tagSize:function(){return["small","mini"].indexOf(this.realSize)>-1?"mini":"small"},isDisabled:function(){return this.disabled||(this.elForm||{}).disabled},config:function(){var l=this.props||{},f=this.$attrs;return Object.keys(Rw).forEach(function(_){var C=Rw[_],P=C.newProp,z=C.type,ne=f[_]||f[Object(S.kebabCase)(_)];Object(qn.isDef)(_)&&!Object(qn.isDef)(l[P])&&(z===Boolean&&ne===""&&(ne=!0),l[P]=ne)}),l},multiple:function(){return this.config.multiple},leafOnly:function(){return!this.config.checkStrictly},readonly:function(){return!this.filterable||this.multiple},clearBtnVisible:function(){return!this.clearable||this.isDisabled||this.filtering||!this.inputHover?!1:this.multiple?!!this.checkedNodes.filter(function(l){return!l.isDisabled}).length:!!this.presentText},panel:function(){return this.$refs.panel}},watch:{disabled:function(){this.computePresentContent()},value:function(l){Object(S.isEqual)(l,this.checkedValue)||(this.checkedValue=l,this.computePresentContent())},checkedValue:function(l){var f=this.value,_=this.dropDownVisible,C=this.config,P=C.checkStrictly,z=C.multiple;(!Object(S.isEqual)(l,f)||Object(ea.isUndefined)(f))&&(this.computePresentContent(),!z&&!P&&_&&this.toggleDropDownVisible(!1),this.$emit("input",l),this.$emit("change",l),this.dispatch("ElFormItem","el.form.change",[l]))},options:{handler:function(){this.$nextTick(this.computePresentContent)},deep:!0},presentText:function(l){this.inputValue=l},presentTags:function(l,f){this.multiple&&(l.length||f.length)&&this.$nextTick(this.updateStyle)},filtering:function(l){this.$nextTick(this.updatePopper)}},mounted:function(){var l=this,f=this.$refs.input;f&&f.$el&&(this.inputInitialHeight=f.$el.offsetHeight||Q9[this.realSize]||40),this.isEmptyValue(this.value)||this.computePresentContent(),this.filterHandler=be()(this.debounce,function(){var _=l.inputValue;if(!_){l.filtering=!1;return}var C=l.beforeFilter(_);C&&C.then?C.then(l.getSuggestions):C!==!1?l.getSuggestions():l.filtering=!1}),Object(Ci.addResizeListener)(this.$el,this.updateStyle)},beforeDestroy:function(){Object(Ci.removeResizeListener)(this.$el,this.updateStyle)},methods:{getMigratingConfig:function(){return{props:{"expand-trigger":"expand-trigger is removed, use `props.expandTrigger` instead.","change-on-select":"change-on-select is removed, use `props.checkStrictly` instead.","hover-threshold":"hover-threshold is removed, use `props.hoverThreshold` instead"},events:{"active-item-change":"active-item-change is renamed to expand-change"}}},toggleDropDownVisible:function(l){var f=this;if(!this.isDisabled){var _=this.dropDownVisible,C=this.$refs.input;l=Object(qn.isDef)(l)?l:!_,l!==_&&(this.dropDownVisible=l,l&&this.$nextTick(function(){f.updatePopper(),f.panel.scrollIntoView()}),C.$refs.input.setAttribute("aria-expanded",l),this.$emit("visible-change",l))}},handleDropdownLeave:function(){this.filtering=!1,this.inputValue=this.presentText,this.doDestroy()},handleKeyDown:function(l){switch(l.keyCode){case ps.enter:this.toggleDropDownVisible();break;case ps.down:this.toggleDropDownVisible(!0),this.focusFirstNode(),l.preventDefault();break;case ps.esc:case ps.tab:this.toggleDropDownVisible(!1);break}},handleFocus:function(l){this.$emit("focus",l)},handleBlur:function(l){this.$emit("blur",l)},handleInput:function(l,f){!this.dropDownVisible&&this.toggleDropDownVisible(!0),!(f&&f.isComposing)&&(l?this.filterHandler():this.filtering=!1)},handleClear:function(){this.presentText="",this.panel.clearCheckedNodes()},handleExpandChange:function(l){this.$nextTick(this.updatePopper.bind(this)),this.$emit("expand-change",l),this.$emit("active-item-change",l)},focusFirstNode:function(){var l=this;this.$nextTick(function(){var f=l.filtering,_=l.$refs,C=_.popper,P=_.suggestionPanel,z=null;if(f&&P)z=P.$el.querySelector(".el-cascader__suggestion-item");else{var ne=C.querySelector(".el-cascader-menu");z=ne.querySelector('.el-cascader-node[tabindex="-1"]')}z&&(z.focus(),!f&&z.click())})},computePresentContent:function(){var l=this;this.$nextTick(function(){l.config.multiple?(l.computePresentTags(),l.presentText=l.presentTags.length?" ":null):l.computePresentText()})},isEmptyValue:function(l){var f=this.multiple,_=this.panel.config.emitPath;return f||_?Object(S.isEmpty)(l):!1},computePresentText:function(){var l=this.checkedValue,f=this.config;if(!this.isEmptyValue(l)){var _=this.panel.getNodeByValue(l);if(_&&(f.checkStrictly||_.isLeaf)){this.presentText=_.getText(this.showAllLevels,this.separator);return}}this.presentText=null},computePresentTags:function(){var l=this.isDisabled,f=this.leafOnly,_=this.showAllLevels,C=this.separator,P=this.collapseTags,z=this.getCheckedNodes(f),ne=[],Se=function(Ot){return{node:Ot,key:Ot.uid,text:Ot.getText(_,C),hitState:!1,closable:!l&&!Ot.isDisabled}};if(z.length){var Re=z[0],Ue=z.slice(1),Xe=Ue.length;ne.push(Se(Re)),Xe&&(P?ne.push({key:-1,text:"+ "+Xe,closable:!1}):Ue.forEach(function(dt){return ne.push(Se(dt))}))}this.checkedNodes=z,this.presentTags=ne},getSuggestions:function(){var l=this,f=this.filterMethod;Object(ea.isFunction)(f)||(f=function(P,z){return P.text.includes(z)});var _=this.panel.getFlattedNodes(this.leafOnly).filter(function(C){return C.isDisabled?!1:(C.text=C.getText(l.showAllLevels,l.separator)||"",f(C,l.inputValue))});this.multiple?this.presentTags.forEach(function(C){C.hitState=!1}):_.forEach(function(C){C.checked=Object(S.isEqual)(l.checkedValue,C.getValueByOption())}),this.filtering=!0,this.suggestions=_,this.$nextTick(this.updatePopper)},handleSuggestionKeyDown:function(l){var f=l.keyCode,_=l.target;switch(f){case ps.enter:_.click();break;case ps.up:var C=_.previousElementSibling;C&&C.focus();break;case ps.down:var P=_.nextElementSibling;P&&P.focus();break;case ps.esc:case ps.tab:this.toggleDropDownVisible(!1);break}},handleDelete:function(){var l=this.inputValue,f=this.pressDeleteCount,_=this.presentTags,C=_.length-1,P=_[C];this.pressDeleteCount=l?0:f+1,!!P&&this.pressDeleteCount&&(P.hitState?this.deleteTag(P):P.hitState=!0)},handleSuggestionClick:function(l){var f=this.multiple,_=this.suggestions[l];if(f){var C=_.checked;_.doCheck(!C),this.panel.calculateMultiCheckedValue()}else this.checkedValue=_.getValueByOption(),this.toggleDropDownVisible(!1)},deleteTag:function(l){var f=this.checkedValue,_=l.node.getValueByOption(),C=f.find(function(P){return Object(S.isEqual)(P,_)});this.checkedValue=f.filter(function(P){return!Object(S.isEqual)(P,_)}),this.$emit("remove-tag",C)},updateStyle:function(){var l=this.$el,f=this.inputInitialHeight;if(!(this.$isServer||!l)){var _=this.$refs.suggestionPanel,C=l.querySelector(".el-input__inner");if(!!C){var P=l.querySelector(".el-cascader__tags"),z=null;if(_&&(z=_.$el)){var ne=z.querySelector(".el-cascader__suggestion-list");ne.style.minWidth=C.offsetWidth+"px"}if(P){var Se=Math.round(P.getBoundingClientRect().height),Re=Math.max(Se+6,f)+"px";C.style.height=Re,this.dropDownVisible&&this.updatePopper()}}}},getCheckedNodes:function(l){return this.panel.getCheckedNodes(l)}}},eA=q9,Lw=h(eA,Iw,G9,!1,null,null,null);Lw.options.__file="packages/cascader/src/cascader.vue";var Qf=Lw.exports;Qf.install=function(o){o.component(Qf.name,Qf)};var Nw=Qf,Bw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:o.hide,expression:"hide"}],class:["el-color-picker",o.colorDisabled?"is-disabled":"",o.colorSize?"el-color-picker--"+o.colorSize:""]},[o.colorDisabled?f("div",{staticClass:"el-color-picker__mask"}):o._e(),f("div",{staticClass:"el-color-picker__trigger",on:{click:o.handleTrigger}},[f("span",{staticClass:"el-color-picker__color",class:{"is-alpha":o.showAlpha}},[f("span",{staticClass:"el-color-picker__color-inner",style:{backgroundColor:o.displayedColor}}),!o.value&&!o.showPanelColor?f("span",{staticClass:"el-color-picker__empty el-icon-close"}):o._e()]),f("span",{directives:[{name:"show",rawName:"v-show",value:o.value||o.showPanelColor,expression:"value || showPanelColor"}],staticClass:"el-color-picker__icon el-icon-arrow-down"})]),f("picker-dropdown",{ref:"dropdown",class:["el-color-picker__panel",o.popperClass||""],attrs:{color:o.color,"show-alpha":o.showAlpha,predefine:o.predefine},on:{pick:o.confirmValue,clear:o.clearValue},model:{value:o.showPicker,callback:function(_){o.showPicker=_},expression:"showPicker"}})],1)},tA=[];Bw._withStripped=!0;var nA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o};function rA(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}var Fw=function(l,f,_){return[l,f*_/((l=(2-f)*_)<1?l:2-l)||0,l/2]},iA=function(l){return typeof l=="string"&&l.indexOf(".")!==-1&&parseFloat(l)===1},aA=function(l){return typeof l=="string"&&l.indexOf("%")!==-1},jl=function(l,f){iA(l)&&(l="100%");var _=aA(l);return l=Math.min(f,Math.max(0,parseFloat(l))),_&&(l=parseInt(l*f,10)/100),Math.abs(l-f)<1e-6?1:l%f/parseFloat(f)},zw={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},sA=function(l){var f=l.r,_=l.g,C=l.b,P=function(ne){ne=Math.min(Math.round(ne),255);var Se=Math.floor(ne/16),Re=ne%16;return""+(zw[Se]||Se)+(zw[Re]||Re)};return isNaN(f)||isNaN(_)||isNaN(C)?"":"#"+P(f)+P(_)+P(C)},p_={A:10,B:11,C:12,D:13,E:14,F:15},Mo=function(l){return l.length===2?(p_[l[0].toUpperCase()]||+l[0])*16+(p_[l[1].toUpperCase()]||+l[1]):p_[l[1].toUpperCase()]||+l[1]},oA=function(l,f,_){f=f/100,_=_/100;var C=f,P=Math.max(_,.01),z=void 0,ne=void 0;return _*=2,f*=_<=1?_:2-_,C*=P<=1?P:2-P,ne=(_+f)/2,z=_===0?2*C/(P+C):2*f/(_+f),{h:l,s:z*100,v:ne*100}},jw=function(l,f,_){l=jl(l,255),f=jl(f,255),_=jl(_,255);var C=Math.max(l,f,_),P=Math.min(l,f,_),z=void 0,ne=void 0,Se=C,Re=C-P;if(ne=C===0?0:Re/C,C===P)z=0;else{switch(C){case l:z=(f-_)/Re+(f<_?6:0);break;case f:z=(_-l)/Re+2;break;case _:z=(l-f)/Re+4;break}z/=6}return{h:z*360,s:ne*100,v:Se*100}},qf=function(l,f,_){l=jl(l,360)*6,f=jl(f,100),_=jl(_,100);var C=Math.floor(l),P=l-C,z=_*(1-f),ne=_*(1-P*f),Se=_*(1-(1-P)*f),Re=C%6,Ue=[_,ne,z,z,Se,_][Re],Xe=[Se,_,_,ne,z,z][Re],dt=[z,z,Se,_,_,ne][Re];return{r:Math.round(Ue*255),g:Math.round(Xe*255),b:Math.round(dt*255)}},lA=function(){function o(l){rA(this,o),this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="",l=l||{};for(var f in l)l.hasOwnProperty(f)&&(this[f]=l[f]);this.doOnChange()}return o.prototype.set=function(f,_){if(arguments.length===1&&(typeof f=="undefined"?"undefined":nA(f))==="object"){for(var C in f)f.hasOwnProperty(C)&&this.set(C,f[C]);return}this["_"+f]=_,this.doOnChange()},o.prototype.get=function(f){return this["_"+f]},o.prototype.toRgb=function(){return qf(this._hue,this._saturation,this._value)},o.prototype.fromString=function(f){var _=this;if(!f){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}var C=function(yr,fi,Fr){_._hue=Math.max(0,Math.min(360,yr)),_._saturation=Math.max(0,Math.min(100,fi)),_._value=Math.max(0,Math.min(100,Fr)),_.doOnChange()};if(f.indexOf("hsl")!==-1){var P=f.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(function(or){return or!==""}).map(function(or,yr){return yr>2?parseFloat(or):parseInt(or,10)});if(P.length===4?this._alpha=Math.floor(parseFloat(P[3])*100):P.length===3&&(this._alpha=100),P.length>=3){var z=oA(P[0],P[1],P[2]),ne=z.h,Se=z.s,Re=z.v;C(ne,Se,Re)}}else if(f.indexOf("hsv")!==-1){var Ue=f.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(function(or){return or!==""}).map(function(or,yr){return yr>2?parseFloat(or):parseInt(or,10)});Ue.length===4?this._alpha=Math.floor(parseFloat(Ue[3])*100):Ue.length===3&&(this._alpha=100),Ue.length>=3&&C(Ue[0],Ue[1],Ue[2])}else if(f.indexOf("rgb")!==-1){var Xe=f.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(function(or){return or!==""}).map(function(or,yr){return yr>2?parseFloat(or):parseInt(or,10)});if(Xe.length===4?this._alpha=Math.floor(parseFloat(Xe[3])*100):Xe.length===3&&(this._alpha=100),Xe.length>=3){var dt=jw(Xe[0],Xe[1],Xe[2]),Ot=dt.h,Mt=dt.s,Lt=dt.v;C(Ot,Mt,Lt)}}else if(f.indexOf("#")!==-1){var ft=f.replace("#","").trim();if(!/^(?:[0-9a-fA-F]{3}){1,2}|[0-9a-fA-F]{8}$/.test(ft))return;var kn=void 0,hn=void 0,Rn=void 0;ft.length===3?(kn=Mo(ft[0]+ft[0]),hn=Mo(ft[1]+ft[1]),Rn=Mo(ft[2]+ft[2])):(ft.length===6||ft.length===8)&&(kn=Mo(ft.substring(0,2)),hn=Mo(ft.substring(2,4)),Rn=Mo(ft.substring(4,6))),ft.length===8?this._alpha=Math.floor(Mo(ft.substring(6))/255*100):(ft.length===3||ft.length===6)&&(this._alpha=100);var An=jw(kn,hn,Rn),di=An.h,Br=An.s,Hn=An.v;C(di,Br,Hn)}},o.prototype.compare=function(f){return Math.abs(f._hue-this._hue)<2&&Math.abs(f._saturation-this._saturation)<1&&Math.abs(f._value-this._value)<1&&Math.abs(f._alpha-this._alpha)<1},o.prototype.doOnChange=function(){var f=this._hue,_=this._saturation,C=this._value,P=this._alpha,z=this.format;if(this.enableAlpha)switch(z){case"hsl":var ne=Fw(f,_/100,C/100);this.value="hsla("+f+", "+Math.round(ne[1]*100)+"%, "+Math.round(ne[2]*100)+"%, "+P/100+")";break;case"hsv":this.value="hsva("+f+", "+Math.round(_)+"%, "+Math.round(C)+"%, "+P/100+")";break;default:var Se=qf(f,_,C),Re=Se.r,Ue=Se.g,Xe=Se.b;this.value="rgba("+Re+", "+Ue+", "+Xe+", "+P/100+")"}else switch(z){case"hsl":var dt=Fw(f,_/100,C/100);this.value="hsl("+f+", "+Math.round(dt[1]*100)+"%, "+Math.round(dt[2]*100)+"%)";break;case"hsv":this.value="hsv("+f+", "+Math.round(_)+"%, "+Math.round(C)+"%)";break;case"rgb":var Ot=qf(f,_,C),Mt=Ot.r,Lt=Ot.g,ft=Ot.b;this.value="rgb("+Mt+", "+Lt+", "+ft+")";break;default:this.value=sA(qf(f,_,C))}},o}(),vc=lA,Uw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":o.doDestroy}},[f("div",{directives:[{name:"show",rawName:"v-show",value:o.showPopper,expression:"showPopper"}],staticClass:"el-color-dropdown"},[f("div",{staticClass:"el-color-dropdown__main-wrapper"},[f("hue-slider",{ref:"hue",staticStyle:{float:"right"},attrs:{color:o.color,vertical:""}}),f("sv-panel",{ref:"sl",attrs:{color:o.color}})],1),o.showAlpha?f("alpha-slider",{ref:"alpha",attrs:{color:o.color}}):o._e(),o.predefine?f("predefine",{attrs:{color:o.color,colors:o.predefine}}):o._e(),f("div",{staticClass:"el-color-dropdown__btns"},[f("span",{staticClass:"el-color-dropdown__value"},[f("el-input",{attrs:{"validate-event":!1,size:"mini"},on:{blur:o.handleConfirm},nativeOn:{keyup:function(_){return!("button"in _)&&o._k(_.keyCode,"enter",13,_.key,"Enter")?null:o.handleConfirm(_)}},model:{value:o.customInput,callback:function(_){o.customInput=_},expression:"customInput"}})],1),f("el-button",{staticClass:"el-color-dropdown__link-btn",attrs:{size:"mini",type:"text"},on:{click:function(_){o.$emit("clear")}}},[o._v(` `+o._s(o.t("el.colorpicker.clear"))+` `)]),f("el-button",{staticClass:"el-color-dropdown__btn",attrs:{plain:"",size:"mini"},on:{click:o.confirmValue}},[o._v(` `+o._s(o.t("el.colorpicker.confirm"))+` - `)])],1)],1)])},c9=[];Uw._withStripped=!0;var Vw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-color-svpanel",style:{backgroundColor:o.background}},[f("div",{staticClass:"el-color-svpanel__white"}),f("div",{staticClass:"el-color-svpanel__black"}),f("div",{staticClass:"el-color-svpanel__cursor",style:{top:o.cursorTop+"px",left:o.cursorLeft+"px"}},[f("div")])])},d9=[];Vw._withStripped=!0;var v_=!1,mc=function(o,l){if(!Bt.a.prototype.$isServer){var f=function(P){l.drag&&l.drag(P)},_=function C(P){document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",C),document.onselectstart=null,document.ondragstart=null,v_=!1,l.end&&l.end(P)};o.addEventListener("mousedown",function(C){v_||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},document.addEventListener("mousemove",f),document.addEventListener("mouseup",_),v_=!0,l.start&&l.start(C))})}},f9={name:"el-sl-panel",props:{color:{required:!0}},computed:{colorValue:function(){var l=this.color.get("hue"),f=this.color.get("value");return{hue:l,value:f}}},watch:{colorValue:function(){this.update()}},methods:{update:function(){var l=this.color.get("saturation"),f=this.color.get("value"),_=this.$el,C=_.clientWidth,P=_.clientHeight;this.cursorLeft=l*C/100,this.cursorTop=(100-f)*P/100,this.background="hsl("+this.color.get("hue")+", 100%, 50%)"},handleDrag:function(l){var f=this.$el,_=f.getBoundingClientRect(),C=l.clientX-_.left,P=l.clientY-_.top;C=Math.max(0,C),C=Math.min(C,_.width),P=Math.max(0,P),P=Math.min(P,_.height),this.cursorLeft=C,this.cursorTop=P,this.color.set({saturation:C/_.width*100,value:100-P/_.height*100})}},mounted:function(){var l=this;mc(this.$el,{drag:function(_){l.handleDrag(_)},end:function(_){l.handleDrag(_)}}),this.update()},data:function(){return{cursorTop:0,cursorLeft:0,background:"hsl(0, 100%, 50%)"}}},h9=f9,Ww=h(h9,Vw,d9,!1,null,null,null);Ww.options.__file="packages/color-picker/src/components/sv-panel.vue";var p9=Ww.exports,Kw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-color-hue-slider",class:{"is-vertical":o.vertical}},[f("div",{ref:"bar",staticClass:"el-color-hue-slider__bar",on:{click:o.handleClick}}),f("div",{ref:"thumb",staticClass:"el-color-hue-slider__thumb",style:{left:o.thumbLeft+"px",top:o.thumbTop+"px"}})])},v9=[];Kw._withStripped=!0;var m9={name:"el-color-hue-slider",props:{color:{required:!0},vertical:Boolean},data:function(){return{thumbLeft:0,thumbTop:0}},computed:{hueValue:function(){var l=this.color.get("hue");return l}},watch:{hueValue:function(){this.update()}},methods:{handleClick:function(l){var f=this.$refs.thumb,_=l.target;_!==f&&this.handleDrag(l)},handleDrag:function(l){var f=this.$el.getBoundingClientRect(),_=this.$refs.thumb,C=void 0;if(this.vertical){var z=l.clientY-f.top;z=Math.min(z,f.height-_.offsetHeight/2),z=Math.max(_.offsetHeight/2,z),C=Math.round((z-_.offsetHeight/2)/(f.height-_.offsetHeight)*360)}else{var P=l.clientX-f.left;P=Math.min(P,f.width-_.offsetWidth/2),P=Math.max(_.offsetWidth/2,P),C=Math.round((P-_.offsetWidth/2)/(f.width-_.offsetWidth)*360)}this.color.set("hue",C)},getThumbLeft:function(){if(this.vertical)return 0;var l=this.$el,f=this.color.get("hue");if(!l)return 0;var _=this.$refs.thumb;return Math.round(f*(l.offsetWidth-_.offsetWidth/2)/360)},getThumbTop:function(){if(!this.vertical)return 0;var l=this.$el,f=this.color.get("hue");if(!l)return 0;var _=this.$refs.thumb;return Math.round(f*(l.offsetHeight-_.offsetHeight/2)/360)},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop()}},mounted:function(){var l=this,f=this.$refs,_=f.bar,C=f.thumb,P={drag:function(ne){l.handleDrag(ne)},end:function(ne){l.handleDrag(ne)}};mc(_,P),mc(C,P),this.update()}},_9=m9,Hw=h(_9,Kw,v9,!1,null,null,null);Hw.options.__file="packages/color-picker/src/components/hue-slider.vue";var g9=Hw.exports,Gw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-color-alpha-slider",class:{"is-vertical":o.vertical}},[f("div",{ref:"bar",staticClass:"el-color-alpha-slider__bar",style:{background:o.background},on:{click:o.handleClick}}),f("div",{ref:"thumb",staticClass:"el-color-alpha-slider__thumb",style:{left:o.thumbLeft+"px",top:o.thumbTop+"px"}})])},y9=[];Gw._withStripped=!0;var b9={name:"el-color-alpha-slider",props:{color:{required:!0},vertical:Boolean},watch:{"color._alpha":function(){this.update()},"color.value":function(){this.update()}},methods:{handleClick:function(l){var f=this.$refs.thumb,_=l.target;_!==f&&this.handleDrag(l)},handleDrag:function(l){var f=this.$el.getBoundingClientRect(),_=this.$refs.thumb;if(this.vertical){var P=l.clientY-f.top;P=Math.max(_.offsetHeight/2,P),P=Math.min(P,f.height-_.offsetHeight/2),this.color.set("alpha",Math.round((P-_.offsetHeight/2)/(f.height-_.offsetHeight)*100))}else{var C=l.clientX-f.left;C=Math.max(_.offsetWidth/2,C),C=Math.min(C,f.width-_.offsetWidth/2),this.color.set("alpha",Math.round((C-_.offsetWidth/2)/(f.width-_.offsetWidth)*100))}},getThumbLeft:function(){if(this.vertical)return 0;var l=this.$el,f=this.color._alpha;if(!l)return 0;var _=this.$refs.thumb;return Math.round(f*(l.offsetWidth-_.offsetWidth/2)/100)},getThumbTop:function(){if(!this.vertical)return 0;var l=this.$el,f=this.color._alpha;if(!l)return 0;var _=this.$refs.thumb;return Math.round(f*(l.offsetHeight-_.offsetHeight/2)/100)},getBackground:function(){if(this.color&&this.color.value){var l=this.color.toRgb(),f=l.r,_=l.g,C=l.b;return"linear-gradient(to right, rgba("+f+", "+_+", "+C+", 0) 0%, rgba("+f+", "+_+", "+C+", 1) 100%)"}return null},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop(),this.background=this.getBackground()}},data:function(){return{thumbLeft:0,thumbTop:0,background:null}},mounted:function(){var l=this,f=this.$refs,_=f.bar,C=f.thumb,P={drag:function(ne){l.handleDrag(ne)},end:function(ne){l.handleDrag(ne)}};mc(_,P),mc(C,P),this.update()}},w9=b9,Yw=h(w9,Gw,y9,!1,null,null,null);Yw.options.__file="packages/color-picker/src/components/alpha-slider.vue";var C9=Yw.exports,Xw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-color-predefine"},[f("div",{staticClass:"el-color-predefine__colors"},o._l(o.rgbaColors,function(_,C){return f("div",{key:o.colors[C],staticClass:"el-color-predefine__color-selector",class:{selected:_.selected,"is-alpha":_._alpha<100},on:{click:function(P){o.handleSelect(C)}}},[f("div",{style:{"background-color":_.value}})])}),0)])},x9=[];Xw._withStripped=!0;var S9={props:{colors:{type:Array,required:!0},color:{required:!0}},data:function(){return{rgbaColors:this.parseColors(this.colors,this.color)}},methods:{handleSelect:function(l){this.color.fromString(this.colors[l])},parseColors:function(l,f){return l.map(function(_){var C=new vc;return C.enableAlpha=!0,C.format="rgba",C.fromString(_),C.selected=C.value===f.value,C})}},watch:{"$parent.currentColor":function(l){var f=new vc;f.fromString(l),this.rgbaColors.forEach(function(_){_.selected=f.compare(_)})},colors:function(l){this.rgbaColors=this.parseColors(l,this.color)},color:function(l){this.rgbaColors=this.parseColors(this.colors,l)}}},k9=S9,Jw=h(k9,Xw,x9,!1,null,null,null);Jw.options.__file="packages/color-picker/src/components/predefine.vue";var E9=Jw.exports,D9={name:"el-color-picker-dropdown",mixins:[I.a,O.a],components:{SvPanel:p9,HueSlider:g9,AlphaSlider:C9,ElInput:b.a,ElButton:B.a,Predefine:E9},props:{color:{required:!0},showAlpha:Boolean,predefine:Array},data:function(){return{customInput:""}},computed:{currentColor:function(){var l=this.$parent;return!l.value&&!l.showPanelColor?"":l.color.value}},methods:{confirmValue:function(){this.$emit("pick")},handleConfirm:function(){this.color.fromString(this.customInput)}},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$el},watch:{showPopper:function(l){var f=this;l===!0&&this.$nextTick(function(){var _=f.$refs,C=_.sl,P=_.hue,z=_.alpha;C&&C.update(),P&&P.update(),z&&z.update()})},currentColor:{immediate:!0,handler:function(l){this.customInput=l}}}},O9=D9,Zw=h(O9,Uw,c9,!1,null,null,null);Zw.options.__file="packages/color-picker/src/components/picker-dropdown.vue";var P9=Zw.exports,T9={name:"ElColorPicker",mixins:[W.a],props:{value:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:String,popperClass:String,predefine:Array},inject:{elForm:{default:""},elFormItem:{default:""}},directives:{Clickoutside:De.a},computed:{displayedColor:function(){return!this.value&&!this.showPanelColor?"transparent":this.displayedRgb(this.color,this.showAlpha)},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},colorSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},colorDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(l){l?l&&l!==this.color.value&&this.color.fromString(l):this.showPanelColor=!1},color:{deep:!0,handler:function(){this.showPanelColor=!0}},displayedColor:function(l){if(!!this.showPicker){var f=new vc({enableAlpha:this.showAlpha,format:this.colorFormat});f.fromString(this.value);var _=this.displayedRgb(f,this.showAlpha);l!==_&&this.$emit("active-change",l)}}},methods:{handleTrigger:function(){this.colorDisabled||(this.showPicker=!this.showPicker)},confirmValue:function(){var l=this.color.value;this.$emit("input",l),this.$emit("change",l),this.dispatch("ElFormItem","el.form.change",l),this.showPicker=!1},clearValue:function(){this.$emit("input",null),this.$emit("change",null),this.value!==null&&this.dispatch("ElFormItem","el.form.change",null),this.showPanelColor=!1,this.showPicker=!1,this.resetColor()},hide:function(){this.showPicker=!1,this.resetColor()},resetColor:function(){var l=this;this.$nextTick(function(f){l.value?l.color.fromString(l.value):l.showPanelColor=!1})},displayedRgb:function(l,f){if(!(l instanceof vc))throw Error("color should be instance of Color Class");var _=l.toRgb(),C=_.r,P=_.g,z=_.b;return f?"rgba("+C+", "+P+", "+z+", "+l.get("alpha")/100+")":"rgb("+C+", "+P+", "+z+")"}},mounted:function(){var l=this.value;l&&this.color.fromString(l),this.popperElm=this.$refs.dropdown.$el},data:function(){var l=new vc({enableAlpha:this.showAlpha,format:this.colorFormat});return{color:l,showPicker:!1,showPanelColor:!1}},components:{PickerDropdown:P9}},A9=T9,Qw=h(A9,Bw,n9,!1,null,null,null);Qw.options.__file="packages/color-picker/src/main.vue";var eh=Qw.exports;eh.install=function(o){o.component(eh.name,eh)};var qw=eh,eC=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-transfer"},[f("transfer-panel",o._b({ref:"leftPanel",attrs:{data:o.sourceData,title:o.titles[0]||o.t("el.transfer.titles.0"),"default-checked":o.leftDefaultChecked,placeholder:o.filterPlaceholder||o.t("el.transfer.filterPlaceholder")},on:{"checked-change":o.onSourceCheckedChange}},"transfer-panel",o.$props,!1),[o._t("left-footer")],2),f("div",{staticClass:"el-transfer__buttons"},[f("el-button",{class:["el-transfer__button",o.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:o.rightChecked.length===0},nativeOn:{click:function(_){return o.addToLeft(_)}}},[f("i",{staticClass:"el-icon-arrow-left"}),o.buttonTexts[0]!==void 0?f("span",[o._v(o._s(o.buttonTexts[0]))]):o._e()]),f("el-button",{class:["el-transfer__button",o.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:o.leftChecked.length===0},nativeOn:{click:function(_){return o.addToRight(_)}}},[o.buttonTexts[1]!==void 0?f("span",[o._v(o._s(o.buttonTexts[1]))]):o._e(),f("i",{staticClass:"el-icon-arrow-right"})])],1),f("transfer-panel",o._b({ref:"rightPanel",attrs:{data:o.targetData,title:o.titles[1]||o.t("el.transfer.titles.1"),"default-checked":o.rightDefaultChecked,placeholder:o.filterPlaceholder||o.t("el.transfer.filterPlaceholder")},on:{"checked-change":o.onTargetCheckedChange}},"transfer-panel",o.$props,!1),[o._t("right-footer")],2)],1)},M9=[];eC._withStripped=!0;var tC=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-transfer-panel"},[f("p",{staticClass:"el-transfer-panel__header"},[f("el-checkbox",{attrs:{indeterminate:o.isIndeterminate},on:{change:o.handleAllCheckedChange},model:{value:o.allChecked,callback:function(_){o.allChecked=_},expression:"allChecked"}},[o._v(` + `)])],1)],1)])},uA=[];Uw._withStripped=!0;var Vw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-color-svpanel",style:{backgroundColor:o.background}},[f("div",{staticClass:"el-color-svpanel__white"}),f("div",{staticClass:"el-color-svpanel__black"}),f("div",{staticClass:"el-color-svpanel__cursor",style:{top:o.cursorTop+"px",left:o.cursorLeft+"px"}},[f("div")])])},cA=[];Vw._withStripped=!0;var v_=!1,mc=function(o,l){if(!Bt.a.prototype.$isServer){var f=function(P){l.drag&&l.drag(P)},_=function C(P){document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",C),document.onselectstart=null,document.ondragstart=null,v_=!1,l.end&&l.end(P)};o.addEventListener("mousedown",function(C){v_||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},document.addEventListener("mousemove",f),document.addEventListener("mouseup",_),v_=!0,l.start&&l.start(C))})}},dA={name:"el-sl-panel",props:{color:{required:!0}},computed:{colorValue:function(){var l=this.color.get("hue"),f=this.color.get("value");return{hue:l,value:f}}},watch:{colorValue:function(){this.update()}},methods:{update:function(){var l=this.color.get("saturation"),f=this.color.get("value"),_=this.$el,C=_.clientWidth,P=_.clientHeight;this.cursorLeft=l*C/100,this.cursorTop=(100-f)*P/100,this.background="hsl("+this.color.get("hue")+", 100%, 50%)"},handleDrag:function(l){var f=this.$el,_=f.getBoundingClientRect(),C=l.clientX-_.left,P=l.clientY-_.top;C=Math.max(0,C),C=Math.min(C,_.width),P=Math.max(0,P),P=Math.min(P,_.height),this.cursorLeft=C,this.cursorTop=P,this.color.set({saturation:C/_.width*100,value:100-P/_.height*100})}},mounted:function(){var l=this;mc(this.$el,{drag:function(_){l.handleDrag(_)},end:function(_){l.handleDrag(_)}}),this.update()},data:function(){return{cursorTop:0,cursorLeft:0,background:"hsl(0, 100%, 50%)"}}},fA=dA,Ww=h(fA,Vw,cA,!1,null,null,null);Ww.options.__file="packages/color-picker/src/components/sv-panel.vue";var hA=Ww.exports,Kw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-color-hue-slider",class:{"is-vertical":o.vertical}},[f("div",{ref:"bar",staticClass:"el-color-hue-slider__bar",on:{click:o.handleClick}}),f("div",{ref:"thumb",staticClass:"el-color-hue-slider__thumb",style:{left:o.thumbLeft+"px",top:o.thumbTop+"px"}})])},pA=[];Kw._withStripped=!0;var vA={name:"el-color-hue-slider",props:{color:{required:!0},vertical:Boolean},data:function(){return{thumbLeft:0,thumbTop:0}},computed:{hueValue:function(){var l=this.color.get("hue");return l}},watch:{hueValue:function(){this.update()}},methods:{handleClick:function(l){var f=this.$refs.thumb,_=l.target;_!==f&&this.handleDrag(l)},handleDrag:function(l){var f=this.$el.getBoundingClientRect(),_=this.$refs.thumb,C=void 0;if(this.vertical){var z=l.clientY-f.top;z=Math.min(z,f.height-_.offsetHeight/2),z=Math.max(_.offsetHeight/2,z),C=Math.round((z-_.offsetHeight/2)/(f.height-_.offsetHeight)*360)}else{var P=l.clientX-f.left;P=Math.min(P,f.width-_.offsetWidth/2),P=Math.max(_.offsetWidth/2,P),C=Math.round((P-_.offsetWidth/2)/(f.width-_.offsetWidth)*360)}this.color.set("hue",C)},getThumbLeft:function(){if(this.vertical)return 0;var l=this.$el,f=this.color.get("hue");if(!l)return 0;var _=this.$refs.thumb;return Math.round(f*(l.offsetWidth-_.offsetWidth/2)/360)},getThumbTop:function(){if(!this.vertical)return 0;var l=this.$el,f=this.color.get("hue");if(!l)return 0;var _=this.$refs.thumb;return Math.round(f*(l.offsetHeight-_.offsetHeight/2)/360)},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop()}},mounted:function(){var l=this,f=this.$refs,_=f.bar,C=f.thumb,P={drag:function(ne){l.handleDrag(ne)},end:function(ne){l.handleDrag(ne)}};mc(_,P),mc(C,P),this.update()}},mA=vA,Hw=h(mA,Kw,pA,!1,null,null,null);Hw.options.__file="packages/color-picker/src/components/hue-slider.vue";var _A=Hw.exports,Gw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-color-alpha-slider",class:{"is-vertical":o.vertical}},[f("div",{ref:"bar",staticClass:"el-color-alpha-slider__bar",style:{background:o.background},on:{click:o.handleClick}}),f("div",{ref:"thumb",staticClass:"el-color-alpha-slider__thumb",style:{left:o.thumbLeft+"px",top:o.thumbTop+"px"}})])},gA=[];Gw._withStripped=!0;var yA={name:"el-color-alpha-slider",props:{color:{required:!0},vertical:Boolean},watch:{"color._alpha":function(){this.update()},"color.value":function(){this.update()}},methods:{handleClick:function(l){var f=this.$refs.thumb,_=l.target;_!==f&&this.handleDrag(l)},handleDrag:function(l){var f=this.$el.getBoundingClientRect(),_=this.$refs.thumb;if(this.vertical){var P=l.clientY-f.top;P=Math.max(_.offsetHeight/2,P),P=Math.min(P,f.height-_.offsetHeight/2),this.color.set("alpha",Math.round((P-_.offsetHeight/2)/(f.height-_.offsetHeight)*100))}else{var C=l.clientX-f.left;C=Math.max(_.offsetWidth/2,C),C=Math.min(C,f.width-_.offsetWidth/2),this.color.set("alpha",Math.round((C-_.offsetWidth/2)/(f.width-_.offsetWidth)*100))}},getThumbLeft:function(){if(this.vertical)return 0;var l=this.$el,f=this.color._alpha;if(!l)return 0;var _=this.$refs.thumb;return Math.round(f*(l.offsetWidth-_.offsetWidth/2)/100)},getThumbTop:function(){if(!this.vertical)return 0;var l=this.$el,f=this.color._alpha;if(!l)return 0;var _=this.$refs.thumb;return Math.round(f*(l.offsetHeight-_.offsetHeight/2)/100)},getBackground:function(){if(this.color&&this.color.value){var l=this.color.toRgb(),f=l.r,_=l.g,C=l.b;return"linear-gradient(to right, rgba("+f+", "+_+", "+C+", 0) 0%, rgba("+f+", "+_+", "+C+", 1) 100%)"}return null},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop(),this.background=this.getBackground()}},data:function(){return{thumbLeft:0,thumbTop:0,background:null}},mounted:function(){var l=this,f=this.$refs,_=f.bar,C=f.thumb,P={drag:function(ne){l.handleDrag(ne)},end:function(ne){l.handleDrag(ne)}};mc(_,P),mc(C,P),this.update()}},bA=yA,Yw=h(bA,Gw,gA,!1,null,null,null);Yw.options.__file="packages/color-picker/src/components/alpha-slider.vue";var wA=Yw.exports,Xw=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-color-predefine"},[f("div",{staticClass:"el-color-predefine__colors"},o._l(o.rgbaColors,function(_,C){return f("div",{key:o.colors[C],staticClass:"el-color-predefine__color-selector",class:{selected:_.selected,"is-alpha":_._alpha<100},on:{click:function(P){o.handleSelect(C)}}},[f("div",{style:{"background-color":_.value}})])}),0)])},CA=[];Xw._withStripped=!0;var xA={props:{colors:{type:Array,required:!0},color:{required:!0}},data:function(){return{rgbaColors:this.parseColors(this.colors,this.color)}},methods:{handleSelect:function(l){this.color.fromString(this.colors[l])},parseColors:function(l,f){return l.map(function(_){var C=new vc;return C.enableAlpha=!0,C.format="rgba",C.fromString(_),C.selected=C.value===f.value,C})}},watch:{"$parent.currentColor":function(l){var f=new vc;f.fromString(l),this.rgbaColors.forEach(function(_){_.selected=f.compare(_)})},colors:function(l){this.rgbaColors=this.parseColors(l,this.color)},color:function(l){this.rgbaColors=this.parseColors(this.colors,l)}}},SA=xA,Jw=h(SA,Xw,CA,!1,null,null,null);Jw.options.__file="packages/color-picker/src/components/predefine.vue";var kA=Jw.exports,EA={name:"el-color-picker-dropdown",mixins:[I.a,O.a],components:{SvPanel:hA,HueSlider:_A,AlphaSlider:wA,ElInput:b.a,ElButton:B.a,Predefine:kA},props:{color:{required:!0},showAlpha:Boolean,predefine:Array},data:function(){return{customInput:""}},computed:{currentColor:function(){var l=this.$parent;return!l.value&&!l.showPanelColor?"":l.color.value}},methods:{confirmValue:function(){this.$emit("pick")},handleConfirm:function(){this.color.fromString(this.customInput)}},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$el},watch:{showPopper:function(l){var f=this;l===!0&&this.$nextTick(function(){var _=f.$refs,C=_.sl,P=_.hue,z=_.alpha;C&&C.update(),P&&P.update(),z&&z.update()})},currentColor:{immediate:!0,handler:function(l){this.customInput=l}}}},DA=EA,Zw=h(DA,Uw,uA,!1,null,null,null);Zw.options.__file="packages/color-picker/src/components/picker-dropdown.vue";var OA=Zw.exports,PA={name:"ElColorPicker",mixins:[W.a],props:{value:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:String,popperClass:String,predefine:Array},inject:{elForm:{default:""},elFormItem:{default:""}},directives:{Clickoutside:De.a},computed:{displayedColor:function(){return!this.value&&!this.showPanelColor?"transparent":this.displayedRgb(this.color,this.showAlpha)},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},colorSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},colorDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(l){l?l&&l!==this.color.value&&this.color.fromString(l):this.showPanelColor=!1},color:{deep:!0,handler:function(){this.showPanelColor=!0}},displayedColor:function(l){if(!!this.showPicker){var f=new vc({enableAlpha:this.showAlpha,format:this.colorFormat});f.fromString(this.value);var _=this.displayedRgb(f,this.showAlpha);l!==_&&this.$emit("active-change",l)}}},methods:{handleTrigger:function(){this.colorDisabled||(this.showPicker=!this.showPicker)},confirmValue:function(){var l=this.color.value;this.$emit("input",l),this.$emit("change",l),this.dispatch("ElFormItem","el.form.change",l),this.showPicker=!1},clearValue:function(){this.$emit("input",null),this.$emit("change",null),this.value!==null&&this.dispatch("ElFormItem","el.form.change",null),this.showPanelColor=!1,this.showPicker=!1,this.resetColor()},hide:function(){this.showPicker=!1,this.resetColor()},resetColor:function(){var l=this;this.$nextTick(function(f){l.value?l.color.fromString(l.value):l.showPanelColor=!1})},displayedRgb:function(l,f){if(!(l instanceof vc))throw Error("color should be instance of Color Class");var _=l.toRgb(),C=_.r,P=_.g,z=_.b;return f?"rgba("+C+", "+P+", "+z+", "+l.get("alpha")/100+")":"rgb("+C+", "+P+", "+z+")"}},mounted:function(){var l=this.value;l&&this.color.fromString(l),this.popperElm=this.$refs.dropdown.$el},data:function(){var l=new vc({enableAlpha:this.showAlpha,format:this.colorFormat});return{color:l,showPicker:!1,showPanelColor:!1}},components:{PickerDropdown:OA}},TA=PA,Qw=h(TA,Bw,tA,!1,null,null,null);Qw.options.__file="packages/color-picker/src/main.vue";var eh=Qw.exports;eh.install=function(o){o.component(eh.name,eh)};var qw=eh,eC=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-transfer"},[f("transfer-panel",o._b({ref:"leftPanel",attrs:{data:o.sourceData,title:o.titles[0]||o.t("el.transfer.titles.0"),"default-checked":o.leftDefaultChecked,placeholder:o.filterPlaceholder||o.t("el.transfer.filterPlaceholder")},on:{"checked-change":o.onSourceCheckedChange}},"transfer-panel",o.$props,!1),[o._t("left-footer")],2),f("div",{staticClass:"el-transfer__buttons"},[f("el-button",{class:["el-transfer__button",o.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:o.rightChecked.length===0},nativeOn:{click:function(_){return o.addToLeft(_)}}},[f("i",{staticClass:"el-icon-arrow-left"}),o.buttonTexts[0]!==void 0?f("span",[o._v(o._s(o.buttonTexts[0]))]):o._e()]),f("el-button",{class:["el-transfer__button",o.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:o.leftChecked.length===0},nativeOn:{click:function(_){return o.addToRight(_)}}},[o.buttonTexts[1]!==void 0?f("span",[o._v(o._s(o.buttonTexts[1]))]):o._e(),f("i",{staticClass:"el-icon-arrow-right"})])],1),f("transfer-panel",o._b({ref:"rightPanel",attrs:{data:o.targetData,title:o.titles[1]||o.t("el.transfer.titles.1"),"default-checked":o.rightDefaultChecked,placeholder:o.filterPlaceholder||o.t("el.transfer.filterPlaceholder")},on:{"checked-change":o.onTargetCheckedChange}},"transfer-panel",o.$props,!1),[o._t("right-footer")],2)],1)},AA=[];eC._withStripped=!0;var tC=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("div",{staticClass:"el-transfer-panel"},[f("p",{staticClass:"el-transfer-panel__header"},[f("el-checkbox",{attrs:{indeterminate:o.isIndeterminate},on:{change:o.handleAllCheckedChange},model:{value:o.allChecked,callback:function(_){o.allChecked=_},expression:"allChecked"}},[o._v(` `+o._s(o.title)+` - `),f("span",[o._v(o._s(o.checkedSummary))])])],1),f("div",{class:["el-transfer-panel__body",o.hasFooter?"is-with-footer":""]},[o.filterable?f("el-input",{staticClass:"el-transfer-panel__filter",attrs:{size:"small",placeholder:o.placeholder},nativeOn:{mouseenter:function(_){o.inputHover=!0},mouseleave:function(_){o.inputHover=!1}},model:{value:o.query,callback:function(_){o.query=_},expression:"query"}},[f("i",{class:["el-input__icon","el-icon-"+o.inputIcon],attrs:{slot:"prefix"},on:{click:o.clearQuery},slot:"prefix"})]):o._e(),f("el-checkbox-group",{directives:[{name:"show",rawName:"v-show",value:!o.hasNoMatch&&o.data.length>0,expression:"!hasNoMatch && data.length > 0"}],staticClass:"el-transfer-panel__list",class:{"is-filterable":o.filterable},model:{value:o.checked,callback:function(_){o.checked=_},expression:"checked"}},o._l(o.filteredData,function(_){return f("el-checkbox",{key:_[o.keyProp],staticClass:"el-transfer-panel__item",attrs:{label:_[o.keyProp],disabled:_[o.disabledProp]}},[f("option-content",{attrs:{option:_}})],1)}),1),f("p",{directives:[{name:"show",rawName:"v-show",value:o.hasNoMatch,expression:"hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[o._v(o._s(o.t("el.transfer.noMatch")))]),f("p",{directives:[{name:"show",rawName:"v-show",value:o.data.length===0&&!o.hasNoMatch,expression:"data.length === 0 && !hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[o._v(o._s(o.t("el.transfer.noData")))])],1),o.hasFooter?f("p",{staticClass:"el-transfer-panel__footer"},[o._t("default")],2):o._e()])},I9=[];tC._withStripped=!0;var $9={mixins:[O.a],name:"ElTransferPanel",componentName:"ElTransferPanel",components:{ElCheckboxGroup:Vb.a,ElCheckbox:He.a,ElInput:b.a,OptionContent:{props:{option:Object},render:function(l){var f=function P(z){return z.$options.componentName==="ElTransferPanel"?z:z.$parent?P(z.$parent):z},_=f(this),C=_.$parent||_;return _.renderContent?_.renderContent(l,this.option):C.$scopedSlots.default?C.$scopedSlots.default({option:this.option}):l("span",[this.option[_.labelProp]||this.option[_.keyProp]])}}},props:{data:{type:Array,default:function(){return[]}},renderContent:Function,placeholder:String,title:String,filterable:Boolean,format:Object,filterMethod:Function,defaultChecked:Array,props:Object},data:function(){return{checked:[],allChecked:!1,query:"",inputHover:!1,checkChangeByUser:!0}},watch:{checked:function(l,f){if(this.updateAllChecked(),this.checkChangeByUser){var _=l.concat(f).filter(function(C){return l.indexOf(C)===-1||f.indexOf(C)===-1});this.$emit("checked-change",l,_)}else this.$emit("checked-change",l),this.checkChangeByUser=!0},data:function(){var l=this,f=[],_=this.filteredData.map(function(C){return C[l.keyProp]});this.checked.forEach(function(C){_.indexOf(C)>-1&&f.push(C)}),this.checkChangeByUser=!1,this.checked=f},checkableData:function(){this.updateAllChecked()},defaultChecked:{immediate:!0,handler:function(l,f){var _=this;if(!(f&&l.length===f.length&&l.every(function(z){return f.indexOf(z)>-1}))){var C=[],P=this.checkableData.map(function(z){return z[_.keyProp]});l.forEach(function(z){P.indexOf(z)>-1&&C.push(z)}),this.checkChangeByUser=!1,this.checked=C}}}},computed:{filteredData:function(){var l=this;return this.data.filter(function(f){if(typeof l.filterMethod=="function")return l.filterMethod(l.query,f);var _=f[l.labelProp]||f[l.keyProp].toString();return _.toLowerCase().indexOf(l.query.toLowerCase())>-1})},checkableData:function(){var l=this;return this.filteredData.filter(function(f){return!f[l.disabledProp]})},checkedSummary:function(){var l=this.checked.length,f=this.data.length,_=this.format,C=_.noChecked,P=_.hasChecked;return C&&P?l>0?P.replace(/\${checked}/g,l).replace(/\${total}/g,f):C.replace(/\${total}/g,f):l+"/"+f},isIndeterminate:function(){var l=this.checked.length;return l>0&&l0&&this.filteredData.length===0},inputIcon:function(){return this.query.length>0&&this.inputHover?"circle-close":"search"},labelProp:function(){return this.props.label||"label"},keyProp:function(){return this.props.key||"key"},disabledProp:function(){return this.props.disabled||"disabled"},hasFooter:function(){return!!this.$slots.default}},methods:{updateAllChecked:function(){var l=this,f=this.checkableData.map(function(_){return _[l.keyProp]});this.allChecked=f.length>0&&f.every(function(_){return l.checked.indexOf(_)>-1})},handleAllCheckedChange:function(l){var f=this;this.checked=l?this.checkableData.map(function(_){return _[f.keyProp]}):[]},clearQuery:function(){this.inputIcon==="circle-close"&&(this.query="")}}},R9=$9,nC=h(R9,tC,I9,!1,null,null,null);nC.options.__file="packages/transfer/src/transfer-panel.vue";var L9=nC.exports,N9={name:"ElTransfer",mixins:[W.a,O.a,Y.a],components:{TransferPanel:L9,ElButton:B.a},props:{data:{type:Array,default:function(){return[]}},titles:{type:Array,default:function(){return[]}},buttonTexts:{type:Array,default:function(){return[]}},filterPlaceholder:{type:String,default:""},filterMethod:Function,leftDefaultChecked:{type:Array,default:function(){return[]}},rightDefaultChecked:{type:Array,default:function(){return[]}},renderContent:Function,value:{type:Array,default:function(){return[]}},format:{type:Object,default:function(){return{}}},filterable:Boolean,props:{type:Object,default:function(){return{label:"label",key:"key",disabled:"disabled"}}},targetOrder:{type:String,default:"original"}},data:function(){return{leftChecked:[],rightChecked:[]}},computed:{dataObj:function(){var l=this.props.key;return this.data.reduce(function(f,_){return(f[_[l]]=_)&&f},{})},sourceData:function(){var l=this;return this.data.filter(function(f){return l.value.indexOf(f[l.props.key])===-1})},targetData:function(){var l=this;return this.targetOrder==="original"?this.data.filter(function(f){return l.value.indexOf(f[l.props.key])>-1}):this.value.reduce(function(f,_){var C=l.dataObj[_];return C&&f.push(C),f},[])},hasButtonTexts:function(){return this.buttonTexts.length===2}},watch:{value:function(l){this.dispatch("ElFormItem","el.form.change",l)}},methods:{getMigratingConfig:function(){return{props:{"footer-format":"footer-format is renamed to format."}}},onSourceCheckedChange:function(l,f){this.leftChecked=l,f!==void 0&&this.$emit("left-check-change",l,f)},onTargetCheckedChange:function(l,f){this.rightChecked=l,f!==void 0&&this.$emit("right-check-change",l,f)},addToLeft:function(){var l=this.value.slice();this.rightChecked.forEach(function(f){var _=l.indexOf(f);_>-1&&l.splice(_,1)}),this.$emit("input",l),this.$emit("change",l,"left",this.rightChecked)},addToRight:function(){var l=this,f=this.value.slice(),_=[],C=this.props.key;this.data.forEach(function(P){var z=P[C];l.leftChecked.indexOf(z)>-1&&l.value.indexOf(z)===-1&&_.push(z)}),f=this.targetOrder==="unshift"?_.concat(f):f.concat(_),this.$emit("input",f),this.$emit("change",f,"right",this.leftChecked)},clearQuery:function(l){l==="left"?this.$refs.leftPanel.query="":l==="right"&&(this.$refs.rightPanel.query="")}}},B9=N9,rC=h(B9,eC,M9,!1,null,null,null);rC.options.__file="packages/transfer/src/main.vue";var th=rC.exports;th.install=function(o){o.component(th.name,th)};var iC=th,aC=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("section",{staticClass:"el-container",class:{"is-vertical":o.isVertical}},[o._t("default")],2)},F9=[];aC._withStripped=!0;var z9={name:"ElContainer",componentName:"ElContainer",props:{direction:String},computed:{isVertical:function(){return this.direction==="vertical"?!0:this.direction==="horizontal"?!1:this.$slots&&this.$slots.default?this.$slots.default.some(function(l){var f=l.componentOptions&&l.componentOptions.tag;return f==="el-header"||f==="el-footer"}):!1}}},j9=z9,sC=h(j9,aC,F9,!1,null,null,null);sC.options.__file="packages/container/src/main.vue";var nh=sC.exports;nh.install=function(o){o.component(nh.name,nh)};var oC=nh,lC=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("header",{staticClass:"el-header",style:{height:o.height}},[o._t("default")],2)},U9=[];lC._withStripped=!0;var V9={name:"ElHeader",componentName:"ElHeader",props:{height:{type:String,default:"60px"}}},W9=V9,uC=h(W9,lC,U9,!1,null,null,null);uC.options.__file="packages/header/src/main.vue";var rh=uC.exports;rh.install=function(o){o.component(rh.name,rh)};var cC=rh,dC=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("aside",{staticClass:"el-aside",style:{width:o.width}},[o._t("default")],2)},K9=[];dC._withStripped=!0;var H9={name:"ElAside",componentName:"ElAside",props:{width:{type:String,default:"300px"}}},G9=H9,fC=h(G9,dC,K9,!1,null,null,null);fC.options.__file="packages/aside/src/main.vue";var ih=fC.exports;ih.install=function(o){o.component(ih.name,ih)};var hC=ih,pC=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("main",{staticClass:"el-main"},[o._t("default")],2)},Y9=[];pC._withStripped=!0;var X9={name:"ElMain",componentName:"ElMain"},J9=X9,vC=h(J9,pC,Y9,!1,null,null,null);vC.options.__file="packages/main/src/main.vue";var ah=vC.exports;ah.install=function(o){o.component(ah.name,ah)};var mC=ah,_C=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("footer",{staticClass:"el-footer",style:{height:o.height}},[o._t("default")],2)},Z9=[];_C._withStripped=!0;var Q9={name:"ElFooter",componentName:"ElFooter",props:{height:{type:String,default:"60px"}}},q9=Q9,gC=h(q9,_C,Z9,!1,null,null,null);gC.options.__file="packages/footer/src/main.vue";var sh=gC.exports;sh.install=function(o){o.component(sh.name,sh)};var yC=sh,eM={name:"ElTimeline",props:{reverse:{type:Boolean,default:!1}},provide:function(){return{timeline:this}},render:function(){var l=arguments[0],f=this.reverse,_={"el-timeline":!0,"is-reverse":f},C=this.$slots.default||[];return f&&(C=C.reverse()),l("ul",{class:_},[C])}},tM=eM,nM,rM,bC=h(tM,nM,rM,!1,null,null,null);bC.options.__file="packages/timeline/src/main.vue";var oh=bC.exports;oh.install=function(o){o.component(oh.name,oh)};var wC=oh,CC=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("li",{staticClass:"el-timeline-item"},[f("div",{staticClass:"el-timeline-item__tail"}),o.$slots.dot?o._e():f("div",{staticClass:"el-timeline-item__node",class:["el-timeline-item__node--"+(o.size||""),"el-timeline-item__node--"+(o.type||"")],style:{backgroundColor:o.color}},[o.icon?f("i",{staticClass:"el-timeline-item__icon",class:o.icon}):o._e()]),o.$slots.dot?f("div",{staticClass:"el-timeline-item__dot"},[o._t("dot")],2):o._e(),f("div",{staticClass:"el-timeline-item__wrapper"},[!o.hideTimestamp&&o.placement==="top"?f("div",{staticClass:"el-timeline-item__timestamp is-top"},[o._v(` + `),f("span",[o._v(o._s(o.checkedSummary))])])],1),f("div",{class:["el-transfer-panel__body",o.hasFooter?"is-with-footer":""]},[o.filterable?f("el-input",{staticClass:"el-transfer-panel__filter",attrs:{size:"small",placeholder:o.placeholder},nativeOn:{mouseenter:function(_){o.inputHover=!0},mouseleave:function(_){o.inputHover=!1}},model:{value:o.query,callback:function(_){o.query=_},expression:"query"}},[f("i",{class:["el-input__icon","el-icon-"+o.inputIcon],attrs:{slot:"prefix"},on:{click:o.clearQuery},slot:"prefix"})]):o._e(),f("el-checkbox-group",{directives:[{name:"show",rawName:"v-show",value:!o.hasNoMatch&&o.data.length>0,expression:"!hasNoMatch && data.length > 0"}],staticClass:"el-transfer-panel__list",class:{"is-filterable":o.filterable},model:{value:o.checked,callback:function(_){o.checked=_},expression:"checked"}},o._l(o.filteredData,function(_){return f("el-checkbox",{key:_[o.keyProp],staticClass:"el-transfer-panel__item",attrs:{label:_[o.keyProp],disabled:_[o.disabledProp]}},[f("option-content",{attrs:{option:_}})],1)}),1),f("p",{directives:[{name:"show",rawName:"v-show",value:o.hasNoMatch,expression:"hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[o._v(o._s(o.t("el.transfer.noMatch")))]),f("p",{directives:[{name:"show",rawName:"v-show",value:o.data.length===0&&!o.hasNoMatch,expression:"data.length === 0 && !hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[o._v(o._s(o.t("el.transfer.noData")))])],1),o.hasFooter?f("p",{staticClass:"el-transfer-panel__footer"},[o._t("default")],2):o._e()])},MA=[];tC._withStripped=!0;var IA={mixins:[O.a],name:"ElTransferPanel",componentName:"ElTransferPanel",components:{ElCheckboxGroup:Vb.a,ElCheckbox:He.a,ElInput:b.a,OptionContent:{props:{option:Object},render:function(l){var f=function P(z){return z.$options.componentName==="ElTransferPanel"?z:z.$parent?P(z.$parent):z},_=f(this),C=_.$parent||_;return _.renderContent?_.renderContent(l,this.option):C.$scopedSlots.default?C.$scopedSlots.default({option:this.option}):l("span",[this.option[_.labelProp]||this.option[_.keyProp]])}}},props:{data:{type:Array,default:function(){return[]}},renderContent:Function,placeholder:String,title:String,filterable:Boolean,format:Object,filterMethod:Function,defaultChecked:Array,props:Object},data:function(){return{checked:[],allChecked:!1,query:"",inputHover:!1,checkChangeByUser:!0}},watch:{checked:function(l,f){if(this.updateAllChecked(),this.checkChangeByUser){var _=l.concat(f).filter(function(C){return l.indexOf(C)===-1||f.indexOf(C)===-1});this.$emit("checked-change",l,_)}else this.$emit("checked-change",l),this.checkChangeByUser=!0},data:function(){var l=this,f=[],_=this.filteredData.map(function(C){return C[l.keyProp]});this.checked.forEach(function(C){_.indexOf(C)>-1&&f.push(C)}),this.checkChangeByUser=!1,this.checked=f},checkableData:function(){this.updateAllChecked()},defaultChecked:{immediate:!0,handler:function(l,f){var _=this;if(!(f&&l.length===f.length&&l.every(function(z){return f.indexOf(z)>-1}))){var C=[],P=this.checkableData.map(function(z){return z[_.keyProp]});l.forEach(function(z){P.indexOf(z)>-1&&C.push(z)}),this.checkChangeByUser=!1,this.checked=C}}}},computed:{filteredData:function(){var l=this;return this.data.filter(function(f){if(typeof l.filterMethod=="function")return l.filterMethod(l.query,f);var _=f[l.labelProp]||f[l.keyProp].toString();return _.toLowerCase().indexOf(l.query.toLowerCase())>-1})},checkableData:function(){var l=this;return this.filteredData.filter(function(f){return!f[l.disabledProp]})},checkedSummary:function(){var l=this.checked.length,f=this.data.length,_=this.format,C=_.noChecked,P=_.hasChecked;return C&&P?l>0?P.replace(/\${checked}/g,l).replace(/\${total}/g,f):C.replace(/\${total}/g,f):l+"/"+f},isIndeterminate:function(){var l=this.checked.length;return l>0&&l0&&this.filteredData.length===0},inputIcon:function(){return this.query.length>0&&this.inputHover?"circle-close":"search"},labelProp:function(){return this.props.label||"label"},keyProp:function(){return this.props.key||"key"},disabledProp:function(){return this.props.disabled||"disabled"},hasFooter:function(){return!!this.$slots.default}},methods:{updateAllChecked:function(){var l=this,f=this.checkableData.map(function(_){return _[l.keyProp]});this.allChecked=f.length>0&&f.every(function(_){return l.checked.indexOf(_)>-1})},handleAllCheckedChange:function(l){var f=this;this.checked=l?this.checkableData.map(function(_){return _[f.keyProp]}):[]},clearQuery:function(){this.inputIcon==="circle-close"&&(this.query="")}}},RA=IA,nC=h(RA,tC,MA,!1,null,null,null);nC.options.__file="packages/transfer/src/transfer-panel.vue";var LA=nC.exports,NA={name:"ElTransfer",mixins:[W.a,O.a,Y.a],components:{TransferPanel:LA,ElButton:B.a},props:{data:{type:Array,default:function(){return[]}},titles:{type:Array,default:function(){return[]}},buttonTexts:{type:Array,default:function(){return[]}},filterPlaceholder:{type:String,default:""},filterMethod:Function,leftDefaultChecked:{type:Array,default:function(){return[]}},rightDefaultChecked:{type:Array,default:function(){return[]}},renderContent:Function,value:{type:Array,default:function(){return[]}},format:{type:Object,default:function(){return{}}},filterable:Boolean,props:{type:Object,default:function(){return{label:"label",key:"key",disabled:"disabled"}}},targetOrder:{type:String,default:"original"}},data:function(){return{leftChecked:[],rightChecked:[]}},computed:{dataObj:function(){var l=this.props.key;return this.data.reduce(function(f,_){return(f[_[l]]=_)&&f},{})},sourceData:function(){var l=this;return this.data.filter(function(f){return l.value.indexOf(f[l.props.key])===-1})},targetData:function(){var l=this;return this.targetOrder==="original"?this.data.filter(function(f){return l.value.indexOf(f[l.props.key])>-1}):this.value.reduce(function(f,_){var C=l.dataObj[_];return C&&f.push(C),f},[])},hasButtonTexts:function(){return this.buttonTexts.length===2}},watch:{value:function(l){this.dispatch("ElFormItem","el.form.change",l)}},methods:{getMigratingConfig:function(){return{props:{"footer-format":"footer-format is renamed to format."}}},onSourceCheckedChange:function(l,f){this.leftChecked=l,f!==void 0&&this.$emit("left-check-change",l,f)},onTargetCheckedChange:function(l,f){this.rightChecked=l,f!==void 0&&this.$emit("right-check-change",l,f)},addToLeft:function(){var l=this.value.slice();this.rightChecked.forEach(function(f){var _=l.indexOf(f);_>-1&&l.splice(_,1)}),this.$emit("input",l),this.$emit("change",l,"left",this.rightChecked)},addToRight:function(){var l=this,f=this.value.slice(),_=[],C=this.props.key;this.data.forEach(function(P){var z=P[C];l.leftChecked.indexOf(z)>-1&&l.value.indexOf(z)===-1&&_.push(z)}),f=this.targetOrder==="unshift"?_.concat(f):f.concat(_),this.$emit("input",f),this.$emit("change",f,"right",this.leftChecked)},clearQuery:function(l){l==="left"?this.$refs.leftPanel.query="":l==="right"&&(this.$refs.rightPanel.query="")}}},BA=NA,rC=h(BA,eC,AA,!1,null,null,null);rC.options.__file="packages/transfer/src/main.vue";var th=rC.exports;th.install=function(o){o.component(th.name,th)};var iC=th,aC=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("section",{staticClass:"el-container",class:{"is-vertical":o.isVertical}},[o._t("default")],2)},FA=[];aC._withStripped=!0;var zA={name:"ElContainer",componentName:"ElContainer",props:{direction:String},computed:{isVertical:function(){return this.direction==="vertical"?!0:this.direction==="horizontal"?!1:this.$slots&&this.$slots.default?this.$slots.default.some(function(l){var f=l.componentOptions&&l.componentOptions.tag;return f==="el-header"||f==="el-footer"}):!1}}},jA=zA,sC=h(jA,aC,FA,!1,null,null,null);sC.options.__file="packages/container/src/main.vue";var nh=sC.exports;nh.install=function(o){o.component(nh.name,nh)};var oC=nh,lC=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("header",{staticClass:"el-header",style:{height:o.height}},[o._t("default")],2)},UA=[];lC._withStripped=!0;var VA={name:"ElHeader",componentName:"ElHeader",props:{height:{type:String,default:"60px"}}},WA=VA,uC=h(WA,lC,UA,!1,null,null,null);uC.options.__file="packages/header/src/main.vue";var rh=uC.exports;rh.install=function(o){o.component(rh.name,rh)};var cC=rh,dC=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("aside",{staticClass:"el-aside",style:{width:o.width}},[o._t("default")],2)},KA=[];dC._withStripped=!0;var HA={name:"ElAside",componentName:"ElAside",props:{width:{type:String,default:"300px"}}},GA=HA,fC=h(GA,dC,KA,!1,null,null,null);fC.options.__file="packages/aside/src/main.vue";var ih=fC.exports;ih.install=function(o){o.component(ih.name,ih)};var hC=ih,pC=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("main",{staticClass:"el-main"},[o._t("default")],2)},YA=[];pC._withStripped=!0;var XA={name:"ElMain",componentName:"ElMain"},JA=XA,vC=h(JA,pC,YA,!1,null,null,null);vC.options.__file="packages/main/src/main.vue";var ah=vC.exports;ah.install=function(o){o.component(ah.name,ah)};var mC=ah,_C=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("footer",{staticClass:"el-footer",style:{height:o.height}},[o._t("default")],2)},ZA=[];_C._withStripped=!0;var QA={name:"ElFooter",componentName:"ElFooter",props:{height:{type:String,default:"60px"}}},qA=QA,gC=h(qA,_C,ZA,!1,null,null,null);gC.options.__file="packages/footer/src/main.vue";var sh=gC.exports;sh.install=function(o){o.component(sh.name,sh)};var yC=sh,eM={name:"ElTimeline",props:{reverse:{type:Boolean,default:!1}},provide:function(){return{timeline:this}},render:function(){var l=arguments[0],f=this.reverse,_={"el-timeline":!0,"is-reverse":f},C=this.$slots.default||[];return f&&(C=C.reverse()),l("ul",{class:_},[C])}},tM=eM,nM,rM,bC=h(tM,nM,rM,!1,null,null,null);bC.options.__file="packages/timeline/src/main.vue";var oh=bC.exports;oh.install=function(o){o.component(oh.name,oh)};var wC=oh,CC=function(){var o=this,l=o.$createElement,f=o._self._c||l;return f("li",{staticClass:"el-timeline-item"},[f("div",{staticClass:"el-timeline-item__tail"}),o.$slots.dot?o._e():f("div",{staticClass:"el-timeline-item__node",class:["el-timeline-item__node--"+(o.size||""),"el-timeline-item__node--"+(o.type||"")],style:{backgroundColor:o.color}},[o.icon?f("i",{staticClass:"el-timeline-item__icon",class:o.icon}):o._e()]),o.$slots.dot?f("div",{staticClass:"el-timeline-item__dot"},[o._t("dot")],2):o._e(),f("div",{staticClass:"el-timeline-item__wrapper"},[!o.hideTimestamp&&o.placement==="top"?f("div",{staticClass:"el-timeline-item__timestamp is-top"},[o._v(` `+o._s(o.timestamp)+` `)]):o._e(),f("div",{staticClass:"el-timeline-item__content"},[o._t("default")],2),!o.hideTimestamp&&o.placement==="bottom"?f("div",{staticClass:"el-timeline-item__timestamp is-bottom"},[o._v(` `+o._s(o.timestamp)+` diff --git a/public/js/build/approve.6b185d9b.js b/public/js/build/approve.6639cc9f.js similarity index 96% rename from public/js/build/approve.6b185d9b.js rename to public/js/build/approve.6639cc9f.js index d6986aa50..eb2011cab 100644 --- a/public/js/build/approve.6b185d9b.js +++ b/public/js/build/approve.6639cc9f.js @@ -1 +1 @@ -import{D as n}from"./index.8fb9f3fd.js";import{n as l,k as p,a as c}from"./app.3d81bfbf.js";var d=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"setting-item submit"},[e("Row",{staticClass:"approve-row",attrs:{gutter:8}},[e("Col",{attrs:{xxl:{span:6},xl:{span:8},lg:{span:12},sm:{span:24},xs:{span:24}}},[e("div",{staticClass:"approve-col-box approve-col-add",on:{click:t.add}},[e("Icon",{attrs:{type:"md-add"}})],1)]),t._l(t.list,function(a,o){return e("Col",{key:o,attrs:{xxl:{span:6},xl:{span:8},lg:{span:12},sm:{span:24},xs:{span:24}}},[e("div",{staticClass:"approve-col-box approve-col-for",on:{click:function(r){return t.edit(a)}}},[e("p",[t._v(t._s(t.$L("\u6D41\u7A0B\u540D\u79F0"))+"\uFF1A"),e("span",{staticStyle:{"font-weight":"500",color:"#135de6"}},[t._v(t._s(t.$L(a.name)))])]),e("Divider",{staticStyle:{margin:"12px 0","margin-bottom":"9px"}}),e("div",{staticClass:"approve-button-box",on:{click:function(r){return r.stopPropagation(),t.edit(a)}}},[e("p",[t._v(t._s(t.$L("\u5DF2\u53D1\u5E03")))]),e("p",{staticStyle:{position:"relative"},on:{click:function(r){return r.stopPropagation(),t.change(a)}}},[e("Icon",{staticClass:"delcon",attrs:{type:"md-trash",size:"16"}})],1)])],1)])})],2),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.approvalSettingShow,callback:function(a){t.approvalSettingShow=a},expression:"approvalSettingShow"}},[e("iframe",{attrs:{src:t.iframeSrc}})])],1)},v=[];const u={name:"approve",components:{DrawerOverlay:n},data(){return{value:!1,loadIng:0,approvalSettingShow:!1,iframeSrc:"",name:"",list:[]}},watch:{approvalSettingShow(t){t&&(this.iframeSrc=$A.apiUrl(`../approve/#/?name=${this.name}&token=${p.userToken}&lang=${c}`))}},mounted(){window.addEventListener("message",this.saveSuccess),this.getList()},beforeDestroy(){window.removeEventListener("message",this.saveSuccess)},methods:{getList(){this.$store.dispatch("call",{url:"approve/procdef/all",method:"post"}).then(({data:t})=>{this.list=t.rows,t.rows.forEach((s,e)=>{this.list.forEach((a,o)=>{a.name==s.name&&(a.issue=!0,a.id=s.id,a.version=s.version)})})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},saveSuccess(t){typeof t.data=="string"&&JSON.parse(t.data).method=="saveSuccess"&&(this.getList(),this.list.forEach((e,a)=>{e.name==this.name&&(e.issue=!0,this.$set(this.list,a,e))}),this.approvalSettingShow=!1,$A.messageSuccess("\u53D1\u5E03\u6210\u529F"))},add(){$A.modalInput({title:"\u6DFB\u52A0\u6D41\u7A0B",placeholder:"\u8BF7\u8F93\u5165\u6D41\u7A0B\u540D\u79F0",type:"textarea",okText:"\u786E\u5B9A",onOk:t=>t?(this.name=t,this.approvalSettingShow=!0,!1):"\u8BF7\u8F93\u5165\u6D41\u7A0B\u540D\u79F0"})},edit(t){this.name=t.name,this.approvalSettingShow=!0},change(t){this.$nextTick(()=>{t.issue=!0,$A.modalConfirm({title:"\u5220\u9664",content:"\u5C06\u4F1A\u6E05\u7A7A\u6D41\u7A0B\u6570\u636E\uFF0C\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D",onOk:()=>{this.del(t)}})})},del(t){if(!t.id)return t.issue=!1,!0;this.$store.dispatch("call",{url:"approve/procdef/del",data:{id:t.id},method:"post"}).then(({data:s})=>{t.issue=!1,this.getList(),$A.messageSuccess("\u6210\u529F")}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.loadIng--})}}},i={};var h=l(u,d,v,!1,m,"071efe7c",null,null);function m(t){for(let s in i)this[s]=i[s]}var _=function(){return h.exports}();export{_ as default}; +import{D as n}from"./index.ed41beb1.js";import{n as l,k as p,a as c}from"./app.28437e7d.js";var d=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"setting-item submit"},[e("Row",{staticClass:"approve-row",attrs:{gutter:8}},[e("Col",{attrs:{xxl:{span:6},xl:{span:8},lg:{span:12},sm:{span:24},xs:{span:24}}},[e("div",{staticClass:"approve-col-box approve-col-add",on:{click:t.add}},[e("Icon",{attrs:{type:"md-add"}})],1)]),t._l(t.list,function(a,o){return e("Col",{key:o,attrs:{xxl:{span:6},xl:{span:8},lg:{span:12},sm:{span:24},xs:{span:24}}},[e("div",{staticClass:"approve-col-box approve-col-for",on:{click:function(r){return t.edit(a)}}},[e("p",[t._v(t._s(t.$L("\u6D41\u7A0B\u540D\u79F0"))+"\uFF1A"),e("span",{staticStyle:{"font-weight":"500",color:"#135de6"}},[t._v(t._s(t.$L(a.name)))])]),e("Divider",{staticStyle:{margin:"12px 0","margin-bottom":"9px"}}),e("div",{staticClass:"approve-button-box",on:{click:function(r){return r.stopPropagation(),t.edit(a)}}},[e("p",[t._v(t._s(t.$L("\u5DF2\u53D1\u5E03")))]),e("p",{staticStyle:{position:"relative"},on:{click:function(r){return r.stopPropagation(),t.change(a)}}},[e("Icon",{staticClass:"delcon",attrs:{type:"md-trash",size:"16"}})],1)])],1)])})],2),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.approvalSettingShow,callback:function(a){t.approvalSettingShow=a},expression:"approvalSettingShow"}},[e("iframe",{attrs:{src:t.iframeSrc}})])],1)},v=[];const u={name:"approve",components:{DrawerOverlay:n},data(){return{value:!1,loadIng:0,approvalSettingShow:!1,iframeSrc:"",name:"",list:[]}},watch:{approvalSettingShow(t){t&&(this.iframeSrc=$A.apiUrl(`../approve/#/?name=${this.name}&token=${p.userToken}&lang=${c}`))}},mounted(){window.addEventListener("message",this.saveSuccess),this.getList()},beforeDestroy(){window.removeEventListener("message",this.saveSuccess)},methods:{getList(){this.$store.dispatch("call",{url:"approve/procdef/all",method:"post"}).then(({data:t})=>{this.list=t.rows,t.rows.forEach((s,e)=>{this.list.forEach((a,o)=>{a.name==s.name&&(a.issue=!0,a.id=s.id,a.version=s.version)})})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},saveSuccess(t){typeof t.data=="string"&&JSON.parse(t.data).method=="saveSuccess"&&(this.getList(),this.list.forEach((e,a)=>{e.name==this.name&&(e.issue=!0,this.$set(this.list,a,e))}),this.approvalSettingShow=!1,$A.messageSuccess("\u53D1\u5E03\u6210\u529F"))},add(){$A.modalInput({title:"\u6DFB\u52A0\u6D41\u7A0B",placeholder:"\u8BF7\u8F93\u5165\u6D41\u7A0B\u540D\u79F0",type:"textarea",okText:"\u786E\u5B9A",onOk:t=>t?(this.name=t,this.approvalSettingShow=!0,!1):"\u8BF7\u8F93\u5165\u6D41\u7A0B\u540D\u79F0"})},edit(t){this.name=t.name,this.approvalSettingShow=!0},change(t){this.$nextTick(()=>{t.issue=!0,$A.modalConfirm({title:"\u5220\u9664",content:"\u5C06\u4F1A\u6E05\u7A7A\u6D41\u7A0B\u6570\u636E\uFF0C\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D",onOk:()=>{this.del(t)}})})},del(t){if(!t.id)return t.issue=!1,!0;this.$store.dispatch("call",{url:"approve/procdef/del",data:{id:t.id},method:"post"}).then(({data:s})=>{t.issue=!1,this.getList(),$A.messageSuccess("\u6210\u529F")}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.loadIng--})}}},i={};var h=l(u,d,v,!1,m,"071efe7c",null,null);function m(t){for(let s in i)this[s]=i[s]}var _=function(){return h.exports}();export{_ as default}; diff --git a/public/js/build/bn.interface.min.015f7861.js b/public/js/build/bn.interface.min.d86da2ed.js similarity index 96% rename from public/js/build/bn.interface.min.015f7861.js rename to public/js/build/bn.interface.min.d86da2ed.js index 7d982f50f..09a8ca049 100644 --- a/public/js/build/bn.interface.min.015f7861.js +++ b/public/js/build/bn.interface.min.d86da2ed.js @@ -1 +1 @@ -import t from"./bn.min.a20d8e66.js";import"./app.3d81bfbf.js";/*! OpenPGP.js v5.7.0-1 - 2023-06-10 - this is LGPL licensed code, see LICENSE/our website https://openpgpjs.org/ for more information. */class i{constructor(e){if(e===void 0)throw Error("Invalid BigInteger input");this.value=new t(e)}clone(){const e=new i(null);return this.value.copy(e.value),e}iinc(){return this.value.iadd(new t(1)),this}inc(){return this.clone().iinc()}idec(){return this.value.isub(new t(1)),this}dec(){return this.clone().idec()}iadd(e){return this.value.iadd(e.value),this}add(e){return this.clone().iadd(e)}isub(e){return this.value.isub(e.value),this}sub(e){return this.clone().isub(e)}imul(e){return this.value.imul(e.value),this}mul(e){return this.clone().imul(e)}imod(e){return this.value=this.value.umod(e.value),this}mod(e){return this.clone().imod(e)}modExp(e,r){const n=r.isEven()?t.red(r.value):t.mont(r.value),u=this.clone();return u.value=u.value.toRed(n).redPow(e.value).fromRed(),u}modInv(e){if(!this.gcd(e).isOne())throw Error("Inverse does not exist");return new i(this.value.invm(e.value))}gcd(e){return new i(this.value.gcd(e.value))}ileftShift(e){return this.value.ishln(e.value.toNumber()),this}leftShift(e){return this.clone().ileftShift(e)}irightShift(e){return this.value.ishrn(e.value.toNumber()),this}rightShift(e){return this.clone().irightShift(e)}equal(e){return this.value.eq(e.value)}lt(e){return this.value.lt(e.value)}lte(e){return this.value.lte(e.value)}gt(e){return this.value.gt(e.value)}gte(e){return this.value.gte(e.value)}isZero(){return this.value.isZero()}isOne(){return this.value.eq(new t(1))}isNegative(){return this.value.isNeg()}isEven(){return this.value.isEven()}abs(){const e=this.clone();return e.value=e.value.abs(),e}toString(){return this.value.toString()}toNumber(){return this.value.toNumber()}getBit(e){return this.value.testn(e)?1:0}bitLength(){return this.value.bitLength()}byteLength(){return this.value.byteLength()}toUint8Array(e="be",r){return this.value.toArrayLike(Uint8Array,e,r)}}export{i as default}; +import t from"./bn.min.f47e2400.js";import"./app.28437e7d.js";/*! OpenPGP.js v5.7.0-1 - 2023-06-10 - this is LGPL licensed code, see LICENSE/our website https://openpgpjs.org/ for more information. */class i{constructor(e){if(e===void 0)throw Error("Invalid BigInteger input");this.value=new t(e)}clone(){const e=new i(null);return this.value.copy(e.value),e}iinc(){return this.value.iadd(new t(1)),this}inc(){return this.clone().iinc()}idec(){return this.value.isub(new t(1)),this}dec(){return this.clone().idec()}iadd(e){return this.value.iadd(e.value),this}add(e){return this.clone().iadd(e)}isub(e){return this.value.isub(e.value),this}sub(e){return this.clone().isub(e)}imul(e){return this.value.imul(e.value),this}mul(e){return this.clone().imul(e)}imod(e){return this.value=this.value.umod(e.value),this}mod(e){return this.clone().imod(e)}modExp(e,r){const n=r.isEven()?t.red(r.value):t.mont(r.value),u=this.clone();return u.value=u.value.toRed(n).redPow(e.value).fromRed(),u}modInv(e){if(!this.gcd(e).isOne())throw Error("Inverse does not exist");return new i(this.value.invm(e.value))}gcd(e){return new i(this.value.gcd(e.value))}ileftShift(e){return this.value.ishln(e.value.toNumber()),this}leftShift(e){return this.clone().ileftShift(e)}irightShift(e){return this.value.ishrn(e.value.toNumber()),this}rightShift(e){return this.clone().irightShift(e)}equal(e){return this.value.eq(e.value)}lt(e){return this.value.lt(e.value)}lte(e){return this.value.lte(e.value)}gt(e){return this.value.gt(e.value)}gte(e){return this.value.gte(e.value)}isZero(){return this.value.isZero()}isOne(){return this.value.eq(new t(1))}isNegative(){return this.value.isNeg()}isEven(){return this.value.isEven()}abs(){const e=this.clone();return e.value=e.value.abs(),e}toString(){return this.value.toString()}toNumber(){return this.value.toNumber()}getBit(e){return this.value.testn(e)?1:0}bitLength(){return this.value.bitLength()}byteLength(){return this.value.byteLength()}toUint8Array(e="be",r){return this.value.toArrayLike(Uint8Array,e,r)}}export{i as default}; diff --git a/public/js/build/bn.min.a20d8e66.js b/public/js/build/bn.min.f47e2400.js similarity index 99% rename from public/js/build/bn.min.a20d8e66.js rename to public/js/build/bn.min.f47e2400.js index 03a9fa4d6..1ee27787a 100644 --- a/public/js/build/bn.min.a20d8e66.js +++ b/public/js/build/bn.min.f47e2400.js @@ -1 +1 @@ -import{L as ei,O as si}from"./app.3d81bfbf.js";/*! OpenPGP.js v5.7.0-1 - 2023-06-10 - this is LGPL licensed code, see LICENSE/our website https://openpgpjs.org/ for more information. */var ui=ei(function(ii){(function(qt,ri){function m(t,h){if(!t)throw Error(h||"Assertion failed")}function et(t,h){t.super_=h;var e=function(){};e.prototype=h.prototype,t.prototype=new e,t.prototype.constructor=t}function s(t,h,e){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,t!==null&&(h!=="le"&&h!=="be"||(e=h,h=10),this._init(t||0,h||10,e||"be"))}var ot;typeof qt=="object"?qt.exports=s:ri.BN=s,s.BN=s,s.wordSize=26;try{ot=void 0}catch{}function Bt(t,h,e){for(var r=0,i=Math.min(t.length,e),n=h;n=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return r}function Nt(t,h,e,r){for(var i=0,n=Math.min(t.length,e),o=h;o=49?l-49+10:l>=17?l-17+10:l}return i}s.isBN=function(t){return t instanceof s||t!==null&&typeof t=="object"&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,h){return t.cmp(h)>0?t:h},s.min=function(t,h){return t.cmp(h)<0?t:h},s.prototype._init=function(t,h,e){if(typeof t=="number")return this._initNumber(t,h,e);if(typeof t=="object")return this._initArray(t,h,e);h==="hex"&&(h=16),m(h===(0|h)&&h>=2&&h<=36);var r=0;(t=t.toString().replace(/\s+/g,""))[0]==="-"&&r++,h===16?this._parseHex(t,r):this._parseBase(t,h,r),t[0]==="-"&&(this.negative=1),this.strip(),e==="le"&&this._initArray(this.toArray(),h,e)},s.prototype._initNumber=function(t,h,e){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(m(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),e==="le"&&this._initArray(this.toArray(),h,e)},s.prototype._initArray=function(t,h,e){if(m(typeof t.length=="number"),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=Array(this.length);for(var r=0;r=0;r-=3)n=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[i]|=n<>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);else if(e==="le")for(r=0,i=0;r>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);return this.strip()},s.prototype._parseHex=function(t,h){this.length=Math.ceil((t.length-h)/6),this.words=Array(this.length);for(var e=0;e=h;e-=6)i=Bt(t,e,e+6),this.words[r]|=i<>>26-n&4194303,(n+=24)>=26&&(n-=26,r++);e+6!==h&&(i=Bt(t,h,e+6),this.words[r]|=i<>>26-n&4194303),this.strip()},s.prototype._parseBase=function(t,h,e){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=h)r++;r--,i=i/h|0;for(var n=t.length-e,o=n%r,l=Math.min(n,n-o)+e,a=0,u=e;u1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var Lt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],hi=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],ni=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function It(t,h,e){e.negative=h.negative^t.negative;var r=t.length+h.length|0;e.length=r,r=r-1|0;var i=0|t.words[0],n=0|h.words[0],o=i*n,l=67108863&o,a=o/67108864|0;e.words[0]=l;for(var u=1;u>>26,d=67108863&a,p=Math.min(u,h.length-1),M=Math.max(0,u-t.length+1);M<=p;M++){var v=u-M|0;f+=(o=(i=0|t.words[v])*(n=0|h.words[M])+d)/67108864|0,d=67108863&o}e.words[u]=0|d,a=0|f}return a!==0?e.words[u]=0|a:e.length--,e.strip()}s.prototype.toString=function(t,h){var e;if(h=0|h||1,(t=t||10)===16||t==="hex"){e="";for(var r=0,i=0,n=0;n>>24-r&16777215)!==0||n!==this.length-1?Lt[6-l.length]+l+e:l+e,(r+=2)>=26&&(r-=26,n--)}for(i!==0&&(e=i.toString(16)+e);e.length%h!=0;)e="0"+e;return this.negative!==0&&(e="-"+e),e}if(t===(0|t)&&t>=2&&t<=36){var a=hi[t],u=ni[t];e="";var f=this.clone();for(f.negative=0;!f.isZero();){var d=f.modn(u).toString(t);e=(f=f.idivn(u)).isZero()?d+e:Lt[a-d.length]+d+e}for(this.isZero()&&(e="0"+e);e.length%h!=0;)e="0"+e;return this.negative!==0&&(e="-"+e),e}m(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return this.length===2?t+=67108864*this.words[1]:this.length===3&&this.words[2]===1?t+=4503599627370496+67108864*this.words[1]:this.length>2&&m(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,h){return m(ot!==void 0),this.toArrayLike(ot,t,h)},s.prototype.toArray=function(t,h){return this.toArrayLike(Array,t,h)},s.prototype.toArrayLike=function(t,h,e){var r=this.byteLength(),i=e||Math.max(1,r);m(r<=i,"byte array longer than desired length"),m(i>0,"Requested array length <= 0"),this.strip();var n,o,l=h==="le",a=new t(i),u=this.clone();if(l){for(o=0;!u.isZero();o++)n=u.andln(255),u.iushrn(8),a[o]=n;for(;o=4096&&(e+=13,h>>>=13),h>=64&&(e+=7,h>>>=7),h>=8&&(e+=4,h>>>=4),h>=2&&(e+=2,h>>>=2),e+h},s.prototype._zeroBits=function(t){if(t===0)return 26;var h=t,e=0;return(8191&h)==0&&(e+=13,h>>>=13),(127&h)==0&&(e+=7,h>>>=7),(15&h)==0&&(e+=4,h>>>=4),(3&h)==0&&(e+=2,h>>>=2),(1&h)==0&&e++,e},s.prototype.bitLength=function(){var t=this.words[this.length-1],h=this._countBits(t);return 26*(this.length-1)+h},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,h=0;ht.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var h;h=this.length>t.length?t:this;for(var e=0;et.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var h,e;this.length>t.length?(h=this,e=t):(h=t,e=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){m(typeof t=="number"&&t>=0);var h=0|Math.ceil(t/26),e=t%26;this._expand(h),e>0&&h--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-e),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,h){m(typeof t=="number"&&t>=0);var e=t/26|0,r=t%26;return this._expand(e+1),this.words[e]=h?this.words[e]|1<t.length?(e=this,r=t):(e=t,r=this);for(var i=0,n=0;n>>26;for(;i!==0&&n>>26;if(this.length=e.length,i!==0)this.words[this.length]=i,this.length++;else if(e!==this)for(;nt.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var h=this.iadd(t);return t.negative=1,h._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var e,r,i=this.cmp(t);if(i===0)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,r=t):(e=t,r=this);for(var n=0,o=0;o>26,this.words[o]=67108863&h;for(;n!==0&&o>26,this.words[o]=67108863&h;if(n===0&&o>>13,M=0|o[1],v=8191&M,g=M>>>13,rt=0|o[2],c=8191&rt,w=rt>>>13,jt=0|o[3],b=8191&jt,_=jt>>>13,Kt=0|o[4],k=8191&Kt,A=Kt>>>13,Pt=0|o[5],x=8191&Pt,S=Pt>>>13,Ft=0|o[6],Z=8191&Ft,R=Ft>>>13,Ct=0|o[7],q=8191&Ct,B=Ct>>>13,Dt=0|o[8],N=8191&Dt,L=Dt>>>13,Ht=0|o[9],I=8191&Ht,z=Ht>>>13,Jt=0|l[0],E=8191&Jt,O=Jt>>>13,Ut=0|l[1],T=8191&Ut,j=Ut>>>13,Gt=0|l[2],K=8191&Gt,P=Gt>>>13,Qt=0|l[3],F=8191&Qt,C=Qt>>>13,Vt=0|l[4],D=8191&Vt,H=Vt>>>13,Wt=0|l[5],J=8191&Wt,U=Wt>>>13,Xt=0|l[6],G=8191&Xt,Q=Xt>>>13,Yt=0|l[7],V=8191&Yt,W=Yt>>>13,$t=0|l[8],X=8191&$t,Y=$t>>>13,ti=0|l[9],$=8191&ti,tt=ti>>>13;e.negative=t.negative^h.negative,e.length=19;var lt=(u+(r=Math.imul(d,E))|0)+((8191&(i=(i=Math.imul(d,O))+Math.imul(p,E)|0))<<13)|0;u=((n=Math.imul(p,O))+(i>>>13)|0)+(lt>>>26)|0,lt&=67108863,r=Math.imul(v,E),i=(i=Math.imul(v,O))+Math.imul(g,E)|0,n=Math.imul(g,O);var mt=(u+(r=r+Math.imul(d,T)|0)|0)+((8191&(i=(i=i+Math.imul(d,j)|0)+Math.imul(p,T)|0))<<13)|0;u=((n=n+Math.imul(p,j)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,r=Math.imul(c,E),i=(i=Math.imul(c,O))+Math.imul(w,E)|0,n=Math.imul(w,O),r=r+Math.imul(v,T)|0,i=(i=i+Math.imul(v,j)|0)+Math.imul(g,T)|0,n=n+Math.imul(g,j)|0;var ft=(u+(r=r+Math.imul(d,K)|0)|0)+((8191&(i=(i=i+Math.imul(d,P)|0)+Math.imul(p,K)|0))<<13)|0;u=((n=n+Math.imul(p,P)|0)+(i>>>13)|0)+(ft>>>26)|0,ft&=67108863,r=Math.imul(b,E),i=(i=Math.imul(b,O))+Math.imul(_,E)|0,n=Math.imul(_,O),r=r+Math.imul(c,T)|0,i=(i=i+Math.imul(c,j)|0)+Math.imul(w,T)|0,n=n+Math.imul(w,j)|0,r=r+Math.imul(v,K)|0,i=(i=i+Math.imul(v,P)|0)+Math.imul(g,K)|0,n=n+Math.imul(g,P)|0;var dt=(u+(r=r+Math.imul(d,F)|0)|0)+((8191&(i=(i=i+Math.imul(d,C)|0)+Math.imul(p,F)|0))<<13)|0;u=((n=n+Math.imul(p,C)|0)+(i>>>13)|0)+(dt>>>26)|0,dt&=67108863,r=Math.imul(k,E),i=(i=Math.imul(k,O))+Math.imul(A,E)|0,n=Math.imul(A,O),r=r+Math.imul(b,T)|0,i=(i=i+Math.imul(b,j)|0)+Math.imul(_,T)|0,n=n+Math.imul(_,j)|0,r=r+Math.imul(c,K)|0,i=(i=i+Math.imul(c,P)|0)+Math.imul(w,K)|0,n=n+Math.imul(w,P)|0,r=r+Math.imul(v,F)|0,i=(i=i+Math.imul(v,C)|0)+Math.imul(g,F)|0,n=n+Math.imul(g,C)|0;var pt=(u+(r=r+Math.imul(d,D)|0)|0)+((8191&(i=(i=i+Math.imul(d,H)|0)+Math.imul(p,D)|0))<<13)|0;u=((n=n+Math.imul(p,H)|0)+(i>>>13)|0)+(pt>>>26)|0,pt&=67108863,r=Math.imul(x,E),i=(i=Math.imul(x,O))+Math.imul(S,E)|0,n=Math.imul(S,O),r=r+Math.imul(k,T)|0,i=(i=i+Math.imul(k,j)|0)+Math.imul(A,T)|0,n=n+Math.imul(A,j)|0,r=r+Math.imul(b,K)|0,i=(i=i+Math.imul(b,P)|0)+Math.imul(_,K)|0,n=n+Math.imul(_,P)|0,r=r+Math.imul(c,F)|0,i=(i=i+Math.imul(c,C)|0)+Math.imul(w,F)|0,n=n+Math.imul(w,C)|0,r=r+Math.imul(v,D)|0,i=(i=i+Math.imul(v,H)|0)+Math.imul(g,D)|0,n=n+Math.imul(g,H)|0;var Mt=(u+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,U)|0)+Math.imul(p,J)|0))<<13)|0;u=((n=n+Math.imul(p,U)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(Z,E),i=(i=Math.imul(Z,O))+Math.imul(R,E)|0,n=Math.imul(R,O),r=r+Math.imul(x,T)|0,i=(i=i+Math.imul(x,j)|0)+Math.imul(S,T)|0,n=n+Math.imul(S,j)|0,r=r+Math.imul(k,K)|0,i=(i=i+Math.imul(k,P)|0)+Math.imul(A,K)|0,n=n+Math.imul(A,P)|0,r=r+Math.imul(b,F)|0,i=(i=i+Math.imul(b,C)|0)+Math.imul(_,F)|0,n=n+Math.imul(_,C)|0,r=r+Math.imul(c,D)|0,i=(i=i+Math.imul(c,H)|0)+Math.imul(w,D)|0,n=n+Math.imul(w,H)|0,r=r+Math.imul(v,J)|0,i=(i=i+Math.imul(v,U)|0)+Math.imul(g,J)|0,n=n+Math.imul(g,U)|0;var vt=(u+(r=r+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,Q)|0)+Math.imul(p,G)|0))<<13)|0;u=((n=n+Math.imul(p,Q)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(q,E),i=(i=Math.imul(q,O))+Math.imul(B,E)|0,n=Math.imul(B,O),r=r+Math.imul(Z,T)|0,i=(i=i+Math.imul(Z,j)|0)+Math.imul(R,T)|0,n=n+Math.imul(R,j)|0,r=r+Math.imul(x,K)|0,i=(i=i+Math.imul(x,P)|0)+Math.imul(S,K)|0,n=n+Math.imul(S,P)|0,r=r+Math.imul(k,F)|0,i=(i=i+Math.imul(k,C)|0)+Math.imul(A,F)|0,n=n+Math.imul(A,C)|0,r=r+Math.imul(b,D)|0,i=(i=i+Math.imul(b,H)|0)+Math.imul(_,D)|0,n=n+Math.imul(_,H)|0,r=r+Math.imul(c,J)|0,i=(i=i+Math.imul(c,U)|0)+Math.imul(w,J)|0,n=n+Math.imul(w,U)|0,r=r+Math.imul(v,G)|0,i=(i=i+Math.imul(v,Q)|0)+Math.imul(g,G)|0,n=n+Math.imul(g,Q)|0;var gt=(u+(r=r+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(p,V)|0))<<13)|0;u=((n=n+Math.imul(p,W)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(N,E),i=(i=Math.imul(N,O))+Math.imul(L,E)|0,n=Math.imul(L,O),r=r+Math.imul(q,T)|0,i=(i=i+Math.imul(q,j)|0)+Math.imul(B,T)|0,n=n+Math.imul(B,j)|0,r=r+Math.imul(Z,K)|0,i=(i=i+Math.imul(Z,P)|0)+Math.imul(R,K)|0,n=n+Math.imul(R,P)|0,r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,C)|0)+Math.imul(S,F)|0,n=n+Math.imul(S,C)|0,r=r+Math.imul(k,D)|0,i=(i=i+Math.imul(k,H)|0)+Math.imul(A,D)|0,n=n+Math.imul(A,H)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,U)|0)+Math.imul(_,J)|0,n=n+Math.imul(_,U)|0,r=r+Math.imul(c,G)|0,i=(i=i+Math.imul(c,Q)|0)+Math.imul(w,G)|0,n=n+Math.imul(w,Q)|0,r=r+Math.imul(v,V)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(g,V)|0,n=n+Math.imul(g,W)|0;var ct=(u+(r=r+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(p,X)|0))<<13)|0;u=((n=n+Math.imul(p,Y)|0)+(i>>>13)|0)+(ct>>>26)|0,ct&=67108863,r=Math.imul(I,E),i=(i=Math.imul(I,O))+Math.imul(z,E)|0,n=Math.imul(z,O),r=r+Math.imul(N,T)|0,i=(i=i+Math.imul(N,j)|0)+Math.imul(L,T)|0,n=n+Math.imul(L,j)|0,r=r+Math.imul(q,K)|0,i=(i=i+Math.imul(q,P)|0)+Math.imul(B,K)|0,n=n+Math.imul(B,P)|0,r=r+Math.imul(Z,F)|0,i=(i=i+Math.imul(Z,C)|0)+Math.imul(R,F)|0,n=n+Math.imul(R,C)|0,r=r+Math.imul(x,D)|0,i=(i=i+Math.imul(x,H)|0)+Math.imul(S,D)|0,n=n+Math.imul(S,H)|0,r=r+Math.imul(k,J)|0,i=(i=i+Math.imul(k,U)|0)+Math.imul(A,J)|0,n=n+Math.imul(A,U)|0,r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,Q)|0)+Math.imul(_,G)|0,n=n+Math.imul(_,Q)|0,r=r+Math.imul(c,V)|0,i=(i=i+Math.imul(c,W)|0)+Math.imul(w,V)|0,n=n+Math.imul(w,W)|0,r=r+Math.imul(v,X)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(g,X)|0,n=n+Math.imul(g,Y)|0;var wt=(u+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,tt)|0)+Math.imul(p,$)|0))<<13)|0;u=((n=n+Math.imul(p,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(I,T),i=(i=Math.imul(I,j))+Math.imul(z,T)|0,n=Math.imul(z,j),r=r+Math.imul(N,K)|0,i=(i=i+Math.imul(N,P)|0)+Math.imul(L,K)|0,n=n+Math.imul(L,P)|0,r=r+Math.imul(q,F)|0,i=(i=i+Math.imul(q,C)|0)+Math.imul(B,F)|0,n=n+Math.imul(B,C)|0,r=r+Math.imul(Z,D)|0,i=(i=i+Math.imul(Z,H)|0)+Math.imul(R,D)|0,n=n+Math.imul(R,H)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,U)|0)+Math.imul(S,J)|0,n=n+Math.imul(S,U)|0,r=r+Math.imul(k,G)|0,i=(i=i+Math.imul(k,Q)|0)+Math.imul(A,G)|0,n=n+Math.imul(A,Q)|0,r=r+Math.imul(b,V)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(_,V)|0,n=n+Math.imul(_,W)|0,r=r+Math.imul(c,X)|0,i=(i=i+Math.imul(c,Y)|0)+Math.imul(w,X)|0,n=n+Math.imul(w,Y)|0;var yt=(u+(r=r+Math.imul(v,$)|0)|0)+((8191&(i=(i=i+Math.imul(v,tt)|0)+Math.imul(g,$)|0))<<13)|0;u=((n=n+Math.imul(g,tt)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(I,K),i=(i=Math.imul(I,P))+Math.imul(z,K)|0,n=Math.imul(z,P),r=r+Math.imul(N,F)|0,i=(i=i+Math.imul(N,C)|0)+Math.imul(L,F)|0,n=n+Math.imul(L,C)|0,r=r+Math.imul(q,D)|0,i=(i=i+Math.imul(q,H)|0)+Math.imul(B,D)|0,n=n+Math.imul(B,H)|0,r=r+Math.imul(Z,J)|0,i=(i=i+Math.imul(Z,U)|0)+Math.imul(R,J)|0,n=n+Math.imul(R,U)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,Q)|0)+Math.imul(S,G)|0,n=n+Math.imul(S,Q)|0,r=r+Math.imul(k,V)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(A,V)|0,n=n+Math.imul(A,W)|0,r=r+Math.imul(b,X)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(_,X)|0,n=n+Math.imul(_,Y)|0;var bt=(u+(r=r+Math.imul(c,$)|0)|0)+((8191&(i=(i=i+Math.imul(c,tt)|0)+Math.imul(w,$)|0))<<13)|0;u=((n=n+Math.imul(w,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(I,F),i=(i=Math.imul(I,C))+Math.imul(z,F)|0,n=Math.imul(z,C),r=r+Math.imul(N,D)|0,i=(i=i+Math.imul(N,H)|0)+Math.imul(L,D)|0,n=n+Math.imul(L,H)|0,r=r+Math.imul(q,J)|0,i=(i=i+Math.imul(q,U)|0)+Math.imul(B,J)|0,n=n+Math.imul(B,U)|0,r=r+Math.imul(Z,G)|0,i=(i=i+Math.imul(Z,Q)|0)+Math.imul(R,G)|0,n=n+Math.imul(R,Q)|0,r=r+Math.imul(x,V)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(S,V)|0,n=n+Math.imul(S,W)|0,r=r+Math.imul(k,X)|0,i=(i=i+Math.imul(k,Y)|0)+Math.imul(A,X)|0,n=n+Math.imul(A,Y)|0;var _t=(u+(r=r+Math.imul(b,$)|0)|0)+((8191&(i=(i=i+Math.imul(b,tt)|0)+Math.imul(_,$)|0))<<13)|0;u=((n=n+Math.imul(_,tt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(I,D),i=(i=Math.imul(I,H))+Math.imul(z,D)|0,n=Math.imul(z,H),r=r+Math.imul(N,J)|0,i=(i=i+Math.imul(N,U)|0)+Math.imul(L,J)|0,n=n+Math.imul(L,U)|0,r=r+Math.imul(q,G)|0,i=(i=i+Math.imul(q,Q)|0)+Math.imul(B,G)|0,n=n+Math.imul(B,Q)|0,r=r+Math.imul(Z,V)|0,i=(i=i+Math.imul(Z,W)|0)+Math.imul(R,V)|0,n=n+Math.imul(R,W)|0,r=r+Math.imul(x,X)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(S,X)|0,n=n+Math.imul(S,Y)|0;var kt=(u+(r=r+Math.imul(k,$)|0)|0)+((8191&(i=(i=i+Math.imul(k,tt)|0)+Math.imul(A,$)|0))<<13)|0;u=((n=n+Math.imul(A,tt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(I,J),i=(i=Math.imul(I,U))+Math.imul(z,J)|0,n=Math.imul(z,U),r=r+Math.imul(N,G)|0,i=(i=i+Math.imul(N,Q)|0)+Math.imul(L,G)|0,n=n+Math.imul(L,Q)|0,r=r+Math.imul(q,V)|0,i=(i=i+Math.imul(q,W)|0)+Math.imul(B,V)|0,n=n+Math.imul(B,W)|0,r=r+Math.imul(Z,X)|0,i=(i=i+Math.imul(Z,Y)|0)+Math.imul(R,X)|0,n=n+Math.imul(R,Y)|0;var At=(u+(r=r+Math.imul(x,$)|0)|0)+((8191&(i=(i=i+Math.imul(x,tt)|0)+Math.imul(S,$)|0))<<13)|0;u=((n=n+Math.imul(S,tt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(I,G),i=(i=Math.imul(I,Q))+Math.imul(z,G)|0,n=Math.imul(z,Q),r=r+Math.imul(N,V)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(L,V)|0,n=n+Math.imul(L,W)|0,r=r+Math.imul(q,X)|0,i=(i=i+Math.imul(q,Y)|0)+Math.imul(B,X)|0,n=n+Math.imul(B,Y)|0;var xt=(u+(r=r+Math.imul(Z,$)|0)|0)+((8191&(i=(i=i+Math.imul(Z,tt)|0)+Math.imul(R,$)|0))<<13)|0;u=((n=n+Math.imul(R,tt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(I,V),i=(i=Math.imul(I,W))+Math.imul(z,V)|0,n=Math.imul(z,W),r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(L,X)|0,n=n+Math.imul(L,Y)|0;var St=(u+(r=r+Math.imul(q,$)|0)|0)+((8191&(i=(i=i+Math.imul(q,tt)|0)+Math.imul(B,$)|0))<<13)|0;u=((n=n+Math.imul(B,tt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(I,X),i=(i=Math.imul(I,Y))+Math.imul(z,X)|0,n=Math.imul(z,Y);var Zt=(u+(r=r+Math.imul(N,$)|0)|0)+((8191&(i=(i=i+Math.imul(N,tt)|0)+Math.imul(L,$)|0))<<13)|0;u=((n=n+Math.imul(L,tt)|0)+(i>>>13)|0)+(Zt>>>26)|0,Zt&=67108863;var Rt=(u+(r=Math.imul(I,$))|0)+((8191&(i=(i=Math.imul(I,tt))+Math.imul(z,$)|0))<<13)|0;return u=((n=Math.imul(z,tt))+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,a[0]=lt,a[1]=mt,a[2]=ft,a[3]=dt,a[4]=pt,a[5]=Mt,a[6]=vt,a[7]=gt,a[8]=ct,a[9]=wt,a[10]=yt,a[11]=bt,a[12]=_t,a[13]=kt,a[14]=At,a[15]=xt,a[16]=St,a[17]=Zt,a[18]=Rt,u!==0&&(a[19]=u,e.length++),e};function Et(t,h,e){return new ht().mulp(t,h,e)}function ht(t,h){this.x=t,this.y=h}Math.imul||(zt=It),s.prototype.mulTo=function(t,h){var e,r=this.length+t.length;return e=this.length===10&&t.length===10?zt(this,t,h):r<63?It(this,t,h):r<1024?function(i,n,o){o.negative=n.negative^i.negative,o.length=i.length+n.length;for(var l=0,a=0,u=0;u>>26)|0)>>>26,f&=67108863}o.words[u]=d,l=f,f=a}return l!==0?o.words[u]=l:o.length--,o.strip()}(this,t,h):Et(this,t,h),e},ht.prototype.makeRBT=function(t){for(var h=Array(t),e=s.prototype._countBits(t)-1,r=0;r>=1;return r},ht.prototype.permute=function(t,h,e,r,i,n){for(var o=0;o>>=1)i++;return 1<>>=13,e[2*n+1]=8191&i,i>>>=13;for(n=2*h;n>=26,h+=r/67108864|0,h+=i>>>26,this.words[e]=67108863&i}return h!==0&&(this.words[e]=h,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var h=function(n){for(var o=Array(n.bitLength()),l=0;l>>u}return o}(t);if(h.length===0)return new s(1);for(var e=this,r=0;r=0);var h,e=t%26,r=(t-e)/26,i=67108863>>>26-e<<26-e;if(e!==0){var n=0;for(h=0;h>>26-e}n&&(this.words[h]=n,this.length++)}if(r!==0){for(h=this.length-1;h>=0;h--)this.words[h+r]=this.words[h];for(h=0;h=0),r=h?(h-h%26)/26:0;var i=t%26,n=Math.min((t-i)/26,this.length),o=67108863^67108863>>>i<n)for(this.length-=n,a=0;a=0&&(u!==0||a>=r);a--){var f=0|this.words[a];this.words[a]=u<<26-i|f>>>i,u=f&o}return l&&u!==0&&(l.words[l.length++]=u),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,h,e){return m(this.negative===0),this.iushrn(t,h,e)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){m(typeof t=="number"&&t>=0);var h=t%26,e=(t-h)/26,r=1<=0);var h=t%26,e=(t-h)/26;if(m(this.negative===0,"imaskn works only with positive numbers"),this.length<=e)return this;if(h!==0&&e++,this.length=Math.min(e,this.length),h!==0){var r=67108863^67108863>>>h<=67108864;h++)this.words[h]-=67108864,h===this.length-1?this.words[h+1]=1:this.words[h+1]++;return this.length=Math.max(this.length,h+1),this},s.prototype.isubn=function(t){if(m(typeof t=="number"),m(t<67108864),t<0)return this.iaddn(-t);if(this.negative!==0)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var h=0;h>26)-(l/67108864|0),this.words[r+e]=67108863&i}for(;r>26,this.words[r+e]=67108863&i;if(o===0)return this.strip();for(m(o===-1),o=0,r=0;r>26,this.words[r]=67108863&i;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,h){var e=(this.length,t.length),r=this.clone(),i=t,n=0|i.words[i.length-1];(e=26-this._countBits(n))!==0&&(i=i.ushln(e),r.iushln(e),n=0|i.words[i.length-1]);var o,l=r.length-i.length;if(h!=="mod"){(o=new s(null)).length=l+1,o.words=Array(o.length);for(var a=0;a=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/n|0,67108863),r._ishlnsubmul(i,d,f);r.negative!==0;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);o&&(o.words[f]=d)}return o&&o.strip(),r.strip(),h!=="div"&&e!==0&&r.iushrn(e),{div:o||null,mod:r}},s.prototype.divmod=function(t,h,e){return m(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:this.negative!==0&&t.negative===0?(n=this.neg().divmod(t,h),h!=="mod"&&(r=n.div.neg()),h!=="div"&&(i=n.mod.neg(),e&&i.negative!==0&&i.iadd(t)),{div:r,mod:i}):this.negative===0&&t.negative!==0?(n=this.divmod(t.neg(),h),h!=="mod"&&(r=n.div.neg()),{div:r,mod:n.mod}):(this.negative&t.negative)!=0?(n=this.neg().divmod(t.neg(),h),h!=="div"&&(i=n.mod.neg(),e&&i.negative!==0&&i.isub(t)),{div:n.div,mod:i}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:t.length===1?h==="div"?{div:this.divn(t.words[0]),mod:null}:h==="mod"?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,h);var r,i,n},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var h=this.divmod(t);if(h.mod.isZero())return h.div;var e=h.div.negative!==0?h.mod.isub(t):h.mod,r=t.ushrn(1),i=t.andln(1),n=e.cmp(r);return n<0||i===1&&n===0?h.div:h.div.negative!==0?h.div.isubn(1):h.div.iaddn(1)},s.prototype.modn=function(t){m(t<=67108863);for(var h=(1<<26)%t,e=0,r=this.length-1;r>=0;r--)e=(h*e+(0|this.words[r]))%t;return e},s.prototype.idivn=function(t){m(t<=67108863);for(var h=0,e=this.length-1;e>=0;e--){var r=(0|this.words[e])+67108864*h;this.words[e]=r/t|0,h=r%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){m(t.negative===0),m(!t.isZero());var h=this,e=t.clone();h=h.negative!==0?h.umod(t):h.clone();for(var r=new s(1),i=new s(0),n=new s(0),o=new s(1),l=0;h.isEven()&&e.isEven();)h.iushrn(1),e.iushrn(1),++l;for(var a=e.clone(),u=h.clone();!h.isZero();){for(var f=0,d=1;(h.words[0]&d)==0&&f<26;++f,d<<=1);if(f>0)for(h.iushrn(f);f-- >0;)(r.isOdd()||i.isOdd())&&(r.iadd(a),i.isub(u)),r.iushrn(1),i.iushrn(1);for(var p=0,M=1;(e.words[0]&M)==0&&p<26;++p,M<<=1);if(p>0)for(e.iushrn(p);p-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(a),o.isub(u)),n.iushrn(1),o.iushrn(1);h.cmp(e)>=0?(h.isub(e),r.isub(n),i.isub(o)):(e.isub(h),n.isub(r),o.isub(i))}return{a:n,b:o,gcd:e.iushln(l)}},s.prototype._invmp=function(t){m(t.negative===0),m(!t.isZero());var h=this,e=t.clone();h=h.negative!==0?h.umod(t):h.clone();for(var r,i=new s(1),n=new s(0),o=e.clone();h.cmpn(1)>0&&e.cmpn(1)>0;){for(var l=0,a=1;(h.words[0]&a)==0&&l<26;++l,a<<=1);if(l>0)for(h.iushrn(l);l-- >0;)i.isOdd()&&i.iadd(o),i.iushrn(1);for(var u=0,f=1;(e.words[0]&f)==0&&u<26;++u,f<<=1);if(u>0)for(e.iushrn(u);u-- >0;)n.isOdd()&&n.iadd(o),n.iushrn(1);h.cmp(e)>=0?(h.isub(e),i.isub(n)):(e.isub(h),n.isub(i))}return(r=h.cmpn(1)===0?i:n).cmpn(0)<0&&r.iadd(t),r},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var h=this.clone(),e=t.clone();h.negative=0,e.negative=0;for(var r=0;h.isEven()&&e.isEven();r++)h.iushrn(1),e.iushrn(1);for(;;){for(;h.isEven();)h.iushrn(1);for(;e.isEven();)e.iushrn(1);var i=h.cmp(e);if(i<0){var n=h;h=e,e=n}else if(i===0||e.cmpn(1)===0)break;h.isub(e)}return e.iushln(r)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return(1&this.words[0])==0},s.prototype.isOdd=function(){return(1&this.words[0])==1},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){m(typeof t=="number");var h=t%26,e=(t-h)/26,r=1<>>26,o&=67108863,this.words[n]=o}return i!==0&&(this.words[n]=i,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(t){var h,e=t<0;if(this.negative!==0&&!e)return-1;if(this.negative===0&&e)return 1;if(this.strip(),this.length>1)h=1;else{e&&(t=-t),m(t<=67108863,"Number is too big");var r=0|this.words[0];h=r===t?0:rt.length)return 1;if(this.length=0;e--){var r=0|this.words[e],i=0|t.words[e];if(r!==i){ri&&(h=1);break}}return h},s.prototype.gtn=function(t){return this.cmpn(t)===1},s.prototype.gt=function(t){return this.cmp(t)===1},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return this.cmpn(t)===-1},s.prototype.lt=function(t){return this.cmp(t)===-1},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return this.cmpn(t)===0},s.prototype.eq=function(t){return this.cmp(t)===0},s.red=function(t){return new y(t)},s.prototype.toRed=function(t){return m(!this.red,"Already a number in reduction context"),m(this.negative===0,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return m(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return m(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return m(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return m(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return m(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return m(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return m(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return m(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return m(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return m(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return m(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return m(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return m(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var ut={k256:null,p224:null,p192:null,p25519:null};function it(t,h){this.name=t,this.p=new s(h,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function st(){it.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function Ot(){it.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function Tt(){it.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function at(){it.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function y(t){if(typeof t=="string"){var h=s._prime(t);this.m=h.p,this.prime=h}else m(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function nt(t){y.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}it.prototype._tmp=function(){var t=new s(null);return t.words=Array(Math.ceil(this.n/13)),t},it.prototype.ireduce=function(t){var h,e=t;do this.split(e,this.tmp),h=(e=(e=this.imulK(e)).iadd(this.tmp)).bitLength();while(h>this.n);var r=h0?e.isub(this.p):e.strip(),e},it.prototype.split=function(t,h){t.iushrn(this.n,0,h)},it.prototype.imulK=function(t){return t.imul(this.k)},et(st,it),st.prototype.split=function(t,h){for(var e=4194303,r=Math.min(t.length,9),i=0;i>>22,n=o}n>>>=22,t.words[i-10]=n,n===0&&t.length>10?t.length-=10:t.length-=9},st.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var h=0,e=0;e>>=26,t.words[e]=i,h=r}return h!==0&&(t.words[t.length++]=h),t},s._prime=function(t){if(ut[t])return ut[t];var h;if(t==="k256")h=new st;else if(t==="p224")h=new Ot;else if(t==="p192")h=new Tt;else{if(t!=="p25519")throw Error("Unknown prime "+t);h=new at}return ut[t]=h,h},y.prototype._verify1=function(t){m(t.negative===0,"red works only with positives"),m(t.red,"red works only with red numbers")},y.prototype._verify2=function(t,h){m((t.negative|h.negative)==0,"red works only with positives"),m(t.red&&t.red===h.red,"red works only with red numbers")},y.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},y.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},y.prototype.add=function(t,h){this._verify2(t,h);var e=t.add(h);return e.cmp(this.m)>=0&&e.isub(this.m),e._forceRed(this)},y.prototype.iadd=function(t,h){this._verify2(t,h);var e=t.iadd(h);return e.cmp(this.m)>=0&&e.isub(this.m),e},y.prototype.sub=function(t,h){this._verify2(t,h);var e=t.sub(h);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},y.prototype.isub=function(t,h){this._verify2(t,h);var e=t.isub(h);return e.cmpn(0)<0&&e.iadd(this.m),e},y.prototype.shl=function(t,h){return this._verify1(t),this.imod(t.ushln(h))},y.prototype.imul=function(t,h){return this._verify2(t,h),this.imod(t.imul(h))},y.prototype.mul=function(t,h){return this._verify2(t,h),this.imod(t.mul(h))},y.prototype.isqr=function(t){return this.imul(t,t.clone())},y.prototype.sqr=function(t){return this.mul(t,t)},y.prototype.sqrt=function(t){if(t.isZero())return t.clone();var h=this.m.andln(3);if(m(h%2==1),h===3){var e=this.m.add(new s(1)).iushrn(2);return this.pow(t,e)}for(var r=this.m.subn(1),i=0;!r.isZero()&&r.andln(1)===0;)i++,r.iushrn(1);m(!r.isZero());var n=new s(1).toRed(this),o=n.redNeg(),l=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new s(2*a*a).toRed(this);this.pow(a,l).cmp(o)!==0;)a.redIAdd(o);for(var u=this.pow(a,r),f=this.pow(t,r.addn(1).iushrn(1)),d=this.pow(t,r),p=i;d.cmp(n)!==0;){for(var M=d,v=0;M.cmp(n)!==0;v++)M=M.redSqr();m(v=0;r--){for(var a=h.words[r],u=l-1;u>=0;u--){var f=a>>u&1;i!==e[0]&&(i=this.sqr(i)),f!==0||n!==0?(n<<=1,n|=f,(++o===4||r===0&&u===0)&&(i=this.mul(i,e[n]),o=0,n=0)):o=0}l=26}return i},y.prototype.convertTo=function(t){var h=t.umod(this.m);return h===t?h.clone():h},y.prototype.convertFrom=function(t){var h=t.clone();return h.red=null,h},s.mont=function(t){return new nt(t)},et(nt,y),nt.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},nt.prototype.convertFrom=function(t){var h=this.imod(t.mul(this.rinv));return h.red=null,h},nt.prototype.imul=function(t,h){if(t.isZero()||h.isZero())return t.words[0]=0,t.length=1,t;var e=t.imul(h),r=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=e.isub(r).iushrn(this.shift),n=i;return i.cmp(this.m)>=0?n=i.isub(this.m):i.cmpn(0)<0&&(n=i.iadd(this.m)),n._forceRed(this)},nt.prototype.mul=function(t,h){if(t.isZero()||h.isZero())return new s(0)._forceRed(this);var e=t.mul(h),r=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=e.isub(r).iushrn(this.shift),n=i;return i.cmp(this.m)>=0?n=i.isub(this.m):i.cmpn(0)<0&&(n=i.iadd(this.m)),n._forceRed(this)},nt.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}})(ii,si)});export{ui as __moduleExports,ui as default}; +import{L as ei,O as si}from"./app.28437e7d.js";/*! OpenPGP.js v5.7.0-1 - 2023-06-10 - this is LGPL licensed code, see LICENSE/our website https://openpgpjs.org/ for more information. */var ui=ei(function(ii){(function(qt,ri){function m(t,h){if(!t)throw Error(h||"Assertion failed")}function et(t,h){t.super_=h;var e=function(){};e.prototype=h.prototype,t.prototype=new e,t.prototype.constructor=t}function s(t,h,e){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,t!==null&&(h!=="le"&&h!=="be"||(e=h,h=10),this._init(t||0,h||10,e||"be"))}var ot;typeof qt=="object"?qt.exports=s:ri.BN=s,s.BN=s,s.wordSize=26;try{ot=void 0}catch{}function Bt(t,h,e){for(var r=0,i=Math.min(t.length,e),n=h;n=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return r}function Nt(t,h,e,r){for(var i=0,n=Math.min(t.length,e),o=h;o=49?l-49+10:l>=17?l-17+10:l}return i}s.isBN=function(t){return t instanceof s||t!==null&&typeof t=="object"&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,h){return t.cmp(h)>0?t:h},s.min=function(t,h){return t.cmp(h)<0?t:h},s.prototype._init=function(t,h,e){if(typeof t=="number")return this._initNumber(t,h,e);if(typeof t=="object")return this._initArray(t,h,e);h==="hex"&&(h=16),m(h===(0|h)&&h>=2&&h<=36);var r=0;(t=t.toString().replace(/\s+/g,""))[0]==="-"&&r++,h===16?this._parseHex(t,r):this._parseBase(t,h,r),t[0]==="-"&&(this.negative=1),this.strip(),e==="le"&&this._initArray(this.toArray(),h,e)},s.prototype._initNumber=function(t,h,e){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(m(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),e==="le"&&this._initArray(this.toArray(),h,e)},s.prototype._initArray=function(t,h,e){if(m(typeof t.length=="number"),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=Array(this.length);for(var r=0;r=0;r-=3)n=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[i]|=n<>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);else if(e==="le")for(r=0,i=0;r>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);return this.strip()},s.prototype._parseHex=function(t,h){this.length=Math.ceil((t.length-h)/6),this.words=Array(this.length);for(var e=0;e=h;e-=6)i=Bt(t,e,e+6),this.words[r]|=i<>>26-n&4194303,(n+=24)>=26&&(n-=26,r++);e+6!==h&&(i=Bt(t,h,e+6),this.words[r]|=i<>>26-n&4194303),this.strip()},s.prototype._parseBase=function(t,h,e){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=h)r++;r--,i=i/h|0;for(var n=t.length-e,o=n%r,l=Math.min(n,n-o)+e,a=0,u=e;u1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var Lt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],hi=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],ni=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function It(t,h,e){e.negative=h.negative^t.negative;var r=t.length+h.length|0;e.length=r,r=r-1|0;var i=0|t.words[0],n=0|h.words[0],o=i*n,l=67108863&o,a=o/67108864|0;e.words[0]=l;for(var u=1;u>>26,d=67108863&a,p=Math.min(u,h.length-1),M=Math.max(0,u-t.length+1);M<=p;M++){var v=u-M|0;f+=(o=(i=0|t.words[v])*(n=0|h.words[M])+d)/67108864|0,d=67108863&o}e.words[u]=0|d,a=0|f}return a!==0?e.words[u]=0|a:e.length--,e.strip()}s.prototype.toString=function(t,h){var e;if(h=0|h||1,(t=t||10)===16||t==="hex"){e="";for(var r=0,i=0,n=0;n>>24-r&16777215)!==0||n!==this.length-1?Lt[6-l.length]+l+e:l+e,(r+=2)>=26&&(r-=26,n--)}for(i!==0&&(e=i.toString(16)+e);e.length%h!=0;)e="0"+e;return this.negative!==0&&(e="-"+e),e}if(t===(0|t)&&t>=2&&t<=36){var a=hi[t],u=ni[t];e="";var f=this.clone();for(f.negative=0;!f.isZero();){var d=f.modn(u).toString(t);e=(f=f.idivn(u)).isZero()?d+e:Lt[a-d.length]+d+e}for(this.isZero()&&(e="0"+e);e.length%h!=0;)e="0"+e;return this.negative!==0&&(e="-"+e),e}m(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return this.length===2?t+=67108864*this.words[1]:this.length===3&&this.words[2]===1?t+=4503599627370496+67108864*this.words[1]:this.length>2&&m(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,h){return m(ot!==void 0),this.toArrayLike(ot,t,h)},s.prototype.toArray=function(t,h){return this.toArrayLike(Array,t,h)},s.prototype.toArrayLike=function(t,h,e){var r=this.byteLength(),i=e||Math.max(1,r);m(r<=i,"byte array longer than desired length"),m(i>0,"Requested array length <= 0"),this.strip();var n,o,l=h==="le",a=new t(i),u=this.clone();if(l){for(o=0;!u.isZero();o++)n=u.andln(255),u.iushrn(8),a[o]=n;for(;o=4096&&(e+=13,h>>>=13),h>=64&&(e+=7,h>>>=7),h>=8&&(e+=4,h>>>=4),h>=2&&(e+=2,h>>>=2),e+h},s.prototype._zeroBits=function(t){if(t===0)return 26;var h=t,e=0;return(8191&h)==0&&(e+=13,h>>>=13),(127&h)==0&&(e+=7,h>>>=7),(15&h)==0&&(e+=4,h>>>=4),(3&h)==0&&(e+=2,h>>>=2),(1&h)==0&&e++,e},s.prototype.bitLength=function(){var t=this.words[this.length-1],h=this._countBits(t);return 26*(this.length-1)+h},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,h=0;ht.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var h;h=this.length>t.length?t:this;for(var e=0;et.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var h,e;this.length>t.length?(h=this,e=t):(h=t,e=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){m(typeof t=="number"&&t>=0);var h=0|Math.ceil(t/26),e=t%26;this._expand(h),e>0&&h--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-e),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,h){m(typeof t=="number"&&t>=0);var e=t/26|0,r=t%26;return this._expand(e+1),this.words[e]=h?this.words[e]|1<t.length?(e=this,r=t):(e=t,r=this);for(var i=0,n=0;n>>26;for(;i!==0&&n>>26;if(this.length=e.length,i!==0)this.words[this.length]=i,this.length++;else if(e!==this)for(;nt.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var h=this.iadd(t);return t.negative=1,h._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var e,r,i=this.cmp(t);if(i===0)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,r=t):(e=t,r=this);for(var n=0,o=0;o>26,this.words[o]=67108863&h;for(;n!==0&&o>26,this.words[o]=67108863&h;if(n===0&&o>>13,M=0|o[1],v=8191&M,g=M>>>13,rt=0|o[2],c=8191&rt,w=rt>>>13,jt=0|o[3],b=8191&jt,_=jt>>>13,Kt=0|o[4],k=8191&Kt,A=Kt>>>13,Pt=0|o[5],x=8191&Pt,S=Pt>>>13,Ft=0|o[6],Z=8191&Ft,R=Ft>>>13,Ct=0|o[7],q=8191&Ct,B=Ct>>>13,Dt=0|o[8],N=8191&Dt,L=Dt>>>13,Ht=0|o[9],I=8191&Ht,z=Ht>>>13,Jt=0|l[0],E=8191&Jt,O=Jt>>>13,Ut=0|l[1],T=8191&Ut,j=Ut>>>13,Gt=0|l[2],K=8191&Gt,P=Gt>>>13,Qt=0|l[3],F=8191&Qt,C=Qt>>>13,Vt=0|l[4],D=8191&Vt,H=Vt>>>13,Wt=0|l[5],J=8191&Wt,U=Wt>>>13,Xt=0|l[6],G=8191&Xt,Q=Xt>>>13,Yt=0|l[7],V=8191&Yt,W=Yt>>>13,$t=0|l[8],X=8191&$t,Y=$t>>>13,ti=0|l[9],$=8191&ti,tt=ti>>>13;e.negative=t.negative^h.negative,e.length=19;var lt=(u+(r=Math.imul(d,E))|0)+((8191&(i=(i=Math.imul(d,O))+Math.imul(p,E)|0))<<13)|0;u=((n=Math.imul(p,O))+(i>>>13)|0)+(lt>>>26)|0,lt&=67108863,r=Math.imul(v,E),i=(i=Math.imul(v,O))+Math.imul(g,E)|0,n=Math.imul(g,O);var mt=(u+(r=r+Math.imul(d,T)|0)|0)+((8191&(i=(i=i+Math.imul(d,j)|0)+Math.imul(p,T)|0))<<13)|0;u=((n=n+Math.imul(p,j)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,r=Math.imul(c,E),i=(i=Math.imul(c,O))+Math.imul(w,E)|0,n=Math.imul(w,O),r=r+Math.imul(v,T)|0,i=(i=i+Math.imul(v,j)|0)+Math.imul(g,T)|0,n=n+Math.imul(g,j)|0;var ft=(u+(r=r+Math.imul(d,K)|0)|0)+((8191&(i=(i=i+Math.imul(d,P)|0)+Math.imul(p,K)|0))<<13)|0;u=((n=n+Math.imul(p,P)|0)+(i>>>13)|0)+(ft>>>26)|0,ft&=67108863,r=Math.imul(b,E),i=(i=Math.imul(b,O))+Math.imul(_,E)|0,n=Math.imul(_,O),r=r+Math.imul(c,T)|0,i=(i=i+Math.imul(c,j)|0)+Math.imul(w,T)|0,n=n+Math.imul(w,j)|0,r=r+Math.imul(v,K)|0,i=(i=i+Math.imul(v,P)|0)+Math.imul(g,K)|0,n=n+Math.imul(g,P)|0;var dt=(u+(r=r+Math.imul(d,F)|0)|0)+((8191&(i=(i=i+Math.imul(d,C)|0)+Math.imul(p,F)|0))<<13)|0;u=((n=n+Math.imul(p,C)|0)+(i>>>13)|0)+(dt>>>26)|0,dt&=67108863,r=Math.imul(k,E),i=(i=Math.imul(k,O))+Math.imul(A,E)|0,n=Math.imul(A,O),r=r+Math.imul(b,T)|0,i=(i=i+Math.imul(b,j)|0)+Math.imul(_,T)|0,n=n+Math.imul(_,j)|0,r=r+Math.imul(c,K)|0,i=(i=i+Math.imul(c,P)|0)+Math.imul(w,K)|0,n=n+Math.imul(w,P)|0,r=r+Math.imul(v,F)|0,i=(i=i+Math.imul(v,C)|0)+Math.imul(g,F)|0,n=n+Math.imul(g,C)|0;var pt=(u+(r=r+Math.imul(d,D)|0)|0)+((8191&(i=(i=i+Math.imul(d,H)|0)+Math.imul(p,D)|0))<<13)|0;u=((n=n+Math.imul(p,H)|0)+(i>>>13)|0)+(pt>>>26)|0,pt&=67108863,r=Math.imul(x,E),i=(i=Math.imul(x,O))+Math.imul(S,E)|0,n=Math.imul(S,O),r=r+Math.imul(k,T)|0,i=(i=i+Math.imul(k,j)|0)+Math.imul(A,T)|0,n=n+Math.imul(A,j)|0,r=r+Math.imul(b,K)|0,i=(i=i+Math.imul(b,P)|0)+Math.imul(_,K)|0,n=n+Math.imul(_,P)|0,r=r+Math.imul(c,F)|0,i=(i=i+Math.imul(c,C)|0)+Math.imul(w,F)|0,n=n+Math.imul(w,C)|0,r=r+Math.imul(v,D)|0,i=(i=i+Math.imul(v,H)|0)+Math.imul(g,D)|0,n=n+Math.imul(g,H)|0;var Mt=(u+(r=r+Math.imul(d,J)|0)|0)+((8191&(i=(i=i+Math.imul(d,U)|0)+Math.imul(p,J)|0))<<13)|0;u=((n=n+Math.imul(p,U)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(Z,E),i=(i=Math.imul(Z,O))+Math.imul(R,E)|0,n=Math.imul(R,O),r=r+Math.imul(x,T)|0,i=(i=i+Math.imul(x,j)|0)+Math.imul(S,T)|0,n=n+Math.imul(S,j)|0,r=r+Math.imul(k,K)|0,i=(i=i+Math.imul(k,P)|0)+Math.imul(A,K)|0,n=n+Math.imul(A,P)|0,r=r+Math.imul(b,F)|0,i=(i=i+Math.imul(b,C)|0)+Math.imul(_,F)|0,n=n+Math.imul(_,C)|0,r=r+Math.imul(c,D)|0,i=(i=i+Math.imul(c,H)|0)+Math.imul(w,D)|0,n=n+Math.imul(w,H)|0,r=r+Math.imul(v,J)|0,i=(i=i+Math.imul(v,U)|0)+Math.imul(g,J)|0,n=n+Math.imul(g,U)|0;var vt=(u+(r=r+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,Q)|0)+Math.imul(p,G)|0))<<13)|0;u=((n=n+Math.imul(p,Q)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(q,E),i=(i=Math.imul(q,O))+Math.imul(B,E)|0,n=Math.imul(B,O),r=r+Math.imul(Z,T)|0,i=(i=i+Math.imul(Z,j)|0)+Math.imul(R,T)|0,n=n+Math.imul(R,j)|0,r=r+Math.imul(x,K)|0,i=(i=i+Math.imul(x,P)|0)+Math.imul(S,K)|0,n=n+Math.imul(S,P)|0,r=r+Math.imul(k,F)|0,i=(i=i+Math.imul(k,C)|0)+Math.imul(A,F)|0,n=n+Math.imul(A,C)|0,r=r+Math.imul(b,D)|0,i=(i=i+Math.imul(b,H)|0)+Math.imul(_,D)|0,n=n+Math.imul(_,H)|0,r=r+Math.imul(c,J)|0,i=(i=i+Math.imul(c,U)|0)+Math.imul(w,J)|0,n=n+Math.imul(w,U)|0,r=r+Math.imul(v,G)|0,i=(i=i+Math.imul(v,Q)|0)+Math.imul(g,G)|0,n=n+Math.imul(g,Q)|0;var gt=(u+(r=r+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(p,V)|0))<<13)|0;u=((n=n+Math.imul(p,W)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(N,E),i=(i=Math.imul(N,O))+Math.imul(L,E)|0,n=Math.imul(L,O),r=r+Math.imul(q,T)|0,i=(i=i+Math.imul(q,j)|0)+Math.imul(B,T)|0,n=n+Math.imul(B,j)|0,r=r+Math.imul(Z,K)|0,i=(i=i+Math.imul(Z,P)|0)+Math.imul(R,K)|0,n=n+Math.imul(R,P)|0,r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,C)|0)+Math.imul(S,F)|0,n=n+Math.imul(S,C)|0,r=r+Math.imul(k,D)|0,i=(i=i+Math.imul(k,H)|0)+Math.imul(A,D)|0,n=n+Math.imul(A,H)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,U)|0)+Math.imul(_,J)|0,n=n+Math.imul(_,U)|0,r=r+Math.imul(c,G)|0,i=(i=i+Math.imul(c,Q)|0)+Math.imul(w,G)|0,n=n+Math.imul(w,Q)|0,r=r+Math.imul(v,V)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(g,V)|0,n=n+Math.imul(g,W)|0;var ct=(u+(r=r+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(p,X)|0))<<13)|0;u=((n=n+Math.imul(p,Y)|0)+(i>>>13)|0)+(ct>>>26)|0,ct&=67108863,r=Math.imul(I,E),i=(i=Math.imul(I,O))+Math.imul(z,E)|0,n=Math.imul(z,O),r=r+Math.imul(N,T)|0,i=(i=i+Math.imul(N,j)|0)+Math.imul(L,T)|0,n=n+Math.imul(L,j)|0,r=r+Math.imul(q,K)|0,i=(i=i+Math.imul(q,P)|0)+Math.imul(B,K)|0,n=n+Math.imul(B,P)|0,r=r+Math.imul(Z,F)|0,i=(i=i+Math.imul(Z,C)|0)+Math.imul(R,F)|0,n=n+Math.imul(R,C)|0,r=r+Math.imul(x,D)|0,i=(i=i+Math.imul(x,H)|0)+Math.imul(S,D)|0,n=n+Math.imul(S,H)|0,r=r+Math.imul(k,J)|0,i=(i=i+Math.imul(k,U)|0)+Math.imul(A,J)|0,n=n+Math.imul(A,U)|0,r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,Q)|0)+Math.imul(_,G)|0,n=n+Math.imul(_,Q)|0,r=r+Math.imul(c,V)|0,i=(i=i+Math.imul(c,W)|0)+Math.imul(w,V)|0,n=n+Math.imul(w,W)|0,r=r+Math.imul(v,X)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(g,X)|0,n=n+Math.imul(g,Y)|0;var wt=(u+(r=r+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,tt)|0)+Math.imul(p,$)|0))<<13)|0;u=((n=n+Math.imul(p,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(I,T),i=(i=Math.imul(I,j))+Math.imul(z,T)|0,n=Math.imul(z,j),r=r+Math.imul(N,K)|0,i=(i=i+Math.imul(N,P)|0)+Math.imul(L,K)|0,n=n+Math.imul(L,P)|0,r=r+Math.imul(q,F)|0,i=(i=i+Math.imul(q,C)|0)+Math.imul(B,F)|0,n=n+Math.imul(B,C)|0,r=r+Math.imul(Z,D)|0,i=(i=i+Math.imul(Z,H)|0)+Math.imul(R,D)|0,n=n+Math.imul(R,H)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,U)|0)+Math.imul(S,J)|0,n=n+Math.imul(S,U)|0,r=r+Math.imul(k,G)|0,i=(i=i+Math.imul(k,Q)|0)+Math.imul(A,G)|0,n=n+Math.imul(A,Q)|0,r=r+Math.imul(b,V)|0,i=(i=i+Math.imul(b,W)|0)+Math.imul(_,V)|0,n=n+Math.imul(_,W)|0,r=r+Math.imul(c,X)|0,i=(i=i+Math.imul(c,Y)|0)+Math.imul(w,X)|0,n=n+Math.imul(w,Y)|0;var yt=(u+(r=r+Math.imul(v,$)|0)|0)+((8191&(i=(i=i+Math.imul(v,tt)|0)+Math.imul(g,$)|0))<<13)|0;u=((n=n+Math.imul(g,tt)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(I,K),i=(i=Math.imul(I,P))+Math.imul(z,K)|0,n=Math.imul(z,P),r=r+Math.imul(N,F)|0,i=(i=i+Math.imul(N,C)|0)+Math.imul(L,F)|0,n=n+Math.imul(L,C)|0,r=r+Math.imul(q,D)|0,i=(i=i+Math.imul(q,H)|0)+Math.imul(B,D)|0,n=n+Math.imul(B,H)|0,r=r+Math.imul(Z,J)|0,i=(i=i+Math.imul(Z,U)|0)+Math.imul(R,J)|0,n=n+Math.imul(R,U)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,Q)|0)+Math.imul(S,G)|0,n=n+Math.imul(S,Q)|0,r=r+Math.imul(k,V)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(A,V)|0,n=n+Math.imul(A,W)|0,r=r+Math.imul(b,X)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(_,X)|0,n=n+Math.imul(_,Y)|0;var bt=(u+(r=r+Math.imul(c,$)|0)|0)+((8191&(i=(i=i+Math.imul(c,tt)|0)+Math.imul(w,$)|0))<<13)|0;u=((n=n+Math.imul(w,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(I,F),i=(i=Math.imul(I,C))+Math.imul(z,F)|0,n=Math.imul(z,C),r=r+Math.imul(N,D)|0,i=(i=i+Math.imul(N,H)|0)+Math.imul(L,D)|0,n=n+Math.imul(L,H)|0,r=r+Math.imul(q,J)|0,i=(i=i+Math.imul(q,U)|0)+Math.imul(B,J)|0,n=n+Math.imul(B,U)|0,r=r+Math.imul(Z,G)|0,i=(i=i+Math.imul(Z,Q)|0)+Math.imul(R,G)|0,n=n+Math.imul(R,Q)|0,r=r+Math.imul(x,V)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(S,V)|0,n=n+Math.imul(S,W)|0,r=r+Math.imul(k,X)|0,i=(i=i+Math.imul(k,Y)|0)+Math.imul(A,X)|0,n=n+Math.imul(A,Y)|0;var _t=(u+(r=r+Math.imul(b,$)|0)|0)+((8191&(i=(i=i+Math.imul(b,tt)|0)+Math.imul(_,$)|0))<<13)|0;u=((n=n+Math.imul(_,tt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(I,D),i=(i=Math.imul(I,H))+Math.imul(z,D)|0,n=Math.imul(z,H),r=r+Math.imul(N,J)|0,i=(i=i+Math.imul(N,U)|0)+Math.imul(L,J)|0,n=n+Math.imul(L,U)|0,r=r+Math.imul(q,G)|0,i=(i=i+Math.imul(q,Q)|0)+Math.imul(B,G)|0,n=n+Math.imul(B,Q)|0,r=r+Math.imul(Z,V)|0,i=(i=i+Math.imul(Z,W)|0)+Math.imul(R,V)|0,n=n+Math.imul(R,W)|0,r=r+Math.imul(x,X)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(S,X)|0,n=n+Math.imul(S,Y)|0;var kt=(u+(r=r+Math.imul(k,$)|0)|0)+((8191&(i=(i=i+Math.imul(k,tt)|0)+Math.imul(A,$)|0))<<13)|0;u=((n=n+Math.imul(A,tt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(I,J),i=(i=Math.imul(I,U))+Math.imul(z,J)|0,n=Math.imul(z,U),r=r+Math.imul(N,G)|0,i=(i=i+Math.imul(N,Q)|0)+Math.imul(L,G)|0,n=n+Math.imul(L,Q)|0,r=r+Math.imul(q,V)|0,i=(i=i+Math.imul(q,W)|0)+Math.imul(B,V)|0,n=n+Math.imul(B,W)|0,r=r+Math.imul(Z,X)|0,i=(i=i+Math.imul(Z,Y)|0)+Math.imul(R,X)|0,n=n+Math.imul(R,Y)|0;var At=(u+(r=r+Math.imul(x,$)|0)|0)+((8191&(i=(i=i+Math.imul(x,tt)|0)+Math.imul(S,$)|0))<<13)|0;u=((n=n+Math.imul(S,tt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(I,G),i=(i=Math.imul(I,Q))+Math.imul(z,G)|0,n=Math.imul(z,Q),r=r+Math.imul(N,V)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(L,V)|0,n=n+Math.imul(L,W)|0,r=r+Math.imul(q,X)|0,i=(i=i+Math.imul(q,Y)|0)+Math.imul(B,X)|0,n=n+Math.imul(B,Y)|0;var xt=(u+(r=r+Math.imul(Z,$)|0)|0)+((8191&(i=(i=i+Math.imul(Z,tt)|0)+Math.imul(R,$)|0))<<13)|0;u=((n=n+Math.imul(R,tt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(I,V),i=(i=Math.imul(I,W))+Math.imul(z,V)|0,n=Math.imul(z,W),r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(L,X)|0,n=n+Math.imul(L,Y)|0;var St=(u+(r=r+Math.imul(q,$)|0)|0)+((8191&(i=(i=i+Math.imul(q,tt)|0)+Math.imul(B,$)|0))<<13)|0;u=((n=n+Math.imul(B,tt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(I,X),i=(i=Math.imul(I,Y))+Math.imul(z,X)|0,n=Math.imul(z,Y);var Zt=(u+(r=r+Math.imul(N,$)|0)|0)+((8191&(i=(i=i+Math.imul(N,tt)|0)+Math.imul(L,$)|0))<<13)|0;u=((n=n+Math.imul(L,tt)|0)+(i>>>13)|0)+(Zt>>>26)|0,Zt&=67108863;var Rt=(u+(r=Math.imul(I,$))|0)+((8191&(i=(i=Math.imul(I,tt))+Math.imul(z,$)|0))<<13)|0;return u=((n=Math.imul(z,tt))+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,a[0]=lt,a[1]=mt,a[2]=ft,a[3]=dt,a[4]=pt,a[5]=Mt,a[6]=vt,a[7]=gt,a[8]=ct,a[9]=wt,a[10]=yt,a[11]=bt,a[12]=_t,a[13]=kt,a[14]=At,a[15]=xt,a[16]=St,a[17]=Zt,a[18]=Rt,u!==0&&(a[19]=u,e.length++),e};function Et(t,h,e){return new ht().mulp(t,h,e)}function ht(t,h){this.x=t,this.y=h}Math.imul||(zt=It),s.prototype.mulTo=function(t,h){var e,r=this.length+t.length;return e=this.length===10&&t.length===10?zt(this,t,h):r<63?It(this,t,h):r<1024?function(i,n,o){o.negative=n.negative^i.negative,o.length=i.length+n.length;for(var l=0,a=0,u=0;u>>26)|0)>>>26,f&=67108863}o.words[u]=d,l=f,f=a}return l!==0?o.words[u]=l:o.length--,o.strip()}(this,t,h):Et(this,t,h),e},ht.prototype.makeRBT=function(t){for(var h=Array(t),e=s.prototype._countBits(t)-1,r=0;r>=1;return r},ht.prototype.permute=function(t,h,e,r,i,n){for(var o=0;o>>=1)i++;return 1<>>=13,e[2*n+1]=8191&i,i>>>=13;for(n=2*h;n>=26,h+=r/67108864|0,h+=i>>>26,this.words[e]=67108863&i}return h!==0&&(this.words[e]=h,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var h=function(n){for(var o=Array(n.bitLength()),l=0;l>>u}return o}(t);if(h.length===0)return new s(1);for(var e=this,r=0;r=0);var h,e=t%26,r=(t-e)/26,i=67108863>>>26-e<<26-e;if(e!==0){var n=0;for(h=0;h>>26-e}n&&(this.words[h]=n,this.length++)}if(r!==0){for(h=this.length-1;h>=0;h--)this.words[h+r]=this.words[h];for(h=0;h=0),r=h?(h-h%26)/26:0;var i=t%26,n=Math.min((t-i)/26,this.length),o=67108863^67108863>>>i<n)for(this.length-=n,a=0;a=0&&(u!==0||a>=r);a--){var f=0|this.words[a];this.words[a]=u<<26-i|f>>>i,u=f&o}return l&&u!==0&&(l.words[l.length++]=u),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,h,e){return m(this.negative===0),this.iushrn(t,h,e)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){m(typeof t=="number"&&t>=0);var h=t%26,e=(t-h)/26,r=1<=0);var h=t%26,e=(t-h)/26;if(m(this.negative===0,"imaskn works only with positive numbers"),this.length<=e)return this;if(h!==0&&e++,this.length=Math.min(e,this.length),h!==0){var r=67108863^67108863>>>h<=67108864;h++)this.words[h]-=67108864,h===this.length-1?this.words[h+1]=1:this.words[h+1]++;return this.length=Math.max(this.length,h+1),this},s.prototype.isubn=function(t){if(m(typeof t=="number"),m(t<67108864),t<0)return this.iaddn(-t);if(this.negative!==0)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var h=0;h>26)-(l/67108864|0),this.words[r+e]=67108863&i}for(;r>26,this.words[r+e]=67108863&i;if(o===0)return this.strip();for(m(o===-1),o=0,r=0;r>26,this.words[r]=67108863&i;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,h){var e=(this.length,t.length),r=this.clone(),i=t,n=0|i.words[i.length-1];(e=26-this._countBits(n))!==0&&(i=i.ushln(e),r.iushln(e),n=0|i.words[i.length-1]);var o,l=r.length-i.length;if(h!=="mod"){(o=new s(null)).length=l+1,o.words=Array(o.length);for(var a=0;a=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/n|0,67108863),r._ishlnsubmul(i,d,f);r.negative!==0;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);o&&(o.words[f]=d)}return o&&o.strip(),r.strip(),h!=="div"&&e!==0&&r.iushrn(e),{div:o||null,mod:r}},s.prototype.divmod=function(t,h,e){return m(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:this.negative!==0&&t.negative===0?(n=this.neg().divmod(t,h),h!=="mod"&&(r=n.div.neg()),h!=="div"&&(i=n.mod.neg(),e&&i.negative!==0&&i.iadd(t)),{div:r,mod:i}):this.negative===0&&t.negative!==0?(n=this.divmod(t.neg(),h),h!=="mod"&&(r=n.div.neg()),{div:r,mod:n.mod}):(this.negative&t.negative)!=0?(n=this.neg().divmod(t.neg(),h),h!=="div"&&(i=n.mod.neg(),e&&i.negative!==0&&i.isub(t)),{div:n.div,mod:i}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:t.length===1?h==="div"?{div:this.divn(t.words[0]),mod:null}:h==="mod"?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,h);var r,i,n},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var h=this.divmod(t);if(h.mod.isZero())return h.div;var e=h.div.negative!==0?h.mod.isub(t):h.mod,r=t.ushrn(1),i=t.andln(1),n=e.cmp(r);return n<0||i===1&&n===0?h.div:h.div.negative!==0?h.div.isubn(1):h.div.iaddn(1)},s.prototype.modn=function(t){m(t<=67108863);for(var h=(1<<26)%t,e=0,r=this.length-1;r>=0;r--)e=(h*e+(0|this.words[r]))%t;return e},s.prototype.idivn=function(t){m(t<=67108863);for(var h=0,e=this.length-1;e>=0;e--){var r=(0|this.words[e])+67108864*h;this.words[e]=r/t|0,h=r%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){m(t.negative===0),m(!t.isZero());var h=this,e=t.clone();h=h.negative!==0?h.umod(t):h.clone();for(var r=new s(1),i=new s(0),n=new s(0),o=new s(1),l=0;h.isEven()&&e.isEven();)h.iushrn(1),e.iushrn(1),++l;for(var a=e.clone(),u=h.clone();!h.isZero();){for(var f=0,d=1;(h.words[0]&d)==0&&f<26;++f,d<<=1);if(f>0)for(h.iushrn(f);f-- >0;)(r.isOdd()||i.isOdd())&&(r.iadd(a),i.isub(u)),r.iushrn(1),i.iushrn(1);for(var p=0,M=1;(e.words[0]&M)==0&&p<26;++p,M<<=1);if(p>0)for(e.iushrn(p);p-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(a),o.isub(u)),n.iushrn(1),o.iushrn(1);h.cmp(e)>=0?(h.isub(e),r.isub(n),i.isub(o)):(e.isub(h),n.isub(r),o.isub(i))}return{a:n,b:o,gcd:e.iushln(l)}},s.prototype._invmp=function(t){m(t.negative===0),m(!t.isZero());var h=this,e=t.clone();h=h.negative!==0?h.umod(t):h.clone();for(var r,i=new s(1),n=new s(0),o=e.clone();h.cmpn(1)>0&&e.cmpn(1)>0;){for(var l=0,a=1;(h.words[0]&a)==0&&l<26;++l,a<<=1);if(l>0)for(h.iushrn(l);l-- >0;)i.isOdd()&&i.iadd(o),i.iushrn(1);for(var u=0,f=1;(e.words[0]&f)==0&&u<26;++u,f<<=1);if(u>0)for(e.iushrn(u);u-- >0;)n.isOdd()&&n.iadd(o),n.iushrn(1);h.cmp(e)>=0?(h.isub(e),i.isub(n)):(e.isub(h),n.isub(i))}return(r=h.cmpn(1)===0?i:n).cmpn(0)<0&&r.iadd(t),r},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var h=this.clone(),e=t.clone();h.negative=0,e.negative=0;for(var r=0;h.isEven()&&e.isEven();r++)h.iushrn(1),e.iushrn(1);for(;;){for(;h.isEven();)h.iushrn(1);for(;e.isEven();)e.iushrn(1);var i=h.cmp(e);if(i<0){var n=h;h=e,e=n}else if(i===0||e.cmpn(1)===0)break;h.isub(e)}return e.iushln(r)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return(1&this.words[0])==0},s.prototype.isOdd=function(){return(1&this.words[0])==1},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){m(typeof t=="number");var h=t%26,e=(t-h)/26,r=1<>>26,o&=67108863,this.words[n]=o}return i!==0&&(this.words[n]=i,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(t){var h,e=t<0;if(this.negative!==0&&!e)return-1;if(this.negative===0&&e)return 1;if(this.strip(),this.length>1)h=1;else{e&&(t=-t),m(t<=67108863,"Number is too big");var r=0|this.words[0];h=r===t?0:rt.length)return 1;if(this.length=0;e--){var r=0|this.words[e],i=0|t.words[e];if(r!==i){ri&&(h=1);break}}return h},s.prototype.gtn=function(t){return this.cmpn(t)===1},s.prototype.gt=function(t){return this.cmp(t)===1},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return this.cmpn(t)===-1},s.prototype.lt=function(t){return this.cmp(t)===-1},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return this.cmpn(t)===0},s.prototype.eq=function(t){return this.cmp(t)===0},s.red=function(t){return new y(t)},s.prototype.toRed=function(t){return m(!this.red,"Already a number in reduction context"),m(this.negative===0,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return m(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return m(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return m(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return m(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return m(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return m(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return m(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return m(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return m(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return m(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return m(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return m(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return m(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var ut={k256:null,p224:null,p192:null,p25519:null};function it(t,h){this.name=t,this.p=new s(h,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function st(){it.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function Ot(){it.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function Tt(){it.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function at(){it.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function y(t){if(typeof t=="string"){var h=s._prime(t);this.m=h.p,this.prime=h}else m(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function nt(t){y.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}it.prototype._tmp=function(){var t=new s(null);return t.words=Array(Math.ceil(this.n/13)),t},it.prototype.ireduce=function(t){var h,e=t;do this.split(e,this.tmp),h=(e=(e=this.imulK(e)).iadd(this.tmp)).bitLength();while(h>this.n);var r=h0?e.isub(this.p):e.strip(),e},it.prototype.split=function(t,h){t.iushrn(this.n,0,h)},it.prototype.imulK=function(t){return t.imul(this.k)},et(st,it),st.prototype.split=function(t,h){for(var e=4194303,r=Math.min(t.length,9),i=0;i>>22,n=o}n>>>=22,t.words[i-10]=n,n===0&&t.length>10?t.length-=10:t.length-=9},st.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var h=0,e=0;e>>=26,t.words[e]=i,h=r}return h!==0&&(t.words[t.length++]=h),t},s._prime=function(t){if(ut[t])return ut[t];var h;if(t==="k256")h=new st;else if(t==="p224")h=new Ot;else if(t==="p192")h=new Tt;else{if(t!=="p25519")throw Error("Unknown prime "+t);h=new at}return ut[t]=h,h},y.prototype._verify1=function(t){m(t.negative===0,"red works only with positives"),m(t.red,"red works only with red numbers")},y.prototype._verify2=function(t,h){m((t.negative|h.negative)==0,"red works only with positives"),m(t.red&&t.red===h.red,"red works only with red numbers")},y.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},y.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},y.prototype.add=function(t,h){this._verify2(t,h);var e=t.add(h);return e.cmp(this.m)>=0&&e.isub(this.m),e._forceRed(this)},y.prototype.iadd=function(t,h){this._verify2(t,h);var e=t.iadd(h);return e.cmp(this.m)>=0&&e.isub(this.m),e},y.prototype.sub=function(t,h){this._verify2(t,h);var e=t.sub(h);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},y.prototype.isub=function(t,h){this._verify2(t,h);var e=t.isub(h);return e.cmpn(0)<0&&e.iadd(this.m),e},y.prototype.shl=function(t,h){return this._verify1(t),this.imod(t.ushln(h))},y.prototype.imul=function(t,h){return this._verify2(t,h),this.imod(t.imul(h))},y.prototype.mul=function(t,h){return this._verify2(t,h),this.imod(t.mul(h))},y.prototype.isqr=function(t){return this.imul(t,t.clone())},y.prototype.sqr=function(t){return this.mul(t,t)},y.prototype.sqrt=function(t){if(t.isZero())return t.clone();var h=this.m.andln(3);if(m(h%2==1),h===3){var e=this.m.add(new s(1)).iushrn(2);return this.pow(t,e)}for(var r=this.m.subn(1),i=0;!r.isZero()&&r.andln(1)===0;)i++,r.iushrn(1);m(!r.isZero());var n=new s(1).toRed(this),o=n.redNeg(),l=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new s(2*a*a).toRed(this);this.pow(a,l).cmp(o)!==0;)a.redIAdd(o);for(var u=this.pow(a,r),f=this.pow(t,r.addn(1).iushrn(1)),d=this.pow(t,r),p=i;d.cmp(n)!==0;){for(var M=d,v=0;M.cmp(n)!==0;v++)M=M.redSqr();m(v=0;r--){for(var a=h.words[r],u=l-1;u>=0;u--){var f=a>>u&1;i!==e[0]&&(i=this.sqr(i)),f!==0||n!==0?(n<<=1,n|=f,(++o===4||r===0&&u===0)&&(i=this.mul(i,e[n]),o=0,n=0)):o=0}l=26}return i},y.prototype.convertTo=function(t){var h=t.umod(this.m);return h===t?h.clone():h},y.prototype.convertFrom=function(t){var h=t.clone();return h.red=null,h},s.mont=function(t){return new nt(t)},et(nt,y),nt.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},nt.prototype.convertFrom=function(t){var h=this.imod(t.mul(this.rinv));return h.red=null,h},nt.prototype.imul=function(t,h){if(t.isZero()||h.isZero())return t.words[0]=0,t.length=1,t;var e=t.imul(h),r=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=e.isub(r).iushrn(this.shift),n=i;return i.cmp(this.m)>=0?n=i.isub(this.m):i.cmpn(0)<0&&(n=i.iadd(this.m)),n._forceRed(this)},nt.prototype.mul=function(t,h){if(t.isZero()||h.isZero())return new s(0)._forceRed(this);var e=t.mul(h),r=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=e.isub(r).iushrn(this.shift),n=i;return i.cmp(this.m)>=0?n=i.isub(this.m):i.cmpn(0)<0&&(n=i.iadd(this.m)),n._forceRed(this)},nt.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}})(ii,si)});export{ui as __moduleExports,ui as default}; diff --git a/public/js/build/calendar.1cc28b56.js b/public/js/build/calendar.0167b7c7.js similarity index 99% rename from public/js/build/calendar.1cc28b56.js rename to public/js/build/calendar.0167b7c7.js index 678948b6c..4f4433fa5 100644 --- a/public/js/build/calendar.1cc28b56.js +++ b/public/js/build/calendar.0167b7c7.js @@ -1,4 +1,4 @@ -import{e as vs,f as Ss,n as tr,b as Es,m as Cs,c as Ds,d as Ps}from"./app.3d81bfbf.js";import{T as ks}from"./TaskMenu.bdcf4604.js";var nr={exports:{}},ir={exports:{}};/*! +import{e as vs,f as Ss,n as tr,b as Es,m as Cs,c as Ds,d as Ps}from"./app.28437e7d.js";import{T as ks}from"./TaskMenu.98a91192.js";var nr={exports:{}},ir={exports:{}};/*! * tui-code-snippet.js * @version 1.5.2 * @author NHN. FE Development Lab diff --git a/public/js/build/checkin.da301f3f.js b/public/js/build/checkin.3166564c.js similarity index 99% rename from public/js/build/checkin.da301f3f.js rename to public/js/build/checkin.3166564c.js index 14384abc9..ae5d5c14b 100644 --- a/public/js/build/checkin.da301f3f.js +++ b/public/js/build/checkin.3166564c.js @@ -1 +1 @@ -import{n as h}from"./app.3d81bfbf.js";var d=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"checkin-calendar"},[e("div",{staticClass:"calendar-header"},[e("div",{staticClass:"calendar-header-menu"},[e("Icon",{staticClass:"month-less",attrs:{type:"ios-arrow-back"},on:{click:t.prevMonth}}),e("h4",[t._v(t._s(t.$L("(*)\u5E74(*)\u6708",t.year,t.month)))]),t.hasNextMonth?e("Icon",{staticClass:"month-add",attrs:{type:"ios-arrow-forward"},on:{click:t.nextMonth}}):t._e()],1),t.hasNextMonth?e("Button",{staticClass:"calendar-header-back",attrs:{size:"small"},on:{click:t.nowMonth}},[t._v(t._s(t.$L("\u8FD4\u56DE\u672C\u6708")))]):t._e()],1),e("table",{staticClass:"check-table"},[e("thead",[e("tr",[e("th",[t._v(t._s(t.$L("\u65E5")))]),e("th",[t._v(t._s(t.$L("\u4E00")))]),e("th",[t._v(t._s(t.$L("\u4E8C")))]),e("th",[t._v(t._s(t.$L("\u4E09")))]),e("th",[t._v(t._s(t.$L("\u56DB")))]),e("th",[t._v(t._s(t.$L("\u4E94")))]),e("th",[t._v(t._s(t.$L("\u516D")))])])]),e("tbody",t._l(t.dateArray,function(s){return e("tr",[t._l(s,function(n){return[n.month?e("td",{class:{today:n.today,checkin:t.isCheck(n.date)}},[e("ETooltip",{attrs:{"max-width":"auto",disabled:!t.isCheck(n.date)}},[e("div",{attrs:{slot:"content"},domProps:{innerHTML:t._s(t.getTimes(n.date))},slot:"content"}),e("div",{staticClass:"item-day"},[n.today?e("div",[t._v(t._s(t.$L("\u4ECA\u5929")))]):e("div",[t._v(t._s(n.day))]),t.isCheck(n.date)?e("div",{staticClass:"ui-state-down"},[t._v(t._s(t.$L("\u5DF2\u7B7E\u5230")))]):n.today?e("div",{staticClass:"ui-state-default"},[t._v(t._s(t.$L("\u5C1A\u672A\u7B7E\u5230")))]):t._e()])])],1):e("td",{staticClass:"disabled"},[e("div",{staticClass:"item-day"},[e("div",[t._v(t._s(n.day))]),t.isCheck(n.date)?e("div",{staticClass:"ui-state-down"},[t._v(t._s(t.$L("\u5DF2\u7B7E\u5230")))]):t._e()])])]})],2)}),0)]),t.loadIng?e("div",{staticClass:"calendar-loading"},[e("Loading")],1):t._e()])},m=[];const _={name:"CheckinCalendar",props:{checkin:{type:Array},loadIng:{type:Boolean,default:!1}},data(){return{year:"",month:"",startTime:"",endTime:"",dateArray:[],historys:[]}},created(){const t=new Date;this.year=t.getFullYear(),this.month=t.getMonth()+1,this.generateCalendar()},watch:{checkin:{handler(t){t.some(({date:a,section:e})=>{a=a.replace(/-0?/g,"/");let s=this.historys.findIndex(n=>n.date==a);s>-1?this.historys.splice(s,1,{date:a,section:e}):this.historys.push({date:a,section:e})})},immediate:!0}},computed:{hasNextMonth(){const{year:t,month:a}=this;return parseInt(t)!=$A.formatDate("Y")||parseInt(a)<$A.formatDate("m")}},methods:{ym(){return this.year+"-"+(this.month<10?"0"+this.month:this.month)},isCheck(t){return!!this.historys.find(a=>a.date==t)},setMonth(t){this.$emit("setMonth",t,[this.startTime,this.endTime])},getTimes(t){const a=this.historys.find(e=>e.date==t);return a==null?void 0:a.section.map(e=>`${e[0]} - ${e[1]||"None"}`).join("
    ")},generateCalendar(){let t=new Date($A.formatDate("Y/m/d")),a=new Date(this.year,this.month-1,1),e=a.getTime()-a.getDay()*86400*1e3,s=[];for(let n=0;n<6;n++){s[n]=[];for(let i=0;i<7;i++){let r=new Date(e),o=r.getMonth()+1;s[n][i]={day:r.getDate(),date:`${r.getFullYear()}/${o}/${r.getDate()}`,today:t.getTime()==r.getTime(),future:t.getTime()0?e("div",{staticClass:"setting-checkin-load"},[e("Loading")],1):e("Timeline",{staticClass:"setting-checkin-lately"},t._l(t.latelyData,function(s,n){return e("TimelineItem",{key:n,attrs:{color:s.section.length>0?"blue":"#F29D38"}},[e("Icon",{attrs:{slot:"dot",type:s.section.length>0?"md-checkmark-circle":"md-close-circle"},slot:"dot"}),e("p",{staticClass:"time"},[t._v(t._s(s.date))]),e("p",{staticClass:"content",domProps:{innerHTML:t._s(s.section.length>0?t.latelySection(s.section):t.$L("\u672A\u7B7E\u5230"))}})],1)}),1),e("div",{staticClass:"setting-checkin-button",on:{click:function(s){t.calendarShow=!0}}},[t._v(t._s(t.$L("\u67E5\u770B\u66F4\u591A\u7B7E\u5230\u6570\u636E")))]),e("Divider",{attrs:{orientation:"left"}},[t._v(t._s(t.$L("\u7B7E\u5230\u8BBE\u7F6E")))]),e("Alert",[t._v(" "+t._s(t.$L("\u8BBE\u5907\u8FDE\u63A5\u4E0A\u6307\u5B9A\u8DEF\u7531\u5668\uFF08WiFi\uFF09\u540E\u81EA\u52A8\u7B7E\u5230\u3002"))+" ")]),e("div",{staticClass:"setting-checkin-row"},[e("Row",{staticClass:"setting-template"},[e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u8BBE\u5907MAC\u5730\u5740")))]),e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u5907\u6CE8")))])],1),t._l(t.formData,function(s,n){return e("Row",{key:n,staticClass:"setting-template"},[e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u8BBE\u5907MAC\u5730\u5740"),clearable:""},on:{"on-clear":function(i){return t.delDatum(n)}},model:{value:s.mac,callback:function(i){t.$set(s,"mac",i)},expression:"item.mac"}})],1),e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:100,placeholder:t.$L("\u5907\u6CE8")},model:{value:s.remark,callback:function(i){t.$set(s,"remark",i)},expression:"item.remark"}})],1)],1)})],2),e("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u8BBE\u5907")))])],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),e("Modal",{attrs:{title:t.$L("\u7B7E\u5230\u6570\u636E"),"footer-hide":"","mask-closable":!1},model:{value:t.calendarShow,callback:function(s){t.calendarShow=s},expression:"calendarShow"}},[e("CheckinCalendar",{ref:"calendar",attrs:{loadIng:t.calendarLoading>0,checkin:t.calendarData},on:{changeMonth:t.changeMonth}})],1)],1)},$=[];const g={components:{CheckinCalendar:v},data(){return{loadIng:0,formData:[],nullDatum:{mac:"",remark:""},latelyLoad:0,latelyData:[],calendarShow:!1,calendarLoading:0,calendarData:[]}},mounted(){this.initData(),this.getLately()},watch:{calendarShow(t){t&&this.$nextTick(a=>{this.changeMonth(this.$refs.calendar.ym())})}},methods:{initData(){this.loadIng++,this.$store.dispatch("call",{url:"users/checkin/get"}).then(({data:t})=>{this.formData=t.length>0?t:[$A.cloneJSON(this.nullDatum)],this.formData_bak=$A.cloneJSON(this.formData)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},submitForm(){this.$refs.formData.validate(t=>{if(t){const a=this.formData.filter(e=>/^[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}$/.test(e.mac.trim())).map(e=>({mac:e.mac.trim(),remark:e.remark.trim()}));this.loadIng++,this.$store.dispatch("call",{url:"users/checkin/save",data:{list:a},method:"post"}).then(({data:e})=>{this.formData=e,this.formData_bak=$A.cloneJSON(this.formData),$A.messageSuccess("\u4FEE\u6539\u6210\u529F")}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--})}})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)},addDatum(){this.formData.push($A.cloneJSON(this.nullDatum))},delDatum(t){this.formData.splice(t,1),this.formData.length===0&&this.addDatum()},getLately(){this.latelyLoad++,this.$store.dispatch("call",{url:"users/checkin/list",data:{ym:$A.formatDate("Y-m"),before:1}}).then(({data:t})=>{this.latelyFormat(t)}).finally(t=>{this.latelyLoad--})},latelyFormat(t){const a=$A.Time();this.latelyData=[];for(let e=0;e<5;e++){const s=$A.formatDate("Y-m-d",a-e*86400),n=t.find(({date:i})=>i==s)||{date:s,section:[]};this.latelyData.push(n)}},latelySection(t){return t.map(a=>`${a[0]} - ${a[1]||"None"}`).join("
    ")},changeMonth(t){setTimeout(a=>{this.calendarLoading++},600),this.$store.dispatch("call",{url:"users/checkin/list",data:{ym:t,before:1}}).then(({data:a})=>{this.$refs.calendar.ym()==t&&(this.calendarData=a,t==$A.formatDate("Y-m")&&this.latelyFormat(a))}).catch(({msg:a})=>{this.calendarData=[],$A.modalError(a)}).finally(a=>{this.calendarLoading--})}}},c={};var p=h(g,y,$,!1,D,null,null,null);function D(t){for(let a in c)this[a]=c[a]}var C=function(){return p.exports}();export{C as default}; +import{n as h}from"./app.28437e7d.js";var d=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"checkin-calendar"},[e("div",{staticClass:"calendar-header"},[e("div",{staticClass:"calendar-header-menu"},[e("Icon",{staticClass:"month-less",attrs:{type:"ios-arrow-back"},on:{click:t.prevMonth}}),e("h4",[t._v(t._s(t.$L("(*)\u5E74(*)\u6708",t.year,t.month)))]),t.hasNextMonth?e("Icon",{staticClass:"month-add",attrs:{type:"ios-arrow-forward"},on:{click:t.nextMonth}}):t._e()],1),t.hasNextMonth?e("Button",{staticClass:"calendar-header-back",attrs:{size:"small"},on:{click:t.nowMonth}},[t._v(t._s(t.$L("\u8FD4\u56DE\u672C\u6708")))]):t._e()],1),e("table",{staticClass:"check-table"},[e("thead",[e("tr",[e("th",[t._v(t._s(t.$L("\u65E5")))]),e("th",[t._v(t._s(t.$L("\u4E00")))]),e("th",[t._v(t._s(t.$L("\u4E8C")))]),e("th",[t._v(t._s(t.$L("\u4E09")))]),e("th",[t._v(t._s(t.$L("\u56DB")))]),e("th",[t._v(t._s(t.$L("\u4E94")))]),e("th",[t._v(t._s(t.$L("\u516D")))])])]),e("tbody",t._l(t.dateArray,function(s){return e("tr",[t._l(s,function(n){return[n.month?e("td",{class:{today:n.today,checkin:t.isCheck(n.date)}},[e("ETooltip",{attrs:{"max-width":"auto",disabled:!t.isCheck(n.date)}},[e("div",{attrs:{slot:"content"},domProps:{innerHTML:t._s(t.getTimes(n.date))},slot:"content"}),e("div",{staticClass:"item-day"},[n.today?e("div",[t._v(t._s(t.$L("\u4ECA\u5929")))]):e("div",[t._v(t._s(n.day))]),t.isCheck(n.date)?e("div",{staticClass:"ui-state-down"},[t._v(t._s(t.$L("\u5DF2\u7B7E\u5230")))]):n.today?e("div",{staticClass:"ui-state-default"},[t._v(t._s(t.$L("\u5C1A\u672A\u7B7E\u5230")))]):t._e()])])],1):e("td",{staticClass:"disabled"},[e("div",{staticClass:"item-day"},[e("div",[t._v(t._s(n.day))]),t.isCheck(n.date)?e("div",{staticClass:"ui-state-down"},[t._v(t._s(t.$L("\u5DF2\u7B7E\u5230")))]):t._e()])])]})],2)}),0)]),t.loadIng?e("div",{staticClass:"calendar-loading"},[e("Loading")],1):t._e()])},m=[];const _={name:"CheckinCalendar",props:{checkin:{type:Array},loadIng:{type:Boolean,default:!1}},data(){return{year:"",month:"",startTime:"",endTime:"",dateArray:[],historys:[]}},created(){const t=new Date;this.year=t.getFullYear(),this.month=t.getMonth()+1,this.generateCalendar()},watch:{checkin:{handler(t){t.some(({date:a,section:e})=>{a=a.replace(/-0?/g,"/");let s=this.historys.findIndex(n=>n.date==a);s>-1?this.historys.splice(s,1,{date:a,section:e}):this.historys.push({date:a,section:e})})},immediate:!0}},computed:{hasNextMonth(){const{year:t,month:a}=this;return parseInt(t)!=$A.formatDate("Y")||parseInt(a)<$A.formatDate("m")}},methods:{ym(){return this.year+"-"+(this.month<10?"0"+this.month:this.month)},isCheck(t){return!!this.historys.find(a=>a.date==t)},setMonth(t){this.$emit("setMonth",t,[this.startTime,this.endTime])},getTimes(t){const a=this.historys.find(e=>e.date==t);return a==null?void 0:a.section.map(e=>`${e[0]} - ${e[1]||"None"}`).join("
    ")},generateCalendar(){let t=new Date($A.formatDate("Y/m/d")),a=new Date(this.year,this.month-1,1),e=a.getTime()-a.getDay()*86400*1e3,s=[];for(let n=0;n<6;n++){s[n]=[];for(let i=0;i<7;i++){let r=new Date(e),o=r.getMonth()+1;s[n][i]={day:r.getDate(),date:`${r.getFullYear()}/${o}/${r.getDate()}`,today:t.getTime()==r.getTime(),future:t.getTime()0?e("div",{staticClass:"setting-checkin-load"},[e("Loading")],1):e("Timeline",{staticClass:"setting-checkin-lately"},t._l(t.latelyData,function(s,n){return e("TimelineItem",{key:n,attrs:{color:s.section.length>0?"blue":"#F29D38"}},[e("Icon",{attrs:{slot:"dot",type:s.section.length>0?"md-checkmark-circle":"md-close-circle"},slot:"dot"}),e("p",{staticClass:"time"},[t._v(t._s(s.date))]),e("p",{staticClass:"content",domProps:{innerHTML:t._s(s.section.length>0?t.latelySection(s.section):t.$L("\u672A\u7B7E\u5230"))}})],1)}),1),e("div",{staticClass:"setting-checkin-button",on:{click:function(s){t.calendarShow=!0}}},[t._v(t._s(t.$L("\u67E5\u770B\u66F4\u591A\u7B7E\u5230\u6570\u636E")))]),e("Divider",{attrs:{orientation:"left"}},[t._v(t._s(t.$L("\u7B7E\u5230\u8BBE\u7F6E")))]),e("Alert",[t._v(" "+t._s(t.$L("\u8BBE\u5907\u8FDE\u63A5\u4E0A\u6307\u5B9A\u8DEF\u7531\u5668\uFF08WiFi\uFF09\u540E\u81EA\u52A8\u7B7E\u5230\u3002"))+" ")]),e("div",{staticClass:"setting-checkin-row"},[e("Row",{staticClass:"setting-template"},[e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u8BBE\u5907MAC\u5730\u5740")))]),e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u5907\u6CE8")))])],1),t._l(t.formData,function(s,n){return e("Row",{key:n,staticClass:"setting-template"},[e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u8BBE\u5907MAC\u5730\u5740"),clearable:""},on:{"on-clear":function(i){return t.delDatum(n)}},model:{value:s.mac,callback:function(i){t.$set(s,"mac",i)},expression:"item.mac"}})],1),e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:100,placeholder:t.$L("\u5907\u6CE8")},model:{value:s.remark,callback:function(i){t.$set(s,"remark",i)},expression:"item.remark"}})],1)],1)})],2),e("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u8BBE\u5907")))])],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),e("Modal",{attrs:{title:t.$L("\u7B7E\u5230\u6570\u636E"),"footer-hide":"","mask-closable":!1},model:{value:t.calendarShow,callback:function(s){t.calendarShow=s},expression:"calendarShow"}},[e("CheckinCalendar",{ref:"calendar",attrs:{loadIng:t.calendarLoading>0,checkin:t.calendarData},on:{changeMonth:t.changeMonth}})],1)],1)},$=[];const g={components:{CheckinCalendar:v},data(){return{loadIng:0,formData:[],nullDatum:{mac:"",remark:""},latelyLoad:0,latelyData:[],calendarShow:!1,calendarLoading:0,calendarData:[]}},mounted(){this.initData(),this.getLately()},watch:{calendarShow(t){t&&this.$nextTick(a=>{this.changeMonth(this.$refs.calendar.ym())})}},methods:{initData(){this.loadIng++,this.$store.dispatch("call",{url:"users/checkin/get"}).then(({data:t})=>{this.formData=t.length>0?t:[$A.cloneJSON(this.nullDatum)],this.formData_bak=$A.cloneJSON(this.formData)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},submitForm(){this.$refs.formData.validate(t=>{if(t){const a=this.formData.filter(e=>/^[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}:[A-Fa-f\d]{2}$/.test(e.mac.trim())).map(e=>({mac:e.mac.trim(),remark:e.remark.trim()}));this.loadIng++,this.$store.dispatch("call",{url:"users/checkin/save",data:{list:a},method:"post"}).then(({data:e})=>{this.formData=e,this.formData_bak=$A.cloneJSON(this.formData),$A.messageSuccess("\u4FEE\u6539\u6210\u529F")}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--})}})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)},addDatum(){this.formData.push($A.cloneJSON(this.nullDatum))},delDatum(t){this.formData.splice(t,1),this.formData.length===0&&this.addDatum()},getLately(){this.latelyLoad++,this.$store.dispatch("call",{url:"users/checkin/list",data:{ym:$A.formatDate("Y-m"),before:1}}).then(({data:t})=>{this.latelyFormat(t)}).finally(t=>{this.latelyLoad--})},latelyFormat(t){const a=$A.Time();this.latelyData=[];for(let e=0;e<5;e++){const s=$A.formatDate("Y-m-d",a-e*86400),n=t.find(({date:i})=>i==s)||{date:s,section:[]};this.latelyData.push(n)}},latelySection(t){return t.map(a=>`${a[0]} - ${a[1]||"None"}`).join("
    ")},changeMonth(t){setTimeout(a=>{this.calendarLoading++},600),this.$store.dispatch("call",{url:"users/checkin/list",data:{ym:t,before:1}}).then(({data:a})=>{this.$refs.calendar.ym()==t&&(this.calendarData=a,t==$A.formatDate("Y-m")&&this.latelyFormat(a))}).catch(({msg:a})=>{this.calendarData=[],$A.modalError(a)}).finally(a=>{this.calendarLoading--})}}},c={};var p=h(g,y,$,!1,D,null,null,null);function D(t){for(let a in c)this[a]=c[a]}var C=function(){return p.exports}();export{C as default}; diff --git a/public/js/build/dashboard.bf35c371.js b/public/js/build/dashboard.432a58ad.js similarity index 97% rename from public/js/build/dashboard.bf35c371.js rename to public/js/build/dashboard.432a58ad.js index bc47b182d..c0f47147f 100644 --- a/public/js/build/dashboard.bf35c371.js +++ b/public/js/build/dashboard.432a58ad.js @@ -1 +1 @@ -import{m as l,c,n as d}from"./app.3d81bfbf.js";import{T as _}from"./TaskMenu.bdcf4604.js";var u=function(){var s=this,e=s.$createElement,t=s._self._c||e;return t("div",{staticClass:"page-dashboard"},[t("PageTitle",{attrs:{title:s.$L("\u4EEA\u8868\u76D8")}}),t("div",{staticClass:"dashboard-wrapper"},[s.warningMsg?t("Alert",{staticClass:"dashboard-warning",attrs:{type:"warning","show-icon":""}},[t("span",{on:{click:function(o){return s.goForward({name:"manage-setting-license"})}}},[s._v(s._s(s.warningMsg))])]):s._e(),t("div",{staticClass:"dashboard-hello"},[s._v(s._s(s.$L("\u6B22\u8FCE\u60A8\uFF0C"+s.userInfo.nickname)))]),t("div",{staticClass:"dashboard-desc"},[s._v(" "+s._s(s.$L("\u4EE5\u4E0B\u662F\u4F60\u5F53\u524D\u7684\u4EFB\u52A1\u7EDF\u8BA1\u6570\u636E"))+" "),t("transition",{attrs:{name:"dashboard-load"}},[s.loadDashboardTasks?t("div",{staticClass:"dashboard-load"},[t("Loading")],1):s._e()])],1),t("ul",{staticClass:"dashboard-block"},[t("li",{on:{click:function(o){return s.scrollTo("today")}}},[t("div",{staticClass:"block-title"},[s._v(s._s(s.getTitle("today")))]),t("div",{staticClass:"block-data"},[t("div",{staticClass:"block-num"},[s._v(s._s(s.dashboardTask.today_count))]),t("i",{staticClass:"taskfont"},[s._v("\uE6F4")])])]),t("li",{on:{click:function(o){return s.scrollTo("overdue")}}},[t("div",{staticClass:"block-title"},[s._v(s._s(s.getTitle("overdue")))]),t("div",{staticClass:"block-data"},[t("div",{staticClass:"block-num"},[s._v(s._s(s.dashboardTask.overdue_count))]),t("i",{staticClass:"taskfont"},[s._v("\uE603")])])]),t("li",{on:{click:function(o){return s.scrollTo("all")}}},[t("div",{staticClass:"block-title"},[s._v(s._s(s.getTitle("all")))]),t("div",{staticClass:"block-data"},[t("div",{staticClass:"block-num"},[s._v(s._s(s.dashboardTask.all_count))]),t("i",{staticClass:"taskfont"},[s._v("\uE6F9")])])])]),t("Scrollbar",{staticClass:"dashboard-list"},[s._l(s.columns,function(o){return o.list.length>0?[t("div",{ref:`type_${o.type}`,refInFor:!0,staticClass:"dashboard-ref"}),t("div",{staticClass:"dashboard-title"},[s._v(s._s(o.title))]),t("ul",{staticClass:"dashboard-ul"},s._l(o.list,function(a,r){return t("li",{key:r,class:{complete:a.complete_at},style:a.color?{backgroundColor:a.color}:{},on:{click:function(n){return s.openTask(a)}}},[a.p_name?t("em",{staticClass:"priority-color",style:{backgroundColor:a.p_color}}):s._e(),t("div",{staticClass:"item-select",on:{click:function(n){return n.stopPropagation(),s.openMenu(n,a)}}},[t("i",{staticClass:"taskfont",domProps:{innerHTML:s._s(a.complete_at?"":"")}})]),t("div",{staticClass:"item-title"},[a.flow_item_name?t("span",{class:a.flow_item_status,on:{click:function(n){return n.stopPropagation(),s.openMenu(n,a)}}},[s._v(s._s(a.flow_item_name))]):s._e(),a.sub_top===!0?t("span",[s._v(s._s(s.$L("\u5B50\u4EFB\u52A1")))]):s._e(),a.sub_my&&a.sub_my.length>0?t("span",[s._v("+"+s._s(a.sub_my.length))]):s._e(),s._v(" "+s._s(a.name)+" ")]),a.desc?t("div",{staticClass:"item-icon"},[t("i",{staticClass:"taskfont"},[s._v("\uE71A")])]):s._e(),a.sub_num>0?t("div",{staticClass:"item-icon"},[t("i",{staticClass:"taskfont"},[s._v("\uE71F")]),t("em",[s._v(s._s(a.sub_complete)+"/"+s._s(a.sub_num))])]):s._e(),a.end_at?t("ETooltip",{attrs:{disabled:s.$isEEUiApp||s.windowTouch,content:a.end_at,placement:"right"}},[t("div",{class:["item-icon",a.today?"today":"",a.overdue?"overdue":""]},[t("i",{staticClass:"taskfont"},[s._v("\uE71D")]),t("em",[s._v(s._s(s.expiresFormat(a.end_at)))])])]):s._e()],1)}),0)]:s._e()})],2)],1)],1)},h=[];const v={components:{TaskMenu:_},data(){return{nowTime:$A.Time(),nowInter:null,licenseTimer:null,loadIng:0,dashboard:"today",warningMsg:""}},activated(){this.$store.dispatch("getTaskForDashboard",600),this.loadInterval(!0),this.loadLicense(!0)},deactivated(){this.$store.dispatch("forgetTaskCompleteTemp",!0),this.loadInterval(!1),this.loadLicense(!1)},computed:{...l(["userInfo","userIsAdmin","cacheTasks","taskCompleteTemps","loadDashboardTasks"]),...c(["dashboardTask","assistTask","transforTasks"]),columns(){const s=[];return["today","overdue","all"].some(e=>{let t=this.transforTasks(this.dashboardTask[e]);s.push({type:e,title:this.getTitle(e),list:t.sort((o,a)=>$A.Date(o.end_at||"2099-12-31 23:59:59")-$A.Date(a.end_at||"2099-12-31 23:59:59"))})}),s.push({type:"assist",title:this.getTitle("assist"),list:this.assistTask.sort((e,t)=>$A.Date(e.end_at||"2099-12-31 23:59:59")-$A.Date(t.end_at||"2099-12-31 23:59:59"))}),s},total(){const{dashboardTask:s}=this;return s.today_count+s.overdue_count+s.all_count}},watch:{windowActive(s){this.loadInterval(s),this.loadLicense(s)}},methods:{getTitle(s){switch(s){case"today":return this.$L("\u4ECA\u65E5\u5230\u671F");case"overdue":return this.$L("\u8D85\u671F\u4EFB\u52A1");case"all":return this.$L("\u5F85\u5B8C\u6210\u4EFB\u52A1");case"assist":return this.$L("\u534F\u52A9\u7684\u4EFB\u52A1");default:return""}},scrollTo(s){$A.scrollToView(this.$refs[`type_${s}`][0],{behavior:"smooth",inline:"end"})},openTask(s){this.$store.dispatch("openTask",s)},openMenu(s,e){this.$store.state.taskOperation={event:s,task:e}},expiresFormat(s){return $A.countDownFormat(s,this.nowTime)},loadInterval(s){this.nowInter&&(clearInterval(this.nowInter),this.nowInter=null),s!==!1&&(this.nowInter=setInterval(e=>{this.nowTime=$A.Time()},1e3))},loadLicense(s){this.licenseTimer&&(clearTimeout(this.licenseTimer),this.licenseTimer=null),!(s===!1||!this.userIsAdmin)&&(this.licenseTimer=setTimeout(e=>{this.$store.dispatch("call",{url:"system/license",data:{type:"get"}}).then(({data:t})=>{this.warningMsg=t.error.length>0?t.error[0]:""}).catch(t=>{this.warningMsg=""})},1500))}}},i={};var p=d(v,u,h,!1,k,null,null,null);function k(s){for(let e in i)this[e]=i[e]}var m=function(){return p.exports}();export{m as default}; +import{m as l,c,n as d}from"./app.28437e7d.js";import{T as _}from"./TaskMenu.98a91192.js";var u=function(){var s=this,e=s.$createElement,t=s._self._c||e;return t("div",{staticClass:"page-dashboard"},[t("PageTitle",{attrs:{title:s.$L("\u4EEA\u8868\u76D8")}}),t("div",{staticClass:"dashboard-wrapper"},[s.warningMsg?t("Alert",{staticClass:"dashboard-warning",attrs:{type:"warning","show-icon":""}},[t("span",{on:{click:function(o){return s.goForward({name:"manage-setting-license"})}}},[s._v(s._s(s.warningMsg))])]):s._e(),t("div",{staticClass:"dashboard-hello"},[s._v(s._s(s.$L("\u6B22\u8FCE\u60A8\uFF0C"+s.userInfo.nickname)))]),t("div",{staticClass:"dashboard-desc"},[s._v(" "+s._s(s.$L("\u4EE5\u4E0B\u662F\u4F60\u5F53\u524D\u7684\u4EFB\u52A1\u7EDF\u8BA1\u6570\u636E"))+" "),t("transition",{attrs:{name:"dashboard-load"}},[s.loadDashboardTasks?t("div",{staticClass:"dashboard-load"},[t("Loading")],1):s._e()])],1),t("ul",{staticClass:"dashboard-block"},[t("li",{on:{click:function(o){return s.scrollTo("today")}}},[t("div",{staticClass:"block-title"},[s._v(s._s(s.getTitle("today")))]),t("div",{staticClass:"block-data"},[t("div",{staticClass:"block-num"},[s._v(s._s(s.dashboardTask.today_count))]),t("i",{staticClass:"taskfont"},[s._v("\uE6F4")])])]),t("li",{on:{click:function(o){return s.scrollTo("overdue")}}},[t("div",{staticClass:"block-title"},[s._v(s._s(s.getTitle("overdue")))]),t("div",{staticClass:"block-data"},[t("div",{staticClass:"block-num"},[s._v(s._s(s.dashboardTask.overdue_count))]),t("i",{staticClass:"taskfont"},[s._v("\uE603")])])]),t("li",{on:{click:function(o){return s.scrollTo("all")}}},[t("div",{staticClass:"block-title"},[s._v(s._s(s.getTitle("all")))]),t("div",{staticClass:"block-data"},[t("div",{staticClass:"block-num"},[s._v(s._s(s.dashboardTask.all_count))]),t("i",{staticClass:"taskfont"},[s._v("\uE6F9")])])])]),t("Scrollbar",{staticClass:"dashboard-list"},[s._l(s.columns,function(o){return o.list.length>0?[t("div",{ref:`type_${o.type}`,refInFor:!0,staticClass:"dashboard-ref"}),t("div",{staticClass:"dashboard-title"},[s._v(s._s(o.title))]),t("ul",{staticClass:"dashboard-ul"},s._l(o.list,function(a,r){return t("li",{key:r,class:{complete:a.complete_at},style:a.color?{backgroundColor:a.color}:{},on:{click:function(n){return s.openTask(a)}}},[a.p_name?t("em",{staticClass:"priority-color",style:{backgroundColor:a.p_color}}):s._e(),t("div",{staticClass:"item-select",on:{click:function(n){return n.stopPropagation(),s.openMenu(n,a)}}},[t("i",{staticClass:"taskfont",domProps:{innerHTML:s._s(a.complete_at?"":"")}})]),t("div",{staticClass:"item-title"},[a.flow_item_name?t("span",{class:a.flow_item_status,on:{click:function(n){return n.stopPropagation(),s.openMenu(n,a)}}},[s._v(s._s(a.flow_item_name))]):s._e(),a.sub_top===!0?t("span",[s._v(s._s(s.$L("\u5B50\u4EFB\u52A1")))]):s._e(),a.sub_my&&a.sub_my.length>0?t("span",[s._v("+"+s._s(a.sub_my.length))]):s._e(),s._v(" "+s._s(a.name)+" ")]),a.desc?t("div",{staticClass:"item-icon"},[t("i",{staticClass:"taskfont"},[s._v("\uE71A")])]):s._e(),a.sub_num>0?t("div",{staticClass:"item-icon"},[t("i",{staticClass:"taskfont"},[s._v("\uE71F")]),t("em",[s._v(s._s(a.sub_complete)+"/"+s._s(a.sub_num))])]):s._e(),a.end_at?t("ETooltip",{attrs:{disabled:s.$isEEUiApp||s.windowTouch,content:a.end_at,placement:"right"}},[t("div",{class:["item-icon",a.today?"today":"",a.overdue?"overdue":""]},[t("i",{staticClass:"taskfont"},[s._v("\uE71D")]),t("em",[s._v(s._s(s.expiresFormat(a.end_at)))])])]):s._e()],1)}),0)]:s._e()})],2)],1)],1)},h=[];const v={components:{TaskMenu:_},data(){return{nowTime:$A.Time(),nowInter:null,licenseTimer:null,loadIng:0,dashboard:"today",warningMsg:""}},activated(){this.$store.dispatch("getTaskForDashboard",600),this.loadInterval(!0),this.loadLicense(!0)},deactivated(){this.$store.dispatch("forgetTaskCompleteTemp",!0),this.loadInterval(!1),this.loadLicense(!1)},computed:{...l(["userInfo","userIsAdmin","cacheTasks","taskCompleteTemps","loadDashboardTasks"]),...c(["dashboardTask","assistTask","transforTasks"]),columns(){const s=[];return["today","overdue","all"].some(e=>{let t=this.transforTasks(this.dashboardTask[e]);s.push({type:e,title:this.getTitle(e),list:t.sort((o,a)=>$A.Date(o.end_at||"2099-12-31 23:59:59")-$A.Date(a.end_at||"2099-12-31 23:59:59"))})}),s.push({type:"assist",title:this.getTitle("assist"),list:this.assistTask.sort((e,t)=>$A.Date(e.end_at||"2099-12-31 23:59:59")-$A.Date(t.end_at||"2099-12-31 23:59:59"))}),s},total(){const{dashboardTask:s}=this;return s.today_count+s.overdue_count+s.all_count}},watch:{windowActive(s){this.loadInterval(s),this.loadLicense(s)}},methods:{getTitle(s){switch(s){case"today":return this.$L("\u4ECA\u65E5\u5230\u671F");case"overdue":return this.$L("\u8D85\u671F\u4EFB\u52A1");case"all":return this.$L("\u5F85\u5B8C\u6210\u4EFB\u52A1");case"assist":return this.$L("\u534F\u52A9\u7684\u4EFB\u52A1");default:return""}},scrollTo(s){$A.scrollToView(this.$refs[`type_${s}`][0],{behavior:"smooth",inline:"end"})},openTask(s){this.$store.dispatch("openTask",s)},openMenu(s,e){this.$store.state.taskOperation={event:s,task:e}},expiresFormat(s){return $A.countDownFormat(s,this.nowTime)},loadInterval(s){this.nowInter&&(clearInterval(this.nowInter),this.nowInter=null),s!==!1&&(this.nowInter=setInterval(e=>{this.nowTime=$A.Time()},1e3))},loadLicense(s){this.licenseTimer&&(clearTimeout(this.licenseTimer),this.licenseTimer=null),!(s===!1||!this.userIsAdmin)&&(this.licenseTimer=setTimeout(e=>{this.$store.dispatch("call",{url:"system/license",data:{type:"get"}}).then(({data:t})=>{this.warningMsg=t.error.length>0?t.error[0]:""}).catch(t=>{this.warningMsg=""})},1500))}}},i={};var p=d(v,u,h,!1,k,null,null,null);function k(s){for(let e in i)this[e]=i[e]}var m=function(){return p.exports}();export{m as default}; diff --git a/public/js/build/delete.4bd99a36.js b/public/js/build/delete.8ebfc31c.js similarity index 99% rename from public/js/build/delete.4bd99a36.js rename to public/js/build/delete.8ebfc31c.js index e72a65e3f..3760f4da9 100644 --- a/public/js/build/delete.4bd99a36.js +++ b/public/js/build/delete.8ebfc31c.js @@ -1 +1 @@ -import{m as a,n as o}from"./app.3d81bfbf.js";var n=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"setting-item submit"},[t.configLoad>0?e("Loading"):e("Form",{ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(r){r.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5E10\u53F7"),prop:"email"}},[t.isRegVerify==1?e("Input",{class:t.count>0?"setting-send-input":"setting-input",attrs:{search:"","enter-button":t.$L(t.sendBtnText),placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1")},on:{"on-search":t.sendEmailCode},model:{value:t.formDatum.email,callback:function(r){t.$set(t.formDatum,"email",r)},expression:"formDatum.email"}}):e("Input",{staticClass:"setting-input",attrs:{placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u5E10\u53F7")},model:{value:t.formDatum.email,callback:function(r){t.$set(t.formDatum,"email",r)},expression:"formDatum.email"}})],1),t.isRegVerify==1?e("FormItem",{attrs:{label:t.$L("\u90AE\u7BB1\u9A8C\u8BC1\u7801"),prop:"code"}},[e("Input",{attrs:{placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u9A8C\u8BC1\u7801")},model:{value:t.formDatum.code,callback:function(r){t.$set(t.formDatum,"code",r)},expression:"formDatum.code"}})],1):e("FormItem",{attrs:{label:t.$L("\u767B\u5F55\u5BC6\u7801"),prop:"code"}},[e("Input",{attrs:{type:"password",placeholder:t.$L("\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801")},model:{value:t.formDatum.password,callback:function(r){t.$set(t.formDatum,"password",r)},expression:"formDatum.password"}})],1),e("FormItem",{attrs:{label:t.$L("\u5220\u9664\u539F\u56E0")}},[e("Input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:t.$L("\u8BF7\u8F93\u5165\u5220\u9664\u539F\u56E0")},model:{value:t.formDatum.reason,callback:function(r){t.$set(t.formDatum,"reason",r)},expression:"formDatum.reason"}})],1)],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:function(r){return t.submitForm("warning")}}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),e("Modal",{staticClass:"page-setting-delete-box",attrs:{title:t.$L(`\u5220\u9664${t.appTitle}\u5E10\u53F7`)},model:{value:t.warningShow,callback:function(r){t.warningShow=r},expression:"warningShow"}},[e("div",{staticClass:"big-text"},[t._v(t._s(t.$L("\u5E10\u53F7\u5220\u9664\u540E\uFF0C\u8BE5\u5E10\u53F7\u5C06\u65E0\u6CD5\u6B63\u5E38\u767B\u5F55\u4E14\u65E0\u6CD5\u6062\u590D\uFF0C\u5E10\u53F7\u4E0B\u7684\u6240\u6709\u6570\u636E\u4E5F\u5C06\u88AB\u5220\u9664\u3002")))]),e("div",{staticClass:"small-text"},[e("div",[t._v(t._s(t.$L("\u5220\u9664\u524D\uFF0C\u8BF7\u786E\u8BA4\u4EE5\u4E0B\u4E8B\u9879\uFF1A")))]),e("div",[t._v(t._s(t.$L("1\u3001\u60A8\u5C06\u65E0\u6CD5\u67E5\u770B\u8BE5\u5E10\u53F7\u5185\u7684\u4EFB\u4F55\u4FE1\u606F\uFF0C\u5305\u62EC\u5E10\u53F7\u4FE1\u606F\u3001\u6587\u4EF6\u8BB0\u5F55\u3001\u804A\u5929\u8BB0\u5F55\u3001\u9879\u76EE\u4FE1\u606F\u3001\u56E2\u961F\u6210\u5458\u4FE1\u606F\u7B49\u3002")))]),e("div",[t._v(t._s(t.$L("2\u3001\u82E5\u4F60\u662F\u56E2\u961F\u7684\u6240\u6709\u8005\uFF0C\u8BF7\u5728\u5220\u9664\u60A8\u7684\u5E10\u53F7\u524D\u8F6C\u79FB\u6240\u6709\u6743\u3002\u4F8B\u5982\u8BE5\u5E10\u53F7\u6240\u521B\u5EFA\u7684\u9879\u76EE\uFF08\u53EF\u5C06\u9879\u76EE\u79FB\u4EA4\u4ED6\u4EBA\u6216\u5220\u9664\u9879\u76EE\uFF09\u4EE5\u53CA\u6587\u4EF6\u5939\u3002")))]),e("div",[t._v(t._s(t.$L("3\u3001\u60A8\u5C06\u9000\u51FA\u6240\u6709\u7FA4\u804A\uFF0C\u65E0\u6CD5\u67E5\u5230\u8FC7\u5F80\u6D88\u606F\u548C\u4EBA\u5458\u3002")))]),e("div",[t._v(t._s(t.$L("4\u3001\u8BF7\u4FDD\u8BC1\u5E10\u53F7\u672A\u88AB\u6682\u505C\u4F7F\u7528\u3002")))])]),e("div",{staticClass:"button-box",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:function(r){return t.submitForm("confirm")}}},[t._v(t._s(t.$L("\u5DF2\u6E05\u695A\u98CE\u9669\uFF0C\u786E\u5B9A\u5220\u9664"))+" ")])],1)])],1)},l=[];const m={data(){return{loadIng:0,configLoad:0,formDatum:{email:"",code:"",reason:"",password:""},ruleDatum:{email:[{validator:(t,s,e)=>{s.trim()===""?e(new Error(this.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u5E10\u53F7\uFF01"))):$A.isEmail(s.trim())?e():e(new Error(this.$L("\u8BF7\u8F93\u5165\u6B63\u786E\u90AE\u7BB1\u5E10\u53F7\uFF01")))},required:!0,trigger:"change"}],code:[{validator:(t,s,e)=>{s.trim()===""&&this.isRegVerify==1?e(new Error(this.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u9A8C\u8BC1\u7801"))):e()},required:!0,trigger:"change"}],password:[{validator:(t,s,e)=>{s.trim()===""&&this.isRegVerify!=1?e(new Error(this.$L("\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801"))):e()},required:!0,trigger:"change"}]},count:0,isSendButtonShow:!0,codeShow:!1,isRegVerify:0,warningShow:!1,sendBtnText:this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801")}},mounted(){this.formDatum.email=this.userInfo.email,this.getRegVerify()},computed:{...a(["userInfo","formLabelPosition","formLabelWidth"]),appTitle(){return window.systemInfo.title||"DooTask"}},methods:{sendEmailCode(){this.count>0||this.$store.dispatch("call",{url:"users/email/send",data:{type:3,email:this.formDatum.email},spinner:!0}).then(t=>{this.isSendButtonShow=!1,this.count=120,this.sendBtnText=this.count+" \u79D2";let s=setInterval(()=>{this.count--,this.sendBtnText=this.count+" \u79D2",this.count<=0&&(this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),clearInterval(s))},1e3)}).catch(({msg:t})=>{$A.messageError(t)})},submitForm(t){this.$refs.formDatum.validate(s=>{s&&(this.loadIng++,this.formDatum.type=t,this.$store.dispatch("call",{url:"users/delete/account",data:this.formDatum}).then(({data:e})=>{t==="warning"?this.warningShow=!0:($A.messageSuccess("\u5220\u9664\u6210\u529F"),this.warningShow=!1,this.$store.dispatch("saveUserInfo",e),this.isSendButtonShow=!0,this.$refs.formDatum.resetFields())}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()},getRegVerify(){this.configLoad++,this.$store.dispatch("call",{url:"system/setting/email"}).then(({data:t})=>{this.isRegVerify=t.reg_verify==="open"}).finally(t=>{this.configLoad--})}}},i={};var u=o(m,n,l,!1,d,null,null,null);function d(t){for(let s in i)this[s]=i[s]}var f=function(){return u.exports}();export{f as default}; +import{m as a,n as o}from"./app.28437e7d.js";var n=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"setting-item submit"},[t.configLoad>0?e("Loading"):e("Form",{ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(r){r.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5E10\u53F7"),prop:"email"}},[t.isRegVerify==1?e("Input",{class:t.count>0?"setting-send-input":"setting-input",attrs:{search:"","enter-button":t.$L(t.sendBtnText),placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1")},on:{"on-search":t.sendEmailCode},model:{value:t.formDatum.email,callback:function(r){t.$set(t.formDatum,"email",r)},expression:"formDatum.email"}}):e("Input",{staticClass:"setting-input",attrs:{placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u5E10\u53F7")},model:{value:t.formDatum.email,callback:function(r){t.$set(t.formDatum,"email",r)},expression:"formDatum.email"}})],1),t.isRegVerify==1?e("FormItem",{attrs:{label:t.$L("\u90AE\u7BB1\u9A8C\u8BC1\u7801"),prop:"code"}},[e("Input",{attrs:{placeholder:t.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u9A8C\u8BC1\u7801")},model:{value:t.formDatum.code,callback:function(r){t.$set(t.formDatum,"code",r)},expression:"formDatum.code"}})],1):e("FormItem",{attrs:{label:t.$L("\u767B\u5F55\u5BC6\u7801"),prop:"code"}},[e("Input",{attrs:{type:"password",placeholder:t.$L("\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801")},model:{value:t.formDatum.password,callback:function(r){t.$set(t.formDatum,"password",r)},expression:"formDatum.password"}})],1),e("FormItem",{attrs:{label:t.$L("\u5220\u9664\u539F\u56E0")}},[e("Input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:t.$L("\u8BF7\u8F93\u5165\u5220\u9664\u539F\u56E0")},model:{value:t.formDatum.reason,callback:function(r){t.$set(t.formDatum,"reason",r)},expression:"formDatum.reason"}})],1)],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:function(r){return t.submitForm("warning")}}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),e("Modal",{staticClass:"page-setting-delete-box",attrs:{title:t.$L(`\u5220\u9664${t.appTitle}\u5E10\u53F7`)},model:{value:t.warningShow,callback:function(r){t.warningShow=r},expression:"warningShow"}},[e("div",{staticClass:"big-text"},[t._v(t._s(t.$L("\u5E10\u53F7\u5220\u9664\u540E\uFF0C\u8BE5\u5E10\u53F7\u5C06\u65E0\u6CD5\u6B63\u5E38\u767B\u5F55\u4E14\u65E0\u6CD5\u6062\u590D\uFF0C\u5E10\u53F7\u4E0B\u7684\u6240\u6709\u6570\u636E\u4E5F\u5C06\u88AB\u5220\u9664\u3002")))]),e("div",{staticClass:"small-text"},[e("div",[t._v(t._s(t.$L("\u5220\u9664\u524D\uFF0C\u8BF7\u786E\u8BA4\u4EE5\u4E0B\u4E8B\u9879\uFF1A")))]),e("div",[t._v(t._s(t.$L("1\u3001\u60A8\u5C06\u65E0\u6CD5\u67E5\u770B\u8BE5\u5E10\u53F7\u5185\u7684\u4EFB\u4F55\u4FE1\u606F\uFF0C\u5305\u62EC\u5E10\u53F7\u4FE1\u606F\u3001\u6587\u4EF6\u8BB0\u5F55\u3001\u804A\u5929\u8BB0\u5F55\u3001\u9879\u76EE\u4FE1\u606F\u3001\u56E2\u961F\u6210\u5458\u4FE1\u606F\u7B49\u3002")))]),e("div",[t._v(t._s(t.$L("2\u3001\u82E5\u4F60\u662F\u56E2\u961F\u7684\u6240\u6709\u8005\uFF0C\u8BF7\u5728\u5220\u9664\u60A8\u7684\u5E10\u53F7\u524D\u8F6C\u79FB\u6240\u6709\u6743\u3002\u4F8B\u5982\u8BE5\u5E10\u53F7\u6240\u521B\u5EFA\u7684\u9879\u76EE\uFF08\u53EF\u5C06\u9879\u76EE\u79FB\u4EA4\u4ED6\u4EBA\u6216\u5220\u9664\u9879\u76EE\uFF09\u4EE5\u53CA\u6587\u4EF6\u5939\u3002")))]),e("div",[t._v(t._s(t.$L("3\u3001\u60A8\u5C06\u9000\u51FA\u6240\u6709\u7FA4\u804A\uFF0C\u65E0\u6CD5\u67E5\u5230\u8FC7\u5F80\u6D88\u606F\u548C\u4EBA\u5458\u3002")))]),e("div",[t._v(t._s(t.$L("4\u3001\u8BF7\u4FDD\u8BC1\u5E10\u53F7\u672A\u88AB\u6682\u505C\u4F7F\u7528\u3002")))])]),e("div",{staticClass:"button-box",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:function(r){return t.submitForm("confirm")}}},[t._v(t._s(t.$L("\u5DF2\u6E05\u695A\u98CE\u9669\uFF0C\u786E\u5B9A\u5220\u9664"))+" ")])],1)])],1)},l=[];const m={data(){return{loadIng:0,configLoad:0,formDatum:{email:"",code:"",reason:"",password:""},ruleDatum:{email:[{validator:(t,s,e)=>{s.trim()===""?e(new Error(this.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u5E10\u53F7\uFF01"))):$A.isEmail(s.trim())?e():e(new Error(this.$L("\u8BF7\u8F93\u5165\u6B63\u786E\u90AE\u7BB1\u5E10\u53F7\uFF01")))},required:!0,trigger:"change"}],code:[{validator:(t,s,e)=>{s.trim()===""&&this.isRegVerify==1?e(new Error(this.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u9A8C\u8BC1\u7801"))):e()},required:!0,trigger:"change"}],password:[{validator:(t,s,e)=>{s.trim()===""&&this.isRegVerify!=1?e(new Error(this.$L("\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801"))):e()},required:!0,trigger:"change"}]},count:0,isSendButtonShow:!0,codeShow:!1,isRegVerify:0,warningShow:!1,sendBtnText:this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801")}},mounted(){this.formDatum.email=this.userInfo.email,this.getRegVerify()},computed:{...a(["userInfo","formLabelPosition","formLabelWidth"]),appTitle(){return window.systemInfo.title||"DooTask"}},methods:{sendEmailCode(){this.count>0||this.$store.dispatch("call",{url:"users/email/send",data:{type:3,email:this.formDatum.email},spinner:!0}).then(t=>{this.isSendButtonShow=!1,this.count=120,this.sendBtnText=this.count+" \u79D2";let s=setInterval(()=>{this.count--,this.sendBtnText=this.count+" \u79D2",this.count<=0&&(this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),clearInterval(s))},1e3)}).catch(({msg:t})=>{$A.messageError(t)})},submitForm(t){this.$refs.formDatum.validate(s=>{s&&(this.loadIng++,this.formDatum.type=t,this.$store.dispatch("call",{url:"users/delete/account",data:this.formDatum}).then(({data:e})=>{t==="warning"?this.warningShow=!0:($A.messageSuccess("\u5220\u9664\u6210\u529F"),this.warningShow=!1,this.$store.dispatch("saveUserInfo",e),this.isSendButtonShow=!0,this.$refs.formDatum.resetFields())}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()},getRegVerify(){this.configLoad++,this.$store.dispatch("call",{url:"system/setting/email"}).then(({data:t})=>{this.isRegVerify=t.reg_verify==="open"}).finally(t=>{this.configLoad--})}}},i={};var u=o(m,n,l,!1,d,null,null,null);function d(t){for(let s in i)this[s]=i[s]}var f=function(){return u.exports}();export{f as default}; diff --git a/public/js/build/details.ee26823b.js b/public/js/build/details.70f91a78.js similarity index 99% rename from public/js/build/details.ee26823b.js rename to public/js/build/details.70f91a78.js index 2723f767c..82982aa0a 100644 --- a/public/js/build/details.ee26823b.js +++ b/public/js/build/details.70f91a78.js @@ -1 +1 @@ -import{n as T,I as x}from"./app.3d81bfbf.js";import{I as A}from"./ImgUpload.7f60f3a4.js";var S=function(){var a,i,r,o,n,d,p,m,u,h,t=this,k=t.$createElement,e=t._self._c||k;return e("div",{staticClass:"approve-details",style:{"z-index":t.modalTransferIndex}},[e("div",{staticClass:"approve-details-box"},[e("h2",{staticClass:"approve-details-title"},[e("span",[t._v(t._s(t.$L(t.datas.proc_def_name)))]),t.datas.state==0?e("Tag",{attrs:{color:"cyan"}},[t._v(t._s(t.$L("\u5F85\u5BA1\u6279")))]):t._e(),t.datas.state==1?e("Tag",{attrs:{color:"cyan"}},[t._v(t._s(t.$L("\u5BA1\u6279\u4E2D")))]):t._e(),t.datas.state==2?e("Tag",{attrs:{color:"green"}},[t._v(t._s(t.$L("\u5DF2\u901A\u8FC7")))]):t._e(),t.datas.state==3?e("Tag",{attrs:{color:"red"}},[t._v(t._s(t.$L("\u5DF2\u62D2\u7EDD")))]):t._e(),t.datas.state==4?e("Tag",{attrs:{color:"red"}},[t._v(t._s(t.$L("\u5DF2\u64A4\u56DE")))]):t._e()],1),e("h3",{staticClass:"approve-details-subtitle"},[e("Avatar",{attrs:{src:t.datas.userimg,size:"24"}}),e("span",[t._v(t._s(t.datas.start_user_name))])],1),e("h3",{staticClass:"approve-details-subtitle"},[e("span",[t._v(t._s(t.$L("\u63D0\u4EA4\u4E8E"))+" "+t._s(t.datas.start_time))])]),e("Divider"),(t.datas.proc_def_name||"").indexOf("\u73ED")==-1?e("div",{staticClass:"approve-details-text"},[e("h4",[t._v(t._s(t.$L("\u5047\u671F\u7C7B\u578B")))]),e("p",[t._v(t._s(t.$L((a=t.datas.var)===null||a===void 0?void 0:a.type)))])]):t._e(),e("div",{staticClass:"approve-details-text"},[e("h4",[t._v(t._s(t.$L("\u5F00\u59CB\u65F6\u95F4")))]),e("p",[t._v(t._s((i=t.datas.var)===null||i===void 0?void 0:i.start_time))])]),e("div",{staticClass:"approve-details-text"},[e("h4",[t._v(t._s(t.$L("\u7ED3\u675F\u65F6\u95F4")))]),e("p",[t._v(t._s((r=t.datas.var)===null||r===void 0?void 0:r.end_time))])]),e("div",{staticClass:"approve-details-text"},[e("h4",[t._v(t._s(t.$L("\u65F6\u957F"))+"\uFF08"+t._s(t.getTimeDifference((o=t.datas.var)===null||o===void 0?void 0:o.start_time,(n=t.datas.var)===null||n===void 0?void 0:n.end_time).unit)+"\uFF09")]),e("p",[t._v(t._s((d=t.datas.var)!==null&&d!==void 0&&d.start_time?t.getTimeDifference((p=t.datas.var)===null||p===void 0?void 0:p.start_time,(m=t.datas.var)===null||m===void 0?void 0:m.end_time).time:0))])]),e("div",{staticClass:"approve-details-text"},[e("h4",[t._v(t._s(t.$L("\u8BF7\u5047\u4E8B\u7531")))]),e("p",[t._v(t._s((u=t.datas.var)===null||u===void 0?void 0:u.description))])]),(h=t.datas.var)!==null&&h!==void 0&&h.other?e("div",{staticClass:"approve-details-text"},[e("h4",[t._v(t._s(t.$L("\u56FE\u7247")))]),e("div",{staticClass:"img-body"},t._l(t.datas.var.other.split(","),function(s,l){return e("div",{on:{click:function(c){return t.onViewPicture(s)}}},[e("ImgView",{key:l,staticClass:"img-view",attrs:{src:s}})],1)}),0)]):t._e(),e("Divider"),e("h3",{staticClass:"approve-details-subtitle"},[t._v(t._s(t.$L("\u5BA1\u6279\u8BB0\u5F55")))]),e("Timeline",{staticClass:"approve-record-timeline"},[t._l(t.datas.node_infos,function(s,l){var c,_,v,$,f,g,y,L,C;return[s.type=="starter"?e("TimelineItem",{key:l,attrs:{color:"green"}},[e("p",{staticClass:"timeline-title"},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("div",{staticClass:"timeline-body"},[e("Avatar",{attrs:{src:t.data.userimg||t.datas.userimg,size:"38"}}),e("div",{staticClass:"approve-process-left"},[e("p",{staticClass:"approve-process-name"},[t._v(t._s(t.data.start_user_name||t.datas.start_user_name))]),e("p",{staticClass:"approve-process-state"},[t._v(t._s(t.$L("\u5DF2\u63D0\u4EA4")))])]),e("div",{staticClass:"approve-process-right"},[parseInt(t.getTimeAgo(s.claim_time))1?"#f03f3f":"green":"#ccc"}},[e("p",{staticClass:"timeline-title"},[t._v(t._s(t.$L("\u5BA1\u6279")))]),e("div",{staticClass:"timeline-body"},[e("Avatar",{attrs:{src:s.node_user_list&&((v=s.node_user_list[0])===null||v===void 0?void 0:v.userimg)||s.userimg,size:"38"}}),e("div",{staticClass:"approve-process-left"},[e("p",{staticClass:"approve-process-name"},[t._v(t._s(s.approver))]),s.identitylink?t._e():e("p",{staticClass:"approve-process-state",staticStyle:{color:"#6d6d6d"}},[t._v("\u5F85\u5BA1\u6279")]),s.identitylink?e("p",{staticClass:"approve-process-state"},[s.identitylink.state==0?e("span",{staticStyle:{color:"#496dff"}},[t._v(t._s(t.$L("\u5BA1\u6279\u4E2D")))]):t._e(),s.identitylink.state==1?e("span",[t._v(t._s(t.$L("\u5DF2\u901A\u8FC7")))]):t._e(),s.identitylink.state==2?e("span",{staticStyle:{color:"#f03f3f"}},[t._v(t._s(t.$L("\u5DF2\u62D2\u7EDD")))]):t._e(),s.identitylink.state==3?e("span",{staticStyle:{color:"#f03f3f"}},[t._v(t._s(t.$L("\u5DF2\u64A4\u56DE")))]):t._e()]):t._e()]),e("div",{staticClass:"approve-process-right"},[parseInt(t.getTimeAgo(s.claim_time))0},on:{click:t.confirmComment}},[t._v(t._s(t.$L("\u786E\u8BA4")))])],1)],1)],1)},D=[];const b={name:"details",components:{ImgView:x,ImgUpload:A},props:{data:{type:Object,default(){return{}}}},data(){return{modalTransferIndex:window.modalTransferIndex,datas:{},showTimeNum:24,commentShow:!1,loadIng:0,commentData:{content:"",pictures:[]},commentRule:{content:{type:"string",required:!0,message:this.$L("\u8BF7\u8F93\u5165\u5185\u5BB9\uFF01"),trigger:"change"}}}},watch:{$route(a,i){a.name=="manage-approve-details"&&this.init()},data:{handler(a,i){a.id&&this.getInfo()},deep:!0}},computed:{isShowAgreeBtn(){return(this.datas.candidate||"").split(",").indexOf(this.userId+"")!=-1&&!this.datas.is_finished},isShowWarningBtn(){var i;let a=this.userId==this.datas.start_user_id&&((i=this.datas)==null?void 0:i.is_finished)!=!0;return(this.datas.node_infos||[]).map(r=>{var o;r.type!="starter"&&r.is_finished==!0&&((o=r.identitylink)==null?void 0:o.userid)!=this.userId&&(a=!1)}),a}},mounted(){this.init()},methods:{init(){this.modalTransferIndex=window.modalTransferIndex=window.modalTransferIndex+1,this.$route.query.id&&(this.data.id=this.$route.query.id,this.getInfo())},getTimeAgo(a,i){const o=(new Date-new Date((a+"").replace(/-/g,"/")))/1e3;if(o<60)return i==2?"0"+this.$L("\u5206\u949F"):this.$L("\u521A\u521A");if(o<3600){const n=Math.floor(o/60);return i==2?`${n}${this.$L("\u5206\u949F")}`:`${n} ${this.$L("\u5206\u949F\u524D")}`}else if(o<3600*24){const n=Math.floor(o/3600);return i==2?`${n}${this.$L("\u5C0F\u65F6")}`:`${n} ${this.$L("\u5C0F\u65F6\u524D")}`}else{const n=Math.floor(o/3600/24);return i==2?`${n+1}${this.$L("\u5929")}`:`${n+1} ${this.$L("\u5929")}`}},getTimeDifference(a,i){const r=new Date((i+"").replace(/-/g,"/")),o=new Date((a+"").replace(/-/g,"/")),n=(r-o)/1e3;return n<60?{time:n,unit:this.$L("\u79D2")}:n<3600?{time:Math.floor(n/60),unit:this.$L("\u5206\u949F")}:n<3600*24?{time:(r-o)/36e5,unit:this.$L("\u5C0F\u65F6")}:{time:Math.floor(n/3600/24)+1,unit:this.$L("\u5929")}},getInfo(){this.$store.dispatch("call",{method:"get",url:"approve/process/detail",data:{id:this.data.id}}).then(({data:a})=>{var i=!0;a.node_infos=a.node_infos.map(r=>{var o,n;return r._show=i,(((o=r.identitylink)==null?void 0:o.state)==2||((n=r.identitylink)==null?void 0:n.state)==3)&&(i=!1),r}),this.$nextTick(()=>{this.datas=a})}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--})},approve(a){$A.modalInput({title:"\u5BA1\u6279",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1",type:"textarea",okText:a==1?"\u540C\u610F":"\u62D2\u7EDD",onOk:i=>a!=1&&!i?"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1":(this.$store.dispatch("call",{url:"approve/task/complete",data:{task_id:this.datas.task_id,pass:a==1,comment:i}}).then(({msg:r})=>{$A.messageSuccess(r),this.$route.name=="manage-approve-details"||this.$route.name=="manage-messenger"?this.getInfo():this.$emit("approve")}).catch(({msg:r})=>{$A.modalError(r)}),!1)})},revocation(){$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u8981\u64A4\u9500\u5417\uFF1F",loading:!0,onOk:()=>new Promise((a,i)=>(this.$store.dispatch("call",{url:"approve/task/withdraw",data:{task_id:this.datas.task_id,proc_inst_id:this.datas.id}}).then(({msg:r})=>{$A.messageSuccess(r),a(),this.$route.name=="manage-approve-details"||this.$route.name=="manage-messenger"?this.getInfo():this.$emit("revocation")}).catch(({msg:r})=>{$A.modalError(r),a()}),!1))})},comment(){this.commentData.content="",this.commentData.pictures=[],this.commentShow=!0},confirmComment(){this.loadIng++,this.$store.dispatch("call",{method:"post",url:"approve/process/addGlobalComment",data:{proc_inst_id:this.data.id,content:JSON.stringify({content:this.commentData.content,pictures:this.commentData.pictures.map(a=>a.path)})}}).then(({msg:a})=>{$A.messageSuccess("\u6DFB\u52A0\u6210\u529F"),this.$route.name=="manage-approve-details"||this.$route.name=="manage-messenger"?this.getInfo():this.$emit("approve"),this.commentShow=!1}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--})},getContent(a){try{return JSON.parse(a).content||""}catch{return""}},getPictures(a){try{return JSON.parse(a).pictures||[]}catch{return""}},onViewPicture(a){this.$store.dispatch("previewImage",$A.apiUrl("../"+a))}}},w={};var B=T(b,S,D,!1,z,null,null,null);function z(a){for(let i in w)this[i]=w[i]}var V=function(){return B.exports}();export{V as default}; +import{n as T,I as x}from"./app.28437e7d.js";import{I as A}from"./ImgUpload.cbadd034.js";var S=function(){var a,i,r,o,n,d,p,m,u,h,t=this,k=t.$createElement,e=t._self._c||k;return e("div",{staticClass:"approve-details",style:{"z-index":t.modalTransferIndex}},[e("div",{staticClass:"approve-details-box"},[e("h2",{staticClass:"approve-details-title"},[e("span",[t._v(t._s(t.$L(t.datas.proc_def_name)))]),t.datas.state==0?e("Tag",{attrs:{color:"cyan"}},[t._v(t._s(t.$L("\u5F85\u5BA1\u6279")))]):t._e(),t.datas.state==1?e("Tag",{attrs:{color:"cyan"}},[t._v(t._s(t.$L("\u5BA1\u6279\u4E2D")))]):t._e(),t.datas.state==2?e("Tag",{attrs:{color:"green"}},[t._v(t._s(t.$L("\u5DF2\u901A\u8FC7")))]):t._e(),t.datas.state==3?e("Tag",{attrs:{color:"red"}},[t._v(t._s(t.$L("\u5DF2\u62D2\u7EDD")))]):t._e(),t.datas.state==4?e("Tag",{attrs:{color:"red"}},[t._v(t._s(t.$L("\u5DF2\u64A4\u56DE")))]):t._e()],1),e("h3",{staticClass:"approve-details-subtitle"},[e("Avatar",{attrs:{src:t.datas.userimg,size:"24"}}),e("span",[t._v(t._s(t.datas.start_user_name))])],1),e("h3",{staticClass:"approve-details-subtitle"},[e("span",[t._v(t._s(t.$L("\u63D0\u4EA4\u4E8E"))+" "+t._s(t.datas.start_time))])]),e("Divider"),(t.datas.proc_def_name||"").indexOf("\u73ED")==-1?e("div",{staticClass:"approve-details-text"},[e("h4",[t._v(t._s(t.$L("\u5047\u671F\u7C7B\u578B")))]),e("p",[t._v(t._s(t.$L((a=t.datas.var)===null||a===void 0?void 0:a.type)))])]):t._e(),e("div",{staticClass:"approve-details-text"},[e("h4",[t._v(t._s(t.$L("\u5F00\u59CB\u65F6\u95F4")))]),e("p",[t._v(t._s((i=t.datas.var)===null||i===void 0?void 0:i.start_time))])]),e("div",{staticClass:"approve-details-text"},[e("h4",[t._v(t._s(t.$L("\u7ED3\u675F\u65F6\u95F4")))]),e("p",[t._v(t._s((r=t.datas.var)===null||r===void 0?void 0:r.end_time))])]),e("div",{staticClass:"approve-details-text"},[e("h4",[t._v(t._s(t.$L("\u65F6\u957F"))+"\uFF08"+t._s(t.getTimeDifference((o=t.datas.var)===null||o===void 0?void 0:o.start_time,(n=t.datas.var)===null||n===void 0?void 0:n.end_time).unit)+"\uFF09")]),e("p",[t._v(t._s((d=t.datas.var)!==null&&d!==void 0&&d.start_time?t.getTimeDifference((p=t.datas.var)===null||p===void 0?void 0:p.start_time,(m=t.datas.var)===null||m===void 0?void 0:m.end_time).time:0))])]),e("div",{staticClass:"approve-details-text"},[e("h4",[t._v(t._s(t.$L("\u8BF7\u5047\u4E8B\u7531")))]),e("p",[t._v(t._s((u=t.datas.var)===null||u===void 0?void 0:u.description))])]),(h=t.datas.var)!==null&&h!==void 0&&h.other?e("div",{staticClass:"approve-details-text"},[e("h4",[t._v(t._s(t.$L("\u56FE\u7247")))]),e("div",{staticClass:"img-body"},t._l(t.datas.var.other.split(","),function(s,l){return e("div",{on:{click:function(c){return t.onViewPicture(s)}}},[e("ImgView",{key:l,staticClass:"img-view",attrs:{src:s}})],1)}),0)]):t._e(),e("Divider"),e("h3",{staticClass:"approve-details-subtitle"},[t._v(t._s(t.$L("\u5BA1\u6279\u8BB0\u5F55")))]),e("Timeline",{staticClass:"approve-record-timeline"},[t._l(t.datas.node_infos,function(s,l){var c,_,v,$,f,g,y,L,C;return[s.type=="starter"?e("TimelineItem",{key:l,attrs:{color:"green"}},[e("p",{staticClass:"timeline-title"},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("div",{staticClass:"timeline-body"},[e("Avatar",{attrs:{src:t.data.userimg||t.datas.userimg,size:"38"}}),e("div",{staticClass:"approve-process-left"},[e("p",{staticClass:"approve-process-name"},[t._v(t._s(t.data.start_user_name||t.datas.start_user_name))]),e("p",{staticClass:"approve-process-state"},[t._v(t._s(t.$L("\u5DF2\u63D0\u4EA4")))])]),e("div",{staticClass:"approve-process-right"},[parseInt(t.getTimeAgo(s.claim_time))1?"#f03f3f":"green":"#ccc"}},[e("p",{staticClass:"timeline-title"},[t._v(t._s(t.$L("\u5BA1\u6279")))]),e("div",{staticClass:"timeline-body"},[e("Avatar",{attrs:{src:s.node_user_list&&((v=s.node_user_list[0])===null||v===void 0?void 0:v.userimg)||s.userimg,size:"38"}}),e("div",{staticClass:"approve-process-left"},[e("p",{staticClass:"approve-process-name"},[t._v(t._s(s.approver))]),s.identitylink?t._e():e("p",{staticClass:"approve-process-state",staticStyle:{color:"#6d6d6d"}},[t._v("\u5F85\u5BA1\u6279")]),s.identitylink?e("p",{staticClass:"approve-process-state"},[s.identitylink.state==0?e("span",{staticStyle:{color:"#496dff"}},[t._v(t._s(t.$L("\u5BA1\u6279\u4E2D")))]):t._e(),s.identitylink.state==1?e("span",[t._v(t._s(t.$L("\u5DF2\u901A\u8FC7")))]):t._e(),s.identitylink.state==2?e("span",{staticStyle:{color:"#f03f3f"}},[t._v(t._s(t.$L("\u5DF2\u62D2\u7EDD")))]):t._e(),s.identitylink.state==3?e("span",{staticStyle:{color:"#f03f3f"}},[t._v(t._s(t.$L("\u5DF2\u64A4\u56DE")))]):t._e()]):t._e()]),e("div",{staticClass:"approve-process-right"},[parseInt(t.getTimeAgo(s.claim_time))0},on:{click:t.confirmComment}},[t._v(t._s(t.$L("\u786E\u8BA4")))])],1)],1)],1)},D=[];const b={name:"details",components:{ImgView:x,ImgUpload:A},props:{data:{type:Object,default(){return{}}}},data(){return{modalTransferIndex:window.modalTransferIndex,datas:{},showTimeNum:24,commentShow:!1,loadIng:0,commentData:{content:"",pictures:[]},commentRule:{content:{type:"string",required:!0,message:this.$L("\u8BF7\u8F93\u5165\u5185\u5BB9\uFF01"),trigger:"change"}}}},watch:{$route(a,i){a.name=="manage-approve-details"&&this.init()},data:{handler(a,i){a.id&&this.getInfo()},deep:!0}},computed:{isShowAgreeBtn(){return(this.datas.candidate||"").split(",").indexOf(this.userId+"")!=-1&&!this.datas.is_finished},isShowWarningBtn(){var i;let a=this.userId==this.datas.start_user_id&&((i=this.datas)==null?void 0:i.is_finished)!=!0;return(this.datas.node_infos||[]).map(r=>{var o;r.type!="starter"&&r.is_finished==!0&&((o=r.identitylink)==null?void 0:o.userid)!=this.userId&&(a=!1)}),a}},mounted(){this.init()},methods:{init(){this.modalTransferIndex=window.modalTransferIndex=window.modalTransferIndex+1,this.$route.query.id&&(this.data.id=this.$route.query.id,this.getInfo())},getTimeAgo(a,i){const o=(new Date-new Date((a+"").replace(/-/g,"/")))/1e3;if(o<60)return i==2?"0"+this.$L("\u5206\u949F"):this.$L("\u521A\u521A");if(o<3600){const n=Math.floor(o/60);return i==2?`${n}${this.$L("\u5206\u949F")}`:`${n} ${this.$L("\u5206\u949F\u524D")}`}else if(o<3600*24){const n=Math.floor(o/3600);return i==2?`${n}${this.$L("\u5C0F\u65F6")}`:`${n} ${this.$L("\u5C0F\u65F6\u524D")}`}else{const n=Math.floor(o/3600/24);return i==2?`${n+1}${this.$L("\u5929")}`:`${n+1} ${this.$L("\u5929")}`}},getTimeDifference(a,i){const r=new Date((i+"").replace(/-/g,"/")),o=new Date((a+"").replace(/-/g,"/")),n=(r-o)/1e3;return n<60?{time:n,unit:this.$L("\u79D2")}:n<3600?{time:Math.floor(n/60),unit:this.$L("\u5206\u949F")}:n<3600*24?{time:(r-o)/36e5,unit:this.$L("\u5C0F\u65F6")}:{time:Math.floor(n/3600/24)+1,unit:this.$L("\u5929")}},getInfo(){this.$store.dispatch("call",{method:"get",url:"approve/process/detail",data:{id:this.data.id}}).then(({data:a})=>{var i=!0;a.node_infos=a.node_infos.map(r=>{var o,n;return r._show=i,(((o=r.identitylink)==null?void 0:o.state)==2||((n=r.identitylink)==null?void 0:n.state)==3)&&(i=!1),r}),this.$nextTick(()=>{this.datas=a})}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--})},approve(a){$A.modalInput({title:"\u5BA1\u6279",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1",type:"textarea",okText:a==1?"\u540C\u610F":"\u62D2\u7EDD",onOk:i=>a!=1&&!i?"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1":(this.$store.dispatch("call",{url:"approve/task/complete",data:{task_id:this.datas.task_id,pass:a==1,comment:i}}).then(({msg:r})=>{$A.messageSuccess(r),this.$route.name=="manage-approve-details"||this.$route.name=="manage-messenger"?this.getInfo():this.$emit("approve")}).catch(({msg:r})=>{$A.modalError(r)}),!1)})},revocation(){$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u8981\u64A4\u9500\u5417\uFF1F",loading:!0,onOk:()=>new Promise((a,i)=>(this.$store.dispatch("call",{url:"approve/task/withdraw",data:{task_id:this.datas.task_id,proc_inst_id:this.datas.id}}).then(({msg:r})=>{$A.messageSuccess(r),a(),this.$route.name=="manage-approve-details"||this.$route.name=="manage-messenger"?this.getInfo():this.$emit("revocation")}).catch(({msg:r})=>{$A.modalError(r),a()}),!1))})},comment(){this.commentData.content="",this.commentData.pictures=[],this.commentShow=!0},confirmComment(){this.loadIng++,this.$store.dispatch("call",{method:"post",url:"approve/process/addGlobalComment",data:{proc_inst_id:this.data.id,content:JSON.stringify({content:this.commentData.content,pictures:this.commentData.pictures.map(a=>a.path)})}}).then(({msg:a})=>{$A.messageSuccess("\u6DFB\u52A0\u6210\u529F"),this.$route.name=="manage-approve-details"||this.$route.name=="manage-messenger"?this.getInfo():this.$emit("approve"),this.commentShow=!1}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--})},getContent(a){try{return JSON.parse(a).content||""}catch{return""}},getPictures(a){try{return JSON.parse(a).pictures||[]}catch{return""}},onViewPicture(a){this.$store.dispatch("previewImage",$A.apiUrl("../"+a))}}},w={};var B=T(b,S,D,!1,z,null,null,null);function z(a){for(let i in w)this[i]=w[i]}var V=function(){return B.exports}();export{V as default}; diff --git a/public/js/build/elliptic.min.90ec5b69.js b/public/js/build/elliptic.min.2279bef2.js similarity index 99% rename from public/js/build/elliptic.min.90ec5b69.js rename to public/js/build/elliptic.min.2279bef2.js index 6c98f404d..ed9c4666f 100644 --- a/public/js/build/elliptic.min.90ec5b69.js +++ b/public/js/build/elliptic.min.2279bef2.js @@ -1 +1 @@ -import{L as Y,M as ae,q as J,Y as j,t as we,y as Me,u as xe,v as Be,w as Ce,Q as _e,R as De}from"./app.3d81bfbf.js";import u from"./bn.min.a20d8e66.js";/*! OpenPGP.js v5.7.0-1 - 2023-06-10 - this is LGPL licensed code, see LICENSE/our website https://openpgpjs.org/ for more information. */var be,F=Y(function(e,f){var d=f;function t(c){return c.length===1?"0"+c:c}function a(c){for(var r="",b=0;b>8,s=255&n;o?b.push(o,s):b.push(s)}return b},d.zero2=t,d.toHex=a,d.encode=function(c,r){return r==="hex"?a(c):c}}),v=Y(function(e,f){var d=f;d.assert=ae,d.toArray=F.toArray,d.zero2=F.zero2,d.toHex=F.toHex,d.encode=F.encode,d.getNAF=function(t,a){for(var c=[],r=1<=0;){var i;if(b.isOdd()){var n=b.andln(r-1);i=n>(r>>1)-1?(r>>1)-n:n,b.isubn(i)}else i=0;c.push(i);for(var o=b.cmpn(0)!==0&&b.andln(r-1)===0?a+1:1,s=1;s0||a.cmpn(-b)>0;){var i,n,o,s=t.andln(3)+r&3,h=a.andln(3)+b&3;s===3&&(s=-1),h===3&&(h=-1),(1&s)==0?i=0:i=(o=t.andln(7)+r&7)!==3&&o!==5||h!==2?s:-s,c[0].push(i),(1&h)==0?n=0:n=(o=a.andln(7)+b&7)!==3&&o!==5||s!==2?h:-h,c[1].push(n),2*r===i+1&&(r=1-r),2*b===n+1&&(b=1-b),t.iushrn(1),a.iushrn(1)}return c},d.cachedProperty=function(t,a,c){var r="_"+a;t.prototype[a]=function(){return this[r]!==void 0?this[r]:this[r]=c.call(this)}},d.parseBytes=function(t){return typeof t=="string"?d.toArray(t,"hex"):t},d.intFromLE=function(t){return new u(t,"hex","le")}}),ce=function(e){return be||(be=new k(null)),be.generate(e)};function k(e){this.rand=e}var Fe=k;if(k.prototype.generate=function(e){return this._rand(e)},k.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var f=new Uint8Array(e),d=0;d0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var x=N;function _(e,f){this.curve=e,this.type=f,this.precomputed=null}N.prototype.point=function(){throw Error("Not implemented")},N.prototype.validate=function(){throw Error("Not implemented")},N.prototype._fixedNafMul=function(e,f){$(e.precomputed);var d=e._getDoubles(),t=Z(f,1),a=(1<=r;f--)b=(b<<1)+t[f];c.push(b)}for(var i=this.jpoint(null,null,null),n=this.jpoint(null,null,null),o=a;o>0;o--){for(r=0;r=0;b--){for(f=0;b>=0&&c[b]===0;b--)f++;if(b>=0&&f++,r=r.dblp(f),b<0)break;var i=c[b];$(i!==0),r=e.type==="affine"?i>0?r.mixedAdd(a[i-1>>1]):r.mixedAdd(a[-i-1>>1].neg()):i>0?r.add(a[i-1>>1]):r.add(a[-i-1>>1].neg())}return e.type==="affine"?r.toP():r},N.prototype._wnafMulAdd=function(e,f,d,t,a){for(var c=this._wnafT1,r=this._wnafT2,b=this._wnafT3,i=0,n=0;n=1;n-=2){var s=n-1,h=n;if(c[s]===1&&c[h]===1){var p=[f[s],null,null,f[h]];f[s].y.cmp(f[h].y)===0?(p[1]=f[s].add(f[h]),p[2]=f[s].toJ().mixedAdd(f[h].neg())):f[s].y.cmp(f[h].y.redNeg())===0?(p[1]=f[s].toJ().mixedAdd(f[h]),p[2]=f[s].add(f[h].neg())):(p[1]=f[s].toJ().mixedAdd(f[h]),p[2]=f[s].toJ().mixedAdd(f[h].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],I=ze(d[s],d[h]);i=Math.max(I[0].length,i),b[s]=Array(i),b[h]=Array(i);for(var l=0;l=0;n--){for(var re=0;n>=0;){var pe=!0;for(l=0;l=0&&re++,R=R.dblp(re),n<0)break;for(l=0;l0?X=r[l][W-1>>1]:W<0&&(X=r[l][-W-1>>1].neg()),R=X.type==="affine"?R.mixedAdd(X):R.add(X))}}for(n=0;n=Math.ceil((e.bitLength()+1)/f.step)},_.prototype._getDoubles=function(e,f){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var d=[this],t=this,a=0;a=0&&(c=f,r=d),t.negative&&(t=t.neg(),a=a.neg()),c.negative&&(c=c.neg(),r=r.neg()),[{a:t,b:a},{a:c,b:r}]},D.prototype._endoSplit=function(e){var f=this.endo.basis,d=f[0],t=f[1],a=t.b.mul(e).divRound(this.n),c=d.b.neg().mul(e).divRound(this.n),r=a.mul(d.a),b=c.mul(t.a),i=a.mul(d.b),n=c.mul(t.b);return{k1:e.sub(r).sub(b),k2:i.add(n).neg()}},D.prototype.pointFromX=function(e,f){(e=new u(e,16)).red||(e=e.toRed(this.red));var d=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),t=d.redSqrt();if(t.redSqr().redSub(d).cmp(this.zero)!==0)throw Error("invalid point");var a=t.fromRed().isOdd();return(f&&!a||!f&&a)&&(t=t.redNeg()),this.point(e,t)},D.prototype.validate=function(e){if(e.inf)return!0;var f=e.x,d=e.y,t=this.a.redMul(f),a=f.redSqr().redMul(f).redIAdd(t).redIAdd(this.b);return d.redSqr().redISub(a).cmpn(0)===0},D.prototype._endoWnafMulAdd=function(e,f,d){for(var t=this._endoWnafT1,a=this._endoWnafT2,c=0;c":""},A.prototype.isInfinity=function(){return this.inf},A.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var f=this.y.redSub(e.y);f.cmpn(0)!==0&&(f=f.redMul(this.x.redSub(e.x).redInvm()));var d=f.redSqr().redISub(this.x).redISub(e.x),t=f.redMul(this.x.redSub(d)).redISub(this.y);return this.curve.point(d,t)},A.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var f=this.curve.a,d=this.x.redSqr(),t=e.redInvm(),a=d.redAdd(d).redIAdd(d).redIAdd(f).redMul(t),c=a.redSqr().redISub(this.x.redAdd(this.x)),r=a.redMul(this.x.redSub(c)).redISub(this.y);return this.curve.point(c,r)},A.prototype.getX=function(){return this.x.fromRed()},A.prototype.getY=function(){return this.y.fromRed()},A.prototype.mul=function(e){return e=new u(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},A.prototype.mulAdd=function(e,f,d){var t=[this,f],a=[e,d];return this.curve.endo?this.curve._endoWnafMulAdd(t,a):this.curve._wnafMulAdd(1,t,a,2)},A.prototype.jmulAdd=function(e,f,d){var t=[this,f],a=[e,d];return this.curve.endo?this.curve._endoWnafMulAdd(t,a,!0):this.curve._wnafMulAdd(1,t,a,2,!0)},A.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)},A.prototype.neg=function(e){if(this.inf)return this;var f=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var d=this.precomputed,t=function(a){return a.neg()};f.precomputed={naf:d.naf&&{wnd:d.naf.wnd,points:d.naf.points.map(t)},doubles:d.doubles&&{step:d.doubles.step,points:d.doubles.points.map(t)}}}return f},A.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},J(w,x.BasePoint),D.prototype.jpoint=function(e,f,d){return new w(this,e,f,d)},w.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),f=e.redSqr(),d=this.x.redMul(f),t=this.y.redMul(f).redMul(e);return this.curve.point(d,t)},w.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},w.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var f=e.z.redSqr(),d=this.z.redSqr(),t=this.x.redMul(f),a=e.x.redMul(d),c=this.y.redMul(f.redMul(e.z)),r=e.y.redMul(d.redMul(this.z)),b=t.redSub(a),i=c.redSub(r);if(b.cmpn(0)===0)return i.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var n=b.redSqr(),o=n.redMul(b),s=t.redMul(n),h=i.redSqr().redIAdd(o).redISub(s).redISub(s),p=i.redMul(s.redISub(h)).redISub(c.redMul(o)),y=this.z.redMul(e.z).redMul(b);return this.curve.jpoint(h,p,y)},w.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var f=this.z.redSqr(),d=this.x,t=e.x.redMul(f),a=this.y,c=e.y.redMul(f).redMul(this.z),r=d.redSub(t),b=a.redSub(c);if(r.cmpn(0)===0)return b.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var i=r.redSqr(),n=i.redMul(r),o=d.redMul(i),s=b.redSqr().redIAdd(n).redISub(o).redISub(o),h=b.redMul(o.redISub(s)).redISub(a.redMul(n)),p=this.z.redMul(r);return this.curve.jpoint(s,h,p)},w.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var f=this,d=0;d=0)return!1;if(d.redIAdd(a),this.x.cmp(d)===0)return!0}},w.prototype.inspect=function(){return this.isInfinity()?"":""},w.prototype.isInfinity=function(){return this.z.cmpn(0)===0},J(K,x);var Pe=K;function g(e,f,d){x.BasePoint.call(this,e,"projective"),f===null&&d===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new u(f,16),this.z=new u(d,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}K.prototype.validate=function(e){var f=e.normalize().x,d=f.redSqr(),t=d.redMul(f).redAdd(d.redMul(this.a)).redAdd(f);return t.redSqrt().redSqr().cmp(t)===0},J(g,x.BasePoint),K.prototype.decodePoint=function(e,f){if((e=v.toArray(e,f)).length===33&&e[0]===64&&(e=e.slice(1,33).reverse()),e.length!==32)throw Error("Unknown point compression format");return this.point(e,1)},K.prototype.point=function(e,f){return new g(this,e,f)},K.prototype.pointFromJSON=function(e){return g.fromJSON(this,e)},g.prototype.precompute=function(){},g.prototype._encode=function(e){var f=this.curve.p.byteLength();return e?[64].concat(this.getX().toArray("le",f)):this.getX().toArray("be",f)},g.fromJSON=function(e,f){return new g(e,f[0],f[1]||e.one)},g.prototype.inspect=function(){return this.isInfinity()?"":""},g.prototype.isInfinity=function(){return this.z.cmpn(0)===0},g.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),f=this.x.redSub(this.z).redSqr(),d=e.redSub(f),t=e.redMul(f),a=d.redMul(f.redAdd(this.curve.a24.redMul(d)));return this.curve.point(t,a)},g.prototype.add=function(){throw Error("Not supported on Montgomery curve")},g.prototype.diffAdd=function(e,f){var d=this.x.redAdd(this.z),t=this.x.redSub(this.z),a=e.x.redAdd(e.z),c=e.x.redSub(e.z).redMul(d),r=a.redMul(t),b=f.z.redMul(c.redAdd(r).redSqr()),i=f.x.redMul(c.redISub(r).redSqr());return this.curve.point(b,i)},g.prototype.mul=function(e){for(var f=(e=new u(e,16)).clone(),d=this,t=this.curve.point(null,null),a=[];f.cmpn(0)!==0;f.iushrn(1))a.push(f.andln(1));for(var c=a.length-1;c>=0;c--)a[c]===0?(d=d.diffAdd(t,this),t=t.dbl()):(t=d.diffAdd(t,this),d=d.dbl());return t},g.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},g.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},g.prototype.eq=function(e){return this.getX().cmp(e.getX())===0},g.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},g.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var Ne=v.assert;function z(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,x.call(this,"edwards",e),this.a=new u(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new u(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new u(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),Ne(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|e.c)==1}J(z,x);var ke=z;function m(e,f,d,t,a){x.BasePoint.call(this,e,"projective"),f===null&&d===null&&t===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new u(f,16),this.y=new u(d,16),this.z=t?new u(t,16):this.curve.one,this.t=a&&new u(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}z.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},z.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},z.prototype.jpoint=function(e,f,d,t){return this.point(e,f,d,t)},z.prototype.pointFromX=function(e,f){(e=new u(e,16)).red||(e=e.toRed(this.red));var d=e.redSqr(),t=this.c2.redSub(this.a.redMul(d)),a=this.one.redSub(this.c2.redMul(this.d).redMul(d)),c=t.redMul(a.redInvm()),r=c.redSqrt();if(r.redSqr().redSub(c).cmp(this.zero)!==0)throw Error("invalid point");var b=r.fromRed().isOdd();return(f&&!b||!f&&b)&&(r=r.redNeg()),this.point(e,r)},z.prototype.pointFromY=function(e,f){(e=new u(e,16)).red||(e=e.toRed(this.red));var d=e.redSqr(),t=d.redSub(this.c2),a=d.redMul(this.d).redMul(this.c2).redSub(this.a),c=t.redMul(a.redInvm());if(c.cmp(this.zero)===0){if(f)throw Error("invalid point");return this.point(this.zero,e)}var r=c.redSqrt();if(r.redSqr().redSub(c).cmp(this.zero)!==0)throw Error("invalid point");return r.fromRed().isOdd()!==f&&(r=r.redNeg()),this.point(r,e)},z.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var f=e.x.redSqr(),d=e.y.redSqr(),t=f.redMul(this.a).redAdd(d),a=this.c2.redMul(this.one.redAdd(this.d.redMul(f).redMul(d)));return t.cmp(a)===0},J(m,x.BasePoint),z.prototype.pointFromJSON=function(e){return m.fromJSON(this,e)},z.prototype.point=function(e,f,d,t){return new m(this,e,f,d,t)},m.fromJSON=function(e,f){return new m(e,f[0],f[1],f[2])},m.prototype.inspect=function(){return this.isInfinity()?"":""},m.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},m.prototype._extDbl=function(){var e=this.x.redSqr(),f=this.y.redSqr(),d=this.z.redSqr();d=d.redIAdd(d);var t=this.curve._mulA(e),a=this.x.redAdd(this.y).redSqr().redISub(e).redISub(f),c=t.redAdd(f),r=c.redSub(d),b=t.redSub(f),i=a.redMul(r),n=c.redMul(b),o=a.redMul(b),s=r.redMul(c);return this.curve.point(i,n,s,o)},m.prototype._projDbl=function(){var e,f,d,t=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var r=(n=this.curve._mulA(a)).redAdd(c);if(this.zOne)e=t.redSub(a).redSub(c).redMul(r.redSub(this.curve.two)),f=r.redMul(n.redSub(c)),d=r.redSqr().redSub(r).redSub(r);else{var b=this.z.redSqr(),i=r.redSub(b).redISub(b);e=t.redSub(a).redISub(c).redMul(i),f=r.redMul(n.redSub(c)),d=r.redMul(i)}}else{var n=a.redAdd(c);b=this.curve._mulC(this.z).redSqr(),i=n.redSub(b).redSub(b),e=this.curve._mulC(t.redISub(n)).redMul(i),f=this.curve._mulC(n).redMul(a.redISub(c)),d=n.redMul(i)}return this.curve.point(e,f,d)},m.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},m.prototype._extAdd=function(e){var f=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),d=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),t=this.t.redMul(this.curve.dd).redMul(e.t),a=this.z.redMul(e.z.redAdd(e.z)),c=d.redSub(f),r=a.redSub(t),b=a.redAdd(t),i=d.redAdd(f),n=c.redMul(r),o=b.redMul(i),s=c.redMul(i),h=r.redMul(b);return this.curve.point(n,o,h,s)},m.prototype._projAdd=function(e){var f,d,t=this.z.redMul(e.z),a=t.redSqr(),c=this.x.redMul(e.x),r=this.y.redMul(e.y),b=this.curve.d.redMul(c).redMul(r),i=a.redSub(b),n=a.redAdd(b),o=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(c).redISub(r),s=t.redMul(i).redMul(o);return this.curve.twisted?(f=t.redMul(n).redMul(r.redSub(this.curve._mulA(c))),d=i.redMul(n)):(f=t.redMul(n).redMul(r.redSub(c)),d=this.curve._mulC(i).redMul(n)),this.curve.point(s,f,d)},m.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},m.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},m.prototype.mulAdd=function(e,f,d){return this.curve._wnafMulAdd(1,[this,f],[e,d],2,!1)},m.prototype.jmulAdd=function(e,f,d){return this.curve._wnafMulAdd(1,[this,f],[e,d],2,!0)},m.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},m.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},m.prototype.getX=function(){return this.normalize(),this.x.fromRed()},m.prototype.getY=function(){return this.normalize(),this.y.fromRed()},m.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0},m.prototype.eqXToP=function(e){var f=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(f)===0)return!0;for(var d=e.clone(),t=this.curve.redN.redMul(this.z);;){if(d.iadd(this.curve.n),d.cmp(this.curve.p)>=0)return!1;if(f.redIAdd(t),this.x.cmp(f)===0)return!0}},m.prototype.toP=m.prototype.normalize,m.prototype.mixedAdd=m.prototype.add;var de=Y(function(e,f){var d=f;d.base=x,d.short=Re,d.mont=Pe,d.edwards=ke}),ie=j.rotl32,Q=j.sum32,Oe=j.sum32_5,je=xe.ft_1,Ie=we.BlockHash,Le=[1518500249,1859775393,2400959708,3395469782];function q(){if(!(this instanceof q))return new q;Ie.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}j.inherits(q,Ie);var Te=q;q.blockSize=512,q.outSize=160,q.hmacStrength=80,q.padLength=64,q.prototype._update=function(e,f){for(var d=this.W,t=0;t<16;t++)d[t]=e[f+t];for(;tthis.blockSize&&(e=new this.Hash().update(e).digest()),ae(e.length<=this.blockSize);for(var f=e.length;f=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(f,d,t)}var ue=O;O.prototype._init=function(e,f,d){var t=e.concat(f).concat(d);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var a=0;a=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(d||[])),this._reseed=1},O.prototype.generate=function(e,f,d,t){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");typeof f!="string"&&(t=d,d=f,f=null),d&&(d=F.toArray(d,t||"hex"),this._update(d));for(var a=[];a.length"};var Ke=v.assert;function te(e,f){if(e instanceof te)return e;this._importDER(e,f)||(Ke(e.r&&e.s,"Signature without r or s"),this.r=new u(e.r,16),this.s=new u(e.s,16),e.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var ee=te;function Ue(){this.place=0}function se(e,f){var d=e[f.place++];if(!(128&d))return d;for(var t=15&d,a=0,c=0,r=f.place;c>>3);for(e.push(128|d);--d;)e.push(f>>>(d<<3)&255);e.push(f)}}te.prototype._importDER=function(e,f){e=v.toArray(e,f);var d=new Ue;if(e[d.place++]!==48||se(e,d)+d.place!==e.length||e[d.place++]!==2)return!1;var t=se(e,d),a=e.slice(d.place,t+d.place);if(d.place+=t,e[d.place++]!==2)return!1;var c=se(e,d);if(e.length!==c+d.place)return!1;var r=e.slice(d.place,c+d.place);return a[0]===0&&128&a[1]&&(a=a.slice(1)),r[0]===0&&128&r[1]&&(r=r.slice(1)),this.r=new u(a),this.s=new u(r),this.recoveryParam=null,!0},te.prototype.toDER=function(e){var f=this.r.toArray(),d=this.s.toArray();for(128&f[0]&&(f=[0].concat(f)),128&d[0]&&(d=[0].concat(d)),f=ye(f),d=ye(d);!(d[0]||128&d[1]);)d=d.slice(1);var t=[2];oe(t,f.length),(t=t.concat(f)).push(2),oe(t,d.length);var a=t.concat(d),c=[48];return oe(c,a.length),c=c.concat(a),v.encode(c,e)};var Ee=v.assert;function B(e){if(!(this instanceof B))return new B(e);typeof e=="string"&&(Ee(G.hasOwnProperty(e),"Unknown curve "+e),e=G[e]),e instanceof G.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var Ye=B;B.prototype.keyPair=function(e){return new ne(this,e)},B.prototype.keyFromPrivate=function(e,f){return ne.fromPrivate(this,e,f)},B.prototype.keyFromPublic=function(e,f){return ne.fromPublic(this,e,f)},B.prototype.genKeyPair=function(e){e||(e={});var f=new ue({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||ce(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()});if(this.curve.type==="mont"){var d=new u(f.generate(32));return this.keyFromPrivate(d)}for(var t=this.n.byteLength(),a=this.n.sub(new u(2));;)if(!((d=new u(f.generate(t))).cmp(a)>0))return d.iaddn(1),this.keyFromPrivate(d)},B.prototype._truncateToN=function(e,f,d){var t=(d=d||8*e.byteLength())-this.n.bitLength();return t>0&&(e=e.ushrn(t)),!f&&e.cmp(this.n)>=0?e.sub(this.n):e},B.prototype.truncateMsg=function(e){var f;return e instanceof Uint8Array?(f=8*e.byteLength,e=this._truncateToN(new u(e,16),!1,f)):typeof e=="string"?(f=4*e.length,e=this._truncateToN(new u(e,16),!1,f)):e=this._truncateToN(new u(e,16)),e},B.prototype.sign=function(e,f,d,t){typeof d=="object"&&(t=d,d=null),t||(t={}),f=this.keyFromPrivate(f,d),e=this.truncateMsg(e);for(var a=this.n.byteLength(),c=f.getPrivate().toArray("be",a),r=e.toArray("be",a),b=new ue({hash:this.hash,entropy:c,nonce:r,pers:t.pers,persEnc:t.persEnc||"utf8"}),i=this.n.sub(new u(1)),n=0;;n++){var o=t.k?t.k(n):new u(b.generate(this.n.byteLength()));if(!((o=this._truncateToN(o,!0)).cmpn(1)<=0||o.cmp(i)>=0)){var s=this.g.mul(o);if(!s.isInfinity()){var h=s.getX(),p=h.umod(this.n);if(p.cmpn(0)!==0){var y=o.invm(this.n).mul(p.mul(f.getPrivate()).iadd(e));if((y=y.umod(this.n)).cmpn(0)!==0){var I=(s.getY().isOdd()?1:0)|(h.cmp(p)!==0?2:0);return t.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),I^=1),new ee({r:p,s:y,recoveryParam:I})}}}}}},B.prototype.verify=function(e,f,d,t){return d=this.keyFromPublic(d,t),f=new ee(f,"hex"),this._verify(this.truncateMsg(e),f,d)||this._verify(this._truncateToN(new u(e,16)),f,d)},B.prototype._verify=function(e,f,d){var t=f.r,a=f.s;if(t.cmpn(1)<0||t.cmp(this.n)>=0||a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var c,r=a.invm(this.n),b=r.mul(e).umod(this.n),i=r.mul(t).umod(this.n);return this.curve._maxwellTrick?!(c=this.g.jmulAdd(b,d.getPublic(),i)).isInfinity()&&c.eqXToP(t):!(c=this.g.mulAdd(b,d.getPublic(),i)).isInfinity()&&c.getX().umod(this.n).cmp(t)===0},B.prototype.recoverPubKey=function(e,f,d,t){Ee((3&d)===d,"The recovery param is more than two bits"),f=new ee(f,t);var a=this.n,c=new u(e),r=f.r,b=f.s,i=1&d,n=d>>1;if(r.cmp(this.curve.p.umod(this.curve.n))>=0&&n)throw Error("Unable to find sencond key candinate");r=n?this.curve.pointFromX(r.add(this.curve.n),i):this.curve.pointFromX(r,i);var o=f.r.invm(a),s=a.sub(c).mul(o).umod(a),h=b.mul(o).umod(a);return this.g.mulAdd(s,r,h)},B.prototype.getKeyRecoveryParam=function(e,f,d,t){if((f=new ee(f,t)).recoveryParam!==null)return f.recoveryParam;for(var a=0;a<4;a++){var c;try{c=this.recoverPubKey(e,f,a)}catch{continue}if(c.eq(d))return a}throw Error("Unable to find valid recovery factor")};var me=v.assert,Ae=v.parseBytes,V=v.cachedProperty;function S(e,f){if(this.eddsa=e,f.hasOwnProperty("secret")&&(this._secret=Ae(f.secret)),e.isPoint(f.pub))this._pub=f.pub;else if(this._pubBytes=Ae(f.pub),this._pubBytes&&this._pubBytes.length===33&&this._pubBytes[0]===64&&(this._pubBytes=this._pubBytes.slice(1,33)),this._pubBytes&&this._pubBytes.length!==32)throw Error("Unknown point compression format")}S.fromPublic=function(e,f){return f instanceof S?f:new S(e,{pub:f})},S.fromSecret=function(e,f){return f instanceof S?f:new S(e,{secret:f})},S.prototype.secret=function(){return this._secret},V(S,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),V(S,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),V(S,"privBytes",function(){var e=this.eddsa,f=this.hash(),d=e.encodingLength-1,t=f.slice(0,e.encodingLength);return t[0]&=248,t[d]&=127,t[d]|=64,t}),V(S,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),V(S,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),V(S,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),S.prototype.sign=function(e){return me(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},S.prototype.verify=function(e,f){return this.eddsa.verify(e,f,this)},S.prototype.getSecret=function(e){return me(this._secret,"KeyPair is public only"),v.encode(this.secret(),e)},S.prototype.getPublic=function(e,f){return v.encode((f?[64]:[]).concat(this.pubBytes()),e)};var he=S,He=v.assert,fe=v.cachedProperty,We=v.parseBytes;function T(e,f){this.eddsa=e,typeof f!="object"&&(f=We(f)),Array.isArray(f)&&(f={R:f.slice(0,e.encodingLength),S:f.slice(e.encodingLength)}),He(f.R&&f.S,"Signature without R or S"),e.isPoint(f.R)&&(this._R=f.R),f.S instanceof u&&(this._S=f.S),this._Rencoded=Array.isArray(f.R)?f.R:f.Rencoded,this._Sencoded=Array.isArray(f.S)?f.S:f.Sencoded}fe(T,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),fe(T,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),fe(T,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),fe(T,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),T.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},T.prototype.toHex=function(){return v.encode(this.toBytes(),"hex").toUpperCase()};var ge=T,Qe=v.assert,Se=v.parseBytes;function M(e){if(Qe(e==="ed25519","only tested with ed25519 so far"),!(this instanceof M))return new M(e);e=G[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=C.sha512}var Ge=M;M.prototype.sign=function(e,f){e=Se(e);var d=this.keyFromSecret(f),t=this.hashInt(d.messagePrefix(),e),a=this.g.mul(t),c=this.encodePoint(a),r=this.hashInt(c,d.pubBytes(),e).mul(d.priv()),b=t.add(r).umod(this.curve.n);return this.makeSignature({R:a,S:b,Rencoded:c})},M.prototype.verify=function(e,f,d){e=Se(e),f=this.makeSignature(f);var t=this.keyFromPublic(d),a=this.hashInt(f.Rencoded(),t.pubBytes(),e),c=this.g.mul(f.S());return f.R().add(t.pub().mul(a)).eq(c)},M.prototype.hashInt=function(){for(var e=this.hash(),f=0;f>8,s=255&n;o?b.push(o,s):b.push(s)}return b},d.zero2=t,d.toHex=a,d.encode=function(c,r){return r==="hex"?a(c):c}}),v=Y(function(e,f){var d=f;d.assert=ae,d.toArray=F.toArray,d.zero2=F.zero2,d.toHex=F.toHex,d.encode=F.encode,d.getNAF=function(t,a){for(var c=[],r=1<=0;){var i;if(b.isOdd()){var n=b.andln(r-1);i=n>(r>>1)-1?(r>>1)-n:n,b.isubn(i)}else i=0;c.push(i);for(var o=b.cmpn(0)!==0&&b.andln(r-1)===0?a+1:1,s=1;s0||a.cmpn(-b)>0;){var i,n,o,s=t.andln(3)+r&3,h=a.andln(3)+b&3;s===3&&(s=-1),h===3&&(h=-1),(1&s)==0?i=0:i=(o=t.andln(7)+r&7)!==3&&o!==5||h!==2?s:-s,c[0].push(i),(1&h)==0?n=0:n=(o=a.andln(7)+b&7)!==3&&o!==5||s!==2?h:-h,c[1].push(n),2*r===i+1&&(r=1-r),2*b===n+1&&(b=1-b),t.iushrn(1),a.iushrn(1)}return c},d.cachedProperty=function(t,a,c){var r="_"+a;t.prototype[a]=function(){return this[r]!==void 0?this[r]:this[r]=c.call(this)}},d.parseBytes=function(t){return typeof t=="string"?d.toArray(t,"hex"):t},d.intFromLE=function(t){return new u(t,"hex","le")}}),ce=function(e){return be||(be=new k(null)),be.generate(e)};function k(e){this.rand=e}var Fe=k;if(k.prototype.generate=function(e){return this._rand(e)},k.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var f=new Uint8Array(e),d=0;d0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var x=N;function _(e,f){this.curve=e,this.type=f,this.precomputed=null}N.prototype.point=function(){throw Error("Not implemented")},N.prototype.validate=function(){throw Error("Not implemented")},N.prototype._fixedNafMul=function(e,f){$(e.precomputed);var d=e._getDoubles(),t=Z(f,1),a=(1<=r;f--)b=(b<<1)+t[f];c.push(b)}for(var i=this.jpoint(null,null,null),n=this.jpoint(null,null,null),o=a;o>0;o--){for(r=0;r=0;b--){for(f=0;b>=0&&c[b]===0;b--)f++;if(b>=0&&f++,r=r.dblp(f),b<0)break;var i=c[b];$(i!==0),r=e.type==="affine"?i>0?r.mixedAdd(a[i-1>>1]):r.mixedAdd(a[-i-1>>1].neg()):i>0?r.add(a[i-1>>1]):r.add(a[-i-1>>1].neg())}return e.type==="affine"?r.toP():r},N.prototype._wnafMulAdd=function(e,f,d,t,a){for(var c=this._wnafT1,r=this._wnafT2,b=this._wnafT3,i=0,n=0;n=1;n-=2){var s=n-1,h=n;if(c[s]===1&&c[h]===1){var p=[f[s],null,null,f[h]];f[s].y.cmp(f[h].y)===0?(p[1]=f[s].add(f[h]),p[2]=f[s].toJ().mixedAdd(f[h].neg())):f[s].y.cmp(f[h].y.redNeg())===0?(p[1]=f[s].toJ().mixedAdd(f[h]),p[2]=f[s].add(f[h].neg())):(p[1]=f[s].toJ().mixedAdd(f[h]),p[2]=f[s].toJ().mixedAdd(f[h].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],I=ze(d[s],d[h]);i=Math.max(I[0].length,i),b[s]=Array(i),b[h]=Array(i);for(var l=0;l=0;n--){for(var re=0;n>=0;){var pe=!0;for(l=0;l=0&&re++,R=R.dblp(re),n<0)break;for(l=0;l0?X=r[l][W-1>>1]:W<0&&(X=r[l][-W-1>>1].neg()),R=X.type==="affine"?R.mixedAdd(X):R.add(X))}}for(n=0;n=Math.ceil((e.bitLength()+1)/f.step)},_.prototype._getDoubles=function(e,f){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var d=[this],t=this,a=0;a=0&&(c=f,r=d),t.negative&&(t=t.neg(),a=a.neg()),c.negative&&(c=c.neg(),r=r.neg()),[{a:t,b:a},{a:c,b:r}]},D.prototype._endoSplit=function(e){var f=this.endo.basis,d=f[0],t=f[1],a=t.b.mul(e).divRound(this.n),c=d.b.neg().mul(e).divRound(this.n),r=a.mul(d.a),b=c.mul(t.a),i=a.mul(d.b),n=c.mul(t.b);return{k1:e.sub(r).sub(b),k2:i.add(n).neg()}},D.prototype.pointFromX=function(e,f){(e=new u(e,16)).red||(e=e.toRed(this.red));var d=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),t=d.redSqrt();if(t.redSqr().redSub(d).cmp(this.zero)!==0)throw Error("invalid point");var a=t.fromRed().isOdd();return(f&&!a||!f&&a)&&(t=t.redNeg()),this.point(e,t)},D.prototype.validate=function(e){if(e.inf)return!0;var f=e.x,d=e.y,t=this.a.redMul(f),a=f.redSqr().redMul(f).redIAdd(t).redIAdd(this.b);return d.redSqr().redISub(a).cmpn(0)===0},D.prototype._endoWnafMulAdd=function(e,f,d){for(var t=this._endoWnafT1,a=this._endoWnafT2,c=0;c":""},A.prototype.isInfinity=function(){return this.inf},A.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var f=this.y.redSub(e.y);f.cmpn(0)!==0&&(f=f.redMul(this.x.redSub(e.x).redInvm()));var d=f.redSqr().redISub(this.x).redISub(e.x),t=f.redMul(this.x.redSub(d)).redISub(this.y);return this.curve.point(d,t)},A.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var f=this.curve.a,d=this.x.redSqr(),t=e.redInvm(),a=d.redAdd(d).redIAdd(d).redIAdd(f).redMul(t),c=a.redSqr().redISub(this.x.redAdd(this.x)),r=a.redMul(this.x.redSub(c)).redISub(this.y);return this.curve.point(c,r)},A.prototype.getX=function(){return this.x.fromRed()},A.prototype.getY=function(){return this.y.fromRed()},A.prototype.mul=function(e){return e=new u(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},A.prototype.mulAdd=function(e,f,d){var t=[this,f],a=[e,d];return this.curve.endo?this.curve._endoWnafMulAdd(t,a):this.curve._wnafMulAdd(1,t,a,2)},A.prototype.jmulAdd=function(e,f,d){var t=[this,f],a=[e,d];return this.curve.endo?this.curve._endoWnafMulAdd(t,a,!0):this.curve._wnafMulAdd(1,t,a,2,!0)},A.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)},A.prototype.neg=function(e){if(this.inf)return this;var f=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var d=this.precomputed,t=function(a){return a.neg()};f.precomputed={naf:d.naf&&{wnd:d.naf.wnd,points:d.naf.points.map(t)},doubles:d.doubles&&{step:d.doubles.step,points:d.doubles.points.map(t)}}}return f},A.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},J(w,x.BasePoint),D.prototype.jpoint=function(e,f,d){return new w(this,e,f,d)},w.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),f=e.redSqr(),d=this.x.redMul(f),t=this.y.redMul(f).redMul(e);return this.curve.point(d,t)},w.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},w.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var f=e.z.redSqr(),d=this.z.redSqr(),t=this.x.redMul(f),a=e.x.redMul(d),c=this.y.redMul(f.redMul(e.z)),r=e.y.redMul(d.redMul(this.z)),b=t.redSub(a),i=c.redSub(r);if(b.cmpn(0)===0)return i.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var n=b.redSqr(),o=n.redMul(b),s=t.redMul(n),h=i.redSqr().redIAdd(o).redISub(s).redISub(s),p=i.redMul(s.redISub(h)).redISub(c.redMul(o)),y=this.z.redMul(e.z).redMul(b);return this.curve.jpoint(h,p,y)},w.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var f=this.z.redSqr(),d=this.x,t=e.x.redMul(f),a=this.y,c=e.y.redMul(f).redMul(this.z),r=d.redSub(t),b=a.redSub(c);if(r.cmpn(0)===0)return b.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var i=r.redSqr(),n=i.redMul(r),o=d.redMul(i),s=b.redSqr().redIAdd(n).redISub(o).redISub(o),h=b.redMul(o.redISub(s)).redISub(a.redMul(n)),p=this.z.redMul(r);return this.curve.jpoint(s,h,p)},w.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var f=this,d=0;d=0)return!1;if(d.redIAdd(a),this.x.cmp(d)===0)return!0}},w.prototype.inspect=function(){return this.isInfinity()?"":""},w.prototype.isInfinity=function(){return this.z.cmpn(0)===0},J(K,x);var Pe=K;function g(e,f,d){x.BasePoint.call(this,e,"projective"),f===null&&d===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new u(f,16),this.z=new u(d,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}K.prototype.validate=function(e){var f=e.normalize().x,d=f.redSqr(),t=d.redMul(f).redAdd(d.redMul(this.a)).redAdd(f);return t.redSqrt().redSqr().cmp(t)===0},J(g,x.BasePoint),K.prototype.decodePoint=function(e,f){if((e=v.toArray(e,f)).length===33&&e[0]===64&&(e=e.slice(1,33).reverse()),e.length!==32)throw Error("Unknown point compression format");return this.point(e,1)},K.prototype.point=function(e,f){return new g(this,e,f)},K.prototype.pointFromJSON=function(e){return g.fromJSON(this,e)},g.prototype.precompute=function(){},g.prototype._encode=function(e){var f=this.curve.p.byteLength();return e?[64].concat(this.getX().toArray("le",f)):this.getX().toArray("be",f)},g.fromJSON=function(e,f){return new g(e,f[0],f[1]||e.one)},g.prototype.inspect=function(){return this.isInfinity()?"":""},g.prototype.isInfinity=function(){return this.z.cmpn(0)===0},g.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),f=this.x.redSub(this.z).redSqr(),d=e.redSub(f),t=e.redMul(f),a=d.redMul(f.redAdd(this.curve.a24.redMul(d)));return this.curve.point(t,a)},g.prototype.add=function(){throw Error("Not supported on Montgomery curve")},g.prototype.diffAdd=function(e,f){var d=this.x.redAdd(this.z),t=this.x.redSub(this.z),a=e.x.redAdd(e.z),c=e.x.redSub(e.z).redMul(d),r=a.redMul(t),b=f.z.redMul(c.redAdd(r).redSqr()),i=f.x.redMul(c.redISub(r).redSqr());return this.curve.point(b,i)},g.prototype.mul=function(e){for(var f=(e=new u(e,16)).clone(),d=this,t=this.curve.point(null,null),a=[];f.cmpn(0)!==0;f.iushrn(1))a.push(f.andln(1));for(var c=a.length-1;c>=0;c--)a[c]===0?(d=d.diffAdd(t,this),t=t.dbl()):(t=d.diffAdd(t,this),d=d.dbl());return t},g.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},g.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},g.prototype.eq=function(e){return this.getX().cmp(e.getX())===0},g.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},g.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var Ne=v.assert;function z(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,x.call(this,"edwards",e),this.a=new u(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new u(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new u(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),Ne(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|e.c)==1}J(z,x);var ke=z;function m(e,f,d,t,a){x.BasePoint.call(this,e,"projective"),f===null&&d===null&&t===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new u(f,16),this.y=new u(d,16),this.z=t?new u(t,16):this.curve.one,this.t=a&&new u(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}z.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},z.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},z.prototype.jpoint=function(e,f,d,t){return this.point(e,f,d,t)},z.prototype.pointFromX=function(e,f){(e=new u(e,16)).red||(e=e.toRed(this.red));var d=e.redSqr(),t=this.c2.redSub(this.a.redMul(d)),a=this.one.redSub(this.c2.redMul(this.d).redMul(d)),c=t.redMul(a.redInvm()),r=c.redSqrt();if(r.redSqr().redSub(c).cmp(this.zero)!==0)throw Error("invalid point");var b=r.fromRed().isOdd();return(f&&!b||!f&&b)&&(r=r.redNeg()),this.point(e,r)},z.prototype.pointFromY=function(e,f){(e=new u(e,16)).red||(e=e.toRed(this.red));var d=e.redSqr(),t=d.redSub(this.c2),a=d.redMul(this.d).redMul(this.c2).redSub(this.a),c=t.redMul(a.redInvm());if(c.cmp(this.zero)===0){if(f)throw Error("invalid point");return this.point(this.zero,e)}var r=c.redSqrt();if(r.redSqr().redSub(c).cmp(this.zero)!==0)throw Error("invalid point");return r.fromRed().isOdd()!==f&&(r=r.redNeg()),this.point(r,e)},z.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var f=e.x.redSqr(),d=e.y.redSqr(),t=f.redMul(this.a).redAdd(d),a=this.c2.redMul(this.one.redAdd(this.d.redMul(f).redMul(d)));return t.cmp(a)===0},J(m,x.BasePoint),z.prototype.pointFromJSON=function(e){return m.fromJSON(this,e)},z.prototype.point=function(e,f,d,t){return new m(this,e,f,d,t)},m.fromJSON=function(e,f){return new m(e,f[0],f[1],f[2])},m.prototype.inspect=function(){return this.isInfinity()?"":""},m.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},m.prototype._extDbl=function(){var e=this.x.redSqr(),f=this.y.redSqr(),d=this.z.redSqr();d=d.redIAdd(d);var t=this.curve._mulA(e),a=this.x.redAdd(this.y).redSqr().redISub(e).redISub(f),c=t.redAdd(f),r=c.redSub(d),b=t.redSub(f),i=a.redMul(r),n=c.redMul(b),o=a.redMul(b),s=r.redMul(c);return this.curve.point(i,n,s,o)},m.prototype._projDbl=function(){var e,f,d,t=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var r=(n=this.curve._mulA(a)).redAdd(c);if(this.zOne)e=t.redSub(a).redSub(c).redMul(r.redSub(this.curve.two)),f=r.redMul(n.redSub(c)),d=r.redSqr().redSub(r).redSub(r);else{var b=this.z.redSqr(),i=r.redSub(b).redISub(b);e=t.redSub(a).redISub(c).redMul(i),f=r.redMul(n.redSub(c)),d=r.redMul(i)}}else{var n=a.redAdd(c);b=this.curve._mulC(this.z).redSqr(),i=n.redSub(b).redSub(b),e=this.curve._mulC(t.redISub(n)).redMul(i),f=this.curve._mulC(n).redMul(a.redISub(c)),d=n.redMul(i)}return this.curve.point(e,f,d)},m.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},m.prototype._extAdd=function(e){var f=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),d=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),t=this.t.redMul(this.curve.dd).redMul(e.t),a=this.z.redMul(e.z.redAdd(e.z)),c=d.redSub(f),r=a.redSub(t),b=a.redAdd(t),i=d.redAdd(f),n=c.redMul(r),o=b.redMul(i),s=c.redMul(i),h=r.redMul(b);return this.curve.point(n,o,h,s)},m.prototype._projAdd=function(e){var f,d,t=this.z.redMul(e.z),a=t.redSqr(),c=this.x.redMul(e.x),r=this.y.redMul(e.y),b=this.curve.d.redMul(c).redMul(r),i=a.redSub(b),n=a.redAdd(b),o=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(c).redISub(r),s=t.redMul(i).redMul(o);return this.curve.twisted?(f=t.redMul(n).redMul(r.redSub(this.curve._mulA(c))),d=i.redMul(n)):(f=t.redMul(n).redMul(r.redSub(c)),d=this.curve._mulC(i).redMul(n)),this.curve.point(s,f,d)},m.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},m.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},m.prototype.mulAdd=function(e,f,d){return this.curve._wnafMulAdd(1,[this,f],[e,d],2,!1)},m.prototype.jmulAdd=function(e,f,d){return this.curve._wnafMulAdd(1,[this,f],[e,d],2,!0)},m.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},m.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},m.prototype.getX=function(){return this.normalize(),this.x.fromRed()},m.prototype.getY=function(){return this.normalize(),this.y.fromRed()},m.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0},m.prototype.eqXToP=function(e){var f=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(f)===0)return!0;for(var d=e.clone(),t=this.curve.redN.redMul(this.z);;){if(d.iadd(this.curve.n),d.cmp(this.curve.p)>=0)return!1;if(f.redIAdd(t),this.x.cmp(f)===0)return!0}},m.prototype.toP=m.prototype.normalize,m.prototype.mixedAdd=m.prototype.add;var de=Y(function(e,f){var d=f;d.base=x,d.short=Re,d.mont=Pe,d.edwards=ke}),ie=j.rotl32,Q=j.sum32,Oe=j.sum32_5,je=xe.ft_1,Ie=we.BlockHash,Le=[1518500249,1859775393,2400959708,3395469782];function q(){if(!(this instanceof q))return new q;Ie.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}j.inherits(q,Ie);var Te=q;q.blockSize=512,q.outSize=160,q.hmacStrength=80,q.padLength=64,q.prototype._update=function(e,f){for(var d=this.W,t=0;t<16;t++)d[t]=e[f+t];for(;tthis.blockSize&&(e=new this.Hash().update(e).digest()),ae(e.length<=this.blockSize);for(var f=e.length;f=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(f,d,t)}var ue=O;O.prototype._init=function(e,f,d){var t=e.concat(f).concat(d);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var a=0;a=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(d||[])),this._reseed=1},O.prototype.generate=function(e,f,d,t){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");typeof f!="string"&&(t=d,d=f,f=null),d&&(d=F.toArray(d,t||"hex"),this._update(d));for(var a=[];a.length"};var Ke=v.assert;function te(e,f){if(e instanceof te)return e;this._importDER(e,f)||(Ke(e.r&&e.s,"Signature without r or s"),this.r=new u(e.r,16),this.s=new u(e.s,16),e.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var ee=te;function Ue(){this.place=0}function se(e,f){var d=e[f.place++];if(!(128&d))return d;for(var t=15&d,a=0,c=0,r=f.place;c>>3);for(e.push(128|d);--d;)e.push(f>>>(d<<3)&255);e.push(f)}}te.prototype._importDER=function(e,f){e=v.toArray(e,f);var d=new Ue;if(e[d.place++]!==48||se(e,d)+d.place!==e.length||e[d.place++]!==2)return!1;var t=se(e,d),a=e.slice(d.place,t+d.place);if(d.place+=t,e[d.place++]!==2)return!1;var c=se(e,d);if(e.length!==c+d.place)return!1;var r=e.slice(d.place,c+d.place);return a[0]===0&&128&a[1]&&(a=a.slice(1)),r[0]===0&&128&r[1]&&(r=r.slice(1)),this.r=new u(a),this.s=new u(r),this.recoveryParam=null,!0},te.prototype.toDER=function(e){var f=this.r.toArray(),d=this.s.toArray();for(128&f[0]&&(f=[0].concat(f)),128&d[0]&&(d=[0].concat(d)),f=ye(f),d=ye(d);!(d[0]||128&d[1]);)d=d.slice(1);var t=[2];oe(t,f.length),(t=t.concat(f)).push(2),oe(t,d.length);var a=t.concat(d),c=[48];return oe(c,a.length),c=c.concat(a),v.encode(c,e)};var Ee=v.assert;function B(e){if(!(this instanceof B))return new B(e);typeof e=="string"&&(Ee(G.hasOwnProperty(e),"Unknown curve "+e),e=G[e]),e instanceof G.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var Ye=B;B.prototype.keyPair=function(e){return new ne(this,e)},B.prototype.keyFromPrivate=function(e,f){return ne.fromPrivate(this,e,f)},B.prototype.keyFromPublic=function(e,f){return ne.fromPublic(this,e,f)},B.prototype.genKeyPair=function(e){e||(e={});var f=new ue({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||ce(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()});if(this.curve.type==="mont"){var d=new u(f.generate(32));return this.keyFromPrivate(d)}for(var t=this.n.byteLength(),a=this.n.sub(new u(2));;)if(!((d=new u(f.generate(t))).cmp(a)>0))return d.iaddn(1),this.keyFromPrivate(d)},B.prototype._truncateToN=function(e,f,d){var t=(d=d||8*e.byteLength())-this.n.bitLength();return t>0&&(e=e.ushrn(t)),!f&&e.cmp(this.n)>=0?e.sub(this.n):e},B.prototype.truncateMsg=function(e){var f;return e instanceof Uint8Array?(f=8*e.byteLength,e=this._truncateToN(new u(e,16),!1,f)):typeof e=="string"?(f=4*e.length,e=this._truncateToN(new u(e,16),!1,f)):e=this._truncateToN(new u(e,16)),e},B.prototype.sign=function(e,f,d,t){typeof d=="object"&&(t=d,d=null),t||(t={}),f=this.keyFromPrivate(f,d),e=this.truncateMsg(e);for(var a=this.n.byteLength(),c=f.getPrivate().toArray("be",a),r=e.toArray("be",a),b=new ue({hash:this.hash,entropy:c,nonce:r,pers:t.pers,persEnc:t.persEnc||"utf8"}),i=this.n.sub(new u(1)),n=0;;n++){var o=t.k?t.k(n):new u(b.generate(this.n.byteLength()));if(!((o=this._truncateToN(o,!0)).cmpn(1)<=0||o.cmp(i)>=0)){var s=this.g.mul(o);if(!s.isInfinity()){var h=s.getX(),p=h.umod(this.n);if(p.cmpn(0)!==0){var y=o.invm(this.n).mul(p.mul(f.getPrivate()).iadd(e));if((y=y.umod(this.n)).cmpn(0)!==0){var I=(s.getY().isOdd()?1:0)|(h.cmp(p)!==0?2:0);return t.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),I^=1),new ee({r:p,s:y,recoveryParam:I})}}}}}},B.prototype.verify=function(e,f,d,t){return d=this.keyFromPublic(d,t),f=new ee(f,"hex"),this._verify(this.truncateMsg(e),f,d)||this._verify(this._truncateToN(new u(e,16)),f,d)},B.prototype._verify=function(e,f,d){var t=f.r,a=f.s;if(t.cmpn(1)<0||t.cmp(this.n)>=0||a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var c,r=a.invm(this.n),b=r.mul(e).umod(this.n),i=r.mul(t).umod(this.n);return this.curve._maxwellTrick?!(c=this.g.jmulAdd(b,d.getPublic(),i)).isInfinity()&&c.eqXToP(t):!(c=this.g.mulAdd(b,d.getPublic(),i)).isInfinity()&&c.getX().umod(this.n).cmp(t)===0},B.prototype.recoverPubKey=function(e,f,d,t){Ee((3&d)===d,"The recovery param is more than two bits"),f=new ee(f,t);var a=this.n,c=new u(e),r=f.r,b=f.s,i=1&d,n=d>>1;if(r.cmp(this.curve.p.umod(this.curve.n))>=0&&n)throw Error("Unable to find sencond key candinate");r=n?this.curve.pointFromX(r.add(this.curve.n),i):this.curve.pointFromX(r,i);var o=f.r.invm(a),s=a.sub(c).mul(o).umod(a),h=b.mul(o).umod(a);return this.g.mulAdd(s,r,h)},B.prototype.getKeyRecoveryParam=function(e,f,d,t){if((f=new ee(f,t)).recoveryParam!==null)return f.recoveryParam;for(var a=0;a<4;a++){var c;try{c=this.recoverPubKey(e,f,a)}catch{continue}if(c.eq(d))return a}throw Error("Unable to find valid recovery factor")};var me=v.assert,Ae=v.parseBytes,V=v.cachedProperty;function S(e,f){if(this.eddsa=e,f.hasOwnProperty("secret")&&(this._secret=Ae(f.secret)),e.isPoint(f.pub))this._pub=f.pub;else if(this._pubBytes=Ae(f.pub),this._pubBytes&&this._pubBytes.length===33&&this._pubBytes[0]===64&&(this._pubBytes=this._pubBytes.slice(1,33)),this._pubBytes&&this._pubBytes.length!==32)throw Error("Unknown point compression format")}S.fromPublic=function(e,f){return f instanceof S?f:new S(e,{pub:f})},S.fromSecret=function(e,f){return f instanceof S?f:new S(e,{secret:f})},S.prototype.secret=function(){return this._secret},V(S,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),V(S,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),V(S,"privBytes",function(){var e=this.eddsa,f=this.hash(),d=e.encodingLength-1,t=f.slice(0,e.encodingLength);return t[0]&=248,t[d]&=127,t[d]|=64,t}),V(S,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),V(S,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),V(S,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),S.prototype.sign=function(e){return me(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},S.prototype.verify=function(e,f){return this.eddsa.verify(e,f,this)},S.prototype.getSecret=function(e){return me(this._secret,"KeyPair is public only"),v.encode(this.secret(),e)},S.prototype.getPublic=function(e,f){return v.encode((f?[64]:[]).concat(this.pubBytes()),e)};var he=S,He=v.assert,fe=v.cachedProperty,We=v.parseBytes;function T(e,f){this.eddsa=e,typeof f!="object"&&(f=We(f)),Array.isArray(f)&&(f={R:f.slice(0,e.encodingLength),S:f.slice(e.encodingLength)}),He(f.R&&f.S,"Signature without R or S"),e.isPoint(f.R)&&(this._R=f.R),f.S instanceof u&&(this._S=f.S),this._Rencoded=Array.isArray(f.R)?f.R:f.Rencoded,this._Sencoded=Array.isArray(f.S)?f.S:f.Sencoded}fe(T,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),fe(T,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),fe(T,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),fe(T,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),T.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},T.prototype.toHex=function(){return v.encode(this.toBytes(),"hex").toUpperCase()};var ge=T,Qe=v.assert,Se=v.parseBytes;function M(e){if(Qe(e==="ed25519","only tested with ed25519 so far"),!(this instanceof M))return new M(e);e=G[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=C.sha512}var Ge=M;M.prototype.sign=function(e,f){e=Se(e);var d=this.keyFromSecret(f),t=this.hashInt(d.messagePrefix(),e),a=this.g.mul(t),c=this.encodePoint(a),r=this.hashInt(c,d.pubBytes(),e).mul(d.priv()),b=t.add(r).umod(this.curve.n);return this.makeSignature({R:a,S:b,Rencoded:c})},M.prototype.verify=function(e,f,d){e=Se(e),f=this.makeSignature(f);var t=this.keyFromPublic(d),a=this.hashInt(f.Rencoded(),t.pubBytes(),e),c=this.g.mul(f.S());return f.R().add(t.pub().mul(a)).eq(c)},M.prototype.hashInt=function(){for(var e=this.hash(),f=0;f0?e("Loading"):e("Form",{ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(i){i.preventDefault()}}},[t.isLdap?e("Alert",{attrs:{type:"warning"}},[t._v(t._s(t.$L("LDAP \u7528\u6237\u7981\u6B62\u4FEE\u6539\u90AE\u7BB1\u5730\u5740")))]):t._e(),e("FormItem",{attrs:{label:t.$L("\u65B0\u90AE\u7BB1\u5730\u5740"),prop:"newEmail"}},[t.isRegVerify==1?e("Input",{class:t.count>0?"setting-send-input":"setting-input",attrs:{search:"","enter-button":t.$L(t.sendBtnText),disabled:t.isLdap,placeholder:t.$L("\u8F93\u5165\u65B0\u90AE\u7BB1\u5730\u5740")},on:{"on-search":t.sendEmailCode},model:{value:t.formDatum.newEmail,callback:function(i){t.$set(t.formDatum,"newEmail",i)},expression:"formDatum.newEmail"}}):e("Input",{staticClass:"setting-input",attrs:{disabled:t.isLdap,placeholder:t.$L("\u8F93\u5165\u65B0\u90AE\u7BB1\u5730\u5740")},model:{value:t.formDatum.newEmail,callback:function(i){t.$set(t.formDatum,"newEmail",i)},expression:"formDatum.newEmail"}})],1),t.isRegVerify==1?e("FormItem",{attrs:{label:t.$L("\u9A8C\u8BC1\u7801"),prop:"code"}},[e("Input",{attrs:{placeholder:t.$L("\u8F93\u5165\u90AE\u7BB1\u9A8C\u8BC1\u7801")},model:{value:t.formDatum.code,callback:function(i){t.$set(t.formDatum,"code",i)},expression:"formDatum.code"}})],1):t._e()],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",disabled:t.isLdap},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},l=[];const m={data(){return{loadIng:0,configLoad:0,formDatum:{newEmail:"",code:""},ruleDatum:{newEmail:[{validator:(t,s,e)=>{s.trim()===""?e(new Error(this.$L("\u8BF7\u8F93\u5165\u65B0\u90AE\u7BB1\u5730\u5740\uFF01"))):$A.isEmail(s.trim())?e():e(new Error(this.$L("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u5730\u5740\uFF01")))},required:!0,trigger:"change"}]},count:0,isSendButtonShow:!0,isRegVerify:0,sendBtnText:this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801")}},mounted(){this.getRegVerify()},computed:{...r(["formLabelPosition","formLabelWidth"]),isLdap(){return this.$store.state.userInfo.identity.includes("ldap")}},methods:{sendEmailCode(){this.$store.dispatch("call",{url:"users/email/send",data:{type:2,email:this.formDatum.newEmail},spinner:!0}).then(t=>{this.isSendButtonShow=!1,this.count=120,this.sendBtnText=this.count+" \u79D2";let s=setInterval(()=>{this.count--,this.sendBtnText=this.count+" \u79D2",this.count<=0&&(this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),clearInterval(s))},1e3)}).catch(({msg:t})=>{$A.messageError(t)})},submitForm(){this.$refs.formDatum.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"users/email/edit",data:this.formDatum}).then(({data:s})=>{this.count=0,this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("saveUserInfo",s),this.$refs.formDatum.resetFields(),this.isSendButtonShow=!0}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()},getRegVerify(){this.configLoad++,this.$store.dispatch("call",{url:"system/setting/email"}).then(({data:t})=>{this.isRegVerify=t.reg_verify==="open"}).finally(t=>{this.configLoad--})}}},a={};var u=n(m,o,l,!1,d,null,null,null);function d(t){for(let s in a)this[s]=a[s]}var f=function(){return u.exports}();export{f as default}; +import{m as r,n}from"./app.28437e7d.js";var o=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"setting-item submit"},[t.configLoad>0?e("Loading"):e("Form",{ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(i){i.preventDefault()}}},[t.isLdap?e("Alert",{attrs:{type:"warning"}},[t._v(t._s(t.$L("LDAP \u7528\u6237\u7981\u6B62\u4FEE\u6539\u90AE\u7BB1\u5730\u5740")))]):t._e(),e("FormItem",{attrs:{label:t.$L("\u65B0\u90AE\u7BB1\u5730\u5740"),prop:"newEmail"}},[t.isRegVerify==1?e("Input",{class:t.count>0?"setting-send-input":"setting-input",attrs:{search:"","enter-button":t.$L(t.sendBtnText),disabled:t.isLdap,placeholder:t.$L("\u8F93\u5165\u65B0\u90AE\u7BB1\u5730\u5740")},on:{"on-search":t.sendEmailCode},model:{value:t.formDatum.newEmail,callback:function(i){t.$set(t.formDatum,"newEmail",i)},expression:"formDatum.newEmail"}}):e("Input",{staticClass:"setting-input",attrs:{disabled:t.isLdap,placeholder:t.$L("\u8F93\u5165\u65B0\u90AE\u7BB1\u5730\u5740")},model:{value:t.formDatum.newEmail,callback:function(i){t.$set(t.formDatum,"newEmail",i)},expression:"formDatum.newEmail"}})],1),t.isRegVerify==1?e("FormItem",{attrs:{label:t.$L("\u9A8C\u8BC1\u7801"),prop:"code"}},[e("Input",{attrs:{placeholder:t.$L("\u8F93\u5165\u90AE\u7BB1\u9A8C\u8BC1\u7801")},model:{value:t.formDatum.code,callback:function(i){t.$set(t.formDatum,"code",i)},expression:"formDatum.code"}})],1):t._e()],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",disabled:t.isLdap},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},l=[];const m={data(){return{loadIng:0,configLoad:0,formDatum:{newEmail:"",code:""},ruleDatum:{newEmail:[{validator:(t,s,e)=>{s.trim()===""?e(new Error(this.$L("\u8BF7\u8F93\u5165\u65B0\u90AE\u7BB1\u5730\u5740\uFF01"))):$A.isEmail(s.trim())?e():e(new Error(this.$L("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u5730\u5740\uFF01")))},required:!0,trigger:"change"}]},count:0,isSendButtonShow:!0,isRegVerify:0,sendBtnText:this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801")}},mounted(){this.getRegVerify()},computed:{...r(["formLabelPosition","formLabelWidth"]),isLdap(){return this.$store.state.userInfo.identity.includes("ldap")}},methods:{sendEmailCode(){this.$store.dispatch("call",{url:"users/email/send",data:{type:2,email:this.formDatum.newEmail},spinner:!0}).then(t=>{this.isSendButtonShow=!1,this.count=120,this.sendBtnText=this.count+" \u79D2";let s=setInterval(()=>{this.count--,this.sendBtnText=this.count+" \u79D2",this.count<=0&&(this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),clearInterval(s))},1e3)}).catch(({msg:t})=>{$A.messageError(t)})},submitForm(){this.$refs.formDatum.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"users/email/edit",data:this.formDatum}).then(({data:s})=>{this.count=0,this.sendBtnText=this.$L("\u53D1\u9001\u9A8C\u8BC1\u7801"),$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("saveUserInfo",s),this.$refs.formDatum.resetFields(),this.isSendButtonShow=!0}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()},getRegVerify(){this.configLoad++,this.$store.dispatch("call",{url:"system/setting/email"}).then(({data:t})=>{this.isRegVerify=t.reg_verify==="open"}).finally(t=>{this.configLoad--})}}},a={};var u=n(m,o,l,!1,d,null,null,null);function d(t){for(let s in a)this[s]=a[s]}var f=function(){return u.exports}();export{f as default}; diff --git a/public/js/build/file.f8f7c6d7.js b/public/js/build/file.9309ba9b.js similarity index 99% rename from public/js/build/file.f8f7c6d7.js rename to public/js/build/file.9309ba9b.js index 02d54e28d..6aa209d0d 100644 --- a/public/js/build/file.f8f7c6d7.js +++ b/public/js/build/file.9309ba9b.js @@ -1,4 +1,4 @@ -import{e as ft,P as ag,m as ug,n as lg,_ as lu}from"./app.3d81bfbf.js";import{D as fg}from"./index.8fb9f3fd.js";import{l as og}from"./longpress.43ca7fd9.js";import{U as cg}from"./UserSelect.6a5dfe83.js";var Ci={exports:{}};/** +import{e as ft,P as ag,m as ug,n as lg,_ as lu}from"./app.28437e7d.js";import{D as fg}from"./index.ed41beb1.js";import{l as og}from"./longpress.43ca7fd9.js";import{U as cg}from"./UserSelect.fe42163b.js";var Ci={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors @@ -24,4 +24,4 @@ __p += '`),D&&(w+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+w+`return __p -}`;var F=iu(function(){return M(l,L+"return "+w).apply(s,f)});if(F.source=w,gi(F))throw F;return F}function dp(e){return k(e).toLowerCase()}function pp(e){return k(e).toUpperCase()}function gp(e,n,t){if(e=k(e),e&&(t||n===s))return ds(e);if(!e||!(n=ce(n)))return e;var i=Ce(e),a=Ce(n),l=ps(i,a),f=gs(i,a)+1;return sn(i,l,f).join("")}function _p(e,n,t){if(e=k(e),e&&(t||n===s))return e.slice(0,vs(e)+1);if(!e||!(n=ce(n)))return e;var i=Ce(e),a=gs(i,Ce(n))+1;return sn(i,0,a).join("")}function vp(e,n,t){if(e=k(e),e&&(t||n===s))return e.replace(gr,"");if(!e||!(n=ce(n)))return e;var i=Ce(e),a=ps(i,Ce(n));return sn(i,a).join("")}function mp(e,n){var t=fu,i=ou;if(H(n)){var a="separator"in n?n.separator:a;t="length"in n?T(n.length):t,i="omission"in n?ce(n.omission):i}e=k(e);var l=e.length;if(bn(e)){var f=Ce(e);l=f.length}if(t>=l)return e;var o=t-Tn(i);if(o<1)return i;var d=f?sn(f,0,o).join(""):e.slice(0,o);if(a===s)return d+i;if(f&&(o+=d.length-o),_i(a)){if(e.slice(o).search(a)){var v,m=d;for(a.global||(a=Rr(a.source,k(Mi.exec(a))+"g")),a.lastIndex=0;v=a.exec(m);)var w=v.index;d=d.slice(0,w===s?o:w)}}else if(e.indexOf(ce(a),o)!=o){var I=d.lastIndexOf(a);I>-1&&(d=d.slice(0,I))}return d+i}function wp(e){return e=k(e),e&&bu.test(e)?e.replace(Ri,ql):e}var xp=Pn(function(e,n,t){return e+(t?" ":"")+n.toUpperCase()}),wi=sa("toUpperCase");function ru(e,n,t){return e=k(e),n=t?s:n,n===s?Nl(e)?Jl(e):Rl(e):e.match(n)||[]}var iu=E(function(e,n){try{return fe(e,s,n)}catch(t){return gi(t)?t:new y(t)}}),Ip=He(function(e,n){return ve(n,function(t){t=Pe(t),Ne(e,t,di(e[t],e))}),e});function Ap(e){var n=e==null?0:e.length,t=S();return e=n?z(e,function(i){if(typeof i[1]!="function")throw new me(G);return[t(i[0]),i[1]]}):[],E(function(i){for(var a=-1;++aXe)return[];var t=Oe,i=ee(e,Oe);n=S(n),e-=Oe;for(var a=Tr(i,n);++t0||n<0)?new O(t):(e<0?t=t.takeRight(-e):e&&(t=t.drop(e)),n!==s&&(n=T(n),t=n<0?t.dropRight(-n):t.take(n-e)),t)},O.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},O.prototype.toArray=function(){return this.take(Oe)},De(O.prototype,function(e,n){var t=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),a=u[i?"take"+(n=="last"?"Right":""):n],l=i||/^find/.test(n);!a||(u.prototype[n]=function(){var f=this.__wrapped__,o=i?[1]:arguments,d=f instanceof O,v=o[0],m=d||b(f),w=function(R){var D=a.apply(u,Ve([R],o));return i&&I?D[0]:D};m&&t&&typeof v=="function"&&v.length!=1&&(d=m=!1);var I=this.__chain__,L=!!this.__actions__.length,$=l&&!I,F=d&&!L;if(!l&&m){f=F?f:new O(this);var C=e.apply(f,o);return C.__actions__.push({func:Xt,args:[w],thisArg:s}),new we(C,I)}return $&&F?e.apply(this,o):(C=this.thru(w),$?i?C.value()[0]:C.value():C)})}),ve(["pop","push","shift","sort","splice","unshift"],function(e){var n=At[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);u.prototype[e]=function(){var a=arguments;if(i&&!this.__chain__){var l=this.value();return n.apply(b(l)?l:[],a)}return this[t](function(f){return n.apply(b(f)?f:[],a)})}}),De(O.prototype,function(e,n){var t=u[n];if(t){var i=t.name+"";B.call(On,i)||(On[i]=[]),On[i].push({name:n,func:t})}}),On[Ht(s,un).name]=[{name:"wrapper",func:s}],O.prototype.clone=mf,O.prototype.reverse=wf,O.prototype.value=xf,u.prototype.at=Xc,u.prototype.chain=Qc,u.prototype.commit=Vc,u.prototype.next=jc,u.prototype.plant=nh,u.prototype.reverse=th,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=rh,u.prototype.first=u.prototype.head,Jn&&(u.prototype[Jn]=eh),u},Fn=Xl();fn?((fn.exports=Fn)._=Fn,Ir._=Fn):V._=Fn}).call(ft)})(Ci,Ci.exports);var hg=function(){var r=this,p=r.$createElement,s=r._self._c||p;return s("div",{staticClass:"page-file"},[s("PageTitle",{attrs:{title:r.$L("\u6587\u4EF6")}}),s("div",{ref:"fileWrapper",staticClass:"file-wrapper"},[s("div",{staticClass:"file-head"},[s("div",{staticClass:"file-nav"},[s("h1",[r._v(r._s(r.$L("\u6587\u4EF6")))]),r.loadIng==0?s("div",{staticClass:"file-refresh",on:{click:r.getFileList}},[s("i",{staticClass:"taskfont"},[r._v("\uE6AE")])]):r._e()]),r.uploadList.length>0?s("div",{staticClass:"file-status",on:{click:function(c){r.uploadShow=!0}}},[r.uploadList.find(function(c){var x=c.status;return x!=="finished"})?s("Loading"):s("Button",{attrs:{shape:"circle",icon:"md-checkmark"}})],1):r._e(),s("div",{class:["file-search",r.searchKey?"has-value":""],on:{click:r.onSearchFocus,mouseenter:r.onSearchFocus}},[s("Input",{ref:"searchInput",attrs:{suffix:"ios-search",placeholder:r.$L("\u641C\u7D22\u540D\u79F0")},on:{"on-change":r.onSearchChange},model:{value:r.searchKey,callback:function(c){r.searchKey=c},expression:"searchKey"}})],1),s("div",{staticClass:"file-add"},[s("Button",{attrs:{shape:"circle",icon:"md-add"},on:{click:function(c){return c.stopPropagation(),r.handleRightClick(c,null,!0)}}})],1)]),s("div",{staticClass:"file-navigator"},[s("ul",{staticClass:"scrollbar-hidden"},[s("li",{on:{click:function(c){return r.browseFolder(0)}}},[s("span",[r._v(r._s(r.$L("\u5168\u90E8\u6587\u4EF6")))])]),r.searchKey?s("li",[r._v(r._s(r.$L("\u641C\u7D22"))+' "'+r._s(r.searchKey)+'"')]):r._l(r.navigator,function(c){return s("li",{ref:`nav_${c.id}`,refInFor:!0,on:{click:function(x){return r.browseFolder(c.id)}}},[c.share?s("i",{staticClass:"taskfont"},[r._v("\uE63F")]):r._e(),s("span",{attrs:{title:c.name}},[r._v(r._s(c.name))]),c.share&&c.permission==0?s("span",{staticClass:"readonly"},[r._v(r._s(r.$L("\u53EA\u8BFB")))]):r._e()])})],2),r.shearFirst?[s("Button",{attrs:{disabled:r.shearFirst.pid==r.pid,size:"small",type:"primary"},on:{click:r.shearTo}},[s("div",{staticClass:"file-shear"},[s("span",[r._v(r._s(r.$L("\u7C98\u8D34")))]),r._v(' "'),s("em",[r._v(r._s(r.shearFirst.name))]),r._v('" '),r.shearIds.length>1?s("span",[r._v(r._s(r.$L("\u7B49"))+r._s(r.shearIds.length)+r._s(r.$L("\u4E2A\u6587\u4EF6")))]):r._e()])]),s("Button",{attrs:{type:"primary",size:"small"},on:{click:r.clearShear}},[r._v(r._s(r.$L("\u53D6\u6D88\u526A\u5207")))])]:r.selectIds.length>0?[s("Button",{attrs:{size:"small",type:"info"},on:{click:function(c){return r.handleContextClick("shearSelect")}}},[s("Icon",{attrs:{type:"ios-cut"}}),r._v(" "+r._s(r.$L("\u526A\u5207"))+" ")],1),s("Button",{attrs:{size:"small",type:"error"},on:{click:function(c){return r.deleteFile(r.selectIds)}}},[s("Icon",{attrs:{type:"ios-trash"}}),r._v(" "+r._s(r.$L("\u5220\u9664"))+" ")],1),s("Button",{attrs:{type:"primary",size:"small"},on:{click:r.clearSelect}},[r._v(r._s(r.$L("\u53D6\u6D88\u9009\u62E9")))])]:r._e(),r.loadIng>0?s("div",{staticClass:"nav-load"},[s("Loading")],1):r._e(),s("div",{staticClass:"flex-full"}),r.hasShareFile?s("div",{staticClass:"only-checkbox"},[s("Checkbox",{model:{value:r.hideShared,callback:function(c){r.hideShared=c},expression:"hideShared"}},[r._v(r._s(r.$L("\u4EC5\u663E\u793A\u6211\u7684")))])],1):r._e(),s("div",{class:["switch-button",r.tableMode]},[s("div",{on:{click:function(c){r.tableMode="block"}}},[s("i",{staticClass:"taskfont"},[r._v("\uE60C")])]),s("div",{on:{click:function(c){r.tableMode="table"}}},[s("i",{staticClass:"taskfont"},[r._v("\uE66A")])])])],2),s("div",{staticClass:"file-drag",on:{drop:function(c){return c.preventDefault(),r.filePasteDrag(c,"drag")},dragover:function(c){return c.preventDefault(),r.fileDragOver(!0,c)},dragleave:function(c){return c.preventDefault(),r.fileDragOver(!1,c)}}},[r.tableMode==="table"?s("div",{staticClass:"file-table",on:{contextmenu:function(c){return c.preventDefault(),r.handleContextmenu.apply(null,arguments)}}},[s("Table",{attrs:{columns:r.columns,data:r.fileList,height:r.tableHeight,"no-data-text":r.$L("\u6CA1\u6709\u4EFB\u4F55\u6587\u4EF6"),"context-menu":"",stripe:""},on:{"on-cell-click":r.clickRow,"on-contextmenu":r.handleContextMenu,"on-select":r.handleTableSelect,"on-select-cancel":r.handleTableSelect,"on-select-all-cancel":r.handleTableSelect,"on-select-all":r.handleTableSelect,"on-sort-change":r.handleTableSort}})],1):[r.fileList.length==0&&r.loadIng==0?s("div",{staticClass:"file-no",on:{contextmenu:function(c){return c.preventDefault(),r.handleContextmenu.apply(null,arguments)}}},[s("i",{staticClass:"taskfont"},[r._v("\uE60B")]),s("p",[r._v(r._s(r.$L("\u6CA1\u6709\u4EFB\u4F55\u6587\u4EF6")))])]):s("div",{staticClass:"file-list",on:{contextmenu:function(c){return c.preventDefault(),r.handleContextmenu.apply(null,arguments)}}},[s("ul",r._l(r.fileList,function(c){return s("li",[s("div",{directives:[{name:"longpress",rawName:"v-longpress",value:r.handleLongpress,expression:"handleLongpress"}],staticClass:"file-item",class:{shear:r.shearIds.includes(c.id),highlight:r.selectIds.includes(c.id),operate:r.contextMenuVisible&&c.id===r.contextMenuItem.id},attrs:{"data-id":c.id},on:{click:function(x){return r.dropFile(c,"openCheckMenu")}}},[s("div",{staticClass:"file-check",class:{"file-checked":r.selectIds.includes(c.id)},on:{click:function(x){return x.stopPropagation(),r.dropFile(c,"select")}}},[s("Checkbox",{attrs:{value:r.selectIds.includes(c.id)}})],1),s("div",{staticClass:"file-menu",on:{click:function(x){return x.stopPropagation(),r.handleRightClick(x,c)}}},[s("Icon",{attrs:{type:"ios-more"}})],1),s("div",{class:`no-dark-before file-icon ${c.type}${c.share?" share":""}`},[c.share?[c.userid!=r.userId?s("UserAvatar",{staticClass:"share-avatar",attrs:{userid:c.userid,size:20}},[s("p",[r._v(r._s(r.$L("\u5171\u4EAB\u6743\u9650"))+": "+r._s(r.$L(c.permission==1?"\u8BFB/\u5199":"\u53EA\u8BFB")))])]):s("div",{staticClass:"share-icon no-dark-content"},[s("i",{staticClass:"taskfont"},[r._v("\uE757")])])]:r.isParentShare?[s("UserAvatar",{staticClass:"share-avatar",attrs:{userid:c.created_id,size:20}},[c.created_id!=c.userid?s("p",[s("strong",[r._v(r._s(r.$L("\u6210\u5458\u521B\u5EFA\u4E8E"))+": "+r._s(c.created_at))])]):s("p",[r._v(r._s(r.$L("\u6240\u6709\u8005\u521B\u5EFA\u4E8E"))+": "+r._s(c.created_at))])])]:r._e()],2),c._edit?s("div",{staticClass:"file-input"},[s("Input",{ref:"input_"+c.id,refInFor:!0,attrs:{size:"small",disabled:!!c._load,parser:r.onParser},on:{"on-blur":function(x){return r.onBlur(c)},"on-keyup":function(x){return r.onKeyup(x,c)}},model:{value:c.newname,callback:function(x){r.$set(c,"newname",x)},expression:"item.newname"}}),c._load?s("div",{staticClass:"file-load"},[s("Loading")],1):r._e()],1):s("div",{staticClass:"file-name",attrs:{title:c.name}},[r._v(r._s(r.$A.getFileName(c)))])])])}),0)])],r.dialogDrag?s("div",{staticClass:"drag-over",on:{click:function(c){r.dialogDrag=!1}}},[s("div",{staticClass:"drag-text"},[r._v(r._s(r.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):r._e()],2),s("div",{staticClass:"file-menu",style:r.contextMenuStyles},[s("Dropdown",{attrs:{trigger:"custom",visible:r.contextMenuVisible,"transfer-class-name":"page-file-dropdown-menu",transfer:""},on:{"on-click":r.handleContextClick,"on-clickoutside":r.handleClickContextMenuOutside,"on-visible-change":r.handleVisibleChangeMenu}},[s("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[r.contextMenuItem.id?[s("DropdownItem",{staticClass:"item-open",attrs:{name:"open"}},[r._v(" "+r._s(r.$L("\u6253\u5F00"))+" "),s("div",{staticClass:"open-name"},[r._v("\u201C"+r._s(r.contextMenuItem.name)+"\u201D")])]),r.searchKey?s("DropdownItem",{staticClass:"item-open",attrs:{name:"upperFolder"}},[r._v(" "+r._s(r.$L("\u5728\u4E0A\u5C42\u6587\u4EF6\u5939\u4E2D\u663E\u793A"))+" ")]):r._e(),s("DropdownItem",{attrs:{name:"select"}},[r._v(r._s(r.$L(r.selectIds.includes(r.contextMenuItem.id)?"\u53D6\u6D88\u9009\u62E9":"\u9009\u62E9")))]),s("Dropdown",{attrs:{placement:"right-start",transfer:""}},[s("DropdownItem",{attrs:{divided:"",name:"new:"},nativeOn:{click:function(c){c.stopPropagation()}}},[s("div",{staticClass:"arrow-forward-item"},[r._v(r._s(r.$L("\u65B0\u5EFA"))),s("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),s("DropdownMenu",{staticClass:"page-file-dropdown-menu",attrs:{slot:"list"},slot:"list"},r._l(r.types,function(c,x){return c.label?s("DropdownItem",{key:x,attrs:{divided:!!c.divided,name:`new:${c.value}`}},[s("div",{class:`no-dark-before file-item file-icon ${c.value}`},[r._v(r._s(r.$L(c.label)))])]):r._e()}),1)],1),s("DropdownItem",{attrs:{name:"rename",divided:""}},[r._v(r._s(r.$L("\u91CD\u547D\u540D")))]),s("DropdownItem",{attrs:{name:"copy",disabled:r.contextMenuItem.type=="folder"}},[r._v(r._s(r.$L("\u590D\u5236")))]),s("DropdownItem",{attrs:{name:"shear",disabled:r.contextMenuItem.userid!=r.userId}},[r._v(r._s(r.$L("\u526A\u5207")))]),r.contextMenuItem.userid==r.userId?s("DropdownItem",{attrs:{name:"share",divided:""}},[r._v(r._s(r.$L("\u5171\u4EAB")))]):r.contextMenuItem.share?s("DropdownItem",{attrs:{name:"outshare",divided:""}},[r._v(r._s(r.$L("\u9000\u51FA\u5171\u4EAB")))]):r._e(),s("DropdownItem",{attrs:{name:"send",disabled:r.contextMenuItem.type=="folder"}},[r._v(r._s(r.$L("\u53D1\u9001")))]),s("DropdownItem",{attrs:{name:"link",divided:r.contextMenuItem.userid!=r.userId&&!r.contextMenuItem.share,disabled:r.contextMenuItem.type=="folder"}},[r._v(r._s(r.$L("\u94FE\u63A5")))]),s("DropdownItem",{attrs:{name:"download",disabled:r.contextMenuItem.ext==""}},[r._v(r._s(r.$L("\u4E0B\u8F7D")))]),s("DropdownItem",{staticStyle:{color:"red"},attrs:{name:"delete",divided:""}},[r._v(r._s(r.$L("\u5220\u9664")))])]:r._l(r.types,function(c,x){return c.label?s("DropdownItem",{key:x,attrs:{divided:!!c.divided,name:`new:${c.value}`}},[s("div",{class:`no-dark-before file-item file-icon ${c.value}`},[r._v(r._s(r.$L(c.label)))])]):r._e()})],2)],1)],1)]),r.uploadShow&&r.uploadList.length>0?s("div",{staticClass:"file-upload-list"},[s("div",{staticClass:"upload-wrap"},[s("div",{staticClass:"title"},[r._v(" "+r._s(r.$L("\u4E0A\u4F20\u5217\u8868"))+" ("+r._s(r.uploadList.length)+") "),r.uploadList.find(function(c){var x=c.status;return x==="finished"})?s("em",{on:{click:r.uploadClear}},[r._v(r._s(r.$L("\u6E05\u7A7A\u5DF2\u5B8C\u6210")))]):r._e()]),s("ul",{staticClass:"content"},r._l(r.uploadList,function(c,x){return x<100?s("li",{key:x},[s("AutoTip",{staticClass:"file-name"},[r._v(r._s(r.uploadName(c)))]),c.status==="finished"&&c.response&&c.response.ret!==1?s("AutoTip",{staticClass:"file-error"},[r._v(r._s(c.response.msg))]):s("Progress",{attrs:{percent:r.uploadPercentageParse(c.percentage),"stroke-width":5}}),s("Icon",{staticClass:"file-close",attrs:{type:"ios-close-circle-outline"},on:{click:function(P){return r.uploadList.splice(x,1)}}})],1):r._e()}),0),s("Icon",{staticClass:"close",attrs:{type:"md-close"},on:{click:function(c){r.uploadShow=!1}}})],1)]):r._e(),s("Upload",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"fileUpload",attrs:{name:"files",action:r.actionUrl,headers:r.headers,multiple:!0,webkitdirectory:!1,format:r.uploadFormat,accept:r.uploadAccept,"show-upload-list":!1,"max-size":r.maxSize,"on-progress":r.handleProgress,"on-success":r.handleSuccess,"on-error":r.handleError,"on-format-error":r.handleFormatError,"on-exceeded-size":r.handleMaxSize,"before-upload":r.handleBeforeUpload}}),s("Upload",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"dirUpload",attrs:{name:"files",action:r.actionUrl,headers:r.headers,multiple:!0,webkitdirectory:!0,format:r.uploadFormat,accept:r.uploadAccept,"show-upload-list":!1,"max-size":r.maxSize,"on-progress":r.handleProgress,"on-success":r.handleSuccess,"on-error":r.handleError,"on-format-error":r.handleFormatError,"on-exceeded-size":r.handleMaxSize,"before-upload":r.handleBeforeUpload}}),s("Modal",{attrs:{title:r.$L("\u5171\u4EAB\u8BBE\u7F6E"),"mask-closable":!1,"footer-hide":""},model:{value:r.shareShow,callback:function(c){r.shareShow=c},expression:"shareShow"}},[s("Form",{staticClass:"page-file-share-form",attrs:{model:r.shareInfo,inline:""},nativeOn:{submit:function(c){c.preventDefault()}}},[s("FormItem",{staticClass:"share-userid",attrs:{prop:"userids"}},[s("RadioGroup",{model:{value:r.shareInfo.type,callback:function(c){r.$set(r.shareInfo,"type",c)},expression:"shareInfo.type"}},[s("Radio",{attrs:{label:"all"}},[r._v(r._s(r.$L("\u6240\u6709\u4EBA")))]),s("Radio",{attrs:{label:"custom"}},[r._v(r._s(r.$L("\u6307\u5B9A\u6210\u5458")))])],1),r.shareInfo.type==="custom"?s("UserSelect",{attrs:{disabledChoice:r.shareAlready,"multiple-max":100,placeholder:r.$L("\u9009\u62E9\u5171\u4EAB\u6210\u5458"),"avatar-size":24,border:""},model:{value:r.shareInfo.userids,callback:function(c){r.$set(r.shareInfo,"userids",c)},expression:"shareInfo.userids"}}):r._e()],1),s("FormItem",[s("Select",{attrs:{placeholder:r.$L("\u6743\u9650")},model:{value:r.shareInfo.permission,callback:function(c){r.$set(r.shareInfo,"permission",c)},expression:"shareInfo.permission"}},[s("Option",{attrs:{value:1}},[r._v(r._s(r.$L("\u8BFB/\u5199")))]),s("Option",{attrs:{value:0}},[r._v(r._s(r.$L("\u53EA\u8BFB")))])],1)],1),s("FormItem",[s("Button",{attrs:{type:"primary",loading:r.shareLoad>0},on:{click:r.onShare}},[r._v(r._s(r.$L("\u5171\u4EAB")))])],1)],1),r.shareList.length>0?s("div",{staticClass:"page-file-share-items"},[s("div",{staticClass:"page-file-share-title"},[r._v(r._s(r.$L("\u5DF2\u5171\u4EAB\u6210\u5458"))+":")]),s("ul",{staticClass:"page-file-share-list"},r._l(r.shareList,function(c){return s("li",[c.userid==0?s("div",{staticClass:"all-avatar"},[s("EAvatar",{staticClass:"avatar-text",attrs:{icon:"el-icon-s-custom"}}),s("span",{staticClass:"avatar-name"},[r._v(r._s(r.$L("\u6240\u6709\u4EBA")))])],1):s("UserAvatar",{attrs:{size:32,userid:c.userid,showName:"",tooltipDisabled:""}}),s("Select",{attrs:{placeholder:r.$L("\u6743\u9650")},on:{"on-change":function(x){return r.upShare(c)}},model:{value:c.permission,callback:function(x){r.$set(c,"permission",x)},expression:"item.permission"}},[s("Option",{attrs:{value:1}},[r._v(r._s(r.$L("\u8BFB/\u5199")))]),s("Option",{attrs:{value:0}},[r._v(r._s(r.$L("\u53EA\u8BFB")))]),s("Option",{staticClass:"delete",attrs:{value:-1}},[r._v(r._s(r.$L("\u5220\u9664")))])],1)],1)}),0)]):r._e()],1),s("UserSelect",{ref:"sendFile",attrs:{"multiple-max":50,title:r.$L("\u53D1\u9001\u6587\u4EF6"),"before-submit":r.onSendFile,"show-select-all":!1,"show-dialog":"",module:""},model:{value:r.sendData,callback:function(c){r.sendData=c},expression:"sendData"}}),s("Modal",{attrs:{title:r.$L("\u6587\u4EF6\u94FE\u63A5"),"mask-closable":!1},model:{value:r.linkShow,callback:function(c){r.linkShow=c},expression:"linkShow"}},[s("div",[s("div",{staticStyle:{margin:"-10px 0 8px"}},[r._v(r._s(r.$L("\u6587\u4EF6\u540D\u79F0"))+": "+r._s(r.linkData.name))]),s("Input",{ref:"linkInput",attrs:{type:"textarea",rows:3,readonly:""},on:{"on-focus":r.linkFocus},model:{value:r.linkData.url,callback:function(c){r.$set(r.linkData,"url",c)},expression:"linkData.url"}}),s("div",{staticClass:"form-tip",staticStyle:{"padding-top":"6px"}},[r._v(r._s(r.$L("\u53EF\u901A\u8FC7\u6B64\u94FE\u63A5\u6D4F\u89C8\u6587\u4EF6\u3002"))),s("a",{attrs:{href:"javascript:void(0)"},on:{click:r.linkCopy}},[r._v(r._s(r.$L("\u70B9\u51FB\u590D\u5236\u94FE\u63A5")))])])],1),s("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[s("Button",{attrs:{type:"default"},on:{click:function(c){r.linkShow=!1}}},[r._v(r._s(r.$L("\u53D6\u6D88")))]),s("Poptip",{staticStyle:{"margin-left":"8px"},attrs:{confirm:"",placement:"bottom","ok-text":r.$L("\u786E\u5B9A"),"cancel-text":r.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(c){return r.linkGet(!0)}}},[s("div",{attrs:{slot:"title"},slot:"title"},[s("p",[s("strong",[r._v(r._s(r.$L("\u6CE8\u610F\uFF1A\u5237\u65B0\u5C06\u5BFC\u81F4\u539F\u6765\u7684\u94FE\u63A5\u5931\u6548\uFF01")))])])]),s("Button",{attrs:{type:"primary",loading:r.linkLoad>0}},[r._v(r._s(r.$L("\u5237\u65B0")))])],1)],1)]),s("DrawerOverlay",{staticClass:"page-file-drawer",attrs:{beforeClose:r.fileBeforeClose,"mask-closable":!1},model:{value:r.fileShow,callback:function(c){r.fileShow=c},expression:"fileShow"}},[r.isPreview?s("FilePreview",{attrs:{file:r.fileInfo}}):s("FileContent",{ref:"fileContent",attrs:{file:r.fileInfo},model:{value:r.fileShow,callback:function(c){r.fileShow=c},expression:"fileShow"}})],1),s("PreviewImage",{attrs:{index:r.imageIndex,list:r.imageList},model:{value:r.imageShow,callback:function(c){r.imageShow=c},expression:"imageShow"}}),s("Modal",{attrs:{title:r.$L(r.pasteTitle),"cancel-text":r.$L("\u53D6\u6D88"),"ok-text":r.$L("\u7ACB\u5373\u4E0A\u4F20"),"enter-ok":!0},on:{"on-ok":r.pasteSend},model:{value:r.pasteShow,callback:function(c){r.pasteShow=c},expression:"pasteShow"}},[s("ul",{staticClass:"dialog-wrapper-paste",class:r.pasteWrapperClass},r._l(r.pasteItem,function(c){return s("li",[c.type=="image"?s("img",{attrs:{src:c.result}}):s("div",[r._v(r._s(r.$L("\u6587\u4EF6"))+": "+r._s(c.name)+" ("+r._s(r.$A.bytesToSize(c.size))+")")])])}),0)])],1)},dg=[];const pg=()=>lu(()=>import("./FilePreview.4334b185.js"),["js/build/FilePreview.4334b185.js","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css","js/build/IFrame.21d04c65.js"]),gg=()=>lu(()=>import("./FileContent.433fb254.js"),["js/build/FileContent.433fb254.js","js/build/FileContent.5c6a1e1c.css","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css","js/build/IFrame.21d04c65.js"]),mn={sort:null,mode:null,shared:null},_g={components:{UserSelect:cg,PreviewImage:ag,FilePreview:pg,DrawerOverlay:fg,FileContent:gg},directives:{longpress:og},data(){return{loadIng:0,searchKey:"",searchTimeout:null,types:[{value:"folder",label:"\u65B0\u5EFA\u6587\u4EF6\u5939",name:"\u6587\u4EF6\u5939"},{value:"upload",label:"\u4E0A\u4F20\u6587\u4EF6",name:null,divided:!0},{value:"updir",label:"\u4E0A\u4F20\u6587\u4EF6\u5939",name:null},{value:"document",label:"\u6587\u672C",name:"\u6587\u672C",divided:!0},{value:"drawio",label:"\u56FE\u8868",name:"\u56FE\u8868"},{value:"mind",label:"\u601D\u7EF4\u5BFC\u56FE",name:"\u5BFC\u56FE"},{value:"word",label:"Word \u6587\u6863",name:"Word",divided:!0},{value:"excel",label:"Excel \u5DE5\u4F5C\u8868",name:"Excel"},{value:"ppt",label:"PPT \u6F14\u793A\u6587\u7A3F",name:"PPT"}],tableMode:"",hideShared:!1,columns:[],shareShow:!1,shareInfo:{id:0,type:"all",userid:0,permission:1},shareList:[],shareLoad:0,sendFileId:0,sendData:[],linkShow:!1,linkData:{},linkLoad:0,fileShow:!1,fileInfo:{permission:-1},imageShow:!1,imageIndex:0,imageList:[],uploadDir:!1,uploadIng:0,uploadShow:!1,uploadList:[],uploadFormat:[],uploadAccept:"",maxSize:1024e3,contextMenuItem:{},contextMenuVisible:!1,contextMenuStyles:{top:0,left:0},shearIds:[],selectIds:[],dialogDrag:!1,pasteShow:!1,pasteFile:[],pasteItem:[]}},async beforeRouteEnter(r,p,s){mn.sort=await $A.IDBJson("cacheFileSort"),mn.mode=await $A.IDBString("fileTableMode"),mn.shared=await $A.IDBBoolean("fileHideShared"),s()},created(){this.tableMode=mn.mode,this.hideShared=mn.shared,this.columns=[{type:"selection",width:50,align:"right"},{title:this.$L("\u6587\u4EF6\u540D"),key:"name",minWidth:300,sortable:!0,render:(r,{row:p})=>{let s=[];if(!/^\d+$/.test(p.id))return s.push(r("Input",{props:{elementId:"input_"+p.id,value:p.newname,autofocus:!0,disabled:!!p._load,parser:this.onParser},style:{width:"auto"},on:{"on-change":x=>{p.newname=x.target.value},"on-blur":()=>{const x=this.fileLists.find(({id:P})=>P==p.id);x&&(x.newname=p.newname,this.onBlur(x))},"on-enter":()=>{const x=this.fileLists.find(({id:P})=>P==p.id);x&&(x.newname=p.newname,this.onEnter(x))}}})),r("div",{class:"file-nbox"},[r("div",{class:`no-dark-before file-name file-icon ${p.type}`},s)]);{s.push(r("QuickEdit",{props:{value:p.name,autoEdit:!!p._edit,clickOutSide:!1,parser:this.onParser},on:{"on-edit-change":q=>{const Fe=this.fileLists.find(({id:Ze})=>Ze==p.id);Fe&&setTimeout(()=>{this.setEdit(Fe.id,q)},100)},"on-update":(q,Fe)=>{const Ze=this.fileLists.find(({id:wn})=>wn==p.id);Ze&&Ze._edit===!0&&(Ze.newname=q,this.onEnter(Ze)),Fe()}}},[r("AutoTip",{props:{placement:"right"}},$A.getFileName(p))]));const x=[];p.share?p.userid!=this.userId?x.push(r("UserAvatar",{props:{userid:p.userid,size:20}})):x.push(r("i",{class:"taskfont",domProps:{innerHTML:""}})):this.isParentShare&&x.push(r("UserAvatar",{props:{userid:p.created_id,size:20}},[p.created_id!=p.userid?r("p",[r("strong",this.$L("\u6210\u5458\u521B\u5EFA\u4E8E")+": "+p.created_at)]):r("p",this.$L("\u6240\u6709\u8005\u521B\u5EFA\u4E8E")+": "+p.created_at)]));const P=this.shearIds.includes(p.id)?" shear":"",G=p.share?" share":"";return r("div",{class:`file-nbox${P}`,attrs:{"data-id":p.id}},[r("div",{class:`no-dark-before file-name file-icon ${p.type}${G}`},s),x])}}},{title:this.$L("\u5927\u5C0F"),key:"size",width:110,resizable:!0,sortable:!0,render:(r,{row:p})=>p.type=="folder"?r("div","-"):r("AutoTip",$A.bytesToSize(p.size))},{title:this.$L("\u7C7B\u578B"),key:"type",width:110,resizable:!0,sortable:!0,render:(r,{row:p})=>{let s=this.types.find(({value:c,name:x})=>c==p.type&&x);return s?r("AutoTip",this.$L(s.name)):r("div",(p.ext||p.type).toUpperCase())}},{title:this.$L("\u6240\u6709\u8005"),key:"userid",width:130,resizable:!0,sortable:!0,render:(r,{row:p})=>r("UserAvatar",{props:{size:18,userid:p.userid,showIcon:!1,showName:!0}})},{title:this.$L("\u6700\u540E\u4FEE\u6539"),key:"updated_at",width:168,resizable:!0,sortable:!0}].map(r=>(r.key===mn.sort.key&&(r.sortType=mn.sort.order),r))},mounted(){this.uploadAccept=this.uploadFormat.map(r=>"."+r).join(",")},activated(){this.getFileList()},computed:{...ug(["userIsAdmin","userInfo","fileLists","wsOpenNum"]),pid(){const{folderId:r}=this.$route.params;return parseInt(/^\d+$/.test(r)?r:0)},fid(){const{fileId:r}=this.$route.params;return parseInt(/^\d+$/.test(r)?r:0)},actionUrl(){return $A.apiUrl("file/content/upload?pid="+this.pid)},headers(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}},shareAlready(){let r=this.shareList?this.shareList.map(({userid:p})=>p):[];return this.shareInfo.userid&&r.push(this.shareInfo.userid),r},fileList(){const{fileLists:r,searchKey:p,hideShared:s,pid:c,selectIds:x,userId:P}=this;return $A.cloneJSON(Ci.exports.sortBy(r.filter(q=>s&&q.userid!=P&&q.created_id!=P?!1:p?q.name.indexOf(p)!==-1:q.pid==c),q=>(q.type=="folder"?"a":"b")+q.name)).map(q=>(q._checked=x.includes(q.id),q))},hasShareFile(){const{fileLists:r,userId:p}=this;return r.findIndex(s=>s.share&&s.userid!=p)!==-1},shearFirst(){const{fileLists:r,shearIds:p}=this;return p.length===0?null:r.find(s=>s.id==p[0])},navigator(){let{pid:r,fileLists:p}=this,s=[];for(;r>0;){let c=p.find(({id:x,permission:P})=>x==r&&P>-1);c?(s.unshift(c),r=c.pid):r=0}return s},isPreview(){return this.windowPortrait||this.fileInfo.permission===0},isParentShare(){const{navigator:r}=this;return!!r.find(({share:p})=>p)},pasteTitle(){const{pasteItem:r}=this;let p=r.find(({type:c})=>c=="image"),s=r.find(({type:c})=>c!="image");return p&&s?"\u4E0A\u4F20\u6587\u4EF6/\u56FE\u7247":p?"\u4E0A\u4F20\u56FE\u7247":"\u4E0A\u4F20\u6587\u4EF6"},pasteWrapperClass(){return this.pasteItem.find(({type:r})=>r!=="image")?["multiple"]:[]},tableHeight(){return this.windowLandscape?Math.max(300,this.windowHeight-160):Math.max(300,this.windowHeight-200)}},watch:{pid(){this.searchKey="",this.selectIds=[],this.getFileList()},fid(){this.openFileJudge()},tableMode(r){$A.IDBSave("fileTableMode",r)},hideShared(r){$A.IDBSave("fileHideShared",r)},fileShow(r){r||(this.browseFile(0),this.windowPortrait&&$A.onBlur(!0))},imageShow(r){r||this.browseFile(0)},navigator:{handler(){this.$nextTick(r=>{this.$refs[`nav_${this.pid}`]&&$A.scrollToView(this.$refs[`nav_${this.pid}`][0],!1)})},immediate:!0},selectIds:{handler(r){r.length>0&&(this.shearIds=[])},deep:!0},shearIds:{handler(r){r.length>0&&(this.selectIds=[])},deep:!0},wsOpenNum(r){r<=1||(this.wsOpenTimeout&&clearTimeout(this.wsOpenTimeout),this.wsOpenTimeout=setTimeout(()=>{this.$route.name=="manage-file"&&this.getFileList()},5e3))}},methods:{getFileList(){this.$route.name==="manage-file"&&(this.loadIng++,this.$store.dispatch("getFiles",this.pid).then(async()=>{this.loadIng--,this.openFileJudge(),this.shakeFile(this.$route.params.shakeId),await $A.IDBSet("fileFolderId",this.pid)}).catch(({msg:r})=>{this.loadIng--,$A.modalError({content:r,onOk:()=>{this.browseFolder(0)}})}))},addFile(r){if(r){if(r=="upload"){this.uploadDir=!1,this.$refs.fileUpload.handleClick();return}else if(r=="updir"){this.uploadDir=!0,this.$refs.dirUpload.handleClick();return}}else return;let p=$A.randomString(8);this.fileLists.push({_edit:!0,pid:this.pid,id:p,type:r,name:"",userid:this.userId,newname:this.$L("\u672A\u547D\u540D")}),this.autoBlur(p)},handleLongpress(r,p){const s=$A.getAttr(p,"data-id"),c=this.fileList.find(x=>x.id==s);!c||this.handleRightClick(r,c)},handleContextmenu(r){this.windowLandscape&&this.handleRightClick(r)},handleRightClick(r,p,s){this.contextMenuItem=$A.isJson(p)?p:{},this.contextMenuVisible&&this.handleClickContextMenuOutside(),this.$nextTick(()=>{const x=this.$refs.fileWrapper.getBoundingClientRect();this.contextMenuStyles={left:`${r.clientX-x.left}px`,top:`${r.clientY-x.top}px`},s===!0&&(this.contextMenuStyles.top=`${r.target.clientHeight+r.target.offsetTop-5}px`),this.contextMenuVisible=!0})},browseFolder(r,p=null){r>0?this.goForward({name:"manage-file",params:{folderId:r,fileId:null,shakeId:p}}):(this.searchKey="",this.goForward({name:"manage-file"}))},browseFile(r){r>0?this.goForward({name:"manage-file",params:{folderId:this.pid,fileId:r}}):this.browseFolder(this.pid)},openFileJudge(){if(this.$route.name!=="manage-file"){this.fileShow=!1,this.imageShow=!1;return}if(this.fid<=0){this.fileShow=!1,this.imageShow=!1;return}const r=this.fileList.find(({id:p})=>p===this.fid);if(!r){this.fileShow=!1,this.imageShow=!1;return}if(r.image_url){const p=this.fileList.filter(({image_url:s})=>!!s);if(p.length>0){this.imageIndex=p.findIndex(({id:s})=>r.id===s),this.imageList=p.map(s=>s.image_width?{src:s.image_url,width:s.image_width,height:s.image_height}:s.image_url),this.imageShow=!0;return}}if(this.$Electron||this.$isEEUiApp){this.openFileSingle(r);return}this.fileInfo=r,this.fileShow=!0},openFileSingle(r){const p=`/single/file/${r.id}`;this.$Electron?this.$Electron.sendMessage("windowRouter",{name:`file-${r.id}`,path:p,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:$A.getFileName(r),titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:r.type==="drawio"}}):this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:$A.getFileName(r),url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${p}`}}):window.open($A.apiUrl(`..${p}`)),this.browseFile(0)},clickRow(r,p){p.type=="selection"?this.dropFile(r,"select"):this.dropFile(r,"open")},handleContextMenu(r,p){this.handleRightClick(p,this.fileLists.find(({id:s})=>s===r.id)||{})},handleContextClick(r){$A.leftExists(r,"new:")?this.addFile($A.leftDelete(r,"new:")):this.dropFile(this.contextMenuItem,r)},handleClickContextMenuOutside(){this.contextMenuVisible=!1},handleVisibleChangeMenu(r){let p=this.fileLists.find(({_highlight:s})=>!!s);p&&this.$set(p,"_highlight",!1),r&&this.contextMenuItem.id&&this.$set(this.contextMenuItem,"_highlight",!0)},dropFile(r,p){switch(p){case"open":case"openCheckMenu":if(p==="openCheckMenu"&&this.contextMenuVisible||this.fileList.findIndex(c=>c._edit===!0)>-1||r._load)return;r.type=="folder"?this.browseFolder(r.id):this.browseFile(r.id);break;case"upperFolder":this.searchKey="",this.browseFolder(r.pid,r.id);break;case"select":let s=this.selectIds.findIndex(c=>c==r.id);s>-1?this.selectIds.splice(s,1):this.selectIds.push(r.id);break;case"rename":this.setEdit(r.id,!0),this.autoBlur(r.id);break;case"copy":this.$store.dispatch("call",{url:"file/copy",data:{id:r.id}}).then(({data:c,msg:x})=>{$A.messageSuccess(x),this.$store.dispatch("saveFile",c)}).catch(({msg:c})=>{$A.modalError(c)});break;case"shear":this.shearIds=[r.id];break;case"shearSelect":this.shearIds=$A.cloneJSON(this.selectIds);break;case"send":this.sendFileId=r.id,this.sendData=[],this.$refs.sendFile.onSelection();break;case"share":this.shareInfo={id:r.id,type:"all",userid:r.userid,permission:1},this.shareList=[],this.shareShow=!0,this.getShare();break;case"outshare":$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u3010"+r.name+"\u3011\u5171\u4EAB\u6210\u5458\u5417\uFF1F",loading:!0,onOk:()=>new Promise((c,x)=>{this.$store.dispatch("call",{url:"file/share/out",data:{id:r.id}}).then(({msg:P})=>{c(P),this.$store.dispatch("forgetFile",r.id)}).catch(({msg:P})=>{x(P)})})});break;case"link":this.linkData={id:r.id,name:r.name},this.linkShow=!0,this.linkGet();break;case"download":if(!r.ext)return;$A.modalConfirm({title:"\u4E0B\u8F7D\u6587\u4EF6",content:`${r.name}.${r.ext} (${$A.bytesToSize(r.size)})`,okText:"\u7ACB\u5373\u4E0B\u8F7D",onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`file/content?id=${r.id}&down=yes`))}});break;case"delete":this.deleteFile([r.id]);break}},onSendFile(){return new Promise((r,p)=>{if(this.sendData.length===0){$A.messageError("\u8BF7\u9009\u62E9\u8F6C\u53D1\u5BF9\u8BDD\u6216\u6210\u5458"),p();return}const s=this.sendData.filter(x=>$A.leftExists(x,"d:")).map(x=>x.replace("d:","")),c=this.sendData.filter(x=>!$A.leftExists(x,"d:"));this.$store.dispatch("call",{url:"dialog/msg/sendfileid",data:{dialogids:s,userids:c,file_id:this.sendFileId}}).then(({data:x,msg:P})=>{this.$store.dispatch("saveDialogMsg",x.msgs),this.$store.dispatch("updateDialogLastMsg",x.msgs),$A.messageSuccess(P),r()}).catch(({msg:x})=>{$A.modalError(x),p()})})},linkGet(r){this.linkLoad++,this.$store.dispatch("call",{url:"file/link",data:{id:this.linkData.id,refresh:r===!0?"yes":"no"}}).then(({data:p})=>{this.linkData=Object.assign(p,{id:this.linkData.id,name:this.linkData.name}),this.linkFocus()}).catch(({msg:p})=>{this.linkShow=!1,$A.modalError(p)}).finally(p=>{this.linkLoad--})},linkCopy(){!this.linkData.url||(this.linkFocus(),this.$copyText(this.linkData.url).then(r=>{$A.messageSuccess("\u590D\u5236\u6210\u529F")}).catch(r=>{$A.messageError("\u590D\u5236\u5931\u8D25")}))},linkFocus(){this.$nextTick(r=>{this.$refs.linkInput.focus({cursor:"all"})})},shearTo(){if(this.shearIds.length!=0){if(this.isParentShare){const r=this.fileLists.find(({id:p,share:s})=>s&&this.shearIds.includes(p));if(r){$A.modalError(`${r.name} \u5F53\u524D\u6B63\u5728\u5171\u4EAB\uFF0C\u65E0\u6CD5\u79FB\u52A8\u5230\u53E6\u4E00\u4E2A\u5171\u4EAB\u6587\u4EF6\u5939\u5185`);return}}this.$store.dispatch("call",{url:"file/move",data:{ids:this.shearIds,pid:this.pid}}).then(({data:r,msg:p})=>{$A.messageSuccess(p),this.shearIds=[],this.$store.dispatch("saveFile",r)}).catch(({msg:r})=>{$A.modalError(r)})}},deleteFile(r){if(r.length===0)return;const p=this.fileLists.find(P=>P.id==r[0])||{};let c=!r.find(P=>this.fileLists.find(G=>G.type!="folder"&&G.id==P))?"\u6587\u4EF6\u5939":"\u6587\u4EF6",x=`\u3010${p.name}\u3011\u7B49${r.length}\u4E2A${c}`;r.length===1&&(x=`\u3010${p.name}\u3011${c}`),$A.modalConfirm({title:"\u5220\u9664"+c,content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664"+x+"\u5417\uFF1F",loading:!0,onOk:()=>new Promise((P,G)=>{this.$store.dispatch("call",{url:"file/remove",data:{ids:r}}).then(({msg:q})=>{P(q),this.$store.dispatch("forgetFile",r),this.selectIds=this.selectIds.filter(Fe=>!r.includes(Fe))}).catch(({msg:q})=>{G(q)})})})},autoBlur(r){this.$nextTick(()=>{if(this.$refs["input_"+r])this.$refs["input_"+r][0].focus({cursor:"all"});else if(document.getElementById("input_"+r)){const p=document.getElementById("input_"+r),s=p.value.length;p.focus(),p.setSelectionRange(0,s)}})},onParser(r){return r.replace(/[\\\/:*?\"<>|]/g,"")},onBlur(r){this.fileLists.find(({id:p,_edit:s})=>p==r.id&&!s)||this.onEnter(r)},onKeyup(r,p){r.keyCode===13?this.onEnter(p):r.keyCode===27&&(!/^\d+$/.test(p.id)?(p.newname="",this.$store.dispatch("forgetFile",p.id)):(this.setLoad(p.id,!1),this.setEdit(p.id,!1)))},onEnter(r){const p=!/^\d+$/.test(r.id);if(!r.newname){p?this.$store.dispatch("forgetFile",r.id):this.setEdit(r.id,!1);return}if(r.newname==r.name){this.setEdit(r.id,!1);return}r._load||(this.setLoad(r.id,!0),this.$store.dispatch("call",{url:"file/add",data:{id:p?0:r.id,pid:r.pid,name:r.newname,type:r.type},spinner:2e3}).then(({data:s,msg:c})=>{$A.messageSuccess(c),this.setLoad(r.id,!1),this.setEdit(r.id,!1),this.$store.dispatch("saveFile",s),p&&(this.$store.dispatch("forgetFile",r.id),this.shakeFile(s.id))}).catch(({msg:s})=>{$A.modalError(s),this.setLoad(r.id,!1),p&&this.$store.dispatch("forgetFile",r.id)}))},setEdit(r,p){const s=this.$store.state.fileLists.find(({id:c})=>c==r);s&&(this.$set(s,"_edit",p),p&&this.$set(s,"newname",s.name))},setLoad(r,p){const s=this.$store.state.fileLists.find(({id:c})=>c==r);s&&this.$set(s,"_load",p)},onSearchFocus(){this.$nextTick(()=>{this.$refs.searchInput.focus({cursor:"end"})})},onSearchChange(){this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchKey.trim()!=""&&(this.searchTimeout=setTimeout(()=>{this.loadIng++,this.$store.dispatch("searchFiles",this.searchKey.trim()).then(()=>{this.loadIng--}).catch(()=>{this.loadIng--})},600))},getShare(){this.shareLoad++,this.$store.dispatch("call",{url:"file/share",data:{id:this.shareInfo.id}}).then(({data:r})=>{r.id==this.shareInfo.id&&(this.shareList=r.list.map(p=>(p._permission=p.permission,p)))}).catch(({msg:r})=>{this.shareShow=!1,$A.modalError(r)}).finally(r=>{this.shareLoad--})},onShare(r=!1){if(this.shareInfo.type==="all"&&(this.shareInfo.userids=[0]),this.shareInfo.userids.length==0){$A.messageWarning("\u8BF7\u9009\u62E9\u5171\u4EAB\u6210\u5458");return}this.shareLoad++,this.$store.dispatch("call",{url:"file/share/update",data:Object.assign(this.shareInfo,{force:r===!0?1:0})}).then(({data:p,msg:s})=>{$A.messageSuccess(s),this.$store.dispatch("saveFile",p),this.$set(this.shareInfo,"userids",[]),this.getShare()}).catch(({ret:p,msg:s})=>{p===-3001?$A.modalConfirm({content:"\u6B64\u6587\u4EF6\u5939\u5185\u5DF2\u6709\u5171\u4EAB\u6587\u4EF6\u5939\uFF0C\u5B50\u6587\u4EF6\u7684\u5171\u4EAB\u72B6\u6001\u5C06\u88AB\u53D6\u6D88\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",onOk:()=>{this.onShare(!0)}}):$A.modalError(s)}).finally(p=>{this.shareLoad--})},upShare(r,p=!1){r.loading!==!0&&(r.loading=!0,this.$store.dispatch("call",{url:"file/share/update",data:{id:this.shareInfo.id,userids:[r.userid],permission:r.permission,force:p===!0?1:0}}).then(({data:s,msg:c})=>{if(r.loading=!1,r._permission=r.permission,$A.messageSuccess(c),this.$store.dispatch("saveFile",s),r.permission===-1){let x=this.shareList.findIndex(({userid:P})=>P==r.userid);x>-1&&this.shareList.splice(x,1)}}).catch(({ret:s,msg:c})=>{r.loading=!1,s===-3001?$A.modalConfirm({content:"\u6B64\u6587\u4EF6\u5939\u5185\u5DF2\u6709\u5171\u4EAB\u6587\u4EF6\u5939\uFF0C\u5B50\u6587\u4EF6\u7684\u5171\u4EAB\u72B6\u6001\u5C06\u88AB\u53D6\u6D88\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",onOk:()=>{this.upShare(r,!0)},onCancel:()=>{r.permission=r._permission}}):(r.permission=r._permission,$A.modalError(c))}))},uploadName(r){return $A.getObject(r,"response.data.full_name")||r.name},handleTableSort({key:r,order:p}){$A.IDBSave("cacheFileSort",["asc","desc"].includes(p)?{key:r,order:p}:{})},handleTableSelect(r){this.selectIds=r.map(p=>p.id)},clearSelect(){this.selectIds=[]},clearShear(){this.shearIds=[]},shakeFile(r){!r||this.$nextTick(p=>{const s=$A(this.$el).find(`[data-id="${r}"]`);s.length>0&&($A.scrollIntoViewIfNeeded(s[0]),$A(s[0]).addClass("common-shake"),setTimeout(c=>$A(s[0]).removeClass("common-shake"),800))})},pasteDragNext(r,p){let s=p==="drag"?r.dataTransfer.files:r.clipboardData.files;s=Array.prototype.slice.call(s),s.length>0&&(r.preventDefault(),this.pasteFile=[],this.pasteItem=[],s.some(c=>{const x={type:$A.getMiddle(c.type,null,"/"),name:c.name,size:c.size,result:null};if(x.type==="image"){const P=new FileReader;P.readAsDataURL(c),P.onload=({target:G})=>{x.result=G.result,this.pasteFile.push(c),this.pasteItem.push(x),this.pasteShow=!0}}else this.pasteFile.push(c),this.pasteItem.push(x),this.pasteShow=!0}))},filePasteDrag(r,p){this.dialogDrag=!1,this.pasteDragNext(r,p)},fileDragOver(r,p){let s=this.__dialogDrag=$A.randomString(8);if(!r)setTimeout(()=>{s===this.__dialogDrag&&(this.dialogDrag=r)},150);else{if(p.dataTransfer.effectAllowed==="move")return;this.dialogDrag=!0}},pasteSend(){const r=[];this.pasteFile.some(p=>{r.find(s=>s===p.name)||(r.push(p.name),this.$refs.fileUpload.upload(p))})},fileBeforeClose(){return new Promise(r=>{if(!this.$refs.fileContent){r();return}if(this.$refs.fileContent.equalContent){r();return}$A.modalConfirm({content:"\u4FEE\u6539\u7684\u5185\u5BB9\u5C1A\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u653E\u5F03\u4FEE\u6539\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u653E\u5F03",onOk:()=>{r()}})})},uploadUpdate(r){r.forEach(p=>{let s=this.uploadList.findIndex(({uid:c})=>c==p.uid);s>-1?this.uploadList.splice(s,1,p):this.uploadList.unshift(p)})},uploadClear(){this.uploadList=this.uploadList.filter(({status:r})=>r!=="finished"),this.$refs.fileUpload.clearFiles(),this.$refs.dirUpload.clearFiles()},uploadPercentageParse(r){return parseInt(r,10)},handleProgress(r,p,s){p._uploadIng===void 0&&(p._uploadIng=!0,this.uploadIng++),this.uploadUpdate(s)},handleSuccess(r,p,s){this.uploadIng--,this.uploadUpdate(s),r.ret===1?this.$store.dispatch("saveFile",r.data):$A.modalWarning({title:"\u4E0A\u4F20\u5931\u8D25",content:"\u6587\u4EF6 "+p.name+" \u4E0A\u4F20\u5931\u8D25\uFF0C"+r.msg})},handleError(r,p,s){this.uploadIng--,this.uploadUpdate(s)},handleFormatError(r){this.uploadDir||$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+r.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u4E0A\u4F20\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(r){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+r.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u8D85\u8FC7\uFF1A"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleBeforeUpload(){return this.uploadShow=!0,!0}}},uu={};var vg=lg(_g,hg,dg,!1,mg,null,null,null);function mg(r){for(let p in uu)this[p]=uu[p]}var Lg=function(){return vg.exports}();export{Lg as default}; +}`;var F=iu(function(){return M(l,L+"return "+w).apply(s,f)});if(F.source=w,gi(F))throw F;return F}function dp(e){return k(e).toLowerCase()}function pp(e){return k(e).toUpperCase()}function gp(e,n,t){if(e=k(e),e&&(t||n===s))return ds(e);if(!e||!(n=ce(n)))return e;var i=Ce(e),a=Ce(n),l=ps(i,a),f=gs(i,a)+1;return sn(i,l,f).join("")}function _p(e,n,t){if(e=k(e),e&&(t||n===s))return e.slice(0,vs(e)+1);if(!e||!(n=ce(n)))return e;var i=Ce(e),a=gs(i,Ce(n))+1;return sn(i,0,a).join("")}function vp(e,n,t){if(e=k(e),e&&(t||n===s))return e.replace(gr,"");if(!e||!(n=ce(n)))return e;var i=Ce(e),a=ps(i,Ce(n));return sn(i,a).join("")}function mp(e,n){var t=fu,i=ou;if(H(n)){var a="separator"in n?n.separator:a;t="length"in n?T(n.length):t,i="omission"in n?ce(n.omission):i}e=k(e);var l=e.length;if(bn(e)){var f=Ce(e);l=f.length}if(t>=l)return e;var o=t-Tn(i);if(o<1)return i;var d=f?sn(f,0,o).join(""):e.slice(0,o);if(a===s)return d+i;if(f&&(o+=d.length-o),_i(a)){if(e.slice(o).search(a)){var v,m=d;for(a.global||(a=Rr(a.source,k(Mi.exec(a))+"g")),a.lastIndex=0;v=a.exec(m);)var w=v.index;d=d.slice(0,w===s?o:w)}}else if(e.indexOf(ce(a),o)!=o){var I=d.lastIndexOf(a);I>-1&&(d=d.slice(0,I))}return d+i}function wp(e){return e=k(e),e&&bu.test(e)?e.replace(Ri,ql):e}var xp=Pn(function(e,n,t){return e+(t?" ":"")+n.toUpperCase()}),wi=sa("toUpperCase");function ru(e,n,t){return e=k(e),n=t?s:n,n===s?Nl(e)?Jl(e):Rl(e):e.match(n)||[]}var iu=E(function(e,n){try{return fe(e,s,n)}catch(t){return gi(t)?t:new y(t)}}),Ip=He(function(e,n){return ve(n,function(t){t=Pe(t),Ne(e,t,di(e[t],e))}),e});function Ap(e){var n=e==null?0:e.length,t=S();return e=n?z(e,function(i){if(typeof i[1]!="function")throw new me(G);return[t(i[0]),i[1]]}):[],E(function(i){for(var a=-1;++aXe)return[];var t=Oe,i=ee(e,Oe);n=S(n),e-=Oe;for(var a=Tr(i,n);++t0||n<0)?new O(t):(e<0?t=t.takeRight(-e):e&&(t=t.drop(e)),n!==s&&(n=T(n),t=n<0?t.dropRight(-n):t.take(n-e)),t)},O.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},O.prototype.toArray=function(){return this.take(Oe)},De(O.prototype,function(e,n){var t=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),a=u[i?"take"+(n=="last"?"Right":""):n],l=i||/^find/.test(n);!a||(u.prototype[n]=function(){var f=this.__wrapped__,o=i?[1]:arguments,d=f instanceof O,v=o[0],m=d||b(f),w=function(R){var D=a.apply(u,Ve([R],o));return i&&I?D[0]:D};m&&t&&typeof v=="function"&&v.length!=1&&(d=m=!1);var I=this.__chain__,L=!!this.__actions__.length,$=l&&!I,F=d&&!L;if(!l&&m){f=F?f:new O(this);var C=e.apply(f,o);return C.__actions__.push({func:Xt,args:[w],thisArg:s}),new we(C,I)}return $&&F?e.apply(this,o):(C=this.thru(w),$?i?C.value()[0]:C.value():C)})}),ve(["pop","push","shift","sort","splice","unshift"],function(e){var n=At[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);u.prototype[e]=function(){var a=arguments;if(i&&!this.__chain__){var l=this.value();return n.apply(b(l)?l:[],a)}return this[t](function(f){return n.apply(b(f)?f:[],a)})}}),De(O.prototype,function(e,n){var t=u[n];if(t){var i=t.name+"";B.call(On,i)||(On[i]=[]),On[i].push({name:n,func:t})}}),On[Ht(s,un).name]=[{name:"wrapper",func:s}],O.prototype.clone=mf,O.prototype.reverse=wf,O.prototype.value=xf,u.prototype.at=Xc,u.prototype.chain=Qc,u.prototype.commit=Vc,u.prototype.next=jc,u.prototype.plant=nh,u.prototype.reverse=th,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=rh,u.prototype.first=u.prototype.head,Jn&&(u.prototype[Jn]=eh),u},Fn=Xl();fn?((fn.exports=Fn)._=Fn,Ir._=Fn):V._=Fn}).call(ft)})(Ci,Ci.exports);var hg=function(){var r=this,p=r.$createElement,s=r._self._c||p;return s("div",{staticClass:"page-file"},[s("PageTitle",{attrs:{title:r.$L("\u6587\u4EF6")}}),s("div",{ref:"fileWrapper",staticClass:"file-wrapper"},[s("div",{staticClass:"file-head"},[s("div",{staticClass:"file-nav"},[s("h1",[r._v(r._s(r.$L("\u6587\u4EF6")))]),r.loadIng==0?s("div",{staticClass:"file-refresh",on:{click:r.getFileList}},[s("i",{staticClass:"taskfont"},[r._v("\uE6AE")])]):r._e()]),r.uploadList.length>0?s("div",{staticClass:"file-status",on:{click:function(c){r.uploadShow=!0}}},[r.uploadList.find(function(c){var x=c.status;return x!=="finished"})?s("Loading"):s("Button",{attrs:{shape:"circle",icon:"md-checkmark"}})],1):r._e(),s("div",{class:["file-search",r.searchKey?"has-value":""],on:{click:r.onSearchFocus,mouseenter:r.onSearchFocus}},[s("Input",{ref:"searchInput",attrs:{suffix:"ios-search",placeholder:r.$L("\u641C\u7D22\u540D\u79F0")},on:{"on-change":r.onSearchChange},model:{value:r.searchKey,callback:function(c){r.searchKey=c},expression:"searchKey"}})],1),s("div",{staticClass:"file-add"},[s("Button",{attrs:{shape:"circle",icon:"md-add"},on:{click:function(c){return c.stopPropagation(),r.handleRightClick(c,null,!0)}}})],1)]),s("div",{staticClass:"file-navigator"},[s("ul",{staticClass:"scrollbar-hidden"},[s("li",{on:{click:function(c){return r.browseFolder(0)}}},[s("span",[r._v(r._s(r.$L("\u5168\u90E8\u6587\u4EF6")))])]),r.searchKey?s("li",[r._v(r._s(r.$L("\u641C\u7D22"))+' "'+r._s(r.searchKey)+'"')]):r._l(r.navigator,function(c){return s("li",{ref:`nav_${c.id}`,refInFor:!0,on:{click:function(x){return r.browseFolder(c.id)}}},[c.share?s("i",{staticClass:"taskfont"},[r._v("\uE63F")]):r._e(),s("span",{attrs:{title:c.name}},[r._v(r._s(c.name))]),c.share&&c.permission==0?s("span",{staticClass:"readonly"},[r._v(r._s(r.$L("\u53EA\u8BFB")))]):r._e()])})],2),r.shearFirst?[s("Button",{attrs:{disabled:r.shearFirst.pid==r.pid,size:"small",type:"primary"},on:{click:r.shearTo}},[s("div",{staticClass:"file-shear"},[s("span",[r._v(r._s(r.$L("\u7C98\u8D34")))]),r._v(' "'),s("em",[r._v(r._s(r.shearFirst.name))]),r._v('" '),r.shearIds.length>1?s("span",[r._v(r._s(r.$L("\u7B49"))+r._s(r.shearIds.length)+r._s(r.$L("\u4E2A\u6587\u4EF6")))]):r._e()])]),s("Button",{attrs:{type:"primary",size:"small"},on:{click:r.clearShear}},[r._v(r._s(r.$L("\u53D6\u6D88\u526A\u5207")))])]:r.selectIds.length>0?[s("Button",{attrs:{size:"small",type:"info"},on:{click:function(c){return r.handleContextClick("shearSelect")}}},[s("Icon",{attrs:{type:"ios-cut"}}),r._v(" "+r._s(r.$L("\u526A\u5207"))+" ")],1),s("Button",{attrs:{size:"small",type:"error"},on:{click:function(c){return r.deleteFile(r.selectIds)}}},[s("Icon",{attrs:{type:"ios-trash"}}),r._v(" "+r._s(r.$L("\u5220\u9664"))+" ")],1),s("Button",{attrs:{type:"primary",size:"small"},on:{click:r.clearSelect}},[r._v(r._s(r.$L("\u53D6\u6D88\u9009\u62E9")))])]:r._e(),r.loadIng>0?s("div",{staticClass:"nav-load"},[s("Loading")],1):r._e(),s("div",{staticClass:"flex-full"}),r.hasShareFile?s("div",{staticClass:"only-checkbox"},[s("Checkbox",{model:{value:r.hideShared,callback:function(c){r.hideShared=c},expression:"hideShared"}},[r._v(r._s(r.$L("\u4EC5\u663E\u793A\u6211\u7684")))])],1):r._e(),s("div",{class:["switch-button",r.tableMode]},[s("div",{on:{click:function(c){r.tableMode="block"}}},[s("i",{staticClass:"taskfont"},[r._v("\uE60C")])]),s("div",{on:{click:function(c){r.tableMode="table"}}},[s("i",{staticClass:"taskfont"},[r._v("\uE66A")])])])],2),s("div",{staticClass:"file-drag",on:{drop:function(c){return c.preventDefault(),r.filePasteDrag(c,"drag")},dragover:function(c){return c.preventDefault(),r.fileDragOver(!0,c)},dragleave:function(c){return c.preventDefault(),r.fileDragOver(!1,c)}}},[r.tableMode==="table"?s("div",{staticClass:"file-table",on:{contextmenu:function(c){return c.preventDefault(),r.handleContextmenu.apply(null,arguments)}}},[s("Table",{attrs:{columns:r.columns,data:r.fileList,height:r.tableHeight,"no-data-text":r.$L("\u6CA1\u6709\u4EFB\u4F55\u6587\u4EF6"),"context-menu":"",stripe:""},on:{"on-cell-click":r.clickRow,"on-contextmenu":r.handleContextMenu,"on-select":r.handleTableSelect,"on-select-cancel":r.handleTableSelect,"on-select-all-cancel":r.handleTableSelect,"on-select-all":r.handleTableSelect,"on-sort-change":r.handleTableSort}})],1):[r.fileList.length==0&&r.loadIng==0?s("div",{staticClass:"file-no",on:{contextmenu:function(c){return c.preventDefault(),r.handleContextmenu.apply(null,arguments)}}},[s("i",{staticClass:"taskfont"},[r._v("\uE60B")]),s("p",[r._v(r._s(r.$L("\u6CA1\u6709\u4EFB\u4F55\u6587\u4EF6")))])]):s("div",{staticClass:"file-list",on:{contextmenu:function(c){return c.preventDefault(),r.handleContextmenu.apply(null,arguments)}}},[s("ul",r._l(r.fileList,function(c){return s("li",[s("div",{directives:[{name:"longpress",rawName:"v-longpress",value:r.handleLongpress,expression:"handleLongpress"}],staticClass:"file-item",class:{shear:r.shearIds.includes(c.id),highlight:r.selectIds.includes(c.id),operate:r.contextMenuVisible&&c.id===r.contextMenuItem.id},attrs:{"data-id":c.id},on:{click:function(x){return r.dropFile(c,"openCheckMenu")}}},[s("div",{staticClass:"file-check",class:{"file-checked":r.selectIds.includes(c.id)},on:{click:function(x){return x.stopPropagation(),r.dropFile(c,"select")}}},[s("Checkbox",{attrs:{value:r.selectIds.includes(c.id)}})],1),s("div",{staticClass:"file-menu",on:{click:function(x){return x.stopPropagation(),r.handleRightClick(x,c)}}},[s("Icon",{attrs:{type:"ios-more"}})],1),s("div",{class:`no-dark-before file-icon ${c.type}${c.share?" share":""}`},[c.share?[c.userid!=r.userId?s("UserAvatar",{staticClass:"share-avatar",attrs:{userid:c.userid,size:20}},[s("p",[r._v(r._s(r.$L("\u5171\u4EAB\u6743\u9650"))+": "+r._s(r.$L(c.permission==1?"\u8BFB/\u5199":"\u53EA\u8BFB")))])]):s("div",{staticClass:"share-icon no-dark-content"},[s("i",{staticClass:"taskfont"},[r._v("\uE757")])])]:r.isParentShare?[s("UserAvatar",{staticClass:"share-avatar",attrs:{userid:c.created_id,size:20}},[c.created_id!=c.userid?s("p",[s("strong",[r._v(r._s(r.$L("\u6210\u5458\u521B\u5EFA\u4E8E"))+": "+r._s(c.created_at))])]):s("p",[r._v(r._s(r.$L("\u6240\u6709\u8005\u521B\u5EFA\u4E8E"))+": "+r._s(c.created_at))])])]:r._e()],2),c._edit?s("div",{staticClass:"file-input"},[s("Input",{ref:"input_"+c.id,refInFor:!0,attrs:{size:"small",disabled:!!c._load,parser:r.onParser},on:{"on-blur":function(x){return r.onBlur(c)},"on-keyup":function(x){return r.onKeyup(x,c)}},model:{value:c.newname,callback:function(x){r.$set(c,"newname",x)},expression:"item.newname"}}),c._load?s("div",{staticClass:"file-load"},[s("Loading")],1):r._e()],1):s("div",{staticClass:"file-name",attrs:{title:c.name}},[r._v(r._s(r.$A.getFileName(c)))])])])}),0)])],r.dialogDrag?s("div",{staticClass:"drag-over",on:{click:function(c){r.dialogDrag=!1}}},[s("div",{staticClass:"drag-text"},[r._v(r._s(r.$L("\u62D6\u52A8\u5230\u8FD9\u91CC\u53D1\u9001")))])]):r._e()],2),s("div",{staticClass:"file-menu",style:r.contextMenuStyles},[s("Dropdown",{attrs:{trigger:"custom",visible:r.contextMenuVisible,"transfer-class-name":"page-file-dropdown-menu",transfer:""},on:{"on-click":r.handleContextClick,"on-clickoutside":r.handleClickContextMenuOutside,"on-visible-change":r.handleVisibleChangeMenu}},[s("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[r.contextMenuItem.id?[s("DropdownItem",{staticClass:"item-open",attrs:{name:"open"}},[r._v(" "+r._s(r.$L("\u6253\u5F00"))+" "),s("div",{staticClass:"open-name"},[r._v("\u201C"+r._s(r.contextMenuItem.name)+"\u201D")])]),r.searchKey?s("DropdownItem",{staticClass:"item-open",attrs:{name:"upperFolder"}},[r._v(" "+r._s(r.$L("\u5728\u4E0A\u5C42\u6587\u4EF6\u5939\u4E2D\u663E\u793A"))+" ")]):r._e(),s("DropdownItem",{attrs:{name:"select"}},[r._v(r._s(r.$L(r.selectIds.includes(r.contextMenuItem.id)?"\u53D6\u6D88\u9009\u62E9":"\u9009\u62E9")))]),s("Dropdown",{attrs:{placement:"right-start",transfer:""}},[s("DropdownItem",{attrs:{divided:"",name:"new:"},nativeOn:{click:function(c){c.stopPropagation()}}},[s("div",{staticClass:"arrow-forward-item"},[r._v(r._s(r.$L("\u65B0\u5EFA"))),s("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),s("DropdownMenu",{staticClass:"page-file-dropdown-menu",attrs:{slot:"list"},slot:"list"},r._l(r.types,function(c,x){return c.label?s("DropdownItem",{key:x,attrs:{divided:!!c.divided,name:`new:${c.value}`}},[s("div",{class:`no-dark-before file-item file-icon ${c.value}`},[r._v(r._s(r.$L(c.label)))])]):r._e()}),1)],1),s("DropdownItem",{attrs:{name:"rename",divided:""}},[r._v(r._s(r.$L("\u91CD\u547D\u540D")))]),s("DropdownItem",{attrs:{name:"copy",disabled:r.contextMenuItem.type=="folder"}},[r._v(r._s(r.$L("\u590D\u5236")))]),s("DropdownItem",{attrs:{name:"shear",disabled:r.contextMenuItem.userid!=r.userId}},[r._v(r._s(r.$L("\u526A\u5207")))]),r.contextMenuItem.userid==r.userId?s("DropdownItem",{attrs:{name:"share",divided:""}},[r._v(r._s(r.$L("\u5171\u4EAB")))]):r.contextMenuItem.share?s("DropdownItem",{attrs:{name:"outshare",divided:""}},[r._v(r._s(r.$L("\u9000\u51FA\u5171\u4EAB")))]):r._e(),s("DropdownItem",{attrs:{name:"send",disabled:r.contextMenuItem.type=="folder"}},[r._v(r._s(r.$L("\u53D1\u9001")))]),s("DropdownItem",{attrs:{name:"link",divided:r.contextMenuItem.userid!=r.userId&&!r.contextMenuItem.share,disabled:r.contextMenuItem.type=="folder"}},[r._v(r._s(r.$L("\u94FE\u63A5")))]),s("DropdownItem",{attrs:{name:"download",disabled:r.contextMenuItem.ext==""}},[r._v(r._s(r.$L("\u4E0B\u8F7D")))]),s("DropdownItem",{staticStyle:{color:"red"},attrs:{name:"delete",divided:""}},[r._v(r._s(r.$L("\u5220\u9664")))])]:r._l(r.types,function(c,x){return c.label?s("DropdownItem",{key:x,attrs:{divided:!!c.divided,name:`new:${c.value}`}},[s("div",{class:`no-dark-before file-item file-icon ${c.value}`},[r._v(r._s(r.$L(c.label)))])]):r._e()})],2)],1)],1)]),r.uploadShow&&r.uploadList.length>0?s("div",{staticClass:"file-upload-list"},[s("div",{staticClass:"upload-wrap"},[s("div",{staticClass:"title"},[r._v(" "+r._s(r.$L("\u4E0A\u4F20\u5217\u8868"))+" ("+r._s(r.uploadList.length)+") "),r.uploadList.find(function(c){var x=c.status;return x==="finished"})?s("em",{on:{click:r.uploadClear}},[r._v(r._s(r.$L("\u6E05\u7A7A\u5DF2\u5B8C\u6210")))]):r._e()]),s("ul",{staticClass:"content"},r._l(r.uploadList,function(c,x){return x<100?s("li",{key:x},[s("AutoTip",{staticClass:"file-name"},[r._v(r._s(r.uploadName(c)))]),c.status==="finished"&&c.response&&c.response.ret!==1?s("AutoTip",{staticClass:"file-error"},[r._v(r._s(c.response.msg))]):s("Progress",{attrs:{percent:r.uploadPercentageParse(c.percentage),"stroke-width":5}}),s("Icon",{staticClass:"file-close",attrs:{type:"ios-close-circle-outline"},on:{click:function(P){return r.uploadList.splice(x,1)}}})],1):r._e()}),0),s("Icon",{staticClass:"close",attrs:{type:"md-close"},on:{click:function(c){r.uploadShow=!1}}})],1)]):r._e(),s("Upload",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"fileUpload",attrs:{name:"files",action:r.actionUrl,headers:r.headers,multiple:!0,webkitdirectory:!1,format:r.uploadFormat,accept:r.uploadAccept,"show-upload-list":!1,"max-size":r.maxSize,"on-progress":r.handleProgress,"on-success":r.handleSuccess,"on-error":r.handleError,"on-format-error":r.handleFormatError,"on-exceeded-size":r.handleMaxSize,"before-upload":r.handleBeforeUpload}}),s("Upload",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"dirUpload",attrs:{name:"files",action:r.actionUrl,headers:r.headers,multiple:!0,webkitdirectory:!0,format:r.uploadFormat,accept:r.uploadAccept,"show-upload-list":!1,"max-size":r.maxSize,"on-progress":r.handleProgress,"on-success":r.handleSuccess,"on-error":r.handleError,"on-format-error":r.handleFormatError,"on-exceeded-size":r.handleMaxSize,"before-upload":r.handleBeforeUpload}}),s("Modal",{attrs:{title:r.$L("\u5171\u4EAB\u8BBE\u7F6E"),"mask-closable":!1,"footer-hide":""},model:{value:r.shareShow,callback:function(c){r.shareShow=c},expression:"shareShow"}},[s("Form",{staticClass:"page-file-share-form",attrs:{model:r.shareInfo,inline:""},nativeOn:{submit:function(c){c.preventDefault()}}},[s("FormItem",{staticClass:"share-userid",attrs:{prop:"userids"}},[s("RadioGroup",{model:{value:r.shareInfo.type,callback:function(c){r.$set(r.shareInfo,"type",c)},expression:"shareInfo.type"}},[s("Radio",{attrs:{label:"all"}},[r._v(r._s(r.$L("\u6240\u6709\u4EBA")))]),s("Radio",{attrs:{label:"custom"}},[r._v(r._s(r.$L("\u6307\u5B9A\u6210\u5458")))])],1),r.shareInfo.type==="custom"?s("UserSelect",{attrs:{disabledChoice:r.shareAlready,"multiple-max":100,placeholder:r.$L("\u9009\u62E9\u5171\u4EAB\u6210\u5458"),"avatar-size":24,border:""},model:{value:r.shareInfo.userids,callback:function(c){r.$set(r.shareInfo,"userids",c)},expression:"shareInfo.userids"}}):r._e()],1),s("FormItem",[s("Select",{attrs:{placeholder:r.$L("\u6743\u9650")},model:{value:r.shareInfo.permission,callback:function(c){r.$set(r.shareInfo,"permission",c)},expression:"shareInfo.permission"}},[s("Option",{attrs:{value:1}},[r._v(r._s(r.$L("\u8BFB/\u5199")))]),s("Option",{attrs:{value:0}},[r._v(r._s(r.$L("\u53EA\u8BFB")))])],1)],1),s("FormItem",[s("Button",{attrs:{type:"primary",loading:r.shareLoad>0},on:{click:r.onShare}},[r._v(r._s(r.$L("\u5171\u4EAB")))])],1)],1),r.shareList.length>0?s("div",{staticClass:"page-file-share-items"},[s("div",{staticClass:"page-file-share-title"},[r._v(r._s(r.$L("\u5DF2\u5171\u4EAB\u6210\u5458"))+":")]),s("ul",{staticClass:"page-file-share-list"},r._l(r.shareList,function(c){return s("li",[c.userid==0?s("div",{staticClass:"all-avatar"},[s("EAvatar",{staticClass:"avatar-text",attrs:{icon:"el-icon-s-custom"}}),s("span",{staticClass:"avatar-name"},[r._v(r._s(r.$L("\u6240\u6709\u4EBA")))])],1):s("UserAvatar",{attrs:{size:32,userid:c.userid,showName:"",tooltipDisabled:""}}),s("Select",{attrs:{placeholder:r.$L("\u6743\u9650")},on:{"on-change":function(x){return r.upShare(c)}},model:{value:c.permission,callback:function(x){r.$set(c,"permission",x)},expression:"item.permission"}},[s("Option",{attrs:{value:1}},[r._v(r._s(r.$L("\u8BFB/\u5199")))]),s("Option",{attrs:{value:0}},[r._v(r._s(r.$L("\u53EA\u8BFB")))]),s("Option",{staticClass:"delete",attrs:{value:-1}},[r._v(r._s(r.$L("\u5220\u9664")))])],1)],1)}),0)]):r._e()],1),s("UserSelect",{ref:"sendFile",attrs:{"multiple-max":50,title:r.$L("\u53D1\u9001\u6587\u4EF6"),"before-submit":r.onSendFile,"show-select-all":!1,"show-dialog":"",module:""},model:{value:r.sendData,callback:function(c){r.sendData=c},expression:"sendData"}}),s("Modal",{attrs:{title:r.$L("\u6587\u4EF6\u94FE\u63A5"),"mask-closable":!1},model:{value:r.linkShow,callback:function(c){r.linkShow=c},expression:"linkShow"}},[s("div",[s("div",{staticStyle:{margin:"-10px 0 8px"}},[r._v(r._s(r.$L("\u6587\u4EF6\u540D\u79F0"))+": "+r._s(r.linkData.name))]),s("Input",{ref:"linkInput",attrs:{type:"textarea",rows:3,readonly:""},on:{"on-focus":r.linkFocus},model:{value:r.linkData.url,callback:function(c){r.$set(r.linkData,"url",c)},expression:"linkData.url"}}),s("div",{staticClass:"form-tip",staticStyle:{"padding-top":"6px"}},[r._v(r._s(r.$L("\u53EF\u901A\u8FC7\u6B64\u94FE\u63A5\u6D4F\u89C8\u6587\u4EF6\u3002"))),s("a",{attrs:{href:"javascript:void(0)"},on:{click:r.linkCopy}},[r._v(r._s(r.$L("\u70B9\u51FB\u590D\u5236\u94FE\u63A5")))])])],1),s("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[s("Button",{attrs:{type:"default"},on:{click:function(c){r.linkShow=!1}}},[r._v(r._s(r.$L("\u53D6\u6D88")))]),s("Poptip",{staticStyle:{"margin-left":"8px"},attrs:{confirm:"",placement:"bottom","ok-text":r.$L("\u786E\u5B9A"),"cancel-text":r.$L("\u53D6\u6D88"),transfer:""},on:{"on-ok":function(c){return r.linkGet(!0)}}},[s("div",{attrs:{slot:"title"},slot:"title"},[s("p",[s("strong",[r._v(r._s(r.$L("\u6CE8\u610F\uFF1A\u5237\u65B0\u5C06\u5BFC\u81F4\u539F\u6765\u7684\u94FE\u63A5\u5931\u6548\uFF01")))])])]),s("Button",{attrs:{type:"primary",loading:r.linkLoad>0}},[r._v(r._s(r.$L("\u5237\u65B0")))])],1)],1)]),s("DrawerOverlay",{staticClass:"page-file-drawer",attrs:{beforeClose:r.fileBeforeClose,"mask-closable":!1},model:{value:r.fileShow,callback:function(c){r.fileShow=c},expression:"fileShow"}},[r.isPreview?s("FilePreview",{attrs:{file:r.fileInfo}}):s("FileContent",{ref:"fileContent",attrs:{file:r.fileInfo},model:{value:r.fileShow,callback:function(c){r.fileShow=c},expression:"fileShow"}})],1),s("PreviewImage",{attrs:{index:r.imageIndex,list:r.imageList},model:{value:r.imageShow,callback:function(c){r.imageShow=c},expression:"imageShow"}}),s("Modal",{attrs:{title:r.$L(r.pasteTitle),"cancel-text":r.$L("\u53D6\u6D88"),"ok-text":r.$L("\u7ACB\u5373\u4E0A\u4F20"),"enter-ok":!0},on:{"on-ok":r.pasteSend},model:{value:r.pasteShow,callback:function(c){r.pasteShow=c},expression:"pasteShow"}},[s("ul",{staticClass:"dialog-wrapper-paste",class:r.pasteWrapperClass},r._l(r.pasteItem,function(c){return s("li",[c.type=="image"?s("img",{attrs:{src:c.result}}):s("div",[r._v(r._s(r.$L("\u6587\u4EF6"))+": "+r._s(c.name)+" ("+r._s(r.$A.bytesToSize(c.size))+")")])])}),0)])],1)},dg=[];const pg=()=>lu(()=>import("./FilePreview.025b3286.js"),["js/build/FilePreview.025b3286.js","js/build/app.28437e7d.js","js/build/app.3c80ad42.css","js/build/IFrame.057cac1d.js"]),gg=()=>lu(()=>import("./FileContent.19861c79.js"),["js/build/FileContent.19861c79.js","js/build/FileContent.5c6a1e1c.css","js/build/app.28437e7d.js","js/build/app.3c80ad42.css","js/build/IFrame.057cac1d.js"]),mn={sort:null,mode:null,shared:null},_g={components:{UserSelect:cg,PreviewImage:ag,FilePreview:pg,DrawerOverlay:fg,FileContent:gg},directives:{longpress:og},data(){return{loadIng:0,searchKey:"",searchTimeout:null,types:[{value:"folder",label:"\u65B0\u5EFA\u6587\u4EF6\u5939",name:"\u6587\u4EF6\u5939"},{value:"upload",label:"\u4E0A\u4F20\u6587\u4EF6",name:null,divided:!0},{value:"updir",label:"\u4E0A\u4F20\u6587\u4EF6\u5939",name:null},{value:"document",label:"\u6587\u672C",name:"\u6587\u672C",divided:!0},{value:"drawio",label:"\u56FE\u8868",name:"\u56FE\u8868"},{value:"mind",label:"\u601D\u7EF4\u5BFC\u56FE",name:"\u5BFC\u56FE"},{value:"word",label:"Word \u6587\u6863",name:"Word",divided:!0},{value:"excel",label:"Excel \u5DE5\u4F5C\u8868",name:"Excel"},{value:"ppt",label:"PPT \u6F14\u793A\u6587\u7A3F",name:"PPT"}],tableMode:"",hideShared:!1,columns:[],shareShow:!1,shareInfo:{id:0,type:"all",userid:0,permission:1},shareList:[],shareLoad:0,sendFileId:0,sendData:[],linkShow:!1,linkData:{},linkLoad:0,fileShow:!1,fileInfo:{permission:-1},imageShow:!1,imageIndex:0,imageList:[],uploadDir:!1,uploadIng:0,uploadShow:!1,uploadList:[],uploadFormat:[],uploadAccept:"",maxSize:1024e3,contextMenuItem:{},contextMenuVisible:!1,contextMenuStyles:{top:0,left:0},shearIds:[],selectIds:[],dialogDrag:!1,pasteShow:!1,pasteFile:[],pasteItem:[]}},async beforeRouteEnter(r,p,s){mn.sort=await $A.IDBJson("cacheFileSort"),mn.mode=await $A.IDBString("fileTableMode"),mn.shared=await $A.IDBBoolean("fileHideShared"),s()},created(){this.tableMode=mn.mode,this.hideShared=mn.shared,this.columns=[{type:"selection",width:50,align:"right"},{title:this.$L("\u6587\u4EF6\u540D"),key:"name",minWidth:300,sortable:!0,render:(r,{row:p})=>{let s=[];if(!/^\d+$/.test(p.id))return s.push(r("Input",{props:{elementId:"input_"+p.id,value:p.newname,autofocus:!0,disabled:!!p._load,parser:this.onParser},style:{width:"auto"},on:{"on-change":x=>{p.newname=x.target.value},"on-blur":()=>{const x=this.fileLists.find(({id:P})=>P==p.id);x&&(x.newname=p.newname,this.onBlur(x))},"on-enter":()=>{const x=this.fileLists.find(({id:P})=>P==p.id);x&&(x.newname=p.newname,this.onEnter(x))}}})),r("div",{class:"file-nbox"},[r("div",{class:`no-dark-before file-name file-icon ${p.type}`},s)]);{s.push(r("QuickEdit",{props:{value:p.name,autoEdit:!!p._edit,clickOutSide:!1,parser:this.onParser},on:{"on-edit-change":q=>{const Fe=this.fileLists.find(({id:Ze})=>Ze==p.id);Fe&&setTimeout(()=>{this.setEdit(Fe.id,q)},100)},"on-update":(q,Fe)=>{const Ze=this.fileLists.find(({id:wn})=>wn==p.id);Ze&&Ze._edit===!0&&(Ze.newname=q,this.onEnter(Ze)),Fe()}}},[r("AutoTip",{props:{placement:"right"}},$A.getFileName(p))]));const x=[];p.share?p.userid!=this.userId?x.push(r("UserAvatar",{props:{userid:p.userid,size:20}})):x.push(r("i",{class:"taskfont",domProps:{innerHTML:""}})):this.isParentShare&&x.push(r("UserAvatar",{props:{userid:p.created_id,size:20}},[p.created_id!=p.userid?r("p",[r("strong",this.$L("\u6210\u5458\u521B\u5EFA\u4E8E")+": "+p.created_at)]):r("p",this.$L("\u6240\u6709\u8005\u521B\u5EFA\u4E8E")+": "+p.created_at)]));const P=this.shearIds.includes(p.id)?" shear":"",G=p.share?" share":"";return r("div",{class:`file-nbox${P}`,attrs:{"data-id":p.id}},[r("div",{class:`no-dark-before file-name file-icon ${p.type}${G}`},s),x])}}},{title:this.$L("\u5927\u5C0F"),key:"size",width:110,resizable:!0,sortable:!0,render:(r,{row:p})=>p.type=="folder"?r("div","-"):r("AutoTip",$A.bytesToSize(p.size))},{title:this.$L("\u7C7B\u578B"),key:"type",width:110,resizable:!0,sortable:!0,render:(r,{row:p})=>{let s=this.types.find(({value:c,name:x})=>c==p.type&&x);return s?r("AutoTip",this.$L(s.name)):r("div",(p.ext||p.type).toUpperCase())}},{title:this.$L("\u6240\u6709\u8005"),key:"userid",width:130,resizable:!0,sortable:!0,render:(r,{row:p})=>r("UserAvatar",{props:{size:18,userid:p.userid,showIcon:!1,showName:!0}})},{title:this.$L("\u6700\u540E\u4FEE\u6539"),key:"updated_at",width:168,resizable:!0,sortable:!0}].map(r=>(r.key===mn.sort.key&&(r.sortType=mn.sort.order),r))},mounted(){this.uploadAccept=this.uploadFormat.map(r=>"."+r).join(",")},activated(){this.getFileList()},computed:{...ug(["userIsAdmin","userInfo","fileLists","wsOpenNum"]),pid(){const{folderId:r}=this.$route.params;return parseInt(/^\d+$/.test(r)?r:0)},fid(){const{fileId:r}=this.$route.params;return parseInt(/^\d+$/.test(r)?r:0)},actionUrl(){return $A.apiUrl("file/content/upload?pid="+this.pid)},headers(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}},shareAlready(){let r=this.shareList?this.shareList.map(({userid:p})=>p):[];return this.shareInfo.userid&&r.push(this.shareInfo.userid),r},fileList(){const{fileLists:r,searchKey:p,hideShared:s,pid:c,selectIds:x,userId:P}=this;return $A.cloneJSON(Ci.exports.sortBy(r.filter(q=>s&&q.userid!=P&&q.created_id!=P?!1:p?q.name.indexOf(p)!==-1:q.pid==c),q=>(q.type=="folder"?"a":"b")+q.name)).map(q=>(q._checked=x.includes(q.id),q))},hasShareFile(){const{fileLists:r,userId:p}=this;return r.findIndex(s=>s.share&&s.userid!=p)!==-1},shearFirst(){const{fileLists:r,shearIds:p}=this;return p.length===0?null:r.find(s=>s.id==p[0])},navigator(){let{pid:r,fileLists:p}=this,s=[];for(;r>0;){let c=p.find(({id:x,permission:P})=>x==r&&P>-1);c?(s.unshift(c),r=c.pid):r=0}return s},isPreview(){return this.windowPortrait||this.fileInfo.permission===0},isParentShare(){const{navigator:r}=this;return!!r.find(({share:p})=>p)},pasteTitle(){const{pasteItem:r}=this;let p=r.find(({type:c})=>c=="image"),s=r.find(({type:c})=>c!="image");return p&&s?"\u4E0A\u4F20\u6587\u4EF6/\u56FE\u7247":p?"\u4E0A\u4F20\u56FE\u7247":"\u4E0A\u4F20\u6587\u4EF6"},pasteWrapperClass(){return this.pasteItem.find(({type:r})=>r!=="image")?["multiple"]:[]},tableHeight(){return this.windowLandscape?Math.max(300,this.windowHeight-160):Math.max(300,this.windowHeight-200)}},watch:{pid(){this.searchKey="",this.selectIds=[],this.getFileList()},fid(){this.openFileJudge()},tableMode(r){$A.IDBSave("fileTableMode",r)},hideShared(r){$A.IDBSave("fileHideShared",r)},fileShow(r){r||(this.browseFile(0),this.windowPortrait&&$A.onBlur(!0))},imageShow(r){r||this.browseFile(0)},navigator:{handler(){this.$nextTick(r=>{this.$refs[`nav_${this.pid}`]&&$A.scrollToView(this.$refs[`nav_${this.pid}`][0],!1)})},immediate:!0},selectIds:{handler(r){r.length>0&&(this.shearIds=[])},deep:!0},shearIds:{handler(r){r.length>0&&(this.selectIds=[])},deep:!0},wsOpenNum(r){r<=1||(this.wsOpenTimeout&&clearTimeout(this.wsOpenTimeout),this.wsOpenTimeout=setTimeout(()=>{this.$route.name=="manage-file"&&this.getFileList()},5e3))}},methods:{getFileList(){this.$route.name==="manage-file"&&(this.loadIng++,this.$store.dispatch("getFiles",this.pid).then(async()=>{this.loadIng--,this.openFileJudge(),this.shakeFile(this.$route.params.shakeId),await $A.IDBSet("fileFolderId",this.pid)}).catch(({msg:r})=>{this.loadIng--,$A.modalError({content:r,onOk:()=>{this.browseFolder(0)}})}))},addFile(r){if(r){if(r=="upload"){this.uploadDir=!1,this.$refs.fileUpload.handleClick();return}else if(r=="updir"){this.uploadDir=!0,this.$refs.dirUpload.handleClick();return}}else return;let p=$A.randomString(8);this.fileLists.push({_edit:!0,pid:this.pid,id:p,type:r,name:"",userid:this.userId,newname:this.$L("\u672A\u547D\u540D")}),this.autoBlur(p)},handleLongpress(r,p){const s=$A.getAttr(p,"data-id"),c=this.fileList.find(x=>x.id==s);!c||this.handleRightClick(r,c)},handleContextmenu(r){this.windowLandscape&&this.handleRightClick(r)},handleRightClick(r,p,s){this.contextMenuItem=$A.isJson(p)?p:{},this.contextMenuVisible&&this.handleClickContextMenuOutside(),this.$nextTick(()=>{const x=this.$refs.fileWrapper.getBoundingClientRect();this.contextMenuStyles={left:`${r.clientX-x.left}px`,top:`${r.clientY-x.top}px`},s===!0&&(this.contextMenuStyles.top=`${r.target.clientHeight+r.target.offsetTop-5}px`),this.contextMenuVisible=!0})},browseFolder(r,p=null){r>0?this.goForward({name:"manage-file",params:{folderId:r,fileId:null,shakeId:p}}):(this.searchKey="",this.goForward({name:"manage-file"}))},browseFile(r){r>0?this.goForward({name:"manage-file",params:{folderId:this.pid,fileId:r}}):this.browseFolder(this.pid)},openFileJudge(){if(this.$route.name!=="manage-file"){this.fileShow=!1,this.imageShow=!1;return}if(this.fid<=0){this.fileShow=!1,this.imageShow=!1;return}const r=this.fileList.find(({id:p})=>p===this.fid);if(!r){this.fileShow=!1,this.imageShow=!1;return}if(r.image_url){const p=this.fileList.filter(({image_url:s})=>!!s);if(p.length>0){this.imageIndex=p.findIndex(({id:s})=>r.id===s),this.imageList=p.map(s=>s.image_width?{src:s.image_url,width:s.image_width,height:s.image_height}:s.image_url),this.imageShow=!0;return}}if(this.$Electron||this.$isEEUiApp){this.openFileSingle(r);return}this.fileInfo=r,this.fileShow=!0},openFileSingle(r){const p=`/single/file/${r.id}`;this.$Electron?this.$Electron.sendMessage("windowRouter",{name:`file-${r.id}`,path:p,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:$A.getFileName(r),titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:r.type==="drawio"}}):this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:$A.getFileName(r),url:"web.js",params:{titleFixed:!0,allowAccess:!0,url:$A.rightDelete(window.location.href,window.location.hash)+`#${p}`}}):window.open($A.apiUrl(`..${p}`)),this.browseFile(0)},clickRow(r,p){p.type=="selection"?this.dropFile(r,"select"):this.dropFile(r,"open")},handleContextMenu(r,p){this.handleRightClick(p,this.fileLists.find(({id:s})=>s===r.id)||{})},handleContextClick(r){$A.leftExists(r,"new:")?this.addFile($A.leftDelete(r,"new:")):this.dropFile(this.contextMenuItem,r)},handleClickContextMenuOutside(){this.contextMenuVisible=!1},handleVisibleChangeMenu(r){let p=this.fileLists.find(({_highlight:s})=>!!s);p&&this.$set(p,"_highlight",!1),r&&this.contextMenuItem.id&&this.$set(this.contextMenuItem,"_highlight",!0)},dropFile(r,p){switch(p){case"open":case"openCheckMenu":if(p==="openCheckMenu"&&this.contextMenuVisible||this.fileList.findIndex(c=>c._edit===!0)>-1||r._load)return;r.type=="folder"?this.browseFolder(r.id):this.browseFile(r.id);break;case"upperFolder":this.searchKey="",this.browseFolder(r.pid,r.id);break;case"select":let s=this.selectIds.findIndex(c=>c==r.id);s>-1?this.selectIds.splice(s,1):this.selectIds.push(r.id);break;case"rename":this.setEdit(r.id,!0),this.autoBlur(r.id);break;case"copy":this.$store.dispatch("call",{url:"file/copy",data:{id:r.id}}).then(({data:c,msg:x})=>{$A.messageSuccess(x),this.$store.dispatch("saveFile",c)}).catch(({msg:c})=>{$A.modalError(c)});break;case"shear":this.shearIds=[r.id];break;case"shearSelect":this.shearIds=$A.cloneJSON(this.selectIds);break;case"send":this.sendFileId=r.id,this.sendData=[],this.$refs.sendFile.onSelection();break;case"share":this.shareInfo={id:r.id,type:"all",userid:r.userid,permission:1},this.shareList=[],this.shareShow=!0,this.getShare();break;case"outshare":$A.modalConfirm({content:"\u4F60\u786E\u5B9A\u8981\u9000\u51FA\u3010"+r.name+"\u3011\u5171\u4EAB\u6210\u5458\u5417\uFF1F",loading:!0,onOk:()=>new Promise((c,x)=>{this.$store.dispatch("call",{url:"file/share/out",data:{id:r.id}}).then(({msg:P})=>{c(P),this.$store.dispatch("forgetFile",r.id)}).catch(({msg:P})=>{x(P)})})});break;case"link":this.linkData={id:r.id,name:r.name},this.linkShow=!0,this.linkGet();break;case"download":if(!r.ext)return;$A.modalConfirm({title:"\u4E0B\u8F7D\u6587\u4EF6",content:`${r.name}.${r.ext} (${$A.bytesToSize(r.size)})`,okText:"\u7ACB\u5373\u4E0B\u8F7D",onOk:()=>{this.$store.dispatch("downUrl",$A.apiUrl(`file/content?id=${r.id}&down=yes`))}});break;case"delete":this.deleteFile([r.id]);break}},onSendFile(){return new Promise((r,p)=>{if(this.sendData.length===0){$A.messageError("\u8BF7\u9009\u62E9\u8F6C\u53D1\u5BF9\u8BDD\u6216\u6210\u5458"),p();return}const s=this.sendData.filter(x=>$A.leftExists(x,"d:")).map(x=>x.replace("d:","")),c=this.sendData.filter(x=>!$A.leftExists(x,"d:"));this.$store.dispatch("call",{url:"dialog/msg/sendfileid",data:{dialogids:s,userids:c,file_id:this.sendFileId}}).then(({data:x,msg:P})=>{this.$store.dispatch("saveDialogMsg",x.msgs),this.$store.dispatch("updateDialogLastMsg",x.msgs),$A.messageSuccess(P),r()}).catch(({msg:x})=>{$A.modalError(x),p()})})},linkGet(r){this.linkLoad++,this.$store.dispatch("call",{url:"file/link",data:{id:this.linkData.id,refresh:r===!0?"yes":"no"}}).then(({data:p})=>{this.linkData=Object.assign(p,{id:this.linkData.id,name:this.linkData.name}),this.linkFocus()}).catch(({msg:p})=>{this.linkShow=!1,$A.modalError(p)}).finally(p=>{this.linkLoad--})},linkCopy(){!this.linkData.url||(this.linkFocus(),this.$copyText(this.linkData.url).then(r=>{$A.messageSuccess("\u590D\u5236\u6210\u529F")}).catch(r=>{$A.messageError("\u590D\u5236\u5931\u8D25")}))},linkFocus(){this.$nextTick(r=>{this.$refs.linkInput.focus({cursor:"all"})})},shearTo(){if(this.shearIds.length!=0){if(this.isParentShare){const r=this.fileLists.find(({id:p,share:s})=>s&&this.shearIds.includes(p));if(r){$A.modalError(`${r.name} \u5F53\u524D\u6B63\u5728\u5171\u4EAB\uFF0C\u65E0\u6CD5\u79FB\u52A8\u5230\u53E6\u4E00\u4E2A\u5171\u4EAB\u6587\u4EF6\u5939\u5185`);return}}this.$store.dispatch("call",{url:"file/move",data:{ids:this.shearIds,pid:this.pid}}).then(({data:r,msg:p})=>{$A.messageSuccess(p),this.shearIds=[],this.$store.dispatch("saveFile",r)}).catch(({msg:r})=>{$A.modalError(r)})}},deleteFile(r){if(r.length===0)return;const p=this.fileLists.find(P=>P.id==r[0])||{};let c=!r.find(P=>this.fileLists.find(G=>G.type!="folder"&&G.id==P))?"\u6587\u4EF6\u5939":"\u6587\u4EF6",x=`\u3010${p.name}\u3011\u7B49${r.length}\u4E2A${c}`;r.length===1&&(x=`\u3010${p.name}\u3011${c}`),$A.modalConfirm({title:"\u5220\u9664"+c,content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664"+x+"\u5417\uFF1F",loading:!0,onOk:()=>new Promise((P,G)=>{this.$store.dispatch("call",{url:"file/remove",data:{ids:r}}).then(({msg:q})=>{P(q),this.$store.dispatch("forgetFile",r),this.selectIds=this.selectIds.filter(Fe=>!r.includes(Fe))}).catch(({msg:q})=>{G(q)})})})},autoBlur(r){this.$nextTick(()=>{if(this.$refs["input_"+r])this.$refs["input_"+r][0].focus({cursor:"all"});else if(document.getElementById("input_"+r)){const p=document.getElementById("input_"+r),s=p.value.length;p.focus(),p.setSelectionRange(0,s)}})},onParser(r){return r.replace(/[\\\/:*?\"<>|]/g,"")},onBlur(r){this.fileLists.find(({id:p,_edit:s})=>p==r.id&&!s)||this.onEnter(r)},onKeyup(r,p){r.keyCode===13?this.onEnter(p):r.keyCode===27&&(!/^\d+$/.test(p.id)?(p.newname="",this.$store.dispatch("forgetFile",p.id)):(this.setLoad(p.id,!1),this.setEdit(p.id,!1)))},onEnter(r){const p=!/^\d+$/.test(r.id);if(!r.newname){p?this.$store.dispatch("forgetFile",r.id):this.setEdit(r.id,!1);return}if(r.newname==r.name){this.setEdit(r.id,!1);return}r._load||(this.setLoad(r.id,!0),this.$store.dispatch("call",{url:"file/add",data:{id:p?0:r.id,pid:r.pid,name:r.newname,type:r.type},spinner:2e3}).then(({data:s,msg:c})=>{$A.messageSuccess(c),this.setLoad(r.id,!1),this.setEdit(r.id,!1),this.$store.dispatch("saveFile",s),p&&(this.$store.dispatch("forgetFile",r.id),this.shakeFile(s.id))}).catch(({msg:s})=>{$A.modalError(s),this.setLoad(r.id,!1),p&&this.$store.dispatch("forgetFile",r.id)}))},setEdit(r,p){const s=this.$store.state.fileLists.find(({id:c})=>c==r);s&&(this.$set(s,"_edit",p),p&&this.$set(s,"newname",s.name))},setLoad(r,p){const s=this.$store.state.fileLists.find(({id:c})=>c==r);s&&this.$set(s,"_load",p)},onSearchFocus(){this.$nextTick(()=>{this.$refs.searchInput.focus({cursor:"end"})})},onSearchChange(){this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchKey.trim()!=""&&(this.searchTimeout=setTimeout(()=>{this.loadIng++,this.$store.dispatch("searchFiles",this.searchKey.trim()).then(()=>{this.loadIng--}).catch(()=>{this.loadIng--})},600))},getShare(){this.shareLoad++,this.$store.dispatch("call",{url:"file/share",data:{id:this.shareInfo.id}}).then(({data:r})=>{r.id==this.shareInfo.id&&(this.shareList=r.list.map(p=>(p._permission=p.permission,p)))}).catch(({msg:r})=>{this.shareShow=!1,$A.modalError(r)}).finally(r=>{this.shareLoad--})},onShare(r=!1){if(this.shareInfo.type==="all"&&(this.shareInfo.userids=[0]),this.shareInfo.userids.length==0){$A.messageWarning("\u8BF7\u9009\u62E9\u5171\u4EAB\u6210\u5458");return}this.shareLoad++,this.$store.dispatch("call",{url:"file/share/update",data:Object.assign(this.shareInfo,{force:r===!0?1:0})}).then(({data:p,msg:s})=>{$A.messageSuccess(s),this.$store.dispatch("saveFile",p),this.$set(this.shareInfo,"userids",[]),this.getShare()}).catch(({ret:p,msg:s})=>{p===-3001?$A.modalConfirm({content:"\u6B64\u6587\u4EF6\u5939\u5185\u5DF2\u6709\u5171\u4EAB\u6587\u4EF6\u5939\uFF0C\u5B50\u6587\u4EF6\u7684\u5171\u4EAB\u72B6\u6001\u5C06\u88AB\u53D6\u6D88\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",onOk:()=>{this.onShare(!0)}}):$A.modalError(s)}).finally(p=>{this.shareLoad--})},upShare(r,p=!1){r.loading!==!0&&(r.loading=!0,this.$store.dispatch("call",{url:"file/share/update",data:{id:this.shareInfo.id,userids:[r.userid],permission:r.permission,force:p===!0?1:0}}).then(({data:s,msg:c})=>{if(r.loading=!1,r._permission=r.permission,$A.messageSuccess(c),this.$store.dispatch("saveFile",s),r.permission===-1){let x=this.shareList.findIndex(({userid:P})=>P==r.userid);x>-1&&this.shareList.splice(x,1)}}).catch(({ret:s,msg:c})=>{r.loading=!1,s===-3001?$A.modalConfirm({content:"\u6B64\u6587\u4EF6\u5939\u5185\u5DF2\u6709\u5171\u4EAB\u6587\u4EF6\u5939\uFF0C\u5B50\u6587\u4EF6\u7684\u5171\u4EAB\u72B6\u6001\u5C06\u88AB\u53D6\u6D88\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F",onOk:()=>{this.upShare(r,!0)},onCancel:()=>{r.permission=r._permission}}):(r.permission=r._permission,$A.modalError(c))}))},uploadName(r){return $A.getObject(r,"response.data.full_name")||r.name},handleTableSort({key:r,order:p}){$A.IDBSave("cacheFileSort",["asc","desc"].includes(p)?{key:r,order:p}:{})},handleTableSelect(r){this.selectIds=r.map(p=>p.id)},clearSelect(){this.selectIds=[]},clearShear(){this.shearIds=[]},shakeFile(r){!r||this.$nextTick(p=>{const s=$A(this.$el).find(`[data-id="${r}"]`);s.length>0&&($A.scrollIntoViewIfNeeded(s[0]),$A(s[0]).addClass("common-shake"),setTimeout(c=>$A(s[0]).removeClass("common-shake"),800))})},pasteDragNext(r,p){let s=p==="drag"?r.dataTransfer.files:r.clipboardData.files;s=Array.prototype.slice.call(s),s.length>0&&(r.preventDefault(),this.pasteFile=[],this.pasteItem=[],s.some(c=>{const x={type:$A.getMiddle(c.type,null,"/"),name:c.name,size:c.size,result:null};if(x.type==="image"){const P=new FileReader;P.readAsDataURL(c),P.onload=({target:G})=>{x.result=G.result,this.pasteFile.push(c),this.pasteItem.push(x),this.pasteShow=!0}}else this.pasteFile.push(c),this.pasteItem.push(x),this.pasteShow=!0}))},filePasteDrag(r,p){this.dialogDrag=!1,this.pasteDragNext(r,p)},fileDragOver(r,p){let s=this.__dialogDrag=$A.randomString(8);if(!r)setTimeout(()=>{s===this.__dialogDrag&&(this.dialogDrag=r)},150);else{if(p.dataTransfer.effectAllowed==="move")return;this.dialogDrag=!0}},pasteSend(){const r=[];this.pasteFile.some(p=>{r.find(s=>s===p.name)||(r.push(p.name),this.$refs.fileUpload.upload(p))})},fileBeforeClose(){return new Promise(r=>{if(!this.$refs.fileContent){r();return}if(this.$refs.fileContent.equalContent){r();return}$A.modalConfirm({content:"\u4FEE\u6539\u7684\u5185\u5BB9\u5C1A\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u653E\u5F03\u4FEE\u6539\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u653E\u5F03",onOk:()=>{r()}})})},uploadUpdate(r){r.forEach(p=>{let s=this.uploadList.findIndex(({uid:c})=>c==p.uid);s>-1?this.uploadList.splice(s,1,p):this.uploadList.unshift(p)})},uploadClear(){this.uploadList=this.uploadList.filter(({status:r})=>r!=="finished"),this.$refs.fileUpload.clearFiles(),this.$refs.dirUpload.clearFiles()},uploadPercentageParse(r){return parseInt(r,10)},handleProgress(r,p,s){p._uploadIng===void 0&&(p._uploadIng=!0,this.uploadIng++),this.uploadUpdate(s)},handleSuccess(r,p,s){this.uploadIng--,this.uploadUpdate(s),r.ret===1?this.$store.dispatch("saveFile",r.data):$A.modalWarning({title:"\u4E0A\u4F20\u5931\u8D25",content:"\u6587\u4EF6 "+p.name+" \u4E0A\u4F20\u5931\u8D25\uFF0C"+r.msg})},handleError(r,p,s){this.uploadIng--,this.uploadUpdate(s)},handleFormatError(r){this.uploadDir||$A.modalWarning({title:"\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E",content:"\u6587\u4EF6 "+r.name+" \u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u4EC5\u652F\u6301\u4E0A\u4F20\uFF1A"+this.uploadFormat.join(",")})},handleMaxSize(r){$A.modalWarning({title:"\u8D85\u51FA\u6587\u4EF6\u5927\u5C0F\u9650\u5236",content:"\u6587\u4EF6 "+r.name+" \u592A\u5927\uFF0C\u4E0D\u80FD\u8D85\u8FC7\uFF1A"+$A.bytesToSize(this.maxSize*1024)+"\u3002"})},handleBeforeUpload(){return this.uploadShow=!0,!0}}},uu={};var vg=lg(_g,hg,dg,!1,mg,null,null,null);function mg(r){for(let p in uu)this[p]=uu[p]}var Lg=function(){return vg.exports}();export{Lg as default}; diff --git a/public/js/build/file.7bda2cc5.js b/public/js/build/file.b975d228.js similarity index 88% rename from public/js/build/file.7bda2cc5.js rename to public/js/build/file.b975d228.js index 7e04ebc50..0008a2222 100644 --- a/public/js/build/file.7bda2cc5.js +++ b/public/js/build/file.b975d228.js @@ -1 +1 @@ -import n from"./FileContent.433fb254.js";import l from"./FilePreview.4334b185.js";import{n as s}from"./app.3d81bfbf.js";import"./IFrame.21d04c65.js";var a=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"single-file"},[t("PageTitle",{attrs:{title:e.pageName}}),e.loadIng>0?t("Loading"):e.fileInfo?[e.isPreview?t("FilePreview",{attrs:{code:e.code,file:e.fileInfo,historyId:e.historyId,headerShow:!e.$isEEUiApp}}):t("FileContent",{attrs:{file:e.fileInfo},model:{value:e.fileShow,callback:function(r){e.fileShow=r},expression:"fileShow"}})]:e._e()],2)},f=[];const u={components:{FilePreview:l,FileContent:n},data(){return{loadIng:0,code:null,fileShow:!0,fileInfo:null}},mounted(){},computed:{historyId(){return this.$route.query?$A.runNum(this.$route.query.history_id):0},isPreview(){return this.windowPortrait||this.code||this.historyId>0||this.fileInfo&&this.fileInfo.permission===0},pageName(){let e=this.fileInfo?this.fileInfo.name:"";return this.$route.query&&this.$route.query.history_at&&(e+=` [${this.$route.query.history_at}]`),e}},watch:{$route:{handler(){this.getInfo()},immediate:!0}},methods:{getInfo(){let{codeOrFileId:e}=this.$route.params,i={id:e};if(/^\d+$/.test(e))this.code=null;else if(e)this.code=e;else return;setTimeout(t=>{this.loadIng++},600),this.$store.dispatch("call",{url:"file/one",data:i}).then(({data:t})=>{this.fileInfo=t}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{window.close()}})}).finally(t=>{this.loadIng--})}}},o={};var h=s(u,a,f,!1,d,"b8037598",null,null);function d(e){for(let i in o)this[i]=o[i]}var I=function(){return h.exports}();export{I as default}; +import n from"./FileContent.19861c79.js";import l from"./FilePreview.025b3286.js";import{n as s}from"./app.28437e7d.js";import"./IFrame.057cac1d.js";var a=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"single-file"},[t("PageTitle",{attrs:{title:e.pageName}}),e.loadIng>0?t("Loading"):e.fileInfo?[e.isPreview?t("FilePreview",{attrs:{code:e.code,file:e.fileInfo,historyId:e.historyId,headerShow:!e.$isEEUiApp}}):t("FileContent",{attrs:{file:e.fileInfo},model:{value:e.fileShow,callback:function(r){e.fileShow=r},expression:"fileShow"}})]:e._e()],2)},f=[];const u={components:{FilePreview:l,FileContent:n},data(){return{loadIng:0,code:null,fileShow:!0,fileInfo:null}},mounted(){},computed:{historyId(){return this.$route.query?$A.runNum(this.$route.query.history_id):0},isPreview(){return this.windowPortrait||this.code||this.historyId>0||this.fileInfo&&this.fileInfo.permission===0},pageName(){let e=this.fileInfo?this.fileInfo.name:"";return this.$route.query&&this.$route.query.history_at&&(e+=` [${this.$route.query.history_at}]`),e}},watch:{$route:{handler(){this.getInfo()},immediate:!0}},methods:{getInfo(){let{codeOrFileId:e}=this.$route.params,i={id:e};if(/^\d+$/.test(e))this.code=null;else if(e)this.code=e;else return;setTimeout(t=>{this.loadIng++},600),this.$store.dispatch("call",{url:"file/one",data:i}).then(({data:t})=>{this.fileInfo=t}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{window.close()}})}).finally(t=>{this.loadIng--})}}},o={};var h=s(u,a,f,!1,d,"b8037598",null,null);function d(e){for(let i in o)this[i]=o[i]}var I=function(){return h.exports}();export{I as default}; diff --git a/public/js/build/fileMsg.e202783e.js b/public/js/build/fileMsg.cee86f54.js similarity index 71% rename from public/js/build/fileMsg.e202783e.js rename to public/js/build/fileMsg.cee86f54.js index 379324436..61ca82ba2 100644 --- a/public/js/build/fileMsg.e202783e.js +++ b/public/js/build/fileMsg.cee86f54.js @@ -1 +1 @@ -import{m as a,n as r,_ as s}from"./app.3d81bfbf.js";import{I as l}from"./IFrame.21d04c65.js";var c=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"single-file-msg"},[e("PageTitle",{attrs:{title:t.title}}),t.loadIng>0?e("Loading"):t.isWait?t._e():[t.isType("md")?e("MDPreview",{attrs:{initialValue:t.msgDetail.content.content}}):t.isType("text")?e("TEditor",{attrs:{value:t.msgDetail.content.content,height:"100%",readOnly:""}}):t.isType("drawio")?e("Drawio",{attrs:{title:t.msgDetail.msg.name,readOnly:""},model:{value:t.msgDetail.content,callback:function(n){t.$set(t.msgDetail,"content",n)},expression:"msgDetail.content"}}):t.isType("mind")?e("Minder",{attrs:{value:t.msgDetail.content,readOnly:""}}):t.isType("code")?[t.isLongText(t.msgDetail.msg.name)?e("div",{staticClass:"view-code",domProps:{innerHTML:t._s(t.$A.formatTextMsg(t.msgDetail.content.content,t.userId))}}):e("AceEditor",{staticClass:"view-editor",attrs:{ext:t.msgDetail.msg.ext,readOnly:""},model:{value:t.msgDetail.content.content,callback:function(n){t.$set(t.msgDetail.content,"content",n)},expression:"msgDetail.content.content"}})]:t.isType("office")?e("OnlyOffice",{attrs:{code:t.officeCode,documentKey:t.documentKey,readOnly:""},model:{value:t.officeContent,callback:function(n){t.officeContent=n},expression:"officeContent"}}):t.isType("preview")?e("IFrame",{staticClass:"preview-iframe",attrs:{src:t.previewUrl}}):e("div",{staticClass:"no-support"},[t._v(t._s(t.$L("\u4E0D\u652F\u6301\u5355\u72EC\u67E5\u770B\u6B64\u6D88\u606F")))])]],2)},m=[];const d=()=>s(()=>import("./preview.245b21bf.js"),["js/build/preview.245b21bf.js","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css"]),_=()=>s(()=>import("./TEditor.443b30fe.js"),["js/build/TEditor.443b30fe.js","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css","js/build/ImgUpload.7f60f3a4.js"]),u=()=>s(()=>import("./AceEditor.054eace8.js"),["js/build/AceEditor.054eace8.js","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css"]),g=()=>s(()=>import("./OnlyOffice.c9898129.js"),["js/build/OnlyOffice.c9898129.js","js/build/OnlyOffice.a5dfbde1.css","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css","js/build/IFrame.21d04c65.js"]),f=()=>s(()=>import("./Drawio.f9d36caf.js"),["js/build/Drawio.f9d36caf.js","js/build/Drawio.fc5c6326.css","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css","js/build/IFrame.21d04c65.js"]),p=()=>s(()=>import("./Minder.e38cd318.js"),["js/build/Minder.e38cd318.js","js/build/Minder.f2273bdb.css","js/build/IFrame.21d04c65.js","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css"]),v={components:{IFrame:l,AceEditor:u,TEditor:_,MDPreview:d,OnlyOffice:g,Drawio:f,Minder:p},data(){return{loadIng:0,isWait:!1,msgDetail:{}}},mounted(){},watch:{$route:{handler(){this.getInfo()},immediate:!0}},computed:{...a(["userId"]),msgId(){const{msgId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},title(){const{msg:t}=this.msgDetail;return t&&t.name?t.name:"Loading..."},isType(){const{msgDetail:t}=this;return function(i){return t.type=="file"&&t.file_mode==i}},officeContent(){return{id:this.msgDetail.id||0,type:this.msgDetail.msg.ext,name:this.title}},officeCode(){return"msgFile_"+this.msgDetail.id},previewUrl(){const{name:t,key:i}=this.msgDetail.content;return $A.apiUrl(`../online/preview/${t}?key=${i}`)}},methods:{getInfo(){this.msgId<=0||(setTimeout(t=>{this.loadIng++},600),this.isWait=!0,this.$store.dispatch("call",{url:"dialog/msg/detail",data:{msg_id:this.msgId}}).then(({data:t})=>{this.msgDetail=t}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{this.$Electron&&window.close()}})}).finally(t=>{this.loadIng--,this.isWait=!1}))},documentKey(){return new Promise(t=>{this.$store.dispatch("call",{url:"dialog/msg/detail",data:{msg_id:this.msgId,only_update_at:"yes"}}).then(({data:i})=>{t(`${i.id}-${$A.Time(i.update_at)}`)}).catch(()=>{t(0)})})},isLongText(t){return/^LongText-/.test(t)}}},o={};var h=r(v,c,m,!1,D,null,null,null);function D(t){for(let i in o)this[i]=o[i]}var I=function(){return h.exports}();export{I as default}; +import{m as a,n as r,_ as s}from"./app.28437e7d.js";import{I as l}from"./IFrame.057cac1d.js";var c=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"single-file-msg"},[e("PageTitle",{attrs:{title:t.title}}),t.loadIng>0?e("Loading"):t.isWait?t._e():[t.isType("md")?e("MDPreview",{attrs:{initialValue:t.msgDetail.content.content}}):t.isType("text")?e("TEditor",{attrs:{value:t.msgDetail.content.content,height:"100%",readOnly:""}}):t.isType("drawio")?e("Drawio",{attrs:{title:t.msgDetail.msg.name,readOnly:""},model:{value:t.msgDetail.content,callback:function(n){t.$set(t.msgDetail,"content",n)},expression:"msgDetail.content"}}):t.isType("mind")?e("Minder",{attrs:{value:t.msgDetail.content,readOnly:""}}):t.isType("code")?[t.isLongText(t.msgDetail.msg.name)?e("div",{staticClass:"view-code",domProps:{innerHTML:t._s(t.$A.formatTextMsg(t.msgDetail.content.content,t.userId))}}):e("AceEditor",{staticClass:"view-editor",attrs:{ext:t.msgDetail.msg.ext,readOnly:""},model:{value:t.msgDetail.content.content,callback:function(n){t.$set(t.msgDetail.content,"content",n)},expression:"msgDetail.content.content"}})]:t.isType("office")?e("OnlyOffice",{attrs:{code:t.officeCode,documentKey:t.documentKey,readOnly:""},model:{value:t.officeContent,callback:function(n){t.officeContent=n},expression:"officeContent"}}):t.isType("preview")?e("IFrame",{staticClass:"preview-iframe",attrs:{src:t.previewUrl}}):e("div",{staticClass:"no-support"},[t._v(t._s(t.$L("\u4E0D\u652F\u6301\u5355\u72EC\u67E5\u770B\u6B64\u6D88\u606F")))])]],2)},m=[];const d=()=>s(()=>import("./preview.f1094d4b.js"),["js/build/preview.f1094d4b.js","js/build/app.28437e7d.js","js/build/app.3c80ad42.css"]),_=()=>s(()=>import("./TEditor.a8b14511.js"),["js/build/TEditor.a8b14511.js","js/build/app.28437e7d.js","js/build/app.3c80ad42.css","js/build/ImgUpload.cbadd034.js"]),u=()=>s(()=>import("./AceEditor.fa0d76af.js"),["js/build/AceEditor.fa0d76af.js","js/build/app.28437e7d.js","js/build/app.3c80ad42.css"]),g=()=>s(()=>import("./OnlyOffice.55cfcbd8.js"),["js/build/OnlyOffice.55cfcbd8.js","js/build/OnlyOffice.a5dfbde1.css","js/build/app.28437e7d.js","js/build/app.3c80ad42.css","js/build/IFrame.057cac1d.js"]),f=()=>s(()=>import("./Drawio.28151df2.js"),["js/build/Drawio.28151df2.js","js/build/Drawio.fc5c6326.css","js/build/app.28437e7d.js","js/build/app.3c80ad42.css","js/build/IFrame.057cac1d.js"]),p=()=>s(()=>import("./Minder.52580554.js"),["js/build/Minder.52580554.js","js/build/Minder.f2273bdb.css","js/build/IFrame.057cac1d.js","js/build/app.28437e7d.js","js/build/app.3c80ad42.css"]),v={components:{IFrame:l,AceEditor:u,TEditor:_,MDPreview:d,OnlyOffice:g,Drawio:f,Minder:p},data(){return{loadIng:0,isWait:!1,msgDetail:{}}},mounted(){},watch:{$route:{handler(){this.getInfo()},immediate:!0}},computed:{...a(["userId"]),msgId(){const{msgId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},title(){const{msg:t}=this.msgDetail;return t&&t.name?t.name:"Loading..."},isType(){const{msgDetail:t}=this;return function(i){return t.type=="file"&&t.file_mode==i}},officeContent(){return{id:this.msgDetail.id||0,type:this.msgDetail.msg.ext,name:this.title}},officeCode(){return"msgFile_"+this.msgDetail.id},previewUrl(){const{name:t,key:i}=this.msgDetail.content;return $A.apiUrl(`../online/preview/${t}?key=${i}`)}},methods:{getInfo(){this.msgId<=0||(setTimeout(t=>{this.loadIng++},600),this.isWait=!0,this.$store.dispatch("call",{url:"dialog/msg/detail",data:{msg_id:this.msgId}}).then(({data:t})=>{this.msgDetail=t}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{this.$Electron&&window.close()}})}).finally(t=>{this.loadIng--,this.isWait=!1}))},documentKey(){return new Promise(t=>{this.$store.dispatch("call",{url:"dialog/msg/detail",data:{msg_id:this.msgId,only_update_at:"yes"}}).then(({data:i})=>{t(`${i.id}-${$A.Time(i.update_at)}`)}).catch(()=>{t(0)})})},isLongText(t){return/^LongText-/.test(t)}}},o={};var h=r(v,c,m,!1,D,null,null,null);function D(t){for(let i in o)this[i]=o[i]}var I=function(){return h.exports}();export{I as default}; diff --git a/public/js/build/fileTask.26ddc9c9.js b/public/js/build/fileTask.9ddf188a.js similarity index 69% rename from public/js/build/fileTask.26ddc9c9.js rename to public/js/build/fileTask.9ddf188a.js index e23975ebf..47911c700 100644 --- a/public/js/build/fileTask.26ddc9c9.js +++ b/public/js/build/fileTask.9ddf188a.js @@ -1 +1 @@ -import{n as o,_ as n}from"./app.3d81bfbf.js";import{I as r}from"./IFrame.21d04c65.js";var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"single-file-task"},[i("PageTitle",{attrs:{title:e.title}}),e.loadIng>0?i("Loading"):e.isWait?e._e():[e.isType("md")?i("MDPreview",{attrs:{initialValue:e.fileDetail.content.content}}):e.isType("text")?i("TEditor",{attrs:{value:e.fileDetail.content.content,height:"100%",readOnly:""}}):e.isType("drawio")?i("Drawio",{attrs:{title:e.fileDetail.name,readOnly:""},model:{value:e.fileDetail.content,callback:function(l){e.$set(e.fileDetail,"content",l)},expression:"fileDetail.content"}}):e.isType("mind")?i("Minder",{attrs:{value:e.fileDetail.content,readOnly:""}}):e.isType("code")?i("AceEditor",{staticClass:"view-editor",attrs:{ext:e.fileDetail.ext,readOnly:""},model:{value:e.fileDetail.content.content,callback:function(l){e.$set(e.fileDetail.content,"content",l)},expression:"fileDetail.content.content"}}):e.isType("office")?i("OnlyOffice",{attrs:{code:e.officeCode,documentKey:e.documentKey,readOnly:""},model:{value:e.officeContent,callback:function(l){e.officeContent=l},expression:"officeContent"}}):e.isType("preview")?i("IFrame",{staticClass:"preview-iframe",attrs:{src:e.previewUrl}}):i("div",{staticClass:"no-support"},[e._v(e._s(e.$L("\u4E0D\u652F\u6301\u5355\u72EC\u67E5\u770B\u6B64\u6D88\u606F")))])]],2)},c=[];const d=()=>n(()=>import("./preview.245b21bf.js"),["js/build/preview.245b21bf.js","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css"]),f=()=>n(()=>import("./TEditor.443b30fe.js"),["js/build/TEditor.443b30fe.js","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css","js/build/ImgUpload.7f60f3a4.js"]),_=()=>n(()=>import("./AceEditor.054eace8.js"),["js/build/AceEditor.054eace8.js","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css"]),u=()=>n(()=>import("./OnlyOffice.c9898129.js"),["js/build/OnlyOffice.c9898129.js","js/build/OnlyOffice.a5dfbde1.css","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css","js/build/IFrame.21d04c65.js"]),p=()=>n(()=>import("./Drawio.f9d36caf.js"),["js/build/Drawio.f9d36caf.js","js/build/Drawio.fc5c6326.css","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css","js/build/IFrame.21d04c65.js"]),m=()=>n(()=>import("./Minder.e38cd318.js"),["js/build/Minder.e38cd318.js","js/build/Minder.f2273bdb.css","js/build/IFrame.21d04c65.js","js/build/app.3d81bfbf.js","js/build/app.3c80ad42.css"]),v={components:{IFrame:r,AceEditor:_,TEditor:f,MDPreview:d,OnlyOffice:u,Drawio:p,Minder:m},data(){return{loadIng:0,isWait:!1,fileDetail:{}}},mounted(){},watch:{$route:{handler(){this.getInfo()},immediate:!0}},computed:{fileId(){const{fileId:e}=this.$route.params;return parseInt(/^\d+$/.test(e)?e:0)},title(){const{name:e}=this.fileDetail;return e||"Loading..."},isType(){const{fileDetail:e}=this;return function(t){return e.file_mode==t}},officeContent(){return{id:this.fileDetail.id||0,type:this.fileDetail.ext,name:this.title}},officeCode(){return"taskFile_"+this.fileDetail.id},previewUrl(){const{name:e,key:t}=this.fileDetail.content;return $A.apiUrl(`../online/preview/${e}?key=${t}`)}},methods:{getInfo(){this.fileId<=0||(setTimeout(e=>{this.loadIng++},600),this.isWait=!0,this.$store.dispatch("call",{url:"project/task/filedetail",data:{file_id:this.fileId}}).then(({data:e})=>{this.fileDetail=e}).catch(({msg:e})=>{$A.modalError({content:e,onOk:()=>{this.$Electron&&window.close()}})}).finally(e=>{this.loadIng--,this.isWait=!1}))},documentKey(){return new Promise(e=>{this.$store.dispatch("call",{url:"project/task/filedetail",data:{file_id:this.fileId,only_update_at:"yes"}}).then(({data:t})=>{e(`${t.id}-${$A.Time(t.update_at)}`)}).catch(()=>{e(0)})})}}},a={};var h=o(v,s,c,!1,D,null,null,null);function D(e){for(let t in a)this[t]=a[t]}var T=function(){return h.exports}();export{T as default}; +import{n as o,_ as n}from"./app.28437e7d.js";import{I as r}from"./IFrame.057cac1d.js";var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"single-file-task"},[i("PageTitle",{attrs:{title:e.title}}),e.loadIng>0?i("Loading"):e.isWait?e._e():[e.isType("md")?i("MDPreview",{attrs:{initialValue:e.fileDetail.content.content}}):e.isType("text")?i("TEditor",{attrs:{value:e.fileDetail.content.content,height:"100%",readOnly:""}}):e.isType("drawio")?i("Drawio",{attrs:{title:e.fileDetail.name,readOnly:""},model:{value:e.fileDetail.content,callback:function(l){e.$set(e.fileDetail,"content",l)},expression:"fileDetail.content"}}):e.isType("mind")?i("Minder",{attrs:{value:e.fileDetail.content,readOnly:""}}):e.isType("code")?i("AceEditor",{staticClass:"view-editor",attrs:{ext:e.fileDetail.ext,readOnly:""},model:{value:e.fileDetail.content.content,callback:function(l){e.$set(e.fileDetail.content,"content",l)},expression:"fileDetail.content.content"}}):e.isType("office")?i("OnlyOffice",{attrs:{code:e.officeCode,documentKey:e.documentKey,readOnly:""},model:{value:e.officeContent,callback:function(l){e.officeContent=l},expression:"officeContent"}}):e.isType("preview")?i("IFrame",{staticClass:"preview-iframe",attrs:{src:e.previewUrl}}):i("div",{staticClass:"no-support"},[e._v(e._s(e.$L("\u4E0D\u652F\u6301\u5355\u72EC\u67E5\u770B\u6B64\u6D88\u606F")))])]],2)},c=[];const d=()=>n(()=>import("./preview.f1094d4b.js"),["js/build/preview.f1094d4b.js","js/build/app.28437e7d.js","js/build/app.3c80ad42.css"]),f=()=>n(()=>import("./TEditor.a8b14511.js"),["js/build/TEditor.a8b14511.js","js/build/app.28437e7d.js","js/build/app.3c80ad42.css","js/build/ImgUpload.cbadd034.js"]),_=()=>n(()=>import("./AceEditor.fa0d76af.js"),["js/build/AceEditor.fa0d76af.js","js/build/app.28437e7d.js","js/build/app.3c80ad42.css"]),u=()=>n(()=>import("./OnlyOffice.55cfcbd8.js"),["js/build/OnlyOffice.55cfcbd8.js","js/build/OnlyOffice.a5dfbde1.css","js/build/app.28437e7d.js","js/build/app.3c80ad42.css","js/build/IFrame.057cac1d.js"]),p=()=>n(()=>import("./Drawio.28151df2.js"),["js/build/Drawio.28151df2.js","js/build/Drawio.fc5c6326.css","js/build/app.28437e7d.js","js/build/app.3c80ad42.css","js/build/IFrame.057cac1d.js"]),m=()=>n(()=>import("./Minder.52580554.js"),["js/build/Minder.52580554.js","js/build/Minder.f2273bdb.css","js/build/IFrame.057cac1d.js","js/build/app.28437e7d.js","js/build/app.3c80ad42.css"]),v={components:{IFrame:r,AceEditor:_,TEditor:f,MDPreview:d,OnlyOffice:u,Drawio:p,Minder:m},data(){return{loadIng:0,isWait:!1,fileDetail:{}}},mounted(){},watch:{$route:{handler(){this.getInfo()},immediate:!0}},computed:{fileId(){const{fileId:e}=this.$route.params;return parseInt(/^\d+$/.test(e)?e:0)},title(){const{name:e}=this.fileDetail;return e||"Loading..."},isType(){const{fileDetail:e}=this;return function(t){return e.file_mode==t}},officeContent(){return{id:this.fileDetail.id||0,type:this.fileDetail.ext,name:this.title}},officeCode(){return"taskFile_"+this.fileDetail.id},previewUrl(){const{name:e,key:t}=this.fileDetail.content;return $A.apiUrl(`../online/preview/${e}?key=${t}`)}},methods:{getInfo(){this.fileId<=0||(setTimeout(e=>{this.loadIng++},600),this.isWait=!0,this.$store.dispatch("call",{url:"project/task/filedetail",data:{file_id:this.fileId}}).then(({data:e})=>{this.fileDetail=e}).catch(({msg:e})=>{$A.modalError({content:e,onOk:()=>{this.$Electron&&window.close()}})}).finally(e=>{this.loadIng--,this.isWait=!1}))},documentKey(){return new Promise(e=>{this.$store.dispatch("call",{url:"project/task/filedetail",data:{file_id:this.fileId,only_update_at:"yes"}}).then(({data:t})=>{e(`${t.id}-${$A.Time(t.update_at)}`)}).catch(()=>{e(0)})})}}},a={};var h=o(v,s,c,!1,D,null,null,null);function D(e){for(let t in a)this[t]=a[t]}var T=function(){return h.exports}();export{T as default}; diff --git a/public/js/build/index.3a97bc76.js b/public/js/build/index.4a90d45e.js similarity index 99% rename from public/js/build/index.3a97bc76.js rename to public/js/build/index.4a90d45e.js index a41b705b1..2c9a8e843 100644 --- a/public/js/build/index.3a97bc76.js +++ b/public/js/build/index.4a90d45e.js @@ -1 +1 @@ -import{n as o,m as p}from"./app.3d81bfbf.js";import c from"./details.ee26823b.js";import{D as v}from"./index.8fb9f3fd.js";import{I as u}from"./ImgUpload.7f60f3a4.js";var h=function(){var t,s,a,e,i=this,l=i.$createElement,r=i._self._c||l;return r("div",{staticClass:"approve-list"},[r("h2",[r("span",{staticClass:"list-name"},[i._v(i._s(i.$L(i.data.proc_def_name)))]),i.data.state==0?r("Tag",{attrs:{color:"cyan"}},[i._v(i._s(i.$L("\u5F85\u5BA1\u6279")))]):i._e(),i.data.state==1?r("Tag",{attrs:{color:"cyan"}},[i._v(i._s(i.$L("\u5BA1\u6279\u4E2D")))]):i._e(),i.data.state==2?r("Tag",{attrs:{color:"green"}},[i._v(i._s(i.$L("\u5DF2\u901A\u8FC7")))]):i._e(),i.data.state==3?r("Tag",{attrs:{color:"red"}},[i._v(i._s(i.$L("\u5DF2\u62D2\u7EDD")))]):i._e(),i.data.state==4?r("Tag",{attrs:{color:"red"}},[i._v(i._s(i.$L("\u5DF2\u64A4\u56DE")))]):i._e()],1),(t=i.data.var)!==null&&t!==void 0&&t.type?r("p",[i._v(i._s(i.$L("\u5047\u671F\u7C7B\u578B"))+"\uFF1A"),r("span",[i._v(i._s(i.$L((s=i.data.var)===null||s===void 0?void 0:s.type)))])]):i._e(),r("p",[i._v(i._s(i.$L("\u5F00\u59CB\u65F6\u95F4"))+"\uFF1A"),r("span",[i._v(i._s((a=i.data.var)===null||a===void 0?void 0:a.start_time))])]),r("p",[i._v(i._s(i.$L("\u7ED3\u675F\u65F6\u95F4"))+"\uFF1A"),r("span",[i._v(i._s((e=i.data.var)===null||e===void 0?void 0:e.end_time))])]),r("div",{staticClass:"list-member"},[r("span",[r("Avatar",{attrs:{src:i.data.userimg,size:"20"}}),i._v(" "+i._s(i.data.start_user_name)+" ")],1),r("span",[i._v(" "+i._s(i.$L("\u53D1\u8D77\u65F6\u95F4"))+"\uFF1A"+i._s(i.data.start_time)+" ")])])])},_=[];const m={name:"list",props:{data:{type:Object,default(){return{}}}},data(){return{}}},n={};var f=o(m,h,_,!1,y,null,null,null);function y(t){for(let s in n)this[s]=n[s]}var g=function(){return f.exports}(),L=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"page-approve"},[a("PageTitle",{attrs:{title:t.$L("\u5BA1\u6279\u4E2D\u5FC3")}}),a("div",{ref:"fileWrapper",staticClass:"approve-wrapper"},[a("div",{staticClass:"approve-head"},[a("div",{staticClass:"approve-nav"},[a("h1",[t._v(t._s(t.$L("\u5BA1\u6279\u4E2D\u5FC3")))])]),a("Button",{attrs:{type:"primary"},on:{click:t.addApply}},[t._v(t._s(t.$L("\u6DFB\u52A0\u7533\u8BF7")))])],1),a("Tabs",{staticStyle:{margin:"0 20px",height:"100%"},attrs:{value:t.tabsValue,size:"small"},on:{"on-click":t.tabsClick}},[a("TabPane",{staticStyle:{height:"100%"},attrs:{label:t.$L("\u5F85\u529E")+(t.unreadTotal>0?"("+t.unreadTotal+")":""),name:"unread"}},[a("div",{staticClass:"approve-main-search"},[a("div",{staticStyle:{display:"flex",gap:"10px"}},[a("Select",{staticStyle:{width:"150px"},on:{"on-change":function(e){return t.tabsClick("",0)}},model:{value:t.approvalType,callback:function(e){t.approvalType=e},expression:"approvalType"}},t._l(t.approvalList,function(e){return a("Option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.label))])}),1)],1)]),t.unreadList.length==0?a("div",{staticClass:"noData"},[t._v(t._s(t.$L("\u6682\u65E0\u6570\u636E")))]):a("div",{staticClass:"approve-mains"},[a("div",{staticClass:"approve-main-left"},[a("div",{staticClass:"approve-main-list"},t._l(t.unreadList,function(e,i){return a("div",{on:{click:function(l){return l.stopPropagation(),t.clickList(e,i)}}},[a("list",{class:{"approve-list-active":e._active},attrs:{data:e}})],1)}),0)]),a("div",{staticClass:"approve-main-right"},[!t.detailsShow&&t.tabsValue=="unread"?a("listDetails",{attrs:{data:t.details},on:{approve:t.tabsClick,revocation:t.tabsClick}}):t._e()],1)])]),a("TabPane",{attrs:{label:t.$L("\u5DF2\u529E"),name:"done"}},[a("div",{staticClass:"approve-main-search"},[a("div",{staticStyle:{display:"flex",gap:"10px"}},[a("Select",{staticStyle:{width:"150px"},on:{"on-change":function(e){return t.tabsClick("",0)}},model:{value:t.approvalType,callback:function(e){t.approvalType=e},expression:"approvalType"}},t._l(t.approvalList,function(e){return a("Option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.label))])}),1)],1)]),t.doneList.length==0?a("div",{staticClass:"noData"},[t._v(t._s(t.$L("\u6682\u65E0\u6570\u636E")))]):a("div",{staticClass:"approve-mains"},[a("div",{staticClass:"approve-main-left"},[a("div",{staticClass:"approve-main-list"},t._l(t.doneList,function(e,i){return a("div",{on:{click:function(l){return l.stopPropagation(),t.clickList(e,i)}}},[a("list",{class:{"approve-list-active":e._active},attrs:{data:e}})],1)}),0)]),a("div",{staticClass:"approve-main-right"},[!t.detailsShow&&t.tabsValue=="done"?a("listDetails",{attrs:{data:t.details},on:{approve:t.tabsClick,revocation:t.tabsClick}}):t._e()],1)])]),a("TabPane",{attrs:{label:t.$L("\u6284\u9001\u6211"),name:"notify"}},[a("div",{staticClass:"approve-main-search"},[a("div",{staticClass:"approve-main-search"},[a("div",{staticStyle:{display:"flex",gap:"10px"}},[a("Select",{staticStyle:{width:"150px"},on:{"on-change":function(e){return t.tabsClick("",0)}},model:{value:t.approvalType,callback:function(e){t.approvalType=e},expression:"approvalType"}},t._l(t.approvalList,function(e){return a("Option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.label))])}),1)],1)])]),t.notifyList.length==0?a("div",{staticClass:"noData"},[t._v(t._s(t.$L("\u6682\u65E0\u6570\u636E")))]):a("div",{staticClass:"approve-mains"},[a("div",{staticClass:"approve-main-left"},[a("div",{staticClass:"approve-main-list"},t._l(t.notifyList,function(e,i){return a("div",{on:{click:function(l){return l.stopPropagation(),t.clickList(e,i)}}},[a("list",{class:{"approve-list-active":e._active},attrs:{data:e}})],1)}),0)]),a("div",{staticClass:"approve-main-right"},[!t.detailsShow&&t.tabsValue=="notify"?a("listDetails",{attrs:{data:t.details},on:{approve:t.tabsClick,revocation:t.tabsClick}}):t._e()],1)])]),a("TabPane",{attrs:{label:t.$L("\u5DF2\u53D1\u8D77"),name:"initiated"}},[a("div",{staticClass:"approve-main-search"},[a("div",{staticStyle:{display:"flex",gap:"10px"}},[a("Select",{staticStyle:{width:"150px"},on:{"on-change":function(e){return t.tabsClick("",0)}},model:{value:t.approvalType,callback:function(e){t.approvalType=e},expression:"approvalType"}},t._l(t.approvalList,function(e){return a("Option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.label))])}),1),a("Select",{staticStyle:{width:"150px"},on:{"on-change":function(e){return t.tabsClick("",0)}},model:{value:t.searchState,callback:function(e){t.searchState=e},expression:"searchState"}},t._l(t.searchStateList,function(e){return a("Option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.label))])}),1)],1)]),t.initiatedList.length==0?a("div",{staticClass:"noData"},[t._v(t._s(t.$L("\u6682\u65E0\u6570\u636E")))]):a("div",{staticClass:"approve-mains"},[a("div",{staticClass:"approve-main-left"},[a("div",{staticClass:"approve-main-list"},t._l(t.initiatedList,function(e,i){return a("div",{on:{click:function(l){return l.stopPropagation(),t.clickList(e,i)}}},[a("list",{class:{"approve-list-active":e._active},attrs:{data:e}})],1)}),0)]),a("div",{staticClass:"approve-main-right"},[!t.detailsShow&&t.tabsValue=="initiated"?a("listDetails",{attrs:{data:t.details},on:{approve:t.tabsClick,revocation:t.tabsClick}}):t._e()],1)])])],1)],1),a("DrawerOverlay",{attrs:{placement:"right",size:600},model:{value:t.detailsShow,callback:function(e){t.detailsShow=e},expression:"detailsShow"}},[t.detailsShow?a("listDetails",{staticStyle:{height:"100%","border-radius":"10px"},attrs:{data:t.details},on:{approve:t.tabsClick,revocation:t.tabsClick}}):t._e()],1),a("Modal",{staticClass:"page-approve-initiate",attrs:{title:t.$L(t.addTitle),"mask-closable":!1},model:{value:t.addShow,callback:function(e){t.addShow=e},expression:"addShow"}},[a("Form",{ref:"initiateRef",attrs:{model:t.addData,rules:t.addRule,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[t.departmentList.length>1?a("FormItem",{attrs:{prop:"department_id",label:t.$L("\u9009\u62E9\u90E8\u95E8")}},[a("Select",{attrs:{placeholder:t.$L("\u8BF7\u9009\u62E9\u90E8\u95E8")},model:{value:t.addData.department_id,callback:function(e){t.$set(t.addData,"department_id",e)},expression:"addData.department_id"}},t._l(t.departmentList,function(e,i){return a("Option",{key:i,attrs:{value:e.id}},[t._v(t._s(e.name))])}),1)],1):t._e(),a("FormItem",{attrs:{prop:"applyType",label:t.$L("\u7533\u8BF7\u7C7B\u578B")}},[a("Select",{attrs:{placeholder:t.$L("\u8BF7\u9009\u62E9\u7533\u8BF7\u7C7B\u578B")},model:{value:t.addData.applyType,callback:function(e){t.$set(t.addData,"applyType",e)},expression:"addData.applyType"}},t._l(t.procdefList,function(e,i){return a("Option",{key:i,attrs:{value:e.name}},[t._v(t._s(e.name))])}),1)],1),(t.addData.applyType||"").indexOf("\u8BF7\u5047")!==-1?a("FormItem",{attrs:{prop:"type",label:t.$L("\u5047\u671F\u7C7B\u578B")}},[a("Select",{attrs:{placeholder:t.$L("\u8BF7\u9009\u62E9\u5047\u671F\u7C7B\u578B")},model:{value:t.addData.type,callback:function(e){t.$set(t.addData,"type",e)},expression:"addData.type"}},t._l(t.selectTypes,function(e,i){return a("Option",{key:i,attrs:{value:e}},[t._v(t._s(t.$L(e)))])}),1)],1):t._e(),a("FormItem",{attrs:{prop:"startTime",label:t.$L("\u5F00\u59CB\u65F6\u95F4")}},[a("div",{staticStyle:{display:"flex",gap:"3px"}},[a("DatePicker",{staticStyle:{flex:"1","min-width":"122px"},attrs:{type:"date",format:"yyyy-MM-dd",editable:!1,placeholder:t.$L("\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4")},on:{"on-change":function(e){t.addData.startTime=e}},model:{value:t.addData.startTime,callback:function(e){t.$set(t.addData,"startTime",e)},expression:"addData.startTime"}}),a("Select",{staticStyle:{"max-width":"100px"},model:{value:t.addData.startTimeHour,callback:function(e){t.$set(t.addData,"startTimeHour",e)},expression:"addData.startTimeHour"}},t._l(24,function(e,i){return a("Option",{key:i,attrs:{value:e-1<10?"0"+(e-1):e-1}},[t._v(t._s(e-1<10?"0":"")+t._s(e-1))])}),1),a("Select",{staticStyle:{"max-width":"100px"},model:{value:t.addData.startTimeMinute,callback:function(e){t.$set(t.addData,"startTimeMinute",e)},expression:"addData.startTimeMinute"}},[a("Option",{attrs:{value:"00"}},[t._v("00")]),a("Option",{attrs:{value:"30"}},[t._v("30")])],1)],1)]),a("FormItem",{attrs:{prop:"endTime",label:t.$L("\u7ED3\u675F\u65F6\u95F4")}},[a("div",{staticStyle:{display:"flex",gap:"3px"}},[a("DatePicker",{staticStyle:{flex:"1","min-width":"122px"},attrs:{type:"date",format:"yyyy-MM-dd",editable:!1,placeholder:t.$L("\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4")},on:{"on-change":function(e){t.addData.endTime=e}},model:{value:t.addData.endTime,callback:function(e){t.$set(t.addData,"endTime",e)},expression:"addData.endTime"}}),a("Select",{staticStyle:{"max-width":"100px"},model:{value:t.addData.endTimeHour,callback:function(e){t.$set(t.addData,"endTimeHour",e)},expression:"addData.endTimeHour"}},t._l(24,function(e,i){return a("Option",{key:i,attrs:{value:e-1<10?"0"+(e-1):e-1+""}},[t._v(t._s(e-1<10?"0":"")+t._s(e-1))])}),1),a("Select",{staticStyle:{"max-width":"100px"},model:{value:t.addData.endTimeMinute,callback:function(e){t.$set(t.addData,"endTimeMinute",e)},expression:"addData.endTimeMinute"}},[a("Option",{attrs:{value:"00"}},[t._v("00")]),a("Option",{attrs:{value:"30"}},[t._v("30")])],1)],1)]),a("FormItem",{attrs:{prop:"description",label:t.$L("\u4E8B\u7531")}},[a("Input",{attrs:{type:"textarea"},model:{value:t.addData.description,callback:function(e){t.$set(t.addData,"description",e)},expression:"addData.description"}})],1),a("FormItem",{attrs:{prop:"other",label:t.$L("\u56FE\u7247")}},[a("ImgUpload",{attrs:{num:3,width:512,height:512,whcut:1},model:{value:t.addData.other,callback:function(e){t.$set(t.addData,"other",e)},expression:"addData.other"}})],1)],1),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"default"},on:{click:function(e){t.addShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),a("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onInitiate}},[t._v(t._s(t.$L("\u786E\u8BA4")))])],1)],1)],1)},$=[];const T={components:{list:g,listDetails:c,DrawerOverlay:v,ImgUpload:u},name:"approve",data(){return{minDate:new Date(2020,0,1),maxDate:new Date(2025,10,1),currentDate:new Date(2021,0,17),procdefList:[],page:1,pageSize:250,total:0,noText:"",loadIng:!1,tabsValue:"",approvalType:"all",approvalList:[{value:"all",label:this.$L("\u5168\u90E8\u5BA1\u6279")},{value:"\u8BF7\u5047",label:this.$L("\u8BF7\u5047")},{value:"\u52A0\u73ED\u7533\u8BF7",label:this.$L("\u52A0\u73ED\u7533\u8BF7")}],searchState:"all",searchStateList:[{value:"all",label:this.$L("\u5168\u90E8\u72B6\u6001")},{value:1,label:this.$L("\u5BA1\u6279\u4E2D")},{value:2,label:this.$L("\u5DF2\u901A\u8FC7")},{value:3,label:this.$L("\u5DF2\u62D2\u7EDD")},{value:4,label:this.$L("\u5DF2\u64A4\u56DE")}],unreadTotal:0,unreadList:[],doneList:[],notifyList:[],initiatedList:[],details:{},detailsShow:!1,addTitle:"",addShow:!1,startTimeOpen:!1,endTimeOpen:!1,addData:{department_id:0,applyType:"",type:"",startTime:"2023-04-20",startTimeHour:"09",startTimeMinute:"00",endTime:"2023-04-20",endTimeHour:"18",endTimeMinute:"00",other:""},addRule:{department_id:{type:"number",required:!0,message:this.$L("\u8BF7\u9009\u62E9\u90E8\u95E8\uFF01"),trigger:"change"},applyType:{type:"string",required:!0,message:this.$L("\u8BF7\u9009\u62E9\u7533\u8BF7\u7C7B\u578B\uFF01"),trigger:"change"},type:{type:"string",required:!0,message:this.$L("\u8BF7\u9009\u62E9\u5047\u671F\u7C7B\u578B\uFF01"),trigger:"change"},startTime:{type:"string",required:!0,message:this.$L("\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4\uFF01"),trigger:"change"},endTime:{type:"string",required:!0,message:this.$L("\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4\uFF01"),trigger:"change"},description:{type:"string",required:!0,message:this.$L("\u8BF7\u8F93\u5165\u4E8B\u7531\uFF01"),trigger:"change"}},selectTypes:["\u5E74\u5047","\u4E8B\u5047","\u75C5\u5047","\u8C03\u4F11","\u4EA7\u5047","\u966A\u4EA7\u5047","\u5A5A\u5047","\u4E27\u5047","\u54FA\u4E73\u5047"],showDateTime:!1}},computed:{...p(["wsMsg","userInfo","userIsAdmin"]),departmentList(){let t=(this.userInfo.department_name||"").split(",");return(this.userInfo.department||[]).map((s,a)=>({id:s,name:t[a]}))}},watch:{$route(t,s){t.name=="manage-approve"&&this.tabsClick()},wsMsg:{handler(t){const{type:s,action:a}=t;switch(s){case"approve":a=="unread"&&this.tabsClick();break}},deep:!0},addShow(t){t||(this.addData.other="")}},mounted(){this.tabsValue="unread",this.tabsClick(),this.getUnreadList(),this.addData.department_id=this.userInfo.department[0]||0,this.addData.startTime=this.addData.endTime=this.getCurrentDate()},methods:{getCurrentDate(){const t=new Date,s=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),e=String(t.getDate()).padStart(2,"0");return`${s}-${a}-${e}`},tabsClick(t,s=1e3){!t&&this.__tabsClick&&s>0||(this.__tabsClick=setTimeout(()=>{this.__tabsClick=null},s),this.tabsValue=t||this.tabsValue,t!=""&&(this.approvalType=this.searchState="all"),this.tabsValue=="unread"&&this.getUnreadList(),this.tabsValue=="done"&&this.getDoneList(),this.tabsValue=="notify"&&this.getNotifyList(),this.tabsValue=="initiated"&&this.getInitiatedList())},clickList(t){if(this.unreadList.map(s=>{s._active=!1}),this.doneList.map(s=>{s._active=!1}),this.notifyList.map(s=>{s._active=!1}),this.initiatedList.map(s=>{s._active=!1}),t._active=!0,window.innerWidth<426){this.goForward({name:"manage-approve-details",query:{id:t.id}});return}window.innerWidth<1010&&(this.detailsShow=!0),this.details={},this.$nextTick(()=>{this.details=t})},getUnreadList(){this.$store.dispatch("call",{method:"get",url:"approve/process/findTask",data:{page:this.page,page_size:this.pageSize,proc_def_name:this.approvalType=="all"?"":this.approvalType}}).then(({data:t})=>{var e;let s=0,a=0;(this.unreadList.length==0||this.unreadList.length==t.rows.length)&&((e=this.unreadList)==null||e.map(i=>{i._active&&(s=i.id)})),this.unreadList=t.rows.map((i,l)=>(i._active=s>0?i.id==s:l==0,i._active&&(a=l),i)),this.approvalType=="all"&&(this.unreadTotal=this.unreadList.length),this.tabsValue=="unread"&&this.$nextTick(()=>{this.details=this.unreadList[a]||{}})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},getDoneList(){this.$store.dispatch("call",{method:"get",url:"approve/procHistory/findTask",data:{page:this.page,page_size:this.pageSize,proc_def_name:this.approvalType=="all"?"":this.approvalType}}).then(({data:t})=>{var e;let s=0,a=0;(this.doneList.length==0||this.doneList.length==t.rows.length)&&((e=this.doneList)==null||e.map(i=>{i._active&&(s=i.id)})),this.doneList=t.rows.map((i,l)=>(i._active=s>0?i.id==s:l==0,i._active&&(a=l),i)),this.tabsValue=="done"&&this.$nextTick(()=>{this.details=this.doneList[a]||{}})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},getNotifyList(){this.$store.dispatch("call",{method:"get",url:"approve/procHistory/findProcNotify",data:{page:this.page,page_size:this.pageSize,proc_def_name:this.approvalType=="all"?"":this.approvalType}}).then(({data:t})=>{var e;let s=0,a=0;(this.notifyList.length==0||this.notifyList.length==t.rows.length)&&((e=this.notifyList)==null||e.map(i=>{i._active&&(s=i.id)})),this.notifyList=t.rows.map((i,l)=>(i._active=s>0?i.id==s:l==0,i._active&&(a=l),i)),this.tabsValue=="notify"&&this.$nextTick(()=>{this.details=this.notifyList[a]||{}})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},getInitiatedList(){this.$store.dispatch("call",{method:"post",url:"approve/process/startByMyselfAll",data:{page:this.page,page_size:this.pageSize,proc_def_name:this.approvalType=="all"?"":this.approvalType,state:this.searchState=="all"?"":this.searchState}}).then(({data:t})=>{var e;let s=0,a=0;(this.initiatedList.length==0||this.initiatedList.length==t.rows.length)&&((e=this.initiatedList)==null||e.map(i=>{i._active&&(s=i.id)})),this.initiatedList=t.rows.map((i,l)=>(i._active=s>0?i.id==s:l==0,i._active&&(a=l),i)),this.tabsValue=="initiated"&&this.$nextTick(()=>{this.details=this.initiatedList[a]||{}})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},addApply(){this.$store.dispatch("call",{url:"users/basic",data:{userid:[this.userInfo.userid]},skipAuthError:!0}).then(({data:t})=>{var s;if(this.addData.department_id=((s=t[0])==null?void 0:s.department[0])||0,!this.addData.department_id)return $A.modalError("\u60A8\u5F53\u524D\u672A\u52A0\u5165\u4EFB\u4F55\u90E8\u95E8\uFF0C\u4E0D\u80FD\u53D1\u8D77\uFF01"),!1;this.$store.dispatch("call",{url:"approve/procdef/all",method:"post"}).then(({data:a})=>{this.procdefList=a.rows||[],this.addTitle=this.$L("\u6DFB\u52A0\u7533\u8BF7"),this.addShow=!0}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},onInitiate(){this.$refs.initiateRef.validate(t=>{if(t){this.loadIng=1;var s=JSON.parse(JSON.stringify(this.addData));s.startTime=s.startTime+" "+s.startTimeHour+":"+s.startTimeMinute,s.endTime=s.endTime+" "+s.endTimeHour+":"+s.endTimeMinute,this.addData.other&&(s.other=this.addData.other.map(a=>a.path).join(",")),this.$store.dispatch("call",{url:"approve/process/start",data:{proc_name:s.applyType,department_id:s.department_id,var:JSON.stringify(s)},method:"post"}).then(({data:a,msg:e})=>{$A.messageSuccess(e),this.addShow=!1,this.$refs.initiateRef.resetFields(),this.tabsClick()}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--})}})}}},d={};var b=o(T,L,$,!1,k,null,null,null);function k(t){for(let s in d)this[s]=d[s]}var w=function(){return b.exports}();export{w as default}; +import{n as o,m as p}from"./app.28437e7d.js";import c from"./details.70f91a78.js";import{D as v}from"./index.ed41beb1.js";import{I as u}from"./ImgUpload.cbadd034.js";var h=function(){var t,s,a,e,i=this,l=i.$createElement,r=i._self._c||l;return r("div",{staticClass:"approve-list"},[r("h2",[r("span",{staticClass:"list-name"},[i._v(i._s(i.$L(i.data.proc_def_name)))]),i.data.state==0?r("Tag",{attrs:{color:"cyan"}},[i._v(i._s(i.$L("\u5F85\u5BA1\u6279")))]):i._e(),i.data.state==1?r("Tag",{attrs:{color:"cyan"}},[i._v(i._s(i.$L("\u5BA1\u6279\u4E2D")))]):i._e(),i.data.state==2?r("Tag",{attrs:{color:"green"}},[i._v(i._s(i.$L("\u5DF2\u901A\u8FC7")))]):i._e(),i.data.state==3?r("Tag",{attrs:{color:"red"}},[i._v(i._s(i.$L("\u5DF2\u62D2\u7EDD")))]):i._e(),i.data.state==4?r("Tag",{attrs:{color:"red"}},[i._v(i._s(i.$L("\u5DF2\u64A4\u56DE")))]):i._e()],1),(t=i.data.var)!==null&&t!==void 0&&t.type?r("p",[i._v(i._s(i.$L("\u5047\u671F\u7C7B\u578B"))+"\uFF1A"),r("span",[i._v(i._s(i.$L((s=i.data.var)===null||s===void 0?void 0:s.type)))])]):i._e(),r("p",[i._v(i._s(i.$L("\u5F00\u59CB\u65F6\u95F4"))+"\uFF1A"),r("span",[i._v(i._s((a=i.data.var)===null||a===void 0?void 0:a.start_time))])]),r("p",[i._v(i._s(i.$L("\u7ED3\u675F\u65F6\u95F4"))+"\uFF1A"),r("span",[i._v(i._s((e=i.data.var)===null||e===void 0?void 0:e.end_time))])]),r("div",{staticClass:"list-member"},[r("span",[r("Avatar",{attrs:{src:i.data.userimg,size:"20"}}),i._v(" "+i._s(i.data.start_user_name)+" ")],1),r("span",[i._v(" "+i._s(i.$L("\u53D1\u8D77\u65F6\u95F4"))+"\uFF1A"+i._s(i.data.start_time)+" ")])])])},_=[];const m={name:"list",props:{data:{type:Object,default(){return{}}}},data(){return{}}},n={};var f=o(m,h,_,!1,y,null,null,null);function y(t){for(let s in n)this[s]=n[s]}var g=function(){return f.exports}(),L=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"page-approve"},[a("PageTitle",{attrs:{title:t.$L("\u5BA1\u6279\u4E2D\u5FC3")}}),a("div",{ref:"fileWrapper",staticClass:"approve-wrapper"},[a("div",{staticClass:"approve-head"},[a("div",{staticClass:"approve-nav"},[a("h1",[t._v(t._s(t.$L("\u5BA1\u6279\u4E2D\u5FC3")))])]),a("Button",{attrs:{type:"primary"},on:{click:t.addApply}},[t._v(t._s(t.$L("\u6DFB\u52A0\u7533\u8BF7")))])],1),a("Tabs",{staticStyle:{margin:"0 20px",height:"100%"},attrs:{value:t.tabsValue,size:"small"},on:{"on-click":t.tabsClick}},[a("TabPane",{staticStyle:{height:"100%"},attrs:{label:t.$L("\u5F85\u529E")+(t.unreadTotal>0?"("+t.unreadTotal+")":""),name:"unread"}},[a("div",{staticClass:"approve-main-search"},[a("div",{staticStyle:{display:"flex",gap:"10px"}},[a("Select",{staticStyle:{width:"150px"},on:{"on-change":function(e){return t.tabsClick("",0)}},model:{value:t.approvalType,callback:function(e){t.approvalType=e},expression:"approvalType"}},t._l(t.approvalList,function(e){return a("Option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.label))])}),1)],1)]),t.unreadList.length==0?a("div",{staticClass:"noData"},[t._v(t._s(t.$L("\u6682\u65E0\u6570\u636E")))]):a("div",{staticClass:"approve-mains"},[a("div",{staticClass:"approve-main-left"},[a("div",{staticClass:"approve-main-list"},t._l(t.unreadList,function(e,i){return a("div",{on:{click:function(l){return l.stopPropagation(),t.clickList(e,i)}}},[a("list",{class:{"approve-list-active":e._active},attrs:{data:e}})],1)}),0)]),a("div",{staticClass:"approve-main-right"},[!t.detailsShow&&t.tabsValue=="unread"?a("listDetails",{attrs:{data:t.details},on:{approve:t.tabsClick,revocation:t.tabsClick}}):t._e()],1)])]),a("TabPane",{attrs:{label:t.$L("\u5DF2\u529E"),name:"done"}},[a("div",{staticClass:"approve-main-search"},[a("div",{staticStyle:{display:"flex",gap:"10px"}},[a("Select",{staticStyle:{width:"150px"},on:{"on-change":function(e){return t.tabsClick("",0)}},model:{value:t.approvalType,callback:function(e){t.approvalType=e},expression:"approvalType"}},t._l(t.approvalList,function(e){return a("Option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.label))])}),1)],1)]),t.doneList.length==0?a("div",{staticClass:"noData"},[t._v(t._s(t.$L("\u6682\u65E0\u6570\u636E")))]):a("div",{staticClass:"approve-mains"},[a("div",{staticClass:"approve-main-left"},[a("div",{staticClass:"approve-main-list"},t._l(t.doneList,function(e,i){return a("div",{on:{click:function(l){return l.stopPropagation(),t.clickList(e,i)}}},[a("list",{class:{"approve-list-active":e._active},attrs:{data:e}})],1)}),0)]),a("div",{staticClass:"approve-main-right"},[!t.detailsShow&&t.tabsValue=="done"?a("listDetails",{attrs:{data:t.details},on:{approve:t.tabsClick,revocation:t.tabsClick}}):t._e()],1)])]),a("TabPane",{attrs:{label:t.$L("\u6284\u9001\u6211"),name:"notify"}},[a("div",{staticClass:"approve-main-search"},[a("div",{staticClass:"approve-main-search"},[a("div",{staticStyle:{display:"flex",gap:"10px"}},[a("Select",{staticStyle:{width:"150px"},on:{"on-change":function(e){return t.tabsClick("",0)}},model:{value:t.approvalType,callback:function(e){t.approvalType=e},expression:"approvalType"}},t._l(t.approvalList,function(e){return a("Option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.label))])}),1)],1)])]),t.notifyList.length==0?a("div",{staticClass:"noData"},[t._v(t._s(t.$L("\u6682\u65E0\u6570\u636E")))]):a("div",{staticClass:"approve-mains"},[a("div",{staticClass:"approve-main-left"},[a("div",{staticClass:"approve-main-list"},t._l(t.notifyList,function(e,i){return a("div",{on:{click:function(l){return l.stopPropagation(),t.clickList(e,i)}}},[a("list",{class:{"approve-list-active":e._active},attrs:{data:e}})],1)}),0)]),a("div",{staticClass:"approve-main-right"},[!t.detailsShow&&t.tabsValue=="notify"?a("listDetails",{attrs:{data:t.details},on:{approve:t.tabsClick,revocation:t.tabsClick}}):t._e()],1)])]),a("TabPane",{attrs:{label:t.$L("\u5DF2\u53D1\u8D77"),name:"initiated"}},[a("div",{staticClass:"approve-main-search"},[a("div",{staticStyle:{display:"flex",gap:"10px"}},[a("Select",{staticStyle:{width:"150px"},on:{"on-change":function(e){return t.tabsClick("",0)}},model:{value:t.approvalType,callback:function(e){t.approvalType=e},expression:"approvalType"}},t._l(t.approvalList,function(e){return a("Option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.label))])}),1),a("Select",{staticStyle:{width:"150px"},on:{"on-change":function(e){return t.tabsClick("",0)}},model:{value:t.searchState,callback:function(e){t.searchState=e},expression:"searchState"}},t._l(t.searchStateList,function(e){return a("Option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.label))])}),1)],1)]),t.initiatedList.length==0?a("div",{staticClass:"noData"},[t._v(t._s(t.$L("\u6682\u65E0\u6570\u636E")))]):a("div",{staticClass:"approve-mains"},[a("div",{staticClass:"approve-main-left"},[a("div",{staticClass:"approve-main-list"},t._l(t.initiatedList,function(e,i){return a("div",{on:{click:function(l){return l.stopPropagation(),t.clickList(e,i)}}},[a("list",{class:{"approve-list-active":e._active},attrs:{data:e}})],1)}),0)]),a("div",{staticClass:"approve-main-right"},[!t.detailsShow&&t.tabsValue=="initiated"?a("listDetails",{attrs:{data:t.details},on:{approve:t.tabsClick,revocation:t.tabsClick}}):t._e()],1)])])],1)],1),a("DrawerOverlay",{attrs:{placement:"right",size:600},model:{value:t.detailsShow,callback:function(e){t.detailsShow=e},expression:"detailsShow"}},[t.detailsShow?a("listDetails",{staticStyle:{height:"100%","border-radius":"10px"},attrs:{data:t.details},on:{approve:t.tabsClick,revocation:t.tabsClick}}):t._e()],1),a("Modal",{staticClass:"page-approve-initiate",attrs:{title:t.$L(t.addTitle),"mask-closable":!1},model:{value:t.addShow,callback:function(e){t.addShow=e},expression:"addShow"}},[a("Form",{ref:"initiateRef",attrs:{model:t.addData,rules:t.addRule,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[t.departmentList.length>1?a("FormItem",{attrs:{prop:"department_id",label:t.$L("\u9009\u62E9\u90E8\u95E8")}},[a("Select",{attrs:{placeholder:t.$L("\u8BF7\u9009\u62E9\u90E8\u95E8")},model:{value:t.addData.department_id,callback:function(e){t.$set(t.addData,"department_id",e)},expression:"addData.department_id"}},t._l(t.departmentList,function(e,i){return a("Option",{key:i,attrs:{value:e.id}},[t._v(t._s(e.name))])}),1)],1):t._e(),a("FormItem",{attrs:{prop:"applyType",label:t.$L("\u7533\u8BF7\u7C7B\u578B")}},[a("Select",{attrs:{placeholder:t.$L("\u8BF7\u9009\u62E9\u7533\u8BF7\u7C7B\u578B")},model:{value:t.addData.applyType,callback:function(e){t.$set(t.addData,"applyType",e)},expression:"addData.applyType"}},t._l(t.procdefList,function(e,i){return a("Option",{key:i,attrs:{value:e.name}},[t._v(t._s(e.name))])}),1)],1),(t.addData.applyType||"").indexOf("\u8BF7\u5047")!==-1?a("FormItem",{attrs:{prop:"type",label:t.$L("\u5047\u671F\u7C7B\u578B")}},[a("Select",{attrs:{placeholder:t.$L("\u8BF7\u9009\u62E9\u5047\u671F\u7C7B\u578B")},model:{value:t.addData.type,callback:function(e){t.$set(t.addData,"type",e)},expression:"addData.type"}},t._l(t.selectTypes,function(e,i){return a("Option",{key:i,attrs:{value:e}},[t._v(t._s(t.$L(e)))])}),1)],1):t._e(),a("FormItem",{attrs:{prop:"startTime",label:t.$L("\u5F00\u59CB\u65F6\u95F4")}},[a("div",{staticStyle:{display:"flex",gap:"3px"}},[a("DatePicker",{staticStyle:{flex:"1","min-width":"122px"},attrs:{type:"date",format:"yyyy-MM-dd",editable:!1,placeholder:t.$L("\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4")},on:{"on-change":function(e){t.addData.startTime=e}},model:{value:t.addData.startTime,callback:function(e){t.$set(t.addData,"startTime",e)},expression:"addData.startTime"}}),a("Select",{staticStyle:{"max-width":"100px"},model:{value:t.addData.startTimeHour,callback:function(e){t.$set(t.addData,"startTimeHour",e)},expression:"addData.startTimeHour"}},t._l(24,function(e,i){return a("Option",{key:i,attrs:{value:e-1<10?"0"+(e-1):e-1}},[t._v(t._s(e-1<10?"0":"")+t._s(e-1))])}),1),a("Select",{staticStyle:{"max-width":"100px"},model:{value:t.addData.startTimeMinute,callback:function(e){t.$set(t.addData,"startTimeMinute",e)},expression:"addData.startTimeMinute"}},[a("Option",{attrs:{value:"00"}},[t._v("00")]),a("Option",{attrs:{value:"30"}},[t._v("30")])],1)],1)]),a("FormItem",{attrs:{prop:"endTime",label:t.$L("\u7ED3\u675F\u65F6\u95F4")}},[a("div",{staticStyle:{display:"flex",gap:"3px"}},[a("DatePicker",{staticStyle:{flex:"1","min-width":"122px"},attrs:{type:"date",format:"yyyy-MM-dd",editable:!1,placeholder:t.$L("\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4")},on:{"on-change":function(e){t.addData.endTime=e}},model:{value:t.addData.endTime,callback:function(e){t.$set(t.addData,"endTime",e)},expression:"addData.endTime"}}),a("Select",{staticStyle:{"max-width":"100px"},model:{value:t.addData.endTimeHour,callback:function(e){t.$set(t.addData,"endTimeHour",e)},expression:"addData.endTimeHour"}},t._l(24,function(e,i){return a("Option",{key:i,attrs:{value:e-1<10?"0"+(e-1):e-1+""}},[t._v(t._s(e-1<10?"0":"")+t._s(e-1))])}),1),a("Select",{staticStyle:{"max-width":"100px"},model:{value:t.addData.endTimeMinute,callback:function(e){t.$set(t.addData,"endTimeMinute",e)},expression:"addData.endTimeMinute"}},[a("Option",{attrs:{value:"00"}},[t._v("00")]),a("Option",{attrs:{value:"30"}},[t._v("30")])],1)],1)]),a("FormItem",{attrs:{prop:"description",label:t.$L("\u4E8B\u7531")}},[a("Input",{attrs:{type:"textarea"},model:{value:t.addData.description,callback:function(e){t.$set(t.addData,"description",e)},expression:"addData.description"}})],1),a("FormItem",{attrs:{prop:"other",label:t.$L("\u56FE\u7247")}},[a("ImgUpload",{attrs:{num:3,width:512,height:512,whcut:1},model:{value:t.addData.other,callback:function(e){t.$set(t.addData,"other",e)},expression:"addData.other"}})],1)],1),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"default"},on:{click:function(e){t.addShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),a("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onInitiate}},[t._v(t._s(t.$L("\u786E\u8BA4")))])],1)],1)],1)},$=[];const T={components:{list:g,listDetails:c,DrawerOverlay:v,ImgUpload:u},name:"approve",data(){return{minDate:new Date(2020,0,1),maxDate:new Date(2025,10,1),currentDate:new Date(2021,0,17),procdefList:[],page:1,pageSize:250,total:0,noText:"",loadIng:!1,tabsValue:"",approvalType:"all",approvalList:[{value:"all",label:this.$L("\u5168\u90E8\u5BA1\u6279")},{value:"\u8BF7\u5047",label:this.$L("\u8BF7\u5047")},{value:"\u52A0\u73ED\u7533\u8BF7",label:this.$L("\u52A0\u73ED\u7533\u8BF7")}],searchState:"all",searchStateList:[{value:"all",label:this.$L("\u5168\u90E8\u72B6\u6001")},{value:1,label:this.$L("\u5BA1\u6279\u4E2D")},{value:2,label:this.$L("\u5DF2\u901A\u8FC7")},{value:3,label:this.$L("\u5DF2\u62D2\u7EDD")},{value:4,label:this.$L("\u5DF2\u64A4\u56DE")}],unreadTotal:0,unreadList:[],doneList:[],notifyList:[],initiatedList:[],details:{},detailsShow:!1,addTitle:"",addShow:!1,startTimeOpen:!1,endTimeOpen:!1,addData:{department_id:0,applyType:"",type:"",startTime:"2023-04-20",startTimeHour:"09",startTimeMinute:"00",endTime:"2023-04-20",endTimeHour:"18",endTimeMinute:"00",other:""},addRule:{department_id:{type:"number",required:!0,message:this.$L("\u8BF7\u9009\u62E9\u90E8\u95E8\uFF01"),trigger:"change"},applyType:{type:"string",required:!0,message:this.$L("\u8BF7\u9009\u62E9\u7533\u8BF7\u7C7B\u578B\uFF01"),trigger:"change"},type:{type:"string",required:!0,message:this.$L("\u8BF7\u9009\u62E9\u5047\u671F\u7C7B\u578B\uFF01"),trigger:"change"},startTime:{type:"string",required:!0,message:this.$L("\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4\uFF01"),trigger:"change"},endTime:{type:"string",required:!0,message:this.$L("\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4\uFF01"),trigger:"change"},description:{type:"string",required:!0,message:this.$L("\u8BF7\u8F93\u5165\u4E8B\u7531\uFF01"),trigger:"change"}},selectTypes:["\u5E74\u5047","\u4E8B\u5047","\u75C5\u5047","\u8C03\u4F11","\u4EA7\u5047","\u966A\u4EA7\u5047","\u5A5A\u5047","\u4E27\u5047","\u54FA\u4E73\u5047"],showDateTime:!1}},computed:{...p(["wsMsg","userInfo","userIsAdmin"]),departmentList(){let t=(this.userInfo.department_name||"").split(",");return(this.userInfo.department||[]).map((s,a)=>({id:s,name:t[a]}))}},watch:{$route(t,s){t.name=="manage-approve"&&this.tabsClick()},wsMsg:{handler(t){const{type:s,action:a}=t;switch(s){case"approve":a=="unread"&&this.tabsClick();break}},deep:!0},addShow(t){t||(this.addData.other="")}},mounted(){this.tabsValue="unread",this.tabsClick(),this.getUnreadList(),this.addData.department_id=this.userInfo.department[0]||0,this.addData.startTime=this.addData.endTime=this.getCurrentDate()},methods:{getCurrentDate(){const t=new Date,s=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),e=String(t.getDate()).padStart(2,"0");return`${s}-${a}-${e}`},tabsClick(t,s=1e3){!t&&this.__tabsClick&&s>0||(this.__tabsClick=setTimeout(()=>{this.__tabsClick=null},s),this.tabsValue=t||this.tabsValue,t!=""&&(this.approvalType=this.searchState="all"),this.tabsValue=="unread"&&this.getUnreadList(),this.tabsValue=="done"&&this.getDoneList(),this.tabsValue=="notify"&&this.getNotifyList(),this.tabsValue=="initiated"&&this.getInitiatedList())},clickList(t){if(this.unreadList.map(s=>{s._active=!1}),this.doneList.map(s=>{s._active=!1}),this.notifyList.map(s=>{s._active=!1}),this.initiatedList.map(s=>{s._active=!1}),t._active=!0,window.innerWidth<426){this.goForward({name:"manage-approve-details",query:{id:t.id}});return}window.innerWidth<1010&&(this.detailsShow=!0),this.details={},this.$nextTick(()=>{this.details=t})},getUnreadList(){this.$store.dispatch("call",{method:"get",url:"approve/process/findTask",data:{page:this.page,page_size:this.pageSize,proc_def_name:this.approvalType=="all"?"":this.approvalType}}).then(({data:t})=>{var e;let s=0,a=0;(this.unreadList.length==0||this.unreadList.length==t.rows.length)&&((e=this.unreadList)==null||e.map(i=>{i._active&&(s=i.id)})),this.unreadList=t.rows.map((i,l)=>(i._active=s>0?i.id==s:l==0,i._active&&(a=l),i)),this.approvalType=="all"&&(this.unreadTotal=this.unreadList.length),this.tabsValue=="unread"&&this.$nextTick(()=>{this.details=this.unreadList[a]||{}})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},getDoneList(){this.$store.dispatch("call",{method:"get",url:"approve/procHistory/findTask",data:{page:this.page,page_size:this.pageSize,proc_def_name:this.approvalType=="all"?"":this.approvalType}}).then(({data:t})=>{var e;let s=0,a=0;(this.doneList.length==0||this.doneList.length==t.rows.length)&&((e=this.doneList)==null||e.map(i=>{i._active&&(s=i.id)})),this.doneList=t.rows.map((i,l)=>(i._active=s>0?i.id==s:l==0,i._active&&(a=l),i)),this.tabsValue=="done"&&this.$nextTick(()=>{this.details=this.doneList[a]||{}})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},getNotifyList(){this.$store.dispatch("call",{method:"get",url:"approve/procHistory/findProcNotify",data:{page:this.page,page_size:this.pageSize,proc_def_name:this.approvalType=="all"?"":this.approvalType}}).then(({data:t})=>{var e;let s=0,a=0;(this.notifyList.length==0||this.notifyList.length==t.rows.length)&&((e=this.notifyList)==null||e.map(i=>{i._active&&(s=i.id)})),this.notifyList=t.rows.map((i,l)=>(i._active=s>0?i.id==s:l==0,i._active&&(a=l),i)),this.tabsValue=="notify"&&this.$nextTick(()=>{this.details=this.notifyList[a]||{}})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},getInitiatedList(){this.$store.dispatch("call",{method:"post",url:"approve/process/startByMyselfAll",data:{page:this.page,page_size:this.pageSize,proc_def_name:this.approvalType=="all"?"":this.approvalType,state:this.searchState=="all"?"":this.searchState}}).then(({data:t})=>{var e;let s=0,a=0;(this.initiatedList.length==0||this.initiatedList.length==t.rows.length)&&((e=this.initiatedList)==null||e.map(i=>{i._active&&(s=i.id)})),this.initiatedList=t.rows.map((i,l)=>(i._active=s>0?i.id==s:l==0,i._active&&(a=l),i)),this.tabsValue=="initiated"&&this.$nextTick(()=>{this.details=this.initiatedList[a]||{}})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},addApply(){this.$store.dispatch("call",{url:"users/basic",data:{userid:[this.userInfo.userid]},skipAuthError:!0}).then(({data:t})=>{var s;if(this.addData.department_id=((s=t[0])==null?void 0:s.department[0])||0,!this.addData.department_id)return $A.modalError("\u60A8\u5F53\u524D\u672A\u52A0\u5165\u4EFB\u4F55\u90E8\u95E8\uFF0C\u4E0D\u80FD\u53D1\u8D77\uFF01"),!1;this.$store.dispatch("call",{url:"approve/procdef/all",method:"post"}).then(({data:a})=>{this.procdefList=a.rows||[],this.addTitle=this.$L("\u6DFB\u52A0\u7533\u8BF7"),this.addShow=!0}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},onInitiate(){this.$refs.initiateRef.validate(t=>{if(t){this.loadIng=1;var s=JSON.parse(JSON.stringify(this.addData));s.startTime=s.startTime+" "+s.startTimeHour+":"+s.startTimeMinute,s.endTime=s.endTime+" "+s.endTimeHour+":"+s.endTimeMinute,this.addData.other&&(s.other=this.addData.other.map(a=>a.path).join(",")),this.$store.dispatch("call",{url:"approve/process/start",data:{proc_name:s.applyType,department_id:s.department_id,var:JSON.stringify(s)},method:"post"}).then(({data:a,msg:e})=>{$A.messageSuccess(e),this.addShow=!1,this.$refs.initiateRef.resetFields(),this.tabsClick()}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--})}})}}},d={};var b=o(T,L,$,!1,k,null,null,null);function k(t){for(let s in d)this[s]=d[s]}var w=function(){return b.exports}();export{w as default}; diff --git a/public/js/build/index.e632435c.js b/public/js/build/index.680c7fea.js similarity index 99% rename from public/js/build/index.e632435c.js rename to public/js/build/index.680c7fea.js index 8c1824705..e9e76fc03 100644 --- a/public/js/build/index.e632435c.js +++ b/public/js/build/index.680c7fea.js @@ -1 +1 @@ -import{l as n,a as o,m as d,s as l,n as g}from"./app.3d81bfbf.js";import{U as m}from"./UpdateLog.eacff378.js";var c=function(){var t=this,i=t.$createElement,e=t._self._c||i;return t.needStartHome?e("div",{staticClass:"page-index"},[e("PageTitle",{attrs:{title:t.appTitle}}),e("div",{staticClass:"page-warp"},[e("div",{staticClass:"page-header"},[e("div",{staticClass:"header-nav"},[t._m(0),t.windowWidth>780?e("div",{staticClass:"header-nav-box header-nav-boxs"},[t.showItem.pro?e("Button",{staticClass:"header-right-pro no-dark-content",attrs:{size:"small"},on:{click:t.onPro}},[t._v(t._s(t.$L("Pro\u7248")))]):t._e(),t.windowWidth>=820?[t.showItem.github?e("a",{staticClass:"header-right-github",attrs:{href:t.showItem.github,target:"_blank"}},[e("Icon",{attrs:{type:"logo-github"}})],1):t._e(),t.showItem.updateLog?e("div",{staticClass:"header-right-uplog",on:{click:function(s){t.uplogShow=!0}}},[t._v(t._s(t.$L("\u66F4\u65B0\u65E5\u5FD7")))]):t._e()]:t._e(),e("div",{staticClass:"header-right-1"},[e("Dropdown",{attrs:{trigger:"click"},on:{"on-click":t.onLanguage}},[e("a",{staticClass:"header-right-1-dropdown",attrs:{href:"javascript:void(0)"}},[t._v(" "+t._s(t.currentLanguage)+" "),e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.languageList,function(s,a){return e("DropdownItem",{key:a,attrs:{name:a,selected:t.languageType===a}},[t._v(t._s(s))])}),1)],1)],1),t.windowWidth>=980?e("div",{staticClass:"header-right-2"},[e("Dropdown",{attrs:{trigger:"click"},on:{"on-click":t.setTheme}},[e("a",{staticClass:"header-right-2-dropdown",attrs:{href:"javascript:void(0)"}},[t._v(" "+t._s(t.$L("\u4E3B\u9898\u76AE\u80A4"))+" "),e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.themeList,function(s,a){return e("DropdownItem",{key:a,attrs:{name:s.value,selected:t.themeMode===s.value}},[t._v(t._s(t.$L(s.name)))])}),1)],1)],1):t._e(),t.userId>0?e("div",{staticClass:"header-right-5 no-dark-content",on:{click:t.login}},[e("UserAvatar",{attrs:{userid:t.userId,size:38}})],1):[e("div",{staticClass:"header-right-3",on:{click:t.register}},[t._v(t._s(t.$L("\u6CE8\u518C\u5E10\u53F7")))]),e("div",{staticClass:"header-right-4 no-dark-content",on:{click:t.login}},[t._v(t._s(t.$L("\u767B\u5F55")))])]],2):e("div",{staticClass:"header-nav-box header-nav-boxs"},[e("Dropdown",{attrs:{trigger:"click"}},[e("a",{attrs:{href:"javascript:void(0)"}},[e("Icon",{staticClass:"header-nav-more no-dark-content",attrs:{type:"md-menu"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t.userId>0?e("DropdownItem",{nativeOn:{click:function(s){return t.login.apply(null,arguments)}}},[e("UserAvatar",{attrs:{userid:t.userId,"show-name":"","show-icon":!1}})],1):[e("DropdownItem",{nativeOn:{click:function(s){return t.login.apply(null,arguments)}}},[t._v(t._s(t.$L("\u767B\u5F55")))]),e("DropdownItem",{nativeOn:{click:function(s){return t.register.apply(null,arguments)}}},[t._v(t._s(t.$L("\u6CE8\u518C\u5E10\u53F7")))])],t.showItem.github?e("DropdownItem",{nativeOn:{click:function(s){return t.windowOpen(t.showItem.github)}}},[t._v("Github")]):t._e(),t.showItem.updateLog?e("DropdownItem",{nativeOn:{click:function(s){t.uplogShow=!0}}},[t._v(t._s(t.$L("\u66F4\u65B0\u65E5\u5FD7")))]):t._e(),e("Dropdown",{attrs:{placement:"right-start",transfer:""},on:{"on-click":t.onLanguage}},[e("DropdownItem",[e("div",{staticClass:"header-nav-dropdown-item"},[t._v(" "+t._s(t.currentLanguage)+" "),e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.languageList,function(s,a){return e("DropdownItem",{key:a,attrs:{name:a,selected:t.languageType===a}},[t._v(t._s(s))])}),1)],1),e("Dropdown",{attrs:{trigger:"click",placement:"right-end",transfer:""},on:{"on-click":t.setTheme}},[e("DropdownItem",[e("div",{staticClass:"header-nav-dropdown-item"},[t._v(" "+t._s(t.$L("\u4E3B\u9898\u76AE\u80A4"))+" "),e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.themeList,function(s,a){return e("DropdownItem",{key:a,attrs:{name:s.value,selected:t.themeMode===s.value}},[t._v(t._s(t.$L(s.name)))])}),1)],1)],2)],1)],1)]),e("div",{staticClass:"header-content"},[e("div",{staticClass:"header-title header-title-one"},[t._v(t._s(t.appTitle))]),e("div",{staticClass:"header-title"},[t._v(" "+t._s(t.$L("\u8F7B\u91CF\u7EA7\u4EFB\u52A1\u7BA1\u7406\u5DE5\u5177"))+" ")]),e("div",{staticClass:"header-tips"},[t._v(" "+t._s(t.$L(`${t.appTitle}\u662F\u4E00\u6B3E\u8F7B\u91CF\u7EA7\u7684\u5F00\u6E90\u5728\u7EBF\u9879\u76EE\u4EFB\u52A1\u7BA1\u7406\u5DE5\u5177\uFF0C\u63D0\u4F9B\u5404\u7C7B\u6587\u6863\u534F\u4F5C\u5DE5\u5177\u3001\u5728\u7EBF\u601D\u7EF4\u5BFC\u56FE\u3001\u5728\u7EBF\u6D41\u7A0B\u56FE\u3001\u9879\u76EE\u7BA1\u7406\u3001\u4EFB\u52A1\u5206\u53D1\u3001\u5373\u65F6IM\uFF0C\u6587\u4EF6\u7BA1\u7406\u7B49\u5DE5\u5177\u3002`))+" ")]),e("div",{staticClass:"login-buttom no-dark-content",on:{click:t.login}},[t._v(" "+t._s(t.$L("\u767B\u5F55"))+" ")])])]),e("div",{staticClass:"page-header-bottom"},[e("div",{staticClass:"page-header-bottoms"},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/1.png":"images/index/light/1.png"}})],1)]),e("div",{staticClass:"page-main"},[e("Row",{class:t.windowWidth>1200?"page-main-row":"page-main-rows"},[e("Col",{class:t.windowWidth>1200?"page-main-img":"page-main-imgs",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/2.png":"images/index/light/2.png"}})],1),t.windowWidth>1200?e("Col",{staticClass:"page-main-text",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:"images/index/square.png"}}),e("h3",[t._v(t._s(t.$L("\u9AD8\u6548\u4FBF\u6377\u7684\u56E2\u961F\u6C9F\u901A\u5DE5\u5177")))]),e("p",[t._v(t._s(t.$L("\u9488\u5BF9\u9879\u76EE\u548C\u4EFB\u52A1\u5EFA\u7ACB\u7FA4\u7EC4\uFF0C\u5DE5\u4F5C\u95EE\u9898\u53EF\u53CA\u65F6\u6C9F\u901A\uFF0C\u4FC3\u8FDB\u56E2\u961F\u5FEB\u901F\u534F\u4F5C\uFF0C\u63D0\u9AD8\u56E2\u961F\u5DE5\u4F5C\u6548\u7387\u3002")))])],1):e("Col",{staticClass:"page-main-text page-main-texts",attrs:{xs:24,sm:24,xl:12}},[e("h3",[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(t._s(t.$L("\u9AD8\u6548\u4FBF\u6377\u7684\u56E2\u961F\u6C9F\u901A\u5DE5\u5177")))],1),e("p",[t._v(t._s(t.$L("\u9488\u5BF9\u9879\u76EE\u548C\u4EFB\u52A1\u5EFA\u7ACB\u7FA4\u7EC4\uFF0C\u5DE5\u4F5C\u95EE\u9898\u53EF\u53CA\u65F6\u6C9F\u901A\uFF0C\u4FC3\u8FDB\u56E2\u961F\u5FEB\u901F\u534F\u4F5C\uFF0C\u63D0\u9AD8\u56E2\u961F\u5DE5\u4F5C\u6548\u7387\u3002")))])])],1),e("Row",{class:t.windowWidth>1200?"page-main-row":"page-main-rows"},[t.windowWidth>1200?e("Col",{staticClass:"page-main-text",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:"images/index/square.png"}}),e("h3",[t._v(t._s(t.$L("\u5F3A\u5927\u6613\u7528\u7684\u534F\u540C\u521B\u4F5C\u4E91\u6587\u6863")))]),e("p",[t._v(t._s(t.$L("\u6C47\u96C6\u6587\u6863\u3001\u7535\u5B50\u8868\u683C\u3001\u601D\u7EF4\u7B14\u8BB0\u7B49\u591A\u79CD\u5728\u7EBF\u5DE5\u5177\uFF0C\u6C47\u805A\u4F01\u4E1A\u77E5\u8BC6\u8D44\u6E90\u4E8E\u4E00\u5904\uFF0C\u652F\u6301\u591A\u4EBA\u5B9E\u65F6\u534F\u540C\u7F16\u8F91\uFF0C\u8BA9\u56E2\u961F\u534F\u4F5C\u66F4\u4FBF\u6377\u3002")))])],1):t._e(),e("Col",{class:t.windowWidth>1200?"page-main-img":"page-main-imgs",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/3.png":"images/index/light/3.png"}})],1),t.windowWidth<=1200?e("Col",{staticClass:"page-main-text page-main-texts",attrs:{xs:24,sm:24,xl:12}},[e("h3",[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(t._s(t.$L("\u5F3A\u5927\u6613\u7528\u7684\u534F\u540C\u521B\u4F5C\u4E91\u6587\u6863")))],1),e("p",[t._v(t._s(t.$L("\u6C47\u96C6\u6587\u6863\u3001\u7535\u5B50\u8868\u683C\u3001\u601D\u7EF4\u7B14\u8BB0\u7B49\u591A\u79CD\u5728\u7EBF\u5DE5\u5177\uFF0C\u6C47\u805A\u4F01\u4E1A\u77E5\u8BC6\u8D44\u6E90\u4E8E\u4E00\u5904\uFF0C\u652F\u6301\u591A\u4EBA\u5B9E\u65F6\u534F\u540C\u7F16\u8F91\uFF0C\u8BA9\u56E2\u961F\u534F\u4F5C\u66F4\u4FBF\u6377\u3002")))])]):t._e()],1),e("Row",{class:t.windowWidth>1200?"page-main-row":"page-main-rows"},[e("Col",{class:t.windowWidth>1200?"page-main-img":"page-main-imgs",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/4.png":"images/index/light/4.png"}})],1),t.windowWidth>1200?e("Col",{staticClass:"page-main-text",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:"images/index/square.png"}}),e("h3",[t._v(t._s(t.$L("\u4FBF\u6377\u6613\u7528\u7684\u9879\u76EE\u7BA1\u7406\u6A21\u677F")))]),e("p",[t._v(t._s(t.$L("\u6A21\u7248\u6EE1\u8DB3\u591A\u79CD\u56E2\u961F\u534F\u4F5C\u573A\u666F\uFF0C\u540C\u65F6\u652F\u6301\u81EA\u5B9A\u4E49\u6A21\u7248\uFF0C\u6EE1\u8DB3\u56E2\u961F\u4E2A\u6027\u5316\u573A\u666F\u7BA1\u7406\u9700\u6C42\uFF0C\u53EF\u76F4\u89C2\u7684\u67E5\u770B\u9879\u76EE\u7684\u8FDB\u5C55\u60C5\u51B5\uFF0C\u56E2\u961F\u534F\u4F5C\u66F4\u65B9\u4FBF\u3002")))])],1):e("Col",{staticClass:"page-main-text page-main-texts",attrs:{xs:24,sm:24,xl:12}},[e("h3",[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(t._s(t.$L("\u4FBF\u6377\u6613\u7528\u7684\u9879\u76EE\u7BA1\u7406\u6A21\u677F")))],1),e("p",[t._v(t._s(t.$L("\u6A21\u7248\u6EE1\u8DB3\u591A\u79CD\u56E2\u961F\u534F\u4F5C\u573A\u666F\uFF0C\u540C\u65F6\u652F\u6301\u81EA\u5B9A\u4E49\u6A21\u7248\uFF0C\u6EE1\u8DB3\u56E2\u961F\u4E2A\u6027\u5316\u573A\u666F\u7BA1\u7406\u9700\u6C42\uFF0C\u53EF\u76F4\u89C2\u7684\u67E5\u770B\u9879\u76EE\u7684\u8FDB\u5C55\u60C5\u51B5\uFF0C\u56E2\u961F\u534F\u4F5C\u66F4\u65B9\u4FBF\u3002")))])])],1),e("Row",{class:t.windowWidth>1200?"page-main-row":"page-main-rows"},[t.windowWidth>1200?e("Col",{staticClass:"page-main-text",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:"images/index/square.png"}}),e("h3",[t._v(t._s(t.$L("\u6E05\u6670\u76F4\u89C2\u7684\u4EFB\u52A1\u65E5\u5386")))]),e("p",[t._v(t._s(t.$L("\u901A\u8FC7\u7075\u6D3B\u7684\u4EFB\u52A1\u65E5\u5386\uFF0C\u8F7B\u677E\u5B89\u6392\u6BCF\u4E00\u5929\u7684\u65E5\u7A0B\uFF0C\u628A\u4EFB\u52A1\u62C6\u89E3\u5230\u6BCF\u5929\uFF0C\u8BA9\u5DE5\u4F5C\u76EE\u6807\u66F4\u6E05\u6670\uFF0C\u65F6\u95F4\u5206\u914D\u66F4\u5408\u7406\u3002")))])],1):t._e(),e("Col",{class:t.windowWidth>1200?"page-main-img":"page-main-imgs",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/5.png":"images/index/light/5.png"}})],1),t.windowWidth<=1200?e("Col",{staticClass:"page-main-text page-main-texts",attrs:{xs:24,sm:24,xl:12}},[e("h3",[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(t._s(t.$L("\u6E05\u6670\u76F4\u89C2\u7684\u4EFB\u52A1\u65E5\u5386")))],1),e("p",[t._v(t._s(t.$L("\u901A\u8FC7\u7075\u6D3B\u7684\u4EFB\u52A1\u65E5\u5386\uFF0C\u8F7B\u677E\u5B89\u6392\u6BCF\u4E00\u5929\u7684\u65E5\u7A0B\uFF0C\u628A\u4EFB\u52A1\u62C6\u89E3\u5230\u6BCF\u5929\uFF0C\u8BA9\u5DE5\u4F5C\u76EE\u6807\u66F4\u6E05\u6670\uFF0C\u65F6\u95F4\u5206\u914D\u66F4\u5408\u7406\u3002")))])]):t._e()],1),e("Row",{class:t.windowWidth>1200?"page-main-row":"page-main-rows"},[e("Col",{class:t.windowWidth>1200?"page-main-img":"page-main-imgs",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/6.png":"images/index/light/6.png"}})],1),t.windowWidth>1200?e("Col",{staticClass:"page-main-text",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:"images/index/square.png"}}),e("h3",[t._v(t._s(t.$L("\u652F\u6301\u591A\u5E73\u53F0\u5E94\u7528")))]),e("p",[t._v(t._s(t.$L("\u591A\u5E73\u53F0\u5E94\u7528\u652F\u6301\uFF0C\u6253\u5F00\u5BA2\u6237\u7AEF\u5373\u53EF\u8DDF\u8FDB\u9879\u76EE\u4EFB\u52A1\u8FDB\u5EA6\uFF0C \u540C\u65F6\u8BA9\u4F60\u5728\u5DE5\u4F5C\u4E2D\u6BCF\u4E00\u4E2A\u6B65\u9AA4\u90FD\u80FD\u62E5\u6709\u66F4\u9AD8\u6548\u6109\u60A6\u7684\u4F53\u9A8C\u3002")))])],1):e("Col",{staticClass:"page-main-text page-main-texts",attrs:{xs:24,sm:24,xl:12}},[e("h3",[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(t._s(t.$L("\u652F\u6301\u591A\u5E73\u53F0\u5E94\u7528")))],1),e("p",[t._v(t._s(t.$L("\u591A\u5E73\u53F0\u5E94\u7528\u652F\u6301\uFF0C\u6253\u5F00\u5BA2\u6237\u7AEF\u5373\u53EF\u8DDF\u8FDB\u9879\u76EE\u4EFB\u52A1\u8FDB\u5EA6\uFF0C \u540C\u65F6\u8BA9\u4F60\u5728\u5DE5\u4F5C\u4E2D\u6BCF\u4E00\u4E2A\u6B65\u9AA4\u90FD\u80FD\u62E5\u6709\u66F4\u9AD8\u6548\u6109\u60A6\u7684\u4F53\u9A8C\u3002")))])])],1)],1),e("div",{staticClass:"page-footer"},[e("div",{staticClass:"footer-service no-dark-content"},[e("div",{staticClass:"footer-bg-box"},[e("div",{staticClass:"box-title"},[t._v(t._s(t.$L(`\u5F00\u542F\u60A8\u7684 ${t.appTitle} \u56E2\u961F\u534F\u4F5C`)))]),e("div",{staticClass:"buttom-box"},[e("div",{staticClass:"login-btn",on:{click:t.login}},[t._v(t._s(t.$L("\u7ACB\u5373\u767B\u5F55")))]),e("div",{staticClass:"reg-btn",on:{click:t.register}},[t._v(t._s(t.$L("\u6CE8\u518C")))])])])]),t.homeFooter?e("div",{staticClass:"footer-copyright",domProps:{innerHTML:t._s(t.homeFooter)}}):t._e()])]),e("UpdateLog",{attrs:{"update-log":t.showItem.updateLog,"update-ver":t.showItem.updateVer},model:{value:t.uplogShow,callback:function(s){t.uplogShow=s},expression:"uplogShow"}})],1):t._e()},h=[function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"header-nav-box"},[e("div",{staticClass:"logo no-dark-content"})])}];const p={components:{UpdateLog:m},data(){return{languageList:n,languageType:o,showItem:{pro:!1,github:"",updateLog:"",updateVer:""},needStartHome:!1,homeFooter:"",uplogShow:!1}},computed:{...d(["themeMode","themeIsDark","themeList"]),isSoftware(){return this.$Electron||this.$isEEUiApp},currentLanguage(){return n[o]||"Language"},appTitle(){return window.systemInfo.title||"DooTask"}},mounted(){/^https*:/i.test(window.location.protocol)&&(this.$router.mode==="hash"?$A.stringLength(window.location.pathname)>2&&(window.location.href=`${window.location.origin}/#${window.location.pathname}${window.location.search}`):this.$router.mode==="history"&&$A.strExists(window.location.href,"/#/")&&(window.location.href=window.location.href.replace("/#/","/")))},activated(){this.getShowItem(),this.getNeedStartHome()},methods:{onPro(){this.goForward({name:"pro"})},setTheme(t){this.$store.dispatch("setTheme",t)},login(){this.userId>0?this.goForward({name:"manage-dashboard"},!0):this.goForward({name:"login"},!0)},register(){this.goForward({name:"login",query:{type:"reg"}})},windowOpen(t){window.open(t)},getShowItem(){this.$store.dispatch("call",{url:"system/get/showitem",spinner:1e3}).then(({data:t})=>{this.showItem=t}).catch(t=>{this.showItem={}})},getNeedStartHome(){if(this.isSoftware){this.needStartHome=!1,this.userId>0?this.goForward({name:"manage-dashboard"},!0):this.goForward({name:"login"},!0);return}this.$store.dispatch("showSpinner",1e3),this.$store.dispatch("needHome").then(({home_footer:t})=>{this.needStartHome=!0,this.homeFooter=t}).catch(t=>{this.needStartHome=!1,this.goNext()}).finally(t=>{this.$store.dispatch("hiddenSpinner")})},goNext(){this.userId>0?this.goForward({name:"manage-dashboard"},!0):this.goForward({name:"login"},!0)},onLanguage(t){l(t)}}},r={};var w=g(p,c,h,!1,u,null,null,null);function u(t){for(let i in r)this[i]=r[i]}var x=function(){return w.exports}();export{x as default}; +import{l as n,a as o,m as d,s as l,n as g}from"./app.28437e7d.js";import{U as m}from"./UpdateLog.a78387dc.js";var c=function(){var t=this,i=t.$createElement,e=t._self._c||i;return t.needStartHome?e("div",{staticClass:"page-index"},[e("PageTitle",{attrs:{title:t.appTitle}}),e("div",{staticClass:"page-warp"},[e("div",{staticClass:"page-header"},[e("div",{staticClass:"header-nav"},[t._m(0),t.windowWidth>780?e("div",{staticClass:"header-nav-box header-nav-boxs"},[t.showItem.pro?e("Button",{staticClass:"header-right-pro no-dark-content",attrs:{size:"small"},on:{click:t.onPro}},[t._v(t._s(t.$L("Pro\u7248")))]):t._e(),t.windowWidth>=820?[t.showItem.github?e("a",{staticClass:"header-right-github",attrs:{href:t.showItem.github,target:"_blank"}},[e("Icon",{attrs:{type:"logo-github"}})],1):t._e(),t.showItem.updateLog?e("div",{staticClass:"header-right-uplog",on:{click:function(s){t.uplogShow=!0}}},[t._v(t._s(t.$L("\u66F4\u65B0\u65E5\u5FD7")))]):t._e()]:t._e(),e("div",{staticClass:"header-right-1"},[e("Dropdown",{attrs:{trigger:"click"},on:{"on-click":t.onLanguage}},[e("a",{staticClass:"header-right-1-dropdown",attrs:{href:"javascript:void(0)"}},[t._v(" "+t._s(t.currentLanguage)+" "),e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.languageList,function(s,a){return e("DropdownItem",{key:a,attrs:{name:a,selected:t.languageType===a}},[t._v(t._s(s))])}),1)],1)],1),t.windowWidth>=980?e("div",{staticClass:"header-right-2"},[e("Dropdown",{attrs:{trigger:"click"},on:{"on-click":t.setTheme}},[e("a",{staticClass:"header-right-2-dropdown",attrs:{href:"javascript:void(0)"}},[t._v(" "+t._s(t.$L("\u4E3B\u9898\u76AE\u80A4"))+" "),e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.themeList,function(s,a){return e("DropdownItem",{key:a,attrs:{name:s.value,selected:t.themeMode===s.value}},[t._v(t._s(t.$L(s.name)))])}),1)],1)],1):t._e(),t.userId>0?e("div",{staticClass:"header-right-5 no-dark-content",on:{click:t.login}},[e("UserAvatar",{attrs:{userid:t.userId,size:38}})],1):[e("div",{staticClass:"header-right-3",on:{click:t.register}},[t._v(t._s(t.$L("\u6CE8\u518C\u5E10\u53F7")))]),e("div",{staticClass:"header-right-4 no-dark-content",on:{click:t.login}},[t._v(t._s(t.$L("\u767B\u5F55")))])]],2):e("div",{staticClass:"header-nav-box header-nav-boxs"},[e("Dropdown",{attrs:{trigger:"click"}},[e("a",{attrs:{href:"javascript:void(0)"}},[e("Icon",{staticClass:"header-nav-more no-dark-content",attrs:{type:"md-menu"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t.userId>0?e("DropdownItem",{nativeOn:{click:function(s){return t.login.apply(null,arguments)}}},[e("UserAvatar",{attrs:{userid:t.userId,"show-name":"","show-icon":!1}})],1):[e("DropdownItem",{nativeOn:{click:function(s){return t.login.apply(null,arguments)}}},[t._v(t._s(t.$L("\u767B\u5F55")))]),e("DropdownItem",{nativeOn:{click:function(s){return t.register.apply(null,arguments)}}},[t._v(t._s(t.$L("\u6CE8\u518C\u5E10\u53F7")))])],t.showItem.github?e("DropdownItem",{nativeOn:{click:function(s){return t.windowOpen(t.showItem.github)}}},[t._v("Github")]):t._e(),t.showItem.updateLog?e("DropdownItem",{nativeOn:{click:function(s){t.uplogShow=!0}}},[t._v(t._s(t.$L("\u66F4\u65B0\u65E5\u5FD7")))]):t._e(),e("Dropdown",{attrs:{placement:"right-start",transfer:""},on:{"on-click":t.onLanguage}},[e("DropdownItem",[e("div",{staticClass:"header-nav-dropdown-item"},[t._v(" "+t._s(t.currentLanguage)+" "),e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.languageList,function(s,a){return e("DropdownItem",{key:a,attrs:{name:a,selected:t.languageType===a}},[t._v(t._s(s))])}),1)],1),e("Dropdown",{attrs:{trigger:"click",placement:"right-end",transfer:""},on:{"on-click":t.setTheme}},[e("DropdownItem",[e("div",{staticClass:"header-nav-dropdown-item"},[t._v(" "+t._s(t.$L("\u4E3B\u9898\u76AE\u80A4"))+" "),e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.themeList,function(s,a){return e("DropdownItem",{key:a,attrs:{name:s.value,selected:t.themeMode===s.value}},[t._v(t._s(t.$L(s.name)))])}),1)],1)],2)],1)],1)]),e("div",{staticClass:"header-content"},[e("div",{staticClass:"header-title header-title-one"},[t._v(t._s(t.appTitle))]),e("div",{staticClass:"header-title"},[t._v(" "+t._s(t.$L("\u8F7B\u91CF\u7EA7\u4EFB\u52A1\u7BA1\u7406\u5DE5\u5177"))+" ")]),e("div",{staticClass:"header-tips"},[t._v(" "+t._s(t.$L(`${t.appTitle}\u662F\u4E00\u6B3E\u8F7B\u91CF\u7EA7\u7684\u5F00\u6E90\u5728\u7EBF\u9879\u76EE\u4EFB\u52A1\u7BA1\u7406\u5DE5\u5177\uFF0C\u63D0\u4F9B\u5404\u7C7B\u6587\u6863\u534F\u4F5C\u5DE5\u5177\u3001\u5728\u7EBF\u601D\u7EF4\u5BFC\u56FE\u3001\u5728\u7EBF\u6D41\u7A0B\u56FE\u3001\u9879\u76EE\u7BA1\u7406\u3001\u4EFB\u52A1\u5206\u53D1\u3001\u5373\u65F6IM\uFF0C\u6587\u4EF6\u7BA1\u7406\u7B49\u5DE5\u5177\u3002`))+" ")]),e("div",{staticClass:"login-buttom no-dark-content",on:{click:t.login}},[t._v(" "+t._s(t.$L("\u767B\u5F55"))+" ")])])]),e("div",{staticClass:"page-header-bottom"},[e("div",{staticClass:"page-header-bottoms"},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/1.png":"images/index/light/1.png"}})],1)]),e("div",{staticClass:"page-main"},[e("Row",{class:t.windowWidth>1200?"page-main-row":"page-main-rows"},[e("Col",{class:t.windowWidth>1200?"page-main-img":"page-main-imgs",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/2.png":"images/index/light/2.png"}})],1),t.windowWidth>1200?e("Col",{staticClass:"page-main-text",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:"images/index/square.png"}}),e("h3",[t._v(t._s(t.$L("\u9AD8\u6548\u4FBF\u6377\u7684\u56E2\u961F\u6C9F\u901A\u5DE5\u5177")))]),e("p",[t._v(t._s(t.$L("\u9488\u5BF9\u9879\u76EE\u548C\u4EFB\u52A1\u5EFA\u7ACB\u7FA4\u7EC4\uFF0C\u5DE5\u4F5C\u95EE\u9898\u53EF\u53CA\u65F6\u6C9F\u901A\uFF0C\u4FC3\u8FDB\u56E2\u961F\u5FEB\u901F\u534F\u4F5C\uFF0C\u63D0\u9AD8\u56E2\u961F\u5DE5\u4F5C\u6548\u7387\u3002")))])],1):e("Col",{staticClass:"page-main-text page-main-texts",attrs:{xs:24,sm:24,xl:12}},[e("h3",[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(t._s(t.$L("\u9AD8\u6548\u4FBF\u6377\u7684\u56E2\u961F\u6C9F\u901A\u5DE5\u5177")))],1),e("p",[t._v(t._s(t.$L("\u9488\u5BF9\u9879\u76EE\u548C\u4EFB\u52A1\u5EFA\u7ACB\u7FA4\u7EC4\uFF0C\u5DE5\u4F5C\u95EE\u9898\u53EF\u53CA\u65F6\u6C9F\u901A\uFF0C\u4FC3\u8FDB\u56E2\u961F\u5FEB\u901F\u534F\u4F5C\uFF0C\u63D0\u9AD8\u56E2\u961F\u5DE5\u4F5C\u6548\u7387\u3002")))])])],1),e("Row",{class:t.windowWidth>1200?"page-main-row":"page-main-rows"},[t.windowWidth>1200?e("Col",{staticClass:"page-main-text",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:"images/index/square.png"}}),e("h3",[t._v(t._s(t.$L("\u5F3A\u5927\u6613\u7528\u7684\u534F\u540C\u521B\u4F5C\u4E91\u6587\u6863")))]),e("p",[t._v(t._s(t.$L("\u6C47\u96C6\u6587\u6863\u3001\u7535\u5B50\u8868\u683C\u3001\u601D\u7EF4\u7B14\u8BB0\u7B49\u591A\u79CD\u5728\u7EBF\u5DE5\u5177\uFF0C\u6C47\u805A\u4F01\u4E1A\u77E5\u8BC6\u8D44\u6E90\u4E8E\u4E00\u5904\uFF0C\u652F\u6301\u591A\u4EBA\u5B9E\u65F6\u534F\u540C\u7F16\u8F91\uFF0C\u8BA9\u56E2\u961F\u534F\u4F5C\u66F4\u4FBF\u6377\u3002")))])],1):t._e(),e("Col",{class:t.windowWidth>1200?"page-main-img":"page-main-imgs",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/3.png":"images/index/light/3.png"}})],1),t.windowWidth<=1200?e("Col",{staticClass:"page-main-text page-main-texts",attrs:{xs:24,sm:24,xl:12}},[e("h3",[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(t._s(t.$L("\u5F3A\u5927\u6613\u7528\u7684\u534F\u540C\u521B\u4F5C\u4E91\u6587\u6863")))],1),e("p",[t._v(t._s(t.$L("\u6C47\u96C6\u6587\u6863\u3001\u7535\u5B50\u8868\u683C\u3001\u601D\u7EF4\u7B14\u8BB0\u7B49\u591A\u79CD\u5728\u7EBF\u5DE5\u5177\uFF0C\u6C47\u805A\u4F01\u4E1A\u77E5\u8BC6\u8D44\u6E90\u4E8E\u4E00\u5904\uFF0C\u652F\u6301\u591A\u4EBA\u5B9E\u65F6\u534F\u540C\u7F16\u8F91\uFF0C\u8BA9\u56E2\u961F\u534F\u4F5C\u66F4\u4FBF\u6377\u3002")))])]):t._e()],1),e("Row",{class:t.windowWidth>1200?"page-main-row":"page-main-rows"},[e("Col",{class:t.windowWidth>1200?"page-main-img":"page-main-imgs",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/4.png":"images/index/light/4.png"}})],1),t.windowWidth>1200?e("Col",{staticClass:"page-main-text",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:"images/index/square.png"}}),e("h3",[t._v(t._s(t.$L("\u4FBF\u6377\u6613\u7528\u7684\u9879\u76EE\u7BA1\u7406\u6A21\u677F")))]),e("p",[t._v(t._s(t.$L("\u6A21\u7248\u6EE1\u8DB3\u591A\u79CD\u56E2\u961F\u534F\u4F5C\u573A\u666F\uFF0C\u540C\u65F6\u652F\u6301\u81EA\u5B9A\u4E49\u6A21\u7248\uFF0C\u6EE1\u8DB3\u56E2\u961F\u4E2A\u6027\u5316\u573A\u666F\u7BA1\u7406\u9700\u6C42\uFF0C\u53EF\u76F4\u89C2\u7684\u67E5\u770B\u9879\u76EE\u7684\u8FDB\u5C55\u60C5\u51B5\uFF0C\u56E2\u961F\u534F\u4F5C\u66F4\u65B9\u4FBF\u3002")))])],1):e("Col",{staticClass:"page-main-text page-main-texts",attrs:{xs:24,sm:24,xl:12}},[e("h3",[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(t._s(t.$L("\u4FBF\u6377\u6613\u7528\u7684\u9879\u76EE\u7BA1\u7406\u6A21\u677F")))],1),e("p",[t._v(t._s(t.$L("\u6A21\u7248\u6EE1\u8DB3\u591A\u79CD\u56E2\u961F\u534F\u4F5C\u573A\u666F\uFF0C\u540C\u65F6\u652F\u6301\u81EA\u5B9A\u4E49\u6A21\u7248\uFF0C\u6EE1\u8DB3\u56E2\u961F\u4E2A\u6027\u5316\u573A\u666F\u7BA1\u7406\u9700\u6C42\uFF0C\u53EF\u76F4\u89C2\u7684\u67E5\u770B\u9879\u76EE\u7684\u8FDB\u5C55\u60C5\u51B5\uFF0C\u56E2\u961F\u534F\u4F5C\u66F4\u65B9\u4FBF\u3002")))])])],1),e("Row",{class:t.windowWidth>1200?"page-main-row":"page-main-rows"},[t.windowWidth>1200?e("Col",{staticClass:"page-main-text",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:"images/index/square.png"}}),e("h3",[t._v(t._s(t.$L("\u6E05\u6670\u76F4\u89C2\u7684\u4EFB\u52A1\u65E5\u5386")))]),e("p",[t._v(t._s(t.$L("\u901A\u8FC7\u7075\u6D3B\u7684\u4EFB\u52A1\u65E5\u5386\uFF0C\u8F7B\u677E\u5B89\u6392\u6BCF\u4E00\u5929\u7684\u65E5\u7A0B\uFF0C\u628A\u4EFB\u52A1\u62C6\u89E3\u5230\u6BCF\u5929\uFF0C\u8BA9\u5DE5\u4F5C\u76EE\u6807\u66F4\u6E05\u6670\uFF0C\u65F6\u95F4\u5206\u914D\u66F4\u5408\u7406\u3002")))])],1):t._e(),e("Col",{class:t.windowWidth>1200?"page-main-img":"page-main-imgs",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/5.png":"images/index/light/5.png"}})],1),t.windowWidth<=1200?e("Col",{staticClass:"page-main-text page-main-texts",attrs:{xs:24,sm:24,xl:12}},[e("h3",[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(t._s(t.$L("\u6E05\u6670\u76F4\u89C2\u7684\u4EFB\u52A1\u65E5\u5386")))],1),e("p",[t._v(t._s(t.$L("\u901A\u8FC7\u7075\u6D3B\u7684\u4EFB\u52A1\u65E5\u5386\uFF0C\u8F7B\u677E\u5B89\u6392\u6BCF\u4E00\u5929\u7684\u65E5\u7A0B\uFF0C\u628A\u4EFB\u52A1\u62C6\u89E3\u5230\u6BCF\u5929\uFF0C\u8BA9\u5DE5\u4F5C\u76EE\u6807\u66F4\u6E05\u6670\uFF0C\u65F6\u95F4\u5206\u914D\u66F4\u5408\u7406\u3002")))])]):t._e()],1),e("Row",{class:t.windowWidth>1200?"page-main-row":"page-main-rows"},[e("Col",{class:t.windowWidth>1200?"page-main-img":"page-main-imgs",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:t.themeIsDark?"images/index/dark/6.png":"images/index/light/6.png"}})],1),t.windowWidth>1200?e("Col",{staticClass:"page-main-text",attrs:{xs:24,sm:24,xl:12}},[e("ImgView",{attrs:{src:"images/index/square.png"}}),e("h3",[t._v(t._s(t.$L("\u652F\u6301\u591A\u5E73\u53F0\u5E94\u7528")))]),e("p",[t._v(t._s(t.$L("\u591A\u5E73\u53F0\u5E94\u7528\u652F\u6301\uFF0C\u6253\u5F00\u5BA2\u6237\u7AEF\u5373\u53EF\u8DDF\u8FDB\u9879\u76EE\u4EFB\u52A1\u8FDB\u5EA6\uFF0C \u540C\u65F6\u8BA9\u4F60\u5728\u5DE5\u4F5C\u4E2D\u6BCF\u4E00\u4E2A\u6B65\u9AA4\u90FD\u80FD\u62E5\u6709\u66F4\u9AD8\u6548\u6109\u60A6\u7684\u4F53\u9A8C\u3002")))])],1):e("Col",{staticClass:"page-main-text page-main-texts",attrs:{xs:24,sm:24,xl:12}},[e("h3",[e("ImgView",{attrs:{src:"images/index/square.png"}}),t._v(t._s(t.$L("\u652F\u6301\u591A\u5E73\u53F0\u5E94\u7528")))],1),e("p",[t._v(t._s(t.$L("\u591A\u5E73\u53F0\u5E94\u7528\u652F\u6301\uFF0C\u6253\u5F00\u5BA2\u6237\u7AEF\u5373\u53EF\u8DDF\u8FDB\u9879\u76EE\u4EFB\u52A1\u8FDB\u5EA6\uFF0C \u540C\u65F6\u8BA9\u4F60\u5728\u5DE5\u4F5C\u4E2D\u6BCF\u4E00\u4E2A\u6B65\u9AA4\u90FD\u80FD\u62E5\u6709\u66F4\u9AD8\u6548\u6109\u60A6\u7684\u4F53\u9A8C\u3002")))])])],1)],1),e("div",{staticClass:"page-footer"},[e("div",{staticClass:"footer-service no-dark-content"},[e("div",{staticClass:"footer-bg-box"},[e("div",{staticClass:"box-title"},[t._v(t._s(t.$L(`\u5F00\u542F\u60A8\u7684 ${t.appTitle} \u56E2\u961F\u534F\u4F5C`)))]),e("div",{staticClass:"buttom-box"},[e("div",{staticClass:"login-btn",on:{click:t.login}},[t._v(t._s(t.$L("\u7ACB\u5373\u767B\u5F55")))]),e("div",{staticClass:"reg-btn",on:{click:t.register}},[t._v(t._s(t.$L("\u6CE8\u518C")))])])])]),t.homeFooter?e("div",{staticClass:"footer-copyright",domProps:{innerHTML:t._s(t.homeFooter)}}):t._e()])]),e("UpdateLog",{attrs:{"update-log":t.showItem.updateLog,"update-ver":t.showItem.updateVer},model:{value:t.uplogShow,callback:function(s){t.uplogShow=s},expression:"uplogShow"}})],1):t._e()},h=[function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"header-nav-box"},[e("div",{staticClass:"logo no-dark-content"})])}];const p={components:{UpdateLog:m},data(){return{languageList:n,languageType:o,showItem:{pro:!1,github:"",updateLog:"",updateVer:""},needStartHome:!1,homeFooter:"",uplogShow:!1}},computed:{...d(["themeMode","themeIsDark","themeList"]),isSoftware(){return this.$Electron||this.$isEEUiApp},currentLanguage(){return n[o]||"Language"},appTitle(){return window.systemInfo.title||"DooTask"}},mounted(){/^https*:/i.test(window.location.protocol)&&(this.$router.mode==="hash"?$A.stringLength(window.location.pathname)>2&&(window.location.href=`${window.location.origin}/#${window.location.pathname}${window.location.search}`):this.$router.mode==="history"&&$A.strExists(window.location.href,"/#/")&&(window.location.href=window.location.href.replace("/#/","/")))},activated(){this.getShowItem(),this.getNeedStartHome()},methods:{onPro(){this.goForward({name:"pro"})},setTheme(t){this.$store.dispatch("setTheme",t)},login(){this.userId>0?this.goForward({name:"manage-dashboard"},!0):this.goForward({name:"login"},!0)},register(){this.goForward({name:"login",query:{type:"reg"}})},windowOpen(t){window.open(t)},getShowItem(){this.$store.dispatch("call",{url:"system/get/showitem",spinner:1e3}).then(({data:t})=>{this.showItem=t}).catch(t=>{this.showItem={}})},getNeedStartHome(){if(this.isSoftware){this.needStartHome=!1,this.userId>0?this.goForward({name:"manage-dashboard"},!0):this.goForward({name:"login"},!0);return}this.$store.dispatch("showSpinner",1e3),this.$store.dispatch("needHome").then(({home_footer:t})=>{this.needStartHome=!0,this.homeFooter=t}).catch(t=>{this.needStartHome=!1,this.goNext()}).finally(t=>{this.$store.dispatch("hiddenSpinner")})},goNext(){this.userId>0?this.goForward({name:"manage-dashboard"},!0):this.goForward({name:"login"},!0)},onLanguage(t){l(t)}}},r={};var w=g(p,c,h,!1,u,null,null,null);function u(t){for(let i in r)this[i]=r[i]}var x=function(){return w.exports}();export{x as default}; diff --git a/public/js/build/index.e353145a.js b/public/js/build/index.8ddea90c.js similarity index 98% rename from public/js/build/index.e353145a.js rename to public/js/build/index.8ddea90c.js index 02b3429e6..2f759b12e 100644 --- a/public/js/build/index.e353145a.js +++ b/public/js/build/index.8ddea90c.js @@ -1 +1 @@ -import{m as o,d as r,j as l,n as c}from"./app.3d81bfbf.js";var u=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"page-setting"},[t("PageTitle",{attrs:{title:e.$L(e.titleNameRoute)}}),t("div",{staticClass:"setting-head"},[t("div",{staticClass:"setting-titbox"},[t("div",{staticClass:"setting-title"},[t("h1",[e._v(e._s(e.$L(e.settingTitleName)))]),e.showMobileBox?e._e():t("div",{staticClass:"setting-more",on:{click:function(a){return e.toggleRoute("index")}}},[t("Icon",{attrs:{type:"md-close"}})],1)])])]),t("div",{staticClass:"setting-box",class:{"show-mobile-box":e.showMobileBox}},[t("div",{staticClass:"setting-menu"},[t("ul",[e._l(e.menu,function(a,n){return t("li",{key:n,class:e.classNameRoute(a.path,a.divided),on:{click:function(v){return e.toggleRoute(a.path)}}},[e._v(e._s(e.$L(a.name)))])}),e.clientNewVersion?t("li",{staticClass:"flex",class:e.classNameRoute("version",!0),on:{click:function(a){return e.toggleRoute("version")}}},[t("AutoTip",{attrs:{disabled:""}},[e._v(e._s(e.$L("\u7248\u672C"))+": "+e._s(e.version))]),t("Badge",{attrs:{text:e.clientNewVersion}})],1):t("li",{staticClass:"version divided",on:{click:e.onVersion}},[t("AutoTip",[e._v(e._s(e.$L("\u7248\u672C"))+": "+e._s(e.version))])],1)],2)]),t("div",{staticClass:"setting-content"},[t("div",{staticClass:"setting-content-title"},[e._v(e._s(e.$L(e.titleNameRoute)))]),t("div",{staticClass:"setting-content-view"},[t("router-view",{staticClass:"setting-router-view"})],1)])])],1)},d=[];const m={data(){return{version:window.systemInfo.version}},mounted(){},computed:{...o(["userInfo","userIsAdmin","clientNewVersion"]),routeName(){return this.$route.name},showMobileBox(){return this.routeName==="manage-setting"},menu(){const e=[{path:"personal",name:"\u4E2A\u4EBA\u8BBE\u7F6E"},{path:"checkin",name:"\u7B7E\u5230\u8BBE\u7F6E",desc:" (Beta)"},{path:"language",name:"\u8BED\u8A00\u8BBE\u7F6E"},{path:"theme",name:"\u4E3B\u9898\u8BBE\u7F6E"},{path:"password",name:"\u5BC6\u7801\u8BBE\u7F6E"},{path:"email",name:"\u4FEE\u6539\u90AE\u7BB1"}];return this.$Electron&&e.splice(2,0,{path:"keyboard",name:"\u5FEB\u6377\u952E",desc:" (Beta)"}),$A.isDooServer()&&this.$isEEUiApp&&e.push({path:"privacy",name:"\u9690\u79C1\u653F\u7B56",divided:!0},{path:"delete",name:"\u5220\u9664\u5E10\u53F7"}),this.userIsAdmin&&e.push({path:"system",name:"\u7CFB\u7EDF\u8BBE\u7F6E",divided:!0},{path:"approve",name:this.$L("\u5BA1\u6279\u8BBE\u7F6E"),desc:" (Beta)"},{path:"license",name:"License Key"}),e.push({path:"clearCache",name:"\u6E05\u9664\u7F13\u5B58",divided:!0},{path:"logout",name:"\u9000\u51FA\u767B\u5F55"}),e},titleNameRoute(){const{routeName:e,menu:s}=this;let t="";return s.some(a=>{if(e===`manage-setting-${a.path}`)return t=`${a.name}${a.desc||""}`,!0}),t||"\u8BBE\u7F6E"},settingTitleName(){return this.windowPortrait?this.titleNameRoute:"\u8BBE\u7F6E"}},watch:{routeName:{handler(e){e==="manage-setting"&&this.windowLandscape&&this.goForward({name:"manage-setting-personal"},!0)},immediate:!0}},methods:{toggleRoute(e){switch(e){case"clearCache":$A.IDBSet("clearCache","handle").then(s=>{$A.reloadUrl()});break;case"logout":$A.modalConfirm({title:"\u9000\u51FA\u767B\u5F55",content:"\u4F60\u786E\u5B9A\u8981\u767B\u51FA\u7CFB\u7EDF\uFF1F",onOk:()=>{this.$store.dispatch("logout",!1)}});break;case"version":r.Store.set("updateNotification",null);break;case"privacy":this.openPrivacy();break;case"index":this.goForward({name:"manage-setting"});break;default:this.goForward({name:"manage-setting-"+e});break}},openPrivacy(){const e=$A.apiUrl("privacy");this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:" ",url:"web.js",params:{url:e,browser:!0,showProgress:!0}}):window.open(e)},classNameRoute(e,s){return{active:this.windowLandscape&&this.routeName===`manage-setting-${e}`,divided:!!s}},onVersion(){l.get($A.apiUrl("system/version")).then(({status:e,data:s})=>{if(e===200){let t=`${this.$L("\u670D\u52A1\u5668")}: ${$A.getDomain($A.apiUrl("../"))}`;t+=`
    ${this.$L("\u670D\u52A1\u5668\u7248\u672C")}: v${s.version}`,t+=`
    ${this.$L("\u5BA2\u6237\u7AEF\u7248\u672C")}: v${this.version}`,$A.modalInfo({language:!1,title:"\u7248\u672C\u4FE1\u606F",content:t})}}).catch(e=>{})}}},i={};var h=c(m,u,d,!1,p,null,null,null);function p(e){for(let s in i)this[s]=i[s]}var $=function(){return h.exports}();export{$ as default}; +import{m as o,d as r,j as l,n as c}from"./app.28437e7d.js";var u=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"page-setting"},[t("PageTitle",{attrs:{title:e.$L(e.titleNameRoute)}}),t("div",{staticClass:"setting-head"},[t("div",{staticClass:"setting-titbox"},[t("div",{staticClass:"setting-title"},[t("h1",[e._v(e._s(e.$L(e.settingTitleName)))]),e.showMobileBox?e._e():t("div",{staticClass:"setting-more",on:{click:function(a){return e.toggleRoute("index")}}},[t("Icon",{attrs:{type:"md-close"}})],1)])])]),t("div",{staticClass:"setting-box",class:{"show-mobile-box":e.showMobileBox}},[t("div",{staticClass:"setting-menu"},[t("ul",[e._l(e.menu,function(a,n){return t("li",{key:n,class:e.classNameRoute(a.path,a.divided),on:{click:function(v){return e.toggleRoute(a.path)}}},[e._v(e._s(e.$L(a.name)))])}),e.clientNewVersion?t("li",{staticClass:"flex",class:e.classNameRoute("version",!0),on:{click:function(a){return e.toggleRoute("version")}}},[t("AutoTip",{attrs:{disabled:""}},[e._v(e._s(e.$L("\u7248\u672C"))+": "+e._s(e.version))]),t("Badge",{attrs:{text:e.clientNewVersion}})],1):t("li",{staticClass:"version divided",on:{click:e.onVersion}},[t("AutoTip",[e._v(e._s(e.$L("\u7248\u672C"))+": "+e._s(e.version))])],1)],2)]),t("div",{staticClass:"setting-content"},[t("div",{staticClass:"setting-content-title"},[e._v(e._s(e.$L(e.titleNameRoute)))]),t("div",{staticClass:"setting-content-view"},[t("router-view",{staticClass:"setting-router-view"})],1)])])],1)},d=[];const m={data(){return{version:window.systemInfo.version}},mounted(){},computed:{...o(["userInfo","userIsAdmin","clientNewVersion"]),routeName(){return this.$route.name},showMobileBox(){return this.routeName==="manage-setting"},menu(){const e=[{path:"personal",name:"\u4E2A\u4EBA\u8BBE\u7F6E"},{path:"checkin",name:"\u7B7E\u5230\u8BBE\u7F6E",desc:" (Beta)"},{path:"language",name:"\u8BED\u8A00\u8BBE\u7F6E"},{path:"theme",name:"\u4E3B\u9898\u8BBE\u7F6E"},{path:"password",name:"\u5BC6\u7801\u8BBE\u7F6E"},{path:"email",name:"\u4FEE\u6539\u90AE\u7BB1"}];return this.$Electron&&e.splice(2,0,{path:"keyboard",name:"\u5FEB\u6377\u952E",desc:" (Beta)"}),$A.isDooServer()&&this.$isEEUiApp&&e.push({path:"privacy",name:"\u9690\u79C1\u653F\u7B56",divided:!0},{path:"delete",name:"\u5220\u9664\u5E10\u53F7"}),this.userIsAdmin&&e.push({path:"system",name:"\u7CFB\u7EDF\u8BBE\u7F6E",divided:!0},{path:"approve",name:this.$L("\u5BA1\u6279\u8BBE\u7F6E"),desc:" (Beta)"},{path:"license",name:"License Key"}),e.push({path:"clearCache",name:"\u6E05\u9664\u7F13\u5B58",divided:!0},{path:"logout",name:"\u9000\u51FA\u767B\u5F55"}),e},titleNameRoute(){const{routeName:e,menu:s}=this;let t="";return s.some(a=>{if(e===`manage-setting-${a.path}`)return t=`${a.name}${a.desc||""}`,!0}),t||"\u8BBE\u7F6E"},settingTitleName(){return this.windowPortrait?this.titleNameRoute:"\u8BBE\u7F6E"}},watch:{routeName:{handler(e){e==="manage-setting"&&this.windowLandscape&&this.goForward({name:"manage-setting-personal"},!0)},immediate:!0}},methods:{toggleRoute(e){switch(e){case"clearCache":$A.IDBSet("clearCache","handle").then(s=>{$A.reloadUrl()});break;case"logout":$A.modalConfirm({title:"\u9000\u51FA\u767B\u5F55",content:"\u4F60\u786E\u5B9A\u8981\u767B\u51FA\u7CFB\u7EDF\uFF1F",onOk:()=>{this.$store.dispatch("logout",!1)}});break;case"version":r.Store.set("updateNotification",null);break;case"privacy":this.openPrivacy();break;case"index":this.goForward({name:"manage-setting"});break;default:this.goForward({name:"manage-setting-"+e});break}},openPrivacy(){const e=$A.apiUrl("privacy");this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:" ",url:"web.js",params:{url:e,browser:!0,showProgress:!0}}):window.open(e)},classNameRoute(e,s){return{active:this.windowLandscape&&this.routeName===`manage-setting-${e}`,divided:!!s}},onVersion(){l.get($A.apiUrl("system/version")).then(({status:e,data:s})=>{if(e===200){let t=`${this.$L("\u670D\u52A1\u5668")}: ${$A.getDomain($A.apiUrl("../"))}`;t+=`
    ${this.$L("\u670D\u52A1\u5668\u7248\u672C")}: v${s.version}`,t+=`
    ${this.$L("\u5BA2\u6237\u7AEF\u7248\u672C")}: v${this.version}`,$A.modalInfo({language:!1,title:"\u7248\u672C\u4FE1\u606F",content:t})}}).catch(e=>{})}}},i={};var h=c(m,u,d,!1,p,null,null,null);function p(e){for(let s in i)this[s]=i[s]}var $=function(){return h.exports}();export{$ as default}; diff --git a/public/js/build/index.fbb6a904.js b/public/js/build/index.cbe8908d.js similarity index 99% rename from public/js/build/index.fbb6a904.js rename to public/js/build/index.cbe8908d.js index cb4cf87b2..0be328050 100644 --- a/public/js/build/index.fbb6a904.js +++ b/public/js/build/index.cbe8908d.js @@ -1,4 +1,4 @@ -import{x as br,o as Ls,n as gl}from"./app.3d81bfbf.js";import{I as Ts}from"./ImgUpload.7f60f3a4.js";var Te=navigator.userAgent,ml=navigator.platform,gt=/gecko\/\d/i.test(Te),yl=/MSIE \d/.test(Te),bl=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Te),Zr=/Edge\/(\d+)/.exec(Te),re=yl||bl||Zr,ce=re&&(yl?document.documentMode||6:+(Zr||bl)[1]),Le=!Zr&&/WebKit\//.test(Te),Ms=Le&&/Qt\/\d+\.\d+/.test(Te),On=!Zr&&/Chrome\//.test(Te),Xe=/Opera\//.test(Te),wl=/Apple Computer/.test(navigator.vendor),Ds=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Te),As=/PhantomJS/.test(Te),Qr=!Zr&&/AppleWebKit/.test(Te)&&/Mobile\/\w+/.test(Te),In=/Android/.test(Te),zr=Qr||In||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Te),Ye=Qr||/Mac/.test(ml),Fs=/\bCrOS\b/.test(Te),Es=/win/i.test(ml),Nt=Xe&&Te.match(/Version\/(\d*\.\d*)/);Nt&&(Nt=Number(Nt[1]));Nt&&Nt>=15&&(Xe=!1,Le=!0);var Fo=Ye&&(Ms||Xe&&(Nt==null||Nt<12.11)),Ii=gt||re&&ce>=9;function Pr(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var Rt=function(e,t){var r=e.className,n=Pr(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function mt(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function Ie(e,t){return mt(e).appendChild(t)}function G(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return l+(t-o);l+=a-o,l+=r-l%r,o=a+1}}var bt=function(){this.id=null,this.f=null,this.time=0,this.handler=Hn(this.onTimeout,this)};bt.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)};bt.prototype.set=function(e,t){this.f=t;var r=+new Date+e;(!this.id||r=t)return n+Math.min(l,t-i);if(i+=o-n,i+=r-i%r,n=o+1,i>=t)return n}}var hn=[""];function Hi(e){for(;hn.length<=e;)hn.push(ie(hn)+" ");return hn[e]}function ie(e){return e[e.length-1]}function Pn(e,t){for(var r=[],n=0;n"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Os.test(e))}function bn(e,t){return t?t.source.indexOf("\\w")>-1&&vi(e)?!0:t.test(e):vi(e)}function No(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Is=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function gi(e){return e.charCodeAt(0)>=768&&Is.test(e)}function Cl(e,t,r){for(;(r<0?t>0:tr?-1:1;;){if(t==r)return t;var i=(t+r)/2,o=n<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:r;e(o)?r=o:t=o+n}}function Hs(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,o=0;ot||t==r&&l.to==t)&&(n(Math.max(l.from,t),Math.min(l.to,r),l.level==1?"rtl":"ltr",o),i=!0)}i||n(t,r,"ltr")}var Lr=null;function Br(e,t,r){var n;Lr=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&r=="before"?n=i:Lr=i),o.from==t&&(o.from!=o.to&&r!="before"?n=i:Lr=i)}return n!=null?n:Lr}var zs=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,l=/[Lb1n]/,a=/[1n]/;function s(u,h,p){this.level=u,this.from=h,this.to=p}return function(u,h){var p=h=="ltr"?"L":"R";if(u.length==0||h=="ltr"&&!n.test(u))return!1;for(var b=u.length,y=[],k=0;k-1&&(n[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function de(e,t){var r=zi(e,t);if(!!r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i0}function hr(e){e.prototype.on=function(t,r){X(this,t,r)},e.prototype.off=function(t,r){Oe(this,t,r)}}function Ae(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Tl(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function mi(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Rr(e){Ae(e),Tl(e)}function Pi(e){return e.target||e.srcElement}function Ml(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),Ye&&e.ctrlKey&&t==1&&(t=3),t}var Ps=function(){if(re&&ce<9)return!1;var e=G("div");return"draggable"in e||"dragDrop"in e}(),ui;function Ws(e){if(ui==null){var t=G("span","\u200B");Ie(e,G("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(ui=t.offsetWidth<=1&&t.offsetHeight>2&&!(re&&ce<8))}var r=ui?G("span","\u200B"):G("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}var fi;function _s(e){if(fi!=null)return fi;var t=Ie(e,document.createTextNode("A\u062EA")),r=It(t,0,1).getBoundingClientRect(),n=It(t,1,2).getBoundingClientRect();return mt(e),!r||r.left==r.right?!1:fi=n.right-r.right<3}var Wi=` +import{x as br,o as Ls,n as gl}from"./app.28437e7d.js";import{I as Ts}from"./ImgUpload.cbadd034.js";var Te=navigator.userAgent,ml=navigator.platform,gt=/gecko\/\d/i.test(Te),yl=/MSIE \d/.test(Te),bl=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Te),Zr=/Edge\/(\d+)/.exec(Te),re=yl||bl||Zr,ce=re&&(yl?document.documentMode||6:+(Zr||bl)[1]),Le=!Zr&&/WebKit\//.test(Te),Ms=Le&&/Qt\/\d+\.\d+/.test(Te),On=!Zr&&/Chrome\//.test(Te),Xe=/Opera\//.test(Te),wl=/Apple Computer/.test(navigator.vendor),Ds=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Te),As=/PhantomJS/.test(Te),Qr=!Zr&&/AppleWebKit/.test(Te)&&/Mobile\/\w+/.test(Te),In=/Android/.test(Te),zr=Qr||In||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Te),Ye=Qr||/Mac/.test(ml),Fs=/\bCrOS\b/.test(Te),Es=/win/i.test(ml),Nt=Xe&&Te.match(/Version\/(\d*\.\d*)/);Nt&&(Nt=Number(Nt[1]));Nt&&Nt>=15&&(Xe=!1,Le=!0);var Fo=Ye&&(Ms||Xe&&(Nt==null||Nt<12.11)),Ii=gt||re&&ce>=9;function Pr(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var Rt=function(e,t){var r=e.className,n=Pr(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function mt(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function Ie(e,t){return mt(e).appendChild(t)}function G(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return l+(t-o);l+=a-o,l+=r-l%r,o=a+1}}var bt=function(){this.id=null,this.f=null,this.time=0,this.handler=Hn(this.onTimeout,this)};bt.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)};bt.prototype.set=function(e,t){this.f=t;var r=+new Date+e;(!this.id||r=t)return n+Math.min(l,t-i);if(i+=o-n,i+=r-i%r,n=o+1,i>=t)return n}}var hn=[""];function Hi(e){for(;hn.length<=e;)hn.push(ie(hn)+" ");return hn[e]}function ie(e){return e[e.length-1]}function Pn(e,t){for(var r=[],n=0;n"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Os.test(e))}function bn(e,t){return t?t.source.indexOf("\\w")>-1&&vi(e)?!0:t.test(e):vi(e)}function No(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Is=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function gi(e){return e.charCodeAt(0)>=768&&Is.test(e)}function Cl(e,t,r){for(;(r<0?t>0:tr?-1:1;;){if(t==r)return t;var i=(t+r)/2,o=n<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:r;e(o)?r=o:t=o+n}}function Hs(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,o=0;ot||t==r&&l.to==t)&&(n(Math.max(l.from,t),Math.min(l.to,r),l.level==1?"rtl":"ltr",o),i=!0)}i||n(t,r,"ltr")}var Lr=null;function Br(e,t,r){var n;Lr=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&r=="before"?n=i:Lr=i),o.from==t&&(o.from!=o.to&&r!="before"?n=i:Lr=i)}return n!=null?n:Lr}var zs=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,l=/[Lb1n]/,a=/[1n]/;function s(u,h,p){this.level=u,this.from=h,this.to=p}return function(u,h){var p=h=="ltr"?"L":"R";if(u.length==0||h=="ltr"&&!n.test(u))return!1;for(var b=u.length,y=[],k=0;k-1&&(n[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function de(e,t){var r=zi(e,t);if(!!r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i0}function hr(e){e.prototype.on=function(t,r){X(this,t,r)},e.prototype.off=function(t,r){Oe(this,t,r)}}function Ae(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Tl(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function mi(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Rr(e){Ae(e),Tl(e)}function Pi(e){return e.target||e.srcElement}function Ml(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),Ye&&e.ctrlKey&&t==1&&(t=3),t}var Ps=function(){if(re&&ce<9)return!1;var e=G("div");return"draggable"in e||"dragDrop"in e}(),ui;function Ws(e){if(ui==null){var t=G("span","\u200B");Ie(e,G("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(ui=t.offsetWidth<=1&&t.offsetHeight>2&&!(re&&ce<8))}var r=ui?G("span","\u200B"):G("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}var fi;function _s(e){if(fi!=null)return fi;var t=Ie(e,document.createTextNode("A\u062EA")),r=It(t,0,1).getBoundingClientRect(),n=It(t,1,2).getBoundingClientRect();return mt(e),!r||r.left==r.right?!1:fi=n.right-r.right<3}var Wi=` b`.split(/\n/).length!=3?function(e){for(var t=0,r=[],n=e.length;t<=n;){var i=e.indexOf(` `,t);i==-1&&(i=e.length);var o=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),l=o.indexOf("\r");l!=-1?(r.push(o.slice(0,l)),t+=l+1):(r.push(o),t=i+1)}return r}:function(e){return e.split(/\r\n?|\n/)},Bs=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Rs=function(){var e=G("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),ci=null;function Us(e){if(ci!=null)return ci;var t=Ie(e,G("span","x")),r=t.getBoundingClientRect(),n=It(t,0,1).getBoundingClientRect();return ci=Math.abs(r.left-n.left)>1}var _i={},er={};function Ks(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),_i[e]=t}function qs(e,t){er[e]=t}function Sn(e){if(typeof e=="string"&&er.hasOwnProperty(e))e=er[e];else if(e&&typeof e.name=="string"&&er.hasOwnProperty(e.name)){var t=er[e.name];typeof t=="string"&&(t={name:t}),e=xl(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Sn("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Sn("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Bi(e,t){t=Sn(t);var r=_i[t.name];if(!r)return Bi(e,"text/plain");var n=r(e,t);if(ir.hasOwnProperty(t.name)){var i=ir[t.name];for(var o in i)!i.hasOwnProperty(o)||(n.hasOwnProperty(o)&&(n["_"+o]=n[o]),n[o]=i[o])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)n[l]=t.modeProps[l];return n}var ir={};function Gs(e,t){var r=ir.hasOwnProperty(e)?ir[e]:ir[e]={};Ht(t,r)}function zt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function Ri(e,t){for(var r;e.innerMode&&(r=e.innerMode(t),!(!r||r.mode==e));)t=r.state,e=r.mode;return r||{mode:e,state:t}}function Dl(e,t,r){return e.startState?e.startState(t,r):!0}var pe=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};pe.prototype.eol=function(){return this.pos>=this.string.length};pe.prototype.sol=function(){return this.pos==this.lineStart};pe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0};pe.prototype.next=function(){if(this.post};pe.prototype.eatSpace=function(){for(var e=this,t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++e.pos;return this.pos>t};pe.prototype.skipToEnd=function(){this.pos=this.string.length};pe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0};pe.prototype.backUp=function(e){this.pos-=e};pe.prototype.column=function(){return this.lastColumnPos0?null:(o&&t!==!1&&(this.pos+=o[0].length),o)}};pe.prototype.current=function(){return this.string.slice(this.start,this.pos)};pe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}};pe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)};pe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function q(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],o=i.chunkSize();if(t=e.first&&tr?F(r,q(e,r).text.length):Xs(t,q(e,t.line).text.length)}function Xs(e,t){var r=e.ch;return r==null||r>t?F(e.line,t):r<0?F(e.line,0):e}function Oo(e,t){for(var r=[],n=0;nthis.maxLookAhead&&(this.maxLookAhead=e),t};Ze.prototype.baseToken=function(e){var t=this;if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)t.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}};Ze.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--};Ze.fromSaved=function(e,t,r){return t instanceof Bn?new Ze(e,zt(e.mode,t.state),r,t.lookAhead):new Ze(e,zt(e.mode,t),r)};Ze.prototype.save=function(e){var t=e!==!1?zt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Bn(t,this.maxLookAhead):t};function Fl(e,t,r,n){var i=[e.state.modeGen],o={};Po(e,t.text,e.doc.mode,r,function(u,h){return i.push(u,h)},o,n);for(var l=r.state,a=function(u){r.baseTokens=i;var h=e.state.overlays[u],p=1,b=0;r.state=!0,Po(e,t.text,h.mode,r,function(y,k){for(var S=p;by&&i.splice(p,1,y,i[p+1],D),p+=2,b=Math.min(y,D)}if(!!k)if(h.opaque)i.splice(S,p-S,y,"overlay "+k),p=S+2;else for(;Se.options.maxHighlightLength&&zt(e.doc.mode,n.state),o=Fl(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Jr(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new Ze(n,!0,t);var o=Ys(e,t,r),l=o>n.first&&q(n,o-1).stateAfter,a=l?Ze.fromSaved(n,l,o):new Ze(n,Dl(n.mode),o);return n.iter(o,t,function(s){Ki(e,s.text,a);var u=a.line;s.stateAfter=u==t-1||u%5==0||u>=i.viewFrom&&ut.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}var Io=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function Ho(e,t,r,n){var i=e.doc,o=i.mode,l;t=V(i,t);var a=q(i,t.line),s=Jr(e,t.line,r),u=new pe(a.text,e.options.tabSize,s),h;for(n&&(h=[]);(n||u.pose.options.maxHighlightLength?(a=!1,l&&Ki(e,t,n,h.pos),h.pos=t.length,p=null):p=zo(qi(r,h,n.state,b),o),b){var y=b[0].name;y&&(p="m-"+(p?y+" "+p:y))}if(!a||u!=p){for(;sl;--a){if(a<=o.first)return o.first;var s=q(o,a-1),u=s.stateAfter;if(u&&(!r||a+(u instanceof Bn?u.lookAhead:0)<=o.modeFrontier))return a;var h=Pe(s.text,null,e.options.tabSize);(i==null||n>h)&&(i=a-1,n=h)}return i}function js(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontierr;n--){var i=q(e,n).stateAfter;if(i&&(!(i instanceof Bn)||n+i.lookAhead=t:o.to>t);(n||(n=[])).push(new Rn(l,o.from,s?null:o.to))}}return n}function eu(e,t,r){var n;if(e)for(var i=0;i=t:o.to>t);if(a||o.from==t&&l.type=="bookmark"&&(!r||o.marker.insertLeft)){var s=o.from==null||(l.inclusiveLeft?o.from<=t:o.from0&&a)for(var E=0;E0)){var h=[s,1],p=Z(u.from,a.from),b=Z(u.to,a.to);(p<0||!l.inclusiveLeft&&!p)&&h.push({from:u.from,to:a.from}),(b>0||!l.inclusiveRight&&!b)&&h.push({from:a.to,to:u.to}),i.splice.apply(i,h),s+=h.length-3}}return i}function Il(e){var t=e.markedSpans;if(!!t){for(var r=0;rt)&&(!n||Gi(n,o.marker)<0)&&(n=o.marker)}return n}function _o(e,t,r,n,i){var o=q(e,t),l=it&&o.markedSpans;if(l)for(var a=0;a=0&&p<=0||h<=0&&p>=0)&&(h<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?Z(u.to,r)>=0:Z(u.to,r)>0)||h>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?Z(u.from,n)<=0:Z(u.from,n)<0)))return!0}}}function Je(e){for(var t;t=Pl(e);)e=t.find(-1,!0).line;return e}function nu(e){for(var t;t=Un(e);)e=t.find(1,!0).line;return e}function iu(e){for(var t,r;t=Un(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function Xi(e,t){var r=q(e,t),n=Je(r);return r==n?t:le(n)}function Wl(e,t){if(t>e.lastLine())return t;var r=q(e,t),n;if(!Ct(e,r))return t;for(;n=Un(r);)r=n.find(1,!0).line;return le(r)+1}function Ct(e,t){var r=it&&t.markedSpans;if(r){for(var n=void 0,i=0;it.maxLineLength&&(t.maxLineLength=i,t.maxLine=n)})}var ar=function(e,t,r){this.text=e,Hl(this,t),this.height=r?r(this):1};ar.prototype.lineNo=function(){return le(this)};hr(ar);function ou(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Il(e),Hl(e,r);var i=n?n(e):1;i!=e.height&&Qe(e,i)}function lu(e){e.parent=null,Il(e)}var au={},su={};function Bo(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?su:au;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function _l(e,t){var r=nr("span",null,null,Le?"padding-right: .1px":null),n={pre:nr("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,l=void 0;n.pos=0,n.addToken=fu,_s(e.display.measure)&&(l=st(o,e.doc.direction))&&(n.addToken=hu(n.addToken,l)),n.map=[];var a=t!=e.display.externalMeasured&&le(o);du(o,n,El(e,o,a)),o.styleClasses&&(o.styleClasses.bgClass&&(n.bgClass=ai(o.styleClasses.bgClass,n.bgClass||"")),o.styleClasses.textClass&&(n.textClass=ai(o.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(Ws(e.display.measure))),i==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(Le){var s=n.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return de(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=ai(n.pre.className,n.textClass||"")),n}function uu(e){var t=G("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function fu(e,t,r,n,i,o,l){if(!!t){var a=e.splitSpaces?cu(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,h;if(!s.test(t))e.col+=t.length,h=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,h),re&&ce<9&&(u=!0),e.pos+=t.length;else{h=document.createDocumentFragment();for(var p=0;;){s.lastIndex=p;var b=s.exec(t),y=b?b.index-p:t.length-p;if(y){var k=document.createTextNode(a.slice(p,p+y));re&&ce<9?h.appendChild(G("span",[k])):h.appendChild(k),e.map.push(e.pos,e.pos+y,k),e.col+=y,e.pos+=y}if(!b)break;p+=y+1;var S=void 0;if(b[0]==" "){var D=e.cm.options.tabSize,A=D-e.col%D;S=h.appendChild(G("span",Hi(A),"cm-tab")),S.setAttribute("role","presentation"),S.setAttribute("cm-text"," "),e.col+=A}else b[0]=="\r"||b[0]==` diff --git a/public/js/build/index.8fb9f3fd.js b/public/js/build/index.ed41beb1.js similarity index 98% rename from public/js/build/index.8fb9f3fd.js rename to public/js/build/index.ed41beb1.js index 4a9adc054..df9b48a36 100644 --- a/public/js/build/index.8fb9f3fd.js +++ b/public/js/build/index.ed41beb1.js @@ -1 +1 @@ -import{n as s}from"./app.3d81bfbf.js";var l=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"component-resize-line",class:[e.resizing?"resizing":"",e.placement],on:{mousedown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"left",37,n.key,["Left","ArrowLeft"])||"button"in n&&n.button!==0?null:(n.stopPropagation(),n.preventDefault(),e.resizeDown.apply(null,arguments))}}})},u=[];const m={name:"ResizeLine",props:{value:{},min:{type:Number,default:100},max:{type:Number,default:600},placement:{validator(e){return["right","bottom"].includes(e)},default:"bottom"},reverse:{type:Boolean,default:!1},beforeResize:Function},data(){return{resizing:!1,mouseX:0,mouseY:0,offset:{},tmpSize:void 0}},mounted(){document.documentElement.addEventListener("mousemove",this.handleMove,!0),document.documentElement.addEventListener("mouseup",this.handleUp,!0)},methods:{resizeDown(e){if(!this.beforeResize){this.handleDown(e);return}const t=this.beforeResize();t&&t.then?t.then(i=>{this.handleDown(e)}):this.handleDown(e)},handleDown(e){this.mouseX=e.pageX||e.clientX+document.documentElement.scrollLeft,this.mouseY=e.pageY||e.clientY+document.documentElement.scrollTop,this.offset={left:e.target.offsetLeft,top:e.target.offsetTop},this.resizing=!0,typeof this.value=="number"&&(this.tmpSize=this.value),this.$emit("on-change",{event:"down"})},handleMove(e){if(!this.resizing)return;let t=(e.pageX||e.clientX+document.documentElement.scrollLeft)-this.mouseX,i=(e.pageY||e.clientY+document.documentElement.scrollTop)-this.mouseY;if(typeof this.tmpSize=="number"){let n;this.placement=="bottom"?n=this.reverse?this.tmpSize-i:this.tmpSize+i:n=this.reverse?this.tmpSize-t:this.tmpSize+t,this.min>0&&(n=Math.max(this.min,n)),this.max>0&&(n=Math.min(this.max,n)),this.$emit("input",n)}this.$emit("on-change",{event:"move",diff:{x:t,y:i},offset:this.offset})},handleUp(){!this.resizing||(this.resizing=!1,this.tmpSize=void 0,this.$emit("on-change",{event:"up"}))}}},o={};var c=s(m,l,u,!1,d,null,null,null);function d(e){for(let t in o)this[t]=o[t]}var h=function(){return c.exports}(),f=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"body",staticClass:"overlay-body",style:e.bodyStyle},[i("div",{staticClass:"overlay-close"},[i("a",{attrs:{href:"javascript:void(0)"},on:{click:function(n){return n.stopPropagation(),e.onClose.apply(null,arguments)}}},[i("svg",{staticClass:"icon fill-current",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 26 26",fill:"none",role:"img"}},[i("path",{attrs:{d:"M8.28596 6.51819C7.7978 6.03003 7.00634 6.03003 6.51819 6.51819C6.03003 7.00634 6.03003 7.7978 6.51819 8.28596L11.2322 13L6.51819 17.714C6.03003 18.2022 6.03003 18.9937 6.51819 19.4818C7.00634 19.97 7.7978 19.97 8.28596 19.4818L13 14.7678L17.714 19.4818C18.2022 19.97 18.9937 19.97 19.4818 19.4818C19.97 18.9937 19.97 18.2022 19.4818 17.714L14.7678 13L19.4818 8.28596C19.97 7.7978 19.97 7.00634 19.4818 6.51819C18.9937 6.03003 18.2022 6.03003 17.714 6.51819L13 11.2322L8.28596 6.51819Z",fill:"currentColor"}})])])]),e.resize?i("ResizeLine",{staticClass:"overlay-resize",attrs:{placement:e.placement,min:e.minSize,max:0,reverse:!0,beforeResize:e.beforeResize},on:{"on-change":e.onChangeResize},model:{value:e.dynamicSize,callback:function(n){e.dynamicSize=n},expression:"dynamicSize"}}):e._e(),i("div",{staticClass:"overlay-content"},[e._t("default")],2)],1)},p=[];const v={name:"DrawerOverlayView",components:{ResizeLine:h},props:{placement:{validator(e){return["right","bottom"].includes(e)},default:"bottom"},size:{type:[Number,String],default:"100%"},minSize:{type:Number,default:300},resize:{type:Boolean,default:!0}},data(){return{dynamicSize:0}},computed:{bodyStyle(){let e=this.dynamicSize;return e=e<=100?`${e}%`:`${e}px`,this.placement=="right"?{width:e,height:"100%"}:{width:"100%",height:e}}},watch:{size:{handler(e){this.dynamicSize=parseInt(e)},immediate:!0}},methods:{onClose(){this.$emit("on-close")},beforeResize(){return new Promise(e=>{this.dynamicSize<=100&&this.updateSize(),e()})},onChangeResize({event:e}){e==="up"&&this.updateSize()},updateSize(){this.placement==="bottom"?this.dynamicSize=this.$refs.body.clientHeight:this.dynamicSize=this.$refs.body.clientWidth}}},r={};var _=s(v,f,p,!1,z,null,null,null);function z(e){for(let t in r)this[t]=r[t]}var y=function(){return _.exports}(),b=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("Modal",{ref:"modal",attrs:{closable:e.escClosable,"mask-closable":e.maskClosable,"footer-hide":!0,"transition-names":[e.$A.isAndroid()?"":`drawer-slide-${e.placement}`,""],beforeClose:e.beforeClose,fullscreen:"","class-name":e.modalClass},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[i("DrawerOverlayView",{attrs:{placement:e.placement,size:e.size,minSize:e.minSize,resize:e.resize},on:{"on-close":e.onClose}},[e._t("default")],2)],1)},g=[];const w={name:"DrawerOverlay",components:{DrawerOverlayView:y},props:{value:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},escClosable:{type:Boolean,default:!0},placement:{validator(e){return["right","bottom"].includes(e)},default:"bottom"},size:{type:[Number,String],default:"100%"},minSize:{type:Number,default:300},resize:{type:Boolean,default:!0},className:{type:String},beforeClose:Function},data(){return{show:this.value}},watch:{value(e){this.show=e},show(e){this.value!==e&&this.$emit("input",e)}},computed:{modalClass(){return this.className?`common-drawer-overlay ${this.className} ${this.placement}`:`common-drawer-overlay ${this.placement}`}},methods:{onClose(){this.$refs.modal.close()}}},a={};var S=s(w,b,g,!1,C,null,null,null);function C(e){for(let t in a)this[t]=a[t]}var x=function(){return S.exports}();export{x as D}; +import{n as s}from"./app.28437e7d.js";var l=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"component-resize-line",class:[e.resizing?"resizing":"",e.placement],on:{mousedown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"left",37,n.key,["Left","ArrowLeft"])||"button"in n&&n.button!==0?null:(n.stopPropagation(),n.preventDefault(),e.resizeDown.apply(null,arguments))}}})},u=[];const m={name:"ResizeLine",props:{value:{},min:{type:Number,default:100},max:{type:Number,default:600},placement:{validator(e){return["right","bottom"].includes(e)},default:"bottom"},reverse:{type:Boolean,default:!1},beforeResize:Function},data(){return{resizing:!1,mouseX:0,mouseY:0,offset:{},tmpSize:void 0}},mounted(){document.documentElement.addEventListener("mousemove",this.handleMove,!0),document.documentElement.addEventListener("mouseup",this.handleUp,!0)},methods:{resizeDown(e){if(!this.beforeResize){this.handleDown(e);return}const t=this.beforeResize();t&&t.then?t.then(i=>{this.handleDown(e)}):this.handleDown(e)},handleDown(e){this.mouseX=e.pageX||e.clientX+document.documentElement.scrollLeft,this.mouseY=e.pageY||e.clientY+document.documentElement.scrollTop,this.offset={left:e.target.offsetLeft,top:e.target.offsetTop},this.resizing=!0,typeof this.value=="number"&&(this.tmpSize=this.value),this.$emit("on-change",{event:"down"})},handleMove(e){if(!this.resizing)return;let t=(e.pageX||e.clientX+document.documentElement.scrollLeft)-this.mouseX,i=(e.pageY||e.clientY+document.documentElement.scrollTop)-this.mouseY;if(typeof this.tmpSize=="number"){let n;this.placement=="bottom"?n=this.reverse?this.tmpSize-i:this.tmpSize+i:n=this.reverse?this.tmpSize-t:this.tmpSize+t,this.min>0&&(n=Math.max(this.min,n)),this.max>0&&(n=Math.min(this.max,n)),this.$emit("input",n)}this.$emit("on-change",{event:"move",diff:{x:t,y:i},offset:this.offset})},handleUp(){!this.resizing||(this.resizing=!1,this.tmpSize=void 0,this.$emit("on-change",{event:"up"}))}}},o={};var c=s(m,l,u,!1,d,null,null,null);function d(e){for(let t in o)this[t]=o[t]}var h=function(){return c.exports}(),f=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"body",staticClass:"overlay-body",style:e.bodyStyle},[i("div",{staticClass:"overlay-close"},[i("a",{attrs:{href:"javascript:void(0)"},on:{click:function(n){return n.stopPropagation(),e.onClose.apply(null,arguments)}}},[i("svg",{staticClass:"icon fill-current",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 26 26",fill:"none",role:"img"}},[i("path",{attrs:{d:"M8.28596 6.51819C7.7978 6.03003 7.00634 6.03003 6.51819 6.51819C6.03003 7.00634 6.03003 7.7978 6.51819 8.28596L11.2322 13L6.51819 17.714C6.03003 18.2022 6.03003 18.9937 6.51819 19.4818C7.00634 19.97 7.7978 19.97 8.28596 19.4818L13 14.7678L17.714 19.4818C18.2022 19.97 18.9937 19.97 19.4818 19.4818C19.97 18.9937 19.97 18.2022 19.4818 17.714L14.7678 13L19.4818 8.28596C19.97 7.7978 19.97 7.00634 19.4818 6.51819C18.9937 6.03003 18.2022 6.03003 17.714 6.51819L13 11.2322L8.28596 6.51819Z",fill:"currentColor"}})])])]),e.resize?i("ResizeLine",{staticClass:"overlay-resize",attrs:{placement:e.placement,min:e.minSize,max:0,reverse:!0,beforeResize:e.beforeResize},on:{"on-change":e.onChangeResize},model:{value:e.dynamicSize,callback:function(n){e.dynamicSize=n},expression:"dynamicSize"}}):e._e(),i("div",{staticClass:"overlay-content"},[e._t("default")],2)],1)},p=[];const v={name:"DrawerOverlayView",components:{ResizeLine:h},props:{placement:{validator(e){return["right","bottom"].includes(e)},default:"bottom"},size:{type:[Number,String],default:"100%"},minSize:{type:Number,default:300},resize:{type:Boolean,default:!0}},data(){return{dynamicSize:0}},computed:{bodyStyle(){let e=this.dynamicSize;return e=e<=100?`${e}%`:`${e}px`,this.placement=="right"?{width:e,height:"100%"}:{width:"100%",height:e}}},watch:{size:{handler(e){this.dynamicSize=parseInt(e)},immediate:!0}},methods:{onClose(){this.$emit("on-close")},beforeResize(){return new Promise(e=>{this.dynamicSize<=100&&this.updateSize(),e()})},onChangeResize({event:e}){e==="up"&&this.updateSize()},updateSize(){this.placement==="bottom"?this.dynamicSize=this.$refs.body.clientHeight:this.dynamicSize=this.$refs.body.clientWidth}}},r={};var _=s(v,f,p,!1,z,null,null,null);function z(e){for(let t in r)this[t]=r[t]}var y=function(){return _.exports}(),b=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("Modal",{ref:"modal",attrs:{closable:e.escClosable,"mask-closable":e.maskClosable,"footer-hide":!0,"transition-names":[e.$A.isAndroid()?"":`drawer-slide-${e.placement}`,""],beforeClose:e.beforeClose,fullscreen:"","class-name":e.modalClass},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[i("DrawerOverlayView",{attrs:{placement:e.placement,size:e.size,minSize:e.minSize,resize:e.resize},on:{"on-close":e.onClose}},[e._t("default")],2)],1)},g=[];const w={name:"DrawerOverlay",components:{DrawerOverlayView:y},props:{value:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},escClosable:{type:Boolean,default:!0},placement:{validator(e){return["right","bottom"].includes(e)},default:"bottom"},size:{type:[Number,String],default:"100%"},minSize:{type:Number,default:300},resize:{type:Boolean,default:!0},className:{type:String},beforeClose:Function},data(){return{show:this.value}},watch:{value(e){this.show=e},show(e){this.value!==e&&this.$emit("input",e)}},computed:{modalClass(){return this.className?`common-drawer-overlay ${this.className} ${this.placement}`:`common-drawer-overlay ${this.placement}`}},methods:{onClose(){this.$refs.modal.close()}}},a={};var S=s(w,b,g,!1,C,null,null,null);function C(e){for(let t in a)this[t]=a[t]}var x=function(){return S.exports}();export{x as D}; diff --git a/public/js/build/keyboard.7b3a2226.js b/public/js/build/keyboard.8af1fb72.js similarity index 97% rename from public/js/build/keyboard.7b3a2226.js rename to public/js/build/keyboard.8af1fb72.js index 0c672c4ee..64a14a57d 100644 --- a/public/js/build/keyboard.7b3a2226.js +++ b/public/js/build/keyboard.8af1fb72.js @@ -1 +1 @@ -import{n as r}from"./app.3d81bfbf.js";var n=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"setting-item submit"},[e("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u622A\u56FE\u5FEB\u6377\u952E"),prop:"screenshot"}},[e("div",{staticClass:"input-box"},[e("Checkbox",{model:{value:t.formData.screenshot_mate,callback:function(a){t.$set(t.formData,"screenshot_mate",a)},expression:"formData.screenshot_mate"}},[t._v(t._s(t.mateName))]),e("div",{staticClass:"input-box-push"},[t._v("+")]),e("Checkbox",{model:{value:t.formData.screenshot_shift,callback:function(a){t.$set(t.formData,"screenshot_shift",a)},expression:"formData.screenshot_shift"}},[t._v("Shift")]),e("div",{staticClass:"input-box-push"},[t._v("+")]),e("Input",{staticClass:"input-box-key",attrs:{disabled:t.screenshotDisabled,value:t.formData.screenshot_key,maxlength:1},on:{"on-keydown":t.onKeydown}})],1),t.screenshotDisabled?e("div",{staticClass:"form-tip red"},[t._v(t._s(t.$L("\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u529F\u80FD\u952E\uFF01")))]):t._e()])],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,disabled:t.screenshotDisabled,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u4FDD\u5B58")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},i=[];const c={data(){return{loadIng:0,mateName:/macintosh|mac os x/i.test(navigator.userAgent)?"Command":"Ctrl",formData:{screenshot_mate:!0,screenshot_shift:!0,screenshot_key:""},ruleData:{}}},mounted(){this.initData()},computed:{screenshotDisabled(){return!this.formData.screenshot_mate&&!this.formData.screenshot_shift}},methods:{initData(){this.formData=Object.assign({screenshot_mate:!0,screenshot_shift:!0,screenshot_key:""},$A.jsonParse(window.localStorage.getItem("__keyboard:data__"))||{}),this.formData_bak=$A.cloneJSON(this.formData)},onKeydown({key:t,keyCode:s}){s!==8&&(t=/^[A-Za-z0-9]?$/.test(t)?t.toUpperCase():"",t&&(this.formData.screenshot_key=t))},submitForm(){this.$refs.formData.validate(t=>{t&&(window.localStorage.setItem("__keyboard:data__",$A.jsonStringify(this.formData)),$A.bindScreenshotKey(this.formData),$A.messageSuccess("\u4FDD\u5B58\u6210\u529F"))})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},o={};var m=r(c,n,i,!1,_,"2cfe89b0",null,null);function _(t){for(let s in o)this[s]=o[s]}var h=function(){return m.exports}();export{h as default}; +import{n as r}from"./app.28437e7d.js";var n=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"setting-item submit"},[e("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u622A\u56FE\u5FEB\u6377\u952E"),prop:"screenshot"}},[e("div",{staticClass:"input-box"},[e("Checkbox",{model:{value:t.formData.screenshot_mate,callback:function(a){t.$set(t.formData,"screenshot_mate",a)},expression:"formData.screenshot_mate"}},[t._v(t._s(t.mateName))]),e("div",{staticClass:"input-box-push"},[t._v("+")]),e("Checkbox",{model:{value:t.formData.screenshot_shift,callback:function(a){t.$set(t.formData,"screenshot_shift",a)},expression:"formData.screenshot_shift"}},[t._v("Shift")]),e("div",{staticClass:"input-box-push"},[t._v("+")]),e("Input",{staticClass:"input-box-key",attrs:{disabled:t.screenshotDisabled,value:t.formData.screenshot_key,maxlength:1},on:{"on-keydown":t.onKeydown}})],1),t.screenshotDisabled?e("div",{staticClass:"form-tip red"},[t._v(t._s(t.$L("\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u529F\u80FD\u952E\uFF01")))]):t._e()])],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,disabled:t.screenshotDisabled,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u4FDD\u5B58")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},i=[];const c={data(){return{loadIng:0,mateName:/macintosh|mac os x/i.test(navigator.userAgent)?"Command":"Ctrl",formData:{screenshot_mate:!0,screenshot_shift:!0,screenshot_key:""},ruleData:{}}},mounted(){this.initData()},computed:{screenshotDisabled(){return!this.formData.screenshot_mate&&!this.formData.screenshot_shift}},methods:{initData(){this.formData=Object.assign({screenshot_mate:!0,screenshot_shift:!0,screenshot_key:""},$A.jsonParse(window.localStorage.getItem("__keyboard:data__"))||{}),this.formData_bak=$A.cloneJSON(this.formData)},onKeydown({key:t,keyCode:s}){s!==8&&(t=/^[A-Za-z0-9]?$/.test(t)?t.toUpperCase():"",t&&(this.formData.screenshot_key=t))},submitForm(){this.$refs.formData.validate(t=>{t&&(window.localStorage.setItem("__keyboard:data__",$A.jsonStringify(this.formData)),$A.bindScreenshotKey(this.formData),$A.messageSuccess("\u4FDD\u5B58\u6210\u529F"))})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},o={};var m=r(c,n,i,!1,_,"2cfe89b0",null,null);function _(t){for(let s in o)this[s]=o[s]}var h=function(){return m.exports}();export{h as default}; diff --git a/public/js/build/language.fa5843fd.js b/public/js/build/language.733d391d.js similarity index 95% rename from public/js/build/language.fa5843fd.js rename to public/js/build/language.733d391d.js index d72897f0a..032c4a941 100644 --- a/public/js/build/language.fa5843fd.js +++ b/public/js/build/language.733d391d.js @@ -1 +1 @@ -import{l as s,m as l,a as i,s as m,n as u}from"./app.3d81bfbf.js";var f=function(){var t=this,o=t.$createElement,a=t._self._c||o;return a("div",{staticClass:"setting-item submit"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\u9009\u62E9\u8BED\u8A00"),prop:"language"}},[a("Select",{attrs:{placeholder:t.$L("\u9009\u9879\u8BED\u8A00")},model:{value:t.formData.language,callback:function(e){t.$set(t.formData,"language",e)},expression:"formData.language"}},t._l(t.languageList,function(e,n){return a("Option",{key:n,attrs:{value:n}},[t._v(t._s(e))])}),1)],1)],1),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},g=[];const c={data(){return{loadIng:0,languageList:s,formData:{language:""},ruleData:{}}},mounted(){this.initData()},computed:{...l(["formLabelPosition","formLabelWidth"])},methods:{initData(){this.$set(this.formData,"language",i),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{t&&m(this.formData.language)})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},r={};var _=u(c,f,g,!1,d,null,null,null);function d(t){for(let o in r)this[o]=r[o]}var p=function(){return _.exports}();export{p as default}; +import{l as s,m as l,a as i,s as m,n as u}from"./app.28437e7d.js";var f=function(){var t=this,o=t.$createElement,a=t._self._c||o;return a("div",{staticClass:"setting-item submit"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\u9009\u62E9\u8BED\u8A00"),prop:"language"}},[a("Select",{attrs:{placeholder:t.$L("\u9009\u9879\u8BED\u8A00")},model:{value:t.formData.language,callback:function(e){t.$set(t.formData,"language",e)},expression:"formData.language"}},t._l(t.languageList,function(e,n){return a("Option",{key:n,attrs:{value:n}},[t._v(t._s(e))])}),1)],1)],1),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},g=[];const c={data(){return{loadIng:0,languageList:s,formData:{language:""},ruleData:{}}},mounted(){this.initData()},computed:{...l(["formLabelPosition","formLabelWidth"])},methods:{initData(){this.$set(this.formData,"language",i),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{t&&m(this.formData.language)})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},r={};var _=u(c,f,g,!1,d,null,null,null);function d(t){for(let o in r)this[o]=r[o]}var p=function(){return _.exports}();export{p as default}; diff --git a/public/js/build/license.a7c785d4.js b/public/js/build/license.905d25ba.js similarity index 98% rename from public/js/build/license.a7c785d4.js rename to public/js/build/license.905d25ba.js index ce0f714ae..83219fcf6 100644 --- a/public/js/build/license.a7c785d4.js +++ b/public/js/build/license.905d25ba.js @@ -1 +1 @@ -import{m as e,n}from"./app.3d81bfbf.js";var r=function(){var t=this,a=t.$createElement,o=t._self._c||a;return o("div",{staticClass:"setting-item submit"},[o("Form",{ref:"formData",attrs:{model:t.formData,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(s){s.preventDefault()}}},[o("FormItem",{attrs:{label:"License",prop:"license"}},[o("Input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:t.$L("\u8BF7\u8F93\u5165License...")},model:{value:t.formData.license,callback:function(s){t.$set(t.formData,"license",s)},expression:"formData.license"}})],1),o("FormItem",{attrs:{label:t.$L("\u8BE6\u7EC6\u4FE1\u606F")}},[o("div",{staticClass:"license-box"},[t.formData.info.sn?o("ul",[o("li",[o("em",[t._v("SN:")]),o("span",[t._v(t._s(t.formData.info.sn))]),o("ETooltip",{attrs:{"max-width":"auto",placement:"right"}},[o("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.$L("\u5F53\u524D\u73AF\u5883"))+": "+t._s(t.formData.doo_sn))]),o("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}})],1)],1),o("li",[o("em",[t._v("IP:")]),o("span",[t._v(t._s(t.infoJoin(t.formData.info.ip)))])]),o("li",[o("em",[t._v(t._s(t.$L("\u57DF\u540D"))+":")]),o("span",[t._v(t._s(t.infoJoin(t.formData.info.domain)))])]),o("li",[o("em",[t._v("MAC:")]),o("span",[t._v(t._s(t.infoJoin(t.formData.info.mac)))]),o("ETooltip",{attrs:{"max-width":"auto",placement:"right"}},[o("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.$L("\u5F53\u524D\u73AF\u5883"))+": "+t._s(t.infoJoin(t.formData.macs,"-")))]),o("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}})],1)],1),o("li",[o("em",[t._v(t._s(t.$L("\u4F7F\u7528\u4EBA\u6570"))+":")]),o("span",[t._v(t._s(t.formData.info.people||t.$L("\u65E0\u9650\u5236"))+" ("+t._s(t.$L("\u5DF2\u4F7F\u7528"))+": "+t._s(t.formData.user_count)+")")]),o("ETooltip",{attrs:{"max-width":"auto",placement:"right"}},[o("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.$L("\u9650\u5236\u6CE8\u518C\u4EBA\u6570")))]),o("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}})],1)],1),o("li",[o("em",[t._v(t._s(t.$L("\u521B\u5EFA\u65F6\u95F4"))+":")]),o("span",[t._v(t._s(t.formData.info.created_at))])]),o("li",[o("em",[t._v(t._s(t.$L("\u5230\u671F\u65F6\u95F4"))+":")]),o("span",[t._v(t._s(t.formData.info.expired_at||t.$L("\u6C38\u4E45")))]),t.formData.info.expired_at?o("ETooltip",{attrs:{"max-width":"auto",placement:"right"}},[o("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.$L("\u5230\u671F\u540E\u9650\u5236\u6CE8\u518C\u5E10\u53F7")))]),o("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}})],1):t._e()],1),t._l(t.formData.error,function(s){return o("li",{staticClass:"warning"},[t._v(t._s(s))])})],2):o("ul",[o("li",[t._v(" "+t._s(t.$L("\u52A0\u8F7D\u4E2D..."))+" ")])])])])],1),o("div",{staticClass:"setting-footer"},[o("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),o("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},l=[];const m={data(){return{loadIng:0,formData:{license:"",info:{},macs:[],doo_sn:"",user_count:0,error:[]}}},mounted(){this.systemSetting()},computed:{...e(["userInfo","formLabelPosition","formLabelWidth"])},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/license",data:Object.assign(this.formData,{type:t?"save":"get"}),method:"post"}).then(({data:a})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=a,this.formData_bak=$A.cloneJSON(this.formData)}).catch(({msg:a})=>{t&&$A.modalError(a)}).finally(a=>{this.loadIng--})},infoJoin(t,a=null){return $A.isArray(t)&&(t=t.join(",")),t||(a===null?this.$L("\u65E0\u9650\u5236"):a)}}},i={};var c=n(m,r,l,!1,_,"2888f6cc",null,null);function _(t){for(let a in i)this[a]=i[a]}var u=function(){return c.exports}();export{u as default}; +import{m as e,n}from"./app.28437e7d.js";var r=function(){var t=this,a=t.$createElement,o=t._self._c||a;return o("div",{staticClass:"setting-item submit"},[o("Form",{ref:"formData",attrs:{model:t.formData,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(s){s.preventDefault()}}},[o("FormItem",{attrs:{label:"License",prop:"license"}},[o("Input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:t.$L("\u8BF7\u8F93\u5165License...")},model:{value:t.formData.license,callback:function(s){t.$set(t.formData,"license",s)},expression:"formData.license"}})],1),o("FormItem",{attrs:{label:t.$L("\u8BE6\u7EC6\u4FE1\u606F")}},[o("div",{staticClass:"license-box"},[t.formData.info.sn?o("ul",[o("li",[o("em",[t._v("SN:")]),o("span",[t._v(t._s(t.formData.info.sn))]),o("ETooltip",{attrs:{"max-width":"auto",placement:"right"}},[o("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.$L("\u5F53\u524D\u73AF\u5883"))+": "+t._s(t.formData.doo_sn))]),o("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}})],1)],1),o("li",[o("em",[t._v("IP:")]),o("span",[t._v(t._s(t.infoJoin(t.formData.info.ip)))])]),o("li",[o("em",[t._v(t._s(t.$L("\u57DF\u540D"))+":")]),o("span",[t._v(t._s(t.infoJoin(t.formData.info.domain)))])]),o("li",[o("em",[t._v("MAC:")]),o("span",[t._v(t._s(t.infoJoin(t.formData.info.mac)))]),o("ETooltip",{attrs:{"max-width":"auto",placement:"right"}},[o("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.$L("\u5F53\u524D\u73AF\u5883"))+": "+t._s(t.infoJoin(t.formData.macs,"-")))]),o("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}})],1)],1),o("li",[o("em",[t._v(t._s(t.$L("\u4F7F\u7528\u4EBA\u6570"))+":")]),o("span",[t._v(t._s(t.formData.info.people||t.$L("\u65E0\u9650\u5236"))+" ("+t._s(t.$L("\u5DF2\u4F7F\u7528"))+": "+t._s(t.formData.user_count)+")")]),o("ETooltip",{attrs:{"max-width":"auto",placement:"right"}},[o("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.$L("\u9650\u5236\u6CE8\u518C\u4EBA\u6570")))]),o("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}})],1)],1),o("li",[o("em",[t._v(t._s(t.$L("\u521B\u5EFA\u65F6\u95F4"))+":")]),o("span",[t._v(t._s(t.formData.info.created_at))])]),o("li",[o("em",[t._v(t._s(t.$L("\u5230\u671F\u65F6\u95F4"))+":")]),o("span",[t._v(t._s(t.formData.info.expired_at||t.$L("\u6C38\u4E45")))]),t.formData.info.expired_at?o("ETooltip",{attrs:{"max-width":"auto",placement:"right"}},[o("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.$L("\u5230\u671F\u540E\u9650\u5236\u6CE8\u518C\u5E10\u53F7")))]),o("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}})],1):t._e()],1),t._l(t.formData.error,function(s){return o("li",{staticClass:"warning"},[t._v(t._s(s))])})],2):o("ul",[o("li",[t._v(" "+t._s(t.$L("\u52A0\u8F7D\u4E2D..."))+" ")])])])])],1),o("div",{staticClass:"setting-footer"},[o("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),o("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},l=[];const m={data(){return{loadIng:0,formData:{license:"",info:{},macs:[],doo_sn:"",user_count:0,error:[]}}},mounted(){this.systemSetting()},computed:{...e(["userInfo","formLabelPosition","formLabelWidth"])},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/license",data:Object.assign(this.formData,{type:t?"save":"get"}),method:"post"}).then(({data:a})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=a,this.formData_bak=$A.cloneJSON(this.formData)}).catch(({msg:a})=>{t&&$A.modalError(a)}).finally(a=>{this.loadIng--})},infoJoin(t,a=null){return $A.isArray(t)&&(t=t.join(",")),t||(a===null?this.$L("\u65E0\u9650\u5236"):a)}}},i={};var c=n(m,r,l,!1,_,"2888f6cc",null,null);function _(t){for(let a in i)this[a]=i[a]}var u=function(){return c.exports}();export{u as default}; diff --git a/public/js/build/login.2645e9ff.js b/public/js/build/login.44c0f794.js similarity index 99% rename from public/js/build/login.2645e9ff.js rename to public/js/build/login.44c0f794.js index 8bed771b4..a2a55588d 100644 --- a/public/js/build/login.2645e9ff.js +++ b/public/js/build/login.44c0f794.js @@ -1,4 +1,4 @@ -import{l as wr,a as yr,d as Ar,m as xr,s as Cr,n as _r}from"./app.3d81bfbf.js";/*! +import{l as wr,a as yr,d as Ar,m as xr,s as Cr,n as _r}from"./app.28437e7d.js";/*! * vue-qrcode v1.0.2 * https://fengyuanchen.github.io/vue-qrcode * diff --git a/public/js/build/manage.f8704ace.js b/public/js/build/manage.2b7e7263.js similarity index 99% rename from public/js/build/manage.f8704ace.js rename to public/js/build/manage.2b7e7263.js index cbb53cfbc..cae4fdcdd 100644 --- a/public/js/build/manage.f8704ace.js +++ b/public/js/build/manage.2b7e7263.js @@ -1 +1 @@ -import{n as r,N as O,m as d,c as g,d as c}from"./app.3d81bfbf.js";import{C as z,T as F}from"./CheckinExport.e995cbea.js";import{D as B}from"./index.8fb9f3fd.js";import W from"./TEditor.443b30fe.js";import{U as v}from"./UserSelect.6a5dfe83.js";import{R as H}from"./ReportEdit.9d99c827.js";import{R as V}from"./ReportDetail.6914d4af.js";import{l as K}from"./longpress.43ca7fd9.js";import{D as Y}from"./DialogWrapper.68f3aecd.js";import{T as J}from"./TaskDetail.f1c924a1.js";import"./ImgUpload.7f60f3a4.js";import"./details.ee26823b.js";import"./ProjectLog.7a036454.js";import"./TaskMenu.bdcf4604.js";var q=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"project-archived"},[e("div",{staticClass:"archived-title"},[t._v(" "+t._s(t.$L("\u5F52\u6863\u7684\u9879\u76EE"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u540D"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{clearable:""},model:{value:t.keys.name,callback:function(s){t.$set(t.keys,"name",s)},expression:"keys.name"}})],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(s){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.windowPortrait,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])},G=[];const X={name:"ProjectArchived",data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:a,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",a.id)])},{title:this.$L("\u9879\u76EE\u540D\u79F0"),key:"name",minWidth:200,render:(t,{row:a})=>t("AutoTip",a.name)},{title:this.$L("\u5F52\u6863\u65F6\u95F4"),key:"archived_at",width:168},{title:this.$L("\u5F52\u6863\u4EBA\u5458"),key:"archived_userid",minWidth:80,render:(t,{row:a})=>a.archived_userid?t("UserAvatar",{props:{userid:a.archived_userid,size:24,showName:!0}}):t("Tag",this.$L("\u7CFB\u7EDF\u81EA\u52A8"))},{title:this.$L("\u8D1F\u8D23\u4EBA"),minWidth:80,render:(t,{row:a})=>t("UserAvatar",{props:{showName:!0,size:22,userid:a.owner_userid}})},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,a)=>{const e=[t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5F52\u6863\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{"on-ok":()=>{this.recovery(a.row)}}},this.$L("\u8FD8\u539F")),t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u9879\u76EE\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{marginLeft:"8px",fontSize:"13px",cursor:"pointer",color:"#f00"},on:{"on-ok":()=>{this.delete(a.row)}}},this.$L("\u5220\u9664"))];return t("TableAction",{props:{column:a.column}},e)}}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/lists",data:{keys:this.keys,archived:"yes",page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:t})=>{this.page=t.current_page,this.total=t.total,this.list=t.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},recovery(t){this.list=this.list.filter(({id:a})=>a!=t.id),this.loadIng++,this.$store.dispatch("call",{url:"project/archived",data:{project_id:t.id,type:"recovery"}}).then(()=>{this.getLists(),this.$store.dispatch("getProjectOne",t.id).catch(()=>{})}).catch(({msg:a})=>{$A.modalError(a),this.getLists()}).finally(a=>{this.loadIng--})},delete(t){this.list=this.list.filter(({id:a})=>a!=t.id),this.loadIng++,this.$store.dispatch("removeProject",t.id).then(({msg:a})=>{$A.messageSuccess(a),this.getLists()}).catch(({msg:a})=>{$A.modalError(a),this.getLists()}).finally(a=>{this.loadIng--})}}},k={};var Q=r(X,q,G,!1,Z,null,null,null);function Z(t){for(let a in k)this[a]=k[a]}var tt=function(){return Q.exports}(),et=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"project-management"},[e("div",{staticClass:"management-title"},[t._v(" "+t._s(t.$L("\u6240\u6709\u9879\u76EE"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u540D"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{clearable:""},model:{value:t.keys.name,callback:function(s){t.$set(t.keys,"name",s)},expression:"keys.name"}})],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u56E2\u961F\u9879\u76EE")},model:{value:t.keys.type,callback:function(s){t.$set(t.keys,"type",s)},expression:"keys.type"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u56E2\u961F\u9879\u76EE")))]),e("Option",{attrs:{value:"personal"}},[t._v(t._s(t.$L("\u4E2A\u4EBA\u9879\u76EE")))]),e("Option",{attrs:{value:"all"}},[t._v(t._s(t.$L("\u5168\u90E8\u9879\u76EE")))])],1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u72B6\u6001"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u672A\u5F52\u6863")},model:{value:t.keys.status,callback:function(s){t.$set(t.keys,"status",s)},expression:"keys.status"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u672A\u5F52\u6863")))]),e("Option",{attrs:{value:"archived"}},[t._v(t._s(t.$L("\u5DF2\u5F52\u6863")))]),e("Option",{attrs:{value:"all"}},[t._v(t._s(t.$L("\u5168\u90E8")))])],1)],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(s){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.windowPortrait,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])},at=[];const st={name:"ProjectManagement",data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:a,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",a.id)])},{title:this.$L("\u9879\u76EE\u540D\u79F0"),key:"name",minWidth:100,render:(t,{row:a})=>{const e=[t("AutoTip",a.name)];return a.archived_at&&e.push(t("Tag",{props:{color:"error"}},this.$L("\u5DF2\u5F52\u6863"))),t("div",{class:"project-name"},e)}},{title:this.$L("\u9879\u76EE\u8FDB\u5EA6"),minWidth:100,render:(t,{row:a})=>{const e=[t("AutoTip",a.task_complete+"/"+a.task_num),t("Progress",{props:{percent:a.task_percent,strokeWidth:5}})];return t("div",{class:"project-percent"},e)}},{title:this.$L("\u8D1F\u8D23\u4EBA"),minWidth:80,render:(t,{row:a})=>t("UserAvatar",{props:{showName:!0,size:22,userid:a.owner_userid}})},{title:this.$L("\u521B\u5EFA\u4EBA"),minWidth:80,render:(t,{row:a})=>t("UserAvatar",{props:{showName:!0,size:22,userid:a.userid}})},{title:this.$L("\u521B\u5EFA\u65F6\u95F4"),key:"created_at",width:168}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){let t="team";this.keys.type=="all"?t="all":this.keys.type=="personal"&&(t="personal");let a="no";this.keys.status=="all"?a="all":this.keys.status=="archived"&&(a="yes"),this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/lists",data:{keys:this.keys,all:1,archived:a,type:t,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:e})=>{this.page=e.current_page,this.total=e.total,this.list=e.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(e=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()}}},y={};var it=r(st,et,at,!1,ot,null,null,null);function ot(t){for(let a in y)this[a]=y[a]}var rt=function(){return it.exports}(),nt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"mobile-tabbar"},[t.windowPortrait?e("NetworkException",{attrs:{type:"alert"}}):t._e(),e("transition",{attrs:{name:"mobile-fade"}},[t.isMore?e("div",{staticClass:"more-mask",on:{click:function(s){return t.toggleRoute("more")}}}):t._e()]),e("transition",{attrs:{name:"mobile-slide"}},[t.isMore?e("div",{staticClass:"more-box"},[e("div",{staticClass:"tabbar-more-title"},[t._v(t._s(t.$L("\u66F4\u591A")))]),t._l(t.navMore,function(s){return e("ul",t._l(s,function(i){return e("li",{class:{active:t.activeName===i.name},on:{click:function(o){return t.toggleRoute(i.name)}}},[e("div",{staticClass:"more-item"},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(i.icon)}}),e("div",{staticClass:"tabbar-title"},[t._v(t._s(t.$L(i.label)))]),i.name==="workReport"?e("Badge",{staticClass:"tabbar-badge",attrs:{"overflow-count":999,count:t.reportUnreadNumber}}):t._e()],1)])}),0)})],2):t._e()]),e("ul",{staticClass:"tabbar-box"},t._l(t.navList,function(s){return e("li",{class:{active:t.activeName===s.name},on:{click:function(i){return t.toggleRoute(s.name)}}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(s.icon)}}),e("div",{staticClass:"tabbar-title"},[t._v(t._s(t.$L(s.label)))]),s.name==="dashboard"?[t.dashboardTask.overdue_count>0?e("Badge",{staticClass:"tabbar-badge",attrs:{type:"error","overflow-count":999,count:t.dashboardTask.overdue_count}}):t.dashboardTask.today_count>0?e("Badge",{staticClass:"tabbar-badge",attrs:{type:"info","overflow-count":999,count:t.dashboardTask.today_count}}):t.dashboardTask.all_count>0?e("Badge",{staticClass:"tabbar-badge",attrs:{type:"primary","overflow-count":999,count:t.dashboardTask.all_count}}):t._e()]:s.name==="dialog"?[e("Badge",{staticClass:"tabbar-badge",attrs:{"overflow-count":999,text:t.msgUnreadMention}})]:s.name==="more"?[e("Badge",{staticClass:"tabbar-badge",attrs:{"overflow-count":999,count:t.reportUnreadNumber}})]:t._e()],2)}),0),e("Modal",{attrs:{title:t.$L("\u626B\u7801\u767B\u5F55"),"mask-closable":!1},model:{value:t.scanLoginShow,callback:function(s){t.scanLoginShow=s},expression:"scanLoginShow"}},[e("div",{staticClass:"mobile-scan-login-box"},[e("div",{staticClass:"mobile-scan-login-title"},[t._v(t._s(t.$L("\u4F60\u597D\uFF0C\u626B\u7801\u786E\u8BA4\u767B\u5F55")))]),e("div",{staticClass:"mobile-scan-login-subtitle"},[t._v("\u300C"+t._s(t.$L("\u4E3A\u786E\u4FDD\u5E10\u53F7\u5B89\u5168\uFF0C\u8BF7\u786E\u8BA4\u662F\u672C\u4EBA\u64CD\u4F5C"))+"\u300D")])]),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.scanLoginShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u767B\u5F55")))]),e("Button",{attrs:{type:"primary",loading:t.scanLoginLoad},on:{click:t.scanLoginSubmit}},[t._v(t._s(t.$L("\u786E\u8BA4\u767B\u5F55")))])],1)])],1)},lt=[];const ct={name:"MobileTabbar",components:{NetworkException:O},data(){return{isMore:!1,navList:[{icon:"",name:"dashboard",label:"\u4EEA\u8868\u76D8"},{icon:"",name:"project",label:"\u9879\u76EE"},{icon:"",name:"dialog",label:"\u6D88\u606F"},{icon:"",name:"contacts",label:"\u901A\u8BAF\u5F55"},{icon:"",name:"more",label:"\u66F4\u591A"}],navMore:[[{icon:"",name:"calendar",label:"\u65E5\u5386"},{icon:"",name:"file",label:"\u6587\u4EF6"},{icon:"",name:"setting",label:"\u8BBE\u7F6E"}],[{icon:"",name:"addProject",label:"\u521B\u5EFA\u9879\u76EE"},{icon:"",name:"addTask",label:"\u6DFB\u52A0\u4EFB\u52A1"},{icon:"",name:"createMeeting",label:"\u65B0\u4F1A\u8BAE"},{icon:"",name:"joinMeeting",label:"\u52A0\u5165\u4F1A\u8BAE"}],[{icon:"",name:"workReport",label:"\u5DE5\u4F5C\u62A5\u544A"},{icon:"",name:"approve",label:"\u5BA1\u6279\u4E2D\u5FC3"}]],scanLoginShow:!1,scanLoginLoad:!1,scanLoginCode:""}},created(){$A.isEEUiApp&&this.navMore[0].splice(2,0,{icon:"",name:"scan",label:"\u626B\u4E00\u626B"}),this.userIsAdmin&&this.navMore[2].splice(0,0,{icon:"",name:"allUser",label:"\u56E2\u961F\u7BA1\u7406"})},mounted(){},beforeDestroy(){},computed:{...d(["userIsAdmin","cacheDialogs","reportUnreadNumber"]),...g(["dashboardTask"]),routeName(){return this.$route.name},msgUnreadMention(){let t=0,a=0;this.cacheDialogs.some(s=>{t+=$A.getDialogUnread(s,!1),a+=$A.getDialogMention(s)}),t>999&&(t="999+"),a>999&&(a="999+");const e=this.msgTodoTotal;return e?a?`@${a}\xB7${e}`:t?`${t}\xB7${e}`:e:t?a?`${t}\xB7@${a}`:String(t):a?`@${a}`:""},msgAllUnread(){let t=0;return this.cacheDialogs.some(a=>{t+=$A.getDialogNum(a)}),t},msgTodoTotal(){let t=this.cacheDialogs.reduce((a,e)=>a+(e.todo_num||0),0);return t>0?(t>999?t="999+":t===1&&(t=""),`${this.$L("\u5F85\u529E")}${t}`):null},unreadAndOverdue(){return this.userId>0?this.msgAllUnread+this.dashboardTask.overdue_count:0},activeName(){return this.isMore||["manage-calendar","manage-file","manage-setting"].includes(this.routeName)?"more":this.routeName==="manage-dashboard"?"dashboard":this.routeName==="manage-project"&&!/^\d+$/.test(this.$route.params.projectId)?"project":this.routeName==="manage-messenger"?this.$route.params.dialogAction==="contacts"?"contacts":"dialog":""}},watch:{windowActive(t){t||$A.eeuiAppSendMessage({action:"setBdageNotify",bdage:this.unreadAndOverdue})}},methods:{toggleRoute(t){this.$emit("on-click",t),t!="more"&&(this.isMore=!1);let a;switch(t){case"more":this.isMore=!this.isMore;return;case"scan":$A.eeuiAppScan(this.scanResult);return;case"addTask":case"addProject":case"allUser":case"workReport":return;case"createMeeting":c.Store.set("addMeeting",{type:"create",userids:[this.userId]});break;case"joinMeeting":c.Store.set("addMeeting",{type:"join"});break;case"project":a={name:"manage-project",params:{projectId:"all"}};break;case"dialog":a={name:"manage-messenger",params:{dialogAction:"dialog"}},this.routeName==="manage-messenger"&&c.Store.set("clickAgainDialog",!0);break;case"contacts":a={name:"manage-messenger",params:{dialogAction:"contacts"}};break;default:a={name:"manage-"+t};break}this.goForward(a)},scanResult(t){const a=(t+"").match(/^https*:\/\/(.*?)\/login\?qrcode=(.*?)$/);if(a){this.scanLoginCode=a[2],this.scanLoginShow=!0;return}/^https*:\/\//i.test(t)&&$A.eeuiAppOpenPage({pageType:"app",pageTitle:" ",url:"web.js",params:{url:t,browser:!0,showProgress:!0}})},scanLoginSubmit(){this.scanLoginLoad!==!0&&(this.scanLoginLoad=!0,this.$store.dispatch("call",{url:"users/login/qrcode",data:{type:"login",code:this.scanLoginCode}}).then(({msg:t})=>{this.scanLoginShow=!1,$A.messageSuccess(t)}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.scanLoginLoad=!1}))}}},w={};var dt=r(ct,nt,lt,!1,ht,null,null,null);function ht(t){for(let a in w)this[a]=w[a]}var ut=function(){return dt.exports}(),pt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"task-add"},[e("div",{staticClass:"head",class:{empty:t.addData.cascader.length==0,visible:t.cascaderShow}},[e("Cascader",{attrs:{data:t.cascaderData,clearable:!1,placeholder:t.$L("\u8BF7\u9009\u62E9\u9879\u76EE"),"load-data":t.cascaderLoadData,filterable:""},on:{"on-change":t.cascaderChange,"on-input-change":t.cascaderInputChange,"on-visible-change":function(s){t.cascaderShow=!t.cascaderShow}},model:{value:t.addData.cascader,callback:function(s){t.$set(t.addData,"cascader",s)},expression:"addData.cascader"}})],1),e("div",{staticClass:"task-add-form"},[e("div",{staticClass:"title"},[e("Input",{ref:"input",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:8},maxlength:255,placeholder:t.$L("\u4EFB\u52A1\u63CF\u8FF0"),enterkeyhint:"done"},on:{"on-keydown":t.onKeydown},model:{value:t.addData.name,callback:function(s){t.$set(t.addData,"name",s)},expression:"addData.name"}})],1),e("div",{staticClass:"desc"},[e("TEditor",{attrs:{plugins:t.taskPlugins,options:t.taskOptions,"option-full":t.taskOptionFull,placeholder:t.$L(t.windowLandscape?"\u8BE6\u7EC6\u63CF\u8FF0\uFF0C\u9009\u586B...\uFF08\u70B9\u51FB\u53F3\u952E\u4F7F\u7528\u5DE5\u5177\u680F\uFF09":"\u8BE6\u7EC6\u63CF\u8FF0\uFF0C\u9009\u586B..."),placeholderFull:t.$L("\u8BE6\u7EC6\u63CF\u8FF0..."),inline:""},model:{value:t.addData.content,callback:function(s){t.$set(t.addData,"content",s)},expression:"addData.content"}})],1),e("div",{staticClass:"advanced-option"},[e("Button",{class:{advanced:t.advanced},on:{click:function(s){t.advanced=!t.advanced}}},[t._v(t._s(t.$L("\u9AD8\u7EA7\u9009\u9879")))]),e("ul",{staticClass:"advanced-priority"},t._l(t.taskPriority,function(s,i){return e("li",{key:i},[e("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch,content:t.taskPriorityContent(s)}},[e("i",{staticClass:"taskfont",style:{color:s.color},domProps:{innerHTML:t._s(t.addData.p_name==s.name?"":"")},on:{click:function(o){return t.choosePriority(s)}}})])],1)}),0),t.taskDays>0?e("DatePicker",{attrs:{open:t.taskTimeOpen,options:t.timeOptions,placeholder:t.$L("\u9009\u62E9\u8BA1\u5212\u8303\u56F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange",placement:"bottom"},on:{"on-change":function(s){return t.taskTimeChange(t.addData.times)},"on-open-change":t.taskTimeOpenChange},model:{value:t.addData.times,callback:function(s){t.$set(t.addData,"times",s)},expression:"addData.times"}},[e("div",{staticClass:"advanced-time",on:{click:function(s){return t.taskTimeOpenChange(!t.taskTimeOpen)}}},[e("Icon",{attrs:{type:"ios-clock-outline"}}),e("em",{style:t.addData.p_color?{backgroundColor:t.addData.p_color}:{},attrs:{type:"primary"}},[t._v(t._s(t.taskDays))])],1)]):t._e()],1)]),t.advanced?e("Form",{staticClass:"task-add-advanced",attrs:{"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u8BA1\u5212\u65F6\u95F4")}},[e("DatePicker",{attrs:{options:t.timeOptions,editable:!1,placeholder:t.$L("\u9009\u62E9\u8BA1\u5212\u8303\u56F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange"},on:{"on-change":function(s){return t.taskTimeChange(t.addData.times)}},model:{value:t.addData.times,callback:function(s){t.$set(t.addData,"times",s)},expression:"addData.times"}})],1),e("FormItem",{attrs:{label:t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")}},[e("UserSelect",{attrs:{"multiple-max":10,title:t.$L("\u9009\u62E9\u4EFB\u52A1\u8D1F\u8D23\u4EBA"),"project-id":t.addData.project_id,"avatar-size":24,border:""},model:{value:t.addData.owner,callback:function(s){t.$set(t.addData,"owner",s)},expression:"addData.owner"}}),t.showAddAssist?e("div",{staticClass:"task-add-assist"},[e("Checkbox",{attrs:{"true-value":1,"false-value":0},model:{value:t.addData.add_assist,callback:function(s){t.$set(t.addData,"add_assist",s)},expression:"addData.add_assist"}},[t._v(t._s(t.$L("\u52A0\u5165\u4EFB\u52A1\u534F\u52A9\u4EBA\u5458\u5217\u8868")))]),e("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch,content:t.$L("\u4F60\u4E0D\u662F\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u65F6\u5EFA\u8BAE\u52A0\u5165\u4EFB\u52A1\u534F\u52A9\u4EBA\u5458\u5217\u8868")}},[e("Icon",{attrs:{type:"ios-alert-outline"}})],1)],1):t._e()],1),e("FormItem",[e("div",{attrs:{slot:"label"},slot:"label"},[e("EDropdown",{ref:"eDropdownRef",attrs:{trigger:"click",placement:"bottom"},on:{command:t.dropVisible}},[e("span",{staticClass:"visibility-text"},[t._v(t._s(t.$L("\u53EF\u89C1\u6027"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE740")])]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:1}},[e("div",{staticClass:"task-menu-icon"},[t.addData.visibility_appoint==1?e("Icon",{staticClass:"completed",attrs:{type:"md-checkmark-circle"}}):e("Icon",{staticClass:"uncomplete",attrs:{type:"md-radio-button-off"}}),t._v(" "+t._s(t.$L("\u9879\u76EE\u4EBA\u5458"))+" ")],1)]),e("EDropdownItem",{attrs:{command:2}},[e("div",{staticClass:"task-menu-icon"},[t.addData.visibility_appoint==2?e("Icon",{staticClass:"completed",attrs:{type:"md-checkmark-circle"}}):e("Icon",{staticClass:"uncomplete",attrs:{type:"md-radio-button-off"}}),t._v(" "+t._s(t.$L("\u4EFB\u52A1\u4EBA\u5458"))+" ")],1)]),e("EDropdownItem",{attrs:{command:3}},[e("div",{staticClass:"task-menu-icon"},[t.addData.visibility_appoint==3?e("Icon",{staticClass:"completed",attrs:{type:"md-checkmark-circle"}}):e("Icon",{staticClass:"uncomplete",attrs:{type:"md-radio-button-off"}}),t._v(" "+t._s(t.$L("\u6307\u5B9A\u6210\u5458"))+" ")],1)])],1)],1)],1),t.addData.visibility_appoint<3?e("div",{staticClass:"ivu-input task-add-visibility",on:{click:t.showCisibleDropdown}},[t.addData.visibility_appoint==1?e("span",[t._v(t._s(t.$L("\u9879\u76EE\u4EBA\u5458\u53EF\u89C1")))]):t.addData.visibility_appoint==2?e("span",[t._v(t._s(t.$L("\u4EFB\u52A1\u4EBA\u5458\u53EF\u89C1")))]):t._e()]):e("UserSelect",{ref:"visibleUserSelectRef",attrs:{"avatar-size":24,title:t.$L("\u9009\u62E9\u6307\u5B9A\u4EBA\u5458"),"project-id":t.addData.project_id,border:""},on:{"on-show-change":t.visibleUserSelectShowChange},model:{value:t.addData.visibility_appointor,callback:function(s){t.$set(t.addData,"visibility_appointor",s)},expression:"addData.visibility_appointor"}})],1),e("div",{staticClass:"subtasks"},[t.addData.subtasks.length>0?e("div",{staticClass:"sublist"},[e("Row",[e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u4EFB\u52A1\u63CF\u8FF0")))]),e("Col",{attrs:{span:"8"}},[t._v(t._s(t.$L("\u8BA1\u5212\u65F6\u95F4")))]),e("Col",{attrs:{span:"4"}},[t._v(t._s(t.$L("\u8D1F\u8D23\u4EBA")))])],1),t._l(t.addData.subtasks,function(s,i){return e("Row",{key:i},[e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:255,clearable:""},on:{"on-clear":function(o){return t.addData.subtasks.splice(i,1)}},model:{value:s.name,callback:function(o){t.$set(s,"name",o)},expression:"item.name"}})],1),e("Col",{attrs:{span:"8"}},[e("DatePicker",{attrs:{options:t.timeOptions,editable:!1,placeholder:t.$L("\u9009\u62E9\u65F6\u95F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange"},on:{"on-change":function(o){return t.taskTimeChange(s.times)}},model:{value:s.times,callback:function(o){t.$set(s,"times",o)},expression:"item.times"}})],1),e("Col",{attrs:{span:"4"}},[e("UserSelect",{attrs:{"multiple-max":1,title:t.$L("\u9009\u62E9\u8D1F\u8D23\u4EBA"),"project-id":t.addData.project_id,"avatar-size":24,border:""},model:{value:s.owner,callback:function(o){t.$set(s,"owner",o)},expression:"item.owner"}})],1)],1)})],2):t._e(),e("Input",{class:["enter-input",t.subName==""?"empty":""],attrs:{type:"text",placeholder:t.$L("+ \u8F93\u5165\u5B50\u4EFB\u52A1\uFF0C\u56DE\u8F66\u6DFB\u52A0\u5B50\u4EFB\u52A1")},on:{"on-enter":t.addSubTask},model:{value:t.subName,callback:function(s){t.subName=s},expression:"subName"}})],1)],1):t._e(),e("div",{staticClass:"ivu-modal-footer"},[e("div",{staticClass:"adaption"},[e("Button",{attrs:{type:"default"},on:{click:t.close}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("ButtonGroup",{staticClass:"page-manage-add-task-button-group"},[e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onAdd}},[t._v(t._s(t.$L("\u6DFB\u52A0\u4EFB\u52A1")))]),e("Dropdown",{attrs:{transfer:""},on:{"on-click":function(s){return t.onAdd(!0)}}},[e("Button",{attrs:{type:"primary"}},[e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{attrs:{disabled:t.loadIng>0}},[t._v(t._s(t.$L("\u63D0\u4EA4\u7EE7\u7EED\u6DFB\u52A0")))])],1)],1)],1)],1)])],1)},mt=[];const ft={name:"TaskAdd",components:{UserSelect:v,TEditor:W},props:{value:{type:Boolean,default:!1}},data(){return{addData:{cascader:[],name:"",content:"",owner:[],add_assist:1,project_id:0,column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:"",visibility_appoint:1,visibility_appointor:[]},cascaderShow:!1,cascaderData:[],cascaderValue:"",cascaderLoading:0,cascaderAlready:[],advanced:!1,subName:"",taskPlugins:["advlist autolink lists link image charmap print preview hr anchor pagebreak","searchreplace visualblocks visualchars code","insertdatetime media nonbreaking save table directionality","emoticons paste codesample","autoresize"],taskOptions:{statusbar:!1,menubar:!1,autoresize_bottom_margin:2,min_height:200,max_height:380,contextmenu:"bold italic underline forecolor backcolor | codesample | uploadImages imagePreview | preview screenload",valid_elements:"a[href|target=_blank],em,strong/b,div[align],span[style],a,br,p,img[src|alt|witdh|height],pre[class],code",toolbar:!1},taskOptionFull:{menubar:"file edit view",valid_elements:"a[href|target=_blank],em,strong/b,div[align],span[style],a,br,p,img[src|alt|witdh|height],pre[class],code",toolbar:"uploadImages | bold italic underline forecolor backcolor | codesample | preview screenload"},taskTimeOpen:!1,timeOptions:{shortcuts:$A.timeOptionShortcuts()},loadIng:0,isMounted:!1,beforeClose:[]}},async mounted(){this.initCascaderData(),await this.initProjectData(),this.$nextTick(()=>this.$refs.input.focus()),this.isMounted=!0},beforeDestroy(){this.beforeClose.some(t=>{typeof t=="function"&&t()}),this.beforeClose=[]},computed:{...d(["cacheProjects","projectId","cacheColumns","taskPriority"]),taskDays(){const{times:t}=this.addData;let a=$A.date2string(t,"Y-m-d H:i");if(a[0]&&a[1]){let e=Math.ceil(($A.Date(a[1],!0)-$A.Date(a[0],!0))/86400);if(e>0)return e}return 0},showAddAssist(){return!this.addData.owner.includes(this.userId)}},watch:{"addData.project_id"(t){t>0&&$A.IDBSave("cacheAddTaskProjectId",t)},"addData.column_id"(t){t>0&&$A.IDBSave("cacheAddTaskColumnId",t);const{project_id:a}=this.addData;a&&t?this.$set(this.addData,"cascader",[a,t]):this.$set(this.addData,"cascader",[])}},methods:{initCascaderData(){const t=$A.cloneJSON(this.cacheProjects).sort((a,e)=>a.top_at||e.top_at?$A.Date(e.top_at)-$A.Date(a.top_at):e.id-a.id);this.cascaderData=t.map(a=>{const e=this.cacheColumns.filter(({project_id:i})=>i==a.id).map(i=>({value:i.id,label:i.name})),s={value:a.id,label:a.name,children:e};return e.length==0&&(s.loading=!1),s})},async initProjectData(){let t=await $A.IDBInt("cacheAddTaskProjectId"),a=this.cacheProjects.find(({id:e})=>e==this.projectId)||this.cacheProjects.find(({id:e})=>e==t)||this.cacheProjects.find(({id:e})=>e>0);if(a){let e=await $A.IDBInt("cacheAddTaskColumnId"),s=this.cacheColumns.find(({project_id:i,id:o})=>i==a.id&&o==e)||this.cacheColumns.find(({project_id:i})=>i==a.id);s?(this.addData.project_id=s.project_id,this.addData.column_id=s.id):this.$store.dispatch("getColumns",a.id).then(()=>{s=this.cacheColumns.find(({project_id:i,id:o})=>i==a.id&&o==e)||this.cacheColumns.find(({project_id:i})=>i==a.id),s&&(this.addData.project_id=s.project_id,this.addData.column_id=s.id)}).catch(()=>{})}this.taskPriority.length>0&&this.choosePriority(this.taskPriority[0])},taskTimeChange(t){let a=$A.date2string(t,"Y-m-d H:i");a[0]&&a[1]&&$A.rightExists(a[0],"00:00")&&$A.rightExists(a[1],"00:00")&&this.$set(this.addData,"times",[a[0],a[1].replace("00:00","23:59")])},taskTimeOpenChange(t){this.taskTimeOpen=t},onKeydown(t){if(t.keyCode===13){if(t.shiftKey)return;t.preventDefault(),this.onAdd()}},addSubTask(){this.subName.trim()!==""&&(this.addData.subtasks.push({name:this.subName.trim(),owner:[this.userId],times:[]}),this.subName="")},taskPriorityContent(t){let a=$A.runNum(t.days);return a<=0?t.name+" ("+this.$L("\u65E0\u65F6\u95F4\u9650\u5236")+")":t.name+" ("+a+this.$L("\u5929")+")"},choosePriority(t){let a=new Date,e=$A.runNum(t.days);if(e>0){let s=new Date(new Date().setDate(a.getDate()+e));this.$set(this.addData,"times",$A.date2string([a,s]))}else this.$set(this.addData,"times",[]);this.$set(this.addData,"p_level",t.priority),this.$set(this.addData,"p_name",t.name),this.$set(this.addData,"p_color",t.color)},cascaderLoadData(t,a){t.loading=!0,this.$store.dispatch("getColumns",t.value).then(e=>{t.children=e.map(s=>({value:s.id,label:s.name})),t.loading=!1,a()}).catch(()=>{t.loading=!1,a()})},cascaderChange(t){t[1]&&(this.$set(this.addData,"project_id",t[0]),this.$set(this.addData,"column_id",t[1]))},cascaderInputChange(t){this.cascaderValue=t||"",this.cascaderAlready[this.cascaderValue]!==!0&&(this.cascaderAlready[this.cascaderValue]=!0,setTimeout(()=>{this.cascaderLoading++},1e3),this.$store.dispatch("getProjects",{keys:{name:this.cascaderValue},getcolumn:"yes"}).then(()=>{this.cascaderLoading--,this.initCascaderData()}).catch(()=>{this.cascaderLoading--}))},setData(t){if(!this.isMounted){this.__setData&&clearTimeout(this.__setData),this.__setData=setTimeout(a=>this.setData(t),10);return}typeof t.beforeClose!="undefined"&&(this.beforeClose.push(t.beforeClose),delete t.beforeClose),this.addData=Object.assign({},this.addData,t)},onAdd(t){if(!this.addData.name){$A.messageError("\u4EFB\u52A1\u63CF\u8FF0\u4E0D\u80FD\u4E3A\u7A7A");return}this.loadIng++,this.$store.dispatch("taskAdd",this.addData).then(({msg:a})=>{this.loadIng--,$A.messageSuccess(a),t===!0?(this.addData=Object.assign({},this.addData,{name:"",content:"",subtasks:[]}),this.$refs.input.focus()):(this.addData={cascader:[],name:"",content:"",owner:[],add_assist:1,column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:""},this.close())}).catch(({msg:a})=>{this.loadIng--,$A.modalError(a)})},close(){this.$emit("input",!this.value)},showCisibleDropdown(){this.$refs.eDropdownRef.show()},visibleUserSelectShowChange(t){if(!t&&(this.addData.visibility_appointor.length==0||!this.addData.visibility_appointor[0])){let a=this.addData.old_visibility_appoint;this.addData.visibility_appoint=a>2?1:a||1,this.addData.visibility_appoint<3}},dropVisible(t){switch(t){case 1:case 2:this.addData.visibility_appoint=t;break;case 3:this.addData.old_visibility_appoint=this.addData.visibility_appoint,this.addData.visibility_appoint=t,this.$nextTick(()=>{this.$refs.visibleUserSelectRef.onSelection()});break}}}},D={};var gt=r(ft,pt,mt,!1,vt,null,null,null);function vt(t){for(let a in D)this[a]=D[a]}var _t=function(){return gt.exports}(),$t=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"report-list-wrap"},[e("div",{staticClass:"search-expand"},[e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.type,callback:function(s){t.$set(t.keys,"type",s)},expression:"keys.type"}},t._l(t.reportTypeList,function(s){return e("Option",{key:s.value,attrs:{value:s.value}},[t._v(t._s(s.label))])}),1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u65F6\u95F4"))+" ")]),e("div",{staticClass:"search-content"},[e("DatePicker",{attrs:{type:"daterange","split-panels":"",placeholder:t.$L("\u8BF7\u9009\u62E9\u65F6\u95F4")},model:{value:t.keys.created_at,callback:function(s){t.$set(t.keys,"created_at",s)},expression:"keys.created_at"}})],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(s){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"expand-button-group"},[e("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.addReport}},[t._v(t._s(t.$L("\u65B0\u589E\u62A5\u544A")))])],1)]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.lists,loading:t.loadIng>0,"no-data-text":t.$L(t.noDataText),stripe:""}}),e("Page",{attrs:{total:t.listTotal,current:t.listPage,"page-size":t.listPageSize,disabled:t.loadIng>0,simple:t.windowPortrait,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])},bt=[];const kt={name:"ReportMy",data(){return{loadIng:0,columns:[{title:this.$L("\u540D\u79F0"),key:"title",minWidth:180,render:(t,{row:a})=>t("AutoTip",a.title)},{title:this.$L("\u7C7B\u578B"),key:"type",align:"center",width:90},{title:this.$L("\u6C47\u62A5\u65F6\u95F4"),key:"created_at",align:"center",width:180},{title:this.$L("\u6C47\u62A5\u5BF9\u8C61"),key:"receives",align:"center",width:90,render:(t,{row:a})=>{if(a.receives.length===0)return t("div","-");const e=[];return a.receives.length<=2?a.receives.some(s=>{e.push(t("UserAvatar",{props:{size:22,userid:s}}))}):(e.push(t("UserAvatar",{props:{size:22,userid:a.receives[0]}})),e.push(t("div",{class:"more-avatar"},`+${a.receives.length-1}`))),t("div",{class:"report-table-avatar"},e)}},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,minWidth:100,render:(t,{column:a,row:e})=>e.id?t("TableAction",{props:{column:a,menu:[{icon:"md-create",action:"edit"},{icon:"md-eye",action:"view"}]},on:{action:s=>{s==="edit"?this.$emit("on-edit",e.id):s==="view"&&this.$emit("on-view",e)}}}):null}],lists:[],listPage:1,listTotal:0,listPageSize:20,noDataText:"\u6570\u636E\u52A0\u8F7D\u4E2D.....",keys:{},keyIs:!1,reportTypeList:[{value:"",label:this.$L("\u5168\u90E8")},{value:"weekly",label:this.$L("\u5468\u62A5")},{value:"daily",label:this.$L("\u65E5\u62A5")}]}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.listPage=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"report/my",data:{keys:this.keys,page:Math.max(this.listPage,1),pagesize:Math.max($A.runNum(this.listPageSize),10)}}).then(({data:t})=>{this.lists=t.data,this.listTotal=t.total,this.noDataText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(({msg:t})=>{$A.messageError(t),this.noDataText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(()=>{this.loadIng--})},setPage(t){this.listPage=t,this.getLists()},setPageSize(t){Math.max($A.runNum(this.listPageSize),10)!==t&&(this.listPageSize=t,this.getLists())},addReport(){this.$emit("on-edit",0)}}},L={};var yt=r(kt,$t,bt,!1,wt,null,null,null);function wt(t){for(let a in L)this[a]=L[a]}var Dt=function(){return yt.exports}(),Lt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"report-list-wrap"},[e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5173\u952E\u8BCD"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{placeholder:t.$L("\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22"),clearable:""},model:{value:t.keys.key,callback:function(s){t.$set(t.keys,"key",s)},expression:"keys.key"}})],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.type,callback:function(s){t.$set(t.keys,"type",s)},expression:"keys.type"}},t._l(t.reportTypeList,function(s){return e("Option",{key:s.value,attrs:{value:s.value}},[t._v(t._s(s.label))])}),1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u65F6\u95F4"))+" ")]),e("div",{staticClass:"search-content"},[e("DatePicker",{attrs:{type:"daterange","split-panels":"",placeholder:t.$L("\u8BF7\u9009\u62E9\u65F6\u95F4")},model:{value:t.keys.created_at,callback:function(s){t.$set(t.keys,"created_at",s)},expression:"keys.created_at"}})],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(s){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.lists,loading:t.loadIng>0,"no-data-text":t.$L(t.noDataText),stripe:""},on:{"on-selection-change":t.selectChange}}),e("div",{staticClass:"table-attach"},[e("div",{staticClass:"select-box"},[e("Select",{attrs:{disabled:t.selectIds.length==0,placeholder:t.$L("\u8BF7\u9009\u62E9"),transfer:""},on:{"on-change":function(s){t.groupSelect=!0}},model:{value:t.selectAction,callback:function(s){t.selectAction=s},expression:"selectAction"}},[e("Option",{attrs:{value:"read"}},[t._v(t._s(t.$L("\u6807\u8BB0\u5DF2\u8BFB")))]),e("Option",{attrs:{value:"unread"}},[t._v(t._s(t.$L("\u6807\u8BB0\u672A\u8BFB")))])],1),e("Button",{attrs:{loading:t.loadIng>0,type:"primary",disabled:t.selectAction==""||t.selectIds.length==0},on:{click:t.selectClick}},[t._v(t._s(t.$L("\u6267\u884C")))])],1),e("Page",{attrs:{total:t.listTotal,current:t.listPage,"page-size":t.listPageSize,disabled:t.loadIng>0,simple:t.windowPortrait,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)],1)])},Ct=[];const xt={name:"ReportReceive",data(){return{loadIng:0,columns:[{type:"selection",width:50,align:"right"},{title:this.$L("\u6807\u9898"),key:"title",sortable:!0,minWidth:180,render:(t,{row:a})=>{let e=[];const s=a.receives_user.find(({userid:i})=>i==this.userId);return s&&s.pivot.read==0?e.push(t("Tag",{props:{color:"orange"},style:{flexShrink:0}},this.$L("\u672A\u8BFB")),t("AutoTip",a.title)):e.push(t("AutoTip",a.title)),t("div",{style:{display:"flex",alignItems:"center"}},e)}},{title:this.$L("\u7C7B\u578B"),key:"type",sortable:!0,width:90},{title:this.$L("\u63A5\u6536\u65F6\u95F4"),key:"receive_time",align:"center",sortable:!0,width:180},{title:this.$L("\u64CD\u4F5C"),align:"center",width:90,minWidth:90,render:(t,{column:a,row:e})=>e.id?t("TableAction",{props:{column:a,menu:[{icon:"md-eye",action:"view"}]},on:{action:s=>{if(s==="view"){this.$emit("on-view",e);const i=e.receives_user.find(({userid:o})=>o==this.userId);i&&this.$set(i.pivot,"read",1)}}}}):null}],lists:[],listPage:1,listTotal:0,listPageSize:20,noDataText:"\u6570\u636E\u52A0\u8F7D\u4E2D.....",keys:{},keyIs:!1,selectIds:[],selectAction:"",reportTypeList:[{value:"",label:this.$L("\u5168\u90E8")},{value:"weekly",label:this.$L("\u5468\u62A5")},{value:"daily",label:this.$L("\u65E5\u62A5")}]}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.listPage=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"report/receive",data:{keys:this.keys,page:Math.max(this.listPage,1),pagesize:Math.max($A.runNum(this.listPageSize),10)}}).then(({data:t})=>{this.lists=t.data,this.listTotal=t.total,this.noDataText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(({msg:t})=>{$A.messageError(t),this.noDataText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(()=>{this.loadIng--})},setPage(t){this.listPage=t,this.getLists()},setPageSize(t){Math.max($A.runNum(this.listPageSize),10)!==t&&(this.listPageSize=t,this.getLists())},selectChange(t){this.selectIds=t.map(({id:a})=>a)},selectClick(){if(this.selectIds.length===0){$A.messageWarning("\u8BF7\u9009\u62E9\u7EBF\u8DEF");return}switch(this.selectAction){case"read":case"unread":this.readReport(this.selectIds,this.selectAction);break;default:$A.messageWarning("\u8BF7\u9009\u62E9\u6267\u884C\u65B9\u5F0F");break}},readReport(t,a){const e=a==="read"?"\u6807\u8BB0\u5DF2\u8BFB":"\u6807\u8BB0\u672A\u8BFB";$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u8981\u3010${e}\u3011\u5417\uFF1F`,cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",loading:!0,onOk:()=>new Promise((s,i)=>{this.$store.dispatch("call",{url:"report/mark",data:{id:t,action:a}}).then(({msg:o})=>{s(o),this.getLists(),this.$emit("on-read")}).catch(({msg:o})=>{i(o)})})})}}},C={};var Tt=r(xt,Lt,Ct,!1,St,null,null,null);function St(t){for(let a in C)this[a]=C[a]}var It=function(){return Tt.exports}(),At=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"report"},[e("Tabs",{model:{value:t.reportTabs,callback:function(s){t.reportTabs=s},expression:"reportTabs"}},[e("TabPane",{attrs:{label:t.$L("\u6211\u7684\u6C47\u62A5"),name:"my"}},[t.reportTabs==="my"?e("ReportMy",{ref:"report",on:{"on-view":t.onView,"on-edit":t.onEditReport}}):t._e()],1),e("TabPane",{attrs:{label:t.tabRebder(t.reportUnreadNumber),name:"receive"}},[t.reportTabs==="receive"?e("ReportReceive",{on:{"on-view":t.onView,"on-read":t.onRead}}):t._e()],1)],1),e("DrawerOverlay",{attrs:{placement:"right",size:950,transfer:""},model:{value:t.showDetailDrawer,callback:function(s){t.showDetailDrawer=s},expression:"showDetailDrawer"}},[t.showDetailDrawer?e("ReportDetail",{attrs:{data:t.detailData}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1e3,transfer:""},model:{value:t.showEditDrawer,callback:function(s){t.showEditDrawer=s},expression:"showEditDrawer"}},[t.showEditDrawer?e("ReportEdit",{attrs:{id:t.reportId},on:{saveSuccess:t.saveSuccess}}):t._e()],1)],1)},Mt=[];const jt={name:"Report",components:{DrawerOverlay:B,ReportEdit:H,ReportMy:Dt,ReportReceive:It,ReportDetail:V},props:{value:{default:"my"}},data(){return{reportTabs:"my",showDetailDrawer:!1,showEditDrawer:!1,detailData:{},reportId:0}},mounted(){this.reportTabs=this.value,this.$isMainElectron&&this.$Electron.listenerOnly("reportSaveSuccess",({data:t,msg:a})=>{$A.messageSuccess(a),this.saveSuccess(t)})},computed:{...d(["reportUnreadNumber"])},watch:{reportTabs(t){this.$emit("input",t)}},methods:{tabRebder(t){return a=>t>0?a("div",[a("span",{class:"navbar-item-content"},this.$L("\u6536\u5230\u7684\u6C47\u62A5")),a("Badge",{class:"manage-box-report",props:{count:t}})]):a("div",[a("span",{class:"navbar-item-content"},this.$L("\u6536\u5230\u7684\u6C47\u62A5"))])},onView(t){if(this.detailData=t,this.$emit("on-read"),this.$Electron){let a={title:t.title,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)};this.$Electron.sendMessage("windowRouter",{name:`report-detail-${t.id}`,path:`/single/report/detail/${t.id}`,force:!1,config:a})}else this.showDetailDrawer=!0},onRead(){this.$emit("on-read",0)},onEditReport(t){if(this.$Electron){let a={title:this.$L(t>0?"\u4FEE\u6539\u62A5\u544A":"\u65B0\u589E\u62A5\u544A"),parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)};this.$Electron.sendMessage("windowRouter",{name:`report-edit-${t}`,path:`/single/report/edit/${t}`,force:!1,config:a})}else this.reportId=t,this.showEditDrawer=!0},saveSuccess(){this.reportId=0,this.reportTabs="my",this.showEditDrawer=!1,this.$refs.report&&this.$refs.report.getLists()}}},x={};var Pt=r(jt,At,Mt,!1,Ut,null,null,null);function Ut(t){for(let a in x)this[a]=x[a]}var Rt=function(){return Pt.exports}(),Et=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"mobile-back"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.windowScrollY>0,expression:"windowScrollY > 0"}],ref:"bar",staticClass:"back-bar"}),t.show?e("div",{staticClass:"back-semicircle",style:t.style}):t._e()])},Bt=[];const Nt={name:"MobileBack",props:{showTabbar:{type:Boolean,default:!1}},data(){return{show:!1,x:0,y:0}},created(){this.appAndroidEvents()},mounted(){this.$refs.bar.addEventListener("touchmove",this.barListener),document.addEventListener("touchstart",this.touchstart),document.addEventListener("touchmove",this.touchmove),document.addEventListener("touchend",this.touchend)},beforeDestroy(){this.$refs.bar.removeEventListener("touchmove",this.barListener),document.removeEventListener("touchstart",this.touchstart),document.removeEventListener("touchmove",this.touchmove),document.removeEventListener("touchend",this.touchend)},computed:{...d(["fileLists","messengerSearchKey"]),style(){const a=Math.max(135,this.y)+this.windowScrollY,e=this.windowHeight-135;return{top:Math.min(a,e)+"px",left:this.x>20?0:"-50px"}},routeName(){return this.$route.name},fileFolderId(){const{folderId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)}},watch:{show(t){t?document.body.classList.add("touch-back"):document.body.classList.remove("touch-back"),this.$store.state.touchBackInProgress=t}},methods:{getXY(t){let a=t.touches[0];this.x=a.clientX,this.y=a.clientY},barListener(t){t.preventDefault()},touchstart(t){this.getXY(t),this.show=this.canBack()&&this.x<20},touchmove(t){this.show&&this.getXY(t)},touchend(){this.x>90&&this.show&&this.onBack(),this.x=0,this.show=!1},canBack(){if(!this.showTabbar||this.$Modal.visibles().length>0||this.fileFolderId>0)return!0;if(this.routeName==="manage-messenger"){if(this.$route.params.dialogAction==="contacts"){if(this.messengerSearchKey.contacts)return!0}else if(this.messengerSearchKey.dialog)return!0}return!1},onBack(){if(!this.$Modal.removeLast()){if(this.fileFolderId>0){const t=this.fileLists.find(({id:a,permission:e})=>a==this.fileFolderId&&e>-1);if(t){const a=this.fileLists.find(({id:e,permission:s})=>e==t.pid&&s>-1);if(a){this.goForward({name:"manage-file",params:{folderId:a.id,fileId:null}});return}}this.goForward({name:"manage-file"});return}if(this.routeName==="manage-messenger"){if(this.$route.params.dialogAction==="contacts"){if(this.messengerSearchKey.contacts){this.$store.state.messengerSearchKey.contacts="";return}}else if(this.messengerSearchKey.dialog){this.$store.state.messengerSearchKey.dialog="";return}}this.goBack()}},appAndroidEvents(){this.$isEEUiApp&&$A.isAndroid()&&$A.eeuiAppSetPageBackPressed({pageName:"firstPage"},t=>{this.canBack()?this.onBack():$A.eeuiAppGoDesktop()})}}},T={};var Ot=r(Nt,Et,Bt,!1,zt,null,null,null);function zt(t){for(let a in T)this[a]=T[a]}var Ft=function(){return Ot.exports}(),Wt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.show&&t.userid>0?e("transition",{attrs:{name:"mobile-notify"}},[e("div",{staticClass:"mobile-notification",class:{show:t.show},on:{click:function(s){return s.stopPropagation(),t.onClick.apply(null,arguments)},touchstart:t.onTouchstart,touchmove:t.onTouchmove}},[e("UserAvatar",{attrs:{userid:t.userid,size:40,"show-name":"","name-text":t.title}}),e("div",{staticClass:"notification-desc"},[t._v(t._s(t.desc))])],1)]):t._e()},Ht=[];const Vt={name:"MobileNotification",data(){return{userid:0,title:"",desc:"",duration:6e3,callback:null,show:!1,timer:null,startY:0}},beforeDestroy(){this.timer&&clearTimeout(this.timer),this.show=!1},methods:{open(t){!$A.isJson(t)||(this.userid=t.userid||0,this.title=t.title||"",this.desc=t.desc||"",this.duration=typeof t.duration=="number"?t.duration:6e3,this.callback=typeof t.callback=="function"?t.callback:null,this.show=!0,this.timer&&clearTimeout(this.timer),this.duration>0&&(this.timer=setTimeout(this.close,this.duration)),$A.eeuiAppSendMessage({action:"setVibrate"}))},close(){this.show=!1},onClick(){this.close(),typeof this.callback=="function"&&this.callback()},onTouchstart(t){this.startY=t.touches[0].clientY},onTouchmove(t){this.startY>0&&this.startY-t.touches[0].clientY>10&&(this.startY=0,this.close())}}},S={};var Kt=r(Vt,Wt,Ht,!1,Yt,null,null,null);function Yt(t){for(let a in S)this[a]=S[a]}var Jt=function(){return Kt.exports}(),qt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.userid?e("div",{staticClass:"meeting-player"},[e("div",{staticClass:"player",style:t.playerStyle,attrs:{id:t.id}}),e("UserAvatar",{attrs:{userid:t.userid,size:36,borderWitdh:2}}),e("div",{staticClass:"player-state"},[t.audio?t._e():e("i",{staticClass:"taskfont"},[t._v("\uE7C7")]),t.video?t._e():e("i",{staticClass:"taskfont"},[t._v("\uE7C8")])])],1):t._e()},Gt=[];const Xt={name:"MeetingPlayer",props:{id:{type:String,default:()=>"meeting-player-"+Math.round(Math.random()*1e4)},player:{type:Object,default:()=>({})},isLocal:{type:Boolean,default:!1}},data(){return{timer:null}},mounted(){this.timer=setInterval(t=>{this.audio&&!this.player.audioTrack.isPlaying&&this.play("audio"),this.video&&!this.player.videoTrack.isPlaying&&this.play("video")},3e3)},beforeDestroy(){clearInterval(this.timer)},computed:{...d(["cacheUserBasic"]),userid(){return this.player.uid?parseInt($A.getMiddle(this.player.uid,null,"-")):0},playerStyle(){const t=this.cacheUserBasic.find(({userid:a})=>a==this.userid);return t?{backgroundImage:`url("${t.userimg}")`}:null},audio(){return!!this.player.audioTrack},video(){return!!this.player.videoTrack}},watch:{audio:{handler(t){t&&this.play("audio")},immediate:!0},video:{handler(t){t&&this.play("video")},immediate:!0}},methods:{play(t){this.$nextTick(a=>{try{t==="audio"?!this.isLocal&&this.player.audioTrack.play():t==="video"&&this.player.videoTrack.play(this.id)}catch(e){console.log("Meeting Player Error",e)}})}}},I={};var Qt=r(Xt,qt,Gt,!1,Zt,null,null,null);function Zt(t){for(let a in I)this[a]=I[a]}var te=function(){return Qt.exports}(),ee=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{ref:"floatDrag",style:t.dragStyle,on:{mousedown:function(s){return s.stopPropagation(),s.preventDefault(),t.mouseDown.apply(null,arguments)}}},[t._t("default")],2)},ae=[];const se={name:"DragBallComponent",props:{id:{type:String,default:""},distanceRight:{type:Number,default:0},distanceBottom:{type:Number,default:100},isScrollHidden:{type:Boolean,default:!1},isCanDraggable:{type:Boolean,default:!0},zIndex:{type:Number,default:50}},data(){return{clientWidth:null,clientHeight:null,top:0,left:0,timer:null,currentTop:0,isMoving:!1,record:{}}},created(){this.clientWidth=document.documentElement.clientWidth,this.clientHeight=document.documentElement.clientHeight},mounted(){this.id&&($A.isJson(window._DragBallComponent)||(window._DragBallComponent={})),this.isCanDraggable&&this.$nextTick(()=>{this.id&&$A.isJson(window._DragBallComponent[this.id])?(this.left=window._DragBallComponent[this.id].left,this.top=window._DragBallComponent[this.id].top):(this.left=this.clientWidth-this.floatDrag.offsetWidth-this.distanceRight,this.top=this.clientHeight-this.floatDrag.offsetHeight-this.distanceBottom),this.initDraggable()}),this.isScrollHidden&&window.addEventListener("scroll",this.handleScroll),window.addEventListener("resize",this.handleResize)},beforeDestroy(){this.id&&(window._DragBallComponent[this.id]={left:this.left,top:this.top}),window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.handleResize)},computed:{dragStyle(){return{left:this.left+"px",top:this.top+"px",zIndex:this.zIndex,position:"fixed"}},floatDrag(){return this.$refs.floatDrag}},methods:{handleScroll(){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this.handleScrollEnd()},200),this.currentTop=document.documentElement.scrollTop||document.body.scrollTop,this.left>this.clientWidth/2?this.left=this.clientWidth+this.floatDrag.offsetWidth:this.left=-this.floatDrag.offsetWidth},handleScrollEnd(){(document.documentElement.scrollTop||document.body.scrollTop)===this.currentTop&&(this.left>this.clientWidth/2?this.left=this.clientWidth-this.floatDrag.offsetWidth:this.left=0,clearTimeout(this.timer))},handleResize(){this.clientWidth=document.documentElement.clientWidth,this.clientHeight=document.documentElement.clientHeight,this.$nextTick(this.checkDraggablePosition)},initDraggable(){this.floatDrag.addEventListener("touchstart",this.toucheStart),this.floatDrag.addEventListener("touchmove",this.touchMove),this.floatDrag.addEventListener("touchend",this.touchEnd)},mouseDown(t){this.record={time:new Date().getTime(),top:this.floatDrag.offsetTop,left:this.floatDrag.offsetLeft,x:t.clientX-this.floatDrag.offsetLeft,y:t.clientY-this.floatDrag.offsetTop},this.floatDrag.style.transition="none",this.canClick=!1,document.onmousemove=a=>{let e=a.clientX-this.record.x,s=a.clientY-this.record.y;e<0?e=0:e>window.innerWidth-this.floatDrag.offsetWidth&&(e=window.innerWidth-this.floatDrag.offsetWidth),s<0?s=0:s>window.innerHeight-this.floatDrag.offsetHeight&&(s=window.innerHeight-this.floatDrag.offsetHeight),this.left=e,this.top=s},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,this.checkDraggablePosition(),this.floatDrag.style.transition="all 0.3s",(Math.abs(this.record.top-this.floatDrag.offsetTop)<5&&Math.abs(this.record.left-this.floatDrag.offsetLeft)<5||new Date().getTime()-this.record.time<200)&&this.$emit("on-click")}},toucheStart(){this.canClick=!1,this.floatDrag.style.transition="none"},touchMove(t){if(this.canClick=!0,t.targetTouches.length===1){let a=event.targetTouches[0],e=a.clientX-this.floatDrag.offsetWidth/2,s=a.clientY-this.floatDrag.offsetHeight/2;e<0?e=0:e>window.innerWidth-this.floatDrag.offsetWidth&&(e=window.innerWidth-this.floatDrag.offsetWidth),s<0?s=0:s>window.innerHeight-this.floatDrag.offsetHeight&&(s=window.innerHeight-this.floatDrag.offsetHeight),this.left=e,this.top=s}},touchEnd(){!this.canClick||(this.floatDrag.style.transition="all 0.3s",this.checkDraggablePosition())},checkDraggablePosition(){this.left+this.floatDrag.offsetWidth/2>=this.clientWidth/2?this.left=this.clientWidth-this.floatDrag.offsetWidth:this.left=0,this.top<0&&(this.top=0),this.top+this.floatDrag.offsetHeight>=this.clientHeight&&(this.top=this.clientHeight-this.floatDrag.offsetHeight)}}},A={};var ie=r(se,ee,ae,!1,oe,null,null,null);function oe(t){for(let a in A)this[a]=A[a]}var re=function(){return ie.exports}(),ne=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"meeting-warp"},[e("Modal",{attrs:{title:t.$L(t.addData.type==="join"?"\u52A0\u5165\u4F1A\u8BAE":"\u65B0\u4F1A\u8BAE"),"mask-closable":!1},model:{value:t.addShow,callback:function(s){t.addShow=s},expression:"addShow"}},[e("Form",{ref:"addForm",attrs:{model:t.addData,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[t.addData.type==="join"?[t.addData.name?e("FormItem",{attrs:{prop:"userids",label:t.$L("\u4F1A\u8BAE\u4E3B\u9898")}},[e("Input",{attrs:{disabled:""},model:{value:t.addData.name,callback:function(s){t.$set(t.addData,"name",s)},expression:"addData.name"}})],1):t._e(),e("FormItem",{attrs:{prop:"meetingid",label:t.$L("\u4F1A\u8BAE\u9891\u9053ID")}},[e("Input",{attrs:{disabled:t.addData.meetingdisabled===!0,placeholder:t.$L("\u8BF7\u8F93\u5165\u4F1A\u8BAE\u9891\u9053ID")},model:{value:t.addData.meetingid,callback:function(s){t.$set(t.addData,"meetingid",s)},expression:"addData.meetingid"}})],1)]:[e("FormItem",{attrs:{prop:"name",label:t.$L("\u4F1A\u8BAE\u4E3B\u9898")}},[e("Input",{attrs:{maxlength:50,placeholder:t.$L("\u9009\u586B")},model:{value:t.addData.name,callback:function(s){t.$set(t.addData,"name",s)},expression:"addData.name"}})],1),e("FormItem",{attrs:{prop:"userids",label:t.$L("\u9080\u8BF7\u6210\u5458")}},[e("UserSelect",{attrs:{uncancelable:[t.userId],"multiple-max":20,title:t.$L("\u9009\u62E9\u9080\u8BF7\u6210\u5458")},model:{value:t.addData.userids,callback:function(s){t.$set(t.addData,"userids",s)},expression:"addData.userids"}})],1)],e("FormItem",{attrs:{prop:"tracks"}},[e("CheckboxGroup",{model:{value:t.addData.tracks,callback:function(s){t.$set(t.addData,"tracks",s)},expression:"addData.tracks"}},[e("Checkbox",{attrs:{label:"audio"}},[e("span",[t._v(t._s(t.$L("\u9EA6\u514B\u98CE")))])]),e("Checkbox",{attrs:{label:"video"}},[e("span",[t._v(t._s(t.$L("\u6444\u50CF\u5934")))])])],1)],1)],2),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.addShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onSubmit}},[t._v(t._s(t.$L(t.addData.type==="join"?"\u52A0\u5165\u4F1A\u8BAE":"\u5F00\u59CB\u4F1A\u8BAE")))])],1)],1),e("Modal",{ref:"meetingModal",attrs:{title:t.addData.name,mask:!1,"mask-closable":!1,closable:!1,"transition-names":["",""],beforeClose:t.onClose,"class-name":`meeting-manager${t.meetingMini?" meeting-hidden":""}`,fullscreen:""},model:{value:t.meetingShow,callback:function(s){t.meetingShow=s},expression:"meetingShow"}},[e("ul",[t.localUser.uid?e("li",[e("MeetingPlayer",{attrs:{player:t.localUser,isLocal:""}})],1):t._e(),t._l(t.remoteUsers,function(s){return e("li",[e("MeetingPlayer",{attrs:{player:s}})],1)})],2),e("div",{staticClass:"adaption meeting-button-group",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"primary",loading:t.audioLoad},on:{click:t.onAudio}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.localUser.audioTrack?"":"")}})]),e("Button",{attrs:{type:"primary",loading:t.videoLoad},on:{click:t.onVideo}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.localUser.videoTrack?"":"")}})]),t.windowPortrait?[e("Button",{attrs:{type:"primary"},on:{click:function(s){return t.onInvitation("open")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE646")])]),e("Button",{attrs:{type:"primary"},on:{click:function(s){t.meetingMini=!0}}},[e("i",{staticClass:"taskfont"},[t._v("\uE656")])]),e("Button",{attrs:{type:"warning",loading:t.loadIng>0},on:{click:t.onClose}},[e("i",{staticClass:"taskfont"},[t._v("\uE612")])])]:[e("Button",{attrs:{type:"primary"},on:{click:function(s){return t.onInvitation("open")}}},[t._v(t._s(t.$L("\u9080\u8BF7")))]),e("Button",{attrs:{type:"primary"},on:{click:function(s){t.meetingMini=!0}}},[t._v(t._s(t.$L("\u6700\u5C0F\u5316")))]),e("Button",{attrs:{type:"warning",loading:t.loadIng>0},on:{click:t.onClose}},[t._v(t._s(t.$L("\u79BB\u5F00\u4F1A\u8BAE")))])]],2)]),t.meetingMini?e("DragBallComponent",{attrs:{id:"meetingDragBall","z-index":3e3},on:{"on-click":function(s){t.meetingMini=!1}}},[e("div",{staticClass:"meeting-drag-ball"},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.localUser.audioTrack?"":"")}}),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.localUser.videoTrack?"":"")}}),e("em",[t._v(t._s(t.$L("\u4F1A\u8BAE\u4E2D")))])])]):t._e(),e("Modal",{attrs:{title:t.$L("\u9080\u8BF7\u52A0\u5165"),"mask-closable":!1},model:{value:t.invitationShow,callback:function(s){t.invitationShow=s},expression:"invitationShow"}},[e("Form",{ref:"invitationForm",attrs:{model:t.invitationData,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{prop:"userids",label:t.$L("\u9080\u8BF7\u6210\u5458")}},[e("UserSelect",{attrs:{"multiple-max":20,title:t.$L("\u9009\u62E9\u9080\u8BF7\u6210\u5458")},model:{value:t.invitationData.userids,callback:function(s){t.$set(t.invitationData,"userids",s)},expression:"invitationData.userids"}})],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.invitationShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.invitationLoad},on:{click:function(s){return t.onInvitation("submit")}}},[t._v(t._s(t.$L("\u53D1\u9001\u9080\u8BF7")))])],1)],1)],1)},le=[];const ce={name:"MeetingManager",components:{UserSelect:v,DragBallComponent:re,MeetingPlayer:te},data(){return{loadIng:0,subscribe:null,addShow:!1,addData:{userids:[],tracks:["audio"]},invitationShow:!1,invitationLoad:!1,invitationData:{userids:[]},meetingShow:!1,meetingMini:!1,audioLoad:!1,videoLoad:!1,agoraClient:null,remoteUsers:[],localUser:{uid:null,audioTrack:null,videoTrack:null}}},mounted(){this.subscribe=c.Store.subscribe("addMeeting",this.onAdd)},beforeDestroy(){this.subscribe&&(this.subscribe.unsubscribe(),this.subscribe=null)},watch:{meetingShow(t){t?$A.eeuiAppKeepScreenOn():$A.eeuiAppKeepScreenOff()},meetingMini(t){t||(this.$refs.meetingModal.modalIndex=this.$refs.meetingModal.handleGetModalIndex())}},methods:{onAdd(t){t=$A.isJson(t)?t:{},/^\d+$/.test(t.dialog_id)&&(this.loadIng++,this.$store.dispatch("call",{url:"dialog/user",data:{dialog_id:t.dialog_id}}).then(({data:a})=>{this.$set(this.addData,"userids",a.map(e=>e.userid))}).finally(a=>{this.loadIng--}),delete t.dialog_id),$A.isArray(t.userids)?t.userids.includes(this.userId)||t.userids.push(this.userId):t.userids=[this.userId],$A.isArray(t.tracks)?t.tracks.includes("audio")||t.tracks.push("audio"):t.tracks=["audio"],this.addData=t,this.addShow=!0},onSubmit(){if(this.meetingShow){$A.modalWarning("\u6B63\u5728\u4F1A\u8BAE\u4E2D\uFF0C\u65E0\u6CD5\u8FDB\u5165\u5176\u4ED6\u4F1A\u8BAE\u5BA4");return}this.$refs.addForm.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"users/meeting/open",data:this.addData}).then(({data:a})=>{this.$set(this.addData,"name",a.name),this.$set(this.addData,"meetingid",a.meetingid),this.$store.dispatch("saveDialogMsg",a.msgs),this.$store.dispatch("updateDialogLastMsg",a.msgs),delete a.name,delete a.msgs,$A.loadScript("js/AgoraRTC_N-4.17.0.js").then(e=>{this.join(a)}).catch(e=>{$A.modalError("\u4F1A\u8BAE\u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01")}).finally(e=>{this.loadIng--})}).catch(({msg:a})=>{this.loadIng--,$A.modalError(a)}))})},onAudio(){this.localUser.audioTrack?this.closeAudio():this.openAudio()},onVideo(){this.localUser.videoTrack?this.closeVideo():this.openVideo()},onInvitation(t){t==="open"?(this.invitationData={userids:[],meetingid:this.addData.meetingid},this.invitationShow=!0):t==="submit"&&(this.invitationLoad=!0,this.$store.dispatch("call",{url:"users/meeting/invitation",data:this.invitationData}).then(({data:a,msg:e})=>{this.invitationShow=!1,this.$store.dispatch("saveDialogMsg",a.msgs),this.$store.dispatch("updateDialogLastMsg",a.msgs),$A.messageSuccess(e)}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.invitationLoad=!1}))},onClose(){return new Promise(t=>{$A.modalConfirm({content:"\u786E\u5B9A\u8981\u79BB\u5F00\u4F1A\u8BAE\u5417\uFF1F",cancelText:"\u7EE7\u7EED",okText:"\u9000\u51FA",onOk:async a=>{await this.leave(),t()}})})},async join(t){this.loadIng++,AgoraRTC.onMicrophoneChanged=async e=>{if(e.state==="ACTIVE")this.localUser.audioTrack.setDevice(e.device.deviceId);else if(e.device.label===this.localUser.audioTrack.getTrackLabel()){const s=await AgoraRTC.getMicrophones();s[0]&&this.localUser.audioTrack.setDevice(s[0].deviceId)}},AgoraRTC.onCameraChanged=async e=>{if(e.state==="ACTIVE")this.localUser.videoTrack.setDevice(e.device.deviceId);else if(e.device.label===this.localUser.videoTrack.getTrackLabel()){const s=await AgoraRTC.getCameras();s[0]&&this.localUser.videoTrack.setDevice(s[0].deviceId)}},AgoraRTC.onAutoplayFailed=()=>{$A.messageWarning("\u70B9\u51FB\u5C4F\u5E55\u5F00\u59CB\u4F1A\u8BAE")},this.agoraClient=AgoraRTC.createClient({mode:"rtc",codec:"vp8"}),this.agoraClient.on("user-joined",this.handleUserJoined),this.agoraClient.on("user-left",this.handleUserLeft),this.agoraClient.on("user-published",this.handleUserPublished),this.agoraClient.on("user-unpublished",this.handleUserUnpublished);const a=[];this.localUser.uid=await this.agoraClient.join(t.appid,t.channel,t.token,t.uid),this.addData.tracks.includes("audio")&&a.push(this.localUser.audioTrack=await AgoraRTC.createMicrophoneAudioTrack()),this.addData.tracks.includes("video")&&a.push(this.localUser.videoTrack=await AgoraRTC.createCameraVideoTrack()),a.length>0&&await this.agoraClient.publish(a),this.loadIng--,this.addShow=!1,this.meetingShow=!0},async leave(){this.loadIng++,["audioTrack","videoTrack"].some(t=>{var a,e;(a=this.localUser[t])==null||a.stop(),(e=this.localUser[t])==null||e.close()}),this.localUser={uid:null,audioTrack:null,videoTrack:null},this.remoteUsers=[],await this.agoraClient.leave(),this.loadIng--,this.meetingShow=!1},async openAudio(){this.audioLoad||this.localUser.audioTrack||(this.audioLoad=!0,this.localUser.audioTrack=await AgoraRTC.createMicrophoneAudioTrack(),await this.agoraClient.publish([this.localUser.audioTrack]),this.audioLoad=!1)},async closeAudio(){this.audioLoad||!this.localUser.audioTrack||(this.audioLoad=!0,await this.agoraClient.unpublish([this.localUser.audioTrack]),this.localUser.audioTrack.stop(),this.localUser.audioTrack.close(),this.localUser.audioTrack=null,this.audioLoad=!1)},async openVideo(){this.videoLoad||this.localUser.videoTrack||(this.videoLoad=!0,this.localUser.videoTrack=await AgoraRTC.createCameraVideoTrack(),await this.agoraClient.publish([this.localUser.videoTrack]),this.videoLoad=!1)},async closeVideo(){this.videoLoad||!this.localUser.videoTrack||(this.videoLoad=!0,await this.agoraClient.unpublish([this.localUser.videoTrack]),this.localUser.videoTrack.stop(),this.localUser.videoTrack.close(),this.localUser.videoTrack=null,this.videoLoad=!1)},async handleUserJoined(t){const a=this.remoteUsers.findIndex(e=>e.uid==t.uid);a>-1?this.remoteUsers.splice(a,1,t):this.remoteUsers.push(t)},async handleUserLeft(t){const a=this.remoteUsers.findIndex(e=>e.uid==t.uid);a>-1&&this.remoteUsers.splice(a,1)},async handleUserPublished(t,a){this.remoteUsers.find(s=>s.uid==t.uid)&&await this.agoraClient.subscribe(t,a)},async handleUserUnpublished(t,a){this.remoteUsers.find(s=>s.uid==t.uid)&&await this.agoraClient.unsubscribe(t,a)}}},M={};var de=r(ce,ne,le,!1,he,null,null,null);function he(t){for(let a in M)this[a]=M[a]}var ue=function(){return de.exports}(),pe=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{attrs:{value:t.visible,mask:!1,"mask-closable":!1,"footer-hide":!0,"transition-names":["mobile-dialog",""],beforeClose:t.onBeforeClose,"class-name":"dialog-modal",fullscreen:""}},[t.windowPortrait&&t.dialogId>0?e("DialogWrapper",{attrs:{dialogId:t.dialogId,beforeBack:t.onBeforeClose}}):t._e()],1)},me=[];const fe={name:"DialogModal",components:{DialogWrapper:Y},data(){return{timer:null}},computed:{...d(["dialogId"]),visible(){return this.dialogId>0&&this.windowPortrait}},methods:{onBeforeClose(){return new Promise(t=>{this.$store.dispatch("openDialog",0)})}}},j={};var ge=r(fe,pe,me,!1,ve,null,null,null);function ve(t){for(let a in j)this[a]=j[a]}var _e=function(){return ge.exports}(),$e=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{attrs:{value:t.show,styles:t.styles,"mask-closable":!1,"footer-hide":!0,beforeClose:t.onBeforeClose,"class-name":"task-modal"}},[e("TaskDetail",{ref:"taskDetail",attrs:{"task-id":t.taskId,"open-task":t.taskData,modalMode:""}})],1)},be=[];const ke={name:"TaskModal",components:{TaskDetail:J},computed:{...d(["taskId"]),...g(["taskData"]),show(){return this.taskId>0},styles(){return{width:"90%",maxWidth:this.taskData.dialog_id?"1200px":"700px"}}},methods:{onBeforeClose(){return new Promise(t=>{this.$store.dispatch("openTask",0)})},checkUpdate(){if(this.show)return this.$refs.taskDetail.checkUpdate(!0),!0}}},P={};var ye=r(ke,$e,be,!1,we,null,null,null);function we(t){for(let a in P)this[a]=P[a]}var De=function(){return ye.exports}(),Le=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{attrs:{title:t.$L("\u5BFC\u51FA\u4EFB\u52A1\u7EDF\u8BA1"),"mask-closable":!1},model:{value:t.show,callback:function(s){t.show=s},expression:"show"}},[e("Form",{ref:"exportTask",attrs:{model:t.formData,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5BFC\u51FA\u6210\u5458")}},[e("UserSelect",{attrs:{"multiple-max":100,"avatar-name":"","show-disable":"",title:t.$L("\u8BF7\u9009\u62E9\u6210\u5458")},model:{value:t.formData.userid,callback:function(s){t.$set(t.formData,"userid",s)},expression:"formData.userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6BCF\u6B21\u6700\u591A\u9009\u62E9\u5BFC\u51FA100\u4E2A\u6210\u5458")))])],1),e("FormItem",{attrs:{label:t.$L("\u65F6\u95F4\u8303\u56F4")}},[e("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange",format:"yyyy/MM/dd",placeholder:t.$L("\u8BF7\u9009\u62E9\u65F6\u95F4")},model:{value:t.formData.time,callback:function(s){t.$set(t.formData,"time",s)},expression:"formData.time"}}),e("div",{staticClass:"form-tip checkin-export-quick-select"},[e("span",[t._v(t._s(t.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),e("em",{on:{click:function(s){t.formData.time=t.dateShortcuts("prev")}}},[t._v(t._s(t.$L("\u4E0A\u4E2A\u6708")))]),e("em",{on:{click:function(s){t.formData.time=t.dateShortcuts("this")}}},[t._v(t._s(t.$L("\u8FD9\u4E2A\u6708")))])])],1),e("FormItem",{attrs:{prop:"type",label:t.$L("\u5BFC\u51FA\u65F6\u95F4\u7C7B\u578B")}},[e("RadioGroup",{model:{value:t.formData.type,callback:function(s){t.$set(t.formData,"type",s)},expression:"formData.type"}},[e("Radio",{attrs:{label:"taskTime"}},[t._v(t._s(t.$L("\u4EFB\u52A1\u65F6\u95F4")))]),e("Radio",{attrs:{label:"createdTime"}},[t._v(t._s(t.$L("\u521B\u5EFA\u65F6\u95F4")))])],1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.show=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onExport}},[t._v(t._s(t.$L("\u5BFC\u51FA")))])],1)],1)},Ce=[];const xe={name:"TaskExport",components:{UserSelect:v},props:{value:{type:Boolean,default:!1}},data(){return{show:this.value,loadIng:0,formData:{userid:[],time:[],type:"taskTime"}}},watch:{value(t){this.show=t},show(t){this.value!==t&&this.$emit("input",t)}},methods:{dateShortcuts(t){if(t==="prev")return[$A.getSpecifyDate("\u4E0A\u4E2A\u6708"),$A.getSpecifyDate("\u4E0A\u4E2A\u6708\u7ED3\u675F")];if(t==="this")return[$A.getSpecifyDate("\u672C\u6708"),$A.getSpecifyDate("\u672C\u6708\u7ED3\u675F")]},onExport(){this.loadIng>0||(this.loadIng++,this.$store.dispatch("call",{url:"project/task/export",data:this.formData}).then(({data:t})=>{this.show=!1,this.$store.dispatch("downUrl",{url:t.url})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))}}},U={};var Te=r(xe,Le,Ce,!1,Se,null,null,null);function Se(t){for(let a in U)this[a]=U[a]}var Ie=function(){return Te.exports}(),Ae=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{attrs:{title:t.$L("\u5BFC\u51FA\u5BA1\u6279\u6570\u636E"),"mask-closable":!1},model:{value:t.show,callback:function(s){t.show=s},expression:"show"}},[e("Form",{ref:"exportTask",attrs:{model:t.formData,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5BA1\u6279\u7C7B\u578B")}},[e("Select",{on:{"on-open-change":t.getProcName},model:{value:t.formData.proc_def_name,callback:function(s){t.$set(t.formData,"proc_def_name",s)},expression:"formData.proc_def_name"}},t._l(t.procList,function(s,i){return e("Option",{key:i,attrs:{value:s.name}},[t._v(t._s(s.name))])}),1)],1),e("FormItem",{attrs:{label:t.$L("\u65F6\u95F4\u8303\u56F4")}},[e("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange",format:"yyyy/MM/dd",placeholder:t.$L("\u8BF7\u9009\u62E9\u65F6\u95F4")},model:{value:t.formData.date,callback:function(s){t.$set(t.formData,"date",s)},expression:"formData.date"}}),e("div",{staticClass:"form-tip checkin-export-quick-select"},[e("span",[t._v(t._s(t.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),e("em",{on:{click:function(s){t.formData.date=t.dateShortcuts("prev")}}},[t._v(t._s(t.$L("\u4E0A\u4E2A\u6708")))]),e("em",{on:{click:function(s){t.formData.date=t.dateShortcuts("this")}}},[t._v(t._s(t.$L("\u8FD9\u4E2A\u6708")))])])],1),e("FormItem",{attrs:{prop:"type",label:t.$L("\u5BFC\u51FA\u7C7B\u578B")}},[e("RadioGroup",{model:{value:t.formData.is_finished,callback:function(s){t.$set(t.formData,"is_finished",s)},expression:"formData.is_finished"}},[e("Radio",{attrs:{label:"0"}},[t._v(t._s(t.$L("\u672A\u5B8C\u6210")))]),e("Radio",{attrs:{label:"1"}},[t._v(t._s(t.$L("\u5DF2\u5B8C\u6210")))])],1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.show=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onExport}},[t._v(t._s(t.$L("\u5BFC\u51FA")))])],1)],1)},Me=[];const je={name:"ApproveExport",props:{value:{type:Boolean,default:!1}},data(){return{show:this.value,loadIng:0,formData:{proc_def_name:"",date:[],is_finished:"1"},procList:[]}},watch:{value(t){this.show=t},show(t){this.value!==t&&this.$emit("input",t)}},methods:{dateShortcuts(t){if(t==="prev")return[$A.getSpecifyDate("\u4E0A\u4E2A\u6708"),$A.getSpecifyDate("\u4E0A\u4E2A\u6708\u7ED3\u675F")];if(t==="this")return[$A.getSpecifyDate("\u672C\u6708"),$A.getSpecifyDate("\u672C\u6708\u7ED3\u675F")]},getProcName(){this.loadIng++,this.$store.dispatch("call",{url:"approve/procdef/all",method:"post"}).then(({data:t})=>{this.procList=t.rows}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},onExport(){this.loadIng>0||(this.loadIng++,this.$store.dispatch("call",{url:"approve/export",data:this.formData}).then(({data:t})=>{this.show=!1,this.$store.dispatch("downUrl",{url:t.url})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))}}},R={};var Pe=r(je,Ae,Me,!1,Ue,null,null,null);function Ue(t){for(let a in R)this[a]=R[a]}var Re=function(){return Pe.exports}();const Ee=(t,a)=>!t||!a?!1:t==="String"?typeof a=="string":t==="Object"?Object.prototype.toString.call(a)==="[object Object]":t==="number"?typeof a=="number":t==="function"?Object.prototype.toString.call(a)==="[object Function]":!1,Be=(t,a,e)=>t.findIndex(s=>s[a]===e);var l={checkData:Ee,searchArrObj:Be};class Ne{constructor(a="\u9ED8\u8BA4\u6807\u9898",e={}){this.title=a,this.options=e,this.support=!1,this.supportFn()}supportFn(){window.Notification?(this.initStatus(),this.support=!0):this.support=!1}initStatus(){this.notification=null,this.state=Notification.permission,this.msg=null,this.callBackObj={},this.notificationAll=[],this.requireInteractionTimeout=!1,this.timeout=null}initNotification(a){if(!!this.checkStatus("support")){if(!l.checkData("function",a))return console.error("initNotification\u7684\u53C2\u6570\u5FC5\u987B\u4E3A\u51FD\u6570");if(this.state==="granted")this.msg="already granted";else if(this.state==="default"){const e=s=>(this.state=s,s==="granted"?this.msg="granted":s==="default"?this.msg="close":this.msg="denied",a(this.msg));try{Notification.requestPermission().then(e)}catch{Notification.requestPermission(e)}}else this.msg="already denied";if(this.state!=="default")return a(this.msg)}}userAgreed(){if(!!this.checkStatus("userAgreed")){this.notification=new Notification(this.title,this.options),this.notificationWatch();for(const a in this.callBackObj)this.notification[a]=e=>{this.callBackObj[a](e)}}}notificationTimeoutFn(a){a&&l.checkData("number",a)?this.timeout=a:this.timeout=5e3}notificationWatch(){this.notificationAll.push(this.notification),this.notification.requireInteraction?this.everyTimeout():this.autoClose(),this.watchClose()}everyTimeout(){!l.checkData("number",this.timeout)||(this.options.timeOut&&l.checkData("number",this.options.timeOut)?this.timeoutCloseFn(this.options.timeOut):this.timeoutCloseFn(this.timeout))}timeoutCloseFn(a){const e=this.notification.timestamp;setTimeout(()=>{const s=l.searchArrObj(this.notificationAll,"timestamp",e);s!==-1&&this.notificationAll[s].close()},a)}watchClose(){const a=this.notification.timestamp;this.notification.addEventListener("close",e=>{const s=l.searchArrObj(this.notificationAll,"timestamp",a);s!==-1&&this.notificationAll.splice(s,1)})}autoClose(){const a=this.notification.timestamp;setTimeout(()=>{const e=l.searchArrObj(this.notificationAll,"timestamp",a);e!==-1&&this.notificationAll.splice(e,1)},6e3)}notificationEvent(a){if(!!this.checkStatus("support"))if(l.checkData("Object",a)){for(const e in a)if(!l.checkData("function",a[e]))return console.error("callObj\u5BF9\u8C61\u4E2D\u7684\u6BCF\u4E2Avalue\u5FC5\u987B\u4E3A\u51FD\u6570");this.callBackObj=a}else return console.error("callObj\u5FC5\u987B\u4E3A\u5BF9\u8C61")}closeAll(){for(let a of this.notificationAll.values())a.close();this.notificationAll=[]}close(){if(!this.notification)return console.warn("this.notification\u4E3Anull,\u901A\u77E5\u5C1A\u672A\u8C03\u7528/\u7528\u6237\u672A\u540C\u610F\u663E\u793A\u901A\u77E5");this.notification.close()}updateOptions(a){if(a&&l.checkData("Object",a))for(const e in a)this.options[e]=a[e];else console.warn("updateOptions\u53C2\u6570\u9519\u8BEF\uFF1Aoptions\u4E3A\u5FC5\u586B\u5BF9\u8C61")}replaceTitle(a){a&&l.checkData("String",a)?this.title=a:console.warn("replaceTitle: title(\u901A\u77E5\u6807\u9898)\u4E3A\u5FC5\u586B\u5B57\u7B26\u4E32")}replaceOptions(a){a&&l.checkData("Object",a)?this.options=a:console.warn("replaceOptions\u53C2\u6570\u9519\u8BEF\uFF1Aoptions\u4E3A\u5FC5\u586B\u5BF9\u8C61")}checkStatus(a){if(a==="support"){if(!this.support)return console.warn("\u7528\u6237\u6D4F\u89C8\u5668\u4E0D\u652F\u6301"),!1}else if(a==="userAgreed"&&(this.state!=="granted"||!this.checkStatus("support")))return!1;return!0}}var Oe=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.userId>0,expression:"userId > 0"}],staticClass:"page-manage",class:{"show-tabbar":t.showMobileTabbar}},[e("div",{staticClass:"manage-box-menu",class:{"show-mobile-menu":t.showMobileMenu}},[e("Dropdown",{staticClass:"page-manage-menu-dropdown main-menu",attrs:{trigger:"click"},on:{"on-click":t.settingRoute,"on-visible-change":t.menuVisibleChange}},[e("div",{class:["manage-box-title",t.visibleMenu?"menu-visible":""]},[e("div",{staticClass:"manage-box-avatar"},[e("UserAvatar",{attrs:{userid:t.userId,size:36,tooltipDisabled:""}})],1),e("span",[t._v(t._s(t.userInfo.nickname))]),t.reportUnreadNumber+t.approveUnreadNumber>0?e("Badge",{staticClass:"manage-box-top-report",attrs:{"overflow-count":999,count:t.reportUnreadNumber+t.approveUnreadNumber}}):t.clientNewVersion?e("Badge",{staticClass:"manage-box-top-report",attrs:{dot:""}}):t._e(),e("div",{staticClass:"manage-box-arrow"},[e("Icon",{attrs:{type:"ios-arrow-up"}}),e("Icon",{attrs:{type:"ios-arrow-down"}})],1)],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t._l(t.menu,function(s){return[s.path==="taskBrowse"?e("Dropdown",{attrs:{transfer:"","transfer-class-name":"page-manage-menu-dropdown",placement:"right-start"}},[e("DropdownItem",{attrs:{divided:!!s.divided}},[e("div",{staticClass:"manage-menu-flex"},[t._v(" "+t._s(t.$L(s.name))+" "),e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),t.taskBrowseLists.length>0?e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.taskBrowseLists,function(i,o){return i.id>0&&o<10?e("DropdownItem",{key:o,staticClass:"task-title",attrs:{name:i.name},nativeOn:{click:function(h){return t.openTask(i)}}},[i.flow_item_name?e("span",{class:i.flow_item_status},[t._v(t._s(i.flow_item_name))]):t._e(),e("div",{staticClass:"task-title-text"},[t._v(t._s(i.name))])]):t._e()}),1):e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{staticStyle:{color:"darkgrey"}},[t._v(t._s(t.$L("\u6682\u65E0\u6253\u5F00\u8BB0\u5F55")))])],1)],1):s.path==="team"?e("Dropdown",{attrs:{transfer:"","transfer-class-name":"page-manage-menu-dropdown",placement:"right-start"}},[e("DropdownItem",{attrs:{divided:!!s.divided}},[e("div",{staticClass:"manage-menu-flex"},[t._v(" "+t._s(t.$L(s.name))+" "),t.reportUnreadNumber>0?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{"overflow-count":999,count:t.reportUnreadNumber}}):e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{attrs:{name:"allUser"}},[t._v(t._s(t.$L("\u56E2\u961F\u7BA1\u7406")))]),e("DropdownItem",{attrs:{name:"workReport"}},[e("div",{staticClass:"manage-menu-flex"},[t._v(" "+t._s(t.$L("\u5DE5\u4F5C\u62A5\u544A"))+" "),t.reportUnreadNumber>0?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{"overflow-count":999,count:t.reportUnreadNumber}}):t._e()],1)]),e("DropdownItem",{attrs:{name:"exportTask"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u4EFB\u52A1\u7EDF\u8BA1")))]),e("DropdownItem",{attrs:{name:"exportOverdueTask"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u8D85\u671F\u4EFB\u52A1")))]),e("DropdownItem",{attrs:{name:"exportApprove"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u5BA1\u6279\u6570\u636E")))]),e("DropdownItem",{attrs:{name:"exportCheckin"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E")))])],1)],1):s.visible!==!1?e("DropdownItem",{style:s.style||{},attrs:{divided:!!s.divided,name:s.path}},[e("div",{staticClass:"manage-menu-flex"},[t._v(" "+t._s(t.$L(s.name))+" "),s.path==="version"?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{text:t.clientNewVersion}}):s.path==="workReport"&&t.reportUnreadNumber>0?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{count:t.reportUnreadNumber}}):s.path==="approve"&&t.approveUnreadNumber>0?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{count:t.approveUnreadNumber}}):t._e()],1)]):t._e()]})],2)],1),e("Scrollbar",{attrs:{"class-name":"manage-item"},on:{"on-scroll":function(s){t.operateVisible=!1}}},[e("div",{staticClass:"menu-base"},[e("ul",[e("li",{class:t.classNameRoute("dashboard"),on:{click:function(s){return t.toggleRoute("dashboard")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6FB")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u4EEA\u8868\u76D8")))]),t.dashboardTask.overdue_count>0?e("Badge",{staticClass:"menu-badge",attrs:{type:"error","overflow-count":999,count:t.dashboardTask.overdue_count}}):t.dashboardTask.today_count>0?e("Badge",{staticClass:"menu-badge",attrs:{type:"info","overflow-count":999,count:t.dashboardTask.today_count}}):t.dashboardTask.all_count>0?e("Badge",{staticClass:"menu-badge",attrs:{type:"primary","overflow-count":999,count:t.dashboardTask.all_count}}):t._e()],1),e("li",{class:t.classNameRoute("calendar"),on:{click:function(s){return t.toggleRoute("calendar")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F5")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u65E5\u5386")))])]),e("li",{class:t.classNameRoute("messenger"),on:{click:function(s){return t.toggleRoute("messenger")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6EB")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u6D88\u606F")))]),e("Badge",{staticClass:"menu-badge",attrs:{"overflow-count":999,text:t.msgUnreadMention}})],1),e("li",{class:t.classNameRoute("file"),on:{click:function(s){return t.toggleRoute("file")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F3")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u6587\u4EF6")))])])])]),e("div",{ref:"menuProject",staticClass:"menu-project"},[e("ul",[t._l(t.projectLists,function(s,i){return e("li",{directives:[{name:"longpress",rawName:"v-longpress",value:t.handleLongpress,expression:"handleLongpress"}],key:i,ref:`project_${s.id}`,refInFor:!0,class:t.classNameProject(s),attrs:{"data-id":s.id},on:{click:function(o){return t.toggleRoute("project",{projectId:s.id})}}},[e("div",{staticClass:"project-h1"},[e("em",{on:{click:function(o){return o.stopPropagation(),t.toggleOpenMenu(s.id)}}}),e("div",{staticClass:"title"},[t._v(t._s(s.name))]),s.top_at?e("div",{staticClass:"icon-top"}):t._e(),s.task_my_num-s.task_my_complete>0?e("div",{staticClass:"num"},[t._v(t._s(s.task_my_num-s.task_my_complete))]):t._e()]),e("div",{staticClass:"project-h2"},[e("p",[e("em",[t._v(t._s(t.$L("\u6211\u7684"))+":")]),e("span",[t._v(t._s(s.task_my_complete)+"/"+t._s(s.task_my_num))]),e("Progress",{attrs:{percent:s.task_my_percent,"stroke-width":6}})],1),e("p",[e("em",[t._v(t._s(t.$L("\u5168\u90E8"))+":")]),e("span",[t._v(t._s(s.task_complete)+"/"+t._s(s.task_num))]),e("Progress",{attrs:{percent:s.task_percent,"stroke-width":6}})],1)])])}),t.projectKeyLoading>0?e("li",{staticClass:"loading"},[e("Loading")],1):t._e()],2)])]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.operateVisible,expression:"operateVisible"}],staticClass:"operate-position",style:t.operateStyles},[e("Dropdown",{attrs:{trigger:"custom",placement:t.windowLandscape?"bottom":"top",visible:t.operateVisible,transfer:""},on:{"on-clickoutside":function(s){t.operateVisible=!1}}},[e("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{nativeOn:{click:function(s){return t.handleTopClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L(t.operateItem.top_at?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876\u8BE5\u9879\u76EE"))+" ")])],1)],1)],1),(t.projectSearchShow||t.projectTotal>20)&&t.windowHeight>600?e("div",{staticClass:"manage-project-search"},[e("Input",{attrs:{placeholder:t.$L(`\u5171${t.projectTotal||t.cacheProjects.length}\u4E2A\u9879\u76EE\uFF0C\u641C\u7D22...`),clearable:""},model:{value:t.projectKeyValue,callback:function(s){t.projectKeyValue=s},expression:"projectKeyValue"}},[e("div",{staticClass:"search-pre",attrs:{slot:"prefix"},slot:"prefix"},[t.projectKeyLoading>0?e("Loading"):e("Icon",{attrs:{type:"ios-search"}})],1)])],1):t._e(),e("ButtonGroup",{staticClass:"manage-box-new-group"},[e("Button",{staticClass:"manage-box-new",attrs:{type:"primary",icon:"md-add"},on:{click:t.onAddShow}},[t._v(t._s(t.$L("\u65B0\u5EFA\u9879\u76EE")))]),e("Dropdown",{attrs:{trigger:"click"},on:{"on-click":t.onAddMenu}},[e("Button",{attrs:{type:"primary"}},[e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{attrs:{name:"task"}},[t._v(t._s(t.$L("\u65B0\u5EFA\u4EFB\u52A1"))+" ("+t._s(t.mateName)+"+K)")]),e("DropdownItem",{attrs:{name:"createMeeting"}},[t._v(t._s(t.$L("\u65B0\u4F1A\u8BAE"))+" ("+t._s(t.mateName)+"+J)")]),e("DropdownItem",{attrs:{name:"joinMeeting"}},[t._v(t._s(t.$L("\u52A0\u5165\u4F1A\u8BAE")))])],1)],1)],1)],1),e("div",{staticClass:"manage-box-main"},[e("keep-alive",[e("router-view",{staticClass:"manage-box-view"})],1)],1),e("Modal",{attrs:{title:t.$L("\u65B0\u5EFA\u9879\u76EE"),"mask-closable":!1},model:{value:t.addShow,callback:function(s){t.addShow=s},expression:"addShow"}},[e("Form",{ref:"addProject",attrs:{model:t.addData,rules:t.addRule,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{prop:"name",label:t.$L("\u9879\u76EE\u540D\u79F0")}},[e("Input",{ref:"projectName",attrs:{type:"text"},model:{value:t.addData.name,callback:function(s){t.$set(t.addData,"name",s)},expression:"addData.name"}})],1),t.addData.columns?e("FormItem",{attrs:{label:t.$L("\u4EFB\u52A1\u5217\u8868")}},[e("TagInput",{model:{value:t.addData.columns,callback:function(s){t.$set(t.addData,"columns",s)},expression:"addData.columns"}})],1):e("FormItem",{attrs:{label:t.$L("\u9879\u76EE\u6A21\u677F")}},[e("Select",{attrs:{value:0,placeholder:t.$L("\u8BF7\u9009\u62E9\u6A21\u677F")},on:{"on-change":t.selectChange}},t._l(t.columns,function(s,i){return e("Option",{key:i,attrs:{value:i}},[t._v(t._s(s.name))])}),1)],1),e("FormItem",{attrs:{prop:"flow",label:t.$L("\u5F00\u542F\u5DE5\u4F5C\u6D41")}},[e("RadioGroup",{model:{value:t.addData.flow,callback:function(s){t.$set(t.addData,"flow",s)},expression:"addData.flow"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.addShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onAddProject}},[t._v(t._s(t.$L("\u6DFB\u52A0")))])],1)],1),e("Modal",{attrs:{"mask-closable":!1,styles:{width:"90%",maxWidth:"640px"},"footer-hide":""},model:{value:t.addTaskShow,callback:function(s){t.addTaskShow=s},expression:"addTaskShow"}},[e("TaskAdd",{ref:"addTask",model:{value:t.addTaskShow,callback:function(s){t.addTaskShow=s},expression:"addTaskShow"}})],1),e("TaskExport",{model:{value:t.exportTaskShow,callback:function(s){t.exportTaskShow=s},expression:"exportTaskShow"}}),e("CheckinExport",{model:{value:t.exportCheckinShow,callback:function(s){t.exportCheckinShow=s},expression:"exportCheckinShow"}}),e("ApproveExport",{model:{value:t.exportApproveShow,callback:function(s){t.exportApproveShow=s},expression:"exportApproveShow"}}),e("TaskModal",{ref:"taskModal"}),e("DialogModal",{ref:"dialogModal"}),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.workReportShow,callback:function(s){t.workReportShow=s},expression:"workReportShow"}},[t.workReportShow?e("Report",{on:{"on-read":function(s){return t.$store.dispatch("getReportUnread",1e3)}},model:{value:t.reportTabs,callback:function(s){t.reportTabs=s},expression:"reportTabs"}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1380},model:{value:t.allUserShow,callback:function(s){t.allUserShow=s},expression:"allUserShow"}},[t.allUserShow?e("TeamManagement"):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.allProjectShow,callback:function(s){t.allProjectShow=s},expression:"allProjectShow"}},[t.allProjectShow?e("ProjectManagement"):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.archivedProjectShow,callback:function(s){t.archivedProjectShow=s},expression:"archivedProjectShow"}},[t.archivedProjectShow?e("ProjectArchived"):t._e()],1),e("MeetingManager"),e("transition",{attrs:{name:"mobile-slide"}},[t.showMobileTabbar?e("MobileTabbar",{on:{"on-click":t.onTabbarClick}}):t._e()],1),e("MobileBack",{attrs:{showTabbar:t.showMobileTabbar}}),e("MobileNotification",{ref:"mobileNotification"})],1)},ze=[];const Fe={components:{TaskExport:Ie,CheckinExport:z,ApproveExport:Re,TaskModal:De,DialogModal:_e,MeetingManager:ue,MobileNotification:Jt,MobileBack:Ft,MobileTabbar:ut,TaskAdd:_t,Report:Rt,DrawerOverlay:B,ProjectManagement:rt,TeamManagement:F,ProjectArchived:tt},directives:{longpress:K},data(){return{loadIng:0,mateName:/macintosh|mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl",addShow:!1,addData:{name:"",columns:"",flow:"open"},addRule:{name:[{required:!0,message:this.$L("\u8BF7\u586B\u5199\u9879\u76EE\u540D\u79F0\uFF01"),trigger:"change"},{type:"string",min:2,message:this.$L("\u9879\u76EE\u540D\u79F0\u81F3\u5C112\u4E2A\u5B57\uFF01"),trigger:"change"}]},addTaskShow:!1,addTaskSubscribe:null,exportTaskShow:!1,exportCheckinShow:!1,exportApproveShow:!1,dialogMsgSubscribe:null,projectKeyValue:"",projectKeyLoading:0,projectSearchShow:!1,openMenu:{},visibleMenu:!1,showMobileMenu:!1,workReportShow:!1,allUserShow:!1,allProjectShow:!1,archivedProjectShow:!1,natificationReady:!1,notificationManage:null,reportTabs:"my",operateStyles:{},operateVisible:!1,operateItem:{},needStartHome:!1}},mounted(){this.notificationInit(),this.addTaskSubscribe=c.Store.subscribe("addTask",this.onAddTask),this.dialogMsgSubscribe=c.Store.subscribe("dialogMsgPush",this.addDialogMsg),document.addEventListener("keydown",this.shortcutEvent)},activated(){this.$store.dispatch("getUserInfo").catch(t=>{}),this.$store.dispatch("getTaskPriority").catch(t=>{}),this.$store.dispatch("getReportUnread",0),this.$store.dispatch("getApproveUnread",0),this.$store.dispatch("needHome").then(t=>{this.needStartHome=!0}).catch(t=>{this.needStartHome=!1})},beforeDestroy(){this.addTaskSubscribe&&(this.addTaskSubscribe.unsubscribe(),this.addTaskSubscribe=null),this.dialogMsgSubscribe&&(this.dialogMsgSubscribe.unsubscribe(),this.dialogMsgSubscribe=null),document.removeEventListener("keydown",this.shortcutEvent)},deactivated(){this.addShow=!1},computed:{...d(["userInfo","userIsAdmin","cacheUserBasic","cacheTasks","cacheDialogs","cacheProjects","projectTotal","wsOpenNum","columnTemplate","wsMsg","clientNewVersion","cacheTaskBrowse","dialogIns","reportUnreadNumber","approveUnreadNumber"]),...g(["dashboardTask"]),routeName(){return this.$route.name},msgUnreadMention(){let t=0,a=0;this.cacheDialogs.some(s=>{t+=$A.getDialogUnread(s,!1),a+=$A.getDialogMention(s)}),t>999&&(t="999+"),a>999&&(a="999+");const e=this.msgTodoTotal;return e?a?`@${a}\xB7${e}`:t?`${t}\xB7${e}`:e:t?a?`${t}\xB7@${a}`:String(t):a?`@${a}`:""},msgAllUnread(){let t=0;return this.cacheDialogs.some(a=>{t+=$A.getDialogNum(a)}),t},msgTodoTotal(){let t=this.cacheDialogs.reduce((a,e)=>a+(e.todo_num||0),0);return t>0?(t>99?t="99+":t===1&&(t=""),`${this.$L("\u5F85\u529E")}${t}`):null},unreadAndOverdue(){return this.userId>0?this.msgAllUnread+this.dashboardTask.overdue_count:0},menu(){const{userIsAdmin:t,needStartHome:a}=this,e=[{path:"taskBrowse",name:"\u6700\u8FD1\u6253\u5F00\u7684\u4EFB\u52A1"}];return t?e.push({path:"personal",name:"\u4E2A\u4EBA\u8BBE\u7F6E",divided:!0},{path:"system",name:"\u7CFB\u7EDF\u8BBE\u7F6E"},{path:"license",name:"License Key"},{path:"version",name:"\u66F4\u65B0\u7248\u672C",divided:!0,visible:!!this.clientNewVersion},{path:"allProject",name:"\u6240\u6709\u9879\u76EE",divided:!0},{path:"archivedProject",name:"\u5DF2\u5F52\u6863\u7684\u9879\u76EE"},{path:"team",name:"\u56E2\u961F\u7BA1\u7406",divided:!0},{path:"approve",name:"\u5BA1\u6279\u4E2D\u5FC3"}):e.push({path:"personal",name:"\u4E2A\u4EBA\u8BBE\u7F6E",divided:!0},{path:"approve",name:"\u5BA1\u6279\u4E2D\u5FC3"},{path:"version",name:"\u66F4\u65B0\u7248\u672C",divided:!0,visible:!!this.clientNewVersion},{path:"workReport",name:"\u5DE5\u4F5C\u62A5\u544A",divided:!0},{path:"archivedProject",name:"\u5DF2\u5F52\u6863\u7684\u9879\u76EE"}),a?e.push({path:"goHome",name:"\u6253\u5F00\u9996\u9875",divided:!0},{path:"clearCache",name:"\u6E05\u9664\u7F13\u5B58"},{path:"logout",name:"\u9000\u51FA\u767B\u5F55",style:{color:"#f40"}}):e.push({path:"clearCache",name:"\u6E05\u9664\u7F13\u5B58",divided:!0},{path:"logout",name:"\u9000\u51FA\u767B\u5F55",style:{color:"#f40"}}),e},columns(){const t=$A.cloneJSON(this.columnTemplate);return t.unshift({name:this.$L("\u7A7A\u767D\u6A21\u677F"),columns:[]}),t},projectLists(){const{projectKeyValue:t,cacheProjects:a}=this,e=$A.cloneJSON(a).sort((s,i)=>s.top_at||i.top_at?$A.Date(i.top_at)-$A.Date(s.top_at):i.id-s.id);return t?e.filter(s=>$A.strExists(`${s.name} ${s.desc}`,t)):e},taskBrowseLists(){const{cacheTasks:t,cacheTaskBrowse:a,userId:e}=this;return a.filter(({userid:s})=>s===e).map(({id:s})=>t.find(i=>i.id===s)||{})},showMobileTabbar(){return this.routeName==="manage-project"&&!/^\d+$/.test(this.$route.params.projectId)?!0:["manage-dashboard","manage-calendar","manage-messenger","manage-file","manage-setting"].includes(this.routeName)}},watch:{$route(){this.chackPass()},userInfo(){this.chackPass()},projectKeyValue(t){t!=""&&setTimeout(()=>{this.projectKeyValue==t&&this.searchProject()},600)},wsOpenNum(t){t<=1||this.$store.dispatch("getBasicData",600)},workReportShow(t){t&&this.$store.dispatch("getReportUnread",0)},"cacheProjects.length":{handler(){this.$nextTick(t=>{const a=this.$refs.menuProject,e=$A.last($A.getObject(a,"children.0.children"));if(e){const s=e.getBoundingClientRect(),i=a.getBoundingClientRect();if(s.top>i.top+i.height){this.projectSearchShow=!0;return}}this.projectSearchShow=!1})},immediate:!0},unreadAndOverdue:{handler(t){this.$Electron&&this.$Electron.sendMessage("setDockBadge",t)},immediate:!0},wsMsg:{handler(t){const{type:a,action:e}=t;switch(a){case"report":e=="unreadUpdate"&&this.$store.dispatch("getReportUnread",1e3);break;case"approve":e=="unread"&&this.$store.dispatch("getApproveUnread",1e3);break}},deep:!0}},methods:{chackPass(){this.userInfo.changepass===1&&this.goForward({name:"manage-setting-password"})},async toggleRoute(t,a){this.showMobileMenu=!1;let e={name:"manage-"+t,params:a||{}},s=await $A.IDBInt("fileFolderId");t==="file"&&s>0&&(e.params.folderId=s),this.goForward(e)},toggleOpenMenu(t){this.$set(this.openMenu,t,!this.openMenu[t])},settingRoute(t){switch(t){case"allUser":this.allUserShow=!0;return;case"allProject":this.allProjectShow=!0;return;case"archivedProject":this.archivedProjectShow=!0;return;case"exportTask":this.exportTaskShow=!0;return;case"exportOverdueTask":this.exportOverdueTask();return;case"exportCheckin":this.exportCheckinShow=!0;return;case"exportApprove":this.exportApproveShow=!0;return;case"workReport":this.reportUnreadNumber>0&&(this.reportTabs="receive"),this.workReportShow=!0;return;case"version":c.Store.set("updateNotification",null);return;case"clearCache":$A.IDBSet("clearCache","handle").then(a=>{$A.reloadUrl()});return;case"goHome":this.needStartHome&&this.goForward("index");return;case"approve":this.menu.findIndex(a=>a.path==t)>-1&&this.goForward({name:"manage-approve"});return;case"logout":$A.modalConfirm({title:"\u9000\u51FA\u767B\u5F55",content:"\u4F60\u786E\u5B9A\u8981\u767B\u51FA\u7CFB\u7EDF\uFF1F",onOk:()=>{this.$store.dispatch("logout",!1)}});return}this.menu.findIndex(a=>a.path==t)>-1&&this.toggleRoute("setting-"+t)},exportOverdueTask(){$A.modalConfirm({title:"\u5BFC\u51FA\u4EFB\u52A1",content:"\u4F60\u786E\u5B9A\u8981\u5BFC\u51FA\u6240\u6709\u8D85\u671F\u4EFB\u52A1\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,a)=>{this.$store.dispatch("call",{url:"project/task/exportoverdue"}).then(({data:e})=>{t(),this.$store.dispatch("downUrl",{url:e.url})}).catch(({msg:e})=>{a(e)})})})},menuVisibleChange(t){this.visibleMenu=t},classNameRoute(t){return{active:this.routeName===`manage-${t}`}},classNameProject(t){return{active:this.routeName==="manage-project"&&this.$route.params.projectId==t.id,"open-menu":this.openMenu[t.id]===!0,operate:t.id==this.operateItem.id&&this.operateVisible}},onAddMenu(t){switch(t){case"task":this.onAddTask(0);break;case"createMeeting":c.Store.set("addMeeting",{type:"create",userids:[this.userId]});break;case"joinMeeting":c.Store.set("addMeeting",{type:"join"});break}},onAddShow(){this.$store.dispatch("getColumnTemplate").catch(()=>{}),this.addShow=!0,this.$nextTick(()=>{this.$refs.projectName.focus()})},onAddProject(){this.$refs.addProject.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"project/add",data:this.addData}).then(({data:a,msg:e})=>{$A.messageSuccess(e),this.addShow=!1,this.$refs.addProject.resetFields(),this.$store.dispatch("saveProject",a),this.toggleRoute("project",{projectId:a.id})}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--}))})},searchProject(){setTimeout(()=>{this.projectKeyLoading++},1e3),this.$store.dispatch("getProjects",{keys:{name:this.projectKeyValue}}).finally(t=>{this.projectKeyLoading--})},selectChange(t){this.$nextTick(()=>{this.$set(this.addData,"columns",this.columns[t].columns.join(","))})},shortcutEvent(t){(t.metaKey||t.ctrlKey)&&(t.keyCode===74?(t.preventDefault(),this.onAddMenu("createMeeting")):t.keyCode===75||t.keyCode===78?(t.preventDefault(),this.onAddMenu("task")):t.keyCode===83&&this.$refs.taskModal.checkUpdate()&&t.preventDefault())},onAddTask(t){this.addTaskShow=!0,this.$nextTick(a=>{let e={owner:[this.userId]};$A.isJson(t)?e=t:/^[1-9]\d*$/.test(t)&&(e.column_id=t),this.$refs.addTask.setData(e)})},openTask(t){this.$store.dispatch("openTask",t)},addDialogMsg(t){var b;if(!this.natificationReady&&!this.$isEEUiApp||this.windowActive&&t.dialog_id===((b=$A.last(this.dialogIns))==null?void 0:b.dialog_id))return;const{id:a,dialog_id:e,dialog_type:s,type:i,msg:o,userid:h}=t;if(h==this.userId)return;let u;switch(i){case"text":u=$A.getMsgTextPreview(o.text);break;case"file":u="["+this.$L(o.type=="img"?"\u56FE\u7247\u4FE1\u606F":"\u6587\u4EF6\u4FE1\u606F")+"]";break;default:return}this.__notificationId=a;const _=n=>{if(s==="group"){let p=this.cacheUserBasic.find(f=>f.userid==h);p?m(`${n} (${p.nickname})`):this.$store.dispatch("call",{url:"users/basic",data:{userid:[h]},skipAuthError:!0}).then(({data:f})=>{p=f.find(N=>N.userid==h),p&&m(`${n} (${p.nickname})`)}).catch(f=>{m(n)})}else m(n)},m=n=>{this.__notificationId===a&&(this.$isEEUiApp?this.$refs.mobileNotification.open({userid:h,title:n,desc:u,callback:()=>{this.goForward({name:"manage-messenger"}),this.$store.dispatch("openDialog",e)}}):this.$Electron?this.$Electron.sendMessage("openNotification",{icon:$A.originUrl("images/logo.png"),title:n,body:u,data:t,tag:"dialog",hasReply:!0,replyPlaceholder:this.$L("\u56DE\u590D\u6D88\u606F")}):(this.notificationManage.replaceOptions({icon:$A.originUrl("images/logo.png"),body:u,data:t,tag:"dialog"}),this.notificationManage.replaceTitle(n),this.notificationManage.userAgreed()))},$=this.cacheDialogs.find(n=>n.id==e);$?_($.name):this.$store.dispatch("getDialogOne",e).then(({data:n})=>_(n.name)).catch(()=>{})},handleLongpress(t,a){const e=$A.getAttr(a,"data-id"),s=this.projectLists.find(i=>i.id==e);!s||(this.operateVisible=!1,this.operateItem=$A.isJson(s)?s:{},this.$nextTick(()=>{const i=a.getBoundingClientRect(),o=this.$refs.menuProject.getBoundingClientRect();this.operateStyles={left:`${t.clientX-o.left}px`,top:`${i.top+this.windowScrollY}px`,height:i.height+"px"},this.operateVisible=!0}))},handleTopClick(){this.$store.dispatch("call",{url:"project/top",data:{project_id:this.operateItem.id}}).then(({data:t})=>{this.$store.dispatch("saveProject",t),this.$nextTick(()=>{const a=this.$refs.menuProject.querySelector(".active");a&&$A.scrollIntoViewIfNeeded(a)})}).catch(({msg:t})=>{$A.modalError(t)})},onTabbarClick(t){switch(t){case"addTask":this.onAddTask(0);break;case"addProject":this.onAddShow();break;case"allUser":case"workReport":this.settingRoute(t);break}},notificationInit(){this.notificationManage=new Ne(this.$L("\u6253\u5F00\u901A\u77E5\u6210\u529F")),this.notificationManage.support&&(this.notificationManage.notificationEvent({onclick:({target:t})=>{console.log("[Notification] A Click",t),this.notificationManage.close(),this.notificationClick(t),window.focus()}}),this.notificationPermission()),this.$Electron&&(this.$Electron.registerMsgListener("clickNotification",t=>{console.log("[Notification] B Click",t),this.$Electron.sendMessage("mainWindowActive"),this.notificationClick(t)}),this.$Electron.registerMsgListener("replyNotification",t=>{console.log("[Notification] B Reply",t),this.notificationReply(t)}))},notificationPermission(){const t=a=>{switch(a){case"already granted":case"granted":return this.natificationReady=!0;case"close":return this.notificationManage.initNotification(t);case"denied":case"already denied":console.log(a==="denied"?"\u60A8\u521A\u521A\u62D2\u7EDD\u663E\u793A\u901A\u77E5 \u8BF7\u5728\u8BBE\u7F6E\u4E2D\u66F4\u6539\u8BBE\u7F6E":"\u60A8\u66FE\u7EA7\u62D2\u7EDD\u663E\u793A\u901A\u77E5 \u8BF7\u5728\u8BBE\u7F6E\u4E2D\u66F4\u6539\u8BBE\u7F6E");break}};this.notificationManage.initNotification(t)},notificationClick(t){const{tag:a,data:e}=t;if(a=="dialog"){if(!$A.isJson(e))return;this.goForward({name:"manage-messenger"}),this.$nextTick(s=>{this.$store.dispatch("openDialog",e.dialog_id)})}},notificationReply(t){const{tag:a,data:e,reply:s}=t;a=="dialog"&&s&&this.$store.dispatch("call",{url:"dialog/msg/sendtext",data:{dialog_id:e.dialog_id,text:s},method:"post"}).then(({data:i})=>{this.$store.dispatch("saveDialogMsg",i),this.$store.dispatch("increaseTaskMsgNum",i),this.$store.dispatch("increaseMsgReplyNum",i),this.$store.dispatch("updateDialogLastMsg",i)}).catch(({msg:i})=>{$A.modalError(i)})}}},E={};var We=r(Fe,Oe,ze,!1,He,null,null,null);function He(t){for(let a in E)this[a]=E[a]}var oa=function(){return We.exports}();export{oa as default}; +import{n as r,N as O,m as d,c as g,d as c}from"./app.28437e7d.js";import{C as z,T as F}from"./CheckinExport.a307a3ee.js";import{D as B}from"./index.ed41beb1.js";import W from"./TEditor.a8b14511.js";import{U as v}from"./UserSelect.fe42163b.js";import{R as H}from"./ReportEdit.74592e96.js";import{R as V}from"./ReportDetail.62478618.js";import{l as K}from"./longpress.43ca7fd9.js";import{D as Y}from"./DialogWrapper.962561b6.js";import{T as J}from"./TaskDetail.2b58e274.js";import"./ImgUpload.cbadd034.js";import"./details.70f91a78.js";import"./ProjectLog.65503d98.js";import"./TaskMenu.98a91192.js";var q=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"project-archived"},[e("div",{staticClass:"archived-title"},[t._v(" "+t._s(t.$L("\u5F52\u6863\u7684\u9879\u76EE"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u540D"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{clearable:""},model:{value:t.keys.name,callback:function(s){t.$set(t.keys,"name",s)},expression:"keys.name"}})],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(s){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.windowPortrait,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])},G=[];const X={name:"ProjectArchived",data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:a,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",a.id)])},{title:this.$L("\u9879\u76EE\u540D\u79F0"),key:"name",minWidth:200,render:(t,{row:a})=>t("AutoTip",a.name)},{title:this.$L("\u5F52\u6863\u65F6\u95F4"),key:"archived_at",width:168},{title:this.$L("\u5F52\u6863\u4EBA\u5458"),key:"archived_userid",minWidth:80,render:(t,{row:a})=>a.archived_userid?t("UserAvatar",{props:{userid:a.archived_userid,size:24,showName:!0}}):t("Tag",this.$L("\u7CFB\u7EDF\u81EA\u52A8"))},{title:this.$L("\u8D1F\u8D23\u4EBA"),minWidth:80,render:(t,{row:a})=>t("UserAvatar",{props:{showName:!0,size:22,userid:a.owner_userid}})},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,render:(t,a)=>{const e=[t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u8FD8\u539F\u5F52\u6863\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{fontSize:"13px",cursor:"pointer",color:"#84C56A"},on:{"on-ok":()=>{this.recovery(a.row)}}},this.$L("\u8FD8\u539F")),t("Poptip",{props:{title:this.$L("\u4F60\u786E\u5B9A\u8981\u5220\u9664\u9879\u76EE\u5417\uFF1F"),confirm:!0,transfer:!0,placement:"left",okText:this.$L("\u786E\u5B9A"),cancelText:this.$L("\u53D6\u6D88")},style:{marginLeft:"8px",fontSize:"13px",cursor:"pointer",color:"#f00"},on:{"on-ok":()=>{this.delete(a.row)}}},this.$L("\u5220\u9664"))];return t("TableAction",{props:{column:a.column}},e)}}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/lists",data:{keys:this.keys,archived:"yes",page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:t})=>{this.page=t.current_page,this.total=t.total,this.list=t.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(t=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()},recovery(t){this.list=this.list.filter(({id:a})=>a!=t.id),this.loadIng++,this.$store.dispatch("call",{url:"project/archived",data:{project_id:t.id,type:"recovery"}}).then(()=>{this.getLists(),this.$store.dispatch("getProjectOne",t.id).catch(()=>{})}).catch(({msg:a})=>{$A.modalError(a),this.getLists()}).finally(a=>{this.loadIng--})},delete(t){this.list=this.list.filter(({id:a})=>a!=t.id),this.loadIng++,this.$store.dispatch("removeProject",t.id).then(({msg:a})=>{$A.messageSuccess(a),this.getLists()}).catch(({msg:a})=>{$A.modalError(a),this.getLists()}).finally(a=>{this.loadIng--})}}},k={};var Q=r(X,q,G,!1,Z,null,null,null);function Z(t){for(let a in k)this[a]=k[a]}var tt=function(){return Q.exports}(),et=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"project-management"},[e("div",{staticClass:"management-title"},[t._v(" "+t._s(t.$L("\u6240\u6709\u9879\u76EE"))+" "),e("div",{staticClass:"title-icon"},[t.loadIng>0?e("Loading"):t._e()],1)]),e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u540D"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{clearable:""},model:{value:t.keys.name,callback:function(s){t.$set(t.keys,"name",s)},expression:"keys.name"}})],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u56E2\u961F\u9879\u76EE")},model:{value:t.keys.type,callback:function(s){t.$set(t.keys,"type",s)},expression:"keys.type"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u56E2\u961F\u9879\u76EE")))]),e("Option",{attrs:{value:"personal"}},[t._v(t._s(t.$L("\u4E2A\u4EBA\u9879\u76EE")))]),e("Option",{attrs:{value:"all"}},[t._v(t._s(t.$L("\u5168\u90E8\u9879\u76EE")))])],1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u9879\u76EE\u72B6\u6001"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u672A\u5F52\u6863")},model:{value:t.keys.status,callback:function(s){t.$set(t.keys,"status",s)},expression:"keys.status"}},[e("Option",{attrs:{value:""}},[t._v(t._s(t.$L("\u672A\u5F52\u6863")))]),e("Option",{attrs:{value:"archived"}},[t._v(t._s(t.$L("\u5DF2\u5F52\u6863")))]),e("Option",{attrs:{value:"all"}},[t._v(t._s(t.$L("\u5168\u90E8")))])],1)],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(s){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.list,loading:t.loadIng>0,"no-data-text":t.$L(t.noText),stripe:""}}),e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.pageSize,disabled:t.loadIng>0,simple:t.windowPortrait,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])},at=[];const st={name:"ProjectManagement",data(){return{loadIng:0,keys:{},keyIs:!1,columns:[{title:"ID",key:"id",width:80,render:(t,{row:a,column:e})=>t("TableAction",{props:{column:e,align:"left"}},[t("div",a.id)])},{title:this.$L("\u9879\u76EE\u540D\u79F0"),key:"name",minWidth:100,render:(t,{row:a})=>{const e=[t("AutoTip",a.name)];return a.archived_at&&e.push(t("Tag",{props:{color:"error"}},this.$L("\u5DF2\u5F52\u6863"))),t("div",{class:"project-name"},e)}},{title:this.$L("\u9879\u76EE\u8FDB\u5EA6"),minWidth:100,render:(t,{row:a})=>{const e=[t("AutoTip",a.task_complete+"/"+a.task_num),t("Progress",{props:{percent:a.task_percent,strokeWidth:5}})];return t("div",{class:"project-percent"},e)}},{title:this.$L("\u8D1F\u8D23\u4EBA"),minWidth:80,render:(t,{row:a})=>t("UserAvatar",{props:{showName:!0,size:22,userid:a.owner_userid}})},{title:this.$L("\u521B\u5EFA\u4EBA"),minWidth:80,render:(t,{row:a})=>t("UserAvatar",{props:{showName:!0,size:22,userid:a.userid}})},{title:this.$L("\u521B\u5EFA\u65F6\u95F4"),key:"created_at",width:168}],list:[],page:1,pageSize:20,total:0,noText:""}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.page=1,this.getLists()},getLists(){let t="team";this.keys.type=="all"?t="all":this.keys.type=="personal"&&(t="personal");let a="no";this.keys.status=="all"?a="all":this.keys.status=="archived"&&(a="yes"),this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"project/lists",data:{keys:this.keys,all:1,archived:a,type:t,page:Math.max(this.page,1),pagesize:Math.max($A.runNum(this.pageSize),10)}}).then(({data:e})=>{this.page=e.current_page,this.total=e.total,this.list=e.data,this.noText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(()=>{this.noText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(e=>{this.loadIng--})},setPage(t){this.page=t,this.getLists()},setPageSize(t){this.page=1,this.pageSize=t,this.getLists()}}},y={};var it=r(st,et,at,!1,ot,null,null,null);function ot(t){for(let a in y)this[a]=y[a]}var rt=function(){return it.exports}(),nt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"mobile-tabbar"},[t.windowPortrait?e("NetworkException",{attrs:{type:"alert"}}):t._e(),e("transition",{attrs:{name:"mobile-fade"}},[t.isMore?e("div",{staticClass:"more-mask",on:{click:function(s){return t.toggleRoute("more")}}}):t._e()]),e("transition",{attrs:{name:"mobile-slide"}},[t.isMore?e("div",{staticClass:"more-box"},[e("div",{staticClass:"tabbar-more-title"},[t._v(t._s(t.$L("\u66F4\u591A")))]),t._l(t.navMore,function(s){return e("ul",t._l(s,function(i){return e("li",{class:{active:t.activeName===i.name},on:{click:function(o){return t.toggleRoute(i.name)}}},[e("div",{staticClass:"more-item"},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(i.icon)}}),e("div",{staticClass:"tabbar-title"},[t._v(t._s(t.$L(i.label)))]),i.name==="workReport"?e("Badge",{staticClass:"tabbar-badge",attrs:{"overflow-count":999,count:t.reportUnreadNumber}}):t._e()],1)])}),0)})],2):t._e()]),e("ul",{staticClass:"tabbar-box"},t._l(t.navList,function(s){return e("li",{class:{active:t.activeName===s.name},on:{click:function(i){return t.toggleRoute(s.name)}}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(s.icon)}}),e("div",{staticClass:"tabbar-title"},[t._v(t._s(t.$L(s.label)))]),s.name==="dashboard"?[t.dashboardTask.overdue_count>0?e("Badge",{staticClass:"tabbar-badge",attrs:{type:"error","overflow-count":999,count:t.dashboardTask.overdue_count}}):t.dashboardTask.today_count>0?e("Badge",{staticClass:"tabbar-badge",attrs:{type:"info","overflow-count":999,count:t.dashboardTask.today_count}}):t.dashboardTask.all_count>0?e("Badge",{staticClass:"tabbar-badge",attrs:{type:"primary","overflow-count":999,count:t.dashboardTask.all_count}}):t._e()]:s.name==="dialog"?[e("Badge",{staticClass:"tabbar-badge",attrs:{"overflow-count":999,text:t.msgUnreadMention}})]:s.name==="more"?[e("Badge",{staticClass:"tabbar-badge",attrs:{"overflow-count":999,count:t.reportUnreadNumber}})]:t._e()],2)}),0),e("Modal",{attrs:{title:t.$L("\u626B\u7801\u767B\u5F55"),"mask-closable":!1},model:{value:t.scanLoginShow,callback:function(s){t.scanLoginShow=s},expression:"scanLoginShow"}},[e("div",{staticClass:"mobile-scan-login-box"},[e("div",{staticClass:"mobile-scan-login-title"},[t._v(t._s(t.$L("\u4F60\u597D\uFF0C\u626B\u7801\u786E\u8BA4\u767B\u5F55")))]),e("div",{staticClass:"mobile-scan-login-subtitle"},[t._v("\u300C"+t._s(t.$L("\u4E3A\u786E\u4FDD\u5E10\u53F7\u5B89\u5168\uFF0C\u8BF7\u786E\u8BA4\u662F\u672C\u4EBA\u64CD\u4F5C"))+"\u300D")])]),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.scanLoginShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u767B\u5F55")))]),e("Button",{attrs:{type:"primary",loading:t.scanLoginLoad},on:{click:t.scanLoginSubmit}},[t._v(t._s(t.$L("\u786E\u8BA4\u767B\u5F55")))])],1)])],1)},lt=[];const ct={name:"MobileTabbar",components:{NetworkException:O},data(){return{isMore:!1,navList:[{icon:"",name:"dashboard",label:"\u4EEA\u8868\u76D8"},{icon:"",name:"project",label:"\u9879\u76EE"},{icon:"",name:"dialog",label:"\u6D88\u606F"},{icon:"",name:"contacts",label:"\u901A\u8BAF\u5F55"},{icon:"",name:"more",label:"\u66F4\u591A"}],navMore:[[{icon:"",name:"calendar",label:"\u65E5\u5386"},{icon:"",name:"file",label:"\u6587\u4EF6"},{icon:"",name:"setting",label:"\u8BBE\u7F6E"}],[{icon:"",name:"addProject",label:"\u521B\u5EFA\u9879\u76EE"},{icon:"",name:"addTask",label:"\u6DFB\u52A0\u4EFB\u52A1"},{icon:"",name:"createMeeting",label:"\u65B0\u4F1A\u8BAE"},{icon:"",name:"joinMeeting",label:"\u52A0\u5165\u4F1A\u8BAE"}],[{icon:"",name:"workReport",label:"\u5DE5\u4F5C\u62A5\u544A"},{icon:"",name:"approve",label:"\u5BA1\u6279\u4E2D\u5FC3"}]],scanLoginShow:!1,scanLoginLoad:!1,scanLoginCode:""}},created(){$A.isEEUiApp&&this.navMore[0].splice(2,0,{icon:"",name:"scan",label:"\u626B\u4E00\u626B"}),this.userIsAdmin&&this.navMore[2].splice(0,0,{icon:"",name:"allUser",label:"\u56E2\u961F\u7BA1\u7406"})},mounted(){},beforeDestroy(){},computed:{...d(["userIsAdmin","cacheDialogs","reportUnreadNumber"]),...g(["dashboardTask"]),routeName(){return this.$route.name},msgUnreadMention(){let t=0,a=0;this.cacheDialogs.some(s=>{t+=$A.getDialogUnread(s,!1),a+=$A.getDialogMention(s)}),t>999&&(t="999+"),a>999&&(a="999+");const e=this.msgTodoTotal;return e?a?`@${a}\xB7${e}`:t?`${t}\xB7${e}`:e:t?a?`${t}\xB7@${a}`:String(t):a?`@${a}`:""},msgAllUnread(){let t=0;return this.cacheDialogs.some(a=>{t+=$A.getDialogNum(a)}),t},msgTodoTotal(){let t=this.cacheDialogs.reduce((a,e)=>a+(e.todo_num||0),0);return t>0?(t>999?t="999+":t===1&&(t=""),`${this.$L("\u5F85\u529E")}${t}`):null},unreadAndOverdue(){return this.userId>0?this.msgAllUnread+this.dashboardTask.overdue_count:0},activeName(){return this.isMore||["manage-calendar","manage-file","manage-setting"].includes(this.routeName)?"more":this.routeName==="manage-dashboard"?"dashboard":this.routeName==="manage-project"&&!/^\d+$/.test(this.$route.params.projectId)?"project":this.routeName==="manage-messenger"?this.$route.params.dialogAction==="contacts"?"contacts":"dialog":""}},watch:{windowActive(t){t||$A.eeuiAppSendMessage({action:"setBdageNotify",bdage:this.unreadAndOverdue})}},methods:{toggleRoute(t){this.$emit("on-click",t),t!="more"&&(this.isMore=!1);let a;switch(t){case"more":this.isMore=!this.isMore;return;case"scan":$A.eeuiAppScan(this.scanResult);return;case"addTask":case"addProject":case"allUser":case"workReport":return;case"createMeeting":c.Store.set("addMeeting",{type:"create",userids:[this.userId]});break;case"joinMeeting":c.Store.set("addMeeting",{type:"join"});break;case"project":a={name:"manage-project",params:{projectId:"all"}};break;case"dialog":a={name:"manage-messenger",params:{dialogAction:"dialog"}},this.routeName==="manage-messenger"&&c.Store.set("clickAgainDialog",!0);break;case"contacts":a={name:"manage-messenger",params:{dialogAction:"contacts"}};break;default:a={name:"manage-"+t};break}this.goForward(a)},scanResult(t){const a=(t+"").match(/^https*:\/\/(.*?)\/login\?qrcode=(.*?)$/);if(a){this.scanLoginCode=a[2],this.scanLoginShow=!0;return}/^https*:\/\//i.test(t)&&$A.eeuiAppOpenPage({pageType:"app",pageTitle:" ",url:"web.js",params:{url:t,browser:!0,showProgress:!0}})},scanLoginSubmit(){this.scanLoginLoad!==!0&&(this.scanLoginLoad=!0,this.$store.dispatch("call",{url:"users/login/qrcode",data:{type:"login",code:this.scanLoginCode}}).then(({msg:t})=>{this.scanLoginShow=!1,$A.messageSuccess(t)}).catch(({msg:t})=>{$A.messageError(t)}).finally(t=>{this.scanLoginLoad=!1}))}}},w={};var dt=r(ct,nt,lt,!1,ht,null,null,null);function ht(t){for(let a in w)this[a]=w[a]}var ut=function(){return dt.exports}(),pt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"task-add"},[e("div",{staticClass:"head",class:{empty:t.addData.cascader.length==0,visible:t.cascaderShow}},[e("Cascader",{attrs:{data:t.cascaderData,clearable:!1,placeholder:t.$L("\u8BF7\u9009\u62E9\u9879\u76EE"),"load-data":t.cascaderLoadData,filterable:""},on:{"on-change":t.cascaderChange,"on-input-change":t.cascaderInputChange,"on-visible-change":function(s){t.cascaderShow=!t.cascaderShow}},model:{value:t.addData.cascader,callback:function(s){t.$set(t.addData,"cascader",s)},expression:"addData.cascader"}})],1),e("div",{staticClass:"task-add-form"},[e("div",{staticClass:"title"},[e("Input",{ref:"input",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:8},maxlength:255,placeholder:t.$L("\u4EFB\u52A1\u63CF\u8FF0"),enterkeyhint:"done"},on:{"on-keydown":t.onKeydown},model:{value:t.addData.name,callback:function(s){t.$set(t.addData,"name",s)},expression:"addData.name"}})],1),e("div",{staticClass:"desc"},[e("TEditor",{attrs:{plugins:t.taskPlugins,options:t.taskOptions,"option-full":t.taskOptionFull,placeholder:t.$L(t.windowLandscape?"\u8BE6\u7EC6\u63CF\u8FF0\uFF0C\u9009\u586B...\uFF08\u70B9\u51FB\u53F3\u952E\u4F7F\u7528\u5DE5\u5177\u680F\uFF09":"\u8BE6\u7EC6\u63CF\u8FF0\uFF0C\u9009\u586B..."),placeholderFull:t.$L("\u8BE6\u7EC6\u63CF\u8FF0..."),inline:""},model:{value:t.addData.content,callback:function(s){t.$set(t.addData,"content",s)},expression:"addData.content"}})],1),e("div",{staticClass:"advanced-option"},[e("Button",{class:{advanced:t.advanced},on:{click:function(s){t.advanced=!t.advanced}}},[t._v(t._s(t.$L("\u9AD8\u7EA7\u9009\u9879")))]),e("ul",{staticClass:"advanced-priority"},t._l(t.taskPriority,function(s,i){return e("li",{key:i},[e("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch,content:t.taskPriorityContent(s)}},[e("i",{staticClass:"taskfont",style:{color:s.color},domProps:{innerHTML:t._s(t.addData.p_name==s.name?"":"")},on:{click:function(o){return t.choosePriority(s)}}})])],1)}),0),t.taskDays>0?e("DatePicker",{attrs:{open:t.taskTimeOpen,options:t.timeOptions,placeholder:t.$L("\u9009\u62E9\u8BA1\u5212\u8303\u56F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange",placement:"bottom"},on:{"on-change":function(s){return t.taskTimeChange(t.addData.times)},"on-open-change":t.taskTimeOpenChange},model:{value:t.addData.times,callback:function(s){t.$set(t.addData,"times",s)},expression:"addData.times"}},[e("div",{staticClass:"advanced-time",on:{click:function(s){return t.taskTimeOpenChange(!t.taskTimeOpen)}}},[e("Icon",{attrs:{type:"ios-clock-outline"}}),e("em",{style:t.addData.p_color?{backgroundColor:t.addData.p_color}:{},attrs:{type:"primary"}},[t._v(t._s(t.taskDays))])],1)]):t._e()],1)]),t.advanced?e("Form",{staticClass:"task-add-advanced",attrs:{"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u8BA1\u5212\u65F6\u95F4")}},[e("DatePicker",{attrs:{options:t.timeOptions,editable:!1,placeholder:t.$L("\u9009\u62E9\u8BA1\u5212\u8303\u56F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange"},on:{"on-change":function(s){return t.taskTimeChange(t.addData.times)}},model:{value:t.addData.times,callback:function(s){t.$set(t.addData,"times",s)},expression:"addData.times"}})],1),e("FormItem",{attrs:{label:t.$L("\u4EFB\u52A1\u8D1F\u8D23\u4EBA")}},[e("UserSelect",{attrs:{"multiple-max":10,title:t.$L("\u9009\u62E9\u4EFB\u52A1\u8D1F\u8D23\u4EBA"),"project-id":t.addData.project_id,"avatar-size":24,border:""},model:{value:t.addData.owner,callback:function(s){t.$set(t.addData,"owner",s)},expression:"addData.owner"}}),t.showAddAssist?e("div",{staticClass:"task-add-assist"},[e("Checkbox",{attrs:{"true-value":1,"false-value":0},model:{value:t.addData.add_assist,callback:function(s){t.$set(t.addData,"add_assist",s)},expression:"addData.add_assist"}},[t._v(t._s(t.$L("\u52A0\u5165\u4EFB\u52A1\u534F\u52A9\u4EBA\u5458\u5217\u8868")))]),e("ETooltip",{attrs:{disabled:t.$isEEUiApp||t.windowTouch,content:t.$L("\u4F60\u4E0D\u662F\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u65F6\u5EFA\u8BAE\u52A0\u5165\u4EFB\u52A1\u534F\u52A9\u4EBA\u5458\u5217\u8868")}},[e("Icon",{attrs:{type:"ios-alert-outline"}})],1)],1):t._e()],1),e("FormItem",[e("div",{attrs:{slot:"label"},slot:"label"},[e("EDropdown",{ref:"eDropdownRef",attrs:{trigger:"click",placement:"bottom"},on:{command:t.dropVisible}},[e("span",{staticClass:"visibility-text"},[t._v(t._s(t.$L("\u53EF\u89C1\u6027"))+" "),e("i",{staticClass:"taskfont"},[t._v("\uE740")])]),e("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("EDropdownItem",{attrs:{command:1}},[e("div",{staticClass:"task-menu-icon"},[t.addData.visibility_appoint==1?e("Icon",{staticClass:"completed",attrs:{type:"md-checkmark-circle"}}):e("Icon",{staticClass:"uncomplete",attrs:{type:"md-radio-button-off"}}),t._v(" "+t._s(t.$L("\u9879\u76EE\u4EBA\u5458"))+" ")],1)]),e("EDropdownItem",{attrs:{command:2}},[e("div",{staticClass:"task-menu-icon"},[t.addData.visibility_appoint==2?e("Icon",{staticClass:"completed",attrs:{type:"md-checkmark-circle"}}):e("Icon",{staticClass:"uncomplete",attrs:{type:"md-radio-button-off"}}),t._v(" "+t._s(t.$L("\u4EFB\u52A1\u4EBA\u5458"))+" ")],1)]),e("EDropdownItem",{attrs:{command:3}},[e("div",{staticClass:"task-menu-icon"},[t.addData.visibility_appoint==3?e("Icon",{staticClass:"completed",attrs:{type:"md-checkmark-circle"}}):e("Icon",{staticClass:"uncomplete",attrs:{type:"md-radio-button-off"}}),t._v(" "+t._s(t.$L("\u6307\u5B9A\u6210\u5458"))+" ")],1)])],1)],1)],1),t.addData.visibility_appoint<3?e("div",{staticClass:"ivu-input task-add-visibility",on:{click:t.showCisibleDropdown}},[t.addData.visibility_appoint==1?e("span",[t._v(t._s(t.$L("\u9879\u76EE\u4EBA\u5458\u53EF\u89C1")))]):t.addData.visibility_appoint==2?e("span",[t._v(t._s(t.$L("\u4EFB\u52A1\u4EBA\u5458\u53EF\u89C1")))]):t._e()]):e("UserSelect",{ref:"visibleUserSelectRef",attrs:{"avatar-size":24,title:t.$L("\u9009\u62E9\u6307\u5B9A\u4EBA\u5458"),"project-id":t.addData.project_id,border:""},on:{"on-show-change":t.visibleUserSelectShowChange},model:{value:t.addData.visibility_appointor,callback:function(s){t.$set(t.addData,"visibility_appointor",s)},expression:"addData.visibility_appointor"}})],1),e("div",{staticClass:"subtasks"},[t.addData.subtasks.length>0?e("div",{staticClass:"sublist"},[e("Row",[e("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u4EFB\u52A1\u63CF\u8FF0")))]),e("Col",{attrs:{span:"8"}},[t._v(t._s(t.$L("\u8BA1\u5212\u65F6\u95F4")))]),e("Col",{attrs:{span:"4"}},[t._v(t._s(t.$L("\u8D1F\u8D23\u4EBA")))])],1),t._l(t.addData.subtasks,function(s,i){return e("Row",{key:i},[e("Col",{attrs:{span:"12"}},[e("Input",{attrs:{maxlength:255,clearable:""},on:{"on-clear":function(o){return t.addData.subtasks.splice(i,1)}},model:{value:s.name,callback:function(o){t.$set(s,"name",o)},expression:"item.name"}})],1),e("Col",{attrs:{span:"8"}},[e("DatePicker",{attrs:{options:t.timeOptions,editable:!1,placeholder:t.$L("\u9009\u62E9\u65F6\u95F4"),format:"yyyy/MM/dd HH:mm",type:"datetimerange"},on:{"on-change":function(o){return t.taskTimeChange(s.times)}},model:{value:s.times,callback:function(o){t.$set(s,"times",o)},expression:"item.times"}})],1),e("Col",{attrs:{span:"4"}},[e("UserSelect",{attrs:{"multiple-max":1,title:t.$L("\u9009\u62E9\u8D1F\u8D23\u4EBA"),"project-id":t.addData.project_id,"avatar-size":24,border:""},model:{value:s.owner,callback:function(o){t.$set(s,"owner",o)},expression:"item.owner"}})],1)],1)})],2):t._e(),e("Input",{class:["enter-input",t.subName==""?"empty":""],attrs:{type:"text",placeholder:t.$L("+ \u8F93\u5165\u5B50\u4EFB\u52A1\uFF0C\u56DE\u8F66\u6DFB\u52A0\u5B50\u4EFB\u52A1")},on:{"on-enter":t.addSubTask},model:{value:t.subName,callback:function(s){t.subName=s},expression:"subName"}})],1)],1):t._e(),e("div",{staticClass:"ivu-modal-footer"},[e("div",{staticClass:"adaption"},[e("Button",{attrs:{type:"default"},on:{click:t.close}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("ButtonGroup",{staticClass:"page-manage-add-task-button-group"},[e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onAdd}},[t._v(t._s(t.$L("\u6DFB\u52A0\u4EFB\u52A1")))]),e("Dropdown",{attrs:{transfer:""},on:{"on-click":function(s){return t.onAdd(!0)}}},[e("Button",{attrs:{type:"primary"}},[e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{attrs:{disabled:t.loadIng>0}},[t._v(t._s(t.$L("\u63D0\u4EA4\u7EE7\u7EED\u6DFB\u52A0")))])],1)],1)],1)],1)])],1)},mt=[];const ft={name:"TaskAdd",components:{UserSelect:v,TEditor:W},props:{value:{type:Boolean,default:!1}},data(){return{addData:{cascader:[],name:"",content:"",owner:[],add_assist:1,project_id:0,column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:"",visibility_appoint:1,visibility_appointor:[]},cascaderShow:!1,cascaderData:[],cascaderValue:"",cascaderLoading:0,cascaderAlready:[],advanced:!1,subName:"",taskPlugins:["advlist autolink lists link image charmap print preview hr anchor pagebreak","searchreplace visualblocks visualchars code","insertdatetime media nonbreaking save table directionality","emoticons paste codesample","autoresize"],taskOptions:{statusbar:!1,menubar:!1,autoresize_bottom_margin:2,min_height:200,max_height:380,contextmenu:"bold italic underline forecolor backcolor | codesample | uploadImages imagePreview | preview screenload",valid_elements:"a[href|target=_blank],em,strong/b,div[align],span[style],a,br,p,img[src|alt|witdh|height],pre[class],code",toolbar:!1},taskOptionFull:{menubar:"file edit view",valid_elements:"a[href|target=_blank],em,strong/b,div[align],span[style],a,br,p,img[src|alt|witdh|height],pre[class],code",toolbar:"uploadImages | bold italic underline forecolor backcolor | codesample | preview screenload"},taskTimeOpen:!1,timeOptions:{shortcuts:$A.timeOptionShortcuts()},loadIng:0,isMounted:!1,beforeClose:[]}},async mounted(){this.initCascaderData(),await this.initProjectData(),this.$nextTick(()=>this.$refs.input.focus()),this.isMounted=!0},beforeDestroy(){this.beforeClose.some(t=>{typeof t=="function"&&t()}),this.beforeClose=[]},computed:{...d(["cacheProjects","projectId","cacheColumns","taskPriority"]),taskDays(){const{times:t}=this.addData;let a=$A.date2string(t,"Y-m-d H:i");if(a[0]&&a[1]){let e=Math.ceil(($A.Date(a[1],!0)-$A.Date(a[0],!0))/86400);if(e>0)return e}return 0},showAddAssist(){return!this.addData.owner.includes(this.userId)}},watch:{"addData.project_id"(t){t>0&&$A.IDBSave("cacheAddTaskProjectId",t)},"addData.column_id"(t){t>0&&$A.IDBSave("cacheAddTaskColumnId",t);const{project_id:a}=this.addData;a&&t?this.$set(this.addData,"cascader",[a,t]):this.$set(this.addData,"cascader",[])}},methods:{initCascaderData(){const t=$A.cloneJSON(this.cacheProjects).sort((a,e)=>a.top_at||e.top_at?$A.Date(e.top_at)-$A.Date(a.top_at):e.id-a.id);this.cascaderData=t.map(a=>{const e=this.cacheColumns.filter(({project_id:i})=>i==a.id).map(i=>({value:i.id,label:i.name})),s={value:a.id,label:a.name,children:e};return e.length==0&&(s.loading=!1),s})},async initProjectData(){let t=await $A.IDBInt("cacheAddTaskProjectId"),a=this.cacheProjects.find(({id:e})=>e==this.projectId)||this.cacheProjects.find(({id:e})=>e==t)||this.cacheProjects.find(({id:e})=>e>0);if(a){let e=await $A.IDBInt("cacheAddTaskColumnId"),s=this.cacheColumns.find(({project_id:i,id:o})=>i==a.id&&o==e)||this.cacheColumns.find(({project_id:i})=>i==a.id);s?(this.addData.project_id=s.project_id,this.addData.column_id=s.id):this.$store.dispatch("getColumns",a.id).then(()=>{s=this.cacheColumns.find(({project_id:i,id:o})=>i==a.id&&o==e)||this.cacheColumns.find(({project_id:i})=>i==a.id),s&&(this.addData.project_id=s.project_id,this.addData.column_id=s.id)}).catch(()=>{})}this.taskPriority.length>0&&this.choosePriority(this.taskPriority[0])},taskTimeChange(t){let a=$A.date2string(t,"Y-m-d H:i");a[0]&&a[1]&&$A.rightExists(a[0],"00:00")&&$A.rightExists(a[1],"00:00")&&this.$set(this.addData,"times",[a[0],a[1].replace("00:00","23:59")])},taskTimeOpenChange(t){this.taskTimeOpen=t},onKeydown(t){if(t.keyCode===13){if(t.shiftKey)return;t.preventDefault(),this.onAdd()}},addSubTask(){this.subName.trim()!==""&&(this.addData.subtasks.push({name:this.subName.trim(),owner:[this.userId],times:[]}),this.subName="")},taskPriorityContent(t){let a=$A.runNum(t.days);return a<=0?t.name+" ("+this.$L("\u65E0\u65F6\u95F4\u9650\u5236")+")":t.name+" ("+a+this.$L("\u5929")+")"},choosePriority(t){let a=new Date,e=$A.runNum(t.days);if(e>0){let s=new Date(new Date().setDate(a.getDate()+e));this.$set(this.addData,"times",$A.date2string([a,s]))}else this.$set(this.addData,"times",[]);this.$set(this.addData,"p_level",t.priority),this.$set(this.addData,"p_name",t.name),this.$set(this.addData,"p_color",t.color)},cascaderLoadData(t,a){t.loading=!0,this.$store.dispatch("getColumns",t.value).then(e=>{t.children=e.map(s=>({value:s.id,label:s.name})),t.loading=!1,a()}).catch(()=>{t.loading=!1,a()})},cascaderChange(t){t[1]&&(this.$set(this.addData,"project_id",t[0]),this.$set(this.addData,"column_id",t[1]))},cascaderInputChange(t){this.cascaderValue=t||"",this.cascaderAlready[this.cascaderValue]!==!0&&(this.cascaderAlready[this.cascaderValue]=!0,setTimeout(()=>{this.cascaderLoading++},1e3),this.$store.dispatch("getProjects",{keys:{name:this.cascaderValue},getcolumn:"yes"}).then(()=>{this.cascaderLoading--,this.initCascaderData()}).catch(()=>{this.cascaderLoading--}))},setData(t){if(!this.isMounted){this.__setData&&clearTimeout(this.__setData),this.__setData=setTimeout(a=>this.setData(t),10);return}typeof t.beforeClose!="undefined"&&(this.beforeClose.push(t.beforeClose),delete t.beforeClose),this.addData=Object.assign({},this.addData,t)},onAdd(t){if(!this.addData.name){$A.messageError("\u4EFB\u52A1\u63CF\u8FF0\u4E0D\u80FD\u4E3A\u7A7A");return}this.loadIng++,this.$store.dispatch("taskAdd",this.addData).then(({msg:a})=>{this.loadIng--,$A.messageSuccess(a),t===!0?(this.addData=Object.assign({},this.addData,{name:"",content:"",subtasks:[]}),this.$refs.input.focus()):(this.addData={cascader:[],name:"",content:"",owner:[],add_assist:1,column_id:0,times:[],subtasks:[],p_level:0,p_name:"",p_color:""},this.close())}).catch(({msg:a})=>{this.loadIng--,$A.modalError(a)})},close(){this.$emit("input",!this.value)},showCisibleDropdown(){this.$refs.eDropdownRef.show()},visibleUserSelectShowChange(t){if(!t&&(this.addData.visibility_appointor.length==0||!this.addData.visibility_appointor[0])){let a=this.addData.old_visibility_appoint;this.addData.visibility_appoint=a>2?1:a||1,this.addData.visibility_appoint<3}},dropVisible(t){switch(t){case 1:case 2:this.addData.visibility_appoint=t;break;case 3:this.addData.old_visibility_appoint=this.addData.visibility_appoint,this.addData.visibility_appoint=t,this.$nextTick(()=>{this.$refs.visibleUserSelectRef.onSelection()});break}}}},D={};var gt=r(ft,pt,mt,!1,vt,null,null,null);function vt(t){for(let a in D)this[a]=D[a]}var _t=function(){return gt.exports}(),$t=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"report-list-wrap"},[e("div",{staticClass:"search-expand"},[e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.type,callback:function(s){t.$set(t.keys,"type",s)},expression:"keys.type"}},t._l(t.reportTypeList,function(s){return e("Option",{key:s.value,attrs:{value:s.value}},[t._v(t._s(s.label))])}),1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u65F6\u95F4"))+" ")]),e("div",{staticClass:"search-content"},[e("DatePicker",{attrs:{type:"daterange","split-panels":"",placeholder:t.$L("\u8BF7\u9009\u62E9\u65F6\u95F4")},model:{value:t.keys.created_at,callback:function(s){t.$set(t.keys,"created_at",s)},expression:"keys.created_at"}})],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(s){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"expand-button-group"},[e("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.addReport}},[t._v(t._s(t.$L("\u65B0\u589E\u62A5\u544A")))])],1)]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.lists,loading:t.loadIng>0,"no-data-text":t.$L(t.noDataText),stripe:""}}),e("Page",{attrs:{total:t.listTotal,current:t.listPage,"page-size":t.listPageSize,disabled:t.loadIng>0,simple:t.windowPortrait,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)])},bt=[];const kt={name:"ReportMy",data(){return{loadIng:0,columns:[{title:this.$L("\u540D\u79F0"),key:"title",minWidth:180,render:(t,{row:a})=>t("AutoTip",a.title)},{title:this.$L("\u7C7B\u578B"),key:"type",align:"center",width:90},{title:this.$L("\u6C47\u62A5\u65F6\u95F4"),key:"created_at",align:"center",width:180},{title:this.$L("\u6C47\u62A5\u5BF9\u8C61"),key:"receives",align:"center",width:90,render:(t,{row:a})=>{if(a.receives.length===0)return t("div","-");const e=[];return a.receives.length<=2?a.receives.some(s=>{e.push(t("UserAvatar",{props:{size:22,userid:s}}))}):(e.push(t("UserAvatar",{props:{size:22,userid:a.receives[0]}})),e.push(t("div",{class:"more-avatar"},`+${a.receives.length-1}`))),t("div",{class:"report-table-avatar"},e)}},{title:this.$L("\u64CD\u4F5C"),align:"center",width:100,minWidth:100,render:(t,{column:a,row:e})=>e.id?t("TableAction",{props:{column:a,menu:[{icon:"md-create",action:"edit"},{icon:"md-eye",action:"view"}]},on:{action:s=>{s==="edit"?this.$emit("on-edit",e.id):s==="view"&&this.$emit("on-view",e)}}}):null}],lists:[],listPage:1,listTotal:0,listPageSize:20,noDataText:"\u6570\u636E\u52A0\u8F7D\u4E2D.....",keys:{},keyIs:!1,reportTypeList:[{value:"",label:this.$L("\u5168\u90E8")},{value:"weekly",label:this.$L("\u5468\u62A5")},{value:"daily",label:this.$L("\u65E5\u62A5")}]}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.listPage=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"report/my",data:{keys:this.keys,page:Math.max(this.listPage,1),pagesize:Math.max($A.runNum(this.listPageSize),10)}}).then(({data:t})=>{this.lists=t.data,this.listTotal=t.total,this.noDataText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(({msg:t})=>{$A.messageError(t),this.noDataText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(()=>{this.loadIng--})},setPage(t){this.listPage=t,this.getLists()},setPageSize(t){Math.max($A.runNum(this.listPageSize),10)!==t&&(this.listPageSize=t,this.getLists())},addReport(){this.$emit("on-edit",0)}}},L={};var yt=r(kt,$t,bt,!1,wt,null,null,null);function wt(t){for(let a in L)this[a]=L[a]}var Dt=function(){return yt.exports}(),Lt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"report-list-wrap"},[e("div",{staticClass:"search-container lr"},[e("ul",[e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u5173\u952E\u8BCD"))+" ")]),e("div",{staticClass:"search-content"},[e("Input",{attrs:{placeholder:t.$L("\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22"),clearable:""},model:{value:t.keys.key,callback:function(s){t.$set(t.keys,"key",s)},expression:"keys.key"}})],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u7C7B\u578B"))+" ")]),e("div",{staticClass:"search-content"},[e("Select",{attrs:{placeholder:t.$L("\u5168\u90E8")},model:{value:t.keys.type,callback:function(s){t.$set(t.keys,"type",s)},expression:"keys.type"}},t._l(t.reportTypeList,function(s){return e("Option",{key:s.value,attrs:{value:s.value}},[t._v(t._s(s.label))])}),1)],1)]),e("li",[e("div",{staticClass:"search-label"},[t._v(" "+t._s(t.$L("\u6C47\u62A5\u65F6\u95F4"))+" ")]),e("div",{staticClass:"search-content"},[e("DatePicker",{attrs:{type:"daterange","split-panels":"",placeholder:t.$L("\u8BF7\u9009\u62E9\u65F6\u95F4")},model:{value:t.keys.created_at,callback:function(s){t.$set(t.keys,"created_at",s)},expression:"keys.created_at"}})],1)]),e("li",{staticClass:"search-button"},[e("Tooltip",{attrs:{theme:"light",placement:"right","transfer-class-name":"search-button-clear",transfer:""}},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary",icon:"ios-search"},on:{click:t.onSearch}},[t._v(t._s(t.$L("\u641C\u7D22")))]),e("div",{attrs:{slot:"content"},slot:"content"},[t.keyIs?e("Button",{attrs:{type:"text"},on:{click:function(s){t.keyIs=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88\u7B5B\u9009")))]):e("Button",{attrs:{loading:t.loadIng>0,type:"text"},on:{click:t.getLists}},[t._v(t._s(t.$L("\u5237\u65B0")))])],1)],1)],1)])]),e("div",{staticClass:"table-page-box"},[e("Table",{attrs:{columns:t.columns,data:t.lists,loading:t.loadIng>0,"no-data-text":t.$L(t.noDataText),stripe:""},on:{"on-selection-change":t.selectChange}}),e("div",{staticClass:"table-attach"},[e("div",{staticClass:"select-box"},[e("Select",{attrs:{disabled:t.selectIds.length==0,placeholder:t.$L("\u8BF7\u9009\u62E9"),transfer:""},on:{"on-change":function(s){t.groupSelect=!0}},model:{value:t.selectAction,callback:function(s){t.selectAction=s},expression:"selectAction"}},[e("Option",{attrs:{value:"read"}},[t._v(t._s(t.$L("\u6807\u8BB0\u5DF2\u8BFB")))]),e("Option",{attrs:{value:"unread"}},[t._v(t._s(t.$L("\u6807\u8BB0\u672A\u8BFB")))])],1),e("Button",{attrs:{loading:t.loadIng>0,type:"primary",disabled:t.selectAction==""||t.selectIds.length==0},on:{click:t.selectClick}},[t._v(t._s(t.$L("\u6267\u884C")))])],1),e("Page",{attrs:{total:t.listTotal,current:t.listPage,"page-size":t.listPageSize,disabled:t.loadIng>0,simple:t.windowPortrait,"page-size-opts":[10,20,30,50,100],"show-elevator":"","show-sizer":"","show-total":""},on:{"on-change":t.setPage,"on-page-size-change":t.setPageSize}})],1)],1)])},Ct=[];const xt={name:"ReportReceive",data(){return{loadIng:0,columns:[{type:"selection",width:50,align:"right"},{title:this.$L("\u6807\u9898"),key:"title",sortable:!0,minWidth:180,render:(t,{row:a})=>{let e=[];const s=a.receives_user.find(({userid:i})=>i==this.userId);return s&&s.pivot.read==0?e.push(t("Tag",{props:{color:"orange"},style:{flexShrink:0}},this.$L("\u672A\u8BFB")),t("AutoTip",a.title)):e.push(t("AutoTip",a.title)),t("div",{style:{display:"flex",alignItems:"center"}},e)}},{title:this.$L("\u7C7B\u578B"),key:"type",sortable:!0,width:90},{title:this.$L("\u63A5\u6536\u65F6\u95F4"),key:"receive_time",align:"center",sortable:!0,width:180},{title:this.$L("\u64CD\u4F5C"),align:"center",width:90,minWidth:90,render:(t,{column:a,row:e})=>e.id?t("TableAction",{props:{column:a,menu:[{icon:"md-eye",action:"view"}]},on:{action:s=>{if(s==="view"){this.$emit("on-view",e);const i=e.receives_user.find(({userid:o})=>o==this.userId);i&&this.$set(i.pivot,"read",1)}}}}):null}],lists:[],listPage:1,listTotal:0,listPageSize:20,noDataText:"\u6570\u636E\u52A0\u8F7D\u4E2D.....",keys:{},keyIs:!1,selectIds:[],selectAction:"",reportTypeList:[{value:"",label:this.$L("\u5168\u90E8")},{value:"weekly",label:this.$L("\u5468\u62A5")},{value:"daily",label:this.$L("\u65E5\u62A5")}]}},mounted(){this.getLists()},watch:{keyIs(t){t||(this.keys={},this.setPage(1))}},methods:{onSearch(){this.listPage=1,this.getLists()},getLists(){this.loadIng++,this.keyIs=$A.objImplode(this.keys)!="",this.$store.dispatch("call",{url:"report/receive",data:{keys:this.keys,page:Math.max(this.listPage,1),pagesize:Math.max($A.runNum(this.listPageSize),10)}}).then(({data:t})=>{this.lists=t.data,this.listTotal=t.total,this.noDataText="\u6CA1\u6709\u76F8\u5173\u7684\u6570\u636E"}).catch(({msg:t})=>{$A.messageError(t),this.noDataText="\u6570\u636E\u52A0\u8F7D\u5931\u8D25"}).finally(()=>{this.loadIng--})},setPage(t){this.listPage=t,this.getLists()},setPageSize(t){Math.max($A.runNum(this.listPageSize),10)!==t&&(this.listPageSize=t,this.getLists())},selectChange(t){this.selectIds=t.map(({id:a})=>a)},selectClick(){if(this.selectIds.length===0){$A.messageWarning("\u8BF7\u9009\u62E9\u7EBF\u8DEF");return}switch(this.selectAction){case"read":case"unread":this.readReport(this.selectIds,this.selectAction);break;default:$A.messageWarning("\u8BF7\u9009\u62E9\u6267\u884C\u65B9\u5F0F");break}},readReport(t,a){const e=a==="read"?"\u6807\u8BB0\u5DF2\u8BFB":"\u6807\u8BB0\u672A\u8BFB";$A.modalConfirm({content:`\u4F60\u786E\u5B9A\u8981\u3010${e}\u3011\u5417\uFF1F`,cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",loading:!0,onOk:()=>new Promise((s,i)=>{this.$store.dispatch("call",{url:"report/mark",data:{id:t,action:a}}).then(({msg:o})=>{s(o),this.getLists(),this.$emit("on-read")}).catch(({msg:o})=>{i(o)})})})}}},C={};var Tt=r(xt,Lt,Ct,!1,St,null,null,null);function St(t){for(let a in C)this[a]=C[a]}var It=function(){return Tt.exports}(),At=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"report"},[e("Tabs",{model:{value:t.reportTabs,callback:function(s){t.reportTabs=s},expression:"reportTabs"}},[e("TabPane",{attrs:{label:t.$L("\u6211\u7684\u6C47\u62A5"),name:"my"}},[t.reportTabs==="my"?e("ReportMy",{ref:"report",on:{"on-view":t.onView,"on-edit":t.onEditReport}}):t._e()],1),e("TabPane",{attrs:{label:t.tabRebder(t.reportUnreadNumber),name:"receive"}},[t.reportTabs==="receive"?e("ReportReceive",{on:{"on-view":t.onView,"on-read":t.onRead}}):t._e()],1)],1),e("DrawerOverlay",{attrs:{placement:"right",size:950,transfer:""},model:{value:t.showDetailDrawer,callback:function(s){t.showDetailDrawer=s},expression:"showDetailDrawer"}},[t.showDetailDrawer?e("ReportDetail",{attrs:{data:t.detailData}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1e3,transfer:""},model:{value:t.showEditDrawer,callback:function(s){t.showEditDrawer=s},expression:"showEditDrawer"}},[t.showEditDrawer?e("ReportEdit",{attrs:{id:t.reportId},on:{saveSuccess:t.saveSuccess}}):t._e()],1)],1)},Mt=[];const jt={name:"Report",components:{DrawerOverlay:B,ReportEdit:H,ReportMy:Dt,ReportReceive:It,ReportDetail:V},props:{value:{default:"my"}},data(){return{reportTabs:"my",showDetailDrawer:!1,showEditDrawer:!1,detailData:{},reportId:0}},mounted(){this.reportTabs=this.value,this.$isMainElectron&&this.$Electron.listenerOnly("reportSaveSuccess",({data:t,msg:a})=>{$A.messageSuccess(a),this.saveSuccess(t)})},computed:{...d(["reportUnreadNumber"])},watch:{reportTabs(t){this.$emit("input",t)}},methods:{tabRebder(t){return a=>t>0?a("div",[a("span",{class:"navbar-item-content"},this.$L("\u6536\u5230\u7684\u6C47\u62A5")),a("Badge",{class:"manage-box-report",props:{count:t}})]):a("div",[a("span",{class:"navbar-item-content"},this.$L("\u6536\u5230\u7684\u6C47\u62A5"))])},onView(t){if(this.detailData=t,this.$emit("on-read"),this.$Electron){let a={title:t.title,titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)};this.$Electron.sendMessage("windowRouter",{name:`report-detail-${t.id}`,path:`/single/report/detail/${t.id}`,force:!1,config:a})}else this.showDetailDrawer=!0},onRead(){this.$emit("on-read",0)},onEditReport(t){if(this.$Electron){let a={title:this.$L(t>0?"\u4FEE\u6539\u62A5\u544A":"\u65B0\u589E\u62A5\u544A"),parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)};this.$Electron.sendMessage("windowRouter",{name:`report-edit-${t}`,path:`/single/report/edit/${t}`,force:!1,config:a})}else this.reportId=t,this.showEditDrawer=!0},saveSuccess(){this.reportId=0,this.reportTabs="my",this.showEditDrawer=!1,this.$refs.report&&this.$refs.report.getLists()}}},x={};var Pt=r(jt,At,Mt,!1,Ut,null,null,null);function Ut(t){for(let a in x)this[a]=x[a]}var Rt=function(){return Pt.exports}(),Et=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"mobile-back"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.windowScrollY>0,expression:"windowScrollY > 0"}],ref:"bar",staticClass:"back-bar"}),t.show?e("div",{staticClass:"back-semicircle",style:t.style}):t._e()])},Bt=[];const Nt={name:"MobileBack",props:{showTabbar:{type:Boolean,default:!1}},data(){return{show:!1,x:0,y:0}},created(){this.appAndroidEvents()},mounted(){this.$refs.bar.addEventListener("touchmove",this.barListener),document.addEventListener("touchstart",this.touchstart),document.addEventListener("touchmove",this.touchmove),document.addEventListener("touchend",this.touchend)},beforeDestroy(){this.$refs.bar.removeEventListener("touchmove",this.barListener),document.removeEventListener("touchstart",this.touchstart),document.removeEventListener("touchmove",this.touchmove),document.removeEventListener("touchend",this.touchend)},computed:{...d(["fileLists","messengerSearchKey"]),style(){const a=Math.max(135,this.y)+this.windowScrollY,e=this.windowHeight-135;return{top:Math.min(a,e)+"px",left:this.x>20?0:"-50px"}},routeName(){return this.$route.name},fileFolderId(){const{folderId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)}},watch:{show(t){t?document.body.classList.add("touch-back"):document.body.classList.remove("touch-back"),this.$store.state.touchBackInProgress=t}},methods:{getXY(t){let a=t.touches[0];this.x=a.clientX,this.y=a.clientY},barListener(t){t.preventDefault()},touchstart(t){this.getXY(t),this.show=this.canBack()&&this.x<20},touchmove(t){this.show&&this.getXY(t)},touchend(){this.x>90&&this.show&&this.onBack(),this.x=0,this.show=!1},canBack(){if(!this.showTabbar||this.$Modal.visibles().length>0||this.fileFolderId>0)return!0;if(this.routeName==="manage-messenger"){if(this.$route.params.dialogAction==="contacts"){if(this.messengerSearchKey.contacts)return!0}else if(this.messengerSearchKey.dialog)return!0}return!1},onBack(){if(!this.$Modal.removeLast()){if(this.fileFolderId>0){const t=this.fileLists.find(({id:a,permission:e})=>a==this.fileFolderId&&e>-1);if(t){const a=this.fileLists.find(({id:e,permission:s})=>e==t.pid&&s>-1);if(a){this.goForward({name:"manage-file",params:{folderId:a.id,fileId:null}});return}}this.goForward({name:"manage-file"});return}if(this.routeName==="manage-messenger"){if(this.$route.params.dialogAction==="contacts"){if(this.messengerSearchKey.contacts){this.$store.state.messengerSearchKey.contacts="";return}}else if(this.messengerSearchKey.dialog){this.$store.state.messengerSearchKey.dialog="";return}}this.goBack()}},appAndroidEvents(){this.$isEEUiApp&&$A.isAndroid()&&$A.eeuiAppSetPageBackPressed({pageName:"firstPage"},t=>{this.canBack()?this.onBack():$A.eeuiAppGoDesktop()})}}},T={};var Ot=r(Nt,Et,Bt,!1,zt,null,null,null);function zt(t){for(let a in T)this[a]=T[a]}var Ft=function(){return Ot.exports}(),Wt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.show&&t.userid>0?e("transition",{attrs:{name:"mobile-notify"}},[e("div",{staticClass:"mobile-notification",class:{show:t.show},on:{click:function(s){return s.stopPropagation(),t.onClick.apply(null,arguments)},touchstart:t.onTouchstart,touchmove:t.onTouchmove}},[e("UserAvatar",{attrs:{userid:t.userid,size:40,"show-name":"","name-text":t.title}}),e("div",{staticClass:"notification-desc"},[t._v(t._s(t.desc))])],1)]):t._e()},Ht=[];const Vt={name:"MobileNotification",data(){return{userid:0,title:"",desc:"",duration:6e3,callback:null,show:!1,timer:null,startY:0}},beforeDestroy(){this.timer&&clearTimeout(this.timer),this.show=!1},methods:{open(t){!$A.isJson(t)||(this.userid=t.userid||0,this.title=t.title||"",this.desc=t.desc||"",this.duration=typeof t.duration=="number"?t.duration:6e3,this.callback=typeof t.callback=="function"?t.callback:null,this.show=!0,this.timer&&clearTimeout(this.timer),this.duration>0&&(this.timer=setTimeout(this.close,this.duration)),$A.eeuiAppSendMessage({action:"setVibrate"}))},close(){this.show=!1},onClick(){this.close(),typeof this.callback=="function"&&this.callback()},onTouchstart(t){this.startY=t.touches[0].clientY},onTouchmove(t){this.startY>0&&this.startY-t.touches[0].clientY>10&&(this.startY=0,this.close())}}},S={};var Kt=r(Vt,Wt,Ht,!1,Yt,null,null,null);function Yt(t){for(let a in S)this[a]=S[a]}var Jt=function(){return Kt.exports}(),qt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.userid?e("div",{staticClass:"meeting-player"},[e("div",{staticClass:"player",style:t.playerStyle,attrs:{id:t.id}}),e("UserAvatar",{attrs:{userid:t.userid,size:36,borderWitdh:2}}),e("div",{staticClass:"player-state"},[t.audio?t._e():e("i",{staticClass:"taskfont"},[t._v("\uE7C7")]),t.video?t._e():e("i",{staticClass:"taskfont"},[t._v("\uE7C8")])])],1):t._e()},Gt=[];const Xt={name:"MeetingPlayer",props:{id:{type:String,default:()=>"meeting-player-"+Math.round(Math.random()*1e4)},player:{type:Object,default:()=>({})},isLocal:{type:Boolean,default:!1}},data(){return{timer:null}},mounted(){this.timer=setInterval(t=>{this.audio&&!this.player.audioTrack.isPlaying&&this.play("audio"),this.video&&!this.player.videoTrack.isPlaying&&this.play("video")},3e3)},beforeDestroy(){clearInterval(this.timer)},computed:{...d(["cacheUserBasic"]),userid(){return this.player.uid?parseInt($A.getMiddle(this.player.uid,null,"-")):0},playerStyle(){const t=this.cacheUserBasic.find(({userid:a})=>a==this.userid);return t?{backgroundImage:`url("${t.userimg}")`}:null},audio(){return!!this.player.audioTrack},video(){return!!this.player.videoTrack}},watch:{audio:{handler(t){t&&this.play("audio")},immediate:!0},video:{handler(t){t&&this.play("video")},immediate:!0}},methods:{play(t){this.$nextTick(a=>{try{t==="audio"?!this.isLocal&&this.player.audioTrack.play():t==="video"&&this.player.videoTrack.play(this.id)}catch(e){console.log("Meeting Player Error",e)}})}}},I={};var Qt=r(Xt,qt,Gt,!1,Zt,null,null,null);function Zt(t){for(let a in I)this[a]=I[a]}var te=function(){return Qt.exports}(),ee=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{ref:"floatDrag",style:t.dragStyle,on:{mousedown:function(s){return s.stopPropagation(),s.preventDefault(),t.mouseDown.apply(null,arguments)}}},[t._t("default")],2)},ae=[];const se={name:"DragBallComponent",props:{id:{type:String,default:""},distanceRight:{type:Number,default:0},distanceBottom:{type:Number,default:100},isScrollHidden:{type:Boolean,default:!1},isCanDraggable:{type:Boolean,default:!0},zIndex:{type:Number,default:50}},data(){return{clientWidth:null,clientHeight:null,top:0,left:0,timer:null,currentTop:0,isMoving:!1,record:{}}},created(){this.clientWidth=document.documentElement.clientWidth,this.clientHeight=document.documentElement.clientHeight},mounted(){this.id&&($A.isJson(window._DragBallComponent)||(window._DragBallComponent={})),this.isCanDraggable&&this.$nextTick(()=>{this.id&&$A.isJson(window._DragBallComponent[this.id])?(this.left=window._DragBallComponent[this.id].left,this.top=window._DragBallComponent[this.id].top):(this.left=this.clientWidth-this.floatDrag.offsetWidth-this.distanceRight,this.top=this.clientHeight-this.floatDrag.offsetHeight-this.distanceBottom),this.initDraggable()}),this.isScrollHidden&&window.addEventListener("scroll",this.handleScroll),window.addEventListener("resize",this.handleResize)},beforeDestroy(){this.id&&(window._DragBallComponent[this.id]={left:this.left,top:this.top}),window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.handleResize)},computed:{dragStyle(){return{left:this.left+"px",top:this.top+"px",zIndex:this.zIndex,position:"fixed"}},floatDrag(){return this.$refs.floatDrag}},methods:{handleScroll(){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this.handleScrollEnd()},200),this.currentTop=document.documentElement.scrollTop||document.body.scrollTop,this.left>this.clientWidth/2?this.left=this.clientWidth+this.floatDrag.offsetWidth:this.left=-this.floatDrag.offsetWidth},handleScrollEnd(){(document.documentElement.scrollTop||document.body.scrollTop)===this.currentTop&&(this.left>this.clientWidth/2?this.left=this.clientWidth-this.floatDrag.offsetWidth:this.left=0,clearTimeout(this.timer))},handleResize(){this.clientWidth=document.documentElement.clientWidth,this.clientHeight=document.documentElement.clientHeight,this.$nextTick(this.checkDraggablePosition)},initDraggable(){this.floatDrag.addEventListener("touchstart",this.toucheStart),this.floatDrag.addEventListener("touchmove",this.touchMove),this.floatDrag.addEventListener("touchend",this.touchEnd)},mouseDown(t){this.record={time:new Date().getTime(),top:this.floatDrag.offsetTop,left:this.floatDrag.offsetLeft,x:t.clientX-this.floatDrag.offsetLeft,y:t.clientY-this.floatDrag.offsetTop},this.floatDrag.style.transition="none",this.canClick=!1,document.onmousemove=a=>{let e=a.clientX-this.record.x,s=a.clientY-this.record.y;e<0?e=0:e>window.innerWidth-this.floatDrag.offsetWidth&&(e=window.innerWidth-this.floatDrag.offsetWidth),s<0?s=0:s>window.innerHeight-this.floatDrag.offsetHeight&&(s=window.innerHeight-this.floatDrag.offsetHeight),this.left=e,this.top=s},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,this.checkDraggablePosition(),this.floatDrag.style.transition="all 0.3s",(Math.abs(this.record.top-this.floatDrag.offsetTop)<5&&Math.abs(this.record.left-this.floatDrag.offsetLeft)<5||new Date().getTime()-this.record.time<200)&&this.$emit("on-click")}},toucheStart(){this.canClick=!1,this.floatDrag.style.transition="none"},touchMove(t){if(this.canClick=!0,t.targetTouches.length===1){let a=event.targetTouches[0],e=a.clientX-this.floatDrag.offsetWidth/2,s=a.clientY-this.floatDrag.offsetHeight/2;e<0?e=0:e>window.innerWidth-this.floatDrag.offsetWidth&&(e=window.innerWidth-this.floatDrag.offsetWidth),s<0?s=0:s>window.innerHeight-this.floatDrag.offsetHeight&&(s=window.innerHeight-this.floatDrag.offsetHeight),this.left=e,this.top=s}},touchEnd(){!this.canClick||(this.floatDrag.style.transition="all 0.3s",this.checkDraggablePosition())},checkDraggablePosition(){this.left+this.floatDrag.offsetWidth/2>=this.clientWidth/2?this.left=this.clientWidth-this.floatDrag.offsetWidth:this.left=0,this.top<0&&(this.top=0),this.top+this.floatDrag.offsetHeight>=this.clientHeight&&(this.top=this.clientHeight-this.floatDrag.offsetHeight)}}},A={};var ie=r(se,ee,ae,!1,oe,null,null,null);function oe(t){for(let a in A)this[a]=A[a]}var re=function(){return ie.exports}(),ne=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"meeting-warp"},[e("Modal",{attrs:{title:t.$L(t.addData.type==="join"?"\u52A0\u5165\u4F1A\u8BAE":"\u65B0\u4F1A\u8BAE"),"mask-closable":!1},model:{value:t.addShow,callback:function(s){t.addShow=s},expression:"addShow"}},[e("Form",{ref:"addForm",attrs:{model:t.addData,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[t.addData.type==="join"?[t.addData.name?e("FormItem",{attrs:{prop:"userids",label:t.$L("\u4F1A\u8BAE\u4E3B\u9898")}},[e("Input",{attrs:{disabled:""},model:{value:t.addData.name,callback:function(s){t.$set(t.addData,"name",s)},expression:"addData.name"}})],1):t._e(),e("FormItem",{attrs:{prop:"meetingid",label:t.$L("\u4F1A\u8BAE\u9891\u9053ID")}},[e("Input",{attrs:{disabled:t.addData.meetingdisabled===!0,placeholder:t.$L("\u8BF7\u8F93\u5165\u4F1A\u8BAE\u9891\u9053ID")},model:{value:t.addData.meetingid,callback:function(s){t.$set(t.addData,"meetingid",s)},expression:"addData.meetingid"}})],1)]:[e("FormItem",{attrs:{prop:"name",label:t.$L("\u4F1A\u8BAE\u4E3B\u9898")}},[e("Input",{attrs:{maxlength:50,placeholder:t.$L("\u9009\u586B")},model:{value:t.addData.name,callback:function(s){t.$set(t.addData,"name",s)},expression:"addData.name"}})],1),e("FormItem",{attrs:{prop:"userids",label:t.$L("\u9080\u8BF7\u6210\u5458")}},[e("UserSelect",{attrs:{uncancelable:[t.userId],"multiple-max":20,title:t.$L("\u9009\u62E9\u9080\u8BF7\u6210\u5458")},model:{value:t.addData.userids,callback:function(s){t.$set(t.addData,"userids",s)},expression:"addData.userids"}})],1)],e("FormItem",{attrs:{prop:"tracks"}},[e("CheckboxGroup",{model:{value:t.addData.tracks,callback:function(s){t.$set(t.addData,"tracks",s)},expression:"addData.tracks"}},[e("Checkbox",{attrs:{label:"audio"}},[e("span",[t._v(t._s(t.$L("\u9EA6\u514B\u98CE")))])]),e("Checkbox",{attrs:{label:"video"}},[e("span",[t._v(t._s(t.$L("\u6444\u50CF\u5934")))])])],1)],1)],2),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.addShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onSubmit}},[t._v(t._s(t.$L(t.addData.type==="join"?"\u52A0\u5165\u4F1A\u8BAE":"\u5F00\u59CB\u4F1A\u8BAE")))])],1)],1),e("Modal",{ref:"meetingModal",attrs:{title:t.addData.name,mask:!1,"mask-closable":!1,closable:!1,"transition-names":["",""],beforeClose:t.onClose,"class-name":`meeting-manager${t.meetingMini?" meeting-hidden":""}`,fullscreen:""},model:{value:t.meetingShow,callback:function(s){t.meetingShow=s},expression:"meetingShow"}},[e("ul",[t.localUser.uid?e("li",[e("MeetingPlayer",{attrs:{player:t.localUser,isLocal:""}})],1):t._e(),t._l(t.remoteUsers,function(s){return e("li",[e("MeetingPlayer",{attrs:{player:s}})],1)})],2),e("div",{staticClass:"adaption meeting-button-group",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"primary",loading:t.audioLoad},on:{click:t.onAudio}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.localUser.audioTrack?"":"")}})]),e("Button",{attrs:{type:"primary",loading:t.videoLoad},on:{click:t.onVideo}},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.localUser.videoTrack?"":"")}})]),t.windowPortrait?[e("Button",{attrs:{type:"primary"},on:{click:function(s){return t.onInvitation("open")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE646")])]),e("Button",{attrs:{type:"primary"},on:{click:function(s){t.meetingMini=!0}}},[e("i",{staticClass:"taskfont"},[t._v("\uE656")])]),e("Button",{attrs:{type:"warning",loading:t.loadIng>0},on:{click:t.onClose}},[e("i",{staticClass:"taskfont"},[t._v("\uE612")])])]:[e("Button",{attrs:{type:"primary"},on:{click:function(s){return t.onInvitation("open")}}},[t._v(t._s(t.$L("\u9080\u8BF7")))]),e("Button",{attrs:{type:"primary"},on:{click:function(s){t.meetingMini=!0}}},[t._v(t._s(t.$L("\u6700\u5C0F\u5316")))]),e("Button",{attrs:{type:"warning",loading:t.loadIng>0},on:{click:t.onClose}},[t._v(t._s(t.$L("\u79BB\u5F00\u4F1A\u8BAE")))])]],2)]),t.meetingMini?e("DragBallComponent",{attrs:{id:"meetingDragBall","z-index":3e3},on:{"on-click":function(s){t.meetingMini=!1}}},[e("div",{staticClass:"meeting-drag-ball"},[e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.localUser.audioTrack?"":"")}}),e("i",{staticClass:"taskfont",domProps:{innerHTML:t._s(t.localUser.videoTrack?"":"")}}),e("em",[t._v(t._s(t.$L("\u4F1A\u8BAE\u4E2D")))])])]):t._e(),e("Modal",{attrs:{title:t.$L("\u9080\u8BF7\u52A0\u5165"),"mask-closable":!1},model:{value:t.invitationShow,callback:function(s){t.invitationShow=s},expression:"invitationShow"}},[e("Form",{ref:"invitationForm",attrs:{model:t.invitationData,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{prop:"userids",label:t.$L("\u9080\u8BF7\u6210\u5458")}},[e("UserSelect",{attrs:{"multiple-max":20,title:t.$L("\u9009\u62E9\u9080\u8BF7\u6210\u5458")},model:{value:t.invitationData.userids,callback:function(s){t.$set(t.invitationData,"userids",s)},expression:"invitationData.userids"}})],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.invitationShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.invitationLoad},on:{click:function(s){return t.onInvitation("submit")}}},[t._v(t._s(t.$L("\u53D1\u9001\u9080\u8BF7")))])],1)],1)],1)},le=[];const ce={name:"MeetingManager",components:{UserSelect:v,DragBallComponent:re,MeetingPlayer:te},data(){return{loadIng:0,subscribe:null,addShow:!1,addData:{userids:[],tracks:["audio"]},invitationShow:!1,invitationLoad:!1,invitationData:{userids:[]},meetingShow:!1,meetingMini:!1,audioLoad:!1,videoLoad:!1,agoraClient:null,remoteUsers:[],localUser:{uid:null,audioTrack:null,videoTrack:null}}},mounted(){this.subscribe=c.Store.subscribe("addMeeting",this.onAdd)},beforeDestroy(){this.subscribe&&(this.subscribe.unsubscribe(),this.subscribe=null)},watch:{meetingShow(t){t?$A.eeuiAppKeepScreenOn():$A.eeuiAppKeepScreenOff()},meetingMini(t){t||(this.$refs.meetingModal.modalIndex=this.$refs.meetingModal.handleGetModalIndex())}},methods:{onAdd(t){t=$A.isJson(t)?t:{},/^\d+$/.test(t.dialog_id)&&(this.loadIng++,this.$store.dispatch("call",{url:"dialog/user",data:{dialog_id:t.dialog_id}}).then(({data:a})=>{this.$set(this.addData,"userids",a.map(e=>e.userid))}).finally(a=>{this.loadIng--}),delete t.dialog_id),$A.isArray(t.userids)?t.userids.includes(this.userId)||t.userids.push(this.userId):t.userids=[this.userId],$A.isArray(t.tracks)?t.tracks.includes("audio")||t.tracks.push("audio"):t.tracks=["audio"],this.addData=t,this.addShow=!0},onSubmit(){if(this.meetingShow){$A.modalWarning("\u6B63\u5728\u4F1A\u8BAE\u4E2D\uFF0C\u65E0\u6CD5\u8FDB\u5165\u5176\u4ED6\u4F1A\u8BAE\u5BA4");return}this.$refs.addForm.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"users/meeting/open",data:this.addData}).then(({data:a})=>{this.$set(this.addData,"name",a.name),this.$set(this.addData,"meetingid",a.meetingid),this.$store.dispatch("saveDialogMsg",a.msgs),this.$store.dispatch("updateDialogLastMsg",a.msgs),delete a.name,delete a.msgs,$A.loadScript("js/AgoraRTC_N-4.17.0.js").then(e=>{this.join(a)}).catch(e=>{$A.modalError("\u4F1A\u8BAE\u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01")}).finally(e=>{this.loadIng--})}).catch(({msg:a})=>{this.loadIng--,$A.modalError(a)}))})},onAudio(){this.localUser.audioTrack?this.closeAudio():this.openAudio()},onVideo(){this.localUser.videoTrack?this.closeVideo():this.openVideo()},onInvitation(t){t==="open"?(this.invitationData={userids:[],meetingid:this.addData.meetingid},this.invitationShow=!0):t==="submit"&&(this.invitationLoad=!0,this.$store.dispatch("call",{url:"users/meeting/invitation",data:this.invitationData}).then(({data:a,msg:e})=>{this.invitationShow=!1,this.$store.dispatch("saveDialogMsg",a.msgs),this.$store.dispatch("updateDialogLastMsg",a.msgs),$A.messageSuccess(e)}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.invitationLoad=!1}))},onClose(){return new Promise(t=>{$A.modalConfirm({content:"\u786E\u5B9A\u8981\u79BB\u5F00\u4F1A\u8BAE\u5417\uFF1F",cancelText:"\u7EE7\u7EED",okText:"\u9000\u51FA",onOk:async a=>{await this.leave(),t()}})})},async join(t){this.loadIng++,AgoraRTC.onMicrophoneChanged=async e=>{if(e.state==="ACTIVE")this.localUser.audioTrack.setDevice(e.device.deviceId);else if(e.device.label===this.localUser.audioTrack.getTrackLabel()){const s=await AgoraRTC.getMicrophones();s[0]&&this.localUser.audioTrack.setDevice(s[0].deviceId)}},AgoraRTC.onCameraChanged=async e=>{if(e.state==="ACTIVE")this.localUser.videoTrack.setDevice(e.device.deviceId);else if(e.device.label===this.localUser.videoTrack.getTrackLabel()){const s=await AgoraRTC.getCameras();s[0]&&this.localUser.videoTrack.setDevice(s[0].deviceId)}},AgoraRTC.onAutoplayFailed=()=>{$A.messageWarning("\u70B9\u51FB\u5C4F\u5E55\u5F00\u59CB\u4F1A\u8BAE")},this.agoraClient=AgoraRTC.createClient({mode:"rtc",codec:"vp8"}),this.agoraClient.on("user-joined",this.handleUserJoined),this.agoraClient.on("user-left",this.handleUserLeft),this.agoraClient.on("user-published",this.handleUserPublished),this.agoraClient.on("user-unpublished",this.handleUserUnpublished);const a=[];this.localUser.uid=await this.agoraClient.join(t.appid,t.channel,t.token,t.uid),this.addData.tracks.includes("audio")&&a.push(this.localUser.audioTrack=await AgoraRTC.createMicrophoneAudioTrack()),this.addData.tracks.includes("video")&&a.push(this.localUser.videoTrack=await AgoraRTC.createCameraVideoTrack()),a.length>0&&await this.agoraClient.publish(a),this.loadIng--,this.addShow=!1,this.meetingShow=!0},async leave(){this.loadIng++,["audioTrack","videoTrack"].some(t=>{var a,e;(a=this.localUser[t])==null||a.stop(),(e=this.localUser[t])==null||e.close()}),this.localUser={uid:null,audioTrack:null,videoTrack:null},this.remoteUsers=[],await this.agoraClient.leave(),this.loadIng--,this.meetingShow=!1},async openAudio(){this.audioLoad||this.localUser.audioTrack||(this.audioLoad=!0,this.localUser.audioTrack=await AgoraRTC.createMicrophoneAudioTrack(),await this.agoraClient.publish([this.localUser.audioTrack]),this.audioLoad=!1)},async closeAudio(){this.audioLoad||!this.localUser.audioTrack||(this.audioLoad=!0,await this.agoraClient.unpublish([this.localUser.audioTrack]),this.localUser.audioTrack.stop(),this.localUser.audioTrack.close(),this.localUser.audioTrack=null,this.audioLoad=!1)},async openVideo(){this.videoLoad||this.localUser.videoTrack||(this.videoLoad=!0,this.localUser.videoTrack=await AgoraRTC.createCameraVideoTrack(),await this.agoraClient.publish([this.localUser.videoTrack]),this.videoLoad=!1)},async closeVideo(){this.videoLoad||!this.localUser.videoTrack||(this.videoLoad=!0,await this.agoraClient.unpublish([this.localUser.videoTrack]),this.localUser.videoTrack.stop(),this.localUser.videoTrack.close(),this.localUser.videoTrack=null,this.videoLoad=!1)},async handleUserJoined(t){const a=this.remoteUsers.findIndex(e=>e.uid==t.uid);a>-1?this.remoteUsers.splice(a,1,t):this.remoteUsers.push(t)},async handleUserLeft(t){const a=this.remoteUsers.findIndex(e=>e.uid==t.uid);a>-1&&this.remoteUsers.splice(a,1)},async handleUserPublished(t,a){this.remoteUsers.find(s=>s.uid==t.uid)&&await this.agoraClient.subscribe(t,a)},async handleUserUnpublished(t,a){this.remoteUsers.find(s=>s.uid==t.uid)&&await this.agoraClient.unsubscribe(t,a)}}},M={};var de=r(ce,ne,le,!1,he,null,null,null);function he(t){for(let a in M)this[a]=M[a]}var ue=function(){return de.exports}(),pe=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{attrs:{value:t.visible,mask:!1,"mask-closable":!1,"footer-hide":!0,"transition-names":["mobile-dialog",""],beforeClose:t.onBeforeClose,"class-name":"dialog-modal",fullscreen:""}},[t.windowPortrait&&t.dialogId>0?e("DialogWrapper",{attrs:{dialogId:t.dialogId,beforeBack:t.onBeforeClose}}):t._e()],1)},me=[];const fe={name:"DialogModal",components:{DialogWrapper:Y},data(){return{timer:null}},computed:{...d(["dialogId"]),visible(){return this.dialogId>0&&this.windowPortrait}},methods:{onBeforeClose(){return new Promise(t=>{this.$store.dispatch("openDialog",0)})}}},j={};var ge=r(fe,pe,me,!1,ve,null,null,null);function ve(t){for(let a in j)this[a]=j[a]}var _e=function(){return ge.exports}(),$e=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{attrs:{value:t.show,styles:t.styles,"mask-closable":!1,"footer-hide":!0,beforeClose:t.onBeforeClose,"class-name":"task-modal"}},[e("TaskDetail",{ref:"taskDetail",attrs:{"task-id":t.taskId,"open-task":t.taskData,modalMode:""}})],1)},be=[];const ke={name:"TaskModal",components:{TaskDetail:J},computed:{...d(["taskId"]),...g(["taskData"]),show(){return this.taskId>0},styles(){return{width:"90%",maxWidth:this.taskData.dialog_id?"1200px":"700px"}}},methods:{onBeforeClose(){return new Promise(t=>{this.$store.dispatch("openTask",0)})},checkUpdate(){if(this.show)return this.$refs.taskDetail.checkUpdate(!0),!0}}},P={};var ye=r(ke,$e,be,!1,we,null,null,null);function we(t){for(let a in P)this[a]=P[a]}var De=function(){return ye.exports}(),Le=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{attrs:{title:t.$L("\u5BFC\u51FA\u4EFB\u52A1\u7EDF\u8BA1"),"mask-closable":!1},model:{value:t.show,callback:function(s){t.show=s},expression:"show"}},[e("Form",{ref:"exportTask",attrs:{model:t.formData,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5BFC\u51FA\u6210\u5458")}},[e("UserSelect",{attrs:{"multiple-max":100,"avatar-name":"","show-disable":"",title:t.$L("\u8BF7\u9009\u62E9\u6210\u5458")},model:{value:t.formData.userid,callback:function(s){t.$set(t.formData,"userid",s)},expression:"formData.userid"}}),e("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6BCF\u6B21\u6700\u591A\u9009\u62E9\u5BFC\u51FA100\u4E2A\u6210\u5458")))])],1),e("FormItem",{attrs:{label:t.$L("\u65F6\u95F4\u8303\u56F4")}},[e("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange",format:"yyyy/MM/dd",placeholder:t.$L("\u8BF7\u9009\u62E9\u65F6\u95F4")},model:{value:t.formData.time,callback:function(s){t.$set(t.formData,"time",s)},expression:"formData.time"}}),e("div",{staticClass:"form-tip checkin-export-quick-select"},[e("span",[t._v(t._s(t.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),e("em",{on:{click:function(s){t.formData.time=t.dateShortcuts("prev")}}},[t._v(t._s(t.$L("\u4E0A\u4E2A\u6708")))]),e("em",{on:{click:function(s){t.formData.time=t.dateShortcuts("this")}}},[t._v(t._s(t.$L("\u8FD9\u4E2A\u6708")))])])],1),e("FormItem",{attrs:{prop:"type",label:t.$L("\u5BFC\u51FA\u65F6\u95F4\u7C7B\u578B")}},[e("RadioGroup",{model:{value:t.formData.type,callback:function(s){t.$set(t.formData,"type",s)},expression:"formData.type"}},[e("Radio",{attrs:{label:"taskTime"}},[t._v(t._s(t.$L("\u4EFB\u52A1\u65F6\u95F4")))]),e("Radio",{attrs:{label:"createdTime"}},[t._v(t._s(t.$L("\u521B\u5EFA\u65F6\u95F4")))])],1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.show=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onExport}},[t._v(t._s(t.$L("\u5BFC\u51FA")))])],1)],1)},Ce=[];const xe={name:"TaskExport",components:{UserSelect:v},props:{value:{type:Boolean,default:!1}},data(){return{show:this.value,loadIng:0,formData:{userid:[],time:[],type:"taskTime"}}},watch:{value(t){this.show=t},show(t){this.value!==t&&this.$emit("input",t)}},methods:{dateShortcuts(t){if(t==="prev")return[$A.getSpecifyDate("\u4E0A\u4E2A\u6708"),$A.getSpecifyDate("\u4E0A\u4E2A\u6708\u7ED3\u675F")];if(t==="this")return[$A.getSpecifyDate("\u672C\u6708"),$A.getSpecifyDate("\u672C\u6708\u7ED3\u675F")]},onExport(){this.loadIng>0||(this.loadIng++,this.$store.dispatch("call",{url:"project/task/export",data:this.formData}).then(({data:t})=>{this.show=!1,this.$store.dispatch("downUrl",{url:t.url})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))}}},U={};var Te=r(xe,Le,Ce,!1,Se,null,null,null);function Se(t){for(let a in U)this[a]=U[a]}var Ie=function(){return Te.exports}(),Ae=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("Modal",{attrs:{title:t.$L("\u5BFC\u51FA\u5BA1\u6279\u6570\u636E"),"mask-closable":!1},model:{value:t.show,callback:function(s){t.show=s},expression:"show"}},[e("Form",{ref:"exportTask",attrs:{model:t.formData,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5BA1\u6279\u7C7B\u578B")}},[e("Select",{on:{"on-open-change":t.getProcName},model:{value:t.formData.proc_def_name,callback:function(s){t.$set(t.formData,"proc_def_name",s)},expression:"formData.proc_def_name"}},t._l(t.procList,function(s,i){return e("Option",{key:i,attrs:{value:s.name}},[t._v(t._s(s.name))])}),1)],1),e("FormItem",{attrs:{label:t.$L("\u65F6\u95F4\u8303\u56F4")}},[e("DatePicker",{staticStyle:{width:"100%"},attrs:{type:"daterange",format:"yyyy/MM/dd",placeholder:t.$L("\u8BF7\u9009\u62E9\u65F6\u95F4")},model:{value:t.formData.date,callback:function(s){t.$set(t.formData,"date",s)},expression:"formData.date"}}),e("div",{staticClass:"form-tip checkin-export-quick-select"},[e("span",[t._v(t._s(t.$L("\u5FEB\u6377\u9009\u62E9"))+":")]),e("em",{on:{click:function(s){t.formData.date=t.dateShortcuts("prev")}}},[t._v(t._s(t.$L("\u4E0A\u4E2A\u6708")))]),e("em",{on:{click:function(s){t.formData.date=t.dateShortcuts("this")}}},[t._v(t._s(t.$L("\u8FD9\u4E2A\u6708")))])])],1),e("FormItem",{attrs:{prop:"type",label:t.$L("\u5BFC\u51FA\u7C7B\u578B")}},[e("RadioGroup",{model:{value:t.formData.is_finished,callback:function(s){t.$set(t.formData,"is_finished",s)},expression:"formData.is_finished"}},[e("Radio",{attrs:{label:"0"}},[t._v(t._s(t.$L("\u672A\u5B8C\u6210")))]),e("Radio",{attrs:{label:"1"}},[t._v(t._s(t.$L("\u5DF2\u5B8C\u6210")))])],1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.show=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onExport}},[t._v(t._s(t.$L("\u5BFC\u51FA")))])],1)],1)},Me=[];const je={name:"ApproveExport",props:{value:{type:Boolean,default:!1}},data(){return{show:this.value,loadIng:0,formData:{proc_def_name:"",date:[],is_finished:"1"},procList:[]}},watch:{value(t){this.show=t},show(t){this.value!==t&&this.$emit("input",t)}},methods:{dateShortcuts(t){if(t==="prev")return[$A.getSpecifyDate("\u4E0A\u4E2A\u6708"),$A.getSpecifyDate("\u4E0A\u4E2A\u6708\u7ED3\u675F")];if(t==="this")return[$A.getSpecifyDate("\u672C\u6708"),$A.getSpecifyDate("\u672C\u6708\u7ED3\u675F")]},getProcName(){this.loadIng++,this.$store.dispatch("call",{url:"approve/procdef/all",method:"post"}).then(({data:t})=>{this.procList=t.rows}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--})},onExport(){this.loadIng>0||(this.loadIng++,this.$store.dispatch("call",{url:"approve/export",data:this.formData}).then(({data:t})=>{this.show=!1,this.$store.dispatch("downUrl",{url:t.url})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.loadIng--}))}}},R={};var Pe=r(je,Ae,Me,!1,Ue,null,null,null);function Ue(t){for(let a in R)this[a]=R[a]}var Re=function(){return Pe.exports}();const Ee=(t,a)=>!t||!a?!1:t==="String"?typeof a=="string":t==="Object"?Object.prototype.toString.call(a)==="[object Object]":t==="number"?typeof a=="number":t==="function"?Object.prototype.toString.call(a)==="[object Function]":!1,Be=(t,a,e)=>t.findIndex(s=>s[a]===e);var l={checkData:Ee,searchArrObj:Be};class Ne{constructor(a="\u9ED8\u8BA4\u6807\u9898",e={}){this.title=a,this.options=e,this.support=!1,this.supportFn()}supportFn(){window.Notification?(this.initStatus(),this.support=!0):this.support=!1}initStatus(){this.notification=null,this.state=Notification.permission,this.msg=null,this.callBackObj={},this.notificationAll=[],this.requireInteractionTimeout=!1,this.timeout=null}initNotification(a){if(!!this.checkStatus("support")){if(!l.checkData("function",a))return console.error("initNotification\u7684\u53C2\u6570\u5FC5\u987B\u4E3A\u51FD\u6570");if(this.state==="granted")this.msg="already granted";else if(this.state==="default"){const e=s=>(this.state=s,s==="granted"?this.msg="granted":s==="default"?this.msg="close":this.msg="denied",a(this.msg));try{Notification.requestPermission().then(e)}catch{Notification.requestPermission(e)}}else this.msg="already denied";if(this.state!=="default")return a(this.msg)}}userAgreed(){if(!!this.checkStatus("userAgreed")){this.notification=new Notification(this.title,this.options),this.notificationWatch();for(const a in this.callBackObj)this.notification[a]=e=>{this.callBackObj[a](e)}}}notificationTimeoutFn(a){a&&l.checkData("number",a)?this.timeout=a:this.timeout=5e3}notificationWatch(){this.notificationAll.push(this.notification),this.notification.requireInteraction?this.everyTimeout():this.autoClose(),this.watchClose()}everyTimeout(){!l.checkData("number",this.timeout)||(this.options.timeOut&&l.checkData("number",this.options.timeOut)?this.timeoutCloseFn(this.options.timeOut):this.timeoutCloseFn(this.timeout))}timeoutCloseFn(a){const e=this.notification.timestamp;setTimeout(()=>{const s=l.searchArrObj(this.notificationAll,"timestamp",e);s!==-1&&this.notificationAll[s].close()},a)}watchClose(){const a=this.notification.timestamp;this.notification.addEventListener("close",e=>{const s=l.searchArrObj(this.notificationAll,"timestamp",a);s!==-1&&this.notificationAll.splice(s,1)})}autoClose(){const a=this.notification.timestamp;setTimeout(()=>{const e=l.searchArrObj(this.notificationAll,"timestamp",a);e!==-1&&this.notificationAll.splice(e,1)},6e3)}notificationEvent(a){if(!!this.checkStatus("support"))if(l.checkData("Object",a)){for(const e in a)if(!l.checkData("function",a[e]))return console.error("callObj\u5BF9\u8C61\u4E2D\u7684\u6BCF\u4E2Avalue\u5FC5\u987B\u4E3A\u51FD\u6570");this.callBackObj=a}else return console.error("callObj\u5FC5\u987B\u4E3A\u5BF9\u8C61")}closeAll(){for(let a of this.notificationAll.values())a.close();this.notificationAll=[]}close(){if(!this.notification)return console.warn("this.notification\u4E3Anull,\u901A\u77E5\u5C1A\u672A\u8C03\u7528/\u7528\u6237\u672A\u540C\u610F\u663E\u793A\u901A\u77E5");this.notification.close()}updateOptions(a){if(a&&l.checkData("Object",a))for(const e in a)this.options[e]=a[e];else console.warn("updateOptions\u53C2\u6570\u9519\u8BEF\uFF1Aoptions\u4E3A\u5FC5\u586B\u5BF9\u8C61")}replaceTitle(a){a&&l.checkData("String",a)?this.title=a:console.warn("replaceTitle: title(\u901A\u77E5\u6807\u9898)\u4E3A\u5FC5\u586B\u5B57\u7B26\u4E32")}replaceOptions(a){a&&l.checkData("Object",a)?this.options=a:console.warn("replaceOptions\u53C2\u6570\u9519\u8BEF\uFF1Aoptions\u4E3A\u5FC5\u586B\u5BF9\u8C61")}checkStatus(a){if(a==="support"){if(!this.support)return console.warn("\u7528\u6237\u6D4F\u89C8\u5668\u4E0D\u652F\u6301"),!1}else if(a==="userAgreed"&&(this.state!=="granted"||!this.checkStatus("support")))return!1;return!0}}var Oe=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.userId>0,expression:"userId > 0"}],staticClass:"page-manage",class:{"show-tabbar":t.showMobileTabbar}},[e("div",{staticClass:"manage-box-menu",class:{"show-mobile-menu":t.showMobileMenu}},[e("Dropdown",{staticClass:"page-manage-menu-dropdown main-menu",attrs:{trigger:"click"},on:{"on-click":t.settingRoute,"on-visible-change":t.menuVisibleChange}},[e("div",{class:["manage-box-title",t.visibleMenu?"menu-visible":""]},[e("div",{staticClass:"manage-box-avatar"},[e("UserAvatar",{attrs:{userid:t.userId,size:36,tooltipDisabled:""}})],1),e("span",[t._v(t._s(t.userInfo.nickname))]),t.reportUnreadNumber+t.approveUnreadNumber>0?e("Badge",{staticClass:"manage-box-top-report",attrs:{"overflow-count":999,count:t.reportUnreadNumber+t.approveUnreadNumber}}):t.clientNewVersion?e("Badge",{staticClass:"manage-box-top-report",attrs:{dot:""}}):t._e(),e("div",{staticClass:"manage-box-arrow"},[e("Icon",{attrs:{type:"ios-arrow-up"}}),e("Icon",{attrs:{type:"ios-arrow-down"}})],1)],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t._l(t.menu,function(s){return[s.path==="taskBrowse"?e("Dropdown",{attrs:{transfer:"","transfer-class-name":"page-manage-menu-dropdown",placement:"right-start"}},[e("DropdownItem",{attrs:{divided:!!s.divided}},[e("div",{staticClass:"manage-menu-flex"},[t._v(" "+t._s(t.$L(s.name))+" "),e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),t.taskBrowseLists.length>0?e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},t._l(t.taskBrowseLists,function(i,o){return i.id>0&&o<10?e("DropdownItem",{key:o,staticClass:"task-title",attrs:{name:i.name},nativeOn:{click:function(h){return t.openTask(i)}}},[i.flow_item_name?e("span",{class:i.flow_item_status},[t._v(t._s(i.flow_item_name))]):t._e(),e("div",{staticClass:"task-title-text"},[t._v(t._s(i.name))])]):t._e()}),1):e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{staticStyle:{color:"darkgrey"}},[t._v(t._s(t.$L("\u6682\u65E0\u6253\u5F00\u8BB0\u5F55")))])],1)],1):s.path==="team"?e("Dropdown",{attrs:{transfer:"","transfer-class-name":"page-manage-menu-dropdown",placement:"right-start"}},[e("DropdownItem",{attrs:{divided:!!s.divided}},[e("div",{staticClass:"manage-menu-flex"},[t._v(" "+t._s(t.$L(s.name))+" "),t.reportUnreadNumber>0?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{"overflow-count":999,count:t.reportUnreadNumber}}):e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{attrs:{name:"allUser"}},[t._v(t._s(t.$L("\u56E2\u961F\u7BA1\u7406")))]),e("DropdownItem",{attrs:{name:"workReport"}},[e("div",{staticClass:"manage-menu-flex"},[t._v(" "+t._s(t.$L("\u5DE5\u4F5C\u62A5\u544A"))+" "),t.reportUnreadNumber>0?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{"overflow-count":999,count:t.reportUnreadNumber}}):t._e()],1)]),e("DropdownItem",{attrs:{name:"exportTask"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u4EFB\u52A1\u7EDF\u8BA1")))]),e("DropdownItem",{attrs:{name:"exportOverdueTask"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u8D85\u671F\u4EFB\u52A1")))]),e("DropdownItem",{attrs:{name:"exportApprove"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u5BA1\u6279\u6570\u636E")))]),e("DropdownItem",{attrs:{name:"exportCheckin"}},[t._v(t._s(t.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E")))])],1)],1):s.visible!==!1?e("DropdownItem",{style:s.style||{},attrs:{divided:!!s.divided,name:s.path}},[e("div",{staticClass:"manage-menu-flex"},[t._v(" "+t._s(t.$L(s.name))+" "),s.path==="version"?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{text:t.clientNewVersion}}):s.path==="workReport"&&t.reportUnreadNumber>0?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{count:t.reportUnreadNumber}}):s.path==="approve"&&t.approveUnreadNumber>0?e("Badge",{staticClass:"manage-menu-report-badge",attrs:{count:t.approveUnreadNumber}}):t._e()],1)]):t._e()]})],2)],1),e("Scrollbar",{attrs:{"class-name":"manage-item"},on:{"on-scroll":function(s){t.operateVisible=!1}}},[e("div",{staticClass:"menu-base"},[e("ul",[e("li",{class:t.classNameRoute("dashboard"),on:{click:function(s){return t.toggleRoute("dashboard")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6FB")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u4EEA\u8868\u76D8")))]),t.dashboardTask.overdue_count>0?e("Badge",{staticClass:"menu-badge",attrs:{type:"error","overflow-count":999,count:t.dashboardTask.overdue_count}}):t.dashboardTask.today_count>0?e("Badge",{staticClass:"menu-badge",attrs:{type:"info","overflow-count":999,count:t.dashboardTask.today_count}}):t.dashboardTask.all_count>0?e("Badge",{staticClass:"menu-badge",attrs:{type:"primary","overflow-count":999,count:t.dashboardTask.all_count}}):t._e()],1),e("li",{class:t.classNameRoute("calendar"),on:{click:function(s){return t.toggleRoute("calendar")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F5")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u65E5\u5386")))])]),e("li",{class:t.classNameRoute("messenger"),on:{click:function(s){return t.toggleRoute("messenger")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6EB")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u6D88\u606F")))]),e("Badge",{staticClass:"menu-badge",attrs:{"overflow-count":999,text:t.msgUnreadMention}})],1),e("li",{class:t.classNameRoute("file"),on:{click:function(s){return t.toggleRoute("file")}}},[e("i",{staticClass:"taskfont"},[t._v("\uE6F3")]),e("div",{staticClass:"menu-title"},[t._v(t._s(t.$L("\u6587\u4EF6")))])])])]),e("div",{ref:"menuProject",staticClass:"menu-project"},[e("ul",[t._l(t.projectLists,function(s,i){return e("li",{directives:[{name:"longpress",rawName:"v-longpress",value:t.handleLongpress,expression:"handleLongpress"}],key:i,ref:`project_${s.id}`,refInFor:!0,class:t.classNameProject(s),attrs:{"data-id":s.id},on:{click:function(o){return t.toggleRoute("project",{projectId:s.id})}}},[e("div",{staticClass:"project-h1"},[e("em",{on:{click:function(o){return o.stopPropagation(),t.toggleOpenMenu(s.id)}}}),e("div",{staticClass:"title"},[t._v(t._s(s.name))]),s.top_at?e("div",{staticClass:"icon-top"}):t._e(),s.task_my_num-s.task_my_complete>0?e("div",{staticClass:"num"},[t._v(t._s(s.task_my_num-s.task_my_complete))]):t._e()]),e("div",{staticClass:"project-h2"},[e("p",[e("em",[t._v(t._s(t.$L("\u6211\u7684"))+":")]),e("span",[t._v(t._s(s.task_my_complete)+"/"+t._s(s.task_my_num))]),e("Progress",{attrs:{percent:s.task_my_percent,"stroke-width":6}})],1),e("p",[e("em",[t._v(t._s(t.$L("\u5168\u90E8"))+":")]),e("span",[t._v(t._s(s.task_complete)+"/"+t._s(s.task_num))]),e("Progress",{attrs:{percent:s.task_percent,"stroke-width":6}})],1)])])}),t.projectKeyLoading>0?e("li",{staticClass:"loading"},[e("Loading")],1):t._e()],2)])]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.operateVisible,expression:"operateVisible"}],staticClass:"operate-position",style:t.operateStyles},[e("Dropdown",{attrs:{trigger:"custom",placement:t.windowLandscape?"bottom":"top",visible:t.operateVisible,transfer:""},on:{"on-clickoutside":function(s){t.operateVisible=!1}}},[e("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{nativeOn:{click:function(s){return t.handleTopClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L(t.operateItem.top_at?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876\u8BE5\u9879\u76EE"))+" ")])],1)],1)],1),(t.projectSearchShow||t.projectTotal>20)&&t.windowHeight>600?e("div",{staticClass:"manage-project-search"},[e("Input",{attrs:{placeholder:t.$L(`\u5171${t.projectTotal||t.cacheProjects.length}\u4E2A\u9879\u76EE\uFF0C\u641C\u7D22...`),clearable:""},model:{value:t.projectKeyValue,callback:function(s){t.projectKeyValue=s},expression:"projectKeyValue"}},[e("div",{staticClass:"search-pre",attrs:{slot:"prefix"},slot:"prefix"},[t.projectKeyLoading>0?e("Loading"):e("Icon",{attrs:{type:"ios-search"}})],1)])],1):t._e(),e("ButtonGroup",{staticClass:"manage-box-new-group"},[e("Button",{staticClass:"manage-box-new",attrs:{type:"primary",icon:"md-add"},on:{click:t.onAddShow}},[t._v(t._s(t.$L("\u65B0\u5EFA\u9879\u76EE")))]),e("Dropdown",{attrs:{trigger:"click"},on:{"on-click":t.onAddMenu}},[e("Button",{attrs:{type:"primary"}},[e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{attrs:{name:"task"}},[t._v(t._s(t.$L("\u65B0\u5EFA\u4EFB\u52A1"))+" ("+t._s(t.mateName)+"+K)")]),e("DropdownItem",{attrs:{name:"createMeeting"}},[t._v(t._s(t.$L("\u65B0\u4F1A\u8BAE"))+" ("+t._s(t.mateName)+"+J)")]),e("DropdownItem",{attrs:{name:"joinMeeting"}},[t._v(t._s(t.$L("\u52A0\u5165\u4F1A\u8BAE")))])],1)],1)],1)],1),e("div",{staticClass:"manage-box-main"},[e("keep-alive",[e("router-view",{staticClass:"manage-box-view"})],1)],1),e("Modal",{attrs:{title:t.$L("\u65B0\u5EFA\u9879\u76EE"),"mask-closable":!1},model:{value:t.addShow,callback:function(s){t.addShow=s},expression:"addShow"}},[e("Form",{ref:"addProject",attrs:{model:t.addData,rules:t.addRule,"label-width":"auto"},nativeOn:{submit:function(s){s.preventDefault()}}},[e("FormItem",{attrs:{prop:"name",label:t.$L("\u9879\u76EE\u540D\u79F0")}},[e("Input",{ref:"projectName",attrs:{type:"text"},model:{value:t.addData.name,callback:function(s){t.$set(t.addData,"name",s)},expression:"addData.name"}})],1),t.addData.columns?e("FormItem",{attrs:{label:t.$L("\u4EFB\u52A1\u5217\u8868")}},[e("TagInput",{model:{value:t.addData.columns,callback:function(s){t.$set(t.addData,"columns",s)},expression:"addData.columns"}})],1):e("FormItem",{attrs:{label:t.$L("\u9879\u76EE\u6A21\u677F")}},[e("Select",{attrs:{value:0,placeholder:t.$L("\u8BF7\u9009\u62E9\u6A21\u677F")},on:{"on-change":t.selectChange}},t._l(t.columns,function(s,i){return e("Option",{key:i,attrs:{value:i}},[t._v(t._s(s.name))])}),1)],1),e("FormItem",{attrs:{prop:"flow",label:t.$L("\u5F00\u542F\u5DE5\u4F5C\u6D41")}},[e("RadioGroup",{model:{value:t.addData.flow,callback:function(s){t.$set(t.addData,"flow",s)},expression:"addData.flow"}},[e("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),e("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1)],1),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(s){t.addShow=!1}}},[t._v(t._s(t.$L("\u53D6\u6D88")))]),e("Button",{attrs:{type:"primary",loading:t.loadIng>0},on:{click:t.onAddProject}},[t._v(t._s(t.$L("\u6DFB\u52A0")))])],1)],1),e("Modal",{attrs:{"mask-closable":!1,styles:{width:"90%",maxWidth:"640px"},"footer-hide":""},model:{value:t.addTaskShow,callback:function(s){t.addTaskShow=s},expression:"addTaskShow"}},[e("TaskAdd",{ref:"addTask",model:{value:t.addTaskShow,callback:function(s){t.addTaskShow=s},expression:"addTaskShow"}})],1),e("TaskExport",{model:{value:t.exportTaskShow,callback:function(s){t.exportTaskShow=s},expression:"exportTaskShow"}}),e("CheckinExport",{model:{value:t.exportCheckinShow,callback:function(s){t.exportCheckinShow=s},expression:"exportCheckinShow"}}),e("ApproveExport",{model:{value:t.exportApproveShow,callback:function(s){t.exportApproveShow=s},expression:"exportApproveShow"}}),e("TaskModal",{ref:"taskModal"}),e("DialogModal",{ref:"dialogModal"}),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.workReportShow,callback:function(s){t.workReportShow=s},expression:"workReportShow"}},[t.workReportShow?e("Report",{on:{"on-read":function(s){return t.$store.dispatch("getReportUnread",1e3)}},model:{value:t.reportTabs,callback:function(s){t.reportTabs=s},expression:"reportTabs"}}):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1380},model:{value:t.allUserShow,callback:function(s){t.allUserShow=s},expression:"allUserShow"}},[t.allUserShow?e("TeamManagement"):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.allProjectShow,callback:function(s){t.allProjectShow=s},expression:"allProjectShow"}},[t.allProjectShow?e("ProjectManagement"):t._e()],1),e("DrawerOverlay",{attrs:{placement:"right",size:1200},model:{value:t.archivedProjectShow,callback:function(s){t.archivedProjectShow=s},expression:"archivedProjectShow"}},[t.archivedProjectShow?e("ProjectArchived"):t._e()],1),e("MeetingManager"),e("transition",{attrs:{name:"mobile-slide"}},[t.showMobileTabbar?e("MobileTabbar",{on:{"on-click":t.onTabbarClick}}):t._e()],1),e("MobileBack",{attrs:{showTabbar:t.showMobileTabbar}}),e("MobileNotification",{ref:"mobileNotification"})],1)},ze=[];const Fe={components:{TaskExport:Ie,CheckinExport:z,ApproveExport:Re,TaskModal:De,DialogModal:_e,MeetingManager:ue,MobileNotification:Jt,MobileBack:Ft,MobileTabbar:ut,TaskAdd:_t,Report:Rt,DrawerOverlay:B,ProjectManagement:rt,TeamManagement:F,ProjectArchived:tt},directives:{longpress:K},data(){return{loadIng:0,mateName:/macintosh|mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl",addShow:!1,addData:{name:"",columns:"",flow:"open"},addRule:{name:[{required:!0,message:this.$L("\u8BF7\u586B\u5199\u9879\u76EE\u540D\u79F0\uFF01"),trigger:"change"},{type:"string",min:2,message:this.$L("\u9879\u76EE\u540D\u79F0\u81F3\u5C112\u4E2A\u5B57\uFF01"),trigger:"change"}]},addTaskShow:!1,addTaskSubscribe:null,exportTaskShow:!1,exportCheckinShow:!1,exportApproveShow:!1,dialogMsgSubscribe:null,projectKeyValue:"",projectKeyLoading:0,projectSearchShow:!1,openMenu:{},visibleMenu:!1,showMobileMenu:!1,workReportShow:!1,allUserShow:!1,allProjectShow:!1,archivedProjectShow:!1,natificationReady:!1,notificationManage:null,reportTabs:"my",operateStyles:{},operateVisible:!1,operateItem:{},needStartHome:!1}},mounted(){this.notificationInit(),this.addTaskSubscribe=c.Store.subscribe("addTask",this.onAddTask),this.dialogMsgSubscribe=c.Store.subscribe("dialogMsgPush",this.addDialogMsg),document.addEventListener("keydown",this.shortcutEvent)},activated(){this.$store.dispatch("getUserInfo").catch(t=>{}),this.$store.dispatch("getTaskPriority").catch(t=>{}),this.$store.dispatch("getReportUnread",0),this.$store.dispatch("getApproveUnread",0),this.$store.dispatch("needHome").then(t=>{this.needStartHome=!0}).catch(t=>{this.needStartHome=!1})},beforeDestroy(){this.addTaskSubscribe&&(this.addTaskSubscribe.unsubscribe(),this.addTaskSubscribe=null),this.dialogMsgSubscribe&&(this.dialogMsgSubscribe.unsubscribe(),this.dialogMsgSubscribe=null),document.removeEventListener("keydown",this.shortcutEvent)},deactivated(){this.addShow=!1},computed:{...d(["userInfo","userIsAdmin","cacheUserBasic","cacheTasks","cacheDialogs","cacheProjects","projectTotal","wsOpenNum","columnTemplate","wsMsg","clientNewVersion","cacheTaskBrowse","dialogIns","reportUnreadNumber","approveUnreadNumber"]),...g(["dashboardTask"]),routeName(){return this.$route.name},msgUnreadMention(){let t=0,a=0;this.cacheDialogs.some(s=>{t+=$A.getDialogUnread(s,!1),a+=$A.getDialogMention(s)}),t>999&&(t="999+"),a>999&&(a="999+");const e=this.msgTodoTotal;return e?a?`@${a}\xB7${e}`:t?`${t}\xB7${e}`:e:t?a?`${t}\xB7@${a}`:String(t):a?`@${a}`:""},msgAllUnread(){let t=0;return this.cacheDialogs.some(a=>{t+=$A.getDialogNum(a)}),t},msgTodoTotal(){let t=this.cacheDialogs.reduce((a,e)=>a+(e.todo_num||0),0);return t>0?(t>99?t="99+":t===1&&(t=""),`${this.$L("\u5F85\u529E")}${t}`):null},unreadAndOverdue(){return this.userId>0?this.msgAllUnread+this.dashboardTask.overdue_count:0},menu(){const{userIsAdmin:t,needStartHome:a}=this,e=[{path:"taskBrowse",name:"\u6700\u8FD1\u6253\u5F00\u7684\u4EFB\u52A1"}];return t?e.push({path:"personal",name:"\u4E2A\u4EBA\u8BBE\u7F6E",divided:!0},{path:"system",name:"\u7CFB\u7EDF\u8BBE\u7F6E"},{path:"license",name:"License Key"},{path:"version",name:"\u66F4\u65B0\u7248\u672C",divided:!0,visible:!!this.clientNewVersion},{path:"allProject",name:"\u6240\u6709\u9879\u76EE",divided:!0},{path:"archivedProject",name:"\u5DF2\u5F52\u6863\u7684\u9879\u76EE"},{path:"team",name:"\u56E2\u961F\u7BA1\u7406",divided:!0},{path:"approve",name:"\u5BA1\u6279\u4E2D\u5FC3"}):e.push({path:"personal",name:"\u4E2A\u4EBA\u8BBE\u7F6E",divided:!0},{path:"approve",name:"\u5BA1\u6279\u4E2D\u5FC3"},{path:"version",name:"\u66F4\u65B0\u7248\u672C",divided:!0,visible:!!this.clientNewVersion},{path:"workReport",name:"\u5DE5\u4F5C\u62A5\u544A",divided:!0},{path:"archivedProject",name:"\u5DF2\u5F52\u6863\u7684\u9879\u76EE"}),a?e.push({path:"goHome",name:"\u6253\u5F00\u9996\u9875",divided:!0},{path:"clearCache",name:"\u6E05\u9664\u7F13\u5B58"},{path:"logout",name:"\u9000\u51FA\u767B\u5F55",style:{color:"#f40"}}):e.push({path:"clearCache",name:"\u6E05\u9664\u7F13\u5B58",divided:!0},{path:"logout",name:"\u9000\u51FA\u767B\u5F55",style:{color:"#f40"}}),e},columns(){const t=$A.cloneJSON(this.columnTemplate);return t.unshift({name:this.$L("\u7A7A\u767D\u6A21\u677F"),columns:[]}),t},projectLists(){const{projectKeyValue:t,cacheProjects:a}=this,e=$A.cloneJSON(a).sort((s,i)=>s.top_at||i.top_at?$A.Date(i.top_at)-$A.Date(s.top_at):i.id-s.id);return t?e.filter(s=>$A.strExists(`${s.name} ${s.desc}`,t)):e},taskBrowseLists(){const{cacheTasks:t,cacheTaskBrowse:a,userId:e}=this;return a.filter(({userid:s})=>s===e).map(({id:s})=>t.find(i=>i.id===s)||{})},showMobileTabbar(){return this.routeName==="manage-project"&&!/^\d+$/.test(this.$route.params.projectId)?!0:["manage-dashboard","manage-calendar","manage-messenger","manage-file","manage-setting"].includes(this.routeName)}},watch:{$route(){this.chackPass()},userInfo(){this.chackPass()},projectKeyValue(t){t!=""&&setTimeout(()=>{this.projectKeyValue==t&&this.searchProject()},600)},wsOpenNum(t){t<=1||this.$store.dispatch("getBasicData",600)},workReportShow(t){t&&this.$store.dispatch("getReportUnread",0)},"cacheProjects.length":{handler(){this.$nextTick(t=>{const a=this.$refs.menuProject,e=$A.last($A.getObject(a,"children.0.children"));if(e){const s=e.getBoundingClientRect(),i=a.getBoundingClientRect();if(s.top>i.top+i.height){this.projectSearchShow=!0;return}}this.projectSearchShow=!1})},immediate:!0},unreadAndOverdue:{handler(t){this.$Electron&&this.$Electron.sendMessage("setDockBadge",t)},immediate:!0},wsMsg:{handler(t){const{type:a,action:e}=t;switch(a){case"report":e=="unreadUpdate"&&this.$store.dispatch("getReportUnread",1e3);break;case"approve":e=="unread"&&this.$store.dispatch("getApproveUnread",1e3);break}},deep:!0}},methods:{chackPass(){this.userInfo.changepass===1&&this.goForward({name:"manage-setting-password"})},async toggleRoute(t,a){this.showMobileMenu=!1;let e={name:"manage-"+t,params:a||{}},s=await $A.IDBInt("fileFolderId");t==="file"&&s>0&&(e.params.folderId=s),this.goForward(e)},toggleOpenMenu(t){this.$set(this.openMenu,t,!this.openMenu[t])},settingRoute(t){switch(t){case"allUser":this.allUserShow=!0;return;case"allProject":this.allProjectShow=!0;return;case"archivedProject":this.archivedProjectShow=!0;return;case"exportTask":this.exportTaskShow=!0;return;case"exportOverdueTask":this.exportOverdueTask();return;case"exportCheckin":this.exportCheckinShow=!0;return;case"exportApprove":this.exportApproveShow=!0;return;case"workReport":this.reportUnreadNumber>0&&(this.reportTabs="receive"),this.workReportShow=!0;return;case"version":c.Store.set("updateNotification",null);return;case"clearCache":$A.IDBSet("clearCache","handle").then(a=>{$A.reloadUrl()});return;case"goHome":this.needStartHome&&this.goForward("index");return;case"approve":this.menu.findIndex(a=>a.path==t)>-1&&this.goForward({name:"manage-approve"});return;case"logout":$A.modalConfirm({title:"\u9000\u51FA\u767B\u5F55",content:"\u4F60\u786E\u5B9A\u8981\u767B\u51FA\u7CFB\u7EDF\uFF1F",onOk:()=>{this.$store.dispatch("logout",!1)}});return}this.menu.findIndex(a=>a.path==t)>-1&&this.toggleRoute("setting-"+t)},exportOverdueTask(){$A.modalConfirm({title:"\u5BFC\u51FA\u4EFB\u52A1",content:"\u4F60\u786E\u5B9A\u8981\u5BFC\u51FA\u6240\u6709\u8D85\u671F\u4EFB\u52A1\u5417\uFF1F",loading:!0,onOk:()=>new Promise((t,a)=>{this.$store.dispatch("call",{url:"project/task/exportoverdue"}).then(({data:e})=>{t(),this.$store.dispatch("downUrl",{url:e.url})}).catch(({msg:e})=>{a(e)})})})},menuVisibleChange(t){this.visibleMenu=t},classNameRoute(t){return{active:this.routeName===`manage-${t}`}},classNameProject(t){return{active:this.routeName==="manage-project"&&this.$route.params.projectId==t.id,"open-menu":this.openMenu[t.id]===!0,operate:t.id==this.operateItem.id&&this.operateVisible}},onAddMenu(t){switch(t){case"task":this.onAddTask(0);break;case"createMeeting":c.Store.set("addMeeting",{type:"create",userids:[this.userId]});break;case"joinMeeting":c.Store.set("addMeeting",{type:"join"});break}},onAddShow(){this.$store.dispatch("getColumnTemplate").catch(()=>{}),this.addShow=!0,this.$nextTick(()=>{this.$refs.projectName.focus()})},onAddProject(){this.$refs.addProject.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"project/add",data:this.addData}).then(({data:a,msg:e})=>{$A.messageSuccess(e),this.addShow=!1,this.$refs.addProject.resetFields(),this.$store.dispatch("saveProject",a),this.toggleRoute("project",{projectId:a.id})}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.loadIng--}))})},searchProject(){setTimeout(()=>{this.projectKeyLoading++},1e3),this.$store.dispatch("getProjects",{keys:{name:this.projectKeyValue}}).finally(t=>{this.projectKeyLoading--})},selectChange(t){this.$nextTick(()=>{this.$set(this.addData,"columns",this.columns[t].columns.join(","))})},shortcutEvent(t){(t.metaKey||t.ctrlKey)&&(t.keyCode===74?(t.preventDefault(),this.onAddMenu("createMeeting")):t.keyCode===75||t.keyCode===78?(t.preventDefault(),this.onAddMenu("task")):t.keyCode===83&&this.$refs.taskModal.checkUpdate()&&t.preventDefault())},onAddTask(t){this.addTaskShow=!0,this.$nextTick(a=>{let e={owner:[this.userId]};$A.isJson(t)?e=t:/^[1-9]\d*$/.test(t)&&(e.column_id=t),this.$refs.addTask.setData(e)})},openTask(t){this.$store.dispatch("openTask",t)},addDialogMsg(t){var b;if(!this.natificationReady&&!this.$isEEUiApp||this.windowActive&&t.dialog_id===((b=$A.last(this.dialogIns))==null?void 0:b.dialog_id))return;const{id:a,dialog_id:e,dialog_type:s,type:i,msg:o,userid:h}=t;if(h==this.userId)return;let u;switch(i){case"text":u=$A.getMsgTextPreview(o.text);break;case"file":u="["+this.$L(o.type=="img"?"\u56FE\u7247\u4FE1\u606F":"\u6587\u4EF6\u4FE1\u606F")+"]";break;default:return}this.__notificationId=a;const _=n=>{if(s==="group"){let p=this.cacheUserBasic.find(f=>f.userid==h);p?m(`${n} (${p.nickname})`):this.$store.dispatch("call",{url:"users/basic",data:{userid:[h]},skipAuthError:!0}).then(({data:f})=>{p=f.find(N=>N.userid==h),p&&m(`${n} (${p.nickname})`)}).catch(f=>{m(n)})}else m(n)},m=n=>{this.__notificationId===a&&(this.$isEEUiApp?this.$refs.mobileNotification.open({userid:h,title:n,desc:u,callback:()=>{this.goForward({name:"manage-messenger"}),this.$store.dispatch("openDialog",e)}}):this.$Electron?this.$Electron.sendMessage("openNotification",{icon:$A.originUrl("images/logo.png"),title:n,body:u,data:t,tag:"dialog",hasReply:!0,replyPlaceholder:this.$L("\u56DE\u590D\u6D88\u606F")}):(this.notificationManage.replaceOptions({icon:$A.originUrl("images/logo.png"),body:u,data:t,tag:"dialog"}),this.notificationManage.replaceTitle(n),this.notificationManage.userAgreed()))},$=this.cacheDialogs.find(n=>n.id==e);$?_($.name):this.$store.dispatch("getDialogOne",e).then(({data:n})=>_(n.name)).catch(()=>{})},handleLongpress(t,a){const e=$A.getAttr(a,"data-id"),s=this.projectLists.find(i=>i.id==e);!s||(this.operateVisible=!1,this.operateItem=$A.isJson(s)?s:{},this.$nextTick(()=>{const i=a.getBoundingClientRect(),o=this.$refs.menuProject.getBoundingClientRect();this.operateStyles={left:`${t.clientX-o.left}px`,top:`${i.top+this.windowScrollY}px`,height:i.height+"px"},this.operateVisible=!0}))},handleTopClick(){this.$store.dispatch("call",{url:"project/top",data:{project_id:this.operateItem.id}}).then(({data:t})=>{this.$store.dispatch("saveProject",t),this.$nextTick(()=>{const a=this.$refs.menuProject.querySelector(".active");a&&$A.scrollIntoViewIfNeeded(a)})}).catch(({msg:t})=>{$A.modalError(t)})},onTabbarClick(t){switch(t){case"addTask":this.onAddTask(0);break;case"addProject":this.onAddShow();break;case"allUser":case"workReport":this.settingRoute(t);break}},notificationInit(){this.notificationManage=new Ne(this.$L("\u6253\u5F00\u901A\u77E5\u6210\u529F")),this.notificationManage.support&&(this.notificationManage.notificationEvent({onclick:({target:t})=>{console.log("[Notification] A Click",t),this.notificationManage.close(),this.notificationClick(t),window.focus()}}),this.notificationPermission()),this.$Electron&&(this.$Electron.registerMsgListener("clickNotification",t=>{console.log("[Notification] B Click",t),this.$Electron.sendMessage("mainWindowActive"),this.notificationClick(t)}),this.$Electron.registerMsgListener("replyNotification",t=>{console.log("[Notification] B Reply",t),this.notificationReply(t)}))},notificationPermission(){const t=a=>{switch(a){case"already granted":case"granted":return this.natificationReady=!0;case"close":return this.notificationManage.initNotification(t);case"denied":case"already denied":console.log(a==="denied"?"\u60A8\u521A\u521A\u62D2\u7EDD\u663E\u793A\u901A\u77E5 \u8BF7\u5728\u8BBE\u7F6E\u4E2D\u66F4\u6539\u8BBE\u7F6E":"\u60A8\u66FE\u7EA7\u62D2\u7EDD\u663E\u793A\u901A\u77E5 \u8BF7\u5728\u8BBE\u7F6E\u4E2D\u66F4\u6539\u8BBE\u7F6E");break}};this.notificationManage.initNotification(t)},notificationClick(t){const{tag:a,data:e}=t;if(a=="dialog"){if(!$A.isJson(e))return;this.goForward({name:"manage-messenger"}),this.$nextTick(s=>{this.$store.dispatch("openDialog",e.dialog_id)})}},notificationReply(t){const{tag:a,data:e,reply:s}=t;a=="dialog"&&s&&this.$store.dispatch("call",{url:"dialog/msg/sendtext",data:{dialog_id:e.dialog_id,text:s},method:"post"}).then(({data:i})=>{this.$store.dispatch("saveDialogMsg",i),this.$store.dispatch("increaseTaskMsgNum",i),this.$store.dispatch("increaseMsgReplyNum",i),this.$store.dispatch("updateDialogLastMsg",i)}).catch(({msg:i})=>{$A.modalError(i)})}}},E={};var We=r(Fe,Oe,ze,!1,He,null,null,null);function He(t){for(let a in E)this[a]=E[a]}var oa=function(){return We.exports}();export{oa as default}; diff --git a/public/js/build/messenger.2c12df67.js b/public/js/build/messenger.28878db6.js similarity index 98% rename from public/js/build/messenger.2c12df67.js rename to public/js/build/messenger.28878db6.js index 26f09e9a9..1f4a626c0 100644 --- a/public/js/build/messenger.2c12df67.js +++ b/public/js/build/messenger.28878db6.js @@ -1 +1 @@ -import{d as u,m as h,n as p}from"./app.3d81bfbf.js";import{D as g}from"./DialogWrapper.68f3aecd.js";import{l as f}from"./longpress.43ca7fd9.js";import"./index.8fb9f3fd.js";import"./UserSelect.6a5dfe83.js";import"./ImgUpload.7f60f3a4.js";import"./details.ee26823b.js";var m=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"page-messenger"},[e("PageTitle",{attrs:{title:t.$L(t.tabActive==="dialog"?"\u6D88\u606F":"\u901A\u8BAF\u5F55")}}),e("div",{staticClass:"messenger-wrapper"},[e("div",{staticClass:"messenger-select"},[e("div",{staticClass:"messenger-search"},[e("div",{staticClass:"search-wrapper"},[t.tabActive==="dialog"?e("Input",{attrs:{placeholder:t.$L(t.loadDialogs?"\u66F4\u65B0\u4E2D...":"\u641C\u7D22\u6D88\u606F"),clearable:""},model:{value:t.dialogSearchKey,callback:function(s){t.dialogSearchKey=s},expression:"dialogSearchKey"}},[e("div",{staticClass:"search-pre",attrs:{slot:"prefix"},slot:"prefix"},[t.loadDialogs||t.dialogSearchLoad>0?e("Loading"):e("Icon",{attrs:{type:"ios-search"}})],1)]):e("Input",{attrs:{prefix:"ios-search",placeholder:t.$L("\u641C\u7D22\u8054\u7CFB\u4EBA"),clearable:""},model:{value:t.contactsKey,callback:function(s){t.contactsKey=s},expression:"contactsKey"}})],1)]),t.tabActive==="dialog"&&!t.dialogSearchKey?e("div",{staticClass:"messenger-nav"},[e("EDropdown",{ref:"navMenu",staticClass:"nav-menu",attrs:{trigger:"click",placement:"bottom-start"},on:{command:t.onActive}},[e("div",{staticClass:"nav-icon"},[e("i",{staticClass:"taskfont"},[t._v("\uE634")])]),e("EDropdownMenu",{staticClass:"messenger-nav-menu",attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.dialogMenus,function(s,i){return e("EDropdownItem",{key:i,attrs:{command:s.type}},[e("div",{staticClass:"messenger-nav-item",class:{active:t.dialogActive==s.type}},[e("div",{staticClass:"nav-title"},[t._v(t._s(t.$L(s.name)))]),e("Badge",{staticClass:"nav-num",attrs:{"overflow-count":999,count:t.msgUnread(s.type)}})],1)])}),1)],1),t._l(t.typeItems,function(s,i){return e("div",{key:i,class:{active:t.dialogActive==s.type},on:{click:function(o){return t.onActive(s.type)}}},[e("div",{staticClass:"nav-title"},[e("em",[t._v(t._s(t.$L(s.name)))]),e("Badge",{staticClass:"nav-num",attrs:{"overflow-count":999,count:t.msgUnread(s.type)}})],1)])})],2):t._e(),t.$isEEUiApp&&!t.appNotificationPermission?e("div",{staticClass:"messenger-notify-permission",on:{click:t.onOpenAppSetting}},[t._v(" "+t._s(t.$L("\u672A\u5F00\u542F\u901A\u77E5\u6743\u9650"))),e("i",{staticClass:"taskfont"},[t._v("\uE733")])]):t._e(),e("Scrollbar",{ref:"list",staticClass:"messenger-list",attrs:{"hide-bar":this.operateVisible},on:{"on-scroll":t.listScroll},nativeOn:{touchstart:function(s){return t.listTouch.apply(null,arguments)}}},[t.tabActive==="dialog"?e("ul",{ref:"ul",staticClass:"dialog"},t._l(t.dialogList,function(s,i){return t.dialogList.length>0?e("li",{directives:[{name:"longpress",rawName:"v-longpress",value:t.handleLongpress,expression:"handleLongpress"}],key:i,ref:`dialog_${s.id}`,refInFor:!0,class:t.dialogClass(s),attrs:{"data-id":s.id},on:{click:function(o){return t.openDialog({dialog_id:s.id,search_msg_id:s.search_msg_id})}}},[s.type=="group"?[s.avatar?e("EAvatar",{staticClass:"img-avatar",attrs:{src:s.avatar,size:42}}):s.group_type=="department"?e("i",{staticClass:"taskfont icon-avatar department"},[t._v("\uE75C")]):s.group_type=="project"?e("i",{staticClass:"taskfont icon-avatar project"},[t._v("\uE6F9")]):s.group_type=="task"?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):e("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:s.dialog_user?e("div",{staticClass:"user-avatar"},[e("UserAvatar",{attrs:{userid:s.dialog_user.userid,size:42}})],1):e("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}}),e("div",{staticClass:"dialog-box"},[e("div",{staticClass:"dialog-title"},[s.todo_num?e("div",{staticClass:"todo"},[t._v("["+t._s(t.$L("\u5F85\u529E"))+t._s(t.formatTodoNum(s.todo_num))+"]")]):t._e(),t.$A.getDialogMention(s)>0?e("div",{staticClass:"mention"},[t._v("[@"+t._s(t.$A.getDialogMention(s))+"]")]):t._e(),s.bot?e("div",{staticClass:"taskfont bot"},[t._v("\uE68C")]):t._e(),t._l(t.$A.dialogTags(s),function(o){return o.color!="success"?[e("Tag",{attrs:{color:o.color,fade:!1},on:{"on-click":function(r){return t.openDialog(s.id)}}},[t._v(t._s(t.$L(o.text)))])]:t._e()}),e("span",[t._v(t._s(s.name))]),s.type=="user"&&t.lastMsgReadDone(s.last_msg)&&s.dialog_user.userid!=t.userId?e("Icon",{attrs:{type:t.lastMsgReadDone(s.last_msg)}}):t._e(),s.last_at?e("em",[t._v(t._s(t.$A.formatTime(s.last_at)))]):t._e()],2),e("div",{staticClass:"dialog-text no-dark-content"},[s.extra_draft_has&&s.id!=t.dialogId?[e("div",{staticClass:"last-draft"},[t._v("["+t._s(t.$L("\u8349\u7A3F"))+"]")]),e("div",{staticClass:"last-text"},[e("span",[t._v(t._s(t.formatDraft(s.extra_draft_content)))])])]:[s.type=="group"&&s.last_msg&&s.last_msg.userid?[s.last_msg.userid==t.userId?e("div",{staticClass:"last-self"},[t._v(t._s(t.$L("\u4F60")))]):e("UserAvatar",{attrs:{userid:s.last_msg.userid,"show-name":!0,"show-icon":!1,"tooltip-disabled":""}})]:t._e(),e("div",{staticClass:"last-text"},[t.formatMsgEmojiDesc(s.last_msg)?e("em",[t._v(t._s(t.formatMsgEmojiDesc(s.last_msg)))]):t._e(),e("span",[t._v(t._s(t.$A.getMsgSimpleDesc(s.last_msg)))])])],s.silence?e("div",{staticClass:"taskfont last-silence"},[t._v("\uE7D7")]):t._e()],2)]),e("Badge",{staticClass:"dialog-num",attrs:{type:s.silence?"normal":"error","overflow-count":999,count:t.$A.getDialogUnread(s,!0)}}),e("div",{staticClass:"dialog-line"})],2):t.dialogSearchLoad===0?e("li",{staticClass:"nothing"},[t._v(" "+t._s(t.$L(t.dialogSearchKey?`\u6CA1\u6709\u4EFB\u4F55\u4E0E"${t.dialogSearchKey}"\u76F8\u5173\u7684\u4F1A\u8BDD`:"\u6CA1\u6709\u4EFB\u4F55\u4F1A\u8BDD"))+" ")]):t._e()}),0):e("ul",{staticClass:"contacts"},[t.contactsFilter.length===0?[t.contactsLoad>0?e("li",{staticClass:"loading"},[e("Loading")],1):e("li",{staticClass:"nothing"},[t._v(" "+t._s(t.$L(t.contactsKey?`\u6CA1\u6709\u4EFB\u4F55\u4E0E"${t.contactsKey}"\u76F8\u5173\u7684\u8054\u7CFB\u4EBA`:"\u6CA1\u6709\u4EFB\u4F55\u8054\u7CFB\u4EBA"))+" ")])]:[t._l(t.contactsList,function(s){return e("li",[e("div",{staticClass:"label"},[t._v(t._s(s.az))]),e("ul",t._l(s.list,function(i,o){return e("li",{key:o,on:{click:function(r){return t.openContacts(i)}}},[e("div",{staticClass:"avatar"},[e("UserAvatar",{attrs:{userid:i.userid,size:30}})],1),e("div",{staticClass:"nickname"},[e("em",[t._v(t._s(i.nickname))]),i.tags?e("div",{staticClass:"tags"},t._l(i.tags,function(r){return e("span",{style:t.tagField(r,"style")},[t._v(t._s(t.tagField(r,"label")))])}),0):t._e()]),i.loading?e("div",{staticClass:"loading"},[e("Loading")],1):t._e()])}),0)])}),e("li",{staticClass:"loaded"},[t.contactsKey?[t._v(t._s(t.$L("\u641C\u7D22\u5230"+t.contactsFilter.length+"\u4F4D\u8054\u7CFB\u4EBA")))]:[t._v(t._s(t.$L("\u5171"+t.contactsTotal+"\u4F4D\u8054\u7CFB\u4EBA")))]],2)]],2),e("div",{directives:[{name:"show",rawName:"v-show",value:t.operateVisible,expression:"operateVisible"}],staticClass:"operate-position",style:t.operateStyles},[e("Dropdown",{attrs:{trigger:"custom",placement:t.windowLandscape?"bottom":"top",visible:t.operateVisible,transfer:""},on:{"on-clickoutside":function(s){t.operateVisible=!1}}},[e("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{nativeOn:{click:function(s){return t.handleTopClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L(t.operateItem.top_at?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876"))+" ")]),e("DropdownItem",{nativeOn:{click:function(s){return t.handleReadClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L(t.$A.getDialogUnread(t.operateItem,!0)>0?"\u6807\u8BB0\u5DF2\u8BFB":"\u6807\u8BB0\u672A\u8BFB"))+" ")]),e("DropdownItem",{attrs:{disabled:t.silenceDisabled(t.operateItem)},nativeOn:{click:function(s){return t.handleSilenceClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L(t.operateItem.silence?"\u5141\u8BB8\u6D88\u606F\u901A\u77E5":"\u6D88\u606F\u514D\u6253\u6270"))+" ")])],1)],1)],1)]),e("div",{staticClass:"messenger-menu"},[e("div",{staticClass:"menu-icon"},[e("Icon",{class:{active:t.tabActive==="dialog"},attrs:{type:"ios-chatbubbles"},on:{click:function(s){return t.onActive(null)}}}),e("Badge",{staticClass:"menu-num",attrs:{"overflow-count":999,count:t.msgUnread("all")}})],1),e("div",{staticClass:"menu-icon"},[e("Icon",{class:{active:t.tabActive==="contacts"},attrs:{type:"md-person"},on:{click:function(s){t.tabActive="contacts"}}})],1)])],1),t.activeNum>0&&t.routeName==="manage-messenger"?e("div",{staticClass:"messenger-msg"},[e("div",{staticClass:"msg-dialog-bg"},[e("div",{staticClass:"msg-dialog-bg-icon"},[e("Icon",{attrs:{type:"ios-chatbubbles"}})],1),e("div",{staticClass:"msg-dialog-bg-text"},[t._v(t._s(t.$L("\u9009\u62E9\u4E00\u4E2A\u4F1A\u8BDD\u5F00\u59CB\u804A\u5929")))])]),t.windowLandscape&&t.dialogId>0?e("DialogWrapper",{attrs:{dialogId:t.dialogId,"auto-focus":t.$A.isDesktop(),"is-messenger":""},on:{"on-active":t.scrollIntoActive}}):t._e()],1):t._e()])],1)},_=[];const l={menuHistory:[]},v={components:{DialogWrapper:g},directives:{longpress:f},data(){return{activeNum:0,tabActive:"dialog",dialogSearchLoad:0,dialogSearchKey:"",dialogSearchList:[],dialogActive:"",dialogMenus:[{type:"",name:"\u5168\u90E8"},{type:"project",name:"\u9879\u76EE"},{type:"task",name:"\u4EFB\u52A1"},{type:"user",name:"\u5355\u804A"},{type:"group",name:"\u7FA4\u804A"},{type:"bot",name:"\u673A\u5668\u4EBA"}],dialogHistory:l.menuHistory,contactsKey:"",contactsLoad:0,contactsData:null,contactsTotal:0,contactsCurrentPage:1,contactsHasMorePages:!1,contactsLastTime:0,operateItem:{},operateStyles:{},operateVisible:!1,clickAgainSubscribe:null}},async beforeRouteEnter(t,a,e){l.menuHistory=await $A.IDBArray("dialogMenuHistory"),e()},mounted(){const t=$A.runNum(this.$route.query.dialog_id);t>0&&this.openDialog(t),this.clickAgainSubscribe=u.Store.subscribe("clickAgainDialog",this.shakeUnread)},beforeDestroy(){this.clickAgainSubscribe&&(this.clickAgainSubscribe.unsubscribe(),this.clickAgainSubscribe=null),document.removeEventListener("keydown",this.shortcutEvent)},activated(){this.updateDialogs(1e3),this.$nextTick(t=>this.activeNum++),$A.isEEUiApp&&$A.eeuiAppSendMessage({action:"getNotificationPermission"})},deactivated(){this.updateDialogs(-1),this.$nextTick(t=>this.activeNum--)},computed:{...h(["cacheDialogs","loadDialogs","dialogId","messengerSearchKey","appNotificationPermission"]),routeName(){return this.$route.name},typeItems(){const{dialogActive:t,dialogMenus:a,dialogHistory:e}=this,s=[];return this.dialogHistory.includes(t)?s.push(...this.dialogHistory):(s.push(""),t&&s.push(t),e.some(i=>{s.includes(i)||s.push(i)}),["project","task","user"].some(i=>{s.includes(i)||s.push(i)}),this.dialogHistory=s.slice(0,4),$A.IDBSave("dialogMenuHistory",this.dialogHistory)),this.dialogHistory.map(i=>a.find(o=>o.type==i))},dialogList(){const{dialogActive:t,dialogSearchKey:a,dialogSearchList:e}=this;return e.length>0?e.sort((i,o)=>(i.is_search===!0?1:0)-(o.is_search===!0?1:0)):t==""&&a==""?this.cacheDialogs.filter(i=>this.filterDialog(i)).sort(this.dialogSort):this.cacheDialogs.filter(i=>{if(!this.filterDialog(i))return!1;if(a){const{name:o,pinyin:r,last_msg:n}=i;let c=`${o} ${r}`;if(n)switch(n.type){case"text":c+=` ${n.msg.text.replace(/<[^>]+>/g,"")}`;break;case"meeting":case"file":c+=` ${n.msg.name}`;break}if(!$A.strExists(c,a))return!1}else if(t)switch(t){case"project":case"task":if(t!=i.group_type)return!1;break;case"user":if(t!=i.type||i.bot)return!1;break;case"group":if(t!=i.type||["project","task"].includes(i.group_type))return!1;break;case"bot":if(!i.bot)return!1;break;default:return!1}return!0}).sort(this.dialogSort)},contactsFilter(){const{contactsData:t,contactsKey:a}=this;return t===null?[]:a?t.filter(e=>$A.strExists(`${e.email} ${e.nickname} ${e.profession} ${e.pinyin}`,a)):t},contactsList(){const t=[];return this.contactsFilter.some(a=>{let e=a.az?a.az.toUpperCase():"#",s=t.find(i=>i.az==e);s?s.list.findIndex(({userid:i})=>i==a.userid)===-1&&s.list.push(a):t.push({az:e,list:[a]})}),t},msgUnread(){return function(t){let a=0;return this.cacheDialogs.some(e=>{switch(t){case"project":case"task":if(t!=e.group_type)return!1;break;case"user":if(t!=e.type||e.bot)return!1;break;case"group":if(t!=e.type||["project","task"].includes(e.group_type))return!1;break;case"bot":if(!e.bot)return!1;break}a+=$A.getDialogNum(e)}),a}}},watch:{$route:{handler({params:t}){["dialog","contacts"].includes(t.dialogAction)&&(this.tabActive=t.dialogAction)},immediate:!0},messengerSearchKey:{handler(t){this.$nextTick(a=>{this.dialogSearchKey=t.dialog,this.contactsKey=t.contacts})},deep:!0},dialogSearchKey(t){switch(this.$store.state.messengerSearchKey.dialog=t,t){case"log.o":$A.IDBSet("logOpen","open").then($A.reloadUrl);break;case"log.c":$A.IDBSet("logOpen","close").then($A.reloadUrl);break}this.dialogSearchList=[],t!=""&&(this.__searchTimer&&clearTimeout(this.__searchTimer),this.__searchTimer=setTimeout(this.searchDialog,600),this.dialogSearchLoad++,setTimeout(a=>this.dialogSearchLoad--,600))},contactsKey(t){this.$store.state.messengerSearchKey.contacts=t,t!=""&&(this.contactsLoad++,setTimeout(()=>{this.contactsKey==t&&this.getContactsList(1),this.contactsLoad--},600))},tabActive:{handler(t){t=="contacts"?($A.Time()-this.contactsLastTime>24*3600&&(this.contactsData=null),this.contactsData===null?this.getContactsList(1):this.updateContactsList(1e3)):this.updateDialogs(1e3)},immediate:!0},dialogId:{handler(t){t>0&&this.scrollIntoActive()},immediate:!0}},methods:{listTouch(){this.$refs.navMenu.visible&&this.$refs.navMenu.hide()},listScroll(){this.scrollE()<10&&this.getContactsNextPage(),this.operateVisible=!1},scrollE(){return this.$refs.list?this.$refs.list.scrollInfo().scrollE:0},onActive(t){if(t===null){if(this.tabActive!=="dialog"){this.tabActive="dialog";return}t=this.dialogActive}this.dialogActive==t?this.shakeUnread():this.dialogActive=t},shakeUnread(){var a;let t=this.dialogList.findIndex(e=>$A.getDialogNum(e)>0);if(t===-1&&(t=this.dialogList.findIndex(e=>$A.getDialogUnread(e,!0)>0)),t>-1){const e=this.$refs[`dialog_${(a=this.dialogList[t])==null?void 0:a.id}`];if(e&&e[0]){if(e[0].classList.contains("common-shake"))return;$A.scrollIntoViewIfNeeded(e[0]),requestAnimationFrame(s=>{e[0].classList.add("common-shake"),setTimeout(i=>{e[0].classList.remove("common-shake")},600)})}}},dialogClass(t){return this.dialogSearchKey?null:{top:t.top_at,active:t.id==this.dialogId,operate:this.operateVisible&&t.id==this.operateItem.id,completed:$A.dialogCompleted(t)}},dialogSort(t,a){return t.top_at||a.top_at?$A.Date(a.top_at)-$A.Date(t.top_at):t.todo_num>0||a.todo_num>0?a.todo_num-t.todo_num:t.extra_draft_has||a.extra_draft_has?a.extra_draft_has-t.extra_draft_has:$A.Date(a.last_at)-$A.Date(t.last_at)},openDialog(t){this.operateVisible||($A.isJson(t)&&$A.leftExists(t.dialog_id,"u:")?this.$store.dispatch("openDialogUserid",$A.leftDelete(t.dialog_id,"u:")).catch(({msg:a})=>{$A.modalError(a)}):this.$store.dispatch("openDialog",t))},openContacts(t){t.loading||(this.$set(t,"loading",!0),this.$store.dispatch("openDialogUserid",t.userid).then(a=>{this.windowLandscape&&(this.tabActive="dialog")}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.$set(t,"loading",!1)}))},tagField(t,a){switch($A.isJson(t)||(t={label:t}),a){case"style":return t.style||null;case"label":return t.label}return null},filterDialog(t){if(t.id>0&&t.id==this.dialogId||t.top_at||t.todo_num>0||$A.getDialogNum(t)>0)return!0;if(t.name===void 0||t.dialog_delete===1||!t.last_at)return!1;if(t.type=="group"&&["project","task"].includes(t.group_type)&&$A.isJson(t.group_info)){if(t.group_type=="task"&&t.group_info.complete_at){let a=Math.max($A.Date(t.last_at,!0),$A.Date(t.group_info.complete_at,!0));if(5*86400+a<$A.Time())return!1}if(t.group_info.deleted_at){let a=Math.max($A.Date(t.last_at,!0),$A.Date(t.group_info.deleted_at,!0));if(2*86400+a<$A.Time())return!1}if(t.group_info.archived_at){let a=Math.max($A.Date(t.last_at,!0),$A.Date(t.group_info.archived_at,!0));if(3*86400+a<$A.Time())return!1}}return!0},searchDialog(){const t=this.dialogSearchKey;t!=""&&(this.dialogSearchLoad++,this.$store.dispatch("call",{url:"dialog/search",data:{key:t}}).then(({data:a})=>{if(t!==this.dialogSearchKey)return;const e=$A.cloneJSON(this.dialogList),s=[],i=[];e.forEach(o=>{o.last_msg&&!s.includes(o.last_msg.id)&&s.push(o.last_msg.id),o.dialog_user&&!i.includes(o.dialog_user.userid)&&i.push(o.dialog_user.userid)}),a.some(o=>{$A.leftExists(o.id,"u:")?i.includes(o.dialog_user.userid)||e.push(Object.assign(o,{is_search:!0})):(!o.last_msg||!s.includes(o.last_msg.id))&&e.push(Object.assign(o,{is_search:!0}))}),this.dialogSearchList=e}).finally(a=>{this.dialogSearchLoad--}))},getContactsList(t){this.contactsLoad++;const a=this.contactsKey;this.$store.dispatch("call",{url:"users/search",data:{keys:{key:a},sorts:{az:"asc"},page:t,pagesize:50}}).then(({data:e})=>{a==""&&(this.contactsTotal=e.total),this.contactsData===null&&(this.contactsData=[]),e.data.some(s=>{this.contactsData.findIndex(i=>i.userid==s.userid)===-1&&this.contactsData.push(s)}),this.contactsCurrentPage=e.current_page,this.contactsHasMorePages=e.current_page{a==""&&(this.contactsTotal=0),this.contactsHasMorePages=!1}).finally(e=>{this.contactsLoad--,this.contactsLastTime=$A.Time()})},getContactsNextPage(){this.scrollE()<10&&this.tabActive==="contacts"&&this.contactsLoad===0&&this.contactsHasMorePages&&this.getContactsList(this.contactsCurrentPage+1)},updateContactsList(t){this.__updateContactsList&&clearTimeout(this.__updateContactsList),t>-1&&(this.__updateContactsList=setTimeout(a=>{this.tabActive==="contacts"&&this.$store.dispatch("call",{url:"users/search",data:{updated_time:this.contactsLastTime,take:100}}).then(({data:e})=>{e.some(s=>{const i=this.contactsData.findIndex(o=>o.userid==s.userid);i>-1?this.contactsData.splice(i,1,s):this.contactsData.push(s)})}).finally(e=>{this.contactsLastTime=$A.Time()})},t))},formatDraft(t){return(t==null?void 0:t.replace(/]*>/gi,`[${$A.L("\u56FE\u7247")}]`).replace(/<[^>]*>/g,""))||null},formatTodoNum(t){return t>999?"999+":t>1?t:""},formatMsgEmojiDesc(t){return $A.isJson(t)&&$A.arrayLength(t.emoji)>0?t.emoji[0].symbol:null},lastMsgReadDone(t){if($A.isJson(t)){const{userid:a,percentage:e}=t;if(a===this.userId)return e===100?"md-done-all":"md-checkmark"}return null},scrollIntoActive(){this.$nextTick(()=>{if(this.windowLandscape&&this.$refs.list){const t=this.$refs.list.querySelector(".active");t?$A.scrollIntoViewIfNeeded(t):this.cacheDialogs.find(({id:e})=>e==this.dialogId)&&this.dialogActive&&(this.dialogActive="",this.$nextTick(()=>{const e=this.$refs.list.querySelector(".active");e&&$A.scrollIntoViewIfNeeded(e)}))}})},handleLongpress(t,a){if(this.dialogSearchKey)return;const e=$A.getAttr(a,"data-id"),s=this.dialogList.find(i=>i.id==e);!s||(this.operateVisible=!1,this.operateItem=$A.isJson(s)?s:{},this.$nextTick(()=>{const i=a.getBoundingClientRect(),o=this.$refs.list.$el.getBoundingClientRect();this.operateStyles={left:`${t.clientX-o.left}px`,top:`${i.top-i.height+this.windowScrollY}px`,height:i.height+"px"},this.operateVisible=!0}))},handleTopClick(){this.$store.dispatch("call",{url:"dialog/top",data:{dialog_id:this.operateItem.id}}).then(({data:t})=>{this.$store.dispatch("saveDialog",t),this.$nextTick(this.scrollIntoActive)}).catch(({msg:t})=>{$A.modalError(t)})},handleReadClick(){this.$store.dispatch("dialogMsgMark",{dialog_id:this.operateItem.id,type:$A.getDialogUnread(this.operateItem,!0)>0?"read":"unread"}).catch(({msg:t})=>{$A.modalError(t)})},handleSilenceClick(){this.silenceDisabled(this.operateItem)||this.$store.dispatch("call",{url:"dialog/msg/silence",data:{dialog_id:this.operateItem.id,type:this.operateItem.silence?"cancel":"set"}}).then(({data:t})=>{this.$store.dispatch("saveDialog",t)}).catch(({msg:t})=>{$A.modalError(t)})},updateDialogs(t){this.__updateDialogs&&clearTimeout(this.__updateDialogs),t>-1&&(this.__updateDialogs=setTimeout(a=>{this.tabActive==="dialog"&&this.$store.dispatch("getDialogs",{hideload:!0}).catch(()=>{})},t))},onOpenAppSetting(){$A.eeuiAppSendMessage({action:"gotoSetting"})},silenceDisabled(t){const{type:a,group_type:e}=t;return a==="group"&&e!=="user"}}},d={};var $=p(v,m,_,!1,y,null,null,null);function y(t){for(let a in d)this[a]=d[a]}var I=function(){return $.exports}();export{I as default}; +import{d as u,m as h,n as p}from"./app.28437e7d.js";import{D as g}from"./DialogWrapper.962561b6.js";import{l as f}from"./longpress.43ca7fd9.js";import"./index.ed41beb1.js";import"./UserSelect.fe42163b.js";import"./ImgUpload.cbadd034.js";import"./details.70f91a78.js";var m=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"page-messenger"},[e("PageTitle",{attrs:{title:t.$L(t.tabActive==="dialog"?"\u6D88\u606F":"\u901A\u8BAF\u5F55")}}),e("div",{staticClass:"messenger-wrapper"},[e("div",{staticClass:"messenger-select"},[e("div",{staticClass:"messenger-search"},[e("div",{staticClass:"search-wrapper"},[t.tabActive==="dialog"?e("Input",{attrs:{placeholder:t.$L(t.loadDialogs?"\u66F4\u65B0\u4E2D...":"\u641C\u7D22\u6D88\u606F"),clearable:""},model:{value:t.dialogSearchKey,callback:function(s){t.dialogSearchKey=s},expression:"dialogSearchKey"}},[e("div",{staticClass:"search-pre",attrs:{slot:"prefix"},slot:"prefix"},[t.loadDialogs||t.dialogSearchLoad>0?e("Loading"):e("Icon",{attrs:{type:"ios-search"}})],1)]):e("Input",{attrs:{prefix:"ios-search",placeholder:t.$L("\u641C\u7D22\u8054\u7CFB\u4EBA"),clearable:""},model:{value:t.contactsKey,callback:function(s){t.contactsKey=s},expression:"contactsKey"}})],1)]),t.tabActive==="dialog"&&!t.dialogSearchKey?e("div",{staticClass:"messenger-nav"},[e("EDropdown",{ref:"navMenu",staticClass:"nav-menu",attrs:{trigger:"click",placement:"bottom-start"},on:{command:t.onActive}},[e("div",{staticClass:"nav-icon"},[e("i",{staticClass:"taskfont"},[t._v("\uE634")])]),e("EDropdownMenu",{staticClass:"messenger-nav-menu",attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.dialogMenus,function(s,i){return e("EDropdownItem",{key:i,attrs:{command:s.type}},[e("div",{staticClass:"messenger-nav-item",class:{active:t.dialogActive==s.type}},[e("div",{staticClass:"nav-title"},[t._v(t._s(t.$L(s.name)))]),e("Badge",{staticClass:"nav-num",attrs:{"overflow-count":999,count:t.msgUnread(s.type)}})],1)])}),1)],1),t._l(t.typeItems,function(s,i){return e("div",{key:i,class:{active:t.dialogActive==s.type},on:{click:function(o){return t.onActive(s.type)}}},[e("div",{staticClass:"nav-title"},[e("em",[t._v(t._s(t.$L(s.name)))]),e("Badge",{staticClass:"nav-num",attrs:{"overflow-count":999,count:t.msgUnread(s.type)}})],1)])})],2):t._e(),t.$isEEUiApp&&!t.appNotificationPermission?e("div",{staticClass:"messenger-notify-permission",on:{click:t.onOpenAppSetting}},[t._v(" "+t._s(t.$L("\u672A\u5F00\u542F\u901A\u77E5\u6743\u9650"))),e("i",{staticClass:"taskfont"},[t._v("\uE733")])]):t._e(),e("Scrollbar",{ref:"list",staticClass:"messenger-list",attrs:{"hide-bar":this.operateVisible},on:{"on-scroll":t.listScroll},nativeOn:{touchstart:function(s){return t.listTouch.apply(null,arguments)}}},[t.tabActive==="dialog"?e("ul",{ref:"ul",staticClass:"dialog"},t._l(t.dialogList,function(s,i){return t.dialogList.length>0?e("li",{directives:[{name:"longpress",rawName:"v-longpress",value:t.handleLongpress,expression:"handleLongpress"}],key:i,ref:`dialog_${s.id}`,refInFor:!0,class:t.dialogClass(s),attrs:{"data-id":s.id},on:{click:function(o){return t.openDialog({dialog_id:s.id,search_msg_id:s.search_msg_id})}}},[s.type=="group"?[s.avatar?e("EAvatar",{staticClass:"img-avatar",attrs:{src:s.avatar,size:42}}):s.group_type=="department"?e("i",{staticClass:"taskfont icon-avatar department"},[t._v("\uE75C")]):s.group_type=="project"?e("i",{staticClass:"taskfont icon-avatar project"},[t._v("\uE6F9")]):s.group_type=="task"?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("\uE6F4")]):e("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:s.dialog_user?e("div",{staticClass:"user-avatar"},[e("UserAvatar",{attrs:{userid:s.dialog_user.userid,size:42}})],1):e("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}}),e("div",{staticClass:"dialog-box"},[e("div",{staticClass:"dialog-title"},[s.todo_num?e("div",{staticClass:"todo"},[t._v("["+t._s(t.$L("\u5F85\u529E"))+t._s(t.formatTodoNum(s.todo_num))+"]")]):t._e(),t.$A.getDialogMention(s)>0?e("div",{staticClass:"mention"},[t._v("[@"+t._s(t.$A.getDialogMention(s))+"]")]):t._e(),s.bot?e("div",{staticClass:"taskfont bot"},[t._v("\uE68C")]):t._e(),t._l(t.$A.dialogTags(s),function(o){return o.color!="success"?[e("Tag",{attrs:{color:o.color,fade:!1},on:{"on-click":function(r){return t.openDialog(s.id)}}},[t._v(t._s(t.$L(o.text)))])]:t._e()}),e("span",[t._v(t._s(s.name))]),s.type=="user"&&t.lastMsgReadDone(s.last_msg)&&s.dialog_user.userid!=t.userId?e("Icon",{attrs:{type:t.lastMsgReadDone(s.last_msg)}}):t._e(),s.last_at?e("em",[t._v(t._s(t.$A.formatTime(s.last_at)))]):t._e()],2),e("div",{staticClass:"dialog-text no-dark-content"},[s.extra_draft_has&&s.id!=t.dialogId?[e("div",{staticClass:"last-draft"},[t._v("["+t._s(t.$L("\u8349\u7A3F"))+"]")]),e("div",{staticClass:"last-text"},[e("span",[t._v(t._s(t.formatDraft(s.extra_draft_content)))])])]:[s.type=="group"&&s.last_msg&&s.last_msg.userid?[s.last_msg.userid==t.userId?e("div",{staticClass:"last-self"},[t._v(t._s(t.$L("\u4F60")))]):e("UserAvatar",{attrs:{userid:s.last_msg.userid,"show-name":!0,"show-icon":!1,"tooltip-disabled":""}})]:t._e(),e("div",{staticClass:"last-text"},[t.formatMsgEmojiDesc(s.last_msg)?e("em",[t._v(t._s(t.formatMsgEmojiDesc(s.last_msg)))]):t._e(),e("span",[t._v(t._s(t.$A.getMsgSimpleDesc(s.last_msg)))])])],s.silence?e("div",{staticClass:"taskfont last-silence"},[t._v("\uE7D7")]):t._e()],2)]),e("Badge",{staticClass:"dialog-num",attrs:{type:s.silence?"normal":"error","overflow-count":999,count:t.$A.getDialogUnread(s,!0)}}),e("div",{staticClass:"dialog-line"})],2):t.dialogSearchLoad===0?e("li",{staticClass:"nothing"},[t._v(" "+t._s(t.$L(t.dialogSearchKey?`\u6CA1\u6709\u4EFB\u4F55\u4E0E"${t.dialogSearchKey}"\u76F8\u5173\u7684\u4F1A\u8BDD`:"\u6CA1\u6709\u4EFB\u4F55\u4F1A\u8BDD"))+" ")]):t._e()}),0):e("ul",{staticClass:"contacts"},[t.contactsFilter.length===0?[t.contactsLoad>0?e("li",{staticClass:"loading"},[e("Loading")],1):e("li",{staticClass:"nothing"},[t._v(" "+t._s(t.$L(t.contactsKey?`\u6CA1\u6709\u4EFB\u4F55\u4E0E"${t.contactsKey}"\u76F8\u5173\u7684\u8054\u7CFB\u4EBA`:"\u6CA1\u6709\u4EFB\u4F55\u8054\u7CFB\u4EBA"))+" ")])]:[t._l(t.contactsList,function(s){return e("li",[e("div",{staticClass:"label"},[t._v(t._s(s.az))]),e("ul",t._l(s.list,function(i,o){return e("li",{key:o,on:{click:function(r){return t.openContacts(i)}}},[e("div",{staticClass:"avatar"},[e("UserAvatar",{attrs:{userid:i.userid,size:30}})],1),e("div",{staticClass:"nickname"},[e("em",[t._v(t._s(i.nickname))]),i.tags?e("div",{staticClass:"tags"},t._l(i.tags,function(r){return e("span",{style:t.tagField(r,"style")},[t._v(t._s(t.tagField(r,"label")))])}),0):t._e()]),i.loading?e("div",{staticClass:"loading"},[e("Loading")],1):t._e()])}),0)])}),e("li",{staticClass:"loaded"},[t.contactsKey?[t._v(t._s(t.$L("\u641C\u7D22\u5230"+t.contactsFilter.length+"\u4F4D\u8054\u7CFB\u4EBA")))]:[t._v(t._s(t.$L("\u5171"+t.contactsTotal+"\u4F4D\u8054\u7CFB\u4EBA")))]],2)]],2),e("div",{directives:[{name:"show",rawName:"v-show",value:t.operateVisible,expression:"operateVisible"}],staticClass:"operate-position",style:t.operateStyles},[e("Dropdown",{attrs:{trigger:"custom",placement:t.windowLandscape?"bottom":"top",visible:t.operateVisible,transfer:""},on:{"on-clickoutside":function(s){t.operateVisible=!1}}},[e("div",{style:{userSelect:t.operateVisible?"none":"auto",height:t.operateStyles.height}}),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{nativeOn:{click:function(s){return t.handleTopClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L(t.operateItem.top_at?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876"))+" ")]),e("DropdownItem",{nativeOn:{click:function(s){return t.handleReadClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L(t.$A.getDialogUnread(t.operateItem,!0)>0?"\u6807\u8BB0\u5DF2\u8BFB":"\u6807\u8BB0\u672A\u8BFB"))+" ")]),e("DropdownItem",{attrs:{disabled:t.silenceDisabled(t.operateItem)},nativeOn:{click:function(s){return t.handleSilenceClick.apply(null,arguments)}}},[t._v(" "+t._s(t.$L(t.operateItem.silence?"\u5141\u8BB8\u6D88\u606F\u901A\u77E5":"\u6D88\u606F\u514D\u6253\u6270"))+" ")])],1)],1)],1)]),e("div",{staticClass:"messenger-menu"},[e("div",{staticClass:"menu-icon"},[e("Icon",{class:{active:t.tabActive==="dialog"},attrs:{type:"ios-chatbubbles"},on:{click:function(s){return t.onActive(null)}}}),e("Badge",{staticClass:"menu-num",attrs:{"overflow-count":999,count:t.msgUnread("all")}})],1),e("div",{staticClass:"menu-icon"},[e("Icon",{class:{active:t.tabActive==="contacts"},attrs:{type:"md-person"},on:{click:function(s){t.tabActive="contacts"}}})],1)])],1),t.activeNum>0&&t.routeName==="manage-messenger"?e("div",{staticClass:"messenger-msg"},[e("div",{staticClass:"msg-dialog-bg"},[e("div",{staticClass:"msg-dialog-bg-icon"},[e("Icon",{attrs:{type:"ios-chatbubbles"}})],1),e("div",{staticClass:"msg-dialog-bg-text"},[t._v(t._s(t.$L("\u9009\u62E9\u4E00\u4E2A\u4F1A\u8BDD\u5F00\u59CB\u804A\u5929")))])]),t.windowLandscape&&t.dialogId>0?e("DialogWrapper",{attrs:{dialogId:t.dialogId,"auto-focus":t.$A.isDesktop(),"is-messenger":""},on:{"on-active":t.scrollIntoActive}}):t._e()],1):t._e()])],1)},_=[];const l={menuHistory:[]},v={components:{DialogWrapper:g},directives:{longpress:f},data(){return{activeNum:0,tabActive:"dialog",dialogSearchLoad:0,dialogSearchKey:"",dialogSearchList:[],dialogActive:"",dialogMenus:[{type:"",name:"\u5168\u90E8"},{type:"project",name:"\u9879\u76EE"},{type:"task",name:"\u4EFB\u52A1"},{type:"user",name:"\u5355\u804A"},{type:"group",name:"\u7FA4\u804A"},{type:"bot",name:"\u673A\u5668\u4EBA"}],dialogHistory:l.menuHistory,contactsKey:"",contactsLoad:0,contactsData:null,contactsTotal:0,contactsCurrentPage:1,contactsHasMorePages:!1,contactsLastTime:0,operateItem:{},operateStyles:{},operateVisible:!1,clickAgainSubscribe:null}},async beforeRouteEnter(t,a,e){l.menuHistory=await $A.IDBArray("dialogMenuHistory"),e()},mounted(){const t=$A.runNum(this.$route.query.dialog_id);t>0&&this.openDialog(t),this.clickAgainSubscribe=u.Store.subscribe("clickAgainDialog",this.shakeUnread)},beforeDestroy(){this.clickAgainSubscribe&&(this.clickAgainSubscribe.unsubscribe(),this.clickAgainSubscribe=null),document.removeEventListener("keydown",this.shortcutEvent)},activated(){this.updateDialogs(1e3),this.$nextTick(t=>this.activeNum++),$A.isEEUiApp&&$A.eeuiAppSendMessage({action:"getNotificationPermission"})},deactivated(){this.updateDialogs(-1),this.$nextTick(t=>this.activeNum--)},computed:{...h(["cacheDialogs","loadDialogs","dialogId","messengerSearchKey","appNotificationPermission"]),routeName(){return this.$route.name},typeItems(){const{dialogActive:t,dialogMenus:a,dialogHistory:e}=this,s=[];return this.dialogHistory.includes(t)?s.push(...this.dialogHistory):(s.push(""),t&&s.push(t),e.some(i=>{s.includes(i)||s.push(i)}),["project","task","user"].some(i=>{s.includes(i)||s.push(i)}),this.dialogHistory=s.slice(0,4),$A.IDBSave("dialogMenuHistory",this.dialogHistory)),this.dialogHistory.map(i=>a.find(o=>o.type==i))},dialogList(){const{dialogActive:t,dialogSearchKey:a,dialogSearchList:e}=this;return e.length>0?e.sort((i,o)=>(i.is_search===!0?1:0)-(o.is_search===!0?1:0)):t==""&&a==""?this.cacheDialogs.filter(i=>this.filterDialog(i)).sort(this.dialogSort):this.cacheDialogs.filter(i=>{if(!this.filterDialog(i))return!1;if(a){const{name:o,pinyin:r,last_msg:n}=i;let c=`${o} ${r}`;if(n)switch(n.type){case"text":c+=` ${n.msg.text.replace(/<[^>]+>/g,"")}`;break;case"meeting":case"file":c+=` ${n.msg.name}`;break}if(!$A.strExists(c,a))return!1}else if(t)switch(t){case"project":case"task":if(t!=i.group_type)return!1;break;case"user":if(t!=i.type||i.bot)return!1;break;case"group":if(t!=i.type||["project","task"].includes(i.group_type))return!1;break;case"bot":if(!i.bot)return!1;break;default:return!1}return!0}).sort(this.dialogSort)},contactsFilter(){const{contactsData:t,contactsKey:a}=this;return t===null?[]:a?t.filter(e=>$A.strExists(`${e.email} ${e.nickname} ${e.profession} ${e.pinyin}`,a)):t},contactsList(){const t=[];return this.contactsFilter.some(a=>{let e=a.az?a.az.toUpperCase():"#",s=t.find(i=>i.az==e);s?s.list.findIndex(({userid:i})=>i==a.userid)===-1&&s.list.push(a):t.push({az:e,list:[a]})}),t},msgUnread(){return function(t){let a=0;return this.cacheDialogs.some(e=>{switch(t){case"project":case"task":if(t!=e.group_type)return!1;break;case"user":if(t!=e.type||e.bot)return!1;break;case"group":if(t!=e.type||["project","task"].includes(e.group_type))return!1;break;case"bot":if(!e.bot)return!1;break}a+=$A.getDialogNum(e)}),a}}},watch:{$route:{handler({params:t}){["dialog","contacts"].includes(t.dialogAction)&&(this.tabActive=t.dialogAction)},immediate:!0},messengerSearchKey:{handler(t){this.$nextTick(a=>{this.dialogSearchKey=t.dialog,this.contactsKey=t.contacts})},deep:!0},dialogSearchKey(t){switch(this.$store.state.messengerSearchKey.dialog=t,t){case"log.o":$A.IDBSet("logOpen","open").then($A.reloadUrl);break;case"log.c":$A.IDBSet("logOpen","close").then($A.reloadUrl);break}this.dialogSearchList=[],t!=""&&(this.__searchTimer&&clearTimeout(this.__searchTimer),this.__searchTimer=setTimeout(this.searchDialog,600),this.dialogSearchLoad++,setTimeout(a=>this.dialogSearchLoad--,600))},contactsKey(t){this.$store.state.messengerSearchKey.contacts=t,t!=""&&(this.contactsLoad++,setTimeout(()=>{this.contactsKey==t&&this.getContactsList(1),this.contactsLoad--},600))},tabActive:{handler(t){t=="contacts"?($A.Time()-this.contactsLastTime>24*3600&&(this.contactsData=null),this.contactsData===null?this.getContactsList(1):this.updateContactsList(1e3)):this.updateDialogs(1e3)},immediate:!0},dialogId:{handler(t){t>0&&this.scrollIntoActive()},immediate:!0}},methods:{listTouch(){this.$refs.navMenu.visible&&this.$refs.navMenu.hide()},listScroll(){this.scrollE()<10&&this.getContactsNextPage(),this.operateVisible=!1},scrollE(){return this.$refs.list?this.$refs.list.scrollInfo().scrollE:0},onActive(t){if(t===null){if(this.tabActive!=="dialog"){this.tabActive="dialog";return}t=this.dialogActive}this.dialogActive==t?this.shakeUnread():this.dialogActive=t},shakeUnread(){var a;let t=this.dialogList.findIndex(e=>$A.getDialogNum(e)>0);if(t===-1&&(t=this.dialogList.findIndex(e=>$A.getDialogUnread(e,!0)>0)),t>-1){const e=this.$refs[`dialog_${(a=this.dialogList[t])==null?void 0:a.id}`];if(e&&e[0]){if(e[0].classList.contains("common-shake"))return;$A.scrollIntoViewIfNeeded(e[0]),requestAnimationFrame(s=>{e[0].classList.add("common-shake"),setTimeout(i=>{e[0].classList.remove("common-shake")},600)})}}},dialogClass(t){return this.dialogSearchKey?null:{top:t.top_at,active:t.id==this.dialogId,operate:this.operateVisible&&t.id==this.operateItem.id,completed:$A.dialogCompleted(t)}},dialogSort(t,a){return t.top_at||a.top_at?$A.Date(a.top_at)-$A.Date(t.top_at):t.todo_num>0||a.todo_num>0?a.todo_num-t.todo_num:t.extra_draft_has||a.extra_draft_has?a.extra_draft_has-t.extra_draft_has:$A.Date(a.last_at)-$A.Date(t.last_at)},openDialog(t){this.operateVisible||($A.isJson(t)&&$A.leftExists(t.dialog_id,"u:")?this.$store.dispatch("openDialogUserid",$A.leftDelete(t.dialog_id,"u:")).catch(({msg:a})=>{$A.modalError(a)}):this.$store.dispatch("openDialog",t))},openContacts(t){t.loading||(this.$set(t,"loading",!0),this.$store.dispatch("openDialogUserid",t.userid).then(a=>{this.windowLandscape&&(this.tabActive="dialog")}).catch(({msg:a})=>{$A.modalError(a)}).finally(a=>{this.$set(t,"loading",!1)}))},tagField(t,a){switch($A.isJson(t)||(t={label:t}),a){case"style":return t.style||null;case"label":return t.label}return null},filterDialog(t){if(t.id>0&&t.id==this.dialogId||t.top_at||t.todo_num>0||$A.getDialogNum(t)>0)return!0;if(t.name===void 0||t.dialog_delete===1||!t.last_at)return!1;if(t.type=="group"&&["project","task"].includes(t.group_type)&&$A.isJson(t.group_info)){if(t.group_type=="task"&&t.group_info.complete_at){let a=Math.max($A.Date(t.last_at,!0),$A.Date(t.group_info.complete_at,!0));if(5*86400+a<$A.Time())return!1}if(t.group_info.deleted_at){let a=Math.max($A.Date(t.last_at,!0),$A.Date(t.group_info.deleted_at,!0));if(2*86400+a<$A.Time())return!1}if(t.group_info.archived_at){let a=Math.max($A.Date(t.last_at,!0),$A.Date(t.group_info.archived_at,!0));if(3*86400+a<$A.Time())return!1}}return!0},searchDialog(){const t=this.dialogSearchKey;t!=""&&(this.dialogSearchLoad++,this.$store.dispatch("call",{url:"dialog/search",data:{key:t}}).then(({data:a})=>{if(t!==this.dialogSearchKey)return;const e=$A.cloneJSON(this.dialogList),s=[],i=[];e.forEach(o=>{o.last_msg&&!s.includes(o.last_msg.id)&&s.push(o.last_msg.id),o.dialog_user&&!i.includes(o.dialog_user.userid)&&i.push(o.dialog_user.userid)}),a.some(o=>{$A.leftExists(o.id,"u:")?i.includes(o.dialog_user.userid)||e.push(Object.assign(o,{is_search:!0})):(!o.last_msg||!s.includes(o.last_msg.id))&&e.push(Object.assign(o,{is_search:!0}))}),this.dialogSearchList=e}).finally(a=>{this.dialogSearchLoad--}))},getContactsList(t){this.contactsLoad++;const a=this.contactsKey;this.$store.dispatch("call",{url:"users/search",data:{keys:{key:a},sorts:{az:"asc"},page:t,pagesize:50}}).then(({data:e})=>{a==""&&(this.contactsTotal=e.total),this.contactsData===null&&(this.contactsData=[]),e.data.some(s=>{this.contactsData.findIndex(i=>i.userid==s.userid)===-1&&this.contactsData.push(s)}),this.contactsCurrentPage=e.current_page,this.contactsHasMorePages=e.current_page{a==""&&(this.contactsTotal=0),this.contactsHasMorePages=!1}).finally(e=>{this.contactsLoad--,this.contactsLastTime=$A.Time()})},getContactsNextPage(){this.scrollE()<10&&this.tabActive==="contacts"&&this.contactsLoad===0&&this.contactsHasMorePages&&this.getContactsList(this.contactsCurrentPage+1)},updateContactsList(t){this.__updateContactsList&&clearTimeout(this.__updateContactsList),t>-1&&(this.__updateContactsList=setTimeout(a=>{this.tabActive==="contacts"&&this.$store.dispatch("call",{url:"users/search",data:{updated_time:this.contactsLastTime,take:100}}).then(({data:e})=>{e.some(s=>{const i=this.contactsData.findIndex(o=>o.userid==s.userid);i>-1?this.contactsData.splice(i,1,s):this.contactsData.push(s)})}).finally(e=>{this.contactsLastTime=$A.Time()})},t))},formatDraft(t){return(t==null?void 0:t.replace(/]*>/gi,`[${$A.L("\u56FE\u7247")}]`).replace(/<[^>]*>/g,""))||null},formatTodoNum(t){return t>999?"999+":t>1?t:""},formatMsgEmojiDesc(t){return $A.isJson(t)&&$A.arrayLength(t.emoji)>0?t.emoji[0].symbol:null},lastMsgReadDone(t){if($A.isJson(t)){const{userid:a,percentage:e}=t;if(a===this.userId)return e===100?"md-done-all":"md-checkmark"}return null},scrollIntoActive(){this.$nextTick(()=>{if(this.windowLandscape&&this.$refs.list){const t=this.$refs.list.querySelector(".active");t?$A.scrollIntoViewIfNeeded(t):this.cacheDialogs.find(({id:e})=>e==this.dialogId)&&this.dialogActive&&(this.dialogActive="",this.$nextTick(()=>{const e=this.$refs.list.querySelector(".active");e&&$A.scrollIntoViewIfNeeded(e)}))}})},handleLongpress(t,a){if(this.dialogSearchKey)return;const e=$A.getAttr(a,"data-id"),s=this.dialogList.find(i=>i.id==e);!s||(this.operateVisible=!1,this.operateItem=$A.isJson(s)?s:{},this.$nextTick(()=>{const i=a.getBoundingClientRect(),o=this.$refs.list.$el.getBoundingClientRect();this.operateStyles={left:`${t.clientX-o.left}px`,top:`${i.top-i.height+this.windowScrollY}px`,height:i.height+"px"},this.operateVisible=!0}))},handleTopClick(){this.$store.dispatch("call",{url:"dialog/top",data:{dialog_id:this.operateItem.id}}).then(({data:t})=>{this.$store.dispatch("saveDialog",t),this.$nextTick(this.scrollIntoActive)}).catch(({msg:t})=>{$A.modalError(t)})},handleReadClick(){this.$store.dispatch("dialogMsgMark",{dialog_id:this.operateItem.id,type:$A.getDialogUnread(this.operateItem,!0)>0?"read":"unread"}).catch(({msg:t})=>{$A.modalError(t)})},handleSilenceClick(){this.silenceDisabled(this.operateItem)||this.$store.dispatch("call",{url:"dialog/msg/silence",data:{dialog_id:this.operateItem.id,type:this.operateItem.silence?"cancel":"set"}}).then(({data:t})=>{this.$store.dispatch("saveDialog",t)}).catch(({msg:t})=>{$A.modalError(t)})},updateDialogs(t){this.__updateDialogs&&clearTimeout(this.__updateDialogs),t>-1&&(this.__updateDialogs=setTimeout(a=>{this.tabActive==="dialog"&&this.$store.dispatch("getDialogs",{hideload:!0}).catch(()=>{})},t))},onOpenAppSetting(){$A.eeuiAppSendMessage({action:"gotoSetting"})},silenceDisabled(t){const{type:a,group_type:e}=t;return a==="group"&&e!=="user"}}},d={};var $=p(v,m,_,!1,y,null,null,null);function y(t){for(let a in d)this[a]=d[a]}var I=function(){return $.exports}();export{I as default}; diff --git a/public/js/build/password.54e39187.js b/public/js/build/password.6442867a.js similarity index 97% rename from public/js/build/password.54e39187.js rename to public/js/build/password.6442867a.js index 4c7d9fd80..30fe4615e 100644 --- a/public/js/build/password.54e39187.js +++ b/public/js/build/password.6442867a.js @@ -1 +1 @@ -import{m as o,n as i}from"./app.3d81bfbf.js";var n=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"setting-item submit"},[s("Form",{ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(r){r.preventDefault()}}},[t.userInfo.changepass?s("Alert",{staticStyle:{"margin-bottom":"32px"},attrs:{type:"warning",showIcon:""}},[t._v(t._s(t.$L("\u8BF7\u5148\u4FEE\u6539\u767B\u5F55\u5BC6\u7801\uFF01")))]):t._e(),s("FormItem",{attrs:{label:t.$L("\u65E7\u5BC6\u7801"),prop:"oldpass"}},[s("Input",{attrs:{type:"password"},model:{value:t.formDatum.oldpass,callback:function(r){t.$set(t.formDatum,"oldpass",r)},expression:"formDatum.oldpass"}})],1),s("FormItem",{attrs:{label:t.$L("\u65B0\u5BC6\u7801"),prop:"newpass"}},[s("Input",{attrs:{type:"password"},model:{value:t.formDatum.newpass,callback:function(r){t.$set(t.formDatum,"newpass",r)},expression:"formDatum.newpass"}})],1),s("FormItem",{attrs:{label:t.$L("\u786E\u8BA4\u65B0\u5BC6\u7801"),prop:"checkpass"}},[s("Input",{attrs:{type:"password"},model:{value:t.formDatum.checkpass,callback:function(r){t.$set(t.formDatum,"checkpass",r)},expression:"formDatum.checkpass"}})],1)],1),s("div",{staticClass:"setting-footer"},[s("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),s("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},m=[];const l={data(){return{loadIng:0,formDatum:{oldpass:"",newpass:"",checkpass:""},ruleDatum:{oldpass:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u65E7\u5BC6\u7801\uFF01"),trigger:"change"},{type:"string",min:6,message:this.$L("\u5BC6\u7801\u957F\u5EA6\u81F3\u5C116\u4F4D\uFF01"),trigger:"change"}],newpass:[{validator:(t,e,s)=>{e===""?s(new Error(this.$L("\u8BF7\u8F93\u5165\u65B0\u5BC6\u7801\uFF01"))):(this.formDatum.checkpass!==""&&this.$refs.formDatum.validateField("checkpass"),s())},required:!0,trigger:"change"},{type:"string",min:6,message:this.$L("\u5BC6\u7801\u957F\u5EA6\u81F3\u5C116\u4F4D\uFF01"),trigger:"change"}],checkpass:[{validator:(t,e,s)=>{e===""?s(new Error(this.$L("\u8BF7\u91CD\u65B0\u8F93\u5165\u65B0\u5BC6\u7801\uFF01"))):e!==this.formDatum.newpass?s(new Error(this.$L("\u4E24\u6B21\u5BC6\u7801\u8F93\u5165\u4E0D\u4E00\u81F4\uFF01"))):s()},required:!0,trigger:"change"}]}}},computed:{...o(["userInfo","formLabelPosition","formLabelWidth"])},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"users/editpass",data:this.formDatum}).then(({data:e})=>{$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("saveUserInfo",e),this.$refs.formDatum.resetFields()}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()}}},a={};var u=i(l,n,m,!1,p,null,null,null);function p(t){for(let e in a)this[e]=a[e]}var f=function(){return u.exports}();export{f as default}; +import{m as o,n as i}from"./app.28437e7d.js";var n=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"setting-item submit"},[s("Form",{ref:"formDatum",attrs:{model:t.formDatum,rules:t.ruleDatum,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(r){r.preventDefault()}}},[t.userInfo.changepass?s("Alert",{staticStyle:{"margin-bottom":"32px"},attrs:{type:"warning",showIcon:""}},[t._v(t._s(t.$L("\u8BF7\u5148\u4FEE\u6539\u767B\u5F55\u5BC6\u7801\uFF01")))]):t._e(),s("FormItem",{attrs:{label:t.$L("\u65E7\u5BC6\u7801"),prop:"oldpass"}},[s("Input",{attrs:{type:"password"},model:{value:t.formDatum.oldpass,callback:function(r){t.$set(t.formDatum,"oldpass",r)},expression:"formDatum.oldpass"}})],1),s("FormItem",{attrs:{label:t.$L("\u65B0\u5BC6\u7801"),prop:"newpass"}},[s("Input",{attrs:{type:"password"},model:{value:t.formDatum.newpass,callback:function(r){t.$set(t.formDatum,"newpass",r)},expression:"formDatum.newpass"}})],1),s("FormItem",{attrs:{label:t.$L("\u786E\u8BA4\u65B0\u5BC6\u7801"),prop:"checkpass"}},[s("Input",{attrs:{type:"password"},model:{value:t.formDatum.checkpass,callback:function(r){t.$set(t.formDatum,"checkpass",r)},expression:"formDatum.checkpass"}})],1)],1),s("div",{staticClass:"setting-footer"},[s("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),s("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},m=[];const l={data(){return{loadIng:0,formDatum:{oldpass:"",newpass:"",checkpass:""},ruleDatum:{oldpass:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u65E7\u5BC6\u7801\uFF01"),trigger:"change"},{type:"string",min:6,message:this.$L("\u5BC6\u7801\u957F\u5EA6\u81F3\u5C116\u4F4D\uFF01"),trigger:"change"}],newpass:[{validator:(t,e,s)=>{e===""?s(new Error(this.$L("\u8BF7\u8F93\u5165\u65B0\u5BC6\u7801\uFF01"))):(this.formDatum.checkpass!==""&&this.$refs.formDatum.validateField("checkpass"),s())},required:!0,trigger:"change"},{type:"string",min:6,message:this.$L("\u5BC6\u7801\u957F\u5EA6\u81F3\u5C116\u4F4D\uFF01"),trigger:"change"}],checkpass:[{validator:(t,e,s)=>{e===""?s(new Error(this.$L("\u8BF7\u91CD\u65B0\u8F93\u5165\u65B0\u5BC6\u7801\uFF01"))):e!==this.formDatum.newpass?s(new Error(this.$L("\u4E24\u6B21\u5BC6\u7801\u8F93\u5165\u4E0D\u4E00\u81F4\uFF01"))):s()},required:!0,trigger:"change"}]}}},computed:{...o(["userInfo","formLabelPosition","formLabelWidth"])},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&(this.loadIng++,this.$store.dispatch("call",{url:"users/editpass",data:this.formDatum}).then(({data:e})=>{$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("saveUserInfo",e),this.$refs.formDatum.resetFields()}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--}))})},resetForm(){this.$refs.formDatum.resetFields()}}},a={};var u=i(l,n,m,!1,p,null,null,null);function p(t){for(let e in a)this[e]=a[e]}var f=function(){return u.exports}();export{f as default}; diff --git a/public/js/build/personal.43fd91dd.js b/public/js/build/personal.54df45dd.js similarity index 96% rename from public/js/build/personal.43fd91dd.js rename to public/js/build/personal.54df45dd.js index 45c1d0f66..108e0935e 100644 --- a/public/js/build/personal.43fd91dd.js +++ b/public/js/build/personal.54df45dd.js @@ -1 +1 @@ -import{I as i}from"./ImgUpload.7f60f3a4.js";import{m as o,n}from"./app.3d81bfbf.js";var m=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"setting-item submit"},[e("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5934\u50CF"),prop:"userimg"}},[e("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:1},model:{value:t.formData.userimg,callback:function(a){t.$set(t.formData,"userimg",a)},expression:"formData.userimg"}}),e("span",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A200x200")))])],1),e("FormItem",{attrs:{label:t.$L("\u90AE\u7BB1"),prop:"email"}},[e("Input",{attrs:{disabled:""},model:{value:t.userInfo.email,callback:function(a){t.$set(t.userInfo,"email",a)},expression:"userInfo.email"}})],1),e("FormItem",{attrs:{label:t.$L("\u7535\u8BDD"),prop:"tel"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD")},model:{value:t.formData.tel,callback:function(a){t.$set(t.formData,"tel",a)},expression:"formData.tel"}})],1),e("FormItem",{attrs:{label:t.$L("\u6635\u79F0"),prop:"nickname"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u6635\u79F0")},model:{value:t.formData.nickname,callback:function(a){t.$set(t.formData,"nickname",a)},expression:"formData.nickname"}})],1),e("FormItem",{attrs:{label:t.$L("\u804C\u4F4D/\u804C\u79F0"),prop:"profession"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u804C\u4F4D/\u804C\u79F0")},model:{value:t.formData.profession,callback:function(a){t.$set(t.formData,"profession",a)},expression:"formData.profession"}})],1)],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},l=[];const f={components:{ImgUpload:i},data(){return{loadIng:0,formData:{userimg:"",email:"",tel:"",nickname:"",profession:""},ruleData:{email:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u5730\u5740\uFF01"),trigger:"change"}],tel:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD\uFF01"),trigger:"change"},{type:"string",min:6,message:this.$L("\u7535\u8BDD\u957F\u5EA6\u81F3\u5C116\u4F4D\uFF01"),trigger:"change"}],nickname:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u6635\u79F0\uFF01"),trigger:"change"},{type:"string",min:2,message:this.$L("\u6635\u79F0\u957F\u5EA6\u81F3\u5C112\u4F4D\uFF01"),trigger:"change"}]}}},mounted(){this.initData()},computed:{...o(["userInfo","formLabelPosition","formLabelWidth"])},watch:{userInfo(){this.initData()}},methods:{initData(){this.$set(this.formData,"userimg",$A.strExists(this.userInfo.userimg,"/avatar")?"":this.userInfo.userimg),this.$set(this.formData,"email",this.userInfo.email),this.$set(this.formData,"tel",this.userInfo.tel),this.$set(this.formData,"nickname",typeof this.userInfo.nickname_original!="undefined"?this.userInfo.nickname_original:this.userInfo.nickname),this.$set(this.formData,"profession",this.userInfo.profession),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{if(t){let s=$A.cloneJSON(this.formData);$A.count(s.userimg)==0&&(s.userimg=""),this.loadIng++,this.$store.dispatch("call",{url:"users/editdata",data:s}).then(()=>{$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("getUserInfo").catch(()=>{})}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--})}})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},r={};var u=n(f,m,l,!1,c,null,null,null);function c(t){for(let s in r)this[s]=r[s]}var g=function(){return u.exports}();export{g as default}; +import{I as i}from"./ImgUpload.cbadd034.js";import{m as o,n}from"./app.28437e7d.js";var m=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"setting-item submit"},[e("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(a){a.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u5934\u50CF"),prop:"userimg"}},[e("ImgUpload",{attrs:{num:1,width:512,height:512,whcut:1},model:{value:t.formData.userimg,callback:function(a){t.$set(t.formData,"userimg",a)},expression:"formData.userimg"}}),e("span",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A200x200")))])],1),e("FormItem",{attrs:{label:t.$L("\u90AE\u7BB1"),prop:"email"}},[e("Input",{attrs:{disabled:""},model:{value:t.userInfo.email,callback:function(a){t.$set(t.userInfo,"email",a)},expression:"userInfo.email"}})],1),e("FormItem",{attrs:{label:t.$L("\u7535\u8BDD"),prop:"tel"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD")},model:{value:t.formData.tel,callback:function(a){t.$set(t.formData,"tel",a)},expression:"formData.tel"}})],1),e("FormItem",{attrs:{label:t.$L("\u6635\u79F0"),prop:"nickname"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u6635\u79F0")},model:{value:t.formData.nickname,callback:function(a){t.$set(t.formData,"nickname",a)},expression:"formData.nickname"}})],1),e("FormItem",{attrs:{label:t.$L("\u804C\u4F4D/\u804C\u79F0"),prop:"profession"}},[e("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u804C\u4F4D/\u804C\u79F0")},model:{value:t.formData.profession,callback:function(a){t.$set(t.formData,"profession",a)},expression:"formData.profession"}})],1)],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},l=[];const f={components:{ImgUpload:i},data(){return{loadIng:0,formData:{userimg:"",email:"",tel:"",nickname:"",profession:""},ruleData:{email:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u90AE\u7BB1\u5730\u5740\uFF01"),trigger:"change"}],tel:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD\uFF01"),trigger:"change"},{type:"string",min:6,message:this.$L("\u7535\u8BDD\u957F\u5EA6\u81F3\u5C116\u4F4D\uFF01"),trigger:"change"}],nickname:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u6635\u79F0\uFF01"),trigger:"change"},{type:"string",min:2,message:this.$L("\u6635\u79F0\u957F\u5EA6\u81F3\u5C112\u4F4D\uFF01"),trigger:"change"}]}}},mounted(){this.initData()},computed:{...o(["userInfo","formLabelPosition","formLabelWidth"])},watch:{userInfo(){this.initData()}},methods:{initData(){this.$set(this.formData,"userimg",$A.strExists(this.userInfo.userimg,"/avatar")?"":this.userInfo.userimg),this.$set(this.formData,"email",this.userInfo.email),this.$set(this.formData,"tel",this.userInfo.tel),this.$set(this.formData,"nickname",typeof this.userInfo.nickname_original!="undefined"?this.userInfo.nickname_original:this.userInfo.nickname),this.$set(this.formData,"profession",this.userInfo.profession),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{if(t){let s=$A.cloneJSON(this.formData);$A.count(s.userimg)==0&&(s.userimg=""),this.loadIng++,this.$store.dispatch("call",{url:"users/editdata",data:s}).then(()=>{$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.dispatch("getUserInfo").catch(()=>{})}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.loadIng--})}})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},r={};var u=n(f,m,l,!1,c,null,null,null);function c(t){for(let s in r)this[s]=r[s]}var g=function(){return u.exports}();export{g as default}; diff --git a/public/js/build/preview.245b21bf.js b/public/js/build/preview.245b21bf.js deleted file mode 100644 index 6774e91a5..000000000 --- a/public/js/build/preview.245b21bf.js +++ /dev/null @@ -1 +0,0 @@ -import"./app.3d81bfbf.js";import{p as a}from"./app.3d81bfbf.js";export{a as default}; diff --git a/public/js/build/preview.f1094d4b.js b/public/js/build/preview.f1094d4b.js new file mode 100644 index 000000000..1de60e6c3 --- /dev/null +++ b/public/js/build/preview.f1094d4b.js @@ -0,0 +1 @@ +import"./app.28437e7d.js";import{p as a}from"./app.28437e7d.js";export{a as default}; diff --git a/public/js/build/pro.2f14e151.js b/public/js/build/pro.5eb35683.js similarity index 99% rename from public/js/build/pro.2f14e151.js rename to public/js/build/pro.5eb35683.js index 4aafb7c4f..c6b724afc 100644 --- a/public/js/build/pro.2f14e151.js +++ b/public/js/build/pro.5eb35683.js @@ -1 +1 @@ -import{n as o,l as r,a as l,b as d,s as c}from"./app.3d81bfbf.js";import{U as u}from"./UpdateLog.eacff378.js";var p=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"page-plans no-dark-content"},[a("PageTitle",{attrs:{title:e.appTitle}}),a("div",{staticClass:"top-bg"}),a("div",{staticClass:"top-menu"},[a("div",{staticClass:"header"},[a("div",{staticClass:"z-row"},[a("div",{staticClass:"header-col-sub"},[a("div",{staticClass:"logo",on:{click:e.goHome}})]),a("div",{staticClass:"z-1"},[a("dl",[a("dd",[a("div",{staticClass:"right-info",on:{click:e.goHome}},[e._v(e._s(e.$L("\u8FD4\u56DE\u9996\u9875")))]),e.showItem.updateLog?a("div",{staticClass:"right-info",on:{click:function(s){e.uplogShow=!0}}},[e._v(e._s(e.$L("\u66F4\u65B0\u65E5\u5FD7")))]):e._e(),a("a",{staticClass:"right-info item-center",attrs:{target:"_blank",href:"https://github.com/kuaifan/dootask"}},[a("Icon",{staticClass:"right-icon",attrs:{type:"logo-github"}})],1),a("Dropdown",{staticClass:"right-info",attrs:{trigger:"click"},on:{"on-click":e.onLanguage}},[a("div",{staticClass:"item-center"},[a("Icon",{staticClass:"right-icon",attrs:{type:"md-globe"}}),a("Icon",{attrs:{type:"md-arrow-dropdown"}})],1),a("Dropdown-menu",{attrs:{slot:"list"},slot:"list"},e._l(e.languageList,function(s,n){return a("Dropdown-item",{key:n,attrs:{name:n,selected:e.languageType===n}},[e._v(e._s(s))])}),1)],1)],1)])])])])]),a("div",{staticClass:"banner"},[a("div",{staticClass:"banner-title"},[e._v(" "+e._s(e.$L("\u9009\u62E9\u9002\u5408\u60A8\u7684\u7248\u672C"))+" ")]),a("div",{staticClass:"banner-desc"},[e._v(" "+e._s(e.$L("DooTask \u662F\u65B0\u4E00\u4EE3\u56E2\u961F\u534F\u4F5C\u5E73\u53F0\uFF0C\u60A8\u53EF\u4EE5\u6839\u636E\u60A8\u56E2\u961F\u7684\u9700\u6C42\uFF0C\u9009\u62E9\u5408\u9002\u7684\u4EA7\u54C1\u529F\u80FD\u3002"))+" "),a("br"),e._v(" "+e._s(e.$L("\u4ECE\u73B0\u5728\u5F00\u59CB\uFF0CDooTask \u4E3A\u4E16\u754C\u5404\u5730\u7684\u56E2\u961F\u63D0\u4F9B\u652F\u6301\uFF0C\u63A2\u7D22\u9002\u5408\u60A8\u7684\u9009\u9879\u3002"))+" ")]),a("div",{staticClass:"plans-table"},[a("div",{staticClass:"plans-table-bd plans-table-info"},[a("div",{staticClass:"plans-table-item first"},[a("div",{staticClass:"plans-table-info-th"}),a("div",{staticClass:"plans-table-info-price"},[a("em",[e._v(e._s(e.$L("\u4EF7\u683C")))])]),a("div",{staticClass:"plans-table-info-desc"},[a("em",[e._v(e._s(e.$L("\u6982\u8FF0")))])]),a("div",{staticClass:"plans-table-info-desc"},[a("em",[e._v(e._s(e.$L("\u4EBA\u6570")))])]),a("div",{staticClass:"plans-table-info-desc"},[a("em",[e._v(e._s(e.$L("\u6388\u6743\u65B9\u5F0F")))])]),a("div",{staticClass:"plans-table-info-btn"})]),a("div",{staticClass:"plans-table-item",class:{active:e.active==1},on:{mouseenter:function(s){e.active=1}}},[a("div",{staticClass:"plans-table-info-th"},[e._v(e._s(e.$L("\u666E\u901A\u7248")))]),a("div",{staticClass:"plans-table-info-price"},[a("ImgView",{staticClass:"plans-version",attrs:{src:"images/pro/free.png"}}),e._m(0)],1),a("div",{staticClass:"plans-table-info-desc"},[e._v(e._s(e.$L("\u529F\u80FD\u8F83\u5C11\u53EF\u80FD\u4F1A\u505C\u66F4")))]),a("div",{staticClass:"plans-table-info-desc"},[e._v(e._s(e.$L("\u65E0\u9650\u5236")))]),a("div",{staticClass:"plans-table-info-desc"},[e._v(e._s(e.$L("\u65E0\u987B\u6388\u6743")))]),a("div",{staticClass:"plans-table-info-btn"},[a("div",{staticClass:"plans-info-btns"},[a("a",{staticClass:"github",attrs:{href:"https://github.com/kuaifan/dootask/tree/v0.13.0",target:"_blank"}},[a("Icon",{attrs:{type:"logo-github"}})],1)])])]),a("div",{staticClass:"plans-table-item",class:{active:e.active==2},on:{mouseenter:function(s){e.active=2}}},[a("div",{staticClass:"plans-table-info-th"},[e._v(e._s(e.$L("Pro\u514D\u8D39\u7248")))]),a("div",{staticClass:"plans-table-info-price"},[a("ImgView",{staticClass:"plans-version",attrs:{src:"images/pro/free.png"}}),e._m(1)],1),a("div",{staticClass:"plans-table-info-desc"},[e._v(e._s(e.$L("\u62E5\u6709\u6700\u65B0\u7248\u672C\u6240\u6709\u529F\u80FD")))]),a("div",{staticClass:"plans-table-info-desc"},[e._v(e._s(e.$L("3\u4EBA")))]),a("div",{staticClass:"plans-table-info-desc"},[e._v("License")]),a("div",{staticClass:"plans-table-info-btn"},[a("div",{staticClass:"plans-info-btns"},[a("a",{staticClass:"github",attrs:{href:"https://github.com/kuaifan/dootask/tree/pro",target:"_blank"}},[a("Icon",{attrs:{type:"logo-github"}})],1)])])]),a("div",{staticClass:"plans-table-item",class:{active:e.active==3},on:{mouseenter:function(s){e.active=3}}},[a("div",{staticClass:"plans-table-info-th"},[e._v(e._s(e.$L("Pro\u8BA2\u9605\u7248"))+" "),a("span",[e._v(e._s(e.$L("\u63A8\u8350")))])]),a("div",{staticClass:"plans-table-info-price"},[a("ImgView",{staticClass:"plans-version",attrs:{src:"images/pro/pro.png"}}),e._m(2)],1),a("div",{staticClass:"plans-table-info-desc"},[e._v(e._s(e.$L("\u62E5\u6709\u6700\u65B0\u7248\u672C\u6240\u6709\u529F\u80FD")))]),a("div",{staticClass:"plans-table-info-desc"},[e._v(e._s(e.$L("\u65E0\u9650\u5236")))]),a("div",{staticClass:"plans-table-info-desc"},[e._v("License")]),a("div",{staticClass:"plans-table-info-btn"},[a("div",{staticClass:"plans-info-btns"},[a("a",{staticClass:"github",attrs:{href:"https://github.com/kuaifan/dootask/tree/pro",target:"_blank"}},[a("Icon",{attrs:{type:"logo-github"}})],1),a("ETooltip",{attrs:{content:e.$L("\u5E10\u53F7\uFF1Aadmin\u3001\u5BC6\u7801\uFF1A123456")}},[a("a",{staticClass:"btn mini",attrs:{href:"https://www.dootask.com",target:"_blank"}},[e._v(e._s(e.$L("\u4F53\u9A8CDEMO")))])])],1)])]),a("div",{staticClass:"plans-table-item",class:{active:e.active==4},on:{mouseenter:function(s){e.active=4}}},[a("div",{staticClass:"plans-table-info-th"},[e._v(e._s(e.$L("\u5B9A\u5236\u7248")))]),a("div",{staticClass:"plans-table-info-price"},[a("ImgView",{staticClass:"plans-version",attrs:{src:"images/pro/custom.png"}}),a("div",{staticClass:"currency"},[a("em",{staticClass:"custom"},[e._v(e._s(e.$L("\u81EA\u5B9A\u4E49")))])])],1),a("div",{staticClass:"plans-table-info-desc"},[e._v(e._s(e.$L("\u6839\u636E\u60A8\u7684\u9700\u6C42\u91CF\u8EAB\u5B9A\u5236")))]),a("div",{staticClass:"plans-table-info-desc"},[e._v(e._s(e.$L("\u65E0\u9650\u5236")))]),a("div",{staticClass:"plans-table-info-desc"},[e._v("License")]),a("div",{staticClass:"plans-table-info-btn"},[a("a",{staticClass:"btn btn-contact",attrs:{href:"javascript:void(0)"},on:{click:function(s){e.contactShow=!0}}},[e._v(e._s(e.$L("\u8054\u7CFB\u6211\u4EEC")))])])])]),a("div",{staticClass:"plans-accordion-head",class:{"plans-accordion-close":!e.body1},on:{click:function(s){e.body1=!e.body1}}},[a("div",{staticClass:"first"},[a("span",[e._v(e._s(e.$L("\u5E94\u7528\u652F\u6301")))])]),a("div",{staticClass:"plans-table-item",class:{active:e.active==1},on:{mouseenter:function(s){e.active=1}}}),a("div",{staticClass:"plans-table-item",class:{active:e.active==2},on:{mouseenter:function(s){e.active=2}}}),a("div",{staticClass:"plans-table-item",class:{active:e.active==3},on:{mouseenter:function(s){e.active=3}}}),a("div",{staticClass:"plans-table-item",class:{active:e.active==4},on:{mouseenter:function(s){e.active=4}}}),a("span",[a("Icon",{attrs:{type:"ios-arrow-down"}})],1)]),e.body1?a("div",{staticClass:"plans-accordion-body"},[a("div",{staticClass:"plans-table-bd plans-table-app"},[a("div",{staticClass:"plans-table-item first"},e._l(e.functions,function(s){return a("div",{staticClass:"plans-table-td"},[e._v(e._s(e.$L(s.label)))])}),0),a("div",{staticClass:"plans-table-item",class:{active:e.active==1},on:{mouseenter:function(s){e.active=1}}},e._l(e.functions,function(s){return a("div",{staticClass:"plans-table-td"},[s.supports[0]?a("Icon",{attrs:{type:"md-checkmark"}}):a("span",[e._v(" - ")])],1)}),0),a("div",{staticClass:"plans-table-item",class:{active:e.active==2},on:{mouseenter:function(s){e.active=2}}},e._l(e.functions,function(s){return a("div",{staticClass:"plans-table-td"},[s.supports[1]?a("Icon",{attrs:{type:"md-checkmark"}}):a("span",[e._v(" - ")])],1)}),0),a("div",{staticClass:"plans-table-item",class:{active:e.active==3},on:{mouseenter:function(s){e.active=3}}},e._l(e.functions,function(s){return a("div",{staticClass:"plans-table-td"},[s.supports[2]?a("Icon",{attrs:{type:"md-checkmark"}}):a("span",[e._v(" - ")])],1)}),0),a("div",{staticClass:"plans-table-item",class:{active:e.active==4},on:{mouseenter:function(s){e.active=4}}},e._l(e.functions,function(s){return a("div",{staticClass:"plans-table-td"},[s.supports[3]?a("Icon",{attrs:{type:"md-checkmark"}}):a("span",[e._v(" - ")])],1)}),0)])]):e._e(),a("div",{staticClass:"plans-accordion-head",class:{"plans-accordion-close":!e.body2},on:{click:function(s){e.body2=!e.body2}}},[a("div",{staticClass:"first"},[a("span",[e._v(e._s(e.$L("\u670D\u52A1\u652F\u6301")))])]),a("div",{staticClass:"plans-table-item",class:{active:e.active==1},on:{mouseenter:function(s){e.active=1}}}),a("div",{staticClass:"plans-table-item",class:{active:e.active==2},on:{mouseenter:function(s){e.active=2}}}),a("div",{staticClass:"plans-table-item",class:{active:e.active==3},on:{mouseenter:function(s){e.active=3}}}),a("div",{staticClass:"plans-table-item",class:{active:e.active==4},on:{mouseenter:function(s){e.active=4}}}),a("span",[a("Icon",{attrs:{type:"ios-arrow-down"}})],1)]),e.body2?a("div",{staticClass:"plans-accordion-body"},[a("div",{staticClass:"plans-table-bd plans-table-app plans-table-service"},[a("div",{staticClass:"plans-table-item first"},[e._l(e.services,function(s){return a("div",{staticClass:"plans-table-td"},[e._v(" "+e._s(e.$L(s.label))+" "),s.sublabel?a("span",[e._v(e._s(e.$L(s.sublabel)))]):e._e()])}),a("div",{staticClass:"plans-table-info-btn"})],2),a("div",{staticClass:"plans-table-item",class:{active:e.active==1},on:{mouseenter:function(s){e.active=1}}},[e._l(e.services,function(s){return a("div",{staticClass:"plans-table-td"},[s.supports[0]?a("Icon",{attrs:{type:"md-checkmark"}}):a("span",[e._v(" - ")])],1)}),a("div",{staticClass:"plans-table-info-btn"},[a("div",{staticClass:"plans-info-btns"},[a("a",{staticClass:"github",attrs:{href:"https://github.com/kuaifan/dootask/tree/v0.13.0",target:"_blank"}},[a("Icon",{attrs:{type:"logo-github"}})],1)])])],2),a("div",{staticClass:"plans-table-item",class:{active:e.active==2},on:{mouseenter:function(s){e.active=2}}},[e._l(e.services,function(s){return a("div",{staticClass:"plans-table-td"},[s.supports[1]?a("Icon",{attrs:{type:"md-checkmark"}}):a("span",[e._v(" - ")])],1)}),a("div",{staticClass:"plans-table-info-btn"},[a("div",{staticClass:"plans-info-btns"},[a("a",{staticClass:"github",attrs:{href:"https://github.com/kuaifan/dootask/tree/pro",target:"_blank"}},[a("Icon",{attrs:{type:"logo-github"}})],1)])])],2),a("div",{staticClass:"plans-table-item",class:{active:e.active==3},on:{mouseenter:function(s){e.active=3}}},[e._l(e.services,function(s){return a("div",{staticClass:"plans-table-td"},[s.supports[2]?a("Icon",{attrs:{type:"md-checkmark"}}):a("span",[e._v(" - ")])],1)}),a("div",{staticClass:"plans-table-info-btn"},[a("div",{staticClass:"plans-info-btns"},[a("a",{staticClass:"github",attrs:{href:"https://github.com/kuaifan/dootask/tree/pro",target:"_blank"}},[a("Icon",{attrs:{type:"logo-github"}})],1),a("ETooltip",{attrs:{content:e.$L("\u5E10\u53F7\uFF1Aadmin\u3001\u5BC6\u7801\uFF1A123456")}},[a("a",{staticClass:"btn mini",attrs:{href:"https://www.dootask.com",target:"_blank"}},[e._v(e._s(e.$L("\u4F53\u9A8CDEMO")))])])],1)])],2),a("div",{staticClass:"plans-table-item",class:{active:e.active==4},on:{mouseenter:function(s){e.active=4}}},[e._l(e.services,function(s){return a("div",{staticClass:"plans-table-td"},[s.supports[3]?a("Icon",{attrs:{type:"md-checkmark"}}):a("span",[e._v(" - ")])],1)}),a("div",{staticClass:"plans-table-info-btn"},[a("a",{staticClass:"btn btn-contact",attrs:{href:"javascript:void(0)"},on:{click:function(s){e.contactShow=!0}}},[e._v(e._s(e.$L("\u8054\u7CFB\u6211\u4EEC")))])])],2)])]):e._e()])]),a("div",{staticClass:"container-fluid"},[a("div",{staticClass:"fluid-info fluid-info-1"},[a("div",{staticClass:"fluid-info-item"},[a("div",{staticClass:"info-title"},[e._v(" "+e._s(e.$L("\u591A\u79CD\u90E8\u7F72\u65B9\u5F0F\u968F\u5FC3\u9009\u62E9"))+" ")]),a("div",{staticClass:"info-function"},[a("div",{staticClass:"func-item"},[a("div",{staticClass:"image"},[a("ImgView",{attrs:{src:"images/pro/1.svg"}})],1),a("div",{staticClass:"func-desc"},[a("div",{staticClass:"desc-title"},[e._v(" "+e._s(e.$L("\u516C\u6709\u4E91"))+" ")]),a("div",{staticClass:"desc-text"},[e._v(" "+e._s(e.$L("\u65E0\u9700\u672C\u5730\u73AF\u5883\u51C6\u5907\uFF0C\u6309\u9700\u8D2D\u4E70\u5E10\u6237\uFF0C\u4E13\u4E1A\u56E2\u961F\u63D0\u4F9B\u8FD0\u7EF4\u4FDD\u969C\u670D\u52A1\uFF0C\u4E24\u5468\u4E00\u6B21\u7684\u7248\u672C\u8FED\u4EE3"))+" ")])])]),a("div",{staticClass:"func-item"},[a("div",{staticClass:"image"},[a("ImgView",{attrs:{src:"images/pro/2.svg"}})],1),a("div",{staticClass:"func-desc"},[a("div",{staticClass:"desc-title"},[e._v(" "+e._s(e.$L("\u79C1\u6709\u4E91"))+" ")]),a("div",{staticClass:"desc-text"},[e._v(" "+e._s(e.$L("\u4F01\u4E1A\u9694\u79BB\u7684\u4E91\u670D\u52A1\u5668\u73AF\u5883\uFF0C\u9AD8\u53EF\u7528\u6027\uFF0C\u7F51\u7EDC\u53CA\u5E94\u7528\u5C42\u5B8C\u6574\u9694\u79BB\uFF0C\u6570\u636E\u9AD8\u5EA6\u81EA\u4E3B\u53EF\u63A7"))+" ")])])]),a("div",{staticClass:"func-item"},[a("div",{staticClass:"image image-80"},[a("ImgView",{attrs:{src:"images/pro/3.svg"}})],1),a("div",{staticClass:"func-desc"},[a("div",{staticClass:"desc-title"},[e._v(" "+e._s(e.$L("\u672C\u5730\u670D\u52A1\u5668"))+" ")]),a("div",{staticClass:"desc-text"},[e._v(" "+e._s(e.$L("\u57FA\u4E8E Docker \u7684\u5BB9\u5668\u5316\u90E8\u7F72\uFF0C\u652F\u6301\u9AD8\u53EF\u7528\u96C6\u7FA4\uFF0C\u5FEB\u901F\u5F39\u6027\u6269\u5C55\uFF0C\u6570\u636E\u9AD8\u5EA6\u81EA\u4E3B\u53EF\u63A7"))+" ")])])])])])]),a("div",{staticClass:"fluid-info"},[a("div",{staticClass:"fluid-info-item"},[a("div",{staticClass:"info-title"},[e._v(" "+e._s(e.$L("\u5B8C\u5584\u7684\u670D\u52A1\u652F\u6301\u4F53\u7CFB"))+" ")]),a("div",{staticClass:"info-function"},[a("div",{staticClass:"func-item"},[a("div",{staticClass:"image"},[a("ImgView",{attrs:{src:"images/pro/4.svg"}})],1),a("div",{staticClass:"func-desc"},[a("div",{staticClass:"desc-title"},[e._v(" "+e._s(e.$L("1:1\u5BA2\u6237\u6210\u529F\u987E\u95EE"))+" ")]),a("div",{staticClass:"desc-text"},[e._v(" "+e._s(e.$L("\u8D44\u6DF1\u5BA2\u6237\u6210\u529F\u987E\u95EE\u5BF9\u4F01\u4E1A\u8FDB\u884C\u8C03\u7814\u3001\u6C9F\u901A\u9700\u6C42\u3001\u5236\u5B9A\u4E2A\u6027\u5316\u7684\u89E3\u51B3\u65B9\u6848\uFF0C\u5E2E\u52A9\u4F01\u4E1A\u843D\u5730"))+" ")])])]),a("div",{staticClass:"func-item"},[a("div",{staticClass:"image image-80"},[a("ImgView",{attrs:{src:"images/pro/5.svg"}})],1),a("div",{staticClass:"func-desc"},[a("div",{staticClass:"desc-title"},[e._v(" "+e._s(e.$L("\u5B8C\u5584\u7684\u57F9\u8BAD\u4F53\u7CFB"))+" ")]),a("div",{staticClass:"desc-text"},[e._v(" "+e._s(e.$L("\u6839\u636E\u9700\u6C42\u5B9A\u5236\u57F9\u8BAD\u5185\u5BB9\uFF0C\u4E3A\u4E0D\u540C\u89D2\u8272\u7ED9\u51FA\u4E13\u5C5E\u57F9\u8BAD\u65B9\u6848\uFF0C\u7EBF\u4E0A\u7EBF\u4E0B\u57F9\u8BAD\u6E20\u9053\u5168\u8986\u76D6"))+" ")])])]),a("div",{staticClass:"func-item"},[a("div",{staticClass:"image"},[a("ImgView",{attrs:{src:"images/pro/6.svg"}})],1),a("div",{staticClass:"func-desc"},[a("div",{staticClass:"desc-title"},[e._v(" "+e._s(e.$L("\u5168\u9762\u7684\u652F\u6301\u670D\u52A1"))+" ")]),a("div",{staticClass:"desc-text"},[e._v(" "+e._s(e.$L("\u591A\u79CD\u652F\u6301\u670D\u52A1\u8BA9\u4F01\u4E1A\u65E0\u540E\u987E\u4E4B\u5FE7\uFF0C7x24 \u7EBF\u4E0A\u652F\u6301\u3001\u5728\u7EBF\u5DE5\u5355\u3001\u4E2D\u82F1\u6587\u90AE\u4EF6\u652F\u6301\u3001\u4E0A\u95E8\u652F\u6301"))+" ")])])])])])]),a("div",{staticClass:"fluid-info fluid-info-3"},[a("div",{staticClass:"fluid-info-item"},[a("div",{staticClass:"info-title"},[e._v(" "+e._s(e.$L("\u591A\u91CD\u5B89\u5168\u7B56\u7565\u4FDD\u62A4\u6570\u636E"))+" ")]),a("div",{staticClass:"info-function"},[a("div",{staticClass:"func-item"},[a("div",{staticClass:"image"},[a("ImgView",{attrs:{src:"images/pro/7.svg"}})],1),a("div",{staticClass:"func-desc"},[a("div",{staticClass:"desc-title"},[e._v(" "+e._s(e.$L("\u9AD8\u53EF\u7528\u6027\u4FDD\u8BC1"))+" ")]),a("div",{staticClass:"desc-text"},[e._v(" "+e._s(e.$L("\u591A\u91CD\u65B9\u5F0F\u4FDD\u8BC1\u6570\u636E\u4E0D\u4E22\u5931\uFF0C\u9AD8\u53EF\u7528\u6545\u969C\u8F6C\u79FB\uFF0C\u5F02\u5730\u5BB9\u707E\u5907\u4EFD\uFF0C99.99%\u53EF\u7528\u6027\u4FDD\u8BC1"))+" ")])])]),a("div",{staticClass:"func-item"},[a("div",{staticClass:"image image-80"},[a("ImgView",{attrs:{src:"images/pro/8.svg"}})],1),a("div",{staticClass:"func-desc"},[a("div",{staticClass:"desc-title"},[e._v(" "+e._s(e.$L("\u6570\u636E\u52A0\u5BC6"))+" ")]),a("div",{staticClass:"desc-text"},[e._v(" "+e._s(e.$L("\u591A\u91CD\u65B9\u5F0F\u4FDD\u8BC1\u6570\u636E\u4E0D\u6CC4\u6F0F\uFF0C\u57FA\u4E8E TLS \u7684\u6570\u636E\u52A0\u5BC6\u4F20\u8F93\uFF0CDDOS \u9632\u5FA1\u548C\u5165\u4FB5\u68C0\u6D4B"))+" ")])])]),a("div",{staticClass:"func-item"},[a("div",{staticClass:"image image-50"},[a("ImgView",{attrs:{src:"images/pro/9.svg"}})],1),a("div",{staticClass:"func-desc"},[a("div",{staticClass:"desc-title"},[e._v(" "+e._s(e.$L("\u5E10\u6237\u5B89\u5168"))+" ")]),a("div",{staticClass:"desc-text"},[e._v(" "+e._s(e.$L("\u591A\u91CD\u65B9\u5F0F\u4FDD\u8BC1\u5E10\u6237\u5B89\u5168\uFF0C\u8FDC\u7A0B\u4F1A\u8BDD\u63A7\u5236\uFF0C\u8BBE\u5907\u7ED1\u5B9A\uFF0C\u5B89\u5168\u65E5\u5FD7\u4EE5\u53CA\u624B\u52BF\u5BC6\u7801"))+" ")])])])])])])]),e.systemConfig.home_footer?a("div",{staticClass:"contact-footer"},[a("span",{domProps:{innerHTML:e._s(e.systemConfig.home_footer)}})]):e._e(),a("Modal",{attrs:{title:e.$L("\u8054\u7CFB\u6211\u4EEC"),width:"430"},model:{value:e.contactShow,callback:function(s){e.contactShow=s},expression:"contactShow"}},[a("p",[e._v(e._s(e.$L("\u5982\u6709\u4EFB\u4F55\u95EE\u9898\uFF0C\u6B22\u8FCE\u4F7F\u7528\u90AE\u7BB1\u4E0E\u6211\u4EEC\u8054\u7CFB\u3002")))]),a("p",[e._v(e._s(e.$L("\u90AE\u7BB1\u5730\u5740\uFF1Aaipaw@live.cn")))]),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"primary"},on:{click:function(s){e.contactShow=!1}}},[e._v(e._s(e.$L("\u786E\u5B9A")))])],1)]),a("UpdateLog",{attrs:{"update-log":e.showItem.updateLog,"update-ver":e.showItem.updateVer},model:{value:e.uplogShow,callback:function(s){e.uplogShow=s},expression:"uplogShow"}})],1)},h=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"currency"},[a("em",[e._v("0")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"currency"},[a("em",[e._v("0")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"currency"},[a("em",[e._v("18800")])])}];const v={components:{UpdateLog:u},data(){return{languageList:r,languageType:l,active:3,body1:!0,body2:!0,contactShow:!1,systemConfig:{},showItem:{pro:!1,github:"",updateLog:"",updateVer:""},uplogShow:!1,functions:[{label:"\u9879\u76EE\u7BA1\u7406",supports:[1,1,1,1]},{label:"\u6587\u4EF6\u7BA1\u7406",supports:[1,1,1,1]},{label:"\u56E2\u961F\u7BA1\u7406",supports:[1,1,1,1]},{label:"\u5373\u65F6\u804A\u5929",supports:[1,1,1,1]},{label:"\u5B50\u4EFB\u52A1",supports:[1,1,1,1]},{label:"\u56FD\u9645\u5316",supports:[1,1,1,1]},{label:"\u7518\u7279\u56FE",supports:[1,1,1,1]},{label:"\u4EFB\u52A1\u52A8\u6001",supports:[1,1,1,1]},{label:"\u5BFC\u51FA\u4EFB\u52A1",supports:[1,1,1,1]},{label:"\u65E5\u7A0B",supports:[1,1,1,1]},{label:"\u5468\u62A5/\u65E5\u62A5",supports:[1,1,1,1]},{label:"\u521B\u5EFA\u7FA4\u804A",supports:[1,1,1,1]},{label:"\u9879\u76EE\u7FA4\u804A",supports:[1,1,1,1]},{label:"\u9879\u76EE\u641C\u7D22",supports:[1,1,1,1]},{label:"\u4EFB\u52A1\u7C7B\u578B",supports:[1,1,1,1]},{label:"\u6587\u4EF6\u641C\u7D22",supports:[1,1,1,1]},{label:"\u4E8C\u7EF4\u7801\u767B\u5F55",supports:[0,1,1,1]},{label:"\u804A\u5929\u673A\u5668\u4EBA",supports:[0,1,1,1]},{label:"\u6D88\u606F\u514D\u6253\u6270",supports:[0,1,1,1]},{label:"\u6D88\u606F\u6807\u6CE8",supports:[0,1,1,1]},{label:"\u53D1\u9001\u8BED\u97F3\u6D88\u606F",supports:[0,1,1,1]},{label:"\u4F1A\u8BAE\u529F\u80FD",supports:[0,1,1,1]},{label:"\u90E8\u95E8\u529F\u80FD",supports:[0,1,1,1]},{label:"\u7B7E\u5230\u529F\u80FD",supports:[0,1,1,1]},{label:"LDAP\u767B\u5F55",supports:[0,1,1,1]},{label:"\u4E34\u65F6\u5E10\u53F7",supports:[0,1,1,1]},{label:"\u533F\u540D\u6D88\u606F",supports:[0,1,1,1]},{label:"\u56DE\u590D\u6D88\u606F",supports:[0,1,1,1]},{label:"\u8868\u60C5\u56DE\u590D",supports:[0,1,1,1]},{label:"\u641C\u7D22\u6D88\u606F",supports:[0,1,1,1]},{label:"\u4EFB\u52A1\u91CD\u590D\u5468\u671F",supports:[0,1,1,1]},{label:"Mac/PC\u5BA2\u6237\u7AEF",supports:[0,1,1,1]},{label:"iOS/Android\u5BA2\u6237\u7AEF",supports:[0,1,1,1]}],services:[{label:"\u81EA\u52A9\u652F\u6301",sublabel:"\uFF08Issues/\u793E\u7FA4\uFF09",supports:[1,1,1,1]},{label:"\u652F\u6301\u79C1\u6709\u5316\u90E8\u7F72",supports:[1,1,1,1]},{label:"\u7ED1\u5B9A\u81EA\u6709\u57DF\u540D",supports:[1,1,1,1]},{label:"\u4E8C\u6B21\u5F00\u53D1",supports:[1,1,1,1]},{label:"\u4E8C\u6B21\u5F00\u53D1\u54A8\u8BE2\u670D\u52A1",supports:[0,0,1,1]},{label:"\u5141\u8BB8\u9690\u85CF\u6216\u5B9A\u5236\u4EA7\u54C1\u540D",supports:[0,0,1,1]},{label:"\u5728\u7EBF\u54A8\u8BE2\u652F\u6301",supports:[0,0,1,1]},{label:"\u7535\u8BDD\u54A8\u8BE2\u652F\u6301",supports:[0,0,1,1]},{label:"\u4E2D\u82F1\u6587\u90AE\u4EF6\u652F\u6301",supports:[0,0,1,1]},{label:"\u4E00\u5BF9\u4E00\u5BA2\u6237\u987E\u95EE",supports:[0,0,1,1]},{label:"\u4EA7\u54C1\u57F9\u8BAD",supports:[0,0,1,1]},{label:"\u4E0A\u95E8\u652F\u6301",supports:[0,0,1,1]},{label:"\u4E13\u5C5E\u5BA2\u6237\u6210\u529F\u7ECF\u7406",supports:[0,0,1,1]},{label:"\u514D\u8D39\u63D0\u4F9B\u4E00\u6B21\u5185\u8BAD",supports:[0,0,1,1]},{label:"\u660E\u661F\u5BA2\u6237\u6848\u4F8B",supports:[0,0,1,1]}]}},created(){d([{key:"\u591A\u79CD\u652F\u6301\u670D\u52A1\u8BA9\u4F01\u4E1A\u65E0\u540E\u987E\u4E4B\u5FE7\uFF0C7x24 \u7EBF\u4E0A\u652F\u6301\u3001\u5728\u7EBF\u5DE5\u5355\u3001\u4E2D\u82F1\u6587\u90AE\u4EF6\u652F\u6301\u3001\u4E0A\u95E8\u652F\u6301",zh:"","zh-CHT":"\u591A\u7A2E\u652F\u6301\u670D\u52D9\u8B93\u4F01\u696D\u7121\u5F8C\u9867\u4E4B\u6182\uFF0C7x24 \u7DDA\u4E0A\u652F\u6301\u3001\u5728\u7DDA\u5DE5\u55AE\u3001\u4E2D\u82F1\u6587\u90F5\u4EF6\u652F\u6301\u3001\u4E0A\u9580\u652F\u6301",en:"A variety of support services let the enterprise no worries, 7x24 online support, online work order, English and Chinese email support, door-to-door support",ko:"\uB2E4\uC591\uD55C \uC9C0\uC6D0 \uC11C\uBE44\uC2A4, 7x24 \uC628\uB77C\uC778 \uC9C0\uC6D0, \uC628\uB77C\uC778 \uC5C5\uBB34 \uC8FC\uBB38, \uC911\uC601\uBB38 \uC774\uBA54\uC77C \uC9C0\uC6D0, \uBC29\uBB38 \uC9C0\uC6D0 \uB4F1 \uAE30\uC5C5\uC774 \uADFC\uC2EC\uAC71\uC815\uC774 \uC5C6\uB3C4\uB85D \uD569\uB2C8\uB2E4",ja:"7x24\u30AA\u30F3\u30E9\u30A4\u30F3\u30B5\u30DD\u30FC\u30C8\u3001\u30AA\u30F3\u30E9\u30A4\u30F3\u30DE\u30CB\u30E5\u30A2\u30EB\u3001\u4E2D\u56FD\u8A9E\u3068\u82F1\u8A9E\u306E\u30E1\u30FC\u30EB\u30B5\u30DD\u30FC\u30C8\u3001\u8A2A\u554F\u30B5\u30DD\u30FC\u30C8\u306A\u3069\u3001\u69D8\u3005\u306A\u30B5\u30DD\u30FC\u30C8\u30B5\u30FC\u30D3\u30B9\u304C\u3042\u308A\u307E\u3059\u3002",de:"Eine reihe Von unterst\xFCtzungsdiensten hat dieses unternehmen unerreichbar gemacht: online-unterst\xFCtzung auf der 7x24 online-seite, online-unterst\xFCtzung, chinesische und englische mails sowie unterst\xFCtzung zu hause",fr:"Une vari\xE9t\xE9 de services de soutien pour les entreprises sans soucis, 7x24 support en ligne, ordres de travail en ligne, chinois et anglais soutien par courrier \xE9lectronique, soutien \xE0 la porte",id:"Berbagai layanan dukungan telah membantu usaha mereka"},{key:"\u65E0\u9700\u672C\u5730\u73AF\u5883\u51C6\u5907\uFF0C\u6309\u9700\u8D2D\u4E70\u5E10\u6237\uFF0C\u4E13\u4E1A\u56E2\u961F\u63D0\u4F9B\u8FD0\u7EF4\u4FDD\u969C\u670D\u52A1\uFF0C\u4E24\u5468\u4E00\u6B21\u7684\u7248\u672C\u8FED\u4EE3",zh:"","zh-CHT":"\u7121\u9700\u672C\u5730\u74B0\u5883\u6E96\u5099\uFF0C\u6309\u9700\u8CFC\u8CB7\u5E33\u6236\uFF0C\u5C08\u696D\u5718\u968A\u63D0\u4F9B\u904B\u7DAD\u4FDD\u969C\u670D\u52D9\uFF0C\u5169\u9031\u4E00\u6B21\u7684\u7248\u672C\u8FED\u4EE3",en:"No need for local environment preparation, purchase accounts on demand, professional team to provide operation and maintenance services, biweekly version iteration",ko:"\uC9C0\uC5ED \uD658\uACBD\uC5D0 \uB300\uD55C \uC900\uBE44 \uC5C6\uC774 \uC8FC\uBB38\uD615 \uACC4\uC815\uC744 \uAD6C\uC785\uD558\uBA70 \uC804\uBB38 \uD300\uC5D0 \uC758\uD574 \uC6B4\uC601 \uAD00\uB9AC \uC11C\uBE44\uC2A4\uAC00 \uC81C\uACF5\uB418\uBA70 2\uC8FC\uC5D0 \uD55C \uBC88\uC529 \uBC84\uC804\uC744 \uBC18\uBCF5\uD569\uB2C8\uB2E4",ja:"\u30ED\u30FC\u30AB\u30EB\u74B0\u5883\u306E\u6E96\u5099\u306F\u5FC5\u8981\u3042\u308A\u307E\u305B\u3093\u3001\u30AA\u30F3\u30C7\u30DE\u30F3\u30C9\u3067\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u8CFC\u5165\u3001\u5C02\u9580\u30C1\u30FC\u30E0\u306B\u3088\u308B\u904B\u7528\u30FB\u4FDD\u5B88\u4FDD\u8A3C\u30B5\u30FC\u30D3\u30B9\u30012\u9031\u9593\u306B1\u56DE\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u53CD\u5FA9",de:"Fachgruppen liefern personensicherungsdienste, ohne dass die \xF6rtlichen gegebenheiten ber\xFCcksichtigt werden m\xFCssen, und liefern zweiw\xF6chige versionen Von isps",fr:"Aucune pr\xE9paration de l\u2019environnement local, achat de compte \xE0 la demande, service de garantie o&e par une \xE9quipe sp\xE9cialis\xE9e, it\xE9ration de la version bi-hebdomadaire",id:"Tak perlu persiapan lingkungan lokal, membeli rekening yang diperlukan, dan tim profesional menyediakan layanan pengamanan transportasi, dan iterasi versi dua minggu"},{key:"\u8D44\u6DF1\u5BA2\u6237\u6210\u529F\u987E\u95EE\u5BF9\u4F01\u4E1A\u8FDB\u884C\u8C03\u7814\u3001\u6C9F\u901A\u9700\u6C42\u3001\u5236\u5B9A\u4E2A\u6027\u5316\u7684\u89E3\u51B3\u65B9\u6848\uFF0C\u5E2E\u52A9\u4F01\u4E1A\u843D\u5730",zh:"","zh-CHT":"\u8CC7\u6DF1\u5BA2\u6236\u6210\u529F\u9867\u554F\u5C0D\u4F01\u696D\u9032\u884C\u8ABF\u7814\u3001\u6E9D\u901A\u9700\u6C42\u3001\u5236\u5B9A\u500B\u6027\u5316\u7684\u89E3\u6C7A\u65B9\u6848\uFF0C\u5E6B\u52A9\u4F01\u696D\u843D\u5730",en:"Senior customer success consultant to the enterprise research, communication needs, develop personalized solutions, to help the enterprise landing",ko:"\uBCA0\uD14C\uB791 \uACE0\uAC1D \uC131\uACF5 \uACE0\uBB38\uC740 \uAE30\uC5C5\uC5D0 \uB300\uD574 \uC870\uC0AC \uC5F0\uAD6C\uB97C \uC9C4\uD589\uD558\uACE0, \uC694\uAD6C\uB97C \uC18C\uD1B5\uD558\uBA70, \uAC1C\uC131\uD654\uB41C \uD574\uACB0 \uBC29\uC548\uC744 \uC81C\uC815\uD558\uC5EC \uAE30\uC5C5\uC758 \uC815\uCC29\uC744 \uB3D5\uC2B5\uB2C8\uB2E4",ja:"\u30D9\u30C6\u30E9\u30F3\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u6210\u529F\u30B3\u30F3\u30B5\u30EB\u30BF\u30F3\u30C8\u306F\u3001\u4F01\u696D\u306E\u30CB\u30FC\u30BA\u3092\u8ABF\u67FB\u3057\u3001\u30B3\u30DF\u30E5\u30CB\u30B1\u30FC\u30B7\u30E7\u30F3\u3057\u3001\u7B87\u6027\u5316\u3055\u308C\u305F\u89E3\u6C7A\u6848\u3092\u4F5C\u6210\u3057\u3066\u3001\u4F01\u696D\u306E\u5B9A\u7740\u3092\u652F\u63F4\u3057\u307E\u3059\u3002",de:"Erfahrene berater berater recherchieren, kommunizieren und individuelle l\xF6sungen erarbeiten, die das unternehmen zum scheitern bringen",fr:"Le conseiller senior de succ\xE8s de client effectue des recherches sur les entreprises, communique les besoins, \xE9labore des solutions personnalis\xE9es, aide les entreprises \xE0 atterrir",id:"Konsultan senior yang berhasil melakukan riset, kebutuhan komunikasi, dan resolusi pribadi untuk membantu bisnis ini mendarat"},{key:"\u4F01\u4E1A\u9694\u79BB\u7684\u4E91\u670D\u52A1\u5668\u73AF\u5883\uFF0C\u9AD8\u53EF\u7528\u6027\uFF0C\u7F51\u7EDC\u53CA\u5E94\u7528\u5C42\u5B8C\u6574\u9694\u79BB\uFF0C\u6570\u636E\u9AD8\u5EA6\u81EA\u4E3B\u53EF\u63A7",zh:"","zh-CHT":"\u4F01\u696D\u9694\u96E2\u7684\u96F2\u670D\u52D9\u5668\u74B0\u5883\uFF0C\u9AD8\u53EF\u7528\u6027\uFF0C\u7DB2\u7D61\u53CA\u61C9\u7528\u5C64\u5B8C\u6574\u9694\u96E2\uFF0C\u6578\u64DA\u9AD8\u5EA6\u81EA\u4E3B\u53EF\u63A7",en:"Enterprise isolated cloud server environment, high availability, complete isolation of network and application layer, highly autonomous and controllable data",ko:"\uAE30\uC5C5\uC5D0\uC11C \uACA9\uB9AC\uB41C \uD074\uB77C\uC6B0\uB4DC \uC11C\uBC84 \uD658\uACBD\uC740 \uAC00\uC6A9\uC131\uC774 \uB192\uC544 \uB124\uD2B8\uC6CC\uD06C\uC640 \uC560\uD50C\uB9AC\uCF00\uC774\uC158 \uACC4\uCE35\uC774 \uC644\uC804\uD788 \uACA9\uB9AC\uB418\uACE0 \uB370\uC774\uD130\uAC00 \uACE0\uB3C4\uB85C \uC790\uC728\uC801\uC774\uACE0 \uC81C\uC5B4\uAC00 \uAC00\uB2A5\uD558\uB2E4",ja:"\u4F01\u696D\u304B\u3089\u5206\u96E2\u3055\u308C\u305F\u30AF\u30E9\u30A6\u30C9\u30B5\u30FC\u30D0\u30FC\u74B0\u5883\u3001\u9AD8\u53EF\u7528\u6027\u3001\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u304A\u3088\u3073\u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u5C64\u306E\u5B8C\u5168\u306A\u5206\u96E2\u3001\u30C7\u30FC\u30BF\u306E\u9AD8\u5EA6\u306A\u81EA\u5F8B\u5236\u5FA1\u304C\u53EF\u80FD\u3067\u3059\u3002",de:"Cloud-server-umfeld zur unternehmensquaranting, hohe verf\xFCgbarkeit, vollst\xE4ndige cyber-isolation und vorhersehbare daten",fr:"Environnement de serveur cloud isol\xE9 pour les entreprises, haute disponibilit\xE9, isolation compl\xE8te des couches r\xE9seau et application, haute autonomie et contr\xF4le des donn\xE9es",id:"Lingkungan server awan yang terisolasi dari bisnis, sangat tersedia, jaringan dan lapisan aplikasi aman, dan data sangat otonom"},{key:"\u6839\u636E\u9700\u6C42\u5B9A\u5236\u57F9\u8BAD\u5185\u5BB9\uFF0C\u4E3A\u4E0D\u540C\u89D2\u8272\u7ED9\u51FA\u4E13\u5C5E\u57F9\u8BAD\u65B9\u6848\uFF0C\u7EBF\u4E0A\u7EBF\u4E0B\u57F9\u8BAD\u6E20\u9053\u5168\u8986\u76D6",zh:"","zh-CHT":"\u6839\u64DA\u9700\u6C42\u5B9A\u88FD\u57F9\u8A13\u5167\u5BB9\uFF0C\u7232\u4E0D\u540C\u89D2\u8272\u7D66\u51FA\u5C08\u5C6C\u57F9\u8A13\u65B9\u6848\uFF0C\u7DDA\u4E0A\u7DDA\u4E0B\u57F9\u8A13\u6E20\u9053\u5168\u8986\u84CB",en:"Training content is customized according to the needs, and exclusive training programs are provided for different roles, with full coverage of online and offline training channels",ko:"\uC218\uC694\uC5D0 \uB530\uB77C \uD6C8\uB828\uB0B4\uC6A9\uC744 \uB9DE\uCDA4\uD654\uD558\uACE0 \uBD80\uB3D9\uD55C \uC5ED\uD560\uC744 \uC704\uD574 \uC804\uC18D\uC801\uC778 \uAD50\uC721\uBC29\uC548\uC744 \uB0B4\uB193\uC73C\uBA70 \uC628\uB77C\uC778\uACFC \uC624\uD504\uB77C\uC778\uC758 \uAD50\uC721\uACBD\uB85C\uB97C \uC804\uBA74\uC801\uC73C\uB85C \uCEE4\uBC84\uD55C\uB2E4",ja:"\u30CB\u30FC\u30BA\u306B\u5408\u308F\u305B\u3066\u30C8\u30EC\u30FC\u30CB\u30F3\u30B0\u5185\u5BB9\u3092\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA\u3057\u3001\u305D\u308C\u305E\u308C\u306E\u30AD\u30E3\u30E9\u30AF\u30BF\u30FC\u306B\u5408\u3063\u305F\u30C8\u30EC\u30FC\u30CB\u30F3\u30B0\u30D7\u30E9\u30F3\u3092\u63D0\u4F9B\u3057\u3066\u3044\u307E\u3059\u3002\u30AA\u30F3\u30E9\u30A4\u30F3\u3068\u30AA\u30D5\u30E9\u30A4\u30F3\u306E\u30C8\u30EC\u30FC\u30CB\u30F3\u30B0\u3092\u3059\u3079\u3066\u30AB\u30D0\u30FC\u3057\u3066\u3044\u307E\u3059\u3002",de:"Weicht man Von den anforderungen ab, werden spezielle ausbildungsprogramme f\xFCr die unterschiedlichen rollen bereitgestellt und \xFCber alle online-kan\xE4le bereitgestellt",fr:"Personnaliser le contenu de la formation en fonction de la demande, donner des programmes de formation exclusifs pour diff\xE9rents r\xF4les, couverture compl\xE8te des canaux de formation en ligne et hors ligne",id:"Program pelatihan eksklusif untuk berbagai peran diberikan, sesuai dengan kebutuhan, dan saluran pelatihan via telepon yang disesuaikan"},{key:"DooTask \u662F\u65B0\u4E00\u4EE3\u56E2\u961F\u534F\u4F5C\u5E73\u53F0\uFF0C\u60A8\u53EF\u4EE5\u6839\u636E\u60A8\u56E2\u961F\u7684\u9700\u6C42\uFF0C\u9009\u62E9\u5408\u9002\u7684\u4EA7\u54C1\u529F\u80FD\u3002",zh:"","zh-CHT":"DooTask \u662F\u65B0\u4E00\u4EE3\u5718\u968A\u5354\u4F5C\u5E73\u81FA\uFF0C\u60A8\u53EF\u4EE5\u6839\u64DA\u60A8\u5718\u968A\u7684\u9700\u6C42\uFF0C\u9078\u64C7\u5408\u9069\u7684\u7522\u54C1\u529F\u80FD\u3002",en:"DooTask is a next-generation team collaboration platform that allows you to select the right product features for your team's needs.",ko:"'\uB450\uD0DC\uC2A4\uD06C'\uB294 \uD300\uC758 \uD544\uC694\uC5D0 \uB530\uB77C \uC81C\uD488\uC5D0 \uB9DE\uB294 \uAE30\uB2A5\uC744 \uC120\uD0DD\uD560 \uC218 \uC788\uB294 \uCC28\uC138\uB300 \uD300\uC6CC\uD06C \uD50C\uB7AB\uD3FC\uC785\uB2C8\uB2E4.",ja:"DooTask\u306F\u6B21\u4E16\u4EE3\u306E\u30C1\u30FC\u30E0\u30EF\u30FC\u30AF\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u3067\u3059\u3002\u30C1\u30FC\u30E0\u306E\u30CB\u30FC\u30BA\u306B\u5FDC\u3058\u3066\u3001\u9069\u5207\u306A\u88FD\u54C1\u6A5F\u80FD\u3092\u9078\u3076\u3053\u3068\u304C\u3067\u304D\u307E\u3059\u3002",de:"Die dingsda ist die h\xE4rtere arbeitsplatte, mit der sie die produktfunktion nach den bed\xFCrfnissen ihrer gruppe ausw\xE4hlen k\xF6nnen.",fr:"DooTask est une plateforme de collaboration d\u2019\xE9quipe de nouvelle g\xE9n\xE9ration. En fonction des besoins de votre \xE9quipe, vous pouvez choisir les fonctionnalit\xE9s de produit appropri\xE9es.",id:"Penugasan adalah platform kerjasama tim generasi baru. Anda dapat memilih fitur produk yang sesuai sesuai kebutuhan tim anda."},{key:"\u57FA\u4E8E Docker \u7684\u5BB9\u5668\u5316\u90E8\u7F72\uFF0C\u652F\u6301\u9AD8\u53EF\u7528\u96C6\u7FA4\uFF0C\u5FEB\u901F\u5F39\u6027\u6269\u5C55\uFF0C\u6570\u636E\u9AD8\u5EA6\u81EA\u4E3B\u53EF\u63A7",zh:"","zh-CHT":"\u57FA\u65BC Docker \u7684\u5BB9\u5668\u5316\u90E8\u7F72\uFF0C\u652F\u6301\u9AD8\u53EF\u7528\u96C6\u7FA3\uFF0C\u5FEB\u901F\u5F48\u6027\u64F4\u5C55\uFF0C\u6578\u64DA\u9AD8\u5EA6\u81EA\u4E3B\u53EF\u63A7",en:"Containerized deployment based on Docker supports high availability cluster, fast and elastic expansion, and highly autonomous and controllable data",ko:"Docker \uAE30\uBC18\uC758 \uCEE8\uD14C\uC774\uB108\uD654 \uBC30\uD3EC\uB97C \uD1B5\uD574 \uACE0\uAC00\uC6A9\uC131 \uD074\uB7EC\uC2A4\uD130, \uBE60\uB978 \uD0C4\uB825\uC131, \uB192\uC740 \uC790\uC728\uC801 \uB370\uC774\uD130 \uC81C\uC5B4\uAC00 \uAC00\uB2A5\uD558\uB2E4",ja:"Docker\u30D9\u30FC\u30B9\u306E\u30B3\u30F3\u30C6\u30CA\u5316\u914D\u7F6E\u3001\u9AD8\u5229\u7528\u53EF\u80FD\u306A\u30AF\u30E9\u30B9\u30BF\u306E\u30B5\u30DD\u30FC\u30C8\u3001\u8FC5\u901F\u3067\u67D4\u8EDF\u306A\u62E1\u5F35\u3001\u9AD8\u5EA6\u306B\u81EA\u5F8B\u7684\u306A\u30C7\u30FC\u30BF\u5236\u5FA1\u304C\u53EF\u80FD\u3067\u3059\u3002",de:"Basierend auf dockers containern ist es m\xF6glich, starke agglomerationen zu bilden, die eine hohe elastizit\xE4t und kontrollierbare daten erm\xF6glichen",fr:"D\xE9ploiement container bas\xE9 sur Docker, prise en charge de clusters hautement disponibles, expansion rapide et \xE9lastique, donn\xE9es hautement autonomes et contr\xF4lables",id:"Penyebaran penahanan berbasis Docker, mendukung cluster yang sangat tersedia, perpanjangan cepat lentur, dan data sangat otonom"},{key:"\u591A\u91CD\u65B9\u5F0F\u4FDD\u8BC1\u6570\u636E\u4E0D\u4E22\u5931\uFF0C\u9AD8\u53EF\u7528\u6545\u969C\u8F6C\u79FB\uFF0C\u5F02\u5730\u5BB9\u707E\u5907\u4EFD\uFF0C99.99%\u53EF\u7528\u6027\u4FDD\u8BC1",zh:"","zh-CHT":"\u591A\u91CD\u65B9\u5F0F\u4FDD\u8B49\u6578\u64DA\u4E0D\u4E1F\u5931\uFF0C\u9AD8\u53EF\u7528\u6545\u969C\u8F49\u79FB\uFF0C\u7570\u5730\u5BB9\u707D\u5099\u4EFD\uFF0C99.99%\u53EF\u7528\u6027\u4FDD\u8B49",en:"Multiple modes guarantee data loss, high availability failover, remote disaster recovery backup, and 99.99% availability",ko:"\uB2E4\uC911\uBC29\uC2DD\uC73C\uB85C \uB370\uC774\uD0C0\uAC00 \uBD84\uC2E4\uB418\uC9C0 \uC54A\uB3C4\uB85D \uB2F4\uBCF4\uD558\uACE0 \uACE0\uAC00\uC6A9\uC131 \uACE0\uC7A5\uC804\uC774, \uD0C0\uC9C0\uC5ED\uC7AC\uD574\uD5C8\uC6A9\uBC31\uC5C5\uD558\uC5EC 99.99%\uC758 \uAC00\uC6A9\uC131\uC744 \uBCF4\uC7A5\uD55C\uB2E4",ja:"\u591A\u91CD\u306E\u65B9\u5F0F\u306F\u30C7\u30FC\u30BF\u304C\u5931\u308F\u306A\u3044\u3053\u3068\u3092\u4FDD\u8A3C\u3057\u3066\u3001\u9AD8\u5229\u7528\u53EF\u80FD\u306A\u6545\u969C\u306E\u8EE2\u79FB\u3001\u7570\u5730\u306B\u707D\u5BB3\u3092\u8A31\u5BB9\u3059\u308B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u300199.99%\u5229\u7528\u53EF\u80FD\u6027\u306E\u4FDD\u8A3C\u3067\u3059",de:"Mehrere wege, um sicherzustellen, dass keine daten verloren gehen, st\xF6rungen werden hoch gelagert, eine externe erdbebensicherung: 999%",fr:"Plusieurs fa\xE7ons de garantir que les donn\xE9es ne sont pas perdues, failover haute disponibilit\xE9, sauvegarde hors site Dr, garantie de disponibilit\xE9 \xE0 99,99%",id:"Beberapa cara memastikan data tidak hilang, transfer macet yang tinggi, cadangan bencana jarak jauh, dijamin 99,99%"},{key:"\u591A\u91CD\u65B9\u5F0F\u4FDD\u8BC1\u5E10\u6237\u5B89\u5168\uFF0C\u8FDC\u7A0B\u4F1A\u8BDD\u63A7\u5236\uFF0C\u8BBE\u5907\u7ED1\u5B9A\uFF0C\u5B89\u5168\u65E5\u5FD7\u4EE5\u53CA\u624B\u52BF\u5BC6\u7801",zh:"","zh-CHT":"\u591A\u91CD\u65B9\u5F0F\u4FDD\u8B49\u5E33\u6236\u5B89\u5168\uFF0C\u9060\u7A0B\u6703\u8A71\u63A7\u5236\uFF0C\u8A2D\u5099\u7D81\u5B9A\uFF0C\u5B89\u5168\u65E5\u8A8C\u4EE5\u53CA\u624B\u52E2\u5BC6\u78BC",en:"Multiple ways to ensure account security, remote session control, device binding, security logging, and gesture passwords",ko:"\uC5EC\uB7EC \uAC00\uC9C0 \uBC29\uBC95\uC73C\uB85C \uACC4\uC815 \uBCF4\uC548, \uC6D0\uACA9 \uC138\uC158 \uC81C\uC5B4, \uC7A5\uCE58 \uBC14\uC778\uB529, \uBCF4\uC548 \uB85C\uADF8 \uBC0F \uC81C\uC2A4\uCC98 \uBE44\uBC00\uBC88\uD638\uB97C \uBCF4\uC7A5\uD569\uB2C8\uB2E4",ja:"\u5FA9\u6570\u306E\u65B9\u6CD5\u3067\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u5B89\u5168\u3092\u4FDD\u8A3C\u3057\u3066\u3001\u9060\u9694\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u306E\u5236\u5FA1\u3001\u88C5\u7F6E\u306E\u30D0\u30A4\u30F3\u30C7\u30A3\u30F3\u30B0\u3001\u5B89\u5168\u306A\u30ED\u30B0\u3068\u30B8\u30A7\u30B9\u30C1\u30E3\u30FC\u306E\u6697\u53F7\u5316\u3067\u3059",de:"Sie verschiedene systeme, um das konto sicherer zu machen, die sitzungskontrolle aus der ferne zu sichern, das programm zu programmieren, das sicherheitsprotokoll und das gesten passwort",fr:"Plusieurs fa\xE7ons de garantir la s\xE9curit\xE9 du compte, le contr\xF4le de session \xE0 distance, la liaison des appareils, les journaux de s\xE9curit\xE9 ainsi que les mots de passe gestuels",id:"Beberapa cara untuk menjamin keamanan akun, kontrol sesi jarak jauh, pengikat perangkat, log keamanan, dan password gerak"},{key:"\u591A\u91CD\u65B9\u5F0F\u4FDD\u8BC1\u6570\u636E\u4E0D\u6CC4\u6F0F\uFF0C\u57FA\u4E8E TLS \u7684\u6570\u636E\u52A0\u5BC6\u4F20\u8F93\uFF0CDDOS \u9632\u5FA1\u548C\u5165\u4FB5\u68C0\u6D4B",zh:"","zh-CHT":"\u591A\u91CD\u65B9\u5F0F\u4FDD\u8B49\u6578\u64DA\u4E0D\u6CC4\u6F0F\uFF0C\u57FA\u65BC TLS \u7684\u6578\u64DA\u52A0\u5BC6\u50B3\u8F38\uFF0CDDOS \u9632\u79A6\u548C\u5165\u4FB5\u6AA2\u6E2C",en:"Multiple methods to ensure data leakage, TLS based data encryption transmission, DDOS defense and intrusion detection",ko:"\uB2E4\uC911 \uBCF4\uC548 \uB370\uC774\uD130 \uC720\uCD9C \uBC29\uC9C0, tls \uAE30\uBC18 \uC554\uD638\uD654 \uC804\uC1A1, ddos \uBC29\uC5B4 \uBC0F \uCE68\uC785 \uD0D0\uC9C0",ja:"\u30C7\u30FC\u30BF\u6F0F\u6D29\u9632\u6B62\u3001TLS\u306B\u3088\u308B\u30C7\u30FC\u30BF\u306E\u6697\u53F7\u5316\u3001DDOS\u306E\u9632\u5FA1\u3001\u4FB5\u5165\u691C\u77E5\u3092\u8907\u6570\u3067\u884C\u3044\u307E\u3059\u3002",de:"Dies stellt sicher, dass die daten nicht kompromittiert sind, und es gibt einige l\xFCcken bei den TLS, verschl\xFCsselte \xFCbertragungen, die verteidigung f\xFCr DDOS und die erkennung Von l\xFCcken",fr:"Plusieurs fa\xE7ons de garantir aucune fuite de donn\xE9es, transmission crypt\xE9e des donn\xE9es bas\xE9e sur TLS, protection contre les DDOS et d\xE9tection d\u2019intrusion",id:"Beberapa cara memastikan data tidak bocor, transmisi data terenkripsi berdasarkan TLS, DDOS pertahanan dan deteksi penyusup"},{key:"\u4ECE\u73B0\u5728\u5F00\u59CB\uFF0CDooTask \u4E3A\u4E16\u754C\u5404\u5730\u7684\u56E2\u961F\u63D0\u4F9B\u652F\u6301\uFF0C\u63A2\u7D22\u9002\u5408\u60A8\u7684\u9009\u9879\u3002",zh:"","zh-CHT":"\u5F9E\u73FE\u5728\u958B\u59CB\uFF0CDooTask \u7232\u4E16\u754C\u5404\u5730\u7684\u5718\u968A\u63D0\u4F9B\u652F\u6301\uFF0C\u63A2\u7D22\u9069\u5408\u60A8\u7684\u9078\u9805\u3002",en:"From now on, DooTask supports teams around the world to explore options that are right for you.",ko:"\uC9C0\uAE08\uBD80\uD130 dootask \uC5D0\uC11C\uB294 \uC804\uC138\uACC4\uC758 \uD300\uB4E4\uC744 \uC9C0\uC6D0\uD558\uBA74\uC11C \uC5B4\uB5A4 \uC635\uC158\uC744 \uC120\uD0DD\uD558\uC2E4 \uC218 \uC788\uB294\uC9C0 \uC54C\uC544\uBCF4\uC2ED\uC2DC\uC624.",ja:"\u3053\u308C\u304B\u3089DooTask\u306F\u4E16\u754C\u4E2D\u306E\u30C1\u30FC\u30E0\u3092\u30B5\u30DD\u30FC\u30C8\u3057\u3001\u3042\u306A\u305F\u306B\u5408\u3063\u305F\u9078\u629E\u80A2\u3092\u6A21\u7D22\u3057\u3066\u3044\u304D\u307E\u3059\u3002",de:"Von jetzt an steht die h\xE4rteste welle jedem team auf der ganzen welt zur verf\xFCgung und sonnt auch mal die ganz speziellen einstellungen f\xFCr sie.",fr:"D\xE9sormais, DooTask offre une assistance aux \xE9quipes du monde entier. Explorez les options qui vous conviennent.",id:"Mulai sekarang, tugasmu tugaskan tugaskan tim di seluruh dunia, temukan berbagai pilihan yang cocok untukmu."},{key:"\u5982\u6709\u4EFB\u4F55\u95EE\u9898\uFF0C\u6B22\u8FCE\u4F7F\u7528\u90AE\u7BB1\u4E0E\u6211\u4EEC\u8054\u7CFB\u3002",zh:"","zh-CHT":"\u5982\u6709\u4EFB\u4F55\u554F\u984C\uFF0C\u6B61\u8FCE\u4F7F\u7528\u90F5\u7BB1\u8207\u6211\u5011\u806F\u7E6B\u3002",en:"If you have any questions, please feel free to contact us by email.",ko:"\uB9CC\uC57D \uBB38\uC81C\uAC00 \uC788\uB294 \uACBD\uC6B0\uC5D0, \uD658\uC601 \uBA54\uC77C\uD568\uC73C\uB85C \uC800\uD76C\uC5D0\uAC8C \uC5F0\uB77D\uD55C\uB2E4.",ja:"\u4F55\u304B\u554F\u984C\u304C\u3042\u308C\u3070\u3001\u30E1\u30FC\u30EB\u30DC\u30C3\u30AF\u30B9\u3092\u4F7F\u3063\u3066\u79C1\u9054\u306B\u9023\u7D61\u3059\u308B\u3053\u3068\u3092\u6B53\u8FCE\u3057\u307E\u3059\u3002",de:"Bei weiteren fragen k\xF6nnen wir uns mit dem briefkasten melden.",fr:"Toute question, bienvenue \xE0 nous contacter \xE0 l\u2019aide de l\u2019email.",id:"Jika ada pertanyaan, silakan hubungi kami lewat email."},{key:"\u5141\u8BB8\u9690\u85CF\u6216\u5B9A\u5236\u4EA7\u54C1\u540D",zh:"","zh-CHT":"\u5141\u8A31\u96B1\u85CF\u6216\u5B9A\u88FD\u7522\u54C1\u540D",en:"Allows you to hide or customize product names",ko:"\uC81C\uD488 \uC774\uB984\uC744 \uC228\uAE30\uAC70\uB098 \uC0AC\uC6A9\uC790 \uC815\uC758\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4",ja:"\u88FD\u54C1\u540D\u3092\u96A0\u3059\u3053\u3068\u3082\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA\u3059\u308B\u3053\u3068\u3082\u3067\u304D\u307E\u3059",de:"Ein system erlaubt es, anonym Oder individuell festzulegen",fr:"Permet de cacher ou personnaliser les noms de produits",id:"Memungkinkan untuk menyembunyikan atau menyesuaikan nama produk"},{key:"\u591A\u79CD\u90E8\u7F72\u65B9\u5F0F\u968F\u5FC3\u9009\u62E9",zh:"","zh-CHT":"\u591A\u7A2E\u90E8\u7F72\u65B9\u5F0F\u96A8\u5FC3\u9078\u64C7",en:"Multiple deployment modes are optional",ko:"\uC5EC\uB7EC\uAC00\uC9C0 \uD3EC\uCE58\uBC29\uC2DD\uC744 \uB9C8\uC74C\uB300\uB85C \uC120\uD0DD\uD55C\uB2E4",ja:"\u69D8\u3005\u306A\u914D\u7F6E\u65B9\u6CD5\u3092\u9078\u629E\u3067\u304D\u307E\u3059",de:"Verschiedene dislozierungsmodalit\xE4ten. Individuelle eins\xE4tze",fr:"Plusieurs modes de d\xE9ploiement au choix",id:"Dalam berbagai cara"},{key:"\u591A\u91CD\u5B89\u5168\u7B56\u7565\u4FDD\u62A4\u6570\u636E",zh:"","zh-CHT":"\u591A\u91CD\u5B89\u5168\u7B56\u7565\u4FDD\u8B77\u6578\u64DA",en:"Multiple security policies protect data",ko:"\uC5EC\uB7EC \uBCF4\uC548 \uC815\uCC45\uC73C\uB85C \uB370\uC774\uD130\uB97C \uBCF4\uD638\uD569\uB2C8\uB2E4",ja:"\u8907\u6570\u306E\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u30DD\u30EA\u30B7\u30FC\u3067\u30C7\u30FC\u30BF\u3092\u4FDD\u8B77\u3057\u307E\u3059",de:"Verschiedene sicherheitsstrategien sch\xFCtzen daten",fr:"Plusieurs politiques de s\xE9curit\xE9 prot\xE8gent les donn\xE9es",id:"Strategi keamanan ganda untuk melindungi data"},{key:"\u62E5\u6709\u6700\u65B0\u7248\u672C\u6240\u6709\u529F\u80FD",zh:"","zh-CHT":"\u64C1\u6709\u6700\u65B0\u7248\u672C\u6240\u6709\u529F\u80FD",en:"Has all the features of the latest version",ko:"\uCD5C\uC2E0 \uBC84\uC804\uC758 \uBAA8\uB4E0 \uAE30\uB2A5\uC744 \uAC16\uCD94\uACE0 \uC788\uB2E4",ja:"\u6700\u65B0\u30D0\u30FC\u30B8\u30E7\u30F3\u306E\u3059\u3079\u3066\u306E\u6A5F\u80FD\u3092\u5099\u3048\u3066\u3044\u307E\u3059",de:"Mit allen neusten funktionen",fr:"Avec toutes les fonctionnalit\xE9s de la derni\xE8re version",id:"Dengan versi terbaru dari semua fitur"},{key:"\u6839\u636E\u60A8\u7684\u9700\u6C42\u91CF\u8EAB\u5B9A\u5236",zh:"","zh-CHT":"\u6839\u64DA\u60A8\u7684\u9700\u6C42\u91CF\u8EAB\u5B9A\u88FD",en:"Tailored to your needs",ko:"\uB2F9\uC2E0\uC758 \uC694\uAD6C\uC5D0 \uB9DE\uCD94\uC5B4 \uB9CC\uB4E4\uB2E4",ja:"\u3042\u306A\u305F\u306E\u30CB\u30FC\u30BA\u306B\u5408\u308F\u305B\u3066\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA\u3057\u307E\u3059",de:"Ihren bed\xFCrfnissen anpassen",fr:"Adapt\xE9 \xE0 vos besoins",id:"Disesuaikan dengan kebutuhan anda"},{key:"\u5B8C\u5584\u7684\u670D\u52A1\u652F\u6301\u4F53\u7CFB",zh:"","zh-CHT":"\u5B8C\u5584\u7684\u670D\u52D9\u652F\u6301\u9AD4\u7CFB",en:"Perfect service support system",ko:"\uC644\uBCBD\uD55C \uC11C\uBE44\uC2A4 \uC9C0\uC6D0 \uCCB4\uACC4",ja:"\u5145\u5B9F\u3057\u305F\u30B5\u30FC\u30D3\u30B9\u30B5\u30DD\u30FC\u30C8\u4F53\u5236\u3067\u3059",de:"Bevor sie ihren dienst fortsetzen",fr:"Syst\xE8me de support de service parfait",id:"Layanan pendukung yang sempurna"},{key:"\u4E13\u5C5E\u5BA2\u6237\u6210\u529F\u7ECF\u7406",zh:"","zh-CHT":"\u5C08\u5C6C\u5BA2\u6236\u6210\u529F\u7D93\u7406",en:"Dedicated customer success manager",ko:"\uC804\uC18D \uACE0\uAC1D \uC131\uACF5 \uAD00\uB9AC\uC790",ja:"\u5C02\u5C5E\u30AB\u30B9\u30BF\u30DE\u30FC\u30B5\u30AF\u30BB\u30B9\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u3067\u3059",de:"Hat einen erfolgreichen kunden",fr:"Gestionnaire exclusif de la r\xE9ussite client",id:"Manajer sukses untuk pelanggan"},{key:"\u4E8C\u6B21\u5F00\u53D1\u54A8\u8BE2\u670D\u52A1",zh:"","zh-CHT":"\u4E8C\u6B21\u958B\u767C\u8AEE\u8A62\u670D\u52D9",en:"Secondary development consulting services",ko:"\uC7AC\uAC1C\uBC1C \uC790\uBB38\uC5ED",ja:"\u4E8C\u6B21\u958B\u767A\u30B3\u30F3\u30B5\u30EB\u30C6\u30A3\u30F3\u30B0\u30B5\u30FC\u30D3\u30B9\u3067\u3059",de:"Die wirtschaftsberatung in reo",fr:"Services de consultation en d\xE9veloppement secondaire",id:"Konsultan pengembangan kedua"},{key:"\u514D\u8D39\u63D0\u4F9B\u4E00\u6B21\u5185\u8BAD",zh:"","zh-CHT":"\u514D\u8CBB\u63D0\u4F9B\u4E00\u6B21\u5167\u8A13",en:"Provide a free internal training",ko:"\uB0B4\uC2E0\uC744 1\uD68C \uBB34\uB8CC\uB85C \uC81C\uACF5\uD55C\uB2E4",ja:"\u5185\u8A13\u30921\u56DE\u7121\u6599\u3067\u63D0\u4F9B\u3057\u307E\u3059",de:"Kostenlos ein fachstudium anbieten",fr:"Une formation interne offerte gratuitement",id:"Dapat satu pelatihan gratis"},{key:"\u9009\u62E9\u9002\u5408\u60A8\u7684\u7248\u672C",zh:"","zh-CHT":"\u9078\u64C7\u9069\u5408\u60A8\u7684\u7248\u672C",en:"Choose the version that works for you",ko:"\uB2F9\uC2E0\uC5D0\uAC8C \uB9DE\uB294 \uBC84\uC804\uC744 \uC120\uD0DD\uD558\uC2ED\uC2DC\uC624",ja:"\u3042\u306A\u305F\u306B\u5408\u3063\u305F\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u9078\u3073\u307E\u3059\u3002",de:"W\xE4hlen sie ihre version aus",fr:"Choisissez la version qui vous convient",id:"Pilih versi yang cocok untukmu"},{key:"1:1\u5BA2\u6237\u6210\u529F\u987E\u95EE",zh:"","zh-CHT":"1:1\u5BA2\u6236\u6210\u529F\u9867\u554F",en:"1:1 Customer success consultant",ko:"1:1 \uACE0\uAC1D \uC131\uACF5 \uCEE8\uC124\uD134\uD2B8",ja:"1:1\u30AB\u30B9\u30BF\u30DE\u30FC\u30B5\u30AF\u30BB\u30B9\u30A2\u30C9\u30D0\u30A4\u30B6\u30FC\u3067\u3059",de:"1:1, ein erfolgreicher berater",fr:"1:1 conseiller de r\xE9ussite client",id:"1:1, penasihat sukses pelanggan"},{key:"\u4E00\u5BF9\u4E00\u5BA2\u6237\u987E\u95EE",zh:"","zh-CHT":"\u4E00\u5C0D\u4E00\u5BA2\u6236\u9867\u554F",en:"One-to-one client consultant",ko:"\uC77C\uB300\uC77C \uACE0\uAC1D\uC0C1\uB2F4\uC0AC",ja:"1\u5BFE1\u306E\u30B3\u30F3\u30B5\u30EB\u30BF\u30F3\u30C8\u3067\u3059",de:"Ein pers\xF6nlicher berater.",fr:"Conseiller client one to one",id:"Konsultan pelanggan satu lawan satu"},{key:"\u4E2D\u82F1\u6587\u90AE\u4EF6\u652F\u6301",zh:"","zh-CHT":"\u4E2D\u82F1\u6587\u90F5\u4EF6\u652F\u6301",en:"English and Chinese email support",ko:"\uC911\uAD6D\uC5B4 \uC601\uBB38 \uC774\uBA54\uC77C \uC9C0\uC6D0",ja:"\u82F1\u8A9E\u3068\u4E2D\u56FD\u8A9E\u306E\u30E1\u30FC\u30EB\u306E\u30B5\u30DD\u30FC\u30C8\u3067\u3059",de:"Unterst\xFCtzung durch chinesische mails",fr:"Support par email en anglais et chinois",id:"Dukungan surat inggris"},{key:"\u5168\u9762\u7684\u652F\u6301\u670D\u52A1",zh:"","zh-CHT":"\u5168\u9762\u7684\u652F\u6301\u670D\u52D9",en:"Full support services",ko:"\uC804\uD3ED\uC801\uC778 \uC9C0\uC6D0 \uC11C\uBE44\uC2A4",ja:"\u5168\u9762\u7684\u306A\u30B5\u30DD\u30FC\u30C8\u30B5\u30FC\u30D3\u30B9\u3067\u3059",de:"Ich will eine komplette unterst\xFCtzung",fr:"Services de support complets",id:"Layanan dukungan penuh"},{key:"\u5B8C\u5584\u7684\u57F9\u8BAD\u4F53\u7CFB",zh:"","zh-CHT":"\u5B8C\u5584\u7684\u57F9\u8A13\u9AD4\u7CFB",en:"Perfect training system",ko:"\uC644\uBCBD\uD55C \uD6C8\uB828 \uC2DC\uC2A4\uD15C",ja:"\u5145\u5B9F\u3057\u305F\u6559\u80B2\u30B7\u30B9\u30C6\u30E0\u3067\u3059",de:"Aber die weiterbildung ist gut",fr:"Un syst\xE8me de formation complet",id:"Sistem pelatihan yang sempurna"},{key:"\u652F\u6301\u79C1\u6709\u5316\u90E8\u7F72",zh:"","zh-CHT":"\u652F\u6301\u79C1\u6709\u5316\u90E8\u7F72",en:"Support privatization deployment",ko:"\uBBFC\uC601\uD654 \uBC30\uCE58 \uC9C0\uC9C0",ja:"\u6C11\u55B6\u5316\u3092\u652F\u63F4\u3057\u307E\u3059",de:"Unterst\xFCtzung f\xFCr privatisierung",fr:"Soutien au d\xE9ploiement privatis\xE9",id:"Penyebaran privatisasi didukung"},{key:"iOS/Android\u5BA2\u6237\u7AEF",zh:"","zh-CHT":"IOS/Android\u5BA2\u6236\u7AEF",en:"IOS/Android client",ko:"Ios/\uC548\uB4DC\uB85C\uC774\uB4DC \uD074\uB77C\uC774\uC5B8\uD2B8",ja:"IOS/Android\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u3067\u3059",de:"Ein Android ist auf den markt gegangen",fr:"Client iOS/Android",id:"Pelanggan iOS/Android"},{key:"\uFF08Issues/\u793E\u7FA4\uFF09",zh:"","zh-CHT":"\uFF08Issues/\u793E\u7FA3\uFF09",en:"(Issues/ Community)",ko:"(issues/\uCEE4\uBBA4\uB2C8\uD2F0)",ja:"(Issues/\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u3067\u3059)",de:"Eskips (herzen)",fr:"(Issues/ communaut\xE9)",id:"(Issues/ social)"},{key:"\u5728\u7EBF\u54A8\u8BE2\u652F\u6301",zh:"","zh-CHT":"\u5728\u7DDA\u8AEE\u8A62\u652F\u6301",en:"Online consultation support",ko:"\uC628\uB77C\uC778 \uCEE8\uC124\uD305 \uC9C0\uC6D0",ja:"\u30AA\u30F3\u30E9\u30A4\u30F3\u76F8\u8AC7\u652F\u63F4\u3067\u3059",de:"Unterst\xFCtzung f\xFCr online-beratung",fr:"Soutien de consultation en ligne",id:"Dukungan konseling online"},{key:"\u660E\u661F\u5BA2\u6237\u6848\u4F8B",zh:"","zh-CHT":"\u660E\u661F\u5BA2\u6236\u6848\u4F8B",en:"Star customer case",ko:"\uC2A4\uD0C0 \uACE0\uAC1D \uC0AC\uB840",ja:"\u30B9\u30BF\u30FC\u9867\u5BA2\u4E8B\u4F8B\u3067\u3059",de:"Der fall der star-klienten",fr:"Cas clients star",id:"Kasus klien bintang"},{key:"\u7535\u8BDD\u54A8\u8BE2\u652F\u6301",zh:"","zh-CHT":"\u96FB\u8A71\u8AEE\u8A62\u652F\u6301",en:"Telephone consultation support",ko:"\uC804\uD654 \uC0C1\uB2F4 \uC9C0\uC6D0",ja:"\u304A\u96FB\u8A71\u30B5\u30DD\u30FC\u30C8\u3067\u3059\u3002",de:"Telefonberatung, verst\xE4rkung.",fr:"Soutien de consultation t\xE9l\xE9phonique",id:"Dukungan konsultasi telepon"},{key:"\u7ED1\u5B9A\u81EA\u6709\u57DF\u540D",zh:"","zh-CHT":"\u7D81\u5B9A\u81EA\u6709\u57DF\u540D",en:"Bind own domain name",ko:"\uC790\uCCB4 \uB3C4\uBA54\uC778 \uBC14\uC778\uB529",ja:"\u30C9\u30E1\u30A4\u30F3\u540D\u3092\u4ED8\u3051\u3066\u3044\u307E\u3059",de:"Einen main-namen habe ich auch",fr:"Domaine propre li\xE9",id:"Terikat punya nama domain"},{key:"\u9009\u62E9\u9002\u5408\u4F60\u7684",zh:"","zh-CHT":"\u9078\u64C7\u9069\u5408\u4F60\u7684",en:"Choose what works for you",ko:"\uB124\uAC8C \uB9DE\uB294 \uAC83\uC744 \uACE8\uB77C\uB77C",ja:"\u3042\u306A\u305F\u306B\u5408\u3063\u305F\u3082\u306E\u3092\u9078\u3073\u307E\u3059",de:"W\xE4hlen sie, was ihnen passt",fr:"Choisissez ce qui vous convient",id:"Pilih apa yang cocok untukmu"},{key:"\u9AD8\u53EF\u7528\u6027\u4FDD\u8BC1",zh:"","zh-CHT":"\u9AD8\u53EF\u7528\u6027\u4FDD\u8B49",en:"High availability assurance",ko:"\uACE0\uAC00\uC6A9\uC131 \uBCF4\uC7A5",ja:"\u9AD8\u53EF\u7528\u6027\u4FDD\u8A3C\u3067\u3059",de:"Hohe verf\xFCgbarkeit garantiert",fr:"Garantie de haute disponibilit\xE9",id:"Jaminan ketersediaan yang tinggi"},{key:"Mac/PC\u5BA2\u6237\u7AEF",zh:"","zh-CHT":"Mac/PC\u5BA2\u6236\u7AEF",en:"Mac/PC client",ko:"Mac/pc \uD074\uB77C\uC774\uC5B8\uD2B8",ja:"Mac/PC\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u3067\u3059",de:"Mac/PC sind am apparat",fr:"Client pour Mac/PC",id:"Klien Mac/PC"},{key:"\u672C\u5730\u670D\u52A1\u5668",zh:"","zh-CHT":"\u672C\u5730\u670D\u52D9\u5668",en:"Local server",ko:"\uB85C\uCEEC \uC11C\uBC84",ja:"\u30ED\u30FC\u30AB\u30EB\u30B5\u30FC\u30D0\u30FC\u3067\u3059",de:"Dem lokalen server.",fr:"Un serveur local",id:"Server lokal"},{key:"\u5468\u62A5/\u65E5\u62A5",zh:"","zh-CHT":"\u9031\u5831/\u65E5\u5831",en:"Weekly/daily newspaper",ko:"\uC8FC\uAC04 \uC2E0\uBB38",ja:"\u9031\u5831/\u65E5\u520A\u7D19\u3067\u3059",de:"Aber mein leben ver\xE4ndert sich",fr:"Rapport hebdomadaire/quotidien",id:"Mingguan/harian"},{key:"\u4E0A\u95E8\u652F\u6301",zh:"","zh-CHT":"\u4E0A\u9580\u652F\u6301",en:"Door-to-door support",ko:"\uBC29\uBB38\uD558\uC5EC \uC9C0\uC6D0\uD558\uB2E4.",ja:"\u8A2A\u554F\u652F\u63F4\u3067\u3059",de:"T\xFCrunterst\xFCtzung",fr:"Soutien \xE0 domicile",id:"Gerbang untuk mendukung"},{key:"\u4E8C\u6B21\u5F00\u53D1",zh:"","zh-CHT":"\u4E8C\u6B21\u958B\u767C",en:"Secondary development",ko:"\uC774\uCC28 \uAC1C\uBC1C",ja:"\u4E8C\u6B21\u958B\u767A\u3067\u3059",de:"Eine zweite entwicklung.",fr:"Le d\xE9veloppement secondaire",id:"Pengembangan kedua"},{key:"\u4EA7\u54C1\u57F9\u8BAD",zh:"","zh-CHT":"\u7522\u54C1\u57F9\u8A13",en:"Product training",ko:"\uC81C\uD488 \uAD50\uC721",ja:"\u88FD\u54C1\u30C8\u30EC\u30FC\u30CB\u30F3\u30B0\u3067\u3059",de:"1. Weiterbildung",fr:"Formation aux produits",id:"Pelatihan produk"},{key:"\u4EFB\u52A1\u52A8\u6001",zh:"","zh-CHT":"\u4EFB\u52D9\u52D5\u614B",en:"Task dynamics",ko:"\uC791\uC5C5 \uB3D9\uD5A5",ja:"\u30DF\u30C3\u30B7\u30E7\u30F3\u30FB\u30C0\u30A4\u30CA\u30DF\u30AF\u30B9\u3067\u3059",de:"Missionsdynamik.",fr:"Dynamique des t\xE2ches",id:"Dinamika tugas"},{key:"\u4EFB\u52A1\u7C7B\u578B",zh:"","zh-CHT":"\u4EFB\u52D9\u985E\u578B",en:"Task type",ko:"\uC791\uC5C5 \uD615\uC2DD",ja:"\u30BF\u30B9\u30AF\u30BF\u30A4\u30D7\u3067\u3059",de:"Typ des auftrags?",fr:"Types de missions",id:"Jenis tugas"},{key:"\u521B\u5EFA\u7FA4\u804A",zh:"","zh-CHT":"\u5275\u5EFA\u7FA3\u804A",en:"Create a group chat",ko:"\uADF8\uB8F9 \uCC44\uD305 \uB9CC\uB4E4\uAE30",ja:"\u30B0\u30EB\u30FC\u30D7\u30C1\u30E3\u30C3\u30C8\u3092\u4F5C\u6210\u3057\u307E\u3059",de:"Gruppengespr\xE4ch kreieren.",fr:"Cr\xE9er un chat de groupe",id:"Buat grup chat"},{key:"\u5E10\u6237\u5B89\u5168",zh:"","zh-CHT":"\u5E33\u6236\u5B89\u5168",en:"Account security",ko:"\uACC4\uC815 \uBCF4\uC548",ja:"\u53E3\u5EA7\u306F\u5B89\u5168\u3067\u3059",de:"Sichere konten.",fr:"S\xE9curit\xE9 du compte",id:"Keamanan akun"},{key:"\u5E94\u7528\u652F\u6301",zh:"","zh-CHT":"\u61C9\u7528\u652F\u6301",en:"Application support",ko:"\uC9C0\uC6D0 \uC801\uC6A9",ja:"\u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u30B5\u30DD\u30FC\u30C8\u3067\u3059",de:"Unterst\xFCtzung durch anwendung.",fr:"Soutien \xE0 l\u2019application",id:"Menerapkan dukungan"},{key:"\u6570\u636E\u52A0\u5BC6",zh:"","zh-CHT":"\u6578\u64DA\u52A0\u5BC6",en:"Data encryption",ko:"\uB370\uC774\uD130 \uC554\uD638\uD654",ja:"\u30C7\u30FC\u30BF\u6697\u53F7\u5316\u3067\u3059",de:"Datenverschl\xFCsselung",fr:"Cryptage des donn\xE9es",id:"Enkripsi data"},{key:"\u6587\u4EF6\u641C\u7D22",zh:"","zh-CHT":"\u6587\u4EF6\u641C\u7D22",en:"File search",ko:"\uD30C\uC77C \uAC80\uC0C9",ja:"\u30D5\u30A1\u30A4\u30EB\u691C\u7D22\u3067\u3059",de:"Suche nach dateien",fr:"Recherche de documents",id:"Pencarian berkas"},{key:"\u6587\u4EF6\u7BA1\u7406",zh:"","zh-CHT":"\u6587\u4EF6\u7BA1\u7406",en:"Document management",ko:"\uD30C\uC77C \uAD00\uB9AC",ja:"\u30D5\u30A1\u30A4\u30EB\u7BA1\u7406\u3067\u3059",de:"Halte die dokumentation auf.",fr:"Gestion des documents",id:"Manajemen berkascomment"},{key:"\u670D\u52A1\u652F\u6301",zh:"","zh-CHT":"\u670D\u52D9\u652F\u6301",en:"Service support",ko:"\uC11C\uBE44\uC2A4 \uC9C0\uC6D0",ja:"\u30B5\u30FC\u30D3\u30B9\u30B5\u30DD\u30FC\u30C8\u3067\u3059",de:"Service-support.",fr:"Service et support",id:"Dukungan layanan"},{key:"\u81EA\u52A9\u652F\u6301",zh:"","zh-CHT":"\u81EA\u52A9\u652F\u6301",en:"Self-help support",ko:"\uC140\uD504 \uC9C0\uC6D0",ja:"\u30BB\u30EB\u30D5\u30B5\u30DD\u30FC\u30C8\u3067\u3059",de:"Unterst\xFCtzung. Unterst\xFCtzen.",fr:"Assistance en auto-assistance",id:"Dukungan diri"},{key:"\u8FD4\u56DE\u9996\u9875",zh:"","zh-CHT":"\u8FD4\u56DE\u9996\u9801",en:"Return to home page",ko:"\uD648 \uD398\uC774\uC9C0\uB85C \uB3CC\uC544\uAC00\uAE30",ja:"\u30C8\u30C3\u30D7\u30DA\u30FC\u30B8\u306B\u623B\u308A\u307E\u3059",de:"Mach die titelseite auf.",fr:"Retour \xE0 l\u2019accueil",id:"Kembali ke rumah"},{key:"\u9879\u76EE\u641C\u7D22",zh:"","zh-CHT":"\u9805\u76EE\u641C\u7D22",en:"Item search",ko:"\uD56D\uBAA9 \uAC80\uC0C9",ja:"\u9805\u76EE\u691C\u7D22\u3067\u3059",de:"Suche nach projekten.",fr:"Recherche de projets",id:"Pencarian proyek"},{key:"\u9879\u76EE\u7BA1\u7406",zh:"","zh-CHT":"\u9805\u76EE\u7BA1\u7406",en:"Project management",ko:"\uD504\uB85C\uC81D\uD2B8 \uAD00\uB9AC",ja:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u30DE\u30CD\u30B8\u30E1\u30F3\u30C8\u3067\u3059",de:"Projektmanagement. - projektmanagement?",fr:"Gestion du projet",id:"Manajemen proyek"},{key:"\u9879\u76EE\u7FA4\u804A",zh:"","zh-CHT":"\u9805\u76EE\u7FA3\u804A",en:"Project group chat",ko:"\uD504\uB85C\uC81D\uD2B8 \uADF8\uB8F9 \uCC44\uD305",ja:"\u30B0\u30EB\u30FC\u30D7\u30C8\u30FC\u30AF\u3067\u3059",de:"Kleine projektgruppe.",fr:"Projet chat de groupe",id:"Obrolan kelompok proyek"},{key:"\u4F53\u9A8CDEMO",zh:"","zh-CHT":"\u9AD4\u9A57DEMO",en:"DEMO",ko:"\uB370\uBAA8 \uCCB4\uD5D8",ja:"\u30C7\u30E2\u3092\u4F53\u9A13\u3057\u307E\u3059",de:"DEMO",fr:"DEMO",id:"DEMO"},{key:"\u516C\u6709\u4E91",zh:"","zh-CHT":"\u516C\u6709\u4E91",en:"Public cloud",ko:"\uD37C\uBE14\uB9AD \uD074\uB77C\uC6B0\uB4DC",ja:"\u30D1\u30D6\u30EA\u30C3\u30AF\u30AF\u30E9\u30A6\u30C9\u3067\u3059",de:"Flying corp!",fr:"Cloud public disponible",id:"Publik tahu."},{key:"\u56FD\u9645\u5316",zh:"","zh-CHT":"\u570B\u969B\u5316",en:"Internationalization",ko:"\uAD6D\uC81C\uD654",ja:"\u56FD\u969B\u5316\u3067\u3059",de:"International.",fr:"Internationalisation",id:"Kosmopolitan"},{key:"\u5B9A\u5236\u7248",zh:"","zh-CHT":"\u5B9A\u88FD\u7248",en:"Custom version",ko:"\uC8FC\uBB38 \uC81C\uC791\uD310",ja:"\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA\u7248\u3067\u3059",de:"Etwas ma\xDFgeschneidert?",fr:"\xC9dition sur mesure",id:"Edisi khusus"},{key:"\u7518\u7279\u56FE",zh:"","zh-CHT":"\u7518\u7279\u5716",en:"Gantt chart",ko:"\uAC04\uD130\uD22C",ja:"\u30AC\u30F3\u30C8\u30C1\u30E3\u30FC\u30C8\u3067\u3059",de:"La gant.",fr:"Gantt en chiffres",id:"Gant."},{key:"\u793E\u533A\u7248",zh:"","zh-CHT":"\u793E\u5340\u7248",en:"Community edition",ko:"\uCEE4\uBBA4\uB2C8\uD2F0 \uBC84\uC804",ja:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u7248\u3067\u3059",de:"In der gemeinde.",fr:"La version communautaire",id:"Halaman masyarakat"},{key:"\u79C1\u6709\u4E91",zh:"","zh-CHT":"\u79C1\u6709\u4E91",en:"Private cloud",ko:"\uAC1C\uC778 \uD074\uB77C\uC6B0\uB4DC",ja:"\u30D7\u30E9\u30A4\u30D9\u30FC\u30C8\u30AF\u30E9\u30A6\u30C9\u3067\u3059",de:"Private wolke.",fr:"Un cloud priv\xE9",id:"Awan pribadi"},{key:"\u81EA\u5B9A\u4E49",zh:"","zh-CHT":"\u81EA\u5B9A\u7FA9",en:"Customize",ko:"\uC0AC\uC6A9\uC790 \uC815\uC758",ja:"\u30AB\u30B9\u30BF\u30E0\u3067\u3059",de:"Selbstdefiniert.",fr:"Personnalis\xE9 et personnalis\xE9",id:"Khusus"},{key:"\u4EBA\u6570",zh:"","zh-CHT":"\u4EBA\u6578",en:"Number of people",ko:"\uC218\uAC00",ja:"\u4EBA\u6570\u3067\u3059",de:"Eine anzahl.",fr:"Le nombre de",id:"Jumlah"},{key:"\u4EF7\u683C",zh:"","zh-CHT":"\u50F9\u683C",en:"Price",ko:"\uAC00\uACA9",ja:"\u5024\u6BB5\u3067\u3059",de:"Dem preis?",fr:"Prix",id:"Harga"},{key:"\u63A8\u8350",zh:"","zh-CHT":"\u63A8\u85A6",en:"Recommend",ko:"\uCD94\uCC9C",ja:"\u63A8\u85A6\u3057\u307E\u3059",de:"Eine empfehlung?",fr:"Recommand\xE9e",id:"Merekomendasikan"},{key:"\u65E5\u7A0B",zh:"","zh-CHT":"\u65E5\u7A0B",en:"Schedule",ko:"\uC77C\uC815",ja:"\u30B9\u30B1\u30B8\u30E5\u30FC\u30EB\u3067\u3059",de:"Plan?",fr:"Le calendrier",id:"Jadwal"},{key:"\u6982\u8FF0",zh:"","zh-CHT":"\u6982\u8FF0",en:"Overview",ko:"\uC694\uC57D",ja:"\u6982\u8AAC\u3057\u307E\u3059",de:"Erkl\xE4re es.",fr:"R\xE9sum\xE9",id:"Ikhtisar"},{key:"\u6388\u6743\u65B9\u5F0F",zh:"","zh-CHT":"\u6388\u6B0A\u65B9\u5F0F",en:"Authorization mode",ko:"\uC778\uC99D \uBC29\uC2DD",ja:"\u6388\u6A29\u65B9\u6CD5\u3067\u3059",de:"Nicht autorisiert.",fr:"Modalit\xE9s de mandat",id:"Cara memberdayakan"},{key:"\u666E\u901A\u7248",zh:"","zh-CHT":"\u666E\u901A\u7248",en:"Ordinary edition",ko:"\uC77C\uBC18\uD310",ja:"\u901A\u5E38\u7248\u3067\u3059",de:"Normale ausgabe.",fr:"La version normale",id:"Versi biasa"},{key:"\u529F\u80FD\u8F83\u5C11\u53EF\u80FD\u4F1A\u505C\u66F4",zh:"","zh-CHT":"\u529F\u80FD\u8F03\u5C11\u53EF\u80FD\u6703\u505C\u66F4",en:"Less function may stop",ko:"\uAE30\uB2A5\uC774 \uBD80\uC871\uD558\uBA74 \uB354 \uB2A6\uC744 \uC218\uB3C4 \uC788\uC2B5\uB2C8\uB2E4",ja:"\u6A5F\u80FD\u304C\u5C11\u306A\u3044\u305F\u3081\u505C\u6B62\u3059\u308B\u3053\u3068\u3082\u3042\u308A\u307E\u3059",de:"Eine unmenge an funktionen ist wahrscheinlich nicht mehr moglich",fr:"Moins de fonctions peut s\u2019arr\xEAter plus",id:"Sedikit fungsi mungkin akan berhenti lebih"},{key:"\u65E0\u987B\u6388\u6743",zh:"","zh-CHT":"\u7121\u9808\u6388\u6B0A",en:"Without authorization",ko:"\uC778\uC99D \uD544\uC694 \uC5C6\uC74C",ja:"\u8A31\u53EF\u306F\u4E0D\u8981\u3067\u3059",de:"Daf\xFCr ist keine genehmigung n\xF6tig.",fr:"Aucune autorisation requise",id:"Tidak perlu perintah."},{key:"Pro\u514D\u8D39\u7248",zh:"","zh-CHT":"Pro\u514D\u8CBB\u7248",en:"Pro Free Edition",ko:"Pro \uBB34\uB8CC\uBC84\uC804",ja:"\u30D7\u30ED\u7121\u6599\u7248\u3067\u3059",de:"Pro publikum kostenlos.",fr:"Version gratuite Pro",id:"Versi Pro gratis"},{key:"\u5373\u65F6\u804A\u5929",zh:"","zh-CHT":"\u5373\u6642\u804A\u5929",en:"Instant chat",ko:"\uC778\uC2A4\uD134\uD2B8 \uCC44\uD305",ja:"\u30A4\u30F3\u30B9\u30BF\u30F3\u30C8\u30C1\u30E3\u30C3\u30C8\u3067\u3059",de:"In echtzeit.",fr:"Chat en direct",id:"Ngobrol langsung"},{key:"Pro\u8BA2\u9605\u7248",zh:"","zh-CHT":"Pro\u8A02\u95B1\u7248",en:"Pro subscription",ko:"Pro \uAD6C\uB3C5\uD310",ja:"\u30D7\u30ED\u8CFC\u8AAD\u7248\u3067\u3059",de:"Pro abonnement",fr:"Version abonnement Pro",id:"Edisi Pro"},{key:"\u4E8C\u7EF4\u7801\u767B\u5F55",zh:"","zh-CHT":"\u4E8C\u7DAD\u78BC\u767B\u9304",en:"Qr code login",ko:"Qr \uCF54\uB4DC \uB4F1\uB85D",ja:"Qr\u30B3\u30FC\u30C9\u767B\u9332\u3067\u3059",de:"Computer mit code zwei",fr:"Connexion qr code",id:"Kode qr masuk"},{key:"\u804A\u5929\u673A\u5668\u4EBA",zh:"","zh-CHT":"\u804A\u5929\u6A5F\u5668\u4EBA",en:"Chatbot",ko:"\uCC44\uD305 \uB85C\uBD07",ja:"\u30C1\u30E3\u30C3\u30C8\u30DC\u30C3\u30C8\u3067\u3059",de:"Die roboter.",fr:"Le chatbot",id:"Ngobrol robot"},{key:"\u6D88\u606F\u6807\u6CE8",zh:"","zh-CHT":"\u6D88\u606F\u6A19\u8A3B",en:"Message annotation",ko:"\uBA54\uC2DC\uC9C0 \uB808\uC774\uBE14",ja:"\u30E1\u30C3\u30BB\u30FC\u30B8\u8868\u8A18\u3067\u3059",de:"Die nachricht markiert.",fr:"\xC9tiquetage des messages",id:"Label pesan"},{key:"\u53D1\u9001\u8BED\u97F3\u6D88\u606F",zh:"","zh-CHT":"\u767C\u9001\u8A9E\u97F3\u6D88\u606F",en:"Send voice message",ko:"\uC74C\uC131 \uBA54\uC2DC\uC9C0 \uBCF4\uB0B4\uAE30",ja:"\u97F3\u58F0\u30E1\u30C3\u30BB\u30FC\u30B8\u3092\u9001\u308A\u307E\u3059",de:"Senden sie eine nachricht.",fr:"Envoyer un message vocal",id:"Kirim pesan suara"},{key:"\u90E8\u95E8\u529F\u80FD",zh:"","zh-CHT":"\u90E8\u9580\u529F\u80FD",en:"Departmental function",ko:"\uBD80\uC11C \uAE30\uB2A5",ja:"\u90E8\u7F72\u6A5F\u80FD\u3067\u3059",de:"Funktion ab abteilung",fr:"Fonction du d\xE9partement",id:"Fungsi departemen"},{key:"LDAP\u767B\u5F55",zh:"","zh-CHT":"LDAP\u767B\u9304",en:"LDAP login",ko:"Ldap \uB85C\uADF8\uC778",ja:"LDAP\u30ED\u30B0\u30A4\u30F3\u3067\u3059",de:"LDAP loggt sich ein",fr:"Connexion avec LDAP",id:"Log masuk LDAP"},{key:"\u8868\u60C5\u56DE\u590D",zh:"","zh-CHT":"\u8868\u60C5\u56DE\u8986",en:"Expression response",ko:"\uC774\uBAA8\uD2F0\uCF58 \uB2F5\uC7A5",ja:"\u30B9\u30BF\u30F3\u30D7\u30EC\u30B9\u3067\u3059",de:"Emoticon-antworten antworten.",fr:"Emoji r\xE9pondre \xE0",id:"Balas ekspresi"},{key:"\u4EFB\u52A1\u91CD\u590D\u5468\u671F",zh:"","zh-CHT":"\u4EFB\u52D9\u91CD\u8907\u9031\u671F",en:"Task repetition cycle",ko:"\uC791\uC5C5 \uBC18\uBCF5 \uC8FC\uAE30",ja:"\u7E70\u308A\u8FD4\u3057\u306E\u30B5\u30A4\u30AF\u30EB\u3067\u3059",de:"Mission dupliziert sich.",fr:"Cycle de r\xE9p\xE9tition des t\xE2ches",id:"Siklus tugas berulang"},{key:"\u5E10\u53F7\uFF1A(*)\u3001\u5BC6\u7801\uFF1A(*)",zh:"","zh-CHT":"\u5E33\u865F\uFF1A(*)\u3001\u5BC6\u78BC\uFF1A(*)",en:"Account number: (*), Password: (*)",ko:"\uACC4\uC815 \uBC88\uD638:(*), \uBE44\uBC00\uBC88\uD638:(*)",ja:"\u30A2\u30AB\u30A6\u30F3\u30C8\u756A\u53F7:(*)\u3001\u30D1\u30B9\u30EF\u30FC\u30C9:(*)\u3067\u3059\u3002",de:"Kontonummer (*), passwort (*)",fr:"Num\xE9ro de compte :(*), mot de passe :(*)",id:"Akun :(*), kata sandi: *"},{key:"\u90AE\u7BB1\u5730\u5740\uFF1A(*)",zh:"","zh-CHT":"\u90F5\u7BB1\u5730\u5740\uFF1A(*)",en:"Email Address: (*)",ko:"\uC804\uC790\uC6B0\uD3B8 \uC8FC\uC18C:(*)",ja:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9:(*)\u3067\u3059\u3002",de:"Posteingang :(*)",fr:"Adresse e-mail :(*)",id:"Alamat surat :(*)"},{key:"(*)\u4EBA",zh:"","zh-CHT":"(*)\u4EBA",en:"(*) people",ko:"(*)",ja:"(*)\u4EBA\u3067\u3059",de:"(*) menschen",fr:"(*)",id:"(*) orang"}])},mounted(){this.getSetting(),this.getShowItem()},computed:{appTitle(){return`${this.$L("\u9009\u62E9\u9002\u5408\u4F60\u7684")} ${window.systemInfo.title||"DooTask"}`}},methods:{onLanguage(e){c(e)},goHome(){this.goForward({name:"index",query:{action:"index"}})},getSetting(){this.$store.dispatch("call",{url:"system/setting"}).then(({data:e})=>{this.systemConfig=e})},getShowItem(){this.$store.dispatch("call",{url:"system/get/showitem"}).then(({data:e})=>{this.showItem=e}).catch(e=>{this.showItem={}})}}},i={};var m=o(v,p,h,!1,k,"5604dc11",null,null);function k(e){for(let t in i)this[t]=i[t]}var b=function(){return m.exports}();export{b as default}; +import{n as o,l as r,a as l,b as d,s as c}from"./app.28437e7d.js";import{U as u}from"./UpdateLog.a78387dc.js";var p=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"page-plans no-dark-content"},[a("PageTitle",{attrs:{title:e.appTitle}}),a("div",{staticClass:"top-bg"}),a("div",{staticClass:"top-menu"},[a("div",{staticClass:"header"},[a("div",{staticClass:"z-row"},[a("div",{staticClass:"header-col-sub"},[a("div",{staticClass:"logo",on:{click:e.goHome}})]),a("div",{staticClass:"z-1"},[a("dl",[a("dd",[a("div",{staticClass:"right-info",on:{click:e.goHome}},[e._v(e._s(e.$L("\u8FD4\u56DE\u9996\u9875")))]),e.showItem.updateLog?a("div",{staticClass:"right-info",on:{click:function(s){e.uplogShow=!0}}},[e._v(e._s(e.$L("\u66F4\u65B0\u65E5\u5FD7")))]):e._e(),a("a",{staticClass:"right-info item-center",attrs:{target:"_blank",href:"https://github.com/kuaifan/dootask"}},[a("Icon",{staticClass:"right-icon",attrs:{type:"logo-github"}})],1),a("Dropdown",{staticClass:"right-info",attrs:{trigger:"click"},on:{"on-click":e.onLanguage}},[a("div",{staticClass:"item-center"},[a("Icon",{staticClass:"right-icon",attrs:{type:"md-globe"}}),a("Icon",{attrs:{type:"md-arrow-dropdown"}})],1),a("Dropdown-menu",{attrs:{slot:"list"},slot:"list"},e._l(e.languageList,function(s,n){return a("Dropdown-item",{key:n,attrs:{name:n,selected:e.languageType===n}},[e._v(e._s(s))])}),1)],1)],1)])])])])]),a("div",{staticClass:"banner"},[a("div",{staticClass:"banner-title"},[e._v(" "+e._s(e.$L("\u9009\u62E9\u9002\u5408\u60A8\u7684\u7248\u672C"))+" ")]),a("div",{staticClass:"banner-desc"},[e._v(" "+e._s(e.$L("DooTask \u662F\u65B0\u4E00\u4EE3\u56E2\u961F\u534F\u4F5C\u5E73\u53F0\uFF0C\u60A8\u53EF\u4EE5\u6839\u636E\u60A8\u56E2\u961F\u7684\u9700\u6C42\uFF0C\u9009\u62E9\u5408\u9002\u7684\u4EA7\u54C1\u529F\u80FD\u3002"))+" "),a("br"),e._v(" "+e._s(e.$L("\u4ECE\u73B0\u5728\u5F00\u59CB\uFF0CDooTask \u4E3A\u4E16\u754C\u5404\u5730\u7684\u56E2\u961F\u63D0\u4F9B\u652F\u6301\uFF0C\u63A2\u7D22\u9002\u5408\u60A8\u7684\u9009\u9879\u3002"))+" ")]),a("div",{staticClass:"plans-table"},[a("div",{staticClass:"plans-table-bd plans-table-info"},[a("div",{staticClass:"plans-table-item first"},[a("div",{staticClass:"plans-table-info-th"}),a("div",{staticClass:"plans-table-info-price"},[a("em",[e._v(e._s(e.$L("\u4EF7\u683C")))])]),a("div",{staticClass:"plans-table-info-desc"},[a("em",[e._v(e._s(e.$L("\u6982\u8FF0")))])]),a("div",{staticClass:"plans-table-info-desc"},[a("em",[e._v(e._s(e.$L("\u4EBA\u6570")))])]),a("div",{staticClass:"plans-table-info-desc"},[a("em",[e._v(e._s(e.$L("\u6388\u6743\u65B9\u5F0F")))])]),a("div",{staticClass:"plans-table-info-btn"})]),a("div",{staticClass:"plans-table-item",class:{active:e.active==1},on:{mouseenter:function(s){e.active=1}}},[a("div",{staticClass:"plans-table-info-th"},[e._v(e._s(e.$L("\u666E\u901A\u7248")))]),a("div",{staticClass:"plans-table-info-price"},[a("ImgView",{staticClass:"plans-version",attrs:{src:"images/pro/free.png"}}),e._m(0)],1),a("div",{staticClass:"plans-table-info-desc"},[e._v(e._s(e.$L("\u529F\u80FD\u8F83\u5C11\u53EF\u80FD\u4F1A\u505C\u66F4")))]),a("div",{staticClass:"plans-table-info-desc"},[e._v(e._s(e.$L("\u65E0\u9650\u5236")))]),a("div",{staticClass:"plans-table-info-desc"},[e._v(e._s(e.$L("\u65E0\u987B\u6388\u6743")))]),a("div",{staticClass:"plans-table-info-btn"},[a("div",{staticClass:"plans-info-btns"},[a("a",{staticClass:"github",attrs:{href:"https://github.com/kuaifan/dootask/tree/v0.13.0",target:"_blank"}},[a("Icon",{attrs:{type:"logo-github"}})],1)])])]),a("div",{staticClass:"plans-table-item",class:{active:e.active==2},on:{mouseenter:function(s){e.active=2}}},[a("div",{staticClass:"plans-table-info-th"},[e._v(e._s(e.$L("Pro\u514D\u8D39\u7248")))]),a("div",{staticClass:"plans-table-info-price"},[a("ImgView",{staticClass:"plans-version",attrs:{src:"images/pro/free.png"}}),e._m(1)],1),a("div",{staticClass:"plans-table-info-desc"},[e._v(e._s(e.$L("\u62E5\u6709\u6700\u65B0\u7248\u672C\u6240\u6709\u529F\u80FD")))]),a("div",{staticClass:"plans-table-info-desc"},[e._v(e._s(e.$L("3\u4EBA")))]),a("div",{staticClass:"plans-table-info-desc"},[e._v("License")]),a("div",{staticClass:"plans-table-info-btn"},[a("div",{staticClass:"plans-info-btns"},[a("a",{staticClass:"github",attrs:{href:"https://github.com/kuaifan/dootask/tree/pro",target:"_blank"}},[a("Icon",{attrs:{type:"logo-github"}})],1)])])]),a("div",{staticClass:"plans-table-item",class:{active:e.active==3},on:{mouseenter:function(s){e.active=3}}},[a("div",{staticClass:"plans-table-info-th"},[e._v(e._s(e.$L("Pro\u8BA2\u9605\u7248"))+" "),a("span",[e._v(e._s(e.$L("\u63A8\u8350")))])]),a("div",{staticClass:"plans-table-info-price"},[a("ImgView",{staticClass:"plans-version",attrs:{src:"images/pro/pro.png"}}),e._m(2)],1),a("div",{staticClass:"plans-table-info-desc"},[e._v(e._s(e.$L("\u62E5\u6709\u6700\u65B0\u7248\u672C\u6240\u6709\u529F\u80FD")))]),a("div",{staticClass:"plans-table-info-desc"},[e._v(e._s(e.$L("\u65E0\u9650\u5236")))]),a("div",{staticClass:"plans-table-info-desc"},[e._v("License")]),a("div",{staticClass:"plans-table-info-btn"},[a("div",{staticClass:"plans-info-btns"},[a("a",{staticClass:"github",attrs:{href:"https://github.com/kuaifan/dootask/tree/pro",target:"_blank"}},[a("Icon",{attrs:{type:"logo-github"}})],1),a("ETooltip",{attrs:{content:e.$L("\u5E10\u53F7\uFF1Aadmin\u3001\u5BC6\u7801\uFF1A123456")}},[a("a",{staticClass:"btn mini",attrs:{href:"https://www.dootask.com",target:"_blank"}},[e._v(e._s(e.$L("\u4F53\u9A8CDEMO")))])])],1)])]),a("div",{staticClass:"plans-table-item",class:{active:e.active==4},on:{mouseenter:function(s){e.active=4}}},[a("div",{staticClass:"plans-table-info-th"},[e._v(e._s(e.$L("\u5B9A\u5236\u7248")))]),a("div",{staticClass:"plans-table-info-price"},[a("ImgView",{staticClass:"plans-version",attrs:{src:"images/pro/custom.png"}}),a("div",{staticClass:"currency"},[a("em",{staticClass:"custom"},[e._v(e._s(e.$L("\u81EA\u5B9A\u4E49")))])])],1),a("div",{staticClass:"plans-table-info-desc"},[e._v(e._s(e.$L("\u6839\u636E\u60A8\u7684\u9700\u6C42\u91CF\u8EAB\u5B9A\u5236")))]),a("div",{staticClass:"plans-table-info-desc"},[e._v(e._s(e.$L("\u65E0\u9650\u5236")))]),a("div",{staticClass:"plans-table-info-desc"},[e._v("License")]),a("div",{staticClass:"plans-table-info-btn"},[a("a",{staticClass:"btn btn-contact",attrs:{href:"javascript:void(0)"},on:{click:function(s){e.contactShow=!0}}},[e._v(e._s(e.$L("\u8054\u7CFB\u6211\u4EEC")))])])])]),a("div",{staticClass:"plans-accordion-head",class:{"plans-accordion-close":!e.body1},on:{click:function(s){e.body1=!e.body1}}},[a("div",{staticClass:"first"},[a("span",[e._v(e._s(e.$L("\u5E94\u7528\u652F\u6301")))])]),a("div",{staticClass:"plans-table-item",class:{active:e.active==1},on:{mouseenter:function(s){e.active=1}}}),a("div",{staticClass:"plans-table-item",class:{active:e.active==2},on:{mouseenter:function(s){e.active=2}}}),a("div",{staticClass:"plans-table-item",class:{active:e.active==3},on:{mouseenter:function(s){e.active=3}}}),a("div",{staticClass:"plans-table-item",class:{active:e.active==4},on:{mouseenter:function(s){e.active=4}}}),a("span",[a("Icon",{attrs:{type:"ios-arrow-down"}})],1)]),e.body1?a("div",{staticClass:"plans-accordion-body"},[a("div",{staticClass:"plans-table-bd plans-table-app"},[a("div",{staticClass:"plans-table-item first"},e._l(e.functions,function(s){return a("div",{staticClass:"plans-table-td"},[e._v(e._s(e.$L(s.label)))])}),0),a("div",{staticClass:"plans-table-item",class:{active:e.active==1},on:{mouseenter:function(s){e.active=1}}},e._l(e.functions,function(s){return a("div",{staticClass:"plans-table-td"},[s.supports[0]?a("Icon",{attrs:{type:"md-checkmark"}}):a("span",[e._v(" - ")])],1)}),0),a("div",{staticClass:"plans-table-item",class:{active:e.active==2},on:{mouseenter:function(s){e.active=2}}},e._l(e.functions,function(s){return a("div",{staticClass:"plans-table-td"},[s.supports[1]?a("Icon",{attrs:{type:"md-checkmark"}}):a("span",[e._v(" - ")])],1)}),0),a("div",{staticClass:"plans-table-item",class:{active:e.active==3},on:{mouseenter:function(s){e.active=3}}},e._l(e.functions,function(s){return a("div",{staticClass:"plans-table-td"},[s.supports[2]?a("Icon",{attrs:{type:"md-checkmark"}}):a("span",[e._v(" - ")])],1)}),0),a("div",{staticClass:"plans-table-item",class:{active:e.active==4},on:{mouseenter:function(s){e.active=4}}},e._l(e.functions,function(s){return a("div",{staticClass:"plans-table-td"},[s.supports[3]?a("Icon",{attrs:{type:"md-checkmark"}}):a("span",[e._v(" - ")])],1)}),0)])]):e._e(),a("div",{staticClass:"plans-accordion-head",class:{"plans-accordion-close":!e.body2},on:{click:function(s){e.body2=!e.body2}}},[a("div",{staticClass:"first"},[a("span",[e._v(e._s(e.$L("\u670D\u52A1\u652F\u6301")))])]),a("div",{staticClass:"plans-table-item",class:{active:e.active==1},on:{mouseenter:function(s){e.active=1}}}),a("div",{staticClass:"plans-table-item",class:{active:e.active==2},on:{mouseenter:function(s){e.active=2}}}),a("div",{staticClass:"plans-table-item",class:{active:e.active==3},on:{mouseenter:function(s){e.active=3}}}),a("div",{staticClass:"plans-table-item",class:{active:e.active==4},on:{mouseenter:function(s){e.active=4}}}),a("span",[a("Icon",{attrs:{type:"ios-arrow-down"}})],1)]),e.body2?a("div",{staticClass:"plans-accordion-body"},[a("div",{staticClass:"plans-table-bd plans-table-app plans-table-service"},[a("div",{staticClass:"plans-table-item first"},[e._l(e.services,function(s){return a("div",{staticClass:"plans-table-td"},[e._v(" "+e._s(e.$L(s.label))+" "),s.sublabel?a("span",[e._v(e._s(e.$L(s.sublabel)))]):e._e()])}),a("div",{staticClass:"plans-table-info-btn"})],2),a("div",{staticClass:"plans-table-item",class:{active:e.active==1},on:{mouseenter:function(s){e.active=1}}},[e._l(e.services,function(s){return a("div",{staticClass:"plans-table-td"},[s.supports[0]?a("Icon",{attrs:{type:"md-checkmark"}}):a("span",[e._v(" - ")])],1)}),a("div",{staticClass:"plans-table-info-btn"},[a("div",{staticClass:"plans-info-btns"},[a("a",{staticClass:"github",attrs:{href:"https://github.com/kuaifan/dootask/tree/v0.13.0",target:"_blank"}},[a("Icon",{attrs:{type:"logo-github"}})],1)])])],2),a("div",{staticClass:"plans-table-item",class:{active:e.active==2},on:{mouseenter:function(s){e.active=2}}},[e._l(e.services,function(s){return a("div",{staticClass:"plans-table-td"},[s.supports[1]?a("Icon",{attrs:{type:"md-checkmark"}}):a("span",[e._v(" - ")])],1)}),a("div",{staticClass:"plans-table-info-btn"},[a("div",{staticClass:"plans-info-btns"},[a("a",{staticClass:"github",attrs:{href:"https://github.com/kuaifan/dootask/tree/pro",target:"_blank"}},[a("Icon",{attrs:{type:"logo-github"}})],1)])])],2),a("div",{staticClass:"plans-table-item",class:{active:e.active==3},on:{mouseenter:function(s){e.active=3}}},[e._l(e.services,function(s){return a("div",{staticClass:"plans-table-td"},[s.supports[2]?a("Icon",{attrs:{type:"md-checkmark"}}):a("span",[e._v(" - ")])],1)}),a("div",{staticClass:"plans-table-info-btn"},[a("div",{staticClass:"plans-info-btns"},[a("a",{staticClass:"github",attrs:{href:"https://github.com/kuaifan/dootask/tree/pro",target:"_blank"}},[a("Icon",{attrs:{type:"logo-github"}})],1),a("ETooltip",{attrs:{content:e.$L("\u5E10\u53F7\uFF1Aadmin\u3001\u5BC6\u7801\uFF1A123456")}},[a("a",{staticClass:"btn mini",attrs:{href:"https://www.dootask.com",target:"_blank"}},[e._v(e._s(e.$L("\u4F53\u9A8CDEMO")))])])],1)])],2),a("div",{staticClass:"plans-table-item",class:{active:e.active==4},on:{mouseenter:function(s){e.active=4}}},[e._l(e.services,function(s){return a("div",{staticClass:"plans-table-td"},[s.supports[3]?a("Icon",{attrs:{type:"md-checkmark"}}):a("span",[e._v(" - ")])],1)}),a("div",{staticClass:"plans-table-info-btn"},[a("a",{staticClass:"btn btn-contact",attrs:{href:"javascript:void(0)"},on:{click:function(s){e.contactShow=!0}}},[e._v(e._s(e.$L("\u8054\u7CFB\u6211\u4EEC")))])])],2)])]):e._e()])]),a("div",{staticClass:"container-fluid"},[a("div",{staticClass:"fluid-info fluid-info-1"},[a("div",{staticClass:"fluid-info-item"},[a("div",{staticClass:"info-title"},[e._v(" "+e._s(e.$L("\u591A\u79CD\u90E8\u7F72\u65B9\u5F0F\u968F\u5FC3\u9009\u62E9"))+" ")]),a("div",{staticClass:"info-function"},[a("div",{staticClass:"func-item"},[a("div",{staticClass:"image"},[a("ImgView",{attrs:{src:"images/pro/1.svg"}})],1),a("div",{staticClass:"func-desc"},[a("div",{staticClass:"desc-title"},[e._v(" "+e._s(e.$L("\u516C\u6709\u4E91"))+" ")]),a("div",{staticClass:"desc-text"},[e._v(" "+e._s(e.$L("\u65E0\u9700\u672C\u5730\u73AF\u5883\u51C6\u5907\uFF0C\u6309\u9700\u8D2D\u4E70\u5E10\u6237\uFF0C\u4E13\u4E1A\u56E2\u961F\u63D0\u4F9B\u8FD0\u7EF4\u4FDD\u969C\u670D\u52A1\uFF0C\u4E24\u5468\u4E00\u6B21\u7684\u7248\u672C\u8FED\u4EE3"))+" ")])])]),a("div",{staticClass:"func-item"},[a("div",{staticClass:"image"},[a("ImgView",{attrs:{src:"images/pro/2.svg"}})],1),a("div",{staticClass:"func-desc"},[a("div",{staticClass:"desc-title"},[e._v(" "+e._s(e.$L("\u79C1\u6709\u4E91"))+" ")]),a("div",{staticClass:"desc-text"},[e._v(" "+e._s(e.$L("\u4F01\u4E1A\u9694\u79BB\u7684\u4E91\u670D\u52A1\u5668\u73AF\u5883\uFF0C\u9AD8\u53EF\u7528\u6027\uFF0C\u7F51\u7EDC\u53CA\u5E94\u7528\u5C42\u5B8C\u6574\u9694\u79BB\uFF0C\u6570\u636E\u9AD8\u5EA6\u81EA\u4E3B\u53EF\u63A7"))+" ")])])]),a("div",{staticClass:"func-item"},[a("div",{staticClass:"image image-80"},[a("ImgView",{attrs:{src:"images/pro/3.svg"}})],1),a("div",{staticClass:"func-desc"},[a("div",{staticClass:"desc-title"},[e._v(" "+e._s(e.$L("\u672C\u5730\u670D\u52A1\u5668"))+" ")]),a("div",{staticClass:"desc-text"},[e._v(" "+e._s(e.$L("\u57FA\u4E8E Docker \u7684\u5BB9\u5668\u5316\u90E8\u7F72\uFF0C\u652F\u6301\u9AD8\u53EF\u7528\u96C6\u7FA4\uFF0C\u5FEB\u901F\u5F39\u6027\u6269\u5C55\uFF0C\u6570\u636E\u9AD8\u5EA6\u81EA\u4E3B\u53EF\u63A7"))+" ")])])])])])]),a("div",{staticClass:"fluid-info"},[a("div",{staticClass:"fluid-info-item"},[a("div",{staticClass:"info-title"},[e._v(" "+e._s(e.$L("\u5B8C\u5584\u7684\u670D\u52A1\u652F\u6301\u4F53\u7CFB"))+" ")]),a("div",{staticClass:"info-function"},[a("div",{staticClass:"func-item"},[a("div",{staticClass:"image"},[a("ImgView",{attrs:{src:"images/pro/4.svg"}})],1),a("div",{staticClass:"func-desc"},[a("div",{staticClass:"desc-title"},[e._v(" "+e._s(e.$L("1:1\u5BA2\u6237\u6210\u529F\u987E\u95EE"))+" ")]),a("div",{staticClass:"desc-text"},[e._v(" "+e._s(e.$L("\u8D44\u6DF1\u5BA2\u6237\u6210\u529F\u987E\u95EE\u5BF9\u4F01\u4E1A\u8FDB\u884C\u8C03\u7814\u3001\u6C9F\u901A\u9700\u6C42\u3001\u5236\u5B9A\u4E2A\u6027\u5316\u7684\u89E3\u51B3\u65B9\u6848\uFF0C\u5E2E\u52A9\u4F01\u4E1A\u843D\u5730"))+" ")])])]),a("div",{staticClass:"func-item"},[a("div",{staticClass:"image image-80"},[a("ImgView",{attrs:{src:"images/pro/5.svg"}})],1),a("div",{staticClass:"func-desc"},[a("div",{staticClass:"desc-title"},[e._v(" "+e._s(e.$L("\u5B8C\u5584\u7684\u57F9\u8BAD\u4F53\u7CFB"))+" ")]),a("div",{staticClass:"desc-text"},[e._v(" "+e._s(e.$L("\u6839\u636E\u9700\u6C42\u5B9A\u5236\u57F9\u8BAD\u5185\u5BB9\uFF0C\u4E3A\u4E0D\u540C\u89D2\u8272\u7ED9\u51FA\u4E13\u5C5E\u57F9\u8BAD\u65B9\u6848\uFF0C\u7EBF\u4E0A\u7EBF\u4E0B\u57F9\u8BAD\u6E20\u9053\u5168\u8986\u76D6"))+" ")])])]),a("div",{staticClass:"func-item"},[a("div",{staticClass:"image"},[a("ImgView",{attrs:{src:"images/pro/6.svg"}})],1),a("div",{staticClass:"func-desc"},[a("div",{staticClass:"desc-title"},[e._v(" "+e._s(e.$L("\u5168\u9762\u7684\u652F\u6301\u670D\u52A1"))+" ")]),a("div",{staticClass:"desc-text"},[e._v(" "+e._s(e.$L("\u591A\u79CD\u652F\u6301\u670D\u52A1\u8BA9\u4F01\u4E1A\u65E0\u540E\u987E\u4E4B\u5FE7\uFF0C7x24 \u7EBF\u4E0A\u652F\u6301\u3001\u5728\u7EBF\u5DE5\u5355\u3001\u4E2D\u82F1\u6587\u90AE\u4EF6\u652F\u6301\u3001\u4E0A\u95E8\u652F\u6301"))+" ")])])])])])]),a("div",{staticClass:"fluid-info fluid-info-3"},[a("div",{staticClass:"fluid-info-item"},[a("div",{staticClass:"info-title"},[e._v(" "+e._s(e.$L("\u591A\u91CD\u5B89\u5168\u7B56\u7565\u4FDD\u62A4\u6570\u636E"))+" ")]),a("div",{staticClass:"info-function"},[a("div",{staticClass:"func-item"},[a("div",{staticClass:"image"},[a("ImgView",{attrs:{src:"images/pro/7.svg"}})],1),a("div",{staticClass:"func-desc"},[a("div",{staticClass:"desc-title"},[e._v(" "+e._s(e.$L("\u9AD8\u53EF\u7528\u6027\u4FDD\u8BC1"))+" ")]),a("div",{staticClass:"desc-text"},[e._v(" "+e._s(e.$L("\u591A\u91CD\u65B9\u5F0F\u4FDD\u8BC1\u6570\u636E\u4E0D\u4E22\u5931\uFF0C\u9AD8\u53EF\u7528\u6545\u969C\u8F6C\u79FB\uFF0C\u5F02\u5730\u5BB9\u707E\u5907\u4EFD\uFF0C99.99%\u53EF\u7528\u6027\u4FDD\u8BC1"))+" ")])])]),a("div",{staticClass:"func-item"},[a("div",{staticClass:"image image-80"},[a("ImgView",{attrs:{src:"images/pro/8.svg"}})],1),a("div",{staticClass:"func-desc"},[a("div",{staticClass:"desc-title"},[e._v(" "+e._s(e.$L("\u6570\u636E\u52A0\u5BC6"))+" ")]),a("div",{staticClass:"desc-text"},[e._v(" "+e._s(e.$L("\u591A\u91CD\u65B9\u5F0F\u4FDD\u8BC1\u6570\u636E\u4E0D\u6CC4\u6F0F\uFF0C\u57FA\u4E8E TLS \u7684\u6570\u636E\u52A0\u5BC6\u4F20\u8F93\uFF0CDDOS \u9632\u5FA1\u548C\u5165\u4FB5\u68C0\u6D4B"))+" ")])])]),a("div",{staticClass:"func-item"},[a("div",{staticClass:"image image-50"},[a("ImgView",{attrs:{src:"images/pro/9.svg"}})],1),a("div",{staticClass:"func-desc"},[a("div",{staticClass:"desc-title"},[e._v(" "+e._s(e.$L("\u5E10\u6237\u5B89\u5168"))+" ")]),a("div",{staticClass:"desc-text"},[e._v(" "+e._s(e.$L("\u591A\u91CD\u65B9\u5F0F\u4FDD\u8BC1\u5E10\u6237\u5B89\u5168\uFF0C\u8FDC\u7A0B\u4F1A\u8BDD\u63A7\u5236\uFF0C\u8BBE\u5907\u7ED1\u5B9A\uFF0C\u5B89\u5168\u65E5\u5FD7\u4EE5\u53CA\u624B\u52BF\u5BC6\u7801"))+" ")])])])])])])]),e.systemConfig.home_footer?a("div",{staticClass:"contact-footer"},[a("span",{domProps:{innerHTML:e._s(e.systemConfig.home_footer)}})]):e._e(),a("Modal",{attrs:{title:e.$L("\u8054\u7CFB\u6211\u4EEC"),width:"430"},model:{value:e.contactShow,callback:function(s){e.contactShow=s},expression:"contactShow"}},[a("p",[e._v(e._s(e.$L("\u5982\u6709\u4EFB\u4F55\u95EE\u9898\uFF0C\u6B22\u8FCE\u4F7F\u7528\u90AE\u7BB1\u4E0E\u6211\u4EEC\u8054\u7CFB\u3002")))]),a("p",[e._v(e._s(e.$L("\u90AE\u7BB1\u5730\u5740\uFF1Aaipaw@live.cn")))]),a("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"primary"},on:{click:function(s){e.contactShow=!1}}},[e._v(e._s(e.$L("\u786E\u5B9A")))])],1)]),a("UpdateLog",{attrs:{"update-log":e.showItem.updateLog,"update-ver":e.showItem.updateVer},model:{value:e.uplogShow,callback:function(s){e.uplogShow=s},expression:"uplogShow"}})],1)},h=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"currency"},[a("em",[e._v("0")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"currency"},[a("em",[e._v("0")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"currency"},[a("em",[e._v("18800")])])}];const v={components:{UpdateLog:u},data(){return{languageList:r,languageType:l,active:3,body1:!0,body2:!0,contactShow:!1,systemConfig:{},showItem:{pro:!1,github:"",updateLog:"",updateVer:""},uplogShow:!1,functions:[{label:"\u9879\u76EE\u7BA1\u7406",supports:[1,1,1,1]},{label:"\u6587\u4EF6\u7BA1\u7406",supports:[1,1,1,1]},{label:"\u56E2\u961F\u7BA1\u7406",supports:[1,1,1,1]},{label:"\u5373\u65F6\u804A\u5929",supports:[1,1,1,1]},{label:"\u5B50\u4EFB\u52A1",supports:[1,1,1,1]},{label:"\u56FD\u9645\u5316",supports:[1,1,1,1]},{label:"\u7518\u7279\u56FE",supports:[1,1,1,1]},{label:"\u4EFB\u52A1\u52A8\u6001",supports:[1,1,1,1]},{label:"\u5BFC\u51FA\u4EFB\u52A1",supports:[1,1,1,1]},{label:"\u65E5\u7A0B",supports:[1,1,1,1]},{label:"\u5468\u62A5/\u65E5\u62A5",supports:[1,1,1,1]},{label:"\u521B\u5EFA\u7FA4\u804A",supports:[1,1,1,1]},{label:"\u9879\u76EE\u7FA4\u804A",supports:[1,1,1,1]},{label:"\u9879\u76EE\u641C\u7D22",supports:[1,1,1,1]},{label:"\u4EFB\u52A1\u7C7B\u578B",supports:[1,1,1,1]},{label:"\u6587\u4EF6\u641C\u7D22",supports:[1,1,1,1]},{label:"\u4E8C\u7EF4\u7801\u767B\u5F55",supports:[0,1,1,1]},{label:"\u804A\u5929\u673A\u5668\u4EBA",supports:[0,1,1,1]},{label:"\u6D88\u606F\u514D\u6253\u6270",supports:[0,1,1,1]},{label:"\u6D88\u606F\u6807\u6CE8",supports:[0,1,1,1]},{label:"\u53D1\u9001\u8BED\u97F3\u6D88\u606F",supports:[0,1,1,1]},{label:"\u4F1A\u8BAE\u529F\u80FD",supports:[0,1,1,1]},{label:"\u90E8\u95E8\u529F\u80FD",supports:[0,1,1,1]},{label:"\u7B7E\u5230\u529F\u80FD",supports:[0,1,1,1]},{label:"LDAP\u767B\u5F55",supports:[0,1,1,1]},{label:"\u4E34\u65F6\u5E10\u53F7",supports:[0,1,1,1]},{label:"\u533F\u540D\u6D88\u606F",supports:[0,1,1,1]},{label:"\u56DE\u590D\u6D88\u606F",supports:[0,1,1,1]},{label:"\u8868\u60C5\u56DE\u590D",supports:[0,1,1,1]},{label:"\u641C\u7D22\u6D88\u606F",supports:[0,1,1,1]},{label:"\u4EFB\u52A1\u91CD\u590D\u5468\u671F",supports:[0,1,1,1]},{label:"Mac/PC\u5BA2\u6237\u7AEF",supports:[0,1,1,1]},{label:"iOS/Android\u5BA2\u6237\u7AEF",supports:[0,1,1,1]}],services:[{label:"\u81EA\u52A9\u652F\u6301",sublabel:"\uFF08Issues/\u793E\u7FA4\uFF09",supports:[1,1,1,1]},{label:"\u652F\u6301\u79C1\u6709\u5316\u90E8\u7F72",supports:[1,1,1,1]},{label:"\u7ED1\u5B9A\u81EA\u6709\u57DF\u540D",supports:[1,1,1,1]},{label:"\u4E8C\u6B21\u5F00\u53D1",supports:[1,1,1,1]},{label:"\u4E8C\u6B21\u5F00\u53D1\u54A8\u8BE2\u670D\u52A1",supports:[0,0,1,1]},{label:"\u5141\u8BB8\u9690\u85CF\u6216\u5B9A\u5236\u4EA7\u54C1\u540D",supports:[0,0,1,1]},{label:"\u5728\u7EBF\u54A8\u8BE2\u652F\u6301",supports:[0,0,1,1]},{label:"\u7535\u8BDD\u54A8\u8BE2\u652F\u6301",supports:[0,0,1,1]},{label:"\u4E2D\u82F1\u6587\u90AE\u4EF6\u652F\u6301",supports:[0,0,1,1]},{label:"\u4E00\u5BF9\u4E00\u5BA2\u6237\u987E\u95EE",supports:[0,0,1,1]},{label:"\u4EA7\u54C1\u57F9\u8BAD",supports:[0,0,1,1]},{label:"\u4E0A\u95E8\u652F\u6301",supports:[0,0,1,1]},{label:"\u4E13\u5C5E\u5BA2\u6237\u6210\u529F\u7ECF\u7406",supports:[0,0,1,1]},{label:"\u514D\u8D39\u63D0\u4F9B\u4E00\u6B21\u5185\u8BAD",supports:[0,0,1,1]},{label:"\u660E\u661F\u5BA2\u6237\u6848\u4F8B",supports:[0,0,1,1]}]}},created(){d([{key:"\u591A\u79CD\u652F\u6301\u670D\u52A1\u8BA9\u4F01\u4E1A\u65E0\u540E\u987E\u4E4B\u5FE7\uFF0C7x24 \u7EBF\u4E0A\u652F\u6301\u3001\u5728\u7EBF\u5DE5\u5355\u3001\u4E2D\u82F1\u6587\u90AE\u4EF6\u652F\u6301\u3001\u4E0A\u95E8\u652F\u6301",zh:"","zh-CHT":"\u591A\u7A2E\u652F\u6301\u670D\u52D9\u8B93\u4F01\u696D\u7121\u5F8C\u9867\u4E4B\u6182\uFF0C7x24 \u7DDA\u4E0A\u652F\u6301\u3001\u5728\u7DDA\u5DE5\u55AE\u3001\u4E2D\u82F1\u6587\u90F5\u4EF6\u652F\u6301\u3001\u4E0A\u9580\u652F\u6301",en:"A variety of support services let the enterprise no worries, 7x24 online support, online work order, English and Chinese email support, door-to-door support",ko:"\uB2E4\uC591\uD55C \uC9C0\uC6D0 \uC11C\uBE44\uC2A4, 7x24 \uC628\uB77C\uC778 \uC9C0\uC6D0, \uC628\uB77C\uC778 \uC5C5\uBB34 \uC8FC\uBB38, \uC911\uC601\uBB38 \uC774\uBA54\uC77C \uC9C0\uC6D0, \uBC29\uBB38 \uC9C0\uC6D0 \uB4F1 \uAE30\uC5C5\uC774 \uADFC\uC2EC\uAC71\uC815\uC774 \uC5C6\uB3C4\uB85D \uD569\uB2C8\uB2E4",ja:"7x24\u30AA\u30F3\u30E9\u30A4\u30F3\u30B5\u30DD\u30FC\u30C8\u3001\u30AA\u30F3\u30E9\u30A4\u30F3\u30DE\u30CB\u30E5\u30A2\u30EB\u3001\u4E2D\u56FD\u8A9E\u3068\u82F1\u8A9E\u306E\u30E1\u30FC\u30EB\u30B5\u30DD\u30FC\u30C8\u3001\u8A2A\u554F\u30B5\u30DD\u30FC\u30C8\u306A\u3069\u3001\u69D8\u3005\u306A\u30B5\u30DD\u30FC\u30C8\u30B5\u30FC\u30D3\u30B9\u304C\u3042\u308A\u307E\u3059\u3002",de:"Eine reihe Von unterst\xFCtzungsdiensten hat dieses unternehmen unerreichbar gemacht: online-unterst\xFCtzung auf der 7x24 online-seite, online-unterst\xFCtzung, chinesische und englische mails sowie unterst\xFCtzung zu hause",fr:"Une vari\xE9t\xE9 de services de soutien pour les entreprises sans soucis, 7x24 support en ligne, ordres de travail en ligne, chinois et anglais soutien par courrier \xE9lectronique, soutien \xE0 la porte",id:"Berbagai layanan dukungan telah membantu usaha mereka"},{key:"\u65E0\u9700\u672C\u5730\u73AF\u5883\u51C6\u5907\uFF0C\u6309\u9700\u8D2D\u4E70\u5E10\u6237\uFF0C\u4E13\u4E1A\u56E2\u961F\u63D0\u4F9B\u8FD0\u7EF4\u4FDD\u969C\u670D\u52A1\uFF0C\u4E24\u5468\u4E00\u6B21\u7684\u7248\u672C\u8FED\u4EE3",zh:"","zh-CHT":"\u7121\u9700\u672C\u5730\u74B0\u5883\u6E96\u5099\uFF0C\u6309\u9700\u8CFC\u8CB7\u5E33\u6236\uFF0C\u5C08\u696D\u5718\u968A\u63D0\u4F9B\u904B\u7DAD\u4FDD\u969C\u670D\u52D9\uFF0C\u5169\u9031\u4E00\u6B21\u7684\u7248\u672C\u8FED\u4EE3",en:"No need for local environment preparation, purchase accounts on demand, professional team to provide operation and maintenance services, biweekly version iteration",ko:"\uC9C0\uC5ED \uD658\uACBD\uC5D0 \uB300\uD55C \uC900\uBE44 \uC5C6\uC774 \uC8FC\uBB38\uD615 \uACC4\uC815\uC744 \uAD6C\uC785\uD558\uBA70 \uC804\uBB38 \uD300\uC5D0 \uC758\uD574 \uC6B4\uC601 \uAD00\uB9AC \uC11C\uBE44\uC2A4\uAC00 \uC81C\uACF5\uB418\uBA70 2\uC8FC\uC5D0 \uD55C \uBC88\uC529 \uBC84\uC804\uC744 \uBC18\uBCF5\uD569\uB2C8\uB2E4",ja:"\u30ED\u30FC\u30AB\u30EB\u74B0\u5883\u306E\u6E96\u5099\u306F\u5FC5\u8981\u3042\u308A\u307E\u305B\u3093\u3001\u30AA\u30F3\u30C7\u30DE\u30F3\u30C9\u3067\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u8CFC\u5165\u3001\u5C02\u9580\u30C1\u30FC\u30E0\u306B\u3088\u308B\u904B\u7528\u30FB\u4FDD\u5B88\u4FDD\u8A3C\u30B5\u30FC\u30D3\u30B9\u30012\u9031\u9593\u306B1\u56DE\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u53CD\u5FA9",de:"Fachgruppen liefern personensicherungsdienste, ohne dass die \xF6rtlichen gegebenheiten ber\xFCcksichtigt werden m\xFCssen, und liefern zweiw\xF6chige versionen Von isps",fr:"Aucune pr\xE9paration de l\u2019environnement local, achat de compte \xE0 la demande, service de garantie o&e par une \xE9quipe sp\xE9cialis\xE9e, it\xE9ration de la version bi-hebdomadaire",id:"Tak perlu persiapan lingkungan lokal, membeli rekening yang diperlukan, dan tim profesional menyediakan layanan pengamanan transportasi, dan iterasi versi dua minggu"},{key:"\u8D44\u6DF1\u5BA2\u6237\u6210\u529F\u987E\u95EE\u5BF9\u4F01\u4E1A\u8FDB\u884C\u8C03\u7814\u3001\u6C9F\u901A\u9700\u6C42\u3001\u5236\u5B9A\u4E2A\u6027\u5316\u7684\u89E3\u51B3\u65B9\u6848\uFF0C\u5E2E\u52A9\u4F01\u4E1A\u843D\u5730",zh:"","zh-CHT":"\u8CC7\u6DF1\u5BA2\u6236\u6210\u529F\u9867\u554F\u5C0D\u4F01\u696D\u9032\u884C\u8ABF\u7814\u3001\u6E9D\u901A\u9700\u6C42\u3001\u5236\u5B9A\u500B\u6027\u5316\u7684\u89E3\u6C7A\u65B9\u6848\uFF0C\u5E6B\u52A9\u4F01\u696D\u843D\u5730",en:"Senior customer success consultant to the enterprise research, communication needs, develop personalized solutions, to help the enterprise landing",ko:"\uBCA0\uD14C\uB791 \uACE0\uAC1D \uC131\uACF5 \uACE0\uBB38\uC740 \uAE30\uC5C5\uC5D0 \uB300\uD574 \uC870\uC0AC \uC5F0\uAD6C\uB97C \uC9C4\uD589\uD558\uACE0, \uC694\uAD6C\uB97C \uC18C\uD1B5\uD558\uBA70, \uAC1C\uC131\uD654\uB41C \uD574\uACB0 \uBC29\uC548\uC744 \uC81C\uC815\uD558\uC5EC \uAE30\uC5C5\uC758 \uC815\uCC29\uC744 \uB3D5\uC2B5\uB2C8\uB2E4",ja:"\u30D9\u30C6\u30E9\u30F3\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u6210\u529F\u30B3\u30F3\u30B5\u30EB\u30BF\u30F3\u30C8\u306F\u3001\u4F01\u696D\u306E\u30CB\u30FC\u30BA\u3092\u8ABF\u67FB\u3057\u3001\u30B3\u30DF\u30E5\u30CB\u30B1\u30FC\u30B7\u30E7\u30F3\u3057\u3001\u7B87\u6027\u5316\u3055\u308C\u305F\u89E3\u6C7A\u6848\u3092\u4F5C\u6210\u3057\u3066\u3001\u4F01\u696D\u306E\u5B9A\u7740\u3092\u652F\u63F4\u3057\u307E\u3059\u3002",de:"Erfahrene berater berater recherchieren, kommunizieren und individuelle l\xF6sungen erarbeiten, die das unternehmen zum scheitern bringen",fr:"Le conseiller senior de succ\xE8s de client effectue des recherches sur les entreprises, communique les besoins, \xE9labore des solutions personnalis\xE9es, aide les entreprises \xE0 atterrir",id:"Konsultan senior yang berhasil melakukan riset, kebutuhan komunikasi, dan resolusi pribadi untuk membantu bisnis ini mendarat"},{key:"\u4F01\u4E1A\u9694\u79BB\u7684\u4E91\u670D\u52A1\u5668\u73AF\u5883\uFF0C\u9AD8\u53EF\u7528\u6027\uFF0C\u7F51\u7EDC\u53CA\u5E94\u7528\u5C42\u5B8C\u6574\u9694\u79BB\uFF0C\u6570\u636E\u9AD8\u5EA6\u81EA\u4E3B\u53EF\u63A7",zh:"","zh-CHT":"\u4F01\u696D\u9694\u96E2\u7684\u96F2\u670D\u52D9\u5668\u74B0\u5883\uFF0C\u9AD8\u53EF\u7528\u6027\uFF0C\u7DB2\u7D61\u53CA\u61C9\u7528\u5C64\u5B8C\u6574\u9694\u96E2\uFF0C\u6578\u64DA\u9AD8\u5EA6\u81EA\u4E3B\u53EF\u63A7",en:"Enterprise isolated cloud server environment, high availability, complete isolation of network and application layer, highly autonomous and controllable data",ko:"\uAE30\uC5C5\uC5D0\uC11C \uACA9\uB9AC\uB41C \uD074\uB77C\uC6B0\uB4DC \uC11C\uBC84 \uD658\uACBD\uC740 \uAC00\uC6A9\uC131\uC774 \uB192\uC544 \uB124\uD2B8\uC6CC\uD06C\uC640 \uC560\uD50C\uB9AC\uCF00\uC774\uC158 \uACC4\uCE35\uC774 \uC644\uC804\uD788 \uACA9\uB9AC\uB418\uACE0 \uB370\uC774\uD130\uAC00 \uACE0\uB3C4\uB85C \uC790\uC728\uC801\uC774\uACE0 \uC81C\uC5B4\uAC00 \uAC00\uB2A5\uD558\uB2E4",ja:"\u4F01\u696D\u304B\u3089\u5206\u96E2\u3055\u308C\u305F\u30AF\u30E9\u30A6\u30C9\u30B5\u30FC\u30D0\u30FC\u74B0\u5883\u3001\u9AD8\u53EF\u7528\u6027\u3001\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u304A\u3088\u3073\u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u5C64\u306E\u5B8C\u5168\u306A\u5206\u96E2\u3001\u30C7\u30FC\u30BF\u306E\u9AD8\u5EA6\u306A\u81EA\u5F8B\u5236\u5FA1\u304C\u53EF\u80FD\u3067\u3059\u3002",de:"Cloud-server-umfeld zur unternehmensquaranting, hohe verf\xFCgbarkeit, vollst\xE4ndige cyber-isolation und vorhersehbare daten",fr:"Environnement de serveur cloud isol\xE9 pour les entreprises, haute disponibilit\xE9, isolation compl\xE8te des couches r\xE9seau et application, haute autonomie et contr\xF4le des donn\xE9es",id:"Lingkungan server awan yang terisolasi dari bisnis, sangat tersedia, jaringan dan lapisan aplikasi aman, dan data sangat otonom"},{key:"\u6839\u636E\u9700\u6C42\u5B9A\u5236\u57F9\u8BAD\u5185\u5BB9\uFF0C\u4E3A\u4E0D\u540C\u89D2\u8272\u7ED9\u51FA\u4E13\u5C5E\u57F9\u8BAD\u65B9\u6848\uFF0C\u7EBF\u4E0A\u7EBF\u4E0B\u57F9\u8BAD\u6E20\u9053\u5168\u8986\u76D6",zh:"","zh-CHT":"\u6839\u64DA\u9700\u6C42\u5B9A\u88FD\u57F9\u8A13\u5167\u5BB9\uFF0C\u7232\u4E0D\u540C\u89D2\u8272\u7D66\u51FA\u5C08\u5C6C\u57F9\u8A13\u65B9\u6848\uFF0C\u7DDA\u4E0A\u7DDA\u4E0B\u57F9\u8A13\u6E20\u9053\u5168\u8986\u84CB",en:"Training content is customized according to the needs, and exclusive training programs are provided for different roles, with full coverage of online and offline training channels",ko:"\uC218\uC694\uC5D0 \uB530\uB77C \uD6C8\uB828\uB0B4\uC6A9\uC744 \uB9DE\uCDA4\uD654\uD558\uACE0 \uBD80\uB3D9\uD55C \uC5ED\uD560\uC744 \uC704\uD574 \uC804\uC18D\uC801\uC778 \uAD50\uC721\uBC29\uC548\uC744 \uB0B4\uB193\uC73C\uBA70 \uC628\uB77C\uC778\uACFC \uC624\uD504\uB77C\uC778\uC758 \uAD50\uC721\uACBD\uB85C\uB97C \uC804\uBA74\uC801\uC73C\uB85C \uCEE4\uBC84\uD55C\uB2E4",ja:"\u30CB\u30FC\u30BA\u306B\u5408\u308F\u305B\u3066\u30C8\u30EC\u30FC\u30CB\u30F3\u30B0\u5185\u5BB9\u3092\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA\u3057\u3001\u305D\u308C\u305E\u308C\u306E\u30AD\u30E3\u30E9\u30AF\u30BF\u30FC\u306B\u5408\u3063\u305F\u30C8\u30EC\u30FC\u30CB\u30F3\u30B0\u30D7\u30E9\u30F3\u3092\u63D0\u4F9B\u3057\u3066\u3044\u307E\u3059\u3002\u30AA\u30F3\u30E9\u30A4\u30F3\u3068\u30AA\u30D5\u30E9\u30A4\u30F3\u306E\u30C8\u30EC\u30FC\u30CB\u30F3\u30B0\u3092\u3059\u3079\u3066\u30AB\u30D0\u30FC\u3057\u3066\u3044\u307E\u3059\u3002",de:"Weicht man Von den anforderungen ab, werden spezielle ausbildungsprogramme f\xFCr die unterschiedlichen rollen bereitgestellt und \xFCber alle online-kan\xE4le bereitgestellt",fr:"Personnaliser le contenu de la formation en fonction de la demande, donner des programmes de formation exclusifs pour diff\xE9rents r\xF4les, couverture compl\xE8te des canaux de formation en ligne et hors ligne",id:"Program pelatihan eksklusif untuk berbagai peran diberikan, sesuai dengan kebutuhan, dan saluran pelatihan via telepon yang disesuaikan"},{key:"DooTask \u662F\u65B0\u4E00\u4EE3\u56E2\u961F\u534F\u4F5C\u5E73\u53F0\uFF0C\u60A8\u53EF\u4EE5\u6839\u636E\u60A8\u56E2\u961F\u7684\u9700\u6C42\uFF0C\u9009\u62E9\u5408\u9002\u7684\u4EA7\u54C1\u529F\u80FD\u3002",zh:"","zh-CHT":"DooTask \u662F\u65B0\u4E00\u4EE3\u5718\u968A\u5354\u4F5C\u5E73\u81FA\uFF0C\u60A8\u53EF\u4EE5\u6839\u64DA\u60A8\u5718\u968A\u7684\u9700\u6C42\uFF0C\u9078\u64C7\u5408\u9069\u7684\u7522\u54C1\u529F\u80FD\u3002",en:"DooTask is a next-generation team collaboration platform that allows you to select the right product features for your team's needs.",ko:"'\uB450\uD0DC\uC2A4\uD06C'\uB294 \uD300\uC758 \uD544\uC694\uC5D0 \uB530\uB77C \uC81C\uD488\uC5D0 \uB9DE\uB294 \uAE30\uB2A5\uC744 \uC120\uD0DD\uD560 \uC218 \uC788\uB294 \uCC28\uC138\uB300 \uD300\uC6CC\uD06C \uD50C\uB7AB\uD3FC\uC785\uB2C8\uB2E4.",ja:"DooTask\u306F\u6B21\u4E16\u4EE3\u306E\u30C1\u30FC\u30E0\u30EF\u30FC\u30AF\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u3067\u3059\u3002\u30C1\u30FC\u30E0\u306E\u30CB\u30FC\u30BA\u306B\u5FDC\u3058\u3066\u3001\u9069\u5207\u306A\u88FD\u54C1\u6A5F\u80FD\u3092\u9078\u3076\u3053\u3068\u304C\u3067\u304D\u307E\u3059\u3002",de:"Die dingsda ist die h\xE4rtere arbeitsplatte, mit der sie die produktfunktion nach den bed\xFCrfnissen ihrer gruppe ausw\xE4hlen k\xF6nnen.",fr:"DooTask est une plateforme de collaboration d\u2019\xE9quipe de nouvelle g\xE9n\xE9ration. En fonction des besoins de votre \xE9quipe, vous pouvez choisir les fonctionnalit\xE9s de produit appropri\xE9es.",id:"Penugasan adalah platform kerjasama tim generasi baru. Anda dapat memilih fitur produk yang sesuai sesuai kebutuhan tim anda."},{key:"\u57FA\u4E8E Docker \u7684\u5BB9\u5668\u5316\u90E8\u7F72\uFF0C\u652F\u6301\u9AD8\u53EF\u7528\u96C6\u7FA4\uFF0C\u5FEB\u901F\u5F39\u6027\u6269\u5C55\uFF0C\u6570\u636E\u9AD8\u5EA6\u81EA\u4E3B\u53EF\u63A7",zh:"","zh-CHT":"\u57FA\u65BC Docker \u7684\u5BB9\u5668\u5316\u90E8\u7F72\uFF0C\u652F\u6301\u9AD8\u53EF\u7528\u96C6\u7FA3\uFF0C\u5FEB\u901F\u5F48\u6027\u64F4\u5C55\uFF0C\u6578\u64DA\u9AD8\u5EA6\u81EA\u4E3B\u53EF\u63A7",en:"Containerized deployment based on Docker supports high availability cluster, fast and elastic expansion, and highly autonomous and controllable data",ko:"Docker \uAE30\uBC18\uC758 \uCEE8\uD14C\uC774\uB108\uD654 \uBC30\uD3EC\uB97C \uD1B5\uD574 \uACE0\uAC00\uC6A9\uC131 \uD074\uB7EC\uC2A4\uD130, \uBE60\uB978 \uD0C4\uB825\uC131, \uB192\uC740 \uC790\uC728\uC801 \uB370\uC774\uD130 \uC81C\uC5B4\uAC00 \uAC00\uB2A5\uD558\uB2E4",ja:"Docker\u30D9\u30FC\u30B9\u306E\u30B3\u30F3\u30C6\u30CA\u5316\u914D\u7F6E\u3001\u9AD8\u5229\u7528\u53EF\u80FD\u306A\u30AF\u30E9\u30B9\u30BF\u306E\u30B5\u30DD\u30FC\u30C8\u3001\u8FC5\u901F\u3067\u67D4\u8EDF\u306A\u62E1\u5F35\u3001\u9AD8\u5EA6\u306B\u81EA\u5F8B\u7684\u306A\u30C7\u30FC\u30BF\u5236\u5FA1\u304C\u53EF\u80FD\u3067\u3059\u3002",de:"Basierend auf dockers containern ist es m\xF6glich, starke agglomerationen zu bilden, die eine hohe elastizit\xE4t und kontrollierbare daten erm\xF6glichen",fr:"D\xE9ploiement container bas\xE9 sur Docker, prise en charge de clusters hautement disponibles, expansion rapide et \xE9lastique, donn\xE9es hautement autonomes et contr\xF4lables",id:"Penyebaran penahanan berbasis Docker, mendukung cluster yang sangat tersedia, perpanjangan cepat lentur, dan data sangat otonom"},{key:"\u591A\u91CD\u65B9\u5F0F\u4FDD\u8BC1\u6570\u636E\u4E0D\u4E22\u5931\uFF0C\u9AD8\u53EF\u7528\u6545\u969C\u8F6C\u79FB\uFF0C\u5F02\u5730\u5BB9\u707E\u5907\u4EFD\uFF0C99.99%\u53EF\u7528\u6027\u4FDD\u8BC1",zh:"","zh-CHT":"\u591A\u91CD\u65B9\u5F0F\u4FDD\u8B49\u6578\u64DA\u4E0D\u4E1F\u5931\uFF0C\u9AD8\u53EF\u7528\u6545\u969C\u8F49\u79FB\uFF0C\u7570\u5730\u5BB9\u707D\u5099\u4EFD\uFF0C99.99%\u53EF\u7528\u6027\u4FDD\u8B49",en:"Multiple modes guarantee data loss, high availability failover, remote disaster recovery backup, and 99.99% availability",ko:"\uB2E4\uC911\uBC29\uC2DD\uC73C\uB85C \uB370\uC774\uD0C0\uAC00 \uBD84\uC2E4\uB418\uC9C0 \uC54A\uB3C4\uB85D \uB2F4\uBCF4\uD558\uACE0 \uACE0\uAC00\uC6A9\uC131 \uACE0\uC7A5\uC804\uC774, \uD0C0\uC9C0\uC5ED\uC7AC\uD574\uD5C8\uC6A9\uBC31\uC5C5\uD558\uC5EC 99.99%\uC758 \uAC00\uC6A9\uC131\uC744 \uBCF4\uC7A5\uD55C\uB2E4",ja:"\u591A\u91CD\u306E\u65B9\u5F0F\u306F\u30C7\u30FC\u30BF\u304C\u5931\u308F\u306A\u3044\u3053\u3068\u3092\u4FDD\u8A3C\u3057\u3066\u3001\u9AD8\u5229\u7528\u53EF\u80FD\u306A\u6545\u969C\u306E\u8EE2\u79FB\u3001\u7570\u5730\u306B\u707D\u5BB3\u3092\u8A31\u5BB9\u3059\u308B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u300199.99%\u5229\u7528\u53EF\u80FD\u6027\u306E\u4FDD\u8A3C\u3067\u3059",de:"Mehrere wege, um sicherzustellen, dass keine daten verloren gehen, st\xF6rungen werden hoch gelagert, eine externe erdbebensicherung: 999%",fr:"Plusieurs fa\xE7ons de garantir que les donn\xE9es ne sont pas perdues, failover haute disponibilit\xE9, sauvegarde hors site Dr, garantie de disponibilit\xE9 \xE0 99,99%",id:"Beberapa cara memastikan data tidak hilang, transfer macet yang tinggi, cadangan bencana jarak jauh, dijamin 99,99%"},{key:"\u591A\u91CD\u65B9\u5F0F\u4FDD\u8BC1\u5E10\u6237\u5B89\u5168\uFF0C\u8FDC\u7A0B\u4F1A\u8BDD\u63A7\u5236\uFF0C\u8BBE\u5907\u7ED1\u5B9A\uFF0C\u5B89\u5168\u65E5\u5FD7\u4EE5\u53CA\u624B\u52BF\u5BC6\u7801",zh:"","zh-CHT":"\u591A\u91CD\u65B9\u5F0F\u4FDD\u8B49\u5E33\u6236\u5B89\u5168\uFF0C\u9060\u7A0B\u6703\u8A71\u63A7\u5236\uFF0C\u8A2D\u5099\u7D81\u5B9A\uFF0C\u5B89\u5168\u65E5\u8A8C\u4EE5\u53CA\u624B\u52E2\u5BC6\u78BC",en:"Multiple ways to ensure account security, remote session control, device binding, security logging, and gesture passwords",ko:"\uC5EC\uB7EC \uAC00\uC9C0 \uBC29\uBC95\uC73C\uB85C \uACC4\uC815 \uBCF4\uC548, \uC6D0\uACA9 \uC138\uC158 \uC81C\uC5B4, \uC7A5\uCE58 \uBC14\uC778\uB529, \uBCF4\uC548 \uB85C\uADF8 \uBC0F \uC81C\uC2A4\uCC98 \uBE44\uBC00\uBC88\uD638\uB97C \uBCF4\uC7A5\uD569\uB2C8\uB2E4",ja:"\u5FA9\u6570\u306E\u65B9\u6CD5\u3067\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u5B89\u5168\u3092\u4FDD\u8A3C\u3057\u3066\u3001\u9060\u9694\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u306E\u5236\u5FA1\u3001\u88C5\u7F6E\u306E\u30D0\u30A4\u30F3\u30C7\u30A3\u30F3\u30B0\u3001\u5B89\u5168\u306A\u30ED\u30B0\u3068\u30B8\u30A7\u30B9\u30C1\u30E3\u30FC\u306E\u6697\u53F7\u5316\u3067\u3059",de:"Sie verschiedene systeme, um das konto sicherer zu machen, die sitzungskontrolle aus der ferne zu sichern, das programm zu programmieren, das sicherheitsprotokoll und das gesten passwort",fr:"Plusieurs fa\xE7ons de garantir la s\xE9curit\xE9 du compte, le contr\xF4le de session \xE0 distance, la liaison des appareils, les journaux de s\xE9curit\xE9 ainsi que les mots de passe gestuels",id:"Beberapa cara untuk menjamin keamanan akun, kontrol sesi jarak jauh, pengikat perangkat, log keamanan, dan password gerak"},{key:"\u591A\u91CD\u65B9\u5F0F\u4FDD\u8BC1\u6570\u636E\u4E0D\u6CC4\u6F0F\uFF0C\u57FA\u4E8E TLS \u7684\u6570\u636E\u52A0\u5BC6\u4F20\u8F93\uFF0CDDOS \u9632\u5FA1\u548C\u5165\u4FB5\u68C0\u6D4B",zh:"","zh-CHT":"\u591A\u91CD\u65B9\u5F0F\u4FDD\u8B49\u6578\u64DA\u4E0D\u6CC4\u6F0F\uFF0C\u57FA\u65BC TLS \u7684\u6578\u64DA\u52A0\u5BC6\u50B3\u8F38\uFF0CDDOS \u9632\u79A6\u548C\u5165\u4FB5\u6AA2\u6E2C",en:"Multiple methods to ensure data leakage, TLS based data encryption transmission, DDOS defense and intrusion detection",ko:"\uB2E4\uC911 \uBCF4\uC548 \uB370\uC774\uD130 \uC720\uCD9C \uBC29\uC9C0, tls \uAE30\uBC18 \uC554\uD638\uD654 \uC804\uC1A1, ddos \uBC29\uC5B4 \uBC0F \uCE68\uC785 \uD0D0\uC9C0",ja:"\u30C7\u30FC\u30BF\u6F0F\u6D29\u9632\u6B62\u3001TLS\u306B\u3088\u308B\u30C7\u30FC\u30BF\u306E\u6697\u53F7\u5316\u3001DDOS\u306E\u9632\u5FA1\u3001\u4FB5\u5165\u691C\u77E5\u3092\u8907\u6570\u3067\u884C\u3044\u307E\u3059\u3002",de:"Dies stellt sicher, dass die daten nicht kompromittiert sind, und es gibt einige l\xFCcken bei den TLS, verschl\xFCsselte \xFCbertragungen, die verteidigung f\xFCr DDOS und die erkennung Von l\xFCcken",fr:"Plusieurs fa\xE7ons de garantir aucune fuite de donn\xE9es, transmission crypt\xE9e des donn\xE9es bas\xE9e sur TLS, protection contre les DDOS et d\xE9tection d\u2019intrusion",id:"Beberapa cara memastikan data tidak bocor, transmisi data terenkripsi berdasarkan TLS, DDOS pertahanan dan deteksi penyusup"},{key:"\u4ECE\u73B0\u5728\u5F00\u59CB\uFF0CDooTask \u4E3A\u4E16\u754C\u5404\u5730\u7684\u56E2\u961F\u63D0\u4F9B\u652F\u6301\uFF0C\u63A2\u7D22\u9002\u5408\u60A8\u7684\u9009\u9879\u3002",zh:"","zh-CHT":"\u5F9E\u73FE\u5728\u958B\u59CB\uFF0CDooTask \u7232\u4E16\u754C\u5404\u5730\u7684\u5718\u968A\u63D0\u4F9B\u652F\u6301\uFF0C\u63A2\u7D22\u9069\u5408\u60A8\u7684\u9078\u9805\u3002",en:"From now on, DooTask supports teams around the world to explore options that are right for you.",ko:"\uC9C0\uAE08\uBD80\uD130 dootask \uC5D0\uC11C\uB294 \uC804\uC138\uACC4\uC758 \uD300\uB4E4\uC744 \uC9C0\uC6D0\uD558\uBA74\uC11C \uC5B4\uB5A4 \uC635\uC158\uC744 \uC120\uD0DD\uD558\uC2E4 \uC218 \uC788\uB294\uC9C0 \uC54C\uC544\uBCF4\uC2ED\uC2DC\uC624.",ja:"\u3053\u308C\u304B\u3089DooTask\u306F\u4E16\u754C\u4E2D\u306E\u30C1\u30FC\u30E0\u3092\u30B5\u30DD\u30FC\u30C8\u3057\u3001\u3042\u306A\u305F\u306B\u5408\u3063\u305F\u9078\u629E\u80A2\u3092\u6A21\u7D22\u3057\u3066\u3044\u304D\u307E\u3059\u3002",de:"Von jetzt an steht die h\xE4rteste welle jedem team auf der ganzen welt zur verf\xFCgung und sonnt auch mal die ganz speziellen einstellungen f\xFCr sie.",fr:"D\xE9sormais, DooTask offre une assistance aux \xE9quipes du monde entier. Explorez les options qui vous conviennent.",id:"Mulai sekarang, tugasmu tugaskan tugaskan tim di seluruh dunia, temukan berbagai pilihan yang cocok untukmu."},{key:"\u5982\u6709\u4EFB\u4F55\u95EE\u9898\uFF0C\u6B22\u8FCE\u4F7F\u7528\u90AE\u7BB1\u4E0E\u6211\u4EEC\u8054\u7CFB\u3002",zh:"","zh-CHT":"\u5982\u6709\u4EFB\u4F55\u554F\u984C\uFF0C\u6B61\u8FCE\u4F7F\u7528\u90F5\u7BB1\u8207\u6211\u5011\u806F\u7E6B\u3002",en:"If you have any questions, please feel free to contact us by email.",ko:"\uB9CC\uC57D \uBB38\uC81C\uAC00 \uC788\uB294 \uACBD\uC6B0\uC5D0, \uD658\uC601 \uBA54\uC77C\uD568\uC73C\uB85C \uC800\uD76C\uC5D0\uAC8C \uC5F0\uB77D\uD55C\uB2E4.",ja:"\u4F55\u304B\u554F\u984C\u304C\u3042\u308C\u3070\u3001\u30E1\u30FC\u30EB\u30DC\u30C3\u30AF\u30B9\u3092\u4F7F\u3063\u3066\u79C1\u9054\u306B\u9023\u7D61\u3059\u308B\u3053\u3068\u3092\u6B53\u8FCE\u3057\u307E\u3059\u3002",de:"Bei weiteren fragen k\xF6nnen wir uns mit dem briefkasten melden.",fr:"Toute question, bienvenue \xE0 nous contacter \xE0 l\u2019aide de l\u2019email.",id:"Jika ada pertanyaan, silakan hubungi kami lewat email."},{key:"\u5141\u8BB8\u9690\u85CF\u6216\u5B9A\u5236\u4EA7\u54C1\u540D",zh:"","zh-CHT":"\u5141\u8A31\u96B1\u85CF\u6216\u5B9A\u88FD\u7522\u54C1\u540D",en:"Allows you to hide or customize product names",ko:"\uC81C\uD488 \uC774\uB984\uC744 \uC228\uAE30\uAC70\uB098 \uC0AC\uC6A9\uC790 \uC815\uC758\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4",ja:"\u88FD\u54C1\u540D\u3092\u96A0\u3059\u3053\u3068\u3082\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA\u3059\u308B\u3053\u3068\u3082\u3067\u304D\u307E\u3059",de:"Ein system erlaubt es, anonym Oder individuell festzulegen",fr:"Permet de cacher ou personnaliser les noms de produits",id:"Memungkinkan untuk menyembunyikan atau menyesuaikan nama produk"},{key:"\u591A\u79CD\u90E8\u7F72\u65B9\u5F0F\u968F\u5FC3\u9009\u62E9",zh:"","zh-CHT":"\u591A\u7A2E\u90E8\u7F72\u65B9\u5F0F\u96A8\u5FC3\u9078\u64C7",en:"Multiple deployment modes are optional",ko:"\uC5EC\uB7EC\uAC00\uC9C0 \uD3EC\uCE58\uBC29\uC2DD\uC744 \uB9C8\uC74C\uB300\uB85C \uC120\uD0DD\uD55C\uB2E4",ja:"\u69D8\u3005\u306A\u914D\u7F6E\u65B9\u6CD5\u3092\u9078\u629E\u3067\u304D\u307E\u3059",de:"Verschiedene dislozierungsmodalit\xE4ten. Individuelle eins\xE4tze",fr:"Plusieurs modes de d\xE9ploiement au choix",id:"Dalam berbagai cara"},{key:"\u591A\u91CD\u5B89\u5168\u7B56\u7565\u4FDD\u62A4\u6570\u636E",zh:"","zh-CHT":"\u591A\u91CD\u5B89\u5168\u7B56\u7565\u4FDD\u8B77\u6578\u64DA",en:"Multiple security policies protect data",ko:"\uC5EC\uB7EC \uBCF4\uC548 \uC815\uCC45\uC73C\uB85C \uB370\uC774\uD130\uB97C \uBCF4\uD638\uD569\uB2C8\uB2E4",ja:"\u8907\u6570\u306E\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u30DD\u30EA\u30B7\u30FC\u3067\u30C7\u30FC\u30BF\u3092\u4FDD\u8B77\u3057\u307E\u3059",de:"Verschiedene sicherheitsstrategien sch\xFCtzen daten",fr:"Plusieurs politiques de s\xE9curit\xE9 prot\xE8gent les donn\xE9es",id:"Strategi keamanan ganda untuk melindungi data"},{key:"\u62E5\u6709\u6700\u65B0\u7248\u672C\u6240\u6709\u529F\u80FD",zh:"","zh-CHT":"\u64C1\u6709\u6700\u65B0\u7248\u672C\u6240\u6709\u529F\u80FD",en:"Has all the features of the latest version",ko:"\uCD5C\uC2E0 \uBC84\uC804\uC758 \uBAA8\uB4E0 \uAE30\uB2A5\uC744 \uAC16\uCD94\uACE0 \uC788\uB2E4",ja:"\u6700\u65B0\u30D0\u30FC\u30B8\u30E7\u30F3\u306E\u3059\u3079\u3066\u306E\u6A5F\u80FD\u3092\u5099\u3048\u3066\u3044\u307E\u3059",de:"Mit allen neusten funktionen",fr:"Avec toutes les fonctionnalit\xE9s de la derni\xE8re version",id:"Dengan versi terbaru dari semua fitur"},{key:"\u6839\u636E\u60A8\u7684\u9700\u6C42\u91CF\u8EAB\u5B9A\u5236",zh:"","zh-CHT":"\u6839\u64DA\u60A8\u7684\u9700\u6C42\u91CF\u8EAB\u5B9A\u88FD",en:"Tailored to your needs",ko:"\uB2F9\uC2E0\uC758 \uC694\uAD6C\uC5D0 \uB9DE\uCD94\uC5B4 \uB9CC\uB4E4\uB2E4",ja:"\u3042\u306A\u305F\u306E\u30CB\u30FC\u30BA\u306B\u5408\u308F\u305B\u3066\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA\u3057\u307E\u3059",de:"Ihren bed\xFCrfnissen anpassen",fr:"Adapt\xE9 \xE0 vos besoins",id:"Disesuaikan dengan kebutuhan anda"},{key:"\u5B8C\u5584\u7684\u670D\u52A1\u652F\u6301\u4F53\u7CFB",zh:"","zh-CHT":"\u5B8C\u5584\u7684\u670D\u52D9\u652F\u6301\u9AD4\u7CFB",en:"Perfect service support system",ko:"\uC644\uBCBD\uD55C \uC11C\uBE44\uC2A4 \uC9C0\uC6D0 \uCCB4\uACC4",ja:"\u5145\u5B9F\u3057\u305F\u30B5\u30FC\u30D3\u30B9\u30B5\u30DD\u30FC\u30C8\u4F53\u5236\u3067\u3059",de:"Bevor sie ihren dienst fortsetzen",fr:"Syst\xE8me de support de service parfait",id:"Layanan pendukung yang sempurna"},{key:"\u4E13\u5C5E\u5BA2\u6237\u6210\u529F\u7ECF\u7406",zh:"","zh-CHT":"\u5C08\u5C6C\u5BA2\u6236\u6210\u529F\u7D93\u7406",en:"Dedicated customer success manager",ko:"\uC804\uC18D \uACE0\uAC1D \uC131\uACF5 \uAD00\uB9AC\uC790",ja:"\u5C02\u5C5E\u30AB\u30B9\u30BF\u30DE\u30FC\u30B5\u30AF\u30BB\u30B9\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u3067\u3059",de:"Hat einen erfolgreichen kunden",fr:"Gestionnaire exclusif de la r\xE9ussite client",id:"Manajer sukses untuk pelanggan"},{key:"\u4E8C\u6B21\u5F00\u53D1\u54A8\u8BE2\u670D\u52A1",zh:"","zh-CHT":"\u4E8C\u6B21\u958B\u767C\u8AEE\u8A62\u670D\u52D9",en:"Secondary development consulting services",ko:"\uC7AC\uAC1C\uBC1C \uC790\uBB38\uC5ED",ja:"\u4E8C\u6B21\u958B\u767A\u30B3\u30F3\u30B5\u30EB\u30C6\u30A3\u30F3\u30B0\u30B5\u30FC\u30D3\u30B9\u3067\u3059",de:"Die wirtschaftsberatung in reo",fr:"Services de consultation en d\xE9veloppement secondaire",id:"Konsultan pengembangan kedua"},{key:"\u514D\u8D39\u63D0\u4F9B\u4E00\u6B21\u5185\u8BAD",zh:"","zh-CHT":"\u514D\u8CBB\u63D0\u4F9B\u4E00\u6B21\u5167\u8A13",en:"Provide a free internal training",ko:"\uB0B4\uC2E0\uC744 1\uD68C \uBB34\uB8CC\uB85C \uC81C\uACF5\uD55C\uB2E4",ja:"\u5185\u8A13\u30921\u56DE\u7121\u6599\u3067\u63D0\u4F9B\u3057\u307E\u3059",de:"Kostenlos ein fachstudium anbieten",fr:"Une formation interne offerte gratuitement",id:"Dapat satu pelatihan gratis"},{key:"\u9009\u62E9\u9002\u5408\u60A8\u7684\u7248\u672C",zh:"","zh-CHT":"\u9078\u64C7\u9069\u5408\u60A8\u7684\u7248\u672C",en:"Choose the version that works for you",ko:"\uB2F9\uC2E0\uC5D0\uAC8C \uB9DE\uB294 \uBC84\uC804\uC744 \uC120\uD0DD\uD558\uC2ED\uC2DC\uC624",ja:"\u3042\u306A\u305F\u306B\u5408\u3063\u305F\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u9078\u3073\u307E\u3059\u3002",de:"W\xE4hlen sie ihre version aus",fr:"Choisissez la version qui vous convient",id:"Pilih versi yang cocok untukmu"},{key:"1:1\u5BA2\u6237\u6210\u529F\u987E\u95EE",zh:"","zh-CHT":"1:1\u5BA2\u6236\u6210\u529F\u9867\u554F",en:"1:1 Customer success consultant",ko:"1:1 \uACE0\uAC1D \uC131\uACF5 \uCEE8\uC124\uD134\uD2B8",ja:"1:1\u30AB\u30B9\u30BF\u30DE\u30FC\u30B5\u30AF\u30BB\u30B9\u30A2\u30C9\u30D0\u30A4\u30B6\u30FC\u3067\u3059",de:"1:1, ein erfolgreicher berater",fr:"1:1 conseiller de r\xE9ussite client",id:"1:1, penasihat sukses pelanggan"},{key:"\u4E00\u5BF9\u4E00\u5BA2\u6237\u987E\u95EE",zh:"","zh-CHT":"\u4E00\u5C0D\u4E00\u5BA2\u6236\u9867\u554F",en:"One-to-one client consultant",ko:"\uC77C\uB300\uC77C \uACE0\uAC1D\uC0C1\uB2F4\uC0AC",ja:"1\u5BFE1\u306E\u30B3\u30F3\u30B5\u30EB\u30BF\u30F3\u30C8\u3067\u3059",de:"Ein pers\xF6nlicher berater.",fr:"Conseiller client one to one",id:"Konsultan pelanggan satu lawan satu"},{key:"\u4E2D\u82F1\u6587\u90AE\u4EF6\u652F\u6301",zh:"","zh-CHT":"\u4E2D\u82F1\u6587\u90F5\u4EF6\u652F\u6301",en:"English and Chinese email support",ko:"\uC911\uAD6D\uC5B4 \uC601\uBB38 \uC774\uBA54\uC77C \uC9C0\uC6D0",ja:"\u82F1\u8A9E\u3068\u4E2D\u56FD\u8A9E\u306E\u30E1\u30FC\u30EB\u306E\u30B5\u30DD\u30FC\u30C8\u3067\u3059",de:"Unterst\xFCtzung durch chinesische mails",fr:"Support par email en anglais et chinois",id:"Dukungan surat inggris"},{key:"\u5168\u9762\u7684\u652F\u6301\u670D\u52A1",zh:"","zh-CHT":"\u5168\u9762\u7684\u652F\u6301\u670D\u52D9",en:"Full support services",ko:"\uC804\uD3ED\uC801\uC778 \uC9C0\uC6D0 \uC11C\uBE44\uC2A4",ja:"\u5168\u9762\u7684\u306A\u30B5\u30DD\u30FC\u30C8\u30B5\u30FC\u30D3\u30B9\u3067\u3059",de:"Ich will eine komplette unterst\xFCtzung",fr:"Services de support complets",id:"Layanan dukungan penuh"},{key:"\u5B8C\u5584\u7684\u57F9\u8BAD\u4F53\u7CFB",zh:"","zh-CHT":"\u5B8C\u5584\u7684\u57F9\u8A13\u9AD4\u7CFB",en:"Perfect training system",ko:"\uC644\uBCBD\uD55C \uD6C8\uB828 \uC2DC\uC2A4\uD15C",ja:"\u5145\u5B9F\u3057\u305F\u6559\u80B2\u30B7\u30B9\u30C6\u30E0\u3067\u3059",de:"Aber die weiterbildung ist gut",fr:"Un syst\xE8me de formation complet",id:"Sistem pelatihan yang sempurna"},{key:"\u652F\u6301\u79C1\u6709\u5316\u90E8\u7F72",zh:"","zh-CHT":"\u652F\u6301\u79C1\u6709\u5316\u90E8\u7F72",en:"Support privatization deployment",ko:"\uBBFC\uC601\uD654 \uBC30\uCE58 \uC9C0\uC9C0",ja:"\u6C11\u55B6\u5316\u3092\u652F\u63F4\u3057\u307E\u3059",de:"Unterst\xFCtzung f\xFCr privatisierung",fr:"Soutien au d\xE9ploiement privatis\xE9",id:"Penyebaran privatisasi didukung"},{key:"iOS/Android\u5BA2\u6237\u7AEF",zh:"","zh-CHT":"IOS/Android\u5BA2\u6236\u7AEF",en:"IOS/Android client",ko:"Ios/\uC548\uB4DC\uB85C\uC774\uB4DC \uD074\uB77C\uC774\uC5B8\uD2B8",ja:"IOS/Android\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u3067\u3059",de:"Ein Android ist auf den markt gegangen",fr:"Client iOS/Android",id:"Pelanggan iOS/Android"},{key:"\uFF08Issues/\u793E\u7FA4\uFF09",zh:"","zh-CHT":"\uFF08Issues/\u793E\u7FA3\uFF09",en:"(Issues/ Community)",ko:"(issues/\uCEE4\uBBA4\uB2C8\uD2F0)",ja:"(Issues/\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u3067\u3059)",de:"Eskips (herzen)",fr:"(Issues/ communaut\xE9)",id:"(Issues/ social)"},{key:"\u5728\u7EBF\u54A8\u8BE2\u652F\u6301",zh:"","zh-CHT":"\u5728\u7DDA\u8AEE\u8A62\u652F\u6301",en:"Online consultation support",ko:"\uC628\uB77C\uC778 \uCEE8\uC124\uD305 \uC9C0\uC6D0",ja:"\u30AA\u30F3\u30E9\u30A4\u30F3\u76F8\u8AC7\u652F\u63F4\u3067\u3059",de:"Unterst\xFCtzung f\xFCr online-beratung",fr:"Soutien de consultation en ligne",id:"Dukungan konseling online"},{key:"\u660E\u661F\u5BA2\u6237\u6848\u4F8B",zh:"","zh-CHT":"\u660E\u661F\u5BA2\u6236\u6848\u4F8B",en:"Star customer case",ko:"\uC2A4\uD0C0 \uACE0\uAC1D \uC0AC\uB840",ja:"\u30B9\u30BF\u30FC\u9867\u5BA2\u4E8B\u4F8B\u3067\u3059",de:"Der fall der star-klienten",fr:"Cas clients star",id:"Kasus klien bintang"},{key:"\u7535\u8BDD\u54A8\u8BE2\u652F\u6301",zh:"","zh-CHT":"\u96FB\u8A71\u8AEE\u8A62\u652F\u6301",en:"Telephone consultation support",ko:"\uC804\uD654 \uC0C1\uB2F4 \uC9C0\uC6D0",ja:"\u304A\u96FB\u8A71\u30B5\u30DD\u30FC\u30C8\u3067\u3059\u3002",de:"Telefonberatung, verst\xE4rkung.",fr:"Soutien de consultation t\xE9l\xE9phonique",id:"Dukungan konsultasi telepon"},{key:"\u7ED1\u5B9A\u81EA\u6709\u57DF\u540D",zh:"","zh-CHT":"\u7D81\u5B9A\u81EA\u6709\u57DF\u540D",en:"Bind own domain name",ko:"\uC790\uCCB4 \uB3C4\uBA54\uC778 \uBC14\uC778\uB529",ja:"\u30C9\u30E1\u30A4\u30F3\u540D\u3092\u4ED8\u3051\u3066\u3044\u307E\u3059",de:"Einen main-namen habe ich auch",fr:"Domaine propre li\xE9",id:"Terikat punya nama domain"},{key:"\u9009\u62E9\u9002\u5408\u4F60\u7684",zh:"","zh-CHT":"\u9078\u64C7\u9069\u5408\u4F60\u7684",en:"Choose what works for you",ko:"\uB124\uAC8C \uB9DE\uB294 \uAC83\uC744 \uACE8\uB77C\uB77C",ja:"\u3042\u306A\u305F\u306B\u5408\u3063\u305F\u3082\u306E\u3092\u9078\u3073\u307E\u3059",de:"W\xE4hlen sie, was ihnen passt",fr:"Choisissez ce qui vous convient",id:"Pilih apa yang cocok untukmu"},{key:"\u9AD8\u53EF\u7528\u6027\u4FDD\u8BC1",zh:"","zh-CHT":"\u9AD8\u53EF\u7528\u6027\u4FDD\u8B49",en:"High availability assurance",ko:"\uACE0\uAC00\uC6A9\uC131 \uBCF4\uC7A5",ja:"\u9AD8\u53EF\u7528\u6027\u4FDD\u8A3C\u3067\u3059",de:"Hohe verf\xFCgbarkeit garantiert",fr:"Garantie de haute disponibilit\xE9",id:"Jaminan ketersediaan yang tinggi"},{key:"Mac/PC\u5BA2\u6237\u7AEF",zh:"","zh-CHT":"Mac/PC\u5BA2\u6236\u7AEF",en:"Mac/PC client",ko:"Mac/pc \uD074\uB77C\uC774\uC5B8\uD2B8",ja:"Mac/PC\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u3067\u3059",de:"Mac/PC sind am apparat",fr:"Client pour Mac/PC",id:"Klien Mac/PC"},{key:"\u672C\u5730\u670D\u52A1\u5668",zh:"","zh-CHT":"\u672C\u5730\u670D\u52D9\u5668",en:"Local server",ko:"\uB85C\uCEEC \uC11C\uBC84",ja:"\u30ED\u30FC\u30AB\u30EB\u30B5\u30FC\u30D0\u30FC\u3067\u3059",de:"Dem lokalen server.",fr:"Un serveur local",id:"Server lokal"},{key:"\u5468\u62A5/\u65E5\u62A5",zh:"","zh-CHT":"\u9031\u5831/\u65E5\u5831",en:"Weekly/daily newspaper",ko:"\uC8FC\uAC04 \uC2E0\uBB38",ja:"\u9031\u5831/\u65E5\u520A\u7D19\u3067\u3059",de:"Aber mein leben ver\xE4ndert sich",fr:"Rapport hebdomadaire/quotidien",id:"Mingguan/harian"},{key:"\u4E0A\u95E8\u652F\u6301",zh:"","zh-CHT":"\u4E0A\u9580\u652F\u6301",en:"Door-to-door support",ko:"\uBC29\uBB38\uD558\uC5EC \uC9C0\uC6D0\uD558\uB2E4.",ja:"\u8A2A\u554F\u652F\u63F4\u3067\u3059",de:"T\xFCrunterst\xFCtzung",fr:"Soutien \xE0 domicile",id:"Gerbang untuk mendukung"},{key:"\u4E8C\u6B21\u5F00\u53D1",zh:"","zh-CHT":"\u4E8C\u6B21\u958B\u767C",en:"Secondary development",ko:"\uC774\uCC28 \uAC1C\uBC1C",ja:"\u4E8C\u6B21\u958B\u767A\u3067\u3059",de:"Eine zweite entwicklung.",fr:"Le d\xE9veloppement secondaire",id:"Pengembangan kedua"},{key:"\u4EA7\u54C1\u57F9\u8BAD",zh:"","zh-CHT":"\u7522\u54C1\u57F9\u8A13",en:"Product training",ko:"\uC81C\uD488 \uAD50\uC721",ja:"\u88FD\u54C1\u30C8\u30EC\u30FC\u30CB\u30F3\u30B0\u3067\u3059",de:"1. Weiterbildung",fr:"Formation aux produits",id:"Pelatihan produk"},{key:"\u4EFB\u52A1\u52A8\u6001",zh:"","zh-CHT":"\u4EFB\u52D9\u52D5\u614B",en:"Task dynamics",ko:"\uC791\uC5C5 \uB3D9\uD5A5",ja:"\u30DF\u30C3\u30B7\u30E7\u30F3\u30FB\u30C0\u30A4\u30CA\u30DF\u30AF\u30B9\u3067\u3059",de:"Missionsdynamik.",fr:"Dynamique des t\xE2ches",id:"Dinamika tugas"},{key:"\u4EFB\u52A1\u7C7B\u578B",zh:"","zh-CHT":"\u4EFB\u52D9\u985E\u578B",en:"Task type",ko:"\uC791\uC5C5 \uD615\uC2DD",ja:"\u30BF\u30B9\u30AF\u30BF\u30A4\u30D7\u3067\u3059",de:"Typ des auftrags?",fr:"Types de missions",id:"Jenis tugas"},{key:"\u521B\u5EFA\u7FA4\u804A",zh:"","zh-CHT":"\u5275\u5EFA\u7FA3\u804A",en:"Create a group chat",ko:"\uADF8\uB8F9 \uCC44\uD305 \uB9CC\uB4E4\uAE30",ja:"\u30B0\u30EB\u30FC\u30D7\u30C1\u30E3\u30C3\u30C8\u3092\u4F5C\u6210\u3057\u307E\u3059",de:"Gruppengespr\xE4ch kreieren.",fr:"Cr\xE9er un chat de groupe",id:"Buat grup chat"},{key:"\u5E10\u6237\u5B89\u5168",zh:"","zh-CHT":"\u5E33\u6236\u5B89\u5168",en:"Account security",ko:"\uACC4\uC815 \uBCF4\uC548",ja:"\u53E3\u5EA7\u306F\u5B89\u5168\u3067\u3059",de:"Sichere konten.",fr:"S\xE9curit\xE9 du compte",id:"Keamanan akun"},{key:"\u5E94\u7528\u652F\u6301",zh:"","zh-CHT":"\u61C9\u7528\u652F\u6301",en:"Application support",ko:"\uC9C0\uC6D0 \uC801\uC6A9",ja:"\u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u30B5\u30DD\u30FC\u30C8\u3067\u3059",de:"Unterst\xFCtzung durch anwendung.",fr:"Soutien \xE0 l\u2019application",id:"Menerapkan dukungan"},{key:"\u6570\u636E\u52A0\u5BC6",zh:"","zh-CHT":"\u6578\u64DA\u52A0\u5BC6",en:"Data encryption",ko:"\uB370\uC774\uD130 \uC554\uD638\uD654",ja:"\u30C7\u30FC\u30BF\u6697\u53F7\u5316\u3067\u3059",de:"Datenverschl\xFCsselung",fr:"Cryptage des donn\xE9es",id:"Enkripsi data"},{key:"\u6587\u4EF6\u641C\u7D22",zh:"","zh-CHT":"\u6587\u4EF6\u641C\u7D22",en:"File search",ko:"\uD30C\uC77C \uAC80\uC0C9",ja:"\u30D5\u30A1\u30A4\u30EB\u691C\u7D22\u3067\u3059",de:"Suche nach dateien",fr:"Recherche de documents",id:"Pencarian berkas"},{key:"\u6587\u4EF6\u7BA1\u7406",zh:"","zh-CHT":"\u6587\u4EF6\u7BA1\u7406",en:"Document management",ko:"\uD30C\uC77C \uAD00\uB9AC",ja:"\u30D5\u30A1\u30A4\u30EB\u7BA1\u7406\u3067\u3059",de:"Halte die dokumentation auf.",fr:"Gestion des documents",id:"Manajemen berkascomment"},{key:"\u670D\u52A1\u652F\u6301",zh:"","zh-CHT":"\u670D\u52D9\u652F\u6301",en:"Service support",ko:"\uC11C\uBE44\uC2A4 \uC9C0\uC6D0",ja:"\u30B5\u30FC\u30D3\u30B9\u30B5\u30DD\u30FC\u30C8\u3067\u3059",de:"Service-support.",fr:"Service et support",id:"Dukungan layanan"},{key:"\u81EA\u52A9\u652F\u6301",zh:"","zh-CHT":"\u81EA\u52A9\u652F\u6301",en:"Self-help support",ko:"\uC140\uD504 \uC9C0\uC6D0",ja:"\u30BB\u30EB\u30D5\u30B5\u30DD\u30FC\u30C8\u3067\u3059",de:"Unterst\xFCtzung. Unterst\xFCtzen.",fr:"Assistance en auto-assistance",id:"Dukungan diri"},{key:"\u8FD4\u56DE\u9996\u9875",zh:"","zh-CHT":"\u8FD4\u56DE\u9996\u9801",en:"Return to home page",ko:"\uD648 \uD398\uC774\uC9C0\uB85C \uB3CC\uC544\uAC00\uAE30",ja:"\u30C8\u30C3\u30D7\u30DA\u30FC\u30B8\u306B\u623B\u308A\u307E\u3059",de:"Mach die titelseite auf.",fr:"Retour \xE0 l\u2019accueil",id:"Kembali ke rumah"},{key:"\u9879\u76EE\u641C\u7D22",zh:"","zh-CHT":"\u9805\u76EE\u641C\u7D22",en:"Item search",ko:"\uD56D\uBAA9 \uAC80\uC0C9",ja:"\u9805\u76EE\u691C\u7D22\u3067\u3059",de:"Suche nach projekten.",fr:"Recherche de projets",id:"Pencarian proyek"},{key:"\u9879\u76EE\u7BA1\u7406",zh:"","zh-CHT":"\u9805\u76EE\u7BA1\u7406",en:"Project management",ko:"\uD504\uB85C\uC81D\uD2B8 \uAD00\uB9AC",ja:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u30DE\u30CD\u30B8\u30E1\u30F3\u30C8\u3067\u3059",de:"Projektmanagement. - projektmanagement?",fr:"Gestion du projet",id:"Manajemen proyek"},{key:"\u9879\u76EE\u7FA4\u804A",zh:"","zh-CHT":"\u9805\u76EE\u7FA3\u804A",en:"Project group chat",ko:"\uD504\uB85C\uC81D\uD2B8 \uADF8\uB8F9 \uCC44\uD305",ja:"\u30B0\u30EB\u30FC\u30D7\u30C8\u30FC\u30AF\u3067\u3059",de:"Kleine projektgruppe.",fr:"Projet chat de groupe",id:"Obrolan kelompok proyek"},{key:"\u4F53\u9A8CDEMO",zh:"","zh-CHT":"\u9AD4\u9A57DEMO",en:"DEMO",ko:"\uB370\uBAA8 \uCCB4\uD5D8",ja:"\u30C7\u30E2\u3092\u4F53\u9A13\u3057\u307E\u3059",de:"DEMO",fr:"DEMO",id:"DEMO"},{key:"\u516C\u6709\u4E91",zh:"","zh-CHT":"\u516C\u6709\u4E91",en:"Public cloud",ko:"\uD37C\uBE14\uB9AD \uD074\uB77C\uC6B0\uB4DC",ja:"\u30D1\u30D6\u30EA\u30C3\u30AF\u30AF\u30E9\u30A6\u30C9\u3067\u3059",de:"Flying corp!",fr:"Cloud public disponible",id:"Publik tahu."},{key:"\u56FD\u9645\u5316",zh:"","zh-CHT":"\u570B\u969B\u5316",en:"Internationalization",ko:"\uAD6D\uC81C\uD654",ja:"\u56FD\u969B\u5316\u3067\u3059",de:"International.",fr:"Internationalisation",id:"Kosmopolitan"},{key:"\u5B9A\u5236\u7248",zh:"","zh-CHT":"\u5B9A\u88FD\u7248",en:"Custom version",ko:"\uC8FC\uBB38 \uC81C\uC791\uD310",ja:"\u30AB\u30B9\u30BF\u30DE\u30A4\u30BA\u7248\u3067\u3059",de:"Etwas ma\xDFgeschneidert?",fr:"\xC9dition sur mesure",id:"Edisi khusus"},{key:"\u7518\u7279\u56FE",zh:"","zh-CHT":"\u7518\u7279\u5716",en:"Gantt chart",ko:"\uAC04\uD130\uD22C",ja:"\u30AC\u30F3\u30C8\u30C1\u30E3\u30FC\u30C8\u3067\u3059",de:"La gant.",fr:"Gantt en chiffres",id:"Gant."},{key:"\u793E\u533A\u7248",zh:"","zh-CHT":"\u793E\u5340\u7248",en:"Community edition",ko:"\uCEE4\uBBA4\uB2C8\uD2F0 \uBC84\uC804",ja:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u7248\u3067\u3059",de:"In der gemeinde.",fr:"La version communautaire",id:"Halaman masyarakat"},{key:"\u79C1\u6709\u4E91",zh:"","zh-CHT":"\u79C1\u6709\u4E91",en:"Private cloud",ko:"\uAC1C\uC778 \uD074\uB77C\uC6B0\uB4DC",ja:"\u30D7\u30E9\u30A4\u30D9\u30FC\u30C8\u30AF\u30E9\u30A6\u30C9\u3067\u3059",de:"Private wolke.",fr:"Un cloud priv\xE9",id:"Awan pribadi"},{key:"\u81EA\u5B9A\u4E49",zh:"","zh-CHT":"\u81EA\u5B9A\u7FA9",en:"Customize",ko:"\uC0AC\uC6A9\uC790 \uC815\uC758",ja:"\u30AB\u30B9\u30BF\u30E0\u3067\u3059",de:"Selbstdefiniert.",fr:"Personnalis\xE9 et personnalis\xE9",id:"Khusus"},{key:"\u4EBA\u6570",zh:"","zh-CHT":"\u4EBA\u6578",en:"Number of people",ko:"\uC218\uAC00",ja:"\u4EBA\u6570\u3067\u3059",de:"Eine anzahl.",fr:"Le nombre de",id:"Jumlah"},{key:"\u4EF7\u683C",zh:"","zh-CHT":"\u50F9\u683C",en:"Price",ko:"\uAC00\uACA9",ja:"\u5024\u6BB5\u3067\u3059",de:"Dem preis?",fr:"Prix",id:"Harga"},{key:"\u63A8\u8350",zh:"","zh-CHT":"\u63A8\u85A6",en:"Recommend",ko:"\uCD94\uCC9C",ja:"\u63A8\u85A6\u3057\u307E\u3059",de:"Eine empfehlung?",fr:"Recommand\xE9e",id:"Merekomendasikan"},{key:"\u65E5\u7A0B",zh:"","zh-CHT":"\u65E5\u7A0B",en:"Schedule",ko:"\uC77C\uC815",ja:"\u30B9\u30B1\u30B8\u30E5\u30FC\u30EB\u3067\u3059",de:"Plan?",fr:"Le calendrier",id:"Jadwal"},{key:"\u6982\u8FF0",zh:"","zh-CHT":"\u6982\u8FF0",en:"Overview",ko:"\uC694\uC57D",ja:"\u6982\u8AAC\u3057\u307E\u3059",de:"Erkl\xE4re es.",fr:"R\xE9sum\xE9",id:"Ikhtisar"},{key:"\u6388\u6743\u65B9\u5F0F",zh:"","zh-CHT":"\u6388\u6B0A\u65B9\u5F0F",en:"Authorization mode",ko:"\uC778\uC99D \uBC29\uC2DD",ja:"\u6388\u6A29\u65B9\u6CD5\u3067\u3059",de:"Nicht autorisiert.",fr:"Modalit\xE9s de mandat",id:"Cara memberdayakan"},{key:"\u666E\u901A\u7248",zh:"","zh-CHT":"\u666E\u901A\u7248",en:"Ordinary edition",ko:"\uC77C\uBC18\uD310",ja:"\u901A\u5E38\u7248\u3067\u3059",de:"Normale ausgabe.",fr:"La version normale",id:"Versi biasa"},{key:"\u529F\u80FD\u8F83\u5C11\u53EF\u80FD\u4F1A\u505C\u66F4",zh:"","zh-CHT":"\u529F\u80FD\u8F03\u5C11\u53EF\u80FD\u6703\u505C\u66F4",en:"Less function may stop",ko:"\uAE30\uB2A5\uC774 \uBD80\uC871\uD558\uBA74 \uB354 \uB2A6\uC744 \uC218\uB3C4 \uC788\uC2B5\uB2C8\uB2E4",ja:"\u6A5F\u80FD\u304C\u5C11\u306A\u3044\u305F\u3081\u505C\u6B62\u3059\u308B\u3053\u3068\u3082\u3042\u308A\u307E\u3059",de:"Eine unmenge an funktionen ist wahrscheinlich nicht mehr moglich",fr:"Moins de fonctions peut s\u2019arr\xEAter plus",id:"Sedikit fungsi mungkin akan berhenti lebih"},{key:"\u65E0\u987B\u6388\u6743",zh:"","zh-CHT":"\u7121\u9808\u6388\u6B0A",en:"Without authorization",ko:"\uC778\uC99D \uD544\uC694 \uC5C6\uC74C",ja:"\u8A31\u53EF\u306F\u4E0D\u8981\u3067\u3059",de:"Daf\xFCr ist keine genehmigung n\xF6tig.",fr:"Aucune autorisation requise",id:"Tidak perlu perintah."},{key:"Pro\u514D\u8D39\u7248",zh:"","zh-CHT":"Pro\u514D\u8CBB\u7248",en:"Pro Free Edition",ko:"Pro \uBB34\uB8CC\uBC84\uC804",ja:"\u30D7\u30ED\u7121\u6599\u7248\u3067\u3059",de:"Pro publikum kostenlos.",fr:"Version gratuite Pro",id:"Versi Pro gratis"},{key:"\u5373\u65F6\u804A\u5929",zh:"","zh-CHT":"\u5373\u6642\u804A\u5929",en:"Instant chat",ko:"\uC778\uC2A4\uD134\uD2B8 \uCC44\uD305",ja:"\u30A4\u30F3\u30B9\u30BF\u30F3\u30C8\u30C1\u30E3\u30C3\u30C8\u3067\u3059",de:"In echtzeit.",fr:"Chat en direct",id:"Ngobrol langsung"},{key:"Pro\u8BA2\u9605\u7248",zh:"","zh-CHT":"Pro\u8A02\u95B1\u7248",en:"Pro subscription",ko:"Pro \uAD6C\uB3C5\uD310",ja:"\u30D7\u30ED\u8CFC\u8AAD\u7248\u3067\u3059",de:"Pro abonnement",fr:"Version abonnement Pro",id:"Edisi Pro"},{key:"\u4E8C\u7EF4\u7801\u767B\u5F55",zh:"","zh-CHT":"\u4E8C\u7DAD\u78BC\u767B\u9304",en:"Qr code login",ko:"Qr \uCF54\uB4DC \uB4F1\uB85D",ja:"Qr\u30B3\u30FC\u30C9\u767B\u9332\u3067\u3059",de:"Computer mit code zwei",fr:"Connexion qr code",id:"Kode qr masuk"},{key:"\u804A\u5929\u673A\u5668\u4EBA",zh:"","zh-CHT":"\u804A\u5929\u6A5F\u5668\u4EBA",en:"Chatbot",ko:"\uCC44\uD305 \uB85C\uBD07",ja:"\u30C1\u30E3\u30C3\u30C8\u30DC\u30C3\u30C8\u3067\u3059",de:"Die roboter.",fr:"Le chatbot",id:"Ngobrol robot"},{key:"\u6D88\u606F\u6807\u6CE8",zh:"","zh-CHT":"\u6D88\u606F\u6A19\u8A3B",en:"Message annotation",ko:"\uBA54\uC2DC\uC9C0 \uB808\uC774\uBE14",ja:"\u30E1\u30C3\u30BB\u30FC\u30B8\u8868\u8A18\u3067\u3059",de:"Die nachricht markiert.",fr:"\xC9tiquetage des messages",id:"Label pesan"},{key:"\u53D1\u9001\u8BED\u97F3\u6D88\u606F",zh:"","zh-CHT":"\u767C\u9001\u8A9E\u97F3\u6D88\u606F",en:"Send voice message",ko:"\uC74C\uC131 \uBA54\uC2DC\uC9C0 \uBCF4\uB0B4\uAE30",ja:"\u97F3\u58F0\u30E1\u30C3\u30BB\u30FC\u30B8\u3092\u9001\u308A\u307E\u3059",de:"Senden sie eine nachricht.",fr:"Envoyer un message vocal",id:"Kirim pesan suara"},{key:"\u90E8\u95E8\u529F\u80FD",zh:"","zh-CHT":"\u90E8\u9580\u529F\u80FD",en:"Departmental function",ko:"\uBD80\uC11C \uAE30\uB2A5",ja:"\u90E8\u7F72\u6A5F\u80FD\u3067\u3059",de:"Funktion ab abteilung",fr:"Fonction du d\xE9partement",id:"Fungsi departemen"},{key:"LDAP\u767B\u5F55",zh:"","zh-CHT":"LDAP\u767B\u9304",en:"LDAP login",ko:"Ldap \uB85C\uADF8\uC778",ja:"LDAP\u30ED\u30B0\u30A4\u30F3\u3067\u3059",de:"LDAP loggt sich ein",fr:"Connexion avec LDAP",id:"Log masuk LDAP"},{key:"\u8868\u60C5\u56DE\u590D",zh:"","zh-CHT":"\u8868\u60C5\u56DE\u8986",en:"Expression response",ko:"\uC774\uBAA8\uD2F0\uCF58 \uB2F5\uC7A5",ja:"\u30B9\u30BF\u30F3\u30D7\u30EC\u30B9\u3067\u3059",de:"Emoticon-antworten antworten.",fr:"Emoji r\xE9pondre \xE0",id:"Balas ekspresi"},{key:"\u4EFB\u52A1\u91CD\u590D\u5468\u671F",zh:"","zh-CHT":"\u4EFB\u52D9\u91CD\u8907\u9031\u671F",en:"Task repetition cycle",ko:"\uC791\uC5C5 \uBC18\uBCF5 \uC8FC\uAE30",ja:"\u7E70\u308A\u8FD4\u3057\u306E\u30B5\u30A4\u30AF\u30EB\u3067\u3059",de:"Mission dupliziert sich.",fr:"Cycle de r\xE9p\xE9tition des t\xE2ches",id:"Siklus tugas berulang"},{key:"\u5E10\u53F7\uFF1A(*)\u3001\u5BC6\u7801\uFF1A(*)",zh:"","zh-CHT":"\u5E33\u865F\uFF1A(*)\u3001\u5BC6\u78BC\uFF1A(*)",en:"Account number: (*), Password: (*)",ko:"\uACC4\uC815 \uBC88\uD638:(*), \uBE44\uBC00\uBC88\uD638:(*)",ja:"\u30A2\u30AB\u30A6\u30F3\u30C8\u756A\u53F7:(*)\u3001\u30D1\u30B9\u30EF\u30FC\u30C9:(*)\u3067\u3059\u3002",de:"Kontonummer (*), passwort (*)",fr:"Num\xE9ro de compte :(*), mot de passe :(*)",id:"Akun :(*), kata sandi: *"},{key:"\u90AE\u7BB1\u5730\u5740\uFF1A(*)",zh:"","zh-CHT":"\u90F5\u7BB1\u5730\u5740\uFF1A(*)",en:"Email Address: (*)",ko:"\uC804\uC790\uC6B0\uD3B8 \uC8FC\uC18C:(*)",ja:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9:(*)\u3067\u3059\u3002",de:"Posteingang :(*)",fr:"Adresse e-mail :(*)",id:"Alamat surat :(*)"},{key:"(*)\u4EBA",zh:"","zh-CHT":"(*)\u4EBA",en:"(*) people",ko:"(*)",ja:"(*)\u4EBA\u3067\u3059",de:"(*) menschen",fr:"(*)",id:"(*) orang"}])},mounted(){this.getSetting(),this.getShowItem()},computed:{appTitle(){return`${this.$L("\u9009\u62E9\u9002\u5408\u4F60\u7684")} ${window.systemInfo.title||"DooTask"}`}},methods:{onLanguage(e){c(e)},goHome(){this.goForward({name:"index",query:{action:"index"}})},getSetting(){this.$store.dispatch("call",{url:"system/setting"}).then(({data:e})=>{this.systemConfig=e})},getShowItem(){this.$store.dispatch("call",{url:"system/get/showitem"}).then(({data:e})=>{this.showItem=e}).catch(e=>{this.showItem={}})}}},i={};var m=o(v,p,h,!1,k,"5604dc11",null,null);function k(e){for(let t in i)this[t]=i[t]}var b=function(){return m.exports}();export{b as default}; diff --git a/public/js/build/project.7c800c6a.js b/public/js/build/project.b44e8549.js similarity index 99% rename from public/js/build/project.7c800c6a.js rename to public/js/build/project.b44e8549.js index 0fafe5925..4155de1f4 100644 --- a/public/js/build/project.7c800c6a.js +++ b/public/js/build/project.b44e8549.js @@ -1,4 +1,4 @@ -import{g as xn,e as Tn,f as Sn,m as It,n as gt,d as Se,c as Ae,o as kn}from"./app.3d81bfbf.js";import{T as sn,P as In}from"./ProjectLog.7a036454.js";import{T as ln}from"./TaskMenu.bdcf4604.js";import{D as jn}from"./index.8fb9f3fd.js";import{U as cn}from"./UserSelect.6a5dfe83.js";import{D as En}from"./DialogWrapper.68f3aecd.js";import{l as Ln}from"./longpress.43ca7fd9.js";import"./ImgUpload.7f60f3a4.js";import"./details.ee26823b.js";var dn={exports:{}};/**! +import{g as xn,e as Tn,f as Sn,m as It,n as gt,d as Se,c as Ae,o as kn}from"./app.28437e7d.js";import{T as sn,P as In}from"./ProjectLog.65503d98.js";import{T as ln}from"./TaskMenu.98a91192.js";import{D as jn}from"./index.ed41beb1.js";import{U as cn}from"./UserSelect.fe42163b.js";import{D as En}from"./DialogWrapper.962561b6.js";import{l as Ln}from"./longpress.43ca7fd9.js";import"./ImgUpload.cbadd034.js";import"./details.70f91a78.js";var dn={exports:{}};/**! * Sortable 1.10.2 * @author RubaXa * @author owenm diff --git a/public/js/build/projectInvite.b8da8c6e.js b/public/js/build/projectInvite.56a67275.js similarity index 96% rename from public/js/build/projectInvite.b8da8c6e.js rename to public/js/build/projectInvite.56a67275.js index 5d03994dc..675e639ae 100644 --- a/public/js/build/projectInvite.b8da8c6e.js +++ b/public/js/build/projectInvite.56a67275.js @@ -1 +1 @@ -import{n as a}from"./app.3d81bfbf.js";var r=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"page-invite"},[e("PageTitle",{attrs:{title:t.$L("\u52A0\u5165\u9879\u76EE")}}),t.loadIng>0?e("div",{staticClass:"invite-load"},[e("Loading")],1):e("div",{staticClass:"invite-warp"},[t.project.id>0?e("Card",[e("p",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.project.name))]),t.project.desc?e("div",{staticClass:"invite-desc"},[t._v(t._s(t.project.desc))]):e("div",[t._v(t._s(t.$L("\u6682\u65E0\u4ECB\u7ECD")))]),e("div",{staticClass:"invite-footer"},[t.already?e("Button",{attrs:{type:"success",icon:"ios-checkmark-circle-outline"},on:{click:t.goProject}},[t._v(t._s(t.$L("\u5DF2\u52A0\u5165")))]):e("Button",{attrs:{type:"primary",loading:t.joinLoad>0},on:{click:t.joinProject}},[t._v(t._s(t.$L("\u52A0\u5165\u9879\u76EE")))])],1)]):e("Card",[e("p",[t._v(t._s(t.$L("\u9080\u8BF7\u5730\u5740\u4E0D\u5B58\u5728\u6216\u5DF2\u88AB\u5220\u9664\uFF01")))])])],1)],1)},s=[];const c={data(){return{loadIng:0,joinLoad:0,already:!1,project:{}}},watch:{$route:{handler(t){this.code=t.query?t.query.code:"",this.getData()},immediate:!0}},methods:{getData(){this.loadIng++,this.$store.dispatch("call",{url:"project/invite/info",data:{code:this.code}}).then(({data:t})=>{this.already=t.already,this.project=t.project}).catch(()=>{this.project={}}).finally(t=>{this.loadIng--})},joinProject(){this.joinLoad++,this.$store.dispatch("call",{url:"project/invite/join",data:{code:this.code}}).then(({data:t})=>{this.already=t.already,this.project=t.project,this.goProject()}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.joinLoad--})},goProject(){this.$nextTick(()=>{$A.goForward({name:"manage-project",params:{projectId:this.project.id}})})}}},o={};var n=a(c,r,s,!1,l,"2305dec0",null,null);function l(t){for(let i in o)this[i]=o[i]}var _=function(){return n.exports}();export{_ as default}; +import{n as a}from"./app.28437e7d.js";var r=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"page-invite"},[e("PageTitle",{attrs:{title:t.$L("\u52A0\u5165\u9879\u76EE")}}),t.loadIng>0?e("div",{staticClass:"invite-load"},[e("Loading")],1):e("div",{staticClass:"invite-warp"},[t.project.id>0?e("Card",[e("p",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(t.project.name))]),t.project.desc?e("div",{staticClass:"invite-desc"},[t._v(t._s(t.project.desc))]):e("div",[t._v(t._s(t.$L("\u6682\u65E0\u4ECB\u7ECD")))]),e("div",{staticClass:"invite-footer"},[t.already?e("Button",{attrs:{type:"success",icon:"ios-checkmark-circle-outline"},on:{click:t.goProject}},[t._v(t._s(t.$L("\u5DF2\u52A0\u5165")))]):e("Button",{attrs:{type:"primary",loading:t.joinLoad>0},on:{click:t.joinProject}},[t._v(t._s(t.$L("\u52A0\u5165\u9879\u76EE")))])],1)]):e("Card",[e("p",[t._v(t._s(t.$L("\u9080\u8BF7\u5730\u5740\u4E0D\u5B58\u5728\u6216\u5DF2\u88AB\u5220\u9664\uFF01")))])])],1)],1)},s=[];const c={data(){return{loadIng:0,joinLoad:0,already:!1,project:{}}},watch:{$route:{handler(t){this.code=t.query?t.query.code:"",this.getData()},immediate:!0}},methods:{getData(){this.loadIng++,this.$store.dispatch("call",{url:"project/invite/info",data:{code:this.code}}).then(({data:t})=>{this.already=t.already,this.project=t.project}).catch(()=>{this.project={}}).finally(t=>{this.loadIng--})},joinProject(){this.joinLoad++,this.$store.dispatch("call",{url:"project/invite/join",data:{code:this.code}}).then(({data:t})=>{this.already=t.already,this.project=t.project,this.goProject()}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.joinLoad--})},goProject(){this.$nextTick(()=>{$A.goForward({name:"manage-project",params:{projectId:this.project.id}})})}}},o={};var n=a(c,r,s,!1,l,"2305dec0",null,null);function l(t){for(let i in o)this[i]=o[i]}var _=function(){return n.exports}();export{_ as default}; diff --git a/public/js/build/reportDetail.5fbfb807.js b/public/js/build/reportDetail.f8c5e6fd.js similarity index 85% rename from public/js/build/reportDetail.5fbfb807.js rename to public/js/build/reportDetail.f8c5e6fd.js index 0392eb625..2a942a617 100644 --- a/public/js/build/reportDetail.5fbfb807.js +++ b/public/js/build/reportDetail.f8c5e6fd.js @@ -1 +1 @@ -import{R as i}from"./ReportDetail.6914d4af.js";import{n as o}from"./app.3d81bfbf.js";var s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"electron-report"},[r("PageTitle",{attrs:{title:t.$L("\u62A5\u544A\u8BE6\u60C5")}}),r("ReportDetail",{attrs:{data:t.detailData}})],1)},l=[];const n={components:{ReportDetail:i},data(){return{detailData:{}}},computed:{reportDetailId(){const{reportDetailId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)}},watch:{reportDetailId:{handler(){this.getDetail()},immediate:!0}},methods:{getDetail(){this.reportDetailId<=0||this.$store.dispatch("call",{url:"report/detail",data:{id:this.reportDetailId}}).then(({data:t})=>{this.detailData=t}).catch(({msg:t})=>{$A.messageError(t)})}}},a={};var c=o(n,s,l,!1,d,"76126c11",null,null);function d(t){for(let e in a)this[e]=a[e]}var u=function(){return c.exports}();export{u as default}; +import{R as i}from"./ReportDetail.62478618.js";import{n as o}from"./app.28437e7d.js";var s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"electron-report"},[r("PageTitle",{attrs:{title:t.$L("\u62A5\u544A\u8BE6\u60C5")}}),r("ReportDetail",{attrs:{data:t.detailData}})],1)},l=[];const n={components:{ReportDetail:i},data(){return{detailData:{}}},computed:{reportDetailId(){const{reportDetailId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)}},watch:{reportDetailId:{handler(){this.getDetail()},immediate:!0}},methods:{getDetail(){this.reportDetailId<=0||this.$store.dispatch("call",{url:"report/detail",data:{id:this.reportDetailId}}).then(({data:t})=>{this.detailData=t}).catch(({msg:t})=>{$A.messageError(t)})}}},a={};var c=o(n,s,l,!1,d,"76126c11",null,null);function d(t){for(let e in a)this[e]=a[e]}var u=function(){return c.exports}();export{u as default}; diff --git a/public/js/build/reportEdit.93b721b2.js b/public/js/build/reportEdit.b1049887.js similarity index 86% rename from public/js/build/reportEdit.93b721b2.js rename to public/js/build/reportEdit.b1049887.js index ea7e1542a..9cce4c391 100644 --- a/public/js/build/reportEdit.93b721b2.js +++ b/public/js/build/reportEdit.b1049887.js @@ -1 +1 @@ -import{R as i}from"./ReportEdit.9d99c827.js";import{n}from"./app.3d81bfbf.js";import"./UserSelect.6a5dfe83.js";var o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"electron-report"},[r("PageTitle",{attrs:{title:t.title}}),r("ReportEdit",{attrs:{id:t.reportEditId},on:{saveSuccess:t.saveSuccess}})],1)},a=[];const d={components:{ReportEdit:i},data(){return{detail:{}}},computed:{reportEditId(){if(/^\d+$/.test(this.detail.id))return parseInt(this.detail.id);const{reportEditId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},title(){return this.$L(this.reportEditId>0?"\u4FEE\u6539\u62A5\u544A":"\u65B0\u589E\u62A5\u544A")}},methods:{saveSuccess(t){this.detail=t,this.$isSubElectron&&($A.Electron.sendMessage("sendForwardMain",{channel:"reportSaveSuccess",data:t}),window.close())}}},s={};var c=n(d,o,a,!1,l,"807ce0ea",null,null);function l(t){for(let e in s)this[e]=s[e]}var v=function(){return c.exports}();export{v as default}; +import{R as i}from"./ReportEdit.74592e96.js";import{n}from"./app.28437e7d.js";import"./UserSelect.fe42163b.js";var o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"electron-report"},[r("PageTitle",{attrs:{title:t.title}}),r("ReportEdit",{attrs:{id:t.reportEditId},on:{saveSuccess:t.saveSuccess}})],1)},a=[];const d={components:{ReportEdit:i},data(){return{detail:{}}},computed:{reportEditId(){if(/^\d+$/.test(this.detail.id))return parseInt(this.detail.id);const{reportEditId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},title(){return this.$L(this.reportEditId>0?"\u4FEE\u6539\u62A5\u544A":"\u65B0\u589E\u62A5\u544A")}},methods:{saveSuccess(t){this.detail=t,this.$isSubElectron&&($A.Electron.sendMessage("sendForwardMain",{channel:"reportSaveSuccess",data:t}),window.close())}}},s={};var c=n(d,o,a,!1,l,"807ce0ea",null,null);function l(t){for(let e in s)this[e]=s[e]}var v=function(){return c.exports}();export{v as default}; diff --git a/public/js/build/swipe.f2e8b611.js b/public/js/build/swipe.1fc4f623.js similarity index 99% rename from public/js/build/swipe.f2e8b611.js rename to public/js/build/swipe.1fc4f623.js index b6c703396..bc51fa9c0 100644 --- a/public/js/build/swipe.f2e8b611.js +++ b/public/js/build/swipe.1fc4f623.js @@ -1,4 +1,4 @@ -import{n as w,_ as v}from"./app.3d81bfbf.js";/*! +import{n as w,_ as v}from"./app.28437e7d.js";/*! * PhotoSwipe Lightbox 5.3.7 - https://photoswipe.com * (c) 2023 Dmytro Semenov */function d(s,t,e){const i=document.createElement(t);return s&&(i.className=s),e&&e.appendChild(i),i}function S(s,t,e){let i=`translate3d(${s}px,${t||0}px,0)`;return e!==void 0&&(i+=` scale3d(${e},${e},1)`),i}function u(s,t,e){s.style.width=typeof t=="number"?`${t}px`:t,s.style.height=typeof e=="number"?`${e}px`:e}const a={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"};function E(s){return"button"in s&&s.button===1||s.ctrlKey||s.metaKey||s.altKey||s.shiftKey}function c(s,t,e=document){let i=[];if(s instanceof Element)i=[s];else if(s instanceof NodeList||Array.isArray(s))i=Array.from(s);else{const n=typeof s=="string"?s:t;n&&(i=Array.from(e.querySelectorAll(n)))}return i}function I(s){return typeof s=="function"&&s.prototype&&s.prototype.goTo}function f(){return!!(navigator.vendor&&navigator.vendor.match(/apple/i))}class A{constructor(t,e){this.type=t,this.defaultPrevented=!1,e&&Object.assign(this,e)}preventDefault(){this.defaultPrevented=!0}}class b{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(t,e,i=100){var n,r,l;this._filters[t]||(this._filters[t]=[]),(n=this._filters[t])==null||n.push({fn:e,priority:i}),(r=this._filters[t])==null||r.sort((o,h)=>o.priority-h.priority),(l=this.pswp)==null||l.addFilter(t,e,i)}removeFilter(t,e){this._filters[t]&&(this._filters[t]=this._filters[t].filter(i=>i.fn!==e)),this.pswp&&this.pswp.removeFilter(t,e)}applyFilters(t,...e){var i;return(i=this._filters[t])==null||i.forEach(n=>{e[0]=n.fn.apply(this,e)}),e[0]}on(t,e){var i,n;this._listeners[t]||(this._listeners[t]=[]),(i=this._listeners[t])==null||i.push(e),(n=this.pswp)==null||n.on(t,e)}off(t,e){var i;this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter(n=>e!==n)),(i=this.pswp)==null||i.off(t,e)}dispatch(t,e){var n;if(this.pswp)return this.pswp.dispatch(t,e);const i=new A(t,e);return(n=this._listeners[t])==null||n.forEach(r=>{r.call(this,i)}),i}}class C{constructor(t,e){if(this.element=d("pswp__img pswp__img--placeholder",t?"img":"div",e),t){const i=this.element;i.decoding="async",i.alt="",i.src=t,i.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(t,e){!this.element||(this.element.tagName==="IMG"?(u(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=S(0,0,t/250)):u(this.element,t,e))}destroy(){var t;(t=this.element)!=null&&t.parentNode&&this.element.remove(),this.element=null}}class D{constructor(t,e,i){this.instance=e,this.data=t,this.index=i,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=a.IDLE,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(t,e){if(this.slide&&this.usePlaceholder())if(this.placeholder){const i=this.placeholder.element;i&&!i.parentElement&&this.slide.container.prepend(i)}else{const i=this.instance.applyFilters("placeholderSrc",this.data.msrc&&this.slide.isFirstSlide?this.data.msrc:!1,this);this.placeholder=new C(i,this.slide.container)}this.element&&!e||this.instance.dispatch("contentLoad",{content:this,isLazy:t}).defaultPrevented||(this.isImageContent()?(this.element=d("pswp__img","img"),this.displayedImageWidth&&this.loadImage(t)):(this.element=d("pswp__content","div"),this.element.innerHTML=this.data.html||""),e&&this.slide&&this.slide.updateContentSize(!0))}loadImage(t){var i,n;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:t}).defaultPrevented)return;const e=this.element;this.updateSrcsetSizes(),this.data.srcset&&(e.srcset=this.data.srcset),e.src=(i=this.data.src)!=null?i:"",e.alt=(n=this.data.alt)!=null?n:"",this.state=a.LOADING,e.complete?this.onLoaded():(e.onload=()=>{this.onLoaded()},e.onerror=()=>{this.onError()})}setSlide(t){this.slide=t,this.hasSlide=!0,this.instance=t.pswp}onLoaded(){this.state=a.LOADED,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),(this.state===a.LOADED||this.state===a.ERROR)&&this.removePlaceholder())}onError(){this.state=a.ERROR,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===a.LOADING,this)}isError(){return this.state===a.ERROR}isImageContent(){return this.type==="image"}setDisplayedSize(t,e){if(!!this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(t,e),!this.instance.dispatch("contentResize",{content:this,width:t,height:e}).defaultPrevented&&(u(this.element,t,e),this.isImageContent()&&!this.isError()))){const i=!this.displayedImageWidth&&t;this.displayedImageWidth=t,this.displayedImageHeight=e,i?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:t,height:e,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==a.ERROR,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const t=this.element,e=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!t.dataset.largestUsedSize||e>parseInt(t.dataset.largestUsedSize,10))&&(t.sizes=e+"px",t.dataset.largestUsedSize=String(e))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,!this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented&&(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){var t,e;if(this.slide){let i=d("pswp__error-msg","div");i.innerText=(e=(t=this.instance.options)==null?void 0:t.errorMsg)!=null?e:"",i=this.instance.applyFilters("contentErrorElement",i,this),this.element=d("pswp__content pswp__error-msg-container","div"),this.element.appendChild(i),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===a.ERROR){this.displayError();return}if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const t="decode"in this.element;this.isImageContent()?t&&this.slide&&(!this.slide.isActive||f())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||!this.slide||(this.isImageContent()&&this.isDecoding&&!f()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,!this.instance.dispatch("contentRemove",{content:this}).defaultPrevented&&(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){!this.isAttached||this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),(this.state===a.LOADED||this.state===a.ERROR)&&this.removePlaceholder())}}function L(s,t){if(s.getViewportSizeFn){const e=s.getViewportSizeFn(s,t);if(e)return e}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function p(s,t,e,i,n){let r=0;if(t.paddingFn)r=t.paddingFn(e,i,n)[s];else if(t.padding)r=t.padding[s];else{const l="padding"+s[0].toUpperCase()+s.slice(1);t[l]&&(r=t[l])}return Number(r)||0}function x(s,t,e,i){return{x:t.x-p("left",s,t,e,i)-p("right",s,t,e,i),y:t.y-p("top",s,t,e,i)-p("bottom",s,t,e,i)}}const m=4e3;class P{constructor(t,e,i,n){this.pswp=n,this.options=t,this.itemData=e,this.index=i,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(t,e,i){const n={x:t,y:e};this.elementSize=n,this.panAreaSize=i;const r=i.x/n.x,l=i.y/n.y;this.fit=Math.min(1,rl?r:l),this.vFill=Math.min(1,l),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(t){const e=t+"ZoomLevel",i=this.options[e];if(!!i)return typeof i=="function"?i(this):i==="fill"?this.fill:i==="fit"?this.fit:Number(i)}_getSecondary(){let t=this._parseZoomLevelOption("secondary");return t||(t=Math.min(1,this.fit*3),this.elementSize&&t*this.elementSize.x>m&&(t=m/this.elementSize.x),t)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,this.fit*4)}}function y(s,t,e){const i=t.createContentFromData(s,e);let n;const{options:r}=t;if(r){n=new P(r,s,-1);let l;t.pswp?l=t.pswp.viewportSize:l=L(r,t);const o=x(r,l,s,e);n.update(i.width,i.height,o)}return i.lazyLoad(),n&&i.setDisplayedSize(Math.ceil(i.width*n.initial),Math.ceil(i.height*n.initial)),i}function z(s,t){const e=t.getItemData(s);if(!t.dispatch("lazyLoadSlide",{index:s,itemData:e}).defaultPrevented)return y(e,t,s)}class O extends b{getNumItems(){var n;let t=0;const e=(n=this.options)==null?void 0:n.dataSource;e&&"length"in e?t=e.length:e&&"gallery"in e&&(e.items||(e.items=this._getGalleryDOMElements(e.gallery)),e.items&&(t=e.items.length));const i=this.dispatch("numItems",{dataSource:e,numItems:t});return this.applyFilters("numItems",i.numItems,e)}createContentFromData(t,e){return new D(t,this,e)}getItemData(t){var l;const e=(l=this.options)==null?void 0:l.dataSource;let i={};Array.isArray(e)?i=e[t]:e&&"gallery"in e&&(e.items||(e.items=this._getGalleryDOMElements(e.gallery)),i=e.items[t]);let n=i;n instanceof Element&&(n=this._domElementToItemData(n));const r=this.dispatch("itemData",{itemData:n||{},index:t});return this.applyFilters("itemData",r.itemData,t)}_getGalleryDOMElements(t){var e,i;return((e=this.options)==null?void 0:e.children)||((i=this.options)==null?void 0:i.childSelector)?c(this.options.children,this.options.childSelector,t)||[]:[t]}_domElementToItemData(t){var n;const e={element:t},i=t.tagName==="A"?t:t.querySelector("a");if(i){e.src=i.dataset.pswpSrc||i.href,i.dataset.pswpSrcset&&(e.srcset=i.dataset.pswpSrcset),e.width=i.dataset.pswpWidth?parseInt(i.dataset.pswpWidth,10):0,e.height=i.dataset.pswpHeight?parseInt(i.dataset.pswpHeight,10):0,e.w=e.width,e.h=e.height,i.dataset.pswpType&&(e.type=i.dataset.pswpType);const r=t.querySelector("img");r&&(e.msrc=r.currentSrc||r.src,e.alt=(n=r.getAttribute("alt"))!=null?n:""),(i.dataset.pswpCropped||i.dataset.cropped)&&(e.thumbCropped=!0)}return this.applyFilters("domItemData",e,t,i)}lazyLoadData(t,e){return y(t,this,e)}}class M extends O{constructor(t){super(),this.options=t||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){c(this.options.gallery,this.options.gallerySelector).forEach(t=>{t.addEventListener("click",this.onThumbnailsClick,!1)})}onThumbnailsClick(t){if(E(t)||window.pswp||window.navigator.onLine===!1)return;let e={x:t.clientX,y:t.clientY};!e.x&&!e.y&&(e=null);let i=this.getClickedIndex(t);i=this.applyFilters("clickedIndex",i,t,this);const n={gallery:t.currentTarget};i>=0&&(t.preventDefault(),this.loadAndOpen(i,n,e))}getClickedIndex(t){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,t);const e=t.target,n=c(this.options.children,this.options.childSelector,t.currentTarget).findIndex(r=>r===e||r.contains(e));return n!==-1?n:this.options.children||this.options.childSelector?-1:0}loadAndOpen(t,e,i){return window.pswp?!1:(this.options.index=t,this.options.initialPointerPos=i,this.shouldOpen=!0,this.preload(t,e),!0)}preload(t,e){const{options:i}=this;e&&(i.dataSource=e);const n=[],r=typeof i.pswpModule;if(I(i.pswpModule))n.push(Promise.resolve(i.pswpModule));else{if(r==="string")throw new Error("pswpModule as string is no longer supported");if(r==="function")n.push(i.pswpModule());else throw new Error("pswpModule is not valid")}typeof i.openPromise=="function"&&n.push(i.openPromise()),i.preloadFirstSlide!==!1&&t>=0&&(this._preloadedContent=z(t,this));const l=++this._uid;Promise.all(n).then(o=>{if(this.shouldOpen){const h=o[0];this._openPhotoswipe(h,l)}})}_openPhotoswipe(t,e){if(e!==this._uid&&this.shouldOpen||(this.shouldOpen=!1,window.pswp))return;const i=typeof t=="object"?new t.default(this.options):new t(this.options);this.pswp=i,window.pswp=i,Object.keys(this._listeners).forEach(n=>{var r;(r=this._listeners[n])==null||r.forEach(l=>{i.on(n,l)})}),Object.keys(this._filters).forEach(n=>{var r;(r=this._filters[n])==null||r.forEach(l=>{i.addFilter(n,l.fn,l.priority)})}),this._preloadedContent&&(i.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=void 0),i.on("destroy",()=>{this.pswp=void 0,delete window.pswp}),i.init()}destroy(){var t;(t=this.pswp)==null||t.destroy(),this.shouldOpen=!1,this._listeners={},c(this.options.gallery,this.options.gallerySelector).forEach(e=>{e.removeEventListener("click",this.onThumbnailsClick,!1)})}}var F=function(){var s=this,t=s.$createElement,e=s._self._c||t;return e("div")},R=[];const N={props:{className:{type:String,default:()=>"preview-image-swipe-"+Math.round(Math.random()*1e4)},urlList:{type:Array,default:()=>[]},initialIndex:{type:Number,default:0}},data(){return{lightbox:null}},beforeDestroy(){var s;(s=this.lightbox)==null||s.destroy()},watch:{urlList:{handler(s){var n;let t=!1,e=!1;(n=this.lightbox)==null||n.destroy();const i=s.map(r=>{if($A.isJson(r)){if(r.src&&(r.src=$A.thumbRestore(r.src)),parseInt(r.width)>0&&parseInt(r.height)>0)return r;r=r.src}return e=!0,{html:`
    `}});this.lightbox=new M({dataSource:i,escKey:!1,mainClass:this.className,showHideAnimationType:"none",pswpModule:()=>v(()=>import("./photoswipe.esm.f2ba98d2.js"),[])}),this.lightbox.on("change",r=>{!e||$A.loadScript("js/pinch-zoom.umd.min.js").then(l=>{document.querySelector(`.${this.className}`).querySelectorAll(".preview-image-swipe").forEach(h=>{h.getAttribute("data-init-pinch-zoom")!=="init"&&(h.setAttribute("data-init-pinch-zoom","init"),h.querySelector("img").addEventListener("pointermove",_=>{t&&_.stopPropagation()}),new PinchZoom.default(h,{draggableUnzoomed:!1,onDragStart:()=>{t=!0},onDragEnd:()=>{t=!1}}))})})}),this.lightbox.on("close",()=>{this.$emit("on-close")}),this.lightbox.on("destroy",()=>{this.$emit("on-destroy")}),this.lightbox.init(),this.lightbox.loadAndOpen(this.initialIndex)},immediate:!0},initialIndex(s){var t;(t=this.lightbox)==null||t.loadAndOpen(s)}}},g={};var T=w(N,F,R,!1,k,null,null,null);function k(s){for(let t in g)this[t]=g[t]}var W=function(){return T.exports}();export{W as default}; diff --git a/public/js/build/system.e9d1e067.js b/public/js/build/system.1e3ba535.js similarity index 99% rename from public/js/build/system.e9d1e067.js rename to public/js/build/system.1e3ba535.js index 6a5b53255..14072866f 100644 --- a/public/js/build/system.e9d1e067.js +++ b/public/js/build/system.1e3ba535.js @@ -1 +1 @@ -import{n as r,m as v}from"./app.3d81bfbf.js";import{D as $}from"./index.8fb9f3fd.js";import{C as h,T as D}from"./CheckinExport.e995cbea.js";import"./UserSelect.6a5dfe83.js";var b=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formDatum",attrs:{model:t.formDatum,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u5E10\u53F7\u76F8\u5173")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5141\u8BB8\u6CE8\u518C"),prop:"reg"}},[a("RadioGroup",{model:{value:t.formDatum.reg,callback:function(e){t.$set(t.formDatum,"reg",e)},expression:"formDatum.reg"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5141\u8BB8")))]),a("Radio",{attrs:{label:"invite"}},[t._v(t._s(t.$L("\u9080\u8BF7\u7801")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u6B62")))])],1),t.formDatum.reg=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\uFF1A\u5F00\u653E\u6CE8\u518C\u529F\u80FD\u3002")))]):t.formDatum.reg=="invite"?[a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u9080\u8BF7\u7801\uFF1A\u6CE8\u518C\u65F6\u9700\u586B\u5199\u4E0B\u65B9\u9080\u8BF7\u7801\u3002")))]),a("Input",{staticStyle:{width:"200px","margin-top":"6px"},model:{value:t.formDatum.reg_invite,callback:function(e){t.$set(t.formDatum,"reg_invite",e)},expression:"formDatum.reg_invite"}},[a("span",{attrs:{slot:"prepend"},slot:"prepend"},[t._v(t._s(t.$L("\u9080\u8BF7\u7801")))])])]:t._e()],2),["open","invite"].includes(t.formDatum.reg)?a("FormItem",{attrs:{label:t.$L("\u6CE8\u518C\u8EAB\u4EFD"),prop:"reg_identity"}},[a("RadioGroup",{model:{value:t.formDatum.reg_identity,callback:function(e){t.$set(t.formDatum,"reg_identity",e)},expression:"formDatum.reg_identity"}},[a("Radio",{attrs:{label:"normal"}},[t._v(t._s(t.$L("\u6B63\u5E38\u5E10\u53F7")))]),a("Radio",{attrs:{label:"temp"}},[t._v(t._s(t.$L("\u4E34\u65F6\u5E10\u53F7")))])],1),a("div",{staticClass:"form-tip form-list"},[a("p",[t._v(t._s(t.$L("\u4E34\u65F6\u5E10\u53F7"))+"\uFF1A")]),a("ol",[a("li",[t._v(t._s(t.$L("\u7981\u6B62\u67E5\u770B\u5171\u4EAB\u6240\u6709\u4EBA\u7684\u6587\u4EF6\u3002")))]),a("li",[t._v(t._s(t.$L("\u7981\u6B62\u53D1\u8D77\u4F1A\u8BDD\u3002")))]),a("li",[t._v(t._s(t.$L("\u7981\u6B62\u521B\u5EFA\u7FA4\u804A\u3002")))]),a("li",[t._v(t._s(t.$L("\u7981\u6B62\u62E8\u6253\u7535\u8BDD\u3002")))])])])],1):t._e(),a("FormItem",{attrs:{label:t.$L("\u767B\u5F55\u9A8C\u8BC1\u7801"),prop:"loginCode"}},[a("RadioGroup",{model:{value:t.formDatum.login_code,callback:function(e){t.$set(t.formDatum,"login_code",e)},expression:"formDatum.login_code"}},[a("Radio",{attrs:{label:"auto"}},[t._v(t._s(t.$L("\u81EA\u52A8")))]),a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.login_code=="auto"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u81EA\u52A8\uFF1A\u5BC6\u7801\u8F93\u5165\u9519\u8BEF\u540E\u5FC5\u987B\u6DFB\u52A0\u9A8C\u8BC1\u7801\u3002")))]):t.formDatum.login_code=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\uFF1A\u6BCF\u6B21\u767B\u5F55\u90FD\u9700\u8981\u56FE\u5F62\u9A8C\u8BC1\u7801\u3002")))]):t.formDatum.login_code=="close"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\uFF1A\u4E0D\u9700\u8981\u8F93\u5165\u56FE\u5F62\u9A8C\u8BC1\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u5BC6\u7801\u7B56\u7565"),prop:"passwordPolicy"}},[a("RadioGroup",{model:{value:t.formDatum.password_policy,callback:function(e){t.$set(t.formDatum,"password_policy",e)},expression:"formDatum.password_policy"}},[a("Radio",{attrs:{label:"simple"}},[t._v(t._s(t.$L("\u7B80\u5355")))]),a("Radio",{attrs:{label:"complex"}},[t._v(t._s(t.$L("\u590D\u6742")))])],1),t.formDatum.password_policy=="simple"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7B80\u5355\uFF1A\u5927\u4E8E\u6216\u7B49\u4E8E6\u4E2A\u5B57\u7B26\u3002")))]):t.formDatum.password_policy=="complex"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u590D\u6742\uFF1A\u5927\u4E8E\u6216\u7B49\u4E8E6\u4E2A\u5B57\u7B26\uFF0C\u5305\u542B\u6570\u5B57\u3001\u5B57\u6BCD\u5927\u5C0F\u5199\u6216\u8005\u7279\u6B8A\u5B57\u7B26\u3002")))]):t._e()],1)],1)]),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u9879\u76EE\u76F8\u5173")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u9080\u8BF7\u9879\u76EE"),prop:"projectInvite"}},[a("RadioGroup",{model:{value:t.formDatum.project_invite,callback:function(e){t.$set(t.formDatum,"project_invite",e)},expression:"formDatum.project_invite"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.project_invite=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\uFF1A\u9879\u76EE\u7BA1\u7406\u5458\u53EF\u751F\u6210\u94FE\u63A5\u9080\u8BF7\u6210\u5458\u52A0\u5165\u9879\u76EE\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u81EA\u52A8\u5F52\u6863\u4EFB\u52A1"),prop:"autoArchived"}},[a("RadioGroup",{attrs:{value:t.formDatum.auto_archived},on:{"on-change":t.formArchived}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EFB\u52A1\u5B8C\u6210\u540E\u81EA\u52A8\u5F52\u6863\u3002")))]),t.formDatum.auto_archived=="open"?a("ETooltip",{attrs:{placement:"right",disabled:t.$isEEUiApp||t.windowTouch}},[a("div",{staticClass:"setting-auto-day"},[a("Input",{attrs:{type:"number"},model:{value:t.formDatum.archived_day,callback:function(e){t.$set(t.formDatum,"archived_day",e)},expression:"formDatum.archived_day"}},[a("span",{attrs:{slot:"append"},slot:"append"},[t._v(t._s(t.$L("\u5929")))])])],1),a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.$L("\u4EFB\u52A1\u5B8C\u6210 (*) \u5929\u540E\u81EA\u52A8\u5F52\u6863\u3002",t.formDatum.archived_day)))])]):t._e()],1)],1)]),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u6D88\u606F\u76F8\u5173")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5168\u5458\u7FA4\u7EC4\u7981\u8A00"),prop:"allGroupMute"}},[a("RadioGroup",{model:{value:t.formDatum.all_group_mute,callback:function(e){t.$set(t.formDatum,"all_group_mute",e)},expression:"formDatum.all_group_mute"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u653E")))]),a("Radio",{attrs:{label:"user"}},[t._v(t._s(t.$L("\u6210\u5458\u7981\u8A00")))]),a("Radio",{attrs:{label:"all"}},[t._v(t._s(t.$L("\u5168\u90E8\u7981\u8A00")))])],1),t.formDatum.all_group_mute=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u653E\uFF1A\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u53D1\u8A00\u3002")))]):t.formDatum.all_group_mute=="user"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6210\u5458\u7981\u8A00\uFF1A\u4EC5\u7BA1\u7406\u5458\u53EF\u4EE5\u53D1\u8A00\u3002")))]):t.formDatum.all_group_mute=="all"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5168\u90E8\u7981\u8A00\uFF1A\u6240\u6709\u4EBA\u90FD\u7981\u6B62\u53D1\u8A00\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u81EA\u52A8\u8FDB\u5165\u5168\u5458\u7FA4"),prop:"allGroupAutoin"}},[a("RadioGroup",{model:{value:t.formDatum.all_group_autoin,callback:function(e){t.$set(t.formDatum,"all_group_autoin",e)},expression:"formDatum.all_group_autoin"}},[a("Radio",{attrs:{label:"yes"}},[t._v(t._s(t.$L("\u81EA\u52A8")))]),a("Radio",{attrs:{label:"no"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.all_group_autoin=="yes"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u81EA\u52A8\uFF1A\u6CE8\u518C\u6210\u529F\u540E\u81EA\u52A8\u8FDB\u5165\u5168\u5458\u7FA4\u3002")))]):t.formDatum.all_group_autoin=="no"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\uFF1A\u5176\u4ED6\u6210\u5458\u901A\u8FC7@\u9080\u8BF7\u8FDB\u5165\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u804A\u5929\u8D44\u6599"),prop:"chatInformation"}},[a("RadioGroup",{model:{value:t.formDatum.chat_information,callback:function(e){t.$set(t.formDatum,"chat_information",e)},expression:"formDatum.chat_information"}},[a("Radio",{attrs:{label:"optional"}},[t._v(t._s(t.$L("\u53EF\u9009")))]),a("Radio",{attrs:{label:"required"}},[t._v(t._s(t.$L("\u5FC5\u586B")))])],1),t.formDatum.chat_information=="required"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5FC5\u586B\uFF1A\u53D1\u9001\u804A\u5929\u5185\u5BB9\u524D\u5FC5\u987B\u8BBE\u7F6E\u6635\u79F0\u3001\u7535\u8BDD\u3002")))]):a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5982\u679C\u5FC5\u586B\uFF0C\u53D1\u9001\u804A\u5929\u524D\u5FC5\u987B\u8BBE\u7F6E\u6635\u79F0\u3001\u7535\u8BDD\u3002")))])],1),a("FormItem",{attrs:{label:t.$L("\u533F\u540D\u6D88\u606F"),prop:"anonMessage"}},[a("RadioGroup",{model:{value:t.formDatum.anon_message,callback:function(e){t.$set(t.formDatum,"anon_message",e)},expression:"formDatum.anon_message"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.anon_message=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\u533F\u540D\u53D1\u9001\u6D88\u606F\u7ED9\u5176\u4ED6\u6210\u5458\u3002")))]):a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7981\u6B62\u533F\u540D\u53D1\u9001\u6D88\u606F\u3002")))])],1)],1)]),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u5176\u4ED6\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u56FE\u7247\u4F18\u5316"),prop:"image_compress"}},[a("RadioGroup",{model:{value:t.formDatum.image_compress,callback:function(e){t.$set(t.formDatum,"image_compress",e)},expression:"formDatum.image_compress"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6570\u7801\u76F8\u673A4M\u7684\u56FE\u7247\uFF0C\u4F18\u5316\u540E\u4EC5\u6709700KB\u5DE6\u53F3\uFF0C\u800C\u4E14\u8089\u773C\u57FA\u672C\u770B\u4E0D\u51FA\u533A\u522B\u3002")))])],1),a("FormItem",{attrs:{label:t.$L("\u4FDD\u5B58\u7F51\u7EDC\u56FE\u7247"),prop:"image_save_local"}},[a("RadioGroup",{model:{value:t.formDatum.image_save_local,callback:function(e){t.$set(t.formDatum,"image_save_local",e)},expression:"formDatum.image_save_local"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u662F\u5426\u5C06\u6D88\u606F\u4E2D\u7684\u7F51\u7EDC\u56FE\u7247\u4FDD\u5B58\u5230\u672C\u5730\u670D\u52A1\u5668\u3002")))])],1),t.$A.isDooServer()?a("FormItem",{attrs:{label:t.$L("\u662F\u5426\u542F\u52A8\u9996\u9875"),prop:"startHome"}},[a("RadioGroup",{model:{value:t.formDatum.start_home,callback:function(e){t.$set(t.formDatum,"start_home",e)},expression:"formDatum.start_home"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EC5\u652F\u6301\u7F51\u9875\u7248\u3002")))]),t.formDatum.start_home=="open"?a("Input",{staticStyle:{margin:"8px 0 -8px"},attrs:{type:"textarea",rows:2,autosize:{minRows:2,maxRows:8},placeholder:t.$L("\u9996\u9875\u5E95\u90E8\uFF1A\u9996\u9875\u5E95\u90E8\u7F51\u7AD9\u5907\u6848\u53F7\u7B49\u4FE1\u606F")},model:{value:t.formDatum.home_footer,callback:function(e){t.$set(t.formDatum,"home_footer",e)},expression:"formDatum.home_footer"}}):t._e()],1):t._e()],1)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},g=[];const L={name:"SystemSetting",data(){return{loadIng:0,formDatum:{}}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formDatum=$A.cloneJSON(this.formDatum_bak)},formArchived(t){this.formDatum={...this.formDatum,auto_archived:t}},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting?type="+(t?"save":"all"),data:this.formDatum}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formDatum=s,this.formDatum_bak=$A.cloneJSON(this.formDatum)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},i={};var y=r(L,b,g,!1,x,null,null,null);function x(t){for(let s in i)this[s]=i[s]}var k=function(){return y.exports}(),I=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formDatum",attrs:{"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("Row",{staticClass:"setting-color color-label-box"},[a("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u540D\u79F0")))]),a("Col",{attrs:{span:"4"}},[a("ETooltip",{attrs:{content:t.$L("\u6570\u503C\u8D8A\u5C0F\u7EA7\u522B\u8D8A\u9AD8"),"max-width":"auto",placement:"top",transfer:""}},[a("div",[a("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}}),t._v(" "+t._s(t.$L("\u7EA7\u522B")))],1)])],1),a("Col",{attrs:{span:"4"}},[a("ETooltip",{attrs:{content:t.$L("\u4EFB\u52A1\u5B8C\u6210\u65F6\u95F4"),"max-width":"auto",placement:"top",transfer:""}},[a("div",[a("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}}),t._v(" "+t._s(t.$L("\u5929\u6570")))],1)])],1),a("Col",{attrs:{span:"4"}},[t._v(t._s(t.$L("\u989C\u8272")))])],1),t._l(t.formDatum,function(e,l){return a("Row",{key:l,staticClass:"setting-color"},[a("Col",{attrs:{span:"12"}},[a("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u540D\u79F0"),clearable:""},on:{"on-clear":function(o){return t.delDatum(l)}},model:{value:e.name,callback:function(o){t.$set(e,"name",o)},expression:"item.name"}})],1),a("Col",{attrs:{span:"4"}},[a("Input",{attrs:{type:"number"},model:{value:e.priority,callback:function(o){t.$set(e,"priority",o)},expression:"item.priority"}})],1),a("Col",{attrs:{span:"4"}},[a("Input",{attrs:{type:"number"},model:{value:e.days,callback:function(o){t.$set(e,"days",o)},expression:"item.days"}})],1),a("Col",{attrs:{span:"4"}},[a("ColorPicker",{attrs:{recommend:"",transfer:""},model:{value:e.color,callback:function(o){t.$set(e,"color",o)},expression:"item.color"}})],1)],1)}),a("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u4F18\u5148\u7EA7")))])],2),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},S=[];const C={name:"SystemTaskPriority",data(){return{loadIng:0,formDatum:[],nullDatum:{name:"",priority:1,days:1,color:"#84C56A"}}},mounted(){this.systemSetting()},computed:{...v(["taskPriority"])},watch:{taskPriority:{handler(t){this.formDatum=$A.cloneJSON(t),this.formDatum.length===0&&this.addDatum()},immediate:!0}},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formDatum=$A.cloneJSON(this.taskPriority)},addDatum(){this.formDatum.push($A.cloneJSON(this.nullDatum))},delDatum(t){this.formDatum.splice(t,1),this.formDatum.length===0&&this.addDatum()},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/priority?type="+(t?"save":"get"),method:"post",data:{list:this.formDatum}}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.state.taskPriority=$A.cloneJSON(s)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},n={};var F=r(C,I,S,!1,R,null,null,null);function R(t){for(let s in n)this[s]=n[s]}var A=function(){return F.exports}(),w=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formDatum",attrs:{"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("Row",{staticClass:"setting-template"},[a("Col",{attrs:{span:"8"}},[t._v(t._s(t.$L("\u540D\u79F0")))]),a("Col",{attrs:{span:"16"}},[t._v(t._s(t.$L("\u9879\u76EE\u6A21\u677F")))])],1),t._l(t.formDatum,function(e,l){return a("Row",{key:l,staticClass:"setting-template"},[a("Col",{attrs:{span:"8"}},[a("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u540D\u79F0"),clearable:""},on:{"on-clear":function(o){return t.delDatum(l)}},model:{value:e.name,callback:function(o){t.$set(e,"name",o)},expression:"item.name"}})],1),a("Col",{attrs:{span:"16"}},[a("TagInput",{model:{value:e.columns,callback:function(o){t.$set(e,"columns",o)},expression:"item.columns"}})],1)],1)}),a("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u6A21\u677F")))])],2),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},O=[];const T={name:"SystemColumnTemplate",data(){return{loadIng:0,formDatum:[],nullDatum:{name:"",columns:""}}},mounted(){this.systemSetting()},computed:{...v(["columnTemplate"])},watch:{columnTemplate:{handler(t){this.formDatum=$A.cloneJSON(t),this.formDatum.length===0&&this.addDatum()},immediate:!0}},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formDatum=$A.cloneJSON(this.columnTemplate)},addDatum(){this.formDatum.push($A.cloneJSON(this.nullDatum))},delDatum(t){this.formDatum.splice(t,1),this.formDatum.length===0&&this.addDatum()},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/column/template?type="+(t?"save":"get"),method:"post",data:{list:this.formDatum}}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.state.columnTemplate=$A.cloneJSON(s).map(a=>($A.isArray(a.columns)&&(a.columns=a.columns.join(",")),a))}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},m={};var P=r(T,w,O,!1,E,null,null,null);function E(t){for(let s in m)this[s]=m[s]}var N=function(){return P.exports}(),G=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u90AE\u7BB1\u670D\u52A1\u5668\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("SMTP\u670D\u52A1\u5668"),prop:"smtp_server"}},[a("Input",{model:{value:t.formData.smtp_server,callback:function(e){t.$set(t.formData,"smtp_server",e)},expression:"formData.smtp_server"}})],1),a("FormItem",{attrs:{label:t.$L("\u7AEF\u53E3"),prop:"port"}},[a("Input",{attrs:{maxlength:20},model:{value:t.formData.port,callback:function(e){t.$set(t.formData,"port",e)},expression:"formData.port"}})],1),a("FormItem",{attrs:{label:t.$L("\u5E10\u53F7"),prop:"account"}},[a("Input",{attrs:{maxlength:128},model:{value:t.formData.account,callback:function(e){t.$set(t.formData,"account",e)},expression:"formData.account"}})],1),a("FormItem",{attrs:{label:t.$L("\u5BC6\u7801"),prop:"password"}},[a("Input",{attrs:{maxlength:128,type:"password"},model:{value:t.formData.password,callback:function(e){t.$set(t.formData,"password",e)},expression:"formData.password"}})],1),a("FormItem",[a("Button",{on:{click:t.checkEmailSend}},[t._v(t._s(t.$L("\u90AE\u4EF6\u53D1\u9001\u6D4B\u8BD5")))])],1)],1)]),a("div",{staticClass:"block-setting-placeholder"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u90AE\u4EF6\u901A\u77E5\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5F00\u542F\u6CE8\u518C\u9A8C\u8BC1"),prop:"reg_verify"}},[a("RadioGroup",{model:{value:t.formData.reg_verify,callback:function(e){t.$set(t.formData,"reg_verify",e)},expression:"formData.reg_verify"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formData.reg_verify=="open"?a("div",{staticClass:"form-tip"},[t._v(" "+t._s(t.$L("\u5F00\u542F\u540E\uFF1A"))),a("br"),t._v(" \u2460 "+t._s(t.$L("\u5E10\u53F7\u9700\u9A8C\u8BC1\u901A\u8FC7\u624D\u53EF\u767B\u5F55"))),a("br"),t._v(" \u2461 "+t._s(t.$L("\u4FEE\u6539\u90AE\u7BB1\u548C\u5220\u9664\u5E10\u53F7\u9700\u8981\u90AE\u7BB1\u9A8C\u8BC1\u7801"))+" ")]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u6D88\u606F\u63D0\u9192"),prop:"notice_msg"}},[a("RadioGroup",{model:{value:t.formData.notice_msg,callback:function(e){t.$set(t.formData,"notice_msg",e)},expression:"formData.notice_msg"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formData.notice_msg=="open"?a("Form",{nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\u672A\u8BFB\u4E2A\u4EBA\u6D88\u606F"),prop:"msg_unread_user_minute"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.msg_unread_user_minute,callback:function(e){t.$set(t.formData,"msg_unread_user_minute",e)},expression:"formData.msg_unread_user_minute"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F"))+"(m)")])],1)]),a("FormItem",{attrs:{label:t.$L("\u672A\u8BFB\u7FA4\u804A\u6D88\u606F"),prop:"msg_unread_group_minute"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.msg_unread_group_minute,callback:function(e){t.$set(t.formData,"msg_unread_group_minute",e)},expression:"formData.msg_unread_group_minute"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F"))+"(m)")])],1)]),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u586B\u5199-1\u5219\u4E0D\u901A\u77E5\uFF0C\u8BEF\u5DEE\xB110\u5206\u949F")))])],1):t._e()],1)],1)]),a("div",{staticClass:"block-setting-placeholder"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u5FFD\u7565\u90AE\u7BB1\u5730\u5740")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5FFD\u7565\u90AE\u7BB1"),prop:"ignore_addr"}},[a("Input",{attrs:{type:"textarea",autosize:{minRows:3,maxRows:50}},model:{value:t.formData.ignore_addr,callback:function(e){t.$set(t.formData,"ignore_addr",e)},expression:"formData.ignore_addr"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4E0D\u4F1A\u5411\u5FFD\u7565\u7684\u90AE\u7BB1\u5730\u5740\u53D1\u9001\u90AE\u4EF6\uFF0C\u53EF\u4F7F\u7528\u6362\u884C\u5206\u5272\u591A\u4E2A\u5730\u5740\u3002")))])],1)],1)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},B=[];const M={name:"SystemEmailSetting",data(){return{loadIng:0,formData:{smtp_server:"",port:"",account:"",password:"",reg_verify:"colse",notice_msg:"open",msg_unread_user_minute:-1,msg_unread_group_minute:-1,ignore_addr:""},ruleData:{}}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/email?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})},checkEmailSend(){$A.modalInput({title:"\u6D4B\u8BD5\u90AE\u4EF6",placeholder:"\u8BF7\u8F93\u5165\u6536\u4EF6\u4EBA\u5730\u5740",onOk:t=>t?$A.isEmail(t)?new Promise((s,a)=>{this.$store.dispatch("call",{url:"system/email/check",data:Object.assign(this.formData,{to:t})}).then(({msg:e})=>{s(e)}).catch(({msg:e})=>{a(e)})}):"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u6536\u4EF6\u4EBA\u5730\u5740":"\u8BF7\u8F93\u5165\u6536\u4EF6\u4EBA\u5730\u5740"})}}},c={};var J=r(M,G,B,!1,j,null,null,null);function j(t){for(let s in c)this[s]=c[s]}var U=function(){return J.exports}(),z=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u53CB\u76DF\u63A8\u9001")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5F00\u542F\u63A8\u9001"),prop:"push"}},[a("RadioGroup",{model:{value:t.formData.push,callback:function(e){t.$set(t.formData,"push",e)},expression:"formData.push"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1),t.formData.push==="open"?[a("Divider",{attrs:{orientation:"left"}},[t._v("iOS "+t._s(t.$L("\u53C2\u6570\u914D\u7F6E")))]),a("FormItem",{attrs:{label:"Appkey",prop:"ios_appkey"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.ios_key,callback:function(e){t.$set(t.formData,"ios_key",e)},expression:"formData.ios_key"}})],1),a("FormItem",{attrs:{label:"App Master Secret",prop:"secret"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.ios_secret,callback:function(e){t.$set(t.formData,"ios_secret",e)},expression:"formData.ios_secret"}})],1),a("Divider",{attrs:{orientation:"left"}},[t._v("Android "+t._s(t.$L("\u53C2\u6570\u914D\u7F6E")))]),a("FormItem",{attrs:{label:"Appkey",prop:"android_appkey"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.android_key,callback:function(e){t.$set(t.formData,"android_key",e)},expression:"formData.android_key"}})],1),a("FormItem",{attrs:{label:"App Master Secret",prop:"secret"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.android_secret,callback:function(e){t.$set(t.formData,"android_secret",e)},expression:"formData.android_secret"}})],1)]:t._e()],2)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},H=[];const q={name:"SystemAppPush",data(){return{loadIng:0,formData:{push:"",ios_key:"",ios_secret:"",android_key:"",android_secret:""},ruleData:{}}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/apppush?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},u={};var K=r(q,z,H,!1,W,null,null,null);function W(t){for(let s in u)this[s]=u[s]}var Q=function(){return K.exports}(),V=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("AgoraIO")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u4F1A\u8BAE\u529F\u80FD"),prop:"open"}},[a("RadioGroup",{model:{value:t.formData.open,callback:function(e){t.$set(t.formData,"open",e)},expression:"formData.open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1),t.formData.open==="open"?[a("FormItem",{attrs:{label:"App ID ",prop:"appid"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.appid,callback:function(e){t.$set(t.formData,"appid",e)},expression:"formData.appid"}})],1),a("FormItem",{attrs:{label:"App certificate",prop:"app_certificate"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.app_certificate,callback:function(e){t.$set(t.formData,"app_certificate",e)},expression:"formData.app_certificate"}})],1)]:t._e()],2)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},X=[];const Y={name:"SystemMeeting",data(){return{loadIng:0,formData:{open:"",appid:"",app_certificate:""},ruleData:{}}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/meeting?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},_={};var Z=r(Y,V,X,!1,tt,null,null,null);function tt(t){for(let s in _)this[s]=_[s]}var at=function(){return Z.exports}(),et=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u7B7E\u5230\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u529F\u80FD\u5F00\u542F"),prop:"open"}},[a("RadioGroup",{model:{value:t.formData.open,callback:function(e){t.$set(t.formData,"open",e)},expression:"formData.open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"export-data"},[a("p",{on:{click:function(e){t.allUserShow=!0}}},[t._v(t._s(t.$L("\u7BA1\u7406\u6210\u5458MAC\u5730\u5740")))]),a("p",{on:{click:function(e){t.exportShow=!0}}},[t._v(t._s(t.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E")))])])],1),t.formData.open==="open"?[a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u65F6\u95F4"),prop:"time"}},[a("TimePicker",{attrs:{type:"timerange",format:"HH:mm",placeholder:t.$L("\u8BF7\u9009\u62E9\u7B7E\u5230\u65F6\u95F4")},model:{value:t.formData.time,callback:function(e){t.$set(t.formData,"time",e)},expression:"formData.time"}}),a("Form",{nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\u6700\u65E9\u53EF\u63D0\u524D"),prop:"advance"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.advance,callback:function(e){t.$set(t.formData,"advance",e)},expression:"formData.advance"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("FormItem",{attrs:{label:t.$L("\u6700\u665A\u53EF\u5EF6\u540E"),prop:"delay"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.delay,callback:function(e){t.$set(t.formData,"delay",e)},expression:"formData.delay"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7B7E\u5230\u524D\u540E\u65F6\u95F4\u6536\u5230\u6D88\u606F\u901A\u77E5")))]),a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u6253\u5361\u63D0\u9192"),prop:"remindin"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.remindin,callback:function(e){t.$set(t.formData,"remindin",e)},expression:"formData.remindin"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u7F3A\u5361\u63D0\u9192"),prop:"remindexceed"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.remindexceed,callback:function(e){t.$set(t.formData,"remindexceed",e)},expression:"formData.remindexceed"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7B7E\u5230\u63D0\u9192\u5BF9\u8C61\uFF1A3\u5929\u5185\u6709\u7B7E\u5230\u7684\u6210\u5458\uFF08\u6CD5\u5B9A\u5DE5\u4F5C\u65E5\uFF09")))])],1)],1),a("FormItem",{attrs:{label:t.$L("\u5141\u8BB8\u4FEE\u6539"),prop:"edit"}},[a("RadioGroup",{model:{value:t.formData.edit,callback:function(e){t.$set(t.formData,"edit",e)},expression:"formData.edit"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5141\u8BB8")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u6B62")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\u6210\u5458\u81EA\u5DF1\u4FEE\u6539MAC\u5730\u5740")))])],1)]:t._e()],2)]),t.formData.open==="open"?[a("div",{staticClass:"block-setting-placeholder"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u81EA\u52A8\u7B7E\u5230")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5B89\u88C5\u8BF4\u660E"),prop:"explain"}},[a("p",[t._v("1. "+t._s(t.$L("\u81EA\u52A8\u7B7E\u5230\u5EF6\u8FDF\u65F6\u957F\u4E3A\xB11\u5206\u949F\u3002")))]),a("p",[t._v("2. "+t._s(t.$L("\u8BBE\u5907\u8FDE\u63A5\u4E0A\u6307\u5B9A\u8DEF\u7531\u5668\uFF08WiFi\uFF09\u540E\u81EA\u52A8\u7B7E\u5230\u3002")))]),a("p",[t._v("3. "+t._s(t.$L("\u4EC5\u652F\u6301Openwrt\u7CFB\u7EDF\u7684\u8DEF\u7531\u5668\u3002")))]),a("p",[t._v("4. "+t._s(t.$L("\u5173\u95ED\u7B7E\u5230\u529F\u80FD\u518D\u5F00\u542F\u9700\u8981\u91CD\u65B0\u5B89\u88C5\u3002")))]),a("p",[t._v("5. "+t._s(t.$L("\u8FDB\u5165\u8DEF\u7531\u5668\u7EC8\u7AEF\u6267\u884C\u4EE5\u4E0B\u547D\u4EE4\u5373\u53EF\u5B8C\u6210\u5B89\u88C5\uFF1A")))]),a("Input",{ref:"cmd",staticStyle:{"margin-top":"6px"},attrs:{type:"textarea",readonly:"",value:t.formData.cmd},on:{"on-focus":t.clickCmd}})],1)],1)])]:t._e()],2),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),a("CheckinExport",{model:{value:t.exportShow,callback:function(e){t.exportShow=e},expression:"exportShow"}}),a("DrawerOverlay",{attrs:{placement:"right",size:1380},model:{value:t.allUserShow,callback:function(e){t.allUserShow=e},expression:"allUserShow"}},[t.allUserShow?a("TeamManagement",{attrs:{"checkin-mac":""}}):t._e()],1)],1)},st=[];const ot={name:"SystemCheckin",components:{CheckinExport:h,TeamManagement:D,DrawerOverlay:$},data(){return{loadIng:0,formData:{open:"",edit:"",cmd:""},ruleData:{},allUserShow:!1,exportShow:!1}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/checkin?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})},clickCmd(){this.$nextTick(t=>{this.$refs.cmd.focus({cursor:"all"})})}}},p={};var rt=r(ot,et,st,!1,lt,null,null,null);function lt(t){for(let s in p)this[s]=p[s]}var it=function(){return rt.exports}(),nt=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("LDAP")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u542F\u7528 LDAP \u8BA4\u8BC1"),prop:"ldap_open"}},[a("RadioGroup",{model:{value:t.formData.ldap_open,callback:function(e){t.$set(t.formData,"ldap_open",e)},expression:"formData.ldap_open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540E\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528 LDAP \u5E10\u53F7\u5BC6\u7801\u767B\u5F55")))])],1),t.formData.ldap_open==="open"?[a("FormItem",{attrs:{label:t.$L("LDAP \u5730\u5740"),prop:"ldap_host"}},[a("Input",{model:{value:t.formData.ldap_host,callback:function(e){t.$set(t.formData,"ldap_host",e)},expression:"formData.ldap_host"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4F8B\u5982"))+": 192.168.1.200\u3001www.ldap.com")])],1),a("FormItem",{attrs:{label:t.$L("LDAP \u7AEF\u53E3"),prop:"ldap_port"}},[a("Input",{attrs:{type:"number",placeholder:`${t.$L("\u9ED8\u8BA4")}: 389`},model:{value:t.formData.ldap_port,callback:function(e){t.$set(t.formData,"ldap_port",e)},expression:"formData.ldap_port"}})],1),a("FormItem",{attrs:{label:"Base DN",prop:"ldap_base_dn"}},[a("Input",{model:{value:t.formData.ldap_base_dn,callback:function(e){t.$set(t.formData,"ldap_base_dn",e)},expression:"formData.ldap_base_dn"}})],1),a("FormItem",{attrs:{label:"User DN",prop:"ldap_user_dn"}},[a("Input",{model:{value:t.formData.ldap_user_dn,callback:function(e){t.$set(t.formData,"ldap_user_dn",e)},expression:"formData.ldap_user_dn"}})],1),a("FormItem",{attrs:{label:t.$L("\u5BC6\u7801"),prop:"ldap_password"}},[a("Input",{attrs:{type:"password"},model:{value:t.formData.ldap_password,callback:function(e){t.$set(t.formData,"ldap_password",e)},expression:"formData.ldap_password"}})],1),a("FormItem",{attrs:{label:t.$L("\u540C\u6B65\u672C\u5730\u5E10\u53F7"),prop:"ldap_sync_local"}},[a("RadioGroup",{model:{value:t.formData.ldap_sync_local,callback:function(e){t.$set(t.formData,"ldap_sync_local",e)},expression:"formData.ldap_sync_local"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540C\u6B65\u672C\u5730\u5E10\u53F7\u767B\u5F55\u540E\u5C06\u540C\u6B65\u5230 LDAP \u670D\u52A1\u5668")))])],1),a("FormItem",[a("Button",{attrs:{loading:t.testLoad},on:{click:t.checkTest}},[t._v(t._s(t.$L("\u6D4B\u8BD5\u94FE\u63A5")))])],1)]:t._e()],2)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},mt=[];const ct={name:"SystemThirdAccess",data(){return{loadIng:0,formData:{},ruleData:{},testLoad:!1}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/thirdaccess?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})},checkTest(){this.testLoad||(this.testLoad=!0,this.$store.dispatch("call",{url:"system/setting/thirdaccess?type=testldap",data:this.formData}).then(({msg:t})=>{$A.messageSuccess(t)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.testLoad=!1}))}}},d={};var ut=r(ct,nt,mt,!1,_t,null,null,null);function _t(t){for(let s in d)this[s]=d[s]}var pt=function(){return ut.exports}(),dt=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-item submit"},[a("Tabs",{model:{value:t.tabAction,callback:function(e){t.tabAction=e},expression:"tabAction"}},[a("TabPane",{attrs:{label:t.$L("\u7CFB\u7EDF\u8BBE\u7F6E"),name:"setting"}},[a("SystemSetting")],1),a("TabPane",{attrs:{label:t.$L("\u4EFB\u52A1\u4F18\u5148\u7EA7"),name:"taskPriority"}},[a("SystemTaskPriority")],1),a("TabPane",{attrs:{label:t.$L("\u9879\u76EE\u6A21\u677F"),name:"columnTemplate"}},[a("SystemColumnTemplate")],1),a("TabPane",{attrs:{label:t.$L("\u4F1A\u8BAE\u529F\u80FD"),name:"meeting"}},[a("SystemMeeting")],1),a("TabPane",{attrs:{label:t.$L("\u7B7E\u5230\u529F\u80FD"),name:"checkin"}},[a("SystemCheckin")],1),a("TabPane",{attrs:{label:t.$L("\u90AE\u4EF6\u8BBE\u7F6E"),name:"emailSetting"}},[a("SystemEmailSetting")],1),a("TabPane",{attrs:{label:t.$L("\u8BA4\u8BC1\u8BBE\u7F6E"),name:"thirdAccess"}},[a("SystemThirdAccess")],1),t.$A.isDooServer()?a("TabPane",{attrs:{label:t.$L("APP\u63A8\u9001"),name:"appPush"}},[a("SystemAppPush")],1):t._e()],1)],1)},ft=[];const vt={components:{SystemThirdAccess:pt,SystemCheckin:it,SystemMeeting:at,SystemAppPush:Q,SystemColumnTemplate:N,SystemTaskPriority:A,SystemSetting:k,SystemEmailSetting:U},data(){return{tabAction:"setting"}}},f={};var $t=r(vt,dt,ft,!1,ht,null,null,null);function ht(t){for(let s in f)this[s]=f[s]}var yt=function(){return $t.exports}();export{yt as default}; +import{n as r,m as v}from"./app.28437e7d.js";import{D as $}from"./index.ed41beb1.js";import{C as h,T as D}from"./CheckinExport.a307a3ee.js";import"./UserSelect.fe42163b.js";var b=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formDatum",attrs:{model:t.formDatum,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u5E10\u53F7\u76F8\u5173")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5141\u8BB8\u6CE8\u518C"),prop:"reg"}},[a("RadioGroup",{model:{value:t.formDatum.reg,callback:function(e){t.$set(t.formDatum,"reg",e)},expression:"formDatum.reg"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5141\u8BB8")))]),a("Radio",{attrs:{label:"invite"}},[t._v(t._s(t.$L("\u9080\u8BF7\u7801")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u6B62")))])],1),t.formDatum.reg=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\uFF1A\u5F00\u653E\u6CE8\u518C\u529F\u80FD\u3002")))]):t.formDatum.reg=="invite"?[a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u9080\u8BF7\u7801\uFF1A\u6CE8\u518C\u65F6\u9700\u586B\u5199\u4E0B\u65B9\u9080\u8BF7\u7801\u3002")))]),a("Input",{staticStyle:{width:"200px","margin-top":"6px"},model:{value:t.formDatum.reg_invite,callback:function(e){t.$set(t.formDatum,"reg_invite",e)},expression:"formDatum.reg_invite"}},[a("span",{attrs:{slot:"prepend"},slot:"prepend"},[t._v(t._s(t.$L("\u9080\u8BF7\u7801")))])])]:t._e()],2),["open","invite"].includes(t.formDatum.reg)?a("FormItem",{attrs:{label:t.$L("\u6CE8\u518C\u8EAB\u4EFD"),prop:"reg_identity"}},[a("RadioGroup",{model:{value:t.formDatum.reg_identity,callback:function(e){t.$set(t.formDatum,"reg_identity",e)},expression:"formDatum.reg_identity"}},[a("Radio",{attrs:{label:"normal"}},[t._v(t._s(t.$L("\u6B63\u5E38\u5E10\u53F7")))]),a("Radio",{attrs:{label:"temp"}},[t._v(t._s(t.$L("\u4E34\u65F6\u5E10\u53F7")))])],1),a("div",{staticClass:"form-tip form-list"},[a("p",[t._v(t._s(t.$L("\u4E34\u65F6\u5E10\u53F7"))+"\uFF1A")]),a("ol",[a("li",[t._v(t._s(t.$L("\u7981\u6B62\u67E5\u770B\u5171\u4EAB\u6240\u6709\u4EBA\u7684\u6587\u4EF6\u3002")))]),a("li",[t._v(t._s(t.$L("\u7981\u6B62\u53D1\u8D77\u4F1A\u8BDD\u3002")))]),a("li",[t._v(t._s(t.$L("\u7981\u6B62\u521B\u5EFA\u7FA4\u804A\u3002")))]),a("li",[t._v(t._s(t.$L("\u7981\u6B62\u62E8\u6253\u7535\u8BDD\u3002")))])])])],1):t._e(),a("FormItem",{attrs:{label:t.$L("\u767B\u5F55\u9A8C\u8BC1\u7801"),prop:"loginCode"}},[a("RadioGroup",{model:{value:t.formDatum.login_code,callback:function(e){t.$set(t.formDatum,"login_code",e)},expression:"formDatum.login_code"}},[a("Radio",{attrs:{label:"auto"}},[t._v(t._s(t.$L("\u81EA\u52A8")))]),a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.login_code=="auto"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u81EA\u52A8\uFF1A\u5BC6\u7801\u8F93\u5165\u9519\u8BEF\u540E\u5FC5\u987B\u6DFB\u52A0\u9A8C\u8BC1\u7801\u3002")))]):t.formDatum.login_code=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\uFF1A\u6BCF\u6B21\u767B\u5F55\u90FD\u9700\u8981\u56FE\u5F62\u9A8C\u8BC1\u7801\u3002")))]):t.formDatum.login_code=="close"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\uFF1A\u4E0D\u9700\u8981\u8F93\u5165\u56FE\u5F62\u9A8C\u8BC1\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u5BC6\u7801\u7B56\u7565"),prop:"passwordPolicy"}},[a("RadioGroup",{model:{value:t.formDatum.password_policy,callback:function(e){t.$set(t.formDatum,"password_policy",e)},expression:"formDatum.password_policy"}},[a("Radio",{attrs:{label:"simple"}},[t._v(t._s(t.$L("\u7B80\u5355")))]),a("Radio",{attrs:{label:"complex"}},[t._v(t._s(t.$L("\u590D\u6742")))])],1),t.formDatum.password_policy=="simple"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7B80\u5355\uFF1A\u5927\u4E8E\u6216\u7B49\u4E8E6\u4E2A\u5B57\u7B26\u3002")))]):t.formDatum.password_policy=="complex"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u590D\u6742\uFF1A\u5927\u4E8E\u6216\u7B49\u4E8E6\u4E2A\u5B57\u7B26\uFF0C\u5305\u542B\u6570\u5B57\u3001\u5B57\u6BCD\u5927\u5C0F\u5199\u6216\u8005\u7279\u6B8A\u5B57\u7B26\u3002")))]):t._e()],1)],1)]),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u9879\u76EE\u76F8\u5173")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u9080\u8BF7\u9879\u76EE"),prop:"projectInvite"}},[a("RadioGroup",{model:{value:t.formDatum.project_invite,callback:function(e){t.$set(t.formDatum,"project_invite",e)},expression:"formDatum.project_invite"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.project_invite=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\uFF1A\u9879\u76EE\u7BA1\u7406\u5458\u53EF\u751F\u6210\u94FE\u63A5\u9080\u8BF7\u6210\u5458\u52A0\u5165\u9879\u76EE\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u81EA\u52A8\u5F52\u6863\u4EFB\u52A1"),prop:"autoArchived"}},[a("RadioGroup",{attrs:{value:t.formDatum.auto_archived},on:{"on-change":t.formArchived}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EFB\u52A1\u5B8C\u6210\u540E\u81EA\u52A8\u5F52\u6863\u3002")))]),t.formDatum.auto_archived=="open"?a("ETooltip",{attrs:{placement:"right",disabled:t.$isEEUiApp||t.windowTouch}},[a("div",{staticClass:"setting-auto-day"},[a("Input",{attrs:{type:"number"},model:{value:t.formDatum.archived_day,callback:function(e){t.$set(t.formDatum,"archived_day",e)},expression:"formDatum.archived_day"}},[a("span",{attrs:{slot:"append"},slot:"append"},[t._v(t._s(t.$L("\u5929")))])])],1),a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.$L("\u4EFB\u52A1\u5B8C\u6210 (*) \u5929\u540E\u81EA\u52A8\u5F52\u6863\u3002",t.formDatum.archived_day)))])]):t._e()],1)],1)]),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u6D88\u606F\u76F8\u5173")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5168\u5458\u7FA4\u7EC4\u7981\u8A00"),prop:"allGroupMute"}},[a("RadioGroup",{model:{value:t.formDatum.all_group_mute,callback:function(e){t.$set(t.formDatum,"all_group_mute",e)},expression:"formDatum.all_group_mute"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u653E")))]),a("Radio",{attrs:{label:"user"}},[t._v(t._s(t.$L("\u6210\u5458\u7981\u8A00")))]),a("Radio",{attrs:{label:"all"}},[t._v(t._s(t.$L("\u5168\u90E8\u7981\u8A00")))])],1),t.formDatum.all_group_mute=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u653E\uFF1A\u6240\u6709\u4EBA\u90FD\u53EF\u4EE5\u53D1\u8A00\u3002")))]):t.formDatum.all_group_mute=="user"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6210\u5458\u7981\u8A00\uFF1A\u4EC5\u7BA1\u7406\u5458\u53EF\u4EE5\u53D1\u8A00\u3002")))]):t.formDatum.all_group_mute=="all"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5168\u90E8\u7981\u8A00\uFF1A\u6240\u6709\u4EBA\u90FD\u7981\u6B62\u53D1\u8A00\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u81EA\u52A8\u8FDB\u5165\u5168\u5458\u7FA4"),prop:"allGroupAutoin"}},[a("RadioGroup",{model:{value:t.formDatum.all_group_autoin,callback:function(e){t.$set(t.formDatum,"all_group_autoin",e)},expression:"formDatum.all_group_autoin"}},[a("Radio",{attrs:{label:"yes"}},[t._v(t._s(t.$L("\u81EA\u52A8")))]),a("Radio",{attrs:{label:"no"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.all_group_autoin=="yes"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u81EA\u52A8\uFF1A\u6CE8\u518C\u6210\u529F\u540E\u81EA\u52A8\u8FDB\u5165\u5168\u5458\u7FA4\u3002")))]):t.formDatum.all_group_autoin=="no"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5173\u95ED\uFF1A\u5176\u4ED6\u6210\u5458\u901A\u8FC7@\u9080\u8BF7\u8FDB\u5165\u3002")))]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u804A\u5929\u8D44\u6599"),prop:"chatInformation"}},[a("RadioGroup",{model:{value:t.formDatum.chat_information,callback:function(e){t.$set(t.formDatum,"chat_information",e)},expression:"formDatum.chat_information"}},[a("Radio",{attrs:{label:"optional"}},[t._v(t._s(t.$L("\u53EF\u9009")))]),a("Radio",{attrs:{label:"required"}},[t._v(t._s(t.$L("\u5FC5\u586B")))])],1),t.formDatum.chat_information=="required"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5FC5\u586B\uFF1A\u53D1\u9001\u804A\u5929\u5185\u5BB9\u524D\u5FC5\u987B\u8BBE\u7F6E\u6635\u79F0\u3001\u7535\u8BDD\u3002")))]):a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5982\u679C\u5FC5\u586B\uFF0C\u53D1\u9001\u804A\u5929\u524D\u5FC5\u987B\u8BBE\u7F6E\u6635\u79F0\u3001\u7535\u8BDD\u3002")))])],1),a("FormItem",{attrs:{label:t.$L("\u533F\u540D\u6D88\u606F"),prop:"anonMessage"}},[a("RadioGroup",{model:{value:t.formDatum.anon_message,callback:function(e){t.$set(t.formDatum,"anon_message",e)},expression:"formDatum.anon_message"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formDatum.anon_message=="open"?a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\u533F\u540D\u53D1\u9001\u6D88\u606F\u7ED9\u5176\u4ED6\u6210\u5458\u3002")))]):a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7981\u6B62\u533F\u540D\u53D1\u9001\u6D88\u606F\u3002")))])],1)],1)]),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u5176\u4ED6\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u56FE\u7247\u4F18\u5316"),prop:"image_compress"}},[a("RadioGroup",{model:{value:t.formDatum.image_compress,callback:function(e){t.$set(t.formDatum,"image_compress",e)},expression:"formDatum.image_compress"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u6570\u7801\u76F8\u673A4M\u7684\u56FE\u7247\uFF0C\u4F18\u5316\u540E\u4EC5\u6709700KB\u5DE6\u53F3\uFF0C\u800C\u4E14\u8089\u773C\u57FA\u672C\u770B\u4E0D\u51FA\u533A\u522B\u3002")))])],1),a("FormItem",{attrs:{label:t.$L("\u4FDD\u5B58\u7F51\u7EDC\u56FE\u7247"),prop:"image_save_local"}},[a("RadioGroup",{model:{value:t.formDatum.image_save_local,callback:function(e){t.$set(t.formDatum,"image_save_local",e)},expression:"formDatum.image_save_local"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u662F\u5426\u5C06\u6D88\u606F\u4E2D\u7684\u7F51\u7EDC\u56FE\u7247\u4FDD\u5B58\u5230\u672C\u5730\u670D\u52A1\u5668\u3002")))])],1),t.$A.isDooServer()?a("FormItem",{attrs:{label:t.$L("\u662F\u5426\u542F\u52A8\u9996\u9875"),prop:"startHome"}},[a("RadioGroup",{model:{value:t.formDatum.start_home,callback:function(e){t.$set(t.formDatum,"start_home",e)},expression:"formDatum.start_home"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4EC5\u652F\u6301\u7F51\u9875\u7248\u3002")))]),t.formDatum.start_home=="open"?a("Input",{staticStyle:{margin:"8px 0 -8px"},attrs:{type:"textarea",rows:2,autosize:{minRows:2,maxRows:8},placeholder:t.$L("\u9996\u9875\u5E95\u90E8\uFF1A\u9996\u9875\u5E95\u90E8\u7F51\u7AD9\u5907\u6848\u53F7\u7B49\u4FE1\u606F")},model:{value:t.formDatum.home_footer,callback:function(e){t.$set(t.formDatum,"home_footer",e)},expression:"formDatum.home_footer"}}):t._e()],1):t._e()],1)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},g=[];const L={name:"SystemSetting",data(){return{loadIng:0,formDatum:{}}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formDatum=$A.cloneJSON(this.formDatum_bak)},formArchived(t){this.formDatum={...this.formDatum,auto_archived:t}},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting?type="+(t?"save":"all"),data:this.formDatum}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formDatum=s,this.formDatum_bak=$A.cloneJSON(this.formDatum)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},i={};var y=r(L,b,g,!1,x,null,null,null);function x(t){for(let s in i)this[s]=i[s]}var k=function(){return y.exports}(),I=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formDatum",attrs:{"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("Row",{staticClass:"setting-color color-label-box"},[a("Col",{attrs:{span:"12"}},[t._v(t._s(t.$L("\u540D\u79F0")))]),a("Col",{attrs:{span:"4"}},[a("ETooltip",{attrs:{content:t.$L("\u6570\u503C\u8D8A\u5C0F\u7EA7\u522B\u8D8A\u9AD8"),"max-width":"auto",placement:"top",transfer:""}},[a("div",[a("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}}),t._v(" "+t._s(t.$L("\u7EA7\u522B")))],1)])],1),a("Col",{attrs:{span:"4"}},[a("ETooltip",{attrs:{content:t.$L("\u4EFB\u52A1\u5B8C\u6210\u65F6\u95F4"),"max-width":"auto",placement:"top",transfer:""}},[a("div",[a("Icon",{staticClass:"information",attrs:{type:"ios-information-circle-outline"}}),t._v(" "+t._s(t.$L("\u5929\u6570")))],1)])],1),a("Col",{attrs:{span:"4"}},[t._v(t._s(t.$L("\u989C\u8272")))])],1),t._l(t.formDatum,function(e,l){return a("Row",{key:l,staticClass:"setting-color"},[a("Col",{attrs:{span:"12"}},[a("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u540D\u79F0"),clearable:""},on:{"on-clear":function(o){return t.delDatum(l)}},model:{value:e.name,callback:function(o){t.$set(e,"name",o)},expression:"item.name"}})],1),a("Col",{attrs:{span:"4"}},[a("Input",{attrs:{type:"number"},model:{value:e.priority,callback:function(o){t.$set(e,"priority",o)},expression:"item.priority"}})],1),a("Col",{attrs:{span:"4"}},[a("Input",{attrs:{type:"number"},model:{value:e.days,callback:function(o){t.$set(e,"days",o)},expression:"item.days"}})],1),a("Col",{attrs:{span:"4"}},[a("ColorPicker",{attrs:{recommend:"",transfer:""},model:{value:e.color,callback:function(o){t.$set(e,"color",o)},expression:"item.color"}})],1)],1)}),a("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u4F18\u5148\u7EA7")))])],2),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},S=[];const C={name:"SystemTaskPriority",data(){return{loadIng:0,formDatum:[],nullDatum:{name:"",priority:1,days:1,color:"#84C56A"}}},mounted(){this.systemSetting()},computed:{...v(["taskPriority"])},watch:{taskPriority:{handler(t){this.formDatum=$A.cloneJSON(t),this.formDatum.length===0&&this.addDatum()},immediate:!0}},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formDatum=$A.cloneJSON(this.taskPriority)},addDatum(){this.formDatum.push($A.cloneJSON(this.nullDatum))},delDatum(t){this.formDatum.splice(t,1),this.formDatum.length===0&&this.addDatum()},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/priority?type="+(t?"save":"get"),method:"post",data:{list:this.formDatum}}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.state.taskPriority=$A.cloneJSON(s)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},n={};var F=r(C,I,S,!1,R,null,null,null);function R(t){for(let s in n)this[s]=n[s]}var A=function(){return F.exports}(),w=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formDatum",attrs:{"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("Row",{staticClass:"setting-template"},[a("Col",{attrs:{span:"8"}},[t._v(t._s(t.$L("\u540D\u79F0")))]),a("Col",{attrs:{span:"16"}},[t._v(t._s(t.$L("\u9879\u76EE\u6A21\u677F")))])],1),t._l(t.formDatum,function(e,l){return a("Row",{key:l,staticClass:"setting-template"},[a("Col",{attrs:{span:"8"}},[a("Input",{attrs:{maxlength:20,placeholder:t.$L("\u8BF7\u8F93\u5165\u540D\u79F0"),clearable:""},on:{"on-clear":function(o){return t.delDatum(l)}},model:{value:e.name,callback:function(o){t.$set(e,"name",o)},expression:"item.name"}})],1),a("Col",{attrs:{span:"16"}},[a("TagInput",{model:{value:e.columns,callback:function(o){t.$set(e,"columns",o)},expression:"item.columns"}})],1)],1)}),a("Button",{attrs:{type:"default",icon:"md-add"},on:{click:t.addDatum}},[t._v(t._s(t.$L("\u6DFB\u52A0\u6A21\u677F")))])],2),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},O=[];const T={name:"SystemColumnTemplate",data(){return{loadIng:0,formDatum:[],nullDatum:{name:"",columns:""}}},mounted(){this.systemSetting()},computed:{...v(["columnTemplate"])},watch:{columnTemplate:{handler(t){this.formDatum=$A.cloneJSON(t),this.formDatum.length===0&&this.addDatum()},immediate:!0}},methods:{submitForm(){this.$refs.formDatum.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formDatum=$A.cloneJSON(this.columnTemplate)},addDatum(){this.formDatum.push($A.cloneJSON(this.nullDatum))},delDatum(t){this.formDatum.splice(t,1),this.formDatum.length===0&&this.addDatum()},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/column/template?type="+(t?"save":"get"),method:"post",data:{list:this.formDatum}}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.$store.state.columnTemplate=$A.cloneJSON(s).map(a=>($A.isArray(a.columns)&&(a.columns=a.columns.join(",")),a))}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},m={};var P=r(T,w,O,!1,E,null,null,null);function E(t){for(let s in m)this[s]=m[s]}var N=function(){return P.exports}(),G=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u90AE\u7BB1\u670D\u52A1\u5668\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("SMTP\u670D\u52A1\u5668"),prop:"smtp_server"}},[a("Input",{model:{value:t.formData.smtp_server,callback:function(e){t.$set(t.formData,"smtp_server",e)},expression:"formData.smtp_server"}})],1),a("FormItem",{attrs:{label:t.$L("\u7AEF\u53E3"),prop:"port"}},[a("Input",{attrs:{maxlength:20},model:{value:t.formData.port,callback:function(e){t.$set(t.formData,"port",e)},expression:"formData.port"}})],1),a("FormItem",{attrs:{label:t.$L("\u5E10\u53F7"),prop:"account"}},[a("Input",{attrs:{maxlength:128},model:{value:t.formData.account,callback:function(e){t.$set(t.formData,"account",e)},expression:"formData.account"}})],1),a("FormItem",{attrs:{label:t.$L("\u5BC6\u7801"),prop:"password"}},[a("Input",{attrs:{maxlength:128,type:"password"},model:{value:t.formData.password,callback:function(e){t.$set(t.formData,"password",e)},expression:"formData.password"}})],1),a("FormItem",[a("Button",{on:{click:t.checkEmailSend}},[t._v(t._s(t.$L("\u90AE\u4EF6\u53D1\u9001\u6D4B\u8BD5")))])],1)],1)]),a("div",{staticClass:"block-setting-placeholder"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u90AE\u4EF6\u901A\u77E5\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5F00\u542F\u6CE8\u518C\u9A8C\u8BC1"),prop:"reg_verify"}},[a("RadioGroup",{model:{value:t.formData.reg_verify,callback:function(e){t.$set(t.formData,"reg_verify",e)},expression:"formData.reg_verify"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formData.reg_verify=="open"?a("div",{staticClass:"form-tip"},[t._v(" "+t._s(t.$L("\u5F00\u542F\u540E\uFF1A"))),a("br"),t._v(" \u2460 "+t._s(t.$L("\u5E10\u53F7\u9700\u9A8C\u8BC1\u901A\u8FC7\u624D\u53EF\u767B\u5F55"))),a("br"),t._v(" \u2461 "+t._s(t.$L("\u4FEE\u6539\u90AE\u7BB1\u548C\u5220\u9664\u5E10\u53F7\u9700\u8981\u90AE\u7BB1\u9A8C\u8BC1\u7801"))+" ")]):t._e()],1),a("FormItem",{attrs:{label:t.$L("\u6D88\u606F\u63D0\u9192"),prop:"notice_msg"}},[a("RadioGroup",{model:{value:t.formData.notice_msg,callback:function(e){t.$set(t.formData,"notice_msg",e)},expression:"formData.notice_msg"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),t.formData.notice_msg=="open"?a("Form",{nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\u672A\u8BFB\u4E2A\u4EBA\u6D88\u606F"),prop:"msg_unread_user_minute"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.msg_unread_user_minute,callback:function(e){t.$set(t.formData,"msg_unread_user_minute",e)},expression:"formData.msg_unread_user_minute"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F"))+"(m)")])],1)]),a("FormItem",{attrs:{label:t.$L("\u672A\u8BFB\u7FA4\u804A\u6D88\u606F"),prop:"msg_unread_group_minute"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.msg_unread_group_minute,callback:function(e){t.$set(t.formData,"msg_unread_group_minute",e)},expression:"formData.msg_unread_group_minute"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F"))+"(m)")])],1)]),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u586B\u5199-1\u5219\u4E0D\u901A\u77E5\uFF0C\u8BEF\u5DEE\xB110\u5206\u949F")))])],1):t._e()],1)],1)]),a("div",{staticClass:"block-setting-placeholder"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u5FFD\u7565\u90AE\u7BB1\u5730\u5740")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5FFD\u7565\u90AE\u7BB1"),prop:"ignore_addr"}},[a("Input",{attrs:{type:"textarea",autosize:{minRows:3,maxRows:50}},model:{value:t.formData.ignore_addr,callback:function(e){t.$set(t.formData,"ignore_addr",e)},expression:"formData.ignore_addr"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4E0D\u4F1A\u5411\u5FFD\u7565\u7684\u90AE\u7BB1\u5730\u5740\u53D1\u9001\u90AE\u4EF6\uFF0C\u53EF\u4F7F\u7528\u6362\u884C\u5206\u5272\u591A\u4E2A\u5730\u5740\u3002")))])],1)],1)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},B=[];const M={name:"SystemEmailSetting",data(){return{loadIng:0,formData:{smtp_server:"",port:"",account:"",password:"",reg_verify:"colse",notice_msg:"open",msg_unread_user_minute:-1,msg_unread_group_minute:-1,ignore_addr:""},ruleData:{}}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/email?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})},checkEmailSend(){$A.modalInput({title:"\u6D4B\u8BD5\u90AE\u4EF6",placeholder:"\u8BF7\u8F93\u5165\u6536\u4EF6\u4EBA\u5730\u5740",onOk:t=>t?$A.isEmail(t)?new Promise((s,a)=>{this.$store.dispatch("call",{url:"system/email/check",data:Object.assign(this.formData,{to:t})}).then(({msg:e})=>{s(e)}).catch(({msg:e})=>{a(e)})}):"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u6536\u4EF6\u4EBA\u5730\u5740":"\u8BF7\u8F93\u5165\u6536\u4EF6\u4EBA\u5730\u5740"})}}},c={};var J=r(M,G,B,!1,j,null,null,null);function j(t){for(let s in c)this[s]=c[s]}var U=function(){return J.exports}(),z=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u53CB\u76DF\u63A8\u9001")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5F00\u542F\u63A8\u9001"),prop:"push"}},[a("RadioGroup",{model:{value:t.formData.push,callback:function(e){t.$set(t.formData,"push",e)},expression:"formData.push"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1),t.formData.push==="open"?[a("Divider",{attrs:{orientation:"left"}},[t._v("iOS "+t._s(t.$L("\u53C2\u6570\u914D\u7F6E")))]),a("FormItem",{attrs:{label:"Appkey",prop:"ios_appkey"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.ios_key,callback:function(e){t.$set(t.formData,"ios_key",e)},expression:"formData.ios_key"}})],1),a("FormItem",{attrs:{label:"App Master Secret",prop:"secret"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.ios_secret,callback:function(e){t.$set(t.formData,"ios_secret",e)},expression:"formData.ios_secret"}})],1),a("Divider",{attrs:{orientation:"left"}},[t._v("Android "+t._s(t.$L("\u53C2\u6570\u914D\u7F6E")))]),a("FormItem",{attrs:{label:"Appkey",prop:"android_appkey"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.android_key,callback:function(e){t.$set(t.formData,"android_key",e)},expression:"formData.android_key"}})],1),a("FormItem",{attrs:{label:"App Master Secret",prop:"secret"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.android_secret,callback:function(e){t.$set(t.formData,"android_secret",e)},expression:"formData.android_secret"}})],1)]:t._e()],2)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},H=[];const q={name:"SystemAppPush",data(){return{loadIng:0,formData:{push:"",ios_key:"",ios_secret:"",android_key:"",android_secret:""},ruleData:{}}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/apppush?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},u={};var K=r(q,z,H,!1,W,null,null,null);function W(t){for(let s in u)this[s]=u[s]}var Q=function(){return K.exports}(),V=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("AgoraIO")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u4F1A\u8BAE\u529F\u80FD"),prop:"open"}},[a("RadioGroup",{model:{value:t.formData.open,callback:function(e){t.$set(t.formData,"open",e)},expression:"formData.open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1)],1),t.formData.open==="open"?[a("FormItem",{attrs:{label:"App ID ",prop:"appid"}},[a("Input",{attrs:{maxlength:255},model:{value:t.formData.appid,callback:function(e){t.$set(t.formData,"appid",e)},expression:"formData.appid"}})],1),a("FormItem",{attrs:{label:"App certificate",prop:"app_certificate"}},[a("Input",{attrs:{maxlength:255,type:"password"},model:{value:t.formData.app_certificate,callback:function(e){t.$set(t.formData,"app_certificate",e)},expression:"formData.app_certificate"}})],1)]:t._e()],2)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},X=[];const Y={name:"SystemMeeting",data(){return{loadIng:0,formData:{open:"",appid:"",app_certificate:""},ruleData:{}}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/meeting?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})}}},_={};var Z=r(Y,V,X,!1,tt,null,null,null);function tt(t){for(let s in _)this[s]=_[s]}var at=function(){return Z.exports}(),et=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u7B7E\u5230\u8BBE\u7F6E")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u529F\u80FD\u5F00\u542F"),prop:"open"}},[a("RadioGroup",{model:{value:t.formData.open,callback:function(e){t.$set(t.formData,"open",e)},expression:"formData.open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"export-data"},[a("p",{on:{click:function(e){t.allUserShow=!0}}},[t._v(t._s(t.$L("\u7BA1\u7406\u6210\u5458MAC\u5730\u5740")))]),a("p",{on:{click:function(e){t.exportShow=!0}}},[t._v(t._s(t.$L("\u5BFC\u51FA\u7B7E\u5230\u6570\u636E")))])])],1),t.formData.open==="open"?[a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u65F6\u95F4"),prop:"time"}},[a("TimePicker",{attrs:{type:"timerange",format:"HH:mm",placeholder:t.$L("\u8BF7\u9009\u62E9\u7B7E\u5230\u65F6\u95F4")},model:{value:t.formData.time,callback:function(e){t.$set(t.formData,"time",e)},expression:"formData.time"}}),a("Form",{nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:t.$L("\u6700\u65E9\u53EF\u63D0\u524D"),prop:"advance"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.advance,callback:function(e){t.$set(t.formData,"advance",e)},expression:"formData.advance"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("FormItem",{attrs:{label:t.$L("\u6700\u665A\u53EF\u5EF6\u540E"),prop:"delay"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.delay,callback:function(e){t.$set(t.formData,"delay",e)},expression:"formData.delay"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7B7E\u5230\u524D\u540E\u65F6\u95F4\u6536\u5230\u6D88\u606F\u901A\u77E5")))]),a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u6253\u5361\u63D0\u9192"),prop:"remindin"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.remindin,callback:function(e){t.$set(t.formData,"remindin",e)},expression:"formData.remindin"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("FormItem",{attrs:{label:t.$L("\u7B7E\u5230\u7F3A\u5361\u63D0\u9192"),prop:"remindexceed"}},[a("div",{staticClass:"input-number-box"},[a("InputNumber",{attrs:{min:0,step:1},model:{value:t.formData.remindexceed,callback:function(e){t.$set(t.formData,"remindexceed",e)},expression:"formData.remindexceed"}}),a("label",[t._v(t._s(t.$L("\u5206\u949F")))])],1)]),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u7B7E\u5230\u63D0\u9192\u5BF9\u8C61\uFF1A3\u5929\u5185\u6709\u7B7E\u5230\u7684\u6210\u5458\uFF08\u6CD5\u5B9A\u5DE5\u4F5C\u65E5\uFF09")))])],1)],1),a("FormItem",{attrs:{label:t.$L("\u5141\u8BB8\u4FEE\u6539"),prop:"edit"}},[a("RadioGroup",{model:{value:t.formData.edit,callback:function(e){t.$set(t.formData,"edit",e)},expression:"formData.edit"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5141\u8BB8")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u7981\u6B62")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5141\u8BB8\u6210\u5458\u81EA\u5DF1\u4FEE\u6539MAC\u5730\u5740")))])],1)]:t._e()],2)]),t.formData.open==="open"?[a("div",{staticClass:"block-setting-placeholder"}),a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("\u81EA\u52A8\u7B7E\u5230")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u5B89\u88C5\u8BF4\u660E"),prop:"explain"}},[a("p",[t._v("1. "+t._s(t.$L("\u81EA\u52A8\u7B7E\u5230\u5EF6\u8FDF\u65F6\u957F\u4E3A\xB11\u5206\u949F\u3002")))]),a("p",[t._v("2. "+t._s(t.$L("\u8BBE\u5907\u8FDE\u63A5\u4E0A\u6307\u5B9A\u8DEF\u7531\u5668\uFF08WiFi\uFF09\u540E\u81EA\u52A8\u7B7E\u5230\u3002")))]),a("p",[t._v("3. "+t._s(t.$L("\u4EC5\u652F\u6301Openwrt\u7CFB\u7EDF\u7684\u8DEF\u7531\u5668\u3002")))]),a("p",[t._v("4. "+t._s(t.$L("\u5173\u95ED\u7B7E\u5230\u529F\u80FD\u518D\u5F00\u542F\u9700\u8981\u91CD\u65B0\u5B89\u88C5\u3002")))]),a("p",[t._v("5. "+t._s(t.$L("\u8FDB\u5165\u8DEF\u7531\u5668\u7EC8\u7AEF\u6267\u884C\u4EE5\u4E0B\u547D\u4EE4\u5373\u53EF\u5B8C\u6210\u5B89\u88C5\uFF1A")))]),a("Input",{ref:"cmd",staticStyle:{"margin-top":"6px"},attrs:{type:"textarea",readonly:"",value:t.formData.cmd},on:{"on-focus":t.clickCmd}})],1)],1)])]:t._e()],2),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1),a("CheckinExport",{model:{value:t.exportShow,callback:function(e){t.exportShow=e},expression:"exportShow"}}),a("DrawerOverlay",{attrs:{placement:"right",size:1380},model:{value:t.allUserShow,callback:function(e){t.allUserShow=e},expression:"allUserShow"}},[t.allUserShow?a("TeamManagement",{attrs:{"checkin-mac":""}}):t._e()],1)],1)},st=[];const ot={name:"SystemCheckin",components:{CheckinExport:h,TeamManagement:D,DrawerOverlay:$},data(){return{loadIng:0,formData:{open:"",edit:"",cmd:""},ruleData:{},allUserShow:!1,exportShow:!1}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/checkin?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})},clickCmd(){this.$nextTick(t=>{this.$refs.cmd.focus({cursor:"all"})})}}},p={};var rt=r(ot,et,st,!1,lt,null,null,null);function lt(t){for(let s in p)this[s]=p[s]}var it=function(){return rt.exports}(),nt=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-component-item"},[a("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("div",{staticClass:"block-setting-box"},[a("h3",[t._v(t._s(t.$L("LDAP")))]),a("div",{staticClass:"form-box"},[a("FormItem",{attrs:{label:t.$L("\u542F\u7528 LDAP \u8BA4\u8BC1"),prop:"ldap_open"}},[a("RadioGroup",{model:{value:t.formData.ldap_open,callback:function(e){t.$set(t.formData,"ldap_open",e)},expression:"formData.ldap_open"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540E\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528 LDAP \u5E10\u53F7\u5BC6\u7801\u767B\u5F55")))])],1),t.formData.ldap_open==="open"?[a("FormItem",{attrs:{label:t.$L("LDAP \u5730\u5740"),prop:"ldap_host"}},[a("Input",{model:{value:t.formData.ldap_host,callback:function(e){t.$set(t.formData,"ldap_host",e)},expression:"formData.ldap_host"}}),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u4F8B\u5982"))+": 192.168.1.200\u3001www.ldap.com")])],1),a("FormItem",{attrs:{label:t.$L("LDAP \u7AEF\u53E3"),prop:"ldap_port"}},[a("Input",{attrs:{type:"number",placeholder:`${t.$L("\u9ED8\u8BA4")}: 389`},model:{value:t.formData.ldap_port,callback:function(e){t.$set(t.formData,"ldap_port",e)},expression:"formData.ldap_port"}})],1),a("FormItem",{attrs:{label:"Base DN",prop:"ldap_base_dn"}},[a("Input",{model:{value:t.formData.ldap_base_dn,callback:function(e){t.$set(t.formData,"ldap_base_dn",e)},expression:"formData.ldap_base_dn"}})],1),a("FormItem",{attrs:{label:"User DN",prop:"ldap_user_dn"}},[a("Input",{model:{value:t.formData.ldap_user_dn,callback:function(e){t.$set(t.formData,"ldap_user_dn",e)},expression:"formData.ldap_user_dn"}})],1),a("FormItem",{attrs:{label:t.$L("\u5BC6\u7801"),prop:"ldap_password"}},[a("Input",{attrs:{type:"password"},model:{value:t.formData.ldap_password,callback:function(e){t.$set(t.formData,"ldap_password",e)},expression:"formData.ldap_password"}})],1),a("FormItem",{attrs:{label:t.$L("\u540C\u6B65\u672C\u5730\u5E10\u53F7"),prop:"ldap_sync_local"}},[a("RadioGroup",{model:{value:t.formData.ldap_sync_local,callback:function(e){t.$set(t.formData,"ldap_sync_local",e)},expression:"formData.ldap_sync_local"}},[a("Radio",{attrs:{label:"open"}},[t._v(t._s(t.$L("\u5F00\u542F")))]),a("Radio",{attrs:{label:"close"}},[t._v(t._s(t.$L("\u5173\u95ED")))])],1),a("div",{staticClass:"form-tip"},[t._v(t._s(t.$L("\u5F00\u542F\u540C\u6B65\u672C\u5730\u5E10\u53F7\u767B\u5F55\u540E\u5C06\u540C\u6B65\u5230 LDAP \u670D\u52A1\u5668")))])],1),a("FormItem",[a("Button",{attrs:{loading:t.testLoad},on:{click:t.checkTest}},[t._v(t._s(t.$L("\u6D4B\u8BD5\u94FE\u63A5")))])],1)]:t._e()],2)])]),a("div",{staticClass:"setting-footer"},[a("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),a("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},mt=[];const ct={name:"SystemThirdAccess",data(){return{loadIng:0,formData:{},ruleData:{},testLoad:!1}},mounted(){this.systemSetting()},methods:{submitForm(){this.$refs.formData.validate(t=>{t&&this.systemSetting(!0)})},resetForm(){this.formData=$A.cloneJSON(this.formDatum_bak)},systemSetting(t){this.loadIng++,this.$store.dispatch("call",{url:"system/setting/thirdaccess?type="+(t?"save":"all"),data:this.formData}).then(({data:s})=>{t&&$A.messageSuccess("\u4FEE\u6539\u6210\u529F"),this.formData=s,this.formDatum_bak=$A.cloneJSON(this.formData)}).catch(({msg:s})=>{t&&$A.modalError(s)}).finally(s=>{this.loadIng--})},checkTest(){this.testLoad||(this.testLoad=!0,this.$store.dispatch("call",{url:"system/setting/thirdaccess?type=testldap",data:this.formData}).then(({msg:t})=>{$A.messageSuccess(t)}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.testLoad=!1}))}}},d={};var ut=r(ct,nt,mt,!1,_t,null,null,null);function _t(t){for(let s in d)this[s]=d[s]}var pt=function(){return ut.exports}(),dt=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"setting-item submit"},[a("Tabs",{model:{value:t.tabAction,callback:function(e){t.tabAction=e},expression:"tabAction"}},[a("TabPane",{attrs:{label:t.$L("\u7CFB\u7EDF\u8BBE\u7F6E"),name:"setting"}},[a("SystemSetting")],1),a("TabPane",{attrs:{label:t.$L("\u4EFB\u52A1\u4F18\u5148\u7EA7"),name:"taskPriority"}},[a("SystemTaskPriority")],1),a("TabPane",{attrs:{label:t.$L("\u9879\u76EE\u6A21\u677F"),name:"columnTemplate"}},[a("SystemColumnTemplate")],1),a("TabPane",{attrs:{label:t.$L("\u4F1A\u8BAE\u529F\u80FD"),name:"meeting"}},[a("SystemMeeting")],1),a("TabPane",{attrs:{label:t.$L("\u7B7E\u5230\u529F\u80FD"),name:"checkin"}},[a("SystemCheckin")],1),a("TabPane",{attrs:{label:t.$L("\u90AE\u4EF6\u8BBE\u7F6E"),name:"emailSetting"}},[a("SystemEmailSetting")],1),a("TabPane",{attrs:{label:t.$L("\u8BA4\u8BC1\u8BBE\u7F6E"),name:"thirdAccess"}},[a("SystemThirdAccess")],1),t.$A.isDooServer()?a("TabPane",{attrs:{label:t.$L("APP\u63A8\u9001"),name:"appPush"}},[a("SystemAppPush")],1):t._e()],1)],1)},ft=[];const vt={components:{SystemThirdAccess:pt,SystemCheckin:it,SystemMeeting:at,SystemAppPush:Q,SystemColumnTemplate:N,SystemTaskPriority:A,SystemSetting:k,SystemEmailSetting:U},data(){return{tabAction:"setting"}}},f={};var $t=r(vt,dt,ft,!1,ht,null,null,null);function ht(t){for(let s in f)this[s]=f[s]}var yt=function(){return $t.exports}();export{yt as default}; diff --git a/public/js/build/task.57aa2ca5.js b/public/js/build/task.5e49e9ae.js similarity index 83% rename from public/js/build/task.57aa2ca5.js rename to public/js/build/task.5e49e9ae.js index d5fdf46ca..b68e89176 100644 --- a/public/js/build/task.57aa2ca5.js +++ b/public/js/build/task.5e49e9ae.js @@ -1 +1 @@ -import{T as n}from"./TaskDetail.f1c924a1.js";import{m as r,n as o}from"./app.3d81bfbf.js";import"./TEditor.443b30fe.js";import"./ImgUpload.7f60f3a4.js";import"./ProjectLog.7a036454.js";import"./DialogWrapper.68f3aecd.js";import"./longpress.43ca7fd9.js";import"./index.8fb9f3fd.js";import"./UserSelect.6a5dfe83.js";import"./details.ee26823b.js";import"./TaskMenu.bdcf4604.js";var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"electron-task"},[s("PageTitle",{attrs:{title:t.taskInfo.name}}),t.loadIng>0?s("Loading"):s("TaskDetail",{ref:"taskDetail",attrs:{"task-id":t.taskInfo.id,"open-task":t.taskInfo,"can-update-blur":t.canUpdateBlur}})],1)},c=[];const d={components:{TaskDetail:n},data(){return{loadIng:0,canUpdateBlur:!0}},mounted(){document.addEventListener("keydown",this.shortcutEvent),this.$isSubElectron&&(window.__onBeforeUnload=()=>{if(this.$refs.taskDetail.checkUpdate())return this.canUpdateBlur=!1,$A.modalConfirm({content:"\u4FEE\u6539\u7684\u5185\u5BB9\u5C1A\u672A\u4FDD\u5B58\uFF0C\u771F\u7684\u8981\u653E\u5F03\u4FEE\u6539\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u653E\u5F03",onOk:()=>{this.$Electron.sendMessage("windowDestroy")},onCancel:()=>{this.$refs.taskDetail.checkUpdate(!1),this.canUpdateBlur=!0}}),!0})},beforeDestroy(){document.removeEventListener("keydown",this.shortcutEvent)},computed:{...r(["cacheTasks"]),taskId(){const{taskId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},taskInfo(){return this.cacheTasks.find(({id:t})=>t===this.taskId)||{}}},watch:{taskId:{handler(){this.getInfo()},immediate:!0}},methods:{getInfo(){this.taskId<=0||(this.loadIng++,this.$store.dispatch("getTaskOne",{task_id:this.taskId,archived:"all"}).then(()=>{this.$store.dispatch("getTaskContent",this.taskId),this.$store.dispatch("getTaskFiles",this.taskId),this.$store.dispatch("getTaskForParent",this.taskId).catch(()=>{}),this.$store.dispatch("getTaskPriority").catch(()=>{})}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{this.$Electron&&window.close()}})}).finally(t=>{this.loadIng--}))},shortcutEvent(t){(t.metaKey||t.ctrlKey)&&t.keyCode===83&&(t.preventDefault(),this.$refs.taskDetail.checkUpdate(!0))}}},a={};var l=o(d,i,c,!1,h,"7af6ba13",null,null);function h(t){for(let e in a)this[e]=a[e]}var T=function(){return l.exports}();export{T as default}; +import{T as n}from"./TaskDetail.2b58e274.js";import{m as r,n as o}from"./app.28437e7d.js";import"./TEditor.a8b14511.js";import"./ImgUpload.cbadd034.js";import"./ProjectLog.65503d98.js";import"./DialogWrapper.962561b6.js";import"./longpress.43ca7fd9.js";import"./index.ed41beb1.js";import"./UserSelect.fe42163b.js";import"./details.70f91a78.js";import"./TaskMenu.98a91192.js";var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"electron-task"},[s("PageTitle",{attrs:{title:t.taskInfo.name}}),t.loadIng>0?s("Loading"):s("TaskDetail",{ref:"taskDetail",attrs:{"task-id":t.taskInfo.id,"open-task":t.taskInfo,"can-update-blur":t.canUpdateBlur}})],1)},c=[];const d={components:{TaskDetail:n},data(){return{loadIng:0,canUpdateBlur:!0}},mounted(){document.addEventListener("keydown",this.shortcutEvent),this.$isSubElectron&&(window.__onBeforeUnload=()=>{if(this.$refs.taskDetail.checkUpdate())return this.canUpdateBlur=!1,$A.modalConfirm({content:"\u4FEE\u6539\u7684\u5185\u5BB9\u5C1A\u672A\u4FDD\u5B58\uFF0C\u771F\u7684\u8981\u653E\u5F03\u4FEE\u6539\u5417\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u653E\u5F03",onOk:()=>{this.$Electron.sendMessage("windowDestroy")},onCancel:()=>{this.$refs.taskDetail.checkUpdate(!1),this.canUpdateBlur=!0}}),!0})},beforeDestroy(){document.removeEventListener("keydown",this.shortcutEvent)},computed:{...r(["cacheTasks"]),taskId(){const{taskId:t}=this.$route.params;return parseInt(/^\d+$/.test(t)?t:0)},taskInfo(){return this.cacheTasks.find(({id:t})=>t===this.taskId)||{}}},watch:{taskId:{handler(){this.getInfo()},immediate:!0}},methods:{getInfo(){this.taskId<=0||(this.loadIng++,this.$store.dispatch("getTaskOne",{task_id:this.taskId,archived:"all"}).then(()=>{this.$store.dispatch("getTaskContent",this.taskId),this.$store.dispatch("getTaskFiles",this.taskId),this.$store.dispatch("getTaskForParent",this.taskId).catch(()=>{}),this.$store.dispatch("getTaskPriority").catch(()=>{})}).catch(({msg:t})=>{$A.modalError({content:t,onOk:()=>{this.$Electron&&window.close()}})}).finally(t=>{this.loadIng--}))},shortcutEvent(t){(t.metaKey||t.ctrlKey)&&t.keyCode===83&&(t.preventDefault(),this.$refs.taskDetail.checkUpdate(!0))}}},a={};var l=o(d,i,c,!1,h,"7af6ba13",null,null);function h(t){for(let e in a)this[e]=a[e]}var T=function(){return l.exports}();export{T as default}; diff --git a/public/js/build/theme.7883a613.js b/public/js/build/theme.602796fd.js similarity index 96% rename from public/js/build/theme.7883a613.js rename to public/js/build/theme.602796fd.js index 048331e76..7b89c724f 100644 --- a/public/js/build/theme.7883a613.js +++ b/public/js/build/theme.602796fd.js @@ -1 +1 @@ -import{m as i,n}from"./app.3d81bfbf.js";var m=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"setting-item submit"},[e("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(o){o.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u9009\u62E9\u4E3B\u9898"),prop:"theme"}},[e("Select",{attrs:{placeholder:t.$L("\u9009\u9879\u4E3B\u9898")},model:{value:t.formData.theme,callback:function(o){t.$set(t.formData,"theme",o)},expression:"formData.theme"}},t._l(t.themeList,function(o,s){return e("Option",{key:s,attrs:{value:o.value}},[t._v(t._s(t.$L(o.name)))])}),1)],1)],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},l=[];const c={data(){return{loadIng:0,formData:{theme:""},ruleData:{}}},mounted(){this.initData()},computed:{...i(["themeMode","themeList","formLabelPosition","formLabelWidth"])},methods:{initData(){this.$set(this.formData,"theme",this.themeMode),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{t&&this.$store.dispatch("setTheme",this.formData.theme).then(a=>{a&&$A.messageSuccess("\u4FDD\u5B58\u6210\u529F")})})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},r={};var f=n(c,m,l,!1,h,null,null,null);function h(t){for(let a in r)this[a]=r[a]}var _=function(){return f.exports}();export{_ as default}; +import{m as i,n}from"./app.28437e7d.js";var m=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"setting-item submit"},[e("Form",{ref:"formData",attrs:{model:t.formData,rules:t.ruleData,labelPosition:t.formLabelPosition,labelWidth:t.formLabelWidth},nativeOn:{submit:function(o){o.preventDefault()}}},[e("FormItem",{attrs:{label:t.$L("\u9009\u62E9\u4E3B\u9898"),prop:"theme"}},[e("Select",{attrs:{placeholder:t.$L("\u9009\u9879\u4E3B\u9898")},model:{value:t.formData.theme,callback:function(o){t.$set(t.formData,"theme",o)},expression:"formData.theme"}},t._l(t.themeList,function(o,s){return e("Option",{key:s,attrs:{value:o.value}},[t._v(t._s(t.$L(o.name)))])}),1)],1)],1),e("div",{staticClass:"setting-footer"},[e("Button",{attrs:{loading:t.loadIng>0,type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$L("\u63D0\u4EA4")))]),e("Button",{staticStyle:{"margin-left":"8px"},attrs:{loading:t.loadIng>0},on:{click:t.resetForm}},[t._v(t._s(t.$L("\u91CD\u7F6E")))])],1)],1)},l=[];const c={data(){return{loadIng:0,formData:{theme:""},ruleData:{}}},mounted(){this.initData()},computed:{...i(["themeMode","themeList","formLabelPosition","formLabelWidth"])},methods:{initData(){this.$set(this.formData,"theme",this.themeMode),this.formData_bak=$A.cloneJSON(this.formData)},submitForm(){this.$refs.formData.validate(t=>{t&&this.$store.dispatch("setTheme",this.formData.theme).then(a=>{a&&$A.messageSuccess("\u4FDD\u5B58\u6210\u529F")})})},resetForm(){this.formData=$A.cloneJSON(this.formData_bak)}}},r={};var f=n(c,m,l,!1,h,null,null,null);function h(t){for(let a in r)this[a]=r[a]}var _=function(){return f.exports}();export{_ as default}; diff --git a/public/js/build/token.cf2cfab1.js b/public/js/build/token.fd2d3201.js similarity index 91% rename from public/js/build/token.cf2cfab1.js rename to public/js/build/token.fd2d3201.js index afd93be8f..353192930 100644 --- a/public/js/build/token.cf2cfab1.js +++ b/public/js/build/token.fd2d3201.js @@ -1 +1 @@ -import{n}from"./app.3d81bfbf.js";var a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"token-transfer"},[o("Loading")],1)},s=[];const i={mounted(){this.goNext1()},methods:{goNext1(){const e=$A.urlParameterAll();e.token&&this.$store.dispatch("call",{url:"users/info",header:{token:e.token}}).then(t=>{this.$store.dispatch("saveUserInfo",t.data),this.goNext2()}).catch(t=>{this.goForward({name:"login"},!0)})},goNext2(){let e=decodeURIComponent($A.getObject(this.$route.query,"from"));e?window.location.replace(e):this.goForward({name:"manage-dashboard"},!0)}}},r={};var c=n(i,a,s,!1,l,"5df16c44",null,null);function l(e){for(let t in r)this[t]=r[t]}var d=function(){return c.exports}();export{d as default}; +import{n}from"./app.28437e7d.js";var a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"token-transfer"},[o("Loading")],1)},s=[];const i={mounted(){this.goNext1()},methods:{goNext1(){const e=$A.urlParameterAll();e.token&&this.$store.dispatch("call",{url:"users/info",header:{token:e.token}}).then(t=>{this.$store.dispatch("saveUserInfo",t.data),this.goNext2()}).catch(t=>{this.goForward({name:"login"},!0)})},goNext2(){let e=decodeURIComponent($A.getObject(this.$route.query,"from"));e?window.location.replace(e):this.goForward({name:"manage-dashboard"},!0)}}},r={};var c=n(i,a,s,!1,l,"5df16c44",null,null);function l(e){for(let t in r)this[t]=r[t]}var d=function(){return c.exports}();export{d as default}; diff --git a/public/js/build/validEmail.9625450a.js b/public/js/build/validEmail.38e96830.js similarity index 95% rename from public/js/build/validEmail.9625450a.js rename to public/js/build/validEmail.38e96830.js index 5ebfba0a4..c52914426 100644 --- a/public/js/build/validEmail.9625450a.js +++ b/public/js/build/validEmail.38e96830.js @@ -1 +1 @@ -import{n as i}from"./app.3d81bfbf.js";var a=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"valid-wrap"},[e("div",{staticClass:"valid-box"},[e("div",{staticClass:"valid-title"},[t._v(t._s(t.$L("\u9A8C\u8BC1\u90AE\u7BB1")))]),!t.success&&!t.error?e("Spin",{attrs:{size:"large"}}):t._e(),t.success?e("div",{staticClass:"validation-text"},[e("p",[t._v(t._s(t.$L("\u60A8\u7684\u90AE\u7BB1\u5DF2\u901A\u8FC7\u9A8C\u8BC1")))]),e("p",[t._v(t._s(t.$L("\u4ECA\u540E\u60A8\u53EF\u4EE5\u901A\u8FC7\u6B64\u90AE\u7BB1\u91CD\u7F6E\u60A8\u7684\u5E10\u53F7\u5BC6\u7801")))])]):t._e(),t.error?e("div",{staticClass:"validation-text"},[e("div",[t._v(t._s(t.errorText))])]):t._e(),t.success?e("div",{attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"primary",long:""},on:{click:t.userLogout}},[t._v(t._s(t.$L("\u8FD4\u56DE\u9996\u9875")))])],1):t._e()],1)])},o=[];const c={data(){return{success:!1,error:!1,errorText:this.$L("\u94FE\u63A5\u5DF2\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u53D1\u9001")}},mounted(){this.verificationEmail()},methods:{verificationEmail(){this.$store.dispatch("call",{url:"users/email/verification",data:{code:this.$route.query.code}}).then(()=>{this.success=!0,this.error=!1}).catch(({data:t,msg:s})=>{t.code===2?this.goForward({name:"index",query:{action:"index"}},!0):(this.success=!1,this.error=!0,this.errorText=this.$L(s))})},userLogout(){this.$store.dispatch("logout",!1)}}},r={};var l=i(c,a,o,!1,n,"763444c4",null,null);function n(t){for(let s in r)this[s]=r[s]}var u=function(){return l.exports}();export{u as default}; +import{n as i}from"./app.28437e7d.js";var a=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"valid-wrap"},[e("div",{staticClass:"valid-box"},[e("div",{staticClass:"valid-title"},[t._v(t._s(t.$L("\u9A8C\u8BC1\u90AE\u7BB1")))]),!t.success&&!t.error?e("Spin",{attrs:{size:"large"}}):t._e(),t.success?e("div",{staticClass:"validation-text"},[e("p",[t._v(t._s(t.$L("\u60A8\u7684\u90AE\u7BB1\u5DF2\u901A\u8FC7\u9A8C\u8BC1")))]),e("p",[t._v(t._s(t.$L("\u4ECA\u540E\u60A8\u53EF\u4EE5\u901A\u8FC7\u6B64\u90AE\u7BB1\u91CD\u7F6E\u60A8\u7684\u5E10\u53F7\u5BC6\u7801")))])]):t._e(),t.error?e("div",{staticClass:"validation-text"},[e("div",[t._v(t._s(t.errorText))])]):t._e(),t.success?e("div",{attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"primary",long:""},on:{click:t.userLogout}},[t._v(t._s(t.$L("\u8FD4\u56DE\u9996\u9875")))])],1):t._e()],1)])},o=[];const c={data(){return{success:!1,error:!1,errorText:this.$L("\u94FE\u63A5\u5DF2\u8FC7\u671F\uFF0C\u5DF2\u91CD\u65B0\u53D1\u9001")}},mounted(){this.verificationEmail()},methods:{verificationEmail(){this.$store.dispatch("call",{url:"users/email/verification",data:{code:this.$route.query.code}}).then(()=>{this.success=!0,this.error=!1}).catch(({data:t,msg:s})=>{t.code===2?this.goForward({name:"index",query:{action:"index"}},!0):(this.success=!1,this.error=!0,this.errorText=this.$L(s))})},userLogout(){this.$store.dispatch("logout",!1)}}},r={};var l=i(c,a,o,!1,n,"763444c4",null,null);function n(t){for(let s in r)this[s]=r[s]}var u=function(){return l.exports}();export{u as default}; diff --git a/public/js/build/view.63338a5b.js b/public/js/build/view.b49fdd4c.js similarity index 98% rename from public/js/build/view.63338a5b.js rename to public/js/build/view.b49fdd4c.js index 39b3547ce..c0334c2f0 100644 --- a/public/js/build/view.63338a5b.js +++ b/public/js/build/view.b49fdd4c.js @@ -1 +1 @@ -import{V as c,n as m}from"./app.3d81bfbf.js";typeof/./!="function"&&typeof Int8Array!="object"&&(c.prototype.$isServer||document.childNodes);const v=function(){return!c.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)};function d(e){let n=!1;return function(...t){n||(n=!0,window.requestAnimationFrame(s=>{e.apply(this,t),n=!1}))}}const h=c.prototype.$isServer,r=function(){return!h&&document.addEventListener?function(e,n,t){e&&n&&t&&e.addEventListener(n,t,!1)}:function(e,n,t){e&&n&&t&&e.attachEvent("on"+n,t)}}(),l=function(){return!h&&document.removeEventListener?function(e,n,t){e&&n&&e.removeEventListener(n,t,!1)}:function(e,n,t){e&&n&&e.detachEvent("on"+n,t)}}();var g=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{ref:"view",staticClass:"common-preview-image"},[t("div",{staticClass:"common-preview-view no-dark-content"},[e.isSingle?e._e():[t("div",{staticClass:"preview-view-prev",class:{"is-disabled":!e.infinite&&e.isFirst},on:{click:e.prev}},[t("i",{staticClass:"taskfont"},[e._v("\uE72D")])]),t("div",{staticClass:"preview-view-next",class:{"is-disabled":!e.infinite&&e.isLast},on:{click:e.next}},[t("i",{staticClass:"taskfont"},[e._v("\uE733")])])],t("div",{staticClass:"preview-view-actions"},[t("div",{staticClass:"actions-inner"},[t("i",{staticClass:"taskfont",on:{click:function(s){return e.handleActions("zoomOut")}}},[e._v("\uE7A2")]),t("i",{staticClass:"taskfont",on:{click:function(s){return e.handleActions("zoomIn")}}},[e._v("\uE79F")]),t("i",{staticClass:"actions-divider"}),t("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(e.mode.icon)},on:{click:e.toggleMode}}),t("i",{staticClass:"actions-divider"}),t("i",{staticClass:"taskfont",on:{click:function(s){return e.handleActions("anticlocelise")}}},[e._v("\uE7A7")]),t("i",{staticClass:"taskfont",on:{click:function(s){return e.handleActions("clocelise")}}},[e._v("\uE7A6")])])]),t("div",{staticClass:"preview-view-canvas"},e._l(e.urlList,function(s,o){return o===e.index?t("img",{key:o,ref:"img",refInFor:!0,staticClass:"preview-view-img",style:e.imgStyle,attrs:{src:e.currentImg},on:{load:e.handleImgLoad,error:e.handleImgError,mousedown:e.handleMouseDown}}):e._e()}),0)],2)])},p=[];const a={CONTAIN:{name:"contain",icon:""},ORIGINAL:{name:"original",icon:""}},u=v()?"DOMMouseScroll":"mousewheel",_={props:{urlList:{type:Array,default:()=>[]},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!1},onSwitch:{type:Function,default:()=>{}}},data(){return{index:this.initialIndex,loading:!1,mode:a.CONTAIN,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},mounted(){this.deviceSupportInstall(),this.$refs.view.focus()},beforeDestroy(){this.deviceSupportUninstall()},computed:{isSingle(){return this.urlList.length<=1},isFirst(){return this.index===0},isLast(){return this.index===this.urlList.length-1},currentImg(){let e=this.urlList[this.index];return $A.isJson(e)&&(e=e.src),$A.thumbRestore(e)},imgStyle(){const{scale:e,deg:n,offsetX:t,offsetY:s,enableTransition:o}=this.transform,i={transform:`scale(${e}) rotate(${n}deg)`,transition:o?"transform .3s":"","margin-left":`${t}px`,"margin-top":`${s}px`};return this.mode===a.CONTAIN&&(i.maxWidth=i.maxHeight="100%"),i}},watch:{index:{handler:function(e){this.reset(),this.onSwitch(e)}},initialIndex(e){this.index=e},currentImg(){this.$nextTick(e=>{this.$refs.img[0].complete||(this.loading=!0)})}},methods:{deviceSupportInstall(){this._keyDownHandler=e=>{switch(e.stopPropagation(),e.keyCode){case 32:this.toggleMode();break;case 37:this.prev();break;case 38:this.handleActions("zoomIn");break;case 39:this.next();break;case 40:this.handleActions("zoomOut");break}},this._mouseWheelHandler=d(e=>{(e.wheelDelta?e.wheelDelta:-e.detail)>0?this.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):this.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})}),r(document,"keydown",this._keyDownHandler),r(document,u,this._mouseWheelHandler)},deviceSupportUninstall(){l(document,"keydown",this._keyDownHandler),l(document,u,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad(e){this.loading=!1},handleImgError(e){this.loading=!1,e.target.alt="\u52A0\u8F7D\u5931\u8D25"},handleMouseDown(e){if(this.loading||e.button!==0)return;const{offsetX:n,offsetY:t}=this.transform,s=e.pageX,o=e.pageY;this._dragHandler=d(i=>{this.transform.offsetX=n+i.pageX-s,this.transform.offsetY=t+i.pageY-o}),r(document,"mousemove",this._dragHandler),r(document,"mouseup",i=>{l(document,"mousemove",this._dragHandler)}),e.preventDefault()},reset(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode(){if(this.loading)return;const e=Object.keys(a),s=(Object.values(a).indexOf(this.mode)+1)%e.length;this.mode=a[e[s]],this.reset()},prev(){if(this.isFirst&&!this.infinite)return;const e=this.urlList.length;this.index=(this.index-1+e)%e},next(){if(this.isLast&&!this.infinite)return;const e=this.urlList.length;this.index=(this.index+1)%e},handleActions(e,n={}){if(this.loading)return;const{zoomRate:t,rotateDeg:s,enableTransition:o}={zoomRate:.2,rotateDeg:90,enableTransition:!0,...n},{transform:i}=this;switch(e){case"zoomOut":i.scale>.2&&(i.scale=parseFloat((i.scale-t).toFixed(3)));break;case"zoomIn":i.scale=parseFloat((i.scale+t).toFixed(3));break;case"clocelise":i.deg+=s;break;case"anticlocelise":i.deg-=s;break}i.enableTransition=o}}},f={};var w=m(_,g,p,!1,x,"21371c33",null,null);function x(e){for(let n in f)this[n]=f[n]}var y=function(){return w.exports}();export{y as default}; +import{V as c,n as m}from"./app.28437e7d.js";typeof/./!="function"&&typeof Int8Array!="object"&&(c.prototype.$isServer||document.childNodes);const v=function(){return!c.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)};function d(e){let n=!1;return function(...t){n||(n=!0,window.requestAnimationFrame(s=>{e.apply(this,t),n=!1}))}}const h=c.prototype.$isServer,r=function(){return!h&&document.addEventListener?function(e,n,t){e&&n&&t&&e.addEventListener(n,t,!1)}:function(e,n,t){e&&n&&t&&e.attachEvent("on"+n,t)}}(),l=function(){return!h&&document.removeEventListener?function(e,n,t){e&&n&&e.removeEventListener(n,t,!1)}:function(e,n,t){e&&n&&e.detachEvent("on"+n,t)}}();var g=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{ref:"view",staticClass:"common-preview-image"},[t("div",{staticClass:"common-preview-view no-dark-content"},[e.isSingle?e._e():[t("div",{staticClass:"preview-view-prev",class:{"is-disabled":!e.infinite&&e.isFirst},on:{click:e.prev}},[t("i",{staticClass:"taskfont"},[e._v("\uE72D")])]),t("div",{staticClass:"preview-view-next",class:{"is-disabled":!e.infinite&&e.isLast},on:{click:e.next}},[t("i",{staticClass:"taskfont"},[e._v("\uE733")])])],t("div",{staticClass:"preview-view-actions"},[t("div",{staticClass:"actions-inner"},[t("i",{staticClass:"taskfont",on:{click:function(s){return e.handleActions("zoomOut")}}},[e._v("\uE7A2")]),t("i",{staticClass:"taskfont",on:{click:function(s){return e.handleActions("zoomIn")}}},[e._v("\uE79F")]),t("i",{staticClass:"actions-divider"}),t("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(e.mode.icon)},on:{click:e.toggleMode}}),t("i",{staticClass:"actions-divider"}),t("i",{staticClass:"taskfont",on:{click:function(s){return e.handleActions("anticlocelise")}}},[e._v("\uE7A7")]),t("i",{staticClass:"taskfont",on:{click:function(s){return e.handleActions("clocelise")}}},[e._v("\uE7A6")])])]),t("div",{staticClass:"preview-view-canvas"},e._l(e.urlList,function(s,o){return o===e.index?t("img",{key:o,ref:"img",refInFor:!0,staticClass:"preview-view-img",style:e.imgStyle,attrs:{src:e.currentImg},on:{load:e.handleImgLoad,error:e.handleImgError,mousedown:e.handleMouseDown}}):e._e()}),0)],2)])},p=[];const a={CONTAIN:{name:"contain",icon:""},ORIGINAL:{name:"original",icon:""}},u=v()?"DOMMouseScroll":"mousewheel",_={props:{urlList:{type:Array,default:()=>[]},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!1},onSwitch:{type:Function,default:()=>{}}},data(){return{index:this.initialIndex,loading:!1,mode:a.CONTAIN,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},mounted(){this.deviceSupportInstall(),this.$refs.view.focus()},beforeDestroy(){this.deviceSupportUninstall()},computed:{isSingle(){return this.urlList.length<=1},isFirst(){return this.index===0},isLast(){return this.index===this.urlList.length-1},currentImg(){let e=this.urlList[this.index];return $A.isJson(e)&&(e=e.src),$A.thumbRestore(e)},imgStyle(){const{scale:e,deg:n,offsetX:t,offsetY:s,enableTransition:o}=this.transform,i={transform:`scale(${e}) rotate(${n}deg)`,transition:o?"transform .3s":"","margin-left":`${t}px`,"margin-top":`${s}px`};return this.mode===a.CONTAIN&&(i.maxWidth=i.maxHeight="100%"),i}},watch:{index:{handler:function(e){this.reset(),this.onSwitch(e)}},initialIndex(e){this.index=e},currentImg(){this.$nextTick(e=>{this.$refs.img[0].complete||(this.loading=!0)})}},methods:{deviceSupportInstall(){this._keyDownHandler=e=>{switch(e.stopPropagation(),e.keyCode){case 32:this.toggleMode();break;case 37:this.prev();break;case 38:this.handleActions("zoomIn");break;case 39:this.next();break;case 40:this.handleActions("zoomOut");break}},this._mouseWheelHandler=d(e=>{(e.wheelDelta?e.wheelDelta:-e.detail)>0?this.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):this.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})}),r(document,"keydown",this._keyDownHandler),r(document,u,this._mouseWheelHandler)},deviceSupportUninstall(){l(document,"keydown",this._keyDownHandler),l(document,u,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad(e){this.loading=!1},handleImgError(e){this.loading=!1,e.target.alt="\u52A0\u8F7D\u5931\u8D25"},handleMouseDown(e){if(this.loading||e.button!==0)return;const{offsetX:n,offsetY:t}=this.transform,s=e.pageX,o=e.pageY;this._dragHandler=d(i=>{this.transform.offsetX=n+i.pageX-s,this.transform.offsetY=t+i.pageY-o}),r(document,"mousemove",this._dragHandler),r(document,"mouseup",i=>{l(document,"mousemove",this._dragHandler)}),e.preventDefault()},reset(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode(){if(this.loading)return;const e=Object.keys(a),s=(Object.values(a).indexOf(this.mode)+1)%e.length;this.mode=a[e[s]],this.reset()},prev(){if(this.isFirst&&!this.infinite)return;const e=this.urlList.length;this.index=(this.index-1+e)%e},next(){if(this.isLast&&!this.infinite)return;const e=this.urlList.length;this.index=(this.index+1)%e},handleActions(e,n={}){if(this.loading)return;const{zoomRate:t,rotateDeg:s,enableTransition:o}={zoomRate:.2,rotateDeg:90,enableTransition:!0,...n},{transform:i}=this;switch(e){case"zoomOut":i.scale>.2&&(i.scale=parseFloat((i.scale-t).toFixed(3)));break;case"zoomIn":i.scale=parseFloat((i.scale+t).toFixed(3));break;case"clocelise":i.deg+=s;break;case"anticlocelise":i.deg-=s;break}i.enableTransition=o}}},f={};var w=m(_,g,p,!1,x,"21371c33",null,null);function x(e){for(let n in f)this[n]=f[n]}var y=function(){return w.exports}();export{y as default}; diff --git a/public/manifest.json b/public/manifest.json index 8714d0d30..a9af1e048 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,6 +1,6 @@ { "resources/assets/js/app.js": { - "file": "js/build/app.3d81bfbf.js", + "file": "js/build/app.28437e7d.js", "src": "resources/assets/js/app.js", "isEntry": true, "dynamicImports": [ @@ -115,27 +115,27 @@ ] }, "resources/assets/js/pages/index.vue": { - "file": "js/build/index.e632435c.js", + "file": "js/build/index.680c7fea.js", "src": "resources/assets/js/pages/index.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_UpdateLog.eacff378.js" + "_UpdateLog.a78387dc.js" ] }, - "_UpdateLog.eacff378.js": { - "file": "js/build/UpdateLog.eacff378.js", + "_UpdateLog.a78387dc.js": { + "file": "js/build/UpdateLog.a78387dc.js", "imports": [ "resources/assets/js/app.js" ] }, "resources/assets/js/pages/pro.vue": { - "file": "js/build/pro.2f14e151.js", + "file": "js/build/pro.5eb35683.js", "src": "resources/assets/js/pages/pro.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_UpdateLog.eacff378.js" + "_UpdateLog.a78387dc.js" ], "css": [ "js/build/pro.26bf0cbb.css" @@ -147,41 +147,41 @@ ] }, "resources/assets/js/pages/manage.vue": { - "file": "js/build/manage.f8704ace.js", + "file": "js/build/manage.2b7e7263.js", "src": "resources/assets/js/pages/manage.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_CheckinExport.e995cbea.js", - "_index.8fb9f3fd.js", + "_CheckinExport.a307a3ee.js", + "_index.ed41beb1.js", "resources/assets/js/components/TEditor.vue", - "_UserSelect.6a5dfe83.js", - "_ReportEdit.9d99c827.js", - "_ReportDetail.6914d4af.js", + "_UserSelect.fe42163b.js", + "_ReportEdit.74592e96.js", + "_ReportDetail.62478618.js", "_longpress.43ca7fd9.js", - "_DialogWrapper.68f3aecd.js", - "_TaskDetail.f1c924a1.js", - "_ImgUpload.7f60f3a4.js", + "_DialogWrapper.962561b6.js", + "_TaskDetail.2b58e274.js", + "_ImgUpload.cbadd034.js", "resources/assets/js/pages/manage/approve/details.vue", - "_ProjectLog.7a036454.js", - "_TaskMenu.bdcf4604.js" + "_ProjectLog.65503d98.js", + "_TaskMenu.98a91192.js" ], "css": [ "js/build/manage.a77f99dc.css" ] }, - "_CheckinExport.e995cbea.js": { - "file": "js/build/CheckinExport.e995cbea.js", + "_CheckinExport.a307a3ee.js": { + "file": "js/build/CheckinExport.a307a3ee.js", "imports": [ - "_UserSelect.6a5dfe83.js", + "_UserSelect.fe42163b.js", "resources/assets/js/app.js" ], "css": [ "js/build/CheckinExport.68b4950e.css" ] }, - "_index.8fb9f3fd.js": { - "file": "js/build/index.8fb9f3fd.js", + "_index.ed41beb1.js": { + "file": "js/build/index.ed41beb1.js", "imports": [ "resources/assets/js/app.js" ], @@ -192,140 +192,140 @@ "_longpress.43ca7fd9.js": { "file": "js/build/longpress.43ca7fd9.js" }, - "_UserSelect.6a5dfe83.js": { - "file": "js/build/UserSelect.6a5dfe83.js", + "_UserSelect.fe42163b.js": { + "file": "js/build/UserSelect.fe42163b.js", "imports": [ "resources/assets/js/app.js" ] }, "resources/assets/js/components/TEditor.vue": { - "file": "js/build/TEditor.443b30fe.js", + "file": "js/build/TEditor.a8b14511.js", "src": "resources/assets/js/components/TEditor.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_ImgUpload.7f60f3a4.js" + "_ImgUpload.cbadd034.js" ] }, - "_ReportEdit.9d99c827.js": { - "file": "js/build/ReportEdit.9d99c827.js", + "_ReportEdit.74592e96.js": { + "file": "js/build/ReportEdit.74592e96.js", "imports": [ "resources/assets/js/app.js", - "_UserSelect.6a5dfe83.js" + "_UserSelect.fe42163b.js" ], "dynamicImports": [ "resources/assets/js/components/TEditor.vue" ] }, - "_ReportDetail.6914d4af.js": { - "file": "js/build/ReportDetail.6914d4af.js", + "_ReportDetail.62478618.js": { + "file": "js/build/ReportDetail.62478618.js", "imports": [ "resources/assets/js/app.js" ] }, - "_DialogWrapper.68f3aecd.js": { - "file": "js/build/DialogWrapper.68f3aecd.js", + "_DialogWrapper.962561b6.js": { + "file": "js/build/DialogWrapper.962561b6.js", "imports": [ "resources/assets/js/app.js", "_longpress.43ca7fd9.js", - "_index.8fb9f3fd.js", - "_UserSelect.6a5dfe83.js", - "_ImgUpload.7f60f3a4.js", + "_index.ed41beb1.js", + "_UserSelect.fe42163b.js", + "_ImgUpload.cbadd034.js", "resources/assets/js/pages/manage/approve/details.vue" ], "css": [ "js/build/DialogWrapper.f63c0b9e.css" ] }, - "_TaskDetail.f1c924a1.js": { - "file": "js/build/TaskDetail.f1c924a1.js", + "_TaskDetail.2b58e274.js": { + "file": "js/build/TaskDetail.2b58e274.js", "imports": [ "resources/assets/js/app.js", "resources/assets/js/components/TEditor.vue", - "_ProjectLog.7a036454.js", - "_DialogWrapper.68f3aecd.js", - "_TaskMenu.bdcf4604.js", - "_UserSelect.6a5dfe83.js" + "_ProjectLog.65503d98.js", + "_DialogWrapper.962561b6.js", + "_TaskMenu.98a91192.js", + "_UserSelect.fe42163b.js" ] }, - "_ImgUpload.7f60f3a4.js": { - "file": "js/build/ImgUpload.7f60f3a4.js", + "_ImgUpload.cbadd034.js": { + "file": "js/build/ImgUpload.cbadd034.js", "imports": [ "resources/assets/js/app.js" ] }, "resources/assets/js/pages/manage/approve/details.vue": { - "file": "js/build/details.ee26823b.js", + "file": "js/build/details.70f91a78.js", "src": "resources/assets/js/pages/manage/approve/details.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_ImgUpload.7f60f3a4.js" + "_ImgUpload.cbadd034.js" ] }, - "_ProjectLog.7a036454.js": { - "file": "js/build/ProjectLog.7a036454.js", + "_ProjectLog.65503d98.js": { + "file": "js/build/ProjectLog.65503d98.js", "imports": [ "resources/assets/js/app.js" ] }, - "_TaskMenu.bdcf4604.js": { - "file": "js/build/TaskMenu.bdcf4604.js", + "_TaskMenu.98a91192.js": { + "file": "js/build/TaskMenu.98a91192.js", "imports": [ "resources/assets/js/app.js" ] }, "resources/assets/js/pages/manage/dashboard.vue": { - "file": "js/build/dashboard.bf35c371.js", + "file": "js/build/dashboard.432a58ad.js", "src": "resources/assets/js/pages/manage/dashboard.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_TaskMenu.bdcf4604.js" + "_TaskMenu.98a91192.js" ] }, "resources/assets/js/pages/manage/calendar.vue": { - "file": "js/build/calendar.1cc28b56.js", + "file": "js/build/calendar.0167b7c7.js", "src": "resources/assets/js/pages/manage/calendar.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_TaskMenu.bdcf4604.js" + "_TaskMenu.98a91192.js" ], "css": [ "js/build/calendar.05643a5b.css" ] }, "resources/assets/js/pages/manage/messenger.vue": { - "file": "js/build/messenger.2c12df67.js", + "file": "js/build/messenger.28878db6.js", "src": "resources/assets/js/pages/manage/messenger.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_DialogWrapper.68f3aecd.js", + "_DialogWrapper.962561b6.js", "_longpress.43ca7fd9.js", - "_index.8fb9f3fd.js", - "_UserSelect.6a5dfe83.js", - "_ImgUpload.7f60f3a4.js", + "_index.ed41beb1.js", + "_UserSelect.fe42163b.js", + "_ImgUpload.cbadd034.js", "resources/assets/js/pages/manage/approve/details.vue" ] }, "resources/assets/js/pages/manage/approve/index.vue": { - "file": "js/build/index.3a97bc76.js", + "file": "js/build/index.4a90d45e.js", "src": "resources/assets/js/pages/manage/approve/index.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", "resources/assets/js/pages/manage/approve/details.vue", - "_index.8fb9f3fd.js", - "_ImgUpload.7f60f3a4.js" + "_index.ed41beb1.js", + "_ImgUpload.cbadd034.js" ], "css": [ "js/build/index.9d0cdd21.css" ] }, "resources/assets/js/pages/manage/setting/index.vue": { - "file": "js/build/index.e353145a.js", + "file": "js/build/index.8ddea90c.js", "src": "resources/assets/js/pages/manage/setting/index.vue", "isDynamicEntry": true, "imports": [ @@ -333,16 +333,16 @@ ] }, "resources/assets/js/pages/manage/setting/personal.vue": { - "file": "js/build/personal.43fd91dd.js", + "file": "js/build/personal.54df45dd.js", "src": "resources/assets/js/pages/manage/setting/personal.vue", "isDynamicEntry": true, "imports": [ - "_ImgUpload.7f60f3a4.js", + "_ImgUpload.cbadd034.js", "resources/assets/js/app.js" ] }, "resources/assets/js/pages/manage/setting/checkin.vue": { - "file": "js/build/checkin.da301f3f.js", + "file": "js/build/checkin.3166564c.js", "src": "resources/assets/js/pages/manage/setting/checkin.vue", "isDynamicEntry": true, "imports": [ @@ -353,11 +353,11 @@ ] }, "resources/assets/js/pages/manage/setting/approve.vue": { - "file": "js/build/approve.6b185d9b.js", + "file": "js/build/approve.6639cc9f.js", "src": "resources/assets/js/pages/manage/setting/approve.vue", "isDynamicEntry": true, "imports": [ - "_index.8fb9f3fd.js", + "_index.ed41beb1.js", "resources/assets/js/app.js" ], "css": [ @@ -365,7 +365,7 @@ ] }, "resources/assets/js/pages/manage/setting/language.vue": { - "file": "js/build/language.fa5843fd.js", + "file": "js/build/language.733d391d.js", "src": "resources/assets/js/pages/manage/setting/language.vue", "isDynamicEntry": true, "imports": [ @@ -373,7 +373,7 @@ ] }, "resources/assets/js/pages/manage/setting/theme.vue": { - "file": "js/build/theme.7883a613.js", + "file": "js/build/theme.602796fd.js", "src": "resources/assets/js/pages/manage/setting/theme.vue", "isDynamicEntry": true, "imports": [ @@ -381,7 +381,7 @@ ] }, "resources/assets/js/pages/manage/setting/keyboard.vue": { - "file": "js/build/keyboard.7b3a2226.js", + "file": "js/build/keyboard.8af1fb72.js", "src": "resources/assets/js/pages/manage/setting/keyboard.vue", "isDynamicEntry": true, "imports": [ @@ -392,7 +392,7 @@ ] }, "resources/assets/js/pages/manage/setting/license.vue": { - "file": "js/build/license.a7c785d4.js", + "file": "js/build/license.905d25ba.js", "src": "resources/assets/js/pages/manage/setting/license.vue", "isDynamicEntry": true, "imports": [ @@ -403,7 +403,7 @@ ] }, "resources/assets/js/pages/manage/setting/password.vue": { - "file": "js/build/password.54e39187.js", + "file": "js/build/password.6442867a.js", "src": "resources/assets/js/pages/manage/setting/password.vue", "isDynamicEntry": true, "imports": [ @@ -411,7 +411,7 @@ ] }, "resources/assets/js/pages/manage/setting/email.vue": { - "file": "js/build/email.0685def4.js", + "file": "js/build/email.75f9d899.js", "src": "resources/assets/js/pages/manage/setting/email.vue", "isDynamicEntry": true, "imports": [ @@ -419,18 +419,18 @@ ] }, "resources/assets/js/pages/manage/setting/system.vue": { - "file": "js/build/system.e9d1e067.js", + "file": "js/build/system.1e3ba535.js", "src": "resources/assets/js/pages/manage/setting/system.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_index.8fb9f3fd.js", - "_CheckinExport.e995cbea.js", - "_UserSelect.6a5dfe83.js" + "_index.ed41beb1.js", + "_CheckinExport.a307a3ee.js", + "_UserSelect.fe42163b.js" ] }, "resources/assets/js/pages/manage/setting/delete.vue": { - "file": "js/build/delete.4bd99a36.js", + "file": "js/build/delete.8ebfc31c.js", "src": "resources/assets/js/pages/manage/setting/delete.vue", "isDynamicEntry": true, "imports": [ @@ -438,7 +438,7 @@ ] }, "resources/assets/js/pages/manage/projectInvite.vue": { - "file": "js/build/projectInvite.b8da8c6e.js", + "file": "js/build/projectInvite.56a67275.js", "src": "resources/assets/js/pages/manage/projectInvite.vue", "isDynamicEntry": true, "imports": [ @@ -449,30 +449,30 @@ ] }, "resources/assets/js/pages/manage/project.vue": { - "file": "js/build/project.7c800c6a.js", + "file": "js/build/project.b44e8549.js", "src": "resources/assets/js/pages/manage/project.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_ProjectLog.7a036454.js", - "_TaskMenu.bdcf4604.js", - "_index.8fb9f3fd.js", - "_UserSelect.6a5dfe83.js", - "_DialogWrapper.68f3aecd.js", + "_ProjectLog.65503d98.js", + "_TaskMenu.98a91192.js", + "_index.ed41beb1.js", + "_UserSelect.fe42163b.js", + "_DialogWrapper.962561b6.js", "_longpress.43ca7fd9.js", - "_ImgUpload.7f60f3a4.js", + "_ImgUpload.cbadd034.js", "resources/assets/js/pages/manage/approve/details.vue" ] }, "resources/assets/js/pages/manage/file.vue": { - "file": "js/build/file.f8f7c6d7.js", + "file": "js/build/file.9309ba9b.js", "src": "resources/assets/js/pages/manage/file.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_index.8fb9f3fd.js", + "_index.ed41beb1.js", "_longpress.43ca7fd9.js", - "_UserSelect.6a5dfe83.js" + "_UserSelect.fe42163b.js" ], "dynamicImports": [ "resources/assets/js/pages/manage/components/FilePreview.vue", @@ -480,12 +480,12 @@ ] }, "resources/assets/js/pages/single/fileMsg.vue": { - "file": "js/build/fileMsg.e202783e.js", + "file": "js/build/fileMsg.cee86f54.js", "src": "resources/assets/js/pages/single/fileMsg.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_IFrame.21d04c65.js" + "_IFrame.057cac1d.js" ], "dynamicImports": [ "resources/assets/js/components/MDEditor/preview.js", @@ -499,19 +499,19 @@ "js/build/fileMsg.1a0b76dd.css" ] }, - "_IFrame.21d04c65.js": { - "file": "js/build/IFrame.21d04c65.js", + "_IFrame.057cac1d.js": { + "file": "js/build/IFrame.057cac1d.js", "imports": [ "resources/assets/js/app.js" ] }, "resources/assets/js/pages/single/fileTask.vue": { - "file": "js/build/fileTask.26ddc9c9.js", + "file": "js/build/fileTask.9ddf188a.js", "src": "resources/assets/js/pages/single/fileTask.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_IFrame.21d04c65.js" + "_IFrame.057cac1d.js" ], "dynamicImports": [ "resources/assets/js/components/MDEditor/preview.js", @@ -526,26 +526,26 @@ ] }, "resources/assets/js/pages/single/file.vue": { - "file": "js/build/file.7bda2cc5.js", + "file": "js/build/file.b975d228.js", "src": "resources/assets/js/pages/single/file.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/pages/manage/components/FileContent.vue", "resources/assets/js/pages/manage/components/FilePreview.vue", "resources/assets/js/app.js", - "_IFrame.21d04c65.js" + "_IFrame.057cac1d.js" ], "css": [ "js/build/file.1cbb23e7.css" ] }, "resources/assets/js/pages/manage/components/FileContent.vue": { - "file": "js/build/FileContent.433fb254.js", + "file": "js/build/FileContent.19861c79.js", "src": "resources/assets/js/pages/manage/components/FileContent.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_IFrame.21d04c65.js" + "_IFrame.057cac1d.js" ], "dynamicImports": [ "resources/assets/js/components/MDEditor/index.vue", @@ -560,12 +560,12 @@ ] }, "resources/assets/js/pages/manage/components/FilePreview.vue": { - "file": "js/build/FilePreview.4334b185.js", + "file": "js/build/FilePreview.025b3286.js", "src": "resources/assets/js/pages/manage/components/FilePreview.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_IFrame.21d04c65.js" + "_IFrame.057cac1d.js" ], "dynamicImports": [ "resources/assets/js/components/MDEditor/preview.js", @@ -577,28 +577,28 @@ ] }, "resources/assets/js/pages/single/task.vue": { - "file": "js/build/task.57aa2ca5.js", + "file": "js/build/task.5e49e9ae.js", "src": "resources/assets/js/pages/single/task.vue", "isDynamicEntry": true, "imports": [ - "_TaskDetail.f1c924a1.js", + "_TaskDetail.2b58e274.js", "resources/assets/js/app.js", "resources/assets/js/components/TEditor.vue", - "_ImgUpload.7f60f3a4.js", - "_ProjectLog.7a036454.js", - "_DialogWrapper.68f3aecd.js", + "_ImgUpload.cbadd034.js", + "_ProjectLog.65503d98.js", + "_DialogWrapper.962561b6.js", "_longpress.43ca7fd9.js", - "_index.8fb9f3fd.js", - "_UserSelect.6a5dfe83.js", + "_index.ed41beb1.js", + "_UserSelect.fe42163b.js", "resources/assets/js/pages/manage/approve/details.vue", - "_TaskMenu.bdcf4604.js" + "_TaskMenu.98a91192.js" ], "css": [ "js/build/task.0d7ca2d3.css" ] }, "resources/assets/js/pages/single/validEmail.vue": { - "file": "js/build/validEmail.9625450a.js", + "file": "js/build/validEmail.38e96830.js", "src": "resources/assets/js/pages/single/validEmail.vue", "isDynamicEntry": true, "imports": [ @@ -609,24 +609,24 @@ ] }, "resources/assets/js/pages/single/reportEdit.vue": { - "file": "js/build/reportEdit.93b721b2.js", + "file": "js/build/reportEdit.b1049887.js", "src": "resources/assets/js/pages/single/reportEdit.vue", "isDynamicEntry": true, "imports": [ - "_ReportEdit.9d99c827.js", + "_ReportEdit.74592e96.js", "resources/assets/js/app.js", - "_UserSelect.6a5dfe83.js" + "_UserSelect.fe42163b.js" ], "css": [ "js/build/reportEdit.5c397123.css" ] }, "resources/assets/js/pages/single/reportDetail.vue": { - "file": "js/build/reportDetail.5fbfb807.js", + "file": "js/build/reportDetail.f8c5e6fd.js", "src": "resources/assets/js/pages/single/reportDetail.vue", "isDynamicEntry": true, "imports": [ - "_ReportDetail.6914d4af.js", + "_ReportDetail.62478618.js", "resources/assets/js/app.js" ], "css": [ @@ -634,7 +634,7 @@ ] }, "resources/assets/js/pages/token.vue": { - "file": "js/build/token.cf2cfab1.js", + "file": "js/build/token.fd2d3201.js", "src": "resources/assets/js/pages/token.vue", "isDynamicEntry": true, "imports": [ @@ -645,7 +645,7 @@ ] }, "resources/assets/js/pages/login.vue": { - "file": "js/build/login.2645e9ff.js", + "file": "js/build/login.44c0f794.js", "src": "resources/assets/js/pages/login.vue", "isDynamicEntry": true, "imports": [ @@ -653,7 +653,7 @@ ] }, "resources/assets/js/pages/404.vue": { - "file": "js/build/404.934dbba6.js", + "file": "js/build/404.4a69509c.js", "src": "resources/assets/js/pages/404.vue", "isDynamicEntry": true, "imports": [ @@ -664,7 +664,7 @@ ] }, "resources/assets/js/components/PreviewImage/components/view.vue": { - "file": "js/build/view.63338a5b.js", + "file": "js/build/view.b49fdd4c.js", "src": "resources/assets/js/components/PreviewImage/components/view.vue", "isDynamicEntry": true, "imports": [ @@ -675,7 +675,7 @@ ] }, "resources/assets/js/components/PreviewImage/components/swipe.vue": { - "file": "js/build/swipe.f2e8b611.js", + "file": "js/build/swipe.1fc4f623.js", "src": "resources/assets/js/components/PreviewImage/components/swipe.vue", "isDynamicEntry": true, "imports": [ @@ -699,7 +699,7 @@ "isDynamicEntry": true }, "node_modules/openpgp_hi/dist/lightweight/bn.interface.min.mjs": { - "file": "js/build/bn.interface.min.015f7861.js", + "file": "js/build/bn.interface.min.d86da2ed.js", "src": "node_modules/openpgp_hi/dist/lightweight/bn.interface.min.mjs", "isDynamicEntry": true, "imports": [ @@ -708,7 +708,7 @@ ] }, "node_modules/openpgp_hi/dist/lightweight/bn.min.mjs": { - "file": "js/build/bn.min.a20d8e66.js", + "file": "js/build/bn.min.f47e2400.js", "src": "node_modules/openpgp_hi/dist/lightweight/bn.min.mjs", "isDynamicEntry": true, "imports": [ @@ -716,7 +716,7 @@ ] }, "node_modules/openpgp_hi/dist/lightweight/elliptic.min.mjs": { - "file": "js/build/elliptic.min.90ec5b69.js", + "file": "js/build/elliptic.min.2279bef2.js", "src": "node_modules/openpgp_hi/dist/lightweight/elliptic.min.mjs", "isDynamicEntry": true, "imports": [ @@ -725,7 +725,7 @@ ] }, "resources/assets/js/components/MDEditor/preview.js": { - "file": "js/build/preview.245b21bf.js", + "file": "js/build/preview.f1094d4b.js", "src": "resources/assets/js/components/MDEditor/preview.js", "isDynamicEntry": true, "imports": [ @@ -733,7 +733,7 @@ ] }, "resources/assets/js/components/AceEditor.vue": { - "file": "js/build/AceEditor.054eace8.js", + "file": "js/build/AceEditor.fa0d76af.js", "src": "resources/assets/js/components/AceEditor.vue", "isDynamicEntry": true, "imports": [ @@ -741,35 +741,35 @@ ] }, "resources/assets/js/components/OnlyOffice.vue": { - "file": "js/build/OnlyOffice.c9898129.js", + "file": "js/build/OnlyOffice.55cfcbd8.js", "src": "resources/assets/js/components/OnlyOffice.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_IFrame.21d04c65.js" + "_IFrame.057cac1d.js" ], "css": [ "js/build/OnlyOffice.a5dfbde1.css" ] }, "resources/assets/js/components/Drawio.vue": { - "file": "js/build/Drawio.f9d36caf.js", + "file": "js/build/Drawio.28151df2.js", "src": "resources/assets/js/components/Drawio.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_IFrame.21d04c65.js" + "_IFrame.057cac1d.js" ], "css": [ "js/build/Drawio.fc5c6326.css" ] }, "resources/assets/js/components/Minder.vue": { - "file": "js/build/Minder.e38cd318.js", + "file": "js/build/Minder.52580554.js", "src": "resources/assets/js/components/Minder.vue", "isDynamicEntry": true, "imports": [ - "_IFrame.21d04c65.js", + "_IFrame.057cac1d.js", "resources/assets/js/app.js" ], "css": [ @@ -777,12 +777,12 @@ ] }, "resources/assets/js/components/MDEditor/index.vue": { - "file": "js/build/index.fbb6a904.js", + "file": "js/build/index.cbe8908d.js", "src": "resources/assets/js/components/MDEditor/index.vue", "isDynamicEntry": true, "imports": [ "resources/assets/js/app.js", - "_ImgUpload.7f60f3a4.js" + "_ImgUpload.cbadd034.js" ], "css": [ "js/build/index.4dae4044.css" diff --git a/resources/mobile b/resources/mobile index 501ed3e6a..a273a98b8 160000 --- a/resources/mobile +++ b/resources/mobile @@ -1 +1 @@ -Subproject commit 501ed3e6a65853cf8cbce29cf5d8eb468aab30f2 +Subproject commit a273a98b8e60b810c1754cb60e06c0a8096c80c7