diff --git a/public/js/build/404.d75237fd.js b/public/js/build/404.0a283a35.js similarity index 87% rename from public/js/build/404.d75237fd.js rename to public/js/build/404.0a283a35.js index 0e2efd9ef..654fb8451 100644 --- a/public/js/build/404.d75237fd.js +++ b/public/js/build/404.0a283a35.js @@ -1 +1 @@ -import{n}from"./app.bbfc75c6.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.e3f1493b.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.4123affa.js b/public/js/build/AceEditor.8c9c324a.js similarity index 98% rename from public/js/build/AceEditor.4123affa.js rename to public/js/build/AceEditor.8c9c324a.js index 5e36b69ff..5789b2b01 100644 --- a/public/js/build/AceEditor.4123affa.js +++ b/public/js/build/AceEditor.8c9c324a.js @@ -1 +1 @@ -import{m as h,n as l}from"./app.bbfc75c6.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.b3d34c35.js";import{n as d}from"./app.e3f1493b.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.e6043c59.js b/public/js/build/DialogWrapper.b6aa6d8f.js similarity index 99% rename from public/js/build/DialogWrapper.e6043c59.js rename to public/js/build/DialogWrapper.b6aa6d8f.js index 0594b6b7b..cfa518189 100644 --- a/public/js/build/DialogWrapper.e6043c59.js +++ b/public/js/build/DialogWrapper.b6aa6d8f.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.bbfc75c6.js";import{l as za}from"./longpress.43ca7fd9.js";import{D as Wu}from"./index.b7aa8f65.js";import{U as Ol}from"./UserSelect.ca3d6360.js";import{I as Ku}from"./ImgUpload.aacfc305.js";import Qu from"./details.adc914fb.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.e3f1493b.js";import{l as za}from"./longpress.43ca7fd9.js";import{D as Wu}from"./index.c9eac1a5.js";import{U as Ol}from"./UserSelect.b3d34c35.js";import{I as Ku}from"./ImgUpload.4c24aaeb.js";import Qu from"./details.38f922d1.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("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.a656ec50.js"),["js/build/index.a656ec50.js","js/build/index.4dae4044.css","js/build/app.bbfc75c6.js","js/build/app.102e9217.css","js/build/ImgUpload.aacfc305.js"]),$=()=>n(()=>import("./TEditor.20357acb.js"),["js/build/TEditor.20357acb.js","js/build/app.bbfc75c6.js","js/build/app.102e9217.css","js/build/ImgUpload.aacfc305.js"]),w=()=>n(()=>import("./AceEditor.4123affa.js"),["js/build/AceEditor.4123affa.js","js/build/app.bbfc75c6.js","js/build/app.102e9217.css"]),g=()=>n(()=>import("./OnlyOffice.05bc46f7.js"),["js/build/OnlyOffice.05bc46f7.js","js/build/OnlyOffice.a5dfbde1.css","js/build/app.bbfc75c6.js","js/build/app.102e9217.css","js/build/IFrame.8863e73d.js"]),D=()=>n(()=>import("./Drawio.f5dd5f99.js"),["js/build/Drawio.f5dd5f99.js","js/build/Drawio.fc5c6326.css","js/build/app.bbfc75c6.js","js/build/app.102e9217.css","js/build/IFrame.8863e73d.js"]),x=()=>n(()=>import("./Minder.ce139e72.js"),["js/build/Minder.ce139e72.js","js/build/Minder.f2273bdb.css","js/build/IFrame.8863e73d.js","js/build/app.bbfc75c6.js","js/build/app.102e9217.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.e3f1493b.js";import{I as d}from"./IFrame.aa98331c.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.b29a51fb.js"),["js/build/index.b29a51fb.js","js/build/index.4dae4044.css","js/build/app.e3f1493b.js","js/build/app.e13ceff5.css","js/build/ImgUpload.4c24aaeb.js"]),$=()=>n(()=>import("./TEditor.7d9557c3.js"),["js/build/TEditor.7d9557c3.js","js/build/app.e3f1493b.js","js/build/app.e13ceff5.css","js/build/ImgUpload.4c24aaeb.js"]),w=()=>n(()=>import("./AceEditor.8c9c324a.js"),["js/build/AceEditor.8c9c324a.js","js/build/app.e3f1493b.js","js/build/app.e13ceff5.css"]),g=()=>n(()=>import("./OnlyOffice.01245f70.js"),["js/build/OnlyOffice.01245f70.js","js/build/OnlyOffice.a5dfbde1.css","js/build/app.e3f1493b.js","js/build/app.e13ceff5.css","js/build/IFrame.aa98331c.js"]),D=()=>n(()=>import("./Drawio.f3d6bacc.js"),["js/build/Drawio.f3d6bacc.js","js/build/Drawio.fc5c6326.css","js/build/app.e3f1493b.js","js/build/app.e13ceff5.css","js/build/IFrame.aa98331c.js"]),x=()=>n(()=>import("./Minder.49847cd2.js"),["js/build/Minder.49847cd2.js","js/build/Minder.f2273bdb.css","js/build/IFrame.aa98331c.js","js/build/app.e3f1493b.js","js/build/app.e13ceff5.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.9d34fca2.js b/public/js/build/FilePreview.7be5c3ab.js similarity index 76% rename from public/js/build/FilePreview.9d34fca2.js rename to public/js/build/FilePreview.7be5c3ab.js index 7139d7bb2..a4365486b 100644 --- a/public/js/build/FilePreview.9d34fca2.js +++ b/public/js/build/FilePreview.7be5c3ab.js @@ -1 +1 @@ -import{n as r,_ as n}from"./app.bbfc75c6.js";import{I as a}from"./IFrame.8863e73d.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.a3ccb2f0.js"),["js/build/preview.a3ccb2f0.js","js/build/app.bbfc75c6.js","js/build/app.102e9217.css"]),c=()=>n(()=>import("./TEditor.20357acb.js"),["js/build/TEditor.20357acb.js","js/build/app.bbfc75c6.js","js/build/app.102e9217.css","js/build/ImgUpload.aacfc305.js"]),_=()=>n(()=>import("./AceEditor.4123affa.js"),["js/build/AceEditor.4123affa.js","js/build/app.bbfc75c6.js","js/build/app.102e9217.css"]),p=()=>n(()=>import("./OnlyOffice.05bc46f7.js"),["js/build/OnlyOffice.05bc46f7.js","js/build/OnlyOffice.a5dfbde1.css","js/build/app.bbfc75c6.js","js/build/app.102e9217.css","js/build/IFrame.8863e73d.js"]),u=()=>n(()=>import("./Drawio.f5dd5f99.js"),["js/build/Drawio.f5dd5f99.js","js/build/Drawio.fc5c6326.css","js/build/app.bbfc75c6.js","js/build/app.102e9217.css","js/build/IFrame.8863e73d.js"]),h=()=>n(()=>import("./Minder.ce139e72.js"),["js/build/Minder.ce139e72.js","js/build/Minder.f2273bdb.css","js/build/IFrame.8863e73d.js","js/build/app.bbfc75c6.js","js/build/app.102e9217.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.e3f1493b.js";import{I as a}from"./IFrame.aa98331c.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.2bdd8711.js"),["js/build/preview.2bdd8711.js","js/build/app.e3f1493b.js","js/build/app.e13ceff5.css"]),c=()=>n(()=>import("./TEditor.7d9557c3.js"),["js/build/TEditor.7d9557c3.js","js/build/app.e3f1493b.js","js/build/app.e13ceff5.css","js/build/ImgUpload.4c24aaeb.js"]),_=()=>n(()=>import("./AceEditor.8c9c324a.js"),["js/build/AceEditor.8c9c324a.js","js/build/app.e3f1493b.js","js/build/app.e13ceff5.css"]),p=()=>n(()=>import("./OnlyOffice.01245f70.js"),["js/build/OnlyOffice.01245f70.js","js/build/OnlyOffice.a5dfbde1.css","js/build/app.e3f1493b.js","js/build/app.e13ceff5.css","js/build/IFrame.aa98331c.js"]),u=()=>n(()=>import("./Drawio.f3d6bacc.js"),["js/build/Drawio.f3d6bacc.js","js/build/Drawio.fc5c6326.css","js/build/app.e3f1493b.js","js/build/app.e13ceff5.css","js/build/IFrame.aa98331c.js"]),h=()=>n(()=>import("./Minder.49847cd2.js"),["js/build/Minder.49847cd2.js","js/build/Minder.f2273bdb.css","js/build/IFrame.aa98331c.js","js/build/app.e3f1493b.js","js/build/app.e13ceff5.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.8863e73d.js b/public/js/build/IFrame.aa98331c.js similarity index 94% rename from public/js/build/IFrame.8863e73d.js rename to public/js/build/IFrame.aa98331c.js index 2276b4857..742a91e0d 100644 --- a/public/js/build/IFrame.8863e73d.js +++ b/public/js/build/IFrame.aa98331c.js @@ -1 +1 @@ -import{n}from"./app.bbfc75c6.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.e3f1493b.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.aacfc305.js b/public/js/build/ImgUpload.4c24aaeb.js similarity index 99% rename from public/js/build/ImgUpload.aacfc305.js rename to public/js/build/ImgUpload.4c24aaeb.js index afc54ff50..3bfde9a55 100644 --- a/public/js/build/ImgUpload.aacfc305.js +++ b/public/js/build/ImgUpload.4c24aaeb.js @@ -1 +1 @@ -import{n as o}from"./app.bbfc75c6.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.e3f1493b.js";import{I as c}from"./IFrame.aa98331c.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.53341ce9.js b/public/js/build/ProjectLog.a053ff29.js similarity index 98% rename from public/js/build/ProjectLog.53341ce9.js rename to public/js/build/ProjectLog.a053ff29.js index 538d4fa0c..79fda5446 100644 --- a/public/js/build/ProjectLog.53341ce9.js +++ b/public/js/build/ProjectLog.a053ff29.js @@ -1 +1 @@ -import{m as p,n as c}from"./app.bbfc75c6.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.e3f1493b.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.4d6ab620.js b/public/js/build/ReportDetail.d892d032.js similarity index 97% rename from public/js/build/ReportDetail.4d6ab620.js rename to public/js/build/ReportDetail.d892d032.js index 940fbbec2..affe481dd 100644 --- a/public/js/build/ReportDetail.4d6ab620.js +++ b/public/js/build/ReportDetail.d892d032.js @@ -1 +1 @@ -import{m as i,n as l}from"./app.bbfc75c6.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.e3f1493b.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.447abf1f.js b/public/js/build/ReportEdit.9b22dd67.js similarity index 94% rename from public/js/build/ReportEdit.447abf1f.js rename to public/js/build/ReportEdit.9b22dd67.js index 9144cc543..53526fccb 100644 --- a/public/js/build/ReportEdit.447abf1f.js +++ b/public/js/build/ReportEdit.9b22dd67.js @@ -1 +1 @@ -import{n as s,_ as o}from"./app.bbfc75c6.js";import{U as l}from"./UserSelect.ca3d6360.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.20357acb.js"),["js/build/TEditor.20357acb.js","js/build/app.bbfc75c6.js","js/build/app.102e9217.css","js/build/ImgUpload.aacfc305.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.e3f1493b.js";import{U as l}from"./UserSelect.b3d34c35.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.7d9557c3.js"),["js/build/TEditor.7d9557c3.js","js/build/app.e3f1493b.js","js/build/app.e13ceff5.css","js/build/ImgUpload.4c24aaeb.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.20357acb.js b/public/js/build/TEditor.7d9557c3.js similarity index 99% rename from public/js/build/TEditor.20357acb.js rename to public/js/build/TEditor.7d9557c3.js index 2bf6ee83b..693f0c803 100644 --- a/public/js/build/TEditor.20357acb.js +++ b/public/js/build/TEditor.7d9557c3.js @@ -1,4 +1,4 @@ -import{e as PC,m as a2,a as IC,n as i2}from"./app.bbfc75c6.js";import{I as o2}from"./ImgUpload.aacfc305.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