58 lines
3.5 MiB
58 lines
3.5 MiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7f5fe27f","chunk-081051f1","chunk-7b8f5184","chunk-03525c12","chunk-46311b47","chunk-145dbcf6","chunk-0b880fbd","chunk-3b1a9b2d","chunk-3199e852","chunk-d36f658c","chunk-1b51eeae","chunk-232544d6","chunk-2d0f012d"],{"0034":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{staticClass:"dialog-div",attrs:{title:"选择渠道",visible:e.Pvisible,"close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.Pvisible=t}}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:12,xs:24}},[i("div",{staticClass:"head-container"},[i("el-input",{attrs:{clearable:"","prefix-icon":"el-icon-search",placeholder:"请输入渠道名称,回车搜索"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnterSearch(t)}},model:{value:e.query.scenario,callback:function(t){e.$set(e.query,"scenario",t)},expression:"query.scenario"}})],1),i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.searchLoading,expression:"searchLoading"}],staticClass:"customer"},[i("empty-default-icon",{ref:"codeListRef",staticStyle:{height:"450px",overflow:"auto"},attrs:{length:e.codeList.length}},[i("el-checkbox",{staticClass:"mb10",attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选当前页")]),e._l(e.codeList,(function(t){return i("div",{key:t.id,staticClass:"customer-choose inoneline"},[i("el-checkbox",{on:{change:function(i){return e.selectChange(t)}},model:{value:t.checked,callback:function(i){e.$set(t,"checked",i)},expression:"item.checked"}},[i("div",{staticClass:"customer-name inoneline"},[e._v(" "+e._s(t.scenario)+" ")])])],1)}))],2)],1),i("NumPagination",{staticClass:"mt10",attrs:{total:e.total,page:e.query.pageNum,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:e.getList}})],1),i("el-col",{staticClass:"user-list",attrs:{span:12,xs:24}},[i("el-row",{attrs:{gutter:10}},[i("div",{staticClass:"user-list-top mb5"},[i("span",{staticStyle:{"line-height":"32px"}},[e._v("选择渠道列表 ")]),i("el-button",{on:{click:e.resetChecked}},[e._v("一键清空")])],1)]),i("empty-default-icon",{attrs:{length:e.selectCodeList.length}}),i("div",{staticClass:"selected-list"},e._l(e.selectCodeList,(function(t,a){return i("el-row",{key:a,staticClass:"select-code-list-li"},[i("span",{staticClass:"inoneline"},[e._v(e._s(t.scenario))]),i("i",{staticClass:"el-icon-minus fr cp",attrs:{title:"取消选择"},on:{click:function(i){return e.handleRemove(t)}}})])})),1)],1)],1),i("div",{attrs:{slot:"footer"},slot:"footer"},[e._t("footer",[i("el-button",{on:{click:function(t){e.Pvisible=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])])],2)],1)},n=[],r=i("5530"),s=i("2909"),o=(i("99af"),i("7db0"),i("c740"),i("d81d"),i("d3b7"),i("e77d")),l=i("62db"),c=i("c04c"),u=i.n(c),d=i("dd70"),p=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-pagination",e._b({attrs:{layout:e.layout,"page-sizes":e.pageSizes,"page-size":e.pageSize,total:e.total},on:{"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange}},"el-pagination",e.$attrs,!1),[i("span",{staticClass:"el-pagination__jump ml5"},[i("i",{class:[e.currentPage>1?"pointer":"not-allowed","mr10 el-icon-arrow-left"],on:{click:e.previousPage}}),e.disabledInput?i("div",{staticClass:"current-page"},[e._v(e._s(e.currentPage))]):i("el-input",{staticClass:"el-pagination__editor is-in-pagination",attrs:{value:null!==e.currentPage?e.currentPage:1,type:"number",min:1,max:e.pageCount},on:{input:e.handleInput,change:e.handleChange}}),i("span",{staticClass:"no-select"},[i("span",{staticClass:"division"},[e._v("/")]),i("span",{staticClass:"page-count"},[e._v(" "+e._s(e.pageCount)+" ")])]),i("i",{class:[e.currentPage<e.pageCount?"pointer":"not-allowed","el-icon-arrow-right"],on:{click:e.nextPage}})],1)])},f=[],A=(i("a9e3"),{name:"NumPagination",props:{total:{required:!0,type:Number},page:{type:[Number,String],default:d["M"]},limit:{type:Number,default:d["Mc"]},pageSizes:{type:Array,default:function(){return[d["Ic"],d["Mc"],d["Lc"],d["Jc"]]}},layout:{type:String,default:"sizes,slot"},disabledInput:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageCount:function(){return"number"===typeof this.total?Math.max(1,Math.ceil(this.total/this.pageSize)):"number"===typeof this.pageCount?Math.max(1,this.pageCount):null},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{previousPage:function(){this.currentPage>1&&(this.currentPage--,this.handleCurrentChange())},handleSizeChange:function(){this.$emit("update:page",d["M"]),this.$emit("pagination")},handleCurrentChange:function(){this.$emit("pagination")},nextPage:function(){this.currentPage<this.pageCount&&(this.currentPage++,this.handleCurrentChange())},getValidCurrentPage:function(e){e=parseInt(e,10);var t,i="number"===typeof this.pageCount;return i?e<1?t=1:e>this.pageCount&&(t=this.pageCount):(isNaN(e)||e<1)&&(t=1),(void 0===t&&isNaN(e)||0===t)&&(t=1),void 0===t?e:t},handleChange:function(e){this.currentPage=this.getValidCurrentPage(e),this.handleCurrentChange()},handleInput:function(e){this.currentPage=e}}}),h=A,m=(i("bf0c"),i("2877")),g=Object(m["a"])(h,p,f,!1,null,"42b1ec49",null),v=g.exports,b=i("2ef0"),y={name:"SelectCode",components:{EmptyDefaultIcon:o["a"],NumPagination:v},props:{visible:{type:Boolean,default:!1},confirmSelectedCodeList:{type:Array,default:function(){return[]}}},data:function(){return{codeList:[],selectCodeList:[],query:{pageNum:1,pageSize:d["Mc"],scenario:""},total:0,searchLoading:!1,checkAll:!1,isIndeterminate:!1}},computed:{Pvisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}}},watch:{"query.scenario":function(e){e||this.searchList()},Pvisible:function(e){if(e){var t=Object(s["a"])(this.confirmSelectedCodeList);this.selectCodeList=t,this.searchList()}}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.searchLoading=!0,Object(l["f"])(this.query).then((function(t){e.total=t.total,e.codeList=e.initCheckFlag(t.rows)})).catch((function(){})).finally((function(){e.searchLoading=!1,e.dealCheckAllStatus(),e.Pvisible&&e.$nextTick((function(){e.$refs["codeListRef"].$el.scrollTop=0}))}))},dealCheckAllStatus:function(){var e=this;this.checkAll=this.codeList.every((function(t){return e.selectCodeList.some((function(e){return e.id===t.id}))}))&&this.selectCodeList.length>0,this.isIndeterminate=this.selectCodeList.some((function(t){return e.codeList.some((function(e){return e.id===t.id}))}))&&!this.checkAll},initCheckFlag:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selectCodeList;return e.map((function(e){var i=t.find((function(t){return t.id===e.id}));return e.checked=!!i,e}))},selectChange:function(e){var t=this.selectCodeList.findIndex((function(t){return t.id===e.id}));-1===t?(this.selectCodeList.push(e),this.dealCheckAllStatus()):this.handleRemove(e)},handleRemove:function(e){this.codeList=this.codeList.map((function(t){return Object(r["a"])(Object(r["a"])({},t),t.id===e.id&&{checked:!1})})),u()(this.selectCodeList,(function(t){return t.id===e.id})),this.dealCheckAllStatus()},searchList:function(){this.query.pageNum=1,this.getList()},handleEnterSearch:function(){this.query.scenario&&this.searchList()},submit:function(){this.$emit("success",Object(s["a"])(this.selectCodeList)),this.Pvisible=!1},resetChecked:function(){this.selectCodeList=[],this.checkAll=!1,this.isIndeterminate=!1,this.codeList=this.codeList.map((function(e){return Object(r["a"])(Object(r["a"])({},e),{},{checked:!1})}))},handleCheckAllChange:function(e){this.codeList=this.codeList.map((function(t){return t.checked=e,t})),e?(this.isIndeterminate=!1,this.selectCodeList=[].concat(Object(s["a"])(this.selectCodeList),Object(s["a"])(this.codeList))):this.selectCodeList=Object(b["differenceWith"])(this.selectCodeList,this.codeList,(function(e,t){return e.id===t.id}))}}},_=y,w=(i("6be3"),Object(m["a"])(_,a,n,!1,null,"04153706",null));t["default"]=w.exports},"005d":function(e,t,i){"use strict";i("92eb")},"0062":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[i("el-form-item",{attrs:{label:"任务名称",prop:"jobName"}},[i("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入任务名称",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.jobName,callback:function(t){e.$set(e.queryParams,"jobName",t)},expression:"queryParams.jobName"}})],1),i("el-form-item",{attrs:{label:"任务组名",prop:"jobGroup"}},[i("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"请任务组名",clearable:"",size:"small"},model:{value:e.queryParams.jobGroup,callback:function(t){e.$set(e.queryParams,"jobGroup",t)},expression:"queryParams.jobGroup"}},e._l(e.jobGroupOptions,(function(e){return i("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),i("el-form-item",{attrs:{label:"执行状态",prop:"status"}},[i("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"请选择执行状态",clearable:"",size:"small"},model:{value:e.queryParams.status,callback:function(t){e.$set(e.queryParams,"status",t)},expression:"queryParams.status"}},e._l(e.statusOptions,(function(e){return i("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),i("el-form-item",{attrs:{label:"执行时间"}},[i("el-date-picker",{staticStyle:{width:"240px"},attrs:{size:"small","value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),i("el-form-item",[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.handleQuery()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1)],1),i("el-row",{staticClass:"mb8",attrs:{gutter:10}},[i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:remove"],expression:"['monitor:job:remove']"}],attrs:{type:"danger",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:remove"],expression:"['monitor:job:remove']"}],attrs:{type:"danger",icon:"el-icon-delete",size:"mini"},on:{click:e.handleClean}},[e._v("清空")])],1),i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:export"],expression:"['monitor:job:export']"}],attrs:{type:"warning",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1),i("right-toolbar",{attrs:{"show-search":e.showSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:e.getList}})],1),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.jobLogList},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),i("el-table-column",{attrs:{label:"日志编号",width:"80",align:"center",prop:"jobLogId"}}),i("el-table-column",{attrs:{label:"任务名称",align:"center",prop:"jobName","show-overflow-tooltip":!0}}),i("el-table-column",{attrs:{label:"任务组名",align:"center",prop:"jobGroup",formatter:e.jobGroupFormat,"show-overflow-tooltip":!0}}),i("el-table-column",{attrs:{label:"调用目标字符串",align:"center",prop:"invokeTarget","show-overflow-tooltip":!0}}),i("el-table-column",{attrs:{label:"日志信息",align:"center",prop:"jobMessage","show-overflow-tooltip":!0}}),i("el-table-column",{attrs:{label:"执行状态",align:"center",prop:"status",formatter:e.statusFormat}}),i("el-table-column",{attrs:{label:"执行时间",align:"center",prop:"createTime",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e.parseTime(t.row.createTime)))])]}}])}),i("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(i){return e.handleView(t.row)}}},[i("span",{staticStyle:{display:"flex","align-items":"center"}},[i("i",{staticClass:"iconfont icon-details",staticStyle:{"font-size":"14px","padding-right":"3px"}}),e._v("详情 ")])])]}}])})],1),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,disabled:e.loading,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),i("el-dialog",{attrs:{title:"调度日志详情",visible:e.open,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[i("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px",size:"mini"}},[i("el-row",[i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"日志序号:"}},[e._v(e._s(e.form.jobLogId))]),i("el-form-item",{attrs:{label:"任务名称:"}},[e._v(e._s(e.form.jobName))])],1),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"任务分组:"}},[e._v(e._s(e.form.jobGroup))]),i("el-form-item",{attrs:{label:"执行时间:"}},[e._v(e._s(e.form.createTime))])],1),i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"调用方法:"}},[e._v(e._s(e.form.invokeTarget))])],1),i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"日志信息:"}},[e._v(e._s(e.form.jobMessage))])],1),i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"执行状态:"}},[0==e.form.status?i("div",[e._v("正常")]):1==e.form.status?i("div",[e._v("失败")]):e._e()])],1),i("el-col",{attrs:{span:24}},[1==e.form.status?i("el-form-item",{attrs:{label:"异常信息:"}},[e._v(e._s(e.form.exceptionInfo))]):e._e()],1)],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.open=!1}}},[e._v("关 闭")])],1)],1)],1)},n=[],r=(i("d81d"),i("d3b7"),i("b775"));function s(e){return Object(r["a"])({url:"/monitor/jobLog/list",method:"get",params:e})}function o(e){return Object(r["a"])({url:"/monitor/jobLog/"+e,method:"delete"})}function l(){return Object(r["a"])({url:"/monitor/jobLog/clean",method:"delete"})}function c(e){return Object(r["a"])({url:"/monitor/jobLog/export",method:"get",params:e})}var u=i("dd70"),d=i("e2e0"),p={name:"JobLog",mixins:[d["a"]],data:function(){return{loading:!0,ids:[],multiple:!0,showSearch:!0,total:0,jobLogList:[],open:!1,dateRange:[],form:{},statusOptions:[],jobGroupOptions:[],queryParams:{pageNum:1,pageSize:u["Ic"],jobName:void 0,jobGroup:void 0,status:void 0}}},created:function(){var e=this;this.getList(),this.getDicts("sys_job_status").then((function(t){e.statusOptions=t.data})),this.getDicts("sys_job_group").then((function(t){e.jobGroupOptions=t.data}))},methods:{getList:function(){var e=this;this.loading=!0,s(this.addDateRange(this.queryParams,this.dateRange)).then((function(t){e.jobLogList=t.rows,e.total=t.total})).finally((function(){e.loading=!1,e.modifyButtonStatus()}))},statusFormat:function(e,t){return this.selectDictLabel(this.statusOptions,e.status)},jobGroupFormat:function(e,t){return this.selectDictLabel(this.jobGroupOptions,e.jobGroup)},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.jobLogId})),this.multiple=!e.length},handleView:function(e){this.open=!0,this.form=e},handleDelete:function(e){var t=this,i=this.ids;this.confirmModal({msg:'是否确认删除调度日志编号为"'+i+'"的数据项?'},(function(){return o(i).then((function(){t.getList(),t.msgSuccess("删除成功")})).catch((function(){}))}))},handleClean:function(){var e=this;this.confirmModal({msg:"是否确认清空所有调度日志数据项?"},(function(){return l().then((function(){e.getList(),e.msgSuccess("清空成功")})).catch((function(){}))}))},handleExport:function(){var e=this,t=this.queryParams;this.confirmModal({msg:"是否确认导出所有调度日志数据项?"},(function(){return c(t).then((function(t){e.download(t.msg)})).catch((function(){}))}))}}},f=p,A=i("2877"),h=Object(A["a"])(f,a,n,!1,null,null,null);t["default"]=h.exports},"014c":function(e,t,i){},"01d8":function(e,t,i){},"0208":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"voice-item"},[e.voicePlayObj[e.item.msgId]&&e.voicePlayObj[e.item.msgId].isPlaying?i("img",{attrs:{src:e.dealVoiceImg(!0)},on:{click:function(t){return e.pauseVoice(e.item)}}}):i("img",{attrs:{src:e.dealVoiceImg(!1)},on:{click:function(t){return e.playVocie(e.item)}}})])},n=[],r=i("5530"),s=(i("fda2"),i("451f"),i("ae4c")),o=i.n(s),l={props:{item:{type:Object,default:function(){}}},data:function(){return{voicePlayObj:{}}},mounted:function(){},methods:{dealVoiceImg:function(e){return i(e?"32a8":"3be5")},playVocie:function(e){this.urlToBlob(e.voice.attachment,e)},pauseVoice:function(e){var t=e.msgId,i=this.voicePlayObj[t].amr;i.pause(),this.changeMsgVoiceStatus(t,!1)},changeMsgVoiceStatus:function(e,t){this.voicePlayObj[e].isPlaying=t,this.voicePlayObj=Object(r["a"])({},this.voicePlayObj)},urlToBlob:function(e,t){var i=new XMLHttpRequest,a=this;i.open("get",e,!0),i.responseType="blob",i.onload=function(){var e=this.response,i=new File([e],"语音.amr",{type:"audio/amr"});a.playOrResumeAudio(i,t)},i.send()},playOrResumeAudio:function(e,t){var i=this,a=t.msgId;if(this.voicePlayObj[a]){var n=i.voicePlayObj[a].amr;n.playOrResume(),i.changeMsgVoiceStatus(a,!0),n.onEnded((function(){i.changeMsgVoiceStatus(a,!1)}))}else{var r=new o.a;try{r.initWithBlob(e).then((function(){i.voicePlayObj[a]={},i.voicePlayObj[a].amr=r,r.play(),i.changeMsgVoiceStatus(a,!0),r.onEnded((function(){i.changeMsgVoiceStatus(a,!1)}))}))}catch(s){}}}}},c=l,u=i("2877"),d=Object(u["a"])(c,a,n,!1,null,"a2630446",null);t["default"]=d.exports},"02b6":function(e,t,i){"use strict";i("c85c")},"02c7":function(e,t,i){e.exports=i.p+"static/img/客户群移动2.f57c16e7.png"},"02f2":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[i("el-form-item",{attrs:{prop:"title"}},[i("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入系统模块",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.title,callback:function(t){e.$set(e.queryParams,"title",t)},expression:"queryParams.title"}})],1),i("el-form-item",{attrs:{prop:"operName"}},[i("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入操作人员",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.operName,callback:function(t){e.$set(e.queryParams,"operName",t)},expression:"queryParams.operName"}})],1),i("el-form-item",{attrs:{prop:"businessType"}},[i("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"请选择操作类型",clearable:"",size:"small"},model:{value:e.queryParams.businessType,callback:function(t){e.$set(e.queryParams,"businessType",t)},expression:"queryParams.businessType"}},e._l(e.typeOptions,(function(e){return i("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),i("el-form-item",[i("el-date-picker",{staticStyle:{width:"240px"},attrs:{size:"small","value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),i("el-form-item",[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.handleQuery()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"operate-btn",fn:function(){return[i("el-row",{staticClass:"mb8",attrs:{gutter:10}},[i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:operlog:remove"],expression:"['monitor:operlog:remove']"}],attrs:{size:"mini"},on:{click:e.handleDelete}},[e._v("批量删除")])],1),i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:operlog:remove"],expression:"['monitor:operlog:remove']"}],attrs:{size:"mini"},on:{click:e.handleClean}},[e._v("一键清空")])],1)],1)]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),i("el-table-column",{attrs:{label:"日志编号",align:"center",prop:"operId"}}),i("el-table-column",{attrs:{label:"系统模块",align:"center",prop:"title"}}),i("el-table-column",{attrs:{label:"操作类型",align:"center",prop:"businessType",formatter:e.typeFormat}}),i("el-table-column",{attrs:{label:"请求方式",align:"center",prop:"requestMethod"}}),i("el-table-column",{attrs:{label:"操作人员",align:"center",prop:"operName"}}),i("el-table-column",{attrs:{label:"主机",align:"center",prop:"operIp",width:"130","show-overflow-tooltip":!0}}),i("el-table-column",{attrs:{label:"操作地点",align:"center",prop:"operLocation","show-overflow-tooltip":!0}}),i("el-table-column",{attrs:{label:"操作状态",align:"center",prop:"status",formatter:e.statusFormat}}),i("el-table-column",{attrs:{label:"操作日期",align:"center",prop:"operTime",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e.parseTime(t.row.operTime)))])]}}])}),i("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:operlog:query"],expression:"['monitor:operlog:query']"}],attrs:{size:"mini",type:"text"},on:{click:function(i){return e.handleView(t.row,t.index)}}},[e._v(" 详情 ")])]}}])})],1),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:1*e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize,"select-data-len":e.ids.length,disabled:e.loading},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}})]},proxy:!0}])}),i("el-dialog",{attrs:{title:"操作日志详情",visible:e.open,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[i("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px",size:"mini"}},[i("el-row",[i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"操作模块:"}},[e._v(e._s(e.form.title)+" / "+e._s(e.typeFormat(e.form)))]),i("el-form-item",{attrs:{label:"登录信息:"}},[e._v(e._s(e.form.operName)+" / "+e._s(e.form.operIp)+" / "+e._s(e.form.operLocation))])],1),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"请求地址:"}},[e._v(e._s(e.form.operUrl))]),i("el-form-item",{attrs:{label:"请求方式:"}},[e._v(e._s(e.form.requestMethod))])],1),i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"操作方法:"}},[e._v(e._s(e.form.method))])],1),i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"请求参数:"}},[e._v(e._s(e.form.operParam))])],1),i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"返回参数:"}},[e._v(e._s(e.form.jsonResult))])],1),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"操作状态:"}},[0===e.form.status?i("div",[e._v("正常")]):1===e.form.status?i("div",[e._v("失败")]):e._e()])],1),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"操作时间:"}},[e._v(e._s(e.parseTime(e.form.operTime)))])],1),i("el-col",{attrs:{span:24}},[1===e.form.status?i("el-form-item",{attrs:{label:"异常信息:"}},[e._v(e._s(e.form.errorMsg))]):e._e()],1)],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.open=!1}}},[e._v("关 闭")])],1)],1)],1)},n=[],r=(i("d81d"),i("d3b7"),i("b775"));function s(e){return Object(r["a"])({url:"/monitor/operlog/list",method:"get",params:e})}function o(e){return Object(r["a"])({url:"/monitor/operlog/"+e,method:"delete"})}function l(){return Object(r["a"])({url:"/monitor/operlog/clean",method:"delete"})}function c(e){return Object(r["a"])({url:"/monitor/operlog/export",method:"get",params:e})}var u=i("dd70"),d=i("b66d"),p=i("e2e0"),f={name:"Operlog",components:{RightContainer:d["a"]},mixins:[p["a"]],data:function(){return{loading:!0,ids:[],multiple:!0,showSearch:!0,total:0,list:[],open:!1,typeOptions:[],statusOptions:[],dateRange:[],form:{},queryParams:{pageNum:1,pageSize:u["Ic"],title:void 0,operName:void 0,businessType:void 0,status:void 0}}},created:function(){var e=this;this.getList(),this.getDicts("sys_oper_type").then((function(t){e.typeOptions=t.data})),this.getDicts("sys_common_status").then((function(t){e.statusOptions=t.data}))},methods:{getList:function(){var e=this;this.loading=!0,s(this.addDateRange(this.queryParams,this.dateRange)).then((function(t){e.list=t.rows,e.total=t.total,e.loading=!1})).finally((function(){e.modifyButtonStatus()}))},statusFormat:function(e,t){return this.selectDictLabel(this.statusOptions,e.status)},typeFormat:function(e,t){return this.selectDictLabel(this.typeOptions,e.businessType)},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.operId})),this.multiple=!e.length},handleView:function(e){this.open=!0,this.form=e},handleDelete:function(e){var t=this;if(!this.ids.length)return this.msgWarn("请至少选择一条日志"),!1;var i=e.operId||this.ids;this.confirmModal({msg:'是否确认删除日志编号为"'+i+'"的数据项?'},(function(){return o(i).then((function(){t.getList(),t.msgSuccess("删除成功")})).catch((function(){}))}))},handleClean:function(){var e=this;this.confirmModal({msg:"是否确认清空所有操作日志数据项?"},(function(){return l().then((function(){e.getList(),e.msgSuccess("清空成功")})).catch((function(){}))}))},handleExport:function(){var e=this,t=this.queryParams;this.confirmModal({msg:"是否确认导出所有操作日志数据项?"},(function(){return c(t).then((function(t){e.download(t.msg)})).catch((function(){}))}))}}},A=f,h=i("2877"),m=Object(h["a"])(A,a,n,!1,null,null,null);t["default"]=m.exports},"0323":function(e,t,i){},"0386":function(e,t,i){},"038c":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"mt10 mb10 page-echart bg-white"},[i("div",{staticClass:"echart"},[i("div",{staticClass:"echart-header"},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"left",clearable:!1},on:{change:e.pickData},model:{value:e.query.dateRange,callback:function(t){e.$set(e.query,"dateRange",t)},expression:"query.dateRange"}}),i("el-select",{staticStyle:{width:"240px","margin-left":"5px"},attrs:{clearable:"",filterable:"",placeholder:"请选择渠道"},model:{value:e.query.channelId,callback:function(t){e.$set(e.query,"channelId",t)},expression:"query.channelId"}},e._l(e.channelList,(function(e){return i("el-option",{key:e.channelId,attrs:{label:e.name,value:e.channelId}})})),1)],1),e._m(0)]),i("div",{staticClass:"table"},[i("span",[e._v("渠道新增客户数排行")]),i("div",{staticClass:"table-body"},[i("empty-default-icon",{attrs:{length:e.channelRangeList.length}}),e._l(e.channelRangeList,(function(t,a){return i("div",{key:a,staticClass:"table-row"},[i("div",{staticClass:"table-row-detail",style:a%2===0?"background-color:rgb(237, 236, 236)":""},[i("div",{staticClass:"table-row-num",style:e.rowIndexStyle(a+1)},[e._v(" "+e._s(a+1)+" ")]),i("div",{staticClass:"table-row-name"},[e._v(e._s(t.name))]),i("div",{staticClass:"table-row-num"},[e._v(e._s(t.newCustomerCnt))])])])}))],2)])])},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"echart-body"},[i("div",{attrs:{id:"fatherbox"}},[i("div",{attrs:{id:"main"}})])])}],r=i("2909"),s=(i("caad"),i("d81d"),i("d3b7"),i("313e")),o=i.n(s),l=i("8107"),c=i("cf45"),u=i("e77d"),d={name:"",components:{EmptyDefaultIcon:u["a"]},props:{channelList:{type:Array,default:function(){return[]}},empleCodeId:{type:String,default:""}},data:function(){return{beginTime:"",endTime:"",channelName:"",charts:null,chartsXData:[],newCustomerCnt:[],lossCustomerCnt:[],query:{channelId:void 0,dateRange:[c["e"],c["d"]]},channelRangeList:[]}},watch:{"query.channelId":function(e){this.getAnalyseCountByTimeRange()}},mounted:function(){this.getAnalyseCountByTimeRange(),this.getRangeByChannel()},methods:{pickData:function(e){this.beginTime=e?e[0]:"",this.endTime=e?e[1]:"",this.getAnalyseCountByTimeRange(),this.getRangeByChannel()},getAnalyseCountByTimeRange:function(){var e=this;Object(l["j"])({empleCodeId:this.empleCodeId,beginTime:this.query.dateRange[0],endTime:this.query.dateRange[1],channelId:this.query.channelId}).then((function(t){var i,a,n;e.chartsXData=null===t||void 0===t||null===(i=t.data)||void 0===i?void 0:i.map((function(e){return e.time})),e.newCustomerCnt=null===t||void 0===t||null===(a=t.data)||void 0===a?void 0:a.map((function(e){return e.newCustomerCnt})),e.lossCustomerCnt=null===t||void 0===t||null===(n=t.data)||void 0===n?void 0:n.map((function(e){return e.lossCustomerCnt})),e.drawLine()}))},getRangeByChannel:function(){var e=this;this.loading=!0,Object(l["k"])({empleCodeId:this.empleCodeId,beginTime:this.query.dateRange[0],endTime:this.query.dateRange[1]}).then((function(t){var i=t.data;e.channelRangeList=Object(r["a"])(i)})).catch((function(){e.channelRangeList=[]})).finally((function(){e.loading=!1}))},drawLine:function(){var e,t=document.getElementById("main");t&&(t.style.width="970px",t.style.height="330px",this.charts=o.a.init(t)),null===(e=this.charts)||void 0===e||e.setOption({color:["#5087EC","#68BBC4"],tooltip:{trigger:"axis"},xAxis:{type:"category",data:this.chartsXData},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1}},legend:{data:["新增客户","流失客户"]},series:[{name:"新增客户",type:"line",data:this.newCustomerCnt,itemStyle:{normal:{lineStyle:{color:"#5087EC"}}}},{name:"流失客户",type:"line",data:this.lossCustomerCnt,itemStyle:{normal:{lineStyle:{color:"#68BBC4"}}}}]})},rowIndexStyle:function(e){var t=[1,2,3],i=[4,5,6];return t.includes(e)?"color:#F59A23":i.includes(e)?"color:#37adff":"color:#666666"}}},p=d,f=(i("a8f7"),i("2877")),A=Object(f["a"])(p,a,n,!1,null,"65620b4f",null);t["default"]=A.exports},"03c1":function(e,t,i){"use strict";i("4468")},"03c4":function(e,t,i){},"0417":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"smkpbox"},[i("div",{staticClass:"kpcg-top"},[i("img",{attrs:{width:"280",height:"280",src:e.imgUrl}}),i("h2",[e._v("签到成功!")])]),i("div",[e._v("图片链接"+e._s(e.imgUrl))]),i("div",{staticClass:"kpcg-text"},[e._v("请扫描上方二维码进行观看直播!")])])},n=[],r={name:"shutDown",data:function(){return{imgUrl:null,qdTemplate:null,iconZ:null,queryParams:{pageNum:1,pageSize:10},form:{},rules:{}}},created:function(){this.getUrl()},methods:{reset:function(){this.form={}},getUrl:function(){this.imgUrl=this.$route.query.zbImgUrl}}},s=r,o=(i("b28d"),i("2877")),l=Object(o["a"])(s,a,n,!1,null,"420e32f2",null);t["default"]=l.exports},"0432":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"preview"},[e.formSetValue.headImageOpenFlag?i("div",{staticClass:"header-img fcc",on:{click:e.changeToFormSetting}},[e.formSetValue.headImageUrl?i("el-image",{staticStyle:{width:"375px",height:"150px"},attrs:{src:e.formSetValue.headImageUrl,fit:"cover"}}):i("svg-icon",{attrs:{"icon-class":"fa-image","class-name":"fa-image"}})],1):e._e(),i("div",{staticClass:"form-name fcc",on:{click:e.changeToFormSetting}},[e._v(" "+e._s(e.formSetValue.formName)+" ")]),e.formSetValue.descriptionFlag?i("div",{staticClass:"form-description",on:{click:e.changeToFormSetting}},[e._v(" "+e._s(e.formSetValue.description)+" ")]):e._e(),i("el-form",{staticStyle:{"min-height":"225px","background-color":"#fff"},attrs:{"label-position":"top","label-width":"80px"}},e._l(e.prewievForm,(function(t,a){return i("div",{key:t.id,class:["form-preview-item",t.id===e.isActiveId?" checked":""],style:e.isImageOrCarousel(t.type)?"margin-top:10px":"padding : 5px 10px",on:{click:function(i){return e.clickComponent(t)}}},[i("el-form-item",{staticStyle:{"pointer-events":"none"}},[e.showTitle(t.type)?i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[t.type===e.ONE_LINE_TEXT_COMPONENT||t.type===e.MANY_LINE_TEXT_COMPONENT?i("span",[i("span",{class:t.required?"required":""},[e._v(e._s(e.formSetValue.showSortFlag?e.getSortIndex(t)+". "+t.title:t.title))]),t.valueLimitType===e.TEXT_LENGTH_TYPE&&t.max?i("span",{staticClass:"label-limit"},[e._v(e._s("(0/"+t.max+")"))]):e._e()]):i("span",{class:t.required?"required":""},[e._v(e._s(e.formSetValue.showSortFlag?e.getSortIndex(t)+". "+t.title:t.title))])]):e._e(),t.type===e.RADIO_COMPONENT?i("div",{staticClass:"radio-component"},[i("el-radio-group",{model:{value:t.radio,callback:function(i){e.$set(t,"radio",i)},expression:"item.radio"}},e._l(t.options,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.id}},[e._v(" "+e._s(t.label)+" ")])})),1)],1):e._e(),t.type===e.CHECKBOX_COMPONENT?i("div",{staticClass:"checkBox-component"},[i("el-checkbox-group",{model:{value:t.answer,callback:function(i){e.$set(t,"answer",i)},expression:"item.answer"}},e._l(t.options,(function(t){return i("el-checkbox",{key:t.id,attrs:{label:t.id}},[e._v(" "+e._s(t.label)+" ")])})),1)],1):e._e(),t.type===e.SELECT_COMPONENT?i("div",[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:t.answer,callback:function(i){e.$set(t,"answer",i)},expression:"item.answer"}},e._l(t.options,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1):e._e(),t.type===e.ONE_LINE_TEXT_COMPONENT?i("div",[i("el-input",{attrs:{placeholder:t.info,resize:"none"}})],1):e._e(),t.type===e.MANY_LINE_TEXT_COMPONENT?i("div",[i("el-input",{attrs:{resize:"none",placeholder:t.info,type:"textarea",rows:5}})],1):e._e(),t.type===e.DATE_TIME_COMPONENT?i("div",[i("el-input",{attrs:{placeholder:t.info}})],1):e._e(),t.type===e.SCORE_COMPONENT?i("div",{staticClass:"score-component"},[i("el-rate"),i("span",[e._v("辅助文字")])],1):e._e(),t.type===e.NPS_COMPONENT?i("div",{staticClass:"nps-component"},[i("div",{staticClass:"nps-score"},e._l(e.NPS_LENGTH,(function(t){return i("span",{key:t},[e._v(" "+e._s(t)+" ")])})),0),i("div",{staticClass:"nps-text"},[i("span",[e._v(e._s(t.leftAuxiliaryText))]),i("span",[e._v(e._s(t.righAuxiliarytText))])])]):e._e(),t.type===e.TEXT_COMPONENT?i("div",{style:"color:"+t.textColor+";line-height:20px;"},[e._v(" "+e._s(t.content)+" ")]):e._e(),t.type===e.IMAGE_COMPONENT?i("div",{staticStyle:{width:"100%",height:"150px"}},[t.imageUrl?i("el-image",{staticStyle:{width:"100%",height:"150px"},attrs:{src:t.imageUrl,fit:"cover"}}):i("div",{staticClass:"header-img fcc"},[i("svg-icon",{attrs:{"icon-class":"fa-image","class-name":"fa-image"}})],1)],1):e._e(),t.type===e.CAROUSEL_COMPONENT?i("div",[t.imageUrlList&&!t.imageUrlList.length?i("div",{staticClass:"header-img fcc"},[i("svg-icon",{attrs:{"icon-class":"fa-image","class-name":"fa-image"}})],1):i("el-carousel",{attrs:{height:"150px","indicator-position":"none"}},e._l(t.imageUrlList,(function(e){return i("el-carousel-item",{key:e.uid},[i("el-image",{staticStyle:{width:"375px",height:"150px"},attrs:{src:e.url,fit:"cover"}})],1)})),1)],1):e._e()]),t.id===e.isActiveId?i("Sort",{staticClass:"sort",attrs:{index:a,"last-index":e.lastIndex},on:{changeSort:function(i){return e.changeSort(t,a,i)}},nativeOn:{click:function(e){e.stopPropagation()}}}):e._e()],1)})),0),i("div",{staticClass:"submit-button"},[i("el-button",{style:"background-color: "+e.formSetValue.submitColor+";border-color:"+e.formSetValue.submitColor,attrs:{type:"primary"},on:{click:e.changeToFormSetting}},[e._v(e._s(e.formSetValue.submitText))])],1)],1)},n=[],r=i("2909"),s=i("5530"),o=(i("99af"),i("4de4"),i("caad"),i("d81d"),i("a434"),i("e9c4"),i("d3b7"),i("2532"),i("dd70")),l=i("81f6"),c=i("c3e2"),u=i("2ef0"),d=i("cf45"),p=[0,1,2,3,4,5,6,7,8,9,10],f={components:{Sort:c["default"]},props:{showEditFormFiled:{type:Boolean,default:!1},previewFormFiled:{type:Array,default:function(){return[]}},activeName:{type:String,default:""}},data:function(){return{RADIO_COMPONENT:o["Rc"],CHECKBOX_COMPONENT:o["p"],SELECT_COMPONENT:o["Zc"],ONE_LINE_TEXT_COMPONENT:o["Fc"],MANY_LINE_TEXT_COMPONENT:o["Sb"],DATE_TIME_COMPONENT:o["H"],SCORE_COMPONENT:o["Wc"],NPS_COMPONENT:o["Bc"],TEXT_COMPONENT:o["nd"],IMAGE_COMPONENT:o["Bb"],CAROUSEL_COMPONENT:o["m"],NPS_LENGTH:p,TEXT_LENGTH_TYPE:o["od"],formSetValue:{},prewievForm:[],isActiveId:void 0,lastIndex:!1}},watch:{showEditFormFiled:function(e){e||l["a"].$emit("formFieldListJson",JSON.stringify(this.prewievForm))},previewFormFiled:function(e){this.prewievForm=e},activeName:function(e){"formSetting"===e&&(this.isActiveId=void 0)}},beforeUpdate:function(){Object(d["k"])(this.$options.data().prewievForm,this.prewievForm)},mounted:function(){var e=this;l["a"].$on("formSettingValue",(function(t){e.formSetValue=t})),l["a"].$on("chooseComponents",(function(t){e.isActiveId=t.id;var i=Object(s["a"])({},t);switch(t.type){case o["Rc"]:break;case o["p"]:i.answer=[];break;case o["Zc"]:i.answer=[];break;case o["Bc"]:i.options=p.map((function(e){return{id:e,label:e}}))}e.lastIndex=!0,e.prewievForm.push(i),l["a"].$emit("allComponents",e.prewievForm.filter((function(e){return[o["Rc"],o["p"],o["Zc"],o["Bc"]].includes(e.type)})))})),l["a"].$on("changeFiledSettingValue",(function(t){e.prewievForm=e.prewievForm.map((function(e){return e.id===t.id?Object(s["a"])(Object(s["a"])({},e),t):e})),l["a"].$emit("allComponents",e.prewievForm.filter((function(t){return t.id!==e.isActiveId&&[o["Rc"],o["p"],o["Zc"],o["Bc"]].includes(t.type)})))}))},beforeDestroy:function(){l["a"].$off("chooseComponents"),l["a"].$off("formSettingValue"),l["a"].$off("changeFiledSettingValue")},methods:{showTitle:function(e){return![o["nd"],o["Bb"],o["m"]].includes(e)},changeToFormSetting:function(){l["a"].$emit("formSetting")},isImageOrCarousel:function(e){return[o["Bb"],o["m"]].includes(e)},clickComponent:function(e){var t=this;l["a"].$emit("clickComponents",e),l["a"].$emit("allComponents",this.prewievForm.filter((function(e){return e.id!==t.isActiveId&&![o["Rc"],o["p"],o["Zc"],o["Bc"]].includes(e.type)}))),this.isActiveId=e.id,this.lastIndex=this.checkLastIndex()},changeSort:function(e,t,i){if("delete"===i)return this.prewievForm=this.prewievForm.filter((function(t){return t.id!==e.id})),void this.changeToFormSetting();this.swapArray(t,i),this.lastIndex=this.checkLastIndex()},checkLastIndex:function(){return this.isActiveId===this.prewievForm[this.prewievForm.length-1].id},swapArray:function(e,t){var i,a="moveBottom"===t,n=this.prewievForm[a?e:e-1],s=this.prewievForm.splice(a?e+1:e,1,n);(i=this.prewievForm).splice.apply(i,[a?e:e-1,1].concat(Object(r["a"])(s)))},getSortIndex:function(e){var t=this.prewievForm.filter((function(e){return![o["nd"],o["Bb"],o["m"]].includes(e.type)}));return Object(u["indexOf"])(t,e)+1}}},A=f,h=(i("fc5a"),i("2877")),m=Object(h["a"])(A,a,n,!1,null,"4fe2ed66",null);t["default"]=m.exports},"0491":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",e._g(e._b({staticClass:"perform-record-modal",attrs:{width:"800px"},on:{close:e.onClose}},"el-dialog",e.$attrs,!1),e.$listeners),[i("div",[i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("div",{staticClass:"top-search"},[i("el-form",{ref:"customerForm",attrs:{inline:"","label-position":"right",model:e.query,"label-width":"80px"}},[i("el-form-item",{attrs:{prop:"chatName"}},[i("el-input",{attrs:{placeholder:"请输入群昵称",clearable:""},model:{value:e.query.chatName,callback:function(t){e.$set(e.query,"chatName",t)},expression:"query.chatName"}})],1),e.isGroupRule?i("el-form-item",{attrs:{prop:"chatOwnerName"}},[i("el-input",{attrs:{placeholder:"请输入群主名称",clearable:""},model:{value:e.query.chatOwnerName,callback:function(t){e.$set(e.query,"chatOwnerName",t)},expression:"query.chatOwnerName"}})],1):e._e(),i("el-form-item",[i("el-select",{attrs:{placeholder:"请选择执行状态",size:"small",clearable:""},model:{value:e.query.finishFlag,callback:function(t){e.$set(e.query,"finishFlag",t)},expression:"query.finishFlag"}},e._l(e.performStatusOption,(function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e.isGroupEmployee?i("el-form-item",{attrs:{prop:"time"}},[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"提醒时间",placement:"top"}},[i("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.remindTime,callback:function(t){e.remindTime=t},expression:"remindTime"}})],1)],1):e._e(),e.isGroupEmployee?i("el-form-item",[i("el-select",{attrs:{placeholder:"请选择任务",size:"small",clearable:""},model:{value:e.query.ruleId,callback:function(t){e.$set(e.query,"ruleId",t)},expression:"query.ruleId"}},e._l(e.ruleList,(function(e,t){return i("el-option",{key:t,attrs:{label:e.ruleName,value:e.ruleId}})})),1)],1):e._e(),i("el-form-item",[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.onSearch()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetForm()}}},[e._v("重置")])],1)],1)],1)]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.recordList,height:"300px"}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.recordList.length}})],1),i("el-table-column",{key:"chatName",attrs:{label:"客户群",align:"center",prop:"chatName",width:"180px"}}),e.isGroupRule?i("el-table-column",{key:"chatCreatorName",attrs:{label:"员工",align:"center",prop:"chatCreatorName"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"al"},[i("div",{staticClass:"cus-owner"},[e._v(e._s(t.row.chatCreatorName))])])]}}],null,!1,3476796156)}):e._e(),e.isGroupEmployee?i("el-table-column",{key:"ruleName",attrs:{label:"任务名称",align:"center",prop:"ruleName"}}):e._e(),i("el-table-column",{attrs:{prop:"status",label:"执行状态",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",{staticClass:"flex",staticStyle:{"align-items":"center"}},[i("div",{class:"mr5 "+(a.isFinish?"dot-green":"dot-orange")}),i("span",[e._v(e._s(a.isFinish?"已执行":"未执行"))])])]}}])}),e.isGroupEmployee?i("el-table-column",{key:"alertTime",attrs:{label:"提醒时间",align:"center",prop:"alertTime"}}):e._e(),i("el-table-column",{key:"finishTime",attrs:{label:"完成时间",align:"center",prop:"finishTime"}})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{disabled:e.loading,total:e.total,page:e.query.pageNum,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(){return e.getDetailList()}}})]},proxy:!0}])})],1)])},n=[],r=i("2909"),s=i("5530"),o=(i("a9e3"),i("d3b7"),i("b66d")),l=i("dd70"),c=i("9815"),u=i("e77d"),d=i("e2e0"),p={name:"",components:{RightContainer:o["a"],EmptyDefaultIcon:u["a"]},mixins:[d["a"]],props:{isGroupRule:{type:Boolean,default:!1},isGroupEmployee:{type:Boolean,default:!1},ruleId:{type:Number,default:null},sopId:{type:String,default:null},userId:{type:String,default:null},type:{type:String,default:"rule"}},data:function(){return{query:{pageNum:1,pageSize:l["Ic"],chatName:"",chatOwnerName:""},loading:!1,recordList:[],remindTime:null,performStatusOption:[{label:"全部",value:-1},{label:"已执行",value:1},{label:"未执行",value:0}],SOP_TYPE:l["ed"],ruleList:[],total:0}},watch:{isGroupEmployee:function(e){e&&!this.ruleList.length&&this.getRulesRecordList()}},created:function(){},mounted:function(){},methods:{onClose:function(){this.$emit("update:visible",!1)},onSearch:function(){this.getDetailList({pageNum:1})},resetForm:function(){this.resetQuery(),this.getDetailList({pageNum:1})},getDetailList:function(e){var t=this,i=this.query.finishFlag,a=Object(s["a"])(Object(s["a"])({sopId:this.sopId,beginTime:this.remindTime&&this.parseTime(this.remindTime[0],"{y}-{m}-{d}"),endTime:this.remindTime&&this.parseTime(this.remindTime[1],"{y}-{m}-{d}")},this.query),{},{finishFlag:-1===i?null:i});switch(this.type){case"rule":a.ruleId=this.ruleId;break;case"employee":a.userId=this.userId;break}a=Object(s["a"])(Object(s["a"])({},a),e),this.loading=!0,Object(c["l"])(a).then((function(e){t.recordList=e.rows,t.total=e.total})).finally((function(){t.loading=!1,t.modifyButtonStatus()}))},getRulesRecordList:function(){var e=this;Object(c["k"])({sopId:this.sopId,pageNum:1,pageSize:l["Kc"]}).then((function(t){var i;t&&(e.ruleList=null!==(i=t.rows)&&void 0!==i&&i.length?Object(r["a"])(t.rows):[])}))},getTimingSopRulesDetailList:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=Object(s["a"])(Object(s["a"])({sopId:this.sopId,beginTime:this.remindTime&&this.parseTime(this.remindTime[0],"{y}-{m}-{d}"),endTime:this.remindTime&&this.parseTime(this.remindTime[1],"{y}-{m}-{d}")},this.query),{},{finishFlag:-1===e?null:e});switch(this.type){case"rule":a.ruleId=this.ruleId;break;case"employee":a.userId=this.userId;break}a=Object(s["a"])(Object(s["a"])({},a),i),Object(c["l"])(a).then((function(e){t.recordList=e.rows,t.total=e.total}))},resetQuery:function(){this.query={pageNum:1,pageSize:l["Ic"],chatName:"",chatOwnerName:""},this.remindTime=null}}},f=p,A=(i("8817"),i("2877")),h=Object(A["a"])(f,a,n,!1,null,"24687447",null);t["default"]=h.exports},"0529":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{staticClass:"dialog-invite",attrs:{title:e.title,visible:e.Pvisible,width:"700px","close-on-click-modal":!1},on:{"update:visible":function(t){e.Pvisible=t}}},[i("div",{staticClass:"top"},[i("el-alert",{attrs:{title:"使用该方式添加员工,需先获取员工的手机号或邮箱,用于发送邀请,如果没有,可通过扫码加入方式邀请",type:"warning","show-icon":"",closable:!1}})],1),i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.formLoading,expression:"formLoading"}],ref:"form",attrs:{model:e.form,"label-width":"60px",rules:e.rules}},[i("div",{staticClass:"user-info"},[i("div",{staticClass:"user-info-left"},[i("el-form-item",{attrs:{"label-width":"0"}},[i("upload",{attrs:{"file-url":e.form.avatarMediaid,type:e.MEDIA_TYPE_POSTER,"upload-class":"avatar-uploader","show-remove-file-icon":!0},on:{"update:fileUrl":function(t){return e.$set(e.form,"avatarMediaid",t)},"update:file-url":function(t){return e.$set(e.form,"avatarMediaid",t)}}})],1)],1),i("div",{staticClass:"user-info-right"},[i("el-form-item",{attrs:{label:"姓名",prop:"name"}},[i("el-input",{attrs:{"show-word-limit":"",placeholder:"请填写员工姓名",maxlength:"64"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),i("el-form-item",{attrs:{label:"账号",prop:"userId"}},[i("el-input",{attrs:{"show-word-limit":"",placeholder:"由数字、字母和_-@.组成,第一个字符必须是数字或字母",maxlength:"64"},model:{value:e.form.userId,callback:function(t){e.$set(e.form,"userId",t)},expression:"form.userId"}})],1),i("el-form-item",{attrs:{label:"性别"}},[i("el-radio-group",{model:{value:e.form.gender,callback:function(t){e.$set(e.form,"gender",t)},expression:"form.gender"}},[i("el-radio",{attrs:{label:"1"}},[e._v("男")]),i("el-radio",{attrs:{label:"2"}},[e._v("女")])],1)],1)],1)]),i("div",{staticClass:"info"},[i("div",{staticClass:"basic-info"},[i("p",{staticClass:"title"},[e._v("基础信息")]),i("el-form-item",{attrs:{label:"昵称"}},[i("el-input",{attrs:{"show-word-limit":"",placeholder:"可在生日祝福等场景使用",maxlength:"64"},model:{value:e.form.alias,callback:function(t){e.$set(e.form,"alias",t)},expression:"form.alias"}})],1),i("el-form-item",{attrs:{label:"手机号"}},[i("el-input",{attrs:{placeholder:"请填写手机号,企业内唯一"},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}}),i("el-popover",{attrs:{placement:"top",content:"若填写手机号,则发起邀请后对方会收到微信服务通知或短信邀请",trigger:"hover","popper-class":"tip-popover"}},[i("i",{staticClass:"iconfont icon-question",attrs:{slot:"reference"},slot:"reference"})])],1),i("el-form-item",{attrs:{label:"生日"}},[i("el-date-picker",{attrs:{type:"date"},model:{value:e.form.birthday,callback:function(t){e.$set(e.form,"birthday",t)},expression:"form.birthday"}})],1),i("el-form-item",{attrs:{label:"身份证"}},[i("el-input",{model:{value:e.form.idCard,callback:function(t){e.$set(e.form,"idCard",t)},expression:"form.idCard"}})],1),i("el-form-item",{attrs:{label:"邮箱"}},[i("el-input",{attrs:{placeholder:"请填写有效的邮箱,企业内唯一"},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}}),i("el-popover",{attrs:{placement:"top",content:"若填写邮箱,则发起邀请后对方会收到邮箱邀请",trigger:"hover","popper-class":"tip-popover"}},[i("i",{staticClass:"iconfont icon-question",attrs:{slot:"reference"},slot:"reference"})])],1),i("el-form-item",{attrs:{label:"QQ"}},[i("el-input",{model:{value:e.form.qqAccount,callback:function(t){e.$set(e.form,"qqAccount",t)},expression:"form.qqAccount"}})],1),i("el-form-item",{attrs:{label:"地址"}},[i("el-input",{attrs:{type:"textarea",row:"2","show-word-limit":"",maxlength:"128"},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}})],1)],1),i("div",{staticClass:"company-info"},[i("p",{staticClass:"title"},[e._v("企业信息")]),i("el-form-item",{attrs:{label:"角色",prop:"roleId","label-width":"80px"}},[i("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.roleId,callback:function(t){e.$set(e.form,"roleId",t)},expression:"form.roleId"}},e._l(e.roleData,(function(e){return i("el-option",{key:e.roleId,attrs:{label:e.roleName,value:e.roleId}})})),1)],1),i("el-form-item",{attrs:{label:"所属部门",prop:"mainDepartment","label-width":"80px"}},[i("el-cascader",{attrs:{options:e.departmentData,"show-all-levels":!1,props:{expandTrigger:"hover",checkStrictly:!0,emitPath:!1,value:"id",label:"name"}},model:{value:e.form.mainDepartment,callback:function(t){e.$set(e.form,"mainDepartment",t)},expression:"form.mainDepartment"}})],1),i("el-form-item",{attrs:{label:"职务","label-width":"80px"}},[i("el-input",{attrs:{"show-word-limit":"",maxlength:"64"},model:{value:e.form.position,callback:function(t){e.$set(e.form,"position",t)},expression:"form.position"}})],1),i("el-form-item",{attrs:{label:"入职时间","label-width":"80px"}},[i("el-date-picker",{attrs:{type:"date"},model:{value:e.form.joinTime,callback:function(t){e.$set(e.form,"joinTime",t)},expression:"form.joinTime"}})],1)],1)]),i("el-form-item",{attrs:{"label-width":"0"}},[i("div",{staticClass:"footer"},[i("div",{staticClass:"footer-left"},[e.showFildBtn?i("el-button",{staticStyle:{color:"red"},attrs:{type:"text",size:"medium"},on:{click:function(t){return e.handleShowAddMemberFailDrawer("invite")}}},[e._v(" 加入失败? ")]):e._e()],1),i("div",{staticClass:"footer-right"},[i("el-button",{on:{click:function(t){e.Pvisible=!1}}},[e._v("取 消")]),i("RequestButton",{attrs:{type:"primary","request-method":e.submit,"button-type":"submit"}},[e._v("确 定")])],1)])])],1)],1)},n=[],r=(i("ac1f"),i("00b4"),i("ef6c")),s=i("dd70"),o=i("52a9"),l=i("cf45"),c=48002,u=48003,d="3",p={name:"InviteForm",components:{RequestButton:o["a"]},props:{visible:{type:Boolean,default:!1},title:{type:String,default:"发起邀请"},handleShowAddMemberFailDrawer:{type:Function,default:function(){}},getMemberList:{type:Function,default:function(){}},roleData:{type:Array,default:function(){return[]}},departmentData:{type:Array,default:function(){return[]}}},data:function(){var e=this,t=function(t,i,a){return i?/^1[3456789]\d{9}$/.test(e.lpdptel)?a():a(new Error("请填写正确的手机号")):a()},i=function(e,t,i){if(!t)return i();var a=/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/;return a.test(t)?i():i(new Error("请输入有效的邮箱"))},a=function(e,t,i){if(!t)return i();var a=/^[a-zA-Z0-9][a-zA-Z0-9_\-@]+$/;return a.test(t)?i():i(new Error("账号格式错误"))};return{loading:!0,form:{address:"",alias:"",avatarMediaid:"",birthday:"",email:"",gender:null,idCard:"",joinTime:"",mainDepartment:null,mobile:"",name:"",position:"",qqAccount:"",roleId:d,userId:""},rules:{name:[{required:!0,message:"请填写员工姓名",trigger:"blur"}],userId:[{required:!0,message:"请填写员工账号",trigger:"blur"},{validator:a,trigger:"blur"}],roleId:[{required:!0,message:"请填写员工角色",trigger:"blur"}],mainDepartment:[{required:!0,message:"请填写员工部门",trigger:"blur"}],mobile:[{validator:t,trigger:"blur"}],email:[{validator:i,trigger:"blur"}]},showFildBtn:!1,MEDIA_TYPE_POSTER:s["cc"],formLoading:!1}},computed:{Pvisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}}},watch:{departmentData:function(e){1!==e.length||this.form.mainDepartment||(this.form.mainDepartment=e[0].id)}},methods:{handleAvatarSuccess:function(){},beforeAvatarUpload:function(){},submit:function(){var e=this;this.$refs["form"].validate((function(t){return t?e.form.mobile||e.form.email?(e.formLoading=!0,void r["a"](e.form).then((function(t){Object(l["i"])(e.$store,"submit"),e.msgSuccess("已发出邀请,请等待员工加入企业"),e.formLoading=!1,e.Pvisible=!1,e.getMemberList(),e.form={address:"",alias:"",avatarMediaid:"",birthday:"",email:"",gender:null,idCard:"",joinTime:"",mainDepartment:null,mobile:"",name:"",position:"",qqAccount:"",roleId:null,userId:""}})).catch((function(t){Object(l["i"])(e.$store,"submit"),e.Pvisible=!0,e.formLoading=!1,1*t.code===c?e.showFildBtn=!0:1*t.code===u&&e.$message({showClose:!0,message:"无效的账号",type:"error"})}))):(e.$message({showClose:!0,message:"手机号和邮箱不能同时为空",type:"warning"}),Object(l["i"])(e.$store,"submit"),!1):(Object(l["i"])(e.$store,"submit"),!1)}))}}},f=p,A=(i("192e"),i("2877")),h=Object(A["a"])(f,a,n,!1,null,"27d8572a",null);t["default"]=h.exports},"052f":function(e,t,i){"use strict";i("1e1c")},"0535":function(e,t,i){e.exports=i.p+"static/img/mobile-step-2-2.251dc248.png"},"058d":function(e,t,i){"use strict";i("51f9")},"05de":function(e,t){e.exports="data:image/gif;base64,R0lGODlhGAAhAOZvABqf2fv+/4jN6/3+/y+o3Byg2U614SWj2vz+//f8/jms3v7//yak28Pm9fb7/vr9/z6u34vO7Fq65MXn9nfG6OLz+sLm9eT0++X0+yql2yOj2l+85LTg89zx+szq97ni9CGi2lO34iek29jv+ZXT7YTL697x+qLY8NXu+HXF6C6n3KDX7x2g2YnO61q649Hs+KPZ8C2n3GS+5Vy75OPz+3zI6YPL6vT7/qTZ8LHe8kmz4R6g2aPY8Oz3/Nfu+cHl9ZHR7TSq3Z/X7/n9/iml26zc8Sum2yym3NPt+I/Q7Oj2/HbG6D+u33jG6arb8Uy04fj8/m3C50Sw4Lri9Lfh883q91e44zut3o7Q7F675L7k9Mjo9oXM6/D5/SKi2mW+5Tqs3oLL6un2/GjA5snp9iOi2s/r90Cv37Lf8iil2/X7/u34/EGv35PS7Rme2P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NEE1Q0ZGRUYxNDhBMTFFQzk5MTBDNEFDRUU0RkFENDIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NEE1Q0ZGRjAxNDhBMTFFQzk5MTBDNEFDRUU0RkFENDIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0QTVDRkZFRDE0OEExMUVDOTkxMEM0QUNFRTRGQUQ0MiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo0QTVDRkZFRTE0OEExMUVDOTkxMEM0QUNFRTRGQUQ0MiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAUyAG8ALAAAAAAYACEAAAdHgG+Cg4SFhoeIiYqLjI2Oj5CRkpOUlZaXmJmIA5UeEAUhGJIBBG6mEpIdpqYHkgkMqwaTHyJuCiOUAReavL2+v8DBwsPEiYEAIfkEBTIAbwAsCQAHAAkAEwAAB2CAb4IBMieChwMbbgA8h28kbpEAL4ImIJIrhxSRbjWHDxmRKgmHFpwljjCcE44CnBWtnDSOOJwNjj+cEY4OB5EED44pnAKOKAWSOY4RnAA2C4IIBpwtjjcubsWObwgch4EAIfkEBTIAbwAsAAAAAAsAIQAAB6aAb4KDQCSDh29Fbm5tiG8NO4tuU4dKDJIzCIdRkjoOh2YAixk9iE+SQogTkmwDiE2SWogLBIsxrodbkhSOXJINjlmSUI5Xi0eOb0aLUsmRbjPJIItWyTGLEMlnixrJX5JdjliSVI5kkmOOA2mLZWqOS5JOjkiSQZ+IG5JhjhVeiyx8OEoiSYEYREPASGKyBpEPIp0WIKqiwQ0LNMksaOCQTFApQYEAADs="},"05f3":function(e,t,i){},"0619":function(e,t,i){"use strict";i("1e14")},"0621":function(e,t,i){var a=i("9e69"),n=i("d370"),r=i("6747"),s=a?a.isConcatSpreadable:void 0;function o(e){return r(e)||n(e)||!!(s&&e&&e[s])}e.exports=o},"0638":function(e,t,i){"use strict";i("94d2")},"0676":function(e,t,i){"use strict";i("e9c3")},"069e":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"index-main"},[i("div",{staticClass:"tables whitebg",style:"border-radius:"+e.borderRadius},[i("div",{staticStyle:{"text-align":"left"}},[i("el-row",{staticClass:"row-bg",attrs:{type:"flex",justify:"space-between",align:"middle"}},[i("el-col",{staticClass:"title_name",attrs:{span:24}},[e._v(" "+e._s(e.title)+" "),e._t("extraInfo")],2),e._t("operate")],2),i("el-row",{staticClass:"row-bg",staticStyle:{"margin-top":"35px","text-align":"center"},attrs:{type:"flex",justify:"space-between"}},e._l(e.colList,(function(t,a){return i("el-col",{key:a,staticClass:"col_style",attrs:{span:6}},[e._v(" "+e._s(t.title)+" "),t.showPopover?i("el-popover",{attrs:{placement:t.placement||"top-start",content:t.content,trigger:"hover","popper-class":"tip-popover"}},[i("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"12px"},attrs:{slot:"reference"},slot:"reference"})]):e._e()],1)})),1),i("el-row",{staticClass:"row-bg data-count theme-text-color",attrs:{type:"flex",justify:"space-between"}},e._l(e.colList,(function(t,a){return i("el-col",{key:a,attrs:{span:6}},[i("span",{staticClass:"col-item theme-text-color",style:"color: "+e.color+" "},[t[t.filed]===e.DATA_STATISTICS_DEFAULT_SHOW?[e._v(e._s(e.DATA_STATISTICS_DEFAULT_SHOW))]:[i("span",{style:"color:"+t.numColor},[e._v(e._s(t[t.filed]||0))]),i("span",{staticClass:"unit"},[e._v(e._s(t.unit))])]],2)])})),1)],1)])])},n=[],r=i("dd70"),s={props:{colList:{type:Array,default:function(){return[]}},title:{type:String,default:""},color:{type:String,default:""},borderRadius:{type:String,default:""}},data:function(){return{DATA_STATISTICS_DEFAULT_SHOW:r["F"]}},watch:{},methods:{}},o=s,l=(i("675d"),i("2877")),c=Object(l["a"])(o,a,n,!1,null,"0832e2d2",null);t["a"]=c.exports},"06a4":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"intelligent-form-div"},[i("div",{staticClass:"header-radio-group"},[i("el-radio-group",{staticClass:"radio-group-div",attrs:{size:"medium"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-radio-button",{attrs:{label:e.INTELLIGENT_FORM_TYPE["enterprise"]}},[e._v("企业表单")]),e.showBtn?i("el-radio-button",{attrs:{label:e.INTELLIGENT_FORM_TYPE["department"]}},[e._v("部门表单")]):e._e(),e.showBtn?i("el-radio-button",{attrs:{label:e.INTELLIGENT_FORM_TYPE["personal"]}},[e._v("我的表单")]):e._e()],1),e.activeName===e.INTELLIGENT_FORM_TYPE["department"]?i("div",{staticClass:"department-select"},[i("SelectTree",{attrs:{"check-strictly":!0,data:e.departmentOptions,"default-key":e.departmentSelect,placeholder:"请选择部门",obj:e.treePorps},on:{getValue:e.setTreeMenu}})],1):e._e()],1),i("div",{staticClass:"list-container"},[i("IntelligentFormContent",{attrs:{type:e.activeName,"department-id":e.departmentSelect}})],1)])},n=[],r=i("2909"),s=i("c7eb"),o=i("1da1"),l=(i("99af"),i("c740"),i("a9e3"),i("dd70")),c=i("1ed0"),u=i("ef6c"),d=i("fb36"),p=i("4360"),f={id:"id",label:"name",children:"children",path:"path",content:"content",pid:"parentId"},A={name:"IntelligentForm",components:{IntelligentFormContent:c["default"],SelectTree:d["a"]},props:{},data:function(){return{INTELLIGENT_FORM_TYPE:l["Ib"],activeName:l["Ib"]["enterprise"],departmentOptions:[],departmentSelect:void 0,userDepartmentName:void 0,treePorps:f}},provide:function(){return{getDepartmentId:this.getDepartmentId}},computed:{showBtn:function(){var e=p["a"].getters.isSuperAdmin;return!e}},watch:{activeName:function(e,t){e!==l["Ib"]["department"]||this.departmentOptions&&0!==this.departmentOptions.length||this.getDepartmentTree()}},created:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.activeName=Number(window.sessionStorage.getItem("intelligent_form_active"))||l["Ib"]["enterprise"],window.sessionStorage.removeItem("intelligent_form_active"),t.next=4,e.getMyDepartmentId();case 4:case"end":return t.stop()}}),t)})))()},methods:{getDepartmentTree:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i,a,n,o,l,c,u;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("GetOrUpdateDepartmentList");case 2:i=t.sent,a=e.getDepartmentId(),n=null===i||void 0===i?void 0:i.findIndex((function(e){return e.id===a})),o=i,n<0&&(l={children:[],id:a,name:e.userDepartmentName||"所处部门",parentId:"0"},o=[l].concat(Object(r["a"])(o))),c=e.handleTree(o),e.departmentOptions=c,u=window.sessionStorage.getItem("intelligent_form_department_id"),u="undefined"===u?void 0:u,e.departmentSelect=u||e.departmentSelect,window.sessionStorage.removeItem("intelligent_form_department_id");case 13:case"end":return t.stop()}}),t)})))()},getMyDepartmentId:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i,a,n,r,o,l;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(u["g"])({userId:null===(i=e.$store.getters)||void 0===i?void 0:i.userId});case 2:if(n=t.sent,null!==n&&void 0!==n&&n.data&&null!==n&&void 0!==n&&null!==(a=n.data)&&void 0!==a&&a.department){t.next=5;break}return t.abrupt("return",!1);case 5:r=n.data,o=r.department,l=r.departmentName,e.departmentSelect=(null===o||void 0===o?void 0:o.length)&&o[o.length-1],e.userDepartmentName=l;case 8:case"end":return t.stop()}}),t)})))()},getDepartmentId:function(){return this.departmentSelect},setTreeMenu:function(e,t){this.departmentSelect=e}}},h=A,m=(i("355f"),i("2877")),g=Object(m["a"])(h,a,n,!1,null,"ee2f2c5a",null);t["default"]=g.exports},"06b4":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",e._g(e._b({staticClass:"select-property-modal",attrs:{title:"其他属性",width:"700px"},on:{close:e.onClose}},"el-dialog",e.$attrs,!1),e.$listeners),[i("el-alert",{style:"margin-bottom: 15px;",attrs:{title:"设置客户需要满足的其他条件",type:"warning",closable:!1}}),i("el-transfer",e._b({attrs:{data:e.customProperty,titles:["不需要满足","需要满足"],props:{key:"id",label:"name"}},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},"el-transfer",e.$attrs,!1)),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.onClose}},[e._v("取消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.handelConfirm}},[e._v("确定")])],1)],1)},n=[],r=i("2909"),s=(i("99af"),i("4de4"),i("caad"),i("d81d"),i("b0c0"),i("a9e3"),i("d3b7"),i("6062"),i("2532"),i("3ca3"),i("ddb0"),i("dd70")),o=i("cf45"),l={name:"SelectProperty",components:{},props:{selectedValue:{type:Array,default:function(){return[]}}},data:function(){return{CUSTOMER_PROPERTY_VALUE:s["B"],value:[],sopType:null}},computed:{customProperty:function(){var e=Object(r["a"])(this.$store.state.customerProperty.customerProperList);return this.sopType!==s["ed"]["activity"]&&e.unshift({id:s["c"],name:"来源",type:s["c"]}),e=e.filter((function(e){return e.status&&(e.type!==s["B"]["sysField"]&&[s["B"]["singleRadio"],s["B"]["selectSingle"],s["B"]["dateField"]].includes(e.type)||"出生日期"===e.name)||"来源"===e.name})),e}},watch:{selectedValue:function(e){this.value=Object(r["a"])(new Set([].concat(Object(r["a"])(this.value),Object(r["a"])(this.dealSelectedValue(e)))))}},created:function(){var e=this.$route.query;this.sopType=Number(e.sopType)},mounted:function(){},methods:{dealSelectedValue:function(e){return e.map((function(e){return e.id}))},onClose:function(){this.$emit("update:visible",!1)},handelConfirm:function(){var e=[],t=this.$store.state.customerProperty.customPropertyObj;this.value.map((function(i){i===s["c"]?e.push({id:s["c"],name:"来源",optionValue:void 0,placeholder:"请选择来源",type:s["B"]["selectSingle"],optionList:Object(o["D"])({key:"id",value:"multipleValue"})}):e.push(t[i])})),this.$emit("submit",e),this.onClose()}}},c=l,u=i("2877"),d=Object(u["a"])(c,a,n,!1,null,"1ac86fe3",null);t["default"]=d.exports},"0759":function(e,t,i){"use strict";i("9952")},"0763":function(e,t,i){},"07b8":function(e,t,i){e.exports=i.p+"static/img/config-step-3.44861b2f.jpeg"},"07dc":function(e,t,i){},"07e5":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{staticClass:"dialog-me",attrs:{title:e.title,visible:e.Pvisible,width:"650px","append-to-body":"","close-on-click-modal":!1},on:{"update:visible":function(t){e.Pvisible=t}}},[i("div",{staticClass:"selecte-code"},[i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"form",staticStyle:{padding:"0"},attrs:{model:e.query}},[i("el-form-item",[i("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入活码名称"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(1)}},model:{value:e.query.activityName,callback:function(t){e.$set(e.query,"activityName",t)},expression:"query.activityName"}}),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.getList(1)}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.list.length}})],1),i("el-table-column",{attrs:{width:"30"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-radio",{attrs:{label:t.row},model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[e._v("'")])]}}])}),i("el-table-column",{attrs:{prop:"codeUrl",label:"活码预览",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(e){var t=e.row;return[i("el-popover",{attrs:{placement:"bottom",trigger:"hover"}},[i("el-image",{staticClass:"code-image--small",staticStyle:{border:"1px solid #eee"},attrs:{slot:"reference",src:t.codeUrl},slot:"reference"}),i("el-image",{staticClass:"code-image",attrs:{src:t.codeUrl}})],1)]}}])}),i("el-table-column",{attrs:{prop:"activityName",label:"活码名称",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-tooltip",{attrs:{content:a.activityName,placement:"bottom-end",effect:"dark"}},[i("div",{staticClass:"ellipsis-style"},[e._v(" "+e._s(a.activityName)+" ")])])]}}])}),i("el-table-column",{attrs:{prop:"activityDesc",label:"活码描述",align:"center",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-tooltip",{attrs:{content:a.activityDesc,placement:"bottom-end",effect:"dark"}},[i("div",{staticClass:"ellipsis-style"},[e._v(" "+e._s(a.activityDesc)+" ")])])]}}])}),i("el-table-column",{attrs:{prop:"availableCodes",label:"可用群码/总群码",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(" "+e._s(a.availableCodes)+"/"+e._s(a.actualList&&a.actualList.length||0)+" "),a.aboutToExpireCodes>0?i("el-popover",{attrs:{placement:"bottom",width:"200",trigger:"hover",content:"有"+a.aboutToExpireCodes+"个实际群码即将过期。"}},[i("i",{staticClass:"el-icon-warning expire-icon",attrs:{slot:"reference"},slot:"reference"})]):e._e()]}}])})],2)]},proxy:!0}])})],1),i("div",{staticClass:"footer-flex",attrs:{slot:"footer"},slot:"footer"},[i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],staticClass:"footer-left",attrs:{layout:"prev, pager, next",total:e.total,disabled:e.loading,page:e.query.pageNum,limit:e.query.pageSize,"pager-count":5},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}}),i("div",{staticClass:"footer-right"},[i("el-button",{on:{click:function(t){e.Pvisible=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)])},n=[],r=(i("d3b7"),i("159b"),i("b850")),s=i("dd70"),o=i("b66d"),l=i("e77d"),c=i("e2e0"),u={components:{RightContainer:o["a"],EmptyDefaultIcon:l["a"]},mixins:[c["a"]],props:{visible:{type:Boolean,default:!1},title:{type:String,default:"选择群活码"},selected:{type:Array,default:function(){return[]}}},data:function(){return{loading:!0,query:{pageNum:1,pageSize:s["Ic"],activityName:"",createBy:"",beginTime:"",endTime:""},list:[],total:0,radio:""}},computed:{Pvisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}}},watch:{selected:function(){this.setSelected()},list:function(){this.setSelected()}},created:function(){this.getList()},methods:{resetQuery:function(){var e=this;this.query.activityName="",this.$nextTick((function(){e.getList(1)}))},getList:function(e){var t=this;e&&(this.query.pageNum=e),this.loading=!0,Object(r["f"])(this.query).then((function(e){var i=e.rows,a=e.total;t.list=i,t.total=+a})).finally((function(){t.modifyButtonStatus(),t.loading=!1}))},submit:function(){this.Pvisible=!1,this.$emit("success",this.radio)},setSelected:function(){var e=this;this.selected.length&&this.list.forEach((function(t){t.id===e.selected[0].id&&(e.radio=t)}))}}},d=u,p=(i("59ec"),i("2d12"),i("2877")),f=Object(p["a"])(d,a,n,!1,null,"526c5348",null);t["a"]=f.exports},"080e":function(e,t,i){"use strict";i("502b")},"0833":function(e,t,i){},"0869":function(e,t,i){"use strict";i("ece1")},"08af":function(e,t,i){},"094b":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"show-data-wrapper"},[a("el-tabs",{staticClass:"tabs",on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{staticClass:"tabs-pane tool-tab",attrs:{name:"tab1",stretch:!0}},[a("div",{staticClass:"tabs-name",attrs:{slot:"label"},slot:"label"},[a("svg",{staticClass:"icon-a-gongju1",attrs:{width:25,height:25}},[a("use",{attrs:{href:"tab1"===e.activeName?"#icon-gongju":"#icon-a-gongju1"}})]),a("div",{class:"tab1"===e.activeName?"active":""},[e._v(" 企业工具 ")])]),e._l(e.appList,(function(t){return a("AppInfo",{key:t.appid,attrs:{"app-name":t.name,"app-sketch":t.description,"app-logo":t.logoUrl,"show-tip":!1}},[a("el-button",{attrs:{type:"primary"},on:{click:function(){return e.handleDetailsClick(t)}}},[e._v("查看详情")])],1)})),e.appList.length?e._e():a("div",{staticClass:"empty"},[a("el-empty",{attrs:{image:i("f0e8"),"image-size":240,description:"更多应用研发中,敬请期待.."}})],1)],2),a("el-tab-pane",{attrs:{name:"tab2"}},[a("div",{staticClass:"tabs-name",attrs:{slot:"label"},slot:"label"},[a("svg",{staticClass:"icon-a-kehuziyuanguanli1",attrs:{width:25,height:25}},[a("use",{attrs:{href:"tab2"===e.activeName?"#icon-kehuziyuanguanli":"#icon-a-kehuziyuanguanli1"}})]),a("div",{class:"tab2"===e.activeName?"active":""},[e._v("客户资源")])]),a("div",{staticClass:"empty"},[a("el-empty",{attrs:{image:i("f0e8"),"image-size":240,description:"更多应用研发中,敬请期待.."}})],1)]),a("el-tab-pane",{attrs:{name:"tab3"}},[a("div",{staticClass:"tabs-name",attrs:{slot:"label"},slot:"label"},[a("svg",{staticClass:"icon-a-neirongguanli1",attrs:{width:25,height:25}},[a("use",{attrs:{href:"tab3"===e.activeName?"#icon-neirongguanli":"#icon-a-neirongguanli1"}})]),a("div",{class:"tab3"===e.activeName?"active":""},[e._v("内容资源")])]),a("div",{staticClass:"empty"},[a("el-empty",{attrs:{image:i("f0e8"),"image-size":240,description:"更多应用研发中,敬请期待.."}})],1)])],1)],1)},n=[],r=(i("b0c0"),i("5ec8")),s=i("d7b1"),o={name:"",components:{AppInfo:r["default"]},props:{},data:function(){return{activeName:"tab1",appList:[],query:{type:1}}},created:function(){this.getList(this.query)},mounted:function(){},methods:{handleClick:function(e){this.activeName=e.name},getList:function(e){var t=this;Object(s["c"])(e).then((function(e){t.appList=e.data}))},handleDetailsClick:function(e){this.$router.push({path:"appDetails",query:{appId:e.appid,config:e.config}})}}},l=o,c=(i("a2d8"),i("2877")),u=Object(c["a"])(l,a,n,!1,null,"aa5135a6",null);t["default"]=u.exports},"0979":function(e,t,i){},"0a51":function(e,t,i){"use strict";i("5ea8")},"0b64":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"preview-div"},[[i("div",{staticClass:"cover-img"},[i("video",{attrs:{src:e.data.url}}),i("svg",{staticClass:"icon-player",attrs:{width:25,height:25}},[i("use",{attrs:{href:"#icon-player"}})])]),i("div",{staticClass:"file-info"},[i("div",{staticClass:"inoneline"},[e._v(e._s(e.data.title))]),i("div",{staticClass:"file-size"},[e._v(e._s(e.getFileSize(e.data.size)))])])]],2)])},n=[],r=i("cf45"),s={props:{data:{type:Object,default:function(){}}},data:function(){return{showContent:!0}},mounted:function(){},methods:{getFileSize:function(e){return this.data.size&&this.showContent?Object(r["x"])(e):""}}},o=s,l=(i("1ace"),i("2877")),c=Object(l["a"])(o,a,n,!1,null,"1d5f3049",null);t["default"]=c.exports},"0b6a":function(e,t,i){"use strict";i("65d2")},"0b87":function(e,t,i){"use strict";i("190e")},"0bd0":function(e,t,i){"use strict";i("ecdf")},"0be8":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("MaPage",{ref:"page",attrs:{type:e.MEDIA_TYPE_VIDEO,selected:e.selectedMaterialList,"select-material":e.selectMaterial},on:{"update:selected":function(t){e.selectedMaterialList=t}},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.list,n=t.getList,r=t.changeList,s=t.edit;return[e._l(a,(function(t,a){return[i("VideoItem",{key:a,attrs:{item:t,"tool-list":["preview",t.showMaterial?"published":"publish","edit","remove"],"selected-material-list":e.selectedMaterialList,"select-material":e.selectMaterial},on:{openMaterialDialog:s,getList:n,changeList:r}})]}))]}}])})},n=[],r=i("2d03"),s=i("dc6e"),o=i("dd70"),l={name:"VideoList",components:{MaPage:r["default"],VideoItem:s["a"]},data:function(){return{selectedMaterialList:[],MEDIA_TYPE_VIDEO:o["gc"]}},watch:{},created:function(){},methods:{selectMaterial:function(e){this.selectedMaterialList=e}}},c=l,u=(i("4b65"),i("2877")),d=Object(u["a"])(c,a,n,!1,null,"eaee3aa6",null);t["default"]=d.exports},"0be8d":function(e,t,i){"use strict";i("f08b")},"0bf3":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{inline:!0,model:e.query,"label-width":"100px"}},[i("el-form-item",{attrs:{prop:"name"}},[i("el-input",{attrs:{placeholder:"请输入客户昵称"},model:{value:e.query.name,callback:function(t){e.$set(e.query,"name",t)},expression:"query.name"}})],1),i("el-form-item",[i("div",{staticClass:"tag-input",on:{click:function(t){e.selectUserType="query"}}},[e.queryUser.length?e._l(e.queryUser,(function(t,a){return i("el-tag",{key:a,attrs:{type:"info"}},[e._v(e._s(t.name))])})):i("span",{staticClass:"tag-place"},[e._v("请选择员工")])],2)]),i("el-form-item",[i("div",{staticClass:"tag-input",on:{click:function(t){e.selectTagVisible=!0}}},[e.selectedTags.length?e._l(e.selectedTags,(function(t,a){return i("el-tag",{key:a,attrs:{type:"info",closable:""},on:{close:function(i){return e.deleteTag(t)}}},[e._v(" "+e._s(t.name)+" ")])})):i("span",{staticClass:"tag-place"},[e._v("请选择标签")])],2)]),i("el-form-item",[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),i("el-form-item",{attrs:{label:" "}},[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.handleQuery()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetForm()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"operate-btn",fn:function(){return[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick"},{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:active:transfer"],expression:"['customerManage:active:transfer']"}],attrs:{type:"primary"},on:{click:e.allocatedCustomer}},[e._v(" 分配客户 ")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick"},{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:transfer:record"],expression:"['customerManage:transfer:record']"}],on:{click:e.inheritRecord}},[e._v(" 分配记录 ")]),i("el-popover",{attrs:{placement:"bottom-end",width:"400",trigger:"click"},model:{value:e.inheritSettingShow,callback:function(t){e.inheritSettingShow=t},expression:"inheritSettingShow"}},[i("div",[i("el-alert",{attrs:{title:"若接替员工之前已添加客户,则不会信息",type:"warning","close-text":" ","show-icon":""}}),i("el-form",{ref:"form",attrs:{model:e.query,"label-width":"8em","label-position":"left",size:"mini"}},[i("el-form-item",{attrs:{label:"继承客户信息"}},[i("el-switch",{model:{value:e.transferConfig.enableTransferInfo,callback:function(t){e.$set(e.transferConfig,"enableTransferInfo",t)},expression:"transferConfig.enableTransferInfo"}}),i("p",{staticClass:"we-emple-code-tags-tip"},[e._v("开启后,在职继承时,将同步客户信息至接替员工,方便员工跟进客户")])],1),i("el-form-item",{attrs:{label:"员工转接客户"}},[i("el-switch",{model:{value:e.transferConfig.enableSideBar,callback:function(t){e.$set(e.transferConfig,"enableSideBar",t)},expression:"transferConfig.enableSideBar"}}),i("p",{staticClass:"we-emple-code-tags-tip"},[e._v("开启后,员工可在侧边栏【客户画像】将客户转接给其他在职员工")])],1),i("el-form-item",{staticClass:"ar"},[i("el-button",{attrs:{type:"text"},on:{click:function(t){e.inheritSettingShow=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.inheritSettingSave}},[e._v("确 定")])],1)],1)],1),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:transfer:config"],expression:"['customerManage:transfer:config']"}],attrs:{slot:"reference"},slot:"reference"},[e._v("继承设置")])],1)]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",attrs:{data:e.list,"tooltip-effect":"dark",align:"left","highlight-current-row":""},on:{"selection-change":function(t){return e.selectedCustomers=t}}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{text:"暂无数据"}})],1),i("el-table-column",{attrs:{type:"selection",width:"55",selectable:function(t){return!e.isInheriting(t.transferStatus)}}}),i("el-table-column",{attrs:{label:"客户",prop:"name"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",{staticClass:"customer-info",on:{click:function(t){return e.goRoute(a)}}},[i("img",{attrs:{src:a.avatar}}),i("div",[i("div",{staticClass:"inoneline",attrs:{title:(a.remark||a.name||a.alias)+e.renderUserInfo(a)}},[i("span",[e._v(e._s(a.remark||a.name||a.alias))]),i("span",{class:a.type===e.wxType?"wx-type-flag":"corp-type-name"},[e._v(e._s(e.renderUserInfo(a)))])]),i("div",{staticClass:"customer-real-name inoneline",attrs:{title:a.name}},[e._v(e._s(a.name))])])])]}}])}),i("el-table-column",{attrs:{prop:"createTime",label:"添加时间"}}),i("el-table-column",{attrs:{label:"所属员工"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"al"},[i("div",{staticClass:"cus-owner"},[e._v(e._s(t.row.userName))]),i("div",{staticClass:"cus-dept"},[e._v(e._s(t.row.department))])])]}}])}),i("el-table-column",{attrs:{label:"标签"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.weFlowerCustomerTagRels,(function(t,a){return i("el-tag",{key:a,attrs:{type:"info"}},[e._v(" "+e._s(t.tagName)+" ")])}))}}])}),i("el-table-column",{attrs:{label:"接替状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.isInheriting(t.row.transferStatus)?"接替中":"")+" ")]}}])}),i("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.goRoute(t.row)}}},[e._v("详情")])]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,disabled:e.loading,page:e.query.pageNum,limit:e.query.pageSize,"select-data-len":e.selectedCustomers.length},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}})]},proxy:!0}])}),i("SelectUser",{attrs:{"is-sigle-select":"",visible:"query"===e.selectUserType,title:"选择查询员工","selected-user-list":e.queryUser},on:{click:function(t){e.selectUserType="query"},success:e.submitSelectUser,close:function(t){e.selectUserType=""}}}),i("SelectUser",{ref:"selectUser",attrs:{"is-sigle-select":"",visible:"inherit"===e.selectUserType,title:"选择接替员工","alert-text":"为保障客户服务体验,90个自然日内,企业下每位客户仅可被在职继承2次。"},on:{click:function(t){e.selectUserType="inherit"},close:function(t){e.selectUserType=""}},scopedSlots:e._u([{key:"footer",fn:function(){return[e.inheritFail?i("el-button",{class:["inheritFail",{hide:"inherit"!==e.selectUserType}],attrs:{type:"text"},on:{click:function(t){e.inheritFailDrawerVisible=!0}}},[e._v(" 分配失败? ")]):e._e(),i("el-button",{on:{click:function(t){e.selectUserType=""}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary",loading:e.selectUserLoading},on:{click:e.submitSelectUser}},[e._v(" 确 定")])]},proxy:!0}])}),i("SelectTag",{attrs:{type:"query",title:"选择标签",visible:e.selectTagVisible,selected:e.selectedTags},on:{"update:visible":function(t){e.selectTagVisible=t},success:e.submitSelectTag}}),i("InheritFailDrawer",{attrs:{visible:e.inheritFailDrawerVisible},on:{"update:visible":function(t){e.inheritFailDrawerVisible=t}}})],1)},n=[],r=i("2909"),s=i("5530"),o=(i("c740"),i("d81d"),i("a434"),i("d3b7"),i("25f0"),i("ed08")),l=i("cf45"),c=i("dd70"),u=i("e753"),d=i("cf80"),p=i("b66d"),f=i("e77d"),A=i("c958"),h=i("aada"),m=i("3d91"),g=i("e2e0"),v={pageNum:1,pageSize:c["Ic"]},b={name:"",components:{RightContainer:p["a"],EmptyDefaultIcon:f["a"],SelectUser:A["a"],SelectTag:h["a"],InheritFailDrawer:m["default"]},mixins:[g["a"]],props:{},data:function(){return{query:Object(s["a"])({},v),total:1,list:[],dateRange:[],queryUser:[],selectedCustomers:[],selectedTags:[],selectTagVisible:!1,inheritSettingShow:!1,transferConfig:{enableTransferInfo:!0,enableSideBar:!1},selectUserType:"",selectUserLoading:!1,inheritFailDrawerVisible:!1,inheritFail:!1,wxType:c["Cd"],remotetransferConfig:null,loading:!1}},watch:{inheritSettingShow:function(e){e||(this.transferConfig=Object(s["a"])({},this.remotetransferConfig))}},created:function(){var e=this;this.getList(),Object(d["d"])().then((function(t){var i=t.data;e.transferConfig=Object(s["a"])({},i),e.remotetransferConfig=Object(s["a"])({},i)})),this.$store.dispatch("app/setBusininessDesc","<div>将在职员工的客户分配给指定员工,让优质客户得到更好的服务</div>")},mounted:function(){},methods:{getList:function(){var e=this,t=Object(s["a"])(Object(s["a"])({},this.query),{},{beginTime:this.dateRange[0],endTime:this.dateRange[1]});this.loading=!0,Object(d["b"])(t).then((function(t){var i=t.rows,a=t.total;e.list=i,e.total=+a})).finally((function(){e.modifyButtonStatus(),e.loading=!1}))},goRoute:function(e){Object(o["l"])(this.$router,u["b"],this.query,{id:e.externalUserid,userId:e.userId,prePageType:"customer"})},submitSelectUser:function(e){var t,i=this;if("inherit"===this.selectUserType){var a=this.$refs.selectUser.userList;if(a.length){this.selectUserLoading=!0;var n={customerList:this.selectedCustomers.map((function(e){return{externalUserid:e.externalUserid,handoverUserid:e.userId}})),takeoverUserid:this.$refs.selectUser.userList[0].userId};Object(d["e"])(n).then((function(){i.msgSuccess("分配成功,等待接替"),i.selectUserType="",i.selectUserLoading=!1,i.getList()})).catch((function(){i.inheritFail=!0,i.selectUserLoading=!1,i.getList()}))}else this.msgWarn("请选择接替员工")}"query"===this.selectUserType&&(this.queryUser=e,this.query.userIds=null===(t=e[0])||void 0===t?void 0:t.userId,this.selectUserType="")},submitSelectTag:function(e){this.query.tagIds=e.map((function(e){return e.tagId})).toString(),this.selectedTags=Object(r["a"])(e),this.selectTagVisible=!1},handleQuery:function(){this.query.pageNum=1,this.getList()},resetForm:function(){this.query=Object(s["a"])({},v),this.dateRange=[],this.queryUser=[],this.selectedTags=[],this.getList()},allocatedCustomer:function(){this.selectedCustomers.length?this.selectUserType="inherit":this.msgWarn("请勾选要分配的客户")},inheritSettingSave:function(){var e=this;Object(d["a"])(this.transferConfig).then((function(){e.msgSuccess("设置成功"),e.remotetransferConfig=Object(s["a"])({},e.transferConfig)})).finally((function(){e.inheritSettingShow=!1}))},deleteTag:function(e){var t=this.selectedTags.findIndex((function(t){return t.tagId===e.tagId}));this.selectedTags.splice(t,1),this.query.tagIds=this.selectedTags.map((function(e){return e.tagId}))+""},isInheriting:function(e){return e===c["Fb"]},inheritRecord:function(){this.$router.push("inheritRecord")},renderUserInfo:function(e){return Object(l["o"])(e)}}},y=b,_=(i("4fde"),i("2877")),w=Object(_["a"])(y,a,n,!1,null,"66e3b15e",null);t["default"]=w.exports},"0c05":function(e,t,i){},"0c30":function(e,t,i){},"0c9d":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"old",staticStyle:{width:"100%",height:"100%"}},[e._m(0),i("div",{staticStyle:{width:"100%","margin-top":"200px",height:"400px","margin-left":"auto","margin-right":"auto","text-align":"center"}},[i("img",{attrs:{width:"40%",height:"40%",src:this.imgUrl}}),i("br"),i("el-button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.welcomeMsg,expression:"welcomeMsg",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:e.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:e.onError,expression:"onError",arg:"error"}],attrs:{size:"medium",type:"text"}},[e._v("复制链接")]),e._m(1)],1)])},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{"margin-left":"auto","margin-right":"auto","margin-top":"20px","padding-top":"15px",width:"80%",height:"130px","background-color":"#ecf3f9","border-radius":"15px","text-align":"center"}},[i("p",[i("b",{staticStyle:{"font-size":"20px",color:"#35578d"}},[e._v("签到成功")])]),i("div",{staticStyle:{"margin-top":"20px","margin-right":"20px","margin-left":"20px",color:"#35578d","font-size":"17px"}},[i("span",{staticStyle:{"padding-top":"20px"}},[e._v("请先长按下方二维码保存图片,然后微信扫描二维码图进入直播间")])])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{"margin-top":"20px"}},[i("br"),i("br"),i("span",{staticStyle:{"margin-top":"5px",color:"white","font-size":"15px"}},[e._v("长按上方二维码保存图片后扫码进入直播")]),i("br"),i("br")])}],r=(i("ac1f"),i("466d"),i("5319"),i("62db")),s=i("d055"),o=i.n(s),l={data:function(){return{welcomeMsg:null,costomerName:null,imgUrl:null,empleCodeId:null,iconZ:null,queryParams:{pageNum:1,pageSize:10},form:{},rules:{}}},created:function(){document.title="签到成功",this.getData()},methods:{reset:function(){this.form={}},getUrlImg:function(e){var t=this;if(e){var i=/(https?:\/\/[^\s]+)/g;o.a.toDataURL(e.match(i)).then((function(e){t.imgUrl=e}))}},getHref:function(e,t){return e?(e=t?e.replace("#客户昵称#",t):e.replace("#客户昵称#",""),e):""},getData:function(){var e=this;this.costomerName=this.$route.query.costomerName,this.empleCodeId=this.$route.query.empleCodeId,this.empleCodeId&&Object(r["h"])(this.empleCodeId).then((function(t){var i=t.data;e.welcomeMsg=i.welcomeMsg,e.getUrlImg(i.welcomeMsg)}))},onCopy:function(e){this.msgSuccess("复制成功")},onError:function(e){this.msgError("复制失败")}}},c=l,u=(i("db7d"),i("2877")),d=Object(u["a"])(c,a,n,!1,null,"347927d6",null);t["default"]=d.exports},"0d03":function(e,t,i){"use strict";i("e188")},"0d13":function(e,t,i){},"0d16":function(e,t,i){"use strict";i("5369")},"0d27":function(e,t,i){"use strict";i("26b7")},"0d7e":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("NoConfigInfo",{attrs:{"alert-style":"margin-bottom: 15px;","config-keys":["contactSecret"],"page-title":"进行企业群发"}}),i("div",{staticClass:"content-wrap"},[e._m(0),i("div",{staticClass:"flex"},[i("el-form",{ref:"form",staticStyle:{"margin-right":"170px"},attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[i("div",{staticClass:"form-base-wrap"},[i("div",{staticClass:"base-title"},[e._v("基础设置")]),i("div",{staticClass:"base-content"},[i("el-alert",{style:"width: 550px;",attrs:{title:"每个客户/客户群每天只能收到1条群发消息,超过上限将无法再收到群发消息",type:"warning",closable:!1}}),i("el-form-item",{attrs:{label:"任务名称",prop:"taskName","label-width":"68px"}},[i("el-input",{attrs:{maxlength:"32","show-word-limit":"",placeholder:"填写任务名称,方便管理"},model:{value:e.form.taskName,callback:function(t){e.$set(e.form,"taskName",t)},expression:"form.taskName"}})],1),i("el-form-item",{staticStyle:{padding:"0"},attrs:{label:"群发类型",prop:"pushType","label-width":"68px"}},[i("el-radio-group",{model:{value:e.form.pushType,callback:function(t){e.$set(e.form,"pushType",t)},expression:"form.pushType"}},e._l(e.statusOptions,(function(t){return i("el-radio",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),i("el-form-item",{staticStyle:{padding:"0"},attrs:{label:"发送范围",prop:"pushRange","label-width":"68px"}},[i("el-radio-group",{model:{value:e.form.pushRange,callback:function(t){e.$set(e.form,"pushRange",t)},expression:"form.pushRange"}},e._l(e.rangeOptions,(function(t){return i("el-radio",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label+(e.form.pushType===e.GROUP_MESSAGE_PUSH_TYPE_GROUP?"群":"")))])})),1),i("div",{directives:[{name:"show",rawName:"v-show",value:e.form.pushRange===e.GROUP_MESSAGE_PUSH_RANGE_SOME,expression:"form.pushRange === GROUP_MESSAGE_PUSH_RANGE_SOME"}],staticClass:"form-range-area"},[i("el-alert",{style:"width: 408px;margin-top:0;",attrs:{title:"给同时满足以下条件的对象群发",type:"warning",closable:!1}}),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.form.pushType===e.GROUP_MESSAGE_PUSH_TYPE_CUSTOMER,expression:"form.pushType === GROUP_MESSAGE_PUSH_TYPE_CUSTOMER"}],staticStyle:{padding:"0"},attrs:{label:"性别",prop:"gender","label-width":"68px"}},[i("el-radio-group",{model:{value:e.form.gender,callback:function(t){e.$set(e.form,"gender",t)},expression:"form.gender"}},e._l(e.genderOptions,(function(t){return i("el-radio",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.form.pushType===e.GROUP_MESSAGE_PUSH_TYPE_CUSTOMER,expression:"form.pushType === GROUP_MESSAGE_PUSH_TYPE_CUSTOMER"}],staticStyle:{padding:"8px 0"},attrs:{label:"客户标签","label-width":"68px"}},[i("el-button",{attrs:{icon:"el-icon-plus"},on:{click:function(t){return e.showSelectTagDialog("tag")}}},[e._v("添加标签")]),e._l(e.form.tag,(function(t,a){return i("el-tag",{key:a,attrs:{type:"info",closable:""},on:{close:function(i){return e.deleteOneSelectTag("tag",t)}}},[e._v(e._s(t.name))])}))],2),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.form.pushType===e.GROUP_MESSAGE_PUSH_TYPE_CUSTOMER,expression:"form.pushType === GROUP_MESSAGE_PUSH_TYPE_CUSTOMER"}],staticStyle:{padding:"10px 0"},attrs:{label:"添加时间","label-width":"68px"}},[i("el-date-picker",{staticStyle:{width:"320px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},model:{value:e.form.addTime,callback:function(t){e.$set(e.form,"addTime",t)},expression:"form.addTime"}})],1),i("el-form-item",{staticStyle:{padding:"10px 0 0"},attrs:{label:e.form.pushType===e.GROUP_MESSAGE_PUSH_TYPE_GROUP?"群主":"所属员工","label-width":e.form.pushType===e.GROUP_MESSAGE_PUSH_TYPE_GROUP?"48px":"68px"}},[i("el-button",{attrs:{icon:"el-icon-plus"},on:{click:function(t){return e.selectUser(e.form.pushType===e.GROUP_MESSAGE_PUSH_TYPE_GROUP?"groupOwner":"userParty")}}},[e._v(e._s(0===(e.form.pushType===e.GROUP_MESSAGE_PUSH_TYPE_GROUP?e.groupOwner:e.userParty).length?"添加成员":"修改成员"))]),e._l(e.form.pushType===e.GROUP_MESSAGE_PUSH_TYPE_GROUP?e.groupOwner:e.userParty,(function(t,a){return i("el-tag",{key:a,staticClass:"user-tag",attrs:{closable:""},on:{close:function(t){return e.handleClose(e.form.pushType===e.GROUP_MESSAGE_PUSH_TYPE_GROUP?"groupOwner":"userParty",a)}}},[i("TagUserShow",{attrs:{name:t.name,"show-icon":!t.userId}})],1)}))],2),i("el-divider"),i("el-alert",{style:"width: 408px;margin-top:0;",attrs:{title:"在满足上述条件的对象中,过滤符合以下任一条件的对象",type:"warning",closable:!1}}),i("el-form-item",{staticStyle:{padding:"8px 0"},attrs:{label:e.form.pushType===e.GROUP_MESSAGE_PUSH_TYPE_GROUP?"过滤群主":"过滤员工","label-width":"68px"}},[i("el-button",{attrs:{icon:"el-icon-plus"},on:{click:function(t){return e.selectUser(e.form.pushType===e.GROUP_MESSAGE_PUSH_TYPE_GROUP?"filterGroupUsers":"filterUsers")}}},[e._v(e._s(0===(e.form.pushType===e.GROUP_MESSAGE_PUSH_TYPE_GROUP?e.filterGroupUsers:e.filterUsers).length?"添加成员":"修改成员"))]),e._l(e.form.pushType===e.GROUP_MESSAGE_PUSH_TYPE_GROUP?e.filterGroupUsers:e.filterUsers,(function(t,a){return i("el-tag",{key:a,staticClass:"user-tag",attrs:{closable:""},on:{close:function(t){return e.handleClose(e.form.pushType===e.GROUP_MESSAGE_PUSH_TYPE_GROUP?"filterGroupUsers":"filterUsers",a)}}},[i("TagUserShow",{attrs:{name:t.name,"show-icon":!t.userId}})],1)}))],2),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.form.pushType===e.GROUP_MESSAGE_PUSH_TYPE_CUSTOMER,expression:"form.pushType === GROUP_MESSAGE_PUSH_TYPE_CUSTOMER"}],staticStyle:{padding:"8px 0"},attrs:{label:"过滤标签","label-width":"68px"}},[i("el-button",{attrs:{icon:"el-icon-plus"},on:{click:function(t){return e.showSelectTagDialog("filterTags")}}},[e._v("添加标签")]),e._l(e.form.filterTags,(function(t,a){return i("el-tag",{key:a,attrs:{type:"info",closable:""},on:{close:function(i){return e.deleteOneSelectTag("filterTags",t)}}},[e._v(e._s(t.name))])}))],2),e.form.pushType===e.GROUP_MESSAGE_PUSH_TYPE_CUSTOMER?i("div",{staticClass:"filter-tips"},[e._v("若客户包含任一过滤标签,则不会收到本次群发消息")]):e._e()],1)],1),i("el-form-item",{staticStyle:{padding:"0"},attrs:{label:"发送时间",prop:"pushTime","label-width":"68px"}},[i("el-radio-group",{model:{value:e.form.pushTime,callback:function(t){e.$set(e.form,"pushTime",t)},expression:"form.pushTime"}},e._l(e.timeOptions,(function(t){return i("el-radio",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1),e.form.pushTime===e.GROUP_MESSAGE_PUSH_TIME_SET?i("el-form-item",{attrs:{prop:"settingTime"}},[i("el-date-picker",{staticStyle:{width:"225px"},attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"选择发送时间"},model:{value:e.form.settingTime,callback:function(t){e.$set(e.form,"settingTime",t)},expression:"form.settingTime"}})],1):e._e()],1)],1)]),i("div",{staticClass:"form-base-wrap"},[i("div",{staticClass:"base-title"},[e._v("群发内容")]),i("div",{staticClass:"base-content group-content-text"},[i("el-form-item",{attrs:{label:"发送内容","label-width":"80px"}},[i("el-input",{attrs:{type:"textarea",maxlength:"2000","show-word-limit":"",autosize:{minRows:10,maxRows:50},placeholder:"请输入"},model:{value:e.form.textMessage.content,callback:function(t){e.$set(e.form.textMessage,"content",t)},expression:"form.textMessage.content"}}),i("AddAppendixBtn",{attrs:{"sub-title":e.subTitle,"limit-select-length":e.limitSelectLength,"appendix-list":e.appendixList},on:{"update:appendixList":function(t){e.appendixList=t},"update:appendix-list":function(t){e.appendixList=t}}})],1)],1)]),i("div",{staticClass:"form-base-wrap"},[i("div",{staticClass:"base-title"},[e._v("发送统计")]),i("div",{staticClass:"base-content stat-content",staticStyle:{color:"#999"}},[e._v(" 预计收到群发的客户"+e._s(e.form.pushType===e.GROUP_MESSAGE_PUSH_TYPE_GROUP?"群":"数")+": "),void 0===e.sendSize?i("el-button",{attrs:{disabled:e.sendSizeLoading,type:"text"},on:{click:e.previewSendSize}},[e._v("统计")]):e._e(),void 0!==e.sendSize?i("span",{staticClass:"theme-text-color"},[e._v(e._s(e.sendSize))]):e._e(),void 0!==e.sendSize?i("el-button",{attrs:{disabled:e.sendSizeLoading,type:"text",icon:"el-icon-refresh"},on:{click:e.previewSendSize}}):e._e()],1)])]),i("PhoneDialog",{attrs:{message:e.form.textMessage.content,"msg-list":e.appendixList}})],1),i("div",{staticClass:"group-btn-wrapper"},[i("RequestButton",{attrs:{type:"primary","request-method":e.submit,"button-type":"submit"}},[e._v("通知员工执行群发")])],1),i("SelectUser",{attrs:{visible:e.dialogVisibleSelectUser,title:"groupOwner"===e.selectUserType?"选择群主":"选择员工","is-only-leaf":!1,"selected-user-list":e.selectUserList},on:{"update:visible":function(t){e.dialogVisibleSelectUser=t},success:e.selectedUser}}),i("SelectTag",{attrs:{visible:e.dialogVisibleSelectTag,title:"选择标签",type:"search","info-msg":"筛选出被打上选中标签的客户,进行群发",selected:e.form[e.selectTagType]},on:{"update:visible":function(t){e.dialogVisibleSelectTag=t},success:e.submitSelectTag}})],1)],1)},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"group-info"},[i("i",{staticClass:"el-icon-info"}),i("div",[i("div",{staticClass:"info-title"},[e._v("功能说明")]),i("div",{staticClass:"info-desc"},[e._v("管理员创建企业群发消息后,员工收到任务通知,确认操作后才发送给相关客户或客户群。")])])])}],r=i("5530"),s=i("2909"),o=(i("99af"),i("7db0"),i("c740"),i("a15b"),i("d81d"),i("a434"),i("b0c0"),i("e9c4"),i("a9e3"),i("dca8"),i("b64b"),i("d3b7"),i("159b"),i("3464")),l=i("8bd5"),c=i("c958"),u=i("aada"),d=i("dd70"),p=i("cf45"),f=i("f710"),A=i("4887"),h=i("52a9"),m=i("515a"),g=i("2ef0"),v=i("c1df"),b=i.n(v),y={components:{PhoneDialog:l["a"],SelectTag:u["a"],SelectUser:c["a"],NoConfigInfo:f["a"],AddAppendixBtn:A["a"],RequestButton:h["a"],TagUserShow:m["a"]},props:{},data:function(){return{MAX_APPENDIX_NUM:d["Tb"],loading:!1,form:{pushType:d["sb"],pushRange:d["mb"],pushTime:d["pb"],tag:[],filterTags:[],department:[],staffId:[],settingTime:"",messageType:"0",textMessage:{content:""},gender:d["eb"],addTime:[],taskName:""},userParty:[],groupOwner:[],rules:{},statusOptions:Object.freeze(Object(s["a"])(Object.keys(d["rb"]).map((function(e){return{label:d["rb"][e],value:e}})))),rangeOptions:Object.freeze(Object(s["a"])(Object.keys(d["lb"]).map((function(e){return{label:d["lb"][e],value:e}})))),timeOptions:Object.freeze(Object(s["a"])(Object.keys(d["ob"]).map((function(e){return{label:d["ob"][e],value:e}})))),genderOptions:Object.freeze(Object(s["a"])(d["jb"].map((function(e){return{label:d["ib"][e],value:e}})))),activeName:d["kb"],dialogVisibleSelectCustomer:!1,dialogVisibleSelectUser:!1,dialogVisibleSelectTag:!1,dialogVisibleSelectMaterial:!1,query:{pageNum:1,pageSize:d["Ic"],categoryId:"",search:"",mediaType:d["cc"],isExpire:!1},materialList:[],appendixList:[],subTitle:"已添加 0 个附件,还可选择 9 个",MEDIA_TYPE_POSTER:d["cc"],MEDIA_TYPE_IMGLINK:d["ac"],MEDIA_TYPE_VIDEO:d["gc"],MEDIA_TYPE_FILE:d["Zb"],MEDIA_TYPE_MINIAPP:d["bc"],MEDIA_TYPE_RADARLINK:d["dc"],MEDIA_TYPE:d["Xb"],MESSAGE_MEDIA_TYPE:d["ic"],limitSelectLength:d["Tb"],materialType:d["cc"],selectTagType:"tag",sendSize:void 0,GROUP_MESSAGE_PUSH_TYPE_CUSTOMER:d["sb"],GROUP_MESSAGE_PUSH_TYPE_GROUP:d["tb"],GROUP_MESSAGE_PUSH_RANGE_SOME:d["nb"],GROUP_MESSAGE_PUSH_TIME_SET:d["qb"],MEDIA_TYPE_SMARTFORM:d["ec"],filterUsers:[],filterGroupUsers:[],selectUserType:void 0,sendSizeLoading:!1}},computed:{isOnlyTag:function(){return this.form.tag[0]&&this.form.pushType===d["sb"]},isSelectedText:function(){return this.userParty[0]||this.isOnlyTag},selectedText:function(){return"将发送消息给".concat(this.userParty[0]?this.userParty[0].name+"等部门或成员的":"").concat(this.userParty[0]&&this.isOnlyTag?",且":"").concat(this.isOnlyTag?"满足"+this.form.tag[0].name+"等标签的":"").concat(this.form.pushType===d["sb"]?"客户":"客户群")},categoryId:function(){var e,t=this.$refs["AddAppendixBtn"].appendixType;return null===(e=this.$store.state.materialInfo)||void 0===e||null===(e=e.categoryInfo[t])||void 0===e?void 0:e.id},selectUserList:function(){return Object(g["cloneDeep"])(this[this.selectUserType])}},watch:{appendixList:function(e){this.subTitle="已添加 ".concat(e.length," 个附件,还可选择 ").concat(d["Tb"]-e.length," 个"),this.limitSelectLength=d["Tb"]-e.length},materialType:function(e){this.query.mediaType=e}},beforeUpdate:function(){Object(p["k"])(Object(r["a"])(Object(r["a"])({},this.$options.data().form),{},{appendixList:this.$options.data().appendixList}),Object(r["a"])(Object(r["a"])({},this.form),{},{appendixList:this.appendixList}))},created:function(){this.$store.dispatch("app/setBusininessDesc","\n <div>\n <h5>一、什么是群发助手?</h5>\n <p>\n 成员可把通知、祝福、活动等消息批量发送给不同的客户,并进行后续的服务;管理员或负责人也可创建企业服务消息,由成员发送并进行后续的服务。\n </p>\n <h5>二、谁可以使用群发助手?</h5>\n <p>\n 具有客户联系使用权限的成员,都可以使用群发助手给自己的客户发送消息;超级管理员和业务负责人还可向管理范围内成员的客户创建企业服务消息。\n </p>\n <h5>三、群发是否有频率限制?</h5>\n <p>\n 每天最多接收来自同一企业的管理员或业务负责人的1条群发消息。\n </p>\n <h5>四、群发助手其他注意事项</h5>\n <p>\n 1、群发消息不得出现违反法律法规或侵犯他人合法权益的内容,企业应对其制作、发送和传播的群发消息内容承担全部法律责任。\n </p>\n <p>\n 2、不得以任何方式滥用群发助手实施恶意骚扰用户、开展过度营销等行为。\n </p>\n <p>\n 3、如企业微信帐号存在异常,则可能导致群发消息发送失败或异常等情况。\n </p>\n </div>\n ")},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;if(this.$route.query){var t,i,a,n,r=this.$route.query;r.messageId&&(this.form.messageId=r.messageId),r.attachments&&r.attachments.length>=1&&(this.appendixList=this.resolveAttactments(r.attachments));var o=[];null!==(t=r.userList)&&void 0!==t&&t.length&&(o=r.userList),null!==(i=r.departmentList)&&void 0!==i&&i.length&&(o=[].concat(Object(s["a"])(o),Object(s["a"])(r.departmentList.map((function(e){return{id:e.departmentId,name:e.departmentName}})))));var l=[];null!==(a=r.filterUserList)&&void 0!==a&&a.length&&(l=r.filterUserList),null!==(n=r.filterDepartmentList)&&void 0!==n&&n.length&&(l=[].concat(Object(s["a"])(l),Object(s["a"])(r.filterDepartmentList.map((function(e){return{id:e.departmentId,name:e.departmentName}}))))),this[r.pushType===d["tb"]?"filterGroupUsers":"filterUsers"]=l,this[r.pushType===d["tb"]?"groupOwner":"userParty"]=o,r.customerEndTime&&r.customerStartTime&&(this.form.addTime=[b()(r.customerStartTime).format("YYYY-MM-DD"),b()(r.customerEndTime).format("YYYY-MM-DD")]),Object.keys(this.form).forEach((function(t){r.content&&(e.form.textMessage.content=r.content),"pushTime"===t&&(e.form[t]=r.settingTime?d["qb"]:d["pb"]),r[t]&&("gender"===t?e.form[t]=Number(r[t]):"tag"===t||"filterTags"===t?e.initTagList(t):e.form[t]=r[t])}))}},initTagList:function(e){var t=this,i=this.$route.query,a=this.$store.state.listInfo.tagList;a.length>0?this.form[e]=i[e].split(",").map((function(e){var t=a.find((function(t){return t.tagId===e}));return{name:t&&t.name,tagId:e}})):setTimeout((function(){t.initTagList(e)}),100)},selectedUser:function(e){this[this.selectUserType]=e},submitSelectTag:function(e){this.form[this.selectTagType]=e,this.dialogVisibleSelectTag=!1},goRoute:function(){window.open("#/operationsCenter/material/materialManage")},resolveAttactments:function(e){var t=[];return JSON.parse(e).forEach((function(e){var i,a,n,s,o={isAdded:!0};switch(o.mediaType=e.msgtype,String(e.msgtype)){case d["cc"]:e.imageMessage=JSON.parse(e.imageMessage),o.materialUrl=e.imageMessage.pic_url,o.materialName=Object(p["A"])(e.imageMessage.pic_url);break;case d["ac"]:e.linkMessage=JSON.parse(e.linkMessage),o.digest=e.linkMessage.desc,o.coverUrl=e.linkMessage.picurl,o.materialName=e.linkMessage.title,o.materialUrl=e.linkMessage.url;break;case d["gc"]:e.videoDTO=JSON.parse(e.videoDTO),o.materialName=e.videoDTO.title,o.materialUrl=e.videoDTO.videoUrl,o.content=e.videoDTO.size,o.coverUrl=e.videoDTO.coverUrl;break;case d["Zb"]:e.fileDTO=JSON.parse(e.fileDTO),o.materialUrl=e.fileDTO.fileUrl,o.materialName=Object(p["A"])(e.fileDTO.fileUrl);break;case d["bc"]:e.miniprogramMessage=JSON.parse(e.miniprogramMessage),o.appid=e.miniprogramMessage.appid,o.accountOriginalId=e.miniprogramMessage.accountOriginalId,o.materialUrl=e.miniprogramMessage.page,o.coverUrl=e.miniprogramMessage.picUrl,o.materialName=e.miniprogramMessage.title;break;case d["dc"]:o.extraId=e.radarMessage.extraId||e.radarMessage.radarId,o.radarTitle=null===(i=e.radarMessage)||void 0===i||null===(i=i.radar)||void 0===i?void 0:i.radarTitle,o.title=null===(a=e.radarMessage.radar)||void 0===a||null===(a=a.weRadarUrl)||void 0===a?void 0:a.title,o.content=null===(n=e.radarMessage.radar)||void 0===n||null===(n=n.weRadarUrl)||void 0===n?void 0:n.content,o.coverUrl=null===(s=e.radarMessage.radar)||void 0===s||null===(s=s.weRadarUrl)||void 0===s?void 0:s.coverUrl;break;case d["ec"]:o.extraId=e.formMessage.extraId||e.formMessage.formId,o.form=e.formMessage.form;break}t.push(Object(r["a"])(Object(r["a"])({},o),{},{id:e.id}))})),t},resolveAppendixList:function(e){var t=[];return e.forEach((function(e){var i={};switch(i.msgtype=e.mediaType,String(e.mediaType)){case d["cc"]:i.imageMessage={pic_url:e.materialUrl,title:e.materialName};break;case d["ac"]:i.linkMessage={desc:e.digest,picurl:e.coverUrl,title:e.materialName,url:e.materialUrl};break;case d["gc"]:i.videoDTO={title:e.materialName,videoUrl:e.materialUrl,size:e.content,coverUrl:e.coverUrl};break;case d["Zb"]:i.fileDTO={fileUrl:e.materialUrl,title:e.materialName};break;case d["bc"]:i.miniprogramMessage={appid:e.appid,accountOriginalId:e.accountOriginalId,page:e.materialUrl,picUrl:e.coverUrl,title:e.materialName};break;case d["dc"]:i.radarMessage={radarId:e.extraId,linkTitle:e.radarTitle};break;case d["ec"]:i.formMessage={formId:e.extraId,linkTitle:e.formName||e.form.formName}}t.push(i)})),t},submit:function(){var e=this;this.loading=!0;var t=JSON.parse(JSON.stringify(this.form));Promise.resolve().then((function(){t.attachments=e.resolveAppendixList(e.appendixList);var i=t.attachments.map((function(e){return e.msgtype})).join(",");if(t.textMessage.content)t.messageType="4",i&&(t.messageType+=","+i);else{if(!i)return e.msgInfo("请填写群发内容"),Object(p["i"])(e.$store,"submit"),Promise.reject();t.messageType=i}if(t.pushType===d["tb"]&&t.pushRange===d["nb"]&&0===e.groupOwner.length)return Object(p["i"])(e.$store,"submit"),e.msgInfo("请设置发送范围"),Promise.reject();if(t.pushTime===d["pb"])t.settingTime="",delete t.pushTime;else if(!t.settingTime)return Object(p["i"])(e.$store,"submit"),e.msgInfo("请设置发送时间"),Promise.reject();t.addTime&&t.addTime.length>1&&(t.customerStartTime=t.addTime[0],t.customerEndTime=t.addTime[1],delete t.addTime),t.tag=t.tag.map((function(e){return e.tagId}))+"",t.filterTags=t.filterTags.map((function(e){return e.tagId}))+"";var a=[],n=[];e[t.pushType===d["tb"]?"filterGroupUsers":"filterUsers"].forEach((function(e){e.userId&&n.push(e.userId),e.id&&a.push(e.id)})),t.filterDepartments=a.join(","),t.filterUsers=n.join(","),t.staffId=[];var r=[],s=[];return e[e.form.pushType===d["tb"]?"groupOwner":"userParty"].map((function(e){e.userId&&s.push(e.userId),e.id&&r.push(e.id)})),r+="",s+="",t.department=r,t.staffId=s,t.messageId?Object(o["j"])(t):Object(o["a"])(t)})).then((function(t){t.data;Object(p["i"])(e.$store,"submit"),e.msgSuccess("操作成功"),e.loading=!1,window.sessionStorage.setItem("change",!1),e.$router.push("record")})).catch((function(){Object(p["i"])(e.$store,"submit"),e.loading=!1}))},showSelectTagDialog:function(e){this.selectTagType=e,this.dialogVisibleSelectTag=!0},deleteOneSelectTag:function(e,t){var i=Object(s["a"])(this.form[e]),a=i.findIndex((function(e){return e.tagId===t.tagId}));i.splice(a,1),this.form[e]=i},previewSendSize:function(){var e=this,t=Object(r["a"])(Object(r["a"])({},this.form),{},{staffId:[],department:[],filterUsers:[],filterDepartments:[]}),i=Object(r["a"])({},this.form);i.addTime&&i.addTime.length>1&&(t.customerStartTime=i.addTime[0],t.customerEndTime=i.addTime[1]),t.tag=i.tag.map((function(e){return e.tagId}))+"",t.filterTags=i.filterTags.map((function(e){return e.tagId}))+"",this[i.pushType===d["tb"]?"filterGroupUsers":"filterUsers"].forEach((function(e){e.userId&&t.filterUsers.push(e.userId),e.id&&t.filterDepartments.push(e.id)})),this[i.pushType===d["tb"]?"groupOwner":"userParty"].map((function(e){e.userId&&t.staffId.push(e.userId),e.id&&t.department.push(e.id)})),t.department+="",t.staffId+="",t.filterUsers+="",t.filterDepartments+="",this.sendSizeLoading=!0,Object(o["g"])(t).then((function(t){e.sendSize=t.data})).finally((function(){e.sendSizeLoading=!1}))},selectUser:function(e){this.selectUserType=e,this.dialogVisibleSelectUser=!0},handleClose:function(e,t){this[e].splice(t,1)}}},_=y,w=(i("a17a4"),i("2877")),C=Object(w["a"])(_,a,n,!1,null,"03f2d019",null);t["default"]=C.exports},"0dc1":function(e,t,i){"use strict";i("b3c2")},"0dc7":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-drawer",e._g(e._b({staticClass:"get-qrcode-drawer",attrs:{title:"如何获取二维码","before-close":e.handleClose,"append-to-body":!0,size:"780px"}},"el-drawer",e.$attrs,!1),e.$listeners),[a("el-tabs",{attrs:{"tab-position":"left"}},[a("el-tab-pane",{attrs:{label:"电脑端"}},[a("div",{staticClass:"step-title"},[e._v(" 如何在电脑端获取客户群的二维码? ")]),a("div",{staticClass:"section-item"},[a("div",{staticClass:"content-text"},[e._v("1. 打开企业微信应用,进入工作台,查看客户群列表。")]),a("el-image",{staticClass:"part-img",attrs:{src:i("187e"),"preview-src-list":[i("187e")]}})],1),a("div",{staticClass:"section-item"},[a("div",{staticClass:"content-text"},[e._v(" 2. 在客户群列表,找到目标群聊并单击,在右侧详情面板中,点击二维码图标,进入下载弹窗,下载的图片包含其他信息, "),a("span",[e._v("使用时注意裁剪并只保留二维码。")])]),a("el-image",{staticClass:"part-img",attrs:{src:i("271c"),"preview-src-list":[i("271c")]}})],1)]),a("el-tab-pane",{attrs:{label:"移动端"}},[a("div",{staticClass:"step-title"},[e._v(" 如何在移动端获取客户群的二维码? ")]),a("div",{staticClass:"second-title"},[e._v("方式一:工作台")]),a("div",{staticClass:"section-item"},[a("div",{staticClass:"content-text"},[e._v("1. 打开企业微信APP,进入工作台,找到目标客户群,查看客户群的详情。")]),a("div",{staticClass:"part-div"},[a("el-image",{staticClass:"part-img",attrs:{src:i("660c"),"preview-src-list":[i("660c")]}}),a("i",{staticClass:"el-icon-d-arrow-right"}),a("el-image",{staticClass:"part-img",attrs:{src:i("da99"),"preview-src-list":[i("da99")]}}),a("i",{staticClass:"el-icon-d-arrow-right"}),a("el-image",{staticClass:"part-img",attrs:{src:i("2b39"),"preview-src-list":[i("2b39")]}})],1)]),a("div",{staticClass:"section-item"},[a("div",{staticClass:"content-text"},[e._v(" 2. 进入客户群详情后,点击二维码图标,进入下载页面,下载的图片包含其他信息, "),a("span",[e._v("使用时注意裁剪并只保留二维码。")])]),a("div",{staticClass:"part-div"},[a("el-image",{staticClass:"part-img",attrs:{src:i("2fa2"),"preview-src-list":[i("2fa2")]}}),a("i",{staticClass:"el-icon-d-arrow-right"}),a("el-image",{staticClass:"part-img",attrs:{src:i("4db9"),"preview-src-list":[i("4db9")]}})],1)]),a("div",{staticClass:"second-title"},[e._v("方式二:会话窗")]),a("div",{staticClass:"section-item"},[a("div",{staticClass:"content-text"},[e._v(" 打开企业微信APP,从消息列表找到目标客户群,进入会话窗,点击会话窗右上角的详情图标,进入客户群详情,在客户群详情页面,点击二维码图标,进入下载页面,下载的图片包含其他信息, "),a("span",[e._v("使用时注意裁剪并只保留二维码。")])]),a("div",{staticClass:"part-div"},[a("el-image",{staticClass:"part-img",attrs:{src:i("588b"),"preview-src-list":[i("588b")]}}),a("i",{staticClass:"el-icon-d-arrow-right"}),a("el-image",{staticClass:"part-img",attrs:{src:i("0535"),"preview-src-list":[i("0535")]}})],1)])]),a("el-tab-pane",{attrs:{label:"企业微信后台"}},[a("div",{staticClass:"step-title"},[e._v(" 如何在企业微信后台获取客户群的二维码? ")]),a("div",{staticClass:"section-item"},[a("div",{staticClass:"content-text"},[e._v("1. 登录企业微信后台,进入 "),a("el-link",{attrs:{type:"primary",href:"https://work.weixin.qq.com/wework_admin/frame#customer/analysis",target:"_blank"}},[e._v("【客户联系】")]),e._v(" ,查看客户群列表。 ")],1),a("el-image",{staticClass:"part-img",attrs:{src:i("7415"),"preview-src-list":[i("7415")]}})],1),a("div",{staticClass:"section-item"},[a("div",{staticClass:"content-text"},[e._v(" 2. 在客户群列表,找到目标群聊并单击,进入客户群详情页,在详情页中,点击右上角二维码图标,打开下载二维码的弹窗,点击“下载二维码”按钮获取图片,下载的图片包含其他信息, "),a("span",[e._v("使用时注意裁剪并只保留二维码。")])]),a("el-image",{staticClass:"part-img",attrs:{src:i("47b4"),"preview-src-list":[i("47b4")]}})],1)])],1)],1)},n=[],r={name:"",components:{},props:{},data:function(){return{}},created:function(){},mounted:function(){},methods:{handleClose:function(){this.$emit("update:visible",!1)}}},s=r,o=(i("1fe6"),i("2877")),l=Object(o["a"])(s,a,n,!1,null,"a865eda8",null);t["default"]=l.exports},"0dd1":function(e,t,i){"use strict";i("e30f")},"0de2":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"material-poster-container item-container material-item-scss"},[i("div",{staticClass:"cover-img"},[i("MaskItem",{attrs:{"tool-list":e.toolList,"selected-material-list":e.selectedMaterialList,"material-item":e.item,"media-type":e.MEDIA_TYPE_POSTER},on:{selectMaterial:e.onSelectMaterial,openMaterialDialog:e.openMaterialDialog,getList:e.getList,changeList:e.changeList,onPreview:e.onPreview}}),i("el-image",{key:e.item.materialUrl,ref:"poster-cover",attrs:{src:e.item.materialUrl,"preview-src-list":[e.item.materialUrl]}},[i("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[i("i",{staticClass:"iconfont icon-default-img"})])]),i("div",{staticClass:"bottom-desc"},[i("TagList",{attrs:{"tag-list":e.tagList}}),e.showExpireTime?i("div",{staticClass:"expire-time"},[e._v(" "+e._s(e.item.expireTime)+" 过期 ")]):e._e()],1)],1),i("div",{staticClass:"desc"},[e.item.showMaterial&&!e.hideStatus?i("div",{staticClass:"publish-status"},[e._v("发布")]):e._e(),i("div",{staticClass:"file-title inoneline",attrs:{title:e.item.materialName}},[e._v(e._s(e.item.materialName))])])])},n=[],r=i("e8d4"),s=i("3d09"),o=i("dd70"),l=i("cf45"),c=i("f7d0"),u={name:"PosterItem",components:{TagList:r["a"],MaskItem:s["a"]},props:{item:{type:Object,default:function(){}},hideStatus:{type:Boolean,default:!1},showExpireTime:{type:Boolean,default:!1},toolList:{type:Array,default:null},selectMaterial:{type:Function,default:function(){}},selectedMaterialList:{type:Array,default:function(){return[]}}},data:function(){return{MEDIA_TYPE_POSTER:o["cc"]}},computed:{tagList:function(){return Object(l["K"])(this.item.tagList||[],this.$store)}},methods:{onSelectMaterial:function(){Object(c["a"])(this.selectedMaterialList,this.item,this.selectMaterial)},openMaterialDialog:function(e){this.$emit("openMaterialDialog",e)},getList:function(){this.$emit("getList")},changeList:function(e){this.$emit("changeList",e)},onPreview:function(){this.$refs["poster-cover"].showViewer=!0}}},d=u,p=(i("aeae"),i("87f6"),i("2877")),f=Object(p["a"])(d,a,n,!1,null,"73f80f38",null);t["a"]=f.exports},"0de6":function(e,t,i){e.exports=i.p+"static/img/logo_green.626e755b.svg"},"0e20":function(e,t){},"0ec5":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"form-setting"},[i("el-form",{attrs:{"label-position":"top","label-width":"80px",model:e.filedForm}},[e.component.type===e.TEXT_COMPONENT?[i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("内容")])]),i("el-input",{attrs:{resize:"none","show-word-limit":"",maxlength:100,type:"textarea",rows:6},model:{value:e.filedForm.content,callback:function(t){e.$set(e.filedForm,"content",t)},expression:"filedForm.content"}}),i("el-color-picker",{staticClass:"mt15",model:{value:e.filedForm.textColor,callback:function(t){e.$set(e.filedForm,"textColor",t)},expression:"filedForm.textColor"}})],1)]:e._e(),e.component.type===e.IMAGE_COMPONENT?[i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("图片")])]),i("UploadFile",{staticClass:"upload-drag-div",attrs:{text:"将图片拖到此处,或",tip:"支持jpg、png,不超过2M","file-url":e.filedForm.imageUrl,multiple:!1,"show-type":e.DRAG_ONE_TYPE,drag:"",accept:".jpg,.png,.gif"},on:{"update:fileUrl":function(t){return e.$set(e.filedForm,"imageUrl",t)},"update:file-url":function(t){return e.$set(e.filedForm,"imageUrl",t)}}})],1)]:e._e(),e.component.type===e.CAROUSEL_COMPONENT?[i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("图片")])]),i("UploadFile",{attrs:{tip:"支持jpg、png,不超过2M,建议尺寸375*150","file-url-list":e.filedForm.imageUrlList,"show-type":e.MULTIPLE_TYPE,multiple:!1,limit:e.MAX_APPENDIX_NUM},on:{"update:fileUrlList":function(t){return e.$set(e.filedForm,"imageUrlList",t)},"update:file-url-list":function(t){return e.$set(e.filedForm,"imageUrlList",t)}}})],1)]:e._e()],2)],1)},n=[],r=i("5530"),s=i("dd70"),o=i("81f6"),l=i("fbc0"),c={components:{UploadFile:l["default"]},props:{component:{type:Object,default:function(){}}},data:function(){return{filedForm:{content:"文字",textColor:"#101010",imageUrl:"",imageUrlList:[]},TEXT_COMPONENT:s["nd"],IMAGE_COMPONENT:s["Bb"],CAROUSEL_COMPONENT:s["m"],MAX_APPENDIX_NUM:s["Tb"],MULTIPLE_TYPE:s["uc"],DRAG_ONE_TYPE:s["O"]}},watch:{filedForm:{deep:!0,handler:function(e){o["a"].$emit("changeFiledSettingValue",Object(r["a"])({},this.returnFiled(e)))}}},mounted:function(){this.filedForm=Object(r["a"])(Object(r["a"])({},this.filedForm),this.component)},methods:{returnFiled:function(e){var t={};switch(e.type){case s["nd"]:t={content:e.content,textColor:e.textColor};break;case s["Bb"]:t={imageUrl:e.imageUrl};break;case s["m"]:t={imageUrlList:e.imageUrlList};break}return Object(r["a"])(Object(r["a"])({},this.component),t)}}},u=c,d=(i("f9de"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"f5649216",null);t["default"]=p.exports},"0ecd":function(e,t,i){},"0ed0":function(e,t,i){},"0ed7":function(e,t,i){},"0f84":function(e,t,i){},"100e":function(e,t,i){var a=i("cd9d"),n=i("2286"),r=i("c1c9");function s(e,t){return r(n(e,t,a),e+"")}e.exports=s},1057:function(e,t,i){},1160:function(e,t,i){},"11a0":function(e,t,i){e.exports=i.p+"static/img/contact-step2-3.2e6112db.jpg"},"11a9":function(e,t,i){"use strict";i("54f7")},"11c5":function(e,t,i){},1201:function(e,t,i){"use strict";i("b4cd")},"126f":function(e,t,i){},"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"12b6":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"contact-demo enterprise-wechat-demo"},[a("div",[a("el-steps",{staticClass:"step-div",attrs:{active:e.active,"align-center":""}},[a("el-step",{attrs:{title:"申请会话存档",description:"上传开通确认函"}}),a("el-step",{attrs:{title:"获取会话存档Secret",description:"完成会话存档配置"}})],1)],1),e.active===e.FIRST_STEP?a("div",{staticClass:"content-div"},[a("div",{staticClass:"part"},[a("div",{staticClass:"content-text"},[e._v("会话存档功能为企业微信的收费功能,可免费试用30天,进入 "),a("el-link",{attrs:{type:"primary",href:"https://work.weixin.qq.com/wework_admin/frame#financial/corpEncryptData",target:"_blank"}},[e._v("【管理工具】-【会话内容存档】")]),e._v(",上传《企业微信会话内容存档开通确认函》开启。 ")],1),a("el-image",{staticClass:"part-img",attrs:{src:i("b175"),"preview-src-list":[i("b175")]}})],1)]):e._e(),e.active===e.SECOND_STEP?a("div",{staticClass:"content-div"},[e._m(0),a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v(" (2)消息加密公钥。 ")]),a("div",{staticClass:"content-text"},[e._v("点击“消息加密公钥”旁设置按钮,根据提示进行管理员身份认证。认证后,将以下公钥复制到弹窗中保存即可。")]),a("div",{staticClass:"copy-content"},[e.PUBLIC_KEY?a("div",{staticClass:"content-text-box",staticStyle:{width:"606px"}},[e._v(" "+e._s(e.PUBLIC_KEY_BEGIN)),a("br"),e._v(" "+e._s(e.PUBLIC_KEY)+" "),a("br"),e._v(e._s(e.PUBLIC_KEY_END)+" ")]):a("div",{staticClass:"content-text-box",staticStyle:{width:"606px"}},[e._v(" 未配置公钥,请联系运维/技术 ")]),e.PUBLIC_KEY?a("el-button",{directives:[{name:"copy",rawName:"v-copy",value:e.showPublicKey,expression:"showPublicKey"}],attrs:{size:"mini",type:"text"}},[e._v("复制")]):e._e()],1)]),a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v(" (3)获取会话内容存档Secret。 ")]),a("div",{staticClass:"content-text"},[e._v(" 点击Secret旁“查看”按钮,即可收到“企业微信团队”发出的消息,查看并复制会话内容存档Secret。")]),a("el-image",{staticClass:"part-img",attrs:{src:i("8044"),"preview-src-list":[i("8044")]}})],1)]):e._e(),a("div",{staticClass:"btn-div"},[e.active!=e.FIRST_STEP?a("el-button",{staticStyle:{"margin-top":"12px"},on:{click:e.previousStep}},[e._v("上一步")]):e._e(),a("el-button",{staticStyle:{"margin-top":"12px"},attrs:{type:"primary"},on:{click:e.next}},[e._v(e._s(e.STEP_TEXT[e.active]))])],1)])},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"part"},[i("div",{staticClass:"content-title"},[e._v(" (1)设置可信IP地址。 ")]),i("div",{staticClass:"content-text"},[e._v("将EasyInk的IP地址加入可信IP地址(如没有部署在本地,则联系客服获取IP)。")])])}],r=i("c7eb"),s=i("1da1"),o=(i("99af"),i("dd70")),l=i("2502"),c={components:{},props:{},data:function(){return{active:o["V"],STEP_TEXT:o["T"],PUBLIC_KEY:"",PUBLIC_KEY_END:o["Pc"],PUBLIC_KEY_BEGIN:o["Oc"],FIRST_STEP:o["V"],SECOND_STEP:o["Yc"]}},computed:{showPublicKey:function(){return"".concat(this.PUBLIC_KEY_BEGIN,"\n").concat(this.PUBLIC_KEY,"\n").concat(this.PUBLIC_KEY_END)}},watch:{},created:function(){},mounted:function(){},methods:{next:function(){this.active===o["V"]?this.active=o["Yc"]:this.$emit("closeDrawer")},previousStep:function(){this.active=o["V"]},getPublicKey:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var i;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(l["a"])();case 2:i=t.sent,e.PUBLIC_KEY=i;case 4:case"end":return t.stop()}}),t)})))()}}},u=c,d=(i("4843"),i("2a0c"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"6a4f981a",null);t["default"]=p.exports},"12b9":function(e,t,i){"use strict";i("5ef9")},1362:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.form.createType===e.CREATE_TYPE["group"]?i("div",{staticClass:"customer-group-list-div"},e._l(e.form.actualList,(function(t,a){return i("div",{key:a,staticClass:"group-item"},[i("div",{staticClass:"group-index"},[e._v(e._s("客户群"+(a+1)))]),i("div",{staticClass:"group-info"},[i("div",{staticClass:"group-qrcode"},[i("el-image",{attrs:{src:t.actualGroupQrCode}})],1),i("div",{staticClass:"group-detail"},[i("div",{staticClass:"group-name"},[e._v(e._s(t.chatGroupName))]),i("div",{staticClass:"group-info-title"},[e._v("有效期:"+e._s(t.effectTime))]),i("div",{staticClass:"group-info-title"},[e._v("进群上限:"+e._s(t.scanCodeTimesLimit))])])]),i("MoveTool",{attrs:{index:a,item:t,list:e.form.actualList,"show-tool":["edit","placedAtTop","moveTop","moveBottom","remove"],"manual-remove":!0},on:{"update:list":function(t){return e.$set(e.form,"actualList",t)},getRemoveList:e.getRemoveList,handleRemove:e.handleRemove,handleEdit:e.handleEdit}})],1)})),0):e._e(),e.form.createType===e.CREATE_TYPE["corp"]?i("div",{staticClass:"enterprise-code-list-div"},e._l(e.form.actualList,(function(t,a){return i("div",{key:a,staticClass:"group-item"},[i("div",{staticClass:"group-index"},[e._v(e._s("企微活码"+(a+1)))]),i("div",{staticClass:"group-info"},[i("div",{staticClass:"group-qrcode"},[i("el-image",{attrs:{src:t.actualGroupQrCode}})],1),i("div",{staticClass:"group-detail"},[e.isDKCorp?e._e():i("div",{staticClass:"group-info-title"},[e._v("群聊昵称:"+e._s(t.roomBaseName))]),e.isDKCorp?e._e():i("div",{staticClass:"group-info-title"},[e._v("起始序号:"+e._s(t.roomBaseId))]),i("div",{staticClass:"group-info-title"},[e._v("进群上限:"+e._s(t.scanCodeTimesLimit))]),i("div",{staticClass:"group-info-title"},[e._v("备注信息:"+e._s(t.remark))])])]),i("MoveTool",{attrs:{index:a,item:t,list:e.form.actualList,"manual-remove":!0,"show-tool":["edit","placedAtTop","moveTop","moveBottom","remove"]},on:{"update:list":function(t){return e.$set(e.form,"actualList",t)},getRemoveList:e.getRemoveList,handleRemove:e.handleRemove,handleEdit:e.handleEdit}})],1)})),0):e._e()])},n=[],r=i("c7eb"),s=i("2909"),o=i("1da1"),l=(i("d81d"),i("a434"),i("ba70")),c=i("dd70"),u={name:"ActuaList",components:{MoveTool:l["a"]},props:{form:{type:Object,default:function(){}},removeList:{type:Array,default:function(){return[]}}},data:function(){return{CREATE_TYPE:c["v"]}},computed:{isDKCorp:function(){return this.$store.state.serverInfo.dkCorp}},created:function(){},mounted:function(){},methods:{getRemoveList:function(e){e&&e.length>0&&this.$emit("update:removeList",e.map((function(e){return e.id})))},handleRemove:function(e,t){var i=this;this.confirmModal({msg:"删除该数据后,可重新添加,是否继续?"},Object(o["a"])(Object(r["a"])().mark((function a(){var n;return Object(r["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:i.form.actualList.splice(e,1),n=Object(s["a"])(i.removeList),n.push(t),i.$emit("update:removeList",n);case 4:case"end":return a.stop()}}),a)}))))},handleEdit:function(e,t){this.$emit("handleEditCode",e,t)}}},d=u,p=(i("4d59"),i("2877")),f=Object(p["a"])(d,a,n,!1,null,"30ee7224",null);t["default"]=f.exports},"13d5":function(e,t,i){"use strict";var a=i("23e7"),n=i("d58f").left,r=i("a640"),s=i("2d00"),o=i("605d"),l=r("reduce"),c=!o&&s>79&&s<83;a({target:"Array",proto:!0,forced:!l||c},{reduce:function(e){var t=arguments.length;return n(this,e,t,t>1?arguments[1]:void 0)}})},"14e1":function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"d",(function(){return s})),i.d(t,"e",(function(){return o})),i.d(t,"c",(function(){return l})),i.d(t,"a",(function(){return c})),i.d(t,"f",(function(){return u}));var a=i("b775"),n=window.CONFIG.services.wecom+"/group";function r(e){return Object(a["a"])({url:n+"/chat/list",method:"get",params:e})}function s(e){return Object(a["a"])({url:n+"/chat/members",params:e})}function o(){return Object(a["a"])({url:n+"/chat/synchWeGroup"})}function l(e){return Object(a["a"])({url:n+"/chat/getMemberCount",method:"get",params:e})}function c(e){return Object(a["a"])({url:n+"/chat/export",method:"get",params:e})}function u(){return Object(a["a"])({url:n+"/totalTagCnt",method:"get"})}},1602:function(e,t,i){},1612:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-drawer",e._g(e._b({staticClass:"add-rule-drawer",attrs:{"before-close":e.handleClose,"append-to-body":!0,"wrapper-closable":!1,"close-on-press-escape":!1,size:"780px"}},"el-drawer",e.$attrs,!1),e.$listeners),[i("div",{staticClass:"drawer-div"},[e.hasExpired?i("el-alert",{staticClass:"ml20 mr20",attrs:{title:"该规则提醒时间已过,不可修改",type:"warning","show-icon":"",closable:!1}}):e._e(),i("el-form",{ref:"form",staticClass:"form",attrs:{model:e.formData,"label-width":"100px",rules:e.rules,disabled:e.hasExpired||e.disableEdit}},[i("el-form-item",{attrs:{label:"任务名称",prop:"name"}},[i("el-input",{staticStyle:{width:"432px"},attrs:{maxlength:"32","show-word-limit":"",placeholder:e.sopType===e.SOP_TYPE["groupCalendar"]?"设置任务名称,方便记录日历执行情况":"设置任务名称,方便记录SOP执行情况",clearable:""},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),i("el-form-item",{attrs:{label:"提醒时间",prop:"alertInfo"}},[i("AlertTimeEditItem",{attrs:{"form-data":e.formData,"sop-type":e.sopType},on:{"update:formData":function(t){e.formData=t},"update:form-data":function(t){e.formData=t}}})],1),i("el-form-item",{attrs:{label:"发送内容",prop:"materialList"}},[e._l(e.formData.materialList,(function(t,a){return[i("VerbalTrickItem",{key:a,ref:"verbalTrickItemRef",refInFor:!0,attrs:{"content-index":a,item:t,"media-type":t.mediaType.toString(),"form-data":e.formData,"content-list":e.formData.materialList,"show-tool":e.hasExpired||e.disableEdit?[]:["remove"],disabled:e.hasExpired||e.disableEdit},on:{"update:item":function(e){t=e},"update:contentList":function(t){return e.$set(e.formData,"materialList",t)},"update:content-list":function(t){return e.$set(e.formData,"materialList",t)},getRemoveList:e.getRemoveList}})]}))],2),e.hasExpired||e.disableEdit?e._e():i("div",{staticClass:"operate-btn-div"},[i("AddVerbalTrickButton",{attrs:{"btn-text":"新增内容","form-data":e.formData,"can-select-material":!0,trigger:"click",placement:"top","btn-class":"btn-reset","material-field":"materialList"},on:{"update:formData":function(t){e.formData=t},"update:form-data":function(t){e.formData=t}}})],1)],1),i("div",{staticClass:"confirm-div"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.ruleIndex>-1,expression:"ruleIndex > -1"}],on:{click:e.handleDelRule}},[e._v(" 删除当前规则 ")]),e.hasExpired||e.disableEdit?e._e():i("div",[i("el-button",{staticClass:"btn-reset",on:{click:e.handleClose}},[e._v("取消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确定")])],1)])],1)])},n=[],r=i("2909"),s=i("5530"),o=i("ade3"),l=(i("99af"),i("d81d"),i("4e82"),i("a434"),i("d3b7"),i("07ac"),i("dd70")),c=i("b444"),u=i("5987"),d=i("cf45"),p=i("2a88"),f=i("c1df"),A=i.n(f),h=i("ed08"),m=Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])({},l["Tc"]["hourMinute"],"hourMinute"),l["Tc"]["dayTime"],"dayTime"),l["Tc"]["beforeDayTime"],"beforeDayTime"),l["Tc"]["everydayTime"],"everydayTime"),l["Tc"]["everyWeekTime"],"everyWeekTime"),l["Tc"]["everyMonthTime"],"everyMonthTime"),l["Tc"]["time"],"time"),g={name:"",components:{VerbalTrickItem:c["default"],AddVerbalTrickButton:u["a"],AlertTimeEditItem:p["default"]},props:{sopForm:{type:Object,default:function(){}},disableEdit:{type:Boolean,default:!1}},inject:["sopInfo"],data:function(){var e=this,t=function(t,i,a){var n=e.formData,r=n.alertType,s=n.alertInfo;if(s[m[r]]){var o,l=null===(o=Object.values(s[m[r]]))||void 0===o?void 0:o.some((function(e){return!e&&0!==e}));return l?a(new Error("请设置提醒时间")):a()}return a(new Error("请设置提醒时间"))};return{rules:{name:[{required:!0,message:"请输入任务名称",trigger:"blur"}],alertInfo:[{required:!0,trigger:"blur",validator:t}],materialList:[{required:!0,trigger:"blur",validator:d["l"]}]},formData:{name:"",materialList:[{mediaType:l["fc"],content:""}],alertType:this.dealDefaultAlertType(),alertInfo:Object(h["h"])(l["I"])},RULE_PERFORM_TYPE:l["Tc"],SOP_TYPE:l["ed"],ruleIndex:-1,hasExpired:!1}},computed:{sopType:function(){return this.sopInfo.sopType}},created:function(){},mounted:function(){},methods:{handleClose:function(){this.$emit("update:visible",!1)},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){if(t){var i=e.dealRuleInfo();if(!i)return;if(!i.materialList.length)return void e.msgWarn("请设置发送内容");var a=Object(s["a"])({},e.sopForm),n=Object(r["a"])(null===a||void 0===a?void 0:a.ruleList)||[],o=e.ruleIndex;o>-1?n.splice(o,1,i):n.push(i),e.sopType===l["ed"]["groupCalendar"]&&(n=n.sort((function(e,t){var i=A()(e.alertData2).valueOf(),a=A()(t.alertData2).valueOf();return i-a}))),a.ruleList=n,e.$emit("update:sopForm",a),e.resetForm(),e.handleClose()}}))},dealDefaultAlertType:function(){switch(this.sopType){case l["ed"]["timing"]:case l["ed"]["newCustomer"]:return l["Tc"]["hourMinute"];case l["ed"]["activity"]:case l["ed"]["groupCalendar"]:return l["Tc"]["time"];case l["ed"]["birthday"]:return l["Tc"]["dayTime"];case l["ed"]["cycle"]:return l["Tc"]["everydayTime"];default:return l["Tc"]["hourMinute"]}},resetForm:function(){this.formData={name:"",materialList:[{mediaType:l["fc"],content:""}],alertType:this.dealDefaultAlertType(),alertInfo:Object(h["h"])(l["I"]),alertData1:void 0,alertData2:void 0},this.hasExpired=!1,this.ruleIndex=-1},dealRuleInfo:function(){var e=this.formData,t=Object(s["a"])({},e),i=e.alertInfo[m[e.alertType]];switch(e.alertType){case l["Tc"]["hourMinute"]:t.alertData1=null===i||void 0===i?void 0:i.hour,t.alertData2=null===i||void 0===i?void 0:i.minute;break;case l["Tc"]["dayTime"]:t.alertData1=null===i||void 0===i?void 0:i.day,t.alertData2=null===i||void 0===i?void 0:i.time;break;case l["Tc"]["everydayTime"]:t.alertData2=i;break;case l["Tc"]["everyWeekTime"]:t.alertData1=null===i||void 0===i?void 0:i.week,t.alertData2=null===i||void 0===i?void 0:i.time;break;case l["Tc"]["everyMonthTime"]:t.alertData1=null===i||void 0===i?void 0:i.month,t.alertData2=null===i||void 0===i?void 0:i.time;break;case l["Tc"]["time"]:if(new Date(i).getTime()<Date.now())return this.$message({showClose:!0,message:"提醒时间不能早于当前时间",type:"warning"}),null;t.alertData2=i;break;case l["Tc"]["beforeDayTime"]:t.alertData1=null===i||void 0===i?void 0:i.day,t.alertData2=null===i||void 0===i?void 0:i.time;break}return t},getRemoveList:function(e){var t=Object(s["a"])({},this.formData);t.delMaterialList=[].concat(Object(r["a"])(t.delMaterialList||[]),Object(r["a"])(e.map((function(e){return e.id})))),this.formData=t},handleDelRule:function(){var e=this;this.$emit("handleDelRule",this.ruleIndex,this.formData,(function(){e.handleClose()}))}}},v=g,b=(i("7f9e"),i("2877")),y=Object(b["a"])(v,a,n,!1,null,"44e134f8",null);t["default"]=y.exports},1640:function(e,t,i){"use strict";i("2e17")},1681:function(e,t,i){},1698:function(e,t,i){"use strict";i.d(t,"d",(function(){return a})),i.d(t,"b",(function(){return n})),i.d(t,"a",(function(){return r})),i.d(t,"e",(function(){return s})),i.d(t,"c",(function(){return o}));var a=2,n=2e3,r="businessId",s=0,o={previous:1,after:2}},"16c3":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("RightContainer",{attrs:{"config-keys":["contactSecret"],"page-title":"查看客户信息"},scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{inline:!0,model:e.query,"label-width":"100px",size:"small"}},[i("el-form-item",{attrs:{prop:"name"}},[i("el-input",{attrs:{placeholder:"请输入客户名称/备注"},model:{value:e.query.name,callback:function(t){e.$set(e.query,"name",t)},expression:"query.name"}})],1),i("el-form-item",{attrs:{prop:"status"}},[i("el-select",{attrs:{placeholder:"请选择客户状态",clearable:""},model:{value:e.query.status,callback:function(t){e.$set(e.query,"status",t)},expression:"query.status"}},e._l(e.customerStatus,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),i("el-form-item",[i("div",{staticClass:"tag-input",on:{click:function(t){e.dialogVisibleSelectUser=!0}}},[e.queryUser.length?e._l(e.queryUser,(function(t,a){return i("el-tag",{key:a,attrs:{type:"info"}},[e._v(e._s(t.name))])})):i("span",{staticClass:"tag-place"},[e._v("请选择员工")])],2)]),i("el-form-item",[i("div",{staticClass:"tag-input",on:{click:e.showTagDialog}},[e.queryTag.length?e._l(e.queryTag,(function(t,a){return i("el-tag",{key:a,attrs:{type:"info",closable:""},on:{close:function(i){return e.deleteTag(t)}}},[e._v(e._s(t.name||t.tagName))])})):i("span",{staticClass:"tag-place"},[e._v("请选择标签")])],2)]),i("el-form-item",[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"daterange","picker-options":e.pickerOptions,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),i("el-form-item",{attrs:{label:" "}},[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.onSearch()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetForm()}}},[e._v("重置")]),i("el-button",{staticClass:"btn-reset",on:{click:function(t){return e.openAdvancedScreening()}}},[i("div",{staticClass:"screening"},[i("svg-icon",{attrs:{"icon-class":"screening","class-name":"screening-icon"}}),i("span",[e._v("高级筛选")])],1)])],1)],1)]},proxy:!0},{key:"show-search-value",fn:function(){return[i("div",{staticClass:"search-value"},e._l(e.showSearchValueList,(function(t,a){return i("el-tag",{key:a,attrs:{closable:"",type:"info",size:"medium"},on:{close:function(i){return e.handleClose(a,t)}}},[e._v(" "+e._s(t.showLabel)+" ")])})),1)]},proxy:!0},{key:"data-stat",fn:function(){return[i("div",{staticClass:"total-text"},[i("div",[e._v(" 共 "),i("span",{staticClass:"theme-text-color"},[e._v(e._s(e.total))]),e._v(" 个客户 ")]),i("div",[e._v(" 去重后 "),i("span",{staticClass:"theme-text-color"},[e._v(e._s(e.ignoreDuplicateCount))]),e._v(" 个客户 "),i("el-popover",{attrs:{placement:"top-start",trigger:"hover","popper-class":"tip-popover"}},[i("div",[e._v(" 若客户添加多个员工,不重复计数 ")]),i("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"14px"},attrs:{slot:"reference"},slot:"reference"})])],1)])]},proxy:!0},{key:"operate-btn",fn:function(){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:customer:sync"],expression:"['customerManage:customer:sync']"},{name:"preventReClick",rawName:"v-preventReClick"}],on:{click:e.sync}},[e._v("同步客户")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:customer:makeTag"],expression:"['customerManage:customer:makeTag']"}],on:{click:function(t){return e.makeTag("add")}}},[e._v("批量打标签")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:customer:removeTag"],expression:"['customerManage:customer:removeTag']"}],on:{click:function(t){return e.makeTag("remove")}}},[e._v("批量移除标签")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:customer:export"],expression:"['customerManage:customer:export']"}],on:{click:e.exportCustomer}},[e._v("导出客户")]),i("el-button",{on:{click:e.syncKhQy}},[e._v("同步企业")])]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",attrs:{data:e.list,"tooltip-effect":"dark","highlight-current-row":""},on:{"selection-change":e.handleSelectionChange}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{text:"暂无数据",desc:"若首次加载,请耐心等待后台数据同步,稍后回来","desc-show-condition":{name:e.query.name,userIds:e.query.userIds,tagIds:e.query.tagIds,beginTime:e.query.beginTime,endTime:e.query.endTime},"desc-config":[]}})],1),i("el-table-column",{key:"row-1",attrs:{selectable:e.checkSelectable,type:"selection",align:"center",width:"55"}}),i("el-table-column",{key:"row-2",attrs:{label:"客户",prop:"name",align:"left",fixed:"","min-width":"280"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",{staticClass:"customer-info cp",on:{click:function(t){return e.goRoute(a)}}},[i("img",{attrs:{src:a.avatar}}),i("div",{staticClass:"customer-name"},[i("div",{staticClass:"inoneline",attrs:{title:(a.remark||a.name||a.alias)+e.renderUserInfo(a)}},[i("span",[e._v(e._s(a.remark||a.name||a.alias))]),i("span",{class:a.type===e.wxType?"wx-type-flag":"corp-type-name"},[e._v(e._s(e.renderUserInfo(a)))])]),i("div",{staticClass:"customer-real-name inoneline",attrs:{title:a.name}},[e._v(e._s(a.name))])])])]}}])}),e._l(e.columnList,(function(t,a){return i("el-table-column",{key:a+"-"+t.id,attrs:{label:t.name,prop:"name",align:"left","min-width":"200"},scopedSlots:e._u([{key:"header",fn:function(){return["status"===t.id?i("div",[i("span",[e._v("客户状态")]),i("el-popover",{attrs:{placement:"top-start",trigger:"hover","popper-class":"tip-popover"}},[i("div",[i("div",[e._v("1. 已流失:客户已将所属员工删除或拉黑")]),i("div",[e._v("2. 转接中:在职员工或离职员工的客户已分配给其他员工,待添加被继承人")]),i("div",[e._v("3. 待继承:离职员工的客户,等待被分配给在职员工")])]),i("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"14px"},attrs:{slot:"reference"},slot:"reference"})])],1):"tag"===t.id?i("div",[i("span",[e._v(e._s(t.name))]),i("el-popover",{attrs:{placement:"top-start",trigger:"hover","popper-class":"tip-popover"}},[i("div",[i("div",[e._v("受限于企微官方规则,仅展示客户被打上的企业标签,个人标签不可见")])]),i("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"14px"},attrs:{slot:"reference"},slot:"reference"})])],1):i("span",[e._v(" "+e._s(t.name)+" ")])]},proxy:!0},{key:"default",fn:function(a){var n=a.row;return["createTime"===t.id?i("div",[e._v(" "+e._s(n.createTime||"")+" ")]):"userName"===t.id?i("div",[i("div",{staticClass:"al"},[i("div",{staticClass:"cus-owner"},[e._v(e._s(n.userName||""))]),i("div",{staticClass:"cus-dept"},[e._v(e._s(n.department||""))])])]):"tag"===t.id?i("div",e._l(n.weFlowerCustomerTagRels,(function(t,a){return i("el-tag",{key:a,attrs:{type:"info"}},[e._v(e._s(t.tagName||t.name))])})),1):"status"===t.id?i("div",[e._v(" "+e._s(e.CUSTOMER_STATUS[n.status]||"")+" ")]):t.name===e.ADD_WAY?i("div",[e._v(" "+e._s(e.ADD_WAY_MAP[n.addWay])+" ")]):t.name===e.GENDER?i("div",[e._v(" "+e._s(e.SCREENING_GENDER_TYPE[n.gender])+" ")]):i("div",[t.type===e.CUSTOMER_PROPERTY_VALUE["sysField"]?i("div",[e._v(" "+e._s(n[e.fieldObj[t.name]])+" ")]):e._e(),[e.CUSTOMER_PROPERTY_VALUE["singleText"],e.CUSTOMER_PROPERTY_VALUE["mulText"],e.CUSTOMER_PROPERTY_VALUE["dateField"]].includes(t.type)?i("div",[e._v(" "+e._s(e.dealShowText(t,n,"textType"))+" ")]):e._e(),[e.CUSTOMER_PROPERTY_VALUE["singleRadio"],e.CUSTOMER_PROPERTY_VALUE["selectSingle"]].includes(t.type)?i("div",[e._v(e._s(e.dealShowText(t,n,"singleType")))]):e._e(),[e.CUSTOMER_PROPERTY_VALUE["mulRadio"]].includes(t.type)?i("div",e._l(e.dealShowText(t,n,"mulType"),(function(t,a){return i("el-tag",{key:a,attrs:{type:"info"}},[e._v(e._s(t))])})),1):e._e(),t.type===e.CUSTOMER_PROPERTY_VALUE["img"]?i("div",e._l(e.dealShowText(t,n,"imgFile"),(function(e,t){return i("el-image",{key:t,staticStyle:{height:"70px",width:"70px","margin-right":"5px"},attrs:{src:e,fit:"cover","preview-src-list":[e]}})})),1):e._e(),t.type===e.CUSTOMER_PROPERTY_VALUE["file"]?i("div",{staticClass:"file-preview-list"},e._l(e.dealShowText(t,n,"fileType"),(function(t,a){return i("div",{key:a,on:{click:function(i){return e.downloadFile(t.url)}}},[e._v(e._s(t.name))])})),0):e._e()])]}}],null,!0)})})),i("el-table-column",{key:"row-3",attrs:{label:"操作",width:"80",fixed:"right"},scopedSlots:e._u([{key:"header",fn:function(){return[i("div",{staticClass:"customer-status"},[i("span",[e._v("操作")]),i("el-popover",{attrs:{placement:"top-start",trigger:"hover","popper-class":"tip-popover",content:"设置客户显示信息"}},[i("i",{staticClass:"property-setting el-icon-setting",staticStyle:{"font-size":"16px","vertical-align":"text-bottom",cursor:"pointer"},attrs:{slot:"reference"},on:{click:e.openSetting},slot:"reference"})])],1)]},proxy:!0},{key:"default",fn:function(t){var a=t.row;return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:customer:view"],expression:"['customerManage:customer:view']"}],attrs:{type:"text",size:"small"},on:{click:function(t){return e.goRoute(a)}}},[e._v("详情")])]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{disabled:e.loading,total:e.total,page:e.query.pageNum,limit:e.query.pageSize,"select-data-len":e.multipleSelection.length},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}}),i("SelectTag",{ref:"selectTag",attrs:{visible:e.dialogVisible,title:e.tagDialogType.title,selected:e.selectedTags,type:e.tagDialogType.type,"info-msg":e.tagDialogType.infoMsg,"add-tag-fn":e.showAddTagDialog,"remove-tags":e.removeTags,loading:e.tagDialogLoading},on:{"update:visible":function(t){e.dialogVisible=t},success:e.submitSelectTag}}),i("SelectUser",{attrs:{visible:e.dialogVisibleSelectUser,title:"选择添加人","selected-user-list":e.queryUser},on:{"update:visible":function(t){e.dialogVisibleSelectUser=t},success:e.selectedUser}}),i("AddTag",{attrs:{visible:e.dialogVisibleAddTag,"is-add-tag":!0,form:e.form},on:{"update:visible":function(t){e.dialogVisibleAddTag=t},success:e.addTagFn}}),i("PropertySetting",{attrs:{visible:e.properSettingVisible,data:e.showCustomerPropertyList},on:{"update:visible":function(t){e.properSettingVisible=t},"update:data":function(t){e.showCustomerPropertyList=t},getList:e.getColumnList}}),i("ExportCustomerModal",{attrs:{visible:e.exportVisible,list:e.exportPropertyList,query:e.query},on:{"update:visible":function(t){e.exportVisible=t}}}),i("AdvancedScreening",{ref:"advancedScreening",attrs:{visible:e.advancedScreeningVisible,"search-value":e.searchValue},on:{"update:visible":function(t){e.advancedScreeningVisible=t},searchByAdvanced:e.searchByAdvanced}})]},proxy:!0}])})},n=[],r=i("5530"),s=i("2909"),o=(i("99af"),i("4de4"),i("7db0"),i("c740"),i("caad"),i("a15b"),i("d81d"),i("a434"),i("b0c0"),i("e9c4"),i("b64b"),i("d3b7"),i("2532"),i("159b"),i("34e1")),l=i("4360"),c=i("b66d"),u=i("e77d"),d=i("b9b5"),p=i("c958"),f=i("aada"),A=i("ed08"),h=i("dd70"),m=i("e753"),g=i("8481"),v=i("cf45"),b=i("ace7"),y=i("989b"),_=i("fd2a"),w=i("2ef0"),C=i("e2e0"),x=i("42b0"),k={"邮箱":"email","地址":"address","描述":"description","电话":"remarkMobiles","出生日期":"birthday"},T=["addWay","gender","corpFullName"],S="来源",I="性别",E=["birthday","phone","email","address","desc"],O={name:"Customer",components:{AddTag:d["a"],SelectUser:p["a"],SelectTag:f["a"],RightContainer:c["a"],EmptyDefaultIcon:u["a"],PropertySetting:g["default"],ExportCustomerModal:b["default"],AdvancedScreening:_["default"]},mixins:[C["a"]],props:{},data:function(){return{query:{pageNum:1,pageSize:h["Ic"],name:"",userIds:"",tagIds:"",beginTime:"",endTime:"",status:null,gender:"",addWay:"",corpFullName:""},queryTag:[],queryUser:[],dateRange:[],loading:!1,isMoreFilter:!1,fromOther:!1,total:0,form:{groupName:"",weTags:[]},list:[],multipleSelection:[],dialogVisible:!1,dialogVisibleSelectUser:!1,dialogVisibleAddTag:!1,selectedGroup:"",selectedTags:[],removeTag:[],tagDialogType:{title:"",type:""},removeTags:[],customerStatus:[{label:h["C"][h["g"]],value:h["g"]},{label:h["C"][h["s"]],value:h["s"]},{label:h["C"][h["Qb"]],value:h["Qb"]},{label:h["C"][h["rd"]],value:h["rd"]},{label:h["C"][h["qd"]],value:h["qd"]}],properSettingVisible:!1,showCustomerPropertyList:[],columnList:[],CUSTOMER_PROPERTY_VALUE:h["B"],tagDialogLoading:!1,exportVisible:!1,CUSTOMER_STATUS:h["C"],ignoreDuplicateCount:0,fieldObj:k,wxType:h["Cd"],advancedScreeningVisible:!1,searchValueList:[],showSearchValueList:[],searchValue:[],ADD_WAY:S,GENDER:I,ADD_WAY_MAP:h["d"],SCREENING_GENDER_TYPE:h["Xc"]}},computed:{exportPropertyList:function(){var e=Object(s["a"])(this.$store.state.customerProperty.customerProperList)||[],t=e.filter((function(e){return e.type!==h["B"]["sysField"]&&e.status})),i=e.filter((function(e){return e.type===h["B"]["sysField"]&&e.status})),a=[{id:"customer",name:"客户"},{id:"remark",name:"备注"},{id:"source",name:"来源"},{id:"createTime",name:"添加时间"},{id:"userName",name:"所属员工"},{id:"department",name:"所属部门"},{id:"tag",name:"标签"},{id:"status",name:"客户状态"}],n=[{name:"出生日期"},{name:"电话"},{name:"邮箱"},{name:"地址"},{name:"描述"}],r=[];n.map((function(e){var t=i.findIndex((function(t){return t.name===e.name}));t>-1&&r.push(i[t])}));var o=[].concat(a,r,Object(s["a"])(t));return o}},watch:{"$store.state.customerProperty.customerProperList":function(e){this.dealShowList(e)}},beforeRouteEnter:function(e,t,i){e.meta.keepAlive=!0,i()},beforeRouteLeave:function(e,t,i){this.fromOther=!1,t.meta.keepAlive=e.path===m["b"],i()},activated:function(){this.fromOther||this.init()},created:function(){var e=this;this.$route.query&&Object.keys(this.query).forEach((function(t){e.$route.query[t]&&(e.query[t]=e.$route.query[t])})),this.init(),this.fromOther=!0,this.$store.dispatch("app/setBusininessDesc","\n <div>查看当前企业下所有客户信息,可对客户批量添加标签</div>\n ")},methods:{init:function(){this.getPropertyList(),this.getList(),this.getCount()},getPropertyList:function(){var e=this;this.$store.state.customerProperty.customerProperList&&0!==this.$store.state.customerProperty.customerProperList.length?this.dealShowList(this.$store.state.customerProperty.customerProperList):this.$store.dispatch("GetCustomerProperty").catch((function(t){e.dealShowList(e.$store.state.customerProperty.customerProperList)}))},deleteTag:function(e){var t=this.queryTag.findIndex((function(t){return t.tagId===e.tagId}));this.queryTag.splice(t,1),this.query.tagIds=this.queryTag.map((function(e){return e.tagId}))+""},getCount:function(){var e=this,t=Object(r["a"])(Object(r["a"])({},this.query),{},{status:this.query.status===h["g"]?null:this.query.status});o["d"](t).then((function(t){var i=t.data;e.ignoreDuplicateCount=(null===i||void 0===i?void 0:i.ignoreDuplicateCount)||0}))},getList:function(e){var t=this;this.dateRange?(this.query.beginTime=this.dateRange[0],this.query.endTime=this.dateRange[1]):(this.query.beginTime="",this.query.endTime=""),e&&(this.query.pageNum=e),this.loading=!0;var i=Object(r["a"])(Object(r["a"])({},this.query),{},{status:this.query.status===h["g"]?null:this.query.status});o["g"](i).then((function(e){var i=e.rows,a=e.total;t.list=i,t.total=+a,t.multipleSelection=[]})).finally((function(){t.modifyButtonStatus(),t.loading=!1}))},getListTag:function(e){var t=this;this.$store.state.listInfo.tagList.forEach((function(i){i.weTags.forEach((function(a){var n=Object(r["a"])(Object(r["a"])({},a),{},{groupName:i.groupName});e&&e(n)&&t.selectedTags.push(n)}))}))},showTagDialog:function(){this.selectedTags=Object(s["a"])(this.queryTag),this.tagDialogType={title:"选择标签",type:"query"},this.dialogVisible=!0},syncKhQy:function(){var e=this;if(!this.multipleSelection.length){var t="请选择一位客户";return"add"===type&&(t="请至少选择一位客户"),void this.msgWarn(t)}this.multipleSelection.forEach((function(t){Object(x["g"])(t.unionid).then((function(i){var a={remarkMobiles:i.data.mobile,remarkCorpName:i.data.qyName,externalUserid:t.externalUserid,userId:t.userId};Object(o["o"])(a).then((function(t){e.msgSuccess("操作成功")}))}))}))},makeTag:function(e){var t=this;if(!this.multipleSelection.length){var i="请选择一位客户";return"add"===e&&(i="请至少选择一位客户"),void this.msgWarn(i)}this.removeTags=[],this.multipleSelection.forEach((function(i){i.weFlowerCustomerTagRels.forEach((function(i){var a=t.removeTags.some((function(e){return e.tagId===i.tagId}));a||"add"!==e&&t.removeTags.push(i)}))})),"remove"!==e||0!==this.removeTags.length?(this.tagDialogType={title:"add"===e?"批量打标签":"批量移除标签",infoMsg:"add"===e?"请选择要为已勾选客户打上的标签":"以下选中的标签,将从已勾选客户下移除",type:e},this.dialogVisible=!0):this.msgError("该客户没有标签,不可进行移除")},sync:function(){var e=this,t=this.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});o["n"]().then((function(){t.close(),e.msgSuccess("后台开始同步数据,请稍后关注进度")})).catch((function(e){t.close()}))},exportCustomer:function(){this.exportVisible=!0},selectedUser:function(e){this.queryUser=e,this.query.userIds=e.map((function(e){return e.userId}))+""},submitSelectTag:function(e){var t=this;if("query"===this.tagDialogType.type)this.query.tagIds=e.map((function(e){return e.tagId}))+"",this.queryTag=Object(s["a"])(e),this.dialogVisible=!1;else if(this.tagDialogLoading=!0,"add"===this.tagDialogType.type){var i=this.multipleSelection.map((function(t){return{externalUserid:t.externalUserid,userId:t.userId,addTag:e}}));o["l"](i).then((function(){t.tagDialogLoading=!1,t.msgSuccess("操作成功"),t.dialogVisible=!1,t.getList()})).catch((function(){t.tagDialogLoading=!1}))}else{var a={customerList:this.multipleSelection.map((function(e){return{externalUserid:e.externalUserid,userId:e.userId}})),weTagIdList:e.map((function(e){return e.tagId}))};o["m"](a).then((function(){t.tagDialogLoading=!1,t.msgSuccess("操作成功"),t.dialogVisible=!1,t.getList()})).catch((function(){t.tagDialogLoading=!1}))}},resetForm:function(){this.dateRange=[],this.queryTag=[],this.queryUser=[],this.selectedTags=[],this.$refs["queryForm"].resetFields(),this.query=this.$options.data().query,this.resetAdvanced(),this.getList(1),this.getCount()},resetAdvanced:function(){this.searchValueList=[],this.showSearchValueList=[],this.$refs["advancedScreening"].reset()},handleSelectionChange:function(e){this.multipleSelection=e},handleSelection:function(e,t){var i=this;this.$nextTick((function(){i.$refs.table.clearSelection(),i.$refs.table.toggleRowSelection(t,!0)}))},goRoute:function(e){Object(A["l"])(this.$router,"customerDetail",this.query,{id:e.externalUserid,userId:e.userId,dimissionTime:e.dimissionTime,prePageType:"customer"})},showAddTagDialog:function(e){this.form=JSON.parse(JSON.stringify(Object(r["a"])({weTags:[]},e))),this.dialogVisibleAddTag=!0},addTagFn:function(e){var t=function(t){return e.find((function(e){return e.groupName===t.groupName&&e.name===t.name}))};this.getListTag(t),this.form={groupName:"",weTags:[]}},openSetting:function(){this.properSettingVisible=!0},dealShowList:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$store.state.customerProperty.customerProperList,i=[{id:"createTime",name:"添加时间"},{id:"userName",name:"所属员工"},{id:"tag",name:"标签"},{id:"status",name:"客户状态"},{id:"addWay",name:"来源"},{id:"gender",name:"性别"}];this.showCustomerPropertyList=[].concat(i,Object(s["a"])(t.filter((function(e){return e.status}))));var a=[],n=[],r=window.localStorage.getItem("showCustomerProperty-".concat(l["a"].getters.userId,"-").concat(l["a"].getters.corpId));n=r||""===r?r.split(","):["createTime","userName","tag","status"],this.showCustomerPropertyList&&this.showCustomerPropertyList.length>0?this.showCustomerPropertyList.map((function(e){n.includes(e.id)&&a.push(e)})):n.map((function(e){a.push({id:e})})),this.columnList=[].concat(a),this.$nextTick((function(){e.$refs.table&&e.$refs.table.doLayout()}))},getColumnList:function(){this.dealShowList()},dealShowText:function(e,t,i){var a;return null===(a=Object(v["s"])(e,t,i))||void 0===a?void 0:a.value},onSearch:function(){var e=[];this.showSearchValueList.filter((function(e){return!T.includes(e.field)&&!E.includes(e.field)})).forEach((function(t){t.type===h["B"]["selectSingle"]||t.type===h["B"]["dateField"]?e.push({extendPropertyId:t.field,propertyValue:t.value.join(","),propertyType:t.type}):e.push({extendPropertyId:t.field,propertyValue:t.value,propertyType:t.type})})),this.query=Object(r["a"])(Object(r["a"])({},this.query),{},{extendProperties:e}),this.getList(1),this.getCount()},downloadFile:function(e){Object(y["a"])(e)},renderUserInfo:function(e){return Object(v["o"])(e)},openAdvancedScreening:function(){var e=this;this.advancedScreeningVisible=!0;var t=[],i=["name","status","userIds","tagIds","addTime"];i.forEach((function(i){switch(i){case"userIds":t.push({field:i,value:e.queryUser});break;case"tagIds":t.push({field:i,value:e.queryTag});break;case"addTime":t.push({field:i,value:e.dateRange});break;default:t.push({field:i,value:e.query[i]});break}})),this.searchValue=[].concat(t,Object(s["a"])(this.searchValueList))},handleClose:function(e,t){Object(w["find"])(this.searchValueList,{field:t.field}).value=void 0,this.showSearchValueList.splice(e,1),(T.includes(t.field)||E.includes(t.field))&&(this.query[t.field]=""),this.onSearch()},searchByAdvanced:function(e,t){var i=this;e.forEach((function(e){i.query[e.field]=e.value,"userIds"===e.field&&(i.queryUser=e.value,i.query.userIds=e.value.map((function(e){return e.userId}))+""),"tagIds"===e.field&&(i.queryTag=e.value,i.query.tagIds=i.queryTag.map((function(e){return e.tagId}))+""),e.type===h["B"]["dateField"]&&(i.dateRange=e.value,delete i.query.addTime)})),[].concat(T,E).forEach((function(e){i.query[e]=""})),this.searchValueList=t.map((function(e){if(T.includes(e.field)||E.includes(e.field)){var t="addWay"===e.field||"gender"===e.field||"birthday"===e.field;i.query[e.field]=t?e.value.join(","):e.value}var a=e.value;return e.type===h["B"]["dateField"]&&(a=a.join("~")),e.type===h["B"]["selectSingle"]&&(a=i.dealMultipleOption(e.value,e.options)),Object(r["a"])(Object(r["a"])({},e),{},{showLabel:e.label+": "+a})})),this.showSearchValueList=Object(w["cloneDeep"])(this.searchValueList),this.onSearch()},dealMultipleOption:function(e,t){var i=[];return e.forEach((function(e){i.push(Object(w["find"])(t,(function(t){return t.value===e})).label)})),i.join("、")},checkSelectable:function(e){return e.status!==h["qd"]}}},B=O,L=(i("eb20"),i("2877")),D=Object(L["a"])(B,a,n,!1,null,"37b1d9b3",null);t["default"]=D.exports},1737:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.item.type===e.RADIO_COMPONENT?i("RadioComponent",{key:e.item.id,attrs:{component:e.item}}):e._e(),e.item.type===e.CHECKBOX_COMPONENT?i("CheckBoxComponent",{key:e.item.id,attrs:{component:e.item}}):e._e(),e.item.type===e.SELECT_COMPONENT?i("SelectComponent",{key:e.item.id,attrs:{component:e.item}}):e._e(),e.item.type===e.ONE_LINE_TEXT_COMPONENT||e.item.type===e.MANY_LINE_TEXT_COMPONENT?i("OneLineTextComponent",{key:e.item.id,attrs:{component:e.item}}):e._e(),e.item.type===e.DATE_TIME_COMPONENT?i("DataTimeComponent",{key:e.item.id,attrs:{component:e.item}}):e._e(),e.item.type===e.SCORE_COMPONENT?i("ScoreComponent",{key:e.item.id,attrs:{component:e.item}}):e._e(),e.item.type===e.NPS_COMPONENT?i("NpsComponent",{key:e.item.id,attrs:{component:e.item}}):e._e(),e.item.type===e.TEXT_COMPONENT||e.item.type===e.IMAGE_COMPONENT||e.item.type===e.CAROUSEL_COMPONENT?i("ShowComponent",{key:e.item.id,attrs:{component:e.item}}):e._e(),i("DisplayCondition",{attrs:{component:e.item},on:{updateComponentItem:e.updateComponentItem}})],1)},n=[],r=i("5530"),s=i("dd70"),o=i("81f6"),l=i("c7d8"),c=i("63db"),u=i("edb4"),d=i("7500"),p=i("f922"),f=i("36a4"),A=i("8247"),h=i("0ec5"),m=i("cc38"),g={components:{DisplayCondition:m["default"],RadioComponent:l["default"],CheckBoxComponent:c["default"],SelectComponent:u["default"],OneLineTextComponent:d["default"],DataTimeComponent:p["default"],ScoreComponent:f["default"],NpsComponent:A["default"],ShowComponent:h["default"]},data:function(){return{item:{},RADIO_COMPONENT:s["Rc"],CHECKBOX_COMPONENT:s["p"],SELECT_COMPONENT:s["Zc"],ONE_LINE_TEXT_COMPONENT:s["Fc"],MANY_LINE_TEXT_COMPONENT:s["Sb"],DATE_TIME_COMPONENT:s["H"],SCORE_COMPONENT:s["Wc"],NPS_COMPONENT:s["Bc"],TEXT_COMPONENT:s["nd"],IMAGE_COMPONENT:s["Bb"],CAROUSEL_COMPONENT:s["m"]}},mounted:function(){var e=this;o["a"].$on("clickComponents",(function(t){e.item=Object(r["a"])({},t)})),o["a"].$on("chooseComponents",(function(t){e.item=Object(r["a"])({},t)}))},beforeDestroy:function(){o["a"].$off("clickComponents"),o["a"].$off("chooseComponents")},methods:{updateComponentItem:function(e){this.item=Object(r["a"])(Object(r["a"])({},this.item),{},{ruleList:e})}}},v=g,b=(i("a9f9"),i("2877")),y=Object(b["a"])(v,a,n,!1,null,"f099d1ba",null);t["default"]=y.exports},1759:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"wrap"},[a("ReturnPage",{attrs:{path:"/operationsCenter/drainageCode/newCustomer"}}),a("div",{staticClass:"wrap-body"},[a("el-alert",{attrs:{title:"功能说明",type:"info",description:"客户扫描生成的新客进群活码,将被随机分配一个员工,添加员工后,会自动被打上预设的客户标签等,同时收到入群引导语和群活码,客户扫码进群完成引流。","show-icon":"",closable:!1}}),a("div",{staticClass:"wrap-body-form"},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[a("p",{staticClass:"config-title"},[e._v("基础设置")]),a("el-form-item",{attrs:{label:"活码名称",prop:"scenario"}},[a("el-input",{attrs:{maxlength:"32","show-word-limit":"",placeholder:"请填写活码使用场景,方便区分",clearable:""},model:{value:e.form.scenario,callback:function(t){e.$set(e.form,"scenario",t)},expression:"form.scenario"}})],1),a("el-form-item",{attrs:{label:"使用员工",prop:"weEmpleCodeUseScops"}},[a("div",{staticClass:"flexw"},[a("el-button",{staticClass:"mr10 mb5",attrs:{plain:"",icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.dialogVisibleSelectUser=!0}}},[e._v(e._s(e.users.length?"修改":"添加")+"成员")]),e._l(e.users,(function(t,i){return a("el-tag",{key:i,staticClass:"user-tag aic mb5",attrs:{closable:"",size:"medium"},on:{close:function(t){return e.handleClose(i)}}},[a("TagUserShow",{attrs:{name:t.businessName,"show-icon":t.businessIdType===e.SCOPELIST_TYPE.DEPARTMENT}})],1)}))],2)]),a("el-form-item",{attrs:{label:"客户标签"}},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.tagFlag,callback:function(t){e.$set(e.form,"tagFlag",t)},expression:"form.tagFlag"}}),a("span",{staticClass:"we-emple-code-tags-tip"},[e._v("开启后,根据使用场景做标记,自动为扫码添加的客户打上标签")])],1),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.form.tagFlag,expression:"form.tagFlag"}],attrs:{label:"",prop:"tags"}},[a("el-button",{staticClass:"mr10",attrs:{plain:"",icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.dialogVisibleSelectTag=!0}}},[e._v("添加标签")]),e._l(e.tags,(function(t,i){return a("el-tag",{key:i,attrs:{closable:"",size:"medium"},on:{close:function(i){return e.deleteTag(t)}}},[e._v(e._s(t.tagName))])}))],2),a("el-form-item",{attrs:{label:"客户备注"}},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.isAutoSetRemark,callback:function(t){e.$set(e.form,"isAutoSetRemark",t)},expression:"form.isAutoSetRemark"}}),a("span",{staticClass:"we-emple-code-tags-tip"},[e._v("开启后,为扫码添加的客户修改备注,方便查看来源")]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.form.isAutoSetRemark,expression:"form.isAutoSetRemark"}],staticClass:"remark"},[a("el-alert",{attrs:{title:"客户备注最多可设置20个字符,客户原昵称较长时可能导致设置失败",type:"warning",closable:!1}}),a("el-form-item",{attrs:{label:"备注位置","label-width":"68px"}},[a("el-radio-group",{model:{value:e.form.remarkType,callback:function(t){e.$set(e.form,"remarkType",t)},expression:"form.remarkType"}},[a("el-radio",{attrs:{label:e.REMARK_TYPE["previous"]}},[e._v("在昵称前")]),a("el-radio",{attrs:{label:e.REMARK_TYPE["after"]}},[e._v("在昵称后")])],1),a("br"),a("el-form-item",{attrs:{prop:"remarkName"}},[a("el-input",{attrs:{placeholder:"请输入备注",maxlength:20,"show-word-limit":""},model:{value:e.form.remarkName,callback:function(t){e.$set(e.form,"remarkName",t)},expression:"form.remarkName"}},[e.form.remarkType===e.REMARK_TYPE["after"]?a("template",{slot:"prepend"},[e._v("客户昵称-")]):e._e(),e.form.remarkType===e.REMARK_TYPE["previous"]?a("template",{slot:"append"},[e._v("-客户昵称")]):e._e()],2)],1)],1)],1)],1),a("p",{staticClass:"config-title",staticStyle:{"margin-bottom":"16px"}},[e._v(" 欢迎语"),a("span",[e._v("引导客户进群,扫码添加的客户将自动接收到加群引导语和群活码")])]),a("el-alert",{attrs:{type:"warning",closable:!1}},[[a("div",[e._v(" 1. 若使用人员已在企业微信后台或其他第三方应用设置了欢迎语,则此处欢迎语不生效"),a("br"),e._v(" 2. 设置新客进群前,请先在【客户群活码】设置群活码信息 ")])]],2),a("el-form-item",{attrs:{label:"类型",prop:"welcomeMsgType"}},[a("el-radio-group",{on:{change:e.welcomeMsgTypeChange},model:{value:e.form.welcomeMsgType,callback:function(t){e.$set(e.form,"welcomeMsgType",t)},expression:"form.welcomeMsgType"}},[a("el-radio",{attrs:{label:e.NORMAL_WORD}},[e._v("普通引导语")]),a("el-radio",{attrs:{label:e.ACTIVE_WORD}},[e._v("活动引导语")])],1)],1),e.form.welcomeMsgType===e.NORMAL_WORD?a("div",[a("el-form-item",{attrs:{label:"加群引导语",prop:"welcomeMsg"}},[a("el-input",{attrs:{type:"textarea",maxlength:e.welMsgMaxlength,"show-word-limit":"",autosize:{minRows:5,maxRows:20},placeholder:"客户添加员工后,将收到加群引导语",clearable:""},model:{value:e.form.welcomeMsg,callback:function(t){e.$set(e.form,"welcomeMsg",t)},expression:"form.welcomeMsg"}}),a("div",{staticClass:"quick-actions"},[a("span",{on:{click:function(t){return e.handeAddTextClick("#客户昵称#")}}},[e._v("#客户昵称#")]),a("span",{on:{click:function(t){return e.handeAddTextClick("#员工姓名#")}}},[e._v("#员工姓名#")])])],1)],1):a("div",[a("el-form-item",{attrs:{label:"兑换活动",prop:"exchangeActivities"}},[a("div",[a("el-button",{staticClass:"mr10",attrs:{icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.dialogVisibleActivityPopup=!0}}},[e._v(e._s(e.activeList.length?"修改":"选择")+"活动")]),e._l(e.activeList,(function(t,i){return a("el-tag",{key:i,attrs:{size:"medium",closable:""},on:{close:e.delTag}},[e._v(e._s(t.activityName))])}))],2)]),a("el-form-item",{attrs:{label:"加群引导语",prop:"sendValue"}},[a("ReferCode",{attrs:{type:"customerAdd","code-msg":e.codeMsg,"code-material-list":e.codeMaterialList},on:{"update:codeMsg":function(t){e.codeMsg=t},"update:code-msg":function(t){e.codeMsg=t},"update:codeMaterialList":function(t){e.codeMaterialList=t},"update:code-material-list":function(t){e.codeMaterialList=t}}})],1)],1),a("el-form-item",{attrs:{label:"群活码设置",prop:"groupCodeId"}},[a("div",[a("div",[a("el-button",{attrs:{type:"primary",plain:"",icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.dialogVisibleSelectQrCode=!0}}},[e._v(e._s(e.groupQrCode&&e.groupQrCode.codeUrl?"修改":"选择")+"群活码")])],1),e.groupQrCode&&e.groupQrCode.codeUrl?a("div",{staticClass:"qrcode-preview"},[a("div",[a("el-image",{staticClass:"code-image mr10",attrs:{src:e.groupQrCode.codeUrl}})],1),a("div",[a("p",{staticClass:"qrcode-title"},[e._v(e._s(e.groupQrCode.activityName))]),a("p",{staticClass:"qrcode-desc"},[e._v(e._s(e.groupQrCode.activityDesc))])])]):e._e()])]),a("p",{staticClass:"config-title",staticStyle:{"margin-bottom":"16px"}},[e._v("添加客户设置")]),a("el-alert",{attrs:{title:"若员工在客户端设置 -> 隐私中开启了“加我为联系人”不需要验证,则该功能将失效",type:"warning",closable:!1}}),a("el-form-item",{attrs:{label:"自动通过",prop:"skipVerify"}},[a("div",[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.isAutoPass,callback:function(t){e.$set(e.form,"isAutoPass",t)},expression:"form.isAutoPass"}}),a("span",{staticClass:"we-emple-code-tags-tip"},[e._v("开启后,客户扫码添加使用人员时无需确认,自动同意添加请求")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:e.form.isAutoPass,expression:"form.isAutoPass"}],staticClass:"add-time"},[a("el-alert",{attrs:{title:"在生效时段外,客户扫码添加,需要使用人员手动同意添加请求",type:"warning",closable:!1}}),a("el-form-item",{attrs:{label:"生效时间段","label-width":"82px"}},[a("el-radio-group",{model:{value:e.form.skipVerify,callback:function(t){e.$set(e.form,"skipVerify",t)},expression:"form.skipVerify"}},[a("el-radio",{attrs:{label:1}},[e._v("全天")]),a("el-radio",{attrs:{label:2}},[e._v("选择时间段")])],1),a("br"),2===e.form.skipVerify?a("el-time-picker",{attrs:{"is-range":"","value-format":"HH:mm",format:"HH:mm","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",placeholder:"选择时间范围"},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}}):e._e()],1)],1)])],1),a("div",{staticClass:"preview-wrap"},[a("el-image",{staticStyle:{width:"180px",height:"180px"},attrs:{src:e.form.qrCode||i("677a"),fit:"fit"}}),a("div",{staticClass:"tip mb20"},[e._v("活码预览")]),e.form.welcomeMsgType===e.NORMAL_WORD?a("PhoneDialog",{attrs:{message:e.form.welcomeMsg,"is-other":!(!e.groupQrCode||!e.groupQrCode.codeUrl)}},[a("el-image",{staticClass:"phone-dialog-image",attrs:{src:e.groupQrCode.codeUrl,fit:"fit"}})],1):e._e()],1)],1)],1),a("div",{staticClass:"wrap-footer"},[a("RequestButton",{attrs:{type:"primary","request-method":e.submit,"button-type":"save"}},[e._v("保存")])],1),a("SelectUser",{key:e.form.codeType,attrs:{visible:e.dialogVisibleSelectUser,title:"选择使用员工","is-only-leaf":2!==e.form.codeType,"is-sigle-select":1==e.form.codeType,"selected-user-list":e.form.weEmpleCodeUseScops||[],"department-id-key":e.DEPARTMENT_ID_KEY},on:{"update:visible":function(t){e.dialogVisibleSelectUser=t},success:e.submitSelectUser}}),a("ActivityPopup",{attrs:{visible:e.dialogVisibleActivityPopup,"selected-active-list":e.activeList},on:{"update:visible":function(t){e.dialogVisibleActivityPopup=t},success:e.selectedActivity}}),a("SelectTag",{attrs:{visible:e.dialogVisibleSelectTag,selected:e.tags,"is-show-add":!0,type:"search","info-msg":"通过新客进群任务的活码添加员工的客户,将被自动打上选中的标签"},on:{"update:visible":function(t){e.dialogVisibleSelectTag=t},success:e.submitSelectTag}}),a("SelectQrCode",{attrs:{visible:e.dialogVisibleSelectQrCode,selected:e.codes},on:{"update:visible":function(t){e.dialogVisibleSelectQrCode=t},success:e.submitSelectQrCode}})],1)},n=[],r=i("5530"),s=i("2909"),o=(i("c740"),i("d81d"),i("a434"),i("b0c0"),i("dca8"),i("b64b"),i("d3b7"),i("159b"),i("c3f8")),l=i("62db"),c=i("52a9"),u=i("cf45"),d=i("8bd5"),p=i("c958"),f=i("aada"),A=i("07e5"),h=i("dd70"),m=i("1698"),g=i("515a"),v=i("5db3"),b=i("b85a"),y=2,_=2,w={components:{PhoneDialog:d["a"],SelectTag:f["a"],SelectUser:p["a"],SelectQrCode:A["a"],ActivityPopup:b["a"],RequestButton:c["a"],TagUserShow:g["a"],ReferCode:v["a"]},data:function(){var e=this;return{NORMAL_WORD:h["xc"],ACTIVE_WORD:h["a"],newGroupId:"",dialogVisibleSelectUser:!1,dialogVisibleSelectTag:!1,dialogVisibleSelectQrCode:!1,loading:!1,form:{codeType:_,scenario:"",weEmpleCodeUseScops:[],welcomeMsg:"",groupCodeId:void 0,tagList:[],remarkType:m["c"]["previous"],skipVerify:1,welcomeMsgType:h["xc"]},welMsgMaxlength:m["b"],time:["00:00","23:59"],tags:[],users:[],codes:[],groupQrCode:{},qrCode:"",rules:Object.freeze({scenario:[{required:!0,message:"该项为必填项",trigger:"blur"}],weEmpleCodeUseScops:[{required:!0,message:"该项为必填项",trigger:"blur"}],tagList:[{required:!0,message:"该项为必填项",trigger:"change"}],groupCodeId:[{required:!0,message:"该项为必填项",trigger:"blur"}],welcomeMsg:[{required:!0,message:"该项为必填项",trigger:"blur"}],remarkName:[{validator:function(t,i,a){!e.form.isAutoSetRemark||i&&i.length?a():a(new Error("请输入备注"))},trigger:"blur"}],exchangeActivities:[{type:"object",required:!0,validator:function(t,i,a){e.activeList.length?a():(e.msgError("请选择兑换活动"),a(new Error("该项为必填项")))}}]}),SCOPELIST_TYPE:h["Uc"],DEPARTMENT_ID_KEY:m["a"],REMARK_TYPE:m["c"],activeList:[],dialogVisibleActivityPopup:!1,codeMaterialList:{codeSuccessMaterialList:[],codeFailMaterialList:[],codeRepeatMaterialList:[]},codeMsg:{codeSuccessMsg:"",codeFailMsg:"",codeRepeatMsg:""}}},watch:{tags:function(e){this.form.weEmpleCodeTags=Object(s["a"])(e)},users:function(e){var t=this;this.form.weEmpleCodeUseScops=e.map((function(e){return Object(r["a"])(Object(r["a"])({},e),{},{id:void 0,businessId:e.businessId,businessIdType:e.businessIdType,businessName:e.businessName})})),setTimeout((function(){return t.$refs.form.validateField("weEmpleCodeUseScops")}),0)}},created:function(){this.newGroupId=this.$route.query.id,this.newGroupId&&this.getDetail(this.newGroupId),this.$route.meta.title=(this.newGroupId?"编辑":"新建")+"新客进群"},beforeUpdate:function(){var e=Object(r["a"])(Object(r["a"])({},this.$options.data().form),{},{isAutoPass:0,activeList:this.$options.data().activeList,codeMaterialList:this.$options.data().codeMaterialList,codeMsg:this.$options.data().codeMsg,isAutoSetRemark:0,tagFlag:0}),t=Object(r["a"])(Object(r["a"])({},this.form),{},{activeList:this.activeList,codeMaterialList:this.codeMaterialList,codeMsg:this.codeMsg});Object(u["k"])(e,t)},methods:{getDetail:function(e){var t=this;this.loading=!0,Object(o["d"])(e).then((function(e){var i,a=e.data;t.form=a;var n=a.scenario,s=a.skipVerify,o=a.welcomeMsg;if(t.form.weEmpleCodeUseScops=null===a||void 0===a||null===(i=a.weEmpleCodeUseScops)||void 0===i?void 0:i.map((function(e){return Object(r["a"])(Object(r["a"])({},e),{},{name:e.businessName,userId:e.businessIdType===h["Uc"]["USER"]?e.businessId:void 0})})),t.form=Object(r["a"])(Object(r["a"])({},t.form),{},{scenario:n||"",skipVerify:s||0,welcomeMsg:o||""}),t.time=[a.effectTimeOpen||"00:00",a.effectTimeClose||"00:00"],a.weGroupCode&&a.weGroupCode.id?(t.codes=[a.weGroupCode],t.groupQrCode=a.weGroupCode,t.form.groupCodeId=a.weGroupCode.id):(t.codes=[],t.groupQrCode={},t.form.groupCodeId=""),t.tags=a.weEmpleCodeTags||[],t.users=a.weEmpleCodeUseScops||[],t.groupQrCode=a.weGroupCode||{},t.loading=!1,t.qrCode=a.qrCode,a.welcomeMsgType){t.activeList=[a.codeActivity]||!1;var l=a.codeSuccessMaterialList,c=a.codeRepeatMaterialList,u=a.codeFailMaterialList,d=a.codeFailMsg,p=a.codeRepeatMsg,f=a.codeSuccessMsg;t.codeMaterialList.codeSuccessMaterialList=l,t.codeMaterialList.codeFailMaterialList=u,t.codeMaterialList.codeRepeatMaterialList=c,t.codeMsg.codeSuccessMsg=f,t.codeMsg.codeFailMsg=d,t.codeMsg.codeRepeatMsg=p}}))},submitSelectUser:function(e){var t=this,i={userIds:[],departmentIds:[]};this.users=e.map((function(e){return e.userId&&i.userIds.push(e.userId),!e.userId&&i.departmentIds.push(e[m["a"]]),Object(r["a"])(Object(r["a"])({},e),{},{businessId:e[m["a"]]||e.userId,businessName:e.name,businessIdType:e.userId?y:1,mobile:e.mobile,empleCodeId:e.empleCodeId})})),i.userIds+="",i.departmentIds+="",this.newGroupId||Object(l["j"])(i).then((function(e){var i=e.data;t.$set(t.form,"qrCode",i.qr_code)}))},submitSelectTag:function(e){this.dialogVisibleSelectTag=!1,this.tags=e.map((function(e){return{tagId:e.tagId,tagName:e.name||e.tagName}}))},deleteTag:function(e){var t=this.tags.findIndex((function(t){return t.tagId===e.tagId}));this.tags.splice(t,1)},submitSelectQrCode:function(e){this.groupQrCode=e,this.form.groupCodeId=e.id,this.$refs.form.validateField("groupCodeId")},handeAddTextClick:function(e){this.form.welcomeMsg.length+e.length<=this.welMsgMaxlength&&(this.form.welcomeMsg=this.form.welcomeMsg+e)},submit:function(){var e=this;this.$refs.form.validate((function(t){if(t){if(e.form.isAutoPass&&e.form.skipVerify===m["d"]&&(e.form.effectTimeOpen=e.time[0],e.form.effectTimeClose=e.time[1]),e.form.isAutoPass||(e.form.skipVerify=m["e"]),e.form.welcomeMsgType){e.form.codeActivity=e.activeList[0];var i=e.codeMaterialList,a=i.codeFailMaterialList,n=i.codeSuccessMaterialList,s=i.codeRepeatMaterialList,l=e.codeMsg,c=l.codeFailMsg,d=l.codeSuccessMsg,p=l.codeRepeatMsg;if(e.form=Object(r["a"])(Object(r["a"])({},e.form),{},{codeSuccessMaterialList:n,codeRepeatMaterialList:s,codeFailMaterialList:a,codeFailMsg:c,codeRepeatMsg:p,codeSuccessMsg:d}),!(d||c||p))return e.msgError("请至少填写一项发送内容"),void Object(u["i"])(e.$store,"save")}e.loading=!0,e.newGroupId?Object(o["g"])(e.newGroupId,e.form).then((function(){e.$store.commit("SET_ADD_FLAG",!1),e.msgSuccess(e.qrCode!==e.form.qrCode?"活码已更新,请重新下载":"更新成功"),e.$router.back()})).finally((function(){Object(u["i"])(e.$store,"save"),e.loading=!1})):Object(o["a"])(e.form).then((function(){e.$store.commit("SET_ADD_FLAG",!0),e.msgSuccess("添加成功"),e.$router.back()})).finally((function(){Object(u["i"])(e.$store,"save"),e.loading=!1}))}else Object(u["i"])(e.$store,"save")}))},selectedActivity:function(e){this.activeList=e},delTag:function(){this.activeList=[]},welcomeMsgTypeChange:function(){var e=this;this.form.welcomeMsg="",Object.keys(this.codeMsg).forEach((function(t){e.codeMsg[t]=""})),Object.keys(this.codeMaterialList).forEach((function(t){e.codeMaterialList[t]=[]}))},handleClose:function(e){this.users.splice(e,1)}}},C=w,x=(i("cb31"),i("c2c3"),i("2877")),k=Object(x["a"])(C,a,n,!1,null,"5daa4224",null);t["default"]=k.exports},"17bd":function(e,t,i){},"17be":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"quick-demo enterprise-wechat-demo"},[a("div",{staticClass:"quick-div"},[a("el-alert",{attrs:{title:"即将为你自动创建联络易应用,并配置相关信息,若原来有创建过该应用,将会覆盖,请谨慎操作。",type:"warning","show-icon":"",closable:!1}}),a("div",{staticClass:"step-div"},[a("el-steps",{attrs:{direction:"vertical",active:e.active,"finish-status":"success"}},[e.isThirdType?e._e():a("el-step",{attrs:{title:"服务器信息"}},[a("template",{staticClass:"first-desc",slot:"description"},[a("div",{staticClass:"black tip"},[e._v("填写服务解析的域名及IP地址,域名需确保可通过该端口号访问。")]),a("div",{staticClass:"orange tip"},[e._v("(1)域名的企业主体须与当前配置企业一致,否则会导致部分功能异常。")]),a("div",{staticClass:"orange tip"},[e._v("(2)企业可信IP为WeComSystem服务器的IP地址,仅所配IP可通过接口获取企业数据。")]),a("div",{staticClass:"domain-config"},[a("div",{staticClass:"domain-item"},[a("div",{staticClass:"label"},[a("span",{staticClass:"require"},[e._v("*")]),e._v(" Sidebar ")]),a("div",{staticClass:"input-item"},[a("div",{staticClass:"domain-pre"},[e._v("域名")]),a("el-input",{staticClass:"domain-input",attrs:{placeholder:"例:http://www.easyink.net"},model:{value:e.domainConfig.sidebarDomain,callback:function(t){e.$set(e.domainConfig,"sidebarDomain",t)},expression:"domainConfig.sidebarDomain"}})],1),a("div",{staticClass:"input-item"},[a("div",{staticClass:"port-pre"},[e._v("端口号")]),a("el-input",{staticClass:"port-input",model:{value:e.domainConfig.sidebarPort,callback:function(t){e.$set(e.domainConfig,"sidebarPort",t)},expression:"domainConfig.sidebarPort"}})],1)]),a("div",{staticClass:"domain-item"},[a("div",{staticClass:"label"},[a("span",{staticClass:"require"},[e._v("*")]),e._v(" Dashboard ")]),a("div",{staticClass:"input-item"},[a("div",{staticClass:"domain-pre"},[e._v("域名")]),a("el-input",{staticClass:"domain-input",attrs:{placeholder:"例:http://www.easyink.net"},model:{value:e.domainConfig.dashboardDomain,callback:function(t){e.$set(e.domainConfig,"dashboardDomain",t)},expression:"domainConfig.dashboardDomain"}})],1),a("div",{staticClass:"input-item"},[a("div",{staticClass:"port-pre"},[e._v("端口号")]),a("el-input",{staticClass:"port-input",model:{value:e.domainConfig.dashboardPort,callback:function(t){e.$set(e.domainConfig,"dashboardPort",t)},expression:"domainConfig.dashboardPort"}})],1)]),a("div",{staticClass:"domain-item"},[a("div",{staticClass:"label"},[a("span",{staticClass:"require"},[e._v("*")]),e._v(" WeComSystem ")]),a("div",{staticClass:"input-item"},[a("div",{staticClass:"domain-pre"},[e._v("域名")]),a("el-input",{staticClass:"domain-input",attrs:{placeholder:"例:http://www.easyink.net"},model:{value:e.domainConfig.weComSystemDomain,callback:function(t){e.$set(e.domainConfig,"weComSystemDomain",t)},expression:"domainConfig.weComSystemDomain"}})],1),a("div",{staticClass:"input-item"},[a("div",{staticClass:"port-pre"},[e._v("端口号")]),a("el-input",{staticClass:"port-input",model:{value:e.domainConfig.weComSystemPort,callback:function(t){e.$set(e.domainConfig,"weComSystemPort",t)},expression:"domainConfig.weComSystemPort"}})],1)]),a("div",{staticClass:"domain-item"},[a("div",{staticClass:"label"},[a("span",{staticClass:"require"},[e._v("*")]),e._v(" 企业可信IP ")]),a("div",{staticClass:"input-item"},[a("el-input",{staticClass:"domain-textarea",attrs:{type:"textarea",placeholder:"请配置企业可信IP。IP地址以英文“;”分隔,最多120个"},model:{value:e.domainConfig.dependableIp,callback:function(t){e.$set(e.domainConfig,"dependableIp",t)},expression:"domainConfig.dependableIp"}})],1)])]),e.showNext()?a("div",[a("el-button",{attrs:{type:"primary"},on:{click:e.onNext}},[e._v("下一步")])],1):e._e()])],2),e.active>0?a("el-step",{attrs:{title:"扫码登录"}},[1===e.active?a("template",{staticClass:"scan-login",slot:"description"},[a("div",{staticClass:"orange tip"},[e._v("请使用企业微信管理员扫码登录,成功登录后将开始自动化配置")]),e.qrcodeUrl&&!e.qrcodeLoad?a("div",{staticClass:"qrcode-div"},[e.scanLoginError?a("div",{staticClass:"overdue-div"},[a("div",[a("i",{staticClass:"el-icon-warning"})]),a("div",{staticClass:"overdue-tip"},[a("span",[e._v(e._s(e.scanLoginErrText))]),e.refresh?e._e():a("span",{staticClass:"reGet",on:{click:e.reGetQrcode}},[e._v("刷新")])])]):e._e(),a("img",{attrs:{src:e.qrcodeUrl}})]):a("div",{staticClass:"qrcode-div"},[a("div",[a("i",{staticClass:"el-icon-loading"})])]),e.needCode?a("CodeValidata",{attrs:{"qrcode-key":e.qrcodeKey,tel:e.tel,"tl-key":e.tlKey},on:{loginSuccessAndConfig:e.loginSuccessAndConfig}}):e._e()],1):e._e()],2):e._e(),e.active>1?a("el-step",{attrs:{title:"自动化配置"}},[a("template",{staticClass:"auto-config",slot:"description"},[a("div",{staticClass:"orange tip"},[e._v("自动化配置期间,请勿关闭当前界面")]),a("div",{staticClass:"config-progress"},[a("el-progress",{attrs:{type:"circle",percentage:e.configPercentage,status:e.configStatus}}),"exception"===e.configStatus?a("div",{staticClass:"err-tip"},[e._v(e._s(e.configErrTip))]):e._e()],1),"exception"===e.configStatus?a("div",[a("el-button",{attrs:{type:"primary"},on:{click:e.reStartAutoConfig}},[e._v("重新配置")])],1):e._e()])],2):e._e(),e.active>2?a("el-step",{attrs:{title:"填写Secret"}},[3===e.active?a("template",{staticClass:"auto-config",slot:"description"},[a("div",{staticClass:"orange tip"},[e._v("请将企业微信客户端收到的Secret填写到表单中")]),a("div",{staticClass:"secret-config"},[a("el-form",{ref:"secretRuleForm",staticClass:"top-search",attrs:{model:e.secretConfig,rules:e.secretRuleForm,"label-width":"122px","label-position":"left"}},[a("el-form-item",{attrs:{label:"应用Secret",prop:"agentSecret"}},[a("el-input",{attrs:{placeholder:"请输入应用Secret"},model:{value:e.secretConfig.agentSecret,callback:function(t){e.$set(e.secretConfig,"agentSecret",t)},expression:"secretConfig.agentSecret"}})],1),a("el-form-item",{attrs:{label:"通讯录Secret",prop:"contactSecret"}},[a("el-input",{attrs:{placeholder:"请输入通讯录Secret"},model:{value:e.secretConfig.contactSecret,callback:function(t){e.$set(e.secretConfig,"contactSecret",t)},expression:"secretConfig.contactSecret"}})],1)],1),e.renderSave(e.secretConfig)?a("el-button",{attrs:{type:"primary"},on:{click:e.saveSecret}},[e._v("保存")]):e._e()],1)]):e._e()],2):e._e(),e.active>3?a("el-step",{attrs:{title:"配置通讯录回调"}},[a("template",{staticClass:"config-callback",slot:"description"},[a("div",{staticClass:"orange tip"},[e._v("截止当前,已完成必要配置,如需实时获取成员或部门的变更数据,则按照下图步骤在企业微信后台配置")]),a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v("(1)进入 "),a("el-link",{attrs:{type:"primary",href:"https://work.weixin.qq.com/wework_admin/frame#apps/contactsApi",target:"_blank"}},[e._v("【管理工具】-【通讯录同步】")]),e._v(" 页面。")],1),a("el-image",{staticClass:"part-img",attrs:{src:i("26b3"),"preview-src-list":[i("26b3")]}})],1),a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v(" (2)点击“已设置接收事件服务器”旁编辑按钮,"),a("span",{staticClass:"red"},[e._v("当前弹窗不要关闭,")]),e._v("此时企微客户端将收到一条企业微信团队发送的确认操作。 ")]),a("el-image",{staticClass:"part-img",attrs:{src:i("46d4"),"preview-src-list":[i("46d4")]}})],1),a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v(" (3)在客户端确认操作后,企微后台弹窗将自动切换为可编辑状态,将以下数据复制并填写到弹窗中,保存即可。 ")]),e.form?a("div",{staticClass:"content-text content-text-box"},[e.form.callbackUri?a("div",{staticClass:"copy-item"},[a("span",{staticClass:"label"},[e._v("URL:")]),a("span",[e._v(e._s(e.form.callbackUri))]),a("el-button",{directives:[{name:"copy",rawName:"v-copy",value:e.form.callbackUri,expression:"form.callbackUri"}],attrs:{size:"mini",type:"text"}},[e._v("复制")])],1):e._e(),e.form.token?a("div",{staticClass:"copy-item"},[a("span",{staticClass:"label"},[e._v("Token:")]),a("span",[e._v(e._s(e.form.token))]),a("el-button",{directives:[{name:"copy",rawName:"v-copy",value:e.form.token,expression:"form.token"}],attrs:{size:"mini",type:"text"}},[e._v("复制")])],1):e._e(),e.form.encodingAesKey?a("div",{staticClass:"copy-item"},[a("span",{staticClass:"label"},[e._v("EncodingAESKey:")]),a("span",[e._v(e._s(e.form.encodingAesKey))]),a("el-button",{directives:[{name:"copy",rawName:"v-copy",value:e.form.encodingAesKey,expression:"form.encodingAesKey"}],attrs:{size:"mini",type:"text"}},[e._v("复制")])],1):e._e()]):e._e(),a("el-image",{staticClass:"part-img",attrs:{src:i("3715"),"preview-src-list":[i("3715")]}})],1)])],2):e._e()],1)],1)],1),e.active>3?a("div",{staticClass:"btn-div"},[a("el-button",{staticStyle:{"margin-top":"12px"},attrs:{type:"primary"},on:{click:e.finishConfig}},[e._v("完成配置")])],1):e._e()])},n=[],r=i("5530"),s=i("c7eb"),o=i("1da1"),l=(i("99af"),i("50fc")),c=i("2ff4"),u=i("d368"),d=i("34e1"),p=i("14e1"),f=i("b25c"),A=i("2502"),h=i("61f7"),m=i("dd70"),g=i("376d"),v=null,b=200,y=100,_=10,w={components:{CodeValidata:g["default"]},props:{configId:{type:String,default:""},extraDrawer:{type:Boolean,default:!1},form:{type:Object,default:function(){return{}}},defaultDomain:{type:Object,default:function(){return{}}}},data:function(){return{active:0,domainConfig:{sidebarDomain:"",sidebarPort:"8092",dashboardDomain:"",dashboardPort:"8091",weComSystemDomain:"",weComSystemPort:"8090",dependableIp:""},qrcodeUrl:"",qrcodeLoad:!1,qrcodeKey:"",scanLoginError:!1,scanLoginErrText:"登录失败",configPercentage:0,timerCount:b,progressTimer:null,configStatus:"",configErrTip:"配置失败",secretRuleForm:{agentSecret:[{required:!0,message:"请输入应用Secret",trigger:"blur"}],contactSecret:[{required:!0,message:"请输入通讯录Secret",trigger:"blur"}]},secretConfig:{agentSecret:"",contactSecret:""},configLoad:!1,checkTimeStart:!0,isThirdType:this.$store.state.serverInfo&&this.$store.state.serverInfo.serverType===m["bd"],tel:"",needCode:!1,tlKey:"",refresh:!1}},computed:{},watch:{extraDrawer:function(e){e&&this.reGetQrcode(),this.checkTimeStart=e}},created:function(){},mounted:function(){this.isThirdType&&this.initConfig()},methods:{checkQrcode:function(e){var t=this;return Object(o["a"])(Object(s["a"])().mark((function i(){return Object(s["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,Object(l["b"])({qrcodeKey:e,status:"QRCODE_SCAN_NEVER"}).then((function(i){switch(i.data.status){case"QRCODE_SCAN_NEVER":break;case"QRCODE_EXPIRE":t.scanLoginError=!0,t.scanLoginErrText="二维码已过期",t.stopTimer();break;case"QRCODE_SCAN_SUCC":t.loginSuccessAndConfig();break;case"QRCODE_LOGIN_FAIL":t.scanLoginError=!0,t.scanLoginErrText="登录失败",t.stopTimer();break;case"QRCODE_LOGIN_FAIL_CORP_MISMATCH":t.dealScanInconformity();break;case"NEED_MOBILE_CONFIRM":t.stopTimer(),t.refresh=!0,t.scanLoginError=!0,t.scanLoginErrText="登录中",t.needCode=!0,t.tlKey=i.data.tlKey,t.tel=i.data.tel;break;case"WAIT_MOBILE_CONFIRM":t.stopTimer(),t.needCode=!0;break;default:break}t.checkTimeStart&&t.timerCount>=0&&(t.timerCount=t.timerCount-1,clearTimeout(v),v=setTimeout((function(){t.checkQrcode(e),clearTimeout(v)}),2500))}));case 2:case"end":return i.stop()}}),i)})))()},loginSuccessAndConfig:function(){this.active=2,this.stopTimer(),this.startAutoConfig()},dealScanInconformity:function(){var e=this;this.isThirdType?(this.scanLoginError=!0,this.scanLoginErrText="与注册企业不一致",this.stopTimer()):(this.qrcodeLoad=!0,this.stopTimer(),this.confirmModal({msg:"当前扫码企业与现有企业不一致,若继续,则EasyInk下所有在线员工将被强制下线,原有企业数据不可查看,是否继续?"},(function(){e.loginSuccessAndConfig()}),(function(){e.$emit("closeDrawer"),e.init(),e.qrcodeUrl="",e.qrcodeLoad=!1})))},stopTimer:function(){clearTimeout(v),this.checkTimeStart=!1},checkInput:function(){var e=this.domainConfig,t=e.sidebarDomain,i=e.sidebarPort,a=e.dashboardDomain,n=e.dashboardPort,r=e.weComSystemDomain,s=e.weComSystemPort,o=e.dependableIp;return!!(t&&i&&a&&n&&r&&s&&o)},addConfig:function(e){var t=this;return Object(o["a"])(Object(s["a"])().mark((function i(){var a;return Object(s["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a=!0,i.next=3,c["a"](e).then((function(e){t.$emit("getNowConfig"),a=!0})).catch((function(e){t.msgError(e.msg||"企微配置添加失败"),a=!1}));case 3:return i.abrupt("return",a);case 4:case"end":return i.stop()}}),i)})))()},reGetQrcode:function(){this.qrcodeUrl="",this.scanLoginError=!1,this.needCode=!1,this.tlKey="",this.qrcodeUrl="",this.checkTimeStart=!0,this.timerCount=b,this.getQrcode()},onNext:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i,a,n;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i=e.domainConfig,a=i.sidebarDomain,n=i.dashboardDomain,e.checkInput()){t.next=4;break}return e.msgInfo("请输入完整的服务器信息"),t.abrupt("return");case 4:if(Object(h["c"])(a)&&Object(h["c"])(n)){t.next=7;break}return e.msgInfo("域名格式有误"),t.abrupt("return");case 7:e.initConfig();case 8:case"end":return t.stop()}}),t)})))()},initConfig:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i,a,n;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.configId){t.next=9;break}return i=Object(A["b"])({status:0}),t.next=4,e.addConfig(i);case 4:if(a=t.sent,a){t.next=7;break}return t.abrupt("return");case 7:t.next=10;break;case 9:e.form.token&&e.form.encodingAesKey||(n=Object(A["b"])({}),e.updateConfig(n,(function(){})));case 10:e.nextStep(),e.getQrcode();case 12:case"end":return t.stop()}}),t)})))()},getQrcode:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:Object(l["d"])({}).then((function(t){e.qrcodeUrl=t.data.qrcodeUrl,e.qrcodeKey=t.data.qrcodeKey,e.checkQrcode(t.data.qrcodeKey)}));case 1:case"end":return t.stop()}}),t)})))()},nextStep:function(){this.active=this.active+1},reStartAutoConfig:function(){this.configPercentage=0,this.configStatus="",this.configErrTip="配置失败",this.startAutoConfig()},startAutoConfig:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i,a,n,o,c,u,d,p,f,A,h;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.configLoad){t.next=2;break}return t.abrupt("return");case 2:if(e.isThirdType||e.checkInput()){t.next=5;break}return e.msgInfo("请输入完整的服务器信息"),t.abrupt("return");case 5:if(i={},!e.isThirdType){t.next=16;break}if(a=Object(r["a"])({},e.defaultDomain),a.dashboard&&a.sidebar&&a.scrm){t.next=13;break}return t.next=11,Object(l["e"])({});case 11:n=t.sent,a=Object(r["a"])({},n.data);case 13:i={dashboardDomain:a.dashboard,sidebarDomain:a.sidebar,weComSystemDomain:a.scrm},t.next=18;break;case 16:o=e.domainConfig,c=o.sidebarDomain,u=o.sidebarPort,d=o.dashboardDomain,p=o.dashboardPort,f=o.weComSystemDomain,A=o.weComSystemPort,h=o.dependableIp,i={dashboardDomain:"".concat(d,":").concat(p),sidebarDomain:"".concat(c,":").concat(u),weComSystemDomain:"".concat(f,":").concat(A),ipList:h};case 18:e.loadProgress(),e.configLoad=!0,e.handleAutoConfig(Object(r["a"])(Object(r["a"])({},i),{},{qrcodeKey:e.qrcodeKey}));case 21:case"end":return t.stop()}}),t)})))()},handleAutoConfig:function(e){var t=this;Object(l["a"])(e).then((function(e){t.configLoad=!1,clearInterval(t.progressTimer),t.configStatus="success",t.configPercentage=y,t.nextStep(),t.$emit("getNowConfig")})).catch((function(e){t.configLoad=!1,clearInterval(t.progressTimer),t.configPercentage=y,t.configStatus="exception",t.configErrTip=e&&e.msg||"配置失败"}))},loadProgress:function(){var e=this;this.progressTimer=setInterval((function(){e.configPercentage<y-_?e.configPercentage=e.configPercentage+_:clearInterval(e.progressTimer)}),800)},init:function(){clearTimeout(v),this.active=0,this.checkTimeStart=!0,this.timerCount=b},finishConfig:function(){this.checkTimeStart=!1,this.init(),this.$emit("closeDrawer"),this.$alert(m["R"],"配置成功",{confirmButtonText:"我知道了",dangerouslyUseHTMLString:!0})},updateConfig:function(e,t){var i=this;c["g"](e).then((function(){t(),i.$emit("getNowConfig")})).catch((function(e){i.msgError(e.msg||"企微配置更新失败")}))},saveSecret:function(){var e=this;this.$refs.secretRuleForm.validate((function(t){if(t){var i=Object(r["a"])({id:e.configId},e.secretConfig);i=Object(A["b"])(i),e.updateConfig(i,(function(){e.active=e.active+1,e.syncData()}))}}))},showNext:function(){return 0===this.active&&this.checkInput()},renderSave:function(e){var t=e.agentSecret,i=e.contactSecret;return!(!t||!i)},syncData:function(){Object(u["syncUser"])(),Object(d["n"])(),Object(p["e"])(),Object(f["syncTag"])()}}},C=w,x=(i("8029"),i("d652"),i("2877")),k=Object(x["a"])(C,a,n,!1,null,"79408ecb",null);t["default"]=k.exports},"17d4":function(e,t,i){"use strict";i("b775")},1854:function(e,t,i){"use strict";i("db19")},"187b":function(e,t,i){},"187e":function(e,t,i){e.exports=i.p+"static/img/desktop-step-1.cd828bfd.png"},"18c9":function(e,t,i){e.exports=i.p+"static/img/企微活码后台3.9e64960b.png"},"18e1":function(e,t,i){"use strict";i("e73b")},"190e":function(e,t,i){},1915:function(e,t,i){},"192e":function(e,t,i){"use strict";i("0386")},"193e":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",e._b({attrs:{title:e.isEdit?"编辑企微活码":"添加企微活码","append-to-body":"","close-on-click-modal":!1,"custom-class":"enterprise-code-modal"},on:{close:e.onClose}},"el-dialog",e.$attrs,!1),[i("div",{staticClass:"customer-group-dialog"},[i("el-alert",{staticClass:"alert mb10",attrs:{title:"企微活码永不过期,活码下某个群聊人数达上限后会自动创建新群,每个企微活码最多关联5个群聊",type:"warning","show-icon":"",closable:!1}}),e.isDKCorp?i("el-form",{ref:"DKCorpForm",attrs:{model:e.form,"label-width":"78px",rules:e.rules}},[i("el-form-item",{attrs:{label:"企微活码",prop:"actualGroupQrCode"}},[i("upload",{staticClass:"image-uploader",attrs:{"file-url":e.form.actualGroupQrCode,file:e.uploadFile,disabled:e.isEdit},on:{"update:fileUrl":function(t){return e.$set(e.form,"actualGroupQrCode",t)},"update:file-url":function(t){return e.$set(e.form,"actualGroupQrCode",t)},"update:file":function(t){e.uploadFile=t}}},[i("div",{attrs:{slot:"tip"},slot:"tip"},[e._v(" 注:只能上传jpg/png格式图片,且不超过2M ")])]),i("div",[i("el-button",{attrs:{type:"text"},on:{click:function(t){e.exampleDialog=!0}}},[e._v(" 如何获取企微活码 ")])],1)],1),i("el-form-item",{attrs:{label:"进群上限",prop:"scanCodeTimesLimit"}},[i("el-input",{staticStyle:{width:"115px"},attrs:{placeholder:"请输入次数",type:"Number",min:e.MIN_POSITIVE_INTEGER,max:e.MAX_NUMBER},on:{input:function(t){return e.text=e.isNumber(t,"scanCodeTimesLimit")}},model:{value:e.form.scanCodeTimesLimit,callback:function(t){e.$set(e.form,"scanCodeTimesLimit",t)},expression:"form.scanCodeTimesLimit"}}),i("div",{staticClass:"tip"},[e._v(" 每个企微活码扫码入群上限人数是"+e._s(e.MAX_NUMBER)+"人,设置进群上限时注意减去群内已存在的人数 ")])],1),i("el-form-item",{attrs:{label:"备注信息",prop:"remark"}},[i("el-input",{staticStyle:{width:"452px"},attrs:{placeholder:"记录渠道和使用场景,方便查找和管理","show-word-limit":"",maxlength:"15"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1):i("el-form",{ref:"form",attrs:{model:e.form,"label-width":"78px",rules:e.rules}},[i("el-form-item",{attrs:{label:"客户群",prop:"groupList"}},[i("div",{staticClass:"flex select-group"},[e.isEdit?e._e():i("el-button",{staticClass:"mr10",attrs:{icon:"el-icon-plus"},on:{click:e.openSelectGroup}},[e._v(" 选择客户群 ")]),e._l(e.form.groupList,(function(t,a){return i("el-tag",{key:a,staticClass:"user-tag",attrs:{closable:!e.isEdit},on:{close:function(){return e.removeGroup(t)}}},[e._v(" "+e._s(t.groupName)+" ")])}))],2),i("div",{staticClass:"tip"},[e._v(" 请至少选择一个已存在的客户群"),i("span",{staticClass:"theme-text-color pointer ml5",on:{click:function(t){e.createGroupDemoDialog=!0}}},[e._v("如何创建客户群")])])]),i("el-form-item",{attrs:{label:"群聊昵称",prop:"roomBaseName"}},[i("el-input",{staticStyle:{width:"452px"},attrs:{placeholder:"自建群聊的昵称前缀","show-word-limit":"",maxlength:"32"},model:{value:e.form.roomBaseName,callback:function(t){e.$set(e.form,"roomBaseName",t)},expression:"form.roomBaseName"}})],1),i("el-form-item",{attrs:{label:"起始序号",prop:"roomBaseId"}},[i("el-input",{staticStyle:{width:"85px"},attrs:{type:"number",min:e.MIN_POSITIVE_INTEGER},on:{input:function(t){return e.text=e.isNumber(t,"roomBaseId")}},model:{value:e.form.roomBaseId,callback:function(t){e.$set(e.form,"roomBaseId",t)},expression:"form.roomBaseId"}}),i("div",{staticClass:"tip"},[e._v(" 假设群聊昵称是“群聊”,起始序号是1,则自动创建的第一个群名是“群聊1”,自动创建的第二个群名是“群聊2”,依次类推 ")])],1),i("el-form-item",{attrs:{label:"进群上限",prop:"scanCodeTimesLimit"}},[i("el-input",{staticStyle:{width:"115px"},attrs:{placeholder:"请输入次数",type:"Number",min:e.MIN_POSITIVE_INTEGER,max:e.MAX_NUMBER},on:{input:function(t){return e.text=e.isNumber(t,"scanCodeTimesLimit")}},model:{value:e.form.scanCodeTimesLimit,callback:function(t){e.$set(e.form,"scanCodeTimesLimit",t)},expression:"form.scanCodeTimesLimit"}}),i("div",{staticClass:"tip"},[e._v(" 每个企微活码扫码入群上限人数是"+e._s(e.MAX_NUMBER)+"人,设置进群上限时注意减去群内已存在的人数 ")])],1),i("el-form-item",{attrs:{label:"备注信息",prop:"remark"}},[i("el-input",{staticStyle:{width:"452px"},attrs:{placeholder:"记录渠道和使用场景,方便查找和管理","show-word-limit":"",maxlength:"15"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1),i("Customer",{ref:"customer",attrs:{visible:e.customerDialog,"append-to-body":"","close-on-click-modal":!1,"customer-group-id":e.form.chatId,"cancel-click":e.cancelClick,"ok-click":e.handleSelectCustomerGroup,"customer-group-list":e.form.groupList,"select-single":!1},on:{"update:visible":function(t){e.customerDialog=t},callback:e.getSelectCustomerGroup}})],1),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.onClose}},[e._v(" 取消 ")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick"}],attrs:{type:"primary",loading:e.loading},on:{click:e.handleSubmit}},[e._v(" 确定 ")])],1),i("GetEnterpriseQrcodeDemo",{attrs:{visible:e.exampleDialog,title:"如何获取企微活码"},on:{"update:visible":function(t){e.exampleDialog=t}}}),i("GetCreateGroupDemo",{attrs:{visible:e.createGroupDemoDialog,title:"如何创建客户群"},on:{"update:visible":function(t){e.createGroupDemoDialog=t}}})],1)},n=[];i("a4d3"),i("caad"),i("2532");function r(e,t){if(null==e)return{};var i={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;i[a]=e[a]}return i}function s(e,t){if(null==e)return{};var i,a,n=r(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)i=s[a],t.includes(i)||{}.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}var o=i("c7eb"),l=i("2909"),c=i("1da1"),u=i("5530"),d=(i("c740"),i("a15b"),i("d81d"),i("a434"),i("a9e3"),i("ac1f"),i("00b4"),i("dd70")),p=i("3f68"),f=i("6f66"),A=i("f05d"),h=i("895e"),m=i("ed08"),g=["groupList"],v=1e3,b=1,y={name:"EnterpriseCodeModal",components:{Customer:p["default"],GetEnterpriseQrcodeDemo:f["default"],GetCreateGroupDemo:A["default"]},props:{groupCodeList:{type:Array,default:function(){return[]}},editIndex:{type:Number,default:-1},groupId:{type:String,default:null},realAdd:{type:Boolean,default:!1},isEditModal:{type:Boolean,default:!1}},data:function(){var e=this,t=function(e,t,i){return t?t&&t>v?i(new Error("进群上限不能大于"+v)):t&&t<=0?i(new Error("进群人数需大于0")):void i():i(new Error("请设置进群上限"))},i=function(t,i,a){var n;if(null===(n=e.form)||void 0===n||null===(n=n.groupList)||void 0===n||!n.length)return a(new Error("请设置客户群"));a()};return{rules:{actualGroupQrCode:[{required:!0,message:"请上传企微活码",trigger:"change"}],scanCodeTimesLimit:[{required:!0,validator:t,trigger:"blur"}],groupList:[{required:!0,validator:i,trigger:"change"}]},form:{actualGroupQrCode:null,groupNickName:null,scanCodeTimesLimit:v,remark:null,groupList:[]},exampleDialog:!1,createGroupDemoDialog:!1,MAX_NUMBER:v,MEDIA_TYPE_POSTER:d["cc"],uploadFile:{},customerDialog:!1,MIN_POSITIVE_INTEGER:b,loading:!1}},computed:{isDKCorp:function(){return this.$store.state.serverInfo.dkCorp},isEdit:function(){return this.isEditModal||!!this.form.id}},watch:{uploadFile:function(e){var t=Object(u["a"])({},this.form);t.content=e.size,this.$emit("changeForm",t)}},created:function(){},mounted:function(){},methods:{onClose:function(){this.$emit("update:visible",!1)},realAddCode:function(e){var t=this;return Object(c["a"])(Object(o["a"])().mark((function i(){var a,n,r,s,c;return Object(o["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(t.isDKCorp&&!t.realAdd){i.next=18;break}return a=t.form.groupList.map((function(e){return e.chatId})),n=t.form,t.loading=!0,r=Object(l["a"])(t.groupCodeList),i.prev=5,i.next=8,Object(h["b"])({groupCodeId:t.groupId,weGroupCodeCorpActualList:[Object(u["a"])(Object(u["a"])({},n),{},{chatIds:a.join(","),sortNo:(null===(s=r[r.length-1])||void 0===s?void 0:s.sortNo)+1||1})]});case 8:c=i.sent,t.loading=!1,c&&(e.push(Object(u["a"])({groupList:t.form.groupList},c.data[0])),t.updateAndCloseModal(e),t.$emit("reGetList")),i.next=16;break;case 13:i.prev=13,i.t0=i["catch"](5),t.loading=!1;case 16:i.next=21;break;case 18:e.push(Object(u["a"])({},t.form)),t.updateAndCloseModal(e),t.$emit("reGetList");case 21:return i.abrupt("return",e);case 22:case"end":return i.stop()}}),i,null,[[5,13]])})))()},handleEditCode:function(e){var t=this;if(!this.isDKCorp||this.realAdd){var i=this.form,a=(i.groupList,s(i,g));this.loading=!0,Object(h["e"])({groupCodeId:this.groupId,weGroupCodeCorpActualList:[Object(u["a"])({},a)]}).then((function(i){t.loading=!1,e[t.editIndex]=t.form,t.updateAndCloseModal(e)})).catch((function(e){t.loading=!1}))}else e[this.editIndex]=this.form,this.updateAndCloseModal(e)},updateAndCloseModal:function(e){this.$emit("update:groupCodeList",e),this.initFormData(),this.onClose()},handleSubmit:function(){var e=this;this.$refs[this.isDKCorp?"DKCorpForm":"form"].validate((function(t){if(t){var i=Object(m["h"])(e.groupCodeList);e.isEdit?e.handleEditCode(i):e.realAddCode(i)}}))},initFormData:function(){this.form={actualGroupQrCode:null,groupNickName:null,scanCodeTimesLimit:v,remark:null,groupList:[]}},openSelectGroup:function(){this.customerDialog=!0},cancelClick:function(){this.customerDialog=!1},handleSelectCustomerGroup:function(){this.$refs.customer.submit()},getSelectCustomerGroup:function(e){var t,i=5;e.length>i?this.msgWarn("最多只可选择5个群聊"):(this.form.groupList=Object(l["a"])(e),this.customerDialog=!1,null===(t=this.$refs.form)||void 0===t||t.validateField("groupList"))},removeGroup:function(e){var t=Object(l["a"])(this.form.groupList),i=t.findIndex((function(t){return t.chatId===e.chatId}));t.splice(i,1),this.form=Object(u["a"])(Object(u["a"])({},this.form),{},{groupList:t})},isNumber:function(e,t){var i=/^[1-9][0-9]*$/;i.test(e)||(this.form[t]="")}}},_=y,w=(i("75a2"),i("395b"),i("2877")),C=Object(w["a"])(_,a,n,!1,null,"301b0243",null);t["default"]=C.exports},1977:function(e,t,i){},1980:function(e,t,i){(function(t,a){e.exports=a(i("53fe"))})("undefined"!==typeof self&&self,(function(e){return function(e){var t={};function i(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=e,i.c=t,i.d=function(e,t,a){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(a,n,function(t){return e[t]}.bind(null,n));return a},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s="fb15")}({"02f4":function(e,t,i){var a=i("4588"),n=i("be13");e.exports=function(e){return function(t,i){var r,s,o=String(n(t)),l=a(i),c=o.length;return l<0||l>=c?e?"":void 0:(r=o.charCodeAt(l),r<55296||r>56319||l+1===c||(s=o.charCodeAt(l+1))<56320||s>57343?e?o.charAt(l):r:e?o.slice(l,l+2):s-56320+(r-55296<<10)+65536)}}},"0390":function(e,t,i){"use strict";var a=i("02f4")(!0);e.exports=function(e,t,i){return t+(i?a(e,t).length:1)}},"07e3":function(e,t){var i={}.hasOwnProperty;e.exports=function(e,t){return i.call(e,t)}},"0bfb":function(e,t,i){"use strict";var a=i("cb7c");e.exports=function(){var e=a(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0fc9":function(e,t,i){var a=i("3a38"),n=Math.max,r=Math.min;e.exports=function(e,t){return e=a(e),e<0?n(e+t,0):r(e,t)}},1654:function(e,t,i){"use strict";var a=i("71c1")(!0);i("30f1")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,i=this._i;return i>=t.length?{value:void 0,done:!0}:(e=a(t,i),this._i+=e.length,{value:e,done:!1})}))},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1af6":function(e,t,i){var a=i("63b6");a(a.S,"Array",{isArray:i("9003")})},"1bc3":function(e,t,i){var a=i("f772");e.exports=function(e,t){if(!a(e))return e;var i,n;if(t&&"function"==typeof(i=e.toString)&&!a(n=i.call(e)))return n;if("function"==typeof(i=e.valueOf)&&!a(n=i.call(e)))return n;if(!t&&"function"==typeof(i=e.toString)&&!a(n=i.call(e)))return n;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(e,t,i){var a=i("f772"),n=i("e53d").document,r=a(n)&&a(n.createElement);e.exports=function(e){return r?n.createElement(e):{}}},"20fd":function(e,t,i){"use strict";var a=i("d9f6"),n=i("aebd");e.exports=function(e,t,i){t in e?a.f(e,t,n(0,i)):e[t]=i}},"214f":function(e,t,i){"use strict";i("b0c5");var a=i("2aba"),n=i("32e9"),r=i("79e5"),s=i("be13"),o=i("2b4c"),l=i("520a"),c=o("species"),u=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var i="ab".split(e);return 2===i.length&&"a"===i[0]&&"b"===i[1]}();e.exports=function(e,t,i){var p=o(e),f=!r((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),A=f?!r((function(){var t=!1,i=/a/;return i.exec=function(){return t=!0,null},"split"===e&&(i.constructor={},i.constructor[c]=function(){return i}),i[p](""),!t})):void 0;if(!f||!A||"replace"===e&&!u||"split"===e&&!d){var h=/./[p],m=i(s,p,""[e],(function(e,t,i,a,n){return t.exec===l?f&&!n?{done:!0,value:h.call(t,i,a)}:{done:!0,value:e.call(i,t,a)}:{done:!1}})),g=m[0],v=m[1];a(String.prototype,e,g),n(RegExp.prototype,p,2==t?function(e,t){return v.call(e,this,t)}:function(e){return v.call(e,this)})}}},"230e":function(e,t,i){var a=i("d3f4"),n=i("7726").document,r=a(n)&&a(n.createElement);e.exports=function(e){return r?n.createElement(e):{}}},"23c6":function(e,t,i){var a=i("2d95"),n=i("2b4c")("toStringTag"),r="Arguments"==a(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(i){}};e.exports=function(e){var t,i,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=s(t=Object(e),n))?i:r?a(t):"Object"==(o=a(t))&&"function"==typeof t.callee?"Arguments":o}},"241e":function(e,t,i){var a=i("25eb");e.exports=function(e){return Object(a(e))}},"25eb":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"2aba":function(e,t,i){var a=i("7726"),n=i("32e9"),r=i("69a8"),s=i("ca5a")("src"),o=i("fa5b"),l="toString",c=(""+o).split(l);i("8378").inspectSource=function(e){return o.call(e)},(e.exports=function(e,t,i,o){var l="function"==typeof i;l&&(r(i,"name")||n(i,"name",t)),e[t]!==i&&(l&&(r(i,s)||n(i,s,e[t]?""+e[t]:c.join(String(t)))),e===a?e[t]=i:o?e[t]?e[t]=i:n(e,t,i):(delete e[t],n(e,t,i)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[s]||o.call(this)}))},"2b4c":function(e,t,i){var a=i("5537")("wks"),n=i("ca5a"),r=i("7726").Symbol,s="function"==typeof r,o=e.exports=function(e){return a[e]||(a[e]=s&&r[e]||(s?r:n)("Symbol."+e))};o.store=a},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var i={}.toString;e.exports=function(e){return i.call(e).slice(8,-1)}},"2fdb":function(e,t,i){"use strict";var a=i("5ca1"),n=i("d2c8"),r="includes";a(a.P+a.F*i("5147")(r),"String",{includes:function(e){return!!~n(this,e,r).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"30f1":function(e,t,i){"use strict";var a=i("b8e3"),n=i("63b6"),r=i("9138"),s=i("35e8"),o=i("481b"),l=i("8f60"),c=i("45f2"),u=i("53e2"),d=i("5168")("iterator"),p=!([].keys&&"next"in[].keys()),f="@@iterator",A="keys",h="values",m=function(){return this};e.exports=function(e,t,i,g,v,b,y){l(i,t,g);var _,w,C,x=function(e){if(!p&&e in I)return I[e];switch(e){case A:return function(){return new i(this,e)};case h:return function(){return new i(this,e)}}return function(){return new i(this,e)}},k=t+" Iterator",T=v==h,S=!1,I=e.prototype,E=I[d]||I[f]||v&&I[v],O=E||x(v),B=v?T?x("entries"):O:void 0,L="Array"==t&&I.entries||E;if(L&&(C=u(L.call(new e)),C!==Object.prototype&&C.next&&(c(C,k,!0),a||"function"==typeof C[d]||s(C,d,m))),T&&E&&E.name!==h&&(S=!0,O=function(){return E.call(this)}),a&&!y||!p&&!S&&I[d]||s(I,d,O),o[t]=O,o[k]=m,v)if(_={values:T?O:x(h),keys:b?O:x(A),entries:B},y)for(w in _)w in I||r(I,w,_[w]);else n(n.P+n.F*(p||S),t,_);return _}},"32a6":function(e,t,i){var a=i("241e"),n=i("c3a1");i("ce7e")("keys",(function(){return function(e){return n(a(e))}}))},"32e9":function(e,t,i){var a=i("86cc"),n=i("4630");e.exports=i("9e1e")?function(e,t,i){return a.f(e,t,n(1,i))}:function(e,t,i){return e[t]=i,e}},"32fc":function(e,t,i){var a=i("e53d").document;e.exports=a&&a.documentElement},"335c":function(e,t,i){var a=i("6b4c");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==a(e)?e.split(""):Object(e)}},"355d":function(e,t){t.f={}.propertyIsEnumerable},"35e8":function(e,t,i){var a=i("d9f6"),n=i("aebd");e.exports=i("8e60")?function(e,t,i){return a.f(e,t,n(1,i))}:function(e,t,i){return e[t]=i,e}},"36c3":function(e,t,i){var a=i("335c"),n=i("25eb");e.exports=function(e){return a(n(e))}},3702:function(e,t,i){var a=i("481b"),n=i("5168")("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||r[n]===e)}},"3a38":function(e,t){var i=Math.ceil,a=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?a:i)(e)}},"40c3":function(e,t,i){var a=i("6b4c"),n=i("5168")("toStringTag"),r="Arguments"==a(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(i){}};e.exports=function(e){var t,i,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=s(t=Object(e),n))?i:r?a(t):"Object"==(o=a(t))&&"function"==typeof t.callee?"Arguments":o}},4588:function(e,t){var i=Math.ceil,a=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?a:i)(e)}},"45f2":function(e,t,i){var a=i("d9f6").f,n=i("07e3"),r=i("5168")("toStringTag");e.exports=function(e,t,i){e&&!n(e=i?e:e.prototype,r)&&a(e,r,{configurable:!0,value:t})}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"469f":function(e,t,i){i("6c1c"),i("1654"),e.exports=i("7d7b")},"481b":function(e,t){e.exports={}},"4aa6":function(e,t,i){e.exports=i("dc62")},"4bf8":function(e,t,i){var a=i("be13");e.exports=function(e){return Object(a(e))}},"4ee1":function(e,t,i){var a=i("5168")("iterator"),n=!1;try{var r=[7][a]();r["return"]=function(){n=!0},Array.from(r,(function(){throw 2}))}catch(s){}e.exports=function(e,t){if(!t&&!n)return!1;var i=!1;try{var r=[7],o=r[a]();o.next=function(){return{done:i=!0}},r[a]=function(){return o},e(r)}catch(s){}return i}},"50ed":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},5147:function(e,t,i){var a=i("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(i){try{return t[a]=!1,!"/./"[e](t)}catch(n){}}return!0}},5168:function(e,t,i){var a=i("dbdb")("wks"),n=i("62a0"),r=i("e53d").Symbol,s="function"==typeof r,o=e.exports=function(e){return a[e]||(a[e]=s&&r[e]||(s?r:n)("Symbol."+e))};o.store=a},5176:function(e,t,i){e.exports=i("51b6")},"51b6":function(e,t,i){i("a3c3"),e.exports=i("584a").Object.assign},"520a":function(e,t,i){"use strict";var a=i("0bfb"),n=RegExp.prototype.exec,r=String.prototype.replace,s=n,o="lastIndex",l=function(){var e=/a/,t=/b*/g;return n.call(e,"a"),n.call(t,"a"),0!==e[o]||0!==t[o]}(),c=void 0!==/()??/.exec("")[1],u=l||c;u&&(s=function(e){var t,i,s,u,d=this;return c&&(i=new RegExp("^"+d.source+"$(?!\\s)",a.call(d))),l&&(t=d[o]),s=n.call(d,e),l&&s&&(d[o]=d.global?s.index+s[0].length:t),c&&s&&s.length>1&&r.call(s[0],i,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(s[u]=void 0)})),s}),e.exports=s},"53e2":function(e,t,i){var a=i("07e3"),n=i("241e"),r=i("5559")("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=n(e),a(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},"549b":function(e,t,i){"use strict";var a=i("d864"),n=i("63b6"),r=i("241e"),s=i("b0dc"),o=i("3702"),l=i("b447"),c=i("20fd"),u=i("7cd6");n(n.S+n.F*!i("4ee1")((function(e){Array.from(e)})),"Array",{from:function(e){var t,i,n,d,p=r(e),f="function"==typeof this?this:Array,A=arguments.length,h=A>1?arguments[1]:void 0,m=void 0!==h,g=0,v=u(p);if(m&&(h=a(h,A>2?arguments[2]:void 0,2)),void 0==v||f==Array&&o(v))for(t=l(p.length),i=new f(t);t>g;g++)c(i,g,m?h(p[g],g):p[g]);else for(d=v.call(p),i=new f;!(n=d.next()).done;g++)c(i,g,m?s(d,h,[n.value,g],!0):n.value);return i.length=g,i}})},"54a1":function(e,t,i){i("6c1c"),i("1654"),e.exports=i("95d5")},5537:function(e,t,i){var a=i("8378"),n=i("7726"),r="__core-js_shared__",s=n[r]||(n[r]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:a.version,mode:i("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(e,t,i){var a=i("dbdb")("keys"),n=i("62a0");e.exports=function(e){return a[e]||(a[e]=n(e))}},"584a":function(e,t){var i=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=i)},"5b4e":function(e,t,i){var a=i("36c3"),n=i("b447"),r=i("0fc9");e.exports=function(e){return function(t,i,s){var o,l=a(t),c=n(l.length),u=r(s,c);if(e&&i!=i){while(c>u)if(o=l[u++],o!=o)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===i)return e||u||0;return!e&&-1}}},"5ca1":function(e,t,i){var a=i("7726"),n=i("8378"),r=i("32e9"),s=i("2aba"),o=i("9b43"),l="prototype",c=function(e,t,i){var u,d,p,f,A=e&c.F,h=e&c.G,m=e&c.S,g=e&c.P,v=e&c.B,b=h?a:m?a[t]||(a[t]={}):(a[t]||{})[l],y=h?n:n[t]||(n[t]={}),_=y[l]||(y[l]={});for(u in h&&(i=t),i)d=!A&&b&&void 0!==b[u],p=(d?b:i)[u],f=v&&d?o(p,a):g&&"function"==typeof p?o(Function.call,p):p,b&&s(b,u,p,e&c.U),y[u]!=p&&r(y,u,f),g&&_[u]!=p&&(_[u]=p)};a.core=n,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},"5d73":function(e,t,i){e.exports=i("469f")},"5f1b":function(e,t,i){"use strict";var a=i("23c6"),n=RegExp.prototype.exec;e.exports=function(e,t){var i=e.exec;if("function"===typeof i){var r=i.call(e,t);if("object"!==typeof r)throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==a(e))throw new TypeError("RegExp#exec called on incompatible receiver");return n.call(e,t)}},"626a":function(e,t,i){var a=i("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==a(e)?e.split(""):Object(e)}},"62a0":function(e,t){var i=0,a=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++i+a).toString(36))}},"63b6":function(e,t,i){var a=i("e53d"),n=i("584a"),r=i("d864"),s=i("35e8"),o=i("07e3"),l="prototype",c=function(e,t,i){var u,d,p,f=e&c.F,A=e&c.G,h=e&c.S,m=e&c.P,g=e&c.B,v=e&c.W,b=A?n:n[t]||(n[t]={}),y=b[l],_=A?a:h?a[t]:(a[t]||{})[l];for(u in A&&(i=t),i)d=!f&&_&&void 0!==_[u],d&&o(b,u)||(p=d?_[u]:i[u],b[u]=A&&"function"!=typeof _[u]?i[u]:g&&d?r(p,a):v&&_[u]==p?function(e){var t=function(t,i,a){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,i)}return new e(t,i,a)}return e.apply(this,arguments)};return t[l]=e[l],t}(p):m&&"function"==typeof p?r(Function.call,p):p,m&&((b.virtual||(b.virtual={}))[u]=p,e&c.R&&y&&!y[u]&&s(y,u,p)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},6762:function(e,t,i){"use strict";var a=i("5ca1"),n=i("c366")(!0);a(a.P,"Array",{includes:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}}),i("9c6c")("includes")},6821:function(e,t,i){var a=i("626a"),n=i("be13");e.exports=function(e){return a(n(e))}},"69a8":function(e,t){var i={}.hasOwnProperty;e.exports=function(e,t){return i.call(e,t)}},"6a99":function(e,t,i){var a=i("d3f4");e.exports=function(e,t){if(!a(e))return e;var i,n;if(t&&"function"==typeof(i=e.toString)&&!a(n=i.call(e)))return n;if("function"==typeof(i=e.valueOf)&&!a(n=i.call(e)))return n;if(!t&&"function"==typeof(i=e.toString)&&!a(n=i.call(e)))return n;throw TypeError("Can't convert object to primitive value")}},"6b4c":function(e,t){var i={}.toString;e.exports=function(e){return i.call(e).slice(8,-1)}},"6c1c":function(e,t,i){i("c367");for(var a=i("e53d"),n=i("35e8"),r=i("481b"),s=i("5168")("toStringTag"),o="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<o.length;l++){var c=o[l],u=a[c],d=u&&u.prototype;d&&!d[s]&&n(d,s,c),r[c]=r.Array}},"71c1":function(e,t,i){var a=i("3a38"),n=i("25eb");e.exports=function(e){return function(t,i){var r,s,o=String(n(t)),l=a(i),c=o.length;return l<0||l>=c?e?"":void 0:(r=o.charCodeAt(l),r<55296||r>56319||l+1===c||(s=o.charCodeAt(l+1))<56320||s>57343?e?o.charAt(l):r:e?o.slice(l,l+2):s-56320+(r-55296<<10)+65536)}}},7726:function(e,t){var i=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},"774e":function(e,t,i){e.exports=i("d2d5")},"77f1":function(e,t,i){var a=i("4588"),n=Math.max,r=Math.min;e.exports=function(e,t){return e=a(e),e<0?n(e+t,0):r(e,t)}},"794b":function(e,t,i){e.exports=!i("8e60")&&!i("294c")((function(){return 7!=Object.defineProperty(i("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"79aa":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7cd6":function(e,t,i){var a=i("40c3"),n=i("5168")("iterator"),r=i("481b");e.exports=i("584a").getIteratorMethod=function(e){if(void 0!=e)return e[n]||e["@@iterator"]||r[a(e)]}},"7d7b":function(e,t,i){var a=i("e4ae"),n=i("7cd6");e.exports=i("584a").getIterator=function(e){var t=n(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return a(t.call(e))}},"7e90":function(e,t,i){var a=i("d9f6"),n=i("e4ae"),r=i("c3a1");e.exports=i("8e60")?Object.defineProperties:function(e,t){n(e);var i,s=r(t),o=s.length,l=0;while(o>l)a.f(e,i=s[l++],t[i]);return e}},8378:function(e,t){var i=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=i)},8436:function(e,t){e.exports=function(){}},"86cc":function(e,t,i){var a=i("cb7c"),n=i("c69a"),r=i("6a99"),s=Object.defineProperty;t.f=i("9e1e")?Object.defineProperty:function(e,t,i){if(a(e),t=r(t,!0),a(i),n)try{return s(e,t,i)}catch(o){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(e[t]=i.value),e}},"8aae":function(e,t,i){i("32a6"),e.exports=i("584a").Object.keys},"8e60":function(e,t,i){e.exports=!i("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"8f60":function(e,t,i){"use strict";var a=i("a159"),n=i("aebd"),r=i("45f2"),s={};i("35e8")(s,i("5168")("iterator"),(function(){return this})),e.exports=function(e,t,i){e.prototype=a(s,{next:n(1,i)}),r(e,t+" Iterator")}},9003:function(e,t,i){var a=i("6b4c");e.exports=Array.isArray||function(e){return"Array"==a(e)}},9138:function(e,t,i){e.exports=i("35e8")},9306:function(e,t,i){"use strict";var a=i("c3a1"),n=i("9aa9"),r=i("355d"),s=i("241e"),o=i("335c"),l=Object.assign;e.exports=!l||i("294c")((function(){var e={},t={},i=Symbol(),a="abcdefghijklmnopqrst";return e[i]=7,a.split("").forEach((function(e){t[e]=e})),7!=l({},e)[i]||Object.keys(l({},t)).join("")!=a}))?function(e,t){var i=s(e),l=arguments.length,c=1,u=n.f,d=r.f;while(l>c){var p,f=o(arguments[c++]),A=u?a(f).concat(u(f)):a(f),h=A.length,m=0;while(h>m)d.call(f,p=A[m++])&&(i[p]=f[p])}return i}:l},9427:function(e,t,i){var a=i("63b6");a(a.S,"Object",{create:i("a159")})},"95d5":function(e,t,i){var a=i("40c3"),n=i("5168")("iterator"),r=i("481b");e.exports=i("584a").isIterable=function(e){var t=Object(e);return void 0!==t[n]||"@@iterator"in t||r.hasOwnProperty(a(t))}},"9aa9":function(e,t){t.f=Object.getOwnPropertySymbols},"9b43":function(e,t,i){var a=i("d8e8");e.exports=function(e,t,i){if(a(e),void 0===t)return e;switch(i){case 1:return function(i){return e.call(t,i)};case 2:return function(i,a){return e.call(t,i,a)};case 3:return function(i,a,n){return e.call(t,i,a,n)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,i){var a=i("2b4c")("unscopables"),n=Array.prototype;void 0==n[a]&&i("32e9")(n,a,{}),e.exports=function(e){n[a][e]=!0}},"9def":function(e,t,i){var a=i("4588"),n=Math.min;e.exports=function(e){return e>0?n(a(e),9007199254740991):0}},"9e1e":function(e,t,i){e.exports=!i("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a159:function(e,t,i){var a=i("e4ae"),n=i("7e90"),r=i("1691"),s=i("5559")("IE_PROTO"),o=function(){},l="prototype",c=function(){var e,t=i("1ec9")("iframe"),a=r.length,n="<",s=">";t.style.display="none",i("32fc").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(n+"script"+s+"document.F=Object"+n+"/script"+s),e.close(),c=e.F;while(a--)delete c[l][r[a]];return c()};e.exports=Object.create||function(e,t){var i;return null!==e?(o[l]=a(e),i=new o,o[l]=null,i[s]=e):i=c(),void 0===t?i:n(i,t)}},a352:function(t,i){t.exports=e},a3c3:function(e,t,i){var a=i("63b6");a(a.S+a.F,"Object",{assign:i("9306")})},a481:function(e,t,i){"use strict";var a=i("cb7c"),n=i("4bf8"),r=i("9def"),s=i("4588"),o=i("0390"),l=i("5f1b"),c=Math.max,u=Math.min,d=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,A=function(e){return void 0===e?e:String(e)};i("214f")("replace",2,(function(e,t,i,h){return[function(a,n){var r=e(this),s=void 0==a?void 0:a[t];return void 0!==s?s.call(a,r,n):i.call(String(r),a,n)},function(e,t){var n=h(i,e,this,t);if(n.done)return n.value;var d=a(e),p=String(this),f="function"===typeof t;f||(t=String(t));var g=d.global;if(g){var v=d.unicode;d.lastIndex=0}var b=[];while(1){var y=l(d,p);if(null===y)break;if(b.push(y),!g)break;var _=String(y[0]);""===_&&(d.lastIndex=o(p,r(d.lastIndex),v))}for(var w="",C=0,x=0;x<b.length;x++){y=b[x];for(var k=String(y[0]),T=c(u(s(y.index),p.length),0),S=[],I=1;I<y.length;I++)S.push(A(y[I]));var E=y.groups;if(f){var O=[k].concat(S,T,p);void 0!==E&&O.push(E);var B=String(t.apply(void 0,O))}else B=m(k,p,T,S,E,t);T>=C&&(w+=p.slice(C,T)+B,C=T+k.length)}return w+p.slice(C)}];function m(e,t,a,r,s,o){var l=a+e.length,c=r.length,u=f;return void 0!==s&&(s=n(s),u=p),i.call(o,u,(function(i,n){var o;switch(n.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,a);case"'":return t.slice(l);case"<":o=s[n.slice(1,-1)];break;default:var u=+n;if(0===u)return i;if(u>c){var p=d(u/10);return 0===p?i:p<=c?void 0===r[p-1]?n.charAt(1):r[p-1]+n.charAt(1):i}o=r[u-1]}return void 0===o?"":o}))}}))},a4bb:function(e,t,i){e.exports=i("8aae")},a745:function(e,t,i){e.exports=i("f410")},aae3:function(e,t,i){var a=i("d3f4"),n=i("2d95"),r=i("2b4c")("match");e.exports=function(e){var t;return a(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==n(e))}},aebd:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},b0c5:function(e,t,i){"use strict";var a=i("520a");i("5ca1")({target:"RegExp",proto:!0,forced:a!==/./.exec},{exec:a})},b0dc:function(e,t,i){var a=i("e4ae");e.exports=function(e,t,i,n){try{return n?t(a(i)[0],i[1]):t(i)}catch(s){var r=e["return"];throw void 0!==r&&a(r.call(e)),s}}},b447:function(e,t,i){var a=i("3a38"),n=Math.min;e.exports=function(e){return e>0?n(a(e),9007199254740991):0}},b8e3:function(e,t){e.exports=!0},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,i){var a=i("6821"),n=i("9def"),r=i("77f1");e.exports=function(e){return function(t,i,s){var o,l=a(t),c=n(l.length),u=r(s,c);if(e&&i!=i){while(c>u)if(o=l[u++],o!=o)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===i)return e||u||0;return!e&&-1}}},c367:function(e,t,i){"use strict";var a=i("8436"),n=i("50ed"),r=i("481b"),s=i("36c3");e.exports=i("30f1")(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,i=this._i++;return!e||i>=e.length?(this._t=void 0,n(1)):n(0,"keys"==t?i:"values"==t?e[i]:[i,e[i]])}),"values"),r.Arguments=r.Array,a("keys"),a("values"),a("entries")},c3a1:function(e,t,i){var a=i("e6f3"),n=i("1691");e.exports=Object.keys||function(e){return a(e,n)}},c649:function(e,t,i){"use strict";(function(e){i.d(t,"c",(function(){return d})),i.d(t,"a",(function(){return c})),i.d(t,"b",(function(){return s})),i.d(t,"d",(function(){return u})),i("a481");var a=i("4aa6"),n=i.n(a);function r(){return"undefined"!==typeof window?window.console:e.console}var s=r();function o(e){var t=n()(null);return function(i){var a=t[i];return a||(t[i]=e(i))}}var l=/-(\w)/g,c=o((function(e){return e.replace(l,(function(e,t){return t?t.toUpperCase():""}))}));function u(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function d(e,t,i){var a=0===i?e.children[0]:e.children[i-1].nextSibling;e.insertBefore(t,a)}}).call(this,i("c8ba"))},c69a:function(e,t,i){e.exports=!i("9e1e")&&!i("79e5")((function(){return 7!=Object.defineProperty(i("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(a){"object"===typeof window&&(i=window)}e.exports=i},c8bb:function(e,t,i){e.exports=i("54a1")},ca5a:function(e,t){var i=0,a=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++i+a).toString(36))}},cb7c:function(e,t,i){var a=i("d3f4");e.exports=function(e){if(!a(e))throw TypeError(e+" is not an object!");return e}},ce7e:function(e,t,i){var a=i("63b6"),n=i("584a"),r=i("294c");e.exports=function(e,t){var i=(n.Object||{})[e]||Object[e],s={};s[e]=t(i),a(a.S+a.F*r((function(){i(1)})),"Object",s)}},d2c8:function(e,t,i){var a=i("aae3"),n=i("be13");e.exports=function(e,t,i){if(a(t))throw TypeError("String#"+i+" doesn't accept regex!");return String(n(e))}},d2d5:function(e,t,i){i("1654"),i("549b"),e.exports=i("584a").Array.from},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d864:function(e,t,i){var a=i("79aa");e.exports=function(e,t,i){if(a(e),void 0===t)return e;switch(i){case 1:return function(i){return e.call(t,i)};case 2:return function(i,a){return e.call(t,i,a)};case 3:return function(i,a,n){return e.call(t,i,a,n)}}return function(){return e.apply(t,arguments)}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},d9f6:function(e,t,i){var a=i("e4ae"),n=i("794b"),r=i("1bc3"),s=Object.defineProperty;t.f=i("8e60")?Object.defineProperty:function(e,t,i){if(a(e),t=r(t,!0),a(i),n)try{return s(e,t,i)}catch(o){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(e[t]=i.value),e}},dbdb:function(e,t,i){var a=i("584a"),n=i("e53d"),r="__core-js_shared__",s=n[r]||(n[r]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:a.version,mode:i("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},dc62:function(e,t,i){i("9427");var a=i("584a").Object;e.exports=function(e,t){return a.create(e,t)}},e4ae:function(e,t,i){var a=i("f772");e.exports=function(e){if(!a(e))throw TypeError(e+" is not an object!");return e}},e53d:function(e,t){var i=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},e6f3:function(e,t,i){var a=i("07e3"),n=i("36c3"),r=i("5b4e")(!1),s=i("5559")("IE_PROTO");e.exports=function(e,t){var i,o=n(e),l=0,c=[];for(i in o)i!=s&&a(o,i)&&c.push(i);while(t.length>l)a(o,i=t[l++])&&(~r(c,i)||c.push(i));return c}},f410:function(e,t,i){i("1af6"),e.exports=i("584a").Array.isArray},f559:function(e,t,i){"use strict";var a=i("5ca1"),n=i("9def"),r=i("d2c8"),s="startsWith",o=""[s];a(a.P+a.F*i("5147")(s),"String",{startsWith:function(e){var t=r(this,e,s),i=n(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),a=String(e);return o?o.call(t,a,i):t.slice(i,i+a.length)===a}})},f772:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},fa5b:function(e,t,i){e.exports=i("5537")("native-function-to-string",Function.toString)},fb15:function(e,t,i){"use strict";var a;i.r(t),"undefined"!==typeof window&&(a=window.document.currentScript)&&(a=a.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(i.p=a[1]);var n=i("5176"),r=i.n(n),s=(i("f559"),i("a4bb")),o=i.n(s),l=(i("6762"),i("2fdb"),i("a745")),c=i.n(l);function u(e){if(c()(e))return e}var d=i("5d73"),p=i.n(d);function f(e,t){var i=[],a=!0,n=!1,r=void 0;try{for(var s,o=p()(e);!(a=(s=o.next()).done);a=!0)if(i.push(s.value),t&&i.length===t)break}catch(l){n=!0,r=l}finally{try{a||null==o["return"]||o["return"]()}finally{if(n)throw r}}return i}function A(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function h(e,t){return u(e)||f(e,t)||A()}function m(e){if(c()(e)){for(var t=0,i=new Array(e.length);t<e.length;t++)i[t]=e[t];return i}}var g=i("774e"),v=i.n(g),b=i("c8bb"),y=i.n(b);function _(e){if(y()(Object(e))||"[object Arguments]"===Object.prototype.toString.call(e))return v()(e)}function w(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function C(e){return m(e)||_(e)||w()}var x=i("a352"),k=i.n(x),T=i("c649");function S(e,t,i){return void 0===i||(e=e||{},e[t]=i),e}function I(e,t){return e.map((function(e){return e.elm})).indexOf(t)}function E(e,t,i,a){if(!e)return[];var n=e.map((function(e){return e.elm})),r=t.length-a,s=C(t).map((function(e,t){return t>=r?n.length:n.indexOf(e)}));return i?s.filter((function(e){return-1!==e})):s}function O(e,t){var i=this;this.$nextTick((function(){return i.$emit(e.toLowerCase(),t)}))}function B(e){var t=this;return function(i){null!==t.realList&&t["onDrag"+e](i),O.call(t,e,i)}}function L(e){if(!e||1!==e.length)return!1;var t=h(e,1),i=t[0].componentOptions;return!!i&&["transition-group","TransitionGroup"].includes(i.tag)}function D(e,t){var i=t.header,a=t.footer,n=0,r=0;return i&&(n=i.length,e=e?[].concat(C(i),C(e)):C(i)),a&&(r=a.length,e=e?[].concat(C(e),C(a)):C(a)),{children:e,headerOffset:n,footerOffset:r}}function M(e,t){var i=null,a=function(e,t){i=S(i,e,t)},n=o()(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,i){return t[i]=e[i],t}),{});if(a("attrs",n),!t)return i;var s=t.on,l=t.props,c=t.attrs;return a("on",s),a("props",l),r()(i.attrs,c),i}var N=["Start","Add","Remove","Update","End"],j=["Choose","Sort","Filter","Clone"],P=["Move"].concat(N,j).map((function(e){return"on"+e})),U=null,F={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},R={name:"draggable",inheritAttrs:!1,props:F,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1,init:!1}},render:function(e){var t=this.$slots.default;this.transitionMode=L(t);var i=D(t,this.$slots),a=i.children,n=i.headerOffset,r=i.footerOffset;this.headerOffset=n,this.footerOffset=r;var s=M(this.$attrs,this.componentData);return e(this.getTag(),s,a)},created:function(){null!==this.list&&null!==this.value&&T["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&T["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&T["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={};N.forEach((function(i){t["on"+i]=B.call(e,i)})),j.forEach((function(i){t["on"+i]=O.bind(e,i)}));var i=o()(this.$attrs).reduce((function(t,i){return t[Object(T["a"])(i)]=e.$attrs[i],t}),{}),a=r()({},this.options,i,t,{onMove:function(t,i){return e.onDragMove(t,i)}});!("draggable"in a)&&(a.draggable=">*"),this._sortable=new k.a(this.rootContainer,a),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var i=Object(T["a"])(t);-1===P.indexOf(i)&&this._sortable.option(i,e[t])}},getChildrenNodes:function(){if(this.init||(this.noneFunctionalComponentMode=this.noneFunctionalComponentMode&&1===this.$children.length,this.init=!0),this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick((function(){e.visibleIndexes=E(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){var t=I(this.getChildrenNodes()||[],e);if(-1===t)return null;var i=this.realList[t];return{index:t,element:i}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&"transition-group"===t.$options._componentTag?t.$parent:t},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=C(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,C(e))};this.alterList(t)},updatePosition:function(e,t){var i=function(i){return i.splice(t,0,i.splice(e,1)[0])};this.alterList(i)},getRelatedContextFromMoveEvent:function(e){var t=e.to,i=e.related,a=this.getUnderlyingPotencialDraggableComponent(t);if(!a)return{component:a};var n=a.realList,s={list:n,component:a};if(t!==i&&n&&a.getUnderlyingVm){var o=a.getUnderlyingVm(i);if(o)return r()(o,s)}return s},getVmIndex:function(e){var t=this.visibleIndexes,i=t.length;return e>i-1?i:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){var t=this.getChildrenNodes();t[e].data=null;var i=this.getComponent();i.children=[],i.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),U=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){Object(T["d"])(e.item);var i=this.getVmIndex(e.newIndex);this.spliceList(i,0,t),this.computeIndexes();var a={element:t,newIndex:i};this.emitChanges({added:a})}},onDragRemove:function(e){if(Object(T["c"])(this.rootContainer,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context.index;this.spliceList(t,1);var i={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:i})}else Object(T["d"])(e.clone)},onDragUpdate:function(e){Object(T["d"])(e.item),Object(T["c"])(e.from,e.item,e.oldIndex);var t=this.context.index,i=this.getVmIndex(e.newIndex);this.updatePosition(t,i);var a={element:this.context.element,oldIndex:t,newIndex:i};this.emitChanges({moved:a})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var i=C(t.to.children).filter((function(e){return"none"!==e.style["display"]})),a=i.indexOf(t.related),n=e.component.getVmIndex(a),r=-1!==i.indexOf(U);return r||!t.willInsertAfter?n:n+1},onDragMove:function(e,t){var i=this.move;if(!i||!this.realList)return!0;var a=this.getRelatedContextFromMoveEvent(e),n=this.context,s=this.computeFutureIndex(a,e);r()(n,{futureIndex:s});var o=r()({},e,{relatedContext:a,draggedContext:n});return i(o,t)},onDragEnd:function(){this.computeIndexes(),U=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",R);var Q=R;t["default"]=Q}})["default"]}))},"19b1":function(e,t,i){e.exports=i.p+"static/img/friendsSelf-step3-2.4e68fcc5.png"},"19f5":function(e,t,i){e.exports=i.p+"static/img/appid-demo-2-1.3cf823d8.svg"},"1a17":function(e,t,i){},"1a3a":function(e,t,i){},"1a96":function(e,t,i){"use strict";i("fbf0")},"1ab2":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{height:"100%","min-width":"1100px"}},[i("ReturnPage",{attrs:{path:"/operationsCenter/material/intelligentForm","show-next-step":e.showEditFormFiled,"custom-back-method":!e.showEditFormFiled},on:{nextStep:e.nextStep,customBackMethod:e.previouStep}}),i("div",{directives:[{name:"show",rawName:"v-show",value:e.showEditFormFiled,expression:"showEditFormFiled"}],staticClass:"smart-form"},[i("div",{staticClass:"smart-form-left"},[i("FromComponentSelect")],1),i("div",{staticClass:"smart-form-preview"},[i("FormPreview",{attrs:{"active-name":e.activeName,"show-edit-form-filed":e.showEditFormFiled,"preview-form-filed":e.previewFormFiled}})],1),i("div",{staticClass:"smart-form-right"},[i("div",{staticClass:"form-right-top"},[i("div",{class:"mt10"+("fieldSetting"===e.activeName?" active":""),staticStyle:{cursor:"not-allowed"}},[e._v("字段设置")]),i("div",{class:"mt10"+("formSetting"===e.activeName?" active":""),staticStyle:{cursor:"pointer"},on:{click:e.changeTab}},[e._v("表单设置")])]),i("FromSetting",{directives:[{name:"show",rawName:"v-show",value:"formSetting"===e.activeName,expression:"activeName==='formSetting'"}],ref:"formSetting",attrs:{"show-edit-form-filed":e.showEditFormFiled,"edit-form-set-value":e.editFormSetValue}}),i("FiledSetting",{directives:[{name:"show",rawName:"v-show",value:"fieldSetting"===e.activeName,expression:"activeName==='fieldSetting'"}]})],1)]),e.showEditFormFiled?e._e():i("AddSmartForm",{attrs:{"form-init-value":e.formInitValue}})],1)},n=[],r=i("5530"),s=(i("a4d3"),i("e01a"),i("b64b"),i("c7ea")),o=i("dd9d"),l=i("81f6"),c=i("1737"),u=i("0432"),d=i("556d"),p=i("3e91"),f=i("aa50"),A=i("dd70"),h={components:{ReturnPage:f["a"],FromComponentSelect:d["default"],FromSetting:p["default"],FormPreview:u["default"],FiledSetting:c["default"],AddSmartForm:o["default"]},data:function(){return{activeName:"formSetting",showEditFormFiled:!0,formInitValue:void 0,formId:void 0,previewFormFiled:[],editFormSetValue:{}}},mounted:function(){var e=this;l["a"].$on("chooseComponents",(function(t){e.activeName="fieldSetting"})),l["a"].$on("clickComponents",(function(t){e.activeName="fieldSetting"})),l["a"].$on("formSetting",(function(){e.activeName="formSetting"})),this.formInitValue=Object(r["a"])(Object(r["a"])({},this.formInitValue),this.$route.query)},created:function(){var e=this.$route.query;this.formId=e.id,this.formId||(this.editFormSetValue={headImageUrl:A["W"],headImageOpenFlag:!0,formName:"表单名称",descriptionFlag:!0,description:"表单说明",showSortFlag:!0,submitText:"提 交",submitColor:"#6BB4AB"}),e.id&&this.getFormDetail()},beforeDestroy:function(){l["a"].$off("chooseComponents"),l["a"].$off("clickComponents"),l["a"].$off("formSetting")},methods:{getFormDetail:function(){var e=this;Object(s["g"])({id:this.formId}).then((function(t){e.previewFormFiled=JSON.parse(t.data.formVO.formFieldListJson),e.formInitValue=Object(r["a"])(Object(r["a"])(Object(r["a"])({},e.formInitValue),t.data.formSettingVO),{},{groupId:t.data.formVO.groupId,id:t.data.formVO.id});var i=t.data.formVO,a=i.headImageUrl,n=i.headImageOpenFlag,s=i.description,o=i.formName,l=i.submitText,c=i.submitColor,u=i.showSortFlag,d=i.descriptionFlag;e.editFormSetValue={headImageUrl:a,headImageOpenFlag:n,description:s,formName:o,submitText:l,submitColor:c,showSortFlag:u,descriptionFlag:d}}))},changeTab:function(){this.activeName="formSetting"},nextStep:function(){var e=this.$refs["formSetting"].checkFormRules();e&&(this.showEditFormFiled=!1)},previouStep:function(){this.showEditFormFiled=!0}}},m=h,g=(i("b3c1"),i("2877")),v=Object(g["a"])(m,a,n,!1,null,"30cb1c56",null);t["default"]=v.exports},"1ab6":function(e,t,i){},"1ace":function(e,t,i){"use strict";i("a750")},"1af5":function(e,t,i){"use strict";i("35ad")},"1bd8":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"graphics",attrs:{id:"graphics"}})},n=[],r=i("313e"),s={name:"",components:{},props:{echarsOptionsData:{type:Object,default:function(){}}},data:function(){return{myChart:null}},computed:{},mounted:function(){this.initGraphics()},methods:{initGraphics:function(){this.myChart=r["init"](this.$refs.graphics),this.myChart&&this.myChart.setOption(this.echarsOptionsData)}}},o=s,l=(i("dd53"),i("2877")),c=Object(l["a"])(o,a,n,!1,null,"32b2fab8",null);t["default"]=c.exports},"1cf1":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"off-account-card"},[i("div",{staticClass:"card-top"},[e.cardData.nickName?i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[i("div",{staticClass:"tooltip-content"},[e._v(" "+e._s(e.cardData.nickName)+" ")])]),i("div",{staticClass:"top-title inoneline"},[e._v(" "+e._s(e.cardData.nickName)+" ")])]):i("div",{staticClass:"top-title"}),i("div",{staticClass:"top-move"},[i("el-button",{attrs:{type:"text"},on:{click:e.move}},[e._v("移除")])],1)],1),i("div",{staticClass:"card-content"},[i("div",{staticClass:"content-info"},[e.cardData.principalName?i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[i("div",{staticClass:"tooltip-content"},[e._v(" "+e._s(e.cardData.principalName)+" ")])]),i("div",{staticClass:"info-msg inoneline"},[e._v(e._s(e.cardData.principalName))])]):i("div",{staticClass:"info-msg"}),e.cardData.serviceTypeInfo||0===e.cardData.serviceTypeInfo?i("div",{staticClass:"info-tag"},[i("div",{staticClass:"type-tag"},[e._v(" "+e._s([e.SUBSCRIBE_OFF_ACCOUNT,e.UPDATED_SUBSCRIBE_OFF_ACCOUNT].includes(e.cardData.serviceTypeInfo)?"订阅号":"服务号")+" ")])]):e._e()],1),e.cardData.headImg?i("div",{staticClass:"content-img"},[i("img",{attrs:{src:e.cardData.headImg}})]):e._e()])])},n=[],r=(i("99af"),i("dd70")),s={props:{cardData:{type:Object,default:function(){}},getList:{type:Function,default:function(){}}},data:function(){return{SUBSCRIBE_OFF_ACCOUNT:r["kd"],UPDATED_SUBSCRIBE_OFF_ACCOUNT:r["td"],SERVICE_OFF_ACCOUNT:r["cd"],WX_PAAS_URL:r["Bd"],CONFIG_INTRODUCE_URL:r["t"]}},methods:{move:function(){this.confirmModal({title:"移除公众号",type:null,msg:' 若需要解除授权,请前往\n <a href="'.concat(r["Bd"],'" style="color: #409eff" target="_blank">微信公众平台</a>\n 进行操作,可参考\n <a href="').concat(r["t"],'" style="color: #409eff" target="_blank">配置说明</a>\n 文档步骤说明。'),showCancelButton:!1,confirmButtonText:"我知道了",dangerouslyUseHTMLString:!0},(function(){}))}}},o=s,l=(i("e9c6"),i("2877")),c=Object(l["a"])(o,a,n,!1,null,"a3ec237a",null);t["default"]=c.exports},"1d47":function(e,t,i){"use strict";i("c2b7")},"1d90":function(e,t,i){"use strict";i("5c33")},"1d95":function(e,t,i){},"1dfe":function(e,t,i){e.exports={menuText:"#333",menuActiveText:"#333",subMenuActiveText:"#333",menuBg:"#fff",menuHover:"#fafafa",subMenuBg:"#fff",subMenuHover:"#fafafa",sideBarWidth:"250px"}},"1e14":function(e,t,i){},"1e1c":function(e,t,i){},"1e36":function(e,t,i){e.exports=i.p+"static/img/可见范围.446e8dbd.png"},"1e4b":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"index"},[i("NoConfigInfo",{staticStyle:{"margin-bottom":"15px"},attrs:{"config-keys":["contactSecret"],"page-title":"统计数据"}}),i("Statistics",{staticClass:"data-overview",attrs:{"col-list":e.colList,title:"数据总览",color:"#333333","border-radius":"5px"}},[i("template",{slot:"operate"},[i("el-popover",{attrs:{placement:"left-start",trigger:"hover",offset:10}},[i("div",{staticClass:"popover-content"},[i("div",{staticClass:"info"},[i("p",[e._v("企业成员总数:截至当前,企业下已激活且未离职的员工总数")]),i("p",[e._v("客户总数:截至当前,企业下在职员工没有删除的客户数以及离职员工未分配的客户数,未去重")]),i("p",[e._v("留存客户总数:截至当前,企业下员工未删除且未将员工删除/拉黑的客户数,已去重")]),i("p",[e._v("客户群总数:截至当前,企业下未离职员工的客户群数量")]),i("p",[e._v("昨日群成员总数:截至昨天,企业下未离职员工的客户群群成员总数,未去重")])])]),i("div",{staticClass:"statistic theme-text-color",attrs:{slot:"reference"},slot:"reference"},[e._v("统计说明")])])],1)],2),i("div",{staticClass:"index_l whitebg"},[i("div",{staticClass:"dataall",staticStyle:{"margin-top":"10px"}},[i("div",{staticStyle:{"text-align":"left"}},[i("el-row",{staticClass:"row-bg",attrs:{type:"flex",justify:"space-between"}},[i("el-col",{staticClass:"title_name",attrs:{span:10}},[e._v("实时数据 "),i("span",{staticClass:" fontgay"},[e._v("更新于"+e._s(e.uptime))]),i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"更新统计",placement:"top",manual:!0},model:{value:e.toolTipVisible,callback:function(t){e.toolTipVisible=t},expression:"toolTipVisible"}},[i("i",{staticClass:"el-icon-refresh theme-text-color",on:{click:e.handleReset}})])],1),i("el-col",{staticClass:"tool-right",staticStyle:{"text-align":"right"},attrs:{span:10}},[i("el-popover",{attrs:{placement:"left-start",width:444,trigger:"hover"},scopedSlots:e._u([{key:"reference",fn:function(){return[i("div",{staticClass:"theme-text-color cp f14 statistical-statement"},[e._v("统计说明")])]},proxy:!0},{key:"default",fn:function(){return[i("div",{staticClass:"popover-content",staticStyle:{"line-height":"30px"}},[e._v(" 新增客户数:查询时间内,员工添加的客户数量"),i("br"),e._v(" 流失客户数:查询时间内,把员工删除/拉黑的数量"),i("br"),e._v(" 新客留存率:查询时间内,未将员工删除、拉黑的新增客户/新增客户"),i("br"),e._v(" 新增客户群:查询时间内,员工新创建的客户群数量"),i("br"),e._v(" 客户群新增人数:查询时间内,客户群新增的群成员数量"),i("br")])]},proxy:!0}])}),i("el-radio-group",{staticStyle:{"margin-top":"20px"},on:{change:e.timeTypeCheck},model:{value:e.timeType,callback:function(t){e.timeType=t},expression:"timeType"}},[i("el-radio-button",{attrs:{label:"today"}},[e._v("今日")]),i("el-radio-button",{attrs:{label:"week"}},[e._v("本周")]),i("el-radio-button",{attrs:{label:"month"}},[e._v("本月")])],1)],1)],1),i("el-row",{staticClass:"row-bg",staticStyle:{"margin-top":"30px","text-align":"center"},attrs:{type:"flex",justify:"space-between"}},[i("el-col",{attrs:{span:8}},[e._v("新增客户数")]),i("el-col",{attrs:{span:8}},[e._v("流失客户数")]),i("el-col",{attrs:{span:8}},[e._v("新客留存率")]),i("el-col",{attrs:{span:8}},[e._v("新增客户群")]),i("el-col",{attrs:{span:8}},[e._v("客户群新增人数")])],1),i("el-row",{staticClass:"row-bg data-count theme-text-color",attrs:{type:"flex",justify:"space-between"}},e._l(["newContactCnt","negativeFeedbackCnt","newContactRetentionRate","newChatCnt","newMemberCnt"],(function(t,a){return i("CntItem",{key:a,attrs:{"erchats-table":e.erchatsTable,field:t,unit:"newContactRetentionRate"===t?"%":""}})})),1),i("el-row",{staticClass:"row-bg",staticStyle:{"margin-top":"10px","text-align":"center"},attrs:{type:"flex",justify:"space-between"}},e._l(["newContactCntDiff","negativeFeedbackCntDiff","newContactRetentionRateDiff","newChatCntDiff","newMemberCntDiff"],(function(t,a){return i("DiffItem",{key:a,attrs:{"erchats-table":e.erchatsTable,field:t,time:e.time,unit:"newContactRetentionRateDiff"===t?"%":""}})})),1)],1)]),i("div",{staticClass:"erchatsdiv",staticStyle:{"margin-top":"10px"}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{staticClass:"erchats",attrs:{span:12}},[i("el-row",{staticClass:"row-bg",attrs:{type:"flex",justify:"space-between"}},[i("div",{attrs:{id:"fatherbox"}},[i("div",{ref:"views",attrs:{id:"main2"}})])])],1),i("el-col",{staticClass:"erchats",attrs:{span:12}},[i("el-row",{staticClass:"row-bg",attrs:{type:"flex",justify:"space-between"}},[i("div",{attrs:{id:"fatherbox"}},[i("div",{ref:"views",attrs:{id:"main3"}})])])],1),i("el-col",{staticClass:"erchats",attrs:{span:12}},[i("el-row",{staticClass:"row-bg",attrs:{type:"flex",justify:"space-between"}},[i("div",{attrs:{id:"fatherbox"}},[i("div",{ref:"views",attrs:{id:"main4"}})])])],1),i("el-col",{staticClass:"erchats",attrs:{span:12}},[i("el-row",{staticClass:"row-bg",attrs:{type:"flex",justify:"space-between"}},[i("div",{attrs:{id:"fatherbox"}},[i("div",{ref:"views",attrs:{id:"main5"}})])])],1)],1)],1)])],1)},n=[],r=i("ade3"),s=i("5530"),o=(i("99af"),i("d81d"),i("d3b7"),i("159b"),i("069e")),l=i("cf45"),c=i("cc48"),u=i("313e"),d=i.n(u),p=i("f710"),f=i("bce6"),A=i("7d0a"),h=i("dd70"),m=100,g={name:"Index",components:{NoConfigInfo:p["a"],DiffItem:f["default"],CntItem:A["default"],Statistics:o["a"]},data:function(){return{nowTime:new Date,bossImg:i("915f"),erchatsTable:{},xAxis:["1","2","3","4","5"],allData:{},time:"昨天",uptime:"",timeType:"today",opinionData:{opinionData1:[],opinionData2:[],opinionData3:[],opinionData4:[]},charts:null,toolTipVisible:!0,colList:[{title:"企业成员总数",filed:"userCount",showPopover:!1},{title:"客户总数",filed:"totalAllContactCnt",showPopover:!1},{title:"留存客户总数",filed:"customerCount",showPopover:!1},{title:"客户群总数",filed:"groupCount",showPopover:!1},{title:"昨日群成员总数",filed:"groupMemberCount",showPopover:!1}],DATA_STATISTICS_DEFAULT_SHOW:h["F"]}},watch:{uptime:function(){var e=this;this.toolTipVisible=!1,setTimeout((function(){e.toolTipVisible=!0}),m)}},mounted:function(){this.erchatInfo(),this.tableInfo()},methods:{alerts:function(e){this.msgSuccess(e)},carLink:function(e){this.$router.push(e)},canvansData:function(e,t,i,a,n,r,s){var o=Object(l["h"])(this.erchatsTable.dataList),c=[];i.forEach((function(e){c.push({name:e,data:o[e]})})),this.xAxis=o[a],this.drawLine(e,t,c,n,r,s)},timeTypeCheck:function(){"today"===this.timeType?(this.time="昨天",this.erchatsTable=this.allData.today,this.serErchat()):"week"===this.timeType?(this.time="上周",this.erchatsTable=this.allData.week,this.serErchat()):"month"===this.timeType&&(this.time="上月",this.erchatsTable=this.allData.month,this.serErchat())},handleReset:function(){this.timeType={"昨天":"today","上周":"week","上月":"month"}[this.time],this.reloadRedis()},tableInfo:function(){var e=this;c["a"].indexTable().then((function(t){e.colList=e.colList.map((function(e){return Object(s["a"])(Object(s["a"])({},e),{},Object(r["a"])({},e.filed,t.data[e.filed]))}))}))},reloadRedis:function(){c["a"].reloadredis().then((function(e){window.location.reload()}))},erchatInfo:function(){var e=this;c["a"].indexEchart().then((function(t){e.allData=t.data,e.uptime=t.data.updateTime,e.erchatsTable=e.allData[e.timeType],e.serErchat()}))},serErchat:function(){this.canvansData("main2",["留存客户总数","新增客户数","流失客户数"],["totalContactCnt","newContactCnt","negativeFeedbackCnt"],"btm1",["#5088EC","#12BF49","#EA656F"]),this.canvansData("main3",["新客留存率"],["newContactRetentionRate"],"btm1",["#5088EC"],"%"),this.canvansData("main4",["客户群总数","新增客户群"],["chatTotal","newChatCnt"],"btm1",["#5088EC","#12BF49"]),this.canvansData("main5",["客户群总人数","客户群新增人数"],["memberTotal","newMemberCnt"],"btm1",["#5088EC","#12BF49"],"","客户群总人数不包含今日的数据")},drawLine:function(e,t,i,a){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",s=document.getElementById(e);s&&(s.style.width="100%",s.style.height="370px",this.charts=d.a.init(s));var o=i.map((function(e,i){return{name:t[i],type:"line",smooth:!0,connectNulls:!0,data:e.data,textStyle:{color:"#fff"}}})),l={color:a,title:{subtext:r},tooltip:{trigger:"axis",formatter:function(e){var t="";return e.forEach((function(i,a){var r=i.data===h["F"]?"".concat(i.data," "):"".concat(i.data).concat(n);t+="".concat(i.axisValue,"<br/>").concat(i.marker).concat(i.seriesName," ").concat(r),t+=a===e.length-1?"":"<br/>"})),t}},legend:{data:t},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:this.xAxis,axisLine:{lineStyle:{color:"#ccc"}}},yAxis:{type:"value",axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{formatter:"{value}".concat(n)}},series:o};this.charts.setOption(l)}}},v=g,b=(i("67dc"),i("2877")),y=Object(b["a"])(v,a,n,!1,null,"67f38452",null);t["default"]=y.exports},"1e8b":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"form",staticClass:"user-profile-form",attrs:{model:e.user,rules:e.rules,"label-width":"80px",disabled:e.isDkType}},[i("el-form-item",{attrs:{label:"姓名",prop:"nickName"}},[i("el-input",{attrs:{maxlength:"32",disabled:!e.isSuperAdmin,"show-word-limit":""},model:{value:e.user.nickName,callback:function(t){e.$set(e.user,"nickName",t)},expression:"user.nickName"}})],1),i("el-form-item",{attrs:{label:"性别"}},[i("el-radio-group",{attrs:{disabled:!e.isSuperAdmin},model:{value:e.user.sex,callback:function(t){e.$set(e.user,"sex",t)},expression:"user.sex"}},[i("el-radio",{attrs:{label:"1"}},[e._v("男")]),i("el-radio",{attrs:{label:"2"}},[e._v("女")])],1)],1),i("el-form-item",{attrs:{label:"手机号码",prop:"phonenumber"}},[i("el-input",{attrs:{maxlength:"20",disabled:!e.isSuperAdmin},model:{value:e.user.phonenumber,callback:function(t){e.$set(e.user,"phonenumber",t)},expression:"user.phonenumber"}})],1),i("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[i("el-input",{attrs:{maxlength:"32",disabled:!e.isSuperAdmin},model:{value:e.user.email,callback:function(t){e.$set(e.user,"email",t)},expression:"user.email"}})],1),i("el-form-item",{attrs:{label:"所在企业"}},[i("el-input",{attrs:{value:e.$store.getters.enterPriseWechatConfig.companyName||"",disabled:""}})],1),i("el-form-item",{attrs:{label:"所属部门"}},[i("el-input",{attrs:{value:e.isSuperAdmin?"":e.user.deptName,disabled:""}})],1),i("el-form-item",{attrs:{label:"角色"}},[i("el-input",{attrs:{value:e.isSuperAdmin?"超级管理员":e.user.roleName,disabled:""}})],1),i("el-form-item",{attrs:{label:"创建日期"}},[i("el-input",{attrs:{value:e.formatTime(e.user.createTime),disabled:""}})],1),i("el-form-item",[!e.isDkType&&e.isSuperAdmin?i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submit}},[e._v("更新信息")]):e._e()],1)],1)},n=[],r=i("c0c7"),s=i("ef6c"),o=i("c1df"),l=i.n(o),c={props:{user:{type:Object,default:function(){return{}}},isSuperAdmin:{type:Boolean}},data:function(){return{rules:{nickName:[{required:!0,message:"用户昵称不能为空",trigger:"blur"}],phonenumber:[{required:!this.isSuperAdmin,message:"手机号码不能为空",trigger:"blur"},{pattern:/^1[3|4|5|6|7|8|9][0-9]\d{8}$/,message:"请输入正确的手机号码",trigger:"blur"}]}}},computed:{isDkType:function(){return this.$store.state.serverInfo.dkCorp}},methods:{formatTime:function(e){return e?l()(e).format("YYYY-MM-DD HH:mm:ss"):""},submit:function(){var e=this;this.$refs["form"].validate((function(t){if(t)if(e._props.isSuperAdmin)Object(r["b"])(e.user).then((function(t){e.msgSuccess("更新成功")}));else{var i=e._props.user,a=i.userId,n=i.nickName,o=i.sex,l=i.phonenumber,c=i.email,u={userId:a,name:n,gender:o,mobile:l,email:c};Object(s["d"])(u).then((function(t){e.msgSuccess("已更新至企业微信")}))}}))},close:function(){this.$store.dispatch("tagsView/delView",this.$route),this.$router.push({path:"/index"})}}},u=c,d=(i("4643"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"792fdb55",null);t["default"]=p.exports},"1eb1":function(e,t,i){"use strict";i("ff51")},"1ed0":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"intelligent-form-content-page"},[i("div",{class:e.groupData.length?"intelligent-form-group":"intelligent-form-group empty"},[i("common-tree",{ref:"tree",staticClass:"left-tree",attrs:{data:e.groupData.length?e.treeData:[],"node-key":"id","default-expand-all":"","highlight-current":"",props:e.defaultProps,"expand-on-click-node":!1},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.node,n=t.data;return i("div",{staticClass:"custom-tree-node",on:{click:function(t){return t.stopPropagation(),e.selectGroup(n)}}},[i("div",{staticClass:"group-left"},[n.id!==e.TREE_ALL_GROUP_ID?i("svg",{staticClass:"icon-folder",attrs:{width:20,height:20}},[i("use",{attrs:{href:"#icon-folder"}})]):e._e(),i("span",[e._v(e._s(a.label))])]),i("span",{staticClass:"right-tool"},[n.id===e.TREE_ALL_GROUP_ID&&e.roleKey?i("i",{staticClass:"iconfont icon-add",attrs:{title:"添加"},on:{click:function(t){return t.stopPropagation(),e.addGroup()}}}):e._e(),n.id!==e.TREE_ALL_GROUP_ID&&e.roleKey?i("el-dropdown",{staticClass:"dropdown-list",attrs:{trigger:"click"},on:{command:function(t){return e.handleCommand(t,n)}}},[e.roleKey?i("i",{staticClass:"iconfont icon-more",on:{click:function(e){return e.stopPropagation()}}}):e._e(),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n.parentId===e.TREE_ALL_GROUP_ID?i("el-dropdown-item",{attrs:{command:"add"}},[i("i",{staticClass:"iconfont el-icon-plus"}),e._v("分组 ")]):e._e(),i("el-dropdown-item",{attrs:{command:"edit"}},[i("i",{staticClass:"iconfont el-icon-edit-outline"}),e._v("编辑 ")]),i("el-dropdown-item",{attrs:{command:"placedAtTop",disabled:0===e.dealList(n).index}},[i("i",{staticClass:"iconfont icon-placedAtTop"}),e._v("置顶 ")]),i("el-dropdown-item",{attrs:{command:"moveTop",disabled:0===e.dealList(n).index}},[i("i",{staticClass:"iconfont el-icon-top"}),e._v("上移 ")]),i("el-dropdown-item",{attrs:{command:"moveBottom",disabled:e.checkLastItem(e.dealList(n))}},[i("i",{staticClass:"iconfont el-icon-bottom"}),e._v("下移 ")]),i("el-dropdown-item",{attrs:{command:"delete"}},[i("i",{staticClass:"iconfont el-icon-delete"}),e._v("删除 ")])],1)],1):e._e()],1)])}}])},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{text:"暂无分组"}},[i("template",{slot:"customBtn"},[e.roleKey?i("div",{staticClass:"customBtn"},[e._v("分组用于表单分类,添加表单前先"),i("el-button",{attrs:{type:"text"},on:{click:e.addGroup}},[e._v("添加分组")])],1):e._e()])],2)],1)],2)],1),i("GroupModal",{attrs:{visible:e.groupVisible,title:(e.groupFromData.id?"编辑":"新增")+"分组",width:"443px","group-data":e.filterGroup,"form-data":e.groupFromData,type:e.type,"department-id":e.departmentId,"get-list":function(t){return e.getFormGroupListByType(e.type,t)}},on:{"update:visible":function(t){e.groupVisible=t},"update:formData":function(t){e.groupFromData=t},"update:form-data":function(t){e.groupFromData=t}}}),i("IntelligentFormList",{ref:"intelligentFormListRef",attrs:{type:e.type,"group-tree-data":e.treeData,"role-key":e.roleKey,"selected-group-id":e.selectGroupDataId,"select-group-parent-id":e.selectGroupParentId}})],1)},n=[],r=i("c7eb"),s=i("5530"),o=i("1da1"),l=i("2909"),c=(i("99af"),i("4de4"),i("c740"),i("a434"),i("b0c0"),i("a9e3"),i("d3b7"),i("c7ea")),u=i("dd70"),d=i("3e7f"),p=i("cf45"),f=i("e350"),A=i("ce6b"),h=i("e77d"),m=i("c5c3"),g={name:"IntelligentFormContent",components:{CommonTree:A["a"],EmptyDefaultIcon:h["a"],GroupModal:d["default"],IntelligentFormList:m["default"]},props:{type:{type:Number,default:u["Ib"]["enterprise"]},departmentId:{type:String,default:void 0}},data:function(){return{groupData:[],defaultProps:{label:"name",children:"children"},groupVisible:!1,groupFromData:{parentId:void 0,name:void 0},TREE_ALL_GROUP_ID:u["sd"],roleKey:!0,selectGroupDataId:void 0,selectGroupParentId:void 0}},computed:{treeData:function(){var e=[{id:u["sd"],name:"全部"}].concat(Object(l["a"])(this.groupData));return this.handleTree(e)},filterGroup:function(){var e=Object(l["a"])(this.groupData);return e=e.filter((function(e){return e.parentId===u["sd"]})),e}},watch:{type:function(e){var t;void 0!==e&&(null===(t=this.$refs)||void 0===t||t.intelligentFormListRef.resetQuery(),this.roleKey=this.formHandlePermission(e),e===u["Ib"]["department"]?this.selectGroupDataId?this.getAllListByParams(!0,!1):this.getAllListByParams(!0):this.selectGroupDataId?this.getAllListByParams(!1,!1):this.getAllListByParams())},departmentId:function(e){this.type===u["Ib"]["department"]&&this.getAllListByParams(!0)}},created:function(){this.getAllListByParams(Boolean(this.departmentId)),this.roleKey=this.formHandlePermission(this.type)},mounted:function(){},methods:{getAllListByParams:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e?this.getAllList({departmentId:this.departmentId},t):this.getAllList({},t)},formHandlePermission:function(e){switch(e){case u["Ib"]["enterprise"]:return Object(f["a"])(["intelligentForm:manage:corp"]);case u["Ib"]["department"]:return Object(f["a"])(["intelligentForm:manage:dept"])}return!0},getAllList:function(e){var t=arguments,i=this;return Object(o["a"])(Object(r["a"])().mark((function a(){var n,o,l;return Object(r["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(n=!(t.length>1&&void 0!==t[1])||t[1],i.selectGroupDataId=void 0,i.$store.getters.saveCondition&&i.$store.getters.searchQuery[i.$route.name].selectedGroup&&(o=i.$store.getters.searchQuery[i.$route.name].selectedGroup,i.selectGroupParentId=o[1]?o[0]:u["sd"],i.selectGroupDataId=o[1]||o[0]),i.getFormGroupListByType(null===i||void 0===i?void 0:i.type,Object(s["a"])({},e)),!n){a.next=8;break}return a.next=7,i.$nextTick();case 7:null===(l=i.$refs)||void 0===l||null===(l=l.intelligentFormListRef)||void 0===l||l.onSearch();case 8:case"end":return a.stop()}}),a)})))()},selectGroup:function(e){this.selectGroupParentId=e.parentId,this.selectGroupDataId=(null===e||void 0===e?void 0:e.id)===u["sd"]||null===e||void 0===e?void 0:e.id,this.$refs.tree&&this.$refs.tree.$refs.commonTree.setCurrentKey(e.id)},getFormGroupListByType:function(e,t){var i=this;return Object(o["a"])(Object(r["a"])().mark((function a(){return Object(r["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:Object(c["q"])(Object(s["a"])({sourceType:e},t)).then((function(e){i.groupData=e.data,i.$nextTick((function(){i.$refs.tree&&i.$refs.tree.$refs.commonTree.setCurrentKey(i.selectGroupDataId)}))})).catch((function(){i.groupData=[]}));case 1:case"end":return a.stop()}}),a)})))()},addGroup:function(){this.groupVisible=!0,this.groupFromData={}},handleCommand:function(e,t){var i=this;switch(e){case"add":this.addGroup(),this.groupFromData.parentId=t.id;break;case"edit":this.addGroup(),this.groupFromData=Object(s["a"])(Object(s["a"])({},t),{},{isEdit:!0}),"0"===this.groupFromData.parentId&&(this.groupFromData.parentId=null);break;case"delete":this.confirmModal({msg:"该分组下分组和表单都将被删除,且不可撤回,是否继续?"},Object(o["a"])(Object(r["a"])().mark((function e(){var a;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(c["u"])({id:t.id});case 2:a=e.sent,a&&(i.msgSuccess("删除成功"),i.differentGetFormGroupList());case 4:case"end":return e.stop()}}),e)}))));break;case"placedAtTop":var a=this.dealList(t),n=Object(l["a"])(a.list),u=a.index;u>-1&&(n.splice(u,1),n.unshift(t)),this.changeGroupSort(n);break;case"moveTop":var d=this.dealList(t),p=Object(l["a"])(d.list);p.splice(d.index-1,0,p.splice(d.index,1)[0]),this.changeGroupSort(p);break;case"moveBottom":var f=this.dealList(t),A=Object(l["a"])(f.list);A.splice(f.index,0,A.splice(f.index+1,1)[0]),this.changeGroupSort(A);break}},changeGroupSort:function(e){var t=this;return Object(o["a"])(Object(r["a"])().mark((function i(){var a,n;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a=Object(l["a"])(Object(p["p"])(e)),i.next=3,Object(c["e"])({sortList:a});case 3:n=i.sent,n&&t.differentGetFormGroupList();case 5:case"end":return i.stop()}}),i)})))()},differentGetFormGroupList:function(){this.type===u["Ib"]["department"]?this.getFormGroupListByType(this.type,{departmentId:this.departmentId}):this.getFormGroupListByType(this.type)},dealList:function(e){var t,i;if("0"===e.parentId)i=Object(l["a"])(this.treeData[0].children),t=i.findIndex((function(t){return t.id===e.id}));else{var a=this.treeData[0].children.findIndex((function(t){return t.id===e.parentId}));a>-1&&(i=Object(l["a"])(this.treeData[0].children[a].children),t=i.findIndex((function(t){return t.id===e.id})))}return{list:i,index:t}},checkLastItem:function(e){var t;return e.index===(null===(t=e.list)||void 0===t?void 0:t.length)-1}}},v=g,b=(i("4830"),i("2877")),y=Object(b["a"])(v,a,n,!1,null,"418d3103",null);t["default"]=y.exports},"1f0d":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("RightContainer",{attrs:{"page-title":"管理企业标签"},scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.query}},[i("el-form-item",[i("el-input",{attrs:{placeholder:"请输入标签组或标签",clearable:""},model:{value:e.query.searchName,callback:function(t){e.$set(e.query,"searchName",t)},expression:"query.searchName"}})],1),i("el-form-item",[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.onSearch()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"data-stat",fn:function(){return[i("div",{class:"desc-div"+("group"===e.type?" group-desc-div":"")},[i("div",[e._v("当前"+e._s("group"===e.type?"客户群":"企业")+"标签已创建"),i("span",{staticClass:"data-count-num"},[e._v(e._s(e.tagTotal)+"/10000")])]),"group"===e.type?i("div",{staticClass:"gray-desc"},[e._v("群标签为系统标签,不可同步到企业微信")]):e._e()])]},proxy:!0},{key:"operate-btn",fn:function(){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:tag:add"],expression:"['customerManage:tag:add']"}],attrs:{type:"primary"},on:{click:function(t){return e.edit()}}},[e._v("新建标签组")]),"customer"===e.type?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:tag:sync"],expression:"['customerManage:tag:sync']"}],on:{click:e.syncTag}},[e._v("同步标签组")]):e._e(),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:tag:remove"],expression:"['customerManage:tag:remove']"}],on:{click:function(t){return e.remove()}}},[e._v("批量删除")])]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list},on:{"selection-change":e.handleSelectionChange}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{text:"暂无数据",desc:"customer"===e.type?"若首次加载,请耐心等待后台数据同步,稍后回来":"","desc-show-condition":{searchName:e.query.searchName}}})],1),i("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),i("el-table-column",{attrs:{label:"标签组",align:"left",prop:"groupName"}}),i("el-table-column",{attrs:{label:"标签",align:"left",prop:"weTags"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.weTags,(function(t,a){return i("el-tag",{key:a,staticClass:"customer-tag-item",attrs:{type:"info"}},[e._v(e._s(t.name))])}))}}])}),i("el-table-column",{attrs:{label:"操作",align:"left","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:tag:edit"],expression:"['customerManage:tag:edit']"}],attrs:{type:"text"},on:{click:function(i){return e.edit(t.row,t.index)}}},[e._v("编辑")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:tag:remove"],expression:"['customerManage:tag:remove']"}],attrs:{type:"text"},on:{click:function(i){return e.remove(t.row.groupId)}}},[e._v("删除")])]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.query.pageNum,limit:e.query.pageSize,disabled:e.loading,"select-data-len":e.ids.length},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}}),i("AddTag",{attrs:{visible:e.dialogVisible,form:e.form,"tag-type":e.type},on:{"update:visible":function(t){e.dialogVisible=t},success:e.addTagSuccess}})]},proxy:!0}])})},n=[],r=i("5530"),s=(i("d81d"),i("e9c4"),i("b64b"),i("d3b7"),i("b66d")),o=i("e77d"),l=i("b9b5"),c=i("dd70"),u=i("b25c"),d=i("2553"),p=i("14e1"),f=i("e2e0"),A={name:"",components:{AddTag:l["a"],RightContainer:s["a"],EmptyDefaultIcon:o["a"]},mixins:[f["a"]],props:{type:{type:String,default:"customer"}},data:function(){return{query:{searchName:"",pageNum:1,pageSize:c["Ic"]},loading:!1,list:[],total:0,dialogVisible:!1,form:{groupName:"",weTags:[]},ids:[],multiple:!0,tagTotal:0}},watch:{type:function(){this.getList(1),this.getTagTotal()}},created:function(){this.getList(),this.getTagTotal()},mounted:function(){},methods:{addTagSuccess:function(){this.getTagTotal(),this.form.groupId?this.getList():this.resetQuery()},onSearch:function(){this.getList(1)},getTagTotal:function(){var e=this,t="customer"===this.type?p["f"]:d["groupTotalTagCnt"];t().then((function(t){e.tagTotal=t.data}))},getList:function(e){var t=this;switch(e&&(this.query.pageNum=e),this.loading=!0,this.type){case"customer":u["getList"](this.query).then((function(e){var i=e.rows,a=e.total;t.list=i,t.total=+a})).finally((function(){t.modifyButtonStatus(),t.loading=!1}));break;case"group":d["getGroupTagListByPage"](Object(r["a"])({},this.query)).then((function(e){var i=e.rows,a=e.total;t.list=i,t.total=+a})).finally((function(){t.modifyButtonStatus(),t.loading=!1}));break}},resetQuery:function(){var e=this;this.query.searchName="",this.$nextTick((function(){e.getList(1)}))},remove:function(e){var t=this;if(e||this.ids.length){var i=e||this.ids+"";this.confirmModal({msg:"删除后,将不可再为".concat("group"===this.type?"客户群":"客户","添加该标签,是否继续?")},(function(){var a=e?1:t.ids.length,n=t.list.length===a&&t.query.pageNum>1?t.query.pageNum-1:t.query.pageNum;switch(t.type){case"customer":return u["remove"](i).then((function(){t.$store.dispatch("listInfo/delCustomerTag",i.split(",")),t.getList(n),t.getTagTotal(),t.msgSuccess("删除成功")}));case"group":var r=e?[e]:t.ids;d["deleteGroupTag"]({delList:r}).then((function(){t.$store.dispatch("listInfo/delGroupTag",r),t.getList(n),t.getTagTotal(),t.msgSuccess("删除成功")}))}}))}else this.msgWarn("请至少选择一个标签组")},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.groupId})),this.multiple=!e.length},syncTag:function(){var e=this,t=this.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});u["syncTag"]().then((function(){t.close(),e.msgSuccess("操作成功"),e.getList()}))},edit:function(e,t){this.form=JSON.parse(JSON.stringify(Object.assign({weTags:[]},e||{}))),this.dialogVisible=!0}}},h=A,m=(i("7459"),i("2877")),g=Object(m["a"])(h,a,n,!1,null,"9aae4170",null);t["default"]=g.exports},"1f78":function(e,t,i){"use strict";i("a97f")},"1fe6":function(e,t,i){"use strict";i("0c05")},2018:function(e,t,i){"use strict";i("bcff")},2042:function(e,t,i){e.exports=i.p+"static/img/linkUseTip-2-1.3acc2911.jpg"},2093:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"quick-demo enterprise-wechat-demo"},[i("div",{staticClass:"quick-div"},[i("el-alert",{attrs:{title:"由于企业微信官方调整,应用不可直接获取员工头像、手机号、邮箱等信息,请企业管理员扫码授权同步成员信息",type:"warning","show-icon":"",closable:!1}}),i("div",{staticClass:"step-div"},[i("el-steps",{attrs:{direction:"vertical",active:e.active,"finish-status":"success"}},[i("el-step",{attrs:{title:"扫码授权"}},[0===e.active?i("template",{slot:"description"},[i("div",{staticClass:"orange tip"},[e._v(" 请使用企业微信管理员扫码授权,成功授权后将开始自动同步 ")]),e.qrcodeUrl&&!e.qrcodeLoad?i("div",{staticClass:"qrcode-div"},[e.scanLoginError?i("div",{staticClass:"overdue-div"},[i("div",[i("i",{staticClass:"el-icon-warning"})]),i("div",{staticClass:"overdue-tip"},[i("span",[e._v(e._s(e.scanLoginErrText))]),e.refresh?e._e():i("span",{staticClass:"reGet",on:{click:e.reGetQrcode}},[e._v("刷新")])])]):e._e(),i("img",{attrs:{src:e.qrcodeUrl}})]):i("div",{staticClass:"qrcode-div"},[i("div",[i("i",{staticClass:"el-icon-loading"})])]),e.needCode?i("CodeValidata",{attrs:{"qrcode-key":e.qrcodeKey,tel:e.tel,"tl-key":e.tlKey},on:{loginSuccessAndConfig:e.loginSuccessAndConfig}}):e._e()],1):e._e()],2),1===e.active?i("el-step",{attrs:{title:"同步成员信息"}},[i("template",{slot:"description"},[i("div",{staticClass:"sync-info"},[i("div",[e._v("已发起同步请求,请稍后刷新员工列表,若成员数据量大,会影响同步速度,请耐心等待")]),i("div",{staticClass:"mt10"},[i("el-progress",{attrs:{type:"circle",percentage:100,status:"success"}})],1),i("el-button",{staticStyle:{"margin-top":"12px"},attrs:{type:"primary"},on:{click:e.refreshStaff}},[e._v("刷新员工")])],1)])],2):e._e()],1)],1)],1)])},n=[],r=i("c7eb"),s=i("1da1"),o=i("50fc"),l=i("376d"),c=null,u=200,d={components:{CodeValidata:l["default"]},props:{extraDrawer:{type:Boolean,default:!1}},data:function(){return{active:0,qrcodeUrl:"",qrcodeLoad:!1,qrcodeKey:"",scanLoginError:!1,scanLoginErrText:"登录失败",timerCount:u,checkTimeStart:!0,tel:"",needCode:!1,tlKey:"",refresh:!1}},computed:{},watch:{extraDrawer:function(e){e&&this.reGetQrcode(),this.checkTimeStart=e}},mounted:function(){this.getQrcode()},methods:{refreshStaff:function(){this.$emit("getList",1),this.$emit("closeDrawer")},checkQrcode:function(e){var t=this;return Object(s["a"])(Object(r["a"])().mark((function i(){return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,Object(o["b"])({qrcodeKey:e,status:"QRCODE_SCAN_NEVER"}).then((function(i){switch(i.data.status){case"QRCODE_SCAN_NEVER":break;case"QRCODE_EXPIRE":t.scanLoginError=!0,t.scanLoginErrText="二维码已过期",t.stopTimer();break;case"QRCODE_SCAN_SUCC":t.loginSuccessAndConfig();break;case"QRCODE_LOGIN_FAIL":t.scanLoginError=!0,t.scanLoginErrText="登录失败",t.stopTimer();break;case"QRCODE_LOGIN_FAIL_CORP_MISMATCH":t.dealScanInconformity();break;case"NEED_MOBILE_CONFIRM":t.stopTimer(),t.refresh=!0,t.scanLoginError=!0,t.scanLoginErrText="登录中",t.needCode=!0,t.tlKey=i.data.tlKey,t.tel=i.data.tel;break;case"WAIT_MOBILE_CONFIRM":t.stopTimer(),t.needCode=!0;break;default:break}t.checkTimeStart&&t.timerCount>=0&&(t.timerCount=t.timerCount-1,clearTimeout(c),c=setTimeout((function(){t.checkQrcode(e),clearTimeout(c)}),2500))}));case 2:case"end":return i.stop()}}),i)})))()},loginSuccessAndConfig:function(){var e=this;Object(o["f"])({qrcodeKey:this.qrcodeKey}).then((function(t){200===t.code&&(e.active=1)})).catch((function(){})),this.stopTimer()},dealScanInconformity:function(){var e=this;this.isThirdType?(this.scanLoginError=!0,this.scanLoginErrText="与注册企业不一致",this.stopTimer()):(this.qrcodeLoad=!0,this.stopTimer(),this.confirmModal({msg:"当前扫码企业与现有企业不一致,若继续,则EasyInk下所有在线员工将被强制下线,原有企业数据不可查看,是否继续?"},(function(){e.loginSuccessAndConfig()}),(function(){e.$emit("closeDrawer"),e.init(),e.qrcodeUrl="",e.qrcodeLoad=!1})))},stopTimer:function(){clearTimeout(c),this.checkTimeStart=!1},reGetQrcode:function(){this.active=0,this.needCode=!1,this.tlKey="",this.tel="",this.qrcodeUrl="",this.scanLoginError=!1,this.checkTimeStart=!0,this.timerCount=u,this.getQrcode()},getQrcode:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:Object(o["d"])({}).then((function(t){e.qrcodeUrl=t.data.qrcodeUrl,e.qrcodeKey=t.data.qrcodeKey,e.checkQrcode(t.data.qrcodeKey)}));case 1:case"end":return t.stop()}}),t)})))()},init:function(){clearTimeout(c),this.active=0,this.checkTimeStart=!0,this.timerCount=u}}},p=d,f=(i("0869"),i("2877")),A=Object(f["a"])(p,a,n,!1,null,"03d71162",null);t["default"]=A.exports},2100:function(e,t,i){"use strict";i("ea19")},"212e":function(e,t,i){},"219b":function(e,t,i){},"21a6":function(e,t,i){(function(i){var a,n,r;(function(i,s){n=[],a=s,r="function"===typeof a?a.apply(t,n):a,void 0===r||(e.exports=r)})(0,(function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function a(e,t,i){var a=new XMLHttpRequest;a.open("GET",e),a.responseType="blob",a.onload=function(){o(a.response,t,i)},a.onerror=function(){},a.send()}function n(e){var t=new XMLHttpRequest;return t.open("HEAD",e,!1),t.send(),200<=t.status&&299>=t.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(a){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof i&&i.global===i?i:void 0,o=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype?function(e,t,i){var o=s.URL||s.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?r(l):n(l.href)?a(e,t,i):r(l,l.target="_blank")):(l.href=o.createObjectURL(e),setTimeout((function(){o.revokeObjectURL(l.href)}),4e4),setTimeout((function(){r(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,i,s){if(i=i||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,s),i);else if(n(e))a(e,i,s);else{var o=document.createElement("a");o.href=e,o.target="_blank",setTimeout((function(){r(o)}))}}:function(e,t,i,n){if(n=n||open("","_blank"),n&&(n.document.title=n.document.body.innerText="downloading..."),"string"==typeof e)return a(e,t,i);var r="application/octet-stream"===e.type,o=/constructor/i.test(s.HTMLElement)||s.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||r&&o)&&"object"==typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=e:location=e,n=null},c.readAsDataURL(e)}else{var u=s.URL||s.webkitURL,d=u.createObjectURL(e);n?n.location=d:location.href=d,n=null,setTimeout((function(){u.revokeObjectURL(d)}),4e4)}});s.saveAs=o.saveAs=o,e.exports=o}))}).call(this,i("c8ba"))},"21b6":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"mid-action"},[i("div",[i("el-select",{staticClass:"ml10",attrs:{placeholder:"请选择客户群使用状态"},on:{change:e.getRealCodes},model:{value:e.query.status,callback:function(t){e.$set(e.query,"status",t)},expression:"query.status"}},e._l(e.statusOptions,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),i("div",[e.createType===e.CREATE_TYPE["group"]?i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialog=!0}}},[e._v(" 添加客户群 ")]):i("el-button",{attrs:{type:"primary"},on:{click:e.openEnterpriseModal}},[e._v(" 添加企微活码 ")]),i("el-button",{attrs:{disabled:0===e.multiRealCode.length},on:{click:e.handleBulkRemove}},[e._v(" 批量删除 ")])],1)]),i("RealCodeTable",{attrs:{loading:e.loading,"real-codes":e.realCodes,"handle-selection-change":e.handleSelectionChange,edit:e.edit,"get-real-codes":e.getRealCodes,"create-type":e.createType,query:e.query}}),i("el-dialog",{attrs:{title:(e.editedRealCodeId?"编辑":"新增")+"客户群",visible:e.dialog,"append-to-body":""},on:{"update:visible":function(t){e.dialog=t}}},[i("el-form",{ref:"form",attrs:{model:e.form,"label-width":"120px",rules:e.rules}},[i("el-form-item",{attrs:{label:"客户群",prop:"chatId"}},[e.form.chatId?[i("el-button",{attrs:{type:"primary"},on:{click:e.openSelectGroup}},[e._v(" "+e._s(e.form.chatGroupName)+" ")])]:[i("el-button",{attrs:{icon:"el-icon-plus"},on:{click:e.openSelectGroup}},[e._v(" 选择客户群 ")])]],2),i("el-form-item",{attrs:{label:"二维码",prop:"actualGroupQrCode"}},[i("div",{staticClass:"qrcode-div"},[i("upload",{staticClass:"image-uploader",attrs:{"file-url":e.form.actualGroupQrCode},on:{"update:fileUrl":function(t){return e.$set(e.form,"actualGroupQrCode",t)},"update:file-url":function(t){return e.$set(e.form,"actualGroupQrCode",t)}}},[i("div",{attrs:{slot:"tip"},slot:"tip"},[e._v(" 注:只能上传jpg/png格式图片,且不超过2M ")])]),i("div",[i("el-button",{attrs:{type:"text"},on:{click:function(t){e.exampleDialog=!0}}},[e._v(" 如何获取二维码 ")])],1)],1)]),i("el-form-item",{attrs:{label:"有效期",prop:"effectTime"}},[i("el-date-picker",{attrs:{type:"datetime",placeholder:"请选择有效期","value-format":"yyyy-MM-dd HH:mm",format:"yyyy-MM-dd HH:mm","picker-options":e.datePickerOptions},model:{value:e.form.effectTime,callback:function(t){e.$set(e.form,"effectTime",t)},expression:"form.effectTime"}}),i("div",{staticClass:"tip"},[e._v(" 设置二维码的有效期,到期将不分配给客户,并提醒创建人更新群二维码 ")])],1),i("el-form-item",{attrs:{label:"进群上限",prop:"scanCodeTimesLimit"}},[i("el-input",{staticStyle:{width:"115px"},attrs:{placeholder:"请输入次数",type:"Number",min:0,max:e.MAX_NUMBER},model:{value:e.form.scanCodeTimesLimit,callback:function(t){e.$set(e.form,"scanCodeTimesLimit",t)},expression:"form.scanCodeTimesLimit"}}),i("div",{staticClass:"tip"},[e._v(" 当扫码进群人数达到上限,将自动分配下一个客户群 ")])],1)],1),i("Customer",{ref:"customer",attrs:{visible:e.customerDialog,"append-to-body":"","customer-group-id":e.form.chatId,"cancel-click":e.cancelClick,"ok-click":e.handleSelectCustomerGroup,"close-on-click-modal":!1},on:{"update:visible":function(t){e.customerDialog=t},callback:e.getSelectCustomerGroup}}),i("GetQrcodeDemo",{attrs:{visible:e.exampleDialog,title:"如何获取二维码"},on:{"update:visible":function(t){e.exampleDialog=t}}}),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dialog=!1}}},[e._v(" 取消 ")]),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v(" 确定 ")])],1)],1),i("EnterpriseCodeModal",{ref:"enterpriseCodeDialog",attrs:{visible:e.enterpriseCodeDialog,"group-code-list":e.realCodes,"edit-index":e.editIndex,"group-id":e.groupCodeId,"real-add":!0},on:{"update:visible":function(t){e.enterpriseCodeDialog=t},"update:groupCodeList":function(t){e.realCodes=t},"update:group-code-list":function(t){e.realCodes=t},reGetList:e.getRealCodes}}),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,disabled:e.loading,page:e.query.pageNum,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getRealCodes()}}})],1)},n=[],r=i("5530"),s=(i("d81d"),i("a9e3"),i("895e")),o=i("b850"),l=i("3f68"),c=i("dd70"),u=i("0dc7"),d=i("73a5"),p=i("193e"),f=100,A=200,h={components:{Customer:l["default"],GetQrcodeDemo:u["default"],RealCodeTable:d["default"],EnterpriseCodeModal:p["default"]},props:{groupCodeId:{type:String,default:""},status:{type:Number,default:-1},createType:{type:Number,default:null}},data:function(){var e=function(e,t,i){return t&&t>A?i(new Error("进群上限不能大于"+A)):t&&t<=0?i(new Error("进群人数不能小于0")):void i()};return{MAX_NUMBER:A,query:{status:-1,pageNum:1,pageSize:c["Ic"]},statusOptions:[{label:"全部状态",value:-1},{label:"使用中",value:0},{label:"已停用",value:1}],loading:!1,multiRealCode:[],realCodes:[],dialog:!1,enterpriseCodeDialog:!1,customerDialog:!1,exampleDialog:!1,form:{groupName:"",actualGroupQrCode:"",effectTime:"",scanCodeTimesLimit:f,chatId:"",chatGroupName:""},editedRealCodeId:null,customerGroup:[],total:0,rules:{actualGroupQrCode:[{required:!0,message:"请上传二维码",trigger:"blur"}],chatId:[{required:!0,message:"请选择客户群",trigger:"change"}],scanCodeTimesLimit:[{validator:e,trigger:"blur"}]},datePickerOptions:{disabledDate:function(e){return e.getTime()<=Date.now()-864e5}},CREATE_TYPE:c["v"],editIndex:-1}},watch:{dialog:function(e){!1===e&&(this.$refs.form.resetFields(),this.form.chatId="",this.form.chatGroupName="",this.editedRealCodeId=null)}},created:function(){this.query.status=this.status,this.getRealCodes()},methods:{getRealCodes:function(){var e=this,t={id:this.groupCodeId};-1!==this.query.status&&(t=Object.assign(t,this.query)),this.loading=!0,Object(o["e"])(t,this.groupCodeId).then((function(t){e.realCodes=t.data.groupCodeDetailVOList,e.total=parseInt(t.data.groupCodeDetailVOList.length),e.loading=!1})).catch((function(){e.loading=!1}))},add:function(){var e=this;this.$refs.form.validate((function(t){if(t){var i=Object.assign({},e.form,{groupCodeId:e.groupCodeId});Object(s["a"])(i).then((function(t){e.dialog=!1,e.getRealCodes()}))}}))},edit:function(e,t){this.editIndex=t,this.editedRealCodeId=e.id,this.form={groupName:e.groupName,actualGroupQrCode:e.actualGroupQrCode,effectTime:e.effectTime,scanCodeTimesLimit:e.scanCodeTimesLimit,chatId:e.chatId,chatGroupName:e.chatGroupName};var i=this.createType===c["v"]["group"]?"dialog":"enterpriseCodeDialog";this[i]=!0,this.$refs[i]&&(this.$refs[i].form=Object(r["a"])(Object(r["a"])({},e),{},{groupList:e.groupDetailVOList}))},update:function(){var e=this;this.$refs.form.validate((function(t){if(t){var i=Object.assign({id:e.editedRealCodeId},e.form);Object(s["d"])(i).then((function(t){e.dialog=!1,e.getRealCodes()}))}}))},handleSubmit:function(){if(!this.editedRealCodeId)return this.add();this.update()},handleBulkRemove:function(){var e=this;this.confirmModal({msg:"删除后,群活码不再统计该客户群的入群人数,且数据不可恢复,是否继续?"},(function(){var t=e.multiRealCode.map((function(e){return e.id}));Object(s["c"])(t+"").then((function(t){e.getRealCodes()}))}))},handleSelectionChange:function(e){this.multiRealCode=e},handleSelectCustomerGroup:function(){this.$refs.customer.submit()},getSelectCustomerGroup:function(e){this.form.chatId=e?e.chatId:"",this.form.chatGroupName=e?e.groupName:"",this.customerDialog=!1},cancelClick:function(){this.customerDialog=!1},openSelectGroup:function(){this.customerDialog=!0},openEnterpriseModal:function(){this.enterpriseCodeDialog=!0;var e=this.createType===c["v"]["group"]?"dialog":"enterpriseCodeDialog";this.$refs[e].initFormData()}}},m=h,g=(i("41e4"),i("2877")),v=Object(g["a"])(m,a,n,!1,null,"6e45ddf8",null);t["default"]=v.exports},"21f9":function(e,t,i){"use strict";i("f138")},2286:function(e,t,i){var a=i("85e3"),n=Math.max;function r(e,t,i){return t=n(void 0===t?e.length-1:t,0),function(){var r=arguments,s=-1,o=n(r.length-t,0),l=Array(o);while(++s<o)l[s]=r[t+s];s=-1;var c=Array(t+1);while(++s<t)c[s]=r[s];return c[t]=i(l),a(e,this,c)}}e.exports=r},"22aa":function(e,t,i){"use strict";i("4182")},"23ac":function(e,t,i){},"243f":function(e,t,i){"use strict";i("365f")},"244b":function(e,t,i){},2453:function(e,t,i){e.exports=i.p+"static/img/linkUseTip-self-1.148f61e1.png"},2457:function(e,t,i){},2472:function(e,t,i){},2493:function(e,t,i){},2502:function(e,t,i){"use strict";i.d(t,"b",(function(){return s})),i.d(t,"a",(function(){return o}));var a=i("c7eb"),n=i("1da1"),r=i("2ff4");function s(e){var t=e;return t.agentSecret&&(t.corpSecret=t.agentSecret),t}var o=function(){var e=Object(n["a"])(Object(a["a"])().mark((function e(){var t,i;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(r["c"])();case 3:return t=e.sent,i=t.data,e.abrupt("return",i);case 8:return e.prev=8,e.t0=e["catch"](0),e.abrupt("return");case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}()},2584:function(e,t,i){"use strict";i("cef8")},2585:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"header-radio-group"},[i("el-radio-group",{staticClass:"radio-group-div",attrs:{size:"medium"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-radio-button",{attrs:{label:"customer"}},[e._v(e._s(e.tabType["customer"]))]),i("el-radio-button",{attrs:{label:"group"}},[e._v(e._s(e.tabType["group"]))])],1)],1),i("CustomerTag",{attrs:{type:e.activeName}})],1)},n=[],r=i("1f0d"),s={customer:"客户标签",group:"群标签"},o={name:"Tag",components:{CustomerTag:r["default"]},data:function(){return{tabType:s,activeName:"customer"}},created:function(){},methods:{}},l=o,c=i("2877"),u=Object(c["a"])(l,a,n,!1,null,"d203cc74",null);t["default"]=u.exports},"25fa":function(e,t,i){e.exports={menuText:"#333",menuActiveText:"#333",subMenuActiveText:"#333",menuBg:"#fff",menuHover:"#fafafa",subMenuBg:"#fff",subMenuHover:"#fafafa",sideBarWidth:"250px"}},"260e":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"scene-list timeline-list"},[i("el-timeline",{staticClass:"timeline-div"},e._l(e.sceneList,(function(t,a){return i("el-timeline-item",{key:a,attrs:{placement:"top"},scopedSlots:e._u([{key:"dot",fn:function(){return[i("div",{staticClass:"step-dot"},[e._v(e._s(a+1))])]},proxy:!0}],null,!0)},[i("div",{staticClass:"custom-timestamp"},[e._v(" 场景"+e._s(a+1)+" ")]),i("div",{staticClass:"rule-content"},[i("SceneItem",{attrs:{"rule-detail":e.ruleDetail,"label-type":e.labelType,"update-scene-list":function(t,i){return e.updateSceneList(t,a,i)},"scene-index":a,"scene-list":e.sceneList}}),e.showTool?i("div",{staticClass:"tool-div"},[i("i",{staticClass:"iconfont icon-remove",attrs:{title:"删除"},on:{click:function(i){return e.handleDelete(a,t)}}})]):e._e()],1)])})),1)],1)},n=[],r=i("c7eb"),s=i("2909"),o=i("1da1"),l=(i("a434"),i("a9e3"),i("dd70")),c=i("9c91"),u=i("ed08"),d={name:"",components:{SceneItem:c["default"]},props:{sceneList:{type:Array,default:function(){return[]}},showTool:{type:Boolean,default:!1},labelType:{type:Number,default:l["j"]["keyWords"]},removeSceneList:{type:Array,default:function(){return[]}},ruleDetail:{type:Boolean,default:!1}},data:function(){return{AUTOLABEL_TYPE:l["j"]}},created:function(){},mounted:function(){},methods:{handleDelete:function(e){var t=this;this.confirmModal({msg:"该规则即将被删除,是否继续?"},Object(o["a"])(Object(r["a"])().mark((function i(){var a,n;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:a=Object(u["h"])(t.sceneList),n=Object(s["a"])(t.removeSceneList),n.push(a[e]),a.splice(e,1),t.$emit("update:sceneList",a),t.$emit("update:removeSceneList",n);case 6:case"end":return i.stop()}}),i)}))))},updateSceneList:function(e,t,i){var a=Object(s["a"])(this.sceneList);a[t][i]=e,this.$emit("update:sceneList",a)}}},p=d,f=(i("499c"),i("41da"),i("2877")),A=Object(f["a"])(p,a,n,!1,null,"50edac3f",null);t["default"]=A.exports},2622:function(e,t,i){e.exports=i.p+"static/img/客户群移动1.68ccd7a6.png"},"268c":function(e,t,i){},"26b2":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"customer-detail-page"},[i("ReturnPage"),i("div",{staticClass:"detail-div"},[i("div",{staticClass:"customer-info-div employees-info"},[i("div",{staticClass:"employees-tabs"},[i("div",{staticClass:"employees"},[e._v("该客户已添加"+e._s(e.employeesList.length)+"个员工")]),i("span",{staticClass:"icon-line"}),i("el-tabs",{model:{value:e.employeesId,callback:function(t){e.employeesId=t},expression:"employeesId"}},e._l(e.employeesList,(function(e){return i("el-tab-pane",{key:e.userId,attrs:{label:e.userName,name:e.userId}})})),1)],1),i("div",{staticClass:"customer-info-div"},[i("div",{staticClass:"avatar-div"},[i("el-avatar",{attrs:{src:e.customer.avatar}})],1),i("div",{staticClass:"customer-detail"},[i("div",{staticClass:"customer-name"},[e._v(" "+e._s(e.customer.name)+" "),i("span",{class:e.customer.type===e.wxType?"wx-type-flag":"corp-type-name"},[e._v(" "+e._s(e.renderUserInfo(e.customer,"type"))+" ")]),e.customer.type===e.wxType?i("span",{staticClass:"corp-type-name"},[e._v(e._s(e.customer.remarkCorpName))]):e._e()]),i("div",{staticClass:"customer-proper"},[i("div",{staticClass:"proper-item-div"},[i("div",{staticClass:"proper-item"},[i("span",{staticClass:"proper-name"},[e._v("添加时间:")]),i("span",[e._v(e._s(e.customer.createTime))])]),i("div",{staticClass:"proper-item"},[i("span",{staticClass:"proper-name"},[e._v("所属员工:")]),i("span",[e._v(e._s(e.customer.userName))])])]),i("div",{staticClass:"proper-item-div"},[i("div",{staticClass:"proper-item"},[i("span",{staticClass:"proper-name"},[e._v("来源:")]),i("span",[e._v(e._s(e.addWayMap[e.customer.addWay]))]),e.customer.addWay===e.ADD_BY_CHANNEL?i("span",[e._v("“"+e._s(e.customer.wechatChannel)+"”添加")]):e._e()]),i("div",{staticClass:"proper-item"},[i("span",{staticClass:"proper-name"},[e._v("所属部门:")]),i("span",[e._v(e._s(e.customer.department))])])])])])])]),i("div",{staticClass:"all-detail-div"},[i("el-tabs",{model:{value:e.activeTabName,callback:function(t){e.activeTabName=t},expression:"activeTabName"}},[i("el-tab-pane",{staticStyle:{padding:"20px"},attrs:{label:"客户资料",name:e.CUSTOMER_DETAIL["customerInfo"]}},[i("el-descriptions",{attrs:{title:"基本信息",direction:"vertical",column:4,border:"",size:"medium"}},e._l(e.baseList,(function(t,a){return i("el-descriptions-item",{key:a,attrs:{label:t.name,"content-style":"min-width: 100px"}},[i("template",{slot:"label"},[t.required?i("span",{staticClass:"required-mark"},[e._v("*")]):e._e(),e._v(" "+e._s(t.name)+" ")]),i("BasePropertyItem",{attrs:{item:t,list:e.baseList,index:a,"edit-status":e.editStatus,"dialog-visible":e.dialogVisible},on:{"update:list":function(t){e.baseList=t},"update:dialogVisible":function(t){e.dialogVisible=t},"update:dialog-visible":function(t){e.dialogVisible=t}}})],2)})),1),i("el-descriptions",{attrs:{title:"自定义信息",direction:"vertical",column:4,border:"",size:"medium"}},e._l(e.customList,(function(t,a){return i("el-descriptions-item",{key:a,attrs:{label:t.name}},[i("template",{slot:"label"},[t.required?i("span",{staticClass:"required-mark"},[e._v("*")]):e._e(),e._v(" "+e._s(t.name)+" ")]),i("CustomPropertyItem",{attrs:{item:t,list:e.customList,index:a,"edit-status":e.editStatus},on:{"update:list":function(t){e.customList=t}}})],2)})),1)],1),i("el-tab-pane",{attrs:{label:"信息动态",name:e.CUSTOMER_DETAIL["informationDynamics"]}}),i("el-tab-pane",{attrs:{label:"活动轨迹",name:e.CUSTOMER_DETAIL["activityTrack"]}}),i("el-tab-pane",{attrs:{label:"待办事项",name:e.CUSTOMER_DETAIL["todo"]}})],1),e.activeTabName!==e.CUSTOMER_DETAIL["customerInfo"]?i("CustomerOrGroupInfo",{attrs:{"external-userid":e.$route.query.id,"active-tab":e.activeTabName,"user-id":e.employeesId}}):e._e()],1),e.activeTabName===e.CUSTOMER_DETAIL["customerInfo"]?i("div",{staticClass:"bottom-tool"},[e.permission?i("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v(e._s(e.editStatus?"保存":"编辑"))]):e._e()],1):e._e(),i("SelectTag",{ref:"selectTag",attrs:{visible:e.dialogVisible,title:"客户标签",type:"search",selected:e.selectedTag,"info-msg":"请选择要为已勾选客户打上的标签",loading:e.tagDialogLoading,"is-show-add":!0,"is-mandatory":0},on:{"update:visible":function(t){e.dialogVisible=t},success:e.submitSelectTag}})],1)],1)},n=[],r=i("5530"),s=i("2909"),o=(i("a4d3"),i("e01a"),i("99af"),i("4de4"),i("7db0"),i("c740"),i("caad"),i("d81d"),i("a434"),i("b0c0"),i("d3b7"),i("2532"),i("159b"),i("34e1")),l=i("dd70"),c=i("aa50"),u=i("cf45"),d=i("423f"),p=i("3cb1"),f=i("c1df"),A=i.n(f),h=i("aada"),m=i("ed08"),g=i("2ef0"),v=i("4b45"),b={"出生日期":"birthday","邮箱":"email","地址":"address","描述":"description","电话":"remarkMobiles"},y={components:{ReturnPage:c["a"],BasePropertyItem:d["default"],CustomPropertyItem:p["default"],SelectTag:h["a"],CustomerOrGroupInfo:v["default"]},data:function(){return{datePickerVisible:!1,customer:{},remarkMobiles:"",description:"",pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},addWayMap:l["d"],CUSTOMER_PROPERTY_VALUE:l["B"],editStatus:!1,oldTags:[],baseList:[],customList:[],dialogVisible:!1,tagDialogLoading:!1,selectedTag:[],oldCustomList:[],oldBaseList:[],employeesList:[],addEmployeesTotal:0,employeesId:this.$route.query.userId,wxType:l["Cd"],ADD_BY_CHANNEL:l["b"],permission:!0,activeTabName:l["y"]["customerInfo"],CUSTOMER_DETAIL:l["y"]}},computed:{sysPropertyList:function(){var e=Object(s["a"])(this.$store.state.customerProperty.customerProperList);e=e.filter((function(e){return e.type===l["B"]["sysField"]}));var t=[{id:"remark",name:"备注"},{id:"gender",name:"性别"},{id:"tag",name:"标签"}];return e.find((function(e){return"出生日期"===e.name}))&&t.push({id:"age",name:"年龄"}),e=[].concat(t,Object(s["a"])(e)),e},baseCustomPropertyList:function(){var e=Object(s["a"])(this.$store.state.customerProperty.customerProperList);return e=e.filter((function(e){return e.type!==l["B"]["sysField"]})),e},customPropertyList:function(){return Object(s["a"])(this.$store.state.customerProperty.customerProperList)}},watch:{sysPropertyList:function(){this.employeesList.length&&this.getDetail()},employeesId:function(){this.employeesList.length&&this.getDetail()}},created:function(){Object(u["H"])(this.$store),this.getEmployeesList();var e=["conversionCodeDetail","customerClickRecord","channelClickRecord"];e.includes(this.$route.query.prePageType)&&(this.permission=!1)},beforeRouteLeave:function(e,t,i){Object(g["isEqual"])(this.oldBaseList,this.baseList)&&Object(g["isEqual"])(this.oldCustomList,this.customList)?i():this.$confirm("离开后,当前页面更改内容不会保存,是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i()})).catch((function(){i(!1)}))},methods:{getEmployeesList:function(){var e=this;Object(o["f"])(this.$route.query.id).then((function(t){var i=t.data;if(0!==i.length){e.addEmployeesTotal=i.length;var a=i.map((function(e){return e.userId})).indexOf(e.$route.query.userId),n=i[a];e.employeesList=i,n&&(i.splice(a,1),e.employeesList.unshift(n)),e.employeesId=e.employeesList[0].userId}else e.employeesList.push({userId:e.$route.query.userId,userName:e.$route.query.userName});e.employeesId=e.employeesList[0].userId,e.getDetail()}))},updateCustomer:function(e,t){var i=this,a=Object(r["a"])({remarkMobiles:"",remarkCorpName:"江西方欣信息",externalUserid:this.customer.externalUserid,userId:this.customer.userId},e);Object(o["o"])(a).then((function(e){i.msgSuccess("操作成功"),i.getDetail(t)}))},getDetail:function(e){var t=this,i=this.$route.query,a={dimissionTime:i.dimissionTime};if(i.prePageType)switch(i.prePageType){case"lossRemind":a=Object(r["a"])(Object(r["a"])({},a),{},{perms:"customerManage:lossRemind:view"});break;case"customer":a=Object(r["a"])(Object(r["a"])({},a),{},{perms:"customerManage:customer:view"});break;default:break}Object(o["e"])(i.id,this.employeesId,a).then((function(i){var a=i.data;t.customer=a[0],t.remarkMobiles=t.customer.remarkMobiles,t.description=t.customer.description,t.dealPropertyList(t.customer),t.setTagList(),e&&e()}))},setTagList:function(){var e,t=[];null===(e=this.customer)||void 0===e||e.weFlowerCustomerTagRels.map((function(e){t.push(Object(r["a"])(Object(r["a"])({},e),{},{name:e.tagName}))})),this.selectedTag=t,this.oldTags=t},dealPropertyList:function(e){var t=this,i=[],a=[];this.sysPropertyList.map((function(t){var a=Object(r["a"])({},t);switch(t.id){case"remark":a.value=e.remark;break;case"gender":a.value=l["db"][e.gender]||"未知",a.optionValue=e.gender;break;case"tag":a.value=null===e||void 0===e?void 0:e.weFlowerCustomerTagRels;break}switch(t.name){case"年龄":var n=A()().diff(A()(e.birthday),"years");a.value=n||"";break;case"出生日期":a.value=e.birthday;break;case"邮箱":a.value=null===e||void 0===e?void 0:e.email;break;case"地址":a.value=null===e||void 0===e?void 0:e.address;break;case"电话":a.value=e.remarkMobiles;break;case"描述":a.value=e.description;break}i.push(a)})),this.oldBaseList=Object(m["h"])(i),this.baseList=[].concat(i),this.baseCustomPropertyList.map((function(i){var n,s=Object(r["a"])({},i);[l["B"]["singleText"],l["B"]["mulText"],l["B"]["dateField"]].includes(i.type)&&(s.value=null===(n=t.dealShowText(i,e,"textType"))||void 0===n?void 0:n.value);if([l["B"]["singleRadio"],l["B"]["selectSingle"]].includes(i.type)){var o=t.dealShowText(i,e,"singleType");s=Object(r["a"])(Object(r["a"])({},s),{},{optionList:i.optionList,optionValue:null},o)}if([l["B"]["mulRadio"]].includes(i.type)){var c=t.dealShowText(i,e,"mulType");s=Object(r["a"])(Object(r["a"])({},s),{},{optionList:i.optionList,optionValue:[]},c)}if([l["B"]["img"],l["B"]["file"]].includes(i.type)){var u=t.dealShowText(i,e,i.type===l["B"]["img"]?"imgFile":"fileType");s=Object(r["a"])(Object(r["a"])({},s),u)}a.push(s)})),this.oldCustomList=Object(m["h"])([].concat(a)),this.customList=[].concat(a)},dealShowText:function(e,t,i){return Object(u["s"])(e,t,i)},filterTag:function(e,t){var i=[],a=[];return t.forEach((function(t){-1===e.findIndex((function(e){return t.tagId===e.tagId}))&&i.push(t)})),e.forEach((function(e){-1===t.findIndex((function(t){return e.tagId===t.tagId}))&&a.push(e)})),{addList:i,deleteList:a}},filterDuplicateItem:function(e,t){var i=[];return e.map((function(e){var a="value";[l["B"]["mulRadio"],l["B"]["selectSingle"],l["B"]["singleRadio"]].includes(e.type)&&(a="optionValue");var n=t.findIndex((function(t){return t.id===e.id}));n>-1&&!Object(g["isEqual"])(e[a],t[n][a])&&i.push(e)})),i},handleSubmit:function(){var e=this;if(this.editStatus){var t=[].concat(Object(s["a"])(this.baseList),Object(s["a"])(this.customList)),i=t.findIndex((function(e){switch(e.type){case l["B"]["img"]:case l["B"]["file"]:var t;return e.required&&!(null!==(t=e.value)&&void 0!==t&&t.length);case l["B"]["mulRadio"]:case l["B"]["selectSingle"]:case l["B"]["singleRadio"]:var i;return e.required&&!(null!==e&&void 0!==e&&null!==(i=e.optionValue)&&void 0!==i&&i.length);default:return e.required&&!e.value&&!e.optionValue}}));if(i>-1)return void this.msgWarn("请填写".concat(t[i].name));var a={},n=this.filterDuplicateItem(this.baseList,this.oldBaseList);n.map((function(t){if("remark"===t.id&&(a[t.id]=t.value||""),b[t.name]&&(a[b[t.name]]=t.value||""),"tag"===t.id){var i=e.filterTag(e.oldTags,e.selectedTag),n=i.addList,r=i.deleteList;a.removeTags=r,a.addTags=n}}));var r=[],o=this.filterDuplicateItem(this.customList,this.oldCustomList);o.map((function(e){switch(e.type){case l["B"]["mulRadio"]:if(0===e.optionValue.length){r.push({extendPropertyId:e.id,propertyValue:null});break}e.optionValue.map((function(t){r.push({extendPropertyId:e.id,propertyValue:t})}));break;case l["B"]["img"]:case l["B"]["file"]:if(0===e.value.length){r.push({extendPropertyId:e.id,propertyValue:null});break}e.value.map((function(t){r.push({extendPropertyId:e.id,propertyValue:e.type===l["B"]["file"]?'{"name":"'.concat(t.name,'","url":"').concat(t.url,'","content":"').concat(t.content,'"}'):t})}));break;case l["B"]["selectSingle"]:case l["B"]["singleRadio"]:r.push({extendPropertyId:e.id,propertyValue:e.optionValue||null});break;default:r.push({extendPropertyId:e.id,propertyValue:e.value||""});break}})),r.length>0&&(a["extendProperties"]=r),this.updateCustomer(a,this.editStatus=!this.editStatus)}else this.editStatus=!this.editStatus},submitSelectTag:function(e){this.selectedTag=Object(s["a"])(e);var t=Object(s["a"])(this.baseList),i=t.find((function(e){return"tag"===e.id}));if(this.dialogVisible=!1,i){var a=[];this.selectedTag.map((function(e){a.push(Object(r["a"])(Object(r["a"])({},e),{},{tagName:e.name}))})),i.value=a,this.baseList=t}},renderUserInfo:function(e,t){return Object(u["o"])(e,t)}}},_=y,w=(i("48da"),i("2877")),C=Object(w["a"])(_,a,n,!1,null,"c244eb3a",null);t["default"]=C.exports},"26b3":function(e,t,i){e.exports=i.p+"static/img/receive-step2-1.ad273ae0.jpg"},"26b7":function(e,t,i){},"26fc":function(e,t,i){e.exports=i.p+"static/img/404_cloud.0f4bc32b.png"},"271c":function(e,t,i){e.exports=i.p+"static/img/desktop-step-2.695465a4.png"},2720:function(e,t,i){},2754:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"wscn-http404-container"},[i("div",{staticClass:"wscn-http404"},[e._m(0),i("div",{staticClass:"bullshit"},[i("div",{staticClass:"bullshit__oops"},[e._v(" 404错误! ")]),i("div",{staticClass:"bullshit__headline"},[e._v(" "+e._s(e.message)+" ")]),i("div",{staticClass:"bullshit__info"},[e._v(" 对不起,您正在寻找的页面不存在。尝试检查URL的错误,然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容。 ")]),i("router-link",{staticClass:"bullshit__return-home",attrs:{to:"/"}},[e._v(" 返回首页 ")])],1)])])},n=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pic-404"},[a("img",{staticClass:"pic-404__parent",attrs:{src:i("a36b"),alt:"404"}}),a("img",{staticClass:"pic-404__child left",attrs:{src:i("26fc"),alt:"404"}}),a("img",{staticClass:"pic-404__child mid",attrs:{src:i("26fc"),alt:"404"}}),a("img",{staticClass:"pic-404__child right",attrs:{src:i("26fc"),alt:"404"}})])}],r={name:"Page404",computed:{message:function(){return"找不到网页!"}}},s=r,o=(i("cebd"),i("2877")),l=Object(o["a"])(s,a,n,!1,null,"291e5b4e",null);t["default"]=l.exports},"278d":function(e,t,i){},2792:function(e,t,i){e.exports=i.p+"static/img/contact-step2-2.b54663f9.jpg"},"27b1":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"show-data-wrapper"},[i("div",{staticClass:"back",on:{click:e.back}},[i("i",{staticClass:"el-icon-arrow-left"}),e._v("返回上一页 ")]),i("div",[i("AppInfo",{attrs:{"app-name":e.appDetail.name,"app-sketch":e.appDetail.description,"app-logo":e.appDetail.logoUrl,"show-tip":!1}},[e.appDetail.installed?e.isShielding(e.appDetail)?e._e():i("el-button",{attrs:{type:"primary"},on:{click:function(){return e.handleOpenApp(e.appDetail)}}},[e._v("进入")]):i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:application:install"],expression:"['wecom:application:install']"}],attrs:{type:"primary"},on:{click:function(){return e.handleAddApp(e.appDetail)}}},[e._v(" 添加 ")])],1),e.appDetail.name&&e.appDetail.name.includes("工单")?i("WorkSheetAssistantDetail",{attrs:{"app-detail":e.appDetail}}):e._e()],1)])},n=[],r=(i("caad"),i("b0c0"),i("b64b"),i("2532"),i("5ec8")),s=i("d7b1"),o=i("dd70"),l=i("32bd"),c={name:"",components:{AppInfo:r["default"],WorkSheetAssistantDetail:l["default"]},props:{},data:function(){return{empty:!1,activeName:"set",appId:null,config:null,appDetail:{},serverTypeThird:o["bd"],serverTypeInternal:o["ad"]}},created:function(){this.appId=this.$route.query.appId,this.appId&&this.getDetail(this.appId),this.$route.query.config&&(this.config=JSON.parse(this.$route.query.config))},mounted:function(){},methods:{handleAddApp:function(e){var t=this;Object(s["e"])({appid:e.appid}).then((function(){t.$router.push({path:"appConfig",query:{appId:e.appid}})}))},back:function(){this.$router.go(-1)},getDetail:function(e){var t=this;Object(s["b"])({appid:e}).then((function(e){t.appDetail=e.data}))},handleOpenApp:function(e){if(e.config){var t=JSON.parse(e.config);if(!t.url&&!e.applicationEntranceUrl)return void this.$notify({title:"提示",message:"该应用还未完成配置,无法进入,请前往【应用管理】-【我的应用】完成配置。",type:"warning"});window.open(t.url||e.applicationEntranceUrl)}else this.$notify({title:"提示",message:"该应用还未完成配置,无法进入,请前往【应用管理】-【我的应用】完成配置。",type:"warning"})},isShielding:function(e){var t;return null===e||void 0===e||null===(t=e.name)||void 0===t?void 0:t.includes("工单")}}},u=c,d=(i("66c4"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"d32c943a",null);t["default"]=p.exports},"27e5":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"welcome-list-page"},[i("div",{staticClass:"header-radio-group"},[i("el-radio-group",{staticClass:"radio-group-div",attrs:{size:"medium"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-radio-button",{attrs:{label:e.EMPLOYEES_WELCOME}},[e._v("好友欢迎语")]),i("el-radio-button",{attrs:{label:e.INTO_GROUP}},[e._v("入群欢迎语")])],1)],1),i("RightContainer",{scopedSlots:e._u([{key:"data-stat",fn:function(){return[e.activeName===e.EMPLOYEES_WELCOME?i("div",[e._v(" 员工添加新客户后,回复预设欢迎语 ")]):i("div",[e._v(" 当前企业入群欢迎语素材已创建 "),i("span",{staticClass:"data-count-num"},[e._v(e._s(e.createdNum)+"/100")]),i("el-popover",{attrs:{placement:"top-start",trigger:"hover","popper-class":"tip-popover"}},[i("i",{staticClass:"iconfont icon-question",attrs:{slot:"reference"},slot:"reference"}),i("div",[i("div",[e._v("企业入群欢迎语素材最多可创建100条,包含在企业微信管理后台创建的;")]),i("div",[e._v("受企业微信限制,EasyInk不能管理和统计在企业微信后台或其他第三方应用创建的素材。")])])])],1)]},proxy:!0},{key:"operate-btn",fn:function(){return[i("el-button",{directives:[{name:"show",rawName:"v-show",value:e.checkPermi(e.activeName===e.EMPLOYEES_WELCOME?"remove":"del"),expression:"checkPermi(`${activeName === EMPLOYEES_WELCOME ? 'remove' : 'del'}`)"}],staticClass:"btn-reset",on:{click:e.batchDel}},[e._v("批量删除")]),i("el-button",{directives:[{name:"show",rawName:"v-show",value:e.checkPermi("add"),expression:"checkPermi('add')"}],attrs:{type:"primary"},on:{click:e.addWelcome}},[e._v("新增欢迎语")])]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list},on:{"selection-change":e.handleSelectionChange}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{text:"暂无数据",length:e.list.length}})],1),i("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),i("el-table-column",{attrs:{label:"欢迎语",align:"center",prop:"welcomeMsg"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",[i("div",{staticClass:"intwoline",attrs:{title:a.defaultWelcomeMsg}},[e._v(e._s(a.defaultWelcomeMsg))]),e._l(a.defaultMaterialList.slice(0,e.checkShowMoreLimit(a)),(function(t,a){return i("div",{key:a,staticClass:"content-div"},[i("VerbalTrickDetailPreview",{attrs:{item:e.transferMaterialTypeItem(t)}})],1)})),a.defaultMaterialList&&a.defaultMaterialList.length>e.checkShowMoreLimit(a)?i("div",{staticClass:"check-more theme-text-color",on:{click:function(t){return e.handleCheckMore(a)}}},[e._v("共"+e._s(a.defaultMaterialList.length+(a.defaultWelcomeMsg?1:0))+"条 查看更多")]):e._e()],2)]}}])}),e.activeName===e.EMPLOYEES_WELCOME?i("el-table-column",{attrs:{label:"使用员工",align:"center",prop:"welcomeMsg"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return e._l(a.useUsers,(function(t,a){return i("span",{key:a},[e._v(" "+e._s((0!==a?",":"")+(t&&t.userName))+" ")])}))}}],null,!1,19087763)}):e._e(),e.activeName===e.EMPLOYEES_WELCOME?i("el-table-column",{attrs:{label:"创建人",align:"center",prop:"createBy"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",{staticClass:"al"},[i("div",{staticClass:"cus-owner"},[e._v(e._s(a.createName))]),i("div",{staticClass:"cus-dept"},[e._v(e._s(a.mainDepartmentName))])])]}}],null,!1,2267781114)}):e._e(),i("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"createTime"}}),i("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.activeName===e.EMPLOYEES_WELCOME?i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(i){return e.handleCheckMore(t.row)}}},[e._v(" 详情 ")]):e._e(),i("el-button",{directives:[{name:"show",rawName:"v-show",value:e.checkPermi("edit"),expression:"checkPermi('edit')"}],attrs:{size:"mini",type:"text"},on:{click:function(i){return e.onEdit(t.row)}}},[e._v(" 编辑 ")]),i("el-button",{directives:[{name:"show",rawName:"v-show",value:e.checkPermi(e.activeName===e.EMPLOYEES_WELCOME?"remove":"del"),expression:"checkPermi(`${activeName === EMPLOYEES_WELCOME ? 'remove' : 'del'}`)"}],attrs:{size:"mini",type:"text"},on:{click:function(i){return e.remove(t.row.id)}}},[e._v(" 删除")])]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,disabled:e.loading,page:e.query.pageNum,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}})]},proxy:!0}])}),i("WelcomeDetailDrawer",{attrs:{title:"欢迎语详情",visible:e.welcomeDetailDrawerVisible,item:e.welcomeMsgDetail,"handle-edit":e.onEdit,"transfer-material-type-item":e.transferMaterialTypeItem,"check-permi":e.checkPermi},on:{"update:visible":function(t){e.welcomeDetailDrawerVisible=t}}})],1)},n=[],r=i("5530"),s=i("c7eb"),o=i("1da1"),l=(i("a4d3"),i("e01a"),i("99af"),i("caad"),i("d81d"),i("b0c0"),i("a9e3"),i("b64b"),i("ac1f"),i("2532"),i("466d"),i("dd70")),c=i("b66d"),u=i("e77d"),d=i("ed08"),p=i("74e9"),f=i("dbe0"),A=i("b5e7"),h=i("cf45"),m=i("e350"),g={name:"Welcome",components:{RightContainer:c["a"],EmptyDefaultIcon:u["a"],VerbalTrickDetailPreview:f["default"],WelcomeDetailDrawer:A["default"]},props:{},data:function(){return{activeName:window.location.hash.match(/welcomeMsgTplType=(\d)/)?Number(window.location.hash.match(/welcomeMsgTplType=(\d)/)[1]):l["Q"],EMPLOYEES_WELCOME:l["Q"],INTO_GROUP:l["Jb"],list:[],loading:!1,total:0,query:{pageNum:1,pageSize:l["Ic"]},welcomeDetailDrawerVisible:!1,welcomeMsgDetail:{},multiSelected:[],createdNum:0}},computed:{},watch:{activeName:function(e){var t=window.location.href;t=Object(h["N"])(t),this.query=this.$options.data().query,window.history.pushState({},0,"".concat(t,"?welcomeMsgTplType=").concat(e)),this.list=[],this.getList(),e===l["Jb"]&&this.getGroupWelcomeCount()}},created:function(){this.$store.getters.saveCondition&&Object.keys(this.$store.getters.searchQuery[this.$route.name]||{}).length&&(this.query=this.$store.getters.searchQuery[this.$route.name]),this.getList(),this.activeName&&Number(this.activeName)===l["Jb"]&&this.getGroupWelcomeCount()},mounted:function(){this.$store.dispatch("app/setBusininessDesc","\n <div>一、好友欢迎语</div>\n <div>管理员为企业成员设置欢迎语,客户添加成员后自动回复欢迎语,让其第一时间感受服务体验;</div>\n <div>二、入群欢迎语</div>\n <div>管理员创建入群欢迎语素材,员工为客户群选择入群欢迎语模版后,客户入群将收到欢迎语;</div>\n ")},methods:{addWelcome:function(){var e={};e.welcomeMsgTplType=this.activeName,Object(d["l"])(this.$router,e.welcomeMsgTplType===l["Q"]?"welcomeAdd":"groupWelcomeAdd",{},e)},batchDel:function(){this.multiSelected.length?this.delWel({ids:this.multiSelected.map((function(e){return e.id}))},"batch"):this.msgWarn("请至少选择一个欢迎语")},onEdit:function(e){var t={id:e.id};t.welcomeMsgTplType=this.activeName,this.$store.commit("SET_SEARCH_QUERY",{pageName:this.$route.name,query:this.query}),Object(d["l"])(this.$router,t.welcomeMsgTplType===l["Q"]?"welcomeAdd":"groupWelcomeAdd",{},t)},remove:function(e){this.delWel({ids:[e]})},delWel:function(e,t){var i=this;this.confirmModal({msg:"选中的欢迎语将被删除,是否继续?"},Object(o["a"])(Object(s["a"])().mark((function a(){var n,r,o;return Object(s["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,(i.activeName===l["Q"]?p["c"]:p["d"])(e);case 2:n=a.sent,n&&(i.msgSuccess("删除成功"),r=t?i.multiSelected.length:1,o=i.list.length===r&&i.query.pageNum>1?i.query.pageNum-1:i.query.pageNum,i.getList({pageNum:o}));case 4:case"end":return a.stop()}}),a)}))))},getList:function(e){var t=this;this.loading=!0,Object(p["g"])(Object(r["a"])(Object(r["a"])({welcomeMsgTplType:this.activeName},this.query),e)).then((function(e){var i=e.rows,a=e.total;t.loading=!1,t.list=i,t.total=a}))},transferMaterialTypeItem:function(e){var t,i=Object(r["a"])(Object(r["a"])({},e),{},{mediaType:l["Ad"][e.type],url:[l["zd"]["img"],l["zd"]["file"]].includes(e.type)?e.picUrl:e.url,coverUrl:e.picUrl,content:e.description,title:e.content,radarTitle:null===(t=e.radar)||void 0===t?void 0:t.radarTitle});return i},handleCheckMore:function(e){this.welcomeDetailDrawerVisible=!0,this.welcomeMsgDetail=e},handleSelectionChange:function(e){this.multiSelected=e},getGroupWelcomeCount:function(){var e=this;Object(p["h"])().then((function(t){var i;e.createdNum=(null===t||void 0===t||null===(i=t.data)||void 0===i?void 0:i.createdNum)||0}))},checkPermi:function(e){var t=this.activeName===l["Q"]?["wecom:tlp:".concat(e)]:["wecom:groupWelcome:".concat(e)];return Object(m["a"])(t)},checkShowMoreLimit:function(e){var t=2;return e.defaultWelcomeMsg?1:t}}},v=g,b=(i("0a51"),i("2877")),y=Object(b["a"])(v,a,n,!1,null,"7b08a774",null);t["default"]=y.exports},"27fc":function(e,t,i){e.exports=i.p+"static/img/企微活码后台1.55dfeaeb.png"},2808:function(e,t,i){"use strict";i("86ae")},"280e":function(e,t,i){"use strict";i("6735")},"284e":function(e,t,i){"use strict";i("e2e1")},2855:function(e,t,i){"use strict";i.r(t);var a,n,r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"container"},[i("div",{staticClass:"left-board"},[i("div",{staticClass:"logo-wrapper"},[i("div",{staticClass:"logo"},[i("img",{attrs:{src:e.logo,alt:"logo"}}),e._v(" Form Generator ")])]),i("el-scrollbar",{staticClass:"left-scrollbar"},[i("div",{staticClass:"components-list"},[i("div",{staticClass:"components-title"},[i("svg-icon",{attrs:{"icon-class":"component"}}),e._v("输入型组件 ")],1),i("draggable",{staticClass:"components-draggable",attrs:{list:e.inputComponents,group:{name:"componentsGroup",pull:"clone",put:!1},clone:e.cloneComponent,draggable:".components-item",sort:!1},on:{end:e.onEnd}},e._l(e.inputComponents,(function(t,a){return i("div",{key:a,staticClass:"components-item",on:{click:function(i){return e.addComponent(t)}}},[i("div",{staticClass:"components-body"},[i("svg-icon",{attrs:{"icon-class":t.tagIcon}}),e._v(" "+e._s(t.label)+" ")],1)])})),0),i("div",{staticClass:"components-title"},[i("svg-icon",{attrs:{"icon-class":"component"}}),e._v("选择型组件 ")],1),i("draggable",{staticClass:"components-draggable",attrs:{list:e.selectComponents,group:{name:"componentsGroup",pull:"clone",put:!1},clone:e.cloneComponent,draggable:".components-item",sort:!1},on:{end:e.onEnd}},e._l(e.selectComponents,(function(t,a){return i("div",{key:a,staticClass:"components-item",on:{click:function(i){return e.addComponent(t)}}},[i("div",{staticClass:"components-body"},[i("svg-icon",{attrs:{"icon-class":t.tagIcon}}),e._v(" "+e._s(t.label)+" ")],1)])})),0),i("div",{staticClass:"components-title"},[i("svg-icon",{attrs:{"icon-class":"component"}}),e._v(" 布局型组件 ")],1),i("draggable",{staticClass:"components-draggable",attrs:{list:e.layoutComponents,group:{name:"componentsGroup",pull:"clone",put:!1},clone:e.cloneComponent,draggable:".components-item",sort:!1},on:{end:e.onEnd}},e._l(e.layoutComponents,(function(t,a){return i("div",{key:a,staticClass:"components-item",on:{click:function(i){return e.addComponent(t)}}},[i("div",{staticClass:"components-body"},[i("svg-icon",{attrs:{"icon-class":t.tagIcon}}),e._v(" "+e._s(t.label)+" ")],1)])})),0)],1)])],1),i("div",{staticClass:"center-board"},[i("div",{staticClass:"action-bar"},[i("el-button",{attrs:{icon:"el-icon-download",type:"text"},on:{click:e.download}},[e._v(" 导出vue文件 ")]),i("el-button",{staticClass:"copy-btn-main",attrs:{icon:"el-icon-document-copy",type:"text"},on:{click:e.copy}},[e._v(" 复制代码 ")]),i("el-button",{staticClass:"delete-btn",attrs:{icon:"el-icon-delete",type:"text"},on:{click:e.empty}},[e._v(" 清空 ")])],1),i("el-scrollbar",{staticClass:"center-scrollbar"},[i("el-row",{staticClass:"center-board-row",attrs:{gutter:e.formConf.gutter}},[i("el-form",{attrs:{size:e.formConf.size,"label-position":e.formConf.labelPosition,disabled:e.formConf.disabled,"label-width":e.formConf.labelWidth+"px"}},[i("draggable",{staticClass:"drawing-board",attrs:{list:e.drawingList,animation:340,group:"componentsGroup"}},e._l(e.drawingList,(function(t,a){return i("draggable-item",{key:t.renderKey,attrs:{"drawing-list":e.drawingList,element:t,index:a,"active-id":e.activeId,"form-conf":e.formConf},on:{activeItem:e.activeFormItem,copyItem:e.drawingItemCopy,deleteItem:e.drawingItemDelete}})})),1),i("div",{directives:[{name:"show",rawName:"v-show",value:!e.drawingList.length,expression:"!drawingList.length"}],staticClass:"empty-info"},[e._v(" 从左侧拖入或点选组件进行表单设计 ")])],1)],1)],1)],1),i("right-panel",{attrs:{"active-data":e.activeData,"form-conf":e.formConf,"show-field":!!e.drawingList.length},on:{"tag-change":e.tagChange}}),i("code-type-dialog",{attrs:{visible:e.dialogVisible,title:"选择生成类型","show-file-name":e.showFileName},on:{"update:visible":function(t){e.dialogVisible=t},confirm:e.generate}}),i("input",{attrs:{id:"copyNode",type:"hidden"}})],1)},s=[],o=i("53ca"),l=i("5530"),c=(i("c740"),i("d81d"),i("a434"),i("e9c4"),i("b64b"),i("d3b7"),i("ac1f"),i("5319"),i("159b"),i("1980")),u=i.n(c),d=i("21a6"),p=i("e552"),f=i.n(p),A=i("b311"),h=i.n(A),m=i("766b"),g=i("2e2a"),v=i("ed08"),b=(i("99af"),i("a15b"),i("b0c0"),24);function y(e){return'<el-dialog v-bind="$attrs" v-on="$listeners" @open="onOpen" @close="onClose" title="Dialog Titile">\n '.concat(e,'\n <div slot="footer">\n <el-button @click="close">取消</el-button>\n <el-button type="primary" @click="handelConfirm">确定</el-button>\n </div>\n </el-dialog>')}function _(e){return"<template>\n <div>\n ".concat(e,"\n </div>\n </template>")}function w(e){return"<script>\n ".concat(e,"\n <\/script>")}function C(e){return"<style>\n ".concat(e,"\n </style>")}function x(e,t,i){var a="";"right"!==e.labelPosition&&(a='label-position="'.concat(e.labelPosition,'"'));var r=e.disabled?':disabled="'.concat(e.disabled,'"'):"",s='<el-form ref="'.concat(e.formRef,'" :model="').concat(e.formModel,'" :rules="').concat(e.formRules,'" size="').concat(e.size,'" ').concat(r,' label-width="').concat(e.labelWidth,'px" ').concat(a,">\n ").concat(t,"\n ").concat(k(e,i),"\n </el-form>");return n&&(s='<el-row :gutter="'.concat(e.gutter,'">\n ').concat(s,"\n </el-row>")),s}function k(e,t){var i="";return e.formBtns&&"file"===t&&(i='<el-form-item size="large">\n <el-button type="primary" @click="submitForm">提交</el-button>\n <el-button @click="resetForm" class="btn-reset">重置</el-button>\n </el-form-item>',n&&(i='<el-col :span="24">\n '.concat(i,"\n </el-col>"))),i}function T(e,t){return n||e.span!==b?'<el-col :span="'.concat(e.span,'">\n ').concat(t,"\n </el-col>"):t}var S={colFormItem:function(e){var t="";e.labelWidth&&e.labelWidth!==a.labelWidth&&(t='label-width="'.concat(e.labelWidth,'px"'));var i=!g["e"][e.tag]&&e.required?"required":"",n=I[e.tag]?I[e.tag](e):null,r="<el-form-item ".concat(t,' label="').concat(e.label,'" prop="').concat(e.vModel,'" ').concat(i,">\n ").concat(n,"\n </el-form-item>");return r=T(e,r),r},rowFormItem:function(e){var t="default"===e.type?"":'type="'.concat(e.type,'"'),i="default"===e.type?"":'justify="'.concat(e.justify,'"'),a="default"===e.type?"":'align="'.concat(e.align,'"'),n=e.gutter?'gutter="'.concat(e.gutter,'"'):"",r=e.children.map((function(e){return S[e.layout](e)})),s="<el-row ".concat(t," ").concat(i," ").concat(a," ").concat(n,">\n ").concat(r.join("\n"),"\n </el-row>");return s=T(e,s),s}},I={"el-input":function(e){var t=E(e),i=t.disabled,a=t.vModel,n=t.clearable,r=t.placeholder,s=t.width,o=e.maxlength?':maxlength="'.concat(e.maxlength,'"'):"",l=e["show-word-limit"]?"show-word-limit":"",c=e.readonly?"readonly":"",u=e["prefix-icon"]?"prefix-icon='".concat(e["prefix-icon"],"'"):"",d=e["suffix-icon"]?"suffix-icon='".concat(e["suffix-icon"],"'"):"",p=e["show-password"]?"show-password":"",f=e.type?'type="'.concat(e.type,'"'):"",A=e.autosize&&e.autosize.minRows?':autosize="{minRows: '.concat(e.autosize.minRows,", maxRows: ").concat(e.autosize.maxRows,'}"'):"",h=O(e);return h&&(h="\n".concat(h,"\n")),"<".concat(e.tag," ").concat(a," ").concat(f," ").concat(r," ").concat(o," ").concat(l," ").concat(c," ").concat(i," ").concat(n," ").concat(u," ").concat(d," ").concat(p," ").concat(A," ").concat(s,">").concat(h,"</").concat(e.tag,">")},"el-input-number":function(e){var t=E(e),i=t.disabled,a=t.vModel,n=t.placeholder,r=e["controls-position"]?"controls-position=".concat(e["controls-position"]):"",s=e.min?":min='".concat(e.min,"'"):"",o=e.max?":max='".concat(e.max,"'"):"",l=e.step?":step='".concat(e.step,"'"):"",c=e["step-strictly"]?"step-strictly":"",u=e.precision?":precision='".concat(e.precision,"'"):"";return"<".concat(e.tag," ").concat(a," ").concat(n," ").concat(l," ").concat(c," ").concat(u," ").concat(r," ").concat(s," ").concat(o," ").concat(i,"></").concat(e.tag,">")},"el-select":function(e){var t=E(e),i=t.disabled,a=t.vModel,n=t.clearable,r=t.placeholder,s=t.width,o=e.filterable?"filterable":"",l=e.multiple?"multiple":"",c=B(e);return c&&(c="\n".concat(c,"\n")),"<".concat(e.tag," ").concat(a," ").concat(r," ").concat(i," ").concat(l," ").concat(o," ").concat(n," ").concat(s,">").concat(c,"</").concat(e.tag,">")},"el-radio-group":function(e){var t=E(e),i=t.disabled,a=t.vModel,n='size="'.concat(e.size,'"'),r=L(e);return r&&(r="\n".concat(r,"\n")),"<".concat(e.tag," ").concat(a," ").concat(n," ").concat(i,">").concat(r,"</").concat(e.tag,">")},"el-checkbox-group":function(e){var t=E(e),i=t.disabled,a=t.vModel,n='size="'.concat(e.size,'"'),r=e.min?':min="'.concat(e.min,'"'):"",s=e.max?':max="'.concat(e.max,'"'):"",o=D(e);return o&&(o="\n".concat(o,"\n")),"<".concat(e.tag," ").concat(a," ").concat(r," ").concat(s," ").concat(n," ").concat(i,">").concat(o,"</").concat(e.tag,">")},"el-switch":function(e){var t=E(e),i=t.disabled,a=t.vModel,n=e["active-text"]?'active-text="'.concat(e["active-text"],'"'):"",r=e["inactive-text"]?'inactive-text="'.concat(e["inactive-text"],'"'):"",s=e["active-color"]?'active-color="'.concat(e["active-color"],'"'):"",o=e["inactive-color"]?'inactive-color="'.concat(e["inactive-color"],'"'):"",l=!0!==e["active-value"]?":active-value='".concat(JSON.stringify(e["active-value"]),"'"):"",c=!1!==e["inactive-value"]?":inactive-value='".concat(JSON.stringify(e["inactive-value"]),"'"):"";return"<".concat(e.tag," ").concat(a," ").concat(n," ").concat(r," ").concat(s," ").concat(o," ").concat(l," ").concat(c," ").concat(i,"></").concat(e.tag,">")},"el-cascader":function(e){var t=E(e),i=t.disabled,a=t.vModel,n=t.clearable,r=t.placeholder,s=t.width,o=e.options?':options="'.concat(e.vModel,'Options"'):"",l=e.props?':props="'.concat(e.vModel,'Props"'):"",c=e["show-all-levels"]?"":':show-all-levels="false"',u=e.filterable?"filterable":"",d="/"===e.separator?"":'separator="'.concat(e.separator,'"');return"<".concat(e.tag," ").concat(a," ").concat(o," ").concat(l," ").concat(s," ").concat(c," ").concat(r," ").concat(d," ").concat(u," ").concat(n," ").concat(i,"></").concat(e.tag,">")},"el-slider":function(e){var t=E(e),i=t.disabled,a=t.vModel,n=e.min?":min='".concat(e.min,"'"):"",r=e.max?":max='".concat(e.max,"'"):"",s=e.step?":step='".concat(e.step,"'"):"",o=e.range?"range":"",l=e["show-stops"]?':show-stops="'.concat(e["show-stops"],'"'):"";return"<".concat(e.tag," ").concat(n," ").concat(r," ").concat(s," ").concat(a," ").concat(o," ").concat(l," ").concat(i,"></").concat(e.tag,">")},"el-time-picker":function(e){var t=E(e),i=t.disabled,a=t.vModel,n=t.clearable,r=t.placeholder,s=t.width,o=e["start-placeholder"]?'start-placeholder="'.concat(e["start-placeholder"],'"'):"",l=e["end-placeholder"]?'end-placeholder="'.concat(e["end-placeholder"],'"'):"",c=e["range-separator"]?'range-separator="'.concat(e["range-separator"],'"'):"",u=e["is-range"]?"is-range":"",d=e.format?'format="'.concat(e.format,'"'):"",p=e["value-format"]?'value-format="'.concat(e["value-format"],'"'):"",f=e["picker-options"]?":picker-options='".concat(JSON.stringify(e["picker-options"]),"'"):"";return"<".concat(e.tag," ").concat(a," ").concat(u," ").concat(d," ").concat(p," ").concat(f," ").concat(s," ").concat(r," ").concat(o," ").concat(l," ").concat(c," ").concat(n," ").concat(i,"></").concat(e.tag,">")},"el-date-picker":function(e){var t=E(e),i=t.disabled,a=t.vModel,n=t.clearable,r=t.placeholder,s=t.width,o=e["start-placeholder"]?'start-placeholder="'.concat(e["start-placeholder"],'"'):"",l=e["end-placeholder"]?'end-placeholder="'.concat(e["end-placeholder"],'"'):"",c=e["range-separator"]?'range-separator="'.concat(e["range-separator"],'"'):"",u=e.format?'format="'.concat(e.format,'"'):"",d=e["value-format"]?'value-format="'.concat(e["value-format"],'"'):"",p="date"===e.type?"":'type="'.concat(e.type,'"'),f=e.readonly?"readonly":"";return"<".concat(e.tag," ").concat(p," ").concat(a," ").concat(u," ").concat(d," ").concat(s," ").concat(r," ").concat(o," ").concat(l," ").concat(c," ").concat(n," ").concat(f," ").concat(i,"></").concat(e.tag,">")},"el-rate":function(e){var t=E(e),i=t.disabled,a=t.vModel,n=e["allow-half"]?"allow-half":"",r=e["show-text"]?"show-text":"",s=e["show-score"]?"show-score":"";return"<".concat(e.tag," ").concat(a," ").concat(n," ").concat(r," ").concat(s," ").concat(i,"></").concat(e.tag,">")},"el-color-picker":function(e){var t=E(e),i=t.disabled,a=t.vModel,n='size="'.concat(e.size,'"'),r=e["show-alpha"]?"show-alpha":"",s=e["color-format"]?'color-format="'.concat(e["color-format"],'"'):"";return"<".concat(e.tag," ").concat(a," ").concat(n," ").concat(r," ").concat(s," ").concat(i,"></").concat(e.tag,">")},"el-upload":function(e){var t=e.disabled?":disabled='true'":"",i=e.action?':action="'.concat(e.vModel,'Action"'):"",a=e.multiple?"multiple":"",n="text"!==e["list-type"]?'list-type="'.concat(e["list-type"],'"'):"",r=e.accept?'accept="'.concat(e.accept,'"'):"",s="file"!==e.name?'name="'.concat(e.name,'"'):"",o=!1===e["auto-upload"]?':auto-upload="false"':"",l=':before-upload="'.concat(e.vModel,'BeforeUpload"'),c=':file-list="'.concat(e.vModel,'fileList"'),u='ref="'.concat(e.vModel,'"'),d=M(e);return d&&(d="\n".concat(d,"\n")),"<".concat(e.tag," ").concat(u," ").concat(c," ").concat(i," ").concat(o," ").concat(a," ").concat(l," ").concat(n," ").concat(r," ").concat(s," ").concat(t,">").concat(d,"</").concat(e.tag,">")}};function E(e){return{vModel:'v-model="'.concat(a.formModel,".").concat(e.vModel,'"'),clearable:e.clearable?"clearable":"",placeholder:e.placeholder?'placeholder="'.concat(e.placeholder,'"'):"",width:e.style&&e.style.width?":style=\"{width: '100%'}\"":"",disabled:e.disabled?":disabled='true'":""}}function O(e){var t=[];return e.prepend&&t.push('<template slot="prepend">'.concat(e.prepend,"</template>")),e.append&&t.push('<template slot="append">'.concat(e.append,"</template>")),t.join("\n")}function B(e){var t=[];return e.options&&e.options.length&&t.push('<el-option v-for="(item, index) in '.concat(e.vModel,'Options" :key="index" :label="item.label" :value="item.value" :disabled="item.disabled"></el-option>')),t.join("\n")}function L(e){var t=[];if(e.options&&e.options.length){var i="button"===e.optionType?"el-radio-button":"el-radio",a=e.border?"border":"";t.push("<".concat(i,' v-for="(item, index) in ').concat(e.vModel,'Options" :key="index" :label="item.value" :disabled="item.disabled" ').concat(a,">{{item.label}}</").concat(i,">"))}return t.join("\n")}function D(e){var t=[];if(e.options&&e.options.length){var i="button"===e.optionType?"el-checkbox-button":"el-checkbox",a=e.border?"border":"";t.push("<".concat(i,' v-for="(item, index) in ').concat(e.vModel,'Options" :key="index" :label="item.value" :disabled="item.disabled" ').concat(a,">{{item.label}}</").concat(i,">"))}return t.join("\n")}function M(e){var t=[];return"picture-card"===e["list-type"]?t.push('<i class="el-icon-plus"></i>'):t.push('<el-button size="small" type="primary" icon="el-icon-upload">'.concat(e.buttonText,"</el-button>")),e.showTip&&t.push('<div slot="tip" class="el-upload__tip">只能上传不超过 '.concat(e.fileSize).concat(e.sizeUnit," 的").concat(e.accept,"文件</div>")),t.join("\n")}function N(e,t){var i=[];a=e,n=e.fields.some((function(e){return e.span!==b})),e.fields.forEach((function(e){i.push(S[e.layout](e))}));var r=i.join("\n"),s=x(e,r,t);return"dialog"===t&&(s=y(s)),a=null,s}var j=i("80de"),P={"el-rate":".el-rate{display: inline-block; vertical-align: text-top;}","el-upload":".el-upload__tip{line-height: 1.2;}"};function U(e,t){var i=P[t.tag];i&&-1===e.indexOf(i)&&e.push(i),t.children&&t.children.forEach((function(t){return U(e,t)}))}function F(e){var t=[];return e.fields.forEach((function(e){return U(t,e)})),t.join("\n")}var R,Q,H=6,z=24,q=11,G=[{layout:"colFormItem",tagIcon:"input",label:"手机号",vModel:"mobile",formId:H,tag:"el-input",placeholder:"请输入手机号",defaultValue:"",span:z,style:{width:"100%"},clearable:!0,prepend:"",append:"","prefix-icon":"el-icon-mobile","suffix-icon":"",maxlength:q,"show-word-limit":!0,readonly:!1,disabled:!1,required:!0,changeTag:!0,regList:[{pattern:"/^1(3|4|5|7|8|9)\\d{9}$/",message:"手机号格式错误"}]}],$=i("136c"),V=i.n($),Y=i("a92a"),K=i("4923"),W=i("5c96"),X={components:{draggable:u.a,RightPanel:m["default"],CodeTypeDialog:Y["default"],DraggableItem:K["default"]},data:function(){return{logo:V.a,idGlobal:100,formConf:g["a"],inputComponents:g["b"],selectComponents:g["d"],layoutComponents:g["c"],labelWidth:100,drawingList:G,drawingData:{},activeId:G[0].formId,drawerVisible:!1,formData:{},dialogVisible:!1,generateConf:null,showFileName:!1,activeData:G[0]}},computed:{},watch:{"activeData.label":function(e,t){void 0!==this.activeData.placeholder&&this.activeData.tag&&R===this.activeId&&(this.activeData.placeholder=this.activeData.placeholder.replace(t,"")+e)},activeId:{handler:function(e){R=e},immediate:!0}},mounted:function(){var e=this,t=new h.a("#copyNode",{text:function(t){var i=e.generateCode();return W["Notification"].closeAll(),e.$notify({title:"成功",message:"代码已复制到剪切板,可粘贴。",type:"success"}),i}});t.on("error",(function(t){e.msgError("代码复制失败")}))},methods:{activeFormItem:function(e){this.activeData=e,this.activeId=e.formId},onEnd:function(e,t){e.from!==e.to&&(this.activeData=Q,this.activeId=this.idGlobal)},addComponent:function(e){var t=this.cloneComponent(e);this.drawingList.push(t),this.activeFormItem(t)},cloneComponent:function(e){var t=JSON.parse(JSON.stringify(e));return t.formId=++this.idGlobal,t.span=g["a"].span,t.renderKey=+new Date,t.layout||(t.layout="colFormItem"),"colFormItem"===t.layout?(t.vModel="field".concat(this.idGlobal),void 0!==t.placeholder&&(t.placeholder+=t.label),Q=t):"rowFormItem"===t.layout&&(delete t.label,t.componentName="row".concat(this.idGlobal),t.gutter=this.formConf.gutter,Q=t),Q},AssembleFormData:function(){this.formData=Object(l["a"])({fields:JSON.parse(JSON.stringify(this.drawingList))},this.formConf)},generate:function(e){var t=this["exec".concat(Object(v["p"])(this.operationType))];this.generateConf=e,t&&t(e)},execRun:function(e){this.AssembleFormData(),this.drawerVisible=!0},execDownload:function(e){var t=this.generateCode(),i=new Blob([t],{type:"text/plain;charset=utf-8"});Object(d["saveAs"])(i,e.fileName)},execCopy:function(e){document.getElementById("copyNode").click()},empty:function(){var e=this;this.confirmModal({msg:"确定要清空所有组件吗?"},(function(){e.drawingList=[]}))},drawingItemCopy:function(e,t){var i=JSON.parse(JSON.stringify(e));i=this.createIdAndKey(i),t.push(i),this.activeFormItem(i)},createIdAndKey:function(e){var t=this;return e.formId=++this.idGlobal,e.renderKey=+new Date,"colFormItem"===e.layout?e.vModel="field".concat(this.idGlobal):"rowFormItem"===e.layout&&(e.componentName="row".concat(this.idGlobal)),Array.isArray(e.children)&&(e.children=e.children.map((function(e){return t.createIdAndKey(e)}))),e},drawingItemDelete:function(e,t){var i=this;t.splice(e,1),this.$nextTick((function(){var e=i.drawingList.length;e&&i.activeFormItem(i.drawingList[e-1])}))},generateCode:function(){var e=this.generateConf.type;this.AssembleFormData();var t=w(Object(j["a"])(this.formData,e)),i=_(N(this.formData,e)),a=C(F(this.formData));return f.a.html(i+t+a,v["a"].html)},download:function(){this.dialogVisible=!0,this.showFileName=!0,this.operationType="download"},run:function(){this.dialogVisible=!0,this.showFileName=!1,this.operationType="run"},copy:function(){this.dialogVisible=!0,this.showFileName=!1,this.operationType="copy"},tagChange:function(e){var t=this;e=this.cloneComponent(e),e.vModel=this.activeData.vModel,e.formId=this.activeId,e.span=this.activeData.span,delete this.activeData.tag,delete this.activeData.tagIcon,delete this.activeData.document,Object.keys(e).forEach((function(i){void 0!==t.activeData[i]&&Object(o["a"])(t.activeData[i])===Object(o["a"])(e[i])&&(e[i]=t.activeData[i])})),this.activeData=e,this.updateDrawingList(e,this.drawingList)},updateDrawingList:function(e,t){var i=this,a=t.findIndex((function(e){return e.formId===i.activeId}));a>-1?t.splice(a,1,e):t.forEach((function(t){Array.isArray(t.children)&&i.updateDrawingList(e,t.children)}))}}},J=X,Z=(i("957b"),i("2877")),ee=Object(Z["a"])(J,r,s,!1,null,null,null);t["default"]=ee.exports},"28a0":function(e,t){"function"===typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}},"28a7":function(e,t,i){"use strict";i("9b31")},2916:function(e,t,i){},"291a":function(e,t,i){e.exports=i.p+"static/img/contact-step2-1.68cf71da.png"},"294b":function(e,t,i){"use strict";i("580c")},2986:function(e,t,i){"use strict";i.d(t,"s",(function(){return c})),i.d(t,"n",(function(){return u})),i.d(t,"j",(function(){return d})),i.d(t,"g",(function(){return p})),i.d(t,"p",(function(){return f})),i.d(t,"l",(function(){return A})),i.d(t,"i",(function(){return h})),i.d(t,"w",(function(){return m})),i.d(t,"d",(function(){return g})),i.d(t,"e",(function(){return v})),i.d(t,"f",(function(){return b})),i.d(t,"h",(function(){return y})),i.d(t,"k",(function(){return _})),i.d(t,"o",(function(){return w})),i.d(t,"c",(function(){return C})),i.d(t,"a",(function(){return x})),i.d(t,"b",(function(){return k})),i.d(t,"q",(function(){return T})),i.d(t,"m",(function(){return S})),i.d(t,"r",(function(){return I})),i.d(t,"u",(function(){return E})),i.d(t,"t",(function(){return O})),i.d(t,"v",(function(){return B}));var a=i("b775"),n=window.CONFIG.services.wecom+"/auto/tag/rule/customer",r=window.CONFIG.services.wecom+"/auto/tag/rule/group",s=window.CONFIG.services.wecom+"/auto/tag/rule/keyword",o=window.CONFIG.services.wecom+"/auto/tag/rule",l=window.CONFIG.services.wecom+"/auto/tag/hit/record";function c(e){return Object(a["a"])({url:l+"/keyword/detail",method:"post",data:e})}function u(e){return Object(a["a"])({url:l+"/keyword/count/".concat(e),method:"get"})}function d(e){return Object(a["a"])({url:l+"/group/count/".concat(e),method:"get"})}function p(e){return Object(a["a"])({url:l+"/customer/count/".concat(e),method:"get"})}function f(e){return Object(a["a"])({url:l+"/keyword/list",method:"post",data:e})}function A(e){return Object(a["a"])({url:l+"/group/list",method:"post",data:e})}function h(e){return Object(a["a"])({url:l+"/customer/list",method:"post",data:e})}function m(e){return Object(a["a"])({url:o+"/batch/status",method:"post",data:e})}function g(e){return Object(a["a"])({url:n+"/remove",method:"delete",data:e})}function v(e){return Object(a["a"])({url:r+"/remove",method:"delete",data:e})}function b(e){return Object(a["a"])({url:s+"/remove",method:"delete",data:e})}function y(e,t){return Object(a["a"])({url:n+"/list",method:"post",data:e,params:t})}function _(e,t){return Object(a["a"])({url:r+"/list",method:"post",data:e,params:t})}function w(e,t){return Object(a["a"])({url:s+"/list",method:"post",data:e,params:t})}function C(e){return Object(a["a"])({url:n+"/add",method:"post",data:e})}function x(e){return Object(a["a"])({url:r+"/add",method:"post",data:e})}function k(e){return Object(a["a"])({url:s+"/add",method:"post",data:e})}function T(e){return Object(a["a"])({url:s+"/info",params:e})}function S(e){return Object(a["a"])({url:r+"/info",params:e})}function I(e){return Object(a["a"])({url:n+"/info",params:e})}function E(e){return Object(a["a"])({url:s+"/edit",method:"put",data:e})}function O(e){return Object(a["a"])({url:r+"/edit",method:"put",data:e})}function B(e){return Object(a["a"])({url:n+"/edit",method:"put",data:e})}},"2a0c":function(e,t,i){"use strict";i("b654")},"2a33":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("el-row",[i("el-col",{staticClass:"card-box",attrs:{span:12}},[i("el-card",[i("div",{attrs:{slot:"header"},slot:"header"},[i("span",[e._v("CPU")])]),i("div",{staticClass:"el-table el-table--enable-row-hover el-table--medium"},[i("table",{staticStyle:{width:"100%"},attrs:{cellspacing:"0"}},[i("thead",[i("tr",[i("th",{staticClass:"is-leaf"},[i("div",{staticClass:"cell"},[e._v("属性")])]),i("th",{staticClass:"is-leaf"},[i("div",{staticClass:"cell"},[e._v("值")])])])]),i("tbody",[i("tr",[i("td",[i("div",{staticClass:"cell"},[e._v("核心数")])]),i("td",[e.server.cpu?i("div",{staticClass:"cell"},[e._v(e._s(e.server.cpu.cpuNum))]):e._e()])]),i("tr",[i("td",[i("div",{staticClass:"cell"},[e._v("用户使用率")])]),i("td",[e.server.cpu?i("div",{staticClass:"cell"},[e._v(e._s(e.server.cpu.used)+"%")]):e._e()])]),i("tr",[i("td",[i("div",{staticClass:"cell"},[e._v("系统使用率")])]),i("td",[e.server.cpu?i("div",{staticClass:"cell"},[e._v(e._s(e.server.cpu.sys)+"%")]):e._e()])]),i("tr",[i("td",[i("div",{staticClass:"cell"},[e._v("当前空闲率")])]),i("td",[e.server.cpu?i("div",{staticClass:"cell"},[e._v(e._s(e.server.cpu.free)+"%")]):e._e()])])])])])])],1),i("el-col",{staticClass:"card-box",attrs:{span:12}},[i("el-card",[i("div",{attrs:{slot:"header"},slot:"header"},[i("span",[e._v("内存")])]),i("div",{staticClass:"el-table el-table--enable-row-hover el-table--medium"},[i("table",{staticStyle:{width:"100%"},attrs:{cellspacing:"0"}},[i("thead",[i("tr",[i("th",{staticClass:"is-leaf"},[i("div",{staticClass:"cell"},[e._v("属性")])]),i("th",{staticClass:"is-leaf"},[i("div",{staticClass:"cell"},[e._v("内存")])]),i("th",{staticClass:"is-leaf"},[i("div",{staticClass:"cell"},[e._v("JVM")])])])]),i("tbody",[i("tr",[i("td",[i("div",{staticClass:"cell"},[e._v("总内存")])]),i("td",[e.server.mem?i("div",{staticClass:"cell"},[e._v(e._s(e.server.mem.total)+"G")]):e._e()]),i("td",[e.server.jvm?i("div",{staticClass:"cell"},[e._v(e._s(e.server.jvm.total)+"M")]):e._e()])]),i("tr",[i("td",[i("div",{staticClass:"cell"},[e._v("已用内存")])]),i("td",[e.server.mem?i("div",{staticClass:"cell"},[e._v(e._s(e.server.mem.used)+"G")]):e._e()]),i("td",[e.server.jvm?i("div",{staticClass:"cell"},[e._v(e._s(e.server.jvm.used)+"M")]):e._e()])]),i("tr",[i("td",[i("div",{staticClass:"cell"},[e._v("剩余内存")])]),i("td",[e.server.mem?i("div",{staticClass:"cell"},[e._v(e._s(e.server.mem.free)+"G")]):e._e()]),i("td",[e.server.jvm?i("div",{staticClass:"cell"},[e._v(e._s(e.server.jvm.free)+"M")]):e._e()])]),i("tr",[i("td",[i("div",{staticClass:"cell"},[e._v("使用率")])]),i("td",[e.server.mem?i("div",{staticClass:"cell",class:{"text-danger":e.server.mem.usage>80}},[e._v(e._s(e.server.mem.usage)+"%")]):e._e()]),i("td",[e.server.jvm?i("div",{staticClass:"cell",class:{"text-danger":e.server.jvm.usage>80}},[e._v(e._s(e.server.jvm.usage)+"%")]):e._e()])])])])])])],1),i("el-col",{staticClass:"card-box",attrs:{span:24}},[i("el-card",[i("div",{attrs:{slot:"header"},slot:"header"},[i("span",[e._v("服务器信息")])]),i("div",{staticClass:"el-table el-table--enable-row-hover el-table--medium"},[i("table",{staticStyle:{width:"100%"},attrs:{cellspacing:"0"}},[i("tbody",[i("tr",[i("td",[i("div",{staticClass:"cell"},[e._v("服务器名称")])]),i("td",[e.server.sys?i("div",{staticClass:"cell"},[e._v(e._s(e.server.sys.computerName))]):e._e()]),i("td",[i("div",{staticClass:"cell"},[e._v("操作系统")])]),i("td",[e.server.sys?i("div",{staticClass:"cell"},[e._v(e._s(e.server.sys.osName))]):e._e()])]),i("tr",[i("td",[i("div",{staticClass:"cell"},[e._v("服务器IP")])]),i("td",[e.server.sys?i("div",{staticClass:"cell"},[e._v(e._s(e.server.sys.computerIp))]):e._e()]),i("td",[i("div",{staticClass:"cell"},[e._v("系统架构")])]),i("td",[e.server.sys?i("div",{staticClass:"cell"},[e._v(e._s(e.server.sys.osArch))]):e._e()])])])])])])],1),i("el-col",{staticClass:"card-box",attrs:{span:24}},[i("el-card",[i("div",{attrs:{slot:"header"},slot:"header"},[i("span",[e._v("Java虚拟机信息")])]),i("div",{staticClass:"el-table el-table--enable-row-hover el-table--medium"},[i("table",{staticStyle:{width:"100%"},attrs:{cellspacing:"0"}},[i("tbody",[i("tr",[i("td",[i("div",{staticClass:"cell"},[e._v("Java名称")])]),i("td",[e.server.jvm?i("div",{staticClass:"cell"},[e._v(e._s(e.server.jvm.name))]):e._e()]),i("td",[i("div",{staticClass:"cell"},[e._v("Java版本")])]),i("td",[e.server.jvm?i("div",{staticClass:"cell"},[e._v(e._s(e.server.jvm.version))]):e._e()])]),i("tr",[i("td",[i("div",{staticClass:"cell"},[e._v("启动时间")])]),i("td",[e.server.jvm?i("div",{staticClass:"cell"},[e._v(e._s(e.server.jvm.startTime))]):e._e()]),i("td",[i("div",{staticClass:"cell"},[e._v("运行时长")])]),i("td",[e.server.jvm?i("div",{staticClass:"cell"},[e._v(e._s(e.server.jvm.runTime))]):e._e()])]),i("tr",[i("td",{attrs:{colspan:"1"}},[i("div",{staticClass:"cell"},[e._v("安装路径")])]),i("td",{attrs:{colspan:"3"}},[e.server.jvm?i("div",{staticClass:"cell"},[e._v(e._s(e.server.jvm.home))]):e._e()])]),i("tr",[i("td",{attrs:{colspan:"1"}},[i("div",{staticClass:"cell"},[e._v("项目路径")])]),i("td",{attrs:{colspan:"3"}},[e.server.sys?i("div",{staticClass:"cell"},[e._v(e._s(e.server.sys.userDir))]):e._e()])])])])])])],1),i("el-col",{staticClass:"card-box",attrs:{span:24}},[i("el-card",[i("div",{attrs:{slot:"header"},slot:"header"},[i("span",[e._v("磁盘状态")])]),i("div",{staticClass:"el-table el-table--enable-row-hover el-table--medium"},[i("table",{staticStyle:{width:"100%"},attrs:{cellspacing:"0"}},[i("thead",[i("tr",[i("th",{staticClass:"is-leaf"},[i("div",{staticClass:"cell"},[e._v("盘符路径")])]),i("th",{staticClass:"is-leaf"},[i("div",{staticClass:"cell"},[e._v("文件系统")])]),i("th",{staticClass:"is-leaf"},[i("div",{staticClass:"cell"},[e._v("盘符类型")])]),i("th",{staticClass:"is-leaf"},[i("div",{staticClass:"cell"},[e._v("总大小")])]),i("th",{staticClass:"is-leaf"},[i("div",{staticClass:"cell"},[e._v("可用大小")])]),i("th",{staticClass:"is-leaf"},[i("div",{staticClass:"cell"},[e._v("已用大小")])]),i("th",{staticClass:"is-leaf"},[i("div",{staticClass:"cell"},[e._v("已用百分比")])])])]),e.server.sysFiles?i("tbody",e._l(e.server.sysFiles,(function(t,a){return i("tr",{key:a},[i("td",[i("div",{staticClass:"cell"},[e._v(e._s(t.dirName))])]),i("td",[i("div",{staticClass:"cell"},[e._v(e._s(t.sysTypeName))])]),i("td",[i("div",{staticClass:"cell"},[e._v(e._s(t.typeName))])]),i("td",[i("div",{staticClass:"cell"},[e._v(e._s(t.total))])]),i("td",[i("div",{staticClass:"cell"},[e._v(e._s(t.free))])]),i("td",[i("div",{staticClass:"cell"},[e._v(e._s(t.used))])]),i("td",[i("div",{staticClass:"cell",class:{"text-danger":t.usage>80}},[e._v(e._s(t.usage)+"%")])])])})),0):e._e()])])])],1)],1)],1)},n=[],r=i("b775");function s(){return Object(r["a"])({url:"/monitor/server",method:"get"})}var o={name:"Server",data:function(){return{loading:[],server:[]}},created:function(){this.getList(),this.openLoading()},methods:{getList:function(){var e=this;s().then((function(t){e.server=t.data,e.loading.close()}))},openLoading:function(){this.loading=this.$loading({lock:!0,text:"拼命读取中",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"})}}},l=o,c=i("2877"),u=Object(c["a"])(l,a,n,!1,null,null,null);t["default"]=u.exports},"2a57":function(e,t,i){},"2a60":function(e,t,i){"use strict";i("212e")},"2a88":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"alert-time-edit-item-div"},[e.sopType===e.SOP_TYPE["newCustomer"]?i("el-radio-group",{staticClass:"remind-time-radio",model:{value:e.formData.alertType,callback:function(t){e.$set(e.formData,"alertType",t)},expression:"formData.alertType"}},[i("el-radio",{attrs:{label:e.RULE_PERFORM_TYPE["hourMinute"]}},[e._v("客户添加员工 "),i("el-input-number",{staticStyle:{width:"70px"},attrs:{size:"mini",min:0,max:23,controls:!1},model:{value:e.formData.alertInfo.hourMinute.hour,callback:function(t){e.$set(e.formData.alertInfo.hourMinute,"hour",t)},expression:"formData.alertInfo.hourMinute.hour"}}),e._v(" 小时 "),i("el-input-number",{staticStyle:{width:"70px"},attrs:{size:"mini",min:0,max:59,controls:!1},model:{value:e.formData.alertInfo.hourMinute.minute,callback:function(t){e.$set(e.formData.alertInfo.hourMinute,"minute",t)},expression:"formData.alertInfo.hourMinute.minute"}}),e._v(" 分钟后提醒员工发送内容 ")],1),i("el-radio",{attrs:{label:e.RULE_PERFORM_TYPE["dayTime"]}},[e._v("客户添加员工第 "),i("el-input-number",{staticStyle:{width:"70px"},attrs:{size:"mini",min:1,max:999,controls:!1},model:{value:e.formData.alertInfo.dayTime.day,callback:function(t){e.$set(e.formData.alertInfo.dayTime,"day",t)},expression:"formData.alertInfo.dayTime.day"}}),e._v(" 天 "),i("el-time-picker",{staticClass:"day-time-picker",staticStyle:{width:"100px"},attrs:{"value-format":"HH:mm",format:"HH:mm"},model:{value:e.formData.alertInfo.dayTime.time,callback:function(t){e.$set(e.formData.alertInfo.dayTime,"time",t)},expression:"formData.alertInfo.dayTime.time"}}),e._v(" 提醒员工发送内容"),i("span",{staticStyle:{color:"#999"}},[e._v("(第1天表示当天,过时不发送) ")])],1)],1):e._e(),[e.SOP_TYPE["activity"],e.SOP_TYPE["groupCalendar"]].includes(e.sopType)?i("div",[i("el-date-picker",{staticStyle:{width:"225px"},attrs:{"value-format":"yyyy-MM-dd HH:mm",format:"yyyy-MM-dd HH:mm",type:"datetime",placeholder:"选择发送时间","picker-options":e.pickerOptions},model:{value:e.formData.alertInfo.time,callback:function(t){e.$set(e.formData.alertInfo,"time",t)},expression:"formData.alertInfo.time"}}),e._v(" 提醒员工发送内容 ")],1):e._e(),e.sopType===e.SOP_TYPE["birthday"]?i("el-radio-group",{staticClass:"remind-time-radio",model:{value:e.formData.alertType,callback:function(t){e.$set(e.formData,"alertType",t)},expression:"formData.alertType"}},[i("el-radio",{attrs:{label:e.RULE_PERFORM_TYPE["dayTime"]}},[e._v("客户生日第 "),i("el-input-number",{staticStyle:{width:"70px"},attrs:{size:"mini",min:1,max:999,controls:!1},model:{value:e.formData.alertInfo.dayTime.day,callback:function(t){e.$set(e.formData.alertInfo.dayTime,"day",t)},expression:"formData.alertInfo.dayTime.day"}}),e._v(" 天 "),i("el-time-picker",{staticClass:"day-time-picker",staticStyle:{width:"100px"},attrs:{"value-format":"HH:mm",format:"HH:mm"},model:{value:e.formData.alertInfo.dayTime.time,callback:function(t){e.$set(e.formData.alertInfo.dayTime,"time",t)},expression:"formData.alertInfo.dayTime.time"}}),e._v(" 提醒员工发送内容"),i("span",{staticStyle:{color:"#999"}},[e._v("(第1天表示当天,过时不发送) ")])],1),i("el-radio",{attrs:{label:e.RULE_PERFORM_TYPE["beforeDayTime"]}},[e._v("客户生日前 "),i("el-input-number",{staticStyle:{width:"70px"},attrs:{size:"mini",min:1,max:999,controls:!1},model:{value:e.formData.alertInfo.beforeDayTime.day,callback:function(t){e.$set(e.formData.alertInfo.beforeDayTime,"day",t)},expression:"formData.alertInfo.beforeDayTime.day"}}),e._v(" 天 "),i("el-time-picker",{staticClass:"day-time-picker",staticStyle:{width:"100px"},attrs:{"value-format":"HH:mm",format:"HH:mm"},model:{value:e.formData.alertInfo.beforeDayTime.time,callback:function(t){e.$set(e.formData.alertInfo.beforeDayTime,"time",t)},expression:"formData.alertInfo.beforeDayTime.time"}}),e._v(" 提醒员工发送内容 ")],1)],1):e._e(),e.sopType===e.SOP_TYPE["timing"]?i("el-radio-group",{staticClass:"remind-time-radio",model:{value:e.formData.alertType,callback:function(t){e.$set(e.formData,"alertType",t)},expression:"formData.alertType"}},[i("el-radio",{attrs:{label:e.RULE_PERFORM_TYPE["hourMinute"]}},[e._v("群聊加入SOP "),i("el-input-number",{staticStyle:{width:"70px"},attrs:{size:"mini",min:0,max:23,controls:!1},model:{value:e.formData.alertInfo.hourMinute.hour,callback:function(t){e.$set(e.formData.alertInfo.hourMinute,"hour",t)},expression:"formData.alertInfo.hourMinute.hour"}}),e._v(" 小时 "),i("el-input-number",{staticStyle:{width:"70px"},attrs:{size:"mini",min:0,max:59,controls:!1},model:{value:e.formData.alertInfo.hourMinute.minute,callback:function(t){e.$set(e.formData.alertInfo.hourMinute,"minute",t)},expression:"formData.alertInfo.hourMinute.minute"}}),e._v(" 分钟后提醒员工发送内容 ")],1),i("el-radio",{attrs:{label:e.RULE_PERFORM_TYPE["dayTime"]}},[e._v("群聊加入SOP第 "),i("el-input-number",{staticStyle:{width:"70px"},attrs:{size:"mini",min:1,max:999,controls:!1},model:{value:e.formData.alertInfo.dayTime.day,callback:function(t){e.$set(e.formData.alertInfo.dayTime,"day",t)},expression:"formData.alertInfo.dayTime.day"}}),e._v(" 天 "),i("el-time-picker",{staticClass:"day-time-picker",staticStyle:{width:"100px"},attrs:{"value-format":"HH:mm",format:"HH:mm"},model:{value:e.formData.alertInfo.dayTime.time,callback:function(t){e.$set(e.formData.alertInfo.dayTime,"time",t)},expression:"formData.alertInfo.dayTime.time"}}),e._v(" 提醒员工发送内容"),i("span",{staticStyle:{color:"#999"}},[e._v("(第1天表示当天,过时不发送)")])],1)],1):e._e(),e.sopType===e.SOP_TYPE["cycle"]?i("el-radio-group",{staticClass:"remind-time-radio",model:{value:e.formData.alertType,callback:function(t){e.$set(e.formData,"alertType",t)},expression:"formData.alertType"}},[i("el-radio",{attrs:{label:e.RULE_PERFORM_TYPE["everydayTime"]}},[e._v("群聊加入SOP后,每天 "),i("el-time-picker",{staticClass:"day-time-picker",staticStyle:{width:"100px"},attrs:{"value-format":"HH:mm",format:"HH:mm"},model:{value:e.formData.alertInfo.everydayTime,callback:function(t){e.$set(e.formData.alertInfo,"everydayTime",t)},expression:"formData.alertInfo.everydayTime"}}),e._v(" 提醒员工发送内容 ")],1),i("el-radio",{attrs:{label:e.RULE_PERFORM_TYPE["everyWeekTime"]}},[e._v("群聊加入SOP后,每周 "),i("el-select",{staticStyle:{width:"80px","margin-right":"10px"},attrs:{placeholder:"请选择"},model:{value:e.formData.alertInfo.everyWeekTime.week,callback:function(t){e.$set(e.formData.alertInfo.everyWeekTime,"week",t)},expression:"formData.alertInfo.everyWeekTime.week"}},e._l(e.weekOptions,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),i("el-time-picker",{staticClass:"day-time-picker",staticStyle:{width:"94px"},attrs:{"value-format":"HH:mm",format:"HH:mm"},model:{value:e.formData.alertInfo.everyWeekTime.time,callback:function(t){e.$set(e.formData.alertInfo.everyWeekTime,"time",t)},expression:"formData.alertInfo.everyWeekTime.time"}}),e._v(" 提醒员工发送内容 ")],1),i("el-radio",{attrs:{label:e.RULE_PERFORM_TYPE["everyMonthTime"]}},[e._v("群聊加入SOP后,每月 "),i("el-popover",{attrs:{placement:"bottom-start",width:"315",trigger:"click"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[i("div",{staticClass:"list"},e._l(e.DAY,(function(t){return i("div",{key:t,staticClass:"item",on:{click:function(i){return e.numClick(t)}}},[e._v(" "+e._s(t)+" ")])})),0),i("el-button",{staticClass:"button",attrs:{slot:"reference"},slot:"reference"},[i("div",{staticStyle:{display:"flex",width:"20px",position:"relative"}},[i("div",{staticStyle:{"font-size":"14px","margin-top":"2px",color:"rgb(99, 97, 97)"}},[e._v(e._s(e.value)+"号")]),i("div",{staticClass:"icon-month"},[i("i",{class:e.visible?"el-icon-arrow-up":"el-icon-arrow-down"})])])])],1),i("el-time-picker",{staticClass:"day-time-picker",staticStyle:{width:"94px"},attrs:{"value-format":"HH:mm",format:"HH:mm"},model:{value:e.formData.alertInfo.everyMonthTime.time,callback:function(t){e.$set(e.formData.alertInfo.everyMonthTime,"time",t)},expression:"formData.alertInfo.everyMonthTime.time"}}),e._v(" 提醒员工发送内容 ")],1)],1):e._e()],1)},n=[],r=i("2909"),s=(i("a9e3"),i("d3b7"),i("159b"),i("ddb0"),i("dd70")),o=i("c1df"),l=i.n(o),c=31,u=30,d={name:"",components:{},props:{sopType:{type:Number,default:null},formData:{type:Object,default:function(){}}},data:function(){var e=function(){var e=[],t=31,i=Object(r["a"])(new Array(t).keys());return i.forEach((function(t){e.push({label:"".concat(t+1,"号"),value:t+1})})),e};return{DAY:[],visible:!1,value:"1",SOP_TYPE:s["ed"],RULE_PERFORM_TYPE:s["Tc"],weekOptions:s["yd"],monthDateOptions:e(),pickerOptions:{disabledDate:function(e){return e.getTime()<Date.now()-s["Dc"]}}}},created:function(){},mounted:function(){for(var e=[],t=1;t<=c;t++)e.push(t);this.DAY=e,this.GroupCalendarTime()},beforeUpdate:function(){this.GroupCalendarTime()},methods:{GroupCalendarTime:function(){var e=new Date;this.sopType===s["ed"]["groupCalendar"]&&""===this.formData.alertInfo.time&&(this.formData.alertInfo.time=l()(new Date(e.setMinutes(e.getMinutes()+u))).format("YYYY-MM-DD HH:mm"))},numClick:function(e){this.visible=!1,this.value=e,this.formData.alertInfo.everyMonthTime.month=this.value}}},p=d,f=(i("0be8d"),i("2877")),A=Object(f["a"])(p,a,n,!1,null,"604913f5",null);t["default"]=A.exports},"2a8a":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"wrap"},[i("ReturnPage",{attrs:{path:"/operationsCenter/drainageCode/customerAssistant"}}),i("div",{staticClass:"wrap-body"},[i("el-alert",{attrs:{title:"功能说明",type:"info",description:"客户点击生成的获客链接,将被随机分配一个员工,添加员工后,会自动被打上预设的客户标签等,同时收到预设的欢迎语,完成引流。","show-icon":"",closable:!1}}),i("div",{staticClass:"wrap-body-form"},[i("el-form",{ref:"form",staticClass:"form",attrs:{model:e.form,"label-width":"100px",rules:e.rules}},[i("p",{staticClass:"config-title"},[e._v("基础设置")]),i("el-form-item",{attrs:{label:"链接名称",prop:"scenario"}},[i("el-input",{attrs:{maxlength:"16","show-word-limit":"",placeholder:"请填写链接名称",clearable:""},model:{value:e.form.scenario,callback:function(t){e.$set(e.form,"scenario",t)},expression:"form.scenario"}})],1),i("el-form-item",{attrs:{label:"场景描述"}},[i("el-input",{attrs:{maxlength:"64",type:"textarea",resize:"none",rows:3,"show-word-limit":"",placeholder:"仅内部可见,请填写链接使用场景,方便管理和应用",clearable:""},model:{value:e.form.description,callback:function(t){e.$set(e.form,"description",t)},expression:"form.description"}})],1),i("el-form-item",{attrs:{label:"使用员工",prop:"weEmpleCodeUseScops"}},[i("div",{staticClass:"flexw"},[i("el-button",{staticClass:"mr10 mb5",attrs:{plain:"",icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.dialogVisibleSelectUser=!0}}},[e._v(e._s(e.form.weEmpleCodeUseScops.length?"修改":"添加")+"成员")]),e._l(e.form.weEmpleCodeUseScops,(function(t,a){return i("el-tag",{key:a,staticClass:"user-tag aic mb5",attrs:{size:"medium"}},[i("TagUserShow",{attrs:{name:t.businessName,"show-icon":t.businessIdType===e.SCOPELIST_TYPE.DEPARTMENT}})],1)}))],2)]),i("el-form-item",{attrs:{label:"客户标签"}},[i("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.tagFlag,callback:function(t){e.$set(e.form,"tagFlag",t)},expression:"form.tagFlag"}}),i("span",{staticClass:"we-emple-code-tags-tip"},[e._v("开启后,自动为通过该链接添加的客户打上标签")])],1),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.form.tagFlag,expression:"form.tagFlag"}],attrs:{label:"",prop:"weEmpleCodeTags"}},[i("el-button",{staticClass:"mr10",attrs:{plain:"",icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.dialogVisibleSelectTag=!0}}},[e._v("添加标签")]),e._l(e.form.weEmpleCodeTags,(function(t,a){return i("el-tag",{key:a,attrs:{closable:"",size:"medium"},on:{close:function(i){return e.deleteTag(t)}}},[e._v(e._s(t.tagName))])}))],2),i("el-form-item",{attrs:{label:"客户备注"}},[i("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.isAutoSetRemark,callback:function(t){e.$set(e.form,"isAutoSetRemark",t)},expression:"form.isAutoSetRemark"}}),i("span",{staticClass:"we-emple-code-tags-tip"},[e._v("开启后,为通过该链接添加的客户修改备注,方便查看来源")]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.form.isAutoSetRemark,expression:"form.isAutoSetRemark"}],staticClass:"remark"},[i("el-alert",{attrs:{title:"客户备注最多可设置20个字符,客户昵称较长时可能导致设置失败",type:"warning",closable:!1}}),i("el-form-item",{attrs:{label:"备注位置","label-width":"68px"}},[i("el-radio-group",{model:{value:e.form.remarkType,callback:function(t){e.$set(e.form,"remarkType",t)},expression:"form.remarkType"}},[i("el-radio",{attrs:{label:e.REMARK_TYPE["previous"]}},[e._v("在昵称前")]),i("el-radio",{attrs:{label:e.REMARK_TYPE["after"]}},[e._v("在昵称后")])],1),i("el-form-item",{attrs:{prop:"remarkName"}},[i("el-input",{attrs:{placeholder:"请输入备注",maxlength:20,"show-word-limit":""},model:{value:e.form.remarkName,callback:function(t){e.$set(e.form,"remarkName",t)},expression:"form.remarkName"}},[e.form.remarkType===e.REMARK_TYPE["after"]?i("template",{slot:"prepend"},[e._v("客户昵称-")]):e._e(),e.form.remarkType===e.REMARK_TYPE["previous"]?i("template",{slot:"append"},[e._v("-客户昵称")]):e._e()],2)],1)],1)],1)],1),i("p",{staticClass:"config-title",staticStyle:{"margin-bottom":"16px"}},[e._v(" 欢迎语"),i("span",[e._v("设置个性化欢迎语,客户通过链接添加员工后将自动接收到该欢迎语")])]),i("el-alert",{attrs:{title:"若使用人员已在企业微信后台或其他第三方应用设置了欢迎语,则此处欢迎语不生效",type:"warning",closable:!1}}),i("el-form-item",{attrs:{label:"类型",prop:"welcomeMsgType"}},[i("el-radio-group",{on:{change:e.welcomeMsgTypeChange},model:{value:e.form.welcomeMsgType,callback:function(t){e.$set(e.form,"welcomeMsgType",t)},expression:"form.welcomeMsgType"}},[i("el-radio",{attrs:{label:e.NORMAL_WORD}},[e._v("普通欢迎语")]),i("el-radio",{attrs:{label:e.ACTIVE_WORD}},[e._v("活动欢迎语")])],1)],1),e.form.welcomeMsgType===e.NORMAL_WORD?i("div",[i("el-form-item",{attrs:{label:"发送内容"}},[i("el-input",{staticClass:"welcome-textarea",attrs:{type:"textarea",maxlength:e.welMsgMaxlength,"show-word-limit":"",autosize:{minRows:10,maxRows:50},placeholder:"请输入欢迎语"},model:{value:e.form.welcomeMsg,callback:function(t){e.$set(e.form,"welcomeMsg",t)},expression:"form.welcomeMsg"}}),i("div",{staticClass:"quick-actions"},[i("span",{on:{click:function(t){return e.handeAddTextClick("#客户昵称#")}}},[e._v("#客户昵称#")]),i("span",{on:{click:function(t){return e.handeAddTextClick("#员工姓名#")}}},[e._v("#员工姓名#")])]),i("AddAppendixBtn",{attrs:{"sub-title":e.subTitle,"limit-select-length":e.limitSelectLength,"max-appendix-num":e.MAX_APPENDIX_NUM,"appendix-list":e.appendixList},on:{"update:appendixList":function(t){e.appendixList=t},"update:appendix-list":function(t){e.appendixList=t}}})],1)],1):i("div",[i("el-form-item",{attrs:{label:"兑换活动",prop:"exchangeActivities"}},[i("div",[i("el-button",{staticClass:"mr10",attrs:{icon:"el-icon-plus",plain:"",size:"mini"},on:{click:function(t){e.dialogVisibleActivityPopup=!0}}},[e._v(e._s(e.activeList.length?"修改":"选择")+"活动")]),e._l(e.activeList,(function(t,a){return i("el-tag",{key:a,attrs:{size:"medium",closable:""},on:{close:e.delTag}},[e._v(e._s(t.activityName))])}))],2)]),i("el-form-item",{attrs:{label:"发送内容",prop:"sendValue"}},[i("ReferCode",{attrs:{type:"staffAdd","code-msg":e.codeMsg,"code-material-list":e.codeMaterialList},on:{"update:codeMsg":function(t){e.codeMsg=t},"update:code-msg":function(t){e.codeMsg=t},"update:codeMaterialList":function(t){e.codeMaterialList=t},"update:code-material-list":function(t){e.codeMaterialList=t}}})],1)],1),i("p",{staticClass:"config-title",staticStyle:{"margin-bottom":"16px"}},[e._v("添加客户设置")]),i("el-alert",{attrs:{title:"若员工在客户端设置 -> 隐私中开启了“加我为联系人”不需要验证,则该功能将失效",type:"warning",closable:!1}}),i("el-form-item",{attrs:{label:"自动通过",prop:"skipVerify"}},[i("div",[i("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.isAutoPass,callback:function(t){e.$set(e.form,"isAutoPass",t)},expression:"form.isAutoPass"}}),i("span",{staticClass:"we-emple-code-tags-tip"},[e._v("开启后,客户通过链接添加员工时无需确认,自动同意添加请求")])],1),i("div",{directives:[{name:"show",rawName:"v-show",value:e.form.isAutoPass,expression:"form.isAutoPass"}],staticClass:"add-time"},[i("el-alert",{attrs:{title:"在生效时段外,客户通过链接添加,需要使用人员手动同意添加请求",type:"warning",closable:!1}}),i("el-form-item",{attrs:{label:"生效时间段","label-width":"82px"}},[i("el-radio-group",{model:{value:e.form.skipVerify,callback:function(t){e.$set(e.form,"skipVerify",t)},expression:"form.skipVerify"}},[i("el-radio",{attrs:{label:e.SKIP_VERIFY["allDay"]}},[e._v("全天")]),i("el-radio",{attrs:{label:e.SKIP_VERIFY["timeAdd"]}},[e._v("选择时间段")])],1),e.form.skipVerify===e.SKIP_VERIFY["timeAdd"]?i("el-time-picker",{attrs:{"is-range":"","value-format":"HH:mm",format:"HH:mm","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",placeholder:"选择时间范围"},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}}):e._e()],1)],1)])],1),i("div",{staticClass:"preview-wrap"},[e.form.welcomeMsg||e.materialSelected||e.appendixList.length?i("PhoneDialog",{attrs:{message:e.form.welcomeMsg,"is-other":!!e.materialSelected,"msg-list":e.appendixList}},[i("el-image",{staticClass:"phone-dialog-image",attrs:{src:e.materialSelected,fit:"fit"}})],1):e._e()],1)],1)],1),i("div",{staticClass:"wrap-footer"},[i("RequestButton",{attrs:{type:"primary","request-method":e.submit,"button-type":"save"}},[e._v("保存")])],1),i("SelectUser",{attrs:{"is-only-leaf":!1,visible:e.dialogVisibleSelectUser,title:"选择使用员工","alert-type":"","alert-text":"每个获客链接最多可关联500个员工,若所选部门超出500人,只有前500个员工参与分配","alert-class":"theme-el-alert","selected-user-list":e.form.weEmpleCodeUseScops||[],"department-id-key":e.DEPARTMENT_ID_KEY},on:{"update:visible":function(t){e.dialogVisibleSelectUser=t},success:e.selectedUser}}),i("ActivityPopup",{attrs:{visible:e.dialogVisibleActivityPopup,"selected-active-list":e.activeList},on:{"update:visible":function(t){e.dialogVisibleActivityPopup=t},success:e.selectedActivity}}),i("SelectTag",{attrs:{visible:e.dialogVisibleSelectTag,selected:e.form.weEmpleCodeTags,type:"search","info-msg":"通过活码添加员工的客户,将被自动打上选中的标签","is-mandatory":0,"is-show-add":!0},on:{"update:visible":function(t){e.dialogVisibleSelectTag=t},success:e.submitSelectTag}})],1)},n=[],r=i("5530"),s=(i("99af"),i("c740"),i("d81d"),i("a434"),i("b0c0"),i("dca8"),i("b64b"),i("d3b7"),i("159b"),i("8107")),o=i("8bd5"),l=i("c958"),c=i("aada"),u=i("52a9"),d=i("cf45"),p=i("2ef0"),f=i("dd70"),A=i("1698"),h=i("515a"),m=i("5db3"),g=i("4887"),v=i("b85a"),b={components:{PhoneDialog:o["a"],SelectTag:c["a"],ActivityPopup:v["a"],AddAppendixBtn:g["a"],SelectUser:l["a"],RequestButton:u["a"],TagUserShow:h["a"],ReferCode:m["a"]},data:function(){var e=this;return{NORMAL_WORD:f["xc"],ACTIVE_WORD:f["a"],MAX_APPENDIX_NUM:f["Tb"],dialogVisibleSelectUser:!1,dialogVisibleSelectTag:!1,dialogVisibleSelectMaterial:!1,loading:!1,form:{isAutoPass:0,weEmpleCodeTags:[],weEmpleCodeUseScops:[],scenario:"",isAutoSetRemark:0,remarkType:A["c"]["previous"],remarkName:"",welcomeMsg:"",skipVerify:f["dd"]["allDay"],tagFlag:0,welcomeMsgType:f["xc"]},time:["00:00","23:59"],query:{pageNum:1,pageSize:f["Ic"],categoryId:"",search:"",mediaType:f["cc"],isExpire:!1},materialSelected:"",welMsgMaxlength:A["b"],MEDIA_TYPE_POSTER:f["cc"],MEDIA_TYPE:f["Xb"],MESSAGE_MEDIA_TYPE:f["ic"],appendixList:[],subTitle:"已添加 0 个附件,还可选择 ".concat(f["Tb"]," 个"),limitSelectLength:f["Tb"],rules:Object.freeze({scenario:[{required:!0,message:"请输入链接名称",trigger:"blur"}],weEmpleCodeUseScops:[{type:"array",required:!0,message:"请选择使用员工",trigger:"change"}],remarkName:[{validator:function(t,i,a){e.form.isAutoSetRemark&&!i.length?a(new Error("请输入备注")):a()},trigger:"blur"}],exchangeActivities:[{required:!0,message:"该项为必填项"}]}),SKIP_VERIFY:f["dd"],SCOPELIST_TYPE:f["Uc"],DEPARTMENT_ID_KEY:A["a"],activeList:[],dialogVisibleActivityPopup:!1,codeMaterialList:{codeSuccessMaterialList:[],codeFailMaterialList:[],codeRepeatMaterialList:[]},codeMsg:{codeSuccessMsg:"",codeFailMsg:"",codeRepeatMsg:""},REMARK_TYPE:A["c"]}},watch:{appendixList:function(e){this.subTitle="已添加 ".concat(e.length," 个附件,还可选择 ").concat(f["Tb"]-e.length," 个"),this.limitSelectLength=f["Tb"]-e.length}},created:function(){var e=this.$route.query.id;e&&this.getDetail(e)},beforeUpdate:function(){var e=Object(r["a"])(Object(r["a"])({},this.$options.data().form),Object(p["pick"])(this.$options.data(),["activeList","codeMaterialList","codeMsg","appendixList"])),t=Object(r["a"])(Object(r["a"])({},this.form),Object(p["pick"])(this,["activeList","codeMaterialList","codeMsg","appendixList"]));Object(d["k"])(e,t)},methods:{getDetail:function(e){var t=this;this.loading=!0,Object(s["g"])(e).then((function(e){var i,a=e.data;if(a.weEmpleCodeUseScops=null===(i=a.weEmpleCodeUseScops)||void 0===i?void 0:i.map((function(e){return Object(r["a"])(Object(r["a"])({},e),{},{userId:e.businessIdType===f["Uc"].USER?e.businessId:void 0,name:e.businessName})})),t.form=a,t.appendixList=a.materialList||[],t.time[0]=a.effectTimeOpen?a.effectTimeOpen:"00:00",t.time[1]=a.effectTimeClose?a.effectTimeClose:"00:00",t.materialSelected=null==a.weMaterial?"":a.weMaterial.materialUrl,t.loading=!1,a.welcomeMsgType){t.activeList=a.codeActivity?[a.codeActivity]:[];var n=a.codeSuccessMaterialList,s=a.codeRepeatMaterialList,o=a.codeFailMaterialList,l=a.codeFailMsg,c=a.codeRepeatMsg,u=a.codeSuccessMsg;t.codeMaterialList.codeSuccessMaterialList=n,t.codeMaterialList.codeFailMaterialList=o,t.codeMaterialList.codeRepeatMaterialList=s,t.codeMsg.codeSuccessMsg=u,t.codeMsg.codeFailMsg=l,t.codeMsg.codeRepeatMsg=c}}))},selectedUser:function(e){var t=this,i={userIds:[],departmentIds:[]};this.form.weEmpleCodeUseScops=null===e||void 0===e?void 0:e.map((function(e){return e.userId&&i.userIds.push(e.userId),!e.userId&&i.departmentIds.push(e[A["a"]]),Object(r["a"])(Object(r["a"])({},e),{},{businessId:e.userId||e[A["a"]],id:void 0,businessName:e.name,businessIdType:e.userId?t.SCOPELIST_TYPE["USER"]:t.SCOPELIST_TYPE["DEPARTMENT"]})})),i.userIds+="",i.departmentIds+=""},submitSelectTag:function(e){this.dialogVisibleSelectTag=!1,this.form.weEmpleCodeTags=null===e||void 0===e?void 0:e.map((function(e){return{tagId:e.tagId,tagName:e.name||e.tagName}}))},dealAttachemnts:function(e){var t=[];return e.forEach((function(e){var i={};i.welcomeMsgType=e.mediaType,t.push(e)})),t},handeAddTextClick:function(e){this.form.welcomeMsg.length+e.length<=this.welMsgMaxlength&&(this.form.welcomeMsg=this.form.welcomeMsg+e)},submit:function(){var e=this;this.$refs["form"].validate((function(t){if(!t)return Object(d["i"])(e.$store,"save"),!1;if(!e.form.weEmpleCodeUseScops.length)return e.msgError("请至少选择一名使用员工"),void Object(d["i"])(e.$store,"save");if(e.form.tagFlag&&!e.form.weEmpleCodeTags.length)return e.msgError("请至少选择一个客户标签"),void Object(d["i"])(e.$store,"save");if(e.form.materialList=e.dealAttachemnts(e.appendixList),e.form.isAutoPass&&e.form.skipVerify===A["d"]&&(e.form.effectTimeOpen=e.time[0],e.form.effectTimeClose=e.time[1]),e.form.isAutoPass||(e.form.skipVerify=A["e"]),e.form.welcomeMsgType){e.form.codeActivity=e.activeList[0];var i=e.codeMaterialList,a=i.codeFailMaterialList,n=i.codeSuccessMaterialList,o=i.codeRepeatMaterialList,l=e.codeMsg,c=l.codeFailMsg,u=l.codeSuccessMsg,p=l.codeRepeatMsg;if(e.form=Object(r["a"])(Object(r["a"])({},e.form),{},{codeSuccessMaterialList:n,codeRepeatMaterialList:o,codeFailMaterialList:a,codeFailMsg:c,codeRepeatMsg:p,codeSuccessMsg:u}),!e.activeList.length)return e.msgError("请选择兑换活动"),void Object(d["i"])(e.$store,"save");if(!(u||c||p))return e.msgError("请至少填写一项发送内容"),void Object(d["i"])(e.$store,"save")}e.loading=!0,(e.form.id?s["u"]:s["a"])(e.form).then((function(){e.$store.commit("SET_ADD_FLAG",!e.form.id),e.msgSuccess("操作成功"),e.$router.back()})).finally((function(){Object(d["i"])(e.$store,"save"),e.loading=!1}))}))},selectedActivity:function(e){this.activeList=e},delTag:function(){this.activeList=[]},welcomeMsgTypeChange:function(){var e=this;this.form.welcomeMsg="",this.appendixList=[],Object.keys(this.codeMsg).forEach((function(t){e.codeMsg[t]=""})),Object.keys(this.codeMaterialList).forEach((function(t){e.codeMaterialList[t]=[]}))},deleteTag:function(e){var t=this.form.weEmpleCodeTags.findIndex((function(t){return t.tagId===e.tagId}));this.form.weEmpleCodeTags.splice(t,1)}}},y=b,_=(i("6f51"),i("9e1c"),i("2877")),w=Object(_["a"])(y,a,n,!1,null,"56dc386e",null);t["default"]=w.exports},"2abc":function(e,t,i){"use strict";i("3589")},"2ad7":function(e,t,i){"use strict";i("1d95")},"2ad9":function(e,t,i){},"2adb":function(e,t,i){e.exports=i.p+"static/img/page-url-demo-1-2.71040e8b.png"},"2ae8":function(e,t,i){"use strict";i("6cf7")},"2b00":function(e,t,i){},"2b39":function(e,t,i){e.exports=i.p+"static/img/mobile-step-1-3.cf61f116.png"},"2b44":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("ReturnPage",{attrs:{path:"/operationsCenter/conversionCode/list"}}),i("RightContainer",{staticStyle:{"margin-top":"10px"},scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{inline:!0,model:e.query}},[i("el-form-item",{attrs:{prop:"code"}},[i("el-input",{attrs:{placeholder:"请输入兑换码"},model:{value:e.query.code,callback:function(t){e.$set(e.query,"code",t)},expression:"query.code"}})],1),i("el-form-item",{attrs:{prop:"receiveName"}},[i("el-input",{attrs:{placeholder:"请输入领取人昵称"},model:{value:e.query.receiveName,callback:function(t){e.$set(e.query,"receiveName",t)},expression:"query.receiveName"}})],1),i("el-form-item",{attrs:{prop:"status"}},[i("el-select",{attrs:{placeholder:"请选择领取状态",size:"small"},model:{value:e.query.status,callback:function(t){e.$set(e.query,"status",t)},expression:"query.status"}},e._l(e.receiveOptions,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),i("el-form-item",[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),i("el-form-item",[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.getList(1)}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"operate-btn",fn:function(){return[i("el-dropdown",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["redeeomCode:activity:edit"],expression:"['redeeomCode:activity:edit']"}],staticClass:"dropdown-reset",attrs:{"split-button":""},on:{click:function(){return e.handleConversionCode(!0)},command:function(t){return e.handleConversionCode(t)}}},[e._v(" 导入兑换码 "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{staticStyle:{width:"108px"},attrs:{command:e.SINGLE_ADD}},[e._v("单个新增")])],1)],1),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["redeeomCode:activity:edit"],expression:"['redeeomCode:activity:edit']"}],staticClass:"btn-reset",attrs:{type:"reset"},on:{click:e.batchDel}},[e._v("批量删除")])]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableLoading,expression:"tableLoading"}],attrs:{data:e.list,"max-height":"600"},on:{"selection-change":e.handleSelectionChange}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.list.length}})],1),i("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),i("el-table-column",{attrs:{label:"兑换码",align:"center",prop:"code"}}),i("el-table-column",{attrs:{align:"center",width:"150",prop:"status"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",[e._v(e._s(a.status?"已领取":"未领取"))])]}},{key:"header",fn:function(){return[i("div",[i("span",[e._v("领取状态")]),i("el-popover",{attrs:{placement:"top-start",trigger:"hover","popper-class":"tip-popover",content:"向客户发送兑换码,即视为领取,不是实际权益兑换结果"}},[i("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"14px"},attrs:{slot:"reference"},slot:"reference"})])],1)]},proxy:!0}])}),i("el-table-column",{attrs:{label:"有效期",align:"center",prop:"effectiveTime"}}),i("el-table-column",{attrs:{label:"领取人",align:"center",prop:"receiveName"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("span",{staticClass:"receive-name",on:{click:function(t){return e.goRoute(a)}}},[e._v(" "+e._s(a.receiveName)+" ")])]}}])}),i("el-table-column",{attrs:{label:"领取时间",align:"center",prop:"redeemTime",width:"180"}}),i("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["redeeomCode:activity:edit"],expression:"['redeeomCode:activity:edit']"}],attrs:{type:"text"},on:{click:function(t){return e.editConversionCode(a)}}},[e._v("编辑")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["redeeomCode:activity:edit"],expression:"['redeeomCode:activity:edit']"}],attrs:{type:"text"},on:{click:function(t){return e.handleDelete(a.code)}}},[e._v("删除")])]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.query.pageNum,limit:e.query.pageSize,disabled:e.tableLoading},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}}),i("div",{staticClass:"new-add"},[i("el-dialog",{attrs:{"close-on-click-modal":!1,title:(e.isSingleAdd?"添加":"编辑")+"兑换码",visible:e.singleAddDialogVisible,width:"500px"},on:{"update:visible":function(t){e.singleAddDialogVisible=t}}},[i("el-form",{ref:"addForm",staticClass:"form",attrs:{"label-width":"70px",model:e.addForm,rules:e.rules}},[i("el-form-item",{attrs:{label:"兑换码",prop:"code"}},[i("el-input",{staticStyle:{width:"220px"},attrs:{disabled:!e.isSingleAdd,placeholder:"请填写该活动下的兑换码"},model:{value:e.addForm.code,callback:function(t){e.$set(e.addForm,"code",t)},expression:"addForm.code"}})],1),i("el-form-item",{attrs:{label:"有效期"}},[i("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd"},model:{value:e.addForm.effectiveTime,callback:function(t){e.$set(e.addForm,"effectiveTime",t)},expression:"addForm.effectiveTime"}})],1),e.isSingleAdd?e._e():i("el-form-item",{attrs:{label:"领取人"}},[i("el-select",{ref:"configSelect",staticStyle:{width:"220px"},attrs:{multiple:!1,filterable:"",clearable:"",remote:"","reserve-keyword":"",placeholder:"请填写客户昵称,回车搜索",loading:e.loading,"no-data-text":e.matchText,"remote-method":e.searchReceiveName},on:{change:e.selectReceiveUser,"visible-change":e.visibleChange,clear:e.clear},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchReceive(t)}},model:{value:e.addForm.receiveName,callback:function(t){e.$set(e.addForm,"receiveName",t)},expression:"addForm.receiveName"}},e._l(e.receivePeople,(function(e){return i("el-option",{key:e.externalUserid,attrs:{label:e.name,value:e.externalUserid}})})),1)],1)],1),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.cancel}},[e._v("取 消")]),i("RequestButton",{attrs:{type:"primary","request-method":e.addConversionCode,"button-type":"save"}},[e._v("确 定")])],1)],1)],1)]},proxy:!0}])}),i("ImportFile",{attrs:{visible:e.importVisible,title:"兑换码",loading:e.importLoading,"import-info":e.importInfo,href:"兑换码导入模板.xlsx"},on:{"update:visible":function(t){e.importVisible=t},handleImportFile:e.handleImportFile}})],1)},n=[],r=i("c7eb"),s=i("5530"),o=i("1da1"),l=(i("4de4"),i("d81d"),i("b0c0"),i("b64b"),i("d3b7"),i("e77d")),c=i("52a9"),u=i("cf45"),d=i("c35a"),p=i("dd70"),f=i("e753"),A=i("b66d"),h=i("54f4"),m=i("ed08"),g=i("e2e0"),v=1,b={name:"List",components:{RightContainer:A["a"],EmptyDefaultIcon:l["a"],ImportFile:d["a"],RequestButton:c["a"]},mixins:[g["a"]],data:function(){return{query:{code:"",receiveStartTime:"",receiveEndTime:"",receiveName:"",status:void 0,pageNum:v,pageSize:p["Ic"]},addForm:{code:"",receiveName:"",receiveUserId:"",effectiveTime:""},rules:{code:[{required:!0,message:"请输入兑换码",trigger:"blur"}]},loading:!1,list:[],total:0,receivePeople:[],dateRange:[],SINGLE_ADD:!1,singleAddDialogVisible:!1,isSingleAdd:!0,receiveOptions:[{label:"已领取",value:1},{label:"未领取",value:0}],importLoading:!1,importVisible:!1,importInfo:{},codeList:[],matchText:"回车搜索",tableLoading:!1}},watch:{"addForm.receiveName":function(e){e||(this.matchText="回车搜索")}},created:function(){if(this.$store.getters.saveCondition&&Object.keys(this.$store.getters.searchQuery[this.$route.name]||{}).length){var e=this.$store.getters.searchQuery[this.$route.name],t=e.receiveStartTime,i=e.receiveEndTime;t&&i&&(this.dateRange=[t,i]),this.query=this.$store.getters.searchQuery[this.$route.name]}this.$store.dispatch("app/setBusininessDesc","\n <div>客户通过兑换码领取内容商品等专属权益,帮助店铺快速引流、拓宽销售渠道、提高商品转化率</div>\n "),this.getList()},methods:{handleConversionCode:function(e){e?this.importVerbalTrick():(this.addForm.code="",this.addForm.effectiveTime="",this.isSingleAdd=!0,this.singleAddDialogVisible=!0)},handleSelectionChange:function(e){this.codeList=e.map((function(e){return e.code}))},selectReceiveUser:function(e){this.addForm.receiveUserId=e},goRoute:function(e){this.$store.commit("SET_SEARCH_QUERY",{pageName:this.$route.name,query:this.query}),Object(m["l"])(this.$router,f["b"],{},{id:e.receiveUserId,prePageType:"conversionCodeDetail"})},searchReceive:function(){var e=this,t=this.addForm.receiveName;t&&(this.loading=!0,h["codeReceivePeople"]({customerName:t}).then((function(i){e.loading=!1,e.matchText="无数据",e.receivePeople=i.data.filter((function(e){return e.name.indexOf(t)>-1}))})))},cancel:function(){this.singleAddDialogVisible=!1,this.addForm.receiveName=""},searchReceiveName:function(e){this.addForm.receiveName=e},clear:function(){this.receivePeople=[]},visibleChange:function(e){e||(this.receivePeople=[])},resetQuery:function(){this.dateRange=[],this.query=this.$options.data().query,this.getList(1)},importVerbalTrick:function(){this.importVisible=!0},handleImportFile:function(e){var t=this;this.importLoading=!0,h["importRedeemCode"](this.$route.query.id,e).then((function(e){var i=e.data;t.importInfo={successNum:i.successNum,failNum:i.failNum,url:i.url},t.resetQuery()})).finally((function(){t.importLoading=!1}))},getList:function(e){var t=this;this.query.receiveStartTime=this.dateRange&&this.dateRange[0],this.query.receiveEndTime=this.dateRange&&this.dateRange[1],this.query.activityId=this.$route.query.id,e&&(this.query.pageNum=e),this.tableLoading=!0,h["getConversionCodeList"](this.query).then((function(e){var i=e.rows,a=e.total;t.list=i,t.total=a})).finally((function(){t.modifyButtonStatus(),t.tableLoading=!1}))},addConversionCode:function(){var e=this;this.$refs["addForm"].validate((function(t){if(!t)return Object(u["i"])(e.$store,"save"),!1;var i={code:e.addForm.code,effectiveTime:e.addForm.effectiveTime,activityId:e.$route.query.id,receiveUserId:e.isSingleAdd?null:e.addForm.receiveUserId};h[e.isSingleAdd?"addConversionCode":"updateConversionCode"](i).then((function(){e.msgSuccess("操作成功"),e.singleAddDialogVisible=!1,e.resetQuery()})).finally((function(){Object(u["i"])(e.$store,"save")}))}))},editConversionCode:function(e){this.isSingleAdd=!1,this.addForm.code=e.code,this.addForm.effectiveTime=e.effectiveTime,this.singleAddDialogVisible=!0,this.$refs["addForm"]&&this.$refs["addForm"].clearValidate()},delConversionCode:function(e){var t=this;this.confirmModal({msg:'<div style="line-height: 18px;">删除后,兑换码与客户的领取关系将被解除,且不可恢复,是否继续? </br> <div style="margin-top:10px;" class="text-warning">注意:为保证客户拿到的兑换码有效,已被领取的兑换码删除后不要再次导入</div></div>',dangerouslyUseHTMLString:!0},Object(o["a"])(Object(r["a"])().mark((function i(){var a;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:a=Object(s["a"])(Object(s["a"])({},e),{},{activityId:t.$route.query.id}),h["deleteConversionCode"](a).then((function(){t.getList(),t.msgSuccess("操作成功")}));case 2:case"end":return i.stop()}}),i)}))))},handleDelete:function(e){this.delConversionCode({codeList:[e]})},batchDel:function(){this.codeList.length<=0?this.msgWarn("请至少选择一个兑换码"):this.delConversionCode({codeList:this.codeList})}}},y=b,_=(i("8fe4"),i("2877")),w=Object(_["a"])(y,a,n,!1,null,"a72d7efc",null);t["default"]=w.exports},"2b8e":function(e,t,i){"use strict";i("82d0")},"2c80":function(e,t,i){e.exports=i.p+"static/img/add-code-3.551d97c2.png"},"2cf9":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"add-rule-page wrap"},[i("ReturnPage",{staticClass:"wrap-head",attrs:{path:"/customerManage/customerCenter/autoLabel",query:{labelType:this.$route.query.labelType}}}),i("div",{staticClass:"wrap-body"},[i("el-alert",{attrs:{title:"功能说明",type:"info",description:e.dealDescription().desc,"show-icon":"",closable:!1}}),i("div",{staticClass:"wrap-body-form"},[i("el-form",{ref:"form",staticClass:"form",staticStyle:{width:"100%"},attrs:{model:e.ruleForm,"label-width":"86px",rules:e.rules}},[i("p",{staticClass:"config-title mb10"},[e._v("基础设置")]),i("el-form-item",{attrs:{label:"规则名称",prop:"ruleName"}},[i("el-input",{staticStyle:{width:"432px"},attrs:{maxlength:"32","show-word-limit":"",placeholder:"请填写规则的使用场景,方便查询和管理",clearable:""},model:{value:e.ruleForm.ruleName,callback:function(t){e.$set(e.ruleForm,"ruleName",t)},expression:"ruleForm.ruleName"}})],1),e.labelType!==e.AUTOLABEL_TYPE["intoGroup"]?i("el-form-item",{attrs:{label:"使用员工",prop:"useStaff"}},[i("div",{staticClass:"flexw"},[i("el-button",{staticClass:"mr10",attrs:{icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.dialogVisibleSelectUser=!0}}},[e._v(e._s(e.useStaff.length?"修改":"添加")+"成员")]),e._l(e.useStaff,(function(t,a){return i("el-tag",{key:a,staticClass:"user-tag aic",attrs:{size:"medium",closable:""},on:{close:function(t){return e.handleClose(a)}}},[i("TagUserShow",{attrs:{name:t.name,"show-icon":t.id}})],1)}))],2),i("p",{staticClass:"tip"},[e._v(e._s(e.labelType===e.AUTOLABEL_TYPE["keyWords"]?"不选择即默认所有员工,使用员工需已开通会话存档功能":"不选择即默认所有员工"))])]):e._e(),e.labelType===e.AUTOLABEL_TYPE["newCustomer"]?i("el-form-item",{attrs:{label:"生效周期",prop:"effectTime"}},[i("el-date-picker",{staticStyle:{width:"431px"},attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"],"picker-options":e.pickerOptions},model:{value:e.ruleForm.effectTime,callback:function(t){e.$set(e.ruleForm,"effectTime",t)},expression:"ruleForm.effectTime"}}),i("p",{staticClass:"tip"},[e._v("超出生效周期,则规则不生效")])],1):e._e(),e.labelType===e.AUTOLABEL_TYPE["keyWords"]?[i("p",{staticClass:"config-title"},[i("span",{staticClass:"required-field"},[e._v("*")]),e._v("关键词设置")]),i("el-form-item",{attrs:{label:"模糊匹配"}},[i("div",[i("div",{staticClass:"we-emple-code-tags-tip"},[e._v("当客户发送的消息包含关键词,则触发规则")]),i("div",[e.fuzzyVisibleAdd?i("el-input",{ref:"fuzzySaveInput",staticClass:"input-new-tag",staticStyle:{width:"200px"},attrs:{size:"mini",maxlength:"15","show-word-limit":""},on:{blur:function(){return e.newInputConfirm("fuzzy")}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(){return e.newInputConfirm("fuzzy")}()}},model:{value:e.newInput,callback:function(t){e.newInput="string"===typeof t?t.trim():t},expression:"newInput"}}):i("el-button",{staticClass:"button-new-tag mr10",attrs:{size:"mini",icon:"el-icon-plus"},on:{click:function(){return e.showInput("fuzzy")}}},[e._v("关键词")]),e._l(e.fuzzyKeywords,(function(t,a){return[i("el-tag",{key:a,staticClass:"user-tag",attrs:{closable:"",size:"medium"},on:{close:function(i){return e.closeKeyword(t,a,"fuzzy")}}},[e._v(" "+e._s(t)+" ")])]}))],2)])]),i("el-form-item",{attrs:{label:"精准匹配",prop:"accurateKeyword"}},[i("div",[i("div",{staticClass:"we-emple-code-tags-tip"},[e._v("当客户发送的消息与关键词完全相同,则触发规则")]),i("div",[e.accurateVisibleAdd?i("el-input",{ref:"accurateSaveInput",staticClass:"input-new-tag",staticStyle:{width:"200px"},attrs:{size:"mini",maxlength:"15","show-word-limit":""},on:{blur:function(){return e.newInputConfirm("accurate")}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(){return e.newInputConfirm("accurate")}()}},model:{value:e.newInput,callback:function(t){e.newInput="string"===typeof t?t.trim():t},expression:"newInput"}}):i("el-button",{staticClass:"button-new-tag mr10",attrs:{size:"mini",icon:"el-icon-plus"},on:{click:function(){return e.showInput("accurate")}}},[e._v("关键词")]),e._l(e.accurateKeywords,(function(t,a){return[i("el-tag",{key:a,staticClass:"user-tag",attrs:{closable:"",size:"medium"},on:{close:function(i){return e.closeKeyword(t,a,"accurate")}}},[e._v(" "+e._s(t)+" ")])]}))],2)])]),e.labelType===e.AUTOLABEL_TYPE["keyWords"]?[i("p",{staticClass:"config-title"},[e._v("标签设置")]),i("el-form-item",{attrs:{label:"客户标签",prop:"customerTags"}},[i("div",[i("el-button",{staticClass:"mr10",attrs:{icon:"el-icon-plus",size:"mini"},on:{click:e.openAddTag}},[e._v("添加标签")]),e._l(e.customerTags,(function(t,a){return i("el-tag",{key:a,attrs:{size:"medium",closable:""},on:{close:function(i){return e.closeTag(t,a)}}},[e._v(e._s(t.name))])}))],2)])]:e._e()]:e._e(),e.labelType!==e.AUTOLABEL_TYPE["keyWords"]?[i("p",{staticClass:"config-title mb20 mt5"},[e._v("场景设置"),i("span",[e._v(e._s(e.labelType===e.AUTOLABEL_TYPE["intoGroup"]?"客户进入某个指定群聊,打上指定客户标签":"客户在某个时段成为员工的客户,打上指定客户标签"))])]),i("div",[i("el-button",{staticClass:"ml20 mb10",attrs:{icon:"el-icon-plus",type:"primary"},on:{click:e.addScene}},[e._v("添加场景")])],1),i("SceneList",{attrs:{"scene-list":e.sceneList,"show-tool":!0,"label-type":e.labelType,"remove-scene-list":e.removeSceneList},on:{"update:sceneList":function(t){e.sceneList=t},"update:scene-list":function(t){e.sceneList=t},"update:removeSceneList":function(t){e.removeSceneList=t},"update:remove-scene-list":function(t){e.removeSceneList=t}}})]:e._e()],2)],1)],1),i("div",{staticClass:"wrap-footer"},[i("RequestButton",{attrs:{type:"primary","request-method":e.submit,"button-type":"submit"}},[e._v("保存")])],1),e.labelType!==e.AUTOLABEL_TYPE["intoGroup"]?i("SelectUser",{attrs:{visible:e.dialogVisibleSelectUser,title:"选择使用员工","is-only-leaf":!1,"selected-user-list":e.useStaff},on:{"update:visible":function(t){e.dialogVisibleSelectUser=t},success:e.selectedUser}}):e._e(),e.labelType===e.AUTOLABEL_TYPE["keyWords"]?i("SelectTag",{attrs:{visible:e.dialogVisibleSelectTag,title:"选择标签",selected:e.customerTags,"tag-type":"customer",type:"search","is-show-add":!0},on:{"update:visible":function(t){e.dialogVisibleSelectTag=t},success:e.submitSelectTag}}):e._e()],1)},n=[],r=i("c7eb"),s=i("1da1"),o=i("2909"),l=i("5530"),c=(i("99af"),i("c740"),i("caad"),i("d81d"),i("a434"),i("a9e3"),i("d3b7"),i("2532"),i("52a9")),u=i("cf45"),d=i("aa50"),p=i("dd70"),f=i("260e"),A=i("c958"),h=i("aada"),m=i("2986"),g=i("a125"),v=i.n(g),b=i("515a"),y={name:"",components:{ReturnPage:d["a"],SceneList:f["default"],SelectUser:A["a"],SelectTag:h["a"],RequestButton:c["a"],TagUserShow:b["a"]},props:{},data:function(){var e=this,t=function(t,i,a){return e.customerTags.length?a():a(new Error("请设置客户标签"))},i=function(t,i,a){return e.fuzzyKeywords.length||e.accurateKeywords.length?a():a(new Error("请设置关键词"))};return{AUTOLABEL_TYPE:p["j"],ruleForm:{ruleName:"",effectTime:null},useStaff:[],customerTags:[],fuzzyVisibleAdd:!1,accurateVisibleAdd:!1,newInput:"",fuzzyKeywords:[],accurateKeywords:[],removeFuzzyKeywords:[],removeAccurateKeywords:[],removeTagList:[],removeSceneList:[],labelType:p["j"]["keyWords"],rules:{ruleName:[{required:!0,message:"请设置规则名称",trigger:"blur"}],customerTags:[{type:"array",required:!0,validator:t,trigger:"change"}],accurateKeyword:[{type:"array",validator:i,trigger:"change"}]},sceneList:[],dialogVisibleSelectUser:!1,dialogVisibleSelectTag:!1,pickerOptions:{disabledDate:function(e){return e.getTime()<Date.now()-p["Cc"]*p["Ec"]*p["tc"]}}}},created:function(){var e=this.$route.query;this.labelType=Number(e.labelType),e.id?this.getRuleDetail(e.id):this.sceneList=this.labelType===p["j"]["intoGroup"]?[{chatRoomList:[],tagList:[]}]:[{sceneType:p["vc"]["day"],loopPoint:p["vc"]["day"]}]},mounted:function(){},beforeUpdate:function(){var e=this.$options.data(),t=e.useStaff,i=e.fuzzyKeywords,a=e.accurateKeywords,n=e.ruleForm,r=e.sceneList;r.push({chatRoomList:[],tagList:[]});var s=Object(l["a"])({useStaff:t,fuzzyKeywords:i,accurateKeywords:a,sceneList:this.labelType===p["j"]["intoGroup"]?[{chatRoomList:[],tagList:[]}]:[{sceneType:p["vc"]["day"],loopPoint:p["vc"]["day"]}]},n),o=Object(l["a"])({useStaff:this.useStaff,fuzzyKeywords:this.fuzzyKeywords,accurateKeywords:this.accurateKeywords,sceneList:this.sceneList},this.ruleForm);Object(u["k"])(s,o)},methods:{dealDescription:function(){switch(this.labelType){case p["j"]["keyWords"]:return{desc:"当客户发送给员工的聊天内容包含设定的关键词,系统为其自动打上客户标签,方便企业对客户进行更精准的运营",tip:""};case p["j"]["intoGroup"]:return{desc:"当客户进入指定的群聊,系统为其自动打上客户标签,方便企业对客户进行更精准的运营",tip:"客户进入某个指定群聊,打上指定客户标签"};case p["j"]["newCustomer"]:return{desc:"当客户在某个时段成为员工的客户,系统为其自动打上客户标签,方便企业对客户进行更精准的运营",tip:"客户在某个时段成为员工的客户,打上指定客户标签"}}return""},newInputConfirm:function(e){this["".concat(e,"VisibleAdd")]=!1;var t=this.newInput;if(t){var i=Object(o["a"])(this["".concat(e,"Keywords")]),a=i.findIndex((function(e){return e===t}));if(a>-1)return this.msgWarn("同一匹配方式下关键词不能重复"),void(this.newInput="");this["".concat(e,"Keywords")].push(t),this.newInput=""}},showInput:function(e){var t=this,i=10,a=this.fuzzyKeywords.length||0,n=this.accurateKeywords.length||0;if(a+n>=i)return this.msgWarn("最多可设置".concat(i,"个关键词")),void(this.newInput="");this["".concat(e,"VisibleAdd")]=!0,this.$nextTick((function(i){t.$refs["".concat(e,"SaveInput")].$refs.input.focus()}))},closeKeyword:function(e,t,i){switch(i){case"fuzzy":this.fuzzyKeywords.splice(t,1),this.removeFuzzyKeywords.push(e);break;case"accurate":this.accurateKeywords.splice(t,1),this.removeAccurateKeywords.push(e);break}},addScene:function(){var e=Object(o["a"])(this.sceneList),t=10;e.length>=t?this.msgWarn("最多可设置".concat(t,"个场景")):(this.labelType===p["j"]["intoGroup"]?e.push({chatRoomList:[],tagList:[]}):e.push({sceneType:p["vc"]["day"],loopPoint:p["vc"]["day"]}),this.sceneList=e)},updateRule:function(e){var t=this;return Object(s["a"])(Object(r["a"])().mark((function i(){var a,n,s,c,d,f,A,h,g,v,b,y,_,w;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:n=Object(l["a"])({},e),s=null===(a=t.customerTags)||void 0===a?void 0:a.map((function(e){return e.tagId})),c=t.removeTagList,d=Object(u["F"])(t.useStaff),i.t0=t.labelType,i.next=i.t0===p["j"]["keyWords"]?7:i.t0===p["j"]["intoGroup"]?10:i.t0===p["j"]["newCustomer"]?13:18;break;case 7:return i.next=9,Object(m["u"])(Object(l["a"])(Object(l["a"])({},n),{},{exactMatchKeywordList:t.accurateKeywords,fuzzyMatchKeywordList:t.fuzzyKeywords,removeExactMatchKeywordList:t.removeAccurateKeywords,reomveFuzzyMatchKeywordList:t.removeFuzzyKeywords,removeTagIdList:null===c||void 0===c?void 0:c.map((function(e){return e.tagId})),tagIdList:s,userIdList:null===(f=d.useEmployeesList)||void 0===f?void 0:f.map((function(e){return e.userId})),departmentIdList:null===(A=d.useDepartmentList)||void 0===A?void 0:A.map((function(e){return e.id}))}));case 9:return i.abrupt("break",18);case 10:return i.next=12,Object(m["t"])(Object(l["a"])(Object(l["a"])({},n),{},{removeSceneIdList:null===(h=t.removeSceneList)||void 0===h?void 0:h.map((function(e){return e.id})),groupSceneList:null===(g=Object(o["a"])(t.sceneList))||void 0===g?void 0:g.map((function(e){var t,i,a,n;return Object(l["a"])(Object(l["a"])({},e),{},{removeGroupIdList:null===(t=e.removeGroupList)||void 0===t?void 0:t.map((function(e){return e.chatId})),removeTagIdList:null===(i=e.removeTagList)||void 0===i?void 0:i.map((function(e){return e.tagId})),tagIdList:null===(a=e.tagList)||void 0===a?void 0:a.map((function(e){return e.tagId})),groupIdList:null===(n=e.chatRoomList)||void 0===n?void 0:n.map((function(e){return e.chatId}))})}))}));case 12:return i.abrupt("break",18);case 13:return w=t.ruleForm,w&&w.effectTime&&(n.effectBeginTime=w.effectTime[0]&&t.parseTime(w.effectTime[0]),n.effectEndTime=w.effectTime[1]&&t.parseTime(w.effectTime[1])),i.next=17,Object(m["v"])(Object(l["a"])(Object(l["a"])({},n),{},{removeSceneIdList:null===(v=t.removeSceneList)||void 0===v?void 0:v.map((function(e){return e.id})),customerSceneList:null===(b=Object(o["a"])(t.sceneList))||void 0===b?void 0:b.map((function(e){var t,i;return Object(l["a"])(Object(l["a"])({},e),{},{removeTagIdList:null===(t=e.removeTagList)||void 0===t?void 0:t.map((function(e){return e.tagId})),tagIdList:null===(i=e.tagList)||void 0===i?void 0:i.map((function(e){return e.tagId}))})})),userIdList:null===(y=d.useEmployeesList)||void 0===y?void 0:y.map((function(e){return e.userId})),departmentIdList:null===(_=d.useDepartmentList)||void 0===_?void 0:_.map((function(e){return e.id}))}));case 17:return i.abrupt("break",18);case 18:return Object(u["i"])(t.$store,"submit"),t.$router.go(-1),i.abrupt("return",n);case 21:case"end":return i.stop()}}),i)})))()},verifyNewCustomerSceneList:function(){var e=this;if(this.labelType!==p["j"]["keyWords"]&&!this.sceneList.length)return this.msgWarn("请设置场景"),!0;var t=10;return this.labelType===p["j"]["keyWords"]&&this.accurateKeywords.length+this.fuzzyKeywords.length>t?(this.msgWarn("最多可设置".concat(t,"个关键词")),!0):this.sceneList.some((function(t,i){var a=t.sceneType,n=t.loopBeginTime,r=t.loopEndTime,s=t.tagList,o=t.loopPoint,l=t.chatRoomList,c=!a||!n||!r||a!==p["vc"]["day"]&&!o;return![p["j"]["newCustomer"],p["j"]["intoGroup"]].includes(e.labelType)||s&&s.length?e.labelType===p["j"]["newCustomer"]&&c?(e.msgWarn("请设置场景".concat(i+1,"的生效时间")),!0):!(e.labelType!==p["j"]["intoGroup"]||l&&l.length)&&(e.msgWarn("请设置场景".concat(i+1,"的群聊")),!0):(e.msgWarn("请设置场景".concat(i+1,"的客户标签")),!0)}))},addAutoRule:function(e){var t=this;return Object(s["a"])(Object(r["a"])().mark((function i(){var a,n,s,o,c,d,f,A,h,g,v;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:n=e,s=null===(a=t.customerTags)||void 0===a?void 0:a.map((function(e){return e.tagId})),o=Object(u["F"])(t.useStaff),i.t0=t.labelType,i.next=i.t0===p["j"]["keyWords"]?6:i.t0===p["j"]["intoGroup"]?10:i.t0===p["j"]["newCustomer"]?14:20;break;case 6:return n=Object(l["a"])(Object(l["a"])({},n),{},{exactMatchKeywordList:t.accurateKeywords,fuzzyMatchKeywordList:t.fuzzyKeywords,tagIdList:s,userIdList:null===(c=o.useEmployeesList)||void 0===c?void 0:c.map((function(e){return e.userId})),departmentIdList:null===(d=o.useDepartmentList)||void 0===d?void 0:d.map((function(e){return e.id}))}),i.next=9,Object(m["b"])(n);case 9:return i.abrupt("break",20);case 10:return n=Object(l["a"])(Object(l["a"])({},n),{},{groupSceneList:null===(f=t.sceneList)||void 0===f?void 0:f.map((function(e){var t,i;return{tagIdList:null===(t=e.tagList)||void 0===t?void 0:t.map((function(e){return e.tagId})),groupIdList:null===(i=e.chatRoomList)||void 0===i?void 0:i.map((function(e){return e.chatId}))}}))}),i.next=13,Object(m["a"])(n);case 13:return i.abrupt("break",20);case 14:return v=Object(l["a"])({},t.ruleForm),v&&v.effectTime&&(n.effectBeginTime=v.effectTime[0]&&t.parseTime(v.effectTime[0]),n.effectEndTime=v.effectTime[1]&&t.parseTime(v.effectTime[1])),n=Object(l["a"])(Object(l["a"])({},n),{},{customerSceneList:null===(A=t.sceneList)||void 0===A?void 0:A.map((function(e){var t;return Object(l["a"])(Object(l["a"])({},e),{},{tagIdList:null===(t=e.tagList)||void 0===t?void 0:t.map((function(e){return e.tagId}))})})),userIdList:null===(h=o.useEmployeesList)||void 0===h?void 0:h.map((function(e){return e.userId})),departmentIdList:null===(g=o.useDepartmentList)||void 0===g?void 0:g.map((function(e){return e.id}))}),i.next=19,Object(m["c"])(n);case 19:return i.abrupt("break",20);case 20:Object(u["i"])(t.$store,"submit"),t.$router.go(-1);case 22:case"end":return i.stop()}}),i)})))()},submit:function(){var e=this;this.$refs["form"].validate((function(t){if(t){var i=e.ruleForm,a=e.verifyNewCustomerSceneList();if(a)return Object(u["i"])(e.$store,"submit");e.$store.commit("SET_ADD_FLAG",!i.id),i.id?e.updateRule({id:i.id,ruleName:i.ruleName}):e.addAutoRule({ruleName:i.ruleName})}else Object(u["i"])(e.$store,"submit")}))},selectedUser:function(e){this.useStaff=e},openAddTag:function(){this.dialogVisibleSelectTag=!0},submitSelectTag:function(e){var t=v()(this.customerTags,e,"tagId");this.customerTags=Object(o["a"])(e),this.dialogVisibleSelectTag=!1,t=this.removeTagList.concat(t),this.removeTagList=t},closeTag:function(e,t){this.customerTags.splice(t,1),this.removeTagList.push(e)},getInfoAndDealUserList:function(e,t){var i;this.useStaff=null===(i=[].concat(Object(o["a"])(e),Object(o["a"])(t)))||void 0===i?void 0:i.map((function(e){return Object(l["a"])(Object(l["a"])({},e),{},{name:e.userName||e.departmentName,id:e.departmentId})}))},getRuleDetail:function(e){var t=this;return Object(s["a"])(Object(r["a"])().mark((function i(){var a,n,s,c,u,d,f,A,h,g,v,b,y,_,w,C,x,k,T,S,I,E,O;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:a={id:e},n={ruleId:e},i.t0=t.labelType,i.next=i.t0===p["j"]["keyWords"]?5:i.t0===p["j"]["intoGroup"]?15:i.t0===p["j"]["newCustomer"]?23:32;break;case 5:return i.next=7,Object(m["q"])(n);case 7:return s=i.sent,c=s.data,u=c.ruleName,d=c.fuzzyMatchKeywordList,f=c.exactMatchKeywordList,A=c.userList,h=c.departmentList,g=c.tagList,a.ruleName=u,t.fuzzyKeywords=Object(o["a"])(d),t.accurateKeywords=Object(o["a"])(f),t.customerTags=null===g||void 0===g?void 0:g.map((function(e){return Object(l["a"])(Object(l["a"])({},e),{},{name:e.tagName})})),t.getInfoAndDealUserList(A,h),i.abrupt("break",32);case 15:return i.next=17,Object(m["m"])(n);case 17:return v=i.sent,b=v.data,y=b.ruleName,_=b.groupSceneList,a.ruleName=y,w=_&&Object(o["a"])(_),t.sceneList=null===w||void 0===w?void 0:w.map((function(e){return Object(l["a"])(Object(l["a"])({},e),{},{chatRoomList:e.groupList})})),i.abrupt("break",32);case 23:return i.next=25,Object(m["r"])(n);case 25:return C=i.sent,x=C.data,k=x.ruleName,T=x.userList,S=x.departmentList,I=x.customerSceneList,E=x.effectBeginTime,O=x.effectEndTime,a.ruleName=k,t.sceneList=Object(o["a"])(I),t.getInfoAndDealUserList(T,S),a.effectTime=[E||"",O||""],i.abrupt("break",32);case 32:t.ruleForm=a;case 33:case"end":return i.stop()}}),i)})))()},handleClose:function(e){this.useStaff.splice(e,1)}}},_=y,w=(i("005d"),i("3b44"),i("2877")),C=Object(w["a"])(_,a,n,!1,null,"3ddc186e",null);t["default"]=C.exports},"2d03":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"material-main-page"},[i("div",{staticClass:"search-container"},[i("div",{staticClass:"search-item"},[i("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入素材标题",clearable:""},model:{value:e.query.search,callback:function(t){e.$set(e.query,"search",t)},expression:"query.search"}})],1),i("div",{staticClass:"search-item"},[i("el-select",{staticStyle:{width:"240px"},attrs:{clearable:"",filterable:"",multiple:"","collapse-tags":"",placeholder:"请选择标签"},model:{value:e.tagIdList,callback:function(t){e.tagIdList=t},expression:"tagIdList"}},e._l(e.allTagList,(function(e,t){return i("el-option",{key:t,attrs:{label:e.tagName,value:e.id}})})),1)],1),i("div",{staticClass:"search-item"},[i("el-select",{staticStyle:{width:"240px"},attrs:{clearable:"",placeholder:"所有素材"},model:{value:e.query.showMaterial,callback:function(t){e.$set(e.query,"showMaterial",t)},expression:"query.showMaterial"}},[i("el-option",{key:1,attrs:{label:"已发布",value:1}}),i("el-option",{key:0,attrs:{label:"未发布",value:0}})],1)],1),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.onSearch()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1),i("div",{staticClass:"content-container mt10"},[i("div",{staticClass:"operate-container"},[i("div",{staticClass:"left-operate"},[i("div",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wechat:material:sidebar"],expression:"['wechat:material:sidebar']"}],staticClass:"tip-div"},[i("div",[e._v("侧边栏展示"+e._s(e.MEDIA_TYPE[e.type])+"素材")]),i("el-popover",{attrs:{placement:"top-start",content:"开启后,员工可在企业微信客户端侧边栏【素材库】查看已发布的素材,并发送给客户",trigger:"hover","popper-class":"tip-popover"}},[i("i",{staticClass:"iconfont icon-question",attrs:{slot:"reference"},slot:"reference"})]),i("el-switch",{attrs:{value:e.sidebarUsing},on:{change:e.handleSwitchChange}})],1),i("div",[e._v(" 共 "),i("span",{staticClass:"theme-text-color"},[e._v(e._s(e.statisticalInfo.materialCount))]),e._v(" 个"+e._s(e.MEDIA_TYPE[e.type])+"素材, 已发布 "),i("span",{staticClass:"theme-text-color"},[e._v(e._s(e.statisticalInfo.sidebarCount))]),e._v(" 个到侧边栏 ")])]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.list.length>0,expression:"list.length > 0"}],staticClass:"right-operate"},[e._v(" 已选择"+e._s(e.selected.length)+"项 "),i("el-button",{staticClass:"btn-reset",on:{click:e.selectAll}},[e._v(e._s(e.checkAll?"取消全选":"全选"))]),i("el-dropdown",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wechat:material:publish"],expression:"['wechat:material:publish']"}],staticClass:"dropdown-reset",attrs:{"split-button":""},on:{click:function(){return e.handleBatchPublish(!0)},command:function(t){return e.handleBatchPublish(t)}}},[e._v(" 批量发布 "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{staticStyle:{width:"108px"},attrs:{command:e.CANCEL_PUBLISH}},[e._v("取消发布")])],1)],1),i("el-dropdown",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wechat:material:edit"],expression:"['wechat:material:edit']"}],staticClass:"dropdown-reset",attrs:{"split-button":""},on:{click:function(){return e.handleBatchTag(!0)},command:function(t){return e.handleBatchTag(t)}}},[e._v(" 批量打标签 "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{staticStyle:{width:"120px"},attrs:{command:!1}},[e._v("批量移除标签")])],1)],1),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wechat:material:remove"],expression:"['wechat:material:remove']"}],staticClass:"btn-reset ml10",on:{click:function(t){return e.batchRemove()}}},[e._v("批量删除")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wechat:material:add"],expression:"['wechat:material:add']"}],attrs:{type:"primary"},on:{click:function(t){return e.edit(null,~~e.type)}}},[e._v("添加"+e._s(e.MEDIA_TYPE[e.type]))])],1)]),i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"h100"},[i("empty-default-icon",{staticClass:"mt10 material-list-div",attrs:{length:e.list.length||Number(e.loading),text:"暂无素材","btn-text":0===e.total&&null!==e.query.showMaterial?"":"添加"+e.MEDIA_TYPE[e.type],"btn-click":function(){return e.edit(null,~~e.type)},"btn-show-condition":{search:e.query.search,tagIds:e.query.tagIds,tagIdList:e.tagIdList},"btn-permi-key":["wechat:material:add"]}},[i("div",{staticClass:"material-list"},[e._t("default",null,{list:e.list,getList:e.getList,changeList:e.changeList,edit:e.edit})],2)])],1),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,disabled:e.loading,page:e.query.pageNum,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}})],1),i("MaterialAddModal",{ref:"materialAddModal",attrs:{form:e.form,type:e.type,"show-material-setting":!0,"modal-title":(e.form.id?"编辑":"添加")+e.MEDIA_TYPE[e.type],visible:e.dialogVisible,"get-list":e.form.id?e.getList:e.resetQuery},on:{"update:form":function(t){e.form=t},"update:visible":function(t){e.dialogVisible=t}}}),i("SelectTagModal",{attrs:{visible:e.batchVisible,"modal-title":e.batchTag?"选择素材标签":"批量移除标签","alert-title":e.batchTag?"请选择要为素材打上的标签":"以下选中的标签,将从已勾选素材下移除","show-add-tag":e.batchTag,"tag-list":e.batchTag?this.$store.state.materialInfo.allTagObj&&Object.values(this.$store.state.materialInfo.allTagObj):e.selectMaterialAllTag,"check-select-num":!0},on:{"update:visible":function(t){e.batchVisible=t},submitSelectTags:e.submitSelectTags}})],1)},n=[],r=i("2909"),s=i("c7eb"),o=i("1da1"),l=i("5530"),c=(i("7db0"),i("c740"),i("a15b"),i("d81d"),i("a434"),i("dca8"),i("d3b7"),i("07ac"),i("9094")),u=i("dd70"),d=i("6485"),p=i("8387"),f=i("e77d"),A=i("cd7b"),h=i("e2e0"),m={name:"MaPage",components:{MaterialAddModal:d["default"],SelectTagModal:p["default"],EmptyDefaultIcon:f["a"]},mixins:[h["a"]],props:{type:{type:String,default:u["cc"]},selected:{type:Array,default:function(){return[]}},selectMaterial:{type:Function,default:function(){}}},data:function(){return{MEDIA_TYPE:u["Xb"],loading:!0,query:{pageNum:1,pageSize:u["Mc"],categoryId:"",search:"",mediaType:u["cc"],isExpire:!1,tagIds:"",showMaterial:null},tagIdList:[],list:[],total:0,treeData:[],treeProps:{children:"children",label:"name"},treeForm:{},treeDialogVisible:!1,group:"",groupDialogVisible:!1,groupProps:{checkStrictly:!0,children:"children",label:"name",value:"id",emitPath:!1},form:{},dialogVisible:!1,rules:Object.freeze({content:[{required:!0,message:"不能为空",trigger:"blur"}],materialUrl:[{required:!0,message:"不能为空",trigger:"change"}],materialName:[{required:!0,message:"不能为空",trigger:"blur"}],digest:[{required:!0,message:"不能为空",trigger:"blur"}],coverUrl:[{required:!0,message:"不能为空",trigger:"blur"}]}),selectedTag:[],batchTag:!1,batchVisible:!1,statisticalInfo:{sidebarCount:0,materialCount:0},checkAll:!1,CANCEL_PUBLISH:!1}},computed:{categoryId:function(){var e;return null===(e=this.$store.state.materialInfo)||void 0===e||null===(e=e.categoryInfo[this.type])||void 0===e?void 0:e.id},sidebarUsing:function(){var e;return null===(e=this.$store.state.materialInfo)||void 0===e||null===(e=e.categoryInfo[this.type])||void 0===e?void 0:e.using},allTagList:function(){var e=this.$store.state.materialInfo&&this.$store.state.materialInfo.allTagObj,t=Object.values(e);return t},selectedIdList:function(){var e=[];return this.selected.map((function(t){e.push(t.id)})),e},selectMaterialAllTag:function(){var e=this,t=[];return this.selected.map((function(i){var a=e.$store.state.materialInfo.allTagObj;i.tagList.map((function(e){var i,n=t.find((function(t){return t.id===e.materialTagId}));n||t.push({relId:e.relId,id:e.materialTagId,tagName:null===(i=a[e.materialTagId])||void 0===i?void 0:i.tagName})}))})),t}},watch:{},created:function(){this.query.mediaType=this.type,this.getList()},mounted:function(){},methods:{getTree:function(){var e=this;Object(c["i"])(this.type).then((function(t){var i=t.data;e.treeData=[{id:"",name:"全部",parentId:"0",hasParent:!1,hasChildren:!0,children:i||[]}]}))},getList:function(e){var t=this,i=e||this.query.pageNum;i&&(this.query.pageNum=i),this.loading=!0;var a=Object(l["a"])(Object(l["a"])({},this.query),{},{tagIds:this.tagIdList&&this.tagIdList.join(","),usingFlag:this.sidebarUsing});Object(c["e"])(a).then((function(e){var i=e.rows,a=e.total;t.list=i,t.total=+a,t.$emit("listChange",t.list)})).finally((function(){t.modifyButtonStatus(),t.loading=!1})),this.getMaterialCount()},edit:function(e,t){var i=this;Object(A["a"])(this.$store),this.form=Object.assign({},e||{categoryId:this.query.categoryId,showMaterial:!0}),this.dialogVisible=!0,this.$nextTick((function(){var e;null===(e=i.$refs["materialAddModal"])||void 0===e||null===(e=e.$refs)||void 0===e||null===(e=e.form)||void 0===e||e.clearValidate()}))},batchRemove:function(e){var t=this;this.checkSelect()&&this.confirmModal({msg:"选中素材将被删除,是否继续?"},(function(){return Object(c["k"])({ids:t.selectedIdList.join(","),mediaType:t.type}).then((function(){t.getList(),t.clearSelect(),t.msgSuccess("删除成功")}))}))},download:function(e){window.open(e.materialUrl)},resetQuery:function(){this.tagIdList=[],this.query=Object(l["a"])(Object(l["a"])({},this.query),{},{pageNum:1,search:"",tagIds:"",showMaterial:null}),this.getList(1)},handleBatchPublish:function(e){var t=this;this.checkSelect()&&this.confirmModal({msg:e?"即将发布选中的素材到侧边栏给员工使用,是否继续?":"将选中的素材从侧边栏【素材库】移除,是否继续?"},Object(o["a"])(Object(s["a"])().mark((function i(){var a;return Object(s["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,Object(c["n"])({ids:t.selectedIdList.join(","),showMaterial:e,mediaType:t.type});case 2:a=i.sent,a&&(t.msgSuccess(e?"已发布到侧边栏【素材库】":"已取消发布"),t.getList(),t.clearSelect(),t.$emit("update:selected",[]));case 4:case"end":return i.stop()}}),i)}))))},handleBatchTag:function(e){this.checkSelect()&&(this.batchTag=e,this.batchVisible=!0)},submitSelectTags:function(e){var t=this;return Object(o["a"])(Object(s["a"])().mark((function i(){var a,n,r,o;return Object(s["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(a=[],e.map((function(e){a.push(e.id)})),n={materialIds:t.selectedIdList,tagIds:a},!t.batchTag){i.next=9;break}return i.next=6,Object(c["j"])(n);case 6:o=i.sent,i.next=12;break;case 9:return i.next=11,Object(c["l"])(n);case 11:r=i.sent;case 12:(r||o)&&(t.getList(),t.clearSelect(),t.$emit("update:selected",[]));case 13:case"end":return i.stop()}}),i)})))()},handleSwitchChange:function(e){var t=this;return Object(o["a"])(Object(s["a"])().mark((function i(){var a;return Object(s["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,Object(c["o"])({id:t.categoryId,using:e});case 2:a=i.sent,a&&t.$store.dispatch("GetCategory");case 4:case"end":return i.stop()}}),i)})))()},getMaterialCount:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i,a,n,r,o;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=Object(l["a"])(Object(l["a"])({},e.query),{},{tagIds:e.tagIdList&&e.tagIdList.join(",")}),t.next=3,Object(c["g"])(n);case 3:r=t.sent,o={sidebarCount:(null===r||void 0===r||null===(i=r.data)||void 0===i?void 0:i.materialSideBarNum)||0,materialCount:(null===r||void 0===r||null===(a=r.data)||void 0===a?void 0:a.materialNum)||0},e.statisticalInfo=o;case 6:case"end":return t.stop()}}),t)})))()},selectAll:function(){if(this.checkAll)this.selectMaterial([]);else{var e=Object(r["a"])(this.list);this.selectMaterial(e)}this.checkAll=!this.checkAll},onSearch:function(){this.getList(1)},changeList:function(e){var t=Object(r["a"])(this.list),i=t.findIndex((function(t){return t.id===e.id}));i>-1&&(t.splice(i,1,e),this.list=t,this.getMaterialCount())},checkSelect:function(){return 0!==this.selected.length||(this.msgWarn("请至少选择一个素材"),!1)},clearSelect:function(){this.selectMaterial([]),this.checkAll=!1}}},g=m,v=(i("0619"),i("2877")),b=Object(v["a"])(g,a,n,!1,null,"3bf99067",null);t["default"]=b.exports},"2d0e":function(e,t,i){},"2d12":function(e,t,i){"use strict";i("8623")},"2dfa":function(e,t,i){"use strict";i("649b")},"2e17":function(e,t,i){},"2e2a":function(e,t,i){"use strict";i.d(t,"a",(function(){return s})),i.d(t,"b",(function(){return c})),i.d(t,"d",(function(){return g})),i.d(t,"c",(function(){return v})),i.d(t,"e",(function(){return b}));var a=100,n=15,r=24,s={formRef:"elForm",formModel:"formData",size:"medium",labelPosition:"right",labelWidth:a,formRules:"rules",gutter:n,disabled:!1,span:r,formBtns:!0},o=4,l=4,c=[{label:"单行文本",tag:"el-input",tagIcon:"input",placeholder:"请输入",defaultValue:void 0,span:r,labelWidth:null,style:{width:"100%"},clearable:!0,prepend:"",append:"","prefix-icon":"","suffix-icon":"",maxlength:null,"show-word-limit":!1,readonly:!1,disabled:!1,required:!0,regList:[],changeTag:!0,document:"https://element.eleme.cn/#/zh-CN/component/input"},{label:"多行文本",tag:"el-input",tagIcon:"textarea",type:"textarea",placeholder:"请输入",defaultValue:void 0,span:r,labelWidth:null,autosize:{minRows:o,maxRows:l},style:{width:"100%"},maxlength:null,"show-word-limit":!1,readonly:!1,disabled:!1,required:!0,regList:[],changeTag:!0,document:"https://element.eleme.cn/#/zh-CN/component/input"},{label:"密码",tag:"el-input",tagIcon:"password",placeholder:"请输入",defaultValue:void 0,span:r,"show-password":!0,labelWidth:null,style:{width:"100%"},clearable:!0,prepend:"",append:"","prefix-icon":"","suffix-icon":"",maxlength:null,"show-word-limit":!1,readonly:!1,disabled:!1,required:!0,regList:[],changeTag:!0,document:"https://element.eleme.cn/#/zh-CN/component/input"},{label:"计数器",tag:"el-input-number",tagIcon:"number",placeholder:"",defaultValue:void 0,span:r,labelWidth:null,min:void 0,max:void 0,step:void 0,"step-strictly":!1,precision:void 0,"controls-position":"",disabled:!1,required:!0,regList:[],changeTag:!0,document:"https://element.eleme.cn/#/zh-CN/component/input-number"}],u=1,d=2,p=2,f=2,A=100,h=5,m=2,g=[{label:"下拉选择",tag:"el-select",tagIcon:"select",placeholder:"请选择",defaultValue:void 0,span:r,labelWidth:null,style:{width:"100%"},clearable:!0,disabled:!1,required:!0,filterable:!1,multiple:!1,options:[{label:"选项一",value:u},{label:"选项二",value:d}],regList:[],changeTag:!0,document:"https://element.eleme.cn/#/zh-CN/component/select"},{label:"级联选择",tag:"el-cascader",tagIcon:"cascader",placeholder:"请选择",defaultValue:[],span:r,labelWidth:null,style:{width:"100%"},props:{props:{multiple:!1}},"show-all-levels":!0,disabled:!1,clearable:!0,filterable:!1,required:!0,options:[{id:1,value:1,label:"选项1",children:[{id:p,value:f,label:"选项1-1"}]}],dataType:"dynamic",labelKey:"label",valueKey:"value",childrenKey:"children",separator:"/",regList:[],changeTag:!0,document:"https://element.eleme.cn/#/zh-CN/component/cascader"},{label:"单选框组",tag:"el-radio-group",tagIcon:"radio",defaultValue:void 0,span:r,labelWidth:null,style:{},optionType:"default",border:!1,size:"medium",disabled:!1,required:!0,options:[{label:"选项一",value:1},{label:"选项二",value:d}],regList:[],changeTag:!0,document:"https://element.eleme.cn/#/zh-CN/component/radio"},{label:"多选框组",tag:"el-checkbox-group",tagIcon:"checkbox",defaultValue:[],span:r,labelWidth:null,style:{},optionType:"default",border:!1,size:"medium",disabled:!1,required:!0,options:[{label:"选项一",value:1},{label:"选项二",value:d}],regList:[],changeTag:!0,document:"https://element.eleme.cn/#/zh-CN/component/checkbox"},{label:"开关",tag:"el-switch",tagIcon:"switch",defaultValue:!1,span:r,labelWidth:null,style:{},disabled:!1,required:!0,"active-text":"","inactive-text":"","active-color":null,"inactive-color":null,"active-value":!0,"inactive-value":!1,regList:[],changeTag:!0,document:"https://element.eleme.cn/#/zh-CN/component/switch"},{label:"滑块",tag:"el-slider",tagIcon:"slider",defaultValue:null,span:r,labelWidth:null,disabled:!1,required:!0,min:0,max:A,step:1,"show-stops":!1,range:!1,regList:[],changeTag:!0,document:"https://element.eleme.cn/#/zh-CN/component/slider"},{label:"时间选择",tag:"el-time-picker",tagIcon:"time",placeholder:"请选择",defaultValue:null,span:r,labelWidth:null,style:{width:"100%"},disabled:!1,clearable:!0,required:!0,"picker-options":{selectableRange:"00:00:00-23:59:59"},format:"HH:mm:ss","value-format":"HH:mm:ss",regList:[],changeTag:!0,document:"https://element.eleme.cn/#/zh-CN/component/time-picker"},{label:"时间范围",tag:"el-time-picker",tagIcon:"time-range",defaultValue:null,span:r,labelWidth:null,style:{width:"100%"},disabled:!1,clearable:!0,required:!0,"is-range":!0,"range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",format:"HH:mm:ss","value-format":"HH:mm:ss",regList:[],changeTag:!0,document:"https://element.eleme.cn/#/zh-CN/component/time-picker"},{label:"日期选择",tag:"el-date-picker",tagIcon:"date",placeholder:"请选择",defaultValue:null,type:"date",span:r,labelWidth:null,style:{width:"100%"},disabled:!1,clearable:!0,required:!0,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",readonly:!1,regList:[],changeTag:!0,document:"https://element.eleme.cn/#/zh-CN/component/date-picker"},{label:"日期范围",tag:"el-date-picker",tagIcon:"date-range",defaultValue:null,span:r,labelWidth:null,style:{width:"100%"},type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",disabled:!1,clearable:!0,required:!0,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",readonly:!1,regList:[],changeTag:!0,document:"https://element.eleme.cn/#/zh-CN/component/date-picker"},{label:"评分",tag:"el-rate",tagIcon:"rate",defaultValue:0,span:r,labelWidth:null,style:{},max:h,"allow-half":!1,"show-text":!1,"show-score":!1,disabled:!1,required:!0,regList:[],changeTag:!0,document:"https://element.eleme.cn/#/zh-CN/component/rate"},{label:"颜色选择",tag:"el-color-picker",tagIcon:"color",defaultValue:null,labelWidth:null,"show-alpha":!1,"color-format":"",disabled:!1,required:!0,size:"medium",regList:[],changeTag:!0,document:"https://element.eleme.cn/#/zh-CN/component/color-picker"},{label:"上传",tag:"el-upload",tagIcon:"upload",action:"https://jsonplaceholder.typicode.com/posts/",defaultValue:null,labelWidth:null,disabled:!1,required:!0,accept:"",name:"file","auto-upload":!0,showTip:!1,buttonText:"点击上传",fileSize:m,sizeUnit:"MB","list-type":"text",multiple:!1,regList:[],changeTag:!0,document:"https://element.eleme.cn/#/zh-CN/component/upload"}],v=[{layout:"rowFormItem",tagIcon:"row",type:"default",justify:"start",align:"top",label:"行容器",layoutTree:!0,children:[],document:"https://element.eleme.cn/#/zh-CN/component/layout"}],b={"el-input":"blur","el-input-number":"blur","el-select":"change","el-radio-group":"change","el-checkbox-group":"change","el-cascader":"change","el-time-picker":"change","el-date-picker":"change","el-rate":"change"}},"2eaa":function(e,t,i){var a=i("d612"),n=i("8db3"),r=i("5edf"),s=i("7948"),o=i("b047"),l=i("c584"),c=200;function u(e,t,i,u){var d=-1,p=n,f=!0,A=e.length,h=[],m=t.length;if(!A)return h;i&&(t=s(t,o(i))),u?(p=r,f=!1):t.length>=c&&(p=l,f=!1,t=new a(t));e:while(++d<A){var g=e[d],v=null==i?g:i(g);if(g=u||0!==g?g:0,f&&v===v){var b=m;while(b--)if(t[b]===v)continue e;h.push(g)}else p(t,v,u)||h.push(g)}return h}e.exports=u},"2efb":function(e,t,i){"use strict";i("0763")},"2f42":function(e,t,i){},"2fa2":function(e,t,i){e.exports=i.p+"static/img/mobile-step-1-4.a39d1108.png"},"2fed":function(e,t,i){e.exports=i.p+"static/img/appid-demo-1-2.7c99cc1d.png"},3021:function(e,t,i){"use strict";i("5c6e")},3022:function(e,t,i){(function(e){var a=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),i={},a=0;a<t.length;a++)i[t[a]]=Object.getOwnPropertyDescriptor(e,t[a]);return i},n=/%[sdj%]/g;t.format=function(e){if(!w(e)){for(var t=[],i=0;i<arguments.length;i++)t.push(o(arguments[i]));return t.join(" ")}i=1;for(var a=arguments,r=a.length,s=String(e).replace(n,(function(e){if("%%"===e)return"%";if(i>=r)return e;switch(e){case"%s":return String(a[i++]);case"%d":return Number(a[i++]);case"%j":try{return JSON.stringify(a[i++])}catch(t){return"[Circular]"}default:return e}})),l=a[i];i<r;l=a[++i])b(l)||!T(l)?s+=" "+l:s+=" "+o(l);return s},t.deprecate=function(i,a){if("undefined"!==typeof e&&!0===e.noDeprecation)return i;if("undefined"===typeof e)return function(){return t.deprecate(i,a).apply(this,arguments)};var n=!1;function r(){if(!n){if(e.throwDeprecation)throw new Error(a);e.traceDeprecation,n=!0}return i.apply(this,arguments)}return r};var r,s={};function o(e,i){var a={seen:[],stylize:c};return arguments.length>=3&&(a.depth=arguments[2]),arguments.length>=4&&(a.colors=arguments[3]),v(i)?a.showHidden=i:i&&t._extend(a,i),x(a.showHidden)&&(a.showHidden=!1),x(a.depth)&&(a.depth=2),x(a.colors)&&(a.colors=!1),x(a.customInspect)&&(a.customInspect=!0),a.colors&&(a.stylize=l),d(a,e,a.depth)}function l(e,t){var i=o.styles[t];return i?"["+o.colors[i][0]+"m"+e+"["+o.colors[i][1]+"m":e}function c(e,t){return e}function u(e){var t={};return e.forEach((function(e,i){t[e]=!0})),t}function d(e,i,a){if(e.customInspect&&i&&E(i.inspect)&&i.inspect!==t.inspect&&(!i.constructor||i.constructor.prototype!==i)){var n=i.inspect(a,e);return w(n)||(n=d(e,n,a)),n}var r=p(e,i);if(r)return r;var s=Object.keys(i),o=u(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(i)),I(i)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(i);if(0===s.length){if(E(i)){var l=i.name?": "+i.name:"";return e.stylize("[Function"+l+"]","special")}if(k(i))return e.stylize(RegExp.prototype.toString.call(i),"regexp");if(S(i))return e.stylize(Date.prototype.toString.call(i),"date");if(I(i))return f(i)}var c,v="",b=!1,y=["{","}"];if(g(i)&&(b=!0,y=["[","]"]),E(i)){var _=i.name?": "+i.name:"";v=" [Function"+_+"]"}return k(i)&&(v=" "+RegExp.prototype.toString.call(i)),S(i)&&(v=" "+Date.prototype.toUTCString.call(i)),I(i)&&(v=" "+f(i)),0!==s.length||b&&0!=i.length?a<0?k(i)?e.stylize(RegExp.prototype.toString.call(i),"regexp"):e.stylize("[Object]","special"):(e.seen.push(i),c=b?A(e,i,a,o,s):s.map((function(t){return h(e,i,a,o,t,b)})),e.seen.pop(),m(c,v,y)):y[0]+v+y[1]}function p(e,t){if(x(t))return e.stylize("undefined","undefined");if(w(t)){var i="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(i,"string")}return _(t)?e.stylize(""+t,"number"):v(t)?e.stylize(""+t,"boolean"):b(t)?e.stylize("null","null"):void 0}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function A(e,t,i,a,n){for(var r=[],s=0,o=t.length;s<o;++s)L(t,String(s))?r.push(h(e,t,i,a,String(s),!0)):r.push("");return n.forEach((function(n){n.match(/^\d+$/)||r.push(h(e,t,i,a,n,!0))})),r}function h(e,t,i,a,n,r){var s,o,l;if(l=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]},l.get?o=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(o=e.stylize("[Setter]","special")),L(a,n)||(s="["+n+"]"),o||(e.seen.indexOf(l.value)<0?(o=b(i)?d(e,l.value,null):d(e,l.value,i-1),o.indexOf("\n")>-1&&(o=r?o.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+o.split("\n").map((function(e){return" "+e})).join("\n"))):o=e.stylize("[Circular]","special")),x(s)){if(r&&n.match(/^\d+$/))return o;s=JSON.stringify(""+n),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+o}function m(e,t,i){var a=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return a>60?i[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+i[1]:i[0]+t+" "+e.join(", ")+" "+i[1]}function g(e){return Array.isArray(e)}function v(e){return"boolean"===typeof e}function b(e){return null===e}function y(e){return null==e}function _(e){return"number"===typeof e}function w(e){return"string"===typeof e}function C(e){return"symbol"===typeof e}function x(e){return void 0===e}function k(e){return T(e)&&"[object RegExp]"===B(e)}function T(e){return"object"===typeof e&&null!==e}function S(e){return T(e)&&"[object Date]"===B(e)}function I(e){return T(e)&&("[object Error]"===B(e)||e instanceof Error)}function E(e){return"function"===typeof e}function O(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function B(e){return Object.prototype.toString.call(e)}t.debuglog=function(i){if(x(r)&&(r=Object({NODE_ENV:"production",VUE_APP_BASE_API:"/api",VUE_APP_BASE_URL:"",VUE_APP_TITLE:"EasyInk",BASE_URL:""}).NODE_DEBUG||""),i=i.toUpperCase(),!s[i])if(new RegExp("\\b"+i+"\\b","i").test(r)){e.pid;s[i]=function(){t.format.apply(t,arguments)}}else s[i]=function(){};return s[i]},t.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=g,t.isBoolean=v,t.isNull=b,t.isNullOrUndefined=y,t.isNumber=_,t.isString=w,t.isSymbol=C,t.isUndefined=x,t.isRegExp=k,t.isObject=T,t.isDate=S,t.isError=I,t.isFunction=E,t.isPrimitive=O,t.isBuffer=i("d60a");function L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){},t.inherits=i("28a0"),t._extend=function(e,t){if(!t||!T(t))return e;var i=Object.keys(t),a=i.length;while(a--)e[i[a]]=t[i[a]];return e};var D="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function M(e,t){if(!e){var i=new Error("Promise was rejected with a falsy value");i.reason=e,e=i}return t(e)}function N(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');function i(){for(var i=[],a=0;a<arguments.length;a++)i.push(arguments[a]);var n=i.pop();if("function"!==typeof n)throw new TypeError("The last argument must be of type Function");var r=this,s=function(){return n.apply(r,arguments)};t.apply(this,i).then((function(t){e.nextTick(s,null,t)}),(function(t){e.nextTick(M,t,s)}))}return Object.setPrototypeOf(i,Object.getPrototypeOf(t)),Object.defineProperties(i,a(t)),i}t.promisify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');if(D&&e[D]){var t=e[D];if("function"!==typeof t)throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,i,a=new Promise((function(e,a){t=e,i=a})),n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);n.push((function(e,a){e?i(e):t(a)}));try{e.apply(this,n)}catch(s){i(s)}return a}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),D&&Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,a(e))},t.promisify.custom=D,t.callbackify=N}).call(this,i("4362"))},"306c":function(e,t,i){e.exports=i.p+"static/img/config-step-1.a4e4ed61.jpeg"},3085:function(e,t,i){},"30a3":function(e,t,i){},"30d7":function(e,t,i){},3133:function(e,t,i){"use strict";i("fecf")},3184:function(e,t,i){"use strict";i("2493")},"31d5":function(e,t,i){},"31f6":function(e,t,i){e.exports=i.p+"static/img/config-step2-(1)-3.0b1f1425.png"},"326e":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"page"},[i("RightContainer",{attrs:{"config-keys":["contactSecret"],"page-title":"正常使用群活码"},scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{model:e.query,inline:"","label-width":"100px"}},[i("el-form-item",{attrs:{prop:"activityName"}},[i("el-input",{attrs:{placeholder:"请输入活码名称"},model:{value:e.query.activityName,callback:function(t){e.$set(e.query,"activityName",t)},expression:"query.activityName"}})],1),i("el-form-item",{attrs:{prop:"createBy"}},[i("el-input",{attrs:{placeholder:"请输入创建人姓名"},model:{value:e.query.createBy,callback:function(t){e.$set(e.query,"createBy",t)},expression:"query.createBy"}})],1),i("el-form-item",[i("el-date-picker",{attrs:{format:"yyyy-MM-dd","value-format":"yyyyMMdd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.searchDate,callback:function(t){e.searchDate=t},expression:"searchDate"}})],1),i("el-form-item",{attrs:{label:" "}},[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.handleSearch()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"operate-btn",fn:function(){return[i("div",{staticClass:"mid-action"},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:groupCode:add"],expression:"['wecom:groupCode:add']"}],attrs:{type:"primary"},on:{click:function(t){return e.goRoute("customerGroupDetail")}}},[e._v("新建群活码")]),i("el-button",{staticStyle:{},on:{click:e.handleBulkDownload}},[e._v("批量下载")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:groupCode:remove"],expression:"['wecom:groupCode:remove']"}],on:{click:e.handleBulkRemove}},[e._v("批量删除")])],1)]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.groupCodes},on:{"selection-change":e.handleSelectionChange}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{"btn-text":"新建群活码",length:e.groupCodes.length,"btn-click":e.goToGroupAdd,"btn-show-condition":e.getQueryObj(),"btn-permi-key":["wecom:groupCode:add"]}})],1),i("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),i("el-table-column",{attrs:{prop:"codeUrl",label:"活码预览",align:"center",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",{staticClass:"code-left"},[i("el-popover",{attrs:{placement:"bottom",trigger:"hover"}},[i("el-image",{staticClass:"code-image--small",attrs:{slot:"reference",src:a.codeUrl},slot:"reference"}),i("el-image",{staticClass:"code-image",attrs:{src:a.codeUrl}})],1)],1),i("div",{staticClass:"code-right"},[i("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(t){return e.handleDownload(a.id,a.activityName)}}},[e._v("下载")]),i("br"),i("el-button",{directives:[{name:"copy",rawName:"v-copy",value:a.codeUrl,expression:"row.codeUrl"}],attrs:{type:"text",size:"mini"}},[e._v("复制图片链接")]),i("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(t){return e.getApplink(a)}}},[e._v("复制小程序链接")])],1)]}}])}),i("el-table-column",{attrs:{prop:"activityName",label:"活码名称",align:"center"}}),i("el-table-column",{attrs:{prop:"activityDesc",label:"活码描述",align:"center",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-popover",{attrs:{placement:"bottom",width:"200",trigger:"hover",content:a.activityDesc}},[i("div",{staticClass:"table-desc overflow-ellipsis",attrs:{slot:"reference"},slot:"reference"},[e._v(" "+e._s(a.activityDesc)+" ")])])]}}])}),i("el-table-column",{attrs:{prop:"totalScanTimes",label:"已扫码入群人数",align:"center"}}),i("el-table-column",{attrs:{prop:"createBy",label:"创建人",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"al"},[i("div",{staticClass:"cus-owner"},[e._v(e._s(t.row.createBy))]),i("div",{staticClass:"cus-dept"},[e._v(e._s(t.row.mainDepartmentName))])])]}}])}),i("el-table-column",{attrs:{prop:"createTime",label:"创建时间",align:"center"}}),i("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:groupCode:edit"],expression:"['wecom:groupCode:edit']"}],attrs:{type:"text",size:"mini"},on:{click:function(t){return e.handleRealCodeDialogOpen(a,-1)}}},[e._v("实际群聊详情")]),i("br"),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:groupCode:edit"],expression:"['wecom:groupCode:edit']"}],attrs:{type:"text",size:"mini"},on:{click:function(t){return e.goRoute("customerGroupDetail",{groupCodeId:a.id})}}},[e._v("编辑")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:groupCode:remove"],expression:"['wecom:groupCode:remove']"}],attrs:{type:"text",size:"mini"},on:{click:function(t){return e.handleRemove(a.id)}}},[e._v("删除")]),i("el-dropdown",{attrs:{trigger:"click",placement:"bottom"}},[i("el-button",{staticClass:"ml10",attrs:{type:"text"}},[e._v("更多")]),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{directives:[{name:"copy",rawName:"v-copy",value:a.id,expression:"row.id"}]},[e._v("复制活码ID")])],1)],1)]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,disabled:e.loading,page:e.query.pageNum,limit:e.query.pageSize,"select-data-len":e.multiGroupCode.length},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getGroupCodes()}}})]},proxy:!0}])}),e.realCodeDialog?i("el-dialog",{attrs:{title:"客户群详情",visible:e.realCodeDialog,"append-to-body":"",width:"70%"},on:{"update:visible":function(t){e.realCodeDialog=t}}},[i("RealCode",{ref:"realCode",attrs:{"group-code-id":e.openGroupCodeId,status:e.openGroupCodeStatus,"create-type":e.openCreateType}})],1):e._e()],1)},n=[],r=i("3835"),s=(i("d81d"),i("b0c0"),i("b64b"),i("d3b7"),i("3ca3"),i("159b"),i("ddb0"),i("2b3d"),i("bf19"),i("9861"),i("21b6")),o=i("b850"),l=i("ed08"),c=i("dd70"),u=i("e77d"),d=i("b66d"),p=i("e2e0"),f={components:{RealCode:s["default"],EmptyDefaultIcon:u["a"],RightContainer:d["a"]},mixins:[p["a"]],data:function(){return{query:{pageNum:1,pageSize:c["Ic"],activityName:"",createBy:"",beginTime:"",endTime:""},loading:!1,searchDate:"",multiGroupCode:[],groupCodes:[],total:0,realCodeDialog:!1,openGroupCodeId:null,openGroupCodeStatus:-1,openCreateType:c["v"]}},watch:{searchDate:function(e){if(e&&2===e.length){var t=Object(r["a"])(e,2);this.query.beginTime=t[0],this.query.endTime=t[1]}else this.query.beginTime="",this.query.endTime=""},realCodeDialog:function(e){!1===e&&this.getGroupCodes()}},created:function(){if(this.$store.getters.saveCondition&&Object.keys(this.$store.getters.searchQuery[this.$route.name]||{}).length){var e=this.$store.getters.searchQuery[this.$route.name],t=e.beginTime,i=e.endTime;t&&i&&(this.searchDate=[t,i]),this.query=this.$store.getters.searchQuery[this.$route.name]}this.getGroupCodes(),this.$store.dispatch("app/setBusininessDesc","\n <div>群活码原理为把多个群二维码统一为固定的活码,群满自动切换新群,无需手动更新二维码,并未改变微信原有入群规则。</div>\n ")},methods:{getGroupCodes:function(e){var t=this;1===e&&(this.query.pageNum=1);var i=Object.assign({},this.query);this.loading=!0,Object(o["f"])(i).then((function(e){t.groupCodes=e.rows,t.total=parseInt(e.total)})).finally((function(){t.modifyButtonStatus(),t.loading=!1}))},handleSearch:function(){this.getGroupCodes(1)},resetQuery:function(){var e=this;this.searchDate="",this.query=this.$options.data().query,this.$nextTick((function(){e.getGroupCodes()}))},handleBulkDownload:function(){if(this.multiGroupCode.length){var e=this.multiGroupCode.map((function(e){return e.id}));this.confirmModal({msg:"即将以压缩包形式下载已选中的活码图片,是否继续?"},(function(){return Object(o["c"])(e+"").then((function(e){if(null!=e){var t=new Blob([e],{type:"application/zip"}),i=window.URL.createObjectURL(t),a=document.createElement("a");a.href=i,a.download="批量群活码.zip",a.click(),URL.revokeObjectURL(i)}}))}))}else this.msgWarn("请至少选择一个群活码")},handleBulkRemove:function(){var e=this;this.multiGroupCode.length?this.confirmModal({msg:"删除后,已下载的活码将失效,是否继续?"},(function(){var t=e.multiGroupCode.map((function(e){return e.id}));Object(o["g"])(t+"").then((function(t){e.getGroupCodes()}))})):this.msgWarn("请至少选择一个群活码")},handleDownload:function(e,t){var i=t+".png";Object(o["b"])(e).then((function(e){if(null!=e){var t=new Blob([e],{type:"application/zip"}),a=window.URL.createObjectURL(t),n=document.createElement("a");n.href=a,n.download=i,n.click(),URL.revokeObjectURL(a)}}))},handleRemove:function(e){var t=this;this.confirmModal({msg:"删除后,已下载的活码将失效,是否继续?"},(function(){Object(o["g"])(e).then((function(e){t.getGroupCodes()}))}))},handleSelectionChange:function(e){this.multiGroupCode=e},handleRealCodeDialogOpen:function(e,t){this.openGroupCodeId=e.id,this.openGroupCodeStatus=t,this.openCreateType=e.createType,this.realCodeDialog=!0},goRoute:function(e,t){this.$store.commit("SET_SEARCH_QUERY",{pageName:this.$route.name,query:this.query}),Object(l["l"])(this.$router,e,{},t)},goToGroupAdd:function(){this.goRoute("customerGroupDetail")},getQueryObj:function(){var e=this.query,t=e.activityName,i=e.createBy,a=e.beginTime,n=e.endTime;return{activityName:t,createBy:i,beginTime:a,endTime:n}},getApplink:function(e){var t=this;e.appLink?Object(l["c"])(e.appLink):(this.loading=!0,Object(o["d"])({id:e.id}).then((function(i){i.data&&(t.groupCodes.forEach((function(t){t.id===e.id&&(t.appLink=i.data)})),Object(l["c"])(i.data))})).finally((function(){t.loading=!1})))}}},A=f,h=(i("75a5"),i("2877")),m=Object(h["a"])(A,a,n,!1,null,"ff0290aa",null);t["default"]=m.exports},"32a8":function(e,t){e.exports="data:image/gif;base64,R0lGODlhGAAhAOZtABqf2fv+/4jN6/3+/y+o3Byg2T6u38Lm9U614fz+/+Lz+ovO7Pr9//j8/vb7/v7//yil2yak29zx+jir3uT0+7Tg81O34uX0+1+85COj2szq97ni9HfG6Fq65CSj2iGi2tjv+ZXT7Sql29fu+YPL6t7x+rHe8oTL63XF6Pf8/mS+5cHl9dXu+KTZ8Oj2/B2g2aPY8MPm9Vq644nO63zI6Umz4Vy75C2n3MTm9fT7/iWj2i6n3Cum26LY8NHs+KPZ8B6g2ez3/KDX747Q7Fe444XM68np9kSw4J/X77fh81675COi2tPt+JPS7Sml28Xn9rLf8vn9/kCv33bG6Ey04Tms3o/Q7Ge/5ma/5UGv3zqs3jSq3fX7/njG6ZHR7c3q98jo9oLL6r7k9PD5/W3C5yKi2rri9Krb8Tut3s/r9+34/Kzc8Rme2P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NTgzMDA1NDAxNDhBMTFFQ0EyMzNCQ0FFNDYxNEE0QTEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NTgzMDA1NDExNDhBMTFFQ0EyMzNCQ0FFNDYxNEE0QTEiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo1ODMwMDUzRTE0OEExMUVDQTIzM0JDQUU0NjE0QTRBMSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo1ODMwMDUzRjE0OEExMUVDQTIzM0JDQUU0NjE0QTRBMSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAUyAG0ALAAAAAAYACEAAAdHgG2Cg4SFhoeIiYqLjI2Oj5CRkpOUlZaXmI4DlRcWBQYakx1spAQBkh6kpBKSCKoRDZIgE2wQG5UUp5m7vL2+v8DBwsPEbYEAIfkEBTIAbQAsBgAHAAkAEwAAB16AbYI9KgGChzAAbBgDhz6KbGwhh21CkB8llDSRbByUKTuRIgyUJ5wHlDicP5QKnAKtr5QHnC2UC5wrhwwEkToOhwKcKIcmkAUsbQ8kkGwLhzOcCAmUwjI5lIIV1IeBACH5BAUyAG0ALA0AAAALACEAAAeigG2CIV6ChoZNbGxrh4JmimxAMY0JNpARLo0ONZBkjW1BIooAaZ9IkFSfA1mQT59ikF2qN4oED58ckGCfMZBFnw2QSp9tPIpoxEeKPMSWkcREih/EBoo3xBmKUp9jkFifSZBDn1eQRo1cS4oQA41nkFOaW5BMjWGQGI0jL4plCocuqkCyckhNNUVaohh6wEmRkxGNoPDL8IVYhQwHiAkKQiwQADs="},"32bd":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tab"},[i("div",[i("div",{staticClass:"tab-title"},[e._v("功能介绍")]),e._m(0),e._m(1),e._m(2),e._m(3),i("div",{staticClass:"tab-title"},[e._v("使用说明")]),e._m(4),i("div",{staticClass:"tab-img"},[i("el-image",{staticStyle:{width:"150px",height:"150px"},attrs:{src:e.appDetail.consultingService,alt:"","preview-src-list":[e.appDetail.consultingService]}}),i("p",[e._v("扫码添加客服")])],1)])])},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tab-des"},[i("span",{staticClass:"tab-des-circle"}),i("span",[e._v("群聊关联客户:企微群聊关联工单系统客户关系对应;")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tab-des"},[i("span",{staticClass:"tab-des-circle"}),i("span",[e._v("自动获取工单信息:根据NLP自动获取信息,形成工单;")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tab-des"},[i("span",{staticClass:"tab-des-circle"}),i("span",[e._v("自动回复工单信息:工单状态变更,自动群聊@工单反馈人员,自动告知状态;")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tab-des"},[i("span",{staticClass:"tab-des-circle"}),i("span",[e._v("工单报表:自动发送当日工单报表;")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tab-des"},[i("span",[e._v(" 使用该应用需进行初始化操作,进行工单系统注册、客服人员账号注册、客户资料维护;若您有疑问请扫描以下二维码,添加客服,咨询初始化操作事宜。 ")])])}],r={name:"",components:{},props:{appDetail:{type:Object,default:function(){}}}},s=r,o=(i("da28"),i("2877")),l=Object(o["a"])(s,a,n,!1,null,"2a1eaf67",null);t["default"]=l.exports},"32db":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-drawer",e._g(e._b({staticClass:"verbal-trick-drawer",attrs:{title:(e.formData.id?"编辑":"新增")+"话术","before-close":e.handleClose,"append-to-body":!0,"close-on-press-escape":!1,"wrapper-closable":!1}},"el-drawer",e.$attrs,!1),e.$listeners),[i("div",{staticClass:"drawer-div"},[i("el-form",{ref:"verbalForm",attrs:{model:e.formData,rules:e.rules,size:"medium","label-width":"80px"}},[i("el-form-item",{attrs:{label:"所属分组",prop:"categoryId"}},[i("el-cascader",{ref:"cascader",style:{width:"360px"},attrs:{options:e.groupTreeData,props:e.defaultProps,placeholder:"请选择话术所属分组",clearable:"",filterable:"","popper-class":"my-cascader"},on:{change:e.casCaderChange},model:{value:e.formData.categoryId,callback:function(t){e.$set(e.formData,"categoryId",t)},expression:"formData.categoryId"}})],1),i("el-form-item",{attrs:{label:"话术标题",prop:"title"}},[i("el-input",{style:{width:"360px"},attrs:{type:"textarea",placeholder:"请填写问题或话术场景,方便检索",maxlength:64,"show-word-limit":"",autosize:{minRows:4,maxRows:4},clearable:""},model:{value:e.formData.title,callback:function(t){e.$set(e.formData,"title",t)},expression:"formData.title"}})],1),i("el-form-item",{attrs:{label:"话术内容",prop:"weWordsDetailList"}},[e._l(e.formData.weWordsDetailList,(function(t,a){return[i("VerbalTrickItem",{key:a,ref:"verbalTrickItemRef",refInFor:!0,attrs:{"content-index":a,item:t,"media-type":t.mediaType.toString(),"form-data":e.formData,"content-list":e.formData.weWordsDetailList,"text-placeholder":"请填写文字话术"},on:{"update:item":function(e){t=e},"update:contentList":function(t){return e.$set(e.formData,"weWordsDetailList",t)},"update:content-list":function(t){return e.$set(e.formData,"weWordsDetailList",t)},getRemoveList:e.getRemoveList}})]}))],2),i("div",{staticClass:"operate-btn-div"},[i("AddVerbalTrickButton",{attrs:{"form-data":e.formData,"show-arrow":!0,"btn-type":"primary","material-field":"weWordsDetailList"},on:{"update:formData":function(t){e.formData=t},"update:form-data":function(t){e.formData=t}}})],1)],1),i("div",{staticClass:"confirm-div"},[i("div",{directives:[{name:"show",rawName:"v-show",value:[e.VERBAL_TRICK_TYPE["department"],e.VERBAL_TRICK_TYPE["enterprise"]].includes(e.type),expression:"[VERBAL_TRICK_TYPE['department'], VERBAL_TRICK_TYPE['enterprise']].includes(type)"}]},[i("el-switch",{model:{value:e.formData.isPush,callback:function(t){e.$set(e.formData,"isPush",t)},expression:"formData.isPush"}}),i("span",{staticClass:"switch-tip"},[e._v("更新后,发送应用提醒通知使用员工")])],1),i("div",{staticClass:"confirm-btn-div"},[i("RequestButton",{attrs:{type:"primary","request-method":e.submitForm,"button-type":"submit"}},[e._v("确定")])],1)])],1)])},n=[],r=i("c7eb"),s=i("5530"),o=i("1da1"),l=i("2909"),c=(i("4de4"),i("caad"),i("d81d"),i("a9e3"),i("d3b7"),i("2532"),i("52a9")),u=i("b444"),d=i("dd70"),p=i("9543"),f=i("5987"),A=i("cf45"),h={components:{VerbalTrickItem:u["default"],AddVerbalTrickButton:f["a"],RequestButton:c["a"]},props:{type:{type:Number,default:d["wd"]["enterprise"]},groupTreeData:{type:Array,default:function(){return[]}},addVerbalTrickDrawerVisible:{type:Boolean,default:!1},selectedGroup:{type:String,default:""}},data:function(){var e=function(e,t,i){if(!t)return i(new Error("请选择话术所属分组"));i()};return{formData:{categoryId:void 0,title:void 0,weWordsDetailList:[{mediaType:d["fc"],content:""}],isPush:[d["wd"]["department"],d["wd"]["enterprise"]].includes(this.type)},rules:{categoryId:[{required:!0,trigger:"blur",validator:e}],weWordsDetailList:[{required:!0,trigger:"blur",validator:A["l"]}]},MEDIA_TYPE_POSTER:d["cc"],MEDIA_TYPE_VIDEO:d["gc"],MEDIA_TYPE_FILE:d["Zb"],MEDIA_TYPE_TEXT:d["fc"],MEDIA_TYPE_IMGLINK:d["ac"],MEDIA_TYPE_MINIAPP:d["bc"],VERBAL_TRICK_TYPE:d["wd"],removeList:[],defaultProps:{value:"id",label:"name",children:"children",checkStrictly:!0,emitPath:!1,expandTrigger:"hover"}}},computed:{},watch:{},created:function(){},mounted:function(){var e=this;this.$watch("addVerbalTrickDrawerVisible",(function(){var t;e.formData.categoryId=e.selectedGroup&&"0"!==e.selectedGroup?e.selectedGroup:(null===(t=e.groupTreeData[0])||void 0===t?void 0:t.id)||void 0}))},methods:{casCaderChange:function(){this.$refs.cascader.toggleDropDownVisible()},submitForm:function(){var e=this,t=Object(l["a"])(this.formData.weWordsDetailList);this.$refs["verbalForm"].validate(function(){var i=Object(o["a"])(Object(r["a"])().mark((function i(a){var n,o,c;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(a){i.next=2;break}return i.abrupt("return",Object(A["i"])(e.$store,"submit"));case 2:if(e.$refs.verbalTrickItemRef,n=Object(s["a"])({},e.formData),!e.formData.id){i.next=10;break}o=[],e.removeList.map((function(e){o.push(e.id)})),e.updateWords(Object(s["a"])(Object(s["a"])({},n),{},{wordsDetailIds:o})),i.next=16;break;case 10:if(c=Object(l["a"])(t),c=c.map((function(e){return Object(s["a"])(Object(s["a"])({},e),{},{content:e.mediaType===d["ac"]?e.content||d["Cb"]:e.content})})),c=c.filter((function(e){return e.url||!e.url&&e.mediaType===d["fc"]})),0!==c.length){i.next=15;break}return i.abrupt("return");case 15:e.addWords({categoryId:n.categoryId,title:n.title,weWordsDetailList:c,isPush:n.isPush});case 16:case"end":return i.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}())},resetForm:function(){this.$refs["verbalForm"].resetFields(),this.handleClose()},handleClose:function(){this.$emit("update:visible",!1)},handleAddVerbalTrick:function(e){var t=Object(l["a"])(this.formData.weWordsDetailList);switch(e){case d["fc"]:t.push({mediaType:e,content:""});break;case d["cc"]:case d["gc"]:case d["Zb"]:t.push({mediaType:e,url:"",title:""});break;case d["ac"]:case d["bc"]:t.push({mediaType:e,url:"",title:"",content:"",coverUrl:"",isDefined:d["L"],appid:"",accountOriginalId:""});break}this.formData.weWordsDetailList=Object(l["a"])(t)},addWords:function(e){var t=this;return Object(o["a"])(Object(r["a"])().mark((function i(){var a;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,Object(p["a"])(e);case 2:a=i.sent,Object(A["i"])(t.$store,"submit"),a&&t.closeDrawerAndGet(!0);case 5:case"end":return i.stop()}}),i)})))()},closeDrawerAndGet:function(e){this.handleClose(),this.msgSuccess("操作成功"),this.$emit("getList",e)},updateWords:function(e){var t=this;return Object(o["a"])(Object(r["a"])().mark((function i(){var a;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,Object(p["g"])(e);case 2:a=i.sent,Object(A["i"])(t.$store,"submit"),a&&t.closeDrawerAndGet();case 5:case"end":return i.stop()}}),i)})))()},getRemoveList:function(e){this.removeList=e}}},m=h,g=(i("8f70"),i("2877")),v=Object(g["a"])(m,a,n,!1,null,"53432e7c",null);t["default"]=v.exports},3347:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var a=i("b775");function n(e){return Object(a["a"])({url:"/siginCode/siginCode/"+e,method:"get"})}},3392:function(e,t,i){},"33b6":function(e,t,i){},"33c5":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"right-container"},[a("NoConfigInfo",{attrs:{"alert-style":"margin-bottom: 15px;padding: 17px 16px;","config-keys":["contactSecret"],"page-title":"查看员工信息"}}),a("el-form",{ref:"queryForm",staticClass:"top-search staff-top-search pd15",attrs:{model:e.query,inline:!0,"label-width":"100px"}},[a("el-form-item",{staticClass:"new-form-item",attrs:{prop:"userName"}},[a("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入员工姓名",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.query.userName,callback:function(t){e.$set(e.query,"userName",t)},expression:"query.userName"}})],1),a("el-form-item",{staticClass:"new-form-item",attrs:{prop:"roleId"}},[a("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"请选择角色",clearable:"",size:"small"},model:{value:e.query.roleId,callback:function(t){e.$set(e.query,"roleId",t)},expression:"query.roleId"}},e._l(e.roleOptions,(function(e){return a("el-option",{key:e.roleId,attrs:{label:e.roleName,value:e.roleId}})})),1)],1),a("el-form-item",{staticClass:"new-form-item",attrs:{prop:"isActivate"}},[a("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"请选择员工激活状态",clearable:"",size:"small"},model:{value:e.query.isActivate,callback:function(t){e.$set(e.query,"isActivate",t)},expression:"query.isActivate"}},[a("el-option",{key:null,attrs:{label:"全部",value:null}}),e._l(e.statusOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],2)],1),a("el-form-item",{staticClass:"new-form-item"},[a("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.getList(1)}}},[e._v("查询")]),a("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1)],1),a("el-row",{staticClass:"staff-body",attrs:{type:"flex",justify:"space-between"}},[a("div",{staticClass:"head-container",style:e.treeData&&e.treeData.length>0?{backgroundColor:"#fff"}:{backgroundColor:"#fff",display:"flex",alignItems:"center"}},[a("common-tree",{ref:"tree",staticClass:"left-tree",attrs:{data:e.treeData?e.treeData:[],props:e.defaultProps,"expand-on-click-node":!1,"default-expand-all":""},on:{"node-click":e.handleNodeClick},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.node,n=t.data;return a("div",{staticClass:"custom-tree-node"},[a("span",{staticClass:"toe",attrs:{title:i.label}},[e._v(e._s(i.label))]),e.isDKCorp?e._e():a("span",{staticClass:"fr"},[1!==i.level?a("i",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dept:edit"],expression:"['system:dept:edit']"}],staticClass:"iconfont icon-tool-edit",attrs:{title:"编辑"},on:{click:function(t){return t.stopPropagation(),e.departEdit(n,1)}}}):e._e(),a("i",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dept:add"],expression:"['system:dept:add']"}],staticClass:"iconfont icon-add",attrs:{title:"添加"},on:{click:function(t){return t.stopPropagation(),e.departEdit(n,0)}}}),1!==i.level?a("i",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dept:remove"],expression:"['system:dept:remove']"}],staticClass:"iconfont icon-tool-delete",attrs:{title:"删除"},on:{click:function(t){return t.stopPropagation(),e.departRemove(n.id)}}}):e._e()])])}}])},[a("template",{slot:"empty"},[a("empty-default-icon",{attrs:{text:"暂无企业",desc:"若首次加载,请耐心等待后台数据同步,稍后回来","desc-config":["contactSecret"]}})],1)],2)],1),a("div",{staticClass:"staff-container-right"},[a("RightContainer",{scopedSlots:e._u([e.isDKCorp?{key:"data-stat",fn:function(){return[a("div",{staticClass:"dk-corp-tip-text"},[e._v(" 如需修改员工/部门信息,请前往 "),a("el-link",{attrs:{type:"primary",href:"https://work.weixin.qq.com/wework_admin/frame#contacts",target:"_blank"}},[e._v("企业微信管理后台")])],1)]},proxy:!0}:null,{key:"operate-btn",fn:function(){return[a("el-button",{staticStyle:{color:"rgba(153, 153, 153, 100)"},attrs:{type:"text",size:"medium"},on:{click:function(t){e.SyncMemberInfoDrawerVisible=!0}}},[e._v(" 员工头像不显示? ")]),a("div",{staticClass:"divider"}),e.isDKCorp?e._e():a("el-button",{staticStyle:{color:"rgba(153, 153, 153, 100)"},attrs:{type:"text",size:"medium"},on:{click:function(t){return e.handleShowAddMemberFailDrawer("qrcode")}}},[e._v(" 成员添加失败? ")]),e.isDKCorp?e._e():a("el-dropdown",{on:{command:e.handleCommand}},[a("el-button",{attrs:{type:"primary"}},[e._v(" 添加员工"),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"qrcode"}},[e._v("扫码加入")]),a("el-dropdown-item",{attrs:{command:"invite"}},[e._v("发起邀请")])],1)],1),a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["contacts:organization:sync"],expression:"['contacts:organization:sync']"}],staticClass:"sync-user-btn btn-reset",on:{click:e.syncUser}},[e._v("同步员工")]),a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["contacts:organization:edit"],expression:"['contacts:organization:edit']"}],staticClass:"btn-reset",on:{click:e.onBachtUpdate}},[e._v(" 批量修改员工 ")])]},proxy:!0},{key:"data",fn:function(){return[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.userList,"header-cell-style":{backhround:"#eee"}},on:{"selection-change":e.handleSelectionChange}},[a("template",{slot:"empty"},[a("empty-default-icon",{attrs:{length:e.userList.length}})],1),a("el-table-column",{attrs:{type:"selection",width:"50",align:"left"}}),a("el-table-column",{attrs:{label:"成员",align:"left",width:"140",prop:"userId"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"staff-info"},[a("img",{attrs:{src:t.row.headImageUrl||i("3e20"),alt:""}}),a("div",{staticClass:"staff-name"},[a("div",{staticClass:"inoneline",attrs:{title:t.row.alias?t.row.alias+"("+t.row.userName+")":t.row.userName}},[e._v(" "+e._s(t.row.alias?t.row.alias+"("+t.row.userName+")":t.row.userName)+" ")]),a("div",{staticClass:"inoneline"},[e._v(e._s(t.row.position))])])])]}}])}),a("el-table-column",{attrs:{label:"手机号",align:"left",prop:"mobile",width:"120"}}),a("el-table-column",{attrs:{label:"所属部门",align:"left","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.treeMap[t.row.mainDepartment])+" ")]}}])}),a("el-table-column",{attrs:{label:"角色",align:"left","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.roleName)+" ")]}}])}),a("el-table-column",{attrs:{label:"激活状态",align:"left"},scopedSlots:e._u([{key:"header",fn:function(){return[a("span",[e._v("激活状态")]),a("el-popover",{attrs:{placement:"top-start",trigger:"hover","popper-class":"tip-popover"}},[a("div",[a("div",[e._v("1. 已激活:员工已在企微客户端进入当前企业")]),a("div",[e._v("2. 已禁用:员工被禁用,无法读取企业数据")]),a("div",[e._v("3. 未激活:员工未在企微客户端进入当前企业")]),a("div",[e._v("4. 退出企业:员工已退出企业,若自退出起30天内未进入,将被企微官方自动删除")])]),a("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"14px"},attrs:{slot:"reference"},slot:"reference"})])]},proxy:!0},{key:"default",fn:function(t){return[e._v(" "+e._s(e.statusActivate[t.row.isActivate])+" ")]}}])}),a("el-table-column",{attrs:{label:"操作",align:"left",width:"180","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["contacts:organization:info"],expression:"['contacts:organization:info']"}],attrs:{type:"text"},on:{click:function(i){return e.edit(t.row,0)}}},[e._v("详情")]),1!==t.row.userId&&t.row.enable<2&&!e.isDKCorp?a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["contacts:organization:forbidden"],expression:"['contacts:organization:forbidden']"}],attrs:{type:"text"},on:{click:function(i){return e.startOrStop(t.row)}}},[e._v(e._s(e.status[t.row.enable]))]):e._e(),a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["contacts:organization:edit"],expression:"['contacts:organization:edit']"}],attrs:{type:"text"},on:{click:function(i){return e.edit(t.row,1)}}},[e._v("编辑")]),t.row.enable<2&&!e.isDKCorp?a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["contacts:organization:removeMember"],expression:"['contacts:organization:removeMember']"}],attrs:{type:"text"},on:{click:function(i){return e.remove(t.row.userId)}}},[e._v("删除")]):e._e()]}}])})],2),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,disabled:e.loading,page:e.query.pageNum,limit:e.query.pageSize,"select-data-len":e.multipleSelection.length},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}})]},proxy:!0}],null,!0)})],1)]),a("el-dialog",{staticClass:"member-info-modal",attrs:{title:e.form.userId?e.disabled?"成员详情":"修改成员":"添加成员",visible:e.dialogVisible,"close-on-click-modal":!!e.form.userId&&!!e.disabled},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("el-row",{staticClass:"modal-top",attrs:{gutter:10}},[a("el-col",{staticStyle:{width:"auto"},attrs:{span:4}},[a("div",{staticClass:"avatar-wrap ac"},[e.form.headImageUrl?a("img",{staticClass:"avatar",attrs:{src:e.form.headImageUrl}}):a("i",{staticClass:"el-icon-plus avatar-uploader-icon cc"})])]),a("el-col",{attrs:{span:11}},[a("el-form",{ref:"form",attrs:{"label-position":"right",model:e.form,rules:e.rules,"label-width":"60px",disabled:e.disabled}},[a("el-form-item",{attrs:{label:"姓名",prop:"userName"}},[a("el-input",{attrs:{disabled:"",maxlength:64,"show-word-limit":""},model:{value:e.form.userName,callback:function(t){e.$set(e.form,"userName",t)},expression:"form.userName"}})],1),a("el-form-item",{attrs:{label:"账号",prop:"userId"}},[a("el-input",{attrs:{disabled:"",placeholder:"成员唯一标识,不支持更改,不支持中文"},model:{value:e.form.userId,callback:function(t){e.$set(e.form,"userId",t)},expression:"form.userId"}})],1),a("el-form-item",{attrs:{label:"性别"}},[a("el-radio-group",{attrs:{disabled:""},model:{value:e.form.gender,callback:function(t){e.$set(e.form,"gender",t)},expression:"form.gender"}},[a("el-radio",{attrs:{label:1}},[e._v("男")]),a("el-radio",{attrs:{label:2}},[e._v("女")])],1)],1)],1)],1)],1),a("el-row",{staticClass:"modal-bottom",attrs:{gutter:10}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"type-title"},[e._v("基本信息")]),a("el-form",{ref:"form",attrs:{"label-position":"right",model:e.form,rules:e.rules,"label-width":"80px",disabled:e.disabled}},[a("el-form-item",{attrs:{label:"昵称"}},[a("el-input",{attrs:{disabled:"",maxlength:64,placeholder:e.showPlaceHolder?"可在新闻公告应用的生日祝福等场景使用":"","show-word-limit":""},model:{value:e.form.alias,callback:function(t){e.$set(e.form,"alias",t)},expression:"form.alias"}})],1),a("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[a("el-input",{attrs:{disabled:""},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1),a("el-form-item",{attrs:{label:"生日"}},[a("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:""},model:{value:e.form.birthday,callback:function(t){e.$set(e.form,"birthday",t)},expression:"form.birthday"}})],1),a("el-form-item",{attrs:{label:"身份证",prop:"idCard"}},[a("el-input",{model:{value:e.form.idCard,callback:function(t){e.$set(e.form,"idCard",t)},expression:"form.idCard"}})],1),a("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[a("el-input",{attrs:{disabled:""},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}})],1),a("el-form-item",{attrs:{label:"QQ",prop:"qqAccount"}},[a("el-input",{model:{value:e.form.qqAccount,callback:function(t){e.$set(e.form,"qqAccount",t)},expression:"form.qqAccount"}})],1),a("el-form-item",{attrs:{label:"地址"}},[a("el-input",{attrs:{disabled:"",type:"textarea",row:"2",maxlength:128,"show-word-limit":""},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}})],1)],1)],1),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"type-title"},[e._v("企业信息")]),a("el-form",{ref:"form",attrs:{"label-position":"right",model:e.form,rules:e.rules,"label-width":"80px",disabled:e.disabled}},[a("el-form-item",{attrs:{label:"角色",prop:"roleId"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.roleId,callback:function(t){e.$set(e.form,"roleId",t)},expression:"form.roleId"}},e._l(e.roleOptions,(function(e){return a("el-option",{key:e.roleId,attrs:{label:e.roleName,value:e.roleId,disabled:1==e.status}})})),1)],1),a("el-form-item",{attrs:{label:"所在部门",prop:"mainDepartment"}},[a("el-cascader",{attrs:{disabled:"",options:e.treeData,"show-all-levels":!1,props:{expandTrigger:"hover",checkStrictly:!0,emitPath:!1,value:"id",label:"name"}},model:{value:e.form.mainDepartment,callback:function(t){e.$set(e.form,"mainDepartment",t)},expression:"form.mainDepartment"}})],1),a("el-form-item",{attrs:{label:"职务"}},[a("el-input",{attrs:{disabled:"",maxlength:64,"show-word-limit":""},model:{value:e.form.position,callback:function(t){e.$set(e.form,"position",t)},expression:"form.position"}})],1),a("el-form-item",{attrs:{label:"入职时间"}},[a("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:""},model:{value:e.form.joinTime,callback:function(t){e.$set(e.form,"joinTime",t)},expression:"form.joinTime"}})],1)],1)],1)],1),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),a("RequestButton",{attrs:{type:"primary","request-method":e.submit,"button-type":"save"}},[e._v("确 定")])],1)],1),a("el-dialog",{attrs:{title:(e.formDepart.id?"修改":"添加")+"部门",visible:e.dialogVisibleDepart,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisibleDepart=t},close:e.closeModal}},[a("el-form",{ref:"departForm",attrs:{model:e.formDepart,"label-width":"80px",rules:e.departRules}},[a("el-form-item",{attrs:{label:"部门名称",prop:"departName"}},[a("el-input",{attrs:{maxlength:16,"show-word-limit":""},model:{value:e.formDepart.name,callback:function(t){e.$set(e.formDepart,"name",t)},expression:"formDepart.name"}})],1),e.formDepart.pName?a("el-form-item",{attrs:{label:"所属部门"}},[a("el-input",{attrs:{disabled:""},model:{value:e.formDepart.pName,callback:function(t){e.$set(e.formDepart,"pName",t)},expression:"formDepart.pName"}})],1):e._e()],1),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogVisibleDepart=!1}}},[e._v("取 消")]),a("RequestButton",{attrs:{type:"primary","request-method":e.departSubmit,"button-type":"submit"}},[e._v("确 定")])],1)],1),a("el-dialog",{attrs:{title:"扫码加入",visible:e.showQrcodeAddDialog,width:"500px","destroy-on-close":!0},on:{"update:visible":function(t){e.showQrcodeAddDialog=t}}},[a("div",{staticClass:"tip"},[e._v("成员使用微信扫码快速加入企业,当前二维码7天内("+e._s(e.expirationTime)+"前)有效")]),a("div",{staticClass:"company-name"},[e._v("『"+e._s(e.$store.state.enterPriseWechatConfig.companyName)+"』")]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.qrcodeLoading,expression:"qrcodeLoading"}],staticClass:"qrcode"},[e.joinQrcodeUrl?a("img",{staticClass:"qrcode",attrs:{src:e.joinQrcodeUrl,alt:""}}):e._e()]),a("div",{staticClass:"download"},[a("el-button",{staticClass:"download-btn",attrs:{type:"text",size:"medium"},on:{click:e.download}},[e._v(" 下载二维码 ")])],1)]),a("InviteForm",{attrs:{visible:e.inviteDialogVisible,"handle-show-add-member-fail-drawer":e.handleShowAddMemberFailDrawer,"get-member-list":e.getList,"role-data":e.roleOptions,"department-data":e.treeData},on:{"update:visible":function(t){e.inviteDialogVisible=t}}}),a("el-drawer",{attrs:{title:"成员加入失败",visible:e.addMemberFailDrawerVisible,direction:e.direction,"before-close":e.handleCloseDrawer,"append-to-body":!0,size:"780px"},on:{"update:visible":function(t){e.addMemberFailDrawerVisible=t}}},[a("AddMemberTip",{attrs:{type:e.addMemberFailDrawerActive}})],1),a("el-drawer",{staticClass:"extra-drawer-div",attrs:{title:"同步成员信息",visible:e.SyncMemberInfoDrawerVisible,"before-close":e.handleCloseDrawer,"close-on-press-escape":!1,"wrapper-closable":!1,"append-to-body":!0,size:"780px"},on:{"update:visible":function(t){e.SyncMemberInfoDrawerVisible=t}}},[a("SyncMemberInfo",{attrs:{"extra-drawer":e.SyncMemberInfoDrawerVisible},on:{closeDrawer:function(t){e.SyncMemberInfoDrawerVisible=!1},getList:e.getList}})],1),a("BatchUpdateUser",{attrs:{title:"批量修改信息",visible:e.updateUserVisible,loading:e.updateUserLoading,"update-user-res":e.updateUserRes,"is-d-k-corp":e.isDKCorp},on:{"update:visible":function(t){e.updateUserVisible=t},submit:e.batchUpdateUser}})],1)])},n=[],r=i("2909"),s=i("c7eb"),o=i("1da1"),l=i("5530"),c=(i("99af"),i("4de4"),i("a15b"),i("d81d"),i("b0c0"),i("e9c4"),i("a9e3"),i("dca8"),i("b64b"),i("d3b7"),i("ac1f"),i("00b4"),i("6062"),i("3ca3"),i("159b"),i("ddb0"),i("2b3d"),i("bf19"),i("9861"),i("5c96")),u=i("d368"),d=i("ef6c"),p=i("3528"),f=i("dd70"),A=i("61f7"),h=i("e77d"),m=i("ce6b"),g=i("f710"),v=i("b66d"),b=i("0529"),y=i("9964"),_=i("f4e3"),w=i("cf45"),C=i("52a9"),x=i("2093"),k=i("e2e0"),T=200,S=7,I=8e3,E={successCount:0,failCount:0,fileUrl:""},O={name:"Organization",components:{EmptyDefaultIcon:h["a"],CommonTree:m["a"],NoConfigInfo:g["a"],RightContainer:v["a"],InviteForm:b["default"],AddMemberTip:y["default"],BatchUpdateUser:_["default"],RequestButton:C["a"],SyncMemberInfo:x["default"]},mixins:[k["a"]],props:{},data:function(){var e=this,t=function(t,i,a){var n=Object(A["b"])(e.formDepart.name);n?a(new Error("不能包含特殊字符\\:*?”<>|")):a()},i=function(e,t,i,a){e.length>t&&i(new Error),e&&a&&!a.test(e)&&i(new Error),i()};return{showPlaceHolder:!0,query:{pageNum:1,pageSize:f["Ic"],userName:void 0,isActivate:"",roleId:void 0},treeData:[],userList:[],status:f["id"],statusActivate:f["jd"],statusOptions:Object.keys(f["jd"]).map((function(e){return{label:f["jd"][e],value:e}})),total:0,defaultProps:{label:"name",children:"children",disabled:function(e,t){return!e.enable}},form:{},dialogVisible:!1,disabled:!1,loading:!1,multipleSelection:[],formDepart:{},dialogVisibleDepart:!1,dialogVisibleAvatar:!1,queryImg:{pageNum:1,pageSize:f["Mc"]},totalImg:0,treeMap:{},roleOptions:[],scopeDeptList:[],rules:Object.freeze({userName:[{required:!0,message:"必填项",trigger:"blur"}],userId:[{required:!0,message:"必填项",trigger:"blur"}],roleId:[{required:!0,message:"必填项",trigger:"change"}],mainDepartment:[{required:!0,message:"必填项",trigger:"change"}],email:[{message:"'请输入正确的邮箱地址",validator:function(e,t,a){return i(t,T,a,/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/)},trigger:"blur"}],mobile:[{pattern:/^\d{1,20}$/,message:"请输入正确的手机号码",trigger:"blur"}],idCard:[{pattern:/^\S{1,30}$/,message:"请输入正确的身份证",trigger:"blur"}],qqAccount:[{pattern:/^\d{1,20}$/,message:"请输入正确的QQ",trigger:"blur"}]}),departRules:Object.freeze({departName:[{validator:t,trigger:"blur"}]}),showQrcodeAddDialog:!1,inviteDialogVisible:!1,addMemberFailDrawerVisible:!1,direction:"rtl",joinQrcodeUrl:"",qrcodeLoading:!0,addMemberFailDrawerActive:"",expirationTime:"",updateUserVisible:!1,updateUserLoading:!1,updateUserRes:Object(l["a"])({},E),SyncMemberInfoDrawerVisible:!1}},computed:{isDKCorp:function(){return this.$store.state.serverInfo.dkCorp}},watch:{updateUserVisible:function(e){e&&(this.updateUserRes=Object(l["a"])({},E))}},created:function(){this.getRoles(),this.getTree()},mounted:function(){},methods:{getRoles:function(){var e=this;Object(p["d"])({}).then((function(t){e.roleOptions=t.rows}))},getTree:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.$store.dispatch("GetOrUpdateDepartmentList");case 3:i=t.sent,e.scopeDeptList=i,e.treeData=e.handleTree(e.scopeDeptList),e.treeMap=e.getDeptMap(i),e.query.departments="",e.getList(),t.next=17;break;case 11:t.prev=11,t.t0=t["catch"](0),e.scopeDeptList=[],e.treeData=[],e.treeMap={},e.query.departments=[];case 17:case"end":return t.stop()}}),t,null,[[0,11]])})))()},getDeptMap:function(e){var t={};return e.forEach((function(e){t[e.id]=e.name})),t},getList:function(e){var t=this;e&&(this.query.pageNum=e),this.loading=!0,Object(d["h"])(this.query).then((function(e){var i=e.rows,a=e.total;t.userList=i,t.total=+a,t.loading=!1})).finally((function(){t.modifyButtonStatus(),t.loading=!1}))},handleNodeClick:function(e){this.query.departments=this.dealScopedDepts(e.id).join(","),this.getList(1)},dealScopedDepts:function(e){var t=this;if(!e)return[];var i=[e],a=this.scopeDeptList.filter((function(t){return t.parentId===e})).map((function(e){return e.id}));return i=i.concat(a),a.length>0&&a.forEach((function(e){var a=t.dealScopedDepts(e);i=i.concat(a)})),Object(r["a"])(new Set(i))},edit:function(e,t){this.showPlaceHolder=0!==t,this.$refs["form"]&&this.$refs["form"].clearValidate(),this.form=Object.assign({},e||{_new:!0}),this.dialogVisible=!0,this.disabled=!(t||!e)},submit:function(){var e=this;this.$refs["form"].validate((function(t){if(t){var i=JSON.parse(JSON.stringify(e.form));if(!i.userName||!i.userId||!i.mainDepartment||!i.roleId)return Object(w["i"])(e.$store,"save"),void e.msgError("请填写必填项");i.department=i.mainDepartment,i.isLeaderInDept+="",u[i._new?"addUser":"updateUser"](Object(l["a"])({name:i.userName},i)).then((function(){Object(w["i"])(e.$store,"save"),e.msgSuccess("操作成功"),e.dialogVisible=!1,e.getList(i._new&&1)}))}else Object(w["i"])(e.$store,"save")}))},startOrStop:function(e){var t=this,i={userId:e.userId,enable:1===Number(e.enable)?0:1};e.enable?this.confirmModal({msg:"禁用后,该员工将被强制下线,且无法登录,是否继续?"},(function(){u["startOrStop"](i).then((function(){t.msgSuccess("操作成功"),t.getList()})).catch((function(){}))})):u["startOrStop"](i).then((function(){t.msgSuccess("操作成功"),t.getList()}))},remove:function(e){var t=this;this.confirmModal({msg:"删除后,该成员将从企业下移除,是否继续?"},(function(){return u["remove"](e).then((function(){t.getList(),t.msgSuccess("删除成功")}))}))},handleSelectionChange:function(e){this.multipleSelection=e},syncUser:function(){var e=this,t=this.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});u["syncUser"]().then((function(){t.close(),e.msgSuccess("后台开始同步数据,请稍后关注进度"),e.getList()}))},batchImport:function(){},departEdit:function(e,t){this.formDepart=Object.assign({},t?e:{parentId:e.id,pName:e.name}),this.dialogVisibleDepart=!0},departRemove:function(e){var t=this;this.confirmModal({msg:"是否确认删除吗?"},(function(){return u["removeDepart"](e).then((function(){t.getTree(),t.msgSuccess("删除成功")}))}))},departSubmit:function(){var e=this;this.$refs.departForm.validate((function(t){t?u[e.formDepart.id?"updateDepart":"addDepart"](e.formDepart).then((function(){Object(w["i"])(e.$store,"submit"),e.msgSuccess("操作成功"),e.dialogVisibleDepart=!1,e.getTree()})).catch((function(){Object(w["i"])(e.$store,"submit"),e.dialogVisibleDepart=!1})):Object(w["i"])(e.$store,"submit")}))},submitAvatar:function(){},closeModal:function(){this.$refs.departForm.resetFields()},resetQuery:function(){var e=this;this.query.userName="",this.query.isActivate="",this.query.roleId=void 0,this.$nextTick((function(){e.getList(1)}))},handleCommand:function(e){var t=this;"qrcode"===e?(this.showQrcodeAddDialog=!0,this.qrcodeLoading=!0,this.expirationTime=Object(w["y"])(S),Object(d["e"])().then((function(e){t.joinQrcodeUrl=e.data,t.qrcodeLoading=!1}))):"invite"===e&&(this.inviteDialogVisible=!0)},handleShowAddMemberFailDrawer:function(e){this.addMemberFailDrawerVisible=!0,this.addMemberFailDrawerActive=e},handleCloseDrawer:function(e){e()},download:function(){var e=this.$store.state.enterPriseWechatConfig.companyName+"("+this.expirationTime+"前有效).png";Object(d["c"])(this.joinQrcodeUrl).then((function(t){if(null!=t){var i=new Blob([t],{type:"application/zip"}),a=window.URL.createObjectURL(i),n=document.createElement("a");n.href=a,n.download=e,n.click(),URL.revokeObjectURL(a)}}))},batchUpdateUser:function(e){var t=this,i=this.multipleSelection.map((function(e){var t=e.userId,i=e.userName;return{userId:t,userName:i}})),a=Object(l["a"])(Object(l["a"])({},e),{},{userIdList:i});this.updateUserLoading=!0,Object(d["b"])(a).then((function(e){t.updateUserLoading=!1,t.updateUserRes=Object(l["a"])({},e.data),t.getList()})).catch((function(){t.updateUserLoading=!1,t.getList()})),setTimeout((function(){t.updateUserLoading&&c["MessageBox"].alert("网络有点儿慢,请稍后回到员工管理查看员工信息是否修改成功","温馨提示").then((function(){t.updateUserVisible=!1}))}),I)},onBachtUpdate:function(e){if(0===this.multipleSelection.length){this.$message({showClose:!0,message:"请至少选择一个员工",type:"warning"});var t=e.target;return"SPAN"===t.nodeName&&(t=e.target.parentNode),void t.blur()}this.updateUserVisible=!0}}},B=O,L=(i("1f78"),i("2877")),D=Object(L["a"])(B,a,n,!1,null,"16c8b1af",null);t["default"]=D.exports},3464:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"j",(function(){return s})),i.d(t,"e",(function(){return o})),i.d(t,"d",(function(){return l})),i.d(t,"f",(function(){return c})),i.d(t,"i",(function(){return u})),i.d(t,"b",(function(){return d})),i.d(t,"c",(function(){return p})),i.d(t,"g",(function(){return f})),i.d(t,"h",(function(){return A}));var a=i("b775"),n=window.CONFIG.services.wecom+"/customerMessagePush";function r(e){return Object(a["a"])({url:n+"/add",method:"post",data:e})}function s(e){return Object(a["a"])({url:n+"/update",method:"post",data:e})}function o(e){return Object(a["a"])({url:n+"/list",params:e})}function l(e){return Object(a["a"])({url:n+"/getInfo",params:{messageId:e}})}function c(e){return Object(a["a"])({url:n+"/pushResults",method:"post",data:e})}function u(e){return Object(a["a"])({url:n+"/asyncResult",method:"post",data:e})}function d(e){return Object(a["a"])({url:n+"/delete",method:"delete",params:e})}function p(e){return Object(a["a"])({url:n+"/getCopyInfo",params:e})}function f(e){return Object(a["a"])({url:n+"/getSendSize",method:"post",data:e})}function A(e){return Object(a["a"])({url:n+"/sendToUser",method:"post",data:e})}},3528:function(e,t,i){"use strict";i.d(t,"d",(function(){return n})),i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){return s})),i.d(t,"e",(function(){return o})),i.d(t,"b",(function(){return l}));var a=i("b775");function n(e){return Object(a["a"])({url:"/system/role/list",method:"get",params:e})}function r(e){return Object(a["a"])({url:"/system/role/"+e,method:"get"})}function s(e){return Object(a["a"])({url:"/system/role",method:"post",data:e})}function o(e){return Object(a["a"])({url:"/system/role",method:"put",data:e})}function l(e){return Object(a["a"])({url:"/system/role/"+e,method:"delete",disableErrMsg:!0})}},3557:function(e,t,i){e.exports=i.p+"static/img/friends-step3-1.f0e0f098.png"},"355f":function(e,t,i){"use strict";i("3716")},3589:function(e,t,i){},"35ad":function(e,t,i){},"35b3":function(e,t,i){},"35f2":function(e,t,i){},"362b":function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var a=i("b775");function n(e){return Object(a["a"])({url:"/wxapp/code2session/"+e,method:"get"})}},"365f":function(e,t,i){},"369e":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"link-preview"},[i("div",{staticClass:"bottom-div"},[i("div",{staticClass:"desc intwoline"},[e._v(" "+e._s(e.title)+" ")]),e.coverUrl?[i("el-image",{staticClass:"cover-img",attrs:{src:e.coverUrl,fit:"cover"}},[i("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[i("svg",{staticClass:"icon-img-link",attrs:{width:25,height:25}},[i("use",{attrs:{href:"#icon-img-link"}})])])])]:e._e()],2)])},n=[],r={name:"",components:{},props:{title:{type:String,default:""},content:{type:String,default:""},coverUrl:{type:String,default:""}},data:function(){return{}},watch:{coverUrl:function(e){this.coverUrl=e}},created:function(){},mounted:function(){}},s=r,o=(i("c4a1"),i("2877")),l=Object(o["a"])(s,a,n,!1,null,"8dd226f6",null);t["default"]=l.exports},"36a4":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"form-setting"},[i("el-form",{attrs:{"label-position":"top","label-width":"80px",model:e.filedForm}},[i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("必填")]),i("el-switch",{model:{value:e.filedForm.required,callback:function(t){e.$set(e.filedForm,"required",t)},expression:"filedForm.required"}})],1)]),i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("标题")])]),i("el-input",{attrs:{resize:"none","show-word-limit":"",maxlength:100,type:"textarea",rows:6},model:{value:e.filedForm.title,callback:function(t){e.$set(e.filedForm,"title",t)},expression:"filedForm.title"}})],1),i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("辅助文字")])]),e._l(e.filedForm.auxiliaryTextOptions,(function(t){return i("div",{key:t.scoreType,staticClass:"auxiliary-text mb10"},[i("span",[e._v(e._s(t.scoreType)+"星")]),i("el-input",{staticClass:"ml15",attrs:{"show-word-limit":"",maxlength:6},model:{value:t.text,callback:function(i){e.$set(t,"text",i)},expression:"item.text"}})],1)}))],2),i("el-form-item",[i("div",{staticClass:"form-label"},[i("div",{attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("客服好评率")])]),i("el-switch",{model:{value:e.filedForm.customerServiceRate,callback:function(t){e.$set(e.filedForm,"customerServiceRate",t)},expression:"filedForm.customerServiceRate"}})],1),i("span",{staticStyle:{"font-size":"12px"}},[e._v("客户填写后,将用于计算客服的好评率")])])],1)],1)},n=[],r=i("5530"),s=i("81f6"),o=1,l=2,c=3,u=4,d=5,p={props:{component:{type:Object,default:function(){}}},data:function(){return{filedForm:{required:!0,title:"评分",customerServiceRate:!1,auxiliaryTextOptions:[{text:"非常差",scoreType:o},{text:"差",scoreType:l},{text:"一般",scoreType:c},{text:"好",scoreType:u},{text:"非常好",scoreType:d}]}}},watch:{filedForm:{deep:!0,handler:function(e){s["a"].$emit("changeFiledSettingValue",Object(r["a"])(Object(r["a"])({},e),this.filedForm))}}},mounted:function(){this.filedForm=Object(r["a"])(Object(r["a"])({},this.filedForm),this.component)}},f=p,A=(i("5d8c"),i("2877")),h=Object(A["a"])(f,a,n,!1,null,"f98882aa",null);t["default"]=h.exports},3704:function(e,t,i){"use strict";i("44cb")},3715:function(e,t,i){e.exports=i.p+"static/img/receive-step2-3.e3d05b0e.jpg"},3716:function(e,t,i){},"371c":function(e,t,i){"use strict";i("6dad")},3722:function(e,t,i){e.exports=i.p+"static/img/login_bg.baa21e8d.svg"},3734:function(e,t,i){"use strict";i("3a0c")},"376d":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tel-validation"},[i("span",[e._v("为确保企业帐号安全,请输入发送至 "+e._s(e.tel)+" 的6位验证码。如未收到,请尝试重新获取验证码")]),i("div",{staticClass:"input-countdown"},[i("el-input",{staticClass:"code-input",attrs:{maxlength:"6",placeholder:"请输入6位验证码"},model:{value:e.captcha,callback:function(t){e.captcha=t},expression:"captcha"}}),e.isAgainGetCode?i("el-button",{staticClass:"code-time",attrs:{type:"text"},on:{click:e.againGetCode}},[e._v("重新获取")]):i("span",{staticClass:"code-time"},[e._v(e._s(e.codeTime)+"s后可重新获取")])],1),i("RequestButton",{attrs:{"button-type":"validate","request-method":e.validate,type:"primary"}},[e._v("验证")])],1)},n=[],r=i("52a9"),s=i("50fc"),o=i("cf45"),l=1e3,c=60,u={components:{RequestButton:r["a"]},props:{tel:{type:String,default:null},tlKey:{type:String,default:""},qrcodeKey:{type:String,default:""}},data:function(){return{captcha:"",isAgainGetCode:!1,codeTime:c,codeTimer:null}},watch:{},mounted:function(){this.countDownTime()},methods:{validate:function(){var e=this;if(!this.captcha)return Object(o["i"])(this.$store,"validate"),this.msgWarn("验证码不能为空");var t={captcha:this.captcha,tlKey:this.tlKey,qrcodeKey:this.qrcodeKey};Object(s["c"])(t).then((function(t){Object(o["i"])(e.$store,"validate"),e.$emit("loginSuccessAndConfig"),e.closeTime()}))},closeTime:function(){clearInterval(this.codeTimer)},countDownTime:function(){var e=this;this.codeTimer=setInterval((function(){e.codeTime-=1,e.codeTime||(clearInterval(e.codeTimer),e.isAgainGetCode=!0)}),l)},againGetCode:function(){var e=this;this.codeTime=c,this.isAgainGetCode=!1,this.countDownTime(),Object(s["g"])({tlKey:this.tlKey,qrcodeKey:this.qrcodeKey}).then((function(){e.msgSuccess("发送成功")}))}}},d=u,p=(i("76ed"),i("2877")),f=Object(p["a"])(d,a,n,!1,null,"6b50e197",null);t["default"]=f.exports},"379b":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("common-tree",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingEmployee,expression:"loadingEmployee"}],ref:"tree",attrs:{"node-key":"key",accordion:"",data:e.searchTreeData.length?e.searchTreeData:e.treeData,"render-after-expand":!1,"expand-on-click-node":!0,"default-expanded-keys":e.defaultExpandNode,props:e.defaultProps,"filter-node-method":e.filterNode,"check-strictly":e.checkStrictly,"icon-class":"el-icon-caret-right"},on:{"node-expand":e.nodeExpand,"node-click":e.handleCheckChange},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.node,n=t.data;return i("div",{class:"custom-tree-node "+a.key},[i("UserItem",{attrs:{node:a,data:n,"user-list":e.userList,"more-flag":e.moreFlag,"loading-flag":e.loadingFlag,"is-sigle-select":e.isSigleSelect,"is-only-leaf":e.isOnlyLeaf,"is-only-click":e.isOnlyClick,"department-id-key":e.departmentIdKey,"is-show-main-dep":e.isShowMainDep,"dep-linkage":e.depLinkage},on:{"update:userList":function(t){e.userList=t},"update:user-list":function(t){e.userList=t},getOtherUserList:e.getOtherUserList,handleUpdateKeyChildren:e.handleUpdateKeyChildren,dealDepLinkage:e.dealDepLinkage}})],1)}}])},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{text:"暂无员工"}})],1)],2)},n=[],r=i("ade3"),s=i("c7eb"),o=i("1da1"),l=i("5530"),c=i("2909"),u=(i("99af"),i("4de4"),i("7db0"),i("c740"),i("caad"),i("d81d"),i("fb6a"),i("a434"),i("b0c0"),i("e9c4"),i("b64b"),i("d3b7"),i("2532"),i("2ca0"),i("159b"),i("d368")),d=i("ed08"),p=i("cf45"),f=i("4360"),A=i("e77d"),h=i("2ef0"),m=i("a8fc"),g=i.n(m),v=i("a125"),b=i.n(v),y=i("dd70"),_=i("ce6b"),w=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"user-item-div"},[e.isOnlyClick||e.node.key&&(e.node.key.startsWith(e.moreFlag)||e.node.key.startsWith(e.loadingFlag))?e._e():a("div",{staticClass:"checkbox-div"},[a("el-checkbox",{attrs:{value:e.checked,disabled:(e.isSigleSelect||e.isOnlyLeaf)&&!e.data.userId},on:{change:e.onSelect},nativeOn:{click:function(t){return t.stopPropagation(),e.clickFun(t)}}})],1),e.node.key&&e.node.key.startsWith(e.loadingFlag)?a("div",{staticClass:"ml5"},[a("i",{staticClass:"el-icon-loading",staticStyle:{"font-size":"18px"}})]):e.node.key&&e.node.key.startsWith(e.moreFlag)?a("div",{class:"show-more theme-text-color cp ml20 "+(e.loading?"disabled-btn":""),on:{click:e.showMore}},[e.loading?a("i",{staticClass:"el-icon-loading mr5"}):e._e(),e._v("查看更多 ")]):e.data.userId?a("div",{staticClass:"user-info",attrs:{"data-userId":e.dealUserId(e.data.userId)}},[a("img",{staticClass:"user-avatar",attrs:{src:e.data.avatarMediaid||i("3e20")}}),a("span",[e._v(e._s(e.node.label))])]):a("span",[e._v(e._s(e.node.label)+"("+e._s(e.data.totalUserCount||0)+")")])])},C=[],x=(i("ac1f"),i("466d"),{name:"UserItem",components:{},props:{data:{type:Object,default:function(){}},node:{type:Object,default:function(){}},userList:{type:Array,default:function(){return[]}},moreFlag:{type:String,default:""},loadingFlag:{type:String,default:""},isSigleSelect:{type:Boolean,default:!1},isOnlyLeaf:{type:Boolean,default:!1},departmentIdKey:{type:String,default:"id"},isShowMainDep:{type:Boolean,default:!1},isOnlyClick:{type:Boolean,default:!1},depLinkage:{type:Boolean,default:!1}},data:function(){return{checked:!1,loading:!1}},watch:{userList:function(e){this.loading=!1,this.dealCheckStatus(e)}},mounted:function(){this.dealCheckStatus(this.userList)},methods:{dealUserId:function(e){if(!e)return e;var t=/[a-zA-Z]/,i=e.match(t);return i?e.slice(i.index):e},dealCheckStatus:function(e){var t=this,i=e.some((function(e){return e.userId&&e.userId===t.data.userId||e[t.departmentIdKey]&&e[t.departmentIdKey]===t.data[t.departmentIdKey]}));this.checked=i},onSelect:function(){var e=this,t=this.checked;if(this.checked=!t,this.isSigleSelect)t?this.$emit("update:userList",[]):this.$emit("update:userList",[this.data]);else{if(t){var i=Object(c["a"])(this.userList),a=i.findIndex((function(t){return t.userId?t.userId===e.data.userId:t[e.departmentIdKey]===e.data[e.departmentIdKey]}));a>-1&&i.splice(a,1),this.$emit("update:userList",i)}else{var n=Object(c["a"])(this.userList);n.push(this.data),this.$emit("update:userList",n)}this.depLinkage&&this.$emit("dealDepLinkage",this.data,!t)}},showMore:function(){var e,t,i,a=this;this.loading||(this.isShowMainDep||this.node.data.mainDepartment?(this.loading=!0,this.$emit("handleUpdateKeyChildren",this.data.mainDepartment,null===(e=this.node)||void 0===e||null===(e=e.parent)||void 0===e||null===(e=e.data)||void 0===e?void 0:e.key,{lastId:null===(t=this.data)||void 0===t?void 0:t.lastId,lastIndex:null===(i=this.data)||void 0===i?void 0:i.lastIndex},(function(){a.loading=!1}))):(this.loading=!0,this.$emit("getOtherUserList",(function(){a.loading=!1}))))},clickFun:function(){}}}),k=x,T=(i("1201"),i("2877")),S=Object(T["a"])(k,w,C,!1,null,"0fa565c3",null),I=S.exports,E="1",O="0",B="1000",L={components:{CommonTree:_["a"],UserItem:I,EmptyDefaultIcon:A["a"]},props:{visible:{type:Boolean,default:!1},isOnlyLeaf:{type:Boolean,default:!0},isSigleSelect:{type:Boolean,default:!1},selectedUserList:{type:Array,default:function(){return[]}},ignorePermission:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!0},departmentIdKey:{type:String,default:"id"},depLinkage:{type:Boolean,default:!1},filterText:{type:String,default:""},isOnlyClick:{type:Boolean,default:!1},clickNode:{type:Object,default:function(){}}},data:function(){var e=this.isOnlyLeaf,t=this.ignorePermission,i=f["a"].getters.isSuperAdmin;return{treeData:[],searchTreeData:[],isSuperAdmin:i,defaultProps:{label:"name",children:"children",disabled:function(a){return!a.userId&&(!!e||!a.enable&&!t&&!i)},isLeaf:function(e,t){return!!e.userId&&!e.totalUserCount}},defaultExpandNode:[],defaultCheckedKeys:[],deptList:[],rootDeptId:E,allUserList:[],moreFlag:"more-",loadingFlag:"loading-",isSearching:!1,isShowMainDep:!1,userList:[],loadingEmployee:!1}},computed:{departmentInfo:function(){return this.$store.state.departmentInfo}},watch:{visible:{handler:function(e){e&&(this.userList=Object(h["cloneDeep"])(this.selectedUserList))},immediate:!0},filterText:function(e){e&&!this.isOnlyClick||this.searchList()},userList:{handler:function(e){this.isOnlyClick||this.$emit("updateUserList",e)},immediate:!0}},mounted:function(){this.initGetData()},methods:{getDepItem:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.children.forEach((function(e){var a;!e.userId&&e.id&&(i.push(e),(null===e||void 0===e||null===(a=e.children)||void 0===a?void 0:a.length)>0&&t.getDepItem(e,i))})),[].concat(Object(c["a"])(i),[e])},addChildrenLoading:function(e){var t=this;return e=e.map((function(e){return e.totalUserCount?Object(l["a"])(Object(l["a"])({},e),{},{children:[{key:"".concat(t.loadingFlag).concat(e[t.departmentIdKey])}]}):e})),e},setUserIntoFirstDep:function(e,t,i){var a,n,r=this;B<=t.length&&t.push({key:"".concat(this.moreFlag).concat(e&&e[this.departmentIdKey]),mainDepartment:e&&e[this.departmentIdKey],lastId:null===(a=t[t.length-1])||void 0===a?void 0:a.userId,lastIndex:((null===e||void 0===e||null===(n=e.children)||void 0===n?void 0:n.length)||0)+(t.length-1)});i[0].children=i[0].children.filter((function(e){return!e.key.startsWith(r.loadingFlag)})),Object(p["j"])(i,e&&e[this.departmentIdKey],t,"loaded",this.departmentIdKey)},initGetData:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i,a,n,r,o;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.loadingEmployee=!0,t.next=4,e.getTreeList();case 4:if(i=t.sent,i=e.addChildrenLoading(i),a=e.handleTreeFilterLoading(i),n=a[0],!(n&&n.parentId===O||1===a.length&&!e.departmentInfo.otherUserListTotal)){t.next=19;break}return e.isShowMainDep=!0,e.defaultExpandNode=i&&n?[n.key]:[],t.next=13,e.getUserList(n&&n[e.departmentIdKey]);case 13:r=t.sent,o=r.list,e.setUserIntoFirstDep(n,o,a),e.treeData=Object(c["a"])(a),t.next=21;break;case 19:e.treeData=[].concat(Object(c["a"])(a),Object(c["a"])(e.departmentInfo.otherUserList),[e.getMoreNodeTreeData(n)]),e.departmentInfo.otherUserList.length===e.departmentInfo.otherUserListTotal&&(e.treeData=e.treeData.filter((function(t){var i;return!(null!==t&&void 0!==t&&null!==(i=t.key)&&void 0!==i&&i.startsWith(e.moreFlag))})));case 21:e.loadingEmployee=!1,t.next=27;break;case 24:t.prev=24,t.t0=t["catch"](0),e.loadingEmployee=!1;case 27:case"end":return t.stop()}}),t,null,[[0,24]])})))()},dealDepLinkage:function(e,t){var i=this.getDepItem(e);this.userList=t?g()([].concat(Object(c["a"])(this.userList),Object(c["a"])(i)),"id"):b()(this.userList,i,"id")},getOtherUserList:function(e){var t=this;return Object(o["a"])(Object(s["a"])().mark((function i(){var a,n;return Object(s["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,t.$store.dispatch("GetOtherUserList",{isActivate:y["Kb"],lastId:null===(a=t.departmentInfo.otherUserList[t.departmentInfo.otherUserList.length-1])||void 0===a?void 0:a.userId,pageSize:y["vd"]});case 2:n=i.sent,t.treeData=t.treeData.filter((function(e){var i;return!(null!==e&&void 0!==e&&null!==(i=e.key)&&void 0!==i&&i.startsWith(t.moreFlag))})),t.treeData=[].concat(Object(c["a"])(g()([].concat(Object(c["a"])(t.treeData),Object(c["a"])(n)))),[t.getMoreNodeTreeData(t.treeData[0])]),t.departmentInfo.otherUserList.length===t.departmentInfo.otherUserListTotal&&(t.treeData=t.treeData.filter((function(e){var i;return!(null!==e&&void 0!==e&&null!==(i=e.key)&&void 0!==i&&i.startsWith(t.moreFlag))}))),e&&e();case 7:case"end":return i.stop()}}),i)})))()},getMoreNodeTreeData:function(e){var t,i;return{key:"".concat(this.moreFlag).concat(e&&e[this.departmentIdKey]),mainDepartment:void 0,lastId:null===(t=this.departmentInfo.otherUserList[this.departmentInfo.otherUserList.length-1])||void 0===t?void 0:t.userId,lastIndex:((null===e||void 0===e||null===(i=e.children)||void 0===i?void 0:i.length)||0)+(this.departmentInfo.otherUserList.length-1)}},getTreeList:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i,a;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.$store.dispatch("GetDepartmentList");case 3:return i=t.sent,a=Object(h["cloneDeep"])(i),a=a.map((function(t){return Object(l["a"])(Object(l["a"])({},t),{},Object(r["a"])({},e.departmentIdKey,t.id))})),e.deptList=Object(c["a"])(a),e.rootDeptId=a[0]?a[0][e.departmentIdKey]:e.rootDeptId,a.forEach((function(e){e.key=Object(d["d"])()})),t.abrupt("return",a);case 12:return t.prev=12,t.t0=t["catch"](0),e.msgError("获取部门列表异常"),t.abrupt("return",[]);case 16:case"end":return t.stop()}}),t,null,[[0,12]])})))()},getUserList:function(e){var t=arguments,i=this;return Object(o["a"])(Object(s["a"])().mark((function a(){var n,r,o,p,f;return Object(s["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n=t.length>1&&void 0!==t[1]?t[1]:{},r=Object(l["a"])({pageNum:n.lastId?void 0:1,pageSize:B,departmentStr:e,isActivate:y["Kb"]},n),a.next=4,u[i.ignorePermission?"getBriefList":"getList"](r);case 4:return o=a.sent,p=o.rows,f=o.total,p.forEach((function(e){e.key=Object(d["d"])()})),i.allUserList=Object(c["a"])(p),a.abrupt("return",{list:p,total:f});case 9:case"end":return a.stop()}}),a)})))()},dealSelectUser:function(e,t){var i=this,a=[];return this.defaultCheckedKeys=[],this.userList=[],t&&t.map((function(t){t&&t.businessId?a=e.filter((function(e){return e.userId===t.businessId})):t&&t.userId?a=e.filter((function(e){return e.userId===t.userId})):t&&t.length>0&&(a=e.filter((function(e){return e.userId===t}))),a.length>0&&(i.userList.push(a[0]),i.defaultCheckedKeys.push(a[0].key))})),this.defaultCheckedKeys},resetChecked:function(){var e;this.userList=[],null===(e=this.$refs)||void 0===e||null===(e=e.tree)||void 0===e||e.$refs.commonTree.setCheckedKeys([])},handleCheckChange:function(e){var t=this;if(this.isOnlyClick)this.$emit("updateUserList",e);else if(e.userId){var i=Object(c["a"])(this.userList),a=i.some((function(t){return t.userId===e.userId}));if(this.isSigleSelect)this.userList=[e];else if(a){var n=this.userList.findIndex((function(i){return i.userId===e.userId||e[t.departmentIdKey]&&i[t.departmentIdKey]===e[t.departmentIdKey]}));e.userId&&n>-1&&this.userList.splice(n,1)}else this.userList.push(e)}},getDeptFromTreeData:function(e,t){var i=this,a=e.find((function(e){return e[i.departmentIdKey]===t}));if(!a)for(var n=0;n<e.length;n++){var r=e[n];if(a=r.children&&this.getDeptFromTreeData(r.children,t),a)break}return a},filterNode:function(e,t){return!e||t.userId&&t.name&&-1!==t.name.indexOf(e)},nodeExpand:function(e,t){var i=this;return Object(o["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.loaded){t.next=2;break}return t.abrupt("return");case 2:if(!i.isSearching){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,i.updateUserList(e[i.departmentIdKey],e);case 6:case"end":return t.stop()}}),t)})))()},updateUserList:function(e,t,i){var a=this;return Object(o["a"])(Object(s["a"])().mark((function n(){var r,o,l,u,d,p;return Object(s["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,a.getUserList(e,i);case 2:l=n.sent,u=(null===(r=t.children)||void 0===r?void 0:r.filter((function(e){return e.userId||e[a.departmentIdKey]})))||[],d=l.list,p={key:"".concat(a.moreFlag).concat(t[a.departmentIdKey]),mainDepartment:t[a.departmentIdKey],lastId:null===(o=d[d.length-1])||void 0===o?void 0:o.userId,lastIndex:u.length+d.length-1},B<=l.list.length?a.$set(t,"children",[].concat(Object(c["a"])(u),Object(c["a"])(d),[p])):a.$set(t,"children",[].concat(Object(c["a"])(u),Object(c["a"])(d))),a.$set(t,"loaded",!0);case 8:case"end":return n.stop()}}),n)})))()},handleUpdateKeyChildren:function(e,t,i,a){var n=this;return Object(o["a"])(Object(s["a"])().mark((function r(){var o,l,u,d,p,f,A,h,m,g,v,b;return Object(s["a"])().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return l=i.lastId,u=i.lastIndex,r.next=3,n.getUserList(e,{lastId:l});case 3:d=r.sent,p=d.list,f=d.total,A=n.$refs.tree.$refs.commonTree.getNode(t),h=(null===A||void 0===A||null===(o=A.data)||void 0===o?void 0:o.children)||[],m=[],g=h.slice(0,u+1),v=h[u+1],f-p.length<=0?m=[].concat(Object(c["a"])(g),Object(c["a"])(p)):(v.lastId=null===(b=p[p.length-1])||void 0===b?void 0:b.userId,v.lastIndex=g.length+p.length-1,m=[].concat(Object(c["a"])(g),Object(c["a"])(p),[v])),n.$refs.tree.$refs.commonTree.updateKeyChildren(t,m),a&&a();case 13:case"end":return r.stop()}}),r)})))()},searchList:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i,a,n,r,o,l,u;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.filterText){t.next=12;break}if(e.searchTreeData=[],e.defaultExpandNode=[],e.isSearching=!1,a=e.getDepItem(e.treeData[0]).find((function(t){return t.id===e.clickNode.mainDepartment})),a.parentId===O){t.next=8;break}return t.next=8,e.nodeExpand(a);case 8:return n=e.getNodeItemByUserId(e.treeData).find((function(t){return t.userId===e.clickNode.userId})),e.defaultExpandNode=n?[n.key]:[null===(i=e.treeData[0])||void 0===i?void 0:i.key],e.$nextTick((function(){e.$refs.tree.$refs.commonTree.setCurrentKey((null===n||void 0===n?void 0:n.key)||e.clickNode.key)})),t.abrupt("return");case 12:return t.next=14,e.getUserList(null,{name:e.filterText,pageNum:void 0,pageSize:void 0});case 14:r=t.sent,e.departmentInfo.departmentList.length?e.departmentInfo.departmentList[0]===O?(o=e.dealUserIntoDept(r.list),e.searchTreeData=Object(c["a"])(o)):(l=e.dealUserIntoDept(r.list),u=r.list.filter((function(t){return e.departmentInfo.otherUserList.map((function(e){return e.userId})).includes(t.userId)})),e.searchTreeData=[].concat(Object(c["a"])(l),Object(c["a"])(u))):e.searchTreeData=Object(c["a"])(r.list),e.$nextTick((function(){e.$refs.tree.filter(e.filterText);var t=e.getNodeItemByUserId(e.searchTreeData).find((function(t){return t.userId===e.clickNode.userId}));e.$refs.tree.$refs.commonTree.setCurrentKey(t)}));case 17:case"end":return t.stop()}}),t)})))()},getNodeItemByUserId:function(e){var t=this,i=[];return e.forEach((function(e){e.userId&&i.push(e),e.children&&e.children.length>0&&i.push.apply(i,Object(c["a"])(t.getNodeItemByUserId(e.children)))})),i},dealUserIntoDept:function(e){var t=Object(c["a"])(this.deptList);t.forEach((function(e){e.key=Object(d["d"])()}));var i=this.handleTree(t),a=Object(c["a"])(e),n=Object(h["groupBy"])(a,"mainDepartment");return Object.keys(n).forEach((function(e){var t=n[e];Object(p["j"])(i,e,t)})),i},handleTreeFilterLoading:function(e,t,i,a){var n=this;t=t||"id",i=i||"parentId",a=a||"children";var r=[];if(e=JSON.parse(JSON.stringify(e)),!Array.isArray(e))return r;var s={};return e.forEach((function(e){s[e[t]]=e})),e.forEach((function(e){var t=s[e[i]];if(t){var o,l=null===(o=t[a])||void 0===o?void 0:o.filter((function(e){return!e.key.startsWith(n.loadingFlag)}));null!==l&&void 0!==l&&l.length?t[a]:t[a]=[],t[a].push(e)}else r.push(e)})),r}}},D=L,M=Object(T["a"])(D,a,n,!1,null,null,null);t["a"]=M.exports},"37c9":function(e,t,i){"use strict";i("d3cb")},"37cf":function(e,t,i){e.exports=i.p+"static/img/friendsSelf-step3-1.e2b666dc.png"},"37fc":function(e,t,i){"use strict";i("b58a")},"381e":function(e,t){},3835:function(e,t,i){"use strict";function a(e){if(Array.isArray(e))return e}i.d(t,"a",(function(){return o}));i("a4d3"),i("e01a"),i("d28b"),i("d3b7"),i("3ca3"),i("ddb0");function n(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a,n,r,s,o=[],l=!0,c=!1;try{if(r=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(a=r.call(i)).done)&&(o.push(a.value),o.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=i["return"]&&(s=i["return"](),Object(s)!==s))return}finally{if(c)throw n}}return o}}var r=i("06c5");function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){return a(e)||n(e,t)||Object(r["a"])(e,t)||s()}},38353:function(e,t,i){e.exports=i.p+"static/img/addCustomerByLink.20e35eb2.png"},38423:function(e,t,i){"use strict";i("0ed7")},"38cf":function(e,t,i){var a=i("23e7"),n=i("1148");a({target:"String",proto:!0},{repeat:n})},"392c":function(e,t,i){},3933:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"show-data-wrapper"},[i("div",{staticClass:"back",on:{click:e.back}},[i("i",{staticClass:"el-icon-arrow-left"}),e._v("返回上一页 ")]),i("div",[i("AppInfo",{attrs:{"app-name":e.appName,"app-sketch":e.appDetail.description,"app-logo":e.appDetail.logoUrl,"show-tip":!1}},[i("el-button",{staticClass:"app-del-btn btn-reset",on:{click:e.open}},[e._v("移除")])],1),i("div",{staticClass:"mt10"},[i("el-tabs",{attrs:{type:"card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"配置管理",name:"set"}},[e.appName.includes("工单")?i("WorkSheetAssistant",{attrs:{"app-detail":e.appDetail}}):e._e()],1)],1)],1)],1)])},n=[],r=i("5530"),s=(i("b0c0"),i("b64b"),i("5ec8")),o=i("d7b1"),l=i("7e38"),c={name:"",components:{AppInfo:s["default"],WorkSheetAssistant:l["default"]},props:{},data:function(){return{empty:!1,activeName:"set",appId:null,appDetail:{},config:{url:""},oldConfig:null}},computed:{appName:function(){return this.appDetail.name||""}},created:function(){this.appId=this.$route.query.appId,this.appId&&this.getDetail(this.appId),this.$route.query.config&&(this.config=Object(r["a"])({url:""},JSON.parse(decodeURIComponent(this.$route.query.config))),this.oldConfig=JSON.parse(decodeURIComponent(this.$route.query.config)))},mounted:function(){},methods:{open:function(){var e=this;this.$confirm("移除后,员工不可再使用该应用,可从应用中心重新添加,是否继续?","操作须知",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(o["a"])({appid:e.appId}).then((function(){e.$message({type:"success",message:"删除成功!"}),e.$router.push({path:"myApp"})}))})).catch((function(){e.msgInfo("已取消删除")}))},back:function(){this.$router.go(-1)},getDetail:function(e){var t=this;Object(o["b"])({appid:e}).then((function(e){t.appDetail=e.data}))},handleInstallApp:function(e){var t=this;Object(o["g"])(e).then((function(){t.oldConfig=t.config,t.$message({message:"配置成功",type:"success"})}))}}},u=c,d=(i("6b05"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"0c43746e",null);t["default"]=p.exports},3943:function(e,t,i){},"395b":function(e,t,i){"use strict";i("b19b")},"39c5":function(e,t,i){e.exports=i.p+"static/img/config-step2-(2)-1.b3ea7ae6.png"},"3a0c":function(e,t,i){},"3a51":function(e,t,i){"use strict";i("94d6")},"3a7c":function(e,t,i){e.exports=i.p+"static/img/login-unauth-bg.846a8397.svg"},"3a7e":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"icons-container"},[e._m(0),i("el-tabs",{attrs:{type:"border-card"}},[i("el-tab-pane",{attrs:{label:"Icons"}},e._l(e.svgIcons,(function(t){return i("div",{key:t},[i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v(" "+e._s(e.generateIconCode(t))+" ")]),i("div",{staticClass:"icon-item"},[i("svg-icon",{attrs:{"icon-class":t,"class-name":"disabled"}}),i("span",[e._v(e._s(t))])],1)])],1)})),0),i("el-tab-pane",{attrs:{label:"Element-UI Icons"}},e._l(e.elementIcons,(function(t){return i("div",{key:t},[i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v(" "+e._s(e.generateElementIconCode(t))+" ")]),i("div",{staticClass:"icon-item"},[i("i",{class:"el-icon-"+t}),i("span",[e._v(e._s(t))])])])],1)})),0)],1)],1)},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("aside",[i("a",{attrs:{href:"#",target:"_blank"}},[e._v("Add and use ")])])}],r=i("c7e9"),s=i("bb49"),o={name:"Icons",data:function(){return{svgIcons:r["default"],elementIcons:s["default"]}},methods:{generateIconCode:function(e){return'<svg-icon icon-class="'.concat(e,'" />')},generateElementIconCode:function(e){return'<i class="el-icon-'.concat(e,'" />')}}},l=o,c=(i("1eb1"),i("2877")),u=Object(c["a"])(l,a,n,!1,null,"129c48a8",null);t["default"]=u.exports},"3aa1":function(e,t){},"3b32":function(e,t,i){},"3b44":function(e,t,i){"use strict";i("3ef8")},"3b4a":function(e,t,i){var a=i("0b07"),n=function(){try{var e=a(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=n},"3bab":function(e,t,i){"use strict";i("a266")},"3be5":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAhCAYAAADDAmudAAAAAXNSR0IArs4c6QAABDNJREFUSA2lVl1sVFUQnrl3t4GiqNUq3f6EUtiFNPKCDxAUMfFBEWIUW8MDhT5BfNQEjURCYhRDfDEh9eeh29ZIY0FMNNFg/OFBNAF/wk+ku93SLumPVm0baN2uu/eOMytzOLvptmV7Xma+uTPfzDkz99wLsMgV6ug9UN0RP1iMBos9WIg9FI29QkRHxNdBbBlujXxYGFdyglC0bweR95kSMlEGHXxyeG/kG7WJdGxwO3p45eovAfELjSGAoE9wqrb7WkhtIktOcOYxzFa6dzVzkvOGkGh5dib1lsGslHxEStLQlbg/lc1e4R1U5GyI5DqwcWhP5JzgknegCfpbVo9xhw8pBiL0fXiHm58rfkEJqqPx/VXR3pMbfqKgIbKUzeXh9xheVhOTb6zp6t8qeN4E1e3xfT5QGxDsHL0U+6Sph1wlUnmiGT3XxQOKRZLnN4mcM0FVR2KDj/SubDsXRLDj7D+xl0QvXJuWhr/iho+pnQ/qmcNEzrxN5pfpBW7gMU2CiDMOBNYPtTb0KZlKPkYuBvYr5oRb5tyBOI60Rtq4imMaxOe7xIPMi4ptyW/zSRsj4FPzJpAAZ1n5yzzRf2gwEjQ39lCZYpVBKjurek4SNZoEszVPnYeaa1NcTadimfmJVN8WxSoHW+tnEOFvxYAUcULtiVo+u+++n46nq9pjv1V39m0yDpaC4J+2ILcEVtnY6IRDRudCHELvA27MVo7g8aN1vu+dmm3eAwEYsAIBfL8uD98EPG/Dxk6w3GHih41BFIIVo1cGZq/OcuSGzjqB3J9bvUH02A8uWnHcS7xelsVkno1BhpwG2+YDDNrY6Ag1qnOvrjuuG9jHrFfFyEVNIjq7pVnqZKRHjxhdfAEHbaw6AdWqzvLP3DblYlp1fKCuIlI/8vNDmLEccqqM5Ph0LCnHd/PZjcrA3VUXW1ZM2751HyXvyaRT42rj0zkREMCV824gmd9FdQMYn4odYqTkEtFdSC7e2X9nHhVpFuJl8x4YY4ESao89zxW8aszSuCC0GWwrBLtsyDfdt0UTHOaLKhTtPcpj182TZiaG9/rG8O7IhTwiBo09Y3fwCG5Xu/Rz85Lwj8UTIPpMm84jR/ghXB9+XUlsOTk1sZPPuVxt3OyP5RovmkAcR/eufY3n+E3RuWGn76y494kz/C0WbK/1Xb8v42LyEqPjvi8+cyYQB/7XOciz3BReGdkee7ryhtgK11/+JJ/orfHkYj4f2bPmV/EzZ1sYtFBcE+1/0KPML+yvE5kKutSYbFmbG8p5dzBXIvkH8iH7qZKLLwIdUXLBuayi3O4KHY/dl02lvubJMVcIv92JpQ84R22uknYgI0xp4L86WqdkfO4TDgaeTWxbk1abyNIS8Ag7SG9z/P8ThTCN4G7j7/Qlm3zROn+cnuOP1VSoM/74osmKEcivY7FnYv8P3MFvreWCPPgAAAAASUVORK5CYII="},"3bfa":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"list"},[e.loading?e._e():i("empty-default-icon",{staticClass:"h100",attrs:{text:"暂无聊天对象",length:e.list.length}},[e.personList.length>=1?i("ul",e._l(e.list,(function(t,a){return i("li",{key:a,class:{liActive:a==e.personIndex},on:{click:function(i){return e.liClick(t,a)}}},[i("el-row",{staticClass:"row-div"},[i("span",{staticClass:"fl"},[i("img",{attrs:{src:t.receiveWeCustomer&&t.receiveWeCustomer.avatar||e.defaultAvatar}})]),i("span",{staticClass:"fl",staticStyle:{"margin-left":"10px"}},[i("p",{staticClass:"intwoline"},[e._v(e._s(t.receiveWeCustomer?t.receiveWeCustomer.name:"")+" ")])]),i("div",{staticClass:"fl"},[t.finalChatContext?i("span",{staticClass:"fl"},[e._v(e._s(e.dealTime(t.finalChatContext.msgtime)))]):e._e()])])],1)})),0):e._e()])],1)},n=[],r=i("e77d"),s=i("3e20"),o=i.n(s),l=i("ed08"),c={components:{EmptyDefaultIcon:r["a"]},props:{personList:{type:Array,default:function(){return[]}},loading:{type:Boolean,defluat:!1}},data:function(){return{loadings:!0,personIndex:-1,defaultAvatar:o.a,list:[]}},watch:{personList:function(e){this.list=e,this.personIndex=-1}},methods:{dealTime:function(e){return Object(l["g"])(e)},liClick:function(e,t){this.personIndex=t,this.$emit("chatFn",e)}}},u=c,d=(i("a4f5"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"43bb7d0c",null);t["default"]=p.exports},"3c6c":function(e,t,i){e.exports=i.p+"static/img/red-packet.efa26785.svg"},"3cb1":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"custom-property-item"},[e.item.type===e.CUSTOMER_PROPERTY_VALUE["singleText"]?i("div",[e.editStatus?i("el-input",{attrs:{maxlength:"32","show-word-limit":""},model:{value:e.item.value,callback:function(t){e.$set(e.item,"value",t)},expression:"item.value"}}):i("div",[e._v(e._s(e.item.value))])],1):e.item.type===e.CUSTOMER_PROPERTY_VALUE["mulText"]?i("div",[e.editStatus?i("el-input",{attrs:{type:"textarea",rows:2,maxlength:"200","show-word-limit":""},model:{value:e.item.value,callback:function(t){e.$set(e.item,"value",t)},expression:"item.value"}}):i("div",[e._v(e._s(e.item.value))])],1):e.item.type===e.CUSTOMER_PROPERTY_VALUE["img"]?i("div",[e.editStatus?i("div",[!e.item.value||(e.item.value&&e.item.value.length)<e.maxUploadCount?i("upload",{attrs:{"only-show-file-name":!0,"upload-txt":"点击上传","upload-btn-type":"primary","file-url":e.fileUrl,"always-show-btn":!0,"custom-file-name":!0},on:{"update:fileUrl":function(t){e.fileUrl=t},"update:file-url":function(t){e.fileUrl=t}}},[i("template",{slot:"tip"},[e._v("支持PNG、JPG格式,图片大小不超过2M")])],2):e._e(),i("div",{staticClass:"img-list-div"},e._l(e.item.value,(function(t,a){return i("div",{key:a,staticClass:"img-item"},[i("i",{staticClass:"el-icon-circle-close",on:{click:function(){return e.removeImg(t)}}}),i("el-image",{staticClass:"img-preview",attrs:{fit:"cover",src:t,"preview-src-list":[t]}})],1)})),0)],1):e.item.value&&e.item.value.length>0?i("div",e._l(e.item.value,(function(e,t){return i("el-image",{key:t,staticClass:"img-preview",attrs:{fit:"cover",src:e,"preview-src-list":[e]}})})),1):e._e()]):e.item.type===e.CUSTOMER_PROPERTY_VALUE["file"]?i("div",[e.editStatus?i("div",[i("upload",{attrs:{"only-show-file-name":!0,"upload-txt":"点击上传","upload-btn-type":"primary","always-show-btn":!0,multiple:"","file-list":e.fileList,"show-file-list":!0,"upload-success":e.uploadSuccess,"on-remove":e.onRemoveFile,"custom-file-name":!0,limit:e.maxUploadCount,"on-exceed":e.onExceed,type:e.MEDIA_TYPE_FILE},on:{"update:fileList":function(t){e.fileList=t},"update:file-list":function(t){e.fileList=t}}},[i("template",{slot:"tip"},[e._v("支持doc、pdf、ppt等格式,文件大小不超过20M")])],2)],1):i("div",{staticClass:"file-preview-list"},e._l(e.item.value,(function(t,a){return i("div",{key:a,staticClass:"file-preview-item",on:{click:function(i){return e.downloadFile(t.url)}}},[e._v(" "+e._s(t.name)+" ")])})),0)]):e.item.type!==e.CUSTOMER_PROPERTY_VALUE["singleRadio"]||e.selectSingleRadio?e.item.type===e.CUSTOMER_PROPERTY_VALUE["singleRadio"]&&e.selectSingleRadio?i("div",[i("el-select",{attrs:{placeholder:"请选择"+e.item.name,clearable:""},model:{value:e.item.optionValue,callback:function(t){e.$set(e.item,"optionValue",t)},expression:"item.optionValue"}},e._l(e.item.optionList,(function(e,t){return i("el-option",{key:t,attrs:{label:e.multipleValue,value:e.id}})})),1)],1):e.item.type===e.CUSTOMER_PROPERTY_VALUE["selectSingle"]?i("div",[e.editStatus?i("el-select",{attrs:{placeholder:"请选择"+e.item.name,clearable:""},model:{value:e.item.optionValue,callback:function(t){e.$set(e.item,"optionValue",t)},expression:"item.optionValue"}},e._l(e.item.optionList,(function(e,t){return i("el-option",{key:t,attrs:{label:e.multipleValue,value:e.id}})})),1):i("div",[e._v(" "+e._s(e.item.value)+" ")])],1):e.item.type===e.CUSTOMER_PROPERTY_VALUE["mulRadio"]?i("div",[e.editStatus?i("el-checkbox-group",{model:{value:e.item.optionValue,callback:function(t){e.$set(e.item,"optionValue",t)},expression:"item.optionValue"}},e._l(e.item.optionList,(function(t,a){return i("el-checkbox",{key:a,attrs:{label:t.id}},[e._v(" "+e._s(t.multipleValue)+" ")])})),1):e._l(e.item.value,(function(t,a){return i("el-tag",{key:a,attrs:{type:"info"}},[e._v(e._s(t))])}))],2):e.item.type===e.CUSTOMER_PROPERTY_VALUE["dateField"]?i("div",[e.editStatus?[e.isCustomerScoped?i("el-date-picker",{staticStyle:{width:"240px"},attrs:{"value-format":"yyyy-MM-dd HH:mm",type:"datetimerange",format:"yyyy-MM-dd HH:mm","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期","prefix-icon":"el-icon-date"},model:{value:e.item.value,callback:function(t){e.$set(e.item,"value",t)},expression:"item.value"}}):i("el-date-picker",{attrs:{type:"datetime",placeholder:"请选择日期时间","value-format":"yyyy-MM-dd HH:mm",format:"yyyy-MM-dd HH:mm"},model:{value:e.item.value,callback:function(t){e.$set(e.item,"value",t)},expression:"item.value"}})]:i("span",[e._v(e._s(e.item.value))])],2):i("div",[e._v(e._s(e.item.value))]):i("div",[e.editStatus?i("el-radio-group",{model:{value:e.item.optionValue,callback:function(t){e.$set(e.item,"optionValue",t)},expression:"item.optionValue"}},e._l(e.item.optionList,(function(t,a){return i("el-radio",{key:a,attrs:{label:t.id}},[e._v(" "+e._s(t.multipleValue)+" ")])})),1):i("div",[e._v(" "+e._s(e.item.value)+" ")])],1)])},n=[],r=i("5530"),s=i("2909"),o=(i("4de4"),i("b0c0"),i("a9e3"),i("d3b7"),i("dd70")),l=i("989b"),c=i("ed08"),u=9,d={name:"",components:{},props:{item:{type:Object,default:function(){return{optionValue:[],optionList:[]}}},editStatus:{type:Boolean,default:!1},list:{type:Array,default:function(){return[]}},index:{type:Number,default:-1},selectSingleRadio:{type:Boolean,default:!1},isCustomerScoped:{type:Boolean,default:!1}},data:function(){return{CUSTOMER_PROPERTY_VALUE:o["B"],MEDIA_TYPE_FILE:o["Zb"],fileUrl:"",fileList:[],maxUploadCount:u}},watch:{fileUrl:function(e){var t,i=Object(s["a"])(this.list),a=(null===(t=this.item)||void 0===t?void 0:t.value)||[];a.push(e),i[this.index]=Object(r["a"])(Object(r["a"])({},this.item),{},{value:a}),this.$emit("update:list",i)},editStatus:function(e){e&&this.item.type===o["B"]["file"]&&this.item.value&&(this.fileList=Object(c["h"])(Object(s["a"])(this.item.value)))}},created:function(){},mounted:function(){},methods:{removeImg:function(e){var t,i=Object(s["a"])(this.list),a=(null===(t=this.item)||void 0===t?void 0:t.value)||[];a=a.filter((function(t){return t!==e})),i[this.index]=Object(r["a"])(Object(r["a"])({},this.item),{},{value:a}),this.$emit("update:list",i)},uploadSuccess:function(e,t){var i,a=Object(s["a"])(this.list),n=(null===(i=this.item)||void 0===i?void 0:i.value)||[];n.push({url:t.url,name:e.name,content:e.size}),a[this.index]=Object(r["a"])(Object(r["a"])({},this.item),{},{value:n}),this.$emit("update:list",a)},downloadFile:function(e){Object(l["a"])(e)},onRemoveFile:function(e,t){var i=Object(s["a"])(this.list);i[this.index]=Object(r["a"])(Object(r["a"])({},this.item),{},{value:t}),this.$emit("update:list",i)},onExceed:function(e,t){this.msgWarn("最多可上传".concat(this.maxUploadCount,"个"))}}},p=d,f=(i("453c"),i("2877")),A=Object(f["a"])(p,a,n,!1,null,"37b29540",null);t["default"]=A.exports},"3cb6":function(e,t,i){e.exports=i.p+"static/img/default-avatar.8e4a4eea.svg"},"3cc7":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"un-config-chat"},[a("div",{staticClass:"header"},[a("img",{attrs:{src:e.icon,height:140}}),a("div",{staticClass:"right"},[a("div",{staticClass:"title"},[e._v(e._s(e.moduleTile))]),a("div",{staticClass:"desc"},[e._v(e._s(e.moduleDesc))])])]),a("div",{staticClass:"content"},[e.configAlertTip?a("el-alert",{attrs:{title:e.configAlertTip,type:"warning","show-icon":"",closable:!1}}):e._e(),e._m(0),a("div",{staticClass:"tip-item"},[a("div",{staticClass:"title section-title-border"},[e._v("未开通")]),e.$store.state.serverInfo.serverType===e.serverTypeThird?a("div",{staticClass:"des"},[e._v("若您未在企业微信开通会话存档功能,请扫描以下二维码,添加客服,免费咨询开通事宜。")]):e._e(),e.$store.state.serverInfo.serverType===e.serverTypeInternal?a("div",{staticClass:"des"},[e._v("若您未在企业微信开通会话存档功能,请联系客服咨询开通事宜。")]):e._e(),e.$store.state.serverInfo.serverType===e.serverTypeThird?a("div",{staticClass:"customer-service"},[a("img",{attrs:{src:i("486d"),width:"220"}}),a("div",[e._v("扫码添加客服")])]):e._e()])],1)])},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tip-item"},[i("div",{staticClass:"title section-title-border"},[e._v("已开通")]),i("div",{staticClass:"des"},[e._v("若您已在企业微信开通会话存档功能,且您有系统设置的操作权限,请前往【系统设置】-【企微设置】,根据客户联系下的“如何获取”提示,完成会话存档的配置。")])])}],r=i("e2f7"),s=i.n(r),o=i("dd70"),l={components:{},props:{icon:{type:String,default:s.a},moduleTile:{type:String,default:""},moduleDesc:{type:String,default:""},configAlertTip:{type:String,default:""}},data:function(){return{serverTypeThird:o["bd"],serverTypeInternal:o["ad"]}},methods:{}},c=l,u=(i("99524"),i("2877")),d=Object(u["a"])(c,a,n,!1,null,"64f2a45c",null);t["default"]=d.exports},"3cda":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"contact-demo enterprise-wechat-demo"},[a("div",[a("el-steps",{staticClass:"step-div",attrs:{active:e.active,"align-center":""}},[a("el-step",{attrs:{title:"申请会话存档",description:"上传开通确认函"}}),a("el-step",{attrs:{title:"获取会话存档Secret",description:"完成会话存档配置"}})],1)],1),e.active===e.FIRST_STEP?a("div",{staticClass:"content-div"},[a("div",{staticClass:"part"},[a("div",{staticClass:"content-text"},[e._v("会话存档功能为企业微信的收费功能,可免费试用30天,进入 "),a("el-link",{attrs:{type:"primary",href:"https://work.weixin.qq.com/wework_admin/frame#financial/corpEncryptData",target:"_blank"}},[e._v("【管理工具】-【会话内容存档】")]),e._v(",上传《企业微信会话内容存档开通确认函》开启。 ")],1),a("el-image",{staticClass:"part-img",attrs:{src:i("b175"),"preview-src-list":[i("b175")]}})],1)]):e._e(),e.active===e.SECOND_STEP?a("div",{staticClass:"content-div"},[e._m(0),a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v(" (2)消息加密公钥。 ")]),a("div",{staticClass:"content-text"},[e._v(" 点击“消息加密公钥”旁设置按钮,根据提示进行管理员身份认证。认证后,将以下公钥复制到弹窗中保存即可。")]),a("div",{staticClass:"copy-content"},[e.PUBLIC_KEY?a("div",{staticClass:"content-text-box",staticStyle:{width:"606px"}},[e._v(" "+e._s(e.PUBLIC_KEY_BEGIN)),a("br"),e._v(" "+e._s(e.PUBLIC_KEY)+" "),a("br"),e._v(e._s(e.PUBLIC_KEY_END)+" ")]):a("div",{staticClass:"content-text-box",staticStyle:{width:"606px"}},[e._v(" 未配置公钥,请联系运维/技术 ")]),e.PUBLIC_KEY?a("el-button",{directives:[{name:"copy",rawName:"v-copy",value:e.showPublicKey,expression:"showPublicKey"}],attrs:{size:"mini",type:"text"}},[e._v("复制")]):e._e()],1)]),a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v(" (3)获取会话内容存档Secret。 ")]),a("div",{staticClass:"content-text"},[e._v(" 点击Secret旁“查看”按钮,即可收到“企业微信团队”发出的消息,查看并复制会话内容存档Secret。")]),a("el-image",{staticClass:"part-img",attrs:{src:i("8044"),"preview-src-list":[i("8044")]}})],1)]):e._e(),a("div",{staticClass:"btn-div"},[e.active!=e.FIRST_STEP?a("el-button",{staticStyle:{"margin-top":"12px"},on:{click:e.previousStep}},[e._v("上一步")]):e._e(),a("el-button",{staticStyle:{"margin-top":"12px"},attrs:{type:"primary"},on:{click:e.next}},[e._v(e._s(e.STEP_TEXT[e.active]))])],1)])},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"part"},[i("div",{staticClass:"content-title"},[e._v(" (1)设置可信IP地址。 ")]),i("div",{staticClass:"content-text"},[e._v("将EasyInk的IP地址加入可信IP地址(如没有部署在本地,则联系客服获取IP)。")])])}],r=i("c7eb"),s=i("1da1"),o=(i("99af"),i("dd70")),l=i("2502"),c={components:{},props:{},data:function(){return{active:o["V"],STEP_TEXT:o["T"],PUBLIC_KEY:"",PUBLIC_KEY_BEGIN:o["Oc"],PUBLIC_KEY_END:o["Pc"],FIRST_STEP:o["V"],SECOND_STEP:o["Yc"]}},computed:{showPublicKey:function(){return"".concat(this.PUBLIC_KEY_BEGIN,"\n").concat(this.PUBLIC_KEY,"\n").concat(this.PUBLIC_KEY_END)}},watch:{},created:function(){},methods:{next:function(){this.active===o["V"]?this.active=o["Yc"]:this.$emit("closeDrawer")},previousStep:function(){this.active=o["V"]},getPublicKey:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var i;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(l["a"])();case 2:i=t.sent,e.PUBLIC_KEY=i;case 4:case"end":return t.stop()}}),t)})))()}}},u=c,d=(i("a448"),i("601f"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"331909af",null);t["default"]=p.exports},"3ce9":function(e,t,i){},"3cf1":function(e,t,i){e.exports=i.p+"static/img/qrCodeImage.a6d01316.png"},"3d08":function(e,t,i){"use strict";i("652d")},"3d09":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"mask-div",on:{click:e.onSelect}},[e.filemask?e._e():i("div",{class:"check-container"+(e.onChecked?" checked-tool":"")},[i("div",{staticClass:"left-tool"},[i("el-checkbox",{attrs:{value:e.onChecked},on:{change:e.onSelect}})],1)]),e.filemask?i("div",{staticClass:"file-mask-content"},[i("div",{staticClass:"operate-right"},[e._l(e.toolList,(function(t,a){return[e.fileObj[t]?i("i",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:e.dealPermission(t),expression:"dealPermission(item)"}],key:a,class:"iconfont icon-"+t,attrs:{title:e.fileObj[t]},on:{click:function(i){return i.stopPropagation(),e.onClickTool(t)}}}):e._e()]}))],2)]):i("div",{staticClass:"mask-content"},[i("div",{staticClass:"right-tool"},[e._l(e.toolList,(function(t,a){return[i("div",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:e.dealPermission(t),expression:"dealPermission(item)"}],key:a,staticClass:"tool-item",on:{click:function(i){return i.stopPropagation(),e.onClickTool(t)}}},[e.fileObj[t]?i("i",{class:"iconfont icon-"+t,attrs:{title:e.fileObj[t]}}):e._e()])]}))],2)])])},n=[],r=i("c7eb"),s=i("5530"),o=i("1da1"),l=(i("caad"),i("d3b7"),i("9094")),c=i("989b"),u={name:"MaskItem",components:{},props:{filemask:{type:Boolean,default:!1},toolList:{type:Array,default:function(){return["download","publish","edit","remove"]}},selectedMaterialList:{type:Array,default:function(){return[]}},materialItem:{type:Object,default:function(){}},mediaType:{type:String,default:""}},data:function(){return{fileObj:{download:"下载",publish:"发布",published:"已发布",edit:"编辑",remove:"删除",preview:"预览",restore:"恢复"}}},computed:{onChecked:function(){var e=this;return this.selectedMaterialList&&this.selectedMaterialList.some((function(t){return e.materialItem.id===t.id}))}},watch:{},mounted:function(){},methods:{dealPermission:function(e){var t={edit:"edit",remove:"remove",publish:"publish",published:"publish"},i=t[e];if(i&&["edit","remove","publish"].includes(i)){var a="wechat:material:"+i;return[a]}return[]},onSelect:function(){this.$emit("selectMaterial")},onClickTool:function(e){switch(e){case"published":case"publish":this.onPublish();break;case"edit":this.$emit("openMaterialDialog",this.materialItem);break;case"remove":this.onDelete();break;case"preview":this.$emit("onPreview");break;case"download":Object(c["a"])(this.materialItem.materialUrl);break;case"restore":this.onRestore();break}},onPublish:function(){var e=this,t=!this.materialItem.showMaterial;this.confirmModal({msg:t?"即将发布选中的素材到侧边栏给员工使用,是否继续?":"将选中的素材从侧边栏【素材库】移除,是否继续?"},Object(o["a"])(Object(r["a"])().mark((function i(){var a;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,Object(l["n"])({ids:e.materialItem.id,showMaterial:t,mediaType:e.mediaType});case 2:a=i.sent,a&&(e.msgSuccess(t?"已发布到侧边栏【素材库】":"已取消发布"),e.$emit("changeList",Object(s["a"])(Object(s["a"])({},e.materialItem),{},{showMaterial:t})));case 4:case"end":return i.stop()}}),i)}))))},onDelete:function(){var e=this;return Object(o["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.confirmModal({msg:"选中素材将被删除,是否继续?"},Object(o["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:Object(l["k"])({ids:e.materialItem.id,mediaType:e.mediaType}).then((function(t){e.msgSuccess("删除成功"),e.$emit("getList")}));case 1:case"end":return t.stop()}}),t)}))));case 1:case"end":return t.stop()}}),t)})))()},onRestore:function(){var e=this;this.confirmModal({msg:"即将把过期素材恢复到素材库,如需发布到侧边栏,请在素材库操作,是否继续?"},Object(o["a"])(Object(r["a"])().mark((function t(){var i;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(l["m"])({ids:e.materialItem.id&&e.materialItem.id.split(","),mediaType:e.mediaType});case 2:i=t.sent,i&&(e.msgSuccess("恢复成功"),e.$emit("getList"));case 4:case"end":return t.stop()}}),t)}))))}}},d=u,p=(i("81ba"),i("2877")),f=Object(p["a"])(d,a,n,!1,null,"469e2eaa",null);t["a"]=f.exports},"3d52":function(e,t,i){},"3d67":function(e,t,i){},"3d6f":function(e,t,i){},"3d7e":function(e,t,i){},"3d91":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-drawer",{attrs:{title:"分配失败","before-close":e.handleClose,size:"780px",visible:e.visible}},[a("div",{staticClass:"inherit-fail-drawer"},[a("p",[e._v("需要确认以下内容:")]),a("p",[e._v(" 1. "),a("el-link",{attrs:{type:"primary",href:"https://work.weixin.qq.com/wework_admin/frame#apps",target:"_blank"}},[e._v("企业微信后台【应用管理】")]),e._v("下联络易应用中可见范围有包含接替员工,如图所示。 "),a("el-image",{staticClass:"part-img",attrs:{src:i("1e36"),"preview-src-list":[i("1e36")]}})],1),a("p",[e._v(" 2. "),a("el-link",{attrs:{type:"primary",href:"https://work.weixin.qq.com/wework_admin/frame#customer/group",target:"_blank"}},[e._v("企业微信后台【客户联系】")]),e._v("下客户联系的使用范围包含接替员工,如图所示。 "),a("el-image",{staticClass:"part-img",attrs:{src:i("8c9f"),"preview-src-list":[i("8c9f")]}})],1),a("p",[e._v("3. 接替员工已激活且完成实名认证。")])])])},n=[],r={name:"",props:{visible:{type:Boolean,default:!1}},data:function(){return{}},methods:{handleClose:function(){this.$emit("update:visible",!1)}}},s=r,o=(i("a882"),i("2877")),l=Object(o["a"])(s,a,n,!1,null,"0c3e6c5b",null);t["default"]=l.exports},"3d91f":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.loading?i("div",{staticClass:"delay-icon"},[i("i",{staticClass:"el-icon-loading"})]):i("div",{staticClass:"enterprise-wechat-config"},[i("div",[e.isSelfCreate?[i("div",[i("SelfListComponent")],1)]:[i("el-alert",{staticClass:"warn-tip",attrs:{title:"请根据配置教程完成以下打*的配置,否则可能导致系统功能异常。",type:"warning","show-icon":""}}),i("div",{staticClass:"step-item"},[i("HeaderComponent",{ref:"contactHeaderRef",attrs:{title:"通讯录",tip:"如何获取?","drawer-title":"如何获取通讯配置内容",type:"contact",extra:"步骤太繁琐?我要快捷配置","extra-title":"快捷配置","config-id":e.form.id,form:e.form,"default-domain":e.defaultDomain},on:{getNowConfig:e.getNowConfig}}),i("ConfigItemComponent",{attrs:{params:[{label:"企业ID",type:"input",required:!0,field:"corpId"},{label:"应用ID",type:"input",required:!0,field:"agentId"},{label:"应用Secret",type:"input",required:!0,field:"agentSecret"},{label:"通讯录Secret",type:"input",required:!0,field:"contactSecret",btnText:"保存",btnType:"saveAll"}],tip:"用于企业员工扫码登录系统,获取企业下员工和部门的信息",form:e.form,"old-form":e.oldForm},on:{getNowConfig:e.getNowConfig}})],1),i("div",{staticClass:"step-item"},[i("HeaderComponent",{attrs:{title:"接收消息",tip:"如何配置?","drawer-title":"如何配置接收消息",type:"receive"}}),i("ConfigItemComponent",{attrs:{params:[{label:"回调地址",type:"input",btnText:"复制",btnType:"copy",required:!0,field:"callbackUri",iconLabel:"el-icon-question",toolTipText:"拼接规则为【http://ip:port/wecom/callback/receive】,若有变更端口号,请自行替换。"},{label:"Token",type:"input",btnText:"复制",btnType:"copy",required:!0,field:"token"},{label:"EncodingAESKey",type:"input",btnText:"复制",btnType:"copy",required:!0,field:"encodingAesKey"}],tip:"当外部联系人变更或企业信息变更,主动推送通知给应用。",form:e.form}})],1),i("div",{staticClass:"step-item"},[i("HeaderComponent",{attrs:{title:"客户联系",tip:"如何获取?","drawer-title":"如何获取客户联系配置内容",type:"customer"}}),i("ConfigItemComponent",{attrs:{params:[{label:"会话存档Secret",type:"input",btnText:"保存",btnType:"save",required:!1,field:"chatSecret"}],tip:"用于管理企业客户、客户群等,可查看员工的聊天记录并做企业风控。",form:e.form},on:{getNowConfig:e.getNowConfig}})],1),i("div",{staticClass:"step-item"},[i("HeaderComponent",{attrs:{title:"聊天工具栏",tip:"如何配置?","drawer-title":"如何配置聊天工具栏",type:"chat","default-domain":e.defaultDomain}}),i("ConfigItemComponent",{attrs:{params:[{label:"Sidebar服务域名",placeholder:"请输入Sidebar服务域名,需与企微后台一致,例http://www.easyink.net:8092",type:"input",btnText:"保存",btnType:"save",field:"h5DoMainName",disabledInput:e.isThirdType},{label:"域名校验文件",type:"upload",required:!1,field:"chatSecret"},{label:"素材库",type:"input",btnText:"复制",btnType:"copy",required:!1,field:"materialUrl"},{label:"客户画像",type:"input",btnText:"复制",btnType:"copy",required:!1,field:"customerPortrait"},{label:"应用工具",type:"input",btnText:"复制",btnType:"copy",required:!1,field:"applicationTools"}],tip:"用于配置企业微信客户端侧边工具栏页面",form:e.form},on:{getNowConfig:e.getNowConfig}})],1),i("el-dialog",{staticClass:"quick-config-dialog",attrs:{"append-to-body":!1,title:"快捷配置",visible:e.dialogVisible,width:"450px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("i",{staticClass:"iconfont icon-arrow"}),i("div",{staticClass:"quick-tip"},[e._v(" 第一次配置系统,可使用快捷配置,仅需 "),i("span",{staticClass:"green theme-text-color"},[e._v("3")]),e._v(" 步就可快速接入企业微信,实现员工扫码登录,现在进入快捷配置? ")]),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("不,我要手动配置")]),i("el-button",{attrs:{type:"primary"},on:{click:e.onGotoAutoConfig}},[e._v("好的,现在就去")])],1)])]],2)])},n=[],r=i("5530"),s=i("c7eb"),o=i("1da1"),l=(i("99af"),i("fb6a"),i("2ff4")),c=i("4073"),u=i("d87a"),d=i("8bd6"),p=i("dd70"),f=i("50fc"),A={components:{HeaderComponent:c["default"],ConfigItemComponent:u["default"],SelfListComponent:d["default"]},props:{},data:function(){return{query:{pageNum:1,pageSize:1,companyName:"",status:0},loading:!0,form:{},oldForm:{},dialogVisible:!1,defaultDomain:{dashboard:"",scrm:"",sidebar:""},isThirdType:this.$store.state.serverInfo&&this.$store.state.serverInfo.serverType===p["bd"],isSelfCreate:!1}},computed:{},watch:{},created:function(){this.isCustomizedApp()},mounted:function(){this.isThirdType&&this.getDefaultDomain()},methods:{isCustomizedApp:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.loading=!1,e.isSelfCreate=!!e.$store.state.serverInfo.dkCorp,e.isSelfCreate||e.checkGuide();case 3:case"end":return t.stop()}}),t)})))()},checkGuide:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.getNowConfig();case 3:if(i=t.sent,i&&i.data){t.next=7;break}return e.dialogVisible=!0,t.abrupt("return");case 7:i.data.agentId||(e.dialogVisible=!0),t.next=13;break;case 10:t.prev=10,t.t0=t["catch"](0),t.t0.code===p["Ac"]&&(e.dialogVisible=!0);case 13:case"end":return t.stop()}}),t,null,[[0,10]])})))()},getDefaultDomain:function(){var e=this;Object(f["e"])().then((function(t){e.defaultDomain=t.data}))},initCallBackUri:function(){var e="".concat(window.location.protocol,"//").concat(window.location.hostname);this.form.callbackUri||(this.form.callbackUri=this.isThirdType?this.defaultDomain.scrm+"/wecom/callback/recive":e+":8090/wecom/callback/recive")},dealFormData:function(e){this.form.certFileName=e.certFilePath?e.certFilePath.slice(e.certFilePath.lastIndexOf("/")+1):"",this.initCallBackUri();var t="https://open.weixin.qq.com/connect/oauth2/authorize?appid=".concat(e.corpId,"&redirect_uri=").concat(encodeURIComponent(e.h5DoMainName),"%2F%23%2F"),i="&response_type=code&scope=snsapi_base&state=".concat(e.corpId,"#wechat_redirect");this.form.materialUrl="".concat(t,"chat").concat(i),this.form.customerPortrait="".concat(t,"portrait").concat(i),this.form.applicationTools="".concat(t,"applicationSet").concat(i)},getNowConfig:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i,a;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,l["e"]({});case 3:if(i=t.sent,i.data){t.next=6;break}return t.abrupt("return");case 6:return e.$store.dispatch("UpdateConfig",i.data),a=i.data||{},e.form=Object(r["a"])({},a),e.oldForm=Object(r["a"])({},a),e.dealFormData(e.form),t.abrupt("return",i);case 14:t.prev=14,t.t0=t["catch"](0),e.initCallBackUri(),t.t0.code!==p["Ac"]&&t.t0.msg&&e.msgError(t.t0.msg);case 18:case"end":return t.stop()}}),t,null,[[0,14]])})))()},onGotoAutoConfig:function(){this.dialogVisible=!1,this.$refs.contactHeaderRef.extraDrawer=!0}}},h=A,m=(i("b9df"),i("2877")),g=Object(m["a"])(h,a,n,!1,null,"43898235",null);t["default"]=g.exports},"3da4":function(e,t,i){"use strict";i("bf24")},"3db2":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{inline:!0,"label-width":"70px"}},[i("el-form-item",{attrs:{label:"离职日期"}},[i("el-date-picker",{attrs:{type:"daterange","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),i("el-form-item",{attrs:{label:""}},[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.getList(1)}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"data",fn:function(){return[i("el-tabs",{on:{"tab-click":e.changeTab},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},[i("el-tab-pane",{attrs:{label:"已分配客户",name:"customer"}},["customer"===e.active?i("AllocatedStaffDetailList",{ref:"customer",attrs:{"date-range":e.dateRange,"modify-button-status":e.modifyButtonStatus}}):e._e()],1),i("el-tab-pane",{attrs:{label:"已分配客户群",name:"group"}},["group"===e.active?i("AllocatedStaffDetailList",{ref:"group",attrs:{"date-range":e.dateRange,type:"group","modify-button-status":e.modifyButtonStatus}}):e._e()],1)],1)]},proxy:!0}])})},n=[],r=i("5530"),s=i("d382"),o=i("b66d"),l=i("e2e0"),c={name:"AllocatedStaffDetail",components:{AllocatedStaffDetailList:s["default"],RightContainer:o["a"]},mixins:[l["a"]],props:{},data:function(){return{active:"customer",dateRange:[]}},computed:{},watch:{},created:function(){},mounted:function(){this.active=this.$route.query.type||"customer"},methods:{getList:function(){this.$refs[this.active]&&this.$refs[this.active].getList(1)},resetForm:function(){this.dateRange=[],this.getList()},resetQuery:function(){this.resetForm("queryForm")},changeTab:function(){this.getList();var e=Object(r["a"])(Object(r["a"])({},this.$route.query),{},{type:this.active});this.$router.push({path:this.$route.path,query:e})}}},u=c,d=(i("4910"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"91ca5ce2",null);t["default"]=p.exports},"3df5":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"contact-demo enterprise-wechat-demo"},[a("div",[a("el-steps",{staticClass:"step-div",attrs:{active:e.active,"align-center":""}},[a("el-step",{attrs:{title:"配置可信域名",description:"配置侧边栏可访问的可信域名"}}),a("el-step",{attrs:{title:"配置侧边栏",description:"企微后台配置侧边栏访问地址"}})],1)],1),0===e.active?a("div",{staticClass:"content-div"},[a("div",{staticClass:"part"},[e.isThirdType?a("div",{staticClass:"content-title"},[e._v("(1)域名备案:"+e._s(e.replaceUrl(e.defaultDomain.sidebar)))]):a("div",[a("div",{staticClass:"content-title"},[e._v("(1)域名备案。")]),a("div",{staticClass:"content-text"},[e._v("如果WeComSidebar部署在本地,将服务映射到完成备案的域名,如 www.easyink.net:8092。")])])]),a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v("(2)应用配置可信域名。")]),a("div",{staticClass:"content-text"},[e._v("进入 "),a("el-link",{attrs:{type:"primary",href:"https://work.weixin.qq.com/wework_admin/frame#apps",target:"_blank"}},[e._v("【应用管理】")]),e._v(" ,找到并进入联络易应用,滑至页面底部,点击【网页授权及JS-SDK】,打开弹窗,将在(1)中准备的域名填入表单。 ")],1),a("el-image",{staticClass:"part-img",attrs:{src:i("e939"),"preview-src-list":[i("e939")]}})],1),a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v("(3)校验域名。")]),a("div",{staticClass:"content-text"},[e._v(" 填写完域名后点击“申请校验域名”,将校验文件下载到本地,在表单中上传,回到弹窗中点击确定按钮,完成验证。 ")]),a("el-image",{staticClass:"part-img",attrs:{src:i("7871"),"preview-src-list":[i("7871")]}})],1)]):e._e(),1===e.active?a("div",{staticClass:"content-div"},[e._m(0),e._m(1),a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v("(3)登录企业微信后台 "),a("el-link",{attrs:{type:"primary",href:"https://work.weixin.qq.com/wework_admin/frame#apps",target:"_blank"}},[e._v("【应用管理】")]),e._v(" ,进入联络易应用,点击“配置”聊天工具栏。")],1),a("el-image",{staticClass:"part-img",attrs:{src:i("ba93"),"preview-src-list":[i("ba93")]}})],1),a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v("(4)点击“配置页面”按钮,将【聊天工具栏】生成的链接分别复制并填入弹窗,完成配置。")]),a("el-image",{staticClass:"part-img",attrs:{src:i("8852"),"preview-src-list":[i("8852")]}})],1)]):e._e(),a("div",{staticClass:"btn-div"},[0!=e.active?a("el-button",{staticStyle:{"margin-top":"12px"},on:{click:e.previousStep}},[e._v("上一步")]):e._e(),a("el-button",{staticStyle:{"margin-top":"12px"},attrs:{type:"primary"},on:{click:e.next}},[e._v(e._s(e.STEP_TEXT[e.active]))])],1)])},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"part"},[i("div",{staticClass:"content-title"},[e._v("(1)将上一步完成校验的域名拼接上http://或https://,填入【聊天工具栏】配置表单并保存。")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"part"},[i("div",{staticClass:"content-title"},[e._v("(2)可信域名链接配置后,自动生成素材库和客户画像的链接。")])])}],r=i("dd70"),s=i("cf45"),o={components:{},props:{defaultDomain:{type:Object,default:function(){}}},data:function(){return{active:0,STEP_TEXT:{0:"完成验证,下一步",1:"已配置,完成"},isThirdType:this.$store.state.serverInfo&&this.$store.state.serverInfo.serverType===r["bd"]}},computed:{},watch:{},created:function(){},methods:{next:function(){1!==this.active?this.active=this.active+1:this.$emit("closeDrawer")},previousStep:function(){this.active--<0&&(this.active=2)},replaceUrl:function(e){return Object(s["O"])(e)}}},l=o,c=(i("420c"),i("2877")),u=Object(c["a"])(l,a,n,!1,null,"38648512",null);t["default"]=u.exports},"3e34":function(e,t,i){"use strict";i("b95d")},"3e60":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("ReturnPage",{staticClass:"mb10"}),i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{inline:!0,model:e.query,"label-width":"100px"}},[i("el-form-item",{attrs:{prop:"customerName"}},[i("el-input",{attrs:{placeholder:"请输入客户昵称"},model:{value:e.query.customerName,callback:function(t){e.$set(e.query,"customerName",t)},expression:"query.customerName"}})],1),i("el-form-item",{attrs:{prop:"takeoverUsername"}},[i("el-input",{attrs:{placeholder:"请输入接替员工姓名"},model:{value:e.query.takeoverUsername,callback:function(t){e.$set(e.query,"takeoverUsername",t)},expression:"query.takeoverUsername"}})],1),i("el-form-item",[i("el-select",{attrs:{placeholder:"请选择接替状态",clearable:""},model:{value:e.query.status,callback:function(t){e.$set(e.query,"status",t)},expression:"query.status"}},e._l(e.inheritStatusOption,(function(e){var t=e[0],a=e[1];return i("el-option",{key:a,attrs:{label:a,value:t}})})),1)],1),i("el-form-item",[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),i("el-form-item",{attrs:{label:" "}},[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.handleQuery()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetForm()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",attrs:{data:e.list,"tooltip-effect":"dark",align:"left","highlight-current-row":""},on:{"selection-change":function(t){return e.selectedCustomers=t}}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{text:"暂无数据"}})],1),i("el-table-column",{attrs:{label:"客户"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",{staticClass:"customer-info",on:{click:function(t){return e.goRoute(a)}}},[i("img",{attrs:{src:a.avatar}}),i("div",[i("div",{attrs:{title:a.customerName+e.renderUserInfo(a)}},[i("span",[e._v(e._s(a.customerName))]),i("span",{style:{color:e.isWXType(a.customerType)?"#38AF70":"#F2A622","margin-left":"2px"}},[e._v(" "+e._s(e.renderUserInfo(a))+" ")])])])])]}}])}),i("el-table-column",{attrs:{label:"原跟进员工"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"al"},[i("div",{staticClass:"cus-owner"},[e._v(e._s(t.row.hanoverUsername))]),i("div",{staticClass:"cus-dept"},[e._v(e._s(t.row.handoverDepartmentName))])])]}}])}),i("el-table-column",{attrs:{label:"接替员工"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"al"},[i("div",{staticClass:"cus-owner"},[e._v(e._s(t.row.takeoverUsername))]),i("div",{staticClass:"cus-dept"},[e._v(e._s(t.row.takeoverDepartmentName))])])]}}])}),i("el-table-column",{attrs:{label:"接替状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.getInheritStatus(t.row.status))+" ")]}}])}),i("el-table-column",{attrs:{prop:"transferTime",label:"分配时间"}}),i("el-table-column",{attrs:{prop:"remark",label:"备注"}})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,disabled:e.loading,page:e.query.pageNum,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}})]},proxy:!0}])})],1)},n=[],r=i("5530"),s=i("ade3"),o=(i("99af"),i("4fadc"),i("d3b7"),i("ed08")),l=i("cf45"),c=i("dd70"),u=i("e753"),d=i("e2e0"),p=i("cf80"),f=i("b66d"),A=i("e77d"),h=i("aa50"),m={pageNum:1,pageSize:c["Ic"]},g=Object(s["a"])(Object(s["a"])(Object(s["a"])({},c["Eb"],"接替成功"),c["Fb"],"接替中"),"".concat(c["Gb"],",").concat(c["Hb"],",").concat(c["Db"]),"接替失败"),v=Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])({},c["Eb"],"接替成功"),c["Fb"],"接替中"),c["Gb"],"接替失败"),c["Hb"],"接替失败"),c["Db"],"接替失败"),b={name:"",components:{RightContainer:f["a"],EmptyDefaultIcon:A["a"],ReturnPage:h["a"]},mixins:[d["a"]],props:{},data:function(){return{query:Object(r["a"])({},m),total:1,loading:!1,list:[],dateRange:[],inheritStatusOption:Object.entries(g)}},created:function(){this.getList()},mounted:function(){},methods:{goRoute:function(e){Object(o["l"])(this.$router,u["b"],this.query,{id:e.externalUserid,userId:e.userId,prePageType:"customer"})},getList:function(){var e=this,t=Object(r["a"])(Object(r["a"])({},this.query),{},{beginTime:this.dateRange[0],endTime:this.dateRange[1]});this.loading=!0,Object(p["c"])(t).then((function(t){var i=t.rows,a=t.total;e.list=i,e.total=+a})).finally((function(){e.modifyButtonStatus(),e.loading=!1}))},getInheritStatus:function(e){return v[e]},handleQuery:function(){this.query.pageNum=1,this.getList()},isWXType:function(e){return e===c["Cd"]},renderUserInfo:function(e){return Object(l["o"])(e,"customerType")},resetForm:function(){this.query=Object(r["a"])({},m),this.dateRange=[],this.getList()}}},y=b,_=(i("c8ad"),i("2877")),w=Object(_["a"])(y,a,n,!1,null,"90e9987c",null);t["default"]=w.exports},"3e67":function(e,t,i){},"3e7a":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-drawer",{attrs:{"append-to-body":!0,title:"如何使用兑换活动",visible:e.Pvisible,size:"780px","wrapper-closable":!0},on:{"update:visible":function(t){e.Pvisible=t}}},[a("div",{staticClass:"draw-body"},[a("div",{staticClass:"draw-body-step"},[a("div",{staticClass:"draw-body-title"},[e._v("一、创建兑换活动")]),a("div",{staticClass:"draw-body-content"},[e._v("在营销活动下,填写基本信息,创建兑换活动 "),a("el-image",{staticClass:"part-img",attrs:{src:i("d8df"),"preview-src-list":[i("d8df")]}})],1)]),a("div",{staticClass:"draw-body-step"},[a("div",{staticClass:"draw-body-title"},[e._v("二、导入兑换码")]),a("div",{staticClass:"draw-body-content"},[e._v("根据模板填入兑换码数据,一键导入 "),a("el-image",{staticClass:"part-img",attrs:{src:i("a153"),"preview-src-list":[i("a153")]}})],1)]),a("div",{staticClass:"draw-body-step"},[a("div",{staticClass:"draw-body-title"},[e._v("三、应用兑换活动")]),a("div",{staticClass:"draw-body-content"},[e._v("前往员工活码,设置欢迎语类型为“活动欢迎语”,选择兑换活动,在欢迎语中插入“#兑换码#”并生成员工活码。当客户通过活码添加员工时,将“#兑换码#”替换为真正的兑换码并作为欢迎语发出,客户即可拿到兑换码换取权益。 "),a("div",[e._v(" (新客进群也支持兑换活动) ")]),a("el-image",{staticClass:"part-img",attrs:{src:i("2c80"),"preview-src-list":[i("2c80")]}})],1)]),a("div",{staticClass:"confirm-div"},[a("div",{staticClass:"confirm-btn-div"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.goRoute()}}},[e._v("现在去创建活动")])],1)])])])},n=[],r={props:{visible:{type:Boolean,default:!1}},computed:{Pvisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}}},methods:{goRoute:function(){var e=this;this.Pvisible?(this.Pvisible=!1,this.$emit("update:pvisible",!1),setTimeout((function(){e.$router.push("/operationsCenter/conversionCode/conversionCodeAdd")}),200)):this.$router.push("/operationsCenter/conversionCode/conversionCodeAdd")}}},s=r,o=(i("0b6a"),i("2877")),l=Object(o["a"])(s,a,n,!1,null,"32b1c2d2",null);t["default"]=l.exports},"3e7f":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",e._g(e._b({staticClass:"group-modal-div",on:{close:e.onClose}},"el-dialog",e.$attrs,!1),e.$listeners),[i("el-form",{ref:"elForm",attrs:{model:e.formData,rules:e.rules,size:"medium","label-width":"78px"}},[i("el-form-item",{attrs:{label:"分组名称",prop:"name"}},[i("el-input",{attrs:{placeholder:"请输入分组名称",clearable:"",maxlength:"12","show-word-limit":""},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1)],1),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.close}},[e._v("取消")]),i("RequestButton",{attrs:{type:"primary","request-method":e.handelConfirm,"button-type":"submit"}},[e._v("确定")])],1)],1)},n=[],r=(i("b0c0"),i("a9e3"),i("c7ea")),s=i("dd70"),o=i("52a9"),l=i("cf45"),c={name:"GroupModal",components:{RequestButton:o["a"]},inheritAttrs:!1,props:{formData:{type:Object,default:function(){return{parentId:void 0,name:void 0,id:void 0,isEdit:!1}}},type:{type:Number,default:null},getList:{type:Function,default:function(){}},departmentId:{type:String,default:void 0}},data:function(){return{rules:{name:[{required:!0,message:"请填写分组名称",trigger:"blur"}]}}},computed:{},methods:{onClose:function(){this.$refs["elForm"].resetFields()},close:function(){this.$emit("update:visible",!1)},handelConfirm:function(){var e=this;this.$refs["elForm"].validate((function(t){if(!t)return Object(l["i"])(e.$store,"submit");e.formData.isEdit?e.handleUpdateGroup():e.handleAddGroup()}))},handleUpdateGroup:function(){var e,t,i=this;Object(r["h"])({id:null===(e=this.formData)||void 0===e?void 0:e.id,name:null===(t=this.formData)||void 0===t?void 0:t.name}).then((function(e){i.handleOkCallback(e)}))},handleAddGroup:function(){var e,t,i=this,a={parentId:null===(e=this.formData)||void 0===e?void 0:e.parentId,name:null===(t=this.formData)||void 0===t?void 0:t.name,sourceType:this.type,departmentId:this.type===s["Ib"]["department"]?this.departmentId:void 0};Object(r["b"])(a).then((function(e){i.handleOkCallback(e)}))},handleOkCallback:function(e){Object(l["i"])(this.$store,"submit"),e&&(this.type===s["Ib"]["department"]?this.getList({departmentId:this.departmentId}):this.getList(),this.msgSuccess("操作成功"),this.close())}}},u=c,d=(i("058d"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"9044d8b2",null);t["default"]=p.exports},"3e91":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"form-setting"},[i("el-form",{attrs:{"label-position":"top","label-width":"80px",model:e.form}},[i("el-form-item",{attrs:{props:"headImage"}},[i("div",{staticClass:"form-label"},[i("div",{attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("头图")])]),i("el-switch",{on:{change:e.changeHeadImageOpenFlag},model:{value:e.form.headImageOpenFlag,callback:function(t){e.$set(e.form,"headImageOpenFlag",t)},expression:"form.headImageOpenFlag"}})],1),e.form.headImageOpenFlag?i("UploadFile",{staticClass:"upload-drag-div",attrs:{text:"将图片拖到此处,或",tip:"支持jpg、png,不超过2M,建议尺寸375*150","file-url":e.form.headImageUrl,drag:"",multiple:!1,"show-type":e.DRAG_ONE_TYPE,accept:".jpg,.png,.gif"},on:{"update:fileUrl":function(t){return e.$set(e.form,"headImageUrl",t)},"update:file-url":function(t){return e.$set(e.form,"headImageUrl",t)}}}):e._e()],1),i("el-form-item",{attrs:{prop:"formName"}},[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"required"},[e._v("表单名称")])]),i("el-input",{attrs:{resize:"none","show-word-limit":"",maxlength:20,type:"textarea",rows:3},model:{value:e.form.formName,callback:function(t){e.$set(e.form,"formName",t)},expression:"form.formName"}})],1),i("el-form-item",{attrs:{prop:"formDescription"}},[i("div",{staticClass:"form-label"},[i("div",{attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("表单说明")])]),i("el-switch",{model:{value:e.form.descriptionFlag,callback:function(t){e.$set(e.form,"descriptionFlag",t)},expression:"form.descriptionFlag"}})],1),e.form.descriptionFlag?i("el-input",{attrs:{resize:"none","show-word-limit":"",maxlength:200,type:"textarea",rows:6},model:{value:e.form.description,callback:function(t){e.$set(e.form,"description",t)},expression:"form.description"}}):e._e()],1),i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("显示排序")]),i("el-switch",{model:{value:e.form.showSortFlag,callback:function(t){e.$set(e.form,"showSortFlag",t)},expression:"form.showSortFlag"}})],1)]),i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("提交按钮")])]),i("el-input",{attrs:{"show-word-limit":"",maxlength:6},model:{value:e.form.submitText,callback:function(t){e.$set(e.form,"submitText",t)},expression:"form.submitText"}}),i("el-color-picker",{staticClass:"mt15",model:{value:e.form.submitColor,callback:function(t){e.$set(e.form,"submitColor",t)},expression:"form.submitColor"}})],1)],1)],1)},n=[],r=i("5530"),s=(i("a4d3"),i("e01a"),i("81f6")),o=i("fbc0"),l=i("dd70"),c=i("cf45"),u={components:{UploadFile:o["default"]},props:{showEditFormFiled:{type:Boolean,default:!1},editFormSetValue:{type:Object,default:function(){}}},data:function(){return{DRAG_ONE_TYPE:l["O"],form:{}}},watch:{form:{deep:!0,handler:function(e){s["a"].$emit("formSettingValue",e)}},showEditFormFiled:function(e){e||(this.form.headImageOpenFlag||(this.form.headImageUrl=""),s["a"].$emit("formSet",this.form))},editFormSetValue:{deep:!0,handler:function(e){this.form=Object(r["a"])(Object(r["a"])({},this.form),e)}}},beforeUpdate:function(){Object(c["k"])(this.$options.data().form,this.form)},mounted:function(){this.form=this.editFormSetValue},methods:{checkFormRules:function(){var e=this.form,t=e.formName,i=e.headImageUrl,a=e.headImageOpenFlag,n=e.descriptionFlag,r=e.description,s=!0;return t||(this.msgWarn("请填写表单名称"),s=!1),a&&!i&&(this.msgWarn("请上传表单头图"),s=!1),n&&!r&&(this.msgWarn("请填写表单说明"),s=!1),s},changeHeadImageOpenFlag:function(e){e&&!this.form.headImageUrl&&(this.form.headImageUrl=l["W"])}}},d=u,p=(i("2ae8"),i("2877")),f=Object(p["a"])(d,a,n,!1,null,"2875c79d",null);t["default"]=f.exports},"3ea6":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"drawer-div"},[a("el-tabs",{staticClass:"drawer-tabs",attrs:{"tab-position":"left"}},[a("el-tab-pane",{attrs:{label:"关联小程序"}},[a("div",{staticClass:"main-title"},[e._v("小程序如何关联到企业微信")]),a("div",{staticClass:"content"},[e._v("应企业微信平台要求,使用小程序素材,要求"),a("span",{staticClass:"orange"},[e._v("小程序必须与当前企业关联。")])]),a("div",{staticClass:"second-title"},[e._v("关联入口")]),a("div",[a("div",{staticClass:"content"},[e._v("方式一:可前往 "),a("el-link",{attrs:{type:"primary",href:"https://work.weixin.qq.com/wework_admin/frame#apps",target:"_blank"}},[e._v("企业微信管理后台")]),e._v(" -进入应用-创建应用 关联小程序")],1),a("el-image",{staticClass:"part-img",attrs:{src:i("ef68"),"preview-src-list":[i("ef68")]}})],1),a("div",[a("div",{staticClass:"content"},[e._v("方式二:可前往 "),a("el-link",{attrs:{type:"primary",href:"https://work.weixin.qq.com/wework_admin/frame#apps",target:"_blank"}},[e._v("企业微信管理后台")]),e._v(" -进入应用-选择已有应用-设置主页 关联小程序")],1),a("el-image",{staticClass:"part-img",attrs:{src:i("2fed"),"preview-src-list":[i("2fed")]}})],1),a("div",[a("div",{staticClass:"content"},[e._v("登录 "),a("el-link",{attrs:{type:"primary",href:e.WX_PAAS_URL,target:"_blank"}},[e._v("小程序管理后台")]),e._v(" -设置-关联设置,找到关联到企业微信-前往关联的入口")],1),a("el-image",{staticClass:"part-img",attrs:{src:i("fa77"),"preview-src-list":[i("fa77")]}})],1),a("div",{staticClass:"second-title"},[e._v("关联步骤")]),a("div",[a("div",{staticClass:"content"},[e._v("1. 找到上述3个关联入口进行关联")]),a("div",{staticClass:"content"},[e._v("2. 关联需要小程序开发者授权,故会跳转到公众平台中进行一次授权扫码,请使用要关联的小程序所属的管理员微信号进行扫码授权")]),a("div",{staticClass:"content"},[e._v("3. 在企微后台的应用中对小程序进行可见范围的设置")]),a("el-image",{staticClass:"part-img",attrs:{src:i("5c95"),"preview-src-list":[i("5c95")]}}),a("div",{staticClass:"content"},[e._v("4. 关联完成,设置了可见范围的企业成员可以在工作台看到关联的小程序。")])],1)]),a("el-tab-pane",{attrs:{label:"微信公众平台获取"}},[a("div",{staticClass:"main-title"},[e._v("在微信公众平台获取原始ID和AppID")]),a("div",[a("div",{staticClass:"content"},[e._v("1. 前往 "),a("el-link",{attrs:{type:"primary",href:e.WX_PAAS_URL,target:"_blank"}},[e._v("微信公众平台")]),e._v(" ,登录企业的微信小程序")],1),a("el-image",{staticClass:"part-img",attrs:{src:i("19f5"),"preview-src-list":[i("19f5")]}})],1),a("div",[a("div",{staticClass:"content"},[e._v('2. 登录之后,点击左侧的"设置"==>点击"基础设置",复制账号信息下的原始ID和AppID')]),a("el-image",{staticClass:"part-img",attrs:{src:i("fe0f"),"preview-src-list":[i("fe0f")]}})],1)]),a("el-tab-pane",{attrs:{label:"微信客户端获取"}},[a("div",{staticClass:"main-title"},[e._v("在微信客户端获取原始ID和AppID")]),a("div",[a("div",{staticClass:"content"},[e._v("1. 在微信客户端进入某个小程序,如图所示,点击右上角“···”,在弹出的菜单中,点击小程序的详情按钮")]),a("el-image",{staticClass:"part-img",attrs:{src:i("ae8f"),"preview-src-list":[i("ae8f")]}})],1),a("div",[a("div",{staticClass:"content"},[e._v("2. 在小程序的详情页,点击“更多资料”")]),a("el-image",{staticClass:"part-img",attrs:{src:i("5b0b"),"preview-src-list":[i("5b0b")]}})],1),a("div",[a("div",{staticClass:"content"},[e._v("3. 在“更多资料”页面中,找到账号ID和AppID,长按并复制")]),a("el-image",{staticClass:"part-img",staticStyle:{width:"250px",border:"1px solid #ccc"},attrs:{src:i("60a0"),"preview-src-list":[i("60a0")]}})],1)])],1)],1)},n=[],r=i("dd70"),s={name:"GetAppIDDemo",components:{},props:{},data:function(){return{WX_PAAS_URL:r["Bd"]}}},o=s,l=(i("0b87"),i("2877")),c=Object(l["a"])(o,a,n,!1,null,"b14f704a",null);t["default"]=c.exports},"3eac":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[i("el-form-item",{attrs:{prop:"jobName"}},[i("el-input",{attrs:{placeholder:"请输入任务名称",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.jobName,callback:function(t){e.$set(e.queryParams,"jobName",t)},expression:"queryParams.jobName"}})],1),i("el-form-item",{attrs:{prop:"jobGroup"}},[i("el-select",{attrs:{placeholder:"请选择任务组名",clearable:"",size:"small"},model:{value:e.queryParams.jobGroup,callback:function(t){e.$set(e.queryParams,"jobGroup",t)},expression:"queryParams.jobGroup"}},e._l(e.jobGroupOptions,(function(e){return i("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),i("el-form-item",{attrs:{prop:"status"}},[i("el-select",{attrs:{placeholder:"请选择任务状态",clearable:"",size:"small"},model:{value:e.queryParams.status,callback:function(t){e.$set(e.queryParams,"status",t)},expression:"queryParams.status"}},e._l(e.statusOptions,(function(e){return i("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),i("el-form-item",[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.handleQuery()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"operate-btn",fn:function(){return[i("el-row",{staticClass:"mb8",attrs:{gutter:10}},[i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:add"],expression:"['monitor:job:add']"}],attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1),i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:edit"],expression:"['monitor:job:edit']"}],attrs:{size:"mini",disabled:e.single},on:{click:e.handleUpdate}},[e._v("修改")])],1),i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:remove"],expression:"['monitor:job:remove']"}],attrs:{size:"mini"},on:{click:e.handleDelete}},[e._v("批量删除")])],1),i("el-col",{attrs:{span:1.5}},[i("el-button",{attrs:{size:"mini"},on:{click:e.handleJobLog}},[e._v("执行日志")])],1),i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:export"],expression:"['monitor:job:export']"}],attrs:{size:"mini"},on:{click:e.handleExport}},[e._v("导出任务")])],1)],1)]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.jobList},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),i("el-table-column",{attrs:{label:"任务编号",align:"center",prop:"jobId"}}),i("el-table-column",{attrs:{label:"任务名称",align:"center",prop:"jobName","show-overflow-tooltip":!0}}),i("el-table-column",{attrs:{label:"任务组名",align:"center",prop:"jobGroup",formatter:e.jobGroupFormat}}),i("el-table-column",{attrs:{label:"调用目标字符串",align:"center",prop:"invokeTarget","show-overflow-tooltip":!0}}),i("el-table-column",{attrs:{label:"cron执行表达式",align:"center",prop:"cronExpression","show-overflow-tooltip":!0}}),i("el-table-column",{attrs:{label:"状态",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:edit"],expression:"['monitor:job:edit']"}],attrs:{value:t.row.status,"active-value":"0","inactive-value":"1"},on:{change:function(i){return e.handleStatusChange(t.row)}}})]}}])}),i("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:job:changeStatus"],expression:"['monitor:job:changeStatus']"}],attrs:{size:"mini",type:"text"},on:{click:function(i){return e.handleRun(t.row)}}},[e._v("执行一次")]),i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(i){return e.handleView(t.row)}}},[e._v("详情 ")])]}}])})],1),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:1*e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize,"select-data-len":e.ids.length,disabled:e.loading},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}})]},proxy:!0}])}),i("el-dialog",{staticClass:"foot-button-reverse-dialog-wrapper",attrs:{title:e.title,visible:e.open,width:"700px","append-to-body":"","close-on-click-modal":!1},on:{"update:visible":function(t){e.open=t}}},[i("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"120px"}},[i("el-row",[i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"任务名称",prop:"jobName"}},[i("el-input",{attrs:{placeholder:"请输入任务名称"},model:{value:e.form.jobName,callback:function(t){e.$set(e.form,"jobName",t)},expression:"form.jobName"}})],1)],1),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"任务分组",prop:"jobGroup"}},[i("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.jobGroup,callback:function(t){e.$set(e.form,"jobGroup",t)},expression:"form.jobGroup"}},e._l(e.jobGroupOptions,(function(e){return i("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1)],1),i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{prop:"invokeTarget"}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v(" 调用方法 "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v(" Bean调用示例:lvTask.lvParams('lv') "),i("br"),e._v("Class类调用示例:com.common.quartz.task.lvTask.lvParams('lv') "),i("br"),e._v("参数说明:支持字符串,布尔类型,长整型,浮点型,整型 ")]),i("i",{staticClass:"el-icon-question"})])],1),i("el-input",{attrs:{placeholder:"请输入调用目标字符串"},model:{value:e.form.invokeTarget,callback:function(t){e.$set(e.form,"invokeTarget",t)},expression:"form.invokeTarget"}})],1)],1),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"cron表达式",prop:"cronExpression"}},[i("el-input",{attrs:{placeholder:"请输入cron执行表达式"},model:{value:e.form.cronExpression,callback:function(t){e.$set(e.form,"cronExpression",t)},expression:"form.cronExpression"}})],1)],1),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"是否并发",prop:"concurrent"}},[i("el-radio-group",{attrs:{size:"small"},model:{value:e.form.concurrent,callback:function(t){e.$set(e.form,"concurrent",t)},expression:"form.concurrent"}},[i("el-radio-button",{attrs:{label:"0"}},[e._v("允许")]),i("el-radio-button",{attrs:{label:"1"}},[e._v("禁止")])],1)],1)],1),i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"错误策略",prop:"misfirePolicy"}},[i("el-radio-group",{attrs:{size:"small"},model:{value:e.form.misfirePolicy,callback:function(t){e.$set(e.form,"misfirePolicy",t)},expression:"form.misfirePolicy"}},[i("el-radio-button",{attrs:{label:"1"}},[e._v("立即执行")]),i("el-radio-button",{attrs:{label:"2"}},[e._v("执行一次")]),i("el-radio-button",{attrs:{label:"3"}},[e._v("放弃执行")])],1)],1)],1),i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"状态"}},[i("el-radio-group",{model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},e._l(e.statusOptions,(function(t){return i("el-radio",{key:t.dictValue,attrs:{label:t.dictValue}},[e._v(e._s(t.dictLabel))])})),1)],1)],1)],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("RequestButton",{attrs:{type:"primary","request-method":e.submitForm,"button-type":"submit"}},[e._v("确 定")]),i("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1),i("el-dialog",{attrs:{title:"任务详情",visible:e.openView,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.openView=t}}},[i("el-form",{ref:"form",attrs:{model:e.form,"label-width":"120px",size:"mini"}},[i("el-row",[i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"任务编号:"}},[e._v(e._s(e.form.jobId))]),i("el-form-item",{attrs:{label:"任务名称:"}},[e._v(e._s(e.form.jobName))])],1),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"任务分组:"}},[e._v(e._s(e.jobGroupFormat(e.form)))]),i("el-form-item",{attrs:{label:"创建时间:"}},[e._v(e._s(e.form.createTime))])],1),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"cron表达式:"}},[e._v(e._s(e.form.cronExpression))])],1),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"下次执行时间:"}},[e._v(e._s(e.parseTime(e.form.nextValidTime)))])],1),i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"调用目标方法:"}},[e._v(e._s(e.form.invokeTarget))])],1),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"任务状态:"}},[0==e.form.status?i("div",[e._v("正常")]):1==e.form.status?i("div",[e._v("失败")]):e._e()])],1),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"是否并发:"}},[0==e.form.concurrent?i("div",[e._v("允许")]):1==e.form.concurrent?i("div",[e._v("禁止")]):e._e()])],1),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"执行策略:"}},[0==e.form.misfirePolicy?i("div",[e._v("默认策略")]):1==e.form.misfirePolicy?i("div",[e._v("立即执行")]):2==e.form.misfirePolicy?i("div",[e._v("执行一次")]):3==e.form.misfirePolicy?i("div",[e._v("放弃执行")]):e._e()])],1)],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.openView=!1}}},[e._v("关 闭")])],1)],1)],1)},n=[],r=(i("d81d"),i("d3b7"),i("52a9")),s=i("cf45"),o=i("b775");function l(e){return Object(o["a"])({url:"/monitor/job/list",method:"get",params:e})}function c(e){return Object(o["a"])({url:"/monitor/job/"+e,method:"get"})}function u(e){return Object(o["a"])({url:"/monitor/job",method:"post",data:e})}function d(e){return Object(o["a"])({url:"/monitor/job",method:"put",data:e})}function p(e){return Object(o["a"])({url:"/monitor/job/"+e,method:"delete"})}function f(e){return Object(o["a"])({url:"/monitor/job/export",method:"get",params:e})}function A(e,t){var i={jobId:e,status:t};return Object(o["a"])({url:"/monitor/job/changeStatus",method:"put",data:i})}function h(e,t){var i={jobId:e,jobGroup:t};return Object(o["a"])({url:"/monitor/job/run",method:"put",data:i})}var m=i("dd70"),g=i("b66d"),v=i("e2e0"),b={name:"Job",components:{RightContainer:g["a"],RequestButton:r["a"]},mixins:[v["a"]],data:function(){return{loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,jobList:[],title:"",open:!1,openView:!1,jobGroupOptions:[],statusOptions:[],queryParams:{pageNum:1,pageSize:m["Ic"],jobName:void 0,jobGroup:void 0,status:void 0},form:{},rules:{jobName:[{required:!0,message:"任务名称不能为空",trigger:"blur"}],invokeTarget:[{required:!0,message:"调用目标字符串不能为空",trigger:"blur"}],cronExpression:[{required:!0,message:"cron执行表达式不能为空",trigger:"blur"}]}}},created:function(){var e=this;this.getList(),this.getDicts("sys_job_group").then((function(t){e.jobGroupOptions=t.data})),this.getDicts("sys_job_status").then((function(t){e.statusOptions=t.data}))},methods:{getList:function(){var e=this;this.loading=!0,l(this.queryParams).then((function(t){e.jobList=t.rows,e.total=t.total})).finally((function(){e.loading=!1,e.modifyButtonStatus()}))},jobGroupFormat:function(e,t){return this.selectDictLabel(this.jobGroupOptions,e.jobGroup)},statusFormat:function(e,t){return this.selectDictLabel(this.statusOptions,e.status)},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={jobId:void 0,jobName:void 0,jobGroup:void 0,invokeTarget:void 0,cronExpression:void 0,misfirePolicy:1,concurrent:1,status:"0"},this.resetForm("form")},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.jobId})),this.single=1!==e.length,this.multiple=!e.length},handleStatusChange:function(e,t){var i=this,a="0"===e.status?"停用":"启用";this.confirmModal({msg:'确认要"'+a+'""'+e.jobName+'"任务吗?'},(function(){var t="0"===e.status?"1":"0";return A(e.jobId,t).then((function(){i.msgSuccess(a+"成功"),i.getList()}))}))},handleRun:function(e){var t=this;this.confirmModal({msg:'确认要立即执行一次"'+e.jobName+'"任务吗?'},(function(){return h(e.jobId,e.jobGroup).then((function(){t.msgSuccess("执行成功")})).catch((function(){}))}))},handleView:function(e){var t=this;c(e.jobId).then((function(e){t.form=e.data,t.openView=!0}))},handleJobLog:function(){this.$router.push("job/log")},handleAdd:function(){this.reset(),this.open=!0,this.title="添加任务"},handleUpdate:function(e){var t=this;this.reset();var i=e.jobId||this.ids;c(i).then((function(e){t.form=e.data,t.open=!0,t.title="修改任务"}))},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t?void 0!==e.form.jobId?d(e.form).then((function(t){Object(s["i"])(e.$store,"submit"),e.msgSuccess("修改成功"),e.open=!1,e.getList()})):u(e.form).then((function(t){Object(s["i"])(e.$store,"submit"),e.msgSuccess("新增成功"),e.open=!1,e.getList()})):Object(s["i"])(e.$store,"submit")}))},handleDelete:function(e){var t=this;if(!this.ids.length)return this.msgWarn("请至少选择一个任务"),!1;var i=e.jobId||this.ids;this.confirmModal({msg:'是否确认删除定时任务编号为"'+i+'"的数据项?'},(function(){return p(i).then((function(){t.getList(),t.msgSuccess("删除成功")})).catch((function(){}))}))},handleExport:function(){var e=this,t=this.queryParams;this.confirmModal({msg:"即将导出当前查询结果,是否继续?"},(function(){return f(t).then((function(t){e.download(t.msg)})).catch((function(){}))}))}}},y=b,_=i("2877"),w=Object(_["a"])(y,a,n,!1,null,null,null);t["default"]=w.exports},"3ef8":function(e,t,i){},"3efd":function(e,t,i){"use strict";i("1915")},"3f68":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",e._g(e._b({attrs:{title:"选择客户群",width:"840px","append-to-body":""},on:{close:e.onClose}},"el-dialog",e.$attrs,!1),e.$listeners),[i("div",[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{model:e.query,inline:!0,"label-width":"100px"}},[i("el-form-item",{attrs:{prop:"groupName"}},[i("el-input",{attrs:{placeholder:"请输入客户群昵称"},model:{value:e.query.groupName,callback:function(t){e.$set(e.query,"groupName",t)},expression:"query.groupName"}})],1),i("el-form-item",{attrs:{prop:"groupLeader"}},[i("el-input",{attrs:{placeholder:"请输入群主"},model:{value:e.query.groupLeader,callback:function(t){e.$set(e.query,"groupLeader",t)},expression:"query.groupLeader"}})],1),i("el-form-item",[i("el-date-picker",{attrs:{format:"yyyy-MM-dd","value-format":"yyyyMMdd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.searchDate,callback:function(t){e.searchDate=t},expression:"searchDate"}})],1),i("el-form-item",[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.onSearch()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1)],1),i("div",{staticStyle:{border:"1px solid #eee"}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"customerTable",attrs:{"row-key":"chatId",data:e.customerGroups,"highlight-current-row":"",height:"300","header-cell-style":{background:"#EEE",textAlign:"left"},"cell-style":{textAlign:"left"}},on:{"current-change":e.handleSingleSelectionChange,"selection-change":e.handleSelectionChange}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.customerGroups.length}})],1),e.selectSingle?e._e():i("el-table-column",{attrs:{type:"selection",width:"55","reserve-selection":!0}}),e.selectSingle?i("el-table-column",{key:"check",attrs:{width:"55",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-checkbox",{attrs:{disabled:e.selectable(a)>-1,value:e.currentRow&&a.chatId===e.currentRow.chatId}})]}}],null,!1,4076482825)}):e._e(),i("el-table-column",{key:"groupName",attrs:{prop:"groupName",label:"群昵称",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",{staticStyle:{display:"flex"}},[i("div",{staticStyle:{display:"flex","align-items":"center"}},[i("svg",{staticClass:"icon-groupChat",attrs:{width:35,height:35}},[i("use",{attrs:{href:"#icon-groupChat"}})])]),i("el-tooltip",{attrs:{content:a.groupName,placement:"bottom-end",effect:"dark"}},[i("div",{staticClass:"ellipsis-style",staticStyle:{display:"flex","align-items":"center"}},[e._v(" "+e._s(a.groupName)+" ")])])],1)]}}])}),i("el-table-column",{attrs:{prop:"memberNum",label:"群成员",align:"center"}}),i("el-table-column",{attrs:{prop:"groupLeaderName",label:"群主",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"al"},[i("div",{staticClass:"cus-owner"},[e._v(e._s(t.row.groupLeaderName))]),i("div",{staticClass:"cus-dept"},[e._v(e._s(t.row.mainDepartmentName))])])]}}])}),i("el-table-column",{attrs:{prop:"createTime",label:"创建时间",align:"center"}})],2)],1)],1),i("div",{staticClass:"footer-flex",attrs:{slot:"footer"},slot:"footer"},[i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],staticClass:"footer-left",attrs:{total:e.total,page:e.query.pageNum,disabled:e.loading,limit:e.query.pageSize,"pager-count":5},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:e.onChangePage}}),i("div",{staticClass:"footer-right"},[i("el-button",{on:{click:e.cancelClick}},[e._v(" 取消 ")]),i("el-button",{attrs:{type:"primary"},on:{click:e.okClick}},[e._v(" 确定 ")])],1)],1)])},n=[],r=(i("a4d3"),i("e01a"),i("d28b"),i("d3b7"),i("3ca3"),i("ddb0"),i("06c5"));function s(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=Object(r["a"])(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,l=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return o=e.done,e},e:function(e){l=!0,s=e},f:function(){try{o||null==i["return"]||i["return"]()}finally{if(l)throw s}}}}var o=i("2909"),l=i("3835"),c=(i("4de4"),i("7db0"),i("c740"),i("d81d"),i("159b"),i("14e1")),u=i("dd70"),d=i("e77d"),p=i("e2e0"),f={components:{EmptyDefaultIcon:d["a"]},mixins:[p["a"]],props:{customerGroupId:{type:String,default:""},appendToBody:{type:String,default:""},cancelClick:{type:Function,default:function(){}},okClick:{type:Function,default:function(){}},customerGroupList:{type:Array,default:function(){return[]}},selectSingle:{type:Boolean,default:!0}},data:function(){return{query:{groupLeader:"",groupName:"",beginTime:"",endTime:"",pageNum:1,pageSize:u["Ic"]},searchDate:"",loading:!1,total:0,customerGroups:[],currentRow:null,currentRowList:[]}},watch:{searchDate:function(e){if(e&&2===e.length){var t=Object(l["a"])(e,2);this.query.beginTime=t[0],this.query.endTime=t[1]}else this.query.beginTime="",this.query.endTime=""},customerGroupList:function(e){this.dealCustomerGroupSelect(e)}},created:function(){this.getList()},methods:{dealCustomerGroupSelect:function(e){var t,i=this;e&&(this.currentRowList=Object(o["a"])(e),e.length?this.$nextTick((function(){i.currentRowList.forEach((function(e){var t,a=i.customerGroups.find((function(t){return t.chatId===e.chatId}));a&&(null===(t=i.$refs.customerTable)||void 0===t||t.toggleRowSelection(a,!0))}))})):null===(t=this.$refs.customerTable)||void 0===t||t.clearSelection())},onSearch:function(){this.query.pageNum=1,this.getList()},getList:function(){var e=this,t=Object.assign({},this.query);this.loading=!0,Object(c["b"])(t).then((function(t){e.customerGroups=t.rows,e.dealCustomerGroupSelect(e.customerGroupList),e.total=parseInt(t.total);var i,a=s(e.customerGroups);try{for(a.s();!(i=a.n()).done;){var n=i.value;n.chatId===e.customerGroupId&&(e.currentRow=n)}}catch(r){a.e(r)}finally{a.f()}})).finally((function(){e.loading=!1,e.modifyButtonStatus()}))},handleSingleSelectionChange:function(e){e&&this.selectable(e)<0&&(this.currentRow=e)},handleSelectionChange:function(e,t){this.selectSingle||(this.currentRowList=Object(o["a"])(e.filter(Boolean)))},resetQuery:function(){var e=this;this.searchDate=[],this.$refs["queryForm"].resetFields(),this.$nextTick((function(){e.getList()}))},submit:function(){this.$emit("callback",this.selectSingle?this.currentRow:this.currentRowList)},selectable:function(e){if(!e)return-1;var t=this.customerGroups.findIndex((function(t){return t.chatId===e.chatId}));if(t<0)return-1;var i=this.currentRowList.map((function(e){return e.chatId}))||[],a=i.findIndex((function(t){return t===e.chatId}));return a},onClose:function(){this.$emit("update:visible",!1)},onChangePage:function(){this.getList()}}},A=f,h=(i("18e1"),i("2877")),m=Object(h["a"])(A,a,n,!1,null,"cfb99650",null);t["default"]=m.exports},"3f70":function(e,t,i){e.exports=i.p+"static/img/contact-step3-1.0805cae2.jpg"},"3f9f":function(e,t,i){"use strict";i("e019")},"3fd5":function(e,t,i){},4018:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.enterPriseWechatConfig[e.chatSecret]?i("div",{staticClass:"content"},[i("el-tabs",{staticClass:"content-tabs white-tabs",on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{staticClass:"content-tab-pane",attrs:{label:"员工检索",name:"1"}},[i("employee")],1),i("el-tab-pane",{staticClass:"content-tab-pane",attrs:{label:"客户检索",name:"2"}},[2==e.activeName?i("user"):e._e()],1),i("el-tab-pane",{staticClass:"content-tab-pane",attrs:{label:"全局检索",name:"3"}},[3==e.activeName?i("role"):e._e()],1)],1)],1):i("UnconfigConversation",{attrs:{"module-tile":"会话存档","module-desc":"在客户和员工同意的前提下,保存员工的工作沟通内容,支持多维度检索,满足企业外部监管合规需求","config-alert-tip":"当前企业还未开通/配置【会话存档】功能,将会影响到聊天记录和消息审计部分功能"}})},n=[],r=i("972f"),s=i("de51"),o=i("b4cc"),l=i("3cc7"),c=i("dd70"),u={components:{employee:r["default"],user:s["default"],role:o["default"],UnconfigConversation:l["default"]},data:function(){return{activeName:"1",chatSecret:c["o"]}},computed:{enterPriseWechatConfig:function(){return this.$store.state.enterPriseWechatConfig}},methods:{handleClick:function(e,t){sessionStorage.removeItem("list"),sessionStorage.removeItem("insideList")}}},d=u,p=(i("d6c3"),i("2877")),f=Object(p["a"])(d,a,n,!1,null,"49fc398e",null);t["default"]=f.exports},4041:function(e,t,i){},4063:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"sop-rule-list timeline-list"},[i("el-timeline",{staticClass:"timeline-div"},e._l(e.ruleList,(function(t,a){return i("el-timeline-item",{key:a,attrs:{placement:"top"},scopedSlots:e._u([{key:"dot",fn:function(){return[i("div",{staticClass:"step-dot"},[e._v(e._s(a+1))])]},proxy:!0}],null,!0)},[i("div",{staticClass:"custom-timestamp"},[i("RemindPerform",{attrs:{"rule-item":t,"sop-type":e.sopType,"show-extra-text":!0}})],1),i("div",{staticClass:"rule-content"},[i("RuleContent",{attrs:{"rule-item":t}}),e.showTool?i("div",{staticClass:"tool-div"},[i("i",{directives:[{name:"show",rawName:"v-show",value:e.canEdit(t),expression:"canEdit(ruleItem)"}],staticClass:"iconfont icon-tool-edit",attrs:{title:"编辑"},on:{click:function(i){return e.handleEdit(t,a)}}}),i("i",{staticClass:"iconfont icon-remove",attrs:{title:"删除"},on:{click:function(i){return e.handleDelete(a,t)}}})]):e._e()],1)])})),1)],1)},n=[],r=(i("a9e3"),i("c1df")),s=i.n(r),o=i("4f7d"),l=i("dd70"),c=i("8bc1"),u=2,d={name:"",components:{RemindPerform:c["default"],RuleContent:o["a"]},props:{ruleList:{type:Array,default:function(){return[]}},showTool:{type:Boolean,default:!1},sopType:{type:Number,default:null}},data:function(){return{MEDIA_TYPE_TEXT:l["fc"],RULE_PERFORM_TYPE:l["Tc"],MAX_SHOW_RULE_LENGTH:u,SOP_TYPE:l["ed"]}},created:function(){},mounted:function(){},methods:{handleEdit:function(e,t){this.$emit("handleEdit",e,t)},handleDelete:function(e,t){this.$emit("handleDelRule",e,t)},canEdit:function(e){return!(this.sopType===l["ed"]["activity"]&&e.id&&s()(e.alertData2).isBefore(s.a.now()))}}},p=d,f=(i("45e6"),i("0dd1"),i("2877")),A=Object(f["a"])(p,a,n,!1,null,"dbfa9958",null);t["default"]=A.exports},4073:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"title-item"},[i("div",{staticClass:"title-tip"},[i("span",{style:"application"===e.applicationFromType?"border:none":""},[e._v(e._s(e.title))]),i("span",{on:{click:e.onOpenDrawer}},[e._v(e._s(e.tip))]),e._t("generationDevelopment")],2),e.extra?i("div",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wechat:corp:edit"],expression:"['wechat:corp:edit']"}],staticClass:"extra-tip theme-text-color",on:{click:e.onOpenExtraDrawer}},[e._v(e._s(e.extra))]):e._e(),e.extraclick?i("div",{staticClass:"extra-tip theme-text-color",on:{click:e.reSetConfig}},[e._v(" "+e._s(e.extraclick)+" ")]):e._e()]),i("el-drawer",{staticClass:"drawer-div",attrs:{title:e.drawerTitle,visible:e.drawer,"before-close":e.handleClose},on:{"update:visible":function(t){e.drawer=t}}},["contact"===e.type?i("Contact",{attrs:{"default-domain":e.defaultDomain},on:{closeDrawer:e.handleClose}}):e._e(),"receive"===e.type?i("ReceiveChange",{on:{closeDrawer:e.handleClose}}):e._e(),"customer"===e.type?i("Customer",{on:{closeDrawer:e.handleClose}}):e._e(),"customerChat"===e.type?i("CustomerChat",{on:{closeDrawer:e.handleClose}}):e._e(),"chat"===e.type?i("ChatTool",{attrs:{"default-domain":e.defaultDomain},on:{closeDrawer:e.handleClose}}):e._e(),"chatside"===e.type?i("ChatSide",{attrs:{"default-domain":e.defaultDomain},on:{closeDrawer:e.handleClose}}):e._e()],1),i("el-drawer",{staticClass:"extra-drawer-div",attrs:{title:e.extraTitle,visible:e.extraDrawer,"before-close":e.handleCloseExtraDrawer},on:{"update:visible":function(t){e.extraDrawer=t}}},["contact"===e.type?i("QuickConfig",{attrs:{"config-id":e.configId,"extra-drawer":e.extraDrawer,form:e.form,"default-domain":e.defaultDomain},on:{closeDrawer:e.handleCloseExtraDrawer,getNowConfig:e.getNowConfig}}):e._e(),"chatside"===e.type?i("AutoConfig",{attrs:{"config-id":e.configId,"extra-drawer":e.extraDrawer,form:e.form,"default-domain":e.defaultDomain},on:{closeDrawer:e.handleCloseExtraDrawer,getNowConfig:e.getNowConfig}}):e._e()],1)],1)},n=[],r=i("60b7"),s=i("b69d"),o=i("12b6"),l=i("3df5"),c=i("17be"),u=i("3cda"),d=i("dd3f"),p=i("d61c"),f={components:{Contact:r["default"],ReceiveChange:s["default"],Customer:o["default"],ChatTool:l["default"],QuickConfig:c["default"],CustomerChat:u["default"],AutoConfig:d["default"],ChatSide:p["default"]},props:{title:{type:String,default:""},tip:{type:String,default:""},btnTip:{type:String,default:""},primaryBtnTip:{type:String,default:""},drawerTitle:{type:String,default:""},extraTitle:{type:String,default:""},type:{type:String,default:""},extra:{type:String,default:""},extraclick:{type:String,default:""},configId:{type:String,default:""},form:{type:Object,default:function(){return{}}},defaultDomain:{type:Object,default:function(){return{}}},applicationFromType:{type:String,default:""}},data:function(){return{drawer:!1,extraDrawer:!1}},computed:{},watch:{},created:function(){},mounted:function(){},methods:{onOpenDrawer:function(){this.drawer=!0},handleClose:function(){this.drawer=!1},onOpenExtraDrawer:function(){this.extraDrawer=!0},onOpenPrimaryBtnDrawer:function(){this.extraDrawer=!0},handleCloseExtraDrawer:function(){this.extraDrawer=!1},getNowConfig:function(){this.$emit("getNowConfig")},reSetConfig:function(){this.$emit("reSetConfig","reset")}}},A=f,h=(i("0d27"),i("2877")),m=Object(h["a"])(A,a,n,!1,null,"988b252c",null);t["default"]=m.exports},"40b1":function(e,t,i){"use strict";i("6bff")},4100:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"smkpbox"},[i("div",{staticClass:"kpcg-top"},[i("svg",{staticClass:"icon",attrs:{t:"1717471801778",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4262",width:"100",height:"100"}},[i("path",{attrs:{d:"M511.999488 65.290005C265.29162 65.290005 65.290517 265.291109 65.290517 511.998977c0 246.708891 200.001103 446.709995 446.708971 446.709995S958.70846 758.707868 958.70846 511.998977C958.70846 265.291109 758.707356 65.290005 511.999488 65.290005L511.999488 65.290005zM716.82855 637.854383c6.803963 6.819313 6.803963 17.856693 0 24.676006l-54.298673 54.29765c-6.819313 6.804986-17.85567 6.820336-24.676006 0L511.999488 590.973656 386.144082 716.828039c-6.819313 6.804986-17.871019 6.804986-24.676006 0l-54.29765-54.29765c-6.804986-6.804986-6.804986-17.856693 0-24.676006l125.869732-125.855406L307.170426 386.144594c-6.804986-6.819313-6.804986-17.871019 0-24.676006l54.29765-54.298673c6.820336-6.803963 17.856693-6.803963 24.676006 0l125.855406 125.870756 125.854383-125.870756c6.820336-6.803963 17.856693-6.803963 24.676006 0l54.298673 54.298673c6.803963 6.804986 6.803963 17.856693 0 24.676006L590.973144 511.998977 716.82855 637.854383 716.82855 637.854383zM716.82855 637.854383",fill:"#d81e06","p-id":"4263"}})]),i("h2",[e._v("签到失败!")])]),i("div",{staticClass:"kpcg-text"},[e._v("签到码已经过期,如有问题请联系管理员处理。")])])},n=[],r=(i("f6aa"),i("2877")),s={},o=Object(r["a"])(s,a,n,!1,null,"04958fee",null);t["default"]=o.exports},4139:function(e,t,i){},"414d":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"page-wrap"},[i("div",{staticClass:"header-radio-group"},[i("el-radio-group",{staticClass:"radio-group-div",attrs:{size:"medium"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-radio-button",{attrs:{label:e.TAG_LABEL_TYPE["customer"]}},[e._v("客户标签")]),i("el-radio-button",{attrs:{label:e.TAG_LABEL_TYPE["group"]}},[e._v("群标签")])],1)],1),i("div",{staticClass:"content-container"},[i("TagView",{attrs:{"tag-type":e.activeName}})],1)])},n=[],r=i("dd70"),s=i("e05b"),o={name:"",components:{TagView:s["default"]},props:{},data:function(){return{activeName:r["ld"]["customer"],TAG_LABEL_TYPE:r["ld"]}},provide:function(){var e=this;return{tagType:function(){return e.activeName}}},methods:{}},l=o,c=(i("a383"),i("2877")),u=Object(c["a"])(l,a,n,!1,null,"b8892632",null);t["default"]=u.exports},4182:function(e,t,i){},4184:function(e,t,i){},4190:function(e,t,i){},"41da":function(e,t,i){"use strict";i("b1c6")},"41e4":function(e,t,i){"use strict";i("75c3")},"420c":function(e,t,i){"use strict";i("6666")},"423f":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"base-property-item"},[["remark"].includes(e.item.id)?i("div",[e.editStatus?i("el-input",{attrs:{placeholder:"请填写备注",maxlength:"20","show-word-limit":""},model:{value:e.item.value,callback:function(t){e.$set(e.item,"value",t)},expression:"item.value"}}):i("span",[e._v(e._s(e.item.value))])],1):e._e(),["gender","age"].includes(e.item.id)?i("div",[e._v(" "+e._s(e.item.value)+" ")]):e._e(),"tag"===e.item.id?i("div",[e._l(e.item.value,(function(t,a){return i("el-tag",{key:a,staticClass:"customer-tag-item",attrs:{type:"info"}},[e._v(e._s(t.tagName))])})),e.editStatus?i("i",{staticClass:"el-icon-edit theme-text-color",on:{click:e.openModal}}):e._e()],2):e._e(),"出生日期"===e.item.name?i("div",[e.editStatus?[e.isCustomerScoped?i("el-date-picker",{staticStyle:{width:"240px"},attrs:{"value-format":"yyyy-MM-dd",type:"daterange",format:"yyyy-MM-dd","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.item.value,callback:function(t){e.$set(e.item,"value",t)},expression:"item.value"}}):i("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"请选择出生日期"},model:{value:e.item.value,callback:function(t){e.$set(e.item,"value",t)},expression:"item.value"}})]:i("span",[e._v(e._s(e.item.value))])],2):e._e(),["邮箱","电话"].includes(e.item.name)?i("div",[e.editStatus?i("el-input",{model:{value:e.item.value,callback:function(t){e.$set(e.item,"value",t)},expression:"item.value"}}):i("span",[e._v(e._s(e.item.value))])],1):e._e(),"地址"===e.item.name?i("div",[e.editStatus?i("el-input",{attrs:{maxlength:"64","show-word-limit":""},model:{value:e.item.value,callback:function(t){e.$set(e.item,"value",t)},expression:"item.value"}}):i("span",[e._v(e._s(e.item.value))])],1):e._e(),"描述"===e.item.name?i("div",[e.editStatus?i("el-input",{attrs:{type:"textarea",rows:2,maxlength:"200","show-word-limit":""},model:{value:e.item.value,callback:function(t){e.$set(e.item,"value",t)},expression:"item.value"}}):i("span",[e._v(e._s(e.item.value))])],1):e._e()])},n=[],r=i("5530"),s=(i("e9c4"),i("b64b"),{name:"",components:{},props:{item:{type:Object,default:function(){}},editStatus:{type:Boolean,default:!1},isCustomerScoped:{type:Boolean,default:!1}},data:function(){return{pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}}}},created:function(){},mounted:function(){},methods:{openModal:function(){this.$emit("update:dialogVisible",!0)},showAddTagDialog:function(e){this.form=JSON.parse(JSON.stringify(Object(r["a"])({weTags:[]},e)))}}}),o=s,l=(i("b5b7c"),i("2877")),c=Object(l["a"])(o,a,n,!1,null,"7cdc03c8",null);t["default"]=c.exports},"42b0":function(e,t,i){"use strict";i.d(t,"h",(function(){return n})),i.d(t,"f",(function(){return r})),i.d(t,"g",(function(){return s})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return l})),i.d(t,"b",(function(){return c})),i.d(t,"j",(function(){return u})),i.d(t,"d",(function(){return d})),i.d(t,"e",(function(){return p})),i.d(t,"i",(function(){return f}));var a=i("b775");function n(e){return Object(a["a"])({url:"/system/qdinfo/list",method:"get",params:e})}function r(e){return Object(a["a"])({url:"/system/qdinfo/"+e,method:"get"})}function s(e){return Object(a["a"])({url:"/system/qdinfo/byUnionid/"+e,method:"get"})}function o(e){return Object(a["a"])({url:"/system/qdinfo/authorization",method:"post",data:e})}function l(e){return Object(a["a"])({url:"/system/qdinfo",method:"post",data:e})}function c(e){return Object(a["a"])({url:"/xiaoe/siginCode/addUserListByZb",method:"post",data:e})}function u(e){return Object(a["a"])({url:"/system/qdinfo",method:"put",data:e})}function d(e){return Object(a["a"])({url:"/system/qdinfo/"+e,method:"delete"})}function p(e){return Object(a["a"])({url:"/system/qdinfo/export",method:"get",params:e})}function f(){return Object(a["a"])({url:"/system/qdinfo/sync",method:"post"})}},"42e6":function(e,t,i){},"430a":function(e,t,i){"use strict";i("af1b")},"431d":function(e,t,i){},4321:function(e,t,i){"use strict";i("6da6")},4398:function(e,t,i){},4438:function(e,t,i){},"444d":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"container"},[i("el-card",{staticClass:"card",attrs:{shadow:"hover"}},[i("div",{staticClass:"back-area"},[i("i",{staticClass:"iconfont icon-restore",on:{click:e.handleGoBack}}),i("span",{on:{click:e.handleGoBack}},[e._v("返回")])]),i("svg",{staticClass:"icon-groupChat",attrs:{width:100,height:100}},[i("use",{attrs:{href:"#icon-groupChat"}})]),i("div",[i("div",{staticClass:"creator-div"},[i("div",{staticClass:"label title"},[e._v(e._s(e.group.groupName)+"("+e._s(e.total)+")")])]),i("div",{staticClass:"creator-div"},[i("div",{staticClass:"label"},[e._v("创建时间:")]),i("span",[e._v(e._s(e.group.createTime))]),i("div",{staticClass:"label"},[e._v("群主:")]),i("span",[e._v(e._s(e.group.groupLeaderName||e.group.newOwnerName))]),i("div",{staticClass:"label"},[e._v("标签:")]),e._l(e.group.tagList,(function(t,a){return i("el-tag",{key:a,attrs:{type:"info"}},[e._v(e._s(t.name))])})),i("i",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:group:edit"],expression:"['customerManage:group:edit']"}],staticClass:"el-icon-edit theme-text-color",on:{click:function(){return e.showTagDialog(e.group)}}})],2),i("div",{staticClass:"mt15 flex aic"},[i("div",{staticClass:"label"},[e._v("群公告:")]),i("div",{staticClass:"message-content"},[e._v(" "+e._s(e.group.notice||"未设置")+" ")])])])]),i("div",{staticClass:"tab",style:{height:e.activeTabName===e.CUSTOMER_DETAIL["groupMemInfo"]?"100%":"40px"}},[i("el-tabs",{model:{value:e.activeTabName,callback:function(t){e.activeTabName=t},expression:"activeTabName"}},[i("el-tab-pane",{attrs:{label:"群成员信息",name:e.CUSTOMER_DETAIL["groupMemInfo"]}},[i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{inline:!0,model:e.query,"label-width":"100px",size:"small"}},[i("el-form-item",{staticClass:"group-member-search",attrs:{prop:"memberName"}},[i("el-input",{attrs:{placeholder:"请输入群成员昵称"},model:{value:e.query.memberName,callback:function(t){e.$set(e.query,"memberName",t)},expression:"query.memberName"}})],1),i("el-form-item",[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"daterange","picker-options":e.pickerOptions,"range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),i("el-form-item",{attrs:{prop:"joinScene"}},[i("el-select",{attrs:{placeholder:"请选择入群方式"},model:{value:e.query.joinScene,callback:function(t){e.$set(e.query,"joinScene",t)},expression:"query.joinScene"}},e._l(e.statusOptions,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),i("el-form-item",[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.getList(1)}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"data-stat",fn:function(){return[i("span",[e._v("群内客户"),i("span",{staticClass:"data-count-num"},[e._v(e._s(e.customerCount))]),e._v("人,企业成员"),i("span",{staticClass:"data-count-num"},[e._v(e._s(e.staffCount))]),e._v("人")])]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{label:"群成员",prop:"memberName"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.userId===e.group.owner?i("span",{staticClass:"owner-label theme-text-color"},[e._v("群主")]):e._e(),e._v(" "+e._s(t.row.memberName)+" ")]}}])}),i("el-table-column",{attrs:{label:"成员类型",prop:"joinType"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e.memberType[t.row.joinType]))])]}}])}),i("el-table-column",{attrs:{label:"入群时间",prop:"joinTime"}}),i("el-table-column",{attrs:{label:"入群方式",prop:"joinScene"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e.joinScene[t.row.joinScene]))])]}}])}),i("el-table-column",{attrs:{label:"邀请者",prop:"invitorName"},scopedSlots:e._u([{key:"header",fn:function(){return[i("span",[e._v("邀请者")]),i("el-popover",{attrs:{placement:"top-start",content:"仅本企业内部成员邀请入群时显示邀请者",trigger:"hover","popper-class":"tip-popover"}},[i("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"14px"},attrs:{slot:"reference"},slot:"reference"})])]},proxy:!0}])})],1),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,disabled:e.loading,page:e.query.pageNum,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}})]},proxy:!0}])})],1),i("el-tab-pane",{attrs:{label:"待办事项",name:e.CUSTOMER_DETAIL["todo"]}})],1)],1),e.activeTabName===e.CUSTOMER_DETAIL["todo"]?i("div",{staticClass:"todo-tab"},[i("CustomerOrGroupInfo",{attrs:{"active-tab":e.CUSTOMER_DETAIL["todo"],"external-userid":e.query.chatId,"is-group":""}})],1):e._e(),i("SelectTag",{ref:"selectTag",attrs:{visible:e.dialogVisible,title:"客户群标签",type:"search",selected:e.selectedTags,"info-msg":"请选择要为当前客户群打上的标签","is-show-add":!0,"tag-type":"group"},on:{"update:visible":function(t){e.dialogVisible=t},success:e.submitSelectTag}})],1)},n=[],r=i("2909"),s=i("5530"),o=(i("4de4"),i("7db0"),i("d81d"),i("b64b"),i("d3b7"),i("14e1")),l=i("2553"),c=i("aada"),u=i("b66d"),d=i("4b45"),p=i("e2e0"),f=i("dd70"),A={components:{SelectTag:c["a"],RightContainer:u["a"],CustomerOrGroupInfo:d["default"]},mixins:[p["a"]],data:function(){return{loading:!1,ids:[],multiple:!0,total:0,list:[],group:{},query:{pageNum:1,pageSize:f["Ic"],groupId:void 0,memberName:void 0,joinScene:void 0},joinScene:f["Lb"],memberType:f["hc"],dateRange:[],pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},statusOptions:Object.keys(f["hb"]).map((function(e){return{label:f["hb"][e],value:e}})),customerCount:0,staffCount:0,dialogVisible:!1,selectedTags:[],activeTabName:f["y"]["groupMemInfo"],CUSTOMER_DETAIL:f["y"]}},created:function(){this.group=this.$route.query,this.query.chatId=this.group.chatId,this.getGroup(),this.getList()},methods:{getGroup:function(){var e=this;o["b"]({chatId:this.query.chatId}).then((function(t){e.group=t.rows?t.rows[0]:e.group,e.group.weTags=e.group.tagList}))},getList:function(e){var t=this,i=Object(s["a"])({},this.query);this.dateRange.length>0&&(i.startTime=this.dateRange[0],i.endTime=this.dateRange[1]),e&&(this.query.pageNum=e),this.loading=!0,o["d"](i).then((function(e){t.list=e.rows,t.total=+e.total})).finally((function(){t.modifyButtonStatus(),t.loading=!1})),o["c"](i).then((function(e){var i=e.data,a=i.customerCount,n=i.staffCount;t.customerCount=a,t.staffCount=n}))},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.operId})),this.multiple=!e.length},handleGoBack:function(){this.$router.go(-1)},resetQuery:function(){var e=this;this.dateRange=[],this.$refs["queryForm"].resetFields(),this.$nextTick((function(){e.getList(1)}))},showTagDialog:function(e){this.selectedTags=Object(r["a"])(e.weTags),this.dialogVisible=!0},submitSelectTag:function(e){var t=this,i=[this.group.chatId],a=e.filter((function(e){return!t.group.weTags.find((function(t){return t.tagId===e.tagId}))})),n=this.group.weTags.filter((function(t){return!e.find((function(e){return e.tagId===t.tagId}))}));if(!a.length&&!n.length)return this.msgSuccess("操作成功"),void(this.dialogVisible=!1);a.length&&l["batchAddTagRel"]({chatIdList:i,tagIdList:a.map((function(e){return e.tagId}))}).then((function(){!n.length&&t.msgSuccess("操作成功"),t.dialogVisible=!1,t.getGroup()})),n.length&&l["batchDelTagRel"]({chatIdList:i,tagIdList:n.map((function(e){return e.tagId}))}).then((function(){t.msgSuccess("操作成功"),t.dialogVisible=!1,t.getGroup()}))}}},h=A,m=(i("37fc"),i("2877")),g=Object(m["a"])(h,a,n,!1,null,"278a8f63",null);t["default"]=g.exports},4467:function(e,t,i){},4468:function(e,t,i){},"448c":function(e,t,i){},4490:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"push-result-wrapper"},[i("RightContainer",{scopedSlots:e._u([{key:"data",fn:function(){return[i("div",{staticClass:"search-form flex"},[i("el-input",{attrs:{placeholder:"请输入员工姓名",size:"small"},model:{value:e.query.userName,callback:function(t){e.$set(e.query,"userName",t)},expression:"query.userName"}}),i("el-select",{attrs:{placeholder:"请选择发布状态"},model:{value:e.query.publishStatus,callback:function(t){e.$set(e.query,"publishStatus",t)},expression:"query.publishStatus"}},e._l(e.options,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.listOfMomentPublishDetail(1)}}},[e._v("查询")]),i("el-button",{staticClass:"btn-reset",on:{click:e.resetQuery}},[e._v("重置")]),i("div",{staticClass:"button-right"},[i("el-button",{staticClass:"btn-reset",on:{click:e.refresh}},[e._v("刷新数据")]),i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.notify(e.list,1)}}},[e._v("一键提醒")])],1)],1),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.list.length}})],1),i("el-table-column",{staticClass:"trest1",attrs:{label:"员工",align:"center",prop:"userName"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"user-info"},[i("img",{attrs:{src:e.getHeadImgUrl(t.row.headImageUrl)}}),i("span",[e._v(e._s(t.row.userName))])])]}}])}),i("el-table-column",{attrs:{align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.publishStatus[t.row.publishStatus])+" ")]}}])},[i("template",{slot:"header"},[i("div",[i("span",[e._v("发布状态")]),i("el-popover",{attrs:{placement:"bottom-start",trigger:"hover","popper-class":"tip-popover"}},[i("div",[e._v("已发布:发出通知后48小时内,发布到朋友圈")]),i("div",[e._v("待发布:发出通知后48小时内,未发布朋友圈")]),i("div",[e._v("已过期:发出通知后48小时后发布或未发布朋友圈")]),i("div",[e._v("不可发布:员工不在应用的可见范围内")]),i("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"14px"},attrs:{slot:"reference"},slot:"reference"})])],1)])],2),i("el-table-column",{attrs:{label:"发布时间",align:"center",prop:"publishTime"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"user-info"},[e._v(" "+e._s(t.row.publishTime)+" ")])]}}])}),i("el-table-column",{attrs:{label:"触达对象",align:"center",prop:"customerName"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.getSendTargets(t.row))+" ")]}}])}),i("el-table-column",{attrs:{prop:"remark",label:"备注",align:"center"}}),i("el-table-column",{attrs:{label:"操作",align:"center",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{style:t.row.publishStatus===e.RELEASED?"":"color:#AAAAAA",attrs:{size:"mini",type:"text",disabled:!(t.row.publishStatus===e.RELEASED)},on:{click:function(i){return e.notify(t.row,0)}}},[e._v("提醒发布")])]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.query.pageNum,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.listOfMomentPublishDetail()}}})]},proxy:!0}])})],1)},n=[],r=i("5530"),s=i("ade3"),o=(i("a15b"),i("fb6a"),i("a9e3"),i("46ad")),l=i("dd70"),c=i("b66d"),u=i("e77d"),d=i("cf45"),p=5,f=0,A=1,h=2,m=3,g={components:{RightContainer:c["a"],EmptyDefaultIcon:u["a"]},props:{usersId:{type:String,default:""},momentTaskId:{type:String,default:""},sendTime:{type:String,default:""},type:{type:Number,default:1}},data:function(){return{RELEASED:f,PUBLISHED:A,OVERDUE:h,NOTRELEASE:m,query:{pageNum:1,pageSize:l["Ic"],momentTaskId:this.momentTaskId,publishStatus:"",userName:""},AllUsersIds:[],total:0,loading:!1,list:[],options:[{label:"待发布",value:"0"},{label:"已发布",value:"1"},{label:"已过期",value:"2"},{label:"不可发布",value:"3"}],publishStatus:Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])({},f,"待发布"),A,"已发布"),h,"已过期"),m,"不可发布")}},computed:{},watch:{},created:function(){this.AllUsersIds=this.usersId.split(","),this.listOfMomentPublishDetail()},mounted:function(){},methods:{getHeadImgUrl:d["B"],listOfMomentPublishDetail:function(e){var t=this;e&&(this.query.pageNum=e),this.loading=!0;var i=Object(r["a"])({},this.query);Object(o["f"])(i).then((function(e){var i=e.rows,a=e.total;t.list=i,t.total=a,t.loading=!1})).catch((function(){t.loading=!1}))},resetQuery:function(){this.query.userName="",this.query.publishStatus="",this.listOfMomentPublishDetail(1)},refresh:function(){var e=this;Object(o["g"])({momentTaskId:this.momentTaskId}).then((function(t){e.msgSuccess("刷新成功"),e.$emit("refshTime"),e.listOfMomentPublishDetail(1)}))},notify:function(e,t){var i=this,a=[],n=this.sendTime,r=this.type,s=this.momentTaskId;if(0===t){var l=e.userId;a.push(l),Object(o["h"])({userIds:a,sendTime:n,type:r,momentTaskId:s}).then((function(e){i.msgSuccess("提醒成功")}))}else a=this.AllUsersIds,this.$confirm("向未发布朋友圈的员工发出任务提醒,是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(o["h"])({userIds:a,sendTime:n,type:r,momentTaskId:s}).then((function(e){i.msgSuccess("提醒成功")}))}))},getSendTargets:function(e){return null===e.customerName?" ":e.customerName.split(",").length>p?e.customerName.split(",").slice(0,p).join(",")+"等"+e.customerName.split(",").length+"人":e.customerName}}},v=g,b=(i("c2c6"),i("2877")),y=Object(b["a"])(v,a,n,!1,null,"71993f96",null);t["default"]=y.exports},"44cb":function(e,t,i){},"451f":function(e,t,i){},"453c":function(e,t,i){"use strict";i("845d")},"45bd":function(e,t,i){},"45e6":function(e,t,i){"use strict";i("4398")},4643:function(e,t,i){"use strict";i("7b78")},"46ad":function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"c",(function(){return s})),i.d(t,"e",(function(){return o})),i.d(t,"d",(function(){return l})),i.d(t,"f",(function(){return c})),i.d(t,"h",(function(){return u})),i.d(t,"i",(function(){return d})),i.d(t,"g",(function(){return p})),i.d(t,"b",(function(){return f}));var a=i("b775"),n=window.CONFIG.services.wecom+"/moment";function r(e){return Object(a["a"])({url:n+"/create",method:"post",data:e})}function s(e){return Object(a["a"])({url:n+"/listOfMomentTask",method:"get",params:e})}function o(e){return Object(a["a"])({url:n+"/getTotal",method:"get",params:e})}function l(e){return Object(a["a"])({url:n+"/getMomentTaskBasicInfo",method:"get",params:e})}function c(e){return Object(a["a"])({url:n+"/listOfMomentPublishDetail",method:"get",params:e})}function u(e){return Object(a["a"])({url:n+"/sendToUser",method:"post",data:e})}function d(e){return Object(a["a"])({url:n+"/updateMoment",method:"post",data:e})}function p(e){return Object(a["a"])({url:n+"/refreshMomentTask",method:"put",params:e})}function f(e){return Object(a["a"])({url:n+"/deleteMoment",method:"delete",params:e})}},"46d4":function(e,t,i){e.exports=i.p+"static/img/receive-step2-2.6000fad4.jpg"},4774:function(e,t,i){"use strict";i("c0ec")},"47a5":function(e,t,i){"use strict";i("c815")},"47b4":function(e,t,i){e.exports=i.p+"static/img/background-step-2.8ec6644d.png"},4830:function(e,t,i){"use strict";i("014c")},4843:function(e,t,i){"use strict";i("0833")},"486d":function(e,t,i){e.exports=i.p+"static/img/customer-service-qrcode.41ddec9b.png"},4887:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"appendix-box"},[i("el-dropdown",{attrs:{trigger:"click",placement:"top"},on:{command:e.selectMaterial}},[i("el-button",{staticClass:"btn-reset add-btn",on:{click:e.checkAppendixList}},[e._v("新增附件")]),e.checkAppendixList(!1)?i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",[e._v("素材库选取")]),i("el-dropdown-item",{attrs:{command:e.MEDIA_TYPE_POSTER}},[e._v("新增海报")]),i("el-dropdown-item",{attrs:{command:e.MEDIA_TYPE_IMGLINK}},[e._v("新增链接")]),i("el-dropdown-item",{attrs:{command:e.MEDIA_TYPE_VIDEO}},[e._v("新增视频")]),i("el-dropdown-item",{attrs:{command:e.MEDIA_TYPE_FILE}},[e._v("新增文件")]),i("el-dropdown-item",{attrs:{command:e.MEDIA_TYPE_MINIAPP}},[e._v("新增小程序")])],1):e._e()],1),i("div",{staticClass:"appendix-list"},e._l(e.appendixList,(function(t,a){return i("div",{key:t.id,staticClass:"appendix-item"},[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"删除",placement:"top"}},[i("i",{staticClass:"el-icon-remove-outline",on:{click:function(i){return e.handleDeleteAppendix(a,t)}}})]),i("span",{staticClass:"appendix-type"},[e._v("["+e._s(e.MESSAGE_MEDIA_TYPE[t.mediaType])+"]")]),t.mediaType.toString()===e.MEDIA_TYPE_SMARTFORM?i("span",{staticClass:"appendix-title inoneline"},[e._v(e._s(t.formName||t.form.formName))]):t.mediaType.toString()===e.MEDIA_TYPE_RADARLINK?i("span",{staticClass:"appendix-title inoneline"},[e._v(e._s(t.radarTitle||t.radar.radarTitle))]):i("span",{staticClass:"appendix-title inoneline"},[e._v(e._s(t.materialName))]),i("span",{staticClass:"appendix-operate-icon"},[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"编辑",placement:"top"}},[e.isOtherMaterialType(t.mediaType+"")?i("i"):i("i",{staticClass:"iconfont icon-tool-edit",on:{click:function(){return e.showEditMaterial(t)}}})]),i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"长按拖拽排序",placement:"right"}},[i("i",{staticClass:"el-icon-sort",attrs:{draggable:"true"},on:{mousedown:function(t){return e.mousedown(a)},mousemove:function(e){e.preventDefault()},mouseenter:function(t){return e.mouseenter(a)}}})])],1)],1)})),0)],1),i("MaterialAddModal",{ref:"saveToMaterial",attrs:{form:e.materialForm,type:String(e.appendixType),"show-material-save":!e.isOperatingMaterial&&!e.materialForm.isAdded,"show-material-setting":!!e.isOperatingMaterial||e.materialForm.saveToMaterial,"modal-title":(e.materialForm.isAdded?"编辑":"添加")+e.MEDIA_TYPE[e.appendixType],visible:e.showAppendixAddModal,"get-list":e.getMaterialList,"is-operating-material":e.isOperatingMaterial,"hide-video-cover":e.hideVideoCover},on:{"update:form":function(t){e.materialForm=t},"update:visible":function(t){e.showAppendixAddModal=t},submit:function(t){return e.materialForm.isAdded?e.handleEditAppendix(t):e.handleAddApendix(t)}}}),e.dialogVisibleSelectMaterial?i("MaterialListDrawer",{ref:"materialDrawer",attrs:{"drawer-title":"选择素材","radar-hidden":e.radarHidden,visible:e.dialogVisibleSelectMaterial,list:e.materialList,"get-list":e.getMaterialList,"poster-tool-list":["preview"],"imglink-tool-list":["preview"],"video-tool-list":["preview"],"file-tool-list":["download"],"miniapp-tool-list":[],query:e.query,"radar-query":e.radarQuery,"other-query":e.otherQuery,"sub-title":e.subTitle,type:"select",total:e.total,"is-loading":e.isLoadingMaterial,"limit-select-length":e.limitSelectLength,"material-type":e.materialType,"show-expire-time":!1},on:{"update:visible":function(t){e.dialogVisibleSelectMaterial=t},"update:query":function(t){e.query=t},"update:radarQuery":function(t){e.radarQuery=t},"update:radar-query":function(t){e.radarQuery=t},"update:materialType":function(t){e.materialType=t},"update:material-type":function(t){e.materialType=t},submit:e.handleAddApendixList}},[i("template",{slot:"right-btn"},[i("div",{staticClass:"right-btn-div"},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wechat:material:add"],expression:"['wechat:material:add']"}],attrs:{type:"primary"},on:{click:function(t){return e.handleAddMaterial(null,~~e.materialType)}}},[e._v("添加"+e._s(e.MEDIA_TYPE[e.materialType]))])],1)])],2):e._e()],1)},n=[],r=i("5530"),s=i("2909"),o=(i("c740"),i("d81d"),i("a434"),i("a9e3"),i("d3b7"),i("159b"),i("6485")),l=i("c1df"),c=i.n(l),u=i("dd70"),d=i("9094"),p=i("e8fd"),f=i("cd7b"),A=i("f9d1"),h=i("c7ea"),m=i("cf45"),g={name:"AddAppendixBtn",components:{MaterialAddModal:o["default"],MaterialListDrawer:p["a"]},props:{subTitle:{type:String,default:""},limitSelectLength:{type:Number,default:u["Tb"]},maxAppendixNum:{type:Number,default:u["Tb"]},appendixList:{type:Array,default:function(){return[]}},msgTip:{type:String,default:""},removeAppendixList:{type:Array,default:function(){return[]}},radarHidden:{type:Boolean,default:!1},hideVideoCover:{type:Boolean,default:!1}},data:function(){return{materialForm:{},appendixType:u["cc"],dialogVisibleSelectMaterial:!1,MEDIA_TYPE:u["Xb"],RADAR_TYPE:u["Qc"],MESSAGE_MEDIA_TYPE:u["ic"],dragSource:void 0,dragTarget:void 0,materialType:u["cc"],query:{pageNum:1,pageSize:u["Ic"],categoryId:"",search:"",mediaType:u["cc"],isExpire:!1},radarQuery:{type:this.$store.state.user.isSuperAdmin?u["Qc"]["enterprise"]:"",pageNum:1,pageSize:u["Ic"],searchTitle:""},otherQuery:{pageNum:1,pageSize:u["Ic"],belongGroup:[]},isLoadingMaterial:!0,total:0,materialList:[],isOperatingMaterial:!1,showAppendixAddModal:!1,MEDIA_TYPE_POSTER:u["cc"],MEDIA_TYPE_IMGLINK:u["ac"],MEDIA_TYPE_VIDEO:u["gc"],MEDIA_TYPE_FILE:u["Zb"],MEDIA_TYPE_MINIAPP:u["bc"],MEDIA_TYPE_RADARLINK:u["dc"],MAX_APPENDIX_NUM:u["Tb"],INTELLIGENT_FORM_TYPE:u["Ib"],MEDIA_TYPE_SMARTFORM:u["ec"],isOtherMaterialType:m["I"]}},watch:{materialType:function(e){this.query.mediaType=e}},created:function(){Object(f["a"])(this.$store),Object(f["b"])(this.$store)},methods:{selectMaterial:function(e){void 0!==e?(this.isOperatingMaterial=!1,this.showAppendixAddModal=!0,this.appendixType=e,this.materialForm={}):(this.materialType=u["cc"],this.getMaterialList({mediaType:u["cc"]}),this.dialogVisibleSelectMaterial=!0)},checkAppendixList:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return!(this.appendixList.length>=this.maxAppendixNum)||(e&&this.msgInfo("".concat(this.msgTip||"最多支持发送".concat(this.maxAppendixNum,"个附件"))),!1)},handleDeleteAppendix:function(e,t){var i=Object(s["a"])(this.appendixList),a=Object(s["a"])(this.removeAppendixList);a.push(t),i.splice(e,1),this.$emit("update:appendixList",i),this.$emit("update:removeAppendixList",a)},showEditMaterial:function(e){this.isOperatingMaterial=!1,this.showAppendixAddModal=!0,e.isAdded=!0,this.appendixType=e.mediaType,this.materialForm=Object(r["a"])({},e)},mousedown:function(e){this.dragSource=e},mouseenter:function(e){this.dragTarget=e,this.handleDragAppendix(this.dragSource,e)},handleDragAppendix:function(){var e=this.dragSource,t=this.dragTarget;if(!isNaN(e)&&!isNaN(t)&&e!==t){var i=Object(s["a"])(this.appendixList);i[e]=i.splice(t,1,i[e])[0],this.$emit("update:appendixList",i)}this.dragSource=void 0,this.dragTarget=void 0},handleAddApendixList:function(e){var t=this;e.forEach((function(e){setTimeout((function(){t.handleAddApendix(e)}),1)}))},handleAddApendix:function(e){var t=c.a.now(),i=Object(s["a"])(this.appendixList);i.push(Object(r["a"])(Object(r["a"])({},e),{},{isAdded:!0,time:t,saveToMaterial:!1})),this.$emit("update:appendixList",i),e.saveToMaterial&&(this.query.mediaType=e.mediaType,this.getMaterialList({mediaType:this.query.mediaType}))},handleAddMaterial:function(e,t){var i=this;this.isOperatingMaterial=!0,this.showAppendixAddModal=!0,this.appendixType=t,this.materialForm=Object.assign({},e||{categoryId:this.categoryId}),this.$nextTick((function(){var e;null===(e=i.$refs["saveToMaterial"])||void 0===e||null===(e=e.$refs)||void 0===e||null===(e=e.form)||void 0===e||e.clearValidate()}))},getMaterialList:function(e,t){var i=this;switch(this.isLoadingMaterial=!0,e.mediaType){case u["ec"]:var a={corpFormGroup:u["Ib"]["enterprise"],departmentFormGroup:u["Ib"]["department"],selfFormGroup:u["Ib"]["personal"]},n="",s=this.otherQuery,o=s.pageNum,l=s.pageSize,c=s.formName,p=s.belongGroup,f=s.departmentId;1!==p.length&&(n=p[p.length-1]);var m=a[p&&p[0]],g=Object(r["a"])(Object(r["a"])({pageNum:o,pageSize:l,sourceType:m,formName:c,groupId:n},m===u["Ib"]["department"]&&{departmentId:f}),{},{enableFlag:!0});Object(h["o"])(g).then((function(e){i.total=e.total,i.isLoadingMaterial=!1;var t=e.rows.map((function(e){var t,a=Object(r["a"])(Object(r["a"])({},e),{},{extraId:e.id,mediaType:+u["ec"],categoryId:(null===(t=i.$store.state.materialInfo)||void 0===t||null===(t=t.categoryInfo[+u["ec"]])||void 0===t?void 0:t.id)||""});return delete a.id,a}));i.materialList=t})).finally((function(){t&&t()}));break;case u["dc"]:Object(A["k"])(this.radarQuery).then((function(e){var t=e.rows.map((function(e){var t;return{title:e.weRadarUrl.title,content:e.weRadarUrl.content,coverUrl:e.weRadarUrl.coverUrl,url:e.weRadarUrl.url,radarTitle:e.radarTitle,extraId:e.radarId,materialUrl:e.weRadarUrl.url,materialName:e.weRadarUrl.title,radarTagList:e.radarTagList,mediaType:+u["dc"],categoryId:(null===(t=i.$store.state.materialInfo)||void 0===t||null===(t=t.categoryInfo[+u["dc"]])||void 0===t?void 0:t.id)||""}}));i.materialList=t,i.total=Number(e.total),i.isLoadingMaterial=!1})).finally((function(){t&&t()}));break;default:Object(d["e"])(Object(r["a"])(Object(r["a"])({},this.query),e)).then((function(e){i.materialList=e.rows,i.total=Number(e.total),i.isLoadingMaterial=!1})).finally((function(){t&&t()}));break}},handleEditAppendix:function(e){var t=Object(s["a"])(this.appendixList),i=t.findIndex((function(t){return e.id?e.id===t.id:e.time===t.time}));t.splice(i,1,e),this.$emit("update:appendixList",t)}}},v=g,b=(i("cc43"),i("2877")),y=Object(b["a"])(v,a,n,!1,null,"0822ee2c",null);t["a"]=y.exports},"48bd":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"overview-page"},[i("SelectUser",{attrs:{visible:e.dialogVisibleSelectUser,title:"选择员工/部门","is-dep-linkage":"","is-only-leaf":!1,"selected-user-list":e.userAndDepartmentList},on:{"update:visible":function(t){e.dialogVisibleSelectUser=t},success:e.selectedUserOrDepartment}}),i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{inline:!0,model:e.query,"label-width":"100px",size:"small"}},[i("el-form-item",{attrs:{prop:"name"}},[i("div",{staticClass:"tag-input",on:{click:function(t){e.dialogVisibleSelectUser=!0}}},[e.userAndDepartmentList.length?e._l(e.userAndDepartmentList,(function(e,t){return i("el-tag",{key:t,staticClass:"theme-text-color user-tag iaic"},[i("TagUserShow",{attrs:{name:e.name,"show-icon":!e.userId}})],1)})):i("span",{staticClass:"tag-place"},[e._v("请选择员工/部门")])],2)]),i("el-form-item",[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions,clearable:!1},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),i("el-form-item",[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.onSearch()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetForm()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"data",fn:function(){return[i("div",{staticClass:"data-overview"},[i("Statistics",{attrs:{title:"数据总览","col-list":e.colList}},[i("template",{slot:"operate"},[i("el-popover",{attrs:{trigger:"hover",placement:"left-start"}},[i("div",{staticClass:"popover-content"},[i("div",{staticClass:"info"},[i("p",[e._v("客户总数:截止到查询时间,员工没有删除的客户数,未去重")]),i("p",[e._v("留存客户总数:截止到查询时间,未将员工删除、拉黑的客户总数,未去重")]),i("p",[e._v("新增客户数:查询时间内员工添加的客户数量")]),i("p",[e._v("流失客户数:查询时间内,把员工删除或拉黑的客户数量")]),i("p",[e._v("新客留存率:查询时间内,未将员工删除或拉黑的新增客户/新增客户")]),i("p",[e._v("新客开口率:查询时间内,在添加当天给员工发消息的新增客户/新增客户")]),i("p",[e._v("服务响应率:查询时间内,员工首次向客户发送消息后,客户在30分钟内回复/会话客户")])]),i("div",{staticClass:"line"}),i("div",{staticClass:"notice"},[e._v(" 注意:新客开口率、服务响应率的统计数据来源于会话存档,若员工未开启会话存档或客户拒绝存档,统计数将受影响 ")])]),i("div",{staticClass:"statistic theme-text-color",attrs:{slot:"reference"},slot:"reference"},[e._v("统计说明")])])],1)],2)],1),i("div",{staticClass:"table-overview"},[i("div",{staticClass:"detail-title"},[e._v(" 数据详情 ")]),i("div",{staticClass:"forms-handle-btn"},[i("el-radio-group",{staticClass:"radio-group-div",attrs:{size:"medium"},on:{input:e.dimensionTypeChange},model:{value:e.dimensionType,callback:function(t){e.dimensionType=t},expression:"dimensionType"}},[i("el-radio-button",{attrs:{label:e.STAFF_DIMENSION}},[e._v("员工维度")]),i("el-radio-button",{attrs:{label:e.DATE_DIMENSION}},[e._v("日期维度")])],1),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["statistic:customerContact:export"],expression:"['statistic:customerContact:export']"}],staticClass:"btn-reset btn-export",on:{click:e.exportForms}},[e._v("导出报表")])],1),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"showTable",attrs:{data:e.list,"default-sort":{prop:"totalAllContactCnt",order:"descending"}},on:{"sort-change":e.changeTableSort}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.list.length}})],1),e.dimensionType===e.STAFF_DIMENSION?i("el-table-column",{attrs:{prop:"",label:"员工","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(e){var t=e.row;return[i("UserItem",{attrs:{data:t,"is-staff":!0}})]}}],null,!1,37180352)}):i("el-table-column",{attrs:{prop:"xtime",label:"日期","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e._v(" "+e._s(i.xtime)+" ")]}}])}),i("el-table-column",{attrs:{sortable:"custom",prop:"totalAllContactCnt",label:"客户总数","min-width":"180"}}),i("el-table-column",{attrs:{sortable:"custom",prop:"totalContactCnt",label:"留存客户总数","min-width":"180"}}),i("el-table-column",{attrs:{sortable:"custom",prop:"contactLossCnt",label:"流失客户数","min-width":"180"}}),i("el-table-column",{attrs:{sortable:"custom",prop:"newContactCnt",label:"新增客户数","min-width":"180"}}),i("el-table-column",{attrs:{sortable:"custom",prop:"newContactRetentionRate",label:"新客留存率","min-width":"180"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e._v(" "+e._s(i.newContactRetentionRate===e.DATA_STATISTICS_DEFAULT_SHOW?e.DATA_STATISTICS_DEFAULT_SHOW:i.newContactRetentionRate+"%")+" ")]}}])}),i("el-table-column",{attrs:{sortable:"custom",prop:"newContactStartTalkRate",label:"新客开口率","min-width":"180"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e._v(" "+e._s(i.newContactStartTalkRate+"%")+" ")]}}])}),i("el-table-column",{attrs:{sortable:"custom",prop:"serviceResponseRate",label:"服务响应率","min-width":"180"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e._v(" "+e._s(i.serviceResponseRate+"%")+" ")]}}])})],2),i("pagination",{attrs:{disabled:e.loading,total:1*e.total,page:e.query.pageNum,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}})],1)]},proxy:!0}])})],1)},n=[],r=i("ade3"),s=i("5530"),o=(i("d81d"),i("fb6a"),i("4e82"),i("b64b"),i("d3b7"),i("159b"),i("b66d")),l=i("069e"),c=i("dd70"),u=i("e77d"),d=i("86e8"),p=i("515a"),f=i("c958"),A=i("cf45"),h=i("48fb"),m=i("e2e0"),g={ascending:"ASC",descending:"DESC"},v={name:"",components:{RightContainer:o["a"],Statistics:l["a"],EmptyDefaultIcon:u["a"],UserItem:d["a"],TagUserShow:p["a"],SelectUser:f["a"]},mixins:[m["a"]],data:function(){var e=this;return{DATE_DIMENSION:c["G"],STAFF_DIMENSION:c["hd"],DATA_STATISTICS_DEFAULT_SHOW:c["F"],dialogVisibleSelectUser:!1,userAndDepartmentList:[],pickerMinDate:"",pickerOptions:{onPick:function(t){e.pickerMinDate=new Date(t.minDate).getTime()},disabledDate:function(t){if(e.pickerMinDate){var i=new Date(Object(A["b"])(e.pickerMinDate)).getTime(),a=new Date(Object(A["c"])(e.pickerMinDate)).getTime();return t.getTime()>a||t.getTime()<i||t.getTime()<new Date(A["a"]).getTime()||t.getTime()>new Date(A["f"]).getTime()}return t.getTime()<new Date(A["a"]).getTime()||t.getTime()>new Date(A["f"]).getTime()}},dateRange:[A["f"],A["f"]],query:{departmentIds:[],userIds:[],pageNum:1,pageSize:c["Ic"],beginTime:void 0,endTime:void 0},sortParams:{staffSort:{totalAllContactCnt:"descending"},dateSort:{sortName:"totalAllContactCnt",sortType:null}},total:0,list:[],loading:!1,colList:[],dimensionType:c["hd"]}},created:function(){this.onSearch()},methods:{dimensionTypeChange:function(){var e=this;if(this.dimensionType===c["hd"])Object.keys(this.sortParams.staffSort).forEach((function(t){var i;null===(i=e.$refs)||void 0===i||null===(i=i.showTable)||void 0===i||i.sort(t,e.sortParams.staffSort[t])}));else{var t,i=this.sortParams.dateSort,a=i.sortName,n=i.sortType;null===(t=this.$refs)||void 0===t||null===(t=t.showTable)||void 0===t||t.sort(a,n)}},selectedUserOrDepartment:function(e){this.userAndDepartmentList=e},getDataOverview:function(){var e=this;Object(h["u"])(this.getSearchPayload()).then((function(t){var i,a,n,r,s,o,l;e.colList=[{totalAllContactCnt:null===t||void 0===t||null===(i=t.data)||void 0===i?void 0:i.totalAllContactCnt,title:"客户总数",filed:"totalAllContactCnt"},{totalContactCnt:null===t||void 0===t||null===(a=t.data)||void 0===a?void 0:a.totalContactCnt,title:"留存客户总数",filed:"totalContactCnt"},{newContactCnt:null===t||void 0===t||null===(n=t.data)||void 0===n?void 0:n.newContactCnt,title:"新增客户数",filed:"newContactCnt"},{contactLossCnt:null===t||void 0===t||null===(r=t.data)||void 0===r?void 0:r.contactLossCnt,title:"流失客户数",filed:"contactLossCnt"},{newContactRetentionRate:null===t||void 0===t||null===(s=t.data)||void 0===s?void 0:s.newContactRetentionRate,title:"新客留存率",unit:"%",filed:"newContactRetentionRate"},{newContactStartTalkRate:null===t||void 0===t||null===(o=t.data)||void 0===o?void 0:o.newContactStartTalkRate,title:"新客开口率",unit:"%",filed:"newContactStartTalkRate"},{serviceResponseRate:null===t||void 0===t||null===(l=t.data)||void 0===l?void 0:l.serviceResponseRate,title:"服务响应率",unit:"%",filed:"serviceResponseRate"}]})).catch((function(){e.colList=[]}))},getList:function(e){var t=this;e&&(this.query.pageNum=1),this.loading=!0;var i=this.dimensionType===c["hd"]?h["w"]:h["v"];i(this.getSearchPayload()).then((function(e){t.list=t.dimensionType===c["hd"]?e.rows:t.dealPaging(e.rows),t.total=e.total||0})).finally((function(){t.loading=!1,t.modifyButtonStatus()}))},dealPaging:function(e){var t=this.sortParams.dateSort.sortType;if(!t)return e;var i=this.query,a=i.pageNum,n=i.pageSize;return e.slice((a-1)*n,a*n)},onSearch:function(){this.getDataOverview(),this.getList(!0)},resetForm:function(){var e,t;(this.userAndDepartmentList=[],this.query=this.$options.data().query,this.pickerMinDate="",this.dateRange=[A["f"],A["f"]],this.dimensionType===c["hd"])?(this.sortParams.staffSort=this.$options.data().sortParams.staffSort,null===(e=this.$refs)||void 0===e||null===(e=e.showTable)||void 0===e||e.sort("totalAllContactCnt","descending")):(this.sortParams.dateSort=this.$options.data().sortParams.dateSort,null===(t=this.$refs)||void 0===t||null===(t=t.showTable)||void 0===t||t.sort("totalAllContactCnt",null));this.getDataOverview()},getSearchPayload:function(){var e=this;if(this.dateRange?(this.query.beginTime=this.dateRange[0],this.query.endTime=this.dateRange[1]):(this.query.beginTime="",this.query.endTime=""),this.userAndDepartmentList&&this.userAndDepartmentList.length>0){var t=Object(A["F"])(this.userAndDepartmentList);this.query.departmentIds=t.useDepartmentList.map((function(e){return e.id})),this.query.userIds=t.useEmployeesList.map((function(e){return e.userId}))}else this.query.departmentIds=[],this.query.userIds=[];var i={};if(this.dimensionType===c["hd"])Object.keys(this.sortParams.staffSort).forEach((function(t){i["".concat(t,"Sort")]=g[e.sortParams.staffSort[t]]}));else{var a=this.sortParams.dateSort,n=a.sortName,r=a.sortType;i={sortName:n+"Sort",sortType:g[r]}}return Object(s["a"])(Object(s["a"])({},this.query),i)},exportForms:function(){var e=this,t=this.dimensionType===c["hd"]?h["h"]:h["g"];t(this.getSearchPayload()).then((function(t){e.download(t.data.msg,!0)})).catch((function(){e.msgError("导出失败!")}))},changeTableSort:function(e){var t=e.prop,i=e.order;this.dimensionType===c["hd"]?this.sortParams.staffSort=Object(r["a"])({},t,i):this.sortParams.dateSort={sortName:t,sortType:i},this.getList(!0)}}},b=v,y=(i("e818"),i("2877")),_=Object(y["a"])(b,a,n,!1,null,"1a9cc964",null);t["default"]=_.exports},"48da":function(e,t,i){"use strict";i("edb9a")},"48e6":function(e,t,i){"use strict";i("e27b")},"48fb":function(e,t,i){"use strict";i.d(t,"u",(function(){return r})),i.d(t,"w",(function(){return s})),i.d(t,"r",(function(){return o})),i.d(t,"q",(function(){return l})),i.d(t,"s",(function(){return c})),i.d(t,"t",(function(){return u})),i.d(t,"p",(function(){return d})),i.d(t,"C",(function(){return p})),i.d(t,"D",(function(){return f})),i.d(t,"o",(function(){return A})),i.d(t,"h",(function(){return h})),i.d(t,"e",(function(){return m})),i.d(t,"f",(function(){return g})),i.d(t,"d",(function(){return v})),i.d(t,"v",(function(){return b})),i.d(t,"g",(function(){return y})),i.d(t,"B",(function(){return _})),i.d(t,"n",(function(){return w})),i.d(t,"y",(function(){return C})),i.d(t,"x",(function(){return x})),i.d(t,"i",(function(){return k})),i.d(t,"A",(function(){return T})),i.d(t,"z",(function(){return S})),i.d(t,"j",(function(){return I})),i.d(t,"E",(function(){return E})),i.d(t,"c",(function(){return O})),i.d(t,"a",(function(){return B})),i.d(t,"b",(function(){return L})),i.d(t,"k",(function(){return D})),i.d(t,"m",(function(){return M})),i.d(t,"l",(function(){return N}));var a=i("b775"),n=window.CONFIG.services.wecom+"/statistics";function r(e){return Object(a["a"])({url:n+"/getCustomerOverViewOfTotal",method:"post",data:e})}function s(e){return Object(a["a"])({url:n+"/getCustomerOverViewOfUser",method:"post",data:e})}function o(e){return Object(a["a"])({url:n+"/getCustomerActivityOfDateTrend",method:"post",data:e})}function l(e){return Object(a["a"])({url:n+"/getCustomerActivityOfDate",method:"post",data:e})}function c(e){return Object(a["a"])({url:n+"/getCustomerActivityOfUser",method:"post",data:e})}function u(e){return Object(a["a"])({url:n+"/getCustomerActivityOfUserDetail",method:"post",data:e})}function d(e){return Object(a["a"])({url:n+"/getCustomerActivityOfCustomer",method:"post",data:e})}function p(e){return Object(a["a"])({url:n+"/getUserServiceOfTotal",method:"post",data:e})}function f(e){return Object(a["a"])({url:n+"/getUserServiceOfUser",method:"post",data:e})}function A(e){return Object(a["a"])({url:n+"/exportUserServiceOfUser",method:"POST",data:e})}function h(e){return Object(a["a"])({url:n+"/exportCustomerOverViewOfUser",method:"post",data:e})}function m(e){return Object(a["a"])({url:n+"/exportCustomerActivityOfDate",method:"post",data:e})}function g(e){return Object(a["a"])({url:n+"/exportCustomerActivityOfUser",method:"post",data:e})}function v(e){return Object(a["a"])({url:n+"/exportCustomerActivityOfCustomer",method:"post",data:e})}function b(e){return Object(a["a"])({url:n+"/getCustomerOverViewOfDate",method:"post",data:e})}function y(e){return Object(a["a"])({url:n+"/exportCustomerOverViewOfDate",method:"post",data:e})}function _(e){return Object(a["a"])({url:n+"/getUserServiceOfTime",method:"post",data:e})}function w(e){return Object(a["a"])({url:n+"/exportUserServiceOfTime",method:"post",data:e})}function C(e){return Object(a["a"])({url:n+"/getCustomerTagTableView",method:"post",data:e})}function x(e){return Object(a["a"])({url:n+"/getCustomerTagChartView",method:"post",data:e})}function k(e){return Object(a["a"])({url:n+"/exportCustomerTagsView",method:"post",data:e})}function T(e){return Object(a["a"])({url:n+"/getGroupTagTableView",method:"post",data:e})}function S(e){return Object(a["a"])({url:n+"/getGroupTagChartView",method:"post",data:e})}function I(e){return Object(a["a"])({url:n+"/exportGroupTagsView",method:"post",data:e})}function E(e){return Object(a["a"])({url:n+"/emplecode/total",method:"post",data:e})}function O(e,t){return Object(a["a"])({url:n+"/emplecode/user/list",params:t,method:"post",data:e})}function B(e,t){return Object(a["a"])({url:n+"/emplecode/emple/list",method:"post",params:t,data:e})}function L(e){return Object(a["a"])({url:n+"/emplecode/date/list",method:"post",data:e})}function D(e){return Object(a["a"])({url:n+"/emplecode/emple/export",method:"post",data:e})}function M(e){return Object(a["a"])({url:n+"/emplecode/user/export",method:"post",data:e})}function N(e){return Object(a["a"])({url:n+"/emplecode/date/export",method:"post",data:e})}},4910:function(e,t,i){"use strict";i("bd35")},4917:function(e,t,i){"use strict";i("53c9")},4923:function(e,t,i){"use strict";i.r(t);i("d81d");var a=i("1980"),n=i.n(a),r=(i("e9c4"),i("b64b"),i("d3b7"),i("159b"),i("ed08")),s=Object(r["n"])("accept,accept-charset,accesskey,action,align,alt,async,autocomplete,autofocus,autoplay,autosave,bgcolor,border,buffered,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,http-equiv,name,contenteditable,contextmenu,controls,coords,data,datetime,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,method,for,form,formaction,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,ismap,itemprop,keytype,kind,label,lang,language,list,loop,low,manifest,max,maxlength,media,method,GET,POST,min,multiple,email,file,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,seamless,selected,shape,size,type,text,password,sizes,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,type,usemap,value,width,wrap");function o(e,t,i){t.props.value=i,t.on.input=function(t){e.$emit("input",t)}}var l={"el-input":{prepend:function(e,t,i){return e("template",{slot:"prepend"},[t[i]])},append:function(e,t,i){return e("template",{slot:"append"},[t[i]])}},"el-select":{options:function(e,t,i){var a=[];return t.options.forEach((function(t){a.push(e("el-option",{attrs:{label:t.label,value:t.value,disabled:t.disabled}}))})),a}},"el-radio-group":{options:function(e,t,i){var a=[];return t.options.forEach((function(i){"button"===t.optionType?a.push(e("el-radio-button",{attrs:{label:i.value}},[i.label])):a.push(e("el-radio",{attrs:{label:i.value,border:t.border}},[i.label]))})),a}},"el-checkbox-group":{options:function(e,t,i){var a=[];return t.options.forEach((function(i){"button"===t.optionType?a.push(e("el-checkbox-button",{attrs:{label:i.value}},[i.label])):a.push(e("el-checkbox",{attrs:{label:i.value,border:t.border}},[i.label]))})),a}},"el-upload":{"list-type":function(e,t,i){var a=[];return"picture-card"===t["list-type"]?a.push(e("i",{class:"el-icon-plus"})):a.push(e("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-upload"}},[t.buttonText])),t.showTip&&a.push(e("div",{slot:"tip",class:"el-upload__tip"},["只能上传不超过 ",t.fileSize,t.sizeUnit," 的",t.accept,"文件"])),a}}},c={render:function(e){var t=this,i={attrs:{},props:{},on:{},style:{}},a=JSON.parse(JSON.stringify(this.conf)),n=[],r=l[a.tag];return r&&Object.keys(r).forEach((function(t){var i=r[t];a[t]&&n.push(i(e,a,t))})),Object.keys(a).forEach((function(e){var n=a[e];"vModel"===e?o(t,i,a.defaultValue):i[e]?i[e]=n:s(e)?i.attrs[e]=n:i.props[e]=n})),e(this.conf.tag,i,n)},props:["conf"]},u={itemBtns:function(e,t,i,a){var n=this.$listeners,r=n.copyItem,s=n.deleteItem;return[e("span",{class:"drawing-item-copy",attrs:{title:"复制"},on:{click:function(e){r(t,a),e.stopPropagation()}}},[e("i",{class:"el-icon-copy-document"})]),e("span",{class:"drawing-item-delete",attrs:{title:"删除"},on:{click:function(e){s(i,a),e.stopPropagation()}}},[e("i",{class:"el-icon-delete"})])]}},d={colFormItem:function(e,t,i,a){var n=this,r=this.$listeners.activeItem,s=this.activeId===t.formId?"drawing-item active-from-item":"drawing-item";return this.formConf.unFocusedComponentBorder&&(s+=" unfocus-bordered"),e("el-col",{attrs:{span:t.span},class:s,nativeOn:{click:function(e){r(t),e.stopPropagation()}}},[e("el-form-item",{attrs:{"label-width":t.labelWidth?"".concat(t.labelWidth,"px"):null,label:t.label,required:t.required}},[e(c,{key:t.renderKey,attrs:{conf:t},on:{input:function(e){n.$set(t,"defaultValue",e)}}})]),u.itemBtns.apply(this,arguments)])},rowFormItem:function(e,t,i,a){var r=this.$listeners.activeItem,s=this.activeId===t.formId?"drawing-row-item active-from-item":"drawing-row-item",o=p.apply(this,arguments);return"flex"===t.type&&(o=e("el-row",{attrs:{type:t.type,justify:t.justify,align:t.align}},[o])),e("el-col",{attrs:{span:t.span}},[e("el-row",{attrs:{gutter:t.gutter},class:s,nativeOn:{click:function(e){r(t),e.stopPropagation()}}},[e("span",{class:"component-name"},[t.componentName]),e(n.a,{attrs:{list:t.children,animation:340,group:"componentsGroup"},class:"drag-wrapper"},[o]),u.itemBtns.apply(this,arguments)])])}};function p(e,t,i,a){var n=this;return Array.isArray(t.children)?t.children.map((function(i,a){var r=d[i.layout];return r?r.call(n,e,i,a,t.children):f()})):null}function f(){throw new Error("没有与".concat(this.element.layout,"匹配的layout"))}var A,h,m={components:{render:c,draggable:n.a},props:["element","index","drawingList","activeId","formConf"],render:function(e){var t=d[this.element.layout];return t?t.call(this,e,this.element,this.index,this.drawingList):f()}},g=m,v=i("2877"),b=Object(v["a"])(g,A,h,!1,null,null,null);t["default"]=b.exports},4960:function(e,t,i){e.exports=i.p+"static/img/shenqingjiaru.340e1e09.png"},"499b":function(e,t,i){},"499c":function(e,t,i){"use strict";i("30a3")},"49bc":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"选择直播",visible:e.Pvisible,"close-on-click-modal":!1,width:"70%","append-to-body":""},on:{"update:visible":function(t){e.Pvisible=t}}},[i("el-form",{ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"75px"}},[i("el-form-item",{attrs:{label:"直播名称",prop:"title"}},[i("el-input",{attrs:{placeholder:"请输入直播名称",clearable:"",size:"small"},model:{value:e.queryParams.title,callback:function(t){e.$set(e.queryParams,"title",t)},expression:"queryParams.title"}})],1),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"}},[e._v("搜索")]),i("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.sync}},[e._v("同步")])],1)],1),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.zbList}},[i("el-table-column",{attrs:{label:"直播名称",align:"center",prop:"title"}}),i("el-table-column",{attrs:{label:"直播开始时间",align:"center",prop:"aliveStartAt",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e.parseTime(t.row.aliveStartAt,"{y}-{m}-{d}")))])]}}])}),i("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(i){return e.submit(t.row)}}},[e._v("选中")])]}}])})],1),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}})],1)},n=[],r=i("c7eb"),s=i("1da1"),o=i("647c"),l=i("cf45"),c={name:"SelectZb",props:{visible:{type:Boolean,default:!1}},data:function(){return{zbList:[],total:0,loading:!0,queryParams:{pageNum:1,pageSize:10,aliveManualStopAt:void 0,aliveStopAt:void 0,title:void 0,viewCount:void 0,aliveStartAt:void 0,aliveState:void 0,resourceState:void 0,pageUrl:void 0,aliveImgUrl:void 0}}},computed:{Pvisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e),e||this.$emit("close")}}},created:function(){this.getList()},watch:{},methods:{parseTime:l["L"],getList:function(){var e=this;this.loading=!0,Object(o["e"])(this.queryParams).then((function(t){e.zbList=t.rows,e.total=t.total,e.loading=!1}))},sync:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["f"])().then((function(){}));case 2:e.msgSuccess("后台开始同步数据,请稍后刷新页面"),e.getList();case 4:case"end":return t.stop()}}),t)})))()},submit:function(e){e?(this.$emit("success",e),this.Pvisible=!1):this.msgWarn("请选择使用直播")}}},u=c,d=i("2877"),p=Object(d["a"])(u,a,n,!1,null,null,null);t["default"]=p.exports},"4a10":function(e,t,i){"use strict";i("b75b")},"4a49":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],style:"height:"+e.height},[i("iframe",{staticStyle:{width:"100%",height:"100%"},attrs:{src:e.src,frameborder:"no",scrolling:"auto"}})])},n=[],r=94.5,s={name:"Swagger",data:function(){return{src:"/api/swagger-ui.html",height:document.documentElement.clientHeight-r+"px;",loading:!0}},mounted:function(){var e=this;setTimeout((function(){e.loading=!1}),230);var t=this;window.onresize=function(){t.height=document.documentElement.clientHeight-r+"px;"}}},o=s,l=i("2877"),c=Object(l["a"])(o,a,n,!1,null,null,null);t["default"]=c.exports},"4a75":function(e,t,i){},"4af6":function(e,t,i){},"4afa":function(e,t,i){"use strict";i("0c30")},"4b02":function(e,t,i){"use strict";i("3fd5")},"4b1a":function(e,t,i){},"4b3b":function(e,t,i){var a={"./":"1e4b","./app":"f82c","./app/":"f82c","./app/index":"f82c","./app/index.vue":"f82c","./app/qdinfo/cwpx":"be5e","./app/qdinfo/cwpx.vue":"be5e","./app/qdinfo/oldCustomer":"0c9d","./app/qdinfo/oldCustomer.vue":"0c9d","./app/qdinfo/qdFail":"4100","./app/qdinfo/qdFail.vue":"4100","./app/qdinfo/qdInfo":"68c8","./app/qdinfo/qdInfo.vue":"68c8","./app/qdinfo/qdinfoBak":"a495","./app/qdinfo/qdinfoBak.vue":"a495","./app/qdinfo/qrCodeIncrease":"6636","./app/qdinfo/qrCodeIncrease.vue":"6636","./app/qdinfo/shutDown":"0417","./app/qdinfo/shutDown.vue":"0417","./appManage/appCenter":"094b","./appManage/appCenter/":"094b","./appManage/appCenter/index":"094b","./appManage/appCenter/index.vue":"094b","./appManage/appConfig":"3933","./appManage/appConfig/":"3933","./appManage/appConfig/employeeBindAccountModal":"9a38","./appManage/appConfig/employeeBindAccountModal.vue":"9a38","./appManage/appConfig/index":"3933","./appManage/appConfig/index.vue":"3933","./appManage/appConfig/styles/config.scss":"1dfe","./appManage/appConfig/systemSetConfig":"a5af","./appManage/appConfig/systemSetConfig.vue":"a5af","./appManage/appConfig/workSheetAssistant":"7e38","./appManage/appConfig/workSheetAssistant.vue":"7e38","./appManage/appDetails":"27b1","./appManage/appDetails/":"27b1","./appManage/appDetails/index":"27b1","./appManage/appDetails/index.vue":"27b1","./appManage/appDetails/styles/detail.scss":"9b4e","./appManage/appDetails/workSheetAssistantDetail":"32bd","./appManage/appDetails/workSheetAssistantDetail.vue":"32bd","./appManage/component/AppInfo":"5ec8","./appManage/component/AppInfo.vue":"5ec8","./appManage/myApp":"fcac","./appManage/myApp/":"fcac","./appManage/myApp/index":"fcac","./appManage/myApp/index.vue":"fcac","./communityOperating/newCustomer/aev":"1759","./communityOperating/newCustomer/aev.vue":"1759","./communityOperating/newCustomer/list":"c7a1","./communityOperating/newCustomer/list.vue":"c7a1","./communityOperating/oldCustomer/aev":"6b00","./communityOperating/oldCustomer/aev.vue":"6b00","./communityOperating/oldCustomer/list":"d7cf","./communityOperating/oldCustomer/list.vue":"d7cf","./components/icons":"3a7e","./components/icons/":"3a7e","./components/icons/element-icons":"bb49","./components/icons/element-icons.js":"bb49","./components/icons/index":"3a7e","./components/icons/index.vue":"3a7e","./components/icons/svg-icons":"c7e9","./components/icons/svg-icons.js":"c7e9","./configCenter/apiConfig":"6bdf","./configCenter/apiConfig/":"6bdf","./configCenter/apiConfig/index":"6bdf","./configCenter/apiConfig/index.vue":"6bdf","./configCenter/offAccount":"63d6","./configCenter/offAccount/":"63d6","./configCenter/offAccount/index":"63d6","./configCenter/offAccount/index.vue":"63d6","./configCenter/offAccount/offAccountCard":"1cf1","./configCenter/offAccount/offAccountCard.vue":"1cf1","./conversation/component/CheckContext":"96d5","./conversation/component/CheckContext.vue":"96d5","./conversation/component/chat":"613f","./conversation/component/chat.vue":"613f","./conversation/component/chatItem":"b741","./conversation/component/chatItem.vue":"b741","./conversation/component/curList":"ab99","./conversation/component/curList.vue":"ab99","./conversation/component/cusChat":"bc77","./conversation/component/cusChat.vue":"bc77","./conversation/component/customerList":"6f80","./conversation/component/customerList.vue":"6f80","./conversation/component/groupList":"cc67","./conversation/component/groupList.vue":"cc67","./conversation/component/imgChatItem":"deeb","./conversation/component/imgChatItem.vue":"deeb","./conversation/component/insideList":"e0d6","./conversation/component/insideList.vue":"e0d6","./conversation/component/list":"3bfa","./conversation/component/list.vue":"3bfa","./conversation/component/message":"ee02","./conversation/component/message.vue":"ee02","./conversation/component/mixedList":"6895","./conversation/component/mixedList.vue":"6895","./conversation/component/videoChatItem":"f28d","./conversation/component/videoChatItem.vue":"f28d","./conversation/component/videoModal":"c408","./conversation/component/videoModal.vue":"c408","./conversation/component/voiceChatItem":"0208","./conversation/component/voiceChatItem.vue":"0208","./conversation/content":"4018","./conversation/content.vue":"4018","./conversation/page/employeeTest":"972f","./conversation/page/employeeTest.vue":"972f","./conversation/page/roleTest":"b4cc","./conversation/page/roleTest.vue":"b4cc","./conversation/page/userTest":"de51","./conversation/page/userTest.vue":"de51","./conversation/security":"6680","./conversation/security.vue":"6680","./conversation/securityPage/alarmingManage":"6701","./conversation/securityPage/alarmingManage.vue":"6701","./conversation/securityPage/alarmingSensitive":"d730","./conversation/securityPage/alarmingSensitive.vue":"d730","./conversation/securityPage/sensitiveList":"d0f2","./conversation/securityPage/sensitiveList.vue":"d0f2","./conversation/securityPage/setSensitiveWord":"5efd","./conversation/securityPage/setSensitiveWord.vue":"5efd","./conversation/securityPage/strategyItem":"bcf9","./conversation/securityPage/strategyItem.vue":"bcf9","./conversation/unconfigConversation":"3cc7","./conversation/unconfigConversation.vue":"3cc7","./customerManage/autoLabel":"a201","./customerManage/autoLabel/":"a201","./customerManage/autoLabel/BatchTag":"8157","./customerManage/autoLabel/BatchTag.vue":"8157","./customerManage/autoLabel/BatchTagTaskDetail":"8de1","./customerManage/autoLabel/BatchTagTaskDetail.vue":"8de1","./customerManage/autoLabel/addRule":"2cf9","./customerManage/autoLabel/addRule.vue":"2cf9","./customerManage/autoLabel/components/ImportTask":"d45f","./customerManage/autoLabel/components/ImportTask.vue":"d45f","./customerManage/autoLabel/components/customerRecord":"f54b","./customerManage/autoLabel/components/customerRecord.vue":"f54b","./customerManage/autoLabel/components/labelDetailTab":"af2d","./customerManage/autoLabel/components/labelDetailTab.vue":"af2d","./customerManage/autoLabel/components/labelList":"e634","./customerManage/autoLabel/components/labelList.vue":"e634","./customerManage/autoLabel/components/sceneItem":"9c91","./customerManage/autoLabel/components/sceneItem.vue":"9c91","./customerManage/autoLabel/components/sceneList":"260e","./customerManage/autoLabel/components/sceneList.vue":"260e","./customerManage/autoLabel/index":"a201","./customerManage/autoLabel/index.vue":"a201","./customerManage/autoLabel/labelDetail":"5cae","./customerManage/autoLabel/labelDetail.vue":"5cae","./customerManage/components/CustomerOrGroupInfo":"4b45","./customerManage/components/CustomerOrGroupInfo.vue":"4b45","./customerManage/components/NewsContent":"ae03","./customerManage/components/NewsContent.vue":"ae03","./customerManage/components/addPropertyModal":"a1ac4","./customerManage/components/addPropertyModal.vue":"a1ac4","./customerManage/components/advancedScreening":"fd2a","./customerManage/components/advancedScreening.vue":"fd2a","./customerManage/components/basePropertyItem":"423f","./customerManage/components/basePropertyItem.vue":"423f","./customerManage/components/customPropertyItem":"3cb1","./customerManage/components/customPropertyItem.vue":"3cb1","./customerManage/components/exportCustomerModal":"ace7","./customerManage/components/exportCustomerModal.vue":"ace7","./customerManage/components/propertySetting":"8481","./customerManage/components/propertySetting.vue":"8481","./customerManage/customer":"16c3","./customerManage/customer.vue":"16c3","./customerManage/customerDetail":"26b2","./customerManage/customerDetail.vue":"26b2","./customerManage/customerSetting":"6361","./customerManage/customerSetting.vue":"6361","./customerManage/customerTag":"1f0d","./customerManage/customerTag.vue":"1f0d","./customerManage/dimission":"69a1","./customerManage/dimission/":"69a1","./customerManage/dimission/allocateModal":"56ae","./customerManage/dimission/allocateModal.vue":"56ae","./customerManage/dimission/allocatedStaffDetail":"3db2","./customerManage/dimission/allocatedStaffDetail.vue":"3db2","./customerManage/dimission/allocatedStaffDetailList":"d382","./customerManage/dimission/allocatedStaffDetailList.vue":"d382","./customerManage/dimission/allocatedStaffList":"cd40","./customerManage/dimission/allocatedStaffList.vue":"cd40","./customerManage/dimission/index":"69a1","./customerManage/dimission/index.vue":"69a1","./customerManage/group":"a9cf","./customerManage/group.vue":"a9cf","./customerManage/groupDetail":"444d","./customerManage/groupDetail.vue":"444d","./customerManage/inherit":"0bf3","./customerManage/inherit/":"0bf3","./customerManage/inherit/InheritFailDrawer":"3d91","./customerManage/inherit/InheritFailDrawer.vue":"3d91","./customerManage/inherit/index":"0bf3","./customerManage/inherit/index.vue":"0bf3","./customerManage/inherit/record":"3e60","./customerManage/inherit/record.vue":"3e60","./customerManage/lossRemind":"67e7","./customerManage/lossRemind.vue":"67e7","./customerManage/tag":"2585","./customerManage/tag.vue":"2585","./dataStatistics/cntItem":"7d0a","./dataStatistics/cntItem.vue":"7d0a","./dataStatistics/customerContact":"f671","./dataStatistics/customerContact/":"f671","./dataStatistics/customerContact/clientDetailsDialog":"7c3b","./dataStatistics/customerContact/clientDetailsDialog.vue":"7c3b","./dataStatistics/customerContact/customerActiveness":"e28e","./dataStatistics/customerContact/customerActiveness.vue":"e28e","./dataStatistics/customerContact/customerOverview":"48bd","./dataStatistics/customerContact/customerOverview.vue":"48bd","./dataStatistics/customerContact/graphics":"a239","./dataStatistics/customerContact/graphics.vue":"a239","./dataStatistics/customerContact/index":"f671","./dataStatistics/customerContact/index.vue":"f671","./dataStatistics/diffItem":"bce6","./dataStatistics/diffItem.vue":"bce6","./dataStatistics/employeeService":"b60b","./dataStatistics/employeeService/":"b60b","./dataStatistics/employeeService/index":"b60b","./dataStatistics/employeeService/index.vue":"b60b","./dataStatistics/labelStatistics":"414d","./dataStatistics/labelStatistics/":"414d","./dataStatistics/labelStatistics/components/ChartShow":"9d52","./dataStatistics/labelStatistics/components/ChartShow.vue":"9d52","./dataStatistics/labelStatistics/components/Graphics":"1bd8","./dataStatistics/labelStatistics/components/Graphics.vue":"1bd8","./dataStatistics/labelStatistics/components/TableShow":"5142","./dataStatistics/labelStatistics/components/TableShow.vue":"5142","./dataStatistics/labelStatistics/index":"414d","./dataStatistics/labelStatistics/index.vue":"414d","./dataStatistics/labelStatistics/tagView":"e05b","./dataStatistics/labelStatistics/tagView.vue":"e05b","./drainageAnalysis/channelStatistics":"6f88","./drainageAnalysis/channelStatistics/":"6f88","./drainageAnalysis/channelStatistics/components/SelectChannel":"0034","./drainageAnalysis/channelStatistics/components/SelectChannel.vue":"0034","./drainageAnalysis/channelStatistics/index":"6f88","./drainageAnalysis/channelStatistics/index.vue":"6f88","./drainageCode/customerAssistant":"8127","./drainageCode/customerAssistant/":"8127","./drainageCode/customerAssistant/add":"2a8a","./drainageCode/customerAssistant/add.vue":"2a8a","./drainageCode/customerAssistant/components/AlarmSetting":"8525","./drainageCode/customerAssistant/components/AlarmSetting.vue":"8525","./drainageCode/customerAssistant/components/CustomChannel":"91b8","./drainageCode/customerAssistant/components/CustomChannel.vue":"91b8","./drainageCode/customerAssistant/components/CustomerAssistantSituation":"bfb2","./drainageCode/customerAssistant/components/CustomerAssistantSituation.vue":"bfb2","./drainageCode/customerAssistant/components/DetailCustomerCnt":"038c","./drainageCode/customerAssistant/components/DetailCustomerCnt.vue":"038c","./drainageCode/customerAssistant/components/UseTip":"677e","./drainageCode/customerAssistant/components/UseTip.vue":"677e","./drainageCode/customerAssistant/detail":"dad4","./drainageCode/customerAssistant/detail.vue":"dad4","./drainageCode/customerAssistant/index":"8127","./drainageCode/customerAssistant/index.vue":"8127","./drainageCode/group/actuaList":"1362","./drainageCode/group/actuaList.vue":"1362","./drainageCode/group/add":"750c","./drainageCode/group/add.vue":"750c","./drainageCode/group/baseInfo":"b80f","./drainageCode/group/baseInfo.vue":"b80f","./drainageCode/group/customer":"3f68","./drainageCode/group/customer.vue":"3f68","./drainageCode/group/customerGroupModal":"5504","./drainageCode/group/customerGroupModal.vue":"5504","./drainageCode/group/demo/getCreateGroupDemo":"f05d","./drainageCode/group/demo/getCreateGroupDemo.vue":"f05d","./drainageCode/group/demo/getEnterpriseQrcodeDemo":"6f66","./drainageCode/group/demo/getEnterpriseQrcodeDemo.vue":"6f66","./drainageCode/group/demo/getQrcodeDemo":"0dc7","./drainageCode/group/demo/getQrcodeDemo.vue":"0dc7","./drainageCode/group/demo/style.scss":"d1b0","./drainageCode/group/detail":"b8b3","./drainageCode/group/detail.vue":"b8b3","./drainageCode/group/enterpriseCodeModal":"193e","./drainageCode/group/enterpriseCodeModal.vue":"193e","./drainageCode/group/list":"326e","./drainageCode/group/list.vue":"326e","./drainageCode/group/realCode":"21b6","./drainageCode/group/realCode.vue":"21b6","./drainageCode/group/realCodeTable":"73a5","./drainageCode/group/realCodeTable.vue":"73a5","./drainageCode/group/style/groupCodeModal.scss":"25fa","./drainageCode/staff/add":"ea36","./drainageCode/staff/add.vue":"ea36","./drainageCode/staff/detail":"75a0","./drainageCode/staff/detail.vue":"75a0","./drainageCode/staff/list":"fab6","./drainageCode/staff/list.vue":"fab6","./drainageCode/welcome/add":"cb58","./drainageCode/welcome/add.vue":"cb58","./drainageCode/welcome/components/SpecialWelStep":"fa5d","./drainageCode/welcome/components/SpecialWelStep.vue":"fa5d","./drainageCode/welcome/components/WelcomeDetailDrawer":"b5e7","./drainageCode/welcome/components/WelcomeDetailDrawer.vue":"b5e7","./drainageCode/welcome/components/WelcomeDetailSpecial":"8e4e","./drainageCode/welcome/components/WelcomeDetailSpecial.vue":"8e4e","./drainageCode/welcome/groupWelcomeAdd":"78c8","./drainageCode/welcome/groupWelcomeAdd.vue":"78c8","./drainageCode/welcome/list":"27e5","./drainageCode/welcome/list.vue":"27e5","./enterpriseWechat/codeValidata":"376d","./enterpriseWechat/codeValidata.vue":"376d","./enterpriseWechat/configDemo/autoConfig":"dd3f","./enterpriseWechat/configDemo/autoConfig.vue":"dd3f","./enterpriseWechat/configDemo/chatSide":"d61c","./enterpriseWechat/configDemo/chatSide.vue":"d61c","./enterpriseWechat/configDemo/chatTool":"3df5","./enterpriseWechat/configDemo/chatTool.vue":"3df5","./enterpriseWechat/configDemo/config":"b18e","./enterpriseWechat/configDemo/config.vue":"b18e","./enterpriseWechat/configDemo/contact":"60b7","./enterpriseWechat/configDemo/contact.vue":"60b7","./enterpriseWechat/configDemo/custmoerChat":"3cda","./enterpriseWechat/configDemo/custmoerChat.vue":"3cda","./enterpriseWechat/configDemo/customer":"12b6","./enterpriseWechat/configDemo/customer.vue":"12b6","./enterpriseWechat/configDemo/quickConfig":"17be","./enterpriseWechat/configDemo/quickConfig.vue":"17be","./enterpriseWechat/configDemo/receiveChange":"b69d","./enterpriseWechat/configDemo/receiveChange.vue":"b69d","./enterpriseWechat/configDemo/styles/common.scss":"a51d","./enterpriseWechat/configItem":"d87a","./enterpriseWechat/configItem.vue":"d87a","./enterpriseWechat/header":"4073","./enterpriseWechat/header.vue":"4073","./enterpriseWechat/list":"3d91f","./enterpriseWechat/list.vue":"3d91f","./enterpriseWechat/selfList":"8bd6","./enterpriseWechat/selfList.vue":"8bd6","./enterpriseXiaoe/list":"9d4e","./enterpriseXiaoe/list.vue":"9d4e","./error/401":"ec55","./error/401.vue":"ec55","./error/404":"2754","./error/404.vue":"2754","./friendsCircle/Content":"b9cd","./friendsCircle/Content.vue":"b9cd","./friendsCircle/ContentVideo":"0b64","./friendsCircle/ContentVideo.vue":"0b64","./friendsCircle/Link":"369e","./friendsCircle/Link.vue":"369e","./friendsCircle/TabContent":"4490","./friendsCircle/TabContent.vue":"4490","./friendsCircle/UploadVideo":"c91d","./friendsCircle/UploadVideo.vue":"c91d","./friendsCircle/Uploadimg":"6477","./friendsCircle/Uploadimg.vue":"6477","./friendsCircle/detail":"e04d","./friendsCircle/detail.vue":"e04d","./friendsCircle/friendsUpload":"ba59","./friendsCircle/friendsUpload.vue":"ba59","./friendsCircle/record":"e06c","./friendsCircle/record.vue":"e06c","./friendsCircle/release":"f507","./friendsCircle/release.vue":"f507","./groupMessage/TabContent":"a705","./groupMessage/TabContent.vue":"a705","./groupMessage/add":"0d7e","./groupMessage/add.vue":"0d7e","./groupMessage/detail":"7b10","./groupMessage/detail.vue":"7b10","./groupMessage/record":"be34","./groupMessage/record.vue":"be34","./index":"1e4b","./index.vue":"1e4b","./intelligentForm":"06a4","./intelligentForm/":"06a4","./intelligentForm/batchUpdateGroup":"4c79","./intelligentForm/batchUpdateGroup.vue":"4c79","./intelligentForm/groupModal":"3e7f","./intelligentForm/groupModal.vue":"3e7f","./intelligentForm/index":"06a4","./intelligentForm/index.vue":"06a4","./intelligentForm/intelligentFormContent":"1ed0","./intelligentForm/intelligentFormContent.vue":"1ed0","./intelligentForm/intelligentFormList":"c5c3","./intelligentForm/intelligentFormList.vue":"c5c3","./intelligentForm/spreadDialog":"6d78","./intelligentForm/spreadDialog.vue":"6d78","./login":"dd7b","./login.vue":"dd7b","./marketingActivities/components/HowToUse":"3e7a","./marketingActivities/components/HowToUse.vue":"3e7a","./marketingActivities/conversionCode/add":"c2a4","./marketingActivities/conversionCode/add.vue":"c2a4","./marketingActivities/conversionCode/detail":"2b44","./marketingActivities/conversionCode/detail.vue":"2b44","./marketingActivities/conversionCode/list":"c71c","./marketingActivities/conversionCode/list.vue":"c71c","./material/components/GetAppIDDemo":"3ea6","./material/components/GetAppIDDemo.vue":"3ea6","./material/components/GetPageUrlDemo":"e6b3","./material/components/GetPageUrlDemo.vue":"e6b3","./material/components/MaPage":"2d03","./material/components/MaPage.vue":"2d03","./material/components/MaterialAddModal":"6485","./material/components/MaterialAddModal.vue":"6485","./material/components/PosterPage":"d68f","./material/components/PosterPage.vue":"d68f","./material/components/SelectTagModal":"8387","./material/components/SelectTagModal.vue":"8387","./material/fileList":"c430c","./material/fileList.vue":"c430c","./material/graphicList":"e125","./material/graphicList.vue":"e125","./material/materialManage":"53ed","./material/materialManage.vue":"53ed","./material/miniAppList":"c887","./material/miniAppList.vue":"c887","./material/posterList":"891e","./material/posterList.vue":"891e","./material/videoList":"0be8","./material/videoList.vue":"0be8","./monitor/druid":"5194","./monitor/druid/":"5194","./monitor/druid/index":"5194","./monitor/druid/index.vue":"5194","./monitor/job":"3eac","./monitor/job/":"3eac","./monitor/job/index":"3eac","./monitor/job/index.vue":"3eac","./monitor/job/log":"0062","./monitor/job/log.vue":"0062","./monitor/logininfor":"67ef","./monitor/logininfor/":"67ef","./monitor/logininfor/index":"67ef","./monitor/logininfor/index.vue":"67ef","./monitor/online":"6b08","./monitor/online/":"6b08","./monitor/online/index":"6b08","./monitor/online/index.vue":"6b08","./monitor/operlog":"02f2","./monitor/operlog/":"02f2","./monitor/operlog/index":"02f2","./monitor/operlog/index.vue":"02f2","./monitor/server":"2a33","./monitor/server/":"2a33","./monitor/server/index":"2a33","./monitor/server/index.vue":"2a33","./radarLibrary/components/ConfigTip":"cac4","./radarLibrary/components/ConfigTip.vue":"cac4","./radarLibrary/components/addRadarDrawer":"61d6","./radarLibrary/components/addRadarDrawer.vue":"61d6","./radarLibrary/components/channelClickRecord":"bfcf","./radarLibrary/components/channelClickRecord.vue":"bfcf","./radarLibrary/components/customChannel":"941a","./radarLibrary/components/customChannel.vue":"941a","./radarLibrary/components/customerClickRecord":"72d16","./radarLibrary/components/customerClickRecord.vue":"72d16","./radarLibrary/components/radarLink":"7d3b","./radarLibrary/components/radarLink.vue":"7d3b","./radarLibrary/configOffAccount":"951d","./radarLibrary/configOffAccount.vue":"951d","./radarLibrary/radarDetail":"9358","./radarLibrary/radarDetail.vue":"9358","./radarLibrary/radarList":"5469","./radarLibrary/radarList.vue":"5469","./radarLibrary/radarManage":"88e8","./radarLibrary/radarManage.vue":"88e8","./redirect":"9b8f","./redirect.vue":"9b8f","./retainedConversion/SOP/SOPDetail":"5cca","./retainedConversion/SOP/SOPDetail.vue":"5cca","./retainedConversion/SOP/SOPDetailTab":"5e4d","./retainedConversion/SOP/SOPDetailTab.vue":"5e4d","./retainedConversion/SOP/addSOP":"98f6","./retainedConversion/SOP/addSOP.vue":"98f6","./retainedConversion/SOP/calendarPerformRecordModal":"0491","./retainedConversion/SOP/calendarPerformRecordModal.vue":"0491","./retainedConversion/SOP/customerSOP":"f02a","./retainedConversion/SOP/customerSOP.vue":"f02a","./retainedConversion/SOP/cyclePerformRecordModal":"4b73","./retainedConversion/SOP/cyclePerformRecordModal.vue":"4b73","./retainedConversion/SOP/groupCalendarSOP":"85d2","./retainedConversion/SOP/groupCalendarSOP.vue":"85d2","./retainedConversion/SOP/groupSOP":"8780","./retainedConversion/SOP/groupSOP.vue":"8780","./retainedConversion/SOP/performRecord":"6442","./retainedConversion/SOP/performRecord.vue":"6442","./retainedConversion/SOP/performRecordModal":"a4ad","./retainedConversion/SOP/performRecordModal.vue":"a4ad","./retainedConversion/SOP/ruleRecord":"c766","./retainedConversion/SOP/ruleRecord.vue":"c766","./retainedConversion/SOP/sopCalendar":"e393","./retainedConversion/SOP/sopCalendar.vue":"e393","./retainedConversion/components/AddRuleDrawer":"1612","./retainedConversion/components/AddRuleDrawer.vue":"1612","./retainedConversion/components/AlertTimeEditItem":"2a88","./retainedConversion/components/AlertTimeEditItem.vue":"2a88","./retainedConversion/components/CustomerScope":"eace","./retainedConversion/components/CustomerScope.vue":"eace","./retainedConversion/components/CustomerScopeModel":"b895","./retainedConversion/components/CustomerScopeModel.vue":"b895","./retainedConversion/components/RemindPerform":"8bc1","./retainedConversion/components/RemindPerform.vue":"8bc1","./retainedConversion/components/SOPList":"ddb0e","./retainedConversion/components/SOPList.vue":"ddb0e","./retainedConversion/components/SOPRuleList":"4063","./retainedConversion/components/SOPRuleList.vue":"4063","./retainedConversion/components/SelectProperty":"06b4","./retainedConversion/components/SelectProperty.vue":"06b4","./retainedConversion/components/UseEmployeeModal":"62d3","./retainedConversion/components/UseEmployeeModal.vue":"62d3","./smartForm/add":"dd9d","./smartForm/add.vue":"dd9d","./smartForm/addFormFiled":"1ab2","./smartForm/addFormFiled.vue":"1ab2","./smartForm/components/FiledSetting":"1737","./smartForm/components/FiledSetting.vue":"1737","./smartForm/components/FormPreview":"0432","./smartForm/components/FormPreview.vue":"0432","./smartForm/components/FormSetting":"3e91","./smartForm/components/FormSetting.vue":"3e91","./smartForm/components/FromComponentSelect":"556d","./smartForm/components/FromComponentSelect.vue":"556d","./smartForm/components/Sort":"c3e2","./smartForm/components/Sort.vue":"c3e2","./smartForm/components/UploadFile":"fbc0","./smartForm/components/UploadFile.vue":"fbc0","./smartForm/filedComponents/CheckBoxComponent":"63db","./smartForm/filedComponents/CheckBoxComponent.vue":"63db","./smartForm/filedComponents/DataTimeComponent":"f922","./smartForm/filedComponents/DataTimeComponent.vue":"f922","./smartForm/filedComponents/LineTextComponent":"7500","./smartForm/filedComponents/LineTextComponent.vue":"7500","./smartForm/filedComponents/NpsComponent":"8247","./smartForm/filedComponents/NpsComponent.vue":"8247","./smartForm/filedComponents/RadioComponent":"c7d8","./smartForm/filedComponents/RadioComponent.vue":"c7d8","./smartForm/filedComponents/ScoreComponent":"36a4","./smartForm/filedComponents/ScoreComponent.vue":"36a4","./smartForm/filedComponents/SelectComponent":"edb4","./smartForm/filedComponents/SelectComponent.vue":"edb4","./smartForm/filedComponents/ShowComponent":"0ec5","./smartForm/filedComponents/ShowComponent.vue":"0ec5","./smartForm/filedComponents/components/DisplayCondition":"cc38","./smartForm/filedComponents/components/DisplayCondition.vue":"cc38","./smartForm/formDetail":"efce","./smartForm/formDetail.vue":"efce","./system/log":"b3802","./system/log/":"b3802","./system/log/index":"b3802","./system/log/index.vue":"b3802","./system/menu":"f794","./system/menu/":"f794","./system/menu/index":"f794","./system/menu/index.vue":"f794","./system/role":"70eb","./system/role/":"70eb","./system/role/index":"70eb","./system/role/index.vue":"70eb","./system/staff":"33c5","./system/staff/":"33c5","./system/staff/AddMemberTip":"9964","./system/staff/AddMemberTip.vue":"9964","./system/staff/BatchUpdateUser":"f4e3","./system/staff/BatchUpdateUser.vue":"f4e3","./system/staff/InviteForm":"0529","./system/staff/InviteForm.vue":"0529","./system/staff/SyncMemberInfo":"2093","./system/staff/SyncMemberInfo.vue":"2093","./system/staff/index":"33c5","./system/staff/index.vue":"33c5","./system/user/profile":"4c1b","./system/user/profile/":"4c1b","./system/user/profile/index":"4c1b","./system/user/profile/index.vue":"4c1b","./system/user/profile/resetPwd":"ee46","./system/user/profile/resetPwd.vue":"ee46","./system/user/profile/userAvatar":"9429","./system/user/profile/userAvatar.vue":"9429","./system/user/profile/userInfo":"1e8b","./system/user/profile/userInfo.vue":"1e8b","./tool/build":"2855","./tool/build/":"2855","./tool/build/CodeTypeDialog":"a92a","./tool/build/CodeTypeDialog.vue":"a92a","./tool/build/DraggableItem":"4923","./tool/build/DraggableItem.vue":"4923","./tool/build/IconsDialog":"d0b2","./tool/build/IconsDialog.vue":"d0b2","./tool/build/RightPanel":"766b","./tool/build/RightPanel.vue":"766b","./tool/build/TreeNodeDialog":"c81a","./tool/build/TreeNodeDialog.vue":"c81a","./tool/build/index":"2855","./tool/build/index.vue":"2855","./tool/gen":"82c8","./tool/gen/":"82c8","./tool/gen/basicInfoForm":"ed69","./tool/gen/basicInfoForm.vue":"ed69","./tool/gen/editTable":"76f8","./tool/gen/editTable.vue":"76f8","./tool/gen/genInfoForm":"8586","./tool/gen/genInfoForm.vue":"8586","./tool/gen/importTable":"6f72","./tool/gen/importTable.vue":"6f72","./tool/gen/index":"82c8","./tool/gen/index.vue":"82c8","./tool/swagger":"4a49","./tool/swagger/":"4a49","./tool/swagger/index":"4a49","./tool/swagger/index.vue":"4a49","./verbalTrickLibrary/component/addVerbalTrickDrawer":"32db","./verbalTrickLibrary/component/addVerbalTrickDrawer.vue":"32db","./verbalTrickLibrary/component/batchUpdateGroup":"7140","./verbalTrickLibrary/component/batchUpdateGroup.vue":"7140","./verbalTrickLibrary/component/groupModal":"b9e6","./verbalTrickLibrary/component/groupModal.vue":"b9e6","./verbalTrickLibrary/component/verbalTrickDetailDrawer":"f28b","./verbalTrickLibrary/component/verbalTrickDetailDrawer.vue":"f28b","./verbalTrickLibrary/component/verbalTrickDetailPreview":"dbe0","./verbalTrickLibrary/component/verbalTrickDetailPreview.vue":"dbe0","./verbalTrickLibrary/component/verbalTrickItem":"b444","./verbalTrickLibrary/component/verbalTrickItem.vue":"b444","./verbalTrickLibrary/component/verbalTrickPreview/verbalTrickAppId":"d239","./verbalTrickLibrary/component/verbalTrickPreview/verbalTrickAppId.vue":"d239","./verbalTrickLibrary/component/verbalTrickPreview/verbalTrickImgLink":"7d08","./verbalTrickLibrary/component/verbalTrickPreview/verbalTrickImgLink.vue":"7d08","./verbalTrickLibrary/verbalTrickContent":"e60d","./verbalTrickLibrary/verbalTrickContent.vue":"e60d","./verbalTrickLibrary/verbalTrickList":"ca00","./verbalTrickLibrary/verbalTrickList.vue":"ca00","./verbalTrickLibrary/verbalTrickManage":"f180","./verbalTrickLibrary/verbalTrickManage.vue":"f180","./xiaoe/qdinfo":"6026","./xiaoe/qdinfo/":"6026","./xiaoe/qdinfo/index":"6026","./xiaoe/qdinfo/index.vue":"6026","./xiaoe/qdinfo/qyDetails":"9ed5","./xiaoe/qdinfo/qyDetails.vue":"9ed5","./xiaoe/qyJbxx":"c691","./xiaoe/qyJbxx/":"c691","./xiaoe/qyJbxx/index":"c691","./xiaoe/qyJbxx/index.vue":"c691","./xiaoe/siginCode":"d41a","./xiaoe/siginCode/":"d41a","./xiaoe/siginCode/SelectEmple":"c151","./xiaoe/siginCode/SelectEmple.vue":"c151","./xiaoe/siginCode/SelectZb":"49bc","./xiaoe/siginCode/SelectZb.vue":"49bc","./xiaoe/siginCode/SiginKh":"bcef","./xiaoe/siginCode/SiginKh.vue":"bcef","./xiaoe/siginCode/index":"d41a","./xiaoe/siginCode/index.vue":"d41a","./xiaoe/zb":"7424","./xiaoe/zb/":"7424","./xiaoe/zb/index":"7424","./xiaoe/zb/index.vue":"7424"};function n(e){var t=r(e);return i(t)}function r(e){if(!i.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}n.keys=function(){return Object.keys(a)},n.resolve=r,e.exports=n,n.id="4b3b"},"4b45":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pageLoading,expression:"pageLoading"}],staticClass:"customer-info-list"},[i("empty-default-icon",{attrs:{length:Number(!e.showEmptyIcon),text:"暂无数据"}},[i("el-timeline",e._l(e.showList,(function(t,a){return i("el-timeline-item",{key:a,attrs:{timestamp:e.getTimeStamp(t),placement:"top"}},e._l(t.list,(function(t,a){return i("div",{key:a},[i("div",{staticClass:"time"},[t.trajectoryType==e.CUSTOMER_DETAIL["todo"]?i("div",{staticClass:"sop-title"},[e.isSop(t)?[e._v(" "+e._s(e.getTimeNotSeconds(t.startTime))+" "),i("div",{staticClass:"sop-sign"},[e._v("SOP")])]:[e._v(" "+e._s(e.getTimeNotSeconds(t.startTime)+"~"+e.getTimeNotSeconds(t.endTime))+" ")],i("span",{class:(t.status===e.COMPELETE_TYPE?"finish":"not-finish ")+" sop-status"},[e._v(" "+e._s(t.status===e.COMPELETE_TYPE?"已完成":"待完成"))])],2):i("div",[e._v(" "+e._s(e.getTimeNotSeconds(t.startTime))+" ")])]),e.activeTab!==e.CUSTOMER_DETAIL["todo"]?i("el-card",[e.activeTab===e.CUSTOMER_DETAIL["informationDynamics"]?i("NewsContent",{attrs:{"news-item":t}}):e._e(),e.activeTab===e.CUSTOMER_DETAIL["activityTrack"]?[[e.ADD_USER,e.DEL_USER].includes(t.subType)?[i("div",{staticClass:"step-content",domProps:{innerHTML:e._s(e.dealActivity(t))}})]:i("span",{staticClass:"step-content"},[e._v(e._s(t.content))])]:e._e()],2):i("div",{class:t.status===e.COMPELETE_TYPE?"finish-card":""},[e.isSop(t)?[i("RuleContent",{attrs:{"card-width":"752px","rule-item":t}})]:[i("el-card",[e._v(" "+e._s(t.content)+" ")])]],2)],1)})),0)})),1)],1)],1)},n=[],r=i("5530"),s=(i("4de4"),i("b64b"),i("d3b7"),i("ac1f"),i("5319"),i("159b"),i("dd70")),o=i("b775"),l=window.CONFIG.services.wecom,c=l+"/portrait";function u(e){return Object(o["a"])({url:c+"/findTrajectory",params:e})}var d=i("4f7d"),p=i("ae03"),f=i("e77d"),A=i("c1df"),h=i.n(A),m=i("2ef0"),g="add_user",v="del_user",b="-1",y="3",_={components:{RuleContent:d["a"],NewsContent:p["default"],EmptyDefaultIcon:f["a"]},props:{activeTab:{type:String,default:s["y"]["informationDynamics"]},userId:{type:String,default:""},externalUserid:{type:String,default:""},isGroup:{type:Boolean,default:!1}},data:function(){return{CUSTOMER_DETAIL:s["y"],COMPELETE_TYPE:y,ADD_USER:g,DEL_USER:v,showList:[],total:0,pageLoading:!0,showEmptyIcon:!1}},watch:{activeTab:function(e){this.showList=[],this.pageLoading=!0,this.getList(e)},userId:function(){this.showList=[],this.pageLoading=!0,this.getList()}},created:function(){this.getList(this.activeTab)},methods:{isSop:function(e){return e.detailId&&e.detailId!==b},getList:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.activeTab,i=Object(r["a"])({externalUserid:this.externalUserid,trajectoryType:+t},!this.isGroup&&{userId:this.userId});u(i).then((function(t){e.total=t.total,e.groupAndSortBtTime(t.rows)})).finally((function(){e.pageLoading=!1,e.showEmptyIcon=Boolean(!e.showList.length)}))},groupAndSortBtTime:function(e){var t=[];Object.keys(Object(m["keyBy"])(e||[],"createDate")).forEach((function(i){var a=e.filter((function(e){return e.createDate===i}));t.push({createDate:i,list:a})})),this.showList=t},getTimeNotSeconds:function(e){var t=e.split(":");if(t.length<=0)return e;var i=t[0]+":"+t[1];return i},getTimeStamp:function(e){var t=h()(e.createDate).format("YYYY-MM-DD"),i=t.split("-"),a=new Date(i[0],parseInt(i[1]-1),i[2]);return t+" 星期"+"日一二三四五六".charAt(a.getDay())},dealActivity:function(e){var t=e.content||"";return t=t.replace("${picUrl}",'<img style="height:30px; width:30px; fit:cover; margin: 0 5px;" src='.concat(e.detail||i("3e20")," />")),t}}},w=_,C=(i("8867"),i("2877")),x=Object(C["a"])(w,a,n,!1,null,"b69be3ae",null);t["default"]=x.exports},"4b65":function(e,t,i){"use strict";i("ee31")},"4b72":function(e,t,i){"use strict";i.d(t,"f",(function(){return n})),i.d(t,"e",(function(){return r})),i.d(t,"c",(function(){return s})),i.d(t,"h",(function(){return o})),i.d(t,"d",(function(){return l})),i.d(t,"g",(function(){return c})),i.d(t,"a",(function(){return u})),i.d(t,"b",(function(){return d}));var a=i("b775");function n(e){return Object(a["a"])({url:"/tool/gen/list",method:"get",params:e})}function r(e){return Object(a["a"])({url:"/tool/gen/db/list",method:"get",params:e})}function s(e){return Object(a["a"])({url:"/tool/gen/"+e,method:"get"})}function o(e){return Object(a["a"])({url:"/tool/gen",method:"put",data:e})}function l(e){return Object(a["a"])({url:"/tool/gen/importTable",method:"post",params:e})}function c(e){return Object(a["a"])({url:"/tool/gen/preview/"+e,method:"get"})}function u(e){return Object(a["a"])({url:"/tool/gen/"+e,method:"delete"})}function d(e){return Object(a["a"])({url:"/tool/gen/genCode/"+e,method:"get"})}},"4b73":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",e._g(e._b({staticClass:"perform-record-modal",attrs:{width:"800px"},on:{close:e.onClose}},"el-dialog",e.$attrs,!1),e.$listeners),[i("div",[i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("div",{staticClass:"top-search"},[i("el-form",{ref:"customerForm",attrs:{inline:"","label-position":"right",model:e.query,"label-width":"80px"}},[e.isGroupRule||e.isGroupEmployee?i("el-form-item",{attrs:{prop:"chatName"}},[i("el-input",{attrs:{placeholder:"请输入群昵称",clearable:""},model:{value:e.query.chatName,callback:function(t){e.$set(e.query,"chatName",t)},expression:"query.chatName"}})],1):e._e(),e.isGroupRule?i("el-form-item",{attrs:{prop:"chatOwnerName"}},[i("el-input",{attrs:{placeholder:"请输入群主名称",clearable:""},model:{value:e.query.chatOwnerName,callback:function(t){e.$set(e.query,"chatOwnerName",t)},expression:"query.chatOwnerName"}})],1):e._e(),e.isGroupEmployee?i("el-form-item",[i("el-select",{attrs:{placeholder:"请选择任务",size:"small",clearable:""},model:{value:e.query.ruleId,callback:function(t){e.$set(e.query,"ruleId",t)},expression:"query.ruleId"}},e._l(e.ruleList,(function(e,t){return i("el-option",{key:t,attrs:{label:e.ruleName,value:e.ruleId}})})),1)],1):e._e(),i("el-form-item",[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.onSearch()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetForm()}}},[e._v("重置")])],1)],1)],1)]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.recordList,height:"300px"}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.recordList.length}})],1),e.isGroupRule||e.isGroupEmployee?i("el-table-column",{key:"chatName",attrs:{label:"客户群",align:"center",prop:"chatName",width:"180px"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"flex"},[i("svg",{staticClass:"icon-groupChat mr5",attrs:{width:35,height:35}},[i("use",{attrs:{href:"#icon-groupChat"}})]),i("span",{staticClass:"intwoline",staticStyle:{flex:"1"}},[e._v(e._s(t.row.chatName))])])]}}],null,!1,3278619066)}):e._e(),e.isGroupRule?i("el-table-column",{key:"chatCreatorName",attrs:{label:"群主",align:"center",prop:"chatCreatorName",width:"180px"}}):e._e(),e.isGroupEmployee?i("el-table-column",{key:"ruleName",attrs:{label:"任务名称",align:"center",prop:"ruleName"}}):e._e(),i("el-table-column",{key:"cycleNum",attrs:{label:"循环次数",align:"center",prop:"cycleNum"}}),i("el-table-column",{key:"executed",attrs:{label:"已执行",align:"center",prop:"executed"}}),i("el-table-column",{key:"unExecute",attrs:{label:"未执行",align:"center",prop:"unExecute"}}),i("el-table-column",{key:"executeRate",attrs:{label:"执行率",align:"center",prop:"executeRate"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(100*(t.row.executed/t.row.cycleNum).toFixed(e.FIX))+"%")])]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.query.pageNum,disabled:e.loading,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(){return e.getDetailList()}}})]},proxy:!0}])})],1)])},n=[],r=i("2909"),s=i("5530"),o=(i("a9e3"),i("d3b7"),i("dd70")),l=i("b66d"),c=i("e77d"),u=i("9815"),d=i("e2e0"),p=2,f={name:"",components:{RightContainer:l["a"],EmptyDefaultIcon:c["a"]},mixins:[d["a"]],props:{ruleId:{type:Number,default:null},sopId:{type:String,default:null},sopType:{type:Number,default:null},isGroupRule:{type:Boolean,default:!1},isGroupEmployee:{type:Boolean,default:!1},type:{type:String,default:"rule"},userId:{type:String,default:null}},data:function(){return{performStatusOption:[{label:"全部",value:"0"},{label:"已执行",value:"1"},{label:"未执行",value:"2"}],query:{pageNum:1,pageSize:o["Ic"],chatName:"",chatOwnerName:""},total:0,loading:!1,recordList:[],ruleList:[],remindTime:null,SOP_TYPE:o["ed"],FIX:p}},watch:{isGroupEmployee:function(e){e&&!this.ruleList.length&&this.getRulesRecordList()}},created:function(){},mounted:function(){},methods:{onClose:function(){this.$emit("update:visible",!1)},onSearch:function(){this.getDetailList({pageNum:1})},resetForm:function(){this.resetQuery(),this.getDetailList({pageNum:1})},resetQuery:function(){this.query={pageNum:1,pageSize:o["Ic"],chatName:"",chatOwnerName:""},this.remindTime=null},getDetailList:function(e){this.getCycleSopRulesDetailList(e)},getCycleSopRulesDetailList:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=Object(s["a"])({sopId:this.sopId},this.query);switch(this.type){case"rule":i.ruleId=this.ruleId;break;case"employee":i.userId=this.userId;break}i=Object(s["a"])(Object(s["a"])({},i),t),this.loading=!0,Object(u["f"])(i).then((function(t){e.recordList=t.rows,e.total=t.total})).finally((function(){e.loading=!1,e.modifyButtonStatus()}))},getRulesRecordList:function(){var e=this;Object(u["k"])({sopId:this.sopId,pageNum:1,pageSize:o["Kc"]}).then((function(t){var i;t&&(e.ruleList=null!==(i=t.rows)&&void 0!==i&&i.length?Object(r["a"])(t.rows):[])}))}}},A=f,h=(i("5884"),i("2877")),m=Object(h["a"])(A,a,n,!1,null,"75cf7bc0",null);t["default"]=m.exports},"4b80":function(e,t,i){"use strict";i("5de1")},"4bb1":function(e,t,i){e.exports=i.p+"static/img/config-step2-(2)-2.c89ad1b8.png"},"4c1b":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("el-tabs",{staticClass:"user-info-tab",attrs:{"tab-position":"left"},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:"基本设置",name:"userinfo"}},[i("div",{staticClass:"tab-title"},[e._v("基本设置")]),i("userInfo",{attrs:{user:e.user,"is-super-admin":e.isSuperAdmin}}),i("div",{staticClass:"user-avatar"},[i("userAvatar",{attrs:{user:e.user}})],1)],1),e.isSuperAdmin?i("el-tab-pane",{attrs:{label:"安全设置",name:"resetPwd"}},[i("div",{staticClass:"tab-title"},[e._v("安全设置")]),i("resetPwd",{attrs:{user:e.user}})],1):e._e()],1)],1)},n=[],r=i("c7eb"),s=i("1da1"),o=(i("7db0"),i("b0c0"),i("d3b7"),i("4360")),l=i("9429"),c=i("1e8b"),u=i("ee46"),d=i("c0c7"),p=i("ef6c"),f={name:"Profile",components:{userAvatar:l["default"],userInfo:c["default"],resetPwd:u["default"]},data:function(){return{user:{},roleGroup:{},postGroup:{},activeTab:"userinfo",isSuperAdmin:o["a"].getters.isSuperAdmin,userId:o["a"].getters.userId,deptList:[]}},watch:{deptList:function(e){e.length>0&&this.getUser(e)}},created:function(){!this.isSuperAdmin&&this.getDept(),this.isSuperAdmin&&this.getUser()},methods:{getUser:function(e){var t=this;this.isSuperAdmin?Object(d["a"])().then((function(e){var i=e.data;t.user=i})):Object(p["f"])({userId:this.userId}).then((function(i){if(i.data){var a=i.data,n=a.userId,r=a.roleName,s=a.department,o=a.userName,l=a.gender,c=a.mobile,u=a.email,d=a.joinTime,p=e.find((function(e){return e.id===s})),f={userId:n,nickName:o,sex:String(l),phonenumber:c,email:u,roleName:r,deptName:p&&p.name,createTime:d};t.user=f}}))},getDept:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var i;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("GetDepartmentList");case 2:i=t.sent,e.deptList=i;case 4:case"end":return t.stop()}}),t)})))()}}},A=f,h=(i("e25e"),i("2877")),m=Object(h["a"])(A,a,n,!1,null,"3c7531e1",null);t["default"]=m.exports},"4c79":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",e._g(e._b({staticClass:"batch-update-group",attrs:{"close-on-click-modal":!1,width:"443px",title:"批量修改所属分组"},on:{close:e.onClose}},"el-dialog",e.$attrs,!1),e.$listeners),[i("el-form",{ref:"batchGroup",staticClass:"batch-update-group-form",attrs:{model:e.formData,rules:e.rules,size:"medium","label-width":"80px"}},[i("el-form-item",{attrs:{label:"所属分组",prop:"groupId"}},[i("el-cascader",{ref:"cascader",attrs:{options:e.groupTreeData,props:e.defaultProps,clearable:"",placeholder:"请设置所选表单的所属分组",filterable:""},on:{change:e.handleChangeCategoryId},model:{value:e.formData.groupId,callback:function(t){e.$set(e.formData,"groupId",t)},expression:"formData.groupId"}})],1)],1),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.onClose}},[e._v("取消")]),i("RequestButton",{attrs:{type:"primary","request-method":e.handelConfirm,"button-type":"save"}},[e._v("确定")])],1)],1)},n=[],r=i("c7eb"),s=i("1da1"),o=(i("d81d"),i("d3b7"),i("c7ea")),l=i("cf45"),c=i("52a9"),u={name:"",components:{RequestButton:c["a"]},props:{groupTreeData:{type:Array,default:function(){return[]}},multiSelect:{type:Array,default:function(){return[]}},getList:{type:Function,default:function(){}}},data:function(){return{defaultProps:{value:"id",label:"name",children:"children",checkStrictly:!0,emitPath:!1},rules:{groupId:[{required:!0,message:"请设置所选表单的所属分组",trigger:"blur"}]},formData:{groupId:void 0}}},created:function(){},mounted:function(){},methods:{onClose:function(){this.$emit("update:visible",!1)},handelConfirm:function(){var e=this;this.$refs["batchGroup"].validate(function(){var t=Object(s["a"])(Object(r["a"])().mark((function t(i){var a;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i){t.next=2;break}return t.abrupt("return",Object(l["i"])(e.$store,"save"));case 2:a=[],a=e.multiSelect.map((function(e){return e.id})),Object(o["c"])({formIdList:a,groupId:e.formData.groupId}).then((function(){e.getList(),e.$emit("update:visible",!1),e.formData.groupId=void 0})).finally((function(){Object(l["i"])(e.$store,"save")}));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},handleChangeCategoryId:function(e){this.$refs.cascader.dropDownVisible=!1}}},d=u,p=(i("40b1"),i("2877")),f=Object(p["a"])(d,a,n,!1,null,"0ce6f322",null);t["default"]=f.exports},"4cec":function(e,t,i){},"4d3f":function(e,t,i){e.exports=i.p+"static/img/get-network.b64f6bc7.png"},"4d59":function(e,t,i){"use strict";i("fcc5")},"4d7c":function(e,t,i){var a,n;(function(){var i=function(e){var t={};function i(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=e,i.c=t,i.d=function(e,t,a){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(a,n,function(t){return e[t]}.bind(null,n));return a},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=15)}([,,function(e,t,i){"use strict";function a(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function r(e,t){this.__indent_cache=new n(e,t),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new a(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}a.prototype.clone_empty=function(){var e=new a(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},a.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},a.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},a.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},a.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},a.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},a.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},a.prototype.is_empty=function(){return 0===this.__items.length},a.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},a.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},a.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},a.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},a.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},a.prototype.trim=function(){while(" "===this.last())this.__items.pop(),this.__character_count-=1},a.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var i=this.__base_string_length;return t=t||0,e<0&&(i=0),i+=e*this.__indent_size,i+=t,i},n.prototype.get_indent_string=function(e,t){var i=this.__base_string;return t=t||0,e<0&&(e=0,i=""),t+=e*this.__indent_size,this.__ensure_cache(t),i+=this.__cache[t],i},n.prototype.__ensure_cache=function(e){while(e>=this.__cache.length)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,i="";this.__indent_size&&e>=this.__indent_size&&(t=Math.floor(e/this.__indent_size),e-=t*this.__indent_size,i=new Array(t+1).join(this.__indent_string)),e&&(i+=new Array(e+1).join(" ")),this.__cache.push(i)},r.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},r.prototype.get_line_number=function(){return this.__lines.length},r.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},r.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},r.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join("\n");return"\n"!==e&&(i=i.replace(/[\n]/g,e)),i},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},r.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},r.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},r.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},r.prototype.remove_indent=function(e){var t=this.__lines.length;while(e<t)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},r.prototype.trim=function(e){e=void 0!==e&&e,this.current_line.trim();while(e&&this.__lines.length>1&&this.current_line.is_empty())this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},r.prototype.just_added_newline=function(){return this.current_line.is_empty()},r.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},r.prototype.ensure_empty_line_above=function(e,t){var i=this.__lines.length-2;while(i>=0){var n=this.__lines[i];if(n.is_empty())break;if(0!==n.item(0).indexOf(e)&&n.item(-1)!==t){this.__lines.splice(i+1,0,new a(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=r},,,,function(e,t,i){"use strict";function a(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php"],["auto"])}function n(e,t){var i,a={};for(i in e=r(e),e)i!==t&&(a[i]=e[i]);if(t&&e[t])for(i in e[t])a[i]=e[t][i];return a}function r(e){var t,i={};for(t in e){var a=t.replace(/-/g,"_");i[a]=e[t]}return i}a.prototype._get_array=function(e,t){var i=this.raw_options[e],a=t||[];return"object"===typeof i?null!==i&&"function"===typeof i.concat&&(a=i.concat()):"string"===typeof i&&(a=i.split(/[^a-zA-Z0-9_\/\-]+/)),a},a.prototype._get_boolean=function(e,t){var i=this.raw_options[e],a=void 0===i?!!t:!!i;return a},a.prototype._get_characters=function(e,t){var i=this.raw_options[e],a=t||"";return"string"===typeof i&&(a=i.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),a},a.prototype._get_number=function(e,t){var i=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var a=parseInt(i,10);return isNaN(a)&&(a=t),a},a.prototype._get_selection=function(e,t,i){var a=this._get_selection_list(e,t,i);if(1!==a.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return a[0]},a.prototype._get_selection_list=function(e,t,i){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(i=i||[t[0]],!this._is_valid_selection(i,t))throw new Error("Invalid Default Value!");var a=this._get_array(e,i);if(!this._is_valid_selection(a,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return a},a.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=a,e.exports.normalizeOpts=r,e.exports.mergeOpts=n},,function(e,t,i){"use strict";var a=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},n.prototype.peek=function(e){var t=null;return e=e||0,e+=this.__position,e>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},n.prototype.__match=function(e,t){e.lastIndex=t;var i=e.exec(this.__input);return!i||a&&e.sticky||i.index!==t&&(i=null),i},n.prototype.test=function(e,t){return t=t||0,t+=this.__position,t>=0&&t<this.__input_length&&!!this.__match(e,t)},n.prototype.testChar=function(e,t){var i=this.peek(t);return e.lastIndex=0,null!==i&&e.test(i)},n.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(e,t,i){var a,n="";return e&&(a=this.match(e),a&&(n+=a[0])),!t||!a&&e||(n+=this.readUntil(t,i)),n},n.prototype.readUntil=function(e,t){var i="",a=this.__position;e.lastIndex=this.__position;var n=e.exec(this.__input);return n?(a=n.index,t&&(a+=n[0].length)):a=this.__input_length,i=this.__input.substring(this.__position,a),this.__position=a,i},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,t){var i=null,n="g";return t&&a&&(n="y"),"string"===typeof e&&""!==e?i=new RegExp(e,n):e&&(i=new RegExp(e.source,n)),i},n.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(e){var t=this.__position,i=this.readUntilAfter(e);return this.__position=t,i},n.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},,,,,function(e,t,i){"use strict";function a(e,t){e="string"===typeof e?e:e.source,t="string"===typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}a.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;var i=this.__directive_pattern.exec(e);while(i)t[i[1]]=i[2],i=this.__directive_pattern.exec(e);return t},a.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=a},,function(e,t,i){"use strict";var a=i(16).Beautifier,n=i(17).Options;function r(e,t){var i=new a(e,t);return i.beautify()}e.exports=r,e.exports.defaultOptions=function(){return new n}},function(e,t,i){"use strict";var a=i(17).Options,n=i(2).Output,r=i(8).InputScanner,s=i(13).Directives,o=new s(/\/\*/,/\*\//),l=/\r\n|[\r\n]/,c=/\r\n|[\r\n]/g,u=/\s/,d=/(?:\s|\n)+/g,p=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,f=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function A(e,t){this._source_text=e||"",this._options=new a(t),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0}}A.prototype.eatString=function(e){var t="";this._ch=this._input.next();while(this._ch){if(t+=this._ch,"\\"===this._ch)t+=this._input.next();else if(-1!==e.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return t},A.prototype.eatWhitespace=function(e){var t=u.test(this._input.peek()),i=!0;while(u.test(this._input.peek()))this._ch=this._input.next(),e&&"\n"===this._ch&&(this._options.preserve_newlines||i)&&(i=!1,this._output.add_new_line(!0));return t},A.prototype.foundNestedPseudoClass=function(){var e=0,t=1,i=this._input.peek(t);while(i){if("{"===i)return!0;if("("===i)e+=1;else if(")"===i){if(0===e)return!1;e-=1}else if(";"===i||"}"===i)return!1;t++,i=this._input.peek(t)}return!1},A.prototype.print_string=function(e){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(e)},A.prototype.preserveSingleSpace=function(e){e&&(this._output.space_before_token=!0)},A.prototype.indent=function(){this._indentLevel++},A.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},A.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===t&&(t="\n",e&&l.test(e||"")&&(t=e.match(l)[0])),e=e.replace(c,"\n");var i=e.match(/^[\t ]*/)[0];this._output=new n(this._options,i),this._input=new r(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;var a,s,A,h=0,m=!1,g=!1,v=!1,b=!1,y=!1,_=this._ch;while(1){if(a=this._input.read(d),s=""!==a,A=_,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),_=this._ch,!this._ch)break;if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var w=this._input.read(p),C=o.get_directives(w);C&&"start"===C.ignore&&(w+=o.readIgnored(this._input)),this.print_string(w),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(f)),this.eatWhitespace(!0);else if("@"===this._ch)if(this.preserveSingleSpace(s),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var x=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);x.match(/[ :]$/)&&(x=this.eatString(": ").replace(/\s$/,""),this.print_string(x),this._output.space_before_token=!0),x=x.replace(/\s$/,""),"extend"===x?b=!0:"import"===x&&(y=!0),x in this.NESTED_AT_RULE?(this._nestedLevel+=1,x in this.CONDITIONAL_GROUP_RULE&&(v=!0)):m||0!==h||-1===x.indexOf(":")||(g=!0,this.indent())}else"#"===this._ch&&"{"===this._input.peek()?(this.preserveSingleSpace(s),this.print_string(this._ch+this.eatString("}"))):"{"===this._ch?(g&&(g=!1,this.outdent()),this.indent(),this._output.space_before_token=!0,this.print_string(this._ch),v?(v=!1,m=this._indentLevel>this._nestedLevel):m=this._indentLevel>=this._nestedLevel,this._options.newline_between_rules&&m&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this.eatWhitespace(!0),this._output.add_new_line()):"}"===this._ch?(this.outdent(),this._output.add_new_line(),"{"===A&&this._output.trim(!0),y=!1,b=!1,g&&(this.outdent(),g=!1),this.print_string(this._ch),m=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0)):":"===this._ch?!m&&!v||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||b||0!==h?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),g||(g=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):'"'===this._ch||"'"===this._ch?(this.preserveSingleSpace(s),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)):";"===this._ch?0===h?(g&&(this.outdent(),g=!1),b=!1,y=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0):"("===this._ch?this._input.lookBack("url")?(this.print_string(this._ch),this.eatWhitespace(),h++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),h&&(h--,this.outdent()))):(this.preserveSingleSpace(s),this.print_string(this._ch),this.eatWhitespace(),h++,this.indent()):")"===this._ch?(h&&(h--,this.outdent()),this.print_string(this._ch)):","===this._ch?(this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||g||0!==h||y?this._output.space_before_token=!0:this._output.add_new_line()):">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||g||0!==h?"]"===this._ch?this.print_string(this._ch):"["===this._ch?(this.preserveSingleSpace(s),this.print_string(this._ch)):"="===this._ch?(this.eatWhitespace(),this.print_string("="),u.test(this._ch)&&(this._ch="")):"!"!==this._ch||this._input.lookBack("\\")?(this.preserveSingleSpace(s),this.print_string(this._ch)):(this.print_string(" "),this.print_string(this._ch)):this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&u.test(this._ch)&&(this._ch=""))}var k=this._output.get_code(t);return k},e.exports.Beautifier=A},function(e,t,i){"use strict";var a=i(6).Options;function n(e){a.call(this,e,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var t=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||t}n.prototype=new a,e.exports.Options=n}]),r=i;a=[],n=function(){return{css_beautify:r}}.apply(t,a),void 0===n||(e.exports=n)})()},"4d89":function(e,t,i){},"4d8f":function(e,t,i){},"4da3":function(e,t,i){},"4db1":function(e,t,i){"use strict";i("b19f")},"4db9":function(e,t,i){e.exports=i.p+"static/img/mobile-step-1-5.cf7cf776.png"},"4e13":function(e,t,i){},"4e1e":function(e,t,i){},"4e1e9":function(e,t,i){"use strict";i("05f3")},"4ec9":function(e,t,i){"use strict";var a=i("6d61"),n=i("6566");a("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n)},"4ee5":function(e,t,i){"use strict";i("98f3")},"4f7d":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-card",{staticClass:"content-card",style:"width:"+e.cardWidth},[i("p",{staticClass:"task-name"},[e._v(e._s(e.ruleItem.content))]),e._l(e.ruleItem.materialList.slice(0,e.MAX_SHOW_RULE_LENGTH),(function(t,a){return i("div",{key:a},[t.mediaType.toString()===e.MEDIA_TYPE_TEXT?i("div",{staticClass:"text-content"},[e._v(" "+e._s(t.content)+" ")]):i("FileInfo",{attrs:{item:t}})],1)})),i("div",{staticClass:"load-more theme-text-color"},[e._v("共"+e._s(e.ruleItem.materialList&&e.ruleItem.materialList.length||0)+"条 "),e.ruleItem.materialList.length>e.MAX_SHOW_RULE_LENGTH?i("span",{on:{click:function(){return e.onLoadMore(e.ruleItem.materialList)}}},[e._v("查看更多")]):e._e()])],2),i("MoreDetailModal",{attrs:{visible:e.moreVisible,"preview-list":e.previewList},on:{"update:visible":function(t){e.moreVisible=t}}})],1)},n=[],r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",e._g(e._b({staticClass:"more-detail-modal",attrs:{width:"500px"},on:{close:e.onClose}},"el-dialog",e.$attrs,!1),e.$listeners),[i("PhoneDialog",{attrs:{message:e.text,"is-other":!!e.materialSelected,"msg-list":e.previewList,"material-field":"title","digest-field":"content","material-url-field":"url"}},[i("el-image",{staticClass:"phone-dialog-image",attrs:{src:e.materialSelected,fit:"fit"}})],1)],1)},s=[],o=i("8bd5"),l={name:"",components:{PhoneDialog:o["a"]},props:{previewList:{type:Array,default:function(){return[]}}},data:function(){return{materialSelected:"",text:""}},created:function(){},mounted:function(){},methods:{onClose:function(){this.$emit("update:visible",!1)}}},c=l,u=(i("52d7"),i("2877")),d=Object(u["a"])(c,r,s,!1,null,"34afd927",null),p=d.exports,f=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.item.mediaType.toString()===e.MEDIA_TYPE_RADARLINK?i("div",[i("RadarLink",{attrs:{"radar-title":e.radarTitle,"class-name":"material-preview","link-title":e.item.title,"cover-url":e.item.coverUrl,content:e.item.content}})],1):e.item.mediaType.toString()===e.MEDIA_TYPE_SMARTFORM?i("div",{staticClass:"file-info-div"},[i("svg-icon",{attrs:{"icon-class":"form-preview","class-name":"form-preview"}}),i("div",{staticClass:"form-info"},[i("div",{staticClass:"form-name"},[e._v(e._s(e.item.formName||e.item.form.formName))]),i("div",{staticClass:"form-desc"},[e._v(e._s(e.item.description||e.item.form.description))])])],1):i("div",{staticClass:"file-info-div"},[i("div",{staticClass:"cover-img"},[e.item.mediaType.toString()===e.MEDIA_TYPE_FILE?i("svg",{staticClass:"icon",attrs:{"aria-hidden":"true",width:"60",height:"60"}},[i("use",{attrs:{"xlink:href":"#icon-"+e.getFileIconClass}})]):e.item.mediaType.toString()===e.MEDIA_TYPE_VIDEO?i("div",{staticClass:"video-img"},[i("video",{attrs:{src:e.item.url}}),i("svg",{staticClass:"icon-player",attrs:{width:25,height:25}},[i("use",{attrs:{href:"#icon-player"}})])]):i("el-image",{attrs:{src:e.dealCoverUrl(e.item,e.item.mediaType),fit:"cover"}},[i("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[i("svg",{staticClass:"icon-unknown",attrs:{width:60,height:60}},[i("use",{attrs:{href:"#icon-unknown"}})])])])],1),i("div",{staticClass:"file-info"},[i("div",{staticClass:"file-name"},[e._v(e._s(e.item.title))]),i("div",{staticClass:"file-size"},[e._v(e._s(e.descText))])])])},A=[],h=i("5530"),m=(i("caad"),i("d3b7"),i("25f0"),i("2532"),i("cf45")),g=i("dd70"),v=i("7d3b"),b={name:"",components:{RadarLink:v["default"]},props:{type:{type:String,default:""},item:{type:Object,default:function(){}},descField:{type:String,default:"content"}},data:function(){return{MEDIA_TYPE_POSTER:g["cc"],MEDIA_TYPE_IMGLINK:g["ac"],MEDIA_TYPE_VIDEO:g["gc"],MEDIA_TYPE_FILE:g["Zb"],MEDIA_TYPE_MINIAPP:g["bc"],MEDIA_TYPE_RADARLINK:g["dc"],MEDIA_TYPE_SMARTFORM:g["ec"]}},computed:{getFileIconClass:function(){return Object(m["z"])(this.item.url)},descText:function(){var e=Object(h["a"])({},this.item);return[g["cc"],g["gc"],g["Zb"]].includes(this.item.mediaType.toString())?Object(m["x"])(e[this.descField]):e[this.descField]},radarTitle:function(){var e,t=Object(h["a"])({},this.item);return(null===(e=t.radar)||void 0===e?void 0:e.radarTitle)||t.radarTitle}},created:function(){},mounted:function(){},methods:{dealCoverUrl:function(e,t){return[g["ac"],g["bc"],g["dc"]].includes(t.toString())?e.coverUrl:e.url}}},y=b,_=(i("2ad7"),Object(u["a"])(y,f,A,!1,null,"77036656",null)),w=_.exports,C=2,x={name:"",components:{MoreDetailModal:p,FileInfo:w},props:{ruleItem:{type:Object,default:function(){}},cardWidth:{type:String,default:"600px"}},data:function(){return{previewList:[],moreVisible:!1,MEDIA_TYPE_TEXT:g["fc"],RULE_PERFORM_TYPE:g["Tc"],MAX_SHOW_RULE_LENGTH:C,SOP_TYPE:g["ed"]}},methods:{onLoadMore:function(e){this.previewList=e||[],this.moreVisible=!0}}},k=x,T=(i("7be1"),Object(u["a"])(k,a,n,!1,null,"144da975",null));t["a"]=T.exports},"4fadc":function(e,t,i){var a=i("23e7"),n=i("6f53").entries;a({target:"Object",stat:!0},{entries:function(e){return n(e)}})},"4fc3":function(e,t,i){},"4fc9":function(e,t,i){"use strict";i("cdde")},"4fdc":function(e,t,i){},"4fde":function(e,t,i){"use strict";i("4da3")},"502b":function(e,t,i){},5030:function(e,t,i){},"50fc":function(e,t,i){"use strict";i.d(t,"d",(function(){return r})),i.d(t,"b",(function(){return s})),i.d(t,"a",(function(){return o})),i.d(t,"e",(function(){return l})),i.d(t,"c",(function(){return c})),i.d(t,"g",(function(){return u})),i.d(t,"f",(function(){return d}));var a=i("b775"),n=window.CONFIG.services.wecom+"/admin";function r(){return Object(a["a"])({url:n+"/getAdminLoginQrcode"})}function s(e){return Object(a["a"])({url:n+"/checkAdminLoginQrcode",method:"get",params:e})}function o(e){return Object(a["a"])({url:n+"/autoConfig",method:"POST",data:e,disableErrMsg:!0})}function l(){return Object(a["a"])({url:n+"/getDefaultDomainConfig"})}function c(e){return Object(a["a"])({url:n+"/confirmMobileCaptcha",method:"get",params:e})}function u(e){return Object(a["a"])({url:n+"/sendCaptcha",method:"get",params:e})}function d(e){return Object(a["a"])({url:n+"/getDepartMemberInfo",method:"get",params:e})}},5118:function(e,t,i){(function(e){var a="undefined"!==typeof e&&e||"undefined"!==typeof self&&self||window,n=Function.prototype.apply;function r(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new r(n.call(setTimeout,a,arguments),clearTimeout)},t.setInterval=function(){return new r(n.call(setInterval,a,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(a,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},i("6017"),t.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof e&&e.clearImmediate||this&&this.clearImmediate}).call(this,i("c8ba"))},5142:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"showTable",attrs:{data:e.list},on:{"sort-change":e.changeTableSort}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.list.length}})],1),i("el-table-column",{attrs:{prop:"tagName",label:"标签","min-width":"200"}}),i("el-table-column",{attrs:{prop:"groupTagName",label:"所属标签组","min-width":"180"}}),i("el-table-column",{attrs:{sortable:e.tagType()!==e.TAG_LABEL_TYPE["customer"]&&"custom",prop:"customerCnt",label:e.tagType()===e.TAG_LABEL_TYPE["customer"]?"标签下客户数":"标签下客户群","min-width":"180"}}),i("el-table-column",{attrs:{sortable:e.tagType()!==e.TAG_LABEL_TYPE["customer"]&&"custom",prop:"createTime",label:"标签创建时间","min-width":"180"}})],2),i("pagination",{attrs:{total:e.total,disabled:e.loading,page:e.query.pageNum,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}})],1)},n=[],r=i("5530"),s=(i("4e82"),i("d3b7"),i("e77d")),o=i("48fb"),l=i("dd70"),c={ascending:"ASC",descending:"DESC",null:null},u={components:{EmptyDefaultIcon:s["a"]},props:{getSearchPayload:{type:Function,default:null},modifyButtonStatus:{type:Function,default:null}},inject:["tagType"],data:function(){return{loading:!1,query:{pageNum:1,pageSize:l["Ic"]},sortParams:{sortName:"createTime",sortType:"ascending"},list:[],total:0,TAG_LABEL_TYPE:l["ld"]}},mounted:function(){},methods:{getList:function(e){var t=this;e&&(this.query.pageNum=1),this.loading=!0;var i=this.tagType()===l["ld"]["customer"]?o["y"]:o["A"];i(this.getPayload()).then((function(e){t.list=e.rows,t.total=e.total||0})).catch((function(){t.list=[],t.total=0,t.msgError("服务异常,请联系管理员")})).finally((function(){t.loading=!1,t.modifyButtonStatus()}))},getPayload:function(){var e=this.getSearchPayload(),t=Object(r["a"])(Object(r["a"])({},this.query),e),i=this.sortParams,a=i.sortName,n=i.sortType,s={sortName:a+"Sort",sortType:c[n]};return this.tagType()===l["ld"]["customer"]&&(s={}),Object(r["a"])(Object(r["a"])({},t),s)},reset:function(){var e;this.query=this.$options.data().query,null===(e=this.$refs)||void 0===e||null===(e=e.showTable)||void 0===e||e.sort("createTime",this.tagType()!==l["ld"]["customer"]?"ascending":null)},changeTableSort:function(e){var t=e.prop,i=e.order;this.sortParams={sortName:t,sortType:i},this.getList(!0)}}},d=u,p=i("2877"),f=Object(p["a"])(d,a,n,!1,null,null,null);t["default"]=f.exports},"515a":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.name?i("span",[e.showIcon?i("i",{class:"iconfont icon-folder mr"+e.marginRight,style:"font-size: "+e.iconSize+"px; color: inherit;}"}):e._e(),i("span",{staticStyle:{"line-height":"100%"}},[e._v(e._s(e.name))])]):e._e()},n=[],r=(i("a9e3"),{name:"TagUserShow",props:{showIcon:{type:[Boolean,String],default:!1},name:{type:String,default:void 0},marginRight:{type:Number,default:5},iconSize:{type:Number,default:14},iconColor:{type:String,default:""}},data:function(){return{}}}),s=r,o=i("2877"),l=Object(o["a"])(s,a,n,!1,null,null,null);t["a"]=l.exports},"515f":function(e,t,i){},5194:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],style:"height:"+e.height},[i("iframe",{staticStyle:{width:"100%",height:"100%"},attrs:{src:e.src,frameborder:"no",scrolling:"auto"}})])},n=[],r=94.5,s={name:"Druid",data:function(){return{src:"/api/druid/index.html",height:document.documentElement.clientHeight-r+"px;",loading:!0}},mounted:function(){var e=this;setTimeout((function(){e.loading=!1}),230);var t=this;window.onresize=function(){t.height=document.documentElement.clientHeight-r+"px;"}}},o=s,l=i("2877"),c=Object(l["a"])(o,a,n,!1,null,null,null);t["default"]=c.exports},"51d4":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAhCAYAAADDAmudAAAAAXNSR0IArs4c6QAABEtJREFUSA2lVV1oXEUUnjN3N79asTba7CZt/vZua6APVsQSqBV9kGqVWhMFyZp9sT74pFDRYokUtRRfBIlWsLtZ0WCsESy0KkUErQptEU2luduEbGqTaCxNtKn52b33eOYmMzu7uRt6cR72fN853z1nfs7MMlZihJPp/aHk0L4S4Rt2g5cynLA6HcSUiAHAyxPx6CEv3Y34VhQIJ60H0MGTyFhQJgAwHp2IR45L7sdyXVzfdynkIBvQk9MSTpgNLSd1nR9cUCA3P3eIIa5RCQDO1Bi3dHx7P+SUzydQW1TXa91jO+wnKuD66OdqZSCweSTWMuUzZ4HcXQFSUsdhb8vkroLDgf+bXORxC9SlRnZQkXu10ufbqsz3NK7g1rMYrE0MHQsn0s8p5ypgaQW2065rDAP2fdoBtu4TuL0fjclB6zOGbI/DsCd8NL23WFPMeTcipw3arQIAU9sqza8V18Dpf60XEdku1yW2FfDd2uTwVk2yAvIjyXQbzWh9PoIDXrOvS4xEGMJrSgcguuH5ya6Wc8rnATgweFj3c4BjOpfYZtkX6JwqJKfk79AN75G8lOXUOa16MIhlp3UucGs/lgGyjrwf/uTVVS/leWnEGWBUhmk1VzLxxnnJpZ2eu7idbvdayUnXe7mjfk7yYiuaQfoCBNSHhMdlQLd0sE06B4N/qXOJw70Xtzm288H319MmtfJ3gIEYbRFTTwOdmmcB5jgbZBJhA5DL6FxgcT8cxx5gDDfTthuUdweC/T5tUb7faZ/Lij8UnA6ezjQ/wC6nHSsckxdGmwq7keKIbZyU/ygpsDqFNeAwltEoy8Jis84F5uXBSzTZfC7y0bQGxU3+SwjEQIb1S6jwlw41o3vQYdt1LrA4dADeSdq/BadFjxhGYK9o0wvC4Q5k1Rs+GrtVUmnXGWt+IHxNcgR8VrSu5NJOdEW+qN1i1lSUlzWMd5mR32Mt5zlwGJQCYXOL8/fpXOBfY+uv05z6lJ9u/tVZ64DiGjh3N2RHn24aoxW458TpPf1Giwv4VBF3KQ+yHr0hCL8SOmo96aXVfbytwvyRqs0oJ+Ku1v6pmxRfBuOd0V9oTq8rPz121NZ9ocTQ4W56MJW/CHDxsNHhfiL9tK6qmdnpPZLr1mw0D1JniPNYGktFFroBqNG8h1sZuHFED9PMDm5J/VGt+wQW/803r73tISryleB0P96Y7Nr0qsClhltg4pnIz/TRcSmiV7P+ijPTLblurcdqrpkN0Ue4YbSPx6P79ZgXVjd0Y2qoMWvDb5S8clmYMyB41+V4c0GXeSVZzacOZyy2aRQYvqmJAw7Lfb7xw0yt5vMNVQHxZeUdxmG6icMyC62meTG7cCr0sbVO+vzaggLDOyMLHAKP03lM5xPhnbjATqzWinntSlRQQITFngMzdjJgdHvdkeOAb63Wiss6fybUm36Q/jRm6U/kCX9f+lA3p4Zv9yH3lP4H3glxc8mIw6oAAAAASUVORK5CYII="},"51f9":function(e,t,i){},"51fe":function(e,t,i){},"52a9":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-button",e._g(e._b({directives:[{name:"preventReClick",rawName:"v-preventReClick",value:e.preventTime,expression:"preventTime"}],attrs:{loading:e.loading},on:{click:e.handleClick}},"el-button",e.$attrs,!1),e.$listeners),[e._t("default")],2)},n=[],r=(i("a9e3"),1e3),s={name:"RequestButton",props:{requestMethod:{type:Function,default:null},preventTime:{type:Number,default:r},buttonType:{type:String,default:"submit"}},data:function(){return{}},computed:{loading:function(){return this.$store.state.requestButton[this.buttonType]}},created:function(){this.$set(this.$store.state.requestButton,this.buttonType,!1)},methods:{handleClick:function(){window.sessionStorage.setItem("change",!1),this.$store.commit("requestButton/CHANGE_BUTTONLOADING",{key:this.buttonType,value:!0}),this.requestMethod()}}},o=s,l=i("2877"),c=Object(l["a"])(o,a,n,!1,null,null,null);t["a"]=c.exports},"52ae":function(e,t,i){"use strict";i("4e13")},"52d7":function(e,t,i){"use strict";i("4cec")},"52ee":function(e,t,i){"use strict";i("9d25")},5369:function(e,t,i){},"536b":function(e,t,i){},"536e":function(e,t,i){"use strict";i("448c")},"53b5":function(e,t,i){"use strict";i("d842")},"53c9":function(e,t,i){},"53ed":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"material-manage-div"},[i("div",{staticClass:"header-radio-group"},[i("el-radio-group",{staticClass:"radio-group-div",attrs:{size:"medium"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-radio-button",{attrs:{label:e.MEDIA_TYPE_POSTER}},[e._v("海报")]),i("el-radio-button",{attrs:{label:e.MEDIA_TYPE_IMGLINK}},[e._v("链接")]),i("el-radio-button",{attrs:{label:e.MEDIA_TYPE_VIDEO}},[e._v("视频")]),i("el-radio-button",{attrs:{label:e.MEDIA_TYPE_FILE}},[e._v("文件")]),i("el-radio-button",{attrs:{label:e.MEDIA_TYPE_MINIAPP}},[e._v("小程序")])],1),i("div",{staticClass:"manage-btn"},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wechat:material:expireManage"],expression:"['wechat:material:expireManage']"}],staticClass:"btn-reset",on:{click:e.openExpireList}},[e._v("过期素材")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wechat:material:tagManage"],expression:"['wechat:material:tagManage']"}],staticClass:"btn-reset",on:{click:e.openTagManage}},[e._v("素材标签管理")])],1)],1),e.activeName==e.MEDIA_TYPE_POSTER?i("PosterPage"):e._e(),e.activeName==e.MEDIA_TYPE_IMGLINK?i("ImgLink"):e._e(),e.activeName==e.MEDIA_TYPE_VIDEO?i("VideoTab"):e._e(),e.activeName==e.MEDIA_TYPE_FILE?i("FileTab"):e._e(),e.activeName==e.MEDIA_TYPE_MINIAPP?i("MiniAppPage"):e._e(),i("MaterialListDrawer",{ref:"materialDrawer",attrs:{"drawer-title":"过期素材",visible:e.drawerVisible,list:e.expireList,"get-list":e.getExpireMaterialList,"poster-tool-list":["preview","restore","remove"],"img-link-tool-list":["preview","restore","remove"],"video-tool-list":["preview","restore","remove"],"file-tool-list":["download","restore","remove"],"miniapp-tool-list":["restore","remove"],query:e.query,"radar-hidden":!0,"radar-query":e.radarQuery,total:e.total,"is-loading":e.isLoading,"material-type":e.query.materialType},on:{"update:visible":function(t){e.drawerVisible=t},"update:query":function(t){e.query=t},"update:radarQuery":function(t){e.radarQuery=t},"update:radar-query":function(t){e.radarQuery=t},"update:materialType":function(t){return e.$set(e.query,"materialType",t)},"update:material-type":function(t){return e.$set(e.query,"materialType",t)},emptyExpireList:e.emptyExpireList,changeSelectedMaterialNum:e.changeSelectedMaterialNum}},[i("template",{slot:"tab-right-btn"},[i("el-popover",{attrs:{placement:"bottom-end",width:"330"},model:{value:e.expireVisible,callback:function(t){e.expireVisible=t},expression:"expireVisible"}},[i("div",{staticClass:"radio-div"},[i("el-radio-group",{model:{value:e.expireRadio,callback:function(t){e.expireRadio=t},expression:"expireRadio"}},[i("el-radio",{attrs:{label:0}},[e._v("素材过期后不自动删除")]),i("el-radio",{attrs:{label:1}},[e._v("素材过期 "),i("el-input-number",{staticClass:"expire-days",attrs:{min:0,max:999},model:{value:e.expireDays,callback:function(t){e.expireDays=t},expression:"expireDays"}}),e._v(" 天后自动删除")],1)],1)],1),i("div",{staticStyle:{"text-align":"right",margin:"0"}},[i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){e.expireVisible=!1}}},[e._v("取消")]),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.onConfirmConfig}},[e._v("确定")])],1),i("el-button",{staticClass:"btn-reset",attrs:{slot:"reference"},on:{click:e.openConfig},slot:"reference"},[e._v("过期设置")])],1)],1),i("template",{slot:"right-btn"},[i("div",{staticClass:"right-btn-div"},[i("div",{staticClass:"selected-num"},[e._v("已选择"+e._s(e.selectedMaterialNum)+"项")]),i("el-button",{staticClass:"btn-reset",on:{click:e.selectAll}},[e._v(e._s(e.checkAll?"取消全选":"全选"))]),i("el-button",{staticClass:"btn-reset",on:{click:e.batchRestore}},[e._v("批量恢复")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wechat:material:remove"],expression:"['wechat:material:remove']"}],staticClass:"btn-reset",on:{click:e.completeDelete}},[e._v("彻底删除")])],1)])],2),i("SelectTagModal",{attrs:{visible:e.dialogVisible,"modal-title":"素材标签管理","alert-title":"创建素材标签,通过标签对素材进行分类管理","can-remove-tag":!0,"show-add-tag":!0,"tag-list":e.allTagList},on:{"update:visible":function(t){e.dialogVisible=t},submitSelectTags:e.submitSelectTags}})],1)},n=[],r=i("c7eb"),s=i("1da1"),o=i("5530"),l=(i("a9e3"),i("d3b7"),i("07ac"),i("741a"),i("5ff5"),i("891e")),c=i("0be8"),u=i("c430c"),d=i("e125"),p=i("c887"),f=i("e8fd"),A=i("9094"),h=i("dd70"),m=i("8387"),g=i("cd7b"),v=7,b={name:"MaterialManage",components:{PosterPage:l["default"],VideoTab:c["default"],FileTab:u["default"],ImgLink:d["default"],MiniAppPage:p["default"],MaterialListDrawer:f["a"],SelectTagModal:m["default"]},data:function(){return{MEDIA_TYPE_POSTER:h["cc"],MEDIA_TYPE_IMGLINK:h["ac"],MEDIA_TYPE_VIDEO:h["gc"],MEDIA_TYPE_FILE:h["Zb"],MEDIA_TYPE_MINIAPP:h["bc"],activeName:h["cc"],dialogVisible:!1,drawerVisible:!1,RADAR_TYPE:h["Qc"],query:{pageNum:1,pageSize:h["Mc"],categoryId:"",search:"",mediaType:h["cc"],isExpire:!0},expireList:[],checkAll:!1,expireVisible:!1,expireRadio:0,expireDays:v,total:0,selectedMaterialNum:0,isLoading:!0,radarQuery:{type:this.$store.state.user.isSuperAdmin?h["Qc"]["enterprise"]:"",searchTitle:"",pageNum:1,pageSize:h["Ic"]}}},computed:{allTagList:function(){var e=this.$store.state.materialInfo&&this.$store.state.materialInfo.allTagObj,t=Object.values(e);return t}},watch:{},created:function(){this.$store.dispatch("app/setBusininessDesc","\n <div>\n 支持上传多种类型素材,管理员或员工可在日常运营中便捷使用\n </div>\n "),Object(g["b"])(this.$store)},mounted:function(){},methods:{emptyExpireList:function(){this.expireList=[]},openTagManage:function(){this.dialogVisible=!0},submitSelectTags:function(){},openExpireList:function(){this.drawerVisible=!0,this.getExpireMaterialList({})},getExpireMaterialList:function(e,t){var i=this;this.isLoading=!0,Object(A["e"])(Object(o["a"])(Object(o["a"])({},this.query),e)).then((function(e){i.isLoading=!1,i.expireList=e.rows,i.total=e.total&&Number(e.total)})).finally((function(){t&&t()}))},selectAll:function(){this.$refs.materialDrawer.selectAll(this.checkAll),this.checkAll=!this.checkAll},clearSelect:function(){this.$refs.materialDrawer.selectAll([]),this.checkAll=!1},batchRestore:function(){this.$refs.materialDrawer.batchRestore(this.clearSelect)},completeDelete:function(){this.$refs.materialDrawer.completeDelete(this.clearSelect)},openConfig:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var i,a;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(A["f"])();case 2:i=t.sent,i&&(a=i.data,e.expireRadio=a.isDel?1:0,a.isDel&&(e.expireDays=a.delDays));case 4:case"end":return t.stop()}}),t)})))()},onConfirmConfig:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var i;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.expireVisible=!1,t.next=3,Object(A["q"])({delDays:e.expireDays,isDel:e.expireRadio});case 3:i=t.sent,i&&e.msgSuccess("保存成功");case 5:case"end":return t.stop()}}),t)})))()},changeSelectedMaterialNum:function(e){this.selectedMaterialNum=e}}},y=b,_=(i("7fab"),i("2877")),w=Object(_["a"])(y,a,n,!1,null,"1cc0e1a6",null);t["default"]=w.exports},"53fe":function(e,t,i){var a,n;
|
||
/**!
|
||
* Sortable
|
||
* @author RubaXa <trash@rubaxa.org>
|
||
* @author owenm <owen23355@gmail.com>
|
||
* @license MIT
|
||
*/(function(r){"use strict";a=r,n="function"===typeof a?a.call(t,i,t,e):a,void 0===n||(e.exports=n)})((function(){"use strict";if("undefined"===typeof window||!window.document)return function(){throw new Error("Sortable.js requires a window with a document")};var e,t,i,a,n,r,s,o,l,c,u,d,p,f,A,h,m,g,v,b,y,_,w,C,x,k,T=[],S=!1,I=!1,E=!1,O=[],B=!1,L=!1,D=[],M=/\s+/g,N="Sortable"+(new Date).getTime(),j=window,P=j.document,U=j.parseInt,F=j.setTimeout,R=j.jQuery||j.Zepto,Q=j.Polymer,H={capture:!1,passive:!1},z=!!navigator.userAgent.match(/(?:Trident.*rv[ :]?11\.|msie|iemobile)/i),q=!!navigator.userAgent.match(/Edge/i),G=!!navigator.userAgent.match(/firefox/i),$=!(!navigator.userAgent.match(/safari/i)||navigator.userAgent.match(/chrome/i)||navigator.userAgent.match(/android/i)),V=!!navigator.userAgent.match(/iP(ad|od|hone)/i),Y=V,K=q||z?"cssFloat":"float",W="draggable"in P.createElement("div"),X=function(){if(z)return!1;var e=P.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}(),J=!1,Z=!1,ee=Math.abs,te=Math.min,ie=Math.max,ae=[],ne=function(e,t){var i=Ie(e),a=U(i.width)-U(i.paddingLeft)-U(i.paddingRight)-U(i.borderLeftWidth)-U(i.borderRightWidth),n=Ne(e,0,t),r=Ne(e,1,t),s=n&&Ie(n),o=r&&Ie(r),l=s&&U(s.marginLeft)+U(s.marginRight)+We(n).width,c=o&&U(o.marginLeft)+U(o.marginRight)+We(r).width;if("flex"===i.display)return"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal";if("grid"===i.display)return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(n&&"none"!==s.float){var u="left"===s.float?"left":"right";return!r||"both"!==o.clear&&o.clear!==u?"horizontal":"vertical"}return n&&("block"===s.display||"flex"===s.display||"table"===s.display||"grid"===s.display||l>=a&&"none"===i[K]||r&&"none"===i[K]&&l+c>a)?"vertical":"horizontal"},re=function(e,t){for(var i=0;i<O.length;i++)if(!je(O[i])){var a=We(O[i]),n=O[i][N].options.emptyInsertThreshold,r=e>=a.left-n&&e<=a.right+n,s=t>=a.top-n&&t<=a.bottom+n;if(r&&s)return O[i]}},se=function(e,t,i,a,n){var r=We(i),s="vertical"===a?r.left:r.top,o="vertical"===a?r.right:r.bottom,l="vertical"===a?e:t;return s<l&&l<o},oe=function(t,i,a){var n=t===e&&k||We(t),r=i===e&&k||We(i),s="vertical"===a?n.left:n.top,o="vertical"===a?n.right:n.bottom,l="vertical"===a?n.width:n.height,c="vertical"===a?r.left:r.top,u="vertical"===a?r.right:r.bottom,d="vertical"===a?r.width:r.height;return s===c||o===u||s+l/2===c+d/2},le=function(e,t){if(!e||!e.getBoundingClientRect)return ce();var i=e,a=!1;do{if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var n=Ie(i);if(i.clientWidth<i.scrollWidth&&("auto"==n.overflowX||"scroll"==n.overflowX)||i.clientHeight<i.scrollHeight&&("auto"==n.overflowY||"scroll"==n.overflowY)){if(!i||!i.getBoundingClientRect||i===P.body)return ce();if(a||t)return i;a=!0}}}while(i=i.parentNode);return ce()},ce=function(){return z?P.documentElement:P.scrollingElement},ue=function(e,t,i){e.scrollLeft+=t,e.scrollTop+=i},de=ze((function(e,t,i,a){if(t.scroll){var n=i?i[N]:window,r=t.scrollSensitivity,s=t.scrollSpeed,u=e.clientX,d=e.clientY,p=ce(),f=!1;l!==i&&(pe(),o=t.scroll,c=t.scrollFn,!0===o&&(o=le(i,!0),l=o));var A=0,h=o;do{var m,g,b,y,_,w,C,x,k,I=h,E=We(I),O=E.top,B=E.bottom,L=E.left,D=E.right,M=E.width,j=E.height;if(m=I.scrollWidth,g=I.scrollHeight,b=Ie(I),x=I.scrollLeft,k=I.scrollTop,I===p?(w=M<m&&("auto"===b.overflowX||"scroll"===b.overflowX||"visible"===b.overflowX),C=j<g&&("auto"===b.overflowY||"scroll"===b.overflowY||"visible"===b.overflowY)):(w=M<m&&("auto"===b.overflowX||"scroll"===b.overflowX),C=j<g&&("auto"===b.overflowY||"scroll"===b.overflowY)),y=w&&(ee(D-u)<=r&&x+M<m)-(ee(L-u)<=r&&!!x),_=C&&(ee(B-d)<=r&&k+j<g)-(ee(O-d)<=r&&!!k),!T[A])for(var P=0;P<=A;P++)T[P]||(T[P]={});T[A].vx==y&&T[A].vy==_&&T[A].el===I||(T[A].el=I,T[A].vx=y,T[A].vy=_,clearInterval(T[A].pid),!I||0==y&&0==_||(f=!0,T[A].pid=setInterval(function(){a&&0===this.layer&&(_e.active._emulateDragOver(!0),_e.active._onTouchMove(v,!0));var t=T[this.layer].vy?T[this.layer].vy*s:0,i=T[this.layer].vx?T[this.layer].vx*s:0;"function"===typeof c&&"continue"!==c.call(n,i,t,e,v,T[this.layer].el)||ue(T[this.layer].el,i,t)}.bind({layer:A}),24))),A++}while(t.bubbleScroll&&h!==p&&(h=le(h,!1)));S=f}}),30),pe=function(){T.forEach((function(e){clearInterval(e.pid)})),T=[]},fe=function(e){function t(e,i){return function(a,n,r,s){var o=a.options.group.name&&n.options.group.name&&a.options.group.name===n.options.group.name;if(null==e&&(i||o))return!0;if(null==e||!1===e)return!1;if(i&&"clone"===e)return e;if("function"===typeof e)return t(e(a,n,r,s),i)(a,n,r,s);var l=(i?a:n).options.group.name;return!0===e||"string"===typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var i={},a=e.group;a&&"object"==typeof a||(a={name:a}),i.name=a.name,i.checkPull=t(a.pull,!0),i.checkPut=t(a.put),i.revertClone=a.revertClone,e.group=i},Ae=function(t){e&&e.parentNode&&e.parentNode[N]&&e.parentNode[N]._computeIsAligned(t)},he=function(e,t){var i=t;while(!i[N])i=i.parentNode;return e===i},me=function(e,t,i){var a=e.parentNode;while(a&&!a[N])a=a.parentNode;a&&a[N][i](Ge(t,{artificialBubble:!0}))},ge=function(){!X&&i&&Ie(i,"display","none")},ve=function(){!X&&i&&Ie(i,"display","")};P.addEventListener("click",(function(e){if(E)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),E=!1,!1}),!0);var be,ye=function(t){if(t=t.touches?t.touches[0]:t,e){var i=re(t.clientX,t.clientY);i&&i[N]._onDragOver({clientX:t.clientX,clientY:t.clientY,target:i,rootEl:i})}};function _e(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be HTMLElement, not "+{}.toString.call(e);this.el=e,this.options=t=Ge({},t),e[N]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0,draggable:/[uo]l/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return ne(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,touchStartThreshold:U(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==_e.supportPointer&&("PointerEvent"in window||window.navigator&&"msPointerEnabled"in window.navigator),emptyInsertThreshold:5};for(var a in i)!(a in t)&&(t[a]=i[a]);for(var n in fe(t),this)"_"===n.charAt(0)&&"function"===typeof this[n]&&(this[n]=this[n].bind(this));this.nativeDraggable=!t.forceFallback&&W,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?ke(e,"pointerdown",this._onTapStart):(ke(e,"mousedown",this._onTapStart),ke(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(ke(e,"dragover",this),ke(e,"dragenter",this)),O.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[])}function we(e,t,i,a){if(e){i=i||P;do{if(null!=t&&(">"===t[0]&&e.parentNode===i&&He(e,t.substring(1))||He(e,t))||a&&e===i)return e;if(e===i)break}while(e=Ce(e))}return null}function Ce(e){return e.host&&e!==P&&e.host.nodeType?e.host:e.parentNode}function xe(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function ke(e,t,i){e.addEventListener(t,i,H)}function Te(e,t,i){e.removeEventListener(t,i,H)}function Se(e,t,i){if(e&&t)if(e.classList)e.classList[i?"add":"remove"](t);else{var a=(" "+e.className+" ").replace(M," ").replace(" "+t+" "," ");e.className=(a+(i?" "+t:"")).replace(M," ")}}function Ie(e,t,i){var a=e&&e.style;if(a){if(void 0===i)return P.defaultView&&P.defaultView.getComputedStyle?i=P.defaultView.getComputedStyle(e,""):e.currentStyle&&(i=e.currentStyle),void 0===t?i:i[t];t in a||-1!==t.indexOf("webkit")||(t="-webkit-"+t),a[t]=i+("string"===typeof i?"":"px")}}function Ee(e){var t="";do{var i=Ie(e,"transform");i&&"none"!==i&&(t=i+" "+t)}while(e=e.parentNode);return window.DOMMatrix?new DOMMatrix(t):window.WebKitCSSMatrix?new WebKitCSSMatrix(t):window.CSSMatrix?new CSSMatrix(t):void 0}function Oe(e,t,i){if(e){var a=e.getElementsByTagName(t),n=0,r=a.length;if(i)for(;n<r;n++)i(a[n],n);return a}return[]}function Be(e,t,i,n,r,s,o,l,c){e=e||t[N];var u,d=e.options,p="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||z||q?(u=P.createEvent("Event"),u.initEvent(i,!0,!0)):u=new CustomEvent(i,{bubbles:!0,cancelable:!0}),u.to=r||t,u.from=s||t,u.item=n||t,u.clone=a,u.oldIndex=o,u.newIndex=l,u.originalEvent=c,u.pullMode=f?f.lastPutMode:void 0,t&&t.dispatchEvent(u),d[p]&&d[p].call(e,u)}function Le(e,t,i,a,n,r,s,o){var l,c,u=e[N],d=u.options.onMove;return!window.CustomEvent||z||q?(l=P.createEvent("Event"),l.initEvent("move",!0,!0)):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=i,l.draggedRect=a,l.related=n||t,l.relatedRect=r||We(t),l.willInsertAfter=o,l.originalEvent=s,e.dispatchEvent(l),d&&(c=d.call(u,l,s)),c}function De(e){e.draggable=!1}function Me(){J=!1}function Ne(t,a,n){var r=0,s=0,o=t.children;while(s<o.length){if("none"!==o[s].style.display&&o[s]!==i&&o[s]!==e&&we(o[s],n.draggable,t,!1)){if(r===a)return o[s];r++}s++}return null}function je(e){var t=e.lastElementChild;while(t&&(t===i||"none"===t.style.display))t=t.previousElementSibling;return t||null}function Pe(e,t,i){var a=We(je(i)),n="vertical"===t?e.clientY:e.clientX,r="vertical"===t?e.clientX:e.clientY,s="vertical"===t?a.bottom:a.right,o="vertical"===t?a.left:a.top,l="vertical"===t?a.right:a.bottom,c=10;return"vertical"===t?r>l+c||r<=l&&n>s&&r>=o:n>s&&r>o||n<=s&&r>l+c}function Ue(t,i,a,n,r,s,o){var l=We(i),c="vertical"===a?t.clientY:t.clientX,u="vertical"===a?l.height:l.width,d="vertical"===a?l.top:l.left,p="vertical"===a?l.bottom:l.right,f=We(e),A=!1;if(!s)if(o&&C<u*n)if(!B&&(1===_?c>d+u*r/2:c<p-u*r/2)&&(B=!0),B)A=!0;else{"vertical"===a?f.top:f.left,"vertical"===a?f.bottom:f.right;if(1===_?c<d+C:c>p-C)return-1*_}else if(c>d+u*(1-n)/2&&c<p-u*(1-n)/2)return Fe(i);return A=A||s,A&&(c<d+u*r/2||c>p-u*r/2)?c>d+u/2?1:-1:0}function Fe(t){var i=Qe(e),a=Qe(t);return i<a?1:-1}function Re(e){var t=e.tagName+e.className+e.src+e.href+e.textContent,i=t.length,a=0;while(i--)a+=t.charCodeAt(i);return a.toString(36)}function Qe(e,t){var i=0;if(!e||!e.parentNode)return-1;while(e&&(e=e.previousElementSibling))"TEMPLATE"!==e.nodeName.toUpperCase()&&e!==a&&i++;return i}function He(e,t){if(e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(i){return!1}return!1}function ze(e,t){return function(){if(!be){var i=arguments,a=this;be=F((function(){1===i.length?e.call(a,i[0]):e.apply(a,i),be=void 0}),t)}}}function qe(){clearTimeout(be),be=void 0}function Ge(e,t){if(e&&t)for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function $e(e){return Q&&Q.dom?Q.dom(e).cloneNode(!0):R?R(e).clone(!0)[0]:e.cloneNode(!0)}function Ve(e){ae.length=0;var t=e.getElementsByTagName("input"),i=t.length;while(i--){var a=t[i];a.checked&&ae.push(a)}}function Ye(e){return F(e,0)}function Ke(e){return clearTimeout(e)}function We(e,t,i,a){if(e.getBoundingClientRect||e===j){var n,r,s,o,l,c,u;if(e!==j&&e!==ce()?(n=e.getBoundingClientRect(),r=n.top,s=n.left,o=n.bottom,l=n.right,c=n.height,u=n.width):(r=0,s=0,o=window.innerHeight,l=window.innerWidth,c=window.innerHeight,u=window.innerWidth),a&&e!==j&&(i=i||e.parentNode,!z))do{if(i&&i.getBoundingClientRect&&"none"!==Ie(i,"transform")){var d=i.getBoundingClientRect();r-=d.top+U(Ie(i,"border-top-width")),s-=d.left+U(Ie(i,"border-left-width")),o=r+n.height,l=s+n.width;break}}while(i=i.parentNode);if(t&&e!==j){var p=Ee(i||e),f=p&&p.a,A=p&&p.d;p&&(r/=A,s/=f,u/=f,c/=A,o=r+c,l=s+u)}return{top:r,left:s,bottom:o,right:l,width:u,height:c}}}function Xe(e,t){var i=le(e,!0),a=We(e)[t];while(i){var n,r=We(i)[t];if(n="top"===t||"left"===t?a>=r:a<=r,!n)return i;if(i===ce())break;i=le(i,!1)}return!1}function Je(e){var t=0,i=0,a=ce();if(e)do{var n=Ee(e),r=n.a,s=n.d;t+=e.scrollLeft*r,i+=e.scrollTop*s}while(e!==a&&(e=e.parentNode));return[t,i]}return ke(P,"dragover",ye),ke(P,"mousemove",ye),ke(P,"touchmove",ye),_e.prototype={constructor:_e,_computeIsAligned:function(t){var a;if(i&&!X?(ge(),a=P.elementFromPoint(t.clientX,t.clientY),ve()):a=t.target,a=we(a,this.options.draggable,this.el,!1),!Z&&e&&e.parentNode===this.el){for(var n=this.el.children,r=0;r<n.length;r++)we(n[r],this.options.draggable,this.el,!1)&&n[r]!==a&&(n[r].sortableMouseAligned=se(t.clientX,t.clientY,n[r],this._getDirection(t,null),this.options));we(a,this.options.draggable,this.el,!0)||(y=null),Z=!0,F((function(){Z=!1}),30)}},_getDirection:function(t,i){return"function"===typeof this.options.direction?this.options.direction.call(this,t,i,e):this.options.direction},_onTapStart:function(t){if(t.cancelable){var i,a=this,n=this.el,r=this.options,o=r.preventOnFilter,l=t.type,c=t.touches&&t.touches[0],u=(c||t).target,d=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||u,p=r.filter;if(Ve(n),(!z||t.artificialBubble||he(n,u))&&!e&&!(/mousedown|pointerdown/.test(l)&&0!==t.button||r.disabled)&&!d.isContentEditable)if(u=we(u,r.draggable,n,!1),u){if(s!==u){if(i=Qe(u,r.draggable),"function"===typeof p){if(p.call(this,t,u,this))return Be(a,d,"filter",u,n,n,i),void(o&&t.cancelable&&t.preventDefault())}else if(p&&(p=p.split(",").some((function(e){if(e=we(d,e.trim(),n,!1),e)return Be(a,e,"filter",u,n,n,i),!0})),p))return void(o&&t.cancelable&&t.preventDefault());r.handle&&!we(d,r.handle,n,!1)||this._prepareDragStart(t,c,u,i)}}else z&&me(n,t,"_onTapStart")}},_handleAutoScroll:function(t,i){if(e&&this.options.scroll){var a=t.clientX,n=t.clientY,r=P.elementFromPoint(a,n),s=this;if(i||q||z||$){de(t,s.options,r,i);var o=le(r,!0);!S||A&&a===h&&n===m||(A&&clearInterval(A),A=setInterval((function(){if(e){var r=le(P.elementFromPoint(a,n),!0);r!==o&&(o=r,pe(),de(t,s.options,o,i))}}),10),h=a,m=n)}else{if(!s.options.bubbleScroll||le(r,!0)===ce())return void pe();de(t,s.options,le(r,!1),!1)}}},_prepareDragStart:function(i,a,o,l){var c,d=this,f=d.el,A=d.options,h=f.ownerDocument;o&&!e&&o.parentNode===f&&(n=f,e=o,t=e.parentNode,r=e.nextSibling,s=o,p=A.group,u=l,g={target:e,clientX:(a||i).clientX,clientY:(a||i).clientY},this._lastX=(a||i).clientX,this._lastY=(a||i).clientY,e.style["will-change"]="all",e.style.transition="",e.style.transform="",c=function(){d._disableDelayedDragEvents(),!G&&d.nativeDraggable&&(e.draggable=!0),d._triggerDragStart(i,a),Be(d,n,"choose",e,n,n,u),Se(e,A.chosenClass,!0)},A.ignore.split(",").forEach((function(t){Oe(e,t.trim(),De)})),A.supportPointer?ke(h,"pointerup",d._onDrop):(ke(h,"mouseup",d._onDrop),ke(h,"touchend",d._onDrop),ke(h,"touchcancel",d._onDrop)),G&&this.nativeDraggable&&(this.options.touchStartThreshold=4,e.draggable=!0),!A.delay||this.nativeDraggable&&(q||z)?c():(ke(h,"mouseup",d._disableDelayedDrag),ke(h,"touchend",d._disableDelayedDrag),ke(h,"touchcancel",d._disableDelayedDrag),ke(h,"mousemove",d._delayedDragTouchMoveHandler),ke(h,"touchmove",d._delayedDragTouchMoveHandler),A.supportPointer&&ke(h,"pointermove",d._delayedDragTouchMoveHandler),d._dragStartTimer=F(c,A.delay)))},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;ie(ee(t.clientX-this._lastX),ee(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){e&&De(e),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Te(e,"mouseup",this._disableDelayedDrag),Te(e,"touchend",this._disableDelayedDrag),Te(e,"touchcancel",this._disableDelayedDrag),Te(e,"mousemove",this._delayedDragTouchMoveHandler),Te(e,"touchmove",this._delayedDragTouchMoveHandler),Te(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,i){i=i||("touch"==t.pointerType?t:null),!this.nativeDraggable||i?this.options.supportPointer?ke(P,"pointermove",this._onTouchMove):ke(P,i?"touchmove":"mousemove",this._onTouchMove):(ke(e,"dragend",this),ke(n,"dragstart",this._onDragStart));try{P.selection?Ye((function(){P.selection.empty()})):window.getSelection().removeAllRanges()}catch(a){}},_dragStarted:function(t,i){if(I=!1,n&&e){this.nativeDraggable&&(ke(P,"dragover",this._handleAutoScroll),ke(P,"dragover",Ae));var a=this.options;!t&&Se(e,a.dragClass,!1),Se(e,a.ghostClass,!0),Ie(e,"transform",""),_e.active=this,t&&this._appendGhost(),Be(this,n,"start",e,n,n,u,void 0,i)}else this._nulling()},_emulateDragOver:function(t){if(v){if(this._lastX===v.clientX&&this._lastY===v.clientY&&!t)return;this._lastX=v.clientX,this._lastY=v.clientY,ge();var i=P.elementFromPoint(v.clientX,v.clientY),a=i;while(i&&i.shadowRoot)i=i.shadowRoot.elementFromPoint(v.clientX,v.clientY),a=i;if(a)do{var n;if(a[N])if(n=a[N]._onDragOver({clientX:v.clientX,clientY:v.clientY,target:i,rootEl:a}),n&&!this.options.dragoverBubble)break;i=a}while(a=a.parentNode);e.parentNode[N]._computeIsAligned(v),ve()}},_onTouchMove:function(e,t){if(g){var a=this.options,n=a.fallbackTolerance,r=a.fallbackOffset,s=e.touches?e.touches[0]:e,o=i&&Ee(i),l=i&&o&&o.a,c=i&&o&&o.d,u=Y&&x&&Je(x),d=(s.clientX-g.clientX+r.x)/(l||1)+(u?u[0]-D[0]:0)/(l||1),p=(s.clientY-g.clientY+r.y)/(c||1)+(u?u[1]-D[1]:0)/(c||1),f=e.touches?"translate3d("+d+"px,"+p+"px,0)":"translate("+d+"px,"+p+"px)";if(!_e.active&&!I){if(n&&te(ee(s.clientX-this._lastX),ee(s.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}!t&&this._handleAutoScroll(s,!0),b=!0,v=s,Ie(i,"webkitTransform",f),Ie(i,"mozTransform",f),Ie(i,"msTransform",f),Ie(i,"transform",f),e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!i){var t=this.options.fallbackOnBody?P.body:n,a=We(e,!0,t,!Y),r=(Ie(e),this.options);if(Y){x=t;while("static"===Ie(x,"position")&&"none"===Ie(x,"transform")&&x!==P)x=x.parentNode;if(x!==P){var s=We(x,!0);a.top-=s.top,a.left-=s.left}x!==P.body&&x!==P.documentElement?(x===P&&(x=ce()),a.top+=x.scrollTop,a.left+=x.scrollLeft):x=ce(),D=Je(x)}i=e.cloneNode(!0),Se(i,r.ghostClass,!1),Se(i,r.fallbackClass,!0),Se(i,r.dragClass,!0),Ie(i,"box-sizing","border-box"),Ie(i,"margin",0),Ie(i,"top",a.top),Ie(i,"left",a.left),Ie(i,"width",a.width),Ie(i,"height",a.height),Ie(i,"opacity","0.8"),Ie(i,"position",Y?"absolute":"fixed"),Ie(i,"zIndex","100000"),Ie(i,"pointerEvents","none"),t.appendChild(i)}},_onDragStart:function(t,i){var r=this,s=t.dataTransfer,o=r.options;a=$e(e),a.draggable=!1,a.style["will-change"]="",this._hideClone(),Se(a,r.options.chosenClass,!1),r._cloneId=Ye((function(){r.options.removeCloneOnHide||n.insertBefore(a,e),Be(r,n,"clone",e)})),!i&&Se(e,o.dragClass,!0),i?(E=!0,r._loopId=setInterval(r._emulateDragOver,50)):(Te(P,"mouseup",r._onDrop),Te(P,"touchend",r._onDrop),Te(P,"touchcancel",r._onDrop),s&&(s.effectAllowed="move",o.setData&&o.setData.call(r,s,e)),ke(P,"drop",r),Ie(e,"transform","translateZ(0)")),I=!0,r._dragStartId=Ye(r._dragStarted.bind(r,i,t)),ke(P,"selectstart",r),$&&Ie(P.body,"user-select","none")},_onDragOver:function(i){var a,s,o,l=this.el,c=i.target,d=this.options,A=d.group,h=_e.active,m=p===A,g=d.sort,v=this;if(!J&&(!z||i.rootEl||i.artificialBubble||he(l,c))){if(void 0!==i.preventDefault&&i.cancelable&&i.preventDefault(),b=!0,c=we(c,d.draggable,l,!0),we(i.target,null,e,!0)||c.animated)return q(!1);if(c!==e&&(E=!1),h&&!d.disabled&&(m?g||(o=!n.contains(e)):f===this||(this.lastPutMode=p.checkPull(this,h,e,i))&&A.checkPut(this,h,e,i))){var x=this._getDirection(i,c);if(a=We(e),o)return this._hideClone(),t=n,r?n.insertBefore(e,r):n.appendChild(e),q(!0);var T=je(l);if(!T||Pe(i,x,l)&&!T.animated){if(T&&l===i.target&&(c=T),c&&(s=We(c)),m?h._hideClone():h._showClone(this),!1!==Le(n,l,e,a,c,s,i,!!c))return l.appendChild(e),t=l,k=null,G(),q(!0)}else if(c&&c!==e&&c.parentNode===l){var S,I=0,O=c.sortableMouseAligned,D=e.parentNode!==l,M="vertical"===x?"top":"left",j=Xe(c,"top")||Xe(e,"top"),U=j?j.scrollTop:void 0;if(y!==c&&(w=null,S=We(c)[M],B=!1),oe(e,c,x)&&O||D||j||d.invertSwap||"insert"===w||"swap"===w?("swap"!==w&&(L=d.invertSwap||D),I=Ue(i,c,x,d.swapThreshold,null==d.invertedSwapThreshold?d.swapThreshold:d.invertedSwapThreshold,L,y===c),w="swap"):(I=Fe(c),w="insert"),0===I)return q(!1);k=null,y=c,_=I,s=We(c);var R=c.nextElementSibling,Q=!1;Q=1===I;var H=Le(n,l,e,a,c,s,i,Q);if(!1!==H)return 1!==H&&-1!==H||(Q=1===H),J=!0,F(Me,30),m?h._hideClone():h._showClone(this),Q&&!R?l.appendChild(e):c.parentNode.insertBefore(e,Q?R:c),j&&ue(j,0,U-j.scrollTop),t=e.parentNode,void 0===S||L||(C=ee(S-We(c)[M])),G(),q(!0)}if(l.contains(e))return q(!1)}return z&&!i.rootEl&&me(l,i,"_onDragOver"),!1}function q(t){return t&&(m?h._hideClone():h._showClone(v),h&&(Se(e,f?f.options.ghostClass:h.options.ghostClass,!1),Se(e,d.ghostClass,!0)),f!==v&&v!==_e.active?f=v:v===_e.active&&(f=null),a&&v._animate(a,e),c&&s&&v._animate(s,c)),(c===e&&!e.animated||c===l&&!c.animated)&&(y=null),d.dragoverBubble||i.rootEl||c===P||(v._handleAutoScroll(i),e.parentNode[N]._computeIsAligned(i)),!d.dragoverBubble&&i.stopPropagation&&i.stopPropagation(),!0}function G(){Be(v,n,"change",c,l,n,u,Qe(e,d.draggable),i)}},_animate:function(t,i){var a=this.options.animation;if(a){var n=We(i);if(i===e&&(k=n),1===t.nodeType&&(t=We(t)),t.left+t.width/2!==n.left+n.width/2||t.top+t.height/2!==n.top+n.height/2){var r=Ee(this.el),s=r&&r.a,o=r&&r.d;Ie(i,"transition","none"),Ie(i,"transform","translate3d("+(t.left-n.left)/(s||1)+"px,"+(t.top-n.top)/(o||1)+"px,0)"),i.offsetWidth,Ie(i,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),Ie(i,"transform","translate3d(0,0,0)")}"number"===typeof i.animated&&clearTimeout(i.animated),i.animated=F((function(){Ie(i,"transition",""),Ie(i,"transform",""),i.animated=!1}),a)}},_offUpEvents:function(){var e=this.el.ownerDocument;Te(P,"touchmove",this._onTouchMove),Te(P,"pointermove",this._onTouchMove),Te(e,"mouseup",this._onDrop),Te(e,"touchend",this._onDrop),Te(e,"pointerup",this._onDrop),Te(e,"touchcancel",this._onDrop),Te(P,"selectstart",this)},_onDrop:function(s){var o=this.el,l=this.options;I=!1,S=!1,L=!1,B=!1,clearInterval(this._loopId),clearInterval(A),pe(),qe(),clearTimeout(this._dragStartTimer),Ke(this._cloneId),Ke(this._dragStartId),Te(P,"mousemove",this._onTouchMove),this.nativeDraggable&&(Te(P,"drop",this),Te(o,"dragstart",this._onDragStart),Te(P,"dragover",this._handleAutoScroll),Te(P,"dragover",Ae)),$&&Ie(P.body,"user-select",""),this._offUpEvents(),s&&(b&&(s.cancelable&&s.preventDefault(),!l.dropBubble&&s.stopPropagation()),i&&i.parentNode&&i.parentNode.removeChild(i),(n===t||f&&"clone"!==f.lastPutMode)&&a&&a.parentNode&&a.parentNode.removeChild(a),e&&(this.nativeDraggable&&Te(e,"dragend",this),De(e),e.style["will-change"]="",Se(e,f?f.options.ghostClass:this.options.ghostClass,!1),Se(e,this.options.chosenClass,!1),Be(this,n,"unchoose",e,t,n,u,null,s),n!==t?(d=Qe(e,l.draggable),d>=0&&(Be(null,t,"add",e,t,n,u,d,s),Be(this,n,"remove",e,t,n,u,d,s),Be(null,t,"sort",e,t,n,u,d,s),Be(this,n,"sort",e,t,n,u,d,s)),f&&f.save()):e.nextSibling!==r&&(d=Qe(e,l.draggable),d>=0&&(Be(this,n,"update",e,t,n,u,d,s),Be(this,n,"sort",e,t,n,u,d,s))),_e.active&&(null!=d&&-1!==d||(d=u),Be(this,n,"end",e,t,n,u,d,s),this.save()))),this._nulling()},_nulling:function(){n=e=t=i=r=a=s=o=l=T.length=A=h=m=g=v=b=d=u=y=_=k=f=p=_e.active=null,ae.forEach((function(e){e.checked=!0})),ae.length=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":e&&(this._onDragOver(t),xe(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var e,t=[],i=this.el.children,a=0,n=i.length,r=this.options;a<n;a++)e=i[a],we(e,r.draggable,this.el,!1)&&t.push(e.getAttribute(r.dataIdAttr)||Re(e));return t},sort:function(e){var t={},i=this.el;this.toArray().forEach((function(e,a){var n=i.children[a];we(n,this.options.draggable,i,!1)&&(t[e]=n)}),this),e.forEach((function(e){t[e]&&(i.removeChild(t[e]),i.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return we(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var i=this.options;if(void 0===t)return i[e];i[e]=t,"group"===e&&fe(i)},destroy:function(){var e=this.el;e[N]=null,Te(e,"mousedown",this._onTapStart),Te(e,"touchstart",this._onTapStart),Te(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Te(e,"dragover",this),Te(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),O.splice(O.indexOf(this.el),1),this.el=e=null},_hideClone:function(){a.cloneHidden||(Ie(a,"display","none"),a.cloneHidden=!0,a.parentNode&&this.options.removeCloneOnHide&&a.parentNode.removeChild(a))},_showClone:function(t){"clone"===t.lastPutMode?a.cloneHidden&&(n.contains(e)&&!this.options.group.revertClone?n.insertBefore(a,e):r?n.insertBefore(a,r):n.appendChild(a),this.options.group.revertClone&&this._animate(e,a),Ie(a,"display",""),a.cloneHidden=!1):this._hideClone()}},ke(P,"touchmove",(function(e){(_e.active||I)&&e.cancelable&&e.preventDefault()})),_e.utils={on:ke,off:Te,css:Ie,find:Oe,is:function(e,t){return!!we(e,t,e,!1)},extend:Ge,throttle:ze,closest:we,toggleClass:Se,clone:$e,index:Qe,nextTick:Ye,cancelNextTick:Ke,detectDirection:ne,getChild:Ne},_e.create=function(e,t){return new _e(e,t)},_e.version="1.8.4",_e}))},5469:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{height:"100%"}},[i("ConfigOffAccount",{ref:"offAccountConfigDialog",attrs:{visible:e.configDialogVisible,"get-off-account":e.getOffAccountConfig,"off-account-list":e.offAccountList},on:{"update:visible":function(t){e.configDialogVisible=t}}}),i("RightContainer",{scopedSlots:e._u([{key:"data-stat",fn:function(){return[i("div",[i("el-input",{staticStyle:{width:"240px"},attrs:{"prefix-icon":"el-icon-search",placeholder:"请输入雷达/链接标题,回车搜索"},on:{input:e.clear},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSearch(t)}},model:{value:e.query.searchTitle,callback:function(t){e.$set(e.query,"searchTitle",t)},expression:"query.searchTitle"}})],1)]},proxy:!0},{key:"operate-btn",fn:function(){return[i("div",{staticClass:"radar-handle-wrap"},[e.isDKCorp?i("div",{staticClass:"config-offAccount",on:{click:e.openConfig}},[i("i",{staticClass:"property-setting el-icon-setting",staticStyle:{"font-size":"20px",color:"#6DB4AB","margin-right":"4px"}}),e.hasOffAccount?i("span",{staticClass:"success-span"},[e._v("公众号: "+e._s(e.offAccountInfo.nickName))]):i("span",{staticClass:"error-span"},[e._v("请配置公众号")])]):e._e(),e.roleKey?i("div",{staticClass:"operate-btn"},[i("el-button",{staticClass:"btn-reset",on:{click:e.batchDel}},[e._v("批量删除")]),i("el-button",{attrs:{type:"primary"},on:{click:e.addRadarDrawer}},[e._v("添加雷达")])],1):e._e()])]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"tableRef",attrs:{data:e.list,"default-sort":e.defaultSort},on:{"selection-change":e.handleSelectionChange,"sort-change":e.changeTableSort}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.list.length}})],1),i("el-table-column",{attrs:{type:"selection",width:"55"}}),i("el-table-column",{attrs:{prop:"codeUrl",label:"雷达内容",align:"center",width:"250"},scopedSlots:e._u([{key:"default",fn:function(e){var t=e.row;return[i("RadarLink",{attrs:{"class-name":"link-preview","link-title":t.weRadarUrl.title,"cover-url":t.weRadarUrl.coverUrl,content:t.weRadarUrl.content}})]}}])}),i("el-table-column",{attrs:{prop:"radarTitle",label:"雷达标题",align:"center"}}),i("el-table-column",{attrs:{label:"客户标签",prop:"radarTagList",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",{staticClass:"tagList"},e._l(e.dealTagList(a.radarTagList),(function(t){return i("el-tag",{key:t.tagId,staticClass:"mb5",attrs:{type:"info"}},[e._v(e._s(t.tagName))])})),1)]}}])}),i("el-table-column",{attrs:{align:"center",prop:"clickNum",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",[e._v(e._s(a.clickNum))])]}},{key:"header",fn:function(){return[i("div",[i("span",[e._v("总点击人数")]),i("el-popover",{attrs:{placement:"top-start",trigger:"hover","popper-class":"tip-popover",content:"已对客户去重"}},[i("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"14px"},attrs:{slot:"reference"},slot:"reference"})])],1)]},proxy:!0}])}),i("el-table-column",{attrs:{label:"创建人",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",[i("span",[e._v(e._s(a.createName))]),i("div",{staticStyle:{"font-size":"12px"}},[e._v(" "+e._s(a.departmentName)+" ")])])]}}])}),i("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"createTime",width:"180"}}),i("el-table-column",{attrs:{label:"操作",align:"center",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",[i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.goRoute(a)}}},[e._v("详情")]),i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.openVisible("customChannel",a.radarId)}}},[e._v("自定义渠道")])],1),i("div",[e.hasRole?i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.openVisible("edit",a.radarId)}}},[e._v("编辑")]):e._e(),e.hasRole?i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.handleDelete(a.radarId)}}},[e._v("删除")]):e._e()],1)]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.list.length>0,expression:"list.length > 0"}],attrs:{total:e.total,limit:e.query.pageSize,disabled:e.loading,page:e.query.pageNum,"select-data-len":e.ids.length},on:{"update:limit":function(t){return e.$set(e.query,"pageSize",t)},"update:page":function(t){return e.$set(e.query,"pageNum",t)},pagination:function(t){return e.getRadaList()}}})]},proxy:!0}])}),i("AddRararDrawer",{ref:"addRadarDrawer",attrs:{"active-radar":e.activeRadar,"radar-id":e.radarId,visible:e.addRadarDrawerVisible},on:{"update:visible":function(t){e.addRadarDrawerVisible=t},close:e.closeAddRadarDrawer,getRadaList:e.getRadaList}}),i("CustomChannel",{attrs:{"role-key":e.roleKey,visible:e.customChannelVisible,"radar-id":e.radarId},on:{"update:visible":function(t){e.customChannelVisible=t}}})],1)},n=[],r=i("5530"),s=i("c7eb"),o=i("1da1"),l=(i("4de4"),i("d81d"),i("b0c0"),i("a9e3"),i("b64b"),i("d3b7"),i("b66d")),c=i("dd70"),u=i("689a"),d=i("e350"),p=i("f9d1"),f=i("e77d"),A=i("61d6"),h=i("941a"),m=i("ed08"),g=i("7d3b"),v=i("951d"),b={name:"RadarList",components:{RightContainer:l["a"],EmptyDefaultIcon:f["a"],AddRararDrawer:A["default"],CustomChannel:h["default"],RadarLink:g["default"],ConfigOffAccount:v["default"]},props:{activeRadar:{type:Number,default:c["Qc"]["enterprise"]},roleKey:{type:Boolean,default:!0}},data:function(){return{RADAR_TYPE:c["Qc"],query:{searchTitle:"",pageNum:c["M"],pageSize:c["Ic"],enableSort:null},loading:!1,list:[],total:0,ids:[],addRadarDrawerVisible:!1,customChannelVisible:!1,radarId:"",tipDrawer:!1,hasRole:this.roleKey,offAccountList:[],hasOffAccount:!1,offAccountInfo:void 0,configDialogVisible:!1,handleHintBtnLoading:!1,defaultSort:{prop:"clickNum",order:null}}},computed:{isDKCorp:function(){return this.$store.state.serverInfo.dkCorp},dealTagList:function(){return function(e){return e&&e.filter((function(e){return null!==e}))||[]}}},watch:{activeRadar:function(){this.getRadaList(!0)},roleKey:function(e){this.hasRole=e},configDialogVisible:function(e,t){e&&(this.getAllOffAccountConfig(),this.$refs.offAccountConfigDialog.setInitAppId())}},created:function(){this.init()},methods:{openConfig:function(){this.configDialogVisible=!0},changeTableSort:function(e){this.query.pageNum=c["M"],this.query.enableSort=c["fd"][e.order],this.getRadaList()},init:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$store.getters.saveCondition&&Object.keys(e.$store.getters.searchQuery[e.$route.name]||{}).length&&(e.query=e.$store.getters.searchQuery[e.$route.name],e.defaultSort.order=void 0===e.query.enableSort?null:e.query.enableSort?"ascending":"descending"),t.next=3,e.getRadaList();case 3:e.getAllOffAccountConfig(),e.getOffAccountConfig();case 5:case"end":return t.stop()}}),t)})))()},getAllOffAccountConfig:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(u["a"])();case 2:i=t.sent,e.offAccountList=i.data;case 4:case"end":return t.stop()}}),t)})))()},getOffAccountConfig:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(p["m"])();case 2:i=t.sent,e.hasOffAccount=!!i.data,e.hasOffAccount&&(e.offAccountInfo=i.data);case 5:case"end":return t.stop()}}),t)})))()},getRadaList:function(e){var t=this;return Object(o["a"])(Object(s["a"])().mark((function i(){var a,n,o;return Object(s["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return e&&(t.query=t.$options.data().query,null===(a=t.$refs)||void 0===a||null===(a=a.tableRef)||void 0===a||a.clearSort()),n=Object(r["a"])(Object(r["a"])({},t.query),{},{type:t.activeRadar}),t.loading=!0,i.prev=3,i.next=6,Object(p["k"])(n);case 6:return o=i.sent,t.list=o.rows,t.loading=!1,t.total=o.total,i.abrupt("return",o.rows);case 13:return i.prev=13,i.t0=i["catch"](3),t.loading=!1,i.abrupt("return",[]);case 17:case"end":return i.stop()}}),i,null,[[3,13]])})))()},onSearch:function(){this.query.pageNum=c["M"],this.getRadaList()},clear:function(e){e||(this.query.pageNum=c["M"],this.getRadaList())},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.radarId}))},addRadarDrawer:function(){var e;this.radarId="",(this.isDKCorp?this.hasOffAccount:null!==(e=this.offAccountList)&&void 0!==e&&e.length)?this.addRadarDrawerVisible=!0:this.openHandleHint()},openHandleHint:function(){var e=this;this.confirmModal({msg:"您还未配置公众号,需进行公众号配置后方可使用雷达功能。",confirmButtonText:"去配置"},(function(){Object(d["a"])(["system:offAccount:list"])?e.$router.push({path:"/system/configCenter/offAccount"}):e.msgError("暂无权限,需联系管理员进行公众号授权")}))},closeAddRadarDrawer:function(){this.addRadarDrawerVisible=!1},openVisible:function(e,t){this.radarId=t,this["edit"===e?"addRadarDrawerVisible":"customChannelVisible"]=!0},handleDelete:function(e){this.delRadar({idList:[e]})},batchDel:function(){this.ids.length<=0?this.msgWarn("请至少选择一个雷达"):this.delRadar({idList:this.ids})},delRadar:function(e){var t=this;this.confirmModal({msg:"删除后,员工不可继续使用该雷达链接,之前的统计数据也将被删除并不可恢复,是否继续?"},Object(o["a"])(Object(s["a"])().mark((function i(){return Object(s["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:Object(p["d"])(e).then((function(){t.getRadaList()}));case 1:case"end":return i.stop()}}),i)}))))},goRoute:function(e){this.$store.commit("SET_SEARCH_QUERY",{pageName:this.$route.name,query:this.query}),window.sessionStorage.setItem("radarActive",this.activeRadar),Object(m["l"])(this.$router,"radarDetail",{},{id:e.radarId})}}},y=b,_=(i("68d3"),i("2877")),w=Object(_["a"])(y,a,n,!1,null,"e84381c6",null);t["default"]=w.exports},"54ae":function(e,t,i){},"54f4":function(e,t,i){"use strict";i.r(t),i.d(t,"addConversionCodeActive",(function(){return s})),i.d(t,"getConversionCodeActiveList",(function(){return o})),i.d(t,"getConversionCodeActiveDetail",(function(){return l})),i.d(t,"deleteConversionCodeActive",(function(){return c})),i.d(t,"updateConversionCodeActive",(function(){return u})),i.d(t,"addConversionCode",(function(){return d})),i.d(t,"getConversionCodeList",(function(){return p})),i.d(t,"deleteConversionCode",(function(){return f})),i.d(t,"updateConversionCode",(function(){return A})),i.d(t,"importRedeemCode",(function(){return h})),i.d(t,"codeReceivePeople",(function(){return m}));var a=i("b775"),n=window.CONFIG.services.wecom+"/redeem",r=window.CONFIG.services.wecom+"/redeemcode";function s(e){return Object(a["a"])({url:n+"/add",method:"post",data:e})}function o(e){return Object(a["a"])({url:n+"/list",method:"get",params:e})}function l(e){return Object(a["a"])({url:n+"/get",method:"get",params:e})}function c(e){return Object(a["a"])({url:n+"/remove",method:"delete",data:e})}function u(e){return Object(a["a"])({url:n+"/update",method:"put",data:e})}function d(e){return Object(a["a"])({url:r+"/add",method:"post",data:e})}function p(e){return Object(a["a"])({url:r+"/list",method:"get",params:e})}function f(e){return Object(a["a"])({url:r+"/remove",method:"delete",data:e})}function A(e){return Object(a["a"])({url:r+"/update",method:"put",data:e})}function h(e,t){return Object(a["a"])({url:r+"/importRedeemCode/"+e,method:"post",data:t})}function m(e){return Object(a["a"])({url:r+"/customerList",method:"get",params:e})}},"54f7":function(e,t,i){},5504:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",e._b({attrs:{title:e.isEditModal?"编辑客户群":"添加客户群","append-to-body":"","close-on-click-modal":!1},on:{close:e.onClose}},"el-dialog",e.$attrs,!1),[i("div",{staticClass:"customer-group-dialog"},[i("el-form",{ref:"form",attrs:{model:e.form,"label-width":"120px",rules:e.rules}},[i("el-form-item",{attrs:{label:"客户群",prop:"chatId"}},[e.form.chatId?[i("el-button",{attrs:{type:"primary",disabled:e.isEditModal},on:{click:e.openSelectGroup}},[e._v(" "+e._s(e.form.chatGroupName)+" ")])]:[i("el-button",{attrs:{icon:"el-icon-plus"},on:{click:e.openSelectGroup}},[e._v(" 选择客户群 ")])]],2),i("el-form-item",{attrs:{label:"二维码",prop:"actualGroupQrCode"}},[e.form.actualGroupQrCode?i("div",{staticClass:"image-uploader",on:{click:e.onUpload}},[i("img",{staticClass:"upload-img",attrs:{src:e.form.actualGroupQrCode}})]):i("div",{staticClass:"image-uploader",on:{click:e.onUpload}},[i("i",{staticClass:"el-icon-plus uploader-icon"}),i("div",{staticClass:"tip"},[e._v("注:只能上传jpg/png格式图片,且不超过2M")])]),i("div",[i("el-button",{attrs:{type:"text"},on:{click:function(t){e.exampleDialog=!0}}},[e._v(" 如何获取二维码 ")])],1)]),i("el-form-item",{attrs:{label:"有效期",prop:"effectTime"}},[i("el-date-picker",{attrs:{type:"datetime",placeholder:"请选择日期时间","value-format":"yyyy-MM-dd HH:mm",format:"yyyy-MM-dd HH:mm","picker-options":e.datePickerOptions},model:{value:e.form.effectTime,callback:function(t){e.$set(e.form,"effectTime",t)},expression:"form.effectTime"}}),i("div",{staticClass:"tip"},[e._v(" 设置二维码的有效期,到期将不分配给客户,并提醒创建人更新群二维码 ")])],1),i("el-form-item",{attrs:{label:"进群上限",prop:"scanCodeTimesLimit"}},[i("el-input",{staticStyle:{width:"115px"},attrs:{placeholder:"请输入次数",type:"Number",min:0,max:e.MAX_NUMBER},model:{value:e.form.scanCodeTimesLimit,callback:function(t){e.$set(e.form,"scanCodeTimesLimit",t)},expression:"form.scanCodeTimesLimit"}}),i("div",{staticClass:"tip"},[e._v(" 当扫码进群人数达到上限,将自动分配下一个客户群 ")])],1)],1),i("Customer",{ref:"customer",attrs:{visible:e.customerDialog,"append-to-body":"","close-on-click-modal":!1,"customer-group-id":e.form.chatId,"cancel-click":e.cancelClick,"ok-click":e.handleSelectCustomerGroup,"customer-group-list":e.customerGroupList},on:{"update:visible":function(t){e.customerDialog=t},callback:e.getSelectCustomerGroup}})],1),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.onClose}},[e._v(" 取消 ")]),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v(" 确定 ")])],1),i("TailoringImg",{ref:"customerTailoringImg",staticClass:"customer-group-tailor",attrs:{title:"上传二维码",visible:e.tailorVisible},on:{"update:visible":function(t){e.tailorVisible=t},handleUpload:e.handleUpload}}),i("GetQrcodeDemo",{attrs:{visible:e.exampleDialog,title:"如何获取二维码"},on:{"update:visible":function(t){e.exampleDialog=t}}})],1)},n=[],r=i("c7eb"),s=i("1da1"),o=i("5530"),l=i("2909"),c=(i("a9e3"),i("3f68")),u=i("af31"),d=i("2934"),p=i("0dc7"),f=100,A=200,h={name:"",components:{Customer:c["default"],TailoringImg:u["a"],GetQrcodeDemo:p["default"]},props:{customerGroupList:{type:Array,default:function(){return[]}},isEditModal:{type:Boolean,default:!1},editIndex:{type:Number,default:-1}},data:function(){var e=function(e,t,i){return t&&t>A?i(new Error("进群上限不能大于"+A)):t&&t<=0?i(new Error("进群人数不能小于0")):void i()};return{MAX_NUMBER:A,form:{actualGroupQrCode:"",effectTime:"",scanCodeTimesLimit:f,chatId:"",chatGroupName:""},rules:{actualGroupQrCode:[{required:!0,message:"请上传二维码",trigger:"change"}],chatId:[{required:!0,message:"请选择客户群",trigger:"change"}],scanCodeTimesLimit:[{validator:e,trigger:"blur"}],tailorVisible:!1},customerDialog:!1,exampleDialog:!1,editedRealCodeId:null,datePickerOptions:{disabledDate:function(e){return e.getTime()<=Date.now()-864e5}},tailorVisible:!1}},created:function(){},mounted:function(){},methods:{initFormData:function(){this.form={actualGroupQrCode:"",effectTime:"",scanCodeTimesLimit:f,chatId:"",chatGroupName:""}},cancelClick:function(){this.customerDialog=!1},handleSelectCustomerGroup:function(){this.$refs.customer.submit()},getSelectCustomerGroup:function(e){var t;this.form.chatId=e?e.chatId:"",this.form.chatGroupName=e?e.groupName:"",this.customerDialog=!1,null===(t=this.$refs.form)||void 0===t||t.validateField("chatId")},openSelectGroup:function(){this.customerDialog=!0},handleSubmit:function(){var e=this;this.$refs["form"].validate((function(t){if(t){var i=Object(l["a"])(e.customerGroupList);e.isEditModal?i[e.editIndex]=e.form:i.push(Object(o["a"])({},e.form)),e.$emit("update:customerGroupList",i),e.initFormData(),e.onClose()}}))},onClose:function(){this.$emit("update:visible",!1)},onUpload:function(e){this.tailorVisible=!0},handleUpload:function(e){var t=this;return Object(s["a"])(Object(r["a"])().mark((function i(){var a,n,s;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,Object(d["d"])(e);case 2:a=i.sent,a&&(t.tailorVisible=!1,s=a.data,t.$refs.customerTailoringImg.visible=!1,t.form.actualGroupQrCode=null===s||void 0===s?void 0:s.url,null===(n=t.$refs.form)||void 0===n||n.validateField("actualGroupQrCode"));case 4:case"end":return i.stop()}}),i)})))()}}},m=h,g=(i("89da"),i("c25c"),i("2877")),v=Object(g["a"])(m,a,n,!1,null,"240f844e",null);t["default"]=v.exports},5519:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var a=i("dd70"),n=function(e){switch(e.welcomeMsgType){case a["xc"]:return{welcomeMsg:e.welcomeMsg||"",materialList:(null===e||void 0===e?void 0:e.materialList)||[]};case a["a"]:return r(e)}},r=function(e){var t,i,a;return e.codeSuccessMsg||null!==(t=e.codeSuccessMaterialList)&&void 0!==t&&t.length?{welcomeMsg:e.codeSuccessMsg||"",materialList:(null===e||void 0===e?void 0:e.codeSuccessMaterialList)||[]}:e.codeFailMsg||null!==(i=e.codeFailMaterialList)&&void 0!==i&&i.length?{welcomeMsg:e.codeFailMsg||"",materialList:(null===e||void 0===e?void 0:e.codeFailMaterialList)||[]}:e.codeRepeatMsg||null!==(a=e.codeRepeatMaterialList)&&void 0!==a&&a.length?{welcomeMsg:e.codeRepeatMsg||"",materialList:(null===e||void 0===e?void 0:e.codeRepeatMaterialList)||[]}:void 0}},"556d":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",e._l(e.options,(function(t,a){return i("div",{key:a,staticClass:"item"},[i("div",{staticClass:"item-name"},[e._v(e._s(t.label))]),i("div",{staticClass:"item-components"},e._l(t.components,(function(t){return i("div",{key:t.type,staticClass:"item-components-detail",on:{click:function(i){return e.addComponents(t)}}},[i("div",{staticClass:"item-components-name"},[i("svg",{class:"icon-"+t.iconName,staticStyle:{"margin-right":"5px"},attrs:{width:14,height:14}},[i("use",{attrs:{href:"#icon-"+t.iconName}})]),e._v(" "+e._s(t.title)+" ")])])})),0)])})),0)},n=[],r=i("5530"),s=(i("dca8"),i("ec26")),o=i("dd70"),l=i("81f6"),c={data:function(){return{options:Object.freeze([{label:"选项",components:[{title:"单选",type:o["Rc"],iconName:"danxuan"},{title:"多选",type:o["p"],iconName:"duoxuan"},{title:"下拉框",type:o["Zc"],iconName:"xialakuang"}]},{label:"填空",components:[{title:"单行文本",type:o["Fc"],iconName:"danhangwenben"},{title:"多行文本",type:o["Sb"],iconName:"duohangwenben"},{title:"日期时间",type:o["H"],iconName:"riqi"}]},{label:"满意度",components:[{title:"评分",type:o["Wc"],iconName:"pingfen"},{title:"NPS",type:o["Bc"],iconName:"NPS"}]},{label:"展示",components:[{title:"文字",type:o["nd"],iconName:"a-wenzi"},{title:"图片",type:o["Bb"],iconName:"tupian"},{title:"轮播图",type:o["m"],iconName:"lunbotuguanli"}]}])}},methods:{addComponents:function(e){l["a"].$emit("chooseComponents",Object(r["a"])(Object(r["a"])({},e),{},{id:Object(s["a"])()}))}}},u=c,d=(i("d7aa"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"5310054e",null);t["default"]=p.exports},5650:function(e,t,i){},5665:function(e,t,i){"use strict";i("9045")},5674:function(e,t,i){},"56ae":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.Pvisible?i("SelectUser",{attrs:{visible:e.Pvisible,title:"选择分配人","is-sigle-select":!0},on:{"update:visible":function(t){e.Pvisible=t},success:e.allocate}}):e._e()},n=[],r=i("5530"),s=(i("d81d"),i("afcf")),o=i("c958"),l={name:"AddMaterialModal",components:{SelectUser:o["a"]},props:{dialogVisibleSelectUser:{type:Boolean,default:!1},currentRows:{type:Array,default:function(){return[]}},getList:{type:Function,default:function(){}},type:{type:String,default:"allocateCustomer"}},data:function(){return{}},computed:{Pvisible:{get:function(){return this.dialogVisibleSelectUser},set:function(e){this.$emit("update:dialogVisibleSelectUser",e)}}},watch:{},created:function(){},mounted:function(){},methods:{checkSelected:function(e){return 0===e.length?(this.msgWarn("请选择分配人"),this.Pvisible=!0,!1):!(e.length>1)||(this.msgWarn("只能选择一名分配人"),this.Pvisible=!0,!1)},allocate:function(e){if(this.checkSelected(e)){var t={handoverUserList:this.dealHandoverUserList(),takeoverUserid:e[0].userId,externalUserid:"reAllocateCustomer"===this.type?this.currentRows[0].externalUserid:void 0,chatId:"reAllocateCustomerGroup"===this.type?this.currentRows[0].chatId:void 0};this.handleAllocateUserApi(s["a"],t)}},dealHandoverUserList:function(){return this.currentRows.map((function(e){return Object(r["a"])(Object(r["a"])({},e),{},{department:[]})}))},handleAllocateUserApi:function(e,t){var i=this,a=this.$loading();e(t).then((function(e){var t=Object(r["a"])({},e.data),n="allocateCustomer"===i.type?t.weCustomerFailNum+t.weGroupFailNum||0:t.failNum;n?i.$alert('有 <span style="color: #e74e59">'.concat(n,"</span> 个客户或客户群分配失败,可前往”已分配的离职员工“查看分配详情。"),"分配结果",{confirmButtonText:"我知道了",type:"warning",dangerouslyUseHTMLString:!0}):i.$alert("分配成功","分配结果",{confirmButtonText:"我知道了",type:"warning"}),i.getList(1),a.close()})).catch((function(){a.close()}))}}},c=l,u=i("2877"),d=Object(u["a"])(c,a,n,!1,null,"f175ba98",null);t["default"]=d.exports},"579e":function(e,t,i){"use strict";i("e2b8")},"580c":function(e,t,i){},"582b":function(e,t,i){},5884:function(e,t,i){"use strict";i("8a2a")},"588b":function(e,t,i){e.exports=i.p+"static/img/mobile-step-2-1.0644bd6e.png"},5987:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-dropdown",e._b({on:{command:e.handleAddVerbalTrick}},"el-dropdown",e.$attrs,!1),[i("el-button",{class:e.btnClass,attrs:{type:e.btnType}},[e._v(e._s(e.btnText)),e.showArrow?i("i",{staticClass:"el-icon-arrow-down el-icon--right"}):e._e()]),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e.canSelectMaterial?i("el-dropdown-item",{attrs:{command:e.MATERIAL_SELECT}},[e._v("素材库选取")]):e._e(),i("el-dropdown-item",{attrs:{command:e.MEDIA_TYPE_TEXT}},[e._v("文本")]),i("el-dropdown-item",{attrs:{command:e.MEDIA_TYPE_POSTER}},[e._v("图片")]),i("el-dropdown-item",{attrs:{command:e.MEDIA_TYPE_VIDEO}},[e._v("视频")]),i("el-dropdown-item",{attrs:{command:e.MEDIA_TYPE_FILE}},[e._v("文件")]),i("el-dropdown-item",{attrs:{command:e.MEDIA_TYPE_IMGLINK}},[e._v("链接")]),i("el-dropdown-item",{attrs:{command:e.MEDIA_TYPE_MINIAPP}},[e._v("小程序")])],1)],1),i("MaterialListDrawer",{ref:"materialDrawer",attrs:{"drawer-title":"选择素材",visible:e.dialogVisibleSelectMaterial,list:e.materialList,"get-list":e.getMaterialList,"poster-tool-list":["preview"],"imglink-tool-list":["preview"],"video-tool-list":["preview"],"file-tool-list":["download"],"miniapp-tool-list":[],query:e.query,"other-query":e.otherQuery,"radar-query":e.radarQuery,type:"select",total:e.total,"is-loading":e.isLoadingMaterial,"material-type":e.materialType,"show-expire-time":!1},on:{"update:visible":function(t){e.dialogVisibleSelectMaterial=t},"update:query":function(t){e.query=t},"update:radarQuery":function(t){e.radarQuery=t},"update:radar-query":function(t){e.radarQuery=t},"update:materialType":function(t){e.materialType=t},"update:material-type":function(t){e.materialType=t},submit:e.handleAddApendixList}})],1)},n=[],r=i("ade3"),s=i("5530"),o=i("2909"),l=(i("d81d"),i("a9e3"),i("d3b7"),i("25f0"),i("dd70")),c=i("e8fd"),u=i("9094"),d=i("f9d1"),p=i("c7ea"),f="materialSelect",A={name:"",components:{MaterialListDrawer:c["a"]},props:{formData:{type:Object,default:function(){}},btnText:{type:String,default:"添加话术"},btnType:{type:String,default:""},btnClass:{type:String,default:""},canSelectMaterial:{type:Boolean,default:!1},showArrow:{type:Boolean,default:!1},materialField:{type:String,default:"weWordsDetailList"}},data:function(){return{MEDIA_TYPE_TEXT:l["fc"],MEDIA_TYPE_POSTER:l["cc"],MEDIA_TYPE_VIDEO:l["gc"],MEDIA_TYPE_FILE:l["Zb"],MEDIA_TYPE_IMGLINK:l["ac"],MEDIA_TYPE_MINIAPP:l["bc"],MEDIA_TYPE_RADARLINK:l["dc"],MATERIAL_SELECT:f,RADAR_TYPE:l["Qc"],dialogVisibleSelectMaterial:!1,isLoadingMaterial:!0,materialList:[],total:0,query:{pageNum:1,pageSize:l["Ic"],categoryId:"",search:"",mediaType:l["cc"],isExpire:!1},materialType:l["cc"],appendixList:[],MEDIA_TYPE:l["Xb"],radarQuery:{type:this.$store.state.user.isSuperAdmin?l["Qc"]["enterprise"]:"",pageNum:1,pageSize:l["Ic"],searchTitle:""},otherQuery:{pageNum:1,pageSize:l["Ic"]}}},created:function(){},mounted:function(){},methods:{handleAddVerbalTrick:function(e){var t=this.materialField,i=Object(o["a"])(this.formData[t]);switch(e){case l["fc"]:i.push({mediaType:e,content:""});break;case l["cc"]:case l["gc"]:case l["Zb"]:i.push({mediaType:e,url:"",title:""});break;case l["ac"]:case l["bc"]:i.push({mediaType:e,url:"",title:"",content:"",coverUrl:"",isDefined:l["L"],appid:"",accountOriginalId:""});break;case f:var a;(null===(a=this.materialList)||void 0===a||!a.length)&&this.getMaterialList({mediaType:this.materialType}),this.materialType=l["cc"],this.dialogVisibleSelectMaterial=!0}this.$emit("update:formData",Object(s["a"])(Object(s["a"])({},this.formData),{},Object(r["a"])({},t,Object(o["a"])(i))))},getMaterialList:function(e,t){var i=this;switch(this.isLoadingMaterial=!0,e.mediaType){case l["ec"]:var a={corpFormGroup:l["Ib"]["enterprise"],departmentFormGroup:l["Ib"]["department"],selfFormGroup:l["Ib"]["personal"]},n="",r=this.otherQuery,o=r.pageNum,c=r.pageSize,f=r.formName,A=r.belongGroup,h=r.departmentId;1!==A.length&&(n=A[A.length-1]);var m=a[A&&A[0]],g=Object(s["a"])(Object(s["a"])({pageNum:o,pageSize:c,sourceType:m,formName:f,groupId:n},m===l["Ib"]["department"]&&{departmentId:h}),{},{enableFlag:!0});Object(p["o"])(g).then((function(e){i.total=e.total,i.isLoadingMaterial=!1;var t=e.rows.map((function(e){var t,a=Object(s["a"])(Object(s["a"])({},e),{},{extraId:e.id,mediaType:+l["ec"],categoryId:(null===(t=i.$store.state.materialInfo)||void 0===t||null===(t=t.categoryInfo[+l["ec"]])||void 0===t?void 0:t.id)||""});return delete a.id,a}));i.materialList=t})).finally((function(){t&&t()}));break;case l["dc"]:Object(d["k"])(this.radarQuery).then((function(e){var t=e.rows.map((function(e){var t;return{title:e.weRadarUrl.title,content:e.weRadarUrl.content,coverUrl:e.weRadarUrl.coverUrl,url:e.weRadarUrl.url,radarTitle:e.radarTitle,extraId:e.radarId,materialUrl:e.weRadarUrl.url,materialName:e.weRadarUrl.title,radarTagList:e.radarTagList,mediaType:+l["dc"],categoryId:(null===(t=i.$store.state.materialInfo)||void 0===t||null===(t=t.categoryInfo[+l["dc"]])||void 0===t?void 0:t.id)||""}}));i.materialList=t,i.total=Number(e.total),i.isLoadingMaterial=!1})).finally((function(){t&&t()}));break;default:Object(u["e"])(Object(s["a"])(Object(s["a"])({},this.query),e)).then((function(e){i.materialList=e.rows,i.total=Number(e.total),i.isLoadingMaterial=!1})).finally((function(){t&&t()}));break}},handleAddApendixList:function(e){var t=this.materialField,i=Object(o["a"])(this.formData[t]);e.map((function(e){var t,a=null===(t=e.mediaType)||void 0===t?void 0:t.toString();switch(a){case l["cc"]:case l["gc"]:case l["Zb"]:i.push({mediaType:a,url:e.materialUrl,title:e.materialName,content:e.content});break;case l["ac"]:case l["bc"]:i.push({mediaType:a,url:e.materialUrl,title:e.materialName,content:e.content,coverUrl:e.coverUrl,isDefined:l["L"],appid:e.appid,accountOriginalId:e.accountOriginalId});break;case l["ec"]:case l["dc"]:i.push(Object(s["a"])({mediaType:a},e));break}})),this.$emit("update:formData",Object(s["a"])(Object(s["a"])({},this.formData),{},Object(r["a"])({},t,Object(o["a"])(i))))}}},h=A,m=i("2877"),g=Object(m["a"])(h,a,n,!1,null,null,null);t["a"]=g.exports},"59ec":function(e,t,i){"use strict";i("3ce9")},"5b0b":function(e,t,i){e.exports=i.p+"static/img/appid-demo-3-2.85e31a9e.svg"},"5c33":function(e,t,i){},"5c69":function(e,t,i){var a=i("087d"),n=i("0621");function r(e,t,i,s,o){var l=-1,c=e.length;i||(i=n),o||(o=[]);while(++l<c){var u=e[l];t>0&&i(u)?t>1?r(u,t-1,i,s,o):a(o,u):s||(o[o.length]=u)}return o}e.exports=r},"5c6e":function(e,t,i){},"5c6f":function(e,t,i){"use strict";i("d5d1")},"5c85":function(e,t,i){"use strict";i("8743")},"5c90":function(e,t,i){e.exports=i.p+"static/img/receive-step1-2.7081d3f6.jpg"},"5c95":function(e,t,i){e.exports=i.p+"static/img/appid-demo-1-4.e5ca645d.png"},"5cae":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"label-detail-page"},[i("ReturnPage"),i("div",{staticClass:"label-detail-content mt10"},[i("el-tabs",{staticClass:"label-header-container",model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"规则详情",name:e.TAG_DETAIL["rule_detail"]}},[i("LabelDetailTab")],1),i("el-tab-pane",{attrs:{label:"客户记录",name:e.TAG_DETAIL["customer_record"],lazy:!0}},[i("CustomerRecord")],1)],1)],1)],1)},n=[],r=(i("a9e3"),i("aa50")),s=i("af2d"),o=i("f54b"),l={rule_detail:"0",customer_record:"1"},c={name:"",components:{ReturnPage:r["a"],LabelDetailTab:s["default"],CustomerRecord:o["default"]},provide:function(){return{labelRuleInfo:this.labelRuleInfo}},data:function(){return{TAG_DETAIL:l,activeName:l["rule_detail"],labelRuleInfo:{labelType:null,ruleId:null}}},computed:{},created:function(){this.labelRuleInfo.labelType=Number(this.$route.query.labelType),this.labelRuleInfo.ruleId=this.$route.query.id,this.activeName=window.sessionStorage.getItem("DetailActive")||l["rule_detail"],window.sessionStorage.removeItem("DetailActive")},methods:{}},u=c,d=(i("eb6bb"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"033a4099",null);t["default"]=p.exports},"5cca":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"sop-detail-page"},[i("ReturnPage"),i("div",{staticClass:"sop-detail-content mt10"},[i("el-tabs",{staticClass:"sop-header-container",model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:e.sopInfo.sopType===e.SOP_TYPE["groupCalendar"]?"日历详情":"SOP详情",name:"0"}},[i("SOPDetailTab",{attrs:{"sop-detail":e.sopDetail,"sop-type":e.sopInfo.sopType}})],1),i("el-tab-pane",{attrs:{label:"执行记录",name:"1",lazy:!0}},[i("PerformRecord",{attrs:{"sop-id":e.sopDetail.id,"sop-type":e.sopInfo.sopType}})],1)],1)],1)],1)},n=[],r=(i("a9e3"),i("aa50")),s=i("5e4d"),o=i("6442"),l=i("9815"),c=i("dd70"),u={name:"",components:{ReturnPage:r["a"],SOPDetailTab:s["default"],PerformRecord:o["default"]},props:{},provide:function(){return{sopInfo:this.sopInfo}},data:function(){return{activeName:"0",sopInfo:{sopType:null},sopId:null,sopDetail:{},SOP_TYPE:c["ed"]}},created:function(){var e=this.$route.query;this.sopInfo.sopType=Number(e.sopType),this.sopId=e.id,this.getSopDetail(e.id)},mounted:function(){},methods:{getSopDetail:function(e){var t=this;Object(l["h"])({sopId:e}).then((function(e){t.sopDetail=e.data}))}}},d=u,p=(i("67fb"),i("2877")),f=Object(p["a"])(d,a,n,!1,null,"3765ebec",null);t["default"]=f.exports},"5d43":function(e,t,i){"use strict";i("79ae")},"5d6d":function(e,t,i){},"5d8c":function(e,t,i){"use strict";i("a9da")},"5db3":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"value-info"},[e._v(" 将#兑换码#插入到欢迎语中,系统将在发送欢迎语时,将该值替换为兑换活动下可用的兑换码 ")]),i("div",{staticClass:"send-list timeline-list"},[i("el-timeline",{staticClass:"timeline-div"},e._l(e.sendList,(function(t,a){return i("el-timeline-item",{key:a,attrs:{placement:"top"},scopedSlots:e._u([{key:"dot",fn:function(){return[i("div",{staticClass:"step-dot"},[e._v(e._s(a+1))])]},proxy:!0}],null,!0)},[i("div",{staticClass:"timeline-name"},[e._v(" "+e._s(t.value)+" ")]),i("div",[t.index===e.redeemCodeMsgType["success"]?i("div",[i("el-input",{staticClass:"welcome-textarea",attrs:{type:"textarea",maxlength:e.welMsgMaxlength,"show-word-limit":"",autosize:{minRows:10,maxRows:50},placeholder:e.successPlaceholder},model:{value:e.msg.codeSuccessMsg,callback:function(t){e.$set(e.msg,"codeSuccessMsg",t)},expression:"msg.codeSuccessMsg"}})],1):e._e(),t.index===e.redeemCodeMsgType["fail"]?i("div",[i("el-input",{staticClass:"welcome-textarea",attrs:{type:"textarea",maxlength:e.welMsgMaxlength,"show-word-limit":"",autosize:{minRows:10,maxRows:50},placeholder:e.failPlaceholder},model:{value:e.msg.codeFailMsg,callback:function(t){e.$set(e.msg,"codeFailMsg",t)},expression:"msg.codeFailMsg"}})],1):e._e(),t.index===e.redeemCodeMsgType["repeat"]?i("div",[i("el-input",{staticClass:"welcome-textarea",attrs:{type:"textarea",maxlength:e.welMsgMaxlength,"show-word-limit":"",autosize:{minRows:10,maxRows:50},placeholder:e.repeatPlaceholder},model:{value:e.msg.codeRepeatMsg,callback:function(t){e.$set(e.msg,"codeRepeatMsg",t)},expression:"msg.codeRepeatMsg"}})],1):e._e(),i("div",{staticClass:"quick-actions"},[i("span",{on:{click:function(t){return e.handeAddTextClick(a,"#客户昵称#")}}},[e._v("#客户昵称#")]),i("span",{on:{click:function(t){return e.handeAddTextClick(a,"#员工姓名#")}}},[e._v("#员工姓名#")]),t.index===e.redeemCodeMsgType["success"]?i("span",{on:{click:function(t){return e.handeAddTextClick(a,"#兑换码#")}}},[e._v("#兑换码#")]):e._e()]),t.index===e.redeemCodeMsgType["success"]?i("div",[i("AddAppendixBtn",{attrs:{"sub-title":e.successInfo.title,"limit-select-length":e.successInfo.limitSelectLength,"max-appendix-num":e.MAX_APPENDIX_NUM,"appendix-list":e.materialList.codeSuccessMaterialList},on:{"update:appendixList":function(t){return e.$set(e.materialList,"codeSuccessMaterialList",t)},"update:appendix-list":function(t){return e.$set(e.materialList,"codeSuccessMaterialList",t)}}})],1):e._e(),t.index===e.redeemCodeMsgType["fail"]?i("div",[i("AddAppendixBtn",{attrs:{"sub-title":e.failInfo.title,"limit-select-length":e.failInfo.limitSelectLength,"max-appendix-num":e.MAX_APPENDIX_NUM,"appendix-list":e.materialList.codeFailMaterialList},on:{"update:appendixList":function(t){return e.$set(e.materialList,"codeFailMaterialList",t)},"update:appendix-list":function(t){return e.$set(e.materialList,"codeFailMaterialList",t)}}})],1):e._e(),t.index===e.redeemCodeMsgType["repeat"]?i("div",[i("AddAppendixBtn",{attrs:{"sub-title":e.repeatInfo.title,"limit-select-length":e.repeatInfo.limitSelectLength,"max-appendix-num":e.MAX_APPENDIX_NUM,"appendix-list":e.materialList.codeRepeatMaterialList},on:{"update:appendixList":function(t){return e.$set(e.materialList,"codeRepeatMaterialList",t)},"update:appendix-list":function(t){return e.$set(e.materialList,"codeRepeatMaterialList",t)}}})],1):e._e()])])})),1)],1)])},n=[],r=(i("99af"),i("38cf"),i("4887")),s=i("dd70"),o=2e3,l={title:"已添加 0 个附件,还可选择 9 个",limitSelectLength:s["Tb"]},c={components:{AddAppendixBtn:r["a"]},props:{codeMsg:{type:Object,default:function(){}},codeMaterialList:{type:Object,default:function(){}},type:{type:String,default:""}},data:function(){return{MAX_APPENDIX_NUM:s["Tb"],redeemCodeMsgType:s["Dd"],msg:this.codeMsg,materialList:this.codeMaterialList,welMsgMaxlength:o,sendList:[{index:s["Dd"]["success"],value:"所选兑换活动下有可使用的兑换码时,回复以下内容"},{index:s["Dd"]["fail"],value:"所选兑换活动下没有可使用的兑换码,如兑换码已被使用完、兑换码已过期、活动已过期、兑换活动被删除, 回复以下内容"},{index:s["Dd"]["repeat"],value:"若客户已领取过所选兑换活动下的兑换码,回复以下内容"}],successInfo:l,failInfo:l,repeatInfo:l,successPlaceholder:"",failPlaceholder:"",repeatPlaceholder:""}},watch:{msg:{handler:function(e){this.$emit("update:codeMsg",e)},deep:!0,immediate:!0},materialList:{handler:function(e){this.successInfo=this.delselectInfo(e["codeSuccessMaterialList"].length),this.failInfo=this.delselectInfo(e["codeFailMaterialList"].length),this.repeatInfo=this.delselectInfo(e["codeRepeatMaterialList"].length)},deep:!0,immediate:!0}},mounted:function(){switch(this.type){case"staffAdd":this.successPlaceholder="请输入欢迎语,例:您好,我是#员工姓名#,前往自动售卖机输入兑换码:#兑换码#,即可以最低折扣购买百事可乐中瓶",this.failPlaceholder="请输入欢迎语,例:您好,我是您的专属顾问#员工姓名#,折扣活动已过期,您可以点击我的头像,了解更多关于我们的信息",this.repeatPlaceholder="请输入欢迎语,例:您好,我是#员工姓名#,您之前已参与过该活动,不可再次参与,下次有优惠活动告知您~";break;case"customerAdd":this.successPlaceholder="客户添加员工后,将收到加群引导语,例:您好,我是#员工姓名#,前往自动售卖机输入兑换码:#兑换码#,即可以最低折扣购买百事可乐中瓶,进入专属福利群,可享更多优惠",this.failPlaceholder="客户添加员工后,将收到加群引导语,例:您好,我是您的专属顾问#员工姓名#,折扣活动已过期,您可以进入专属福利群,参与更多折扣活动",this.repeatPlaceholder="客户添加员工后,将收到加群引导语,例:您好,我是#员工姓名#,您之前已参与过该活动,不可再次参与,可进群了解其他优惠活动~"}},methods:{delselectInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return{title:"已添加 ".concat(e," 个附件,还可选择 ").concat(s["Tb"]-e," 个"),limitSelectLength:s["Tb"]-e}},handeAddTextClick:function(e,t){switch(e+1){case s["Dd"]["success"]:this.msg.codeSuccessMsg+=t;break;case s["Dd"]["fail"]:this.msg.codeFailMsg+=t;break;case s["Dd"]["repeat"]:this.msg.codeRepeatMsg+=t;break}}}},u=c,d=(i("fee3"),i("f38b"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"bddd1184",null);t["a"]=p.exports},"5de1":function(e,t,i){},"5e0a":function(e,t,i){"use strict";i("bc43")},"5e4d":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"sop-detail-tab"},[i("el-card",{staticClass:"mb10 detail-card-div",attrs:{shadow:"hover"}},[i("svg",{staticClass:"icon-task",attrs:{width:100,height:100}},[i("use",{attrs:{href:"#icon-task"}})]),i("div",{staticClass:"info-div ml15"},[i("div",{staticClass:"title mb15"},[e._v(" "+e._s(e.sopDetail.name)+" ")]),i("div",{staticClass:"creator-div aic"},[i("div",{staticClass:"task-item aic"},[i("div",{staticClass:"label"},[e._v("创建时间:")]),i("span",[e._v(e._s(e.sopDetail.createTime))])]),i("div",{staticClass:"task-item aic"},[i("div",{staticClass:"label"},[e._v("创建人:")]),i("span",[e._v(e._s(e.sopDetail.createUserName))])])]),e.sopType===e.SOP_TYPE["cycle"]?i("div",{staticClass:"cycle-div aic"},[e.sopDetail.sopFilter?i("div",{staticClass:"mt5 task-item flex"},[i("div",{staticClass:"label"},[e._v("循环周期:")]),i("span",[e._v(e._s(e.sopDetail.sopFilter.cycleStart)+" ~ "+e._s(e.sopDetail.sopFilter.cycleEnd))])]):e._e()]):e._e(),i("div",{staticClass:"mt5 aic task-item"},[i("div",{staticClass:"label"},[e._v(e._s(e.dealUserTitle()))]),[e.SOP_TYPE["birthday"],e.SOP_TYPE["newCustomer"]].includes(e.sopType)?i("div",[i("div",{staticClass:"look-more theme-text-color",on:{click:function(t){e.openCustomerScopeModel=!0}}},[e._v(" 查看 ")])]):[e.userOrGroupList&&e.userOrGroupList.length||e.getDepartmentList&&e.getDepartmentList.length?i("div",{staticClass:"message-content"},[e.isGroup?[e._l(e.userOrGroupList.slice(0,e.maxShowLength),(function(t,a){return i("span",{key:a},[e._v(" "+e._s(e.dealName(e.userOrGroupList,t,a)))])})),e.userOrGroupList&&e.userOrGroupList.length>e.maxShowLength?i("span",[e._v(" 等"+e._s(e.userOrGroupList.length)+e._s(e.isGroup?"个群":"个")+" "),i("span",{staticClass:"look-more ml10 theme-text-color",on:{click:e.onShowMore}},[e._v("查看")])]):e._e()]:i("div",{staticClass:"aic"},[i("ByLengthUserShow",{attrs:{"max-length":e.maxShowLength,"user-list":e.userOrGroupList.filter((function(e){return e.userId})),"department-list":e.getDepartmentList.filter((function(e){return e.departmentId})),usename:e.isActivity?"name":"userName"}}),e.userAndDetList.length>e.maxShowLength?i("span",[e._v(" 等"+e._s(e.userAndDetList.length)+e._s(e.isGroup?"个群":"个")+" "),i("span",{staticClass:"look-more ml10 theme-text-color",on:{click:e.onShowMore}},[e._v("查看")])]):e._e()],1)],2):e._e()]],2)])]),i("div",{staticClass:"rule-list-container"},[i("div",{staticClass:"rule-list-header mb20 flex"},[i("div",{staticClass:"config-title"},[e._v("SOP规则")]),i("div",[e.sopType===e.SOP_TYPE["groupCalendar"]?i("el-radio-group",{staticClass:"rule-type",attrs:{size:"medium"},model:{value:e.ruleListType,callback:function(t){e.ruleListType=t},expression:"ruleListType"}},[i("el-radio-button",{attrs:{label:"calendar"}},[e._v("日历")]),i("el-radio-button",{attrs:{label:"timeline"}},[e._v("时间轴")])],1):e._e()],1)]),"timeline"===e.ruleListType?i("SOPRuleList",{attrs:{"rule-list":e.ruleList,"sop-type":e.sopType}}):e._e(),"calendar"===e.ruleListType?i("div",{staticClass:"calendar-div"},[i("SopCalendar",{ref:"sopCalendarRef",attrs:{"rule-list":e.ruleList},on:{handleEditCalendarItem:e.handleEditCalendarItem}})],1):e._e()],1),i("CustomerScopeModel",{attrs:{visible:e.openCustomerScopeModel,"sop-detail":e.sopDetail},on:{"update:visible":function(t){e.openCustomerScopeModel=t}}}),i("UseEmployeeModal",{attrs:{title:e.isGroup?"使用群聊":e.isActivity?"客户范围":"使用员工",visible:e.useEmployeeVisible,"user-list":e.userOrGroupList,"department-list":e.getDepartmentList,"is-group":e.isGroup,"sop-type":e.sopType,"is-activity":e.isActivity},on:{"update:visible":function(t){e.useEmployeeVisible=t}}}),i("AddRuleDrawer",{ref:"addRuleDrawer",attrs:{title:"编辑规则",visible:e.addRuleDrawerVisible,"disable-edit":!0},on:{"update:visible":function(t){e.addRuleDrawerVisible=t}}})],1)},n=[],r=i("5530"),s=i("2909"),o=(i("99af"),i("caad"),i("d81d"),i("b0c0"),i("a9e3"),i("2532"),i("4063")),l=i("dd70"),c=i("62d3"),u=i("e393"),d=i("1612"),p=i("e7de"),f=i("b895"),A=5,h=3,m={name:"",components:{SOPRuleList:o["default"],UseEmployeeModal:c["default"],SopCalendar:u["default"],AddRuleDrawer:d["default"],ByLengthUserShow:p["a"],CustomerScopeModel:f["default"]},props:{sopDetail:{type:Object,default:function(){}},sopType:{type:Number,default:null}},data:function(){return{SOP_TYPE:l["ed"],useEmployeeVisible:!1,ruleListType:"timeline",addRuleDrawerVisible:!1,openCustomerScopeModel:!1}},computed:{maxShowLength:function(){return this.isGroup?h:A},isActivity:function(){return this.sopType===l["ed"]["activity"]},isGroup:function(){return[l["ed"]["timing"],l["ed"]["cycle"],l["ed"]["groupCalendar"]].includes(this.sopType)},userAndDetList:function(){return[].concat(Object(s["a"])(this.userOrGroupList),Object(s["a"])(this.getDepartmentList))},ruleList:function(){var e,t=[];return t=null===(e=this.sopDetail.ruleList)||void 0===e?void 0:e.map((function(e){var t={};switch(e.alertType){case l["Tc"]["hourMinute"]:t.hourMinute={hour:e.alertData1,minute:e.alertData2};break;case l["Tc"]["dayTime"]:t.dayTime={day:e.alertData1,time:e.alertData2};break;case l["Tc"]["beforeDayTime"]:t.beforeDayTime={day:e.alertData1,time:e.alertData2};break;case l["Tc"]["everydayTime"]:t.everydayTime=e.alertData2;break;case l["Tc"]["time"]:t.time=e.alertData2;break;case l["Tc"]["everyWeekTime"]:t.everyWeekTime={week:e.alertData1,time:e.alertData2};break;case l["Tc"]["everyMonthTime"]:t.everyMonthTime={month:e.alertData1,time:e.alertData2};break}return Object(r["a"])(Object(r["a"])({},e),{},{alertInfo:t})})),t},userOrGroupList:function(){var e=this.isGroup?this.sopDetail.groupSopList:this.sopDetail.userList;return e&&Object(s["a"])(e)||[]},getDepartmentList:function(){var e=this.sopDetail.departmentList;return e&&Object(s["a"])(e)||[]}},watch:{ruleList:function(e){var t;e&&e.length&&null!==(t=this.$refs)&&void 0!==t&&t.sopCalendarRef&&(this.$refs.sopCalendarRef.calendarVal=new Date(e[0].alertData2))}},created:function(){this.sopType===l["ed"]["groupCalendar"]&&(this.ruleListType="calendar")},mounted:function(){},methods:{onShowMore:function(){this.useEmployeeVisible=!0},dealUserList:function(e){var t=(this.isGroup?e.groupName:e.userName)||"";return this.sopType===l["ed"]["activity"]&&(t=e.name),t},dealName:function(e,t,i){var a=this.isGroup;return"".concat(a?"「":"","\n ").concat(this.dealUserList(t),"\n ").concat(this.dealSplit(e,i),"\n ").concat(a?"」":"")},dealUserTitle:function(){return[l["ed"]["activity"],l["ed"]["birthday"],l["ed"]["newCustomer"]].includes(this.sopType)?"客户范围:":"使用".concat(this.isGroup?"群聊:":"员工:")},dealSplit:function(e,t){return this.isGroup||[e.length-1,this.maxShowLength-1].includes(t)?"":"、"},handleEditCalendarItem:function(e){this.addRuleDrawerVisible=!0,this.$refs["addRuleDrawer"].formData=Object(r["a"])({},e)}}},g=m,v=(i("9223"),i("2877")),b=Object(v["a"])(g,a,n,!1,null,"51f15bac",null);t["default"]=b.exports},"5ea8":function(e,t,i){},"5ec8":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-list-item mb20"},[a("div",{staticClass:"app-banner"},[a("el-image",{attrs:{src:e.appLogo,alt:""}},[a("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[a("el-image",{staticStyle:{border:"1px solid #E7E7E7"},attrs:{src:i("a784")}})],1)])],1),a("div",{staticClass:"app-sketch"},[a("div",[a("div",{staticClass:"app-name"},[a("span",{staticClass:"app-name-text"},[e._v(" "+e._s(e.appName)+" ")]),e.showTip?a("span",{staticClass:"app-name-tip"},[a("i",{staticClass:"el-icon-warning"}),e._v("应用无法使用,请联系企业管理员完善配置")]):e._e()]),a("div",{staticClass:"app-sketch-text"},[e._v(" "+e._s(e.appSketch)+" ")])]),a("div",{staticClass:"app-operation"},[e._t("default")],2)])])},n=[],r={name:"AppInfo",components:{},props:{appName:{type:String,default:""},appSketch:{type:String,default:""},showTip:{type:Boolean,default:!0},appLogo:{type:String,default:""}},data:function(){return{}},computed:{},watch:{},created:function(){},mounted:function(){},methods:{}},s=r,o=(i("90ca"),i("2877")),l=i("cde7"),c=i.n(l),u=Object(o["a"])(s,a,n,!1,null,"42881591",null);"function"===typeof c.a&&c()(u);t["default"]=u.exports},"5edf8":function(e,t,i){},"5ef9":function(e,t,i){},"5efd":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"add-sensitive-word"},[i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.form},nativeOn:{submit:function(e){e.preventDefault()}}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:sensitive:add"],expression:"['wecom:sensitive:add']"}],staticClass:"add-btn",attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.addSensitive}},[e._v("添加敏感词")]),i("el-form-item",[i("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入策略名称/敏感词,回车搜索"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getSettingList(t)}},model:{value:e.form.keyWord,callback:function(t){e.$set(e.form,"keyWord",t)},expression:"form.keyWord"}}),i("el-button",{staticClass:"btn-reset",on:{click:function(t){return e.resetQuery()}}},[e._v("重置")])],1)],1),i("div",{staticClass:"strategy-list"},[i("empty-default-icon",{attrs:{length:e.tableData.length,text:"暂无敏感词","btn-text":"添加敏感词","btn-icon":"el-icon-plus","btn-click":e.addSensitive,"btn-show-condition":{keyWord:e.form.keyWord}}},[i("ul",e._l(e.tableData,(function(t){return i("li",{key:t.id},[i("StrategyItem",{attrs:{item:t,"handle-status-change":e.handleStatusChange,"handle-update":e.handleUpdate,"handle-delete":e.handleDelete}})],1)})),0)])],1),i("el-dialog",{staticClass:"foot-button-reverse-dialog-wrapper",attrs:{title:"modify"===e.submitFlag?"修改敏感词":"添加敏感词",visible:e.open,width:"600px","append-to-body":"","close-on-click-modal":!1},on:{"update:visible":function(t){e.open=t},open:e.openDialog}},[i("el-form",{ref:"addForm",attrs:{model:e.addForm,rules:e.rules,"label-width":"130px"}},[i("el-form-item",{attrs:{label:"敏感词策略名称",prop:"strategyName"}},[i("el-input",{attrs:{placeholder:"例:红包"},model:{value:e.addForm.strategyName,callback:function(t){e.$set(e.addForm,"strategyName",t)},expression:"addForm.strategyName"}})],1),i("el-form-item",{attrs:{label:"敏感词",prop:"patternWords"}},[i("el-input",{attrs:{placeholder:"例:红包,hongbao,hb"},model:{value:e.addForm.patternWords,callback:function(t){e.$set(e.addForm,"patternWords",t)},expression:"addForm.patternWords"}}),i("div",{staticClass:"sub-title"},[e._v("敏感词间用英文逗号隔开")])],1),i("el-form-item",{attrs:{label:"审计范围"}},[i("div",{staticClass:"tag-input",on:{click:e.openAuditUserRange}},[!e.auditUserRange.length||1===e.auditUserRange.length&&e.auditUserRange[0].department===e.SCOPELIST_TYPE.ALL_USER?i("span",{staticClass:"tag-place"},[e._v("请选择"),i("span",{staticClass:"prompt-title"},[e._v("若不选择,则默认全体成员")])]):e._l(e.auditUserRange,(function(e,t){return i("el-tag",{key:t,staticClass:"aic",attrs:{type:"info"}},[i("TagUserShow",{attrs:{name:e.name,"show-icon":!!e.id}})],1)}))],2)]),i("el-form-item",{attrs:{label:"审计人",required:!0,error:e.errorMsg}},[i("div",{staticClass:"tag-input",on:{click:e.openAuditUser}},[e.auditUser.length?e._l(e.auditUser,(function(t,a){return i("el-tag",{key:a,attrs:{type:"info"}},[e._v(e._s(t.name))])})):i("span",{staticClass:"tag-place"},[e._v("请选择"),i("span",{staticClass:"prompt-title"},[e._v("请选择部门负责人")])])],2)]),i("el-form-item",{attrs:{label:"消息通知"}},[i("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.alertFlag,callback:function(t){e.alertFlag=t},expression:"alertFlag"}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:e.addSensitiveForm}},[e._v("确 定")]),i("el-button",{on:{click:function(t){e.open=!1}}},[e._v("取 消")])],1)],1),i("SelectUser",{attrs:{"is-only-leaf":!1,visible:e.dialogVisibleSelectUser,title:"选择审计范围","ignore-permission":!0,"selected-user-list":e.auditUserRange.filter((function(t){return t.department!==e.SCOPELIST_TYPE.ALL_USER}))},on:{"update:visible":function(t){e.dialogVisibleSelectUser=t},success:e.selectedUser}}),i("SelectUser",{attrs:{visible:e.dialogVisibleSelectAuditUser,title:"选择审计人","is-sigle-select":"","ignore-permission":!0,"selected-user-list":e.auditUser},on:{"update:visible":function(t){e.dialogVisibleSelectAuditUser=t},success:e.selectedAuditUser}})],1)},n=[],r=(i("d81d"),i("b0c0"),i("a9e3"),i("d3b7"),i("c677")),s=i("c958"),o=i("dd70"),l=i("bcf9"),c=i("e77d"),u=i("515a"),d="-1",p={components:{SelectUser:s["a"],StrategyItem:l["default"],EmptyDefaultIcon:c["a"],TagUserShow:u["a"]},data:function(){return{form:{pageSize:o["Kc"],pageNum:1,keyWord:""},addForm:{strategyName:"",patternWords:""},alertFlag:0,tableData:[],errorMsg:"",rangeErrorMsg:"",auditUserRange:[],auditUser:[],total:0,dialogVisibleSelectUser:!1,dialogVisibleSelectAuditUser:!1,open:!1,submitFlag:"",rowId:"",rules:{strategyName:[{required:!0,message:"敏感词策略不能为空",trigger:"blur"}],patternWords:[{required:!0,message:"敏感词不能为空",trigger:"blur"}]},loading:!1,SCOPELIST_TYPE:o["Uc"]}},mounted:function(){this.getSettingList()},methods:{getSettingList:function(){var e=this;this.loading=!0,r["g"](this.form).then((function(t){e.tableData=t.rows,e.total=Number(t.total)})).finally((function(){e.loading=!1}))},addSensitiveForm:function(){var e=this;this.$refs.addForm.validate((function(t){if(t){if(0===e.auditUser.length)return void(e.errorMsg="请选择审计人");e.rangeErrorMsg="";var i=e.addForm,a=[];1===e.auditUserRange.length&&e.auditUserRange[0].department===o["Vc"]["all"]?a.push({auditScopeId:d,auditScopeName:"全部员工",scopeType:o["Vc"]["all"]}):e.auditUserRange.map((function(e){var t={scopeType:e.userId?o["Vc"]["personal"]:o["Vc"]["department"],auditScopeId:e.userId||e.id,auditScopeName:e.name};a.push(t)})),0===a.length&&a.push({auditScopeId:d,auditScopeName:"全部员工",scopeType:o["Vc"]["all"]}),i.auditUserScope=a,i.auditUserId=e.auditUser.map((function(e){return e.userId}))+"",i.auditUserName=e.auditUser.map((function(e){return e.name}))+"",i.alertFlag=e.alertFlag,"add"===e.submitFlag&&r["a"](i).then((function(t){e.open=!1,e.getSettingList()})),"modify"===e.submitFlag&&(i.id=e.rowId,r["h"](i).then((function(t){e.open=!1,e.getSettingList()})))}}))},openAuditUserRange:function(){this.dialogVisibleSelectUser=!0},openAuditUser:function(){this.dialogVisibleSelectAuditUser=!0},resetForm:function(){this.addForm={strategyName:"",patternWords:""},this.auditUserRange=[],this.auditUser=[],this.alertFlag=0,this.errorMsg=""},addSensitive:function(){this.submitFlag="add",this.resetForm(),this.open=!0},selectedUser:function(e){this.auditUserRange=e},selectedAuditUser:function(e){this.auditUser=e},handleUpdate:function(e){var t=this;this.submitFlag="modify",this.errorMsg="",this.rowId=e.id,r["d"](this.rowId).then((function(e){t.addForm.strategyName=e.data.strategyName,t.addForm.patternWords=e.data.patternWords,t.auditUser=[{name:e.data.auditUserName,userId:e.data.auditUserId}];var i=[];e.data.auditUserScope.map((function(e){i.push({name:e.auditScopeName,userId:e.scopeType===o["Vc"]["personal"]&&e.auditScopeId,department:e.scopeType,id:e.scopeType===o["Vc"]["department"]&&e.auditScopeId})})),t.auditUserRange=i,t.alertFlag=e.data.alertFlag})),this.open=!0},handleDelete:function(e){var t=this;this.confirmModal({msg:"删除敏感策略“".concat(e.strategyName,"”后不可撤销,是否继续?")},(function(){return r["b"](e.id).then((function(e){t.msgSuccess("删除成功"),t.getSettingList()}))}))},handleStatusChange:function(e){var t=this;r["h"](e).then((function(e){t.getSettingList()}))},onSearch:function(){this.form.pageNum=1,this.getSettingList(1)},resetQuery:function(){this.form={pageSize:o["Kc"],pageNum:1,keyWord:""},this.onSearch()},openDialog:function(){var e;null===(e=this.$refs.addForm)||void 0===e||e.clearValidate()}}},f=p,A=(i("b3a9"),i("2877")),h=Object(A["a"])(f,a,n,!1,null,"14e68170",null);t["default"]=h.exports},"5f1c":function(e,t,i){},"5fe6":function(e,t,i){},"5ff5":function(e,t,i){},6017:function(e,t,i){(function(e,t){(function(e,i){"use strict";if(!e.setImmediate){var a,n=1,r={},s=!1,o=e.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(e);l=l&&l.setTimeout?l:e,"[object process]"==={}.toString.call(e.process)?f():A()?h():e.MessageChannel?m():o&&"onreadystatechange"in o.createElement("script")?g():v(),l.setImmediate=c,l.clearImmediate=u}function c(e){"function"!==typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),i=0;i<t.length;i++)t[i]=arguments[i+1];var s={callback:e,args:t};return r[n]=s,a(n),n++}function u(e){delete r[e]}function d(e){var t=e.callback,a=e.args;switch(a.length){case 0:t();break;case 1:t(a[0]);break;case 2:t(a[0],a[1]);break;case 3:t(a[0],a[1],a[2]);break;default:t.apply(i,a);break}}function p(e){if(s)setTimeout(p,0,e);else{var t=r[e];if(t){s=!0;try{d(t)}finally{u(e),s=!1}}}}function f(){a=function(e){t.nextTick((function(){p(e)}))}}function A(){if(e.postMessage&&!e.importScripts){var t=!0,i=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=i,t}}function h(){var t="setImmediate$"+Math.random()+"$",i=function(i){i.source===e&&"string"===typeof i.data&&0===i.data.indexOf(t)&&p(+i.data.slice(t.length))};e.addEventListener?e.addEventListener("message",i,!1):e.attachEvent("onmessage",i),a=function(i){e.postMessage(t+i,"*")}}function m(){var e=new MessageChannel;e.port1.onmessage=function(e){var t=e.data;p(t)},a=function(t){e.port2.postMessage(t)}}function g(){var e=o.documentElement;a=function(t){var i=o.createElement("script");i.onreadystatechange=function(){p(t),i.onreadystatechange=null,e.removeChild(i),i=null},e.appendChild(i)}}function v(){a=function(e){setTimeout(p,0,e)}}})("undefined"===typeof self?"undefined"===typeof e?this:e:self)}).call(this,i("c8ba"),i("4362"))},"601f":function(e,t,i){"use strict";i("c950")},6026:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[i("el-form-item",{attrs:{"label-width":"125px",label:"是否金财互联客户"}},[i("el-radio",{attrs:{label:"Y"},model:{value:e.queryParams.isOther,callback:function(t){e.$set(e.queryParams,"isOther",t)},expression:"queryParams.isOther"}},[e._v("是")]),i("el-radio",{attrs:{label:"N"},model:{value:e.queryParams.isOther,callback:function(t){e.$set(e.queryParams,"isOther",t)},expression:"queryParams.isOther"}},[e._v("否")])],1),i("br"),i("el-form-item",{attrs:{label:"企业名称",prop:"qyName"}},[i("el-input",{attrs:{placeholder:"请输入企业名称",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.qyName,callback:function(t){e.$set(e.queryParams,"qyName",t)},expression:"queryParams.qyName"}})],1),i("el-form-item",{attrs:{label:"直播编号",prop:"qyName"}},[i("el-input",{attrs:{placeholder:"请输入直播编号",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.spuId,callback:function(t){e.$set(e.queryParams,"spuId",t)},expression:"queryParams.spuId"}})],1),i("el-form-item",{attrs:{label:"企业地址",prop:"address"}},[i("el-input",{attrs:{placeholder:"请输入企业地址",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.address,callback:function(t){e.$set(e.queryParams,"address",t)},expression:"queryParams.address"}})],1),i("el-form-item",{attrs:{label:"所属税局",prop:"sssj"}},[i("el-input",{attrs:{placeholder:"请输入所属税局",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.sssj,callback:function(t){e.$set(e.queryParams,"sssj",t)},expression:"queryParams.sssj"}})],1),i("el-form-item",{attrs:{label:"行业类型",prop:"hyType"}},[i("el-input",{attrs:{placeholder:"请输入行业类型",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.hyType,callback:function(t){e.$set(e.queryParams,"hyType",t)},expression:"queryParams.hyType"}})],1),i("el-form-item",{attrs:{label:"是否好友",prop:"isWx"}},[i("el-select",{attrs:{placeholder:"请选择"},model:{value:e.queryParams.isWx,callback:function(t){e.$set(e.queryParams,"isWx",t)},expression:"queryParams.isWx"}},e._l(e.options,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),i("el-form-item",{attrs:{label:"签到时间",prop:"createdAt"}},[i("el-date-picker",{attrs:{clearable:"",size:"small",type:"date","value-format":"yyyy-MM-dd",placeholder:"选择签到时间"},model:{value:e.queryParams.createdAt,callback:function(t){e.$set(e.queryParams,"createdAt",t)},expression:"queryParams.createdAt"}})],1),i("el-form-item",{attrs:{label:"用户姓名",prop:"userName"}},[i("el-input",{attrs:{placeholder:"请输入用户姓名",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.userName,callback:function(t){e.$set(e.queryParams,"userName",t)},expression:"queryParams.userName"}})],1),i("el-form-item",{attrs:{label:"小鹅通Id",prop:"userName"}},[i("el-input",{attrs:{placeholder:"请输入小鹅通Id",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.xetId,callback:function(t){e.$set(e.queryParams,"xetId",t)},expression:"queryParams.xetId"}})],1),i("el-form-item",{attrs:{label:"手机",prop:"mobile"}},[i("el-input",{attrs:{placeholder:"请输入手机",type:"textarea","show-word-limit":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.mobile,callback:function(t){e.$set(e.queryParams,"mobile",t)},expression:"queryParams.mobile"}})],1),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),i("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),i("el-row",{staticClass:"mb8",attrs:{gutter:10}},[i("el-col",{attrs:{span:1.5}},[i("el-button",{attrs:{type:"danger",plain:"",size:"mini",disabled:e.multiple},on:{click:function(t){e.open=!0}}},[e._v("授权直播")])],1),i("el-col",{attrs:{span:1.5}},[i("el-button",{attrs:{type:"danger",plain:"",icon:"el-icon-refresh",size:"mini"},on:{click:e.syncTb}},[e._v("同步企微")])],1),i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:qdinfo:remove"],expression:"['system:qdinfo:remove']"}],attrs:{type:"danger",plain:"",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:qdinfo:export"],expression:"['system:qdinfo:export']"}],attrs:{type:"warning",plain:"",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1),i("right-toolbar",{attrs:{"show-search":e.showSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:e.getList}})],1),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.qdinfoList},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),i("el-table-column",{attrs:{label:"企业名称",align:"center",prop:"qyName"}}),i("el-table-column",{attrs:{label:"用户姓名",align:"center",prop:"userName"}}),i("el-table-column",{attrs:{label:"手机",align:"center",prop:"mobile"}}),i("el-table-column",{attrs:{label:"小鹅通Id",align:"center",prop:"xetId"}}),i("el-table-column",{attrs:{label:"是否第三方",align:"center",prop:"isSf"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.isSf?i("span",[e._v("是")]):i("span",[e._v("否")])]}}])}),i("el-table-column",{attrs:{label:"签到时间",align:"center",prop:"createdAt",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e.parseTime(t.row.createdAt,"{y}-{m}-{d}")))])]}}])}),i("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:qdinfo:remove"],expression:"['system:qdinfo:remove']"}],attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("删除")]),i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(i){return e.toWxCustormer(t.row)}}},[e._v("签到人信息")]),i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(i){return e.toQyXx(t.row)}}},[e._v("企业详情")])]}}])})],1),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),i("select-zb",{attrs:{visible:e.selectZbList},on:{close:function(t){e.selectZbList=!1},success:e.submitSelectZb}}),i("el-dialog",{attrs:{title:e.title,visible:e.open,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.logZb,expression:"logZb"}],ref:"form",attrs:{model:e.xetForm,"label-width":"150px"}},[i("el-form-item",{attrs:{label:"授权直播",prop:"zbName"}},[i("div",{staticClass:"tag-input-2",on:{click:function(t){e.selectZbList=!0}}},[e.zbName?i("span",[e._v(e._s(e.zbName))]):i("span",{staticClass:"tag-place"},[e._v("请选择指定直播")])]),i("el-button",{staticStyle:{"margin-top":"20px"},attrs:{type:"primary"},on:{click:function(t){return e.addZb()}}},[e._v("提交")])],1)],1)],1)],1)},n=[],r=(i("d81d"),i("42b0")),s=i("cf45"),o=i("ed08"),l=i("dd70"),c=i("34e1"),u=i("49bc"),d={name:"Qdinfo",components:{SelectZb:u["default"]},data:function(){return{options:[{value:null,label:"全部"},{value:"Y",label:"是"},{value:"N",label:"否"}],selectZbList:!1,query:{pageNum:1,pageSize:l["Ic"],name:"",userIds:"",tagIds:"",beginTime:"",endTime:"",status:null,gender:"",addWay:"",corpFullName:""},xetForm:{xetIds:[],spuId:null,skuId:null},loading:!0,logZb:!1,ids:[],single:!0,multiple:!0,openZb:!1,showSearch:!0,total:0,qdinfoList:[],title:"",open:!1,queryParams:{pageNum:1,pageSize:10,unionId:void 0,createdAt:void 0,wxName:void 0,txUrl:void 0,qyName:void 0,userName:void 0,mobile:void 0,isSf:void 0,hmId:void 0,siginId:void 0,isWx:void 0,nsrsbh:void 0,sssj:void 0,hyType:void 0,address:void 0,zcTime:void 0,isOther:null,xetId:null,spuId:null},zbName:null,form:{},rules:{}}},created:function(){this.getList()},methods:{parseTime:s["L"],getList:function(){var e=this;this.loading=!0,Object(r["h"])(this.queryParams).then((function(t){e.qdinfoList=t.rows,e.total=t.total,e.loading=!1}))},submitSelectZb:function(e){this.xetForm.skuId=e.skuId,this.xetForm.spuId=e.id,this.zbName=e.title,this.selectZbList=!1},addZb:function(){var e=this;this.logZb=!0,Object(r["b"])(this.xetForm).then((function(t){e.msgSuccess("授权成功"),e.logZb=!1,e.open=!1}))},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={id:void 0,unionId:void 0,createdAt:void 0,wxName:void 0,txUrl:void 0,qyName:void 0,userName:void 0,mobile:void 0,isSf:void 0,hmId:void 0,siginId:void 0},this.resetForm("form")},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.xetForm.xetIds=e.map((function(e){return e.xetId})),this.single=1!==e.length,this.multiple=!e.length},toWxCustormer:function(e){var t=this,i={unionid:e.unionId};Object(c["h"])(i).then((function(e){e.total>0?t.goRoute(e.rows[0]):t.$alert("该签到用户未添加企微好友,无法查看详细信息","企微客户",{confirmButtonText:"确定",callback:function(e){t.$message({type:"info",message:"action: ".concat(e)})}})}))},goRoute:function(e){Object(o["l"])(this.$router,"/customerManage/customerCenter/customerDetail",this.query,{id:e.externalUserid,userId:e.userId,dimissionTime:e.dimissionTime,prePageType:"customer"})},toQyXx:function(e){var t=this;if(e.jbxxId){var i={};Object(o["l"])(this.$router,"/operationsCenter/drainageCode/qyDetails",i,{qyXxId:e.jbxxId})}else this.$alert("该签到企业名称错误,无法查看详细信息","企业信息",{confirmButtonText:"确定",callback:function(e){t.$message({type:"info",message:"action: ".concat(e)})}})},handleAdd:function(){this.reset(),this.open=!0,this.title="添加签到信息"},handleUpdate:function(e){var t=this;this.reset();var i=e.id||this.ids;Object(r["f"])(i).then((function(e){t.form=e.data,t.open=!0,t.title="修改签到信息"}))},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(null!=e.form.id?Object(r["j"])(e.form).then((function(t){e.msgSuccess("修改成功"),e.open=!1,e.getList()})):Object(r["a"])(e.form).then((function(t){e.msgSuccess("新增成功"),e.open=!1,e.getList()})))}))},syncTb:function(){var e=this;Object(r["i"])().then((function(t){e.msgSuccess("同步成功")}))},handleDelete:function(e){var t=this,i=e.id||this.ids;this.$confirm('是否确认删除签到信息编号为"'+i+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(r["d"])(i)})).then((function(){t.getList(),t.msgSuccess("删除成功")}))},handleExport:function(){var e=this,t=this.queryParams;this.$confirm("是否确认导出所有签到信息数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(r["e"])(t)})).then((function(t){e.download(t.msg)}))}}},p=d,f=(i("ccf7"),i("2877")),A=Object(f["a"])(p,a,n,!1,null,"19f77034",null);t["default"]=A.exports},"604a":function(e,t,i){e.exports=i.p+"static/img/contact-step3-2.d337301e.jpg"},"60a0":function(e,t,i){e.exports=i.p+"static/img/appid-demo-3-3.cfedb20f.jpeg"},"60b7":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"contact-demo enterprise-wechat-demo"},[a("div",[a("el-steps",{staticClass:"step-div",attrs:{active:e.active,"align-center":""}},[a("el-step",{attrs:{title:"获取企业ID",description:"登录企业微信后台"}}),a("el-step",{attrs:{title:"创建应用",description:"获取应用ID和应用Secret"}}),a("el-step",{attrs:{title:"获取通讯录Secret",description:"完成通讯录配置"}}),a("el-step",{attrs:{title:"授权登录",description:"员工扫码登录系统"}})],1)],1),0===e.active?a("div",{staticClass:"content-div"},[a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v(" 企业管理员扫码登录 "),a("el-link",{attrs:{type:"primary",href:"https://work.weixin.qq.com/wework_admin/loginpage_wx",target:"_blank"}},[e._v("企业微信后台")]),e._v(",进入 "),a("el-link",{attrs:{type:"primary",href:"https://work.weixin.qq.com/wework_admin/frame#profile",target:"_blank"}},[e._v("【我的企业】")]),e._v(" -【企业信息】,复制企业ID。")],1),a("el-image",{staticClass:"part-img",attrs:{src:i("ed71"),"preview-src-list":[i("ed71")]}})],1)]):e._e(),1===e.active?a("div",{staticClass:"content-div"},[a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v("(1)进入 "),a("el-link",{attrs:{type:"primary",href:"https://work.weixin.qq.com/wework_admin/frame#apps",target:"_blank"}},[e._v("【应用管理】")]),e._v("-【创建应用】。 ")],1),a("el-image",{staticClass:"part-img",attrs:{src:i("291a"),"preview-src-list":[i("291a")]}})],1),a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v("(2)将以下信息填写到应用中,并设置该应用有哪些成员可见。")]),a("div",{staticClass:"content-text"},[e._v("应用名称:联络易")]),a("div",{staticClass:"content-text",staticStyle:{display:"flex","align-items":"center"}},[e._v(" 应用logo: "),a("el-image",{staticStyle:{width:"42px"},attrs:{src:i("faa1")}})],1),a("el-image",{staticClass:"part-img",attrs:{src:i("2792"),"preview-src-list":[i("2792")]}})],1),a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v("(3)获取应用信息。")]),a("div",{staticClass:"content-text"},[e._v("保持应用为开启状态,复制应用ID,点击Secret旁“查看”按钮,即可收到“企业微信团队”发出的消息,查看并复制应用Secret。")]),a("el-image",{staticClass:"part-img",attrs:{src:i("11a0"),"preview-src-list":[i("11a0")]}})],1),a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v("(4)添加企业IP白名单。")]),a("div",{staticClass:"content-text"},[e._v(' 找到"企业可信IP",点击“配置”按钮,填写当前系统的IP地址。')]),a("el-image",{staticClass:"part-img",attrs:{src:i("fb56"),"preview-src-list":[i("fb56")]}})],1)]):e._e(),2===e.active?a("div",{staticClass:"content-div"},[a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v(" (1)进入 "),a("el-link",{attrs:{type:"primary",href:"https://work.weixin.qq.com/wework_admin/frame#manageTools",target:"_blank"}},[e._v("【管理工具】")]),e._v(" -【通讯录同步】,点击“开启API接口同步”,进入(2) ")],1),a("el-image",{staticClass:"part-img",attrs:{src:i("3f70"),"preview-src-list":[i("3f70")]}})],1),a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v(" (2)获取通讯录Secret。 ")]),a("div",{staticClass:"content-text"},[e._v("将权限改为API编辑通讯录并保存,可在EasyInk管理员工信息;点击Secret旁“查看”按钮,即可收到“企业微信团队”发出的消息,查看并复制通讯录Secret。")]),a("el-image",{staticClass:"part-img",attrs:{src:i("604a"),"preview-src-list":[i("604a")]}})],1),a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v(" (3)添加企业IP白名单 ")]),e._m(0),a("el-image",{staticClass:"part-img",attrs:{src:i("b6fa"),"preview-src-list":[i("b6fa")]}})],1),a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v(' (4)在客户端确认操作后,企微后台弹窗即转为可编辑的输入框,填进当前系统的IP地址后,点击"确定"按钮保存即可。 ')]),a("div",{staticClass:"content-text"}),a("el-image",{staticClass:"part-img",attrs:{src:i("b2d4"),"preview-src-list":[i("b2d4")]}})],1)]):e._e(),3===e.active?a("div",{staticClass:"content-div"},[a("div",{staticClass:"part"},[e.isThirdType?a("div",{staticClass:"content-title"},[e._v(" (1)域名备案:"+e._s(e.replaceUrl(e.defaultDomain.dashboard))+" ")]):a("div",{staticClass:"content-title"},[e._v(" (1)将WeComDashboard模块进行域名备案,如www.easyink.net:8091。 ")])]),a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v(" (2)在企业微信后台 "),a("el-link",{attrs:{type:"primary",href:"https://work.weixin.qq.com/wework_admin/frame#apps",target:"_blank"}},[e._v("【应用管理】")]),e._v(" 找到联络易应用,找到“企业微信授权登录”,进入页面。 ")],1),a("el-image",{staticClass:"part-img",attrs:{src:i("d544"),"preview-src-list":[i("d544")]}})],1),a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v(" (3)找到Web网页,编辑授权回调域,将(1)中备案好的域名填入并保存,即可实现员工扫码登录EasyInk。 ")]),a("el-image",{staticClass:"part-img",attrs:{src:i("e7fb"),"preview-src-list":[i("e7fb")]}})],1)]):e._e(),a("div",{staticClass:"btn-div"},[0!=e.active?a("el-button",{staticStyle:{"margin-top":"12px"},on:{click:e.previousStep}},[e._v("上一步")]):e._e(),a("el-button",{staticStyle:{"margin-top":"12px"},attrs:{type:"primary"},on:{click:e.next}},[e._v(e._s(e.STEP_TEXT[e.active]))])],1)])},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"content-text"},[e._v('点击"企业可信IP"旁边的配置按钮,'),i("span",{staticStyle:{color:"red"}},[e._v("当前弹窗先不要关闭")]),e._v(",此时企微客户端将收到一条企业微信团队发送的确认操作。")])}],r=i("dd70"),s=i("cf45"),o=3,l={components:{},props:{defaultDomain:{type:Object,default:function(){}}},data:function(){return{active:0,STEP_TEXT:r["S"],isThirdType:this.$store.state.serverInfo&&this.$store.state.serverInfo.serverType===r["bd"]}},computed:{},watch:{},created:function(){},mounted:function(){},methods:{next:function(){this.active!==o?this.active=this.active+1:this.$emit("closeDrawer")},previousStep:function(){this.active--<0&&(this.active=o)},replaceUrl:function(e){return Object(s["O"])(e)}}},c=l,u=(i("a7f9"),i("2877")),d=Object(u["a"])(c,a,n,!1,null,"6fd62092",null);t["default"]=d.exports},"613f":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"takeContent",staticClass:"takecontent"},[a("empty-default-icon",{attrs:{text:"暂无聊天记录",length:e.allChat.length}},[a("ul",e._l(e.allChat,(function(t,n){return a("li",{key:n,class:e.dealSender(t,e.chatData,e.chatType),attrs:{id:t.from+"--"+e.chatData.fromId}},[!e.SYSTEM_MSG_TYPE_LIST.includes(t.msgType)&&e.showAvatar?a("el-avatar",{staticClass:"avatar",style:"employee"===e.chatType&&t.from===e.chatData.fromId||"employee"!==e.chatType&&t.from!==e.chatData.fromId?"margin-left:5px":"margin-right:5px",attrs:{shape:"square",size:"medium",src:t.fromInfo&&(t.fromInfo.avatar||t.fromInfo.avatarMediaid||i("3e20"))}}):e._e(),a("div",[a("div",{staticClass:"info-line"},["employee"===e.chatType?[t.from!==e.chatData.fromId?a("span",{staticClass:"name"},[e._v(e._s(t.fromInfo&&t.fromInfo.name))]):e._e(),a("span",{staticClass:"time",style:t.from!==e.chatData.fromId?"margin-left:5px;":"margin-right:5px;"},[e._v(e._s(e.parseTime(t.msgTime)))]),t.from===e.chatData.fromId?a("span",{staticClass:"name"},[e._v(e._s(t.fromInfo&&t.fromInfo.name))]):e._e()]:[t.from===e.chatData.fromId?a("span",{staticClass:"name"},[e._v(e._s(t.fromInfo&&t.fromInfo.name))]):e._e(),a("span",{staticClass:"time",style:t.from===e.chatData.fromId?"margin-left:5px;":"margin-right:5px;"},[e._v(e._s(e.parseTime(t.msgTime)))]),t.from!==e.chatData.fromId?a("span",{staticClass:"name"},[e._v(e._s(t.fromInfo&&t.fromInfo.name))]):e._e()]],2),"text"==t.msgType?a("Message",{staticClass:"msgtypetext",attrs:{"is-revoke":t.isRevoke}},[e._v(" "+e._s(t.text.content)+" ")]):"image"==t.msgType?a("Message",{staticClass:"msgtypeimg",attrs:{"is-revoke":t.isRevoke}},[a("ImgChatItem",{attrs:{"img-url":t.image.attachment}})],1):"mixed"==t.msgType?a("Message",{attrs:{"is-revoke":t.isRevoke}},[a("MixedList",{attrs:{mixed:t.mixed.item}})],1):"file"==t.msgType?a("Message",{staticClass:"msgtypefile",attrs:{"is-revoke":t.isRevoke}},[a("div",{staticClass:"toe",attrs:{title:t.file.filename||t.file.fileName},on:{click:function(i){return e.down(t.file)}}},[e._v(" "+e._s(t.file.filename||t.file.fileName)+" ")])]):"voice"==t.msgType?a("Message",{staticClass:"msgtypevoice",attrs:{"is-revoke":t.isRevoke}},[e.voicePlayObj[t.msgId]&&e.voicePlayObj[t.msgId].isPlaying?a("img",{attrs:{src:e.dealVoiceImg(!0,t)},on:{click:function(i){return e.pauseVideo(t)}}}):a("img",{attrs:{src:e.dealVoiceImg(!1,t)},on:{click:function(i){return e.playVideo(t)}}})]):"emotion"==t.msgType?a("Message",{staticClass:"msgtypeimg",attrs:{"is-revoke":t.isRevoke}},[a("ImgChatItem",{attrs:{"img-url":t.emotion.attachment}})],1):"video"==t.msgType?a("Message",{staticClass:"msgtypevideo",attrs:{"is-revoke":t.isRevoke}},[a("VideoChatItem",{attrs:{url:t.video.attachment}})],1):"location"==t.msgType?a("Message",{staticClass:"msg-type-location",attrs:{"is-revoke":t.isRevoke}},[a("div",{staticClass:"msgtypecard"},[a("div",{staticClass:"title"},[e._v(" "+e._s(t.location.address)+" ")]),a("div",{staticClass:"info"},[e._v(" "+e._s(t.location.title)+" ")]),a("div",{staticClass:"name"},[e._v("位置")])])]):"weapp"==t.msgType?a("Message",{staticClass:"msg-type-weapp",attrs:{"is-revoke":t.isRevoke}},[a("div",{staticClass:"msgtypecard"},[a("div",{staticClass:"title"},[e._v(" "+e._s(t.weApp.title)+" ")]),a("div",{staticClass:"info"},[e._v(" "+e._s(t.weApp.displayname)+" ")]),a("div",{staticClass:"name"},[e._v("小程序")])])]):"sphfeed"==t.msgType?a("Message",{staticClass:"msgtypesph",attrs:{"is-revoke":t.isRevoke}},[a("div",{staticClass:"toe",attrs:{title:t.sphFeed.feedDesc}},[e._v(" [视频号] "+e._s(t.sphFeed.feedDesc)+" ")])]):"external_redpacket"==t.msgType?a("Message",{staticClass:"msgtypetext",attrs:{"is-revoke":t.isRevoke}},[e._v(" [这是一条红包消息] ")]):"chatrecord"==t.msgType?a("Message",{staticClass:"msg-type-link",attrs:{"is-revoke":t.isRevoke}},[a("div",[a("div",{staticClass:"msg-type-title"},[e._v(e._s(e.chatReCordShowTitle(t.chatReCord.title)))]),a("div",{staticClass:"chatrecord-content"},e._l(t.chatReCord.item.slice(0,4),(function(t,i){return a("p",{key:i,staticClass:"toe"},[e._v(" "+e._s(e.chatReCordShowText(t,"unParsed"))+" ")])})),0),a("el-button",{staticClass:"chatrecord-button",attrs:{type:"text"},on:{click:function(i){return e.$emit("openChatrecord",t.chatReCord)}}},[e._v("查看详情")])],1)]):"agree"==t.msgType?a("div",{staticClass:"msgtypetext system-msg"},[e._v(" "+e._s(t.fromInfo.name)+"同意存档会话内容 ")]):"disagree"==t.msgType?a("div",{staticClass:"msgtypetext"},[e._v(" "+e._s(t.fromInfo.name)+"不同意存档会话内容,无法获取聊天记录 ")]):"revoke"==t.msgType?a("div",{staticClass:"msgtypetext"},[e._v(" "+e._s(t.fromInfo.name)+"撤回了一条消息 ")]):"card"==t.msgType?a("Message",{staticClass:"msg-type-card",attrs:{"is-revoke":t.isRevoke}},[a("div",[a("div",{staticClass:"card_name"},[a("div",{staticClass:"card-left"},[a("div",{staticClass:"card-corp-name"},[a("img",{directives:[{name:"show",rawName:"v-show",value:["微信","微信联系人"].includes(t.card.corpName),expression:"['微信', '微信联系人'].includes(item.card.corpName)"}],staticClass:"wx-logo",attrs:{src:i("7595")}}),e._v(" "+e._s(["微信","微信联系人"].includes(t.card.corpName)?"微信":t.card.corpName)+" ")]),a("div",{staticClass:"card-user-name inoneline"},[e._v(e._s(t.card.userName||t.card.userId))])]),a("img",{attrs:{src:t.card.imageUrl||i("3e20")}})]),a("div",{staticClass:"card-foot"},[e._v("个人名片")])])]):"link"==t.msgType?a("Message",{staticClass:"msgtypelink",attrs:{"is-revoke":t.isRevoke}},[t.link?[a("a",{staticClass:"msg-type-link",attrs:{href:t.link.linkUrl,target:"_blank"}},[a("div",{staticClass:"msg-type-title"},[e._v(e._s(t.link.title))]),a("div",{staticClass:"msg-type-desc"},[a("div",[e._v(e._s(t.link.description))]),a("img",{attrs:{src:t.link.imageUrl||t.link.image_url}})])])]:e._e()],2):"docmsg"==t.msgType?a("Message",{staticClass:"msg-doc",attrs:{"is-revoke":t.isRevoke}},[a("a",{staticClass:"msg-type-doc",attrs:{href:t.doc.linkUrl,target:"_blank"}},[a("div",{staticClass:"msg-type-title"},[e._v(e._s(t.doc.title))]),a("div",{staticClass:"msg-type-desc"},[a("div",[e._v("点击查看文档")]),a("svg",{attrs:{className:"icon-docx",width:45,height:45}},[a("use",{attrs:{href:"#icon-docx"}})])])])]):e._e()],1)],1)})),0)])],1)},n=[],r=i("5530"),s=(i("caad"),i("a15b"),i("d81d"),i("b64b"),i("ac1f"),i("00b4"),i("fda2"),i("451f"),i("ae4c")),o=i.n(s),l=i("cf45"),c=i("deeb"),u=i("6895"),d=i("f28d"),p=i("ee02"),f=i("e77d"),A=15,h="receiver",m="sender",g=["agree","disagree","revoke"],v={components:{MixedList:u["default"],ImgChatItem:c["default"],VideoChatItem:d["default"],Message:p["default"],EmptyDefaultIcon:f["a"]},props:{allChat:{type:Array,default:function(){return[]}},chatData:{type:Object,default:function(){return{}}},chatType:{type:String,default:"employee"},showAvatar:{type:Boolean,default:!1}},data:function(){return{zoom:A,voicePlayObj:{},SYSTEM_MSG_TYPE_LIST:g}},mounted:function(){},methods:{playVideo:function(e){this.urlToBlob(e.voice.attachment,e)},initScollTop:function(){this.$refs["takeContent"]&&(this.$refs["takeContent"].scrollTop=0)},down:function(e){Object(l["w"])(e.attachment,e.filename||e.fileName||e.file.filename)},dealSender:function(e,t,i){if(g.includes(e.msgType))return"system-msg";var a=m,n=e.from===t.fromId;switch(i){case"employee":a=n?m:h;break;case"user":a=n?h:m;break}return a},dealVoiceImg:function(e,t){var a=this.dealSender(t,this.chatData,this.chatType)===h;return i(e?a?"32a8":"05de":a?"3be5":"51d4")},urlToBlob:function(e,t){var i=new XMLHttpRequest,a=this;i.open("get",e,!0),i.responseType="blob",i.onload=function(){var e=this.response,i=new File([e],"语音.amr",{type:"audio/amr"});a.playOrResumeAudio(i,t)},i.send()},playOrResumeAudio:function(e,t){var i=this,a=t.msgId;if(this.voicePlayObj[a]){var n=i.voicePlayObj[a].amr;n.playOrResume(),i.changeMsgVoiceStatus(a,!0),n.onEnded((function(){i.changeMsgVoiceStatus(a,!1)}))}else{var r=new o.a;try{r.initWithBlob(e).then((function(){i.voicePlayObj[a]={},i.voicePlayObj[a].amr=r,r.play(),i.changeMsgVoiceStatus(a,!0),r.onEnded((function(){i.changeMsgVoiceStatus(a,!1)}))}))}catch(s){}}},pauseVideo:function(e){var t=e.msgId,i=this.voicePlayObj[t].amr;i.pause(),this.changeMsgVoiceStatus(t,!1)},changeMsgVoiceStatus:function(e,t){this.voicePlayObj[e].isPlaying=t,this.voicePlayObj=Object(r["a"])({},this.voicePlayObj)},chatReCordShowTitle:function(e){return e?/的聊天记录$/.test(e)?e:"".concat(e,"的聊天记录"):"聊天记录"},chatReCordShowText:function(e,t){switch(e.type){case"text":case"ChatRecordText":return"unParsed"!==t?e.content.content:JSON.parse(e.content).content;case"ChatRecordFile":return"[".concat(JSON.parse(e.content).filename,"]");case"ChatRecordLink":var i=JSON.parse(e.content);return"[链接]".concat(i.title);case"ChatRecordSphFeed":return"[视频号]".concat(JSON.parse(e.content).feed_desc);case"ChatRecordMixed":return JSON.parse(e.content).item.map(this.chatReCordShowText).join("");case"ChatRecordLocation":return"[位置]";case"image":case"ChatRecordImage":return"[图片]";case"ChatRecordVideo":return"[视频]";case"chatrecord":return"[聊天记录]"}return"".concat(e.content)}}},b=v,y=(i("430a"),i("2877")),_=Object(y["a"])(b,a,n,!1,null,"2c65d323",null);t["default"]=_.exports},6158:function(e,t,i){"use strict";i("3392")},"61d6":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-drawer",{staticClass:"radar-add-drawer",attrs:{visible:e.Pvisible,title:(e.radarId?"编辑":"新增")+"雷达","wrapper-closable":!1},on:{"update:visible":function(t){e.Pvisible=t}}},[i("div",{staticClass:"wrap-body-form drawer-div"},[i("el-form",{ref:"form",staticClass:"form",attrs:{model:e.form,"label-width":"80px",rules:e.rules}},[i("p",{staticClass:"config-title",staticStyle:{"margin-bottom":"10px"}},[e._v("基本设置")]),i("el-form-item",{attrs:{label:"雷达标题",prop:"radarTitle"}},[i("el-input",{attrs:{maxlength:"32","show-word-limit":"",placeholder:"请填写雷达使用场景,方便标记使用",clearable:""},model:{value:e.form.radarTitle,callback:function(t){e.$set(e.form,"radarTitle",t)},expression:"form.radarTitle"}})],1),i("el-form-item",{attrs:{label:"雷达链接",prop:"radarLink"}},[i("div",{staticClass:"content-item"},[i("div",{staticClass:"item-div"},[i("el-radio-group",{model:{value:e.radarLink.isDefined,callback:function(t){e.$set(e.radarLink,"isDefined",t)},expression:"radarLink.isDefined"}},[i("el-radio",{attrs:{label:e.DEFAULT_LINK}},[e._v("使用链接默认信息")]),i("el-radio",{attrs:{label:e.CUSTOM_LINK}},[e._v("自定义链接信息")])],1),e.radarLink.isDefined!==e.DEFAULT_LINK?i("div",[i("el-form-item",{attrs:{"label-width":"0",prop:"url"}},[i("el-input",{style:{width:"340px"},attrs:{placeholder:"必填,请填写链接访问地址",autosize:{minRows:4,maxRows:4},clearable:""},model:{value:e.radarLink.url,callback:function(t){e.$set(e.radarLink,"url",t)},expression:"radarLink.url"}})],1),i("el-form-item",{attrs:{"label-width":"0",prop:"title"}},[i("el-input",{style:{width:"340px"},attrs:{type:"textarea",placeholder:"必填,请填写链接的标题",maxlength:e.LINK_TITLE_MAXLENGTH,"show-word-limit":"",autosize:{minRows:4,maxRows:4},clearable:""},model:{value:e.radarLink.title,callback:function(t){e.$set(e.radarLink,"title",t)},expression:"radarLink.title"}})],1),i("el-input",{style:{width:"340px"},attrs:{type:"textarea",placeholder:"选填,请填写链接的摘要,默认是“"+e.IMG_LINK_DIGEST+"”",maxlength:e.LINK_CONTENT_MAXLENGTH,"show-word-limit":"",autosize:{minRows:4,maxRows:4},clearable:""},model:{value:e.radarLink.content,callback:function(t){e.$set(e.radarLink,"content",t)},expression:"radarLink.content"}}),i("UploadDrag",{attrs:{text:"将封面拖到此处,或",tip:"只能上传jpg/png文件,且不超过2M","media-type":e.MEDIA_TYPE_POSTER,"file-obj":Object.assign({},e.radarLink,{url:e.radarLink.coverUrl}),"file-url":e.radarLink.coverUrl,accept:"image/*",multiple:!1,"show-content":!1,"limit-file-name":e.LIMIT_FILENAME},on:{"update:fileUrl":function(t){return e.$set(e.radarLink,"coverUrl",t)},"update:file-url":function(t){return e.$set(e.radarLink,"coverUrl",t)}}}),i("VerbalTrickImgLink",{attrs:{title:e.radarLink.title,content:e.radarLink.content,"cover-url":e.radarLink.coverUrl}})],1):i("div",[i("el-form-item",{attrs:{"label-width":"0",prop:"url"}},[i("el-input",{style:{width:"340px"},attrs:{placeholder:"必填,请填写链接访问地址",autosize:{minRows:4,maxRows:4},clearable:""},on:{change:e.sendWordsUrl},model:{value:e.radarLink.url,callback:function(t){e.$set(e.radarLink,"url",t)},expression:"radarLink.url"}})],1),i("VerbalTrickImgLink",{attrs:{title:e.radarLink.title,content:e.radarLink.content,"cover-url":e.radarLink.coverUrl}})],1)],1)])]),i("p",{staticClass:"config-title",staticStyle:{"margin-bottom":"10px"}},[e._v("高级设置")]),i("el-form-item",{attrs:{label:"行为通知",prop:"enableClickNotice"}},[i("div",{staticStyle:{width:"600px"}},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.enableClickNotice,callback:function(t){e.$set(e.form,"enableClickNotice",t)},expression:"form.enableClickNotice"}}),i("span",{staticClass:"we-emple-code-tags-tip"},[e._v("开启后,当客户点击雷达链接,将发送应用提醒通知所属员工")])],1)]),i("el-form-item",{attrs:{label:"轨迹记录",prop:"enableBehaviorRecord"}},[i("div",{staticStyle:{width:"600px"}},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.enableBehaviorRecord,callback:function(t){e.$set(e.form,"enableBehaviorRecord",t)},expression:"form.enableBehaviorRecord"}}),i("span",{staticClass:"we-emple-code-tags-tip"},[e._v("开启后,当客户点击雷达链接,会记录在其客户资料的活动轨迹下")])],1)]),i("el-form-item",{attrs:{label:"客户标签"}},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.enableCustomerTag,callback:function(t){e.$set(e.form,"enableCustomerTag",t)},expression:"form.enableCustomerTag"}}),i("span",{staticClass:"we-emple-code-tags-tip"},[e._v("开启后,当客户点击雷达链接,为其打上指定客户标签")])],1),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.form.enableCustomerTag,expression:"form.enableCustomerTag"}],attrs:{label:"",prop:"customerTags"}},[i("div",[i("el-button",{staticClass:"mr10",attrs:{icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.dialogVisibleSelectTag=!0}}},[e._v("添加标签")]),e._l(e.customerTags,(function(t,a){return i("el-tag",{key:a,attrs:{size:"medium",closable:""},on:{close:function(i){return e.closeTag(t,a)}}},[e._v(e._s(t.tagName||t.name))])}))],2)])],1),i("div",{staticClass:"confirm-div"},[e.activeRadar!==e.RADAR_TYPE["personal"]?i("div",[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.enableUpdateNotice,callback:function(t){e.$set(e.form,"enableUpdateNotice",t)},expression:"form.enableUpdateNotice"}}),i("span",{staticClass:"switch-tip"},[e._v("更新后,发送应用提醒通知使用员工")])],1):e._e(),i("div",{staticClass:"confirm-btn-div"},[i("el-button",{on:{click:function(t){e.Pvisible=!1}}},[e._v("取消")]),i("RequestButton",{attrs:{type:"primary","request-method":e.submitForm,"button-type":"submit"}},[e._v("确定")])],1)])],1)]),i("SelectTag",{attrs:{visible:e.dialogVisibleSelectTag,selected:e.customerTags,type:"search","info-msg":"客户点击雷达链接后,将自动打上选中的标签","is-show-add":!0},on:{"update:visible":function(t){e.dialogVisibleSelectTag=t},success:e.submitSelectTag}})],1)},n=[],r=i("c7eb"),s=i("1da1"),o=i("2909"),l=i("5530"),c=(i("99af"),i("d81d"),i("a434"),i("a9e3"),i("dca8"),i("d3b7"),i("9911"),i("52a9")),u=i("cf45"),d=i("aada"),p=i("a125"),f=i.n(p),A=i("9543"),h=i("de60"),m=i("f9d1"),g=i("7d08"),v=i("dd70"),b=32,y={components:{SelectTag:d["a"],VerbalTrickImgLink:g["default"],UploadDrag:h["a"],RequestButton:c["a"]},props:{radarId:{type:String,default:""},visible:{type:Boolean,default:!1},activeRadar:{type:Number,default:v["Qc"]["enterprise"]}},data:function(){var e=this;return{CUSTOM_LINK:v["D"],DEFAULT_LINK:v["L"],DEFAULT_IMG:v["K"],MEDIA_TYPE_IMGLINK:v["ac"],LINK_CONTENT_MAXLENGTH:v["Ob"],LINK_TITLE_MAXLENGTH:v["Pb"],MEDIA_TYPE_POSTER:v["cc"],LIMIT_FILENAME:b,IMG_LINK_DIGEST:v["Cb"],RADAR_TYPE:v["Qc"],form:{radarTitle:"",enableClickNotice:!1,enableBehaviorRecord:!1,enableCustomerTag:!1,enableUpdateNotice:!1},radarLink:{isDefined:v["L"],title:"",url:"",coverUrl:"",content:""},customerTags:[],dialogVisibleSelectTag:!1,removeTagList:[],rules:Object.freeze({radarTitle:[{required:!0,message:"请填写雷达标题",trigger:"blur"}],radarLink:[{required:!0,validator:function(t,i,a){var n=e.radarLink,r=n.url,s=n.title;r?s?a():a(new Error("请填写链接标题")):a(new Error("请填写雷达链接"))},trigger:"blur"}]})}},computed:{Pvisible:{get:function(e){return e.visible&&this.radarId&&this.getRadaDetail(),this.visible},set:function(e){this.$emit("update:visible",e)}}},watch:{visible:function(e){e||(this.form=this.$options.data().form,this.radarLink=this.$options.data().radarLink,this.customerTags=[],this.removeTagList=[])}},created:function(){},methods:{getRadaDetail:function(){var e=this;Object(m["j"])({id:this.radarId}).then((function(t){var i=t.data,a=i.radarTitle,n=i.enableBehaviorRecord,r=i.enableClickNotice,s=i.enableCustomerTag,o=i.enableUpdateNotice,c=i.radarTagList,u=i.weRadarUrl;e.form=Object(l["a"])(Object(l["a"])({},e.form),{},{id:e.radarId,radarTitle:a,enableBehaviorRecord:n,enableClickNotice:r,enableCustomerTag:s,enableUpdateNotice:o}),e.customerTags=c,e.radarLink=u}))},submitSelectTag:function(e){var t=f()(this.customerTags,e,"tagId");this.customerTags=Object(o["a"])(e),this.dialogVisibleSelectTag=!1,t=this.removeTagList.concat(t),this.removeTagList=t},closeTag:function(e,t){this.customerTags.splice(t,1),this.removeTagList.push(e)},sendWordsUrl:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.radarLink.url&&Object(A["d"])({url:e.radarLink.url}).then((function(t){var i,a;e.radarLink.content=null===(i=t.data)||void 0===i||null===(i=i.desc)||void 0===i?void 0:i.substring(0,v["Ob"]);var n=4;if(e.radarLink.title=null===(a=t.data)||void 0===a||null===(a=a.title)||void 0===a?void 0:a.substring(0,v["Pb"]),!t.data.isUrl&&t.data.image){if("data"===t.data.image.substring(0,n))return void(e.radarLink.coverUrl=v["K"].link);var r=e.radarLink.url.split("/");e.radarLink.coverUrl="https://"+r[2]+("/"!==t.data.image[0]?"/":"")+t.data.image}else e.radarLink.coverUrl=t.data.image||v["K"].link}));case 1:case"end":return t.stop()}}),t)})))()},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){if(!t)return Object(u["i"])(e.$store,"submit");e.radarLink.content||(e.radarLink=Object(l["a"])(Object(l["a"])({},e.radarLink),{},{content:"请点击查看链接"})),e.radarLink.coverUrl||(e.radarLink=Object(l["a"])(Object(l["a"])({},e.radarLink),{},{coverUrl:v["K"].link})),e.form.type=e.activeRadar;var i=Object(l["a"])(Object(l["a"])({},e.form),{},{radarTagList:e.customerTags.map((function(e){return{tagId:e.tagId}})),weRadarUrl:e.radarLink});e.radarId?e.$confirm("您修改了雷达链接地址,之前发出去的雷达链接也会被更新为最新的链接地址,您确定要继续该操作吗?","操作须知",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(m["r"])(i).then((function(){e.$emit("getRadaList"),e.$emit("update:visible",!1)}))})).finally((function(){Object(u["i"])(e.$store,"submit")})):Object(m["b"])(i).then((function(){e.$emit("getRadaList",!0),e.$emit("update:visible",!1)})).finally((function(){Object(u["i"])(e.$store,"submit")}))}))}}},_=y,w=(i("0638"),i("5c85"),i("2877")),C=Object(w["a"])(_,a,n,!1,null,"3fc4dd25",null);t["default"]=C.exports},"61f1":function(e,t,i){"use strict";i("8db4")},"62d3":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",e._g(e._b({staticClass:"use-employee-modal",attrs:{width:"500px"},on:{close:e.onClose}},"el-dialog",e.$attrs,!1),e.$listeners),[e.isGroup?i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{inline:!0,model:e.query,"label-width":"100px",size:"small"},nativeOn:{submit:function(e){e.preventDefault()}}},[i("el-form-item",{attrs:{prop:"name"}},[i("el-input",{attrs:{placeholder:"请输入群聊名称,回车搜索",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSearch(t)}},model:{value:e.query.name,callback:function(t){e.$set(e.query,"name",t)},expression:"query.name"}})],1)],1)]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{ref:"table",attrs:{data:e.list.slice((e.query.pageNum-1)*e.query.pageSize,e.query.pageNum*e.query.pageSize),"tooltip-effect":"dark",height:"300px","highlight-current-row":""}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{text:"暂无数据"}})],1),i("el-table-column",{key:"row-1",attrs:{label:"群昵称",prop:"groupName",align:"left"}}),i("el-table-column",{key:"row-2",attrs:{label:"群主",prop:"userName",align:"left"}}),i("el-table-column",{key:"row-3",attrs:{label:"创建时间",prop:"createTime",align:"left"}}),i("el-table-column",{key:"row-4",attrs:{label:"加入SOP时间",prop:"addTime",align:"left"}})],2)]},proxy:!0}],null,!1,4284720400)}):i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{inline:!0,model:e.query,"label-width":"100px",size:"small"},nativeOn:{submit:function(e){e.preventDefault()}}},[i("el-form-item",{attrs:{prop:"name"}},[i("el-input",{attrs:{placeholder:e.isActivity?"请输入客户名称,回车搜索":"请输入员工名称,回车搜索",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSearch(t)},submit:function(e){e.preventDefault()}},model:{value:e.query.name,callback:function(t){e.$set(e.query,"name",t)},expression:"query.name"}})],1)],1)]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{ref:"table",attrs:{data:e.list.slice((e.query.pageNum-1)*e.query.pageSize,e.query.pageNum*e.query.pageSize),"tooltip-effect":"dark",height:"300px","highlight-current-row":""}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{text:"暂无数据"}})],1),e.isActivity?e._e():i("el-table-column",{key:"row-1",attrs:{label:"员工",prop:"userName,departmentName",align:"left"},scopedSlots:e._u([{key:"default",fn:function(e){var t=e.row;return[i("TagUserShow",{attrs:{name:t.userName?t.userName:t.departmentName,"show-icon":!!t.departmentName,"margin-right":2}})]}}],null,!1,1940592903)}),e.isActivity?e._e():i("el-table-column",{key:"row-2",attrs:{label:"所属部门",prop:"mainDepartmentName",align:"left"}}),e.isActivity?i("el-table-column",{key:"row-3",attrs:{label:"客户",prop:"name",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",{staticClass:"flex user-info"},[i("el-image",{staticClass:"mr5",staticStyle:{width:"35px",height:"35px"},attrs:{src:a.headImageUrl}}),i("span",{staticClass:"inoneline",staticStyle:{display:"inline-block"}},[e._v(e._s(a.name))]),i("span",{class:"type-info intwoline "+(a.type===e.wxType?"wx-type-flag":"corp-type-name")},[e._v(e._s(e.renderUserInfo(a)))])],1)]}}],null,!1,1489254019)}):e._e(),e.isActivity?i("el-table-column",{key:"row-4",attrs:{label:"所属员工",prop:"userName",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",{staticStyle:{"font-size":"14px"}},[i("div",[e._v(e._s(a.userName))]),i("div",{staticStyle:{"font-size":"12px"}},[e._v(e._s(a.mainDepartmentName))])])]}}],null,!1,3817608550)}):e._e()],2)]},proxy:!0}])}),i("pagination",{attrs:{layout:"prev, pager, next",total:e.list.length,limit:e.query.pageSize,page:e.query.pageNum,small:""},on:{"update:limit":function(t){return e.$set(e.query,"pageSize",t)},"update:page":function(t){return e.$set(e.query,"pageNum",t)}}})],1)},n=[],r=i("2909"),s=(i("99af"),i("4de4"),i("caad"),i("b0c0"),i("a9e3"),i("d3b7"),i("2532"),i("b66d")),o=i("e77d"),l=i("515a"),c=i("dd70"),u=i("cf45"),d={name:"",components:{RightContainer:s["a"],EmptyDefaultIcon:o["a"],TagUserShow:l["a"]},props:{userList:{type:Array,default:function(){return[]}},departmentList:{type:Array,default:function(){return[]}},isGroup:{type:Boolean,default:!1},sopType:{type:Number,default:null},isActivity:{type:Boolean,default:!1}},data:function(){return{query:{name:"",list:[],pageNum:1,pageSize:c["Ic"]},list:[],SOP_TYPE:c["ed"],wxType:c["Cd"]}},watch:{userList:function(e){this.list=[].concat(Object(r["a"])(this.list),Object(r["a"])(e)),this.total=this.total?this.total+this.list.length:this.list.length},departmentList:function(e){this.list=[].concat(Object(r["a"])(this.list),Object(r["a"])(e)),this.total=this.total?this.total+this.list.length:this.list.length}},created:function(){this.list=[].concat(Object(r["a"])(this.userList),Object(r["a"])(this.departmentList))},mounted:function(){},methods:{onClose:function(){this.$emit("update:visible",!1)},onSearch:function(){var e=this,t=this.isGroup?"groupName":"userName";this.isActivity&&(t="name");var i=this.userList.filter((function(i){return i[t].includes(e.query.name)})),a=this.departmentList.filter((function(t){return t["departmentName"].includes(e.query.name)}));this.query.pageNum=1,this.list=[].concat(Object(r["a"])(i),Object(r["a"])(a))},renderUserInfo:function(e){return Object(u["o"])(e)}}},p=d,f=(i("693f"),i("2877")),A=Object(f["a"])(p,a,n,!1,null,"6db8fd0b",null);t["default"]=A.exports},"62db":function(e,t,i){"use strict";i.d(t,"i",(function(){return r})),i.d(t,"g",(function(){return s})),i.d(t,"h",(function(){return o})),i.d(t,"m",(function(){return l})),i.d(t,"a",(function(){return c})),i.d(t,"l",(function(){return u})),i.d(t,"j",(function(){return d})),i.d(t,"c",(function(){return p})),i.d(t,"b",(function(){return f})),i.d(t,"k",(function(){return A})),i.d(t,"d",(function(){return h})),i.d(t,"e",(function(){return m})),i.d(t,"f",(function(){return g}));var a=i("b775"),n=window.CONFIG.services.wecom+"/code";function r(e){return Object(a["a"])({url:n+"/list",params:e})}function s(e){return Object(a["a"])({url:n+"/"+e})}function o(e){return Object(a["a"])({url:n+"/Permissions/"+e})}function l(e){return Object(a["a"])({url:n+"/update",method:"put",data:e})}function c(e){return Object(a["a"])({url:"/wecom/code/add",method:"post",data:e})}function u(e){return Object(a["a"])({url:n+"/delete/"+e,method:"delete"})}function d(e){return Object(a["a"])({url:n+"/getQrcode",params:e})}function p(e){return Object(a["a"])({url:n+"/downloadBatch",params:{ids:e},responseType:"blob"})}function f(e){return Object(a["a"])({url:n+"/download",params:{id:e},responseType:"blob"})}function A(e){return Object(a["a"])({url:n+"/getTimeRangeAnalyseCount",params:e})}function h(e){return Object(a["a"])({url:n+"/exportTimeRangeAnalyseCount",params:e})}function m(e){return Object(a["a"])({url:n+"/appLink",params:e})}function g(e){return Object(a["a"])({url:n+"/listByName",params:e})}},6361:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"customer-setting"},[i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{inline:!0,model:e.query,"label-width":"100px",size:"small"}},[i("el-form-item",{attrs:{prop:"name"}},[i("el-input",{attrs:{placeholder:"请输入字段名称"},model:{value:e.query.name,callback:function(t){e.$set(e.query,"name",t)},expression:"query.name"}})],1),i("el-form-item",[i("el-select",{attrs:{placeholder:"请选择启用状态",clearable:""},model:{value:e.query.status,callback:function(t){e.$set(e.query,"status",t)},expression:"query.status"}},e._l(e.enableOptions,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),i("el-form-item",[i("el-select",{attrs:{placeholder:"请选择是否必填",clearable:""},model:{value:e.query.required,callback:function(t){e.$set(e.query,"required",t)},expression:"query.required"}},e._l(e.mandatoryOptions,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),i("el-form-item",{attrs:{label:" "}},[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.onSearch()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetForm()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"operate-btn",fn:function(){return[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick"},{name:"hasPermi",rawName:"v-hasPermi",value:["customer:extendProp:add"],expression:"['customer:extendProp:add']"}],attrs:{type:"primary"},on:{click:e.addField}},[e._v("新增字段")])]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",staticClass:"property-list-table",attrs:{data:e.list,"tooltip-effect":"dark","row-key":"id","highlight-current-row":""},on:{"cell-mouse-enter":e.rowDrop,"cell-mouse-leave":e.mouseLeave}},[i("el-table-column",{attrs:{prop:"sort",label:"",width:"40"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-popover",{attrs:{placement:"left",trigger:"hover",content:"长按上下拖拽排序"}},[i("div",{staticClass:"handle handle-sort",attrs:{slot:"reference"},slot:"reference"},[i("i",{directives:[{name:"show",rawName:"v-show",value:e.showDropIcon&&t.row.id===e.rowId,expression:"showDropIcon && scope.row.id === rowId"}],staticClass:"el-icon-sort",staticStyle:{"font-size":"16px"}})])])]}}])}),i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{text:"暂无数据"}})],1),i("el-table-column",{attrs:{label:"字段名称",prop:"name"}}),i("el-table-column",{attrs:{label:"字段类型",prop:"type"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e._v(" "+e._s(e.propertyMap[i.type])+" ")]}}])}),i("el-table-column",{attrs:{label:"启用",prop:"status"},scopedSlots:e._u([{key:"header",fn:function(){return[i("span",[e._v("启用")]),i("el-popover",{attrs:{placement:"top-start",content:"开启后,员工可为客户编辑该字段信息,后台可读取",trigger:"hover","popper-class":"tip-popover"}},[i("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"14px"},attrs:{slot:"reference"},slot:"reference"})])]},proxy:!0},{key:"default",fn:function(t){var a=t.row;return[i("el-switch",{attrs:{disabled:!e.checkPermi(["customer:extendProp:edit"])},on:{change:function(t){return e.changeStatus(t,a)}},model:{value:a.status,callback:function(t){e.$set(a,"status",t)},expression:"row.status"}})]}}])}),i("el-table-column",{attrs:{label:"必填",prop:"required"},scopedSlots:e._u([{key:"header",fn:function(){return[i("span",[e._v("必填")]),i("el-popover",{attrs:{placement:"top-start",content:"开启后,员工为客户编辑资料时该字段不能为空",trigger:"hover","popper-class":"tip-popover"}},[i("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"14px"},attrs:{slot:"reference"},slot:"reference"})])]},proxy:!0},{key:"default",fn:function(t){var a=t.row;return[i("el-switch",{attrs:{disabled:!e.checkPermi(["customer:extendProp:edit"])},on:{change:function(t){return e.changeStatus(t,a)}},model:{value:a.required,callback:function(t){e.$set(a,"required",t)},expression:"row.required"}})]}}])}),i("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customer:extendProp:edit"],expression:"['customer:extendProp:edit']"}],attrs:{type:"text",size:"small",disabled:a.type===e.CUSTOMER_PROPERTY_VALUE["sysField"]},on:{click:function(t){return e.onEdit(a)}}},[e._v("编辑")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customer:extendProp:remove"],expression:"['customer:extendProp:remove']"}],attrs:{type:"text",size:"small",disabled:a.type===e.CUSTOMER_PROPERTY_VALUE["sysField"]},on:{click:function(t){return e.onDelete(a)}}},[e._v("删除")])]}}])})],2)]},proxy:!0}])}),i("AddPropertyModal",{ref:"addPropertyModal",attrs:{visible:e.propertyVisible,width:"700px"},on:{"update:visible":function(t){e.propertyVisible=t},getList:e.getPropertyList}})],1)},n=[],r=i("c7eb"),s=i("1da1"),o=i("5530"),l=(i("d81d"),i("13d5"),i("a434"),i("b0c0"),i("d3b7"),i("25f0"),i("b66d")),c=i("bd01"),u=i("e77d"),d=i("a1ac4"),p=i("dd70"),f=i("53fe"),A=i.n(f),h=i("e350"),m=i("e2e0"),g=function(e,t){return t.propertySort>e.propertySort?t:e},v={name:"",components:{RightContainer:l["a"],EmptyDefaultIcon:u["a"],AddPropertyModal:d["default"]},mixins:[m["a"]],props:{},data:function(){return{enableOptions:[{label:"启用",value:1},{label:"未启用",value:0}],mandatoryOptions:[{label:"必填",value:1},{label:"非必填",value:0}],query:{name:"",status:null,required:null},list:[],propertyMap:p["A"],propertyVisible:!1,editData:{},CUSTOMER_PROPERTY_VALUE:p["B"],showDropIcon:!1,rowId:null,rowSortCreated:!1,loading:!1}},created:function(){this.$store.dispatch("app/setBusininessDesc","\n <div>添加客户字段,记录客户更详细的个人信息</div>\n "),this.getPropertyList()},mounted:function(){},methods:{onSearch:function(){this.getPropertyList()},resetForm:function(){this.query={name:"",status:null,required:null},this.getPropertyList()},addField:function(){var e=this.list.length&&this.list.reduce(g).propertySort+1;this.$refs.addPropertyModal.formData={name:null,required:0,status:0,propertySort:e,optionList:[{multipleValue:""}]},this.propertyVisible=!0},onEdit:function(e){this.$refs.addPropertyModal.formData=Object(o["a"])({},e),this.$refs.addPropertyModal.activeName=e.type.toString(),this.propertyVisible=!0},onDelete:function(e){var t=this;this.confirmModal({msg:"删除后,该字段将被删除,员工不可再为客户编辑该字段,且不可恢复,是否继续?"},Object(s["a"])(Object(r["a"])().mark((function i(){var a;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,Object(c["b"])(e.id);case 2:a=i.sent,a&&t.getPropertyList();case 4:case"end":return i.stop()}}),i)}))))},getPropertyList:function(){var e=arguments,t=this;return Object(s["a"])(Object(r["a"])().mark((function i(){var a,n;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a=e.length>0&&void 0!==e[0]?e[0]:{},t.loading=!0,i.next=4,t.$store.dispatch("GetCustomerProperty",Object(o["a"])({name:t.query.name,required:t.query.required,status:t.query.status},a));case 4:n=i.sent,n&&(t.list=n.data),t.loading=!1,t.modifyButtonStatus();case 8:case"end":return i.stop()}}),i)})))()},rowDrop:function(e){if(this.showDropIcon=!0,this.rowId=e.id,!this.rowSortCreated){this.rowSortCreated=!0;var t=150,i=this,a=this.$refs.table.$el.querySelector(".el-table__body-wrapper tbody");A.a.create(a,{handle:".handle",animation:t,onEnd:function(e){var t=e.newIndex,a=e.oldIndex,n=i.list.splice(a,1)[0];i.list.splice(t,0,n);var r=[];i.list.map((function(e,t){r.push(Object(o["a"])(Object(o["a"])({},e),{},{propertySort:t+1}))})),i.sortEdit({properties:r})}})}},mouseLeave:function(){this.showDropIcon=!1},sortEdit:function(e){var t=this;return Object(s["a"])(Object(r["a"])().mark((function i(){var a;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,Object(c["c"])(e);case 2:a=i.sent,a&&t.msgSuccess("操作成功");case 4:case"end":return i.stop()}}),i)})))()},checkPermi:function(e){return Object(h["a"])(e)},changeStatus:function(e,t){this.sortEdit({properties:[t]}),this.$store.dispatch("UpdateCustomerProperty",t)}}},b=v,y=i("2877"),_=Object(y["a"])(b,a,n,!1,null,"e2529dae",null);t["default"]=_.exports},"63d6":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"top-explain"},[i("div",{staticClass:"left-icon"},[i("img",{attrs:{src:e.DEFAULT_ICON,height:140}})]),i("div",{staticClass:"right-text"},[i("div",{staticClass:"explain-title"},[e._v("公众号管理")]),i("div",{staticClass:"explain-info"},[e._v(" 雷达库等功能需要使用客户的唯一标识unionid,授权公众号后才可正常使用。 "),i("el-button",{staticClass:"blue-btn",attrs:{type:"text"},on:{click:function(t){return e.openBlackUrl(e.CONFIG_INTRODUCE_URL)}}},[e._v("配置说明")])],1)])]),i("div",{staticClass:"step-content"},[i("el-steps",{staticClass:"steps",attrs:{direction:"vertical",space:"120px",active:10}},[i("el-step",{attrs:{title:"绑定微信开发者ID"},scopedSlots:e._u([{key:"description",fn:function(){return[i("div",{staticClass:"f14 mb50"},[e._v("登录企业微信管理后台,进入"),i("el-button",{staticClass:"blue-btn f14",attrs:{type:"text"},on:{click:function(t){return e.openBlackUrl(e.MANAGE_BACKSTAGE_URL)}}},[e._v("【客户与上下游】 -【客户联系】")]),e._v(",绑定微信开发者ID")],1)]},proxy:!0}])}),e.isDKCorp?e._e():i("el-step",{attrs:{title:"配置网页授权域名"},scopedSlots:e._u([{key:"description",fn:function(){return[i("div",{staticClass:"mb50"},[i("div",{staticClass:"f14"},[e._v("复制以下链接,在"),i("el-button",{staticClass:"blue-btn f14",attrs:{type:"text"},on:{click:function(t){return e.openBlackUrl(e.WX_PAAS_URL)}}},[e._v("微信公众平台")]),e._v("给公众号配置网页授权域名,用于获取用户基本信息")],1),i("el-form",{ref:"domainForm",attrs:{"label-width":"80px","label-position":"right"}},[i("el-form-item",{attrs:{label:"域名"}},[i("el-input",{staticStyle:{width:"430px"},attrs:{value:e.domain,placeholder:"网页授权域名",disabled:""}}),i("el-button",{directives:[{name:"copy",rawName:"v-copy",value:e.domain,expression:"domain"}],staticClass:"ml10 f14",attrs:{id:"copy-domain",type:"text"}},[e._v("复制")])],1)],1)],1)]},proxy:!0}],null,!1,353505128)}),e.isDKCorp?e._e():i("el-step",{attrs:{title:"填写公众号信息"},scopedSlots:e._u([{key:"description",fn:function(){return[i("div",{staticClass:"f14 mb5",staticStyle:{"line-height":"28px"}},[e._v("将公众号的开发信息填入以下表单")]),i("el-form",{ref:"form",staticStyle:{width:"600px"},attrs:{model:e.form,"label-width":"80px",rules:e.rules,"label-position":"right"}},[i("el-form-item",{attrs:{label:"AppID",prop:"officialAccountAppId"}},[i("el-input",{staticStyle:{width:"430px"},attrs:{placeholder:"请输入公众号AppID",autocompleted:"new-password",clearable:""},model:{value:e.form.officialAccountAppId,callback:function(t){e.$set(e.form,"officialAccountAppId",t)},expression:"form.officialAccountAppId"}})],1),i("el-form-item",{attrs:{label:"AppSecret",prop:"officialAccountAppSecret"}},[i("el-input",{staticStyle:{width:"430px"},attrs:{type:e.pwdVisible?"text":"password","auto-complete":"new-password",clearable:"",placeholder:"请输入公众号AppSecret"},model:{value:e.form.officialAccountAppSecret,callback:function(t){e.$set(e.form,"officialAccountAppSecret",t)},expression:"form.officialAccountAppSecret"}}),i("i",{class:[e.pwdVisible?"icon-plaintext":"icon-ciphertext","iconfont"],on:{click:e.changePwdVisible}}),e.checkPermi(["officialAccountsManager:set"])?i("el-button",{staticClass:"ml10 f14",attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保存")]):e._e()],1)],1)]},proxy:!0}],null,!1,2111656459)}),e.isDKCorp?i("el-step",{attrs:{title:"授权已认证公众号"},scopedSlots:e._u([{key:"description",fn:function(){return[i("div",{staticClass:"mb20 f14"},[e._v("在EasyInk授权已认证且绑定微信开放平台的公众号(公众号的企业主体与当前企业须保持一致)")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["officialAccountsManager:set"],expression:"['officialAccountsManager:set']"}],staticClass:"mb15 f14",attrs:{type:"primary",loading:e.authLoading},on:{click:e.authBtnClick}},[e._v("授权公众号")]),i("div",{staticClass:"off-account-list-wrap"},[i("div",{staticClass:"off-account-list"},e._l(e.offAccountList,(function(e){return i("OffAccountCard",{key:e.id,attrs:{"card-data":e}})})),1)])]},proxy:!0}],null,!1,3338517347)}):e._e()],1)],1)])},n=[],r=i("5530"),s=i("c7eb"),o=i("1da1"),l=(i("d3b7"),i("1cf1")),c=i("689a"),u=i("dd70"),d=i("e350"),p=i("e2f7"),f=i.n(p),A={components:{OffAccountCard:l["default"]},data:function(){return{DEFAULT_ICON:f.a,CONFIG_INTRODUCE_URL:u["t"],MANAGE_BACKSTAGE_URL:u["Rb"],WX_PAAS_URL:u["Bd"],authLoading:!1,offAccountList:[],form:{},domain:void 0,rules:{officialAccountAppId:[{required:!0,message:"请输入appId",trigger:"blur"}],officialAccountAppSecret:[{required:!0,message:"请输入appSecret",trigger:"blur"}]},pwdVisible:!1}},computed:{isDKCorp:function(){return this.$store.state.serverInfo.dkCorp}},created:function(){this.pageInit()},methods:{changePwdVisible:function(){this.pwdVisible=!this.pwdVisible},pageInit:function(){this.isDKCorp?this.isDKCorpInit():this.noDKCorpInit()},checkPermi:function(e){return Object(d["a"])(e)},openBlackUrl:function(e,t){window.open(e,t)},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){if(t){var i=e.form,a=i.officialAccountAppId,n=i.officialAccountAppSecret;e.handleUpdateConfig({officialAccountAppId:a,officialAccountAppSecret:n})}}))},handleUpdateConfig:function(e){var t=this;return Object(o["a"])(Object(s["a"])().mark((function i(){var a;return Object(s["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,Object(c["d"])(e);case 2:a=i.sent,a&&(t.handleGetConfig(),t.msgSuccess("修改成功"));case 4:case"end":return i.stop()}}),i)})))()},handleGetConfig:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i,a;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(c["a"])({});case 2:return i=t.sent,t.next=5,Object(c["c"])({});case 5:a=t.sent,a.data&&(e.domain=a.data),i.data&&(e.form=Object(r["a"])({},i.data[0]));case 8:case"end":return t.stop()}}),t)})))()},noDKCorpInit:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.handleGetConfig();case 2:case"end":return t.stop()}}),t)})))()},isDKCorpInit:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:Object(c["a"])({}).then((function(t){e.offAccountList=t.data}));case 1:case"end":return t.stop()}}),t)})))()},authBtnClick:function(){var e=this;this.authLoading=!0,Object(c["b"])({}).then((function(t){e.openBlackUrl(t.msg)})).finally((function(){e.authLoading=!1}))}}},h=A,m=(i("1d90"),i("2877")),g=Object(m["a"])(h,a,n,!1,null,"dfdd1962",null);t["default"]=g.exports},"63db":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"form-setting"},[i("el-form",{attrs:{"label-position":"top","label-width":"80px",model:e.filedForm}},[i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("必填")]),i("el-switch",{model:{value:e.filedForm.required,callback:function(t){e.$set(e.filedForm,"required",t)},expression:"filedForm.required"}})],1)]),i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("标题")])]),i("el-input",{attrs:{resize:"none","show-word-limit":"",maxlength:100,type:"textarea",rows:6},model:{value:e.filedForm.title,callback:function(t){e.$set(e.filedForm,"title",t)},expression:"filedForm.title"}})],1),i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("选项")])]),e._l(e.filedForm.options,(function(t){return i("div",{key:t.id,staticClass:"form-item-options"},[i("el-input",{attrs:{resize:"none","show-word-limit":"",maxlength:50,type:"textarea",rows:3},model:{value:t.label,callback:function(i){e.$set(t,"label",i)},expression:"item.label"}}),i("i",{directives:[{name:"show",rawName:"v-show",value:e.filedForm.options.length>1,expression:"filedForm.options.length > 1"}],staticClass:"el-icon-remove-outline ml10",on:{click:function(i){return e.removeOptions(t)}}})],1)})),i("el-button",{staticStyle:{padding:"9px"},attrs:{icon:"el-icon-plus"},on:{click:e.addOptions}},[e._v("添加选项")])],2),i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("可选数量")])]),i("div",{staticClass:"select-nums mb10"},[i("span",[e._v("最少")]),i("el-select",{attrs:{placeholder:"不限制"},model:{value:e.filedForm.minSelectNums,callback:function(t){e.$set(e.filedForm,"minSelectNums",t)},expression:"filedForm.minSelectNums"}},e._l(e.selectOptionsNums,(function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value,disabled:!!e.filedForm.maxSelectNums&&!(t.value<=e.filedForm.maxSelectNums)}})})),1)],1),i("div",{staticClass:"select-nums"},[i("span",[e._v("最多")]),i("el-select",{attrs:{placeholder:"请选择"},model:{value:e.filedForm.maxSelectNums,callback:function(t){e.$set(e.filedForm,"maxSelectNums",t)},expression:"filedForm.maxSelectNums"}},e._l(e.selectOptionsNums,(function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value,disabled:!!e.filedForm.minSelectNums&&!(t.value>=e.filedForm.minSelectNums)}})})),1)],1)])],1)],1)},n=[],r=i("2909"),s=i("5530"),o=(i("99af"),i("4de4"),i("d81d"),i("d3b7"),i("ec26")),l=i("81f6"),c={components:{},props:{component:{type:Object,default:function(){}}},data:function(){return{filedForm:{required:!0,title:"多选",options:[],minSelectNums:"",maxSelectNums:""},selectOptionsNums:[]}},watch:{filedForm:{deep:!0,handler:function(e){l["a"].$emit("changeFiledSettingValue",Object(s["a"])(Object(s["a"])({},e),this.filedForm))}}},created:function(){this.initFiledForm()},mounted:function(){this.filedForm=Object(s["a"])(Object(s["a"])({},this.filedForm),this.component),this.setSelectOptionsNums()},methods:{initFiledForm:function(){for(var e=3,t=0;t<e;t++)this.addOptions()},removeOptions:function(e){this.filedForm.options=this.filedForm.options.filter((function(t){return t.id!==e.id})),this.setSelectOptionsNums()},addOptions:function(){var e=this.filedForm.options.length+1;this.filedForm.options.push({id:Object(o["a"])(),label:"选项"+e}),this.setSelectOptionsNums()},setSelectOptionsNums:function(){this.selectOptionsNums=[{value:"",label:"不限制"}].concat(Object(r["a"])(this.filedForm.options.map((function(e,t){return{value:t+1,label:"".concat(t+1,"项")}}))))}}},u=c,d=(i("6bc9"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"77742a7f",null);t["default"]=p.exports},"63e4":function(e,t,i){"use strict";i("d4fd")},6435:function(e,t,i){},6442:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"perform-record-page flex"},[i("div",{staticClass:"data-statistical"},[i("div",{staticStyle:{"text-align":"left"}},[i("el-row",{staticClass:"row-bg",attrs:{type:"flex",justify:"space-between"}},[i("el-col",{staticClass:"title_name",attrs:{span:24}},[e._v("任务统计")])],1),i("el-row",{staticClass:"row-bg",staticStyle:{"margin-top":"35px","text-align":"center"},attrs:{type:"flex",justify:"space-between"}},[i("el-col",{staticClass:"col_style",attrs:{span:6}},[e._v(" 任务总数 "),i("el-popover",{attrs:{placement:"top-start",content:e.totalText,trigger:"hover","popper-class":"tip-popover"}},[i("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"12px"},attrs:{slot:"reference"},slot:"reference"})])],1),i("el-col",{staticClass:"col_style",attrs:{span:6}},[e._v(" 已执行任务数 "),i("el-popover",{attrs:{placement:"top-start",content:e.taskExecuteText,trigger:"hover","popper-class":"tip-popover"}},[i("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"12px"},attrs:{slot:"reference"},slot:"reference"})])],1),i("el-col",{staticClass:"col_style",attrs:{span:6}},[e._v(" 未执行任务数 "),i("el-popover",{attrs:{placement:"top-start",content:e.taskUnExecuteText,trigger:"hover","popper-class":"tip-popover"}},[i("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"14px"},attrs:{slot:"reference"},slot:"reference"})])],1),i("el-col",{staticClass:"col_style",attrs:{span:6}},[e._v(" 执行率 "),i("el-popover",{attrs:{placement:"top-start",content:"已执行任务数 / 任务总数 * 100%",trigger:"hover","popper-class":"tip-popover"}},[i("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"14px"},attrs:{slot:"reference"},slot:"reference"})])],1)],1),i("el-row",{staticClass:"row-bg data-count theme-text-color",attrs:{type:"flex",justify:"space-between"}},[i("el-col",{attrs:{span:6}},[e._v(e._s(e.countInfo.taskCount))]),i("el-col",{attrs:{span:6}},[e._v(e._s(e.countInfo.taskExecuteCount))]),i("el-col",{attrs:{span:6}},[e._v(e._s(e.countInfo.taskUnExecuteCount))]),i("el-col",{attrs:{span:6}},[e._v(e._s(e.countInfo.executeRate))])],1)],1)]),i("div",{staticClass:"record-div"},[i("div",{staticClass:"header-radio-group"},[i("el-radio-group",{staticClass:"radio-group-div",attrs:{size:"medium"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-radio-button",{attrs:{label:e.RULE_RECORD}},[e._v("规则执行记录")]),i("el-radio-button",{attrs:{label:e.EMPLOYEES_RECORD}},[e._v("员工执行记录")])],1)],1),i("RuleRecord",{attrs:{type:e.activeName===e.RULE_RECORD?"rule":"employee","sop-id":e.sopId}})],1)])},n=[],r=i("5530"),s=(i("a9e3"),i("9815")),o=i("c766"),l=i("dd70"),c=0,u=1,d={name:"",components:{RuleRecord:o["default"]},props:{sopId:{type:String,default:null},sopType:{type:Number,default:null}},data:function(){return{activeName:c,RULE_RECORD:c,EMPLOYEES_RECORD:u,countInfo:{taskExecuteCount:0,taskUnExecuteCount:0,executeRate:"0%",taskCount:0}}},computed:{totalText:function(){var e="";switch(this.sopType){case l["ed"]["newCustomer"]:e="员工要对新增客户执行任务的总数";break;case l["ed"]["activity"]:e="员工要对指定客户执行任务的总次数,规则数 * 客户数";break;case l["ed"]["birthday"]:e="客户生日时,员工要执行的任务总数";break;case l["ed"]["cycle"]:e="员工要对客户群执行任务的总数,规则数 * 群聊数 * 循环数";break;case l["ed"]["timing"]:case l["ed"]["groupCalendar"]:e="员工要对客户群执行任务的总数,规则数 * 群聊数";break}return e},taskExecuteText:function(){var e="";switch(this.sopType){case l["ed"]["newCustomer"]:e="员工已向新客户发送指定内容的任务总数";break;case l["ed"]["activity"]:e="员工已向客户发送指定内容的任务总数";break;case l["ed"]["birthday"]:e="员工已向客户发送指定内容的任务总数";break;case l["ed"]["cycle"]:case l["ed"]["timing"]:case l["ed"]["groupCalendar"]:e="员工已向客户群发送指定内容的任务总数";break}return e},taskUnExecuteText:function(){var e="";switch(this.sopType){case l["ed"]["newCustomer"]:e="员工未向新客户发送指定内容的任务总数";break;case l["ed"]["activity"]:case l["ed"]["birthday"]:e="员工未向客户发送指定内容的任务总数";break;case l["ed"]["timing"]:case l["ed"]["cycle"]:case l["ed"]["groupCalendar"]:e="员工未向客户群发送指定内容的任务总数";break}return e}},watch:{},created:function(){},mounted:function(){this.getSopCount()},methods:{getSopCount:function(){var e=this;Object(s["g"])({sopId:this.sopId}).then((function(t){t&&(e.countInfo=Object(r["a"])({},t.data))}))}}},p=d,f=(i("48e6"),i("2877")),A=Object(f["a"])(p,a,n,!1,null,"24924a50",null);t["default"]=A.exports},6477:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-upload",{class:{uoloadSty:e.showBtnDealImg,disUoloadSty:e.noneBtnImg},attrs:{action:e.action,"list-type":"picture-card","file-list":e.fileList,drag:!0,"http-request":e.customUploadFile,"on-remove":e.handleDealImgRemove,"on-preview":e.handlePictureCardPreview,accept:".jpg,.png","before-upload":e.beforeUpload,"on-change":e.handleEditChange,limit:e.limitNum}},[i("div",{on:{mouseenter:e.enter,mouseleave:e.leave}},[i("div",{directives:[{name:"show",rawName:"v-show",value:!e.showIcon,expression:"!showIcon"}],staticClass:"upload-icon"},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"}),i("span",[e._v("上传封面")])]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.showIcon,expression:"showIcon"}],staticClass:"upload-icon"},[i("el-button",{staticClass:"hover-button"},[e._v("本地上传")]),i("el-button",{staticClass:"hover-button",on:{click:function(t){return t.stopPropagation(),e.openMaterial(t)}}},[e._v("素材库")])],1)])]),i("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})])],1)},n=[],r=i("2909"),s=(i("99af"),i("fb6a"),i("b0c0"),i("a9e3"),i("d3b7"),i("2934")),o=i("dd70"),l=i("cf45"),c=1,u=10,d=32,p={name:"Upload",components:{},props:{uploadList:{type:Array,default:function(){return[]}}},data:function(){return{MAX_LONG_SIDE:o["Ub"],MAX_SHORT_SIDE:o["Vb"],showIcon:!1,showBtnDealImg:!0,noneBtnImg:!1,dialogImageUrl:"",dialogVisible:!1,fileList:[],loading:!1,action:"/api/common/uploadFile2Cos",MEDIA_TYPE_POSTER:o["cc"],MEDIA_TYPE_IMGLINK:o["ac"],limitNum:c,mediaLink:{},ImgList:[],timelimit:!0,FILE_NAME_LENGTH:d}},computed:{},watch:{uploadList:function(e){this.fileList=this.uploadList}},beforeUpdate:function(){0!==this.fileList.length&&(this.noneBtnImg=!0)},created:function(){void 0!==this.uploadList[0]&&(this.fileList=this.uploadList,this.noneBtnImg=!0,this.uploadList[0].coverUrl&&(this.fileList[0].url=this.uploadList[0].coverUrl))},methods:{dealImgName:function(e){var t=e.lastIndexOf("."),i=e.substring(t),a=e.substring(0,t),n=a.slice(0,this.FILE_NAME_LENGTH-i.length)+i;return n},enter:function(){this.showIcon=!0},leave:function(){this.showIcon=!1},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},handleBeforeUpload:function(e){this.loading=!0;var t=!0,i=!0;return t=Object(l["q"])(o["cc"],e,this),i=Object(l["t"])(o["cc"],e,this,u),t&&i||(this.loading=!1),t&&i},onSuccess:function(e,t){this.loading=!1,this.fileList[0].url=e.data.url,this.fileList[0].mediaType=Number(o["ac"]),this.$emit("getType",this.fileList)},onError:function(){this.loading=!1,this.msgError("上传文件失败")},customUploadFile:function(e){var t=this,i=e.file,a=i,n=i.name;i.name.length>this.FILE_NAME_LENGTH&&(n=this.dealImgName(i.name),a=new File([i],n,{type:"image/jpg"}));var r=new FormData;r.append("file",a),r.append("mediaType",o["cc"]),r.append("fileName",n),Object(s["d"])(r).then((function(e){t.onSuccess(e,i)})).catch((function(){t.onError()}))},beforeUpload:function(e){var t=this;return new Promise((function(i,a){var n=t.handleBeforeUpload(e),r=new FileReader;r.readAsDataURL(e),r.onload=function(){var e=new Image;e.src=r.result,e.onload=function(){Object(l["J"])(e.width,e.height)?n?i():a(!1):(a(!1),t.msgWarn("图片尺寸超过限制,长边≤".concat(o["Ub"],"px,短边≤").concat(o["Vb"],"px,请重新上传")))}}}))},handleEditChange:function(e,t){this.noneBtnImg=t.length>=this.limitNum,this.fileList=Object(r["a"])(t)},handleDealImgRemove:function(e,t){this.noneBtnImg=t.length>=this.limitNum,this.fileList=[],this.$emit("deleteFileList",this.fileList)},openMaterial:function(){this.$emit("openMaterial",!0)}}},f=p,A=(i("11a9"),i("2877")),h=Object(A["a"])(f,a,n,!1,null,"cb6919da",null);t["default"]=h.exports},"647c":function(e,t,i){"use strict";i.d(t,"e",(function(){return n})),i.d(t,"d",(function(){return r})),i.d(t,"f",(function(){return s})),i.d(t,"a",(function(){return o})),i.d(t,"g",(function(){return l})),i.d(t,"b",(function(){return c})),i.d(t,"c",(function(){return u}));var a=i("b775");function n(e){return Object(a["a"])({url:"/xiaoe/zb/list",method:"get",params:e})}function r(e){return Object(a["a"])({url:"/xiaoe/zb/"+e,method:"get"})}function s(){return Object(a["a"])({url:"/xiaoe/zb/synchZb",method:"get"})}function o(e){return Object(a["a"])({url:"/xiaoe/zb",method:"post",data:e})}function l(e){return Object(a["a"])({url:"/xiaoe/zb",method:"put",data:e})}function c(e){return Object(a["a"])({url:"/xiaoe/zb/"+e,method:"delete"})}function u(e){return Object(a["a"])({url:"/xiaoe/zb/export",method:"get",params:e})}},6485:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:e.modalTitle,"before-close":e.closeModal,"close-on-press-escape":!1,visible:e.Pvisible,width:"680px","append-to-body":"","close-on-click-modal":!1},on:{"update:visible":function(t){e.Pvisible=t}}},[i("div",{staticClass:"material-add-modal"},[i("el-form",{ref:"form",attrs:{model:e.form,rules:e.formRules,"label-width":"80px"},on:{"update:model":function(t){e.form=t}}},[[e.MEDIA_TYPE_MINIAPP,e.MEDIA_TYPE_IMGLINK].includes(e.type)?e._e():i("el-form-item",{attrs:{label:"标题",prop:"materialName"}},[i("el-input",{staticStyle:{width:"380px"},attrs:{placeholder:e.titlePlaceholder[e.type],maxlength:e.limitFileName,"show-word-limit":""},model:{value:e.form.materialName,callback:function(t){e.$set(e.form,"materialName",t)},expression:"form.materialName"}})],1),e.type===e.MEDIA_TYPE_POSTER?[i("AddPosterForm",{attrs:{form:e.form,"limit-file-name":e.limitFileName},on:{changeForm:e.changeForm}})]:e.type===e.MEDIA_TYPE_VIDEO?[i("AddVideoForm",{attrs:{form:e.form,"limit-file-name":e.limitFileName,"hide-video-cover":e.hideVideoCover},on:{changeForm:e.changeForm}})]:e.type===e.MEDIA_TYPE_FILE?[i("AddFileForm",{attrs:{form:e.form,"remove-file":e.removeFile,"limit-file-name":e.limitFileName},on:{"update:form":function(t){e.form=t},changeForm:e.changeForm}})]:e.type===e.MEDIA_TYPE_MINIAPP?[i("AddMiniAppForm",{attrs:{form:e.form,"limit-file-name":e.limitFileName,placeholder:e.titlePlaceholder[e.type]}})]:e.type===e.MEDIA_TYPE_IMGLINK?[i("AddImgLinkForm",{ref:"imgLink",attrs:{form:e.form,placeholder:e.titlePlaceholder[e.type]},on:{"update:form":function(t){e.form=t}}})]:e._e(),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.showMaterialSave,expression:"showMaterialSave"},{name:"hasPermi",rawName:"v-hasPermi",value:["wechat:material:add"],expression:"['wechat:material:add']"}],attrs:{label:"存为素材",prop:"saveToMaterial"}},[i("div",{staticClass:"field-item"},[i("el-switch",{on:{change:e.changeShowMaterial},model:{value:e.form.saveToMaterial,callback:function(t){e.$set(e.form,"saveToMaterial",t)},expression:"form.saveToMaterial"}}),i("el-popover",{attrs:{placement:"top-start",content:"将该附件添加到素材库",trigger:"hover","popper-class":"tip-popover"}},[i("i",{staticClass:"iconfont icon-question",attrs:{slot:"reference"},slot:"reference"})])],1)]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.showMaterialSetting,expression:"showMaterialSetting"}]},[i("el-form-item",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wechat:material:publish"],expression:"['wechat:material:publish']"}],attrs:{label:"发布素材",prop:"showMaterial"}},[i("div",{staticClass:"field-item"},[i("el-switch",{model:{value:e.form.showMaterial,callback:function(t){e.$set(e.form,"showMaterial",t)},expression:"form.showMaterial"}}),i("el-popover",{attrs:{placement:"top-start",content:"开启后,员工可在企业微信客户端侧边栏【素材库】查看,并发送给客户",trigger:"hover","popper-class":"tip-popover"}},[i("i",{staticClass:"iconfont icon-question",attrs:{slot:"reference"},slot:"reference"})])],1)]),i("el-form-item",{attrs:{label:"素材标签",prop:"labelId"}},[i("el-select",{staticClass:"material-tag-select",staticStyle:{width:"380px"},attrs:{"popper-class":"invisible-select-popover",multiple:"",placeholder:"设置素材标签,方便分类管理"},on:{focus:e.onFocus},model:{value:e.selectedTagIdList,callback:function(t){e.selectedTagIdList=t},expression:"selectedTagIdList"}},e._l(e.materialOptions,(function(e){return i("el-option",{key:e.id,attrs:{label:e.tagName,value:e.id}})})),1)],1),i("el-form-item",{attrs:{label:"过期时间",prop:"expireTime"}},[i("div",{staticClass:"field-item"},[i("el-date-picker",{attrs:{type:"datetime",placeholder:"选择素材过期时间",align:"right","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd HH:mm:ss"},on:{change:e.confirmTime},model:{value:e.form.expireTime,callback:function(t){e.$set(e.form,"expireTime",t)},expression:"form.expireTime"}}),i("el-popover",{attrs:{placement:"top-start",content:"到期后自动移到过期素材,员工不可继续使用",trigger:"hover","popper-class":"tip-popover"}},[i("i",{staticClass:"iconfont icon-question",attrs:{slot:"reference"},slot:"reference"})])],1)]),e.type===e.MEDIA_TYPE_IMGLINK?i("el-form-item",{staticClass:"drawer-div",attrs:{label:"雷达链接",prop:"isRadarLink"}},[i("el-switch",{attrs:{disabled:e.form.enableConvertRadar,"active-value":!0,"inactive-value":!1},model:{value:e.isRadarLink,callback:function(t){e.isRadarLink=t},expression:"isRadarLink"}}),i("span",{staticClass:"back-text"},[e._v("设为雷达链接,可记录客户访问数据")]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.isRadarLink&&!e.form.enableConvertRadar,expression:"isRadarLink && !form.enableConvertRadar"}]},[i("el-form",{ref:"radarForm",staticClass:"radarForm",attrs:{model:e.radarForm,"label-width":"80px",rules:e.radarFormRules}},[i("el-form-item",{attrs:{label:"雷达标题",prop:"radarTitle"}},[i("el-input",{attrs:{maxlength:"32","show-word-limit":"",placeholder:"请填写雷达使用场景,方便标记使用",clearable:""},model:{value:e.radarForm.radarTitle,callback:function(t){e.$set(e.radarForm,"radarTitle",t)},expression:"radarForm.radarTitle"}})],1),i("el-form-item",{attrs:{label:"雷达类型"}},[i("el-radio-group",{model:{value:e.radarType,callback:function(t){e.radarType=t},expression:"radarType"}},[i("el-radio",{attrs:{label:e.RADAR_TYPE["enterprise"]}},[e._v("公共")]),e.isAdmin?e._e():i("el-radio",{attrs:{label:e.RADAR_TYPE["department"]}},[e._v("部门")]),e.isAdmin?e._e():i("el-radio",{attrs:{label:e.RADAR_TYPE["personal"]}},[e._v("个人")])],1)],1),i("el-form-item",{attrs:{label:"行为通知",prop:"enableClickNotice"}},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.radarForm.enableClickNotice,callback:function(t){e.$set(e.radarForm,"enableClickNotice",t)},expression:"radarForm.enableClickNotice"}}),i("span",{staticClass:"back-text"},[e._v("开启后,当客户点击雷达链接,将发送应用提醒通知所属员工")])],1),i("el-form-item",{attrs:{label:"轨迹记录",prop:"enableBehaviorRecord"}},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.radarForm.enableBehaviorRecord,callback:function(t){e.$set(e.radarForm,"enableBehaviorRecord",t)},expression:"radarForm.enableBehaviorRecord"}}),i("span",{staticClass:"back-text"},[e._v("开启后,当客户点击雷达链接,会记录在其客户资料的活动轨迹下")])],1),i("el-form-item",{attrs:{label:"客户标签"}},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.radarForm.enableCustomerTag,callback:function(t){e.$set(e.radarForm,"enableCustomerTag",t)},expression:"radarForm.enableCustomerTag"}}),i("span",{staticClass:"back-text"},[e._v("开启后,当客户点击雷达链接,为其打上指定客户标签")])],1),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.radarForm.enableCustomerTag,expression:"radarForm.enableCustomerTag"}],attrs:{label:"",prop:"customerTags"}},[i("div",{staticStyle:{"margin-left":"60px"}},[i("el-button",{attrs:{icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.dialogVisibleSelectTag=!0}}},[e._v("添加标签")]),e._l(e.customerTags,(function(t,a){return i("el-tag",{key:a,attrs:{size:"medium",closable:""},on:{close:function(i){return e.closeTag(t,a)}}},[e._v(e._s(t.name))])}))],2)])],1)],1),e.radarForm.enableCustomerTag?i("SelectTag",{attrs:{visible:e.dialogVisibleSelectTag,selected:e.customerTags,type:"search","info-msg":"通过活码添加员工的客户,将被自动打上选中的标签","is-show-add":!0},on:{"update:visible":function(t){e.dialogVisibleSelectTag=t},success:e.submitSelectTag}}):e._e()],1):e._e()],1),e._t("default")],2),i("SelectTagModal",{attrs:{visible:e.dialogVisible,"show-add-tag":!0,"modal-title":"选择标签","tag-list":this.$store.state.materialInfo?Object.values(this.$store.state.materialInfo.allTagObj):[],"default-tag-list":e.formTagList},on:{"update:visible":function(t){e.dialogVisible=t},submitSelectTags:e.submitSelectTags}})],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.closeModal}},[e._v("取 消")]),i("RequestButton",{attrs:{type:"primary","request-method":e.submit,"button-type":"submit"}},[e._v("确 定")])],1)])},n=[],r=i("2909"),s=i("5530"),o=i("ade3"),l=(i("99af"),i("d81d"),i("a434"),i("e9c4"),i("b64b"),i("d3b7"),i("07ac"),i("dd70")),c=i("9094"),u=i("8387"),d=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"poster-material"},[i("el-form-item",{attrs:{label:"海报",prop:"materialUrl"}},[i("upload",{attrs:{"file-url":e.form.materialUrl,"file-name":e.form.materialName,type:e.MEDIA_TYPE_POSTER,"limit-file-name":e.limitFileName,"upload-tip":"上传海报","upload-class":"poster-upload",file:e.uploadFile,"show-remove-file-icon":!0},on:{"update:fileUrl":function(t){return e.$set(e.form,"materialUrl",t)},"update:file-url":function(t){return e.$set(e.form,"materialUrl",t)},"update:fileName":function(t){return e.$set(e.form,"materialName",t)},"update:file-name":function(t){return e.$set(e.form,"materialName",t)},"update:file":function(t){e.uploadFile=t}}},[i("div",{attrs:{slot:"tip"},slot:"tip"},[e._v(" 支持PNG、JPG格式,图片大小不超过2M,建议尺寸150:256 ")])])],1)],1)},p=[],f=(i("a9e3"),{name:"AddPosterForm",components:{},props:{form:{type:Object,default:function(){}},limitFileName:{type:Number,default:null}},data:function(){return{MEDIA_TYPE_POSTER:l["cc"],uploadFile:{}}},watch:{uploadFile:function(e){var t=Object(s["a"])({},this.form);t.content=e.size,this.$emit("changeForm",t)}}}),A=f,h=(i("bb5d"),i("2877")),m=Object(h["a"])(A,d,p,!1,null,"8119e750",null),g=m.exports,v=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"video-material"},[i("el-form-item",{attrs:{label:"视频",prop:"materialUrl"}},[i("upload",{attrs:{"file-url":e.form.materialUrl,"file-name":e.form.materialName,file:e.uploadFile,type:e.MEDIA_TYPE_VIDEO,"limit-file-name":e.limitFileName,"upload-tip":"上传视频","show-remove-file-icon":!0,"upload-success":e.handleSuccess},on:{"update:fileUrl":function(t){return e.$set(e.form,"materialUrl",t)},"update:file-url":function(t){return e.$set(e.form,"materialUrl",t)},"update:fileName":function(t){return e.$set(e.form,"materialName",t)},"update:file-name":function(t){return e.$set(e.form,"materialName",t)},"update:file":function(t){e.uploadFile=t}}},[i("div",{attrs:{slot:"tip"},slot:"tip"},[e._v(" 支持MP4格式,建议视频小于10M ")])]),e.hideVideoCover?e._e():i("upload",{staticStyle:{"margin-left":"20px"},attrs:{"file-url":e.form.coverUrl,type:e.MEDIA_TYPE_POSTER,"upload-tip":"非必选,自定义封面","show-remove-file-icon":!0},on:{"update:fileUrl":function(t){return e.$set(e.form,"coverUrl",t)},"update:file-url":function(t){return e.$set(e.form,"coverUrl",t)}}},[i("div",{attrs:{slot:"tip"},slot:"tip"},[e._v(" 支持PNG、JPG格式,图片大小不超过2M,建议尺寸200:200 ")])])],1)],1)},b=[],y=1024,_=10,w=50,C={name:"AddVideoForm",components:{},props:{form:{type:Object,default:function(){}},limitFileName:{type:Number,default:null},hideVideoCover:{type:Boolean,default:!1}},data:function(){return{MEDIA_TYPE_VIDEO:l["gc"],MEDIA_TYPE_POSTER:l["cc"],uploadFile:{}}},watch:{uploadFile:function(e){var t=Object(s["a"])({},this.form);t.content=e.size,this.$emit("changeForm",t)}},methods:{handleSuccess:function(e){var t=e.size/y/y;t>_&&t<w&&this.$alert("视频大小已超过10M,将以链接形式发出","操作须知",{confirmButtonText:"确定"})}}},x=C,k=(i("f110"),Object(h["a"])(x,v,b,!1,null,"6851787a",null)),T=k.exports,S=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"miniapp-material"},[i("el-form-item",{attrs:{label:"账号原始ID",prop:"accountOriginalId"}},[i("el-input",{staticStyle:{width:"380px"},attrs:{placeholder:"请输入与企业有关联小程序的账号原始ID"},model:{value:e.form.accountOriginalId,callback:function(t){e.$set(e.form,"accountOriginalId",t)},expression:"form.accountOriginalId"}}),i("span",{staticClass:"help theme-text-color",on:{click:function(t){return e.openDrawer("appidDrawerVisible")}}},[e._v("如何获取?")])],1),i("el-form-item",{attrs:{label:"AppID",prop:"appid"}},[i("el-input",{staticStyle:{width:"380px"},attrs:{placeholder:"请输入与企业有关联小程序的AppID"},model:{value:e.form.appid,callback:function(t){e.$set(e.form,"appid",t)},expression:"form.appid"}})],1),i("el-form-item",{attrs:{label:"地址",prop:"materialUrl"}},[i("el-input",{staticStyle:{width:"380px"},attrs:{placeholder:"请输入小程序的页面访问地址"},model:{value:e.form.materialUrl,callback:function(t){e.$set(e.form,"materialUrl",t)},expression:"form.materialUrl"}}),i("span",{staticClass:"help theme-text-color",on:{click:function(t){return e.openDrawer("miniPageDrawerVisible")}}},[e._v("如何获取?")])],1),i("el-form-item",{attrs:{label:"标题",prop:"materialName"}},[i("el-input",{staticStyle:{width:"380px"},attrs:{placeholder:e.placeholder,maxlength:e.limitFileName,"show-word-limit":""},model:{value:e.form.materialName,callback:function(t){e.$set(e.form,"materialName",t)},expression:"form.materialName"}})],1),i("el-form-item",{attrs:{label:"封面",prop:"coverUrl"}},[i("upload",{attrs:{"file-url":e.form.coverUrl,type:"0","upload-tip":"上传封面","show-remove-file-icon":!0},on:{"update:fileUrl":function(t){return e.$set(e.form,"coverUrl",t)},"update:file-url":function(t){return e.$set(e.form,"coverUrl",t)}}},[i("div",{attrs:{slot:"tip"},slot:"tip"},[e._v(" 支持PNG、JPG格式,图片大小不超过2M,建议尺寸520*416 ")])])],1),i("el-drawer",{staticClass:"appid-drawer",attrs:{title:"获取小程序的基本信息",visible:e.appidDrawerVisible,"append-to-body":!0,"before-close":function(){return e.handleClose("appidDrawerVisible")}}},[i("GetAppIDDemo")],1),i("el-drawer",{staticClass:"mini-page-drawer",attrs:{title:"获取小程序的页面路径",visible:e.miniPageDrawerVisible,"append-to-body":!0,"before-close":function(){return e.handleClose("miniPageDrawerVisible")}}},[i("GetPageUrlDemo")],1)],1)},I=[],E=i("3ea6"),O=i("e6b3"),B={name:"AddMiniAppForm",components:{GetAppIDDemo:E["default"],GetPageUrlDemo:O["default"]},props:{form:{type:Object,default:function(){}},limitFileName:{type:Number,default:null},placeholder:{type:String,default:""}},data:function(){return{appidDrawerVisible:!1,miniPageDrawerVisible:!1}},methods:{openDrawer:function(e){this[e]=!0},handleClose:function(e){this[e]=!1}}},L=B,D=(i("f01f"),Object(h["a"])(L,S,I,!1,null,"2932087d",null)),M=D.exports,N=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form-item",{attrs:{label:"文件",prop:"materialUrl"}},[e.form.materialUrl?i("div",{staticClass:"preview-file"},[i("div",{staticClass:"left"},[i("div",{staticClass:"title intwoline"},[e._v(e._s(e.form.materialName))]),i("div",{staticClass:"desc"},[e._v(e._s(e.getFileSize(e.form.content)))])]),i("div",{staticClass:"right"},[i("svg",{staticClass:"icon",attrs:{"aria-hidden":"true",width:"50",height:"50"}},[i("use",{attrs:{"xlink:href":"#icon-"+e.getFileIconClass}})])]),i("i",{staticClass:"el-icon-circle-close",on:{click:e.removeFile}})]):i("upload",{staticClass:"upload-div",attrs:{"file-url":e.form.materialUrl,"file-name":e.form.materialName,"upload-txt":"上传文件",file:e.uploadFile,"only-show-file-name":!0,type:e.MEDIA_TYPE_FILE,"limit-file-name":e.limitFileName},on:{"update:fileUrl":function(t){return e.$set(e.form,"materialUrl",t)},"update:file-url":function(t){return e.$set(e.form,"materialUrl",t)},"update:fileName":function(t){return e.$set(e.form,"materialName",t)},"update:file-name":function(t){return e.$set(e.form,"materialName",t)},"update:file":function(t){e.uploadFile=t}}},[i("div",{attrs:{slot:"tip"},slot:"tip"},[e._v(" 支持doc、pdf、ppt等格式,文件大小不超过20M ")])])],1)},j=[],P=i("cf45"),U=i("d443"),F={name:"AddFileForm",components:{Upload:U["a"]},props:{form:{type:Object,default:function(){}},removeFile:{type:Function,default:function(){}},limitFileName:{type:Number,default:null}},data:function(){return{uploadFile:{},MEDIA_TYPE_FILE:l["Zb"]}},computed:{getFileIconClass:function(){return Object(P["z"])(this.form.materialUrl)}},watch:{uploadFile:function(e){var t=Object(s["a"])({},this.form);t.content=e.size,this.$emit("changeForm",t)}},methods:{getFileSize:function(e){return Object(P["x"])(e)}}},R=F,Q=(i("f8f0"),Object(h["a"])(R,N,j,!1,null,"6d2dec18",null)),H=Q.exports,z=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"imgLink-material"},[i("el-form-item",{attrs:{label:"地址",prop:"materialUrl"}},[i("el-input",{staticStyle:{width:"380px"},attrs:{placeholder:"请输入链接的访问地址",clearable:""},on:{change:e.sendWordsUrl},model:{value:e.form.materialUrl,callback:function(t){e.$set(e.form,"materialUrl",t)},expression:"form.materialUrl"}})],1),i("el-form-item",[i("el-radio-group",{on:{change:e.change},model:{value:e.isDefined,callback:function(t){e.isDefined=t},expression:"isDefined"}},[i("el-radio",{attrs:{label:e.DEFAULT_LINK}},[e._v("使用链接默认信息")]),i("el-radio",{attrs:{label:e.CUSTOM_LINK}},[e._v("自定义链接信息")])],1)],1),e.isDefined!==e.DEFAULT_LINK?i("div",[i("el-form-item",{attrs:{label:"标题",prop:"materialName"}},[i("el-input",{staticStyle:{width:"380px"},attrs:{placeholder:e.placeholder,type:"textarea",maxlength:e.LINK_TITLE_MAXLENGTH,"show-word-limit":""},model:{value:e.form.materialName,callback:function(t){e.$set(e.form,"materialName",t)},expression:"form.materialName"}})],1),i("el-form-item",{attrs:{label:"摘要",prop:"digest"}},[i("el-input",{staticStyle:{width:"380px"},attrs:{type:"textarea",placeholder:"请输入链接的摘要,默认是“"+e.IMG_LINK_DIGEST+"”",maxlength:e.LINK_CONTENT_MAXLENGTH,"show-word-limit":""},model:{value:e.form.digest,callback:function(t){e.$set(e.form,"digest",t)},expression:"form.digest"}})],1),i("el-form-item",{attrs:{label:"封面",prop:"coverUrl"}},[i("upload",{attrs:{"file-url":e.form.coverUrl,type:"0","upload-tip":"上传封面","show-remove-file-icon":!0},on:{"update:fileUrl":function(t){return e.$set(e.form,"coverUrl",t)},"update:file-url":function(t){return e.$set(e.form,"coverUrl",t)}}},[i("div",{attrs:{slot:"tip"},slot:"tip"},[e._v(" 支持PNG、JPG格式,图片大小不超过2M,建议尺寸200*200 ")])])],1)],1):i("div",[i("el-form-item",[i("VerbalTrickImgLink",{attrs:{title:e.form.materialName,content:e.form.digest,"cover-url":e.form.coverUrl}})],1)],1)],1)},q=[],G=(i("9911"),i("7d08")),$=i("9543"),V={name:"AddImgLinkForm",components:{VerbalTrickImgLink:G["default"]},props:{form:{type:Object,default:function(){}},placeholder:{type:String,default:""}},data:function(){return{LINK_TITLE_MAXLENGTH:l["Pb"],LINK_CONTENT_MAXLENGTH:l["Ob"],DEFAULT_LINK:l["L"],CUSTOM_LINK:l["D"],IMG_LINK_DIGEST:l["Cb"],DEFAULT_IMG:l["K"],isDefined:l["L"]}},watch:{"form.isDefined":{handler:function(e){this.isDefined=void 0===e?l["L"]:e},deep:!0}},methods:{change:function(e){this.$set(this.form,"isDefined",e)},sendWordsUrl:function(){var e=this;this.form.materialUrl&&!this.isDefined&&Object($["d"])({url:this.form.materialUrl}).then((function(t){var i,a;if(e.$set(e.form,"digest",null===(i=t.data)||void 0===i||null===(i=i.desc)||void 0===i?void 0:i.substring(0,l["Ob"])),e.$set(e.form,"materialName",null===(a=t.data)||void 0===a||null===(a=a.title)||void 0===a?void 0:a.substring(0,l["Pb"])),!t.data.isUrl&&t.data.image){var n=4;if("data"===t.data.image.substring(0,n))return void(e.radarLink.coverUrl=l["K"].link);var r=e.form.materialUrl.split("/"),s="https://"+r[2]+("/"!==t.data.image[0]?"/":"")+t.data.image;e.$set(e.form,"coverUrl",s)}else e.$set(e.form,"coverUrl",t.data.image)}))}}},Y=V,K=(i("8231"),Object(h["a"])(Y,z,q,!1,null,"4c01b3c8",null)),W=K.exports,X=i("e350"),J=i("52a9"),Z=i("a125"),ee=i.n(Z),te=i("aada"),ie=i("f9d1"),ae=32,ne=3,re=7,se={name:"MaterialAddModal",components:{SelectTagModal:u["default"],AddPosterForm:g,AddVideoForm:T,AddFileForm:H,AddMiniAppForm:M,AddImgLinkForm:W,RequestButton:J["a"],SelectTag:te["a"]},props:{form:{type:Object,default:function(){}},type:{type:String,default:"0"},showMaterialSave:{type:Boolean,default:!1},showMaterialSetting:{type:Boolean,default:!1},modalTitle:{type:String,default:""},visible:{type:Boolean,default:!1},getList:{type:Function,default:function(){}},isOperatingMaterial:{type:Boolean,default:!0},hideVideoCover:{type:Boolean,default:!1}},data:function(){return{RADAR_TYPE:l["Qc"],limitFileName:ae,MEDIA_TYPE_POSTER:l["cc"],MEDIA_TYPE_AUDIO:l["Yb"],MEDIA_TYPE_VIDEO:l["gc"],MEDIA_TYPE_FILE:l["Zb"],MEDIA_TYPE_MINIAPP:l["bc"],MEDIA_TYPE_IMGLINK:l["ac"],IMG_LINK_DIGEST:l["Cb"],titlePlaceholder:Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])({},l["cc"],"请输入海报标题,不填写则默认取文件名"),l["gc"],"请输入视频标题,不填写则默认取文件名"),l["Zb"],"请输入文件标题,不填写则默认取文件名"),l["bc"],"请输入小程序的标题"),l["ac"],"请输入链接的标题"),pickerOptions:{shortcuts:[{text:"明天",onClick:function(e){var t=new Date;t.setTime(t.getTime()+l["Ec"]*l["tc"]*l["Cc"]),e.$emit("pick",t)}},{text:"3天后",onClick:function(e){var t=new Date;t.setTime(t.getTime()+l["Ec"]*l["tc"]*l["Cc"]*ne),e.$emit("pick",t)}},{text:"一周后",onClick:function(e){var t=new Date;t.setTime(t.getTime()+l["Ec"]*l["tc"]*l["Cc"]*re),e.$emit("pick",t)}}],disabledDate:function(e){return e.getTime()+l["Ec"]*l["tc"]*l["Cc"]<Date.now()}},dialogVisible:!1,rules:{materialName:[{required:!0,message:"该项为必填项",trigger:"blur"}],materialUrl:[{required:!0,message:"该项为必填项",trigger:"blur"}]},miniAppRules:{appid:[{required:!0,message:"该项为必填项",trigger:"blur"}],accountOriginalId:[{required:!0,message:"该项为必填项",trigger:"blur"}],materialUrl:[{required:!0,message:"该项为必填项",trigger:"blur"}],materialName:[{required:!0,message:"该项为必填项",trigger:"blur"}],coverUrl:[{required:!0,message:"该项为必填项",trigger:"blur"}]},imgLinkRules:{materialUrl:[{required:!0,message:"该项为必填项",trigger:"blur"}],materialName:[{required:!0,message:"该项为必填项",trigger:"blur"}]},selectedTagIdList:[],radarType:l["Qc"]["enterprise"],radarFormRules:{radarTitle:[{required:!0,message:"该项为必填项",trigger:"blur"}]},radarForm:{radarTitle:"",enableClickNotice:!1,enableBehaviorRecord:!1,enableCustomerTag:!1,enableUpdateNotice:!1},customerTags:[],dialogVisibleSelectTag:!1,removeTagList:[],isRadarLink:!1}},computed:{isAdmin:function(){return this.$store.state.user.isSuperAdmin},formRules:function(){var e=this.rules;switch(this.type){case l["bc"]:e=this.miniAppRules;break;case l["ac"]:e=this.imgLinkRules;break}return e},Pvisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}},materialOptions:function(){return this.$store.state.materialInfo.allTagObj&&Object.values(this.$store.state.materialInfo.allTagObj)},formTagList:function(){var e=[],t=this.$store.state.materialInfo.allTagObj;return this.form.tagList&&this.form.tagList.map((function(i){t[i.materialTagId]&&e.push({id:i.materialTagId,tagName:t[i.materialTagId].tagName})})),e}},watch:{visible:function(e){e&&(this.selectedTagIdList=this.dealTagIdList())},"form.enableConvertRadar":function(e){this.isRadarLink=e}},created:function(){},mounted:function(){var e=Object(s["a"])(Object(s["a"])({},this.form),{},{showMaterial:!0});this.$emit("update:form",e),this.selectedTagIdList=this.dealTagIdList()},methods:{submitSelectTag:function(e){var t=ee()(this.customerTags,e,"tagId");this.customerTags=Object(r["a"])(e),this.dialogVisibleSelectTag=!1,t=this.removeTagList.concat(t),this.removeTagList=t},closeTag:function(e,t){this.customerTags.splice(t,1),this.removeTagList.push(e)},onFocus:function(e){this.dialogVisible=!0},submitSelectTags:function(e){this.dialogVisible=!1;var t=[];e.map((function(e){t.push(e.id)})),this.selectedTagIdList=t},removeFile:function(){var e=Object(s["a"])(Object(s["a"])({},this.form),{},{materialUrl:""});this.$emit("update:form",e)},submit:function(){var e=this;this.$refs["form"].validate((function(t){var i;if(!t)return Object(P["i"])(e.$store,"submit");var a=JSON.parse(JSON.stringify(e.form)),n=Object(s["a"])(Object(s["a"])({},a),{},{mediaType:e.type,tagIdList:e.selectedTagIdList,categoryId:(null===e||void 0===e||null===(i=e.$store)||void 0===i||null===(i=i.state)||void 0===i||null===(i=i.materialInfo)||void 0===i||null===(i=i.categoryInfo[e.type])||void 0===i?void 0:i.id)||""});if(n.mediaType===l["ac"]&&(n.digest=a.digest||l["Cb"],n.isDefined=e.$refs.imgLink.isDefined),!n.materialName)return Object(P["i"])(e.$store,"submit"),e.msgInfo("请填写链接标题");if(Object(X["a"])(["wechat:material:publish"])||(n.showMaterial=!1),e.isRadarLink&&!a.enableConvertRadar){if(!e.radarForm.radarTitle)return Object(P["i"])(e.$store,"submit"),e.msgInfo("请填写雷达标题");n.enableConvertRadar=e.isRadarLink;var r=n.isDefined,o=n.materialName,u=n.materialUrl,d=n.coverUrl,p=n.digest,f=Object(s["a"])(Object(s["a"])({},e.radarForm),{},{radarTagList:e.customerTags.map((function(e){return{tagId:e.tagId}})),type:e.radarType,weRadarUrl:{isDefined:r,title:o,url:u,coverUrl:d,content:p}});Object(ie["b"])(f)}e.isOperatingMaterial?(a.id?c["p"]:c["a"])(n).then((function(){e.msgSuccess("操作成功"),a.id?e.getList():e.getList({mediaType:n.mediaType}),e.$refs["form"].resetFields()})).finally((function(){Object(P["i"])(e.$store,"submit"),e.Pvisible=!1})):(e.$refs["form"].resetFields(),e.Pvisible=!1,n.saveToMaterial?Object(c["a"])(n).then((function(){e.$emit("submit",n)})).finally((function(){Object(P["i"])(e.$store,"submit")})):(Object(P["i"])(e.$store,"submit"),e.$emit("submit",n,n.saveToMaterial)))}))},closeModal:function(){this.Pvisible=!1},dealTagIdList:function(){var e=this,t=[];return this.form.tagList&&this.form.tagList.map((function(i){var a;null!==(a=e.$store.state)&&void 0!==a&&null!==(a=a.materialInfo)&&void 0!==a&&a.allTagObj[i.materialTagId]&&t.push(i.materialTagId)})),t},changeShowMaterial:function(){var e=Object(s["a"])(Object(s["a"])({},this.form),{},{showMaterial:!0});this.$emit("update:form",e)},changeForm:function(e){this.$emit("update:form",Object(s["a"])({},e))},confirmTime:function(e){e&&new Date(e).getTime()<(new Date).getTime()&&this.msgWarn("过期时间不能小于当前时间")}}},oe=se,le=(i("9489"),Object(h["a"])(oe,a,n,!1,null,"4af6909a",null));t["default"]=le.exports},"649b":function(e,t,i){},"649ee":function(e,t,i){},"64d2":function(e,t,i){"use strict";i("992a")},"652d":function(e,t,i){},"65d2":function(e,t,i){},6604:function(e,t,i){},"660c":function(e,t,i){e.exports=i.p+"static/img/mobile-step-1-1.cfc1aeab.png"},6636:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return"cw"===e.qdTemplate?i("div",{staticClass:"top-body"},[i("div",{staticClass:"top"},[e._m(0),i("div",{staticClass:"jwxtb"},[e._v("长按下方二维码呦")]),i("img",{attrs:{width:"250px",height:"250px",src:this.imgUrl}}),e._m(1)])]):i("div",{staticStyle:{width:"100%",height:"100%","background-color":"#1d3274"}},[e._m(2),i("div",{staticStyle:{width:"100%",height:"400px","margin-left":"auto","margin-right":"auto","margin-top":"30px","text-align":"center"}},[i("img",{attrs:{width:"70%",height:"70%",src:this.imgUrl}}),i("div",{staticStyle:{"margin-top":"20px"}},[i("svg",{staticClass:"icon",attrs:{t:"1717379750201",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4279",width:"100",height:"100"}},[i("path",{attrs:{d:"M1024.000683 238.8992V15.581867C1024.000683 6.980267 1008.504149 0 999.936683 0H791.228416a15.5648 15.5648 0 0 0 0 31.146667h186.129067c8.584533 0 15.530667 6.997333 15.530666 15.581866v192.290134A15.5648 15.5648 0 0 0 1024.000683 238.8992z m-31.0784 738.372267a15.5648 15.5648 0 0 1-15.530667 15.581866H791.228416a15.5648 15.5648 0 0 0 0 31.146667H1008.470016c8.584533 0 15.547733-6.980267 15.547733-15.581867V789.845333a15.5648 15.5648 0 0 0-15.530666-15.581866 15.5648 15.5648 0 0 0-15.547734 15.581866v187.426134zM15.531349 254.464A15.5648 15.5648 0 0 1 0.000683 238.8992V15.581867C0.000683 6.980267 6.963883 0 15.531349 0h217.224534a15.5648 15.5648 0 0 1 0 31.146667H46.507349a15.5648 15.5648 0 0 0-15.547733 15.581866v192.290134a15.36 15.36 0 0 1-15.4112 15.4624z m15.4112 535.364267v187.426133c0 8.6016 6.9632 15.581867 15.530667 15.581867H232.619349a15.5648 15.5648 0 0 1 0 31.146666H15.531349a15.5648 15.5648 0 0 1-15.530666-15.581866V789.845333a15.4624 15.4624 0 1 1 30.958933 0zM248.900949 529.408c4.078933 0 7.406933-4.608 7.406934-10.205867v-0.119466c0-188.637867 112.401067-342.1184 250.453333-342.1184 138.069333 0 250.4704 153.480533 250.4704 342.1184v0.119466c0 5.597867 3.328 10.1888 7.406933 10.1888h7.406934c4.096 0 7.406933-4.471467 7.406933-10.069333v-0.238933c0-99.5328-28.398933-193.109333-79.906133-263.458134-51.490133-70.331733-119.995733-109.1072-192.8704-109.1072-72.874667 0-141.397333 38.775467-192.887467 109.1072-51.490133 70.3488-79.906133 163.925333-79.906133 263.458134v0.256c0 5.5808 3.328 10.069333 7.406933 10.069333h7.611733z",fill:"#1296db","p-id":"4280"}}),i("path",{attrs:{d:"M316.928683 529.408a478.941867 478.941867 0 0 1-0.187734-11.690667c0-144.401067 85.981867-261.973333 191.726934-261.973333 105.762133 0 191.744 117.4528 191.744 261.973333 0 3.976533-0.085333 7.8336-0.170667 11.6736h20.992c0.085333-3.84 0.170667-7.816533 0.170667-11.6736 0-160.187733-95.3856-290.679467-212.736-290.679466-117.333333 0-212.736 130.372267-212.736 290.679466 0 3.976533 0.1024 7.8336 0.187733 11.6736h20.992z",fill:"#1296db","p-id":"4281"}}),i("path",{attrs:{d:"M375.825749 529.408c3.515733-98.440533 63.2832-177.1008 136.260267-177.1008 69.7344 0 127.505067 71.953067 135.492267 164.283733 0.6656 7.2192 5.034667 12.8 10.4448 12.8 6.280533 0 11.2128-7.5776 10.461866-16.0256-9.216-106.615467-75.8272-189.764267-156.296533-189.764266-84.565333 0-153.736533 91.477333-157.252267 205.789866h20.8896z",fill:"#1296db","p-id":"4282"}}),i("path",{attrs:{d:"M447.864149 529.408c-0.1024-1.621333-0.1024-3.362133-0.1024-4.983467 0-46.967467 27.938133-85.248 62.327467-85.248s62.327467 38.280533 62.327467 85.248c0 1.7408 0 3.362133-0.085334 4.9664h20.992c0.1024-1.604267 0.1024-3.345067 0.1024-4.949333 0-62.7712-37.444267-113.9712-83.421866-113.9712-45.994667 0-83.438933 51.080533-83.438934 113.954133 0 1.7408 0 3.362133 0.1024 4.9664h21.1968z m-159.829333 231.253333c-3.413333 0-6.741333-2.0992-8.925867-5.973333-3.515733-6.4512-2.474667-15.394133 2.474667-19.985067 70.690133-66.986667 73.0624-204.1856 73.0624-205.550933 0.1024-7.8336 4.949333-14.165333 10.922667-14.165333h0.187733c6.0928 0.119467 10.922667 6.587733 10.837333 14.5408-0.1024 6.212267-2.474667 152.849067-82.193066 228.4032a9.079467 9.079467 0 0 1-6.365867 2.730666z m-26.965333-90.453333c-3.618133 0-7.236267-2.372267-9.3184-6.724267-3.242667-6.7072-1.706667-15.530667 3.515733-19.7632 42.666667-34.9184 40.277333-112.708267 40.277333-113.578666-0.290133-7.953067 4.369067-14.677333 10.4448-15.035734 6.0928-0.375467 11.2128 5.717333 11.502934 13.6704 0.187733 3.857067 2.850133 95.4368-50.551467 139.3152a10.120533 10.120533 0 0 1-5.888 2.0992z",fill:"#1296db","p-id":"4283"}}),i("path",{attrs:{d:"M333.261483 815.104c-3.413333 0-6.741333-1.9968-8.823467-5.853867-3.618133-6.4512-2.474667-15.394133 2.372267-20.002133 95.573333-91.3408 99.3792-258.3552 99.4816-259.976533 0.085333-7.953067 5.12-14.165333 11.2128-14.045867 6.075733 0.136533 10.820267 6.724267 10.734933 14.677333 0 1.860267-0.853333 46.353067-14.5408 103.389867-18.141867 75.9296-50.6368 137.813333-93.866667 179.2a10.615467 10.615467 0 0 1-6.570666 2.6112z m68.608 42.24c-2.7648 0-5.410133-1.365333-7.594667-3.976533-4.386133-5.461333-4.573867-14.5408-0.392533-20.241067 51.592533-70.485333 75.639467-146.261333 86.664533-197.358933 12.066133-55.671467 11.776-95.1808 11.776-95.573334v-43.485866c0-7.953067 4.949333-14.2848 10.922667-14.2848 5.9904 0 10.922667 6.468267 10.922666 14.2848v43.127466c0 3.106133 0.1024 44.117333-12.4416 102.519467-11.690667 54.562133-37.239467 135.458133-92.16 210.517333a9.079467 9.079467 0 0 1-7.697066 4.471467z m74.769066 20.0192c-3.1232 0-6.161067-1.7408-8.362666-5.102933-3.8912-6.0928-3.310933-15.018667 1.245866-20.258134 83.712-92.945067 102.912-323.4816 103.082667-325.8368 0.682667-7.8336 5.9904-13.653333 12.066133-12.8 5.9904 0.8704 10.461867 7.8336 9.796267 15.786667-0.187733 2.474667-5.034667 61.508267-20.821333 133.461333-21.469867 97.792-51.677867 168.891733-89.873067 211.268267a9.403733 9.403733 0 0 1-7.133867 3.4816z m87.330134 1.604267a9.762133 9.762133 0 0 1-7.799467-4.334934c-4.266667-5.717333-4.181333-14.7968 0.187733-20.258133 69.2736-88.746667 82.295467-239.223467 82.3808-240.725333 0.682667-7.816533 6.0928-13.533867 12.066134-12.8 5.9904 0.8704 10.359467 7.953067 9.796266 15.786666-0.580267 6.587733-14.062933 162.304-88.849066 258.116267-2.269867 2.986667-5.034667 4.215467-7.7824 4.215467zM648.534016 839.082667a9.079467 9.079467 0 0 1-6.365867-2.730667c-4.949333-4.608-6.0928-13.550933-2.56-20.002133 49.117867-89.975467 59.8528-284.962133 59.938134-286.958934 0.392533-7.953067 5.614933-13.909333 11.690666-13.294933 6.075733 0.512 10.6496 7.338667 10.171734 15.291733-0.477867 8.328533-11.2128 205.038933-63.9488 301.738667-2.082133 3.976533-5.512533 5.956267-8.925867 5.956267z",fill:"#1296db","p-id":"4284"}})]),i("br"),i("br"),i("span",{staticStyle:{"margin-top":"5px",color:"white","font-size":"20px"}},[e._v("「 长按识别二维码 」")]),i("br"),i("br"),i("span",{staticStyle:{"margin-top":"5px",color:"white","font-size":"15px"}},[e._v("添加老师进入直播间课程")])])])])},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"title"},[i("p",[e._v("开通直播课,还需一步")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"text"},[i("p",[e._v("长按图片,识别二维码")]),i("p",{staticClass:"col two",staticStyle:{"padding-top":"20px"}},[e._v("加我好友,获取直播入口")]),i("p",{staticClass:"two",staticStyle:{"padding-top":"20px"}},[e._v("并"),i("span",{staticClass:"col"},[e._v("开通")]),e._v('"财税系列直播课"'),i("span",{staticClass:"col"},[e._v("永久性免费")]),e._v("观看权限")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{"margin-left":"auto","margin-right":"auto","margin-top":"80px","padding-top":"15px",width:"80%",height:"100px","background-color":"#ecf3f9","border-radius":"15px","text-align":"center"}},[i("p",[i("b",{staticStyle:{"font-size":"20px",color:"#35578d"}},[e._v("为支持税局数电票推广考核工作")])]),i("div",{staticStyle:{"margin-top":"20px",color:"#35578d","font-size":"17px"}},[i("span",{staticStyle:{"padding-top":"20px"}},[e._v("请您长按识别二维码添加数电票老师")])])])}],r={name:"Increase",data:function(){return{imgUrl:null,qdTemplate:null,iconZ:null,queryParams:{pageNum:1,pageSize:10},form:{},rules:{}}},created:function(){this.getUrl()},methods:{reset:function(){this.form={}},getUrl:function(){this.imgUrl=this.$route.query.msgUrl,this.qdTemplate=this.$route.query.qdTemplate}}},s=r,o=(i("9873"),i("2877")),l=Object(o["a"])(s,a,n,!1,null,"c86a425c",null);t["default"]=l.exports},6666:function(e,t,i){},6680:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.enterPriseWechatConfig[e.chatSecret]?i("div",{staticClass:"security"},[i("el-radio-group",{staticClass:"radio-group-div",attrs:{size:"medium"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-radio-button",{attrs:{label:"msg"}},[e._v("敏感消息")]),i("el-radio-button",{attrs:{label:"action"}},[e._v("敏感行为")])],1),"msg"===e.activeName?i("sensitive-list"):e._e(),"action"===e.activeName?i("alarming-sensitive"):e._e()],1):i("UnconfigConversation",{attrs:{"module-tile":"消息审计","module-desc":"设置敏感词,当监测到员工发送不文明用语等,主动向审计人员发出提醒,及时止损","config-alert-tip":"当前企业还未开通/配置【会话存档】功能,无法使用消息审计功能",icon:e.unconfigIcon}})},n=[],r=i("d730"),s=i("d0f2"),o=i("3cc7"),l=i("dd70"),c=i("b18f"),u=i.n(c),d={components:{sensitiveList:s["default"],alarmingSensitive:r["default"],UnconfigConversation:o["default"]},data:function(){return{activeName:"msg",enterPriseWechatConfig:this.$store.state.enterPriseWechatConfig,chatSecret:l["o"],unconfigIcon:u.a}}},p=d,f=(i("e298"),i("2877")),A=Object(f["a"])(p,a,n,!1,null,"b141a416",null);t["default"]=A.exports},"66c4":function(e,t,i){"use strict";i("2472")},6701:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"alarming-manage-div"},e._l(e.data,(function(t,a){return i("div",{key:a,staticClass:"alarming-item"},[i("div",{staticClass:"img"},[i("img",{attrs:{src:e.renderCover(t)}})]),i("div",{staticClass:"content"},[i("div",{staticClass:"title"},[e._v(e._s(t.actName))]),i("div",[i("el-switch",{attrs:{"active-value":1,"inactive-value":2},on:{change:function(i){return e.handleStatusChange(t)}},model:{value:t.enableFlag,callback:function(i){e.$set(t,"enableFlag",i)},expression:"item.enableFlag"}})],1)])])})),0)},n=[],r=i("f8cf"),s=i.n(r),o=i("3c6c"),l=i.n(o),c=i("c745"),u=i.n(c),d={components:{},props:{data:{type:Array,default:function(){return[]}},handleStatusChange:{type:Function,default:function(){}}},data:function(){return{}},mounted:function(){},methods:{renderCover:function(e){var t=u.a;switch(e.actName){case"拉黑/删除客户":t=s.a;break;case"员工/客户发送红包":t=l.a;break;case"员工发送名片":t=u.a;break}return t}}},p=d,f=(i("ada3"),i("2877")),A=Object(f["a"])(p,a,n,!1,null,"7559aab8",null);t["default"]=A.exports},6735:function(e,t,i){},"675d":function(e,t,i){"use strict";i("2a57")},"677a":function(e,t,i){e.exports=i.p+"static/img/user-code-example.5d5e1012.jpg"},"677e":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-drawer",{attrs:{"append-to-body":!0,title:"获客助手使用指引",visible:e.Pvisible,size:"780px","wrapper-closable":!0},on:{"update:visible":function(t){e.Pvisible=t}}},[a("div",{staticClass:"draw-body"},[a("div",{staticClass:"tips"},[a("span",[e._v(" 获客助手为企业微信官方能力,EasyInk仅提供API接入能力,满足企业更复杂、个性化的获客需求,获客助手申请和额度购买均需在企业微信后台完成,更多说明见 "),a("el-link",{staticClass:"hyperlink",attrs:{type:"primary",href:"https://doc.weixin.qq.com/doc/w3_AJEAgwZ_ACcP9hjGbh1TWKZ3UYtB0",target:"_blank"}},[e._v("官方介绍")]),e._v("。 当前仅申请白名单的企业方可使用获客助手, "),a("el-link",{staticClass:"hyperlink",attrs:{type:"primary",href:"https://doc.weixin.qq.com/forms/AJEAIQdfAAoAJEAgwZ_ACc6l1c1NYlSIf#/fill",target:"_blank"}},[e._v("点击申请")])],1),a("div",{staticClass:"mt5"},[e._v(" 获客助手申请成功后,请按照以下步骤完成配置。 ")])]),a("div",{staticClass:"draw-body-step"},[a("div",{staticClass:"draw-body-title"},[e._v("一、开启API授权")]),e.isThirdApplication?a("div",{staticClass:"draw-body-content"},[e._v(" 进入 "),a("el-link",{staticClass:"hyperlink",attrs:{type:"primary",href:"https://work.weixin.qq.com/wework_admin/frame#/customer/customerAcquisition/index",target:"_blank"}},[e._v("【工具】-【获客助手】")]),e._v(' ,点击"管理授权"按钮,点击“可调用应用”的设置按钮,同意授权“联络易助手”。 '),a("el-image",{staticClass:"part-img",attrs:{src:i("8bb4"),"preview-src-list":[i("8bb4")]}})],1):a("div",{staticClass:"draw-body-content"},[e._v(" 进入 "),a("el-link",{staticClass:"hyperlink",attrs:{type:"primary",href:"https://work.weixin.qq.com/wework_admin/frame#customer/analysis",target:"_blank"}},[e._v("【客户联系】-【客户】")]),e._v(' ,点击"API"展开按钮,点击“可调用应用”的设置按钮,勾选应用“easyInk”即可。 '),a("el-image",{staticClass:"part-img",attrs:{src:i("2453"),"preview-src-list":[i("2453")]}})],1)]),a("div",{staticClass:"draw-body-step"},[a("div",{staticClass:"draw-body-title"},[e._v("二、创建获客链接")]),a("div",{staticClass:"draw-body-content"},[e._v("在EasyInk上,点击“新增链接”,设置链接下的成员和欢迎语等信息,保存。 "),a("el-image",{staticClass:"part-img",attrs:{src:i("2042"),"preview-src-list":[i("2042")]}})],1)]),a("div",{staticClass:"draw-body-step"},[a("div",{staticClass:"draw-body-title"},[e._v("三、投放链接")]),a("div",{staticClass:"draw-body-content"},[e._v("复制获客链接,投放到App、公众号等渠道,用户点击后,直接跳转到微信添加好友界面。 "),a("div",{staticClass:"aic"},[a("el-image",{staticClass:"part-three",attrs:{src:i("ef81"),"preview-src-list":[i("ef81")]}}),a("i",{staticClass:"el-icon-d-arrow-right"}),a("el-image",{staticClass:"part-three",attrs:{src:i("ade1"),"preview-src-list":[i("ade1")]}})],1)])])])])},n=[],r=i("dd70"),s={props:{visible:{type:Boolean,default:!1}},computed:{Pvisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}},isThirdApplication:function(){return this.$store.state.serverInfo&&this.$store.state.serverInfo.serverType===r["bd"]}}},o=s,l=(i("e928"),i("2877")),c=Object(l["a"])(o,a,n,!1,null,"b8bd8828",null);t["default"]=c.exports},"67b3":function(e,t,i){e.exports=i.p+"static/img/page-url-demo-2-1.a9787d32.png"},"67dc":function(e,t,i){"use strict";i("6935")},"67e7":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("RightContainer",{attrs:{"config-keys":["contactSecret"],"page-title":"管理离职员工"},scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{inline:!0,model:e.query,"label-width":"100px",size:"small"}},[i("el-form-item",{attrs:{prop:"name"}},[i("el-input",{attrs:{placeholder:"请输入客户名称"},model:{value:e.query.name,callback:function(t){e.$set(e.query,"name",t)},expression:"query.name"}})],1),i("el-form-item",[i("div",{staticClass:"tag-input",on:{click:function(t){e.dialogVisibleSelectUser=!0}}},[e.queryUser.length?e._l(e.queryUser,(function(t,a){return i("el-tag",{key:a,attrs:{type:"info"}},[e._v(e._s(t.name))])})):i("span",{staticClass:"tag-place"},[e._v("请选择员工")])],2)]),i("el-form-item",[i("div",{staticClass:"tag-input",on:{click:function(t){return e.showTagDialog("queryTag")}}},[e.queryTag.length?e._l(e.queryTag,(function(t,a){return i("el-tag",{key:a,attrs:{type:"info"}},[e._v(e._s(t.name))])})):i("span",{staticClass:"tag-place"},[e._v("请选择标签")])],2)]),i("el-form-item",[i("el-date-picker",{attrs:{type:"daterange","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions,"range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),i("el-form-item",{attrs:{label:" "}},[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.getList(1)}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetForm()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"operate-btn",fn:function(){return[i("el-popover",{attrs:{placement:"bottom-end",width:"405",trigger:"manual"},model:{value:e.showLoss,callback:function(t){e.showLoss=t},expression:"showLoss"}},[i("div",{staticClass:"wrap-body-form loss-set"},[i("el-form",{ref:"form",staticClass:"form",attrs:{model:e.lossFrom,"label-width":"70px"}},[i("el-form-item",{attrs:{label:"流失提醒"}},[i("div",[i("el-switch",{staticClass:"ml10 mr10",attrs:{"active-value":"1","inactive-value":"0","inactive-color":"#DDD"},model:{value:e.lossFrom.customerChurnNoticeSwitch,callback:function(t){e.$set(e.lossFrom,"customerChurnNoticeSwitch",t)},expression:"lossFrom.customerChurnNoticeSwitch"}}),i("span",{staticClass:"we-emple-code-tags-tip"},[e._v("开启后,客户将员工删除,员工将收到应用通知")])],1)]),i("el-form-item",{attrs:{label:"客户标签"}},[i("div",[i("el-switch",{staticClass:"ml10 mr10",attrs:{"active-value":"1","inactive-value":"0","inactive-color":"#DDD"},model:{value:e.lossFrom.customerLossTagSwitch,callback:function(t){e.$set(e.lossFrom,"customerLossTagSwitch",t)},expression:"lossFrom.customerLossTagSwitch"}}),i("span",{staticClass:"we-emple-code-tags-tip"},[e._v("开启后,为删除员工的客户打上客户标签")])],1)]),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.lossFrom.customerLossTagSwitch===e.IS_OPEN,expression:"lossFrom.customerLossTagSwitch === IS_OPEN"}],attrs:{label:"",prop:"customerTags"}},[i("div",[i("el-button",{staticClass:"mr10",attrs:{icon:"el-icon-plus",size:"mini"},on:{click:function(t){return e.showTagDialog("customerTags")}}},[e._v("添加标签")]),e._l(e.customerTags,(function(t,a){return i("el-tag",{key:t.tagId,attrs:{size:"medium",closable:""},on:{close:function(i){return e.closeTag(t,a)}}},[e._v(e._s(t.tagName||t.name))])}))],2)])],1),i("div",{staticClass:"confirm-btn-div"},[i("el-button",{on:{click:function(t){e.showLoss=!1}}},[e._v("取消")]),i("RequestButton",{attrs:{type:"primary","button-type":"save","request-method":e.saveLossTag}},[e._v("确定")])],1)],1),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wechat:corp:loss:setting"],expression:"['wechat:corp:loss:setting']"}],attrs:{slot:"reference"},on:{click:e.setLoss},slot:"reference"},[e._v("流失设置")])],1),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:lossRemind:export"],expression:"['customerManage:lossRemind:export']"}],staticClass:"btn-reset",on:{click:function(t){return e.exportCustomer("customerManage:lossRemind:export")}}},[e._v("导出列表")])]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.list,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{text:"暂无数据"}})],1),i("el-table-column",{attrs:{type:"selection",align:"center",width:"55"}}),i("el-table-column",{attrs:{label:"客户",prop:"name",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",{staticClass:"customer-info cp",on:{click:function(t){return e.goRoute(a)}}},[i("img",{attrs:{src:a.avatar}}),i("div",{staticClass:"customer-name"},[i("div",{staticClass:"inoneline",attrs:{title:(a.remark||a.name||a.alias)+e.renderUserInfo(a,"type")}},[i("span",[e._v(e._s(a.remark||a.name||a.alias))]),i("span",{class:a.type===e.wxType?"wx-type-flag":"corp-type-name"},[e._v(" "+e._s(e.renderUserInfo(a,"type"))+" ")])]),i("div",{staticClass:"customer-real-name inoneline",attrs:{title:a.name}},[e._v(e._s(a.name))])])])]}}])}),i("el-table-column",{attrs:{prop:"createTime",label:"添加时间",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.createTime))]}}])}),i("el-table-column",{attrs:{prop:"userName",label:"所属员工",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",{staticClass:"al"},[i("div",{staticClass:"cus-owner"},[e._v(e._s(a.userName))]),i("div",{staticClass:"cus-dept"},[e._v(e._s(a.department))])])]}}])}),i("el-table-column",{attrs:{prop:"address",label:"标签",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.weFlowerCustomerTagRels,(function(t,a){return i("el-tag",{key:a,attrs:{type:"info"}},[e._v(e._s(t.tagName))])}))}}])}),i("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:lossRemind:view"],expression:"['customerManage:lossRemind:view']"}],attrs:{type:"text",size:"small"},on:{click:function(i){return e.goRoute(t.row)}}},[e._v("详情")])]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,disabled:e.loading,page:e.query.pageNum,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}}),i("SelectTag",{attrs:{visible:e.dialogVisibleSelectTag,selected:e.tagDialogType.selected,title:e.tagDialogType.title,type:e.tagDialogType.type,"info-msg":e.tagDialogType.infoMsg,"is-show-add":e.tagDialogType.isShowAdd},on:{"update:visible":function(t){e.dialogVisibleSelectTag=t},success:e.tagDialogType.successFn}}),i("SelectUser",{attrs:{visible:e.dialogVisibleSelectUser,title:"选择添加人","selected-user-list":e.queryUser},on:{"update:visible":function(t){e.dialogVisibleSelectUser=t},success:e.selectedUser}})]},proxy:!0}])})},n=[],r=i("2909"),s=i("5530"),o=(i("99af"),i("d81d"),i("a434"),i("b0c0"),i("b64b"),i("d3b7"),i("34e1")),l=i("b775"),c=window.CONFIG.services.wecom+"/lossTag";function u(e){return Object(l["a"])({url:c+"/addLossTag",method:"post",data:e})}function d(){return Object(l["a"])({url:c+"/selectLossTag",method:"get"})}var p=i("b66d"),f=i("e77d"),A=i("c958"),h=i("aada"),m=i("52a9"),g=i("ed08"),v=i("a125"),b=i.n(v),y=i("cf45"),_=i("dd70"),w=i("e753"),C=i("e2e0"),x="1",k={name:"LossRemind",components:{SelectUser:A["a"],SelectTag:h["a"],RightContainer:p["a"],EmptyDefaultIcon:f["a"],RequestButton:m["a"]},mixins:[C["a"]],props:{},data:function(){return{query:{pageNum:1,pageSize:_["Ic"],name:"",userIds:"",tagIds:"",beginTime:"",endTime:"",status:1},showLoss:!1,lossFrom:{customerChurnNoticeSwitch:"",customerLossTagSwitch:""},IS_OPEN:x,removeTagList:[],customerTags:[],queryTag:[],queryUser:[],dateRange:[],loading:!1,isMoreFilter:!1,total:0,list:[],listOrganization:[],multipleSelection:[],dialogVisibleSelectTag:!1,dialogVisibleSelectUser:!1,selectedGroup:"",removeTag:[],tagDialogType:{title:"",type:"",selected:[],isShowAdd:!1,infoMsg:"",successFn:function(){}},isNotice:"0",wxType:_["Cd"]}},computed:{},watch:{},created:function(){var e=this.$store.getters.searchQuery[this.$route.name];if(this.$store.getters.saveCondition&&Object.keys(e||{}).length){var t=e.beginTime,i=e.endTime;t&&i&&(this.dateRange=[t,i]),this.queryTag=e.queryTag,this.queryUser=e.queryUser,delete e.queryTag,delete e.queryUser,this.query=e}this.getList(),this.getLossRemindStatus(),this.$store.dispatch("app/setBusininessDesc","\n <div>客户将企业成员删除后,会生成一条流失记录。如需告知被删除的成员,则开启通知提醒</div>\n ")},mounted:function(){},methods:{getList:function(e){var t=this;this.dateRange?(this.query.beginTime=this.dateRange[0],this.query.endTime=this.dateRange[1]):(this.query.beginTime="",this.query.endTime=""),e&&(this.query.pageNum=e),this.loading=!0,Object(o["g"])(this.query).then((function(e){var i=e.rows,a=e.total;t.list=i,t.total=+a,t.multipleSelection=[]})).finally((function(){t.modifyButtonStatus(),t.loading=!1}))},getLossRemindStatus:function(){var e=this;Object(o["c"])().then((function(t){var i=t.data;e.lossFrom=i})),d().then((function(t){var i=t.data;e.customerTags=i.weTags}))},showTagDialog:function(e){this.tagDialogType="customerTags"===e?{title:"客户标签",type:"search",infoMsg:"请选择要为流失客户打上的标签",isShowAdd:!0,selected:this.customerTags,successFn:this.submitSelectcustomerTag}:{title:"选择标签",type:"query",selected:this.queryTag,successFn:this.submitSelectTag},this.dialogVisibleSelectTag=!0},exportCustomer:function(e){var t=this,i=Object(s["a"])(Object(s["a"])({},this.query),{},{perms:e,selectedProperties:["客户","添加时间","所属员工","标签"]});this.confirmModal({msg:"即将导出当前查询结果,是否继续?"},(function(){return Object(o["a"])(i).then((function(e){e.data.hasFinished?t.download(e.data.fileName):(t.msgInfo("数据准备中,请稍后前往窗口右下角下载"),t.$store.commit("ADD_TASK",{fileName:e.data.fileName,status:_["md"]["process"],percentage:0,oprId:e.data.oprId}))}))}))},selectedUser:function(e){this.queryUser=e,this.query.userIds=e.map((function(e){return e.userId}))+""},submitSelectTag:function(e){this.query.tagIds=e.map((function(e){return e.tagId}))+"",this.queryTag=e,this.dialogVisibleSelectTag=!1},resetForm:function(){var e=this;this.dateRange=[],this.queryTag=[],this.queryUser=[],this.query=this.$options.data().query,this.$nextTick((function(){e.getList(1)}))},handleSelectionChange:function(e){this.multipleSelection=e},remindSwitch:function(e){var t=this;Object(o["k"])(e).then((function(){t.msgSuccess("操作成功")}))},setLoss:function(){this.showLoss||this.getLossRemindStatus(),this.showLoss=!this.showLoss},saveLossTag:function(){var e=this,t=this.customerTags.map((function(e){return e.tagId})),i=this.lossFrom,a=i.customerChurnNoticeSwitch,n=i.customerLossTagSwitch,r={customerChurnNoticeSwitch:a,customerLossTagSwitch:n,lossTagIdList:t};u(r).then((function(){e.showLoss=!1,Object(y["i"])(e.$store,"save"),e.msgSuccess("操作成功")}))},submitSelectcustomerTag:function(e){var t=b()(this.customerTags,e,"tagId");this.customerTags=Object(r["a"])(e),this.dialogVisibleSelectTag=!1,t=this.removeTagList.concat(t),this.removeTagList=t},closeTag:function(e,t){this.customerTags.splice(t,1),this.removeTagList.push(e)},goRoute:function(e){this.$store.commit("SET_SEARCH_QUERY",{pageName:this.$route.name,query:Object(s["a"])(Object(s["a"])({},this.query),{},{queryTag:this.queryTag,queryUser:this.queryUser})}),Object(g["l"])(this.$router,w["b"],{},{id:e.externalUserid,userId:e.userId,userName:e.userName,prePageType:"lossRemind"})},renderUserInfo:function(e,t){return Object(y["o"])(e,t)}}},T=k,S=(i("280e"),i("2877")),I=Object(S["a"])(T,a,n,!1,null,"73586c3c",null);t["default"]=I.exports},"67ef":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[i("el-form-item",{attrs:{prop:"ipaddr"}},[i("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入登录地址",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.ipaddr,callback:function(t){e.$set(e.queryParams,"ipaddr",t)},expression:"queryParams.ipaddr"}})],1),i("el-form-item",{attrs:{prop:"userName"}},[i("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入用户名称",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.userName,callback:function(t){e.$set(e.queryParams,"userName",t)},expression:"queryParams.userName"}})],1),i("el-form-item",{attrs:{prop:"status"}},[i("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"请选择状态",clearable:"",size:"small"},model:{value:e.queryParams.status,callback:function(t){e.$set(e.queryParams,"status",t)},expression:"queryParams.status"}},e._l(e.statusOptions,(function(e){return i("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),i("el-form-item",[i("el-date-picker",{staticStyle:{width:"240px"},attrs:{size:"small","value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),i("el-form-item",[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.handleQuery()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"operate-btn",fn:function(){return[i("el-row",{staticClass:"mb8",attrs:{gutter:10}},[i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:logininfor:remove"],expression:"['monitor:logininfor:remove']"}],attrs:{size:"mini"},on:{click:e.handleDelete}},[e._v("批量删除")])],1),i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:logininfor:remove"],expression:"['monitor:logininfor:remove']"}],attrs:{size:"mini"},on:{click:e.handleClean}},[e._v("一键清空")])],1)],1)]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),i("el-table-column",{attrs:{label:"访问编号",align:"center",prop:"infoId"}}),i("el-table-column",{attrs:{label:"用户名称",align:"center",prop:"userName"}}),i("el-table-column",{attrs:{label:"登录地址",align:"center",prop:"ipaddr",width:"130","show-overflow-tooltip":!0}}),i("el-table-column",{attrs:{label:"登录地点",align:"center",prop:"loginLocation","show-overflow-tooltip":!0}}),i("el-table-column",{attrs:{label:"浏览器",align:"center",prop:"browser"}}),i("el-table-column",{attrs:{label:"操作系统",align:"center",prop:"os"}}),i("el-table-column",{attrs:{label:"登录状态",align:"center",prop:"status",formatter:e.statusFormat}}),i("el-table-column",{attrs:{label:"操作信息",align:"center",prop:"msg"}}),i("el-table-column",{attrs:{label:"登录日期",align:"center",prop:"loginTime",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e.parseTime(t.row.loginTime)))])]}}])})],1),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:1*e.total,disabled:e.loading,page:e.queryParams.pageNum,limit:e.queryParams.pageSize,"select-data-len":e.ids.length},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}})]},proxy:!0}])})],1)},n=[],r=(i("d81d"),i("d3b7"),i("b775"));function s(e){return Object(r["a"])({url:"/monitor/logininfor/list",method:"get",params:e})}function o(e){return Object(r["a"])({url:"/monitor/logininfor/"+e,method:"delete"})}function l(){return Object(r["a"])({url:"/monitor/logininfor/clean",method:"delete"})}function c(e){return Object(r["a"])({url:"/monitor/logininfor/export",method:"get",params:e})}var u=i("dd70"),d=i("b66d"),p=i("e2e0"),f={name:"Logininfor",components:{RightContainer:d["a"]},mixins:[p["a"]],data:function(){return{loading:!0,ids:[],multiple:!0,showSearch:!0,total:0,list:[],statusOptions:[],dateRange:[],queryParams:{pageNum:1,pageSize:u["Ic"],ipaddr:void 0,userName:void 0,status:void 0}}},created:function(){var e=this;this.getList(),this.getDicts("sys_common_status").then((function(t){e.statusOptions=t.data}))},methods:{getList:function(){var e=this;this.loading=!0,s(this.addDateRange(this.queryParams,this.dateRange)).then((function(t){e.list=t.rows,e.total=t.total})).finally((function(){e.loading=!1,e.modifyButtonStatus()}))},statusFormat:function(e,t){return this.selectDictLabel(this.statusOptions,e.status)},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.dateRange=[],this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.infoId})),this.multiple=!e.length},handleDelete:function(e){var t=this;if(!this.ids.length)return this.msgWarn("请至少选择一条日志"),!1;var i=e.infoId||this.ids;this.confirmModal({msg:'是否确认删除访问编号为"'+i+'"的数据项?'},(function(){return o(i).then((function(){t.getList(),t.msgSuccess("删除成功")})).catch((function(){}))}))},handleClean:function(){var e=this;this.confirmModal({msg:"是否确认清空所有登录日志数据项?"},(function(){return l().then((function(){e.getList(),e.msgSuccess("清空成功")})).catch((function(){}))}))},handleExport:function(){var e=this,t=this.queryParams;this.confirmModal({msg:"是否确认导出所有操作日志数据项?"},(function(){return c(t).then((function(t){e.download(t.msg)})).catch((function(){}))}))}}},A=f,h=i("2877"),m=Object(h["a"])(A,a,n,!1,null,null,null);t["default"]=m.exports},"67fb":function(e,t,i){"use strict";i("d29d")},"67fe":function(e,t,i){},6895:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e._l(e.mixed,(function(t,a){return i("div",{key:a,staticClass:"msgtypemixed"},["text"==t.type?i("div",[i("span",[e._v(e._s(t.content.content))])]):i("div",{staticClass:"msgtypeimg"},[i("img",{staticClass:"thumb",attrs:{src:t.content.attachment},on:{click:function(i){return e.showImg(t.content.attachment)}}})])])})),i("el-dialog",{attrs:{visible:e.dialogVisible,width:"40%","append-to-body":""},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("img",{staticStyle:{width:"100%","max-height":"600px"},attrs:{src:e.imgSrc}}),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"})])],2)},n=[],r={props:{mixed:{type:Array,default:function(){return[]}}},data:function(){return{dialogVisible:!1,imgSrc:""}},created:function(){},mounted:function(){},methods:{showImg:function(e){this.imgSrc=e,this.dialogVisible=!0}}},s=r,o=(i("0d03"),i("2877")),l=Object(o["a"])(s,a,n,!1,null,"3fb2fad1",null);t["default"]=l.exports},"689a":function(e,t,i){"use strict";i.d(t,"d",(function(){return r})),i.d(t,"a",(function(){return s})),i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return l}));var a=i("b775"),n=window.CONFIG.services.wechatopen;function r(e){return Object(a["a"])({url:n+"/config",method:"post",data:e})}function s(e){return Object(a["a"])({url:n+"/config",params:e})}function o(e){return Object(a["a"])({url:n+"/getWechatOpen3rdAuthUrl",params:e})}function l(e){return Object(a["a"])({url:n+"/getDomain",params:e})}},"68c8":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return"cw"===e.qdTemplate?i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"login"},[i("div",{staticClass:"login-top1"},[i("div",{staticClass:"login-top-title"},[e.remark?i("div",{staticClass:"app-title"},[e._v(e._s(e.remark))]):e._e()]),i("div",{staticClass:"app-title-bt"},[i("p",[e._v(e._s(e.qdmc))])]),e._m(0),e._m(1)]),e._m(2),i("div",{staticClass:"qd-form"},[i("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[i("el-form-item",{staticStyle:{"margin-top":"10px"},attrs:{label:"企业名称",prop:"qyName"}},[i("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"fetch-suggestions":e.querySearch,placeholder:"请输入企业名称","trigger-on-focus":!1},on:{select:e.handleSelect},model:{value:e.form.qyName,callback:function(t){e.$set(e.form,"qyName",t)},expression:"form.qyName"}})],1),i("el-form-item",{staticClass:"custom-form-item",attrs:{prop:"userName"},scopedSlots:e._u([{key:"label",fn:function(){return[i("p",{domProps:{innerHTML:e._s("姓 名")}})]},proxy:!0}],null,!1,1560673994)},[i("el-input",{attrs:{clearable:"",placeholder:"请输入用户姓名"},model:{value:e.form.userName,callback:function(t){e.$set(e.form,"userName",t)},expression:"form.userName"}})],1),i("el-form-item",{staticClass:"custom-form-item",attrs:{label:"手机号码",prop:"mobile"}},[i("el-input",{attrs:{clearable:"",placeholder:"请输入用户电话"},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1)],1),i("p",{staticStyle:{"padding-left":"70px","font-size":"12px","padding-top":"10px"}},[e._v("手机号用于直播课观看登录,请填写正确手机号")])],1),i("div",{staticClass:"app-button",on:{click:function(t){return e.submitForm("form")}}},[i("p",[e._v("立即申请")])]),e._m(3)]):i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"login"},[i("div",{staticClass:"login-top"},[i("div",{staticClass:"login-top-title"},[i("p",[e._v(e._s(e.qdmc))])])]),e.pxdz||e.pxsj?i("div",{staticClass:"scan"},[e.pxsj?i("div",{staticStyle:{margin:"10px"}},[i("p",{staticStyle:{"font-size":"15px","font-family":"微软雅黑"}},[e._v("培训时间")]),i("p",{staticStyle:{"margin-top":"8px","font-size":"13px","font-family":"微软雅黑"}},[i("b",[e._v(e._s(e.pxsj))])])]):e._e(),e.pxdz?i("div",{staticStyle:{margin:"10px"}},[i("p",{staticStyle:{"font-size":"15px","font-family":"微软雅黑"}},[e._v("培训地点")]),i("p",{staticStyle:{"margin-top":"8px","font-size":"13px","font-family":"微软雅黑"}},[i("b",[e._v(e._s(e.pxdz))])])]):e._e()]):e._e(),i("div",{staticStyle:{"background-color":"whitesmoke",margin:"10px","border-radius":"20px"}},[i("el-form",{ref:"form",staticClass:"demo-ruleForm",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[i("el-form-item",{staticStyle:{"margin-top":"10px"},attrs:{label:"企业名称",prop:"qyName"}},[i("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"fetch-suggestions":e.querySearch,placeholder:"请输入企业名称","trigger-on-focus":!1},on:{select:e.handleSelect},model:{value:e.form.qyName,callback:function(t){e.$set(e.form,"qyName",t)},expression:"form.qyName"}})],1),i("el-form-item",{staticClass:"custom-form-item",attrs:{label:"用户电话",prop:"mobile"}},[i("el-input",{attrs:{clearable:"",placeholder:"请输入用户电话"},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1),i("el-form-item",{staticClass:"custom-form-item",attrs:{label:"用户姓名",prop:"userName"}},[i("el-input",{attrs:{clearable:"",placeholder:"请输入用户姓名"},model:{value:e.form.userName,callback:function(t){e.$set(e.form,"userName",t)},expression:"form.userName"}})],1),i("el-form-item",{attrs:{label:"是否第三方",prop:"isSf"}},[i("el-radio-group",{model:{value:e.form.isSf,callback:function(t){e.$set(e.form,"isSf",t)},expression:"form.isSf"}},[i("el-radio",{attrs:{label:"1"}},[e._v("是")]),i("el-radio",{attrs:{label:"0"}},[e._v("否")])],1)],1)],1)],1),e.pxdz&&e.pxsj?i("div",{staticStyle:{"text-align":"center","margin-top":"80px"}},[i("hr"),i("el-button",{staticStyle:{width:"90%",height:"50px","margin-top":"10px","background-color":"#2d8ff4"},attrs:{round:"",type:"primary"},on:{click:function(t){return e.submitForm("form")}}},[e._v("下一步 ")])],1):e.pxdz||e.pxsj?i("div",{staticStyle:{"text-align":"center","margin-top":"135px"}},[i("hr"),i("el-button",{staticStyle:{width:"90%",height:"50px","margin-top":"10px","background-color":"#2d8ff4"},attrs:{round:"",type:"primary"},on:{click:function(t){return e.submitForm("form")}}},[e._v("下一步 ")])],1):i("div",{staticStyle:{"text-align":"center","margin-top":"230px"}},[i("hr"),i("el-button",{staticStyle:{width:"90%",height:"50px","margin-top":"10px","background-color":"#2d8ff4"},attrs:{round:"",type:"primary"},on:{click:function(t){return e.submitForm("form")}}},[e._v("下一步 ")])],1)])},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-title2"},[i("p",[e._v("丰富的财税直播课 "),i("span",{staticStyle:{"padding-left":"15px"}},[e._v("助力财务人提升")])])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-title3"},[i("p",[e._v("更多精品直播课持续建设中")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-title4"},[i("span",[e._v("填写信息")]),i("span",{staticStyle:{color:"red","padding-left":"15px"}},[e._v("获取免费")]),i("span",[e._v("听课权限")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"bot-ts"},[i("p",[e._v('申请即可获得"财税系列直播课"'),i("span",{staticStyle:{color:"red"}},[e._v("永久性免费")]),e._v("听课权限")])])}],r=i("c7eb"),s=i("1da1"),o=(i("b0c0"),i("d3b7"),i("ac1f"),i("00b4"),i("159b"),i("42b0")),l=i("3347"),c=(i("17d4"),i("34e1")),u=i("8e7c"),d=(i("837c"),i("362b")),p={name:"QyInfo",data:function(){var e=function(e,t,i){if(!t)return i(new Error("请输入用户电话"));var a=/^1[3-9]\d{9}$/;a.test(t)?i():i(new Error("请输入正确的用户电话"))};return{empleCodeId:null,costomerName:null,NewCustomers:!1,restaurants:[],qdTemplate:"",qdmc:"",remark:"",pxsj:"",pxdz:"",queryParams:{pageNum:1,pageSize:10,createdAt:void 0,wxName:void 0,spuId:void 0,skuId:void 0,txUrl:void 0,qyName:void 0,userName:void 0,mobile:void 0,unionId:void 0,isSf:void 0,siginId:""},imge:{hmimgurl:null,zbImgUrl:null},loading:!0,form:{},rules:{qyName:[{required:!0,message:"请输入企业名称",trigger:"blur"}],isSf:[{required:!0,message:"请选择是否第三方",trigger:"blur"}],mobile:[{required:!0,validator:e,trigger:"blur"}]}}},created:function(){document.title="签到",this.getQrUser()},methods:{reset:function(){this.form={createdAt:void 0,wxName:void 0,spuId:void 0,skuId:void 0,txUrl:void 0,qyName:void 0,userName:void 0,mobile:void 0,unionId:void 0,isSf:void 0,siginId:void 0}},getQrUser:function(){var e=this;this.queryParams.siginId=this.$route.query.id,this.queryParams.siginId?(this.loading=!0,Object(l["a"])(this.queryParams.siginId).then((function(t){e.remark=t.data.remark,e.qdTemplate=t.data.qdTemplate,e.qdmc=t.data.signinName,t.data.trainingTime&&(e.pxsj=t.data.trainingTime),e.pxsj&&(e.pxsj=e.pxsj+"~"),t.data.endTime&&(e.pxsj=e.pxsj+t.data.endTime),e.pxdz=t.data.trainingAddress,e.imge.hmimgurl=t.data.empleUrlImg,e.imge.zbImgUrl=t.data.zbImgUrl,e.form.spuId=t.data.zbId,e.form.skuId=t.data.skuId,e.form.siginId=e.queryParams.siginId,e.form.empleCodeId=t.data.empleCodeId,e.empleCodeId=t.data.empleCodeId,e.form.signinProcess=t.data.signinProcess,e.unionSf(t.data.beginTime,t.data.periodTime),e.getUserData()}))):this.msgError("初始化信息失败")},handleSelect:function(e){var t=this;Object(u["d"])(e.id).then((function(e){t.form.nsrsbh=e.data.nsrsbh,t.form.sssj=e.data.sssj,t.form.zcTime=e.data.zcTime,t.form.hyType=e.data.hyType,t.form.address=e.data.address,t.form.jbxxId=e.data.id,t.form.isWx="F",t.form.isOther="N"}))},SelectUserByUnionId:function(e){var t=this;Object(o["g"])(e).then((function(e){e.data.id?(t.form.wxName=t.costomerName,t.form.unionId=e.data.unionId,t.form.xetId=e.data.xetId,t.scZb(t.form)):t.loading=!1})),this.loading=!1},scZb:function(e){var t=this;Object(o["c"])(e).then((function(e){t.loading=!1,t.$router.push({path:"/shutDown"})}))},unionSf:function(e,t){new Date(e);var i=new Date(t),a=new Date;!t||a<i||this.$router.push({path:"/qdFail"})},getQy:function(e){var t=this;return Object(s["a"])(Object(r["a"])().mark((function i(){var a;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return t.restaurants=[],a={pageNum:1,pageSize:10,nsrmc:e},i.next=4,Object(u["e"])(a).then((function(e){e.rows.forEach((function(e,i,a){t.restaurants[i]={value:e.nsrmc,id:e.id}}))}));case 4:case"end":return i.stop()}}),i)})))()},querySearch:function(e,t){var i=this;return Object(s["a"])(Object(r["a"])().mark((function a(){return Object(r["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,i.getQy(e);case 2:t(i.restaurants);case 3:case"end":return a.stop()}}),a)})))()},getUserData:function(){var e=this;this.$route.query.code?(Object(d["a"])(this.$route.query.code).then((function(t){e.queryParams.unionId=t.data.unionId,e.getUnion()})),this.loading=!1):this.loading=!1},getUnion:function(){var e=this;if(this.queryParams.unionId){var t={unionid:this.queryParams.unionId};Object(c["h"])(t).then((function(t){t.total>0?(e.costomerName=t.rows[0].name,e.NewCustomers=!0,"cw"===e.qdTemplate&&e.SelectUserByUnionId(e.queryParams.unionId)):"1"===e.form.signinProcess&&(e.loading=!1,e.$router.push({path:"/increase",query:{qdTemplate:e.qdTemplate,msgUrl:e.imge.hmimgurl}}))})),this.loading=!1}else this.loading=!1,this.queryParams.unionId="null"},submitForm:function(e){var t=this;return Object(s["a"])(Object(r["a"])().mark((function i(){return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:t.$refs[e].validate((function(e){if(e){if(t.loading=!0,t.form.unionId=t.queryParams.unionId,!t.form.unionId)return t.msgError("获取到用户信息,请联系管理员"),void(t.loading=!1);if("null"===t.form.unionId)return t.msgError("获取到用户信息,请联系管理员"),void(t.loading=!1);t.form.id?(Object(o["j"])(t.form).then((function(e){t.msgSuccess("提交成功"),t.loading=!1,t.NewCustomers?t.$router.push({path:"/increase",query:{qdTemplate:t.qdTemplate,msgUrl:t.imge.zbImgUrl}}):t.$router.push({path:"/increase",query:{qdTemplate:t.qdTemplate,msgUrl:t.imge.hmimgurl}})})),t.loading=!1):(t.form.wxName=t.costomerName,Object(o["a"])(t.form).then((function(e){t.msgSuccess("提交成功"),t.loading=!1,t.NewCustomers?t.$router.push({path:"/shutDown"}):t.$router.push({path:"/increase",query:{qdTemplate:t.qdTemplate,msgUrl:t.imge.hmimgurl}})})),t.loading=!1)}}));case 1:case"end":return i.stop()}}),i)})))()}}},f=p,A=(i("64d2"),i("2877")),h=Object(A["a"])(f,a,n,!1,null,"609d909a",null);t["default"]=h.exports},"68cb":function(e,t,i){},"68d3":function(e,t,i){"use strict";i("b5c0")},"68f1":function(e,t,i){},6930:function(e,t,i){},6935:function(e,t,i){},"693f":function(e,t,i){"use strict";i("23ac")},"69a1":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("RightContainer",{attrs:{"config-keys":["contactSecret"],"page-title":"管理离职员工"},scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{inline:!0,model:e.query,"label-width":"100px"}},[i("el-form-item",{attrs:{prop:"userName"}},[i("el-input",{attrs:{placeholder:"请输入离职员工姓名"},model:{value:e.query.userName,callback:function(t){e.$set(e.query,"userName",t)},expression:"query.userName"}})],1),i("el-form-item",[i("el-date-picker",{attrs:{type:"daterange","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions,"range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),i("el-form-item",{attrs:{label:""}},[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.getList(1)}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetSearch()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"operate-btn",fn:function(){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:dimission:allocatedStaffList"],expression:"['customerManage:dimission:allocatedStaffList']"}],staticClass:"btn-reset",on:{click:e.goRoute}},[e._v("已分配的离职员工")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:dimission:allocate"],expression:"['customerManage:dimission:allocate']"}],staticClass:"btn-reset",on:{click:e.showSelectDialog}},[e._v("分配给其他员工")])]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.list,"tooltip-effect":"dark","highlight-current-row":""},on:{"selection-change":e.handleSelectionChange}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{text:"暂无数据"}})],1),i("el-table-column",{attrs:{type:"selection",width:"55"}}),i("el-table-column",{attrs:{prop:"userName",label:"已离职员工"}}),i("el-table-column",{attrs:{prop:"mainDepartmentName",label:"所属部门"}}),i("el-table-column",{attrs:{prop:"allocateCustomerNum",label:"待分配客户","show-overflow-tooltip":""}}),i("el-table-column",{attrs:{prop:"allocateGroupNum",label:"待分配客户群","show-overflow-tooltip":""}}),i("el-table-column",{attrs:{prop:"dimissionTime",label:"离职时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.dimissionTime))]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,disabled:e.loading,page:e.query.pageNum,limit:e.query.pageSize,"select-data-len":e.currentRows.length},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList(e._,!0)}}}),i("AllocateModal",{attrs:{"dialog-visible-select-user":e.dialogVisibleSelectUser,"current-rows":e.currentRows,"get-list":e.getList},on:{"update:dialogVisibleSelectUser":function(t){e.dialogVisibleSelectUser=t},"update:dialog-visible-select-user":function(t){e.dialogVisibleSelectUser=t}}})]},proxy:!0}])})},n=[],r=i("5530"),s=(i("fb6a"),i("b64b"),i("d3b7"),i("159b"),i("afcf")),o=i("b66d"),l=i("e77d"),c=i("ed08"),u=i("dd70"),d=i("56ae"),p=i("e2e0"),f=1e3,A={name:"Dimission",components:{RightContainer:o["a"],EmptyDefaultIcon:l["a"],AllocateModal:d["default"]},mixins:[p["a"]],props:{},data:function(){return{query:{pageNum:1,pageSize:u["Ic"],userName:void 0,beginTime:void 0,endTime:void 0},loading:!1,isMoreFilter:!1,total:0,form:{user:"",region:""},list:[],currentRows:[],dialogVisibleSelectUser:!1,dateRange:[],allList:[]}},computed:{},watch:{},created:function(){var e=this;this.$route.query&&Object.keys(this.query).forEach((function(t){e.$route.query[t]&&(e.query[t]=e.$route.query[t])})),this.getList(),this.$store.dispatch("app/setBusininessDesc","\n <div>将离职成员的客户和客户群聊分配给其他成员继续提供服务</div>\n ")},mounted:function(){},methods:{getList:function(e,t){var i=this;t?this.list=this.dealPaging(this.allList):(this.dateRange?(this.query.beginTime=this.dateRange[0],this.query.endTime=this.dateRange[1]):(this.query.beginTime="",this.query.endTime=""),e&&(this.query.pageNum=e),this.loading=!0,s["e"](Object(r["a"])(Object(r["a"])({},this.query),{},{pageSize:f})).then((function(e){var t=e.rows,a=e.total;i.allList=t,i.list=i.dealPaging(i.allList),i.total=+a})).finally((function(){i.modifyButtonStatus(),i.loading=!1})))},dealPaging:function(e){var t=this.query,i=t.pageNum,a=t.pageSize;return e.slice((i-1)*a,i*a)},resetForm:function(){this.dateRange=[],this.$refs["queryForm"].resetFields()},showSelectDialog:function(){this.currentRows.length>0?this.dialogVisibleSelectUser=!0:this.msgWarn("请先选择一位员工")},handleSelectionChange:function(e){this.currentRows=e},resetSearch:function(){this.resetForm("queryForm"),this.getList(1)},goRoute:function(){Object(c["l"])(this.$router,"allocatedStaffList",this.query)}}},h=A,m=(i("4fc9"),i("2877")),g=Object(m["a"])(h,a,n,!1,null,"dfb0f880",null);t["default"]=g.exports},"6a26":function(e,t,i){"use strict";i("8daa")},"6b00":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"wrap"},[i("ReturnPage",{attrs:{path:"/operationsCenter/drainageCode/tag"}}),i("div",{staticClass:"wrap-body"},[i("el-alert",{attrs:{title:"功能说明",type:"info",description:"企业下发任务,通知员工给特定客户发送加群引导语和群活码,客户扫码进群完成引流。","show-icon":"",closable:!1}}),i("div",{staticClass:"wrap-body-form"},[i("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[i("p",{staticClass:"config-title",staticStyle:{"margin-bottom":"15px"}},[e._v("基础设置")]),i("el-alert",{attrs:{type:"warning",closable:!1}},[e._v(" 1. 每个客户/客户群每天只能收到1条群发消息"),i("br"),e._v(" 2. 若某客户有添加多个员工,只有一个员工对其有发送邀请任务"),i("br"),e._v(" 3. 若某客户已经在群活码下的某个客户群中,则员工没有对其的发送邀请任务 ")]),i("el-form-item",{attrs:{label:"任务名称",prop:"taskName"}},[i("el-input",{attrs:{maxlength:"32","show-word-limit":"",placeholder:"请填写任务名称,方便了解任务内容",clearable:""},model:{value:e.form.taskName,callback:function(t){e.$set(e.form,"taskName",t)},expression:"form.taskName"}})],1),i("el-form-item",{attrs:{label:"发送方式",prop:"sendType"}},[i("el-radio-group",{model:{value:e.form.sendType,callback:function(t){e.$set(e.form,"sendType",t)},expression:"form.sendType"}},[e._l(e.sendTypeOptions,(function(t,a){return i("el-radio",{key:a,attrs:{label:t.value}},[e._v(e._s(t.label))])})),i("div",{staticClass:"tip"},[e._v(" 注:客户每天只能接收来自一名成员的一条群发消息,每月最多接收来自同一企业的四条群发消息。 ")])],2)],1),i("el-form-item",{attrs:{label:"发送范围",prop:"sendScope"}},[i("div",[i("el-radio-group",{model:{value:e.form.sendScope,callback:function(t){e.$set(e.form,"sendScope",t)},expression:"form.sendScope"}},e._l(e.sendScopeOptions,(function(t,a){return i("el-radio",{key:a,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),i("div",{directives:[{name:"show",rawName:"v-show",value:e.form.sendScope===e.SEND_PART_CUSTOMER_TYPE,expression:"form.sendScope === SEND_PART_CUSTOMER_TYPE"}],staticClass:"send-scope"},[i("el-alert",{attrs:{title:"给同时满足以下条件的客户发送进群邀请",type:"warning",closable:!1}}),i("el-form-item",{attrs:{label:"性别",prop:"sendGender","label-width":"77px"}},[i("el-radio-group",{model:{value:e.form.sendGender,callback:function(t){e.$set(e.form,"sendGender",t)},expression:"form.sendGender"}},[i("el-radio",{attrs:{label:0}},[e._v("全部")]),i("el-radio",{attrs:{label:1}},[e._v("男")]),i("el-radio",{attrs:{label:2}},[e._v("女")]),i("el-radio",{attrs:{label:3}},[e._v("未知")])],1)],1),i("el-form-item",{attrs:{label:"客户标签",prop:"tagList","label-width":"77px"}},[i("el-button",{class:e.tags.length>0?"mr10":"",attrs:{plain:"",icon:"el-icon-plus",size:"mini",disabled:0==e.form.sendScope},on:{click:function(t){e.dialogVisibleSelectTag=!0}}},[e._v("添加标签")]),e._l(e.tags,(function(t,a){return i("el-tag",{key:a,attrs:{closable:"",size:"medium"},on:{close:function(t){return e.closeTag(a)}}},[e._v(e._s(t.name))])}))],2),i("el-form-item",{attrs:{label:"添加时间","label-width":"77px"}},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"daterange","picker-options":e.pickerOptions,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right",disabled:0==e.form.sendScope},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),i("el-form-item",{attrs:{label:"所属员工",prop:"scopeList","label-width":"77px"}},[i("el-button",{staticClass:"mr10",attrs:{plain:"",icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.dialogVisibleSelectUser=!0}}},[e._v(e._s(e.users.length?"修改":"添加")+"成员")]),e._l(e.users,(function(t,a){return i("el-tag",{key:a,staticClass:"user-tag",attrs:{closable:"",size:"medium"},on:{close:function(t){return e.handleClose(a)}}},[e._v(e._s(t.name))])}))],2)],1)]),i("p",{staticClass:"config-title",staticStyle:{"margin-bottom":"16px"}},[e._v(" 发送内容"),i("span",[e._v("统一设置引导进群文案,由员工送达到客户")])]),i("el-alert",{attrs:{title:"在创建任务前,请先在【客户群活码】设置群活码信息",type:"warning",closable:!1}}),i("el-form-item",{attrs:{label:"加群引导语",prop:"welcomeMsg"}},[i("el-input",{attrs:{type:"textarea",maxlength:"2000","show-word-limit":"",autosize:{minRows:5,maxRows:20},placeholder:"请填写加群引导语",clearable:""},model:{value:e.form.welcomeMsg,callback:function(t){e.$set(e.form,"welcomeMsg",t)},expression:"form.welcomeMsg"}})],1),i("el-form-item",{attrs:{label:"群活码设置",prop:"groupCodeId"}},[i("div",[i("div",[i("el-button",{attrs:{type:"primary",plain:"",icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.dialogVisibleSelectQrCode=!0}}},[e._v(e._s(e.groupQrCode&&e.groupQrCode.codeUrl?"修改":"选择")+"群活码")])],1),e.groupQrCode&&e.groupQrCode.codeUrl?i("div",{staticClass:"qrcode-preview"},[i("div",[i("el-image",{staticClass:"code-image mr10",attrs:{src:e.groupQrCode.codeUrl}})],1),i("div",[i("p",{staticClass:"qrcode-title"},[e._v(e._s(e.groupQrCode.activityName))]),i("p",{staticClass:"qrcode-desc"},[e._v(e._s(e.groupQrCode.activityDesc))])])]):e._e()])]),i("p",{staticClass:"config-title",staticStyle:{"margin-bottom":"15px"}},[e._v("发送统计")]),i("p",{staticClass:"customer-count-text"},[e._v(" 预计收到邀请的客户数: "),i("span",[e._v(e._s(e.customerCount))]),i("i",{staticClass:"el-icon-refresh",on:{click:e.getExpectedReceptionData}})])],1),i("div",{staticClass:"preview-wrap"},[i("PhoneDialog",{attrs:{message:e.form.welcomeMsg,"is-other":!(!e.groupQrCode||!e.groupQrCode.codeUrl)}},[i("el-image",{staticClass:"phone-dialog-image",attrs:{src:e.groupQrCode.codeUrl}})],1)],1)],1)],1),i("div",{staticClass:"wrap-footer"},[i("RequestButton",{attrs:{type:"primary","request-method":e.submit,"button-type":"submit"}},[e._v("通知员工发送邀请")])],1),i("SelectUser",{attrs:{visible:e.dialogVisibleSelectUser,title:"选择使用员工","selected-user-list":e.form.scopeList||[]},on:{"update:visible":function(t){e.dialogVisibleSelectUser=t},success:e.submitSelectUser}}),i("SelectTag",{attrs:{visible:e.dialogVisibleSelectTag,selected:e.tags,type:"search","info-msg":"筛选出被打上选中标签的客户,邀请其扫码进群"},on:{"update:visible":function(t){e.dialogVisibleSelectTag=t},success:e.submitSelectTag}}),i("SelectQrCode",{attrs:{visible:e.dialogVisibleSelectQrCode,selected:e.codes},on:{"update:visible":function(t){e.dialogVisibleSelectQrCode=t},success:e.submitSelectQrCode}})],1)},n=[],r=i("5530"),s=i("3835"),o=i("2909"),l=(i("99af"),i("d81d"),i("a434"),i("dca8"),i("b64b"),i("d3b7"),i("71bc")),c=i("8bd5"),u=i("c958"),d=i("aada"),p=i("07e5"),f=i("dd70"),A=i("52a9"),h=i("cf45"),m=1,g={components:{PhoneDialog:c["a"],SelectTag:d["a"],SelectUser:u["a"],SelectQrCode:p["a"],RequestButton:A["a"]},data:function(){return{taskId:"",dialogVisibleSelectUser:!1,dialogVisibleSelectTag:!1,dialogVisibleSelectQrCode:!1,loading:!1,form:{taskName:"",welcomeMsg:"",sendType:0,groupCodeId:"",tagList:[],scopeList:[],sendScope:0,sendGender:0,cusBeginTime:"",cusEndTime:""},tags:[],users:[],codes:[],groupQrCode:{},dateRange:[],sendTypeOptions:[{label:"企业群发",value:0}],sendGenderOptions:[{label:"全部",value:0}].concat(Object(o["a"])(Object.keys(f["db"]).map((function(e){return{label:f["db"][e],value:e}})))),sendScopeOptions:[{label:"全部客户",value:0},{label:"指定客户",value:1}],SEND_PART_CUSTOMER_TYPE:m,customerCount:0,rules:Object.freeze({taskName:[{required:!0,message:"该项为必填项",trigger:"blur"}],welcomeMsg:[{required:!0,message:"该项为必填项",trigger:"blur"}],groupCodeId:[{required:!0,message:"该项为必填项",trigger:"blur"}],tagListValidate:[{required:!0,message:"该项为必填项",trigger:"change"}],scopeListValidate:[{required:!0,message:"该项为必填项",trigger:"change"}]})}},watch:{dateRange:function(e){if(e&&2===e.length){var t=Object(s["a"])(e,2);this.form.cusBeginTime=t[0],this.form.cusEndTime=t[1]}else this.form.cusBeginTime="",this.form.cusEndTime=""},users:function(e){this.form.scopeList=e,this.$refs.form.validateField("scopeList")},tags:function(e){this.form.tagList=e.map((function(e){return e&&e.tagId})),this.$refs.form.validateField("tagList")}},beforeUpdate:function(){Object(h["k"])(this.$options.data().form,this.form)},methods:{getExpectedReceptionData:function(){var e=this,t=Object(r["a"])(Object(r["a"])({},this.form),{},{scopeList:this.form.scopeList.map((function(e){return e.userId}))});Object(l["b"])(t).then((function(t){e.customerCount=t.data.expectedCustomerCount}))},submitSelectUser:function(e){this.users=e},submitSelectTag:function(e){this.dialogVisibleSelectTag=!1,this.tags=e},submitSelectQrCode:function(e){this.groupQrCode=e,this.form.groupCodeId=e.id,this.$refs.form.validateField("groupCodeId")},submit:function(){var e=this;this.$refs.form.validate((function(t){if(t){e.loading=!0;var i=Object(r["a"])(Object(r["a"])({},e.form),{},{scopeList:e.form.scopeList.map((function(e){return e.userId}))});Object(l["a"])(i).then((function(){e.$store.commit("SET_ADD_FLAG",!0),e.msgSuccess("添加成功"),e.$router.back()})).finally((function(){Object(h["i"])(e.$store,"submit"),e.loading=!1}))}else Object(h["i"])(e.$store,"submit")}))},handleClose:function(e){this.users.splice(e,1)},closeTag:function(e){this.tags.splice(e,1)}}},v=g,b=(i("e87b"),i("4ee5"),i("2877")),y=Object(b["a"])(v,a,n,!1,null,"58f065b5",null);t["default"]=y.exports},"6b05":function(e,t,i){"use strict";i("3e67")},"6b08":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[i("el-form-item",{attrs:{prop:"ipaddr"}},[i("el-input",{attrs:{placeholder:"请输入登录地址",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.ipaddr,callback:function(t){e.$set(e.queryParams,"ipaddr",t)},expression:"queryParams.ipaddr"}})],1),i("el-form-item",{attrs:{prop:"userName"}},[i("el-input",{attrs:{placeholder:"请输入用户名称",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.userName,callback:function(t){e.$set(e.queryParams,"userName",t)},expression:"queryParams.userName"}})],1),i("el-form-item",[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.handleQuery()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.list.slice((e.pageNum-1)*e.pageSize,e.pageNum*e.pageSize)}},[i("el-table-column",{attrs:{label:"序号",type:"index",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s((e.pageNum-1)*e.pageSize+t.$index+1))])]}}])}),i("el-table-column",{attrs:{label:"会话编号",align:"center",prop:"tokenId","show-overflow-tooltip":!0}}),i("el-table-column",{attrs:{label:"登录名称",align:"center",prop:"userName","show-overflow-tooltip":!0}}),i("el-table-column",{attrs:{label:"部门名称",align:"center",prop:"deptName"}}),i("el-table-column",{attrs:{label:"主机",align:"center",prop:"ipaddr","show-overflow-tooltip":!0}}),i("el-table-column",{attrs:{label:"登录地点",align:"center",prop:"loginLocation","show-overflow-tooltip":!0}}),i("el-table-column",{attrs:{label:"浏览器",align:"center",prop:"browser"}}),i("el-table-column",{attrs:{label:"操作系统",align:"center",prop:"os"}}),i("el-table-column",{attrs:{label:"登录时间",align:"center",prop:"loginTime",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e.parseTime(t.row.loginTime)))])]}}])}),i("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["monitor:online:forceLogout"],expression:"['monitor:online:forceLogout']"}],attrs:{size:"mini",type:"text"},on:{click:function(i){return e.handleForceLogout(t.row)}}},[i("span",{staticClass:"flex",staticStyle:{"align-items":"center"}},[i("i",{staticClass:"iconfont iconoffline",staticStyle:{"padding-right":"3px"}}),i("span",[e._v("强制退出")])])])]}}])})],1),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{disabled:e.loading,total:e.total,page:e.pageNum,limit:e.pageSize},on:{"update:page":function(t){e.pageNum=t},"update:limit":function(t){e.pageSize=t},pagination:e.getList}})]},proxy:!0}])})],1)},n=[],r=i("5530"),s=(i("d3b7"),i("b775"));function o(e){return Object(s["a"])({url:"/monitor/online/list",method:"get",params:e})}function l(e){return Object(s["a"])({url:"/monitor/online/"+e,method:"delete"})}var c=i("dd70"),u=i("b66d"),d=i("e2e0"),p={name:"Online",components:{RightContainer:u["a"]},mixins:[d["a"]],data:function(){return{loading:!0,total:0,list:[],pageNum:1,pageSize:c["Ic"],queryParams:{ipaddr:void 0,userName:void 0}}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,o(Object(r["a"])(Object(r["a"])({},this.queryParams),{},{pageNum:this.pageNum,pageSize:this.pageSize})).then((function(t){e.list=t.rows,e.total=t.total})).finally((function(){e.loading=!1,e.modifyButtonStatus()}))},handleQuery:function(){this.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleForceLogout:function(e){var t=this;this.confirmModal({msg:'是否确认强退名称为"'+e.userName+'"的数据项?'},(function(){return l(e.tokenId).then((function(){t.getList(),t.msgSuccess("强退成功")})).catch((function(){}))}))}}},f=p,A=(i("c02b"),i("2877")),h=Object(A["a"])(f,a,n,!1,null,"273cd6de",null);t["default"]=h.exports},"6b50":function(e,t,i){"use strict";i("244b")},"6bc9":function(e,t,i){"use strict";i("3b32")},"6bdf":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"top-explain"},[i("div",{staticClass:"left-icon"},[i("img",{attrs:{src:e.DEFAULT_ICON,height:140,alt:""}})]),e._m(0)]),i("div",{staticClass:"step-content"},[i("div",{staticClass:"content-title"},[e._v(" 接口开发信息 "),i("el-divider",{attrs:{direction:"vertical"}}),i("span",{staticClass:"title-extra theme-text-color",on:{click:e.checkApiWord}},[e._v(" 查看接口文档 ")])],1),i("div",{staticClass:"content dev-info"},[e._m(1),i("el-form",{staticStyle:{width:"620px"},attrs:{model:e.apiInfo,"label-width":"80px"}},[i("el-form-item",{attrs:{label:"AppID"}},[i("div",{staticClass:"flex"},[i("el-input",{staticStyle:{width:"430px"},attrs:{placeholder:"",disabled:""},model:{value:e.apiInfo.appId,callback:function(t){e.$set(e.apiInfo,"appId",t)},expression:"apiInfo.appId"}}),e.apiInfo.appSecret?e._e():i("el-button",{staticClass:"ml10 f14",attrs:{type:"text"},on:{click:e.createDevAccount}},[e._v("生成开发账号")])],1),i("div",{staticClass:"form-tips"},[e._v("企业调用API的身份凭证")])]),i("el-form-item",{attrs:{label:"AppSecret"}},[i("el-input",{staticStyle:{width:"430px"},attrs:{type:e.apiInfo.pwdVisible?"password":"text",autocomplete:"new-password",clearable:"",disabled:"",placeholder:""},model:{value:e.apiInfo.appSecret,callback:function(t){e.$set(e.apiInfo,"appSecret",t)},expression:"apiInfo.appSecret"}}),e.apiInfo.appSecret?i("el-button",{staticClass:"ml10 f14",attrs:{type:"text"},on:{click:e.refresh}},[e._v("重置")]):e._e(),i("div",{staticClass:"form-tips"},[e._v(" 企业调用API的密钥,请妥善保管,泄露可能会导致重要数据泄露或损坏 ")]),i("i",{class:[e.apiInfo.pwdVisible?"icon-ciphertext":"icon-plaintext","iconfont"],on:{click:function(){return e.changePwdVisible("apiInfo")}}})],1)],1)],1)]),i("div",{staticClass:"step-content"},[i("div",{staticClass:"content-title"},[e._v("消息订阅")]),i("div",{staticClass:"content"},[e._m(2),i("el-form",{ref:"msgSubForm",staticStyle:{width:"680px"},attrs:{model:e.msgSubForm,"label-width":"130px","label-position":"right"}},e._l(e.msgSubForm.messageSubList,(function(t,a){return i("div",{key:t.id,staticClass:"aic"},[i("div",{staticClass:"message-sub"},[i("el-form-item",{key:t.id,attrs:{label:"回调地址",prop:"messageSubList."+a+".callbackUrl",rules:[{required:!0,validator:e.callbackUrlValidator,trigger:["blur","change"]}]}},[i("el-input",{staticStyle:{width:"430px"},attrs:{placeholder:"以http://或https://开头",clearable:""},model:{value:t.callbackUrl,callback:function(i){e.$set(t,"callbackUrl",i)},expression:"item.callbackUrl"}}),i("el-button",{directives:[{name:"show",rawName:"v-show",value:t.originalCallbackUrl!==t.callbackUrl,expression:"item.originalCallbackUrl !== item.callbackUrl"}],staticClass:"ml10 f14",staticStyle:{border:"none"},attrs:{type:"text"},on:{click:function(i){return e.save(t)}}},[e._v("保存")])],1),i("el-form-item",{attrs:{label:"Token",rules:[{required:!0}]}},[i("el-input",{staticStyle:{width:"430px"},attrs:{placeholder:"",disabled:""},model:{value:e.token,callback:function(t){e.token=t},expression:"token"}}),i("el-button",{directives:[{name:"copy",rawName:"v-copy",value:e.token,expression:"token"}],staticClass:"ml10 f14",attrs:{type:"text"}},[e._v("复制")])],1),i("el-form-item",{attrs:{label:"EncodingAESKey",rules:[{required:!0}]}},[i("el-input",{staticStyle:{width:"430px"},attrs:{disabled:"",placeholder:""},model:{value:e.encodingAesKey,callback:function(t){e.encodingAesKey=t},expression:"encodingAesKey"}}),i("el-button",{directives:[{name:"copy",rawName:"v-copy",value:e.encodingAesKey,expression:"encodingAesKey"}],staticClass:"ml10 f14",attrs:{type:"text"}},[e._v("复制")])],1)],1),t.showDel?i("div",{staticClass:"delete fcc ml20",attrs:{title:"删除"},on:{click:function(i){return e.deleteMsgSub(t)}}},[i("i",{staticClass:"el-icon-delete"})]):e._e()])})),0),i("el-button",{directives:[{name:"show",rawName:"v-show",value:e.showAddAddress,expression:"showAddAddress"}],attrs:{icon:"el-icon-plus",type:"primary",plain:""},on:{click:e.addAddress}},[e._v("添加地址")])],1)]),i("div",{staticClass:"step-content"},[i("div",{staticClass:"content-title"},[e._v("在SCRM系统嵌入EasyInk侧边栏")]),i("div",{staticClass:"content"},[e._m(3),i("el-steps",{staticClass:"steps",attrs:{direction:"vertical",space:"120px",active:10}},[i("el-step",{attrs:{title:"填写SCRM提供的开发信息"},scopedSlots:e._u([{key:"description",fn:function(){return[i("el-form",{ref:"form",staticStyle:{width:"630px"},attrs:{model:e.form,"label-width":"80px",rules:e.rules,"label-position":"right"}},[i("el-form-item",{attrs:{label:"AppID",prop:"appId"}},[i("el-input",{staticStyle:{width:"430px"},attrs:{placeholder:"请输入SCRM的AppID",clearable:""},model:{value:e.form.appId,callback:function(t){e.$set(e.form,"appId",t)},expression:"form.appId"}})],1),i("el-form-item",{attrs:{label:"AppSecret",prop:"appSecret"}},[i("el-input",{staticStyle:{width:"430px"},attrs:{type:e.form.pwdVisible?"password":"text",autocomplete:"new-password",clearable:"",placeholder:"请输入SCRM的AppSecret"},model:{value:e.form.appSecret,callback:function(t){e.$set(e.form,"appSecret",t)},expression:"form.appSecret"}}),i("i",{class:[e.form.pwdVisible?"icon-ciphertext":"icon-plaintext","iconfont","scrm-appsecret"],on:{click:function(){return e.changePwdVisible("form")}}}),i("el-button",{staticClass:"ml10 f14",attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保存")])],1)],1)]},proxy:!0}])}),i("el-step",{attrs:{title:"复制页面路径配置到SCRM"},scopedSlots:e._u([{key:"description",fn:function(){return[i("el-form",{ref:"domainForm",attrs:{"label-width":"68px","label-position":"right"}},[i("el-form-item",{attrs:{label:"素材库"}},[i("el-input",{staticStyle:{width:"430px"},attrs:{value:e.materialDomain,placeholder:"",disabled:""}}),i("el-button",{directives:[{name:"show",rawName:"v-show",value:!(e.form.appId&&e.form.appSecret)||!e.H5Domain,expression:"!(form.appId && form.appSecret) || !H5Domain"}],staticClass:"ml10 f14",attrs:{type:"text"},on:{click:e.copyText}},[e._v("复制")]),i("el-button",{directives:[{name:"show",rawName:"v-show",value:e.H5Domain&&e.form.appId&&e.form.appSecret,expression:"H5Domain && form.appId && form.appSecret"},{name:"copy",rawName:"v-copy",value:e.materialDomain,expression:"materialDomain"}],staticClass:"ml10 f14",attrs:{type:"text"}},[e._v("复制")])],1),i("el-form-item",{attrs:{label:"客户画像"}},[i("el-input",{staticStyle:{width:"430px"},attrs:{value:e.customerPortraitDomain,placeholder:"",disabled:""}}),i("el-button",{directives:[{name:"show",rawName:"v-show",value:!(e.form.appId&&e.form.appSecret)||!e.H5Domain,expression:"!(form.appId && form.appSecret) || !H5Domain"}],staticClass:"ml10 f14",attrs:{type:"text"},on:{click:e.copyText}},[e._v("复制")]),i("el-button",{directives:[{name:"show",rawName:"v-show",value:e.H5Domain&&e.form.appId&&e.form.appSecret,expression:"H5Domain && form.appId && form.appSecret"},{name:"copy",rawName:"v-copy",value:e.customerPortraitDomain,expression:"customerPortraitDomain"}],staticClass:"ml10 f14",attrs:{type:"text"}},[e._v("复制")])],1)],1)]},proxy:!0}])})],1)],1)])])},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"right-text"},[i("div",{staticClass:"explain-title"},[e._v("API配置")]),i("div",{staticClass:"explain-info"},[e._v(" EasyInk开放部分接口,若您的企业有开发能力,可以借助接口实现企业服务及企业微信的集成。 ")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"content-info mb20"},[i("i",{staticClass:"el-icon-warning"}),e._v(" 企业可通过EasyInk提供的API,实现企业内部数据与企业微信的数据互通,包括且不限于获取客户资料、打标签、数据统计。 ")])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"content-info mb20"},[i("i",{staticClass:"el-icon-warning"}),e._v(" 为提高实时性,企业可设置接收事件服务器,成员添加、删除客户时将以事件形式推送到指定URL,企业接收到消息后响应处理。 ")])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"content-info mb20"},[i("i",{staticClass:"el-icon-warning"}),e._v(" 可在第三方SCRM系统中嵌入EasyInk的侧边栏,便于员工在与客户沟通过程中查看客户资料,发送素材和话术等物料。 ")])}],r=i("5530"),s=(i("4de4"),i("d81d"),i("d3b7"),i("ac1f"),i("00b4"),i("2934")),o=i("b775"),l=window.CONFIG.services.wecom+"/openapi";function c(){return Object(o["a"])({url:l+"/appInfo/create",method:"post"})}function u(){return Object(o["a"])({url:l+"/appInfo/get",method:"get"})}function d(){return Object(o["a"])({url:l+"/appInfo/refreshSecret",method:"post"})}function p(){return Object(o["a"])({url:l+"/callback/list",method:"get"})}function f(e){return Object(o["a"])({url:l+"/callback",method:"POST",data:e})}function A(e){return Object(o["a"])({url:l+"/callback/"+e,method:"DELETE"})}function h(e){return Object(o["a"])({url:l+"/callback",method:"PUT",data:e})}var m=i("6c39"),g=i.n(m),v=3,b=/(http|https):\/\/([\w.]+\/?)\S*/,y={data:function(){return{DEFAULT_ICON:g.a,apiInfo:{pwdVisible:!0},msgSubForm:{messageSubList:[]},form:{appId:"",appSecret:"",pwdVisible:!0},rules:{appId:[{required:!0,message:"请填写AppID",trigger:"change"}],appSecret:[{required:!0,message:"请填写AppSecret",trigger:"change"}]},loading:null}},computed:{customerPortraitDomain:function(){return this.H5Domain+"/#/portrait?appId="+this.form.appId+"&type=lock"},materialDomain:function(){return this.H5Domain+"/#/chat?appId="+this.form.appId+"&type=lock"},H5Domain:function(){return this.$store.state.enterPriseWechatConfig.h5DoMainName},showAddAddress:function(){return this.msgSubForm.messageSubList.length<v},token:function(){return this.$store.state.enterPriseWechatConfig.token},encodingAesKey:function(){return this.$store.state.enterPriseWechatConfig.encodingAesKey}},created:function(){this.lockSideBar(),this.getDevAccount(),this.getMsgSubList()},methods:{callbackUrlValidator:function(e,t,i){""===t?i(new Error("请输入回调地址")):b.test(t)?i():i(new Error("回调地址需要以http://或https://开头"))},createDevAccount:function(){var e=this;this.openLoading(),c().then((function(t){e.apiInfo=Object(r["a"])(Object(r["a"])({},e.apiInfo),t.data)})).finally((function(){e.loading.close()}))},getDevAccount:function(){var e=this;u().then((function(t){e.apiInfo=Object(r["a"])(Object(r["a"])({},e.apiInfo),t.data)}))},refresh:function(){var e=this;this.openLoading(),d().then((function(t){e.apiInfo.appSecret=t.data.appSecret})).finally((function(){e.loading.close()}))},getMsgSubList:function(){var e=this;p().then((function(t){t.data.length?e.msgSubForm.messageSubList=t.data.map((function(e){return Object(r["a"])(Object(r["a"])({},e),{},{originalCallbackUrl:e.callbackUrl,showDel:!0})})):e.addAddress()}))},lockSideBar:function(){var e=this;Object(s["b"])().then((function(t){var i;e.form=Object(r["a"])(Object(r["a"])({},e.form),null===(i=t.data)||void 0===i?void 0:i[0])}))},changePwdVisible:function(e){this[e].pwdVisible=!this[e].pwdVisible},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){if(t){var i=e.form,a=i.appId,n=i.appSecret;Object(s["c"])({appId:a,appSecret:n}).then((function(){e.msgSuccess("操作成功")}))}}))},copyText:function(){var e=this.H5Domain?"请填写SCRM的API配置信息":"请前往【企微配置】填写Sidebar服务域名";this.msgWarn(e)},addAddress:function(){this.msgSubForm.messageSubList.push({id:this.msgSubForm.messageSubList.length+1,callbackUrl:"",originalCallbackUrl:"",selfAdd:!0,showDel:!1})},checkApiWord:function(){window.open("https://xsxda94vjq.feishu.cn/docx/PIKrda8scosoKfxYb4IcWdnsnSd")},deleteMsgSub:function(e){var t=this;this.confirmModal({msg:"删除后,将不再向地址“".concat(e.callbackUrl,"”推送事件,是否继续?")},(function(){t.openLoading(),A(e.id).then((function(){t.msgSubForm.messageSubList=t.msgSubForm.messageSubList.filter((function(t){return t.id!==e.id})),t.msgSuccess("删除成功!")})).finally((function(){t.loading.close()}))}))},save:function(e){var t=this;if(!e.callbackUrl)return this.msgWarn("请输入回调地址");if(!b.test(e.callbackUrl))return this.msgWarn("回调地址需要以http://或https://开头");var i={callbackUrl:e.callbackUrl,id:e.id};this.openLoading(),e.selfAdd?f(i).then((function(i){t.msgSubForm.messageSubList=t.msgSubForm.messageSubList.map((function(t){return t.id===e.id?Object(r["a"])(Object(r["a"])({},i.data),{},{originalCallbackUrl:i.data.callbackUrl,showDel:!0}):t})),t.msgSuccess("保存成功!")})).finally((function(){t.loading.close()})):h(i).then((function(){t.msgSubForm.messageSubList=t.msgSubForm.messageSubList.map((function(t){return e.id===t.id&&(t.originalCallbackUrl=e.callbackUrl),t})),t.msgSuccess("保存成功!")})).finally((function(){t.loading.close()}))},openLoading:function(){this.loading=this.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"})}}},_=y,w=(i("63e4"),i("2877")),C=Object(w["a"])(_,a,n,!1,null,"380e256d",null);t["default"]=C.exports},"6be3":function(e,t,i){"use strict";i("68f1")},"6bff":function(e,t,i){},"6c39":function(e,t,i){e.exports=i.p+"static/img/api-config.f07ceaf5.svg"},"6cf7":function(e,t,i){},"6d78":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",e._g(e._b({staticClass:"spread-dialog",attrs:{width:"500px","close-on-click-modal":!1,title:"推广"},on:{close:e.onClose}},"el-dialog",e.$attrs,!1),e.$listeners),[i("div",{staticClass:"spread-dialog-content"},[i("div",{staticClass:"way-info"},[e._v("可将链接或二维码放置在海报、营销落地页、宣传单中邀请客户填写")]),i("div",{staticClass:"way-item"},[i("div",{staticClass:"way-item-title"},[e._v("方式一")]),i("div",{staticClass:"way-item-content"},[i("el-input",{staticStyle:{width:"360px"},attrs:{value:e.linkUrl,placeholder:"请输入内容"}}),e.linkUrl?i("el-button",{directives:[{name:"copy",rawName:"v-copy",value:e.linkUrl,expression:"linkUrl"}],staticClass:"btn-copy",attrs:{size:"mini",type:"text"}},[e._v("复制链接")]):e._e()],1)]),i("div",{staticClass:"way-item"},[i("div",{staticClass:"way-item-title"},[e._v("方式二")]),i("div",{staticClass:"way-item-content"},[i("div",{staticClass:"qr-box"},[i("img",{attrs:{src:e.qrCodeUrl}})]),e.qrCodeUrl?i("el-button",{staticClass:"qr-download",attrs:{size:"mini",type:"text"},on:{click:function(t){return e.downloadQR(e.qrCodeUrl)}}},[e._v("下载二维码")]):e._e()],1)])])])},n=[],r=(i("7db0"),i("d3b7"),i("c7ea")),s=i("cf45"),o=1,l=2,c={name:"",components:{},props:{formRowData:void 0},data:function(){return{spreadData:[]}},computed:{qrCodeUrl:function(){var e;return null===(e=this.spreadData.find((function(e){return e.type===l})))||void 0===e?void 0:e.qrCodeUrl},linkUrl:function(){var e;return null===(e=this.spreadData.find((function(e){return e.type===o})))||void 0===e?void 0:e.linkUrl}},watch:{},methods:{getNewSpreadData:function(e){var t=this;Object(r["r"])({id:e}).then((function(e){t.spreadData=e.data.wayList}))},onClose:function(){this.$emit("update:visible",!1)},downloadQR:function(e){var t;Object(s["w"])(e,"".concat((null===(t=this.formRowData)||void 0===t?void 0:t.formName)||"推广二维码"))}}},u=c,d=(i("5d43"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"70324a95",null);t["default"]=p.exports},"6da6":function(e,t,i){},"6dad":function(e,t,i){},"6e3d":function(e,t,i){},"6f51":function(e,t,i){"use strict";i("67fe")},"6f66":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-drawer",e._g(e._b({staticClass:"get-qrcode-drawer",attrs:{title:"如何获取企微活码","before-close":e.handleClose,"append-to-body":!0,size:"780px"}},"el-drawer",e.$attrs,!1),e.$listeners),[a("el-tabs",{attrs:{"tab-position":"left"}},[a("el-tab-pane",{attrs:{label:"电脑端"}},[a("div",{staticClass:"step-title"},[e._v(" 如何在Windows电脑端获取企微活码? ")]),a("div",{staticClass:"section-item"},[a("div",{staticClass:"content-text mb10"},[a("span",[e._v("注意:如果您的企业未认证,请在企业微信后台创建企微活码")])]),a("div",{staticClass:"content-text"},[e._v("1. 打开企业微信应用,进入工作台下的「客户群」,找到“加入群聊”入口。")]),a("el-image",{staticClass:"part-img",attrs:{src:i("c97d"),"preview-src-list":[i("c97d")]}})],1),a("div",{staticClass:"section-item"},[a("div",{staticClass:"content-text"},[e._v(" 2. 选择“通过二维码方式加入群聊”,点击进入设置页,选择客户扫码后要加入的群聊,完成选择后进入下一步,点击“下载”,得到一张企微活码。 ")]),a("div",{staticClass:"part-div wider-part-div"},[a("el-image",{staticClass:"part-img",attrs:{src:i("a672"),"preview-src-list":[i("a672")]}}),a("el-image",{staticClass:"part-img",attrs:{src:i("cd8a"),"preview-src-list":[i("cd8a")]}}),a("el-image",{staticClass:"part-img",attrs:{src:i("92c3"),"preview-src-list":[i("92c3")]}})],1)])]),a("el-tab-pane",{attrs:{label:"移动端"}},[a("div",{staticClass:"step-title"},[e._v(" 如何在移动端获取企微活码? ")]),a("div",{staticClass:"section-item"},[a("div",{staticClass:"content-text mb10"},[a("span",[e._v("注意:如果您的企业未认证,请在企业微信后台创建企微活码")])]),a("div",{staticClass:"content-text"},[e._v("1. 打开企业微信APP,进入工作台下的「客户群」,找到“加入群聊”入口,选择“通过二维码方式加入群聊”。")]),a("div",{staticClass:"part-div",staticStyle:{width:"538px"}},[a("el-image",{staticClass:"part-img",attrs:{src:i("b2b1"),"preview-src-list":[i("b2b1")]}}),a("el-image",{staticClass:"part-img",attrs:{src:i("d063"),"preview-src-list":[i("d063")]}}),a("el-image",{staticClass:"part-img",attrs:{src:i("8a55"),"preview-src-list":[i("8a55")]}})],1)]),a("div",{staticClass:"section-item"},[a("div",{staticClass:"content-text"},[e._v(" 2. 进入设置页,选择客户扫码后要加入的群聊,完成选择后进入下一步,点击“保存到相册”,得到一张企微活码。 ")]),a("div",{staticClass:"part-div",staticStyle:{width:"340px"}},[a("el-image",{staticClass:"part-img",attrs:{src:i("fc95"),"preview-src-list":[i("fc95")]}}),a("el-image",{staticClass:"part-img",attrs:{src:i("848bb"),"preview-src-list":[i("848bb")]}})],1)])]),a("el-tab-pane",{attrs:{label:"企业微信后台"}},[a("div",{staticClass:"step-title"},[e._v(" 如何在企业微信后台获取企微活码? ")]),a("div",{staticClass:"section-item"},[a("div",{staticClass:"content-text"},[e._v("1. 登录企业微信后台,进入 "),a("el-link",{attrs:{type:"primary",href:"https://work.weixin.qq.com/wework_admin/frame#customer/analysis",target:"_blank"}},[e._v("【客户联系】")]),e._v(" ,找到“加入群聊”入口。 ")],1),a("el-image",{staticClass:"part-img",attrs:{src:i("27fc"),"preview-src-list":[i("27fc")]}})],1),a("div",{staticClass:"section-item"},[a("div",{staticClass:"content-text"},[e._v(" 2. 选择“通过二维码方式加入群聊”,点击进入设置页,选择客户扫码后要加入的群聊,完成选择后创建,点击“下载”,得到一张企微活码。 ")]),a("el-image",{staticClass:"part-img",attrs:{src:i("ca89"),"preview-src-list":[i("ca89")]}}),a("el-image",{staticClass:"part-img",attrs:{src:i("18c9"),"preview-src-list":[i("18c9")]}}),a("el-image",{staticClass:"part-img",attrs:{src:i("99a6"),"preview-src-list":[i("99a6")]}})],1)])],1)],1)},n=[],r={name:"",components:{},props:{},data:function(){return{}},methods:{handleClose:function(){this.$emit("update:visible",!1)}}},s=r,o=(i("d15e"),i("8818"),i("2877")),l=Object(o["a"])(s,a,n,!1,null,"492108ae",null);t["default"]=l.exports},"6f72":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"导入表",visible:e.visible,width:"800px",top:"5vh","append-to-body":"","close-on-click-modal":!1},on:{"update:visible":function(t){e.visible=t}}},[i("el-form",{ref:"queryForm",attrs:{model:e.queryParams,inline:!0}},[i("el-form-item",{attrs:{label:"表名称",prop:"tableName"}},[i("el-input",{attrs:{placeholder:"请输入表名称",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.tableName,callback:function(t){e.$set(e.queryParams,"tableName",t)},expression:"queryParams.tableName"}})],1),i("el-form-item",{attrs:{label:"表描述",prop:"tableComment"}},[i("el-input",{attrs:{placeholder:"请输入表描述",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.tableComment,callback:function(t){e.$set(e.queryParams,"tableComment",t)},expression:"queryParams.tableComment"}})],1),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("查询")]),i("el-button",{staticClass:"btn-reset",attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),i("el-row",[i("el-table",{ref:"table",attrs:{data:e.dbTableList,height:"260px"},on:{"row-click":e.clickRow,"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),i("el-table-column",{attrs:{prop:"tableName",label:"表名称","show-overflow-tooltip":!0}}),i("el-table-column",{attrs:{prop:"tableComment",label:"表描述","show-overflow-tooltip":!0}}),i("el-table-column",{attrs:{prop:"createTime",label:"创建时间"}}),i("el-table-column",{attrs:{prop:"updateTime",label:"更新时间"}})],1),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}})],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:e.handleImportTable}},[e._v("确 定")]),i("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取 消")])],1)],1)},n=[],r=(i("a15b"),i("d81d"),i("4b72")),s=i("dd70"),o={data:function(){return{visible:!1,tables:[],total:0,dbTableList:[],queryParams:{pageNum:1,pageSize:s["Ic"],tableName:void 0,tableComment:void 0}}},methods:{show:function(){this.getList(),this.visible=!0},clickRow:function(e){this.$refs.table.toggleRowSelection(e)},handleSelectionChange:function(e){this.tables=e.map((function(e){return e.tableName}))},getList:function(){var e=this;Object(r["e"])(this.queryParams).then((function(t){e.dbTableList=t.rows,e.total=t.total}))},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleImportTable:function(){var e=this;Object(r["d"])({tables:this.tables.join(",")}).then((function(t){e.msgSuccess(t.msg),e.visible=!1,e.$emit("ok")}))}}},l=o,c=i("2877"),u=Object(c["a"])(l,a,n,!1,null,null,null);t["default"]=u.exports},"6f80":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"list"},[e.loading?i("div"):i("empty-default-icon",{staticClass:"h100",attrs:{text:"暂无聊天对象",length:e.list.length}},[e.personList.length>=1?i("ul",{staticClass:"customer-list"},e._l(e.list,(function(t,a){return i("li",{key:a,class:{liActive:a==e.personIndex},on:{click:function(i){return e.liClick(t,a)}}},[i("div",{staticClass:"img-div"},[i("img",{attrs:{src:e.getHeadImgUrl(t.receiveWeUser&&t.receiveWeUser.avatarMediaid)}})]),i("div",{staticClass:"info-div"},[i("p",[e._v(e._s(t.receiveWeUser&&t.receiveWeUser.name)+" "),i("span",{staticClass:"fr gray"},[e._v(e._s(t.finalChatContext?e.parseTime(t.finalChatContext.msgtime):""))])]),t.finalChatContext&&t.finalChatContext.text?i("p",{staticClass:"gray padt10 toe"},[e._v(e._s(t.finalChatContext?t.finalChatContext.text.content:""))]):e._e()])])})),0):e._e()])],1)},n=[],r=i("e77d"),s=i("cf45"),o={components:{EmptyDefaultIcon:r["a"]},props:{personList:{type:Array,default:function(){return[]}},loading:{type:Boolean,defluat:!1}},data:function(){return{loadings:!0,personIndex:-1,list:[]}},watch:{personList:function(e){this.personIndex=-1,this.list=e}},methods:{getHeadImgUrl:s["B"],liClick:function(e,t){this.personIndex=t,this.$emit("chatFn",e)}}},l=o,c=(i("4774"),i("2877")),u=Object(c["a"])(l,a,n,!1,null,"24f735e2",null);t["default"]=u.exports},"6f88":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"overview-page"},[i("SelectUser",{attrs:{visible:e.dialogVisibleSelectUser,title:"选择员工/部门","is-only-leaf":!1,"is-dep-linkage":"","selected-user-list":e.userAndDepartmentList},on:{"update:visible":function(t){e.dialogVisibleSelectUser=t},success:e.selectedUserOrDepartment}}),i("SelectChannel",{attrs:{visible:e.dialogVisibleSelectChannel,"confirm-selected-code-list":e.channelList},on:{"update:visible":function(t){e.dialogVisibleSelectChannel=t},success:e.selectedChannel}}),i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{inline:!0,model:e.query,"label-width":"100px",size:"small"}},[i("el-form-item",{attrs:{prop:"code"}},[i("div",{staticClass:"tag-input",on:{click:function(t){e.dialogVisibleSelectChannel=!0}}},[e.channelList.length?[i("div",{staticClass:"code-label"},[e._v(" "+e._s(e.getCodeShowLabel(e.channelList))+" ")])]:i("span",{staticClass:"tag-place"},[e._v("请选择渠道")])],2)]),i("el-form-item",{attrs:{prop:"name"}},[i("div",{staticClass:"tag-input",on:{click:function(t){e.dialogVisibleSelectUser=!0}}},[e.userAndDepartmentList.length?e._l(e.userAndDepartmentList,(function(e,t){return i("el-tag",{key:t,staticClass:"theme-text-color user-tag iaic"},[i("TagUserShow",{attrs:{name:e.name,"show-icon":!e.userId}})],1)})):i("span",{staticClass:"tag-place"},[e._v("请选择员工/部门")])],2)]),i("el-form-item",[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions,clearable:!1},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),i("el-form-item",[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.onSearch()}}},[e._v("查询")]),i("el-button",{staticClass:"btn-reset",on:{click:e.resetForm}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"data",fn:function(){return[i("div",{staticClass:"data-overview"},[i("Statistics",{attrs:{title:"数据总览","col-list":e.colList}},[i("template",{slot:"operate"},[i("el-popover",{attrs:{trigger:"hover",placement:"left-start"}},[i("div",{staticClass:"popover-content"},[i("div",{staticClass:"info"},[i("p",[e._v("累计添加客户:截止到查询时间,累计通过渠道添加员工的客户数")]),i("p",[e._v("留存客户总数:截止到查询时间,未将员工删除的客户数")]),i("p",[e._v("新增客户数:查询时间内,通过渠道添加员工的客户数,包含流失客户")]),i("p",[e._v("流失客户数:查询时间内,把员工删除的客户数")]),i("p",[e._v("新客留存率:截止当前,未将员工删除的新增客户/新增客户数")])])]),i("div",{staticClass:"statistic theme-text-color",attrs:{slot:"reference"},slot:"reference"},[e._v("统计说明")])])],1)],2)],1),i("div",{staticClass:"table-overview"},[i("div",{staticClass:"detail-title"},[e._v(" 数据详情 ")]),i("div",{staticClass:"forms-handle-btn"},[i("el-radio-group",{attrs:{size:"medium"},on:{input:e.dimensionTypeChange},model:{value:e.dimensionType,callback:function(t){e.dimensionType=t},expression:"dimensionType"}},[i("el-radio-button",{attrs:{label:e.CODE_DIMENSION}},[e._v("渠道维度")]),i("el-radio-button",{attrs:{label:e.STAFF_DIMENSION}},[e._v("员工维度")]),i("el-radio-button",{attrs:{label:e.DATE_DIMENSION}},[e._v("日期维度")])],1),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["stastistic:channelStatistics:export"],expression:"['stastistic:channelStatistics:export']"}],staticClass:"btn-reset btn-export",on:{click:e.exportForms}},[e._v("导出报表")])],1),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"showTable",attrs:{data:e.list}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.list.length,text:e.showChooseCodeTips?"请先选择渠道":"暂无数据"}})],1),e.dimensionType===e.STAFF_DIMENSION?i("el-table-column",{attrs:{prop:"userName",label:"员工","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(e){var t=e.row;return[i("UserItem",{attrs:{data:t,"is-staff":!0}})]}}],null,!1,37180352)}):e._e(),e.dimensionType===e.DATE_DIMENSION?i("el-table-column",{attrs:{prop:"time",label:"日期","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e._v(" "+e._s(i.time)+" ")]}}],null,!1,542075754)}):e._e(),e.dimensionType===e.CODE_DIMENSION?i("el-table-column",{attrs:{prop:"empleName",label:"渠道","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-tooltip",{attrs:{effect:"dark",content:a.empleName,placement:"top"}},[i("span",{staticClass:"intwoline"},[e._v(" "+e._s(a.empleName)+" ")])])]}}],null,!1,2125457353)}):e._e(),i("el-table-column",{attrs:{prop:"accumulateCustomerCnt",label:"累计添加客户","min-width":"180"}}),i("el-table-column",{attrs:{prop:"retainCustomerCnt",label:"留存客户总数","min-width":"180"}}),i("el-table-column",{attrs:{prop:"newCustomerCnt",label:"新增客户数","min-width":"180"}}),i("el-table-column",{attrs:{prop:"lossCustomerCnt",label:"流失客户数","min-width":"180"}}),i("el-table-column",{attrs:{prop:"retainNewCustomerRate",label:"新客留存率","min-width":"180"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e._v(" "+e._s(i.retainNewCustomerRate===e.DATA_STATISTICS_DEFAULT_SHOW?e.DATA_STATISTICS_DEFAULT_SHOW:i.retainNewCustomerRate+"%")+" ")]}}])})],2),i("pagination",{attrs:{total:1*e.total,page:e.pageQuery.pageNum,limit:e.pageQuery.pageSize,disabled:e.loading},on:{"update:page":function(t){return e.$set(e.pageQuery,"pageNum",t)},"update:limit":function(t){return e.$set(e.pageQuery,"pageSize",t)},pagination:function(t){return e.handleChangePage()}}})],1)]},proxy:!0}])})],1)},n=[],r=i("2909"),s=i("ade3"),o=(i("a15b"),i("d81d"),i("fb6a"),i("d3b7"),i("b66d")),l=i("069e"),c=i("dd70"),u=i("e77d"),d=i("86e8"),p=i("515a"),f=i("0034"),A=i("c958"),h=i("cf45"),m=i("48fb"),g=i("e2e0"),v={name:"",components:{RightContainer:o["a"],Statistics:l["a"],EmptyDefaultIcon:u["a"],UserItem:d["a"],TagUserShow:p["a"],SelectUser:A["a"],SelectChannel:f["default"]},mixins:[g["a"]],data:function(){var e=this;return{DATE_DIMENSION:c["G"],STAFF_DIMENSION:c["hd"],CODE_DIMENSION:c["r"],DATA_STATISTICS_DEFAULT_SHOW:c["F"],dialogVisibleSelectUser:!1,userAndDepartmentList:[],pickerMinDate:"",pickerOptions:{onPick:function(t){e.pickerMinDate=new Date(t.minDate).getTime()},disabledDate:function(t){if(e.pickerMinDate){var i=new Date(Object(h["b"])(e.pickerMinDate)).getTime(),a=new Date(Object(h["c"])(e.pickerMinDate)).getTime();return t.getTime()>a||t.getTime()<i||t.getTime()<new Date(h["a"]).getTime()||t.getTime()>new Date(h["d"]).getTime()}return t.getTime()<new Date(h["a"]).getTime()||t.getTime()>new Date(h["d"]).getTime()}},dateRange:[h["d"],h["d"]],query:{departmentIds:[],userIds:[],beginDate:void 0,endDate:void 0},pageQuery:{pageNum:1,pageSize:c["Ic"]},total:0,list:[],allListByDate:[],loading:!1,colList:[{accumulateCustomerCnt:0,title:"累计添加客户",filed:"accumulateCustomerCnt"},{retainCustomerCnt:0,title:"留存客户总数",filed:"retainCustomerCnt"},{newCustomerCnt:0,title:"新增客户数",filed:"newCustomerCnt"},{lossCustomerCnt:0,title:"流失客户数",filed:"lossCustomerCnt"},{retainNewCustomerRate:c["F"],title:"新客留存率",unit:"%",filed:"retainNewCustomerRate"}],dimensionType:c["r"],dialogVisibleSelectChannel:!1,channelList:[],showChooseCodeTips:!0}},methods:{dimensionTypeChange:function(){this.getList(!0)},getCodeShowLabel:function(e){return e.map((function(e){return e.scenario})).join("、")},selectedUserOrDepartment:function(e){this.userAndDepartmentList=e},selectedChannel:function(e){this.channelList=e},getDataOverview:function(){var e=this;Object(m["E"])(this.getSearchPayload()).then((function(t){e.colList=e.colList.map((function(e){var i;return e[e.filed]=null===t||void 0===t||null===(i=t.data)||void 0===i?void 0:i[e.filed],e}))})).catch((function(){}))},getSearchPageParams:function(){return this.dimensionType!==c["G"]?this.pageQuery:{}},getList:function(e){var t=this;if(this.channelList.length){e&&(this.pageQuery.pageNum=1),this.loading=!0;var i=Object(s["a"])(Object(s["a"])(Object(s["a"])({},c["G"],m["b"]),c["hd"],m["c"]),c["r"],m["a"]);i[this.dimensionType](this.getSearchPayload(),this.getSearchPageParams()).then((function(e){var i=Object(r["a"])(e.rows);t.dimensionType===c["G"]?(t.allListByDate=i,t.list=t.dealPaging(i)):t.list=i,t.total=e.total||0})).catch((function(){t.list=[]})).finally((function(){t.modifyButtonStatus(),t.loading=!1}))}},dealPaging:function(e){var t=this.pageQuery,i=t.pageNum,a=t.pageSize;return e.slice((i-1)*a,i*a)},onSearch:function(){if(!this.channelList.length)return this.modifyButtonStatus(),this.msgWarn("请先选择渠道");this.showChooseCodeTips=!1,this.getDataOverview(),this.getList(!0)},resetForm:function(){this.userAndDepartmentList=[],this.query=this.$options.data().query,this.channelList=[],this.colList=this.$options.data().colList,this.list=[],this.pickerMinDate="",this.showChooseCodeTips=!0,this.dateRange=[h["d"],h["d"]],this.pageQuery=this.$options.data().pageQuery,this.total=this.$options.data().total},getSearchPayload:function(){if(this.dateRange?(this.query.beginDate=this.dateRange[0],this.query.endDate=this.dateRange[1]):(this.query.beginDate="",this.query.endDate=""),this.userAndDepartmentList&&this.userAndDepartmentList.length>0){var e=Object(h["F"])(this.userAndDepartmentList);this.query.departmentIds=e.useDepartmentList.map((function(e){return e.id})),this.query.userIds=e.useEmployeesList.map((function(e){return e.userId}))}else this.query.departmentIds=[],this.query.userIds=[];return this.channelList&&this.channelList.length?this.query.empleCodeIdList=this.channelList.map((function(e){return e.id})):this.query.empleCodeIdList=[],this.query},exportForms:function(){var e=this;if(!this.channelList.length)return this.msgWarn("请先选择渠道");var t=Object(s["a"])(Object(s["a"])(Object(s["a"])({},c["G"],m["l"]),c["hd"],m["m"]),c["r"],m["k"]);t[this.dimensionType](this.getSearchPayload()).then((function(t){e.download(t.data.msg,!0)})).catch((function(){e.msgError("导出失败!")}))},handleChangePage:function(){this.dimensionType===c["G"]?this.list=this.dealPaging(this.allListByDate):this.getList()}}},b=v,y=(i("c224"),i("2877")),_=Object(y["a"])(b,a,n,!1,null,"0530493b",null);t["default"]=_.exports},"6fdf":function(e,t,i){"use strict";i("01d8")},"70eb":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container",staticStyle:{"padding-bottom":"0"}},[i("div",{staticClass:"role-left"},[i("div",{staticClass:"role-list-div"},[i("h3",[e._v(" 角色("+e._s(e.roleList.length)+") "),i("i",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:role:add"],expression:"['system:role:add']"}],staticClass:"iconfont icon-add",attrs:{title:"新增角色"},on:{click:e.handleAdd}})]),i("ul",{staticClass:"role-list"},[e._l(e.roleList,(function(t,a){return[i("li",{key:a,class:["theme-list-hover-color",t.roleId===e.nowSelectedRole?"theme-list-selected-color":""],on:{click:function(i){return e.selectRole(t.roleId)}}},[e._v(" "+e._s(t.roleName)+" "),e.ROLE_TYPE.includes(t.roleType)?e._e():i("i",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:role:remove"],expression:"['system:role:remove']"}],staticClass:"iconfont icon-tool-delete",on:{click:function(i){return e.handleDelete(t)}}})])]}))],2)])]),i("div",{staticClass:"role-right"},[i("el-form",{ref:"roleDetailForm",attrs:{"label-width":"78px",model:e.form,rules:{}}},[i("div",{staticClass:"header"},[i("el-form-item",{attrs:{label:"角色名称",prop:"roleName"}},[i("el-input",{attrs:{disabled:e.ROLE_TYPE.includes(e.form.roleType),maxlength:16,"show-word-limit":"",placeholder:"请输入角色名称",width:300},model:{value:e.form.roleName,callback:function(t){e.$set(e.form,"roleName",t)},expression:"form.roleName"}})],1),i("el-form-item",{staticClass:"data-scope-div",attrs:{label:"数据权限",prop:"dataScope"}},[i("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.dataScope,callback:function(t){e.$set(e.form,"dataScope",t)},expression:"form.dataScope"}},e._l(e.dataScopeOptions,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),2==e.form.dataScope?i("SelectTree",{attrs:{"check-strictly":!0,data:e.deptOptions,"default-key":e.form.deptIds,clearable:"","default-expand-keys":e.deptOptions[0]&&e.deptOptions[0].id,multiple:""},on:{getValue:e.setTreeMenu}}):e._e()],1),i("el-form-item",{attrs:{label:"备注"}},[i("el-input",{attrs:{maxlength:64,"show-word-limit":"",placeholder:"选填,备注角色分组的依据,以便更好管理"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1),i("div",{staticClass:"role-tree",attrs:{id:"role-tree-id"}},[i("div",{staticClass:"tree-header"},[e._v("功能权限设置")]),i("el-table",{ref:"roleTreeTable",staticClass:"tree-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,height:e.tableHeight,border:"","span-method":e.objectSpanMethod}},[i("el-table-column",{attrs:{prop:"parentLabel",label:"功能菜单",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-checkbox",{key:t.row.id,attrs:{value:e.checkData(t.row.parentId)},on:{change:function(i){return e.changeCheck("menu",t.row,i)}}},[e._v(" "+e._s(t.row.parentLabel)+" ")])]}}])}),i("el-table-column",{attrs:{prop:"label",label:"功能模块",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-checkbox",{key:t.row.id,attrs:{value:e.checkData(t.row.id)},on:{change:function(i){return e.changeCheck("model",t.row,i)}}},[e._v(" "+e._s(t.row.label)+" ")])]}}])}),i("el-table-column",{attrs:{prop:"address",label:"功能点","min-width":"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-row",{attrs:{gutter:20,type:"“flex”"}},[e._l(t.row.children,(function(t){return[i("el-col",{key:t.id,attrs:{xl:6,lg:8,md:12,sm:14}},[i("el-checkbox",{key:t.id,staticClass:"pointer-checkbox",attrs:{value:e.checkData(t.id)},on:{change:function(i){return e.changeCheck("pointer",t,i)}}},[e._v(" "+e._s(t.label)+" ")])],1)]}))],2)]}}])})],1)],1),i("el-form-item",{staticClass:"tool",attrs:{label:" "}},[i("RequestButton",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:role:edit"],expression:"['system:role:edit']"}],attrs:{size:"small",type:"primary","request-method":e.updateRoleInfo,"button-type":"save"}},[e._v("保 存")])],1)],1)],1),i("el-dialog",{staticClass:"foot-button-reverse-dialog-wrapper",attrs:{title:e.title,visible:e.open,width:"500px","append-to-body":"","close-on-click-modal":!1},on:{"update:visible":function(t){e.open=t}}},[i("el-form",{ref:"roleForm",attrs:{model:e.roleForm,rules:e.rules,"label-width":"80px"}},[i("el-form-item",{attrs:{label:"角色名称",prop:"roleName"}},[i("el-input",{attrs:{placeholder:"请输入角色名称",maxlength:"16","show-word-limit":""},model:{value:e.roleForm.roleName,callback:function(t){e.$set(e.roleForm,"roleName",t)},expression:"roleForm.roleName"}})],1),i("el-form-item",{attrs:{label:"数据权限"}},[i("el-select",{model:{value:e.roleForm.dataScope,callback:function(t){e.$set(e.roleForm,"dataScope",t)},expression:"roleForm.dataScope"}},e._l(e.dataScopeOptions,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:2==e.roleForm.dataScope,expression:"roleForm.dataScope == 2"}],attrs:{label:""},model:{value:e.roleForm.dataScopeList,callback:function(t){e.$set(e.roleForm,"dataScopeList",t)},expression:"roleForm.dataScopeList"}},[i("el-tree",{ref:"dept",attrs:{data:e.deptOptions,"show-checkbox":"","default-expand-all":"","check-strictly":"","node-key":"id","empty-text":"加载中,请稍后",props:e.defaultProps}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("RequestButton",{attrs:{type:"primary","request-method":e.submitForm,"button-type":"submit"}},[e._v("确 定")]),i("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},n=[],r=i("2909"),s=i("5530"),o=i("c7eb"),l=i("1da1"),c=(i("99af"),i("4de4"),i("caad"),i("d81d"),i("a9e3"),i("d3b7"),i("2532"),i("159b"),i("52a9")),u=i("cf45"),d=i("3528"),p=i("a6dc"),f=i("b775");function A(){return Object(f["a"])({url:"/system/dept/treeselect",method:"get"})}var h=i("fb36"),m=i("ed08"),g=i("dd70"),v=i("ceac"),b=i.n(v),y=i("eed6"),_=i.n(y),w=650,C=1,x=2,k={name:"Role",components:{SelectTree:h["a"],RequestButton:c["a"]},data:function(){return{loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,roleList:[],title:"",open:!1,dateRange:[],statusOptions:[],dataScopeOptions:[{value:"1",label:"全部数据权限"},{value:"2",label:"自定数据权限"},{value:"3",label:"本部门数据权限"},{value:"4",label:"本部门及以下数据权限"},{value:"5",label:"仅本人数据权限"}],menuOptions:[],deptOptions:[],form:{},roleForm:{},defaultProps:{children:"children",label:"label"},rules:{roleName:[{required:!0,message:"角色名称不能为空",trigger:"blur"}]},roleInfoDataScopeIds:[],nowSelectedRole:"",tableData:[],customDeptObj:{value:"",label:""},tableHeight:w,checkedKeys:[],menuTree:{},isChange:!1,ROLE_TYPE:[C,x]}},watch:{nowSelectedRole:function(e){var t=this;this.getRoleInfo(e).then((function(e){t.form=e})),this.getRoleMenuTreeselect(e)}},created:function(){var e=this;this.getList(0),this.getDicts("sys_normal_disable").then((function(t){e.statusOptions=t.data})),this.getDeptTreeselect(),this.$store.dispatch("app/setBusininessDesc","\n <div>员工可操作菜单和可见数据范围由系统角色决定,系统将根据其所在企业部门和角色自动为新员工初始化系统角色。</div>\n <div>管理员:最顶级部门的上级</div>\n <div>部门管理员:普通部门的上级</div>\n <div>普通员工:部门的普通成员</div>\n ")},beforeRouteLeave:function(e,t,i){var a=this;if(!this.isChange)return i();this.confirmModal({msg:"离开后,当前页面更改内容不会保存,是否继续?"},Object(l["a"])(Object(o["a"])().mark((function e(){return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a.isChange=!1,i();case 2:case"end":return e.stop()}}),e)}))))},methods:{objectSpanMethod:function(e){var t=e.row,i=e.column,a=e.rowIndex,n=e.columnIndex;if(1===n||0===n){if(a>0&&t[i.property]===this.tableData[a-1][i.property])return{rowspan:0,colspan:0};for(var r=1,s=a;s<this.tableData.length-1;s++)t[i.property]===this.tableData[s+1][i.property]&&r++;return{rowspan:r,colspan:1}}},getList:function(e){var t=this;this.loading=!0,Object(d["d"])({}).then((function(i){t.roleList=i.rows,void 0!==e&&i.rows[0]&&(t.nowSelectedRole=i.rows[e].roleId),t.total=i.total,t.loading=!1}))},getDeptTreeselect:function(){var e=this;this.deptOptions&&0!==this.deptOptions.length||A().then((function(t){e.deptOptions=t.data}))},getMenuAllCheckedKeys:function(e){var t=e.getHalfCheckedKeys(),i=e.getCheckedKeys();return t.unshift.apply(t,i),t},dealTreeData:function(e){var t=[];e.map((function(e){e.children&&e.children.map((function(i){i.children&&i.children.map((function(e){e.parentId=i.id})),t.push(Object(s["a"])({parentLabel:e.label,parentId:e.id},i))}))})),this.tableData=t,this.tableData=this.filterMenu(this.tableData)},filterMenu:function(e){var t=Object(r["a"])(e);return t=t.filter((function(e){return!g["pd"].includes(e.label)})),t},dealMenuTree:function(e){var t={},i=e.concat();return i.forEach((function(e){var i=Object.assign({},e),a=i.children?i.children.concat():[],n=[],r={};a.forEach((function(e){var t=[];if(n.push(Number(e.id)),e.children){var i={};e.children.forEach((function(e){t.push(Number(e.id)),i[e.id]=e})),e["children"]=i,e["childIds"]=t}r[e.id]=e})),i["children"]=r,i["childIds"]=n,t[e.id]=i})),t},getRoleMenuTreeselect:function(e){var t=this;return Object(p["e"])(e).then((function(e){var i=Object(r["a"])(e.data.checkedKeys);t.checkedKeys=i;var a=Object(m["h"])(e.data.menus);return t.menuTree=t.dealMenuTree(a),t.dealTreeData(e.data.menus),e}))},cancel:function(){this.open=!1,this.reset()},reset:function(){void 0!==this.$refs.menu&&this.$refs.menu.setCheckedKeys([]),this.roleForm={roleId:void 0,roleName:void 0,roleKey:void 0,roleSort:0,status:"0",menuIds:[],deptIds:[],remark:void 0},this.resetForm("roleForm")},handleAdd:function(){this.reset(),this.open=!0,this.title="添加角色"},updateRoleInfo:function(){var e=this;this.isChange=!1,"2"===this.form.dataScope&&(this.form.deptIds=this.roleInfoDataScopeIds),this.form.menuIds=this.checkedKeys,Object(d["e"])(this.form).then((function(t){Object(u["i"])(e.$store,"save"),e.msgSuccess("修改成功"),e.open=!1,e.getRoleInfo(e.nowSelectedRole).then((function(t){e.form=t}))}))},submitForm:function(){var e=this;this.$refs["roleForm"].validate((function(t){t?("2"===e.roleForm.dataScope&&(e.roleForm.deptIds=e.getMenuAllCheckedKeys(e.$refs.dept)),Object(d["a"])(e.roleForm).then((function(t){Object(u["i"])(e.$store,"submit"),e.msgSuccess("新增成功"),e.open=!1,e.getList()}))):Object(u["i"])(e.$store,"submit")}))},handleDelete:function(e){var t=this,i=e.roleId||this.ids;this.confirmModal({msg:"即将删除角色“"+e.roleName+"”,是否继续?"},(function(){return Object(d["b"])(i).then((function(){var e=t.roleList.length;t.getList(e-2),t.msgSuccess("删除成功")})).catch((function(i){i.code===g["Sc"]&&t.$alert("有员工使用角色“".concat(e.roleName,"”,不可删除"),"操作须知",{confirmButtonText:"我知道了",type:"warning"})}))}))},selectRole:function(e){var t=this;this.isChange?e!==this.nowSelectedRole&&this.confirmModal({msg:"离开后,当前页面更改内容不会保存,是否继续?"},Object(l["a"])(Object(o["a"])().mark((function i(){return Object(o["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:t.isChange=!1,t.nowSelectedRole=e;case 2:case"end":return i.stop()}}),i)})))):this.nowSelectedRole=e},getRoleInfo:function(e){return Object(d["c"])(e).then((function(e){return e.data}))},setTreeMenu:function(e,t){this.roleInfoDataScopeIds=e},checkData:function(e){var t=this.checkedKeys.includes(Number(e));return t},dealModelChild:function(e,t,i){var a=Object(r["a"])(e);for(var n in t)t[n].children&&(a=i?a.concat(t[n].childIds):b()(a,t[n].childIds));return a},dealMenuCheck:function(e,t,i,a){var n=Object(r["a"])(a),s=i[t],o=[];return s.childIds&&s.childIds.length>0&&(o=Object(r["a"])(s.childIds)),e?(n.push(t),n=n.concat(o),n=this.dealModelChild(n,s.children,e)):(n.remove(t),n=b()(n,o),n=this.dealModelChild(n,s.children,e)),n},dealModelCheck:function(e,t,i,a,n){var s=Object(r["a"])(a),o=n[i];return e?(s.push(t),s.push(i),s=s.concat(o.children[t].childIds)):(s.remove(t),s=b()(s,o.children[t].childIds)),s},dealPointerCheck:function(e,t,i,a,n){var s=Object(r["a"])(a);if(e)for(var o in s.push(t),s.push(i),n)n[o].childIds&&n[o].childIds.includes(i)&&s.push(Number(o));else s.remove(t);return s},changeCheck:function(e,t,i){var a,n=Object(r["a"])(this.checkedKeys),o=Object(s["a"])({},this.menuTree);switch(e){case"menu":a=Number(t.parentId),n=this.dealMenuCheck(i,a,o,n);break;case"model":a=Number(t.id);var l=Number(t.parentId);n=this.dealModelCheck(i,a,l,n,o);break;case"pointer":a=Number(t.id);var c=Number(t.parentId);n=this.dealPointerCheck(i,a,c,n,o);break}this.isChange=!0,this.checkedKeys=_()(n)}}},T=k,S=(i("3a51"),i("2877")),I=Object(S["a"])(T,a,n,!1,null,"72f55f38",null);t["default"]=I.exports},"713c":function(e,t,i){},7140:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",e._g(e._b({staticClass:"batch-update-group",attrs:{"close-on-click-modal":!1},on:{close:e.onClose}},"el-dialog",e.$attrs,!1),e.$listeners),[i("el-form",{ref:"batchGroup",staticClass:"batch-update-group-form",attrs:{model:e.formData,rules:e.rules,size:"medium","label-width":"80px"}},[i("el-form-item",{attrs:{label:"所属分组",prop:"categoryId"}},[i("el-cascader",{ref:"cascader",attrs:{options:e.groupTreeData,props:e.defaultProps,clearable:"",placeholder:"请选择所选话术的所属分组",filterable:""},on:{change:e.handleChangeCategoryId},model:{value:e.formData.categoryId,callback:function(t){e.$set(e.formData,"categoryId",t)},expression:"formData.categoryId"}})],1)],1),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.onClose}},[e._v("取消")]),i("RequestButton",{attrs:{type:"primary","request-method":e.handelConfirm,"button-type":"save"}},[e._v("确定")])],1)],1)},n=[],r=i("c7eb"),s=i("1da1"),o=(i("d81d"),i("9543")),l=i("cf45"),c=i("52a9"),u={name:"",components:{RequestButton:c["a"]},props:{groupTreeData:{type:Array,default:function(){return[]}},multiSelect:{type:Array,default:function(){return[]}}},data:function(){return{defaultProps:{value:"id",label:"name",children:"children",checkStrictly:!0,emitPath:!1},rules:{categoryId:[{required:!0,message:"请选择话术所属分组",trigger:"blur"}]},formData:{}}},created:function(){},mounted:function(){},methods:{onClose:function(){this.$emit("update:visible",!1)},handelConfirm:function(){var e=this;this.$refs["batchGroup"].validate(function(){var t=Object(s["a"])(Object(r["a"])().mark((function t(i){var a,n;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i){t.next=2;break}return t.abrupt("return",Object(l["i"])(e.$store,"save"));case 2:return a=[],a=e.multiSelect.map((function(e){return e.id})),t.next=6,Object(o["f"])({categoryId:e.formData.categoryId,ids:a});case 6:n=t.sent,n&&(Object(l["i"])(e.$store,"save"),e.$emit("getList"),e.$emit("update:visible",!1));case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},handleChangeCategoryId:function(){this.$refs.cascader.dropDownVisible=!1}}},d=u,p=(i("f853"),i("2877")),f=Object(p["a"])(d,a,n,!1,null,"9511b334",null);t["default"]=f.exports},"71b2":function(e,t,i){},"71bc":function(e,t,i){"use strict";i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){return s})),i.d(t,"e",(function(){return o})),i.d(t,"d",(function(){return l})),i.d(t,"b",(function(){return c}));var a=i("b775"),n=window.CONFIG.services.wecom+"/communityPresTagGroupV2";function r(e){return Object(a["a"])({url:n+"/list",method:"get",params:e})}function s(e){return Object(a["a"])({url:n+"/",method:"post",data:e})}function o(e){return Object(a["a"])({url:n+"/"+e,method:"DELETE"})}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(a["a"])({url:n+"/stat/"+e,method:"get",params:t})}function c(e){return Object(a["a"])({url:n+"/getExpectedReceptionData",method:"post",data:e})}},"71c9":function(e,t,i){"use strict";i("d3707")},"72d16":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"content"},[i("div",{staticClass:"header-container"},[i("el-input",{staticStyle:{width:"240px"},attrs:{"prefix-icon":"el-icon-search",placeholder:"请输入客户昵称,回车搜索"},on:{input:e.clear},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSearch(t)}},model:{value:e.query.customerName,callback:function(t){e.$set(e.query,"customerName",t)},expression:"query.customerName"}})],1),i("div",{staticClass:"content-container"},[i("RightContainer",{scopedSlots:e._u([{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{"default-sort":{prop:"clickNum",order:null},data:e.customerClickRecordList},on:{"sort-change":e.changeTableSort}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.customerClickRecordList.length}})],1),i("el-table-column",{attrs:{label:"客户",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",{staticClass:"user-info"},[i("img",{attrs:{src:a.headImageUrl}}),i("span",[e._v(e._s(a.customerName))])])]}}])}),i("el-table-column",{attrs:{prop:"clickNum",label:"点击次数",align:"center",sortable:"custom"}}),i("el-table-column",{attrs:{label:"最近点击渠道",align:"center",prop:"channelName"}}),i("el-table-column",{attrs:{label:"最近点击时间",align:"center",prop:"clickTime"}}),i("el-table-column",{attrs:{label:"操作",align:"center",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.checkCustomerInfo(a)}}},[e._v("客户资料")]),i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.openCustomerVisible(a)}}},[e._v("点击记录")])]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.customerClickRecordList.length>0,expression:"customerClickRecordList.length > 0"}],attrs:{total:e.total,limit:e.query.pageSize,disabled:e.loading,page:e.query.pageNum},on:{"update:limit":function(t){return e.$set(e.query,"pageSize",t)},"update:page":function(t){return e.$set(e.query,"pageNum",t)},pagination:function(t){return e.getCustomerClickRecord()}}})]},proxy:!0}])})],1),i("div",{staticClass:"customer-dialog"},[i("el-dialog",{attrs:{title:"点击记录",visible:e.customerVisible,width:"45%"},on:{"update:visible":function(t){e.customerVisible=t}}},[i("el-timeline",e._l(e.activities,(function(t,a){return i("el-timeline-item",{key:a,attrs:{timestamp:t.clickTime}},[e._v(" "+e._s(t.recordText)+" ")])})),1)],1)],1)])},n=[],r=(i("b0c0"),i("b64b"),i("b66d")),s=i("dd70"),o=i("e753"),l=i("e77d"),c=i("f9d1"),u=i("ed08"),d={components:{RightContainer:r["a"],EmptyDefaultIcon:l["a"]},props:{radarId:{type:String,default:""}},data:function(){return{SORT:s["fd"],query:{customerName:"",pageNum:s["M"],pageSize:s["Ic"],radarId:this.radarId,enableSort:null},customerClickRecordList:[],loading:!1,total:0,customerVisible:!1,activities:[]}},created:function(){this.$store.getters.saveCondition&&Object.keys(this.$store.getters.searchQuery[this.$route.name]||{}).length&&(this.query=this.$store.getters.searchQuery[this.$route.name]),this.getCustomerClickRecord()},methods:{changeTableSort:function(e){this.query.enableSort=null,this.query.enableSort=s["fd"][e.order],this.getCustomerClickRecord(1)},openCustomerVisible:function(e){this.getCustomerClickRecordDetail(e),this.customerVisible=!0},checkCustomerInfo:function(e){this.$store.commit("SET_SEARCH_QUERY",{pageName:this.$route.name,query:this.query}),Object(u["l"])(this.$router,o["b"],{},{id:e.externalId,prePageType:"customerClickRecord"})},onSearch:function(){this.getCustomerClickRecord(1)},clear:function(e){e||this.getCustomerClickRecord(1)},getCustomerClickRecord:function(e){var t=this;e&&(this.query.pageNum=e),this.loading=!0,Object(c["h"])(this.query).then((function(e){var i=e.rows,a=e.total;t.loading=!1,t.customerClickRecordList=i,t.total=a}))},getCustomerClickRecordDetail:function(e){var t=this,i={externalId:e.externalId,radarId:this.radarId};Object(c["i"])(i).then((function(e){t.activities=e.data}))}}},p=d,f=(i("3704"),i("2877")),A=Object(f["a"])(p,a,n,!1,null,"76e92222",null);t["default"]=A.exports},7370:function(e,t,i){},"73a5":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("RightContainer",{scopedSlots:e._u([{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.realCodes.slice((e.query.pageNum-1)*e.query.pageSize,e.query.pageNum*e.query.pageSize)},on:{"selection-change":e.handleSelectionChange}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.realCodes.length}})],1),i("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),i("el-table-column",{attrs:{prop:"actualGroupQrCode",label:e.createType===e.CREATE_TYPE["group"]?"群二维码":"企微活码",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(e){var t=e.row;return[i("el-popover",{attrs:{placement:"bottom",trigger:"hover"}},[i("el-image",{staticClass:"code-image--small",attrs:{slot:"reference",src:t.actualGroupQrCode},slot:"reference"}),i("el-image",{staticClass:"code-image",attrs:{src:t.actualGroupQrCode}})],1)]}}])}),e.createType===e.CREATE_TYPE["group"]?i("el-table-column",{attrs:{prop:"chatGroupName",label:"客户群",align:"center"}}):e._e(),e.createType!==e.CREATE_TYPE["corp"]||e.isDKCorp?e._e():i("el-table-column",{attrs:{prop:"roomBaseName",label:"群聊昵称",align:"center"}}),e.createType===e.CREATE_TYPE["group"]?i("el-table-column",{attrs:{prop:"effectTime",label:"有效期",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(" "+e._s(a.effectTime)+" "),a.isExpire?i("el-popover",{attrs:{placement:"bottom",width:"200",trigger:"hover",content:e.getExpireInfo(a.effectTime)}},[i("i",{staticClass:"el-icon-warning expire-icon",attrs:{slot:"reference"},slot:"reference"})]):e._e()]}}],null,!1,1942143505)}):e._e(),i("el-table-column",{attrs:{prop:"scanCodeTimesLimit",label:"进群上限",align:"center"}}),i("el-table-column",{attrs:{prop:"scanCodeTimes",label:"已扫码入群人数",align:"center"},scopedSlots:e._u([{key:"header",fn:function(){return[i("div",[i("span",[e._v("已扫码入群人数")]),e.createType===e.CREATE_TYPE["corp"]?i("el-popover",{attrs:{placement:"top-start",trigger:"hover","popper-class":"tip-popover",content:"客户识别一次企微活码,则认为其已扫码进群,进群人数统计与实际扫码进群人数有误差"}},[i("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"14px"},attrs:{slot:"reference"},slot:"reference"})]):e._e()],1)]},proxy:!0}])}),i("el-table-column",{attrs:{prop:"status",label:"使用状态",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[0===parseInt(a.status)?i("div",{staticClass:"green-text"},[e._v("使用中")]):i("div",{staticClass:"red-text"},[e._v("已停用")])]}},{key:"header",fn:function(){return[i("div",[i("span",[e._v("使用状态")]),i("el-popover",{attrs:{placement:"top-start",trigger:"hover","popper-class":"tip-popover",content:"扫码次数达进群上限时将停用,不再展示给客户"}},[i("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"14px"},attrs:{slot:"reference"},slot:"reference"})])],1)]},proxy:!0}])}),e.createType===e.CREATE_TYPE["corp"]?i("el-table-column",{attrs:{prop:"remark",label:"备注信息",align:"center"}}):e._e(),i("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(i){return e.edit(t.row,t.$index)}}},[e._v("编辑")]),i("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(i){return e.handleRemove(t.row.id)}}},[e._v("删除")])]}}])})],2)]},proxy:!0}])})},n=[],r=(i("a9e3"),i("895e")),s=i("dd70"),o=i("b66d"),l=i("e77d"),c=86400,u=1e3,d={name:"",components:{RightContainer:o["a"],EmptyDefaultIcon:l["a"]},props:{loading:{type:Boolean,default:!1},realCodes:{type:Array,default:function(){return[]}},handleSelectionChange:{type:Function,default:function(){}},getRealCodes:{type:Function,default:function(){}},edit:{type:Function,default:function(){}},createType:{type:Number,default:null},query:{type:Object,default:function(){}}},data:function(){return{CREATE_TYPE:s["v"]}},computed:{isDKCorp:function(){return this.$store.state.serverInfo.dkCorp}},created:function(){},mounted:function(){},methods:{getExpireInfo:function(e){var t=new Date(e).getTime()/u-(new Date).getTime()/u;return t<0?"已过期":t<c?"即将过期":"有效"},handleRemove:function(e){var t=this;this.confirmModal({msg:"删除后,群活码不再统计该客户群的入群人数,且数据不可恢复,是否继续?"},(function(){Object(r["c"])(e).then((function(e){t.getRealCodes()}))}))}}},p=d,f=(i("8127f"),i("2877")),A=Object(f["a"])(p,a,n,!1,null,"c97924ca",null);t["default"]=A.exports},"73da":function(e,t,i){"use strict";i("713c")},"73e3":function(e,t,i){},7410:function(e,t,i){},7415:function(e,t,i){e.exports=i.p+"static/img/background-step-1.dd04184d.png"},"741a":function(e,t,i){},7424:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[i("el-form-item",{attrs:{label:"直播名称",prop:"title"}},[i("el-input",{attrs:{placeholder:"请输入直播名称",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.title,callback:function(t){e.$set(e.queryParams,"title",t)},expression:"queryParams.title"}})],1),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),i("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),i("el-row",{staticClass:"mb8",attrs:{gutter:10}},[i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["xiaoe:zb:export"],expression:"['xiaoe:zb:export']"}],attrs:{type:"warning",plain:"",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1),i("el-button",{attrs:{type:"warning",plain:"",icon:"el-icon-refresh",size:"mini"},on:{click:e.sync}},[e._v("同步直播")]),i("right-toolbar",{attrs:{showSearch:e.showSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:e.getList}})],1),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.zbList},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),i("el-table-column",{attrs:{label:"宣传图",align:"center",width:"100",prop:"aliveImgUrl"},scopedSlots:e._u([{key:"default",fn:function(e){var t=e.row;return[i("div",{staticClass:"code-left"},[i("el-image",{staticClass:"code-image",attrs:{src:t.aliveImgUrl}})],1)]}}])}),e._e(),i("el-table-column",{attrs:{label:"直播名称",align:"center",prop:"title"}}),i("el-table-column",{attrs:{label:"直播开始时间",align:"center",prop:"aliveStartAt",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e.parseTime(t.row.aliveStartAt,"{y}-{m}-{d}")))])]}}])}),i("el-table-column",{attrs:{label:"直播结束时间",align:"center",prop:"aliveStopAt",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e.parseTime(t.row.aliveStopAt,"{y}-{m}-{d}")))])]}}])}),i("el-table-column",{attrs:{label:"直播状态",align:"center",prop:"aliveState"},scopedSlots:e._u([{key:"default",fn:function(t){return["0"==t.row.aliveState?i("el-tag",{attrs:{type:"warning"}},[e._v("未开始")]):e._e(),"1"==t.row.aliveState?i("el-tag",{attrs:{type:"success"}},[e._v("直播中")]):e._e(),"2"==t.row.aliveState?i("el-tag",{attrs:{type:"danger"}},[e._v("已结束")]):e._e()]}}])}),i("el-table-column",{attrs:{label:"观看人次",align:"center",prop:"viewCount"}}),i("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["xiaoe:zb:edit"],expression:"['xiaoe:zb:edit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(i){return e.handleUpdate(t.row)}}},[e._v("修改")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["xiaoe:zb:remove"],expression:"['xiaoe:zb:remove']"}],attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("删除")])]}}])})],1),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),i("el-dialog",{attrs:{title:e.title,visible:e.open,width:"500px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[i("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[i("el-form-item",{attrs:{label:"直播手动结束时间",prop:"aliveManualStopAt"}},[i("el-date-picker",{attrs:{clearable:"",size:"small",type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择直播手动结束时间"},model:{value:e.form.aliveManualStopAt,callback:function(t){e.$set(e.form,"aliveManualStopAt",t)},expression:"form.aliveManualStopAt"}})],1),i("el-form-item",{attrs:{label:"直播结束时间",prop:"aliveStopAt"}},[i("el-date-picker",{attrs:{clearable:"",size:"small",type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择直播结束时间"},model:{value:e.form.aliveStopAt,callback:function(t){e.$set(e.form,"aliveStopAt",t)},expression:"form.aliveStopAt"}})],1),i("el-form-item",{attrs:{label:"直播名称",prop:"title"}},[i("el-input",{attrs:{placeholder:"请输入直播名称"},model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})],1),i("el-form-item",{attrs:{label:"直播观看人次,每5分钟同步一次数据",prop:"viewCount"}},[i("el-input",{attrs:{placeholder:"请输入直播观看人次,每5分钟同步一次数据"},model:{value:e.form.viewCount,callback:function(t){e.$set(e.form,"viewCount",t)},expression:"form.viewCount"}})],1),i("el-form-item",{attrs:{label:"直播开始时间",prop:"aliveStartAt"}},[i("el-date-picker",{attrs:{clearable:"",size:"small",type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择直播开始时间"},model:{value:e.form.aliveStartAt,callback:function(t){e.$set(e.form,"aliveStartAt",t)},expression:"form.aliveStartAt"}})],1),i("el-form-item",{attrs:{label:"直播状态:-1全部;0未开始;1直播中;2已结束",prop:"aliveState"}},[i("el-input",{attrs:{placeholder:"请输入直播状态:-1全部;0未开始;1直播中;2已结束"},model:{value:e.form.aliveState,callback:function(t){e.$set(e.form,"aliveState",t)},expression:"form.aliveState"}})],1),i("el-form-item",{attrs:{label:"直播显隐状态:0-显示,1-隐藏",prop:"resourceState"}},[i("el-input",{attrs:{placeholder:"请输入直播显隐状态:0-显示,1-隐藏"},model:{value:e.form.resourceState,callback:function(t){e.$set(e.form,"resourceState",t)},expression:"form.resourceState"}})],1),i("el-form-item",{attrs:{label:"店铺直播详情页地址",prop:"pageUrl"}},[i("el-input",{attrs:{placeholder:"请输入店铺直播详情页地址"},model:{value:e.form.pageUrl,callback:function(t){e.$set(e.form,"pageUrl",t)},expression:"form.pageUrl"}})],1),i("el-form-item",{attrs:{label:"直播宣传图地址",prop:"aliveImgUrl"}},[i("el-input",{attrs:{placeholder:"请输入直播宣传图地址"},model:{value:e.form.aliveImgUrl,callback:function(t){e.$set(e.form,"aliveImgUrl",t)},expression:"form.aliveImgUrl"}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),i("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},n=[],r=(i("d81d"),i("647c")),s=i("cf45"),o={name:"Zb",components:{},data:function(){return{loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,zbList:[],title:"",open:!1,queryParams:{pageNum:1,pageSize:10,aliveManualStopAt:void 0,aliveStopAt:void 0,title:void 0,viewCount:void 0,aliveStartAt:void 0,aliveState:void 0,resourceState:void 0,pageUrl:void 0,aliveImgUrl:void 0},form:{},rules:{}}},created:function(){this.getList()},methods:{parseTime:s["L"],getList:function(){var e=this;this.loading=!0,Object(r["e"])(this.queryParams).then((function(t){e.zbList=t.rows,e.total=t.total,e.loading=!1}))},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={id:void 0,aliveManualStopAt:void 0,aliveStopAt:void 0,title:void 0,viewCount:void 0,aliveStartAt:void 0,aliveState:void 0,resourceState:void 0,pageUrl:void 0,aliveImgUrl:void 0},this.resetForm("form")},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.id})),this.single=1!==e.length,this.multiple=!e.length},handleAdd:function(){this.reset(),this.open=!0,this.title="添加小鹅通直播信息"},handleUpdate:function(e){var t=this;this.reset();var i=e.id||this.ids;Object(r["d"])(i).then((function(e){t.form=e.data,t.open=!0,t.title="修改小鹅通直播信息"}))},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(null!=e.form.id?Object(r["g"])(e.form).then((function(t){e.msgSuccess("修改成功"),e.open=!1,e.getList()})):Object(r["a"])(e.form).then((function(t){e.msgSuccess("新增成功"),e.open=!1,e.getList()})))}))},handleDelete:function(e){var t=this,i=e.id||this.ids;this.$confirm('是否确认删除小鹅通直播信息编号为"'+i+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(r["b"])(i)})).then((function(){t.getList(),t.msgSuccess("删除成功")}))},sync:function(){Object(r["f"])().then((function(){})),this.msgSuccess("后台开始同步数据,请稍后刷新页面"),this.getList()},handleExport:function(){var e=this,t=this.queryParams;this.$confirm("是否确认导出所有小鹅通直播信息数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(r["c"])(t)})).then((function(t){e.download(t.msg)}))}}},l=o,c=i("2877"),u=Object(c["a"])(l,a,n,!1,null,null,null);t["default"]=u.exports},7459:function(e,t,i){"use strict";i("6604")},"74e9":function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"g",(function(){return s})),i.d(t,"i",(function(){return o})),i.d(t,"e",(function(){return l})),i.d(t,"c",(function(){return c})),i.d(t,"h",(function(){return u})),i.d(t,"b",(function(){return d})),i.d(t,"f",(function(){return p})),i.d(t,"d",(function(){return f}));i("99af");var a=i("b775"),n=window.CONFIG.services.wecom+"/tlp";function r(e){return Object(a["a"])({url:n+"/employ",method:"post",data:e})}function s(e){return Object(a["a"])({url:n+"/list/employ",params:e})}function o(e){return Object(a["a"])({url:"".concat(n,"/").concat(e)})}function l(e){return Object(a["a"])({url:n+"/edit/employ",method:"put",data:e})}function c(e){return Object(a["a"])({url:"".concat(n,"/employ"),method:"delete",data:e})}function u(){return Object(a["a"])({url:"".concat(n,"/group/count")})}function d(e){return Object(a["a"])({url:n+"/group",method:"post",data:e})}function p(e){return Object(a["a"])({url:n+"/edit/group",method:"put",data:e})}function f(e){return Object(a["a"])({url:"".concat(n,"/group"),method:"delete",data:e})}},7500:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"form-setting"},[i("el-form",{attrs:{"label-position":"top","label-width":"80px",model:e.filedForm}},[i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("必填")]),i("el-switch",{model:{value:e.filedForm.required,callback:function(t){e.$set(e.filedForm,"required",t)},expression:"filedForm.required"}})],1)]),i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("标题")])]),i("el-input",{attrs:{resize:"none","show-word-limit":"",maxlength:100,type:"textarea",rows:6},model:{value:e.filedForm.title,callback:function(t){e.$set(e.filedForm,"title",t)},expression:"filedForm.title"}})],1),i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("提示语")])]),i("el-input",{attrs:{resize:"none","show-word-limit":"",maxlength:200,type:"textarea",rows:6},model:{value:e.filedForm.info,callback:function(t){e.$set(e.filedForm,"info",t)},expression:"filedForm.info"}})],1),i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("输入内容限制")])]),i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:e.filedForm.valueLimitType,callback:function(t){e.$set(e.filedForm,"valueLimitType",t)},expression:"filedForm.valueLimitType"}},e._l(e.valueLimitOptions,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),e.filedForm.valueLimitType===e.NUMS_TYPE||e.filedForm.valueLimitType===e.TEXT_LENGTH_TYPE?[i("div",{staticClass:"limit-value"},[i("span",[e._v(e._s(e.filedForm.valueLimitType===e.NUMS_TYPE?"最小":"最少"))]),i("el-input",{staticClass:"ml15",attrs:{placeholder:"请输入数值"},model:{value:e.filedForm.min,callback:function(t){e.$set(e.filedForm,"min",t)},expression:"filedForm.min"}})],1),i("div",{staticClass:"limit-value"},[i("span",[e._v(e._s(e.filedForm.valueLimitType===e.NUMS_TYPE?"最大":"最多"))]),i("el-input",{staticClass:"ml15",attrs:{placeholder:"请输入数值"},model:{value:e.filedForm.max,callback:function(t){e.$set(e.filedForm,"max",t)},expression:"filedForm.max"}})],1)]:e._e()],2)],1)],1)},n=[],r=i("5530"),s=(i("dca8"),i("dd70")),o=i("81f6"),l=1,c=3,u=4,d={components:{},props:{component:{type:Object,default:function(){}}},data:function(){return{NUMS_TYPE:l,TEXT_LENGTH_TYPE:s["od"],filedForm:{required:!0,title:this.component.type===s["Sb"]?"多行文本":"单行文本",info:"请填写",valueLimitType:""},valueLimitOptions:Object.freeze([{value:"",label:"不限制"},{value:l,label:"数值"},{value:s["od"],label:"字数"},{value:c,label:"网址"},{value:u,label:"电子邮箱"}])}},watch:{filedForm:{deep:!0,handler:function(e){o["a"].$emit("changeFiledSettingValue",Object(r["a"])(Object(r["a"])({},e),this.filedForm))}}},mounted:function(){this.filedForm=Object(r["a"])(Object(r["a"])({},this.filedForm),this.component)}},p=d,f=(i("71c9"),i("2877")),A=Object(f["a"])(p,a,n,!1,null,"429d3f5e",null);t["default"]=A.exports},"750c":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"page"},[i("ReturnPage",{attrs:{path:"/operationsCenter/drainageCode/customerGroup"}}),i("div",{staticClass:"wrap-body"},[i("el-alert",{attrs:{title:"功能说明",type:"info",description:"客户扫描生成的客户群活码,将打开一个页面,引导客户进群,页面里显示第一个群聊,若该群聊已过期或达到进群上限,则自动分配下一个群聊。","show-icon":"",closable:!1}}),i("div",{staticClass:"wrap-body-form"},[i("BaseInfo",{ref:"baseInfo",attrs:{"group-code-id":e.groupCodeId}})],1)],1)],1)},n=[],r=i("b80f"),s={components:{BaseInfo:r["default"]},data:function(){return{groupCodeId:null,active:0}},methods:{}},o=s,l=(i("294b"),i("3d08"),i("2877")),c=Object(l["a"])(o,a,n,!1,null,"617c769a",null);t["default"]=c.exports},7595:function(e,t,i){e.exports=i.p+"static/img/wx-logo.04e44b8c.svg"},"75a0":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"drainage-code-detail-page"},[i("div",{staticClass:"go-back"},[i("i",{staticClass:"iconfont icon-restore",on:{click:e.goBack}}),e._v(" 员工活码详情 ")]),i("div",{staticClass:"info-div"},[i("div",{staticClass:"title section-title"},[e._v("员工活码信息")]),i("div",{staticClass:"flex top"},[i("div",{staticClass:"ac"},[e.form.qrCode?i("el-image",{staticStyle:{width:"150px",height:"150px"},attrs:{src:e.form.qrCode,fit:"fit","preview-src-list":[e.form.qrCode]}}):i("div",{staticClass:"err-img"},[e._v("加载失败")]),i("div",{staticClass:"code-id"},[e._v("ID:"+e._s(e.drainageCodeId))]),i("div",[i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.downloadQrCode()}}},[e._v("下载二维码")]),i("el-button",{directives:[{name:"copy",rawName:"v-copy",value:e.form.qrCode,expression:"form.qrCode"}],attrs:{type:"text"}},[e._v("复制链接")])],1)],1),i("el-form",{ref:"form",attrs:{"label-width":"100px"}},[i("el-form-item",{attrs:{label:"活动场景:"}},[e._v(e._s(e.form.scenario))]),i("el-form-item",{attrs:{label:"使用员工:"}},[i("div",{staticClass:"flexw",staticStyle:{"max-width":"600px"}},e._l(e.form.weEmpleCodeUseScops,(function(t,a){return i("el-tag",{key:a,staticClass:"user-tag aic",staticStyle:{"margin-bottom":"5px"},attrs:{size:"small"}},[i("TagUserShow",{attrs:{name:t.businessName,"show-icon":t.businessIdType===e.SCOPELIST_TYPE.DEPARTMENT}})],1)})),1)]),i("el-form-item",{attrs:{label:"客户标签:"}},e._l(e.form.weEmpleCodeTags,(function(t,a){return i("el-tag",{key:a,attrs:{size:"small"}},[e._v(e._s(t.tagName))])})),1),i("el-form-item",{attrs:{label:"客户备注:"}},[e._v(e._s(e.form.remarkName))])],1),i("el-form",{ref:"form",attrs:{"label-width":"100px"}},[i("el-form-item",{attrs:{label:"自动通过:"}},[i("div",{staticStyle:{display:"flex","align-items":"center"}},[i("el-switch",{staticStyle:{"margin-right":"9px"},attrs:{value:!!e.form.skipVerify,disabled:""}}),e.form.skipVerify===e.SKIP_VERIFY["close"]?i("span",[e._v("客户扫码添加需要手动同意添加请求")]):e.form.skipVerify===e.SKIP_VERIFY["allDay"]?i("span",[e._v("全天生效")]):e.form.skipVerify===e.SKIP_VERIFY["timeAdd"]?i("span",[e._v(e._s(e.form.effectTimeOpen+"~"+e.form.effectTimeClose+"生效"))]):e._e()],1)]),i("el-form-item",{attrs:{label:"欢迎语:"}},[i("div",{staticClass:"welcome-div"},[i("div",{staticClass:"welcome-div-content"},[e.form.welcomeMsg?i("div",[e._v("[文字] "+e._s(e.form.welcomeMsg))]):e._e(),e._l(e.form.materialList,(function(t,a){return i("div",{key:a},[t.mediaType===e.MEDIA_TO_WELCOME_TYPE[e.MEDIA_TYPE_SMARTFORM]?i("div",[i("div",[e._v(e._s("["+e.MESSAGE_MEDIA_TYPE[t.mediaType]+"] "+t.form.formName))])]):i("div",[e._v(e._s("["+e.MESSAGE_MEDIA_TYPE[t.mediaType]+"] "+t.materialName))])])}))],2),e.form.materialList&&e.form.materialList.length||e.form.welcomeMsg?i("div",{staticClass:"preview theme-text-color",on:{click:e.hanldePreview}},[e._v("预览效果")]):e._e()])])],1)],1)]),i("div",{staticClass:"data-count-div"},[i("div",{staticClass:"title section-title"},[e._v("数据统计 "),i("el-popover",{attrs:{placement:"top-start",trigger:"hover","popper-class":"tip-popover"}},[i("div",[i("div",[e._v("1. 累积扫码添加人数:查询时间内有扫码添加员工的人数统计,如果重复添加不会重复计数")]),i("div",[e._v("2. 新增人数:当天扫码添加的新增客户数,包含流失客户")]),i("div",[e._v("3. 流失人数:扫码添加后又将成员删除或拉黑的客户")])]),i("i",{staticClass:"iconfont icon-question",attrs:{slot:"reference"},slot:"reference"})])],1),i("div",{staticClass:"scan-count mb15"},[e._v("累积扫码添加人数:"+e._s(e.total))]),i("div",{staticClass:"search-tool"},[i("el-button-group",[i("el-button",{attrs:{size:"small",type:"primary",plain:7!=e.timeRange},on:{click:function(t){return e.setTime(7)}}},[e._v("近7日")]),i("el-button",{attrs:{size:"small",type:"primary",plain:30!=e.timeRange},on:{click:function(t){return e.setTime(30)}}},[e._v("近30日")])],1),i("el-date-picker",{staticClass:"ml20",staticStyle:{width:"260px"},attrs:{size:"small","value-format":"yyyy-MM-dd",type:"daterange",clearable:!1,"range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.getList},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}}),i("el-select",{staticClass:"select-user",attrs:{clearable:"",filterable:"",placeholder:"请选择员工"},on:{change:e.handleSelect},model:{value:e.selectedUser,callback:function(t){e.selectedUser=t},expression:"selectedUser"}},e._l(e.userByEmplyCodeList,(function(t,a){return i("el-option",{key:a,attrs:{label:t.businessName,value:t.businessId}},[i("div",{staticClass:"select_option"},[t.businessIdType==e.SCOPELIST_TYPE.DEPARTMENT?i("i",{staticClass:"iconfont icon-folder"}):e._e(),i("span",[e._v(e._s(t.businessName))])])])})),1),i("div",{staticClass:"export-btn"},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:codeAnalyse:export"],expression:"['wecom:codeAnalyse:export']"}],staticClass:"btn-reset",on:{click:e.exportReport}},[e._v("导出报表")])],1)],1),i("div",{ref:"chart",staticClass:"chart",staticStyle:{width:"90%",height:"400px"}})]),i("el-dialog",{staticClass:"preview-dialog",attrs:{title:"预览效果",visible:e.previewVisible,width:"500px","append-to-body":"","close-on-click-modal":!1},on:{"update:visible":function(t){e.previewVisible=t}}},[i("div",{staticClass:"preview-phone"},[i("PhoneDialog",{attrs:{message:e.form.welcomeMsg,"msg-list":e.form.materialList}})],1)])],1)},n=[],r=(i("c740"),i("a15b"),i("d81d"),i("fb6a"),i("d3b7"),i("3ca3"),i("ddb0"),i("2b3d"),i("bf19"),i("9861"),i("62db")),s=i("313e"),o=i.n(s),l=i("dd70"),c=i("5519"),u=i("8bd5"),d=i("515a"),p=7,f=3,A=50,h={name:"CodeDetail",components:{PhoneDialog:u["a"],TagUserShow:d["a"]},data:function(){return{loading:!1,ids:[],total:0,list:[],dateRange:[],form:{},userByEmplyCodeList:[],query:{userId:void 0,addWay:void 0,beginTime:void 0,endTime:void 0},type:l["P"],timeRange:p,SKIP_VERIFY:l["dd"],selectedUser:null,MESSAGE_MEDIA_TYPE:l["ic"],previewVisible:!1,SCOPELIST_TYPE:l["Uc"],MEDIA_TYPE_SMARTFORM:l["ec"],MEDIA_TO_WELCOME_TYPE:l["Wb"],drainageCodeId:void 0}},created:function(){var e=this.drainageCodeId=this.$route.query.id;e&&this.getDetail(e)},methods:{getDetail:function(e){var t=this;this.loading=!0,Object(r["g"])(e).then((function(e){var i=e.data;t.userByEmplyCodeList=i.weEmpleCodeUseScops,t.form=i,t.form.welcomeMsg=Object(c["a"])(t.form).welcomeMsg,t.form.materialList=Object(c["a"])(t.form).materialList,t.loading=!1,t.query.addWay=1,t.query.state=i.state,t.setTime(p)}))},getList:function(){var e=this;Object(r["k"])(this.getPayload()).then((function(t){var i=t.data;e.total=i.total;var a=i.list,n=a.map((function(e){return e.time})),r=a.map((function(e){return e.addCount})),s=a.map((function(e){return e.loseCount}));e.loading=!1;var l={tooltip:{trigger:"axis"},xAxis:{type:"category",data:n},yAxis:{type:"value"},series:[{name:"新增人数",data:r,type:"line",color:"#14BF48"},{name:"流失人数",data:s,type:"line",color:"#E24F59"}],legend:{data:["新增人数","流失人数"],itemGap:A}},c=o.a.init(e.$refs.chart);c.setOption(l),e.$nextTick((function(){}))}))},setTime:function(e){this.timeRange=e;var t=new Date;t.setDate(t.getDate()-e),this.dateRange=[this.getTime(t),this.getTime()],this.getList()},getHandledValue:function(e){return e<10?"0"+e:e},getTime:function(e){var t=e?new Date(e):new Date,i=t.getFullYear(),a=this.getHandledValue(t.getMonth()+1),n=this.getHandledValue(t.getDate());return i+"-"+a+"-"+n},downloadQrCode:function(){var e="";if(this.form.scenario)e=this.form.scenario+".png";else{var t=this.form.weEmpleCodeUseScops.map((function(e){return e.businessName})).slice(0,f).join(",");this.form.weEmpleCodeUseScops.length>f&&(t+="等"),e=t+".png"}Object(r["b"])(this.form.id).then((function(t){if(null!=t){var i=new Blob([t],{type:"application/zip"}),a=window.URL.createObjectURL(i),n=document.createElement("a");n.href=a,n.download=e,n.click(),URL.revokeObjectURL(a)}}))},goBack:function(){this.$router.go(-1)},handleSelect:function(e){this.getList()},hanldePreview:function(){this.previewVisible=!0},getPayload:function(){var e=this;if(this.query.beginTime=this.dateRange[0],this.query.endTime=this.dateRange[1],!this.selectedUser)return delete this.query.userId,delete this.query.departmentId,this.query;var t=this.userByEmplyCodeList.findIndex((function(t){return t.businessId===e.selectedUser}));return t>=0&&(this.userByEmplyCodeList[t].businessIdType===this.SCOPELIST_TYPE.DEPARTMENT?(this.query.departmentId=this.selectedUser,delete this.query.userId):(this.query.userId=this.selectedUser,delete this.query.departmentId)),this.query},exportReport:function(){var e=this;Object(r["d"])(this.getPayload()).then((function(t){e.download(t.data.msg,!0)})).catch((function(){e.msgError("导出失败!")}))}}},m=h,g=(i("9a89"),i("2877")),v=Object(g["a"])(m,a,n,!1,null,"33f98d0f",null);t["default"]=v.exports},"75a2":function(e,t,i){"use strict";i("33b6")},"75a5":function(e,t,i){"use strict";i("8da7")},"75c3":function(e,t,i){},"766b":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"right-board"},[i("el-tabs",{staticClass:"center-tabs",model:{value:e.currentTab,callback:function(t){e.currentTab=t},expression:"currentTab"}},[i("el-tab-pane",{attrs:{label:"组件属性",name:"field"}}),i("el-tab-pane",{attrs:{label:"表单属性",name:"form"}})],1),i("div",{staticClass:"field-box"},[i("a",{staticClass:"document-link",attrs:{target:"_blank",href:e.documentLink,title:"查看组件文档"}},[i("i",{staticClass:"el-icon-link"})]),i("el-scrollbar",{staticClass:"right-scrollbar"},[i("el-form",{directives:[{name:"show",rawName:"v-show",value:"field"===e.currentTab&&e.showField,expression:"currentTab==='field' && showField"}],attrs:{size:"small","label-width":"90px"}},[e.activeData.changeTag?i("el-form-item",{attrs:{label:"组件类型"}},[i("el-select",{style:{width:"100%"},attrs:{placeholder:"请选择组件类型"},on:{change:e.tagChange},model:{value:e.activeData.tagIcon,callback:function(t){e.$set(e.activeData,"tagIcon",t)},expression:"activeData.tagIcon"}},e._l(e.tagList,(function(t){return i("el-option-group",{key:t.label,attrs:{label:t.label}},e._l(t.options,(function(t){return i("el-option",{key:t.label,attrs:{label:t.label,value:t.tagIcon}},[i("svg-icon",{staticClass:"node-icon",attrs:{"icon-class":t.tagIcon}}),i("span",[e._v(" "+e._s(t.label))])],1)})),1)})),1)],1):e._e(),void 0!==e.activeData.vModel?i("el-form-item",{attrs:{label:"字段名"}},[i("el-input",{attrs:{placeholder:"请输入字段名(v-model)"},model:{value:e.activeData.vModel,callback:function(t){e.$set(e.activeData,"vModel",t)},expression:"activeData.vModel"}})],1):e._e(),void 0!==e.activeData.componentName?i("el-form-item",{attrs:{label:"组件名"}},[e._v(" "+e._s(e.activeData.componentName)+" ")]):e._e(),void 0!==e.activeData.label?i("el-form-item",{attrs:{label:"标题"}},[i("el-input",{attrs:{placeholder:"请输入标题"},model:{value:e.activeData.label,callback:function(t){e.$set(e.activeData,"label",t)},expression:"activeData.label"}})],1):e._e(),void 0!==e.activeData.placeholder?i("el-form-item",{attrs:{label:"占位提示"}},[i("el-input",{attrs:{placeholder:"请输入占位提示"},model:{value:e.activeData.placeholder,callback:function(t){e.$set(e.activeData,"placeholder",t)},expression:"activeData.placeholder"}})],1):e._e(),void 0!==e.activeData["start-placeholder"]?i("el-form-item",{attrs:{label:"开始占位"}},[i("el-input",{attrs:{placeholder:"请输入占位提示"},model:{value:e.activeData["start-placeholder"],callback:function(t){e.$set(e.activeData,"start-placeholder",t)},expression:"activeData['start-placeholder']"}})],1):e._e(),void 0!==e.activeData["end-placeholder"]?i("el-form-item",{attrs:{label:"结束占位"}},[i("el-input",{attrs:{placeholder:"请输入占位提示"},model:{value:e.activeData["end-placeholder"],callback:function(t){e.$set(e.activeData,"end-placeholder",t)},expression:"activeData['end-placeholder']"}})],1):e._e(),void 0!==e.activeData.span?i("el-form-item",{attrs:{label:"表单栅格"}},[i("el-slider",{attrs:{max:24,min:1,marks:{12:""}},on:{change:e.spanChange},model:{value:e.activeData.span,callback:function(t){e.$set(e.activeData,"span",t)},expression:"activeData.span"}})],1):e._e(),"rowFormItem"===e.activeData.layout?i("el-form-item",{attrs:{label:"栅格间隔"}},[i("el-input-number",{attrs:{min:0,placeholder:"栅格间隔"},model:{value:e.activeData.gutter,callback:function(t){e.$set(e.activeData,"gutter",t)},expression:"activeData.gutter"}})],1):e._e(),"rowFormItem"===e.activeData.layout?i("el-form-item",{attrs:{label:"布局模式"}},[i("el-radio-group",{model:{value:e.activeData.type,callback:function(t){e.$set(e.activeData,"type",t)},expression:"activeData.type"}},[i("el-radio-button",{attrs:{label:"default"}}),i("el-radio-button",{attrs:{label:"flex"}})],1)],1):e._e(),void 0!==e.activeData.justify&&"flex"===e.activeData.type?i("el-form-item",{attrs:{label:"水平排列"}},[i("el-select",{style:{width:"100%"},attrs:{placeholder:"请选择水平排列"},model:{value:e.activeData.justify,callback:function(t){e.$set(e.activeData,"justify",t)},expression:"activeData.justify"}},e._l(e.justifyOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1):e._e(),void 0!==e.activeData.align&&"flex"===e.activeData.type?i("el-form-item",{attrs:{label:"垂直排列"}},[i("el-radio-group",{model:{value:e.activeData.align,callback:function(t){e.$set(e.activeData,"align",t)},expression:"activeData.align"}},[i("el-radio-button",{attrs:{label:"top"}}),i("el-radio-button",{attrs:{label:"middle"}}),i("el-radio-button",{attrs:{label:"bottom"}})],1)],1):e._e(),void 0!==e.activeData.labelWidth?i("el-form-item",{attrs:{label:"标签宽度"}},[i("el-input",{attrs:{type:"number",placeholder:"请输入标签宽度"},model:{value:e.activeData.labelWidth,callback:function(t){e.$set(e.activeData,"labelWidth",e._n(t))},expression:"activeData.labelWidth"}})],1):e._e(),e.activeData.style&&void 0!==e.activeData.style.width?i("el-form-item",{attrs:{label:"组件宽度"}},[i("el-input",{attrs:{placeholder:"请输入组件宽度",clearable:""},model:{value:e.activeData.style.width,callback:function(t){e.$set(e.activeData.style,"width",t)},expression:"activeData.style.width"}})],1):e._e(),void 0!==e.activeData.vModel?i("el-form-item",{attrs:{label:"默认值"}},[i("el-input",{attrs:{value:e.setDefaultValue(e.activeData.defaultValue),placeholder:"请输入默认值"},on:{input:e.onDefaultValueInput}})],1):e._e(),"el-checkbox-group"===e.activeData.tag?i("el-form-item",{attrs:{label:"至少应选"}},[i("el-input-number",{attrs:{value:e.activeData.min,min:0,placeholder:"至少应选"},on:{input:function(t){return e.$set(e.activeData,"min",t||void 0)}}})],1):e._e(),"el-checkbox-group"===e.activeData.tag?i("el-form-item",{attrs:{label:"最多可选"}},[i("el-input-number",{attrs:{value:e.activeData.max,min:0,placeholder:"最多可选"},on:{input:function(t){return e.$set(e.activeData,"max",t||void 0)}}})],1):e._e(),void 0!==e.activeData.prepend?i("el-form-item",{attrs:{label:"前缀"}},[i("el-input",{attrs:{placeholder:"请输入前缀"},model:{value:e.activeData.prepend,callback:function(t){e.$set(e.activeData,"prepend",t)},expression:"activeData.prepend"}})],1):e._e(),void 0!==e.activeData.append?i("el-form-item",{attrs:{label:"后缀"}},[i("el-input",{attrs:{placeholder:"请输入后缀"},model:{value:e.activeData.append,callback:function(t){e.$set(e.activeData,"append",t)},expression:"activeData.append"}})],1):e._e(),void 0!==e.activeData["prefix-icon"]?i("el-form-item",{attrs:{label:"前图标"}},[i("el-input",{attrs:{placeholder:"请输入前图标名称"},model:{value:e.activeData["prefix-icon"],callback:function(t){e.$set(e.activeData,"prefix-icon",t)},expression:"activeData['prefix-icon']"}},[i("el-button",{attrs:{slot:"append",icon:"el-icon-thumb"},on:{click:function(t){return e.openIconsDialog("prefix-icon")}},slot:"append"},[e._v(" 选择 ")])],1)],1):e._e(),void 0!==e.activeData["suffix-icon"]?i("el-form-item",{attrs:{label:"后图标"}},[i("el-input",{attrs:{placeholder:"请输入后图标名称"},model:{value:e.activeData["suffix-icon"],callback:function(t){e.$set(e.activeData,"suffix-icon",t)},expression:"activeData['suffix-icon']"}},[i("el-button",{attrs:{slot:"append",icon:"el-icon-thumb"},on:{click:function(t){return e.openIconsDialog("suffix-icon")}},slot:"append"},[e._v(" 选择 ")])],1)],1):e._e(),"el-cascader"===e.activeData.tag?i("el-form-item",{attrs:{label:"选项分隔符"}},[i("el-input",{attrs:{placeholder:"请输入选项分隔符"},model:{value:e.activeData.separator,callback:function(t){e.$set(e.activeData,"separator",t)},expression:"activeData.separator"}})],1):e._e(),void 0!==e.activeData.autosize?i("el-form-item",{attrs:{label:"最小行数"}},[i("el-input-number",{attrs:{min:1,placeholder:"最小行数"},model:{value:e.activeData.autosize.minRows,callback:function(t){e.$set(e.activeData.autosize,"minRows",t)},expression:"activeData.autosize.minRows"}})],1):e._e(),void 0!==e.activeData.autosize?i("el-form-item",{attrs:{label:"最大行数"}},[i("el-input-number",{attrs:{min:1,placeholder:"最大行数"},model:{value:e.activeData.autosize.maxRows,callback:function(t){e.$set(e.activeData.autosize,"maxRows",t)},expression:"activeData.autosize.maxRows"}})],1):e._e(),void 0!==e.activeData.min?i("el-form-item",{attrs:{label:"最小值"}},[i("el-input-number",{attrs:{placeholder:"最小值"},model:{value:e.activeData.min,callback:function(t){e.$set(e.activeData,"min",t)},expression:"activeData.min"}})],1):e._e(),void 0!==e.activeData.max?i("el-form-item",{attrs:{label:"最大值"}},[i("el-input-number",{attrs:{placeholder:"最大值"},model:{value:e.activeData.max,callback:function(t){e.$set(e.activeData,"max",t)},expression:"activeData.max"}})],1):e._e(),void 0!==e.activeData.step?i("el-form-item",{attrs:{label:"步长"}},[i("el-input-number",{attrs:{placeholder:"步数"},model:{value:e.activeData.step,callback:function(t){e.$set(e.activeData,"step",t)},expression:"activeData.step"}})],1):e._e(),"el-input-number"===e.activeData.tag?i("el-form-item",{attrs:{label:"精度"}},[i("el-input-number",{attrs:{min:0,placeholder:"精度"},model:{value:e.activeData.precision,callback:function(t){e.$set(e.activeData,"precision",t)},expression:"activeData.precision"}})],1):e._e(),"el-input-number"===e.activeData.tag?i("el-form-item",{attrs:{label:"按钮位置"}},[i("el-radio-group",{model:{value:e.activeData["controls-position"],callback:function(t){e.$set(e.activeData,"controls-position",t)},expression:"activeData['controls-position']"}},[i("el-radio-button",{attrs:{label:""}},[e._v(" 默认 ")]),i("el-radio-button",{attrs:{label:"right"}},[e._v(" 右侧 ")])],1)],1):e._e(),void 0!==e.activeData.maxlength?i("el-form-item",{attrs:{label:"最多输入"}},[i("el-input",{attrs:{placeholder:"请输入字符长度"},model:{value:e.activeData.maxlength,callback:function(t){e.$set(e.activeData,"maxlength",t)},expression:"activeData.maxlength"}},[i("template",{slot:"append"},[e._v(" 个字符 ")])],2)],1):e._e(),void 0!==e.activeData["active-text"]?i("el-form-item",{attrs:{label:"开启提示"}},[i("el-input",{attrs:{placeholder:"请输入开启提示"},model:{value:e.activeData["active-text"],callback:function(t){e.$set(e.activeData,"active-text",t)},expression:"activeData['active-text']"}})],1):e._e(),void 0!==e.activeData["inactive-text"]?i("el-form-item",{attrs:{label:"关闭提示"}},[i("el-input",{attrs:{placeholder:"请输入关闭提示"},model:{value:e.activeData["inactive-text"],callback:function(t){e.$set(e.activeData,"inactive-text",t)},expression:"activeData['inactive-text']"}})],1):e._e(),void 0!==e.activeData["active-value"]?i("el-form-item",{attrs:{label:"开启值"}},[i("el-input",{attrs:{value:e.setDefaultValue(e.activeData["active-value"]),placeholder:"请输入开启值"},on:{input:function(t){return e.onSwitchValueInput(t,"active-value")}}})],1):e._e(),void 0!==e.activeData["inactive-value"]?i("el-form-item",{attrs:{label:"关闭值"}},[i("el-input",{attrs:{value:e.setDefaultValue(e.activeData["inactive-value"]),placeholder:"请输入关闭值"},on:{input:function(t){return e.onSwitchValueInput(t,"inactive-value")}}})],1):e._e(),void 0!==e.activeData.type&&"el-date-picker"===e.activeData.tag?i("el-form-item",{attrs:{label:"时间类型"}},[i("el-select",{style:{width:"100%"},attrs:{placeholder:"请选择时间类型"},on:{change:e.dateTypeChange},model:{value:e.activeData.type,callback:function(t){e.$set(e.activeData,"type",t)},expression:"activeData.type"}},e._l(e.dateOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1):e._e(),void 0!==e.activeData.name?i("el-form-item",{attrs:{label:"文件字段名"}},[i("el-input",{attrs:{placeholder:"请输入上传文件字段名"},model:{value:e.activeData.name,callback:function(t){e.$set(e.activeData,"name",t)},expression:"activeData.name"}})],1):e._e(),void 0!==e.activeData.accept?i("el-form-item",{attrs:{label:"文件类型"}},[i("el-select",{style:{width:"100%"},attrs:{placeholder:"请选择文件类型",clearable:""},model:{value:e.activeData.accept,callback:function(t){e.$set(e.activeData,"accept",t)},expression:"activeData.accept"}},[i("el-option",{attrs:{label:"图片",value:"image/*"}}),i("el-option",{attrs:{label:"视频",value:"video/*"}}),i("el-option",{attrs:{label:"音频",value:"audio/*"}}),i("el-option",{attrs:{label:"excel",value:".xls,.xlsx"}}),i("el-option",{attrs:{label:"word",value:".doc,.docx"}}),i("el-option",{attrs:{label:"pdf",value:".pdf"}}),i("el-option",{attrs:{label:"txt",value:".txt"}})],1)],1):e._e(),void 0!==e.activeData.fileSize?i("el-form-item",{attrs:{label:"文件大小"}},[i("el-input",{attrs:{placeholder:"请输入文件大小"},model:{value:e.activeData.fileSize,callback:function(t){e.$set(e.activeData,"fileSize",e._n(t))},expression:"activeData.fileSize"}},[i("el-select",{style:{width:"66px"},attrs:{slot:"append"},slot:"append",model:{value:e.activeData.sizeUnit,callback:function(t){e.$set(e.activeData,"sizeUnit",t)},expression:"activeData.sizeUnit"}},[i("el-option",{attrs:{label:"KB",value:"KB"}}),i("el-option",{attrs:{label:"MB",value:"MB"}}),i("el-option",{attrs:{label:"GB",value:"GB"}})],1)],1)],1):e._e(),void 0!==e.activeData.action?i("el-form-item",{attrs:{label:"上传地址"}},[i("el-input",{attrs:{placeholder:"请输入上传地址",clearable:""},model:{value:e.activeData.action,callback:function(t){e.$set(e.activeData,"action",t)},expression:"activeData.action"}})],1):e._e(),void 0!==e.activeData["list-type"]?i("el-form-item",{attrs:{label:"列表类型"}},[i("el-radio-group",{attrs:{size:"small"},model:{value:e.activeData["list-type"],callback:function(t){e.$set(e.activeData,"list-type",t)},expression:"activeData['list-type']"}},[i("el-radio-button",{attrs:{label:"text"}},[e._v(" text ")]),i("el-radio-button",{attrs:{label:"picture"}},[e._v(" picture ")]),i("el-radio-button",{attrs:{label:"picture-card"}},[e._v(" picture-card ")])],1)],1):e._e(),void 0!==e.activeData.buttonText?i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"picture-card"!==e.activeData["list-type"],expression:"'picture-card' !== activeData['list-type']"}],attrs:{label:"按钮文字"}},[i("el-input",{attrs:{placeholder:"请输入按钮文字"},model:{value:e.activeData.buttonText,callback:function(t){e.$set(e.activeData,"buttonText",t)},expression:"activeData.buttonText"}})],1):e._e(),void 0!==e.activeData["range-separator"]?i("el-form-item",{attrs:{label:"分隔符"}},[i("el-input",{attrs:{placeholder:"请输入分隔符"},model:{value:e.activeData["range-separator"],callback:function(t){e.$set(e.activeData,"range-separator",t)},expression:"activeData['range-separator']"}})],1):e._e(),void 0!==e.activeData["picker-options"]?i("el-form-item",{attrs:{label:"时间段"}},[i("el-input",{attrs:{placeholder:"请输入时间段"},model:{value:e.activeData["picker-options"].selectableRange,callback:function(t){e.$set(e.activeData["picker-options"],"selectableRange",t)},expression:"activeData['picker-options'].selectableRange"}})],1):e._e(),void 0!==e.activeData.format?i("el-form-item",{attrs:{label:"时间格式"}},[i("el-input",{attrs:{value:e.activeData.format,placeholder:"请输入时间格式"},on:{input:function(t){return e.setTimeValue(t)}}})],1):e._e(),["el-checkbox-group","el-radio-group","el-select"].indexOf(e.activeData.tag)>-1?[i("el-divider",[e._v("选项")]),i("draggable",{attrs:{list:e.activeData.options,animation:340,group:"selectItem",handle:".option-drag"}},e._l(e.activeData.options,(function(t,a){return i("div",{key:a,staticClass:"select-item"},[i("div",{staticClass:"select-line-icon option-drag"},[i("i",{staticClass:"el-icon-s-operation"})]),i("el-input",{attrs:{placeholder:"选项名",size:"small"},model:{value:t.label,callback:function(i){e.$set(t,"label",i)},expression:"item.label"}}),i("el-input",{attrs:{placeholder:"选项值",size:"small",value:t.value},on:{input:function(i){return e.setOptionValue(t,i)}}}),i("div",{staticClass:"close-btn select-line-icon",on:{click:function(t){return e.activeData.options.splice(a,1)}}},[i("i",{staticClass:"el-icon-remove-outline"})])],1)})),0),i("div",{staticStyle:{"margin-left":"20px"}},[i("el-button",{staticStyle:{"padding-bottom":"0"},attrs:{icon:"el-icon-circle-plus-outline",type:"text"},on:{click:e.addSelectItem}},[e._v(" 添加选项 ")])],1),i("el-divider")]:e._e(),["el-cascader"].indexOf(e.activeData.tag)>-1?[i("el-divider",[e._v("选项")]),i("el-form-item",{attrs:{label:"数据类型"}},[i("el-radio-group",{attrs:{size:"small"},model:{value:e.activeData.dataType,callback:function(t){e.$set(e.activeData,"dataType",t)},expression:"activeData.dataType"}},[i("el-radio-button",{attrs:{label:"dynamic"}},[e._v(" 动态数据 ")]),i("el-radio-button",{attrs:{label:"static"}},[e._v(" 静态数据 ")])],1)],1),"dynamic"===e.activeData.dataType?[i("el-form-item",{attrs:{label:"标签键名"}},[i("el-input",{attrs:{placeholder:"请输入标签键名"},model:{value:e.activeData.labelKey,callback:function(t){e.$set(e.activeData,"labelKey",t)},expression:"activeData.labelKey"}})],1),i("el-form-item",{attrs:{label:"值键名"}},[i("el-input",{attrs:{placeholder:"请输入值键名"},model:{value:e.activeData.valueKey,callback:function(t){e.$set(e.activeData,"valueKey",t)},expression:"activeData.valueKey"}})],1),i("el-form-item",{attrs:{label:"子级键名"}},[i("el-input",{attrs:{placeholder:"请输入子级键名"},model:{value:e.activeData.childrenKey,callback:function(t){e.$set(e.activeData,"childrenKey",t)},expression:"activeData.childrenKey"}})],1)]:e._e(),"static"===e.activeData.dataType?i("el-tree",{attrs:{draggable:"",data:e.activeData.options,"node-key":"id","expand-on-click-node":!1,"render-content":e.renderContent}}):e._e(),"static"===e.activeData.dataType?i("div",{staticStyle:{"margin-left":"20px"}},[i("el-button",{staticStyle:{"padding-bottom":"0"},attrs:{icon:"el-icon-circle-plus-outline",type:"text"},on:{click:e.addTreeItem}},[e._v(" 添加父级 ")])],1):e._e(),i("el-divider")]:e._e(),void 0!==e.activeData.optionType?i("el-form-item",{attrs:{label:"选项样式"}},[i("el-radio-group",{model:{value:e.activeData.optionType,callback:function(t){e.$set(e.activeData,"optionType",t)},expression:"activeData.optionType"}},[i("el-radio-button",{attrs:{label:"default"}},[e._v(" 默认 ")]),i("el-radio-button",{attrs:{label:"button"}},[e._v(" 按钮 ")])],1)],1):e._e(),void 0!==e.activeData["active-color"]?i("el-form-item",{attrs:{label:"开启颜色"}},[i("el-color-picker",{model:{value:e.activeData["active-color"],callback:function(t){e.$set(e.activeData,"active-color",t)},expression:"activeData['active-color']"}})],1):e._e(),void 0!==e.activeData["inactive-color"]?i("el-form-item",{attrs:{label:"关闭颜色"}},[i("el-color-picker",{model:{value:e.activeData["inactive-color"],callback:function(t){e.$set(e.activeData,"inactive-color",t)},expression:"activeData['inactive-color']"}})],1):e._e(),void 0!==e.activeData["allow-half"]?i("el-form-item",{attrs:{label:"允许半选"}},[i("el-switch",{model:{value:e.activeData["allow-half"],callback:function(t){e.$set(e.activeData,"allow-half",t)},expression:"activeData['allow-half']"}})],1):e._e(),void 0!==e.activeData["show-text"]?i("el-form-item",{attrs:{label:"辅助文字"}},[i("el-switch",{on:{change:e.rateTextChange},model:{value:e.activeData["show-text"],callback:function(t){e.$set(e.activeData,"show-text",t)},expression:"activeData['show-text']"}})],1):e._e(),void 0!==e.activeData["show-score"]?i("el-form-item",{attrs:{label:"显示分数"}},[i("el-switch",{on:{change:e.rateScoreChange},model:{value:e.activeData["show-score"],callback:function(t){e.$set(e.activeData,"show-score",t)},expression:"activeData['show-score']"}})],1):e._e(),void 0!==e.activeData["show-stops"]?i("el-form-item",{attrs:{label:"显示间断点"}},[i("el-switch",{model:{value:e.activeData["show-stops"],callback:function(t){e.$set(e.activeData,"show-stops",t)},expression:"activeData['show-stops']"}})],1):e._e(),void 0!==e.activeData.range?i("el-form-item",{attrs:{label:"范围选择"}},[i("el-switch",{on:{change:e.rangeChange},model:{value:e.activeData.range,callback:function(t){e.$set(e.activeData,"range",t)},expression:"activeData.range"}})],1):e._e(),void 0!==e.activeData.border&&"default"===e.activeData.optionType?i("el-form-item",{attrs:{label:"是否带边框"}},[i("el-switch",{model:{value:e.activeData.border,callback:function(t){e.$set(e.activeData,"border",t)},expression:"activeData.border"}})],1):e._e(),"el-color-picker"===e.activeData.tag?i("el-form-item",{attrs:{label:"颜色格式"}},[i("el-select",{style:{width:"100%"},attrs:{placeholder:"请选择颜色格式"},on:{change:e.colorFormatChange},model:{value:e.activeData["color-format"],callback:function(t){e.$set(e.activeData,"color-format",t)},expression:"activeData['color-format']"}},e._l(e.colorFormatOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1):e._e(),void 0===e.activeData.size||"button"!==e.activeData.optionType&&!e.activeData.border&&"el-color-picker"!==e.activeData.tag?e._e():i("el-form-item",{attrs:{label:"选项尺寸"}},[i("el-radio-group",{model:{value:e.activeData.size,callback:function(t){e.$set(e.activeData,"size",t)},expression:"activeData.size"}},[i("el-radio-button",{attrs:{label:"medium"}},[e._v(" 中等 ")]),i("el-radio-button",{attrs:{label:"small"}},[e._v(" 较小 ")]),i("el-radio-button",{attrs:{label:"mini"}},[e._v(" 迷你 ")])],1)],1),void 0!==e.activeData["show-word-limit"]?i("el-form-item",{attrs:{label:"输入统计"}},[i("el-switch",{model:{value:e.activeData["show-word-limit"],callback:function(t){e.$set(e.activeData,"show-word-limit",t)},expression:"activeData['show-word-limit']"}})],1):e._e(),"el-input-number"===e.activeData.tag?i("el-form-item",{attrs:{label:"严格步数"}},[i("el-switch",{model:{value:e.activeData["step-strictly"],callback:function(t){e.$set(e.activeData,"step-strictly",t)},expression:"activeData['step-strictly']"}})],1):e._e(),"el-cascader"===e.activeData.tag?i("el-form-item",{attrs:{label:"是否多选"}},[i("el-switch",{model:{value:e.activeData.props.props.multiple,callback:function(t){e.$set(e.activeData.props.props,"multiple",t)},expression:"activeData.props.props.multiple"}})],1):e._e(),"el-cascader"===e.activeData.tag?i("el-form-item",{attrs:{label:"展示全路径"}},[i("el-switch",{model:{value:e.activeData["show-all-levels"],callback:function(t){e.$set(e.activeData,"show-all-levels",t)},expression:"activeData['show-all-levels']"}})],1):e._e(),"el-cascader"===e.activeData.tag?i("el-form-item",{attrs:{label:"可否筛选"}},[i("el-switch",{model:{value:e.activeData.filterable,callback:function(t){e.$set(e.activeData,"filterable",t)},expression:"activeData.filterable"}})],1):e._e(),void 0!==e.activeData.clearable?i("el-form-item",{attrs:{label:"能否清空"}},[i("el-switch",{model:{value:e.activeData.clearable,callback:function(t){e.$set(e.activeData,"clearable",t)},expression:"activeData.clearable"}})],1):e._e(),void 0!==e.activeData.showTip?i("el-form-item",{attrs:{label:"显示提示"}},[i("el-switch",{model:{value:e.activeData.showTip,callback:function(t){e.$set(e.activeData,"showTip",t)},expression:"activeData.showTip"}})],1):e._e(),void 0!==e.activeData.multiple?i("el-form-item",{attrs:{label:"多选文件"}},[i("el-switch",{model:{value:e.activeData.multiple,callback:function(t){e.$set(e.activeData,"multiple",t)},expression:"activeData.multiple"}})],1):e._e(),void 0!==e.activeData["auto-upload"]?i("el-form-item",{attrs:{label:"自动上传"}},[i("el-switch",{model:{value:e.activeData["auto-upload"],callback:function(t){e.$set(e.activeData,"auto-upload",t)},expression:"activeData['auto-upload']"}})],1):e._e(),void 0!==e.activeData.readonly?i("el-form-item",{attrs:{label:"是否只读"}},[i("el-switch",{model:{value:e.activeData.readonly,callback:function(t){e.$set(e.activeData,"readonly",t)},expression:"activeData.readonly"}})],1):e._e(),void 0!==e.activeData.disabled?i("el-form-item",{attrs:{label:"是否禁用"}},[i("el-switch",{model:{value:e.activeData.disabled,callback:function(t){e.$set(e.activeData,"disabled",t)},expression:"activeData.disabled"}})],1):e._e(),"el-select"===e.activeData.tag?i("el-form-item",{attrs:{label:"是否可搜索"}},[i("el-switch",{model:{value:e.activeData.filterable,callback:function(t){e.$set(e.activeData,"filterable",t)},expression:"activeData.filterable"}})],1):e._e(),"el-select"===e.activeData.tag?i("el-form-item",{attrs:{label:"是否多选"}},[i("el-switch",{on:{change:e.multipleChange},model:{value:e.activeData.multiple,callback:function(t){e.$set(e.activeData,"multiple",t)},expression:"activeData.multiple"}})],1):e._e(),void 0!==e.activeData.required?i("el-form-item",{attrs:{label:"是否必填"}},[i("el-switch",{model:{value:e.activeData.required,callback:function(t){e.$set(e.activeData,"required",t)},expression:"activeData.required"}})],1):e._e(),e.activeData.layoutTree?[i("el-divider",[e._v("布局结构树")]),i("el-tree",{attrs:{data:[e.activeData],props:e.layoutTreeProps,"node-key":"renderKey","default-expand-all":"",draggable:""},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.node,n=t.data;return i("span",{},[i("span",{staticClass:"node-label"},[i("svg-icon",{staticClass:"node-icon",attrs:{"icon-class":n.tagIcon}}),e._v(" "+e._s(a.label)+" ")],1)])}}],null,!1,921874089)})]:e._e(),"colFormItem"===e.activeData.layout?[i("el-divider",[e._v("正则校验")]),e._l(e.activeData.regList,(function(t,a){return i("div",{key:a,staticClass:"reg-item"},[i("span",{staticClass:"close-btn",on:{click:function(t){return e.activeData.regList.splice(a,1)}}},[i("i",{staticClass:"el-icon-close"})]),i("el-form-item",{attrs:{label:"表达式"}},[i("el-input",{attrs:{placeholder:"请输入正则"},model:{value:t.pattern,callback:function(i){e.$set(t,"pattern",i)},expression:"item.pattern"}})],1),i("el-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"错误提示"}},[i("el-input",{attrs:{placeholder:"请输入错误提示"},model:{value:t.message,callback:function(i){e.$set(t,"message",i)},expression:"item.message"}})],1)],1)})),i("div",{staticStyle:{"margin-left":"20px"}},[i("el-button",{attrs:{icon:"el-icon-circle-plus-outline",type:"text"},on:{click:e.addReg}},[e._v(" 添加规则 ")])],1)]:e._e()],2),i("el-form",{directives:[{name:"show",rawName:"v-show",value:"form"===e.currentTab,expression:"currentTab === 'form'"}],attrs:{size:"small","label-width":"90px"}},[i("el-form-item",{attrs:{label:"表单名"}},[i("el-input",{attrs:{placeholder:"请输入表单名(ref)"},model:{value:e.formConf.formRef,callback:function(t){e.$set(e.formConf,"formRef",t)},expression:"formConf.formRef"}})],1),i("el-form-item",{attrs:{label:"表单模型"}},[i("el-input",{attrs:{placeholder:"请输入数据模型"},model:{value:e.formConf.formModel,callback:function(t){e.$set(e.formConf,"formModel",t)},expression:"formConf.formModel"}})],1),i("el-form-item",{attrs:{label:"校验模型"}},[i("el-input",{attrs:{placeholder:"请输入校验模型"},model:{value:e.formConf.formRules,callback:function(t){e.$set(e.formConf,"formRules",t)},expression:"formConf.formRules"}})],1),i("el-form-item",{attrs:{label:"表单尺寸"}},[i("el-radio-group",{model:{value:e.formConf.size,callback:function(t){e.$set(e.formConf,"size",t)},expression:"formConf.size"}},[i("el-radio-button",{attrs:{label:"medium"}},[e._v(" 中等 ")]),i("el-radio-button",{attrs:{label:"small"}},[e._v(" 较小 ")]),i("el-radio-button",{attrs:{label:"mini"}},[e._v(" 迷你 ")])],1)],1),i("el-form-item",{attrs:{label:"标签对齐"}},[i("el-radio-group",{model:{value:e.formConf.labelPosition,callback:function(t){e.$set(e.formConf,"labelPosition",t)},expression:"formConf.labelPosition"}},[i("el-radio-button",{attrs:{label:"left"}},[e._v(" 左对齐 ")]),i("el-radio-button",{attrs:{label:"right"}},[e._v(" 右对齐 ")]),i("el-radio-button",{attrs:{label:"top"}},[e._v(" 顶部对齐 ")])],1)],1),i("el-form-item",{attrs:{label:"标签宽度"}},[i("el-input-number",{attrs:{placeholder:"标签宽度"},model:{value:e.formConf.labelWidth,callback:function(t){e.$set(e.formConf,"labelWidth",t)},expression:"formConf.labelWidth"}})],1),i("el-form-item",{attrs:{label:"栅格间隔"}},[i("el-input-number",{attrs:{min:0,placeholder:"栅格间隔"},model:{value:e.formConf.gutter,callback:function(t){e.$set(e.formConf,"gutter",t)},expression:"formConf.gutter"}})],1),i("el-form-item",{attrs:{label:"禁用表单"}},[i("el-switch",{model:{value:e.formConf.disabled,callback:function(t){e.$set(e.formConf,"disabled",t)},expression:"formConf.disabled"}})],1),i("el-form-item",{attrs:{label:"表单按钮"}},[i("el-switch",{model:{value:e.formConf.formBtns,callback:function(t){e.$set(e.formConf,"formBtns",t)},expression:"formConf.formBtns"}})],1),i("el-form-item",{attrs:{label:"显示未选中组件边框"}},[i("el-switch",{model:{value:e.formConf.unFocusedComponentBorder,callback:function(t){e.$set(e.formConf,"unFocusedComponentBorder",t)},expression:"formConf.unFocusedComponentBorder"}})],1)],1)],1)],1),i("treeNode-dialog",{attrs:{visible:e.dialogVisible,title:"添加选项"},on:{"update:visible":function(t){e.dialogVisible=t},commit:e.addNode}}),i("icons-dialog",{attrs:{visible:e.iconsVisible,current:e.activeData[e.currentIconModel]},on:{"update:visible":function(t){e.iconsVisible=t},select:e.setIcon}})],1)},n=[],r=(i("99af"),i("7db0"),i("c740"),i("a15b"),i("d81d"),i("a434"),i("b64b"),i("d3b7"),i("3022")),s=i("c81a"),o=i("ed08"),l=i("d0b2"),c=i("2e2a"),u={date:"yyyy-MM-dd",week:"yyyy 第 WW 周",month:"yyyy-MM",year:"yyyy",datetime:"yyyy-MM-dd HH:mm:ss",daterange:"yyyy-MM-dd",monthrange:"yyyy-MM",datetimerange:"yyyy-MM-dd HH:mm:ss"},d={components:{TreeNodeDialog:s["default"],IconsDialog:l["default"]},props:{showField:{type:Boolean,default:!1},activeData:{type:Object,default:function(){return{document:"",type:"",tag:""}}}},data:function(){return{currentTab:"field",currentNode:null,dialogVisible:!1,iconsVisible:!1,currentIconModel:null,dateTypeOptions:[{label:"日(date)",value:"date"},{label:"周(week)",value:"week"},{label:"月(month)",value:"month"},{label:"年(year)",value:"year"},{label:"日期时间(datetime)",value:"datetime"}],dateRangeTypeOptions:[{label:"日期范围(daterange)",value:"daterange"},{label:"月范围(monthrange)",value:"monthrange"},{label:"日期时间范围(datetimerange)",value:"datetimerange"}],colorFormatOptions:[{label:"hex",value:"hex"},{label:"rgb",value:"rgb"},{label:"rgba",value:"rgba"},{label:"hsv",value:"hsv"},{label:"hsl",value:"hsl"}],justifyOptions:[{label:"start",value:"start"},{label:"end",value:"end"},{label:"center",value:"center"},{label:"space-around",value:"space-around"},{label:"space-between",value:"space-between"}],layoutTreeProps:{label:function(e,t){return e.componentName||"".concat(e.label,": ").concat(e.vModel)}},formConf:{}}},computed:{documentLink:function(){return this.activeData.document||"https://element.eleme.cn/#/zh-CN/component/installation"},dateOptions:function(){return void 0!==this.activeData.type&&"el-date-picker"===this.activeData.tag?void 0===this.activeData["start-placeholder"]?this.dateTypeOptions:this.dateRangeTypeOptions:[]},tagList:function(){return[{label:"输入型组件",options:c["b"]},{label:"选择型组件",options:c["d"]}]}},methods:{addReg:function(){this.activeData.regList.push({pattern:"",message:""})},addSelectItem:function(){this.activeData.options.push({label:"",value:""})},addTreeItem:function(){++this.idGlobal,this.dialogVisible=!0,this.currentNode=this.activeData.options},renderContent:function(e,t){var i=this,a=t.node,n=t.data;t.store;return e("div",{class:"custom-tree-node"},[e("span",[a.label]),e("span",{class:"node-operation"},[e("i",{on:{click:function(){return i.append(n)}},class:"el-icon-plus",attrs:{title:"添加"}}),e("i",{on:{click:function(){return i.remove(a,n)}},class:"el-icon-delete",attrs:{title:"删除"}})])])},append:function(e){e.children||this.$set(e,"children",[]),this.dialogVisible=!0,this.currentNode=e.children},remove:function(e,t){var i=e.parent,a=i.data.children||i.data,n=a.findIndex((function(e){return e.id===t.id}));a.splice(n,1)},addNode:function(e){this.currentNode.push(e)},setOptionValue:function(e,t){e.value=Object(o["m"])(t)?+t:t},setDefaultValue:function(e){return Array.isArray(e)?e.join(","):["string","number"].indexOf(e)>-1?e:"boolean"===typeof e?"".concat(e):e},onDefaultValueInput:function(e){Object(r["isArray"])(this.activeData.defaultValue)?this.$set(this.activeData,"defaultValue",e.split(",").map((function(e){return Object(o["m"])(e)?+e:e}))):["true","false"].indexOf(e)>-1?this.$set(this.activeData,"defaultValue",JSON.parse(e)):this.$set(this.activeData,"defaultValue",Object(o["m"])(e)?+e:e)},onSwitchValueInput:function(e,t){["true","false"].indexOf(e)>-1?this.$set(this.activeData,t,JSON.parse(e)):this.$set(this.activeData,t,Object(o["m"])(e)?+e:e)},setTimeValue:function(e,t){var i="week"===t?u.date:e;this.$set(this.activeData,"defaultValue",null),this.$set(this.activeData,"value-format",i),this.$set(this.activeData,"format",e)},spanChange:function(e){this.formConf.span=e},multipleChange:function(e){this.$set(this.activeData,"defaultValue",e?[]:"")},dateTypeChange:function(e){this.setTimeValue(u[e],e)},rangeChange:function(e){this.$set(this.activeData,"defaultValue",e?[this.activeData.min,this.activeData.max]:this.activeData.min)},rateTextChange:function(e){e&&(this.activeData["show-score"]=!1)},rateScoreChange:function(e){e&&(this.activeData["show-text"]=!1)},colorFormatChange:function(e){this.activeData.defaultValue=null,this.activeData["show-alpha"]=e.indexOf("a")>-1,this.activeData.renderKey=+new Date},openIconsDialog:function(e){this.iconsVisible=!0,this.currentIconModel=e},setIcon:function(e){this.activeData[this.currentIconModel]=e},tagChange:function(e){var t=c["b"].find((function(t){return t.tagIcon===e}));t||(t=c["d"].find((function(t){return t.tagIcon===e}))),this.$emit("tag-change",t)}}},p=d,f=(i("4e1e9"),i("2877")),A=Object(f["a"])(p,a,n,!1,null,"2e2800de",null);t["default"]=A.exports},"76ac":function(e,t,i){},"76ed":function(e,t,i){"use strict";i("91c6")},"76f8":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-card",[i("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"基本信息",name:"basic"}},[i("basic-info-form",{ref:"basicInfo",attrs:{info:e.info}})],1),i("el-tab-pane",{attrs:{label:"字段信息",name:"cloum"}},[i("el-table",{ref:"dragTable",attrs:{data:e.cloumns,"row-key":"columnId","max-height":e.tableHeight}},[i("el-table-column",{attrs:{label:"序号",type:"index","min-width":"5%","class-name":"allowDrag"}}),i("el-table-column",{attrs:{label:"字段列名",prop:"columnName","min-width":"10%","show-overflow-tooltip":!0}}),i("el-table-column",{attrs:{label:"字段描述","min-width":"10%"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{model:{value:t.row.columnComment,callback:function(i){e.$set(t.row,"columnComment",i)},expression:"scope.row.columnComment"}})]}}])}),i("el-table-column",{attrs:{label:"物理类型",prop:"columnType","min-width":"10%","show-overflow-tooltip":!0}}),i("el-table-column",{attrs:{label:"Java类型","min-width":"11%"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{model:{value:t.row.javaType,callback:function(i){e.$set(t.row,"javaType",i)},expression:"scope.row.javaType"}},[i("el-option",{attrs:{label:"Long",value:"Long"}}),i("el-option",{attrs:{label:"String",value:"String"}}),i("el-option",{attrs:{label:"Integer",value:"Integer"}}),i("el-option",{attrs:{label:"Double",value:"Double"}}),i("el-option",{attrs:{label:"BigDecimal",value:"BigDecimal"}}),i("el-option",{attrs:{label:"Date",value:"Date"}})],1)]}}])}),i("el-table-column",{attrs:{label:"java属性","min-width":"10%"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{model:{value:t.row.javaField,callback:function(i){e.$set(t.row,"javaField",i)},expression:"scope.row.javaField"}})]}}])}),i("el-table-column",{attrs:{label:"插入","min-width":"5%"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-checkbox",{attrs:{"true-label":"1"},model:{value:t.row.isInsert,callback:function(i){e.$set(t.row,"isInsert",i)},expression:"scope.row.isInsert"}})]}}])}),i("el-table-column",{attrs:{label:"编辑","min-width":"5%"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-checkbox",{attrs:{"true-label":"1"},model:{value:t.row.isEdit,callback:function(i){e.$set(t.row,"isEdit",i)},expression:"scope.row.isEdit"}})]}}])}),i("el-table-column",{attrs:{label:"列表","min-width":"5%"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-checkbox",{attrs:{"true-label":"1"},model:{value:t.row.isList,callback:function(i){e.$set(t.row,"isList",i)},expression:"scope.row.isList"}})]}}])}),i("el-table-column",{attrs:{label:"查询","min-width":"5%"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-checkbox",{attrs:{"true-label":"1"},model:{value:t.row.isQuery,callback:function(i){e.$set(t.row,"isQuery",i)},expression:"scope.row.isQuery"}})]}}])}),i("el-table-column",{attrs:{label:"查询方式","min-width":"10%"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{model:{value:t.row.queryType,callback:function(i){e.$set(t.row,"queryType",i)},expression:"scope.row.queryType"}},[i("el-option",{attrs:{label:"=",value:"EQ"}}),i("el-option",{attrs:{label:"!=",value:"NE"}}),i("el-option",{attrs:{label:">",value:"GT"}}),i("el-option",{attrs:{label:">=",value:"GTE"}}),i("el-option",{attrs:{label:"<",value:"LT"}}),i("el-option",{attrs:{label:"<=",value:"LTE"}}),i("el-option",{attrs:{label:"LIKE",value:"LIKE"}}),i("el-option",{attrs:{label:"BETWEEN",value:"BETWEEN"}})],1)]}}])}),i("el-table-column",{attrs:{label:"必填","min-width":"5%"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-checkbox",{attrs:{"true-label":"1"},model:{value:t.row.isRequired,callback:function(i){e.$set(t.row,"isRequired",i)},expression:"scope.row.isRequired"}})]}}])}),i("el-table-column",{attrs:{label:"显示类型","min-width":"12%"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{model:{value:t.row.htmlType,callback:function(i){e.$set(t.row,"htmlType",i)},expression:"scope.row.htmlType"}},[i("el-option",{attrs:{label:"文本框",value:"input"}}),i("el-option",{attrs:{label:"文本域",value:"textarea"}}),i("el-option",{attrs:{label:"下拉框",value:"select"}}),i("el-option",{attrs:{label:"单选框",value:"radio"}}),i("el-option",{attrs:{label:"复选框",value:"checkbox"}}),i("el-option",{attrs:{label:"日期控件",value:"datetime"}})],1)]}}])}),i("el-table-column",{attrs:{label:"字典类型","min-width":"12%"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择"},model:{value:t.row.dictType,callback:function(i){e.$set(t.row,"dictType",i)},expression:"scope.row.dictType"}},e._l(e.dictOptions,(function(t){return i("el-option",{key:t.dictType,attrs:{label:t.dictName,value:t.dictType}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.dictName))]),i("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(t.dictType))])])})),1)]}}])})],1)],1),i("el-tab-pane",{attrs:{label:"生成信息",name:"genInfo"}},[i("gen-info-form",{ref:"genInfo",attrs:{info:e.info,menus:e.menus}})],1)],1),i("el-form",{attrs:{"label-width":"100px"}},[i("el-form-item",{staticStyle:{"text-align":"center","margin-left":"-100px","margin-top":"10px"}},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm()}}},[e._v("提交")]),i("el-button",{on:{click:function(t){return e.close()}}},[e._v("返回")])],1)],1)],1)},n=[],r=(i("d81d"),i("d3b7"),i("3ca3"),i("ddb0"),i("4b72")),s=i("b775");function o(){return Object(s["a"])({url:"/system/dict/type/optionselect",method:"get"})}var l=i("a6dc"),c=i("ed69"),u=i("8586"),d=245,p={name:"GenEdit",components:{basicInfoForm:c["default"],genInfoForm:u["default"]},data:function(){return{activeName:"cloum",tableHeight:document.documentElement.scrollHeight-d+"px",cloumns:[],dictOptions:[],menus:[],info:{}}},created:function(){var e=this,t=this.$route.params&&this.$route.params.tableId;t&&(Object(r["c"])(t).then((function(t){e.cloumns=t.data.rows,e.info=t.data.info})),o().then((function(t){e.dictOptions=t.data})),Object(l["d"])().then((function(t){e.menus=e.handleTree(t.data,"menuId")})))},mounted:function(){},methods:{submitForm:function(){var e=this,t=this.$refs.basicInfo.$refs.basicInfoForm,i=this.$refs.genInfo.$refs.genInfoForm;Promise.all([t,i].map(this.getFormPromise)).then((function(a){var n=a.every((function(e){return!!e}));if(n){var s=Object.assign({},t.model,i.model);s.columns=e.cloumns,s.params={treeCode:s.treeCode,treeName:s.treeName,treeParentCode:s.treeParentCode,parentMenuId:s.parentMenuId},Object(r["h"])(s).then((function(t){e.msgSuccess(t.msg),e.close()}))}else e.msgError("表单校验未通过,请重新检查提交内容")}))},getFormPromise:function(e){return new Promise((function(t){e.validate((function(e){t(e)}))}))},close:function(){this.$store.dispatch("tagsView/delView",this.$route),this.$router.push({path:"/tool/gen",query:{t:Date.now()}})}}},f=p,A=i("2877"),h=Object(A["a"])(f,a,n,!1,null,null,null);t["default"]=h.exports},7710:function(e,t,i){},7871:function(e,t,i){e.exports=i.p+"static/img/chat-step1-2.62a1b682.jpg"},"78c8":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"flex add-group-welcome-page"},[i("ReturnPage",{attrs:{path:"/operationsCenter/drainageCode/welcome",query:{welcomeMsgTplType:this.$route.query.welcomeMsgTplType}}}),i("div",{staticClass:"wrap-body"},[i("el-alert",{attrs:{title:"功能说明",type:"info",description:"管理员创建入群欢迎语素材,员工为客户群选择入群欢迎语模版后,客户入群将收到欢迎语;","show-icon":"",closable:!1}}),i("div",{staticClass:"add-container"},[i("div",{staticClass:"wrap-body-form"},[i("el-form",{ref:"form",staticClass:"form",attrs:{model:e.form,"label-width":"100px",rules:e.rules}},[i("p",{staticClass:"config-title"},[e._v("基础设置")]),i("el-alert",{staticClass:"alert-tip",attrs:{type:"warning",closable:!1}},[i("div",[e._v("1. 入群欢迎语素材最多可创建100个,包含在企业微信管理后台或其他应用创建的")]),i("div",[e._v("2. 入群欢迎语素材仅支持文本+1个附件")])]),i("el-form-item",{attrs:{label:"欢迎语"}},[i("el-input",{attrs:{type:"textarea",maxlength:e.welMsgMaxlength,"show-word-limit":"",autosize:{minRows:4,maxRows:10},placeholder:"请输入欢迎语"},model:{value:e.form.defaultWelcomeMsg,callback:function(t){e.$set(e.form,"defaultWelcomeMsg",t)},expression:"form.defaultWelcomeMsg"}}),i("div",{staticClass:"quick-actions"},[i("span",{on:{click:function(t){return e.handeAddTextClick("#客户昵称#")}}},[e._v("#客户昵称#")])]),i("AddAppendixBtn",{attrs:{"sub-title":e.subTitle,"limit-select-length":e.limitSelectLength,"max-appendix-num":e.MAX_APPENDIX_NUM,"appendix-list":e.appendixList,"remove-appendix-list":e.removeAppendixList,"msg-tip":"欢迎语最多支持设置"+e.MAX_APPENDIX_NUM+"个附件","radar-hidden":!0,"hide-video-cover":!0},on:{"update:appendixList":function(t){e.appendixList=t},"update:appendix-list":function(t){e.appendixList=t},"update:removeAppendixList":function(t){e.removeAppendixList=t},"update:remove-appendix-list":function(t){e.removeAppendixList=t}}})],1),e.form.id?e._e():i("el-form-item",{attrs:{label:"通知员工"}},[i("el-switch",{model:{value:e.form.noticeFlag,callback:function(t){e.$set(e.form,"noticeFlag",t)},expression:"form.noticeFlag"}}),i("span",{staticClass:"switch-tip"},[e._v("开启后,企业微信团队将通知员工将这条入群欢迎语应用到客户群中")])],1)],1)],1),i("div",{staticClass:"preview-wrap"},[i("PhoneDialog",{attrs:{message:e.form.defaultWelcomeMsg,"msg-list":e.appendixList}})],1)])],1),i("div",{staticClass:"wrap-footer"},[i("RequestButton",{attrs:{type:"primary","request-method":e.submit,"button-type":"submit"}},[e._v("保存")])],1)],1)},n=[],r=i("5530"),s=(i("99af"),i("d81d"),i("d3b7"),i("ac1f"),i("466d"),i("52a9")),o=i("4887"),l=i("8bd5"),c=i("aa50"),u=i("74e9"),d=i("ed08"),p=i("cf45"),f=i("dd70"),A=1e3,h=1,m={name:"",components:{AddAppendixBtn:o["a"],PhoneDialog:l["a"],ReturnPage:c["a"],RequestButton:s["a"]},props:{},data:function(){var e=this,t=function(t,i,a){e.form.defaultWelcomeMsg||e.appendixList.length?a():a(new Error("请填写欢迎语"))};return{appendixList:[],subTitle:"已添加 0 个附件,还可选择 1 个",form:{defaultWelcomeMsg:"",weEmpleCodeUseScops:[]},MAX_APPENDIX_NUM:h,limitSelectLength:h,removeAppendixList:[],noticeFlag:!1,rules:{defaultWelcomeMsg:[{required:!0,validator:t,trigger:"change"}]},welMsgMaxlength:A}},watch:{appendixList:function(e){this.subTitle="已添加 ".concat(e.length," 个附件,还可选择 ").concat(h-e.length," 个"),this.limitSelectLength=h-e.length}},created:function(){this.form=Object.assign(this.form,this.$route.query),this.$route.meta.title=(this.form.id?"编辑":"新增")+"入群欢迎语",this.form.id&&this.getDetail(this.form.id)},mounted:function(){},beforeUpdate:function(){Object(p["k"])(Object(r["a"])(Object(r["a"])({},this.$options.data().form),{},{welcomeMsgTplType:f["Jb"]}),this.form)},methods:{submit:function(){var e=this;this.$refs["form"].validate((function(t){if(t){var i,a=Object(r["a"])({},e.form),n=Object(d["e"])(e.appendixList),s={};if(e.form.id)s={defaultWelcomeMsg:a.defaultWelcomeMsg,defaultMaterialList:n,noticeFlag:a.noticeFlag,removeMaterialIds:null===(i=e.removeAppendixList)||void 0===i?void 0:i.map((function(e){return e.id})),id:a.id};else s={weMsgTlp:{defaultWelcomeMsg:a.defaultWelcomeMsg,defaultMaterialList:n,noticeFlag:a.noticeFlag}};(e.form.id?u["f"]:u["b"])(s).then((function(){e.$store.commit("SET_ADD_FLAG",!e.form.id),e.msgSuccess("操作成功"),e.goBack()})).finally((function(){Object(p["i"])(e.$store,"submit")}))}else Object(p["i"])(e.$store,"submit")}))},goBack:function(){this.$router.push("welcome?welcomeMsgTplType="+window.location.hash.match(/welcomeMsgTplType=(\d)/)[1])},getDetail:function(e){var t=this;Object(u["i"])(e).then((function(e){var i=Object(r["a"])({},e.data);t.form=Object(r["a"])({},i);var a=Object(d["f"])(i.defaultMaterialList);t.appendixList=a}))},handeAddTextClick:function(e){this.form.defaultWelcomeMsg.length+e.length>this.welMsgMaxlength?this.msgWarn("字数已达上限"):this.form.defaultWelcomeMsg=this.form.defaultWelcomeMsg+e}}},g=m,v=(i("4afa"),i("f5af"),i("2877")),b=Object(v["a"])(g,a,n,!1,null,"01e7f99e",null);t["default"]=b.exports},"79a7":function(e,t,i){"use strict";i("2ad9")},"79ae":function(e,t,i){},"79b6":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"aic",staticStyle:{"flex-wrap":"wrap"}},[e._l(e.useUserName?e.splitBySign(e.useUserName,","):[],(function(t,a){return i("div",{key:a},[i("span",[e._v(e._s(t))]),a!==e.splitBySign(e.useUserName,",").length-1||0!==e.splitBySign(e.departmentName,",").length?i("span",[e._v("、")]):e._e()])})),e._l(e.departmentName?e.splitBySign(e.departmentName,","):[],(function(t,a){return i("div",{key:a+e.splitBySign(e.useUserName,",").length,staticClass:"aic"},[i("i",{staticClass:"iconfont icon-folder mr2",staticStyle:{"font-size":"14px"}}),i("span",[e._v(e._s(t))]),a!==e.splitBySign(e.departmentName,",").length-1?i("span",[e._v("、")]):e._e()])}))],2)},n=[],r=i("cf45"),s={name:"ListUserShow",props:{useUserName:{type:String,default:void 0},departmentName:{type:String,default:void 0}},data:function(){return{}},methods:{splitBySign:r["S"]}},o=s,l=i("2877"),c=Object(l["a"])(o,a,n,!1,null,null,null);t["a"]=c.exports},"79cf":function(e,t,i){e.exports={menuText:"#333",menuActiveText:"#333",subMenuActiveText:"#333",menuBg:"#fff",menuHover:"#fafafa",subMenuBg:"#fff",subMenuHover:"#fafafa",sideBarWidth:"250px"}},"79d6":function(e,t,i){},"7a3f":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAARCAYAAADUryzEAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFeSURBVDhP7VO9SgNBEJ5vEAvvwMoHMCGg2NipT2ChCNY2YnEGBPUB7LQKFqbR5KooWguihY+grYWF5ixEbA3kumTHnbuNibkEtfeD22P+v5nZBf0CzXBymYSXIPKIUVyObdRfnYnY/TOIq/lSHOY/nJgCWJYWPTTD3J7TUIZBXCnMCdpHAOZV9oL6Nx9lA+JzITn0g+gAcSW3LcC0GgHx7LlCJG9iqARGTRN0W+CaV3y6+0piZIeJUbYBs/qJUEEze0E04xej06SkQ5Kcza3S94OXa+t/ZVmuwfYp/TQ76Ld1KpPhRaH2lGVYHjrEQdDKYjchMOtONf6nBAPQGNGzWc2fJKIC5ibtMYu0BTtww7vE7S0Sumeyk3T2dFCC4949KzQwDnNnnfUJtyZ0W7adi6H3wDq8A7Tav0YN7r0HmRnonv3NaMFmfrZiI9U6wOz3BieqxPADugyyb+EfRJ/NWK2uMkGa/QAAAABJRU5ErkJggg=="},"7ac2":function(e,t,i){"use strict";i("a5d3")},"7b10":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"group-message-detail-page"},[i("el-card",{staticClass:"mb10",attrs:{shadow:"hover"}},[i("div",{staticClass:"back-area"},[i("i",{staticClass:"iconfont icon-restore",on:{click:e.handleGoBack}}),i("span",{on:{click:e.handleGoBack}},[e._v("返回")])]),i("i",{staticClass:"iconfont icon-published theme-text-color"}),i("div",[i("div",{staticClass:"creator-div"},[i("div",{staticClass:"label"},[e._v("任务名称:")]),i("span",[e._v(e._s(e.data.taskName))])]),i("div",{staticClass:"creator-div"},[i("div",{staticClass:"label"},[e._v("创建时间:")]),i("span",[e._v(e._s(e.data.sendTime))]),i("div",{staticClass:"label"},[e._v("创建人:")]),i("span",[e._v(e._s(e.data.sender))]),i("div",{staticClass:"label"},[e._v("群发类型:")]),i("span",[e._v(e._s(e.GROUP_MESSAGE_PUSH_TYPE[e.data.pushType]))]),i("div",{staticClass:"label"},[e._v("发送时间:")]),i("span",[e._v(e._s(e.data.settingTime?e.data.settingTime.slice(0,-3):"立即发送"))])]),i("div",{staticClass:"mt15 flex aic"},[i("div",{staticClass:"label"},[e._v("消息内容:")]),i("div",{staticClass:"message-content"},[e.data.content?i("div",{staticClass:"message-text"},[e._v(e._s(e.getTextMessageList(e.data.seedMessageList||[])))]):e._e(),i("AppendixList",{attrs:{list:e.appendixList}})],1)])])]),i("el-tabs",{staticClass:"group-message-detail-page-table",model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"待执行",name:"0"}},[i("TabContent",{attrs:{type:"0",total:e.total0,"push-type":e.data.pushType},on:{"update:total":function(t){e.total0=t}}})],1),i("el-tab-pane",{attrs:{label:"已执行",name:"1"}},[i("TabContent",{attrs:{type:"1",total:e.total1,"push-type":e.data.pushType},on:{"update:total":function(t){e.total1=t}}})],1)],1)],1)},n=[],r=(i("caad"),i("a15b"),i("d81d"),i("fb6a"),i("b64b"),i("d3b7"),i("2532"),i("159b"),i("3464")),s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("VideoModal",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],ref:"videoModal",on:{closeModal:e.closeModal}}),e._l(e.list,(function(t){return i("div",{key:t.seedMessageId,class:["appendix-item",t.messageType===e.MEDIA_TYPE_MINIAPP?"msg-mini-app":""],on:{click:function(i){return e.handleClickAppendix(t)}}},[i("span",[i("span",{staticClass:"appendix-type"},[e._v("["+e._s(e.MESSAGE_MEDIA_TYPE[t.messageType])+"]")]),i("span",{staticClass:"appendix-title"},[e._v(e._s(t[e.getTitleField(t.messageType)]))])]),t.messageType===e.MEDIA_TYPE_POSTER?i("el-image",{staticClass:"appendix-image",attrs:{src:t.picUrl,"preview-src-list":[t.picUrl]}}):e._e()],1)}))],2)},o=[],l=(i("ac1f"),i("00b4"),i("c408")),c=i("dd70"),u=i("cf45"),d=/https?:\/\//,p={name:"AppendixList",components:{VideoModal:l["default"]},props:{list:{type:Array,default:function(){return[]}}},data:function(){return{MESSAGE_MEDIA_TYPE:c["ic"],MEDIA_TYPE_POSTER:c["cc"],MEDIA_TYPE_IMGLINK:c["ac"],MEDIA_TYPE_MINIAPP:c["bc"],visible:!1}},computed:{},watch:{},created:function(){},mounted:function(){},methods:{getTitleField:function(e){switch(String(e)){case c["cc"]:return"picName";case c["ac"]:case c["dc"]:case c["ec"]:return"linkTitle";case c["gc"]:return"videoName";case c["bc"]:return"miniprogramTitle";case c["Zb"]:return"fileName"}},onPreview:function(e){this.visible=!0,this.$refs.videoModal.play(e.videoUrl)},closeModal:function(){this.visible=!1},handleClickAppendix:function(e){switch(String(e.messageType)){case c["ac"]:window.open(this.dealLinkUrl(e.linkUrl));break;case c["gc"]:this.onPreview(e);break;case c["Zb"]:Object(u["w"])(e.fileUrl,e.fileName);break;default:return}},dealLinkUrl:function(e){return d.test(e)?e:"http://"+e}}},f=p,A=(i("2018"),i("2877")),h=Object(A["a"])(f,s,o,!1,null,"0c102f54",null),m=h.exports,g=i("a705"),v={components:{AppendixList:m,TabContent:g["default"]},props:{},data:function(){return{data:{},activeName:"0",total1:0,total0:0,appendixList:[],GROUP_MESSAGE_PUSH_TYPE:c["rb"]}},computed:{},watch:{},created:function(){var e=this;Object(r["d"])(this.$route.query.id).then((function(t){var i=t.data;e.data=i,e.appendixList=i.seedMessageList.slice(1)}))},mounted:function(){},methods:{notice:function(){},getTextMessageList:function(e){var t=[];return e.map((function(e){e.messageType===c["fc"]&&t.push(e.content)})),t.join(",")},handleGoBack:function(){var e=this,t={};Object.keys(this.$route.query).forEach((function(i){i.includes("_")&&(t[i.slice(0,-1)]=e.$route.query[i])})),this.$router.push({path:"/operationsCenter/groupMessage/record",query:t})}}},b=v,y=(i("983e"),Object(A["a"])(b,a,n,!1,null,"99f1f726",null));t["default"]=y.exports},"7b78":function(e,t,i){},"7bc1":function(e,t,i){"use strict";i("a983")},"7be1":function(e,t,i){"use strict";i("d23a")},"7c3b":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",e._g(e._b({staticClass:"spread-dialog",attrs:{width:"1050px","close-on-click-modal":!1,title:e.getUserName+"的客户活跃度详情"},on:{close:e.onClose}},"el-dialog",e.$attrs,!1),e.$listeners),[i("div",{staticClass:"spread-dialog-content"},[i("el-input",{staticClass:"search-input",staticStyle:{width:"240px"},attrs:{placeholder:"请输入客户昵称,回车搜索",clearable:""},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(!0)}},model:{value:e.query.customerName,callback:function(t){e.$set(e.query,"customerName",t)},expression:"query.customerName"}}),i("div",{staticClass:"table-wrap"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.list.length}})],1),i("el-table-column",{attrs:{prop:"codeUrl",label:"客户"},scopedSlots:e._u([{key:"default",fn:function(e){var t=e.row;return[i("UserItem",{attrs:{data:t}})]}}])}),i("el-table-column",{attrs:{prop:"customerSendMessageCnt",label:"客户发送消息数"}}),i("el-table-column",{attrs:{prop:"userSendMessageCnt",label:"员工发送消息数"}})],2)],1),i("pagination",{attrs:{total:1*e.total,page:e.query.pageNum,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}})],1)])},n=[],r=i("5530"),s=(i("d3b7"),i("dd70")),o=i("e77d"),l=i("86e8"),c=i("48fb"),u={name:"",components:{EmptyDefaultIcon:o["a"],UserItem:l["a"]},props:{showDetailsClient:{type:Object,default:function(){}},parentQuery:{type:Object,default:function(){}}},data:function(){return{list:[],total:0,loading:!1,query:{pageNum:1,pageSize:s["Ic"],customerName:""}}},computed:{getUserName:function(){var e;return null===(e=this.showDetailsClient)||void 0===e?void 0:e.userName},getUserId:function(){var e;return null===(e=this.showDetailsClient)||void 0===e?void 0:e.userId}},watch:{},methods:{getSearchPayload:function(){var e;return Object(r["a"])(Object(r["a"])(Object(r["a"])({},this.parentQuery),this.query),{},{userId:null===(e=this.showDetailsClient)||void 0===e?void 0:e.userId})},getList:function(e){var t=this;e&&(this.query.pageNum=1),this.loading=!0,Object(c["t"])(this.getSearchPayload()).then((function(e){t.list=e.rows,t.total=e.total||0})).finally((function(){t.loading=!1}))},resetQuery:function(){this.query={customerName:"",pageSize:s["Ic"]}},onClose:function(){this.$emit("update:visible",!1),this.resetQuery()}}},d=u,p=(i("61f1"),i("2877")),f=Object(p["a"])(d,a,n,!1,null,"08b46079",null);t["default"]=f.exports},"7d08":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"link-preview"},[i("div",{staticClass:"top-div"},[i("span",{staticClass:"file-title intwoline",attrs:{title:"链接标题"}},[e._v(" "+e._s(e.title)+" ")])]),i("div",{staticClass:"bottom-div"},[i("div",{staticClass:"desc inoneline"},[e._v(" "+e._s(e.content)+" ")]),i("el-image",{staticClass:"cover-img",attrs:{src:e.coverUrl,fit:"cover"}},[i("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[i("svg",{staticClass:"icon-img-link",attrs:{width:25,height:25}},[i("use",{attrs:{href:"#icon-img-link"}})])])])],1)])},n=[],r={name:"",components:{},props:{title:{type:String,default:""},content:{type:String,default:""},coverUrl:{type:String,default:""}},data:function(){return{}},created:function(){},mounted:function(){}},s=r,o=(i("bb08"),i("2877")),l=Object(o["a"])(s,a,n,!1,null,"00b2ed69",null);t["default"]=l.exports},"7d0a":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-col",{attrs:{span:8}},[e._v(e._s(""+(e.erchatsTable[e.field]?e.erchatsTable[e.field]:0)+(e.erchatsTable[e.field]===e.DATA_STATISTICS_DEFAULT_SHOW?"":e.unit))+" ")])},n=[],r=i("dd70"),s={name:"CntItem",components:{},props:{erchatsTable:{type:Object,default:function(){}},field:{type:String,default:""},unit:{type:String,default:""}},data:function(){return{DATA_STATISTICS_DEFAULT_SHOW:r["F"]}}},o=s,l=i("2877"),c=Object(l["a"])(o,a,n,!1,null,null,null);t["default"]=c.exports},"7d3b":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:e.className},[i("div",{staticClass:"bottom-div"},[i("div",{staticClass:"preview-left"},[e.radarTitle?i("div",{staticClass:"inoneline radar-title"},[e._v(" "+e._s(e.radarTitle)+" ")]):e._e(),i("div",{staticClass:"inoneline link-title"},[e._v(" "+e._s(e.linkTitle)+" ")]),i("div",{class:"content "+(e.radarTitle?"inoneline":"intwoline")},[e._v(" "+e._s(e.content)+" ")])]),e.coverUrl?[i("el-image",{staticClass:"cover-img",attrs:{src:e.coverUrl,fit:"cover"}},[i("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[i("svg",{staticClass:"icon-img-link",attrs:{width:25,height:25}},[i("use",{attrs:{href:"#icon-img-link"}})])])])]:e._e()],2)])},n=[],r={name:"RadarLink",components:{},props:{linkTitle:{type:String,default:""},radarTitle:{type:String,default:null},content:{type:String,default:""},coverUrl:{type:String,default:""},className:{type:String,default:"link-preview"}},data:function(){return{}},watch:{coverUrl:function(e){this.coverUrl=e}},created:function(){},mounted:function(){}},s=r,o=(i("7ac2"),i("2877")),l=Object(o["a"])(s,a,n,!1,null,"603a892a",null);t["default"]=l.exports},"7e25":function(e,t,i){e.exports=i.p+"static/img/config-step2-(2)-4.15bd6c67.png"},"7e38":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"work-sheet-assistant-config config-tab"},[a("div",{staticClass:"tab-title"},[e._v("功能介绍")]),a("div",{staticClass:"tab-des"},[e._v(" 企业开通「"+e._s(e.appDetail&&e.appDetail.name)+"」后,员工可从【我的应用】直接进入工单系统处理业务。 ")]),a("div",{staticClass:"tab-title"},[e._v("开通/咨询")]),a("div",{staticClass:"tab-des"},[e._v(" 若您的企业需要开通「"+e._s(e.appDetail&&e.appDetail.name)+"」或在使用过程中遇到问题,请扫描以下二维码,添加客服 ,了解应用更多信息。 ")]),a("div",{staticClass:"tab-img"},[a("el-image",{staticStyle:{width:"150px",height:"150px"},attrs:{src:e.appDetail&&e.appDetail.consultingService||i("c67a"),alt:"","preview-src-list":[e.appDetail&&e.appDetail.consultingService||i("c67a")]}}),a("p",[e._v("扫码添加客服")])],1)])},n=[],r={name:"",components:{},props:{appDetail:{type:Object,default:function(){return{name:"青鸾智能工单系统"}}}},data:function(){return{}}},s=r,o=(i("6158"),i("2877")),l=Object(o["a"])(s,a,n,!1,null,"32eaba2a",null);t["default"]=l.exports},"7eb1":function(e,t,i){},"7f4a":function(e,t,i){"use strict";i("268c")},"7f66":function(e,t,i){},"7f7d":function(e,t,i){},"7f9e":function(e,t,i){"use strict";i("4438")},"7fab":function(e,t,i){"use strict";i("1a17")},8029:function(e,t,i){"use strict";i("b131")},8044:function(e,t,i){e.exports=i.p+"static/img/customer-step3-1.25ddbba7.jpg"},"80d9":function(e,t,i){e.exports=i.p+"static/img/config-step-2.ff3c467f.jpeg"},"80de":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return makeUpJs}));var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("99af"),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("a15b"),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("e9c4"),core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("b64b"),core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("d3b7"),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("159b"),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__),util__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("3022"),util__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(util__WEBPACK_IMPORTED_MODULE_6__),_utils_index__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("ed08"),_config__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("2e2a"),units={KB:"1024",MB:"1024 / 1024",GB:"1024 / 1024 / 1024"},confGlobal,inheritAttrs={file:"",dialog:"inheritAttrs: false,"};function makeUpJs(e,t){confGlobal=e=JSON.parse(JSON.stringify(e));var i=[],a=[],n=[],r=[],s=mixinMethod(t),o=[];e.fields.forEach((function(e){buildAttributes(e,i,a,n,s,r,o)}));var l=buildexport(e,t,i.join("\n"),a.join("\n"),n.join("\n"),o.join("\n"),r.join("\n"),s.join("\n"));return confGlobal=null,l}function buildAttributes(e,t,i,a,n,r,s){if(buildData(e,t),buildRules(e,i),e.options&&e.options.length&&(buildOptions(e,a),"dynamic"===e.dataType)){var o="".concat(e.vModel,"Options"),l=Object(_utils_index__WEBPACK_IMPORTED_MODULE_7__["p"])(o);buildOptionMethod("get".concat(l),o,n)}e.props&&e.props.props&&buildProps(e,r),e.action&&"el-upload"===e.tag&&(s.push("".concat(e.vModel,"Action: '").concat(e.action,"',\n ").concat(e.vModel,"fileList: [],")),n.push(buildBeforeUpload(e)),e["auto-upload"]||n.push(buildSubmitUpload(e))),e.children&&e.children.forEach((function(e){buildAttributes(e,t,i,a,n,r,s)}))}function mixinMethod(e){var t=[],i={file:confGlobal.formBtns?{submitForm:"submitForm() {\n this.$refs['".concat(confGlobal.formRef,"'].validate(valid => {\n if(!valid) return\n // TODO 提交表单\n })\n },"),resetForm:"resetForm() {\n this.$refs['".concat(confGlobal.formRef,"'].resetFields()\n },")}:null,dialog:{onOpen:"onOpen() {},",onClose:"onClose() {\n this.$refs['".concat(confGlobal.formRef,"'].resetFields()\n },"),close:"close() {\n this.$emit('update:visible', false)\n },",handelConfirm:"handelConfirm() {\n this.$refs['".concat(confGlobal.formRef,"'].validate(valid => {\n if(!valid) return\n this.close()\n })\n },")}},a=i[e];return a&&Object.keys(a).forEach((function(e){t.push(a[e])})),t}function buildData(e,t){var i;void 0!==e.vModel&&(i="string"!==typeof e.defaultValue||e.multiple?"".concat(JSON.stringify(e.defaultValue)):"'".concat(e.defaultValue,"'"),t.push("".concat(e.vModel,": ").concat(i,",")))}function buildRules(conf,ruleList){if(void 0!==conf.vModel){var rules=[];if(_config__WEBPACK_IMPORTED_MODULE_8__["e"][conf.tag]){if(conf.required){var type=Object(util__WEBPACK_IMPORTED_MODULE_6__["isArray"])(conf.defaultValue)?"type: 'array',":"",message=Object(util__WEBPACK_IMPORTED_MODULE_6__["isArray"])(conf.defaultValue)?"请至少选择一个".concat(conf.vModel):conf.placeholder;void 0===message&&(message="".concat(conf.label,"不能为空")),rules.push("{ required: true, ".concat(type," message: '").concat(message,"', trigger: '").concat(_config__WEBPACK_IMPORTED_MODULE_8__["e"][conf.tag],"' }"))}conf.regList&&Object(util__WEBPACK_IMPORTED_MODULE_6__["isArray"])(conf.regList)&&conf.regList.forEach((function(item){item.pattern&&rules.push("{ pattern: ".concat(eval(item.pattern),", message: '").concat(item.message,"', trigger: '").concat(_config__WEBPACK_IMPORTED_MODULE_8__["e"][conf.tag],"' }"))})),ruleList.push("".concat(conf.vModel,": [").concat(rules.join(","),"],"))}}}function buildOptions(e,t){if(void 0!==e.vModel){"dynamic"===e.dataType&&(e.options=[]);var i="".concat(e.vModel,"Options: ").concat(JSON.stringify(e.options),",");t.push(i)}}function buildProps(e,t){"dynamic"===e.dataType&&("value"!==e.valueKey&&(e.props.props.value=e.valueKey),"label"!==e.labelKey&&(e.props.props.label=e.labelKey),"children"!==e.childrenKey&&(e.props.props.children=e.childrenKey));var i="".concat(e.vModel,"Props: ").concat(JSON.stringify(e.props.props),",");t.push(i)}function buildBeforeUpload(e){var t=units[e.sizeUnit],i="",a="",n=[];e.fileSize&&(i="let isRightSize = file.size / ".concat(t," < ").concat(e.fileSize,"\n if(!isRightSize){\n this.msgError('文件大小超过 ").concat(e.fileSize).concat(e.sizeUnit,"')\n }"),n.push("isRightSize")),e.accept&&(a="let isAccept = new RegExp('".concat(e.accept,"').test(file.type)\n if(!isAccept){\n this.msgError('应该选择").concat(e.accept,"类型的文件')\n }"),n.push("isAccept"));var r="".concat(e.vModel,"BeforeUpload(file) {\n ").concat(i,"\n ").concat(a,"\n return ").concat(n.join("&&"),"\n },");return n.length?r:""}function buildSubmitUpload(e){var t="submitUpload() {\n this.$refs['".concat(e.vModel,"'].submit()\n },");return t}function buildOptionMethod(e,t,i){var a="".concat(e,"() {\n // TODO 发起请求获取数据\n this.").concat(t,"\n },");i.push(a)}function buildexport(e,t,i,a,n,r,s,o){var l="".concat(_utils_index__WEBPACK_IMPORTED_MODULE_7__["i"],"{\n ").concat(inheritAttrs[t],"\n components: {},\n props: [],\n data () {\n return {\n ").concat(e.formModel,": {\n ").concat(i,"\n },\n ").concat(e.formRules,": {\n ").concat(a,"\n },\n ").concat(r,"\n ").concat(n,"\n ").concat(s,"\n }\n },\n computed: {},\n watch: {},\n created () {},\n mounted () {},\n methods: {\n ").concat(o,"\n }\n}");return l}},8107:function(e,t,i){"use strict";i.d(t,"a",(function(){return s})),i.d(t,"u",(function(){return o})),i.d(t,"n",(function(){return l})),i.d(t,"i",(function(){return c})),i.d(t,"g",(function(){return u})),i.d(t,"m",(function(){return d})),i.d(t,"p",(function(){return p})),i.d(t,"l",(function(){return f})),i.d(t,"t",(function(){return A})),i.d(t,"h",(function(){return h})),i.d(t,"j",(function(){return m})),i.d(t,"k",(function(){return g})),i.d(t,"r",(function(){return v})),i.d(t,"q",(function(){return b})),i.d(t,"s",(function(){return y})),i.d(t,"d",(function(){return _})),i.d(t,"c",(function(){return w})),i.d(t,"e",(function(){return C})),i.d(t,"b",(function(){return x})),i.d(t,"v",(function(){return k})),i.d(t,"o",(function(){return T})),i.d(t,"f",(function(){return S}));i("99af");var a=i("b775"),n=window.CONFIG.services.wecom+"/customerAssistant",r=n+"/channel";function s(e){return Object(a["a"])({url:n+"/add",method:"post",data:e})}function o(e){return Object(a["a"])({url:n+"/edit",method:"put",data:e})}function l(e){return Object(a["a"])({url:n+"/delete/"+e,method:"delete"})}function c(e){return Object(a["a"])({url:n+"/list",params:e})}function u(e){return Object(a["a"])({url:"".concat(n,"/").concat(e)})}function d(e){return Object(a["a"])({url:n+"/warnConfig",params:e})}function p(e){return Object(a["a"])({url:n+"/warnConfig",method:"post",data:e})}function f(e){return Object(a["a"])({url:n+"/situation",params:e})}function A(){return Object(a["a"])({url:n+"/situation/sync"})}function h(e){return Object(a["a"])({url:n+"/detail/total/"+e})}function m(e){return Object(a["a"])({url:n+"/detail/getNewAndLossCustomerCnt",params:e})}function g(e){return Object(a["a"])({url:n+"/detail/channel/range",params:e})}function v(e){return Object(a["a"])({url:n+"/detail/statistic/customer",params:e})}function b(e){return Object(a["a"])({url:n+"/detail/statistic/channel",params:e})}function y(e){return Object(a["a"])({url:n+"/detail/statistic/date",params:e})}function _(e){return Object(a["a"])({url:n+"/export/detail/statistic/customer",params:e})}function w(e){return Object(a["a"])({url:n+"/export/detail/statistic/channel",params:e})}function C(e){return Object(a["a"])({url:n+"/export/detail/statistic/date",params:e})}function x(e){return Object(a["a"])({url:r+"/add",method:"post",data:e})}function k(e){return Object(a["a"])({url:r+"/edit",method:"put",data:e})}function T(e){return Object(a["a"])({url:r+"/delete/"+e,method:"delete"})}function S(e){return Object(a["a"])({url:r+"/list",params:e})}},8127:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container"},[a("div",{staticClass:"box-card"},[a("span",{staticClass:"title"},[e._v(" 获客助手 ")]),a("span",{staticClass:"explain"},[e._v(" 线上获客时,可将获客链接配置在微信内/外,如网页、App、公众号、短信等,客户点击即可跳到成员详情页一键添加,有效提升获客转化。 "),a("span",{staticClass:"use-tips theme-text-color",on:{click:function(t){e.useTipDrawer=!0}}},[e._v("使用指引")])]),a("div",{staticClass:"image"},[a("el-image",{staticClass:"part-img",attrs:{src:i("cda5"),"preview-src-list":[i("cda5")]}}),a("i",{staticClass:"el-icon-d-arrow-right"}),a("el-image",{staticClass:"part-img",attrs:{src:i("38353"),"preview-src-list":[i("38353")]}})],1)]),e.checkPermi(["customer:assistant:situation"])?a("CustomerAssistantSituation"):e._e(),a("div",{staticClass:"search-table"},[a("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[a("el-form",{ref:"queryForm",attrs:{inline:!0,model:e.query,"label-width":"100px"}},[a("el-form-item",{attrs:{prop:"scenario"}},[a("el-input",{attrs:{placeholder:"请输入链接名称",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(1)}},model:{value:e.query.scenario,callback:function(t){e.$set(e.query,"scenario",t)},expression:"query.scenario"}})],1),a("el-form-item",{attrs:{prop:"useUserName"}},[a("el-input",{attrs:{placeholder:"请输入使用员工",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(1)}},model:{value:e.query.useUserName,callback:function(t){e.$set(e.query,"useUserName",t)},expression:"query.useUserName"}})],1),a("el-form-item",{attrs:{prop:"qrCode"}},[a("el-input",{attrs:{placeholder:"请输入链接",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(1)}},model:{value:e.query.qrCode,callback:function(t){e.$set(e.query,"qrCode",t)},expression:"query.qrCode"}})],1),a("el-form-item",{attrs:{prop:"createBy"}},[a("el-input",{attrs:{placeholder:"请输入创建人姓名",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(1)}},model:{value:e.query.createBy,callback:function(t){e.$set(e.query,"createBy",t)},expression:"query.createBy"}})],1),a("el-form-item",[a("el-date-picker",{staticStyle:{width:"240px"},attrs:{type:"daterange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),a("el-form-item",{staticClass:"last-btn"},[a("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.getList(1)}}},[e._v("查询")]),a("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.onReset()}}},[e._v("重置")])],1),a("el-form-item",{staticClass:"fix-right-operate-btn"},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customer:assistant:add"],expression:"['customer:assistant:add']"}],attrs:{type:"primary"},on:{click:function(t){return e.goRoute("customerAssistantAdd",{})}}},[e._v("新增链接")]),a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customer:assistant:delete"],expression:"['customer:assistant:delete']"}],staticClass:"btn-reset",on:{click:e.batchDelete}},[e._v("批量删除")])],1)],1)]},proxy:!0},{key:"data",fn:function(){return[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",attrs:{data:e.list},on:{"selection-change":e.handleSelectionChange}},[a("template",{slot:"empty"},[a("empty-default-icon",{attrs:{text:"暂无数据",length:e.list.length}})],1),a("el-table-column",{attrs:{type:"selection",width:"55",align:"center",fixed:""}}),a("el-table-column",{attrs:{prop:"scenario",label:"链接名称",align:"center",width:"220",fixed:""},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-popover",{attrs:{"open-delay":600,placement:"top-start",trigger:"hover","popper-class":"tip-popover",content:""+i.scenario}},[a("div",{staticClass:"intwoline",attrs:{slot:"reference"},slot:"reference"},[e._v(" "+e._s(i.scenario)+" ")])])]}}])}),a("el-table-column",{attrs:{label:"获客链接",align:"center",prop:"qrCode","min-width":"300"}}),a("el-table-column",{attrs:{label:"使用员工",align:"center",prop:"useUserName,departmentName","show-overflow-tooltip":"","min-width":"175"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("ListUserShow",{attrs:{"use-user-name":e.row.useUserName,"department-name":e.row.departmentName}})]}}])}),a("el-table-column",{attrs:{label:"创建人",align:"center",prop:"createBy","min-width":"125"}}),a("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"createTime","min-width":"175"}}),a("el-table-column",{attrs:{label:"操作",align:"center","min-width":"185",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("div",[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.goRoute("customerAssistantDetail",{id:i.id})}}},[e._v("详情")]),a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.openVisible(i.id)}}},[e._v("自定义渠道")]),a("el-button",{directives:[{name:"copy",rawName:"v-copy",value:i.qrCode,expression:"row.qrCode"}],attrs:{size:"mini",type:"text"}},[e._v("复制链接")])],1),a("div",[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customer:assistant:edit"],expression:"['customer:assistant:edit']"}],attrs:{size:"mini",type:"text"},on:{click:function(t){return e.goRoute("customerAssistantEdit",{id:i.id})}}},[e._v("编辑")]),a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customer:assistant:delete"],expression:"['customer:assistant:delete']"}],attrs:{size:"mini",type:"text"},on:{click:function(t){return e.handleDelete(i)}}},[e._v("删除")])],1)]}}])})],2),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:1*e.total,disabled:e.loading,page:e.query.pageNum,limit:e.query.pageSize,"select-data-len":e.ids.length},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}})]},proxy:!0}])})],1),a("UseTip",{attrs:{visible:e.useTipDrawer},on:{"update:visible":function(t){e.useTipDrawer=t}}}),a("CustomChannel",{attrs:{visible:e.customChannelVisible,"emple-code-id":e.selectEmpleCodeId},on:{"update:visible":function(t){e.customChannelVisible=t}}})],1)},n=[],r=i("c7eb"),s=i("1da1"),o=(i("a15b"),i("d81d"),i("b0c0"),i("b64b"),i("d3b7"),i("ed08")),l=i("8107"),c=i("dd70"),u=i("b66d"),d=i("e77d"),p=i("677e"),f=i("bfb2"),A=i("91b8"),h=i("79b6"),m=i("e350"),g=i("e2e0"),v={components:{CustomChannel:A["default"],RightContainer:u["a"],EmptyDefaultIcon:d["a"],UseTip:p["default"],ListUserShow:h["a"],CustomerAssistantSituation:f["default"]},mixins:[g["a"]],data:function(){return{loading:!1,list:[],query:{pageNum:1,pageSize:c["Ic"],beginTime:void 0,endTime:void 0,scenario:void 0,useUserName:void 0,qrCode:void 0,createBy:void 0},dateRange:[],useTipDrawer:!1,customChannelVisible:!1,ids:[],total:0,selectEmpleCodeId:void 0}},created:function(){if(this.$store.getters.saveCondition&&Object.keys(this.$store.getters.searchQuery[this.$route.name]||{}).length){var e=this.$store.getters.searchQuery[this.$route.name],t=e.beginTime,i=e.endTime;t&&i&&(this.dateRange=[t,i]),this.query=this.$store.getters.searchQuery[this.$route.name]}this.getList()},methods:{handleSelectionChange:function(e){this.ids=e.map((function(e){return e.id}))},openVisible:function(e){this.selectEmpleCodeId=e,this.customChannelVisible=!0},handleDelete:function(e){this.deleteLink([e.id])},goRoute:function(e,t){this.$store.commit("SET_SEARCH_QUERY",{pageName:this.$route.name,query:this.query}),Object(o["l"])(this.$router,e,{},t)},batchDelete:function(){this.ids.length<=0?this.msgWarn("请至少选择一个获客链接"):this.deleteLink(this.ids)},deleteLink:function(e){var t=this;return Object(s["a"])(Object(r["a"])().mark((function i(){return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:t.confirmModal({msg:"删除后,链接失效,之前的统计数据也将被删除并不可恢复,是否继续?"},Object(s["a"])(Object(r["a"])().mark((function i(){var a;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:a=e.join(","),Object(l["n"])(a).then((function(){t.msgSuccess("删除成功"),t.getList(1)}));case 2:case"end":return i.stop()}}),i)}))));case 1:case"end":return i.stop()}}),i)})))()},onReset:function(){this.dateRange=[],this.query=this.$options.data().query,this.getList(1)},getList:function(e){var t=this;this.dateRange?(this.query.beginTime=this.dateRange[0],this.query.endTime=this.dateRange[1]):(this.query.beginTime="",this.query.endTime=""),e&&(this.query.pageNum=e),this.loading=!0,Object(l["i"])(this.query).then((function(e){var i=e.rows,a=e.total;t.list=i,t.total=+a,t.ids=[]})).catch((function(){t.list=[],t.total=0})).finally((function(){t.modifyButtonStatus(),t.loading=!1}))},checkPermi:function(e){return Object(m["a"])(e)}}},b=v,y=(i("9fb4"),i("2877")),_=Object(y["a"])(b,a,n,!1,null,"d8e4d714",null);t["default"]=_.exports},"8127f":function(e,t,i){"use strict";i("4139")},8157:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"batch-tag"},[i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{inline:!0,model:e.query,"label-width":"100px",size:"small"}},[i("el-form-item",{attrs:{prop:"name"}},[i("el-input",{attrs:{placeholder:"请输入任务名称",clearable:""},model:{value:e.query.taskName,callback:function(t){e.$set(e.query,"taskName",t)},expression:"query.taskName"}})],1),i("el-form-item",[i("div",{staticClass:"tag-input",on:{click:function(t){e.selectTagVisible=!0}}},[e.selectedTags.length?e._l(e.selectedTags,(function(t,a){return i("el-tag",{key:a,attrs:{type:"info",closable:""},on:{close:function(i){return e.deleteTag(t)}}},[e._v(" "+e._s(t.name)+" ")])})):i("span",{staticClass:"tag-place"},[e._v("请选择标签")])],2)]),i("el-form-item",{attrs:{prop:"status"}},[i("el-select",{attrs:{placeholder:"请选择执行状态",clearable:""},model:{value:e.query.executeFlag,callback:function(t){e.$set(e.query,"executeFlag",t)},expression:"query.executeFlag"}},e._l(e.executeStatus,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),i("el-form-item",{attrs:{prop:"user"}},[i("el-input",{attrs:{placeholder:"请输入创建人姓名",clearable:""},model:{value:e.query.createBy,callback:function(t){e.$set(e.query,"createBy",t)},expression:"query.createBy"}})],1),i("el-form-item",[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),i("el-form-item",[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.onSearch()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.onReset()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"operate-btn",fn:function(){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:batchtag:add"],expression:"['wecom:batchtag:add']"}],attrs:{type:"primary"},on:{click:function(t){e.importVisible=!0}}},[e._v("新建打标任务")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:batchtag:del"],expression:"['wecom:batchtag:del']"}],on:{click:e.batchDel}},[e._v("批量删除")])]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",attrs:{data:e.taskList,"tooltip-effect":"dark",size:"medium"},on:{"selection-change":e.handleSelectionChange}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{text:"暂无数据"}})],1),i("el-table-column",{attrs:{type:"selection",align:"center",width:"55"}}),i("el-table-column",{attrs:{label:"任务名称",prop:"name",align:"left"}}),i("el-table-column",{attrs:{label:"客户数",prop:"customerCnt",align:"left"}}),i("el-table-column",{attrs:{label:"标签",prop:"tagList",align:"left",width:"210"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return e._l(e.dealTagList(a.tagName),(function(t,a){return i("el-tag",{key:a,staticClass:"mb5",attrs:{type:"info"}},[e._v(e._s(t))])}))}}])}),i("el-table-column",{attrs:{label:"执行状态",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",{class:a.executeFlag?"exected":"executeing"},[e._v(" "+e._s(a.executeFlag?"已执行":"执行中")+" ")])]}}])}),i("el-table-column",{attrs:{label:"创建人",prop:"createBy",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",[i("div",{staticClass:"al"},[i("div",{staticClass:"cus-owner"},[e._v(e._s(a.createBy))]),i("div",{staticClass:"cus-dept"},[e._v(e._s(a.department))])])])]}}])}),i("el-table-column",{attrs:{label:"创建时间",prop:"createTime",align:"left",width:"199"}}),i("el-table-column",{attrs:{label:"操作",width:"199"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-button",{attrs:{type:"text",size:"medium"},on:{click:function(t){return e.goToDetail(a)}}},[e._v("详情")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:batchtag:del"],expression:"['wecom:batchtag:del']"}],attrs:{type:"text",size:"medium"},on:{click:function(t){return e.handleDelete(a)}}},[e._v("删除")])]}}])})],2),i("pagination",{attrs:{total:1*e.total,page:e.query.pageNum,disabled:e.loading,limit:e.query.pageSize,"select-data-len":e.multipleSelection.length},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getTaskList()}}})]},proxy:!0}])}),i("SelectTag",{attrs:{type:"query",title:"选择标签",visible:e.selectTagVisible,selected:e.selectedTags},on:{"update:visible":function(t){e.selectTagVisible=t},success:e.submitSelectTag}}),i("ImportTask",{attrs:{visible:e.importVisible,href:"批量打标签模板.xlsx"},on:{"update:visible":function(t){e.importVisible=t},onSearch:e.onSearch}})],1)},n=[],r=i("c7eb"),s=i("1da1"),o=i("5530"),l=(i("c740"),i("a15b"),i("d81d"),i("a434"),i("b0c0"),i("b64b"),i("d3b7"),i("b66d")),c=i("aada"),u=i("d45f"),d=i("e77d"),p=i("eccc"),f=i("ed08"),A=i("dd70"),h=i("e753"),m=i("e2e0"),g={name:"BatchTag",components:{RightContainer:l["a"],EmptyDefaultIcon:d["a"],SelectTag:c["a"],ImportTask:u["default"]},mixins:[m["a"]],data:function(){return{query:{pageNum:1,pageSize:A["Ic"]},selectedTags:[],selectTagVisible:!1,executeStatus:[{value:!1,label:"执行中"},{value:!0,label:"已执行"}],dateRange:[],taskList:[],multipleSelection:[],total:0,importVisible:!1,loading:!1}},computed:{},created:function(){var e=this.$store.getters.searchQuery[h["a"]];if(this.$store.getters.saveCondition&&Object.keys(e||{}).length){var t=e.beginTime,i=e.endTime;t&&i&&(this.dateRange=[t,i]),this.selectedTags=e.selectedTags||[],delete e.selectedTags,this.query=e}this.getTaskList()},methods:{dealTagList:function(e){return e?e.split(","):""},submitSelectTag:function(e){this.query.tagIds=e.map((function(e){return e.tagId})).join(","),this.selectedTags=e,this.selectTagVisible=!1},deleteTag:function(e){var t=this.selectedTags.findIndex((function(t){return t.tagId===e.tagId}));this.selectedTags.splice(t,1),this.query.tagIds=this.selectedTags.map((function(e){return e.tagId})).join(",")},onSearch:function(){this.getTaskList(1)},onReset:function(){this.selectedTags=[],this.dateRange=[],this.query=this.$options.data().query,this.onSearch()},getTaskList:function(e){var t=this;e&&(this.query.pageNum=e);var i=this.query;this.dateRange?(i.beginTime=this.dateRange[0],i.endTime=this.dateRange[1]):(i.beginTime="",i.endTime=""),this.loading=!0,Object(p["e"])(i).then((function(e){t.taskList=e.rows,t.total=e.total})).finally((function(){t.modifyButtonStatus(),t.loading=!1}))},goToDetail:function(e){this.$store.commit("SET_SEARCH_QUERY",{pageName:h["a"],query:Object(o["a"])(Object(o["a"])({},this.query),{},{selectedTags:this.selectedTags})}),Object(f["l"])(this.$router,"BatchTagTaskDetail",{},{taskId:e.id,taskName:e.name})},handleSelectionChange:function(e){this.multipleSelection=e},batchDel:function(){this.multipleSelection.length<=0?this.msgWarn("请至少选择一个任务"):this.deleteRule(this.multipleSelection.map((function(e){return e.id})))},handleDelete:function(e){this.deleteRule([e.id])},deleteRule:function(e){var t=this;return Object(s["a"])(Object(r["a"])().mark((function i(){return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:t.confirmModal({msg:"所选任务将被删除,且不可撤回,是否继续?"},Object(s["a"])(Object(r["a"])().mark((function i(){return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:Object(p["a"])({taskIds:e.join(",")}).then((function(e){t.msgSuccess("删除成功"),t.getTaskList()}));case 1:case"end":return i.stop()}}),i)}))));case 1:case"end":return i.stop()}}),i)})))()}}},v=g,b=(i("b01a"),i("2877")),y=Object(b["a"])(v,a,n,!1,null,"6018649e",null);t["default"]=y.exports},8197:function(e,t,i){"use strict";i("c841")},"81ba":function(e,t,i){"use strict";i("1602")},"81f6":function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var a=i("2b0e"),n=new a["default"]},8231:function(e,t,i){"use strict";i("03c4")},8247:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"form-setting"},[i("el-form",{attrs:{"label-position":"top","label-width":"80px",model:e.filedForm}},[i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("必填")]),i("el-switch",{model:{value:e.filedForm.required,callback:function(t){e.$set(e.filedForm,"required",t)},expression:"filedForm.required"}})],1)]),i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("标题")])]),i("el-input",{attrs:{resize:"none","show-word-limit":"",maxlength:100,type:"textarea",rows:6},model:{value:e.filedForm.title,callback:function(t){e.$set(e.filedForm,"title",t)},expression:"filedForm.title"}})],1),i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("辅助文字")])]),i("div",{staticClass:"auxiliary-text"},[i("span",[e._v("左侧")]),i("el-input",{staticClass:"ml15",attrs:{"show-word-limit":"",maxlength:6},model:{value:e.filedForm.leftAuxiliaryText,callback:function(t){e.$set(e.filedForm,"leftAuxiliaryText",t)},expression:"filedForm.leftAuxiliaryText"}})],1),i("div",{staticClass:"auxiliary-text"},[i("span",[e._v("右侧")]),i("el-input",{staticClass:"ml15",attrs:{"show-word-limit":"",maxlength:6},model:{value:e.filedForm.righAuxiliarytText,callback:function(t){e.$set(e.filedForm,"righAuxiliarytText",t)},expression:"filedForm.righAuxiliarytText"}})],1)]),i("el-form-item",[i("div",{staticClass:"form-label"},[i("div",{attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("客服好评率")])]),i("el-switch",{model:{value:e.filedForm.customerServiceRate,callback:function(t){e.$set(e.filedForm,"customerServiceRate",t)},expression:"filedForm.customerServiceRate"}})],1),i("span",{staticStyle:{"font-size":"12px"}},[e._v("客户填写后,将用于计算客服的好评率")])])],1)],1)},n=[],r=i("5530"),s=i("81f6"),o={props:{component:{type:Object,default:function(){}}},data:function(){return{filedForm:{required:!0,title:"你向好友推荐本产品的可能性有多大?",customerServiceRate:!1,leftAuxiliaryText:"不可能",righAuxiliarytText:"极有可能"}}},watch:{filedForm:{deep:!0,handler:function(e){s["a"].$emit("changeFiledSettingValue",Object(r["a"])(Object(r["a"])({},e),this.filedForm))}}},mounted:function(){this.filedForm=Object(r["a"])(Object(r["a"])({},this.filedForm),this.component)}},l=o,c=(i("47a5"),i("2877")),u=Object(c["a"])(l,a,n,!1,null,"2ed09d5f",null);t["default"]=u.exports},"82c8":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[i("el-form-item",{attrs:{label:"表名称",prop:"tableName"}},[i("el-input",{attrs:{placeholder:"请输入表名称",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.tableName,callback:function(t){e.$set(e.queryParams,"tableName",t)},expression:"queryParams.tableName"}})],1),i("el-form-item",{attrs:{label:"表描述",prop:"tableComment"}},[i("el-input",{attrs:{placeholder:"请输入表描述",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.tableComment,callback:function(t){e.$set(e.queryParams,"tableComment",t)},expression:"queryParams.tableComment"}})],1),i("el-form-item",{attrs:{label:"创建时间"}},[i("el-date-picker",{staticStyle:{width:"240px"},attrs:{size:"small","value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("查询")]),i("el-button",{staticClass:"btn-reset",attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),i("el-row",{staticClass:"mb8",attrs:{gutter:10}},[i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["tool:gen:code"],expression:"['tool:gen:code']"}],attrs:{type:"primary",icon:"el-icon-download",size:"mini"},on:{click:e.handleGenTable}},[e._v("生成")])],1),i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["tool:gen:import"],expression:"['tool:gen:import']"}],attrs:{type:"info",icon:"el-icon-upload",size:"mini"},on:{click:e.openImportTable}},[e._v("导入")])],1),i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["tool:gen:edit"],expression:"['tool:gen:edit']"}],attrs:{type:"success",icon:"el-icon-edit",size:"mini",disabled:e.single},on:{click:e.handleEditTable}},[e._v("修改")])],1),i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["tool:gen:remove"],expression:"['tool:gen:remove']"}],attrs:{type:"danger",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),i("right-toolbar",{attrs:{"show-search":e.showSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:e.getList}})],1),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.tableList},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),i("el-table-column",{attrs:{label:"序号",type:"index",width:"50",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s((e.queryParams.pageNum-1)*e.queryParams.pageSize+t.$index+1))])]}}])}),i("el-table-column",{attrs:{label:"表名称",align:"center",prop:"tableName","show-overflow-tooltip":!0,width:"130"}}),i("el-table-column",{attrs:{label:"表描述",align:"center",prop:"tableComment","show-overflow-tooltip":!0,width:"130"}}),i("el-table-column",{attrs:{label:"实体",align:"center",prop:"className","show-overflow-tooltip":!0,width:"130"}}),i("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"createTime",width:"160"}}),i("el-table-column",{attrs:{label:"更新时间",align:"center",prop:"updateTime",width:"160"}}),i("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["tool:gen:preview"],expression:"['tool:gen:preview']"}],attrs:{type:"text",size:"small",icon:"el-icon-view"},on:{click:function(i){return e.handlePreview(t.row)}}},[e._v("预览")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["tool:gen:edit"],expression:"['tool:gen:edit']"}],attrs:{type:"text",size:"small",icon:"el-icon-edit"},on:{click:function(i){return e.handleEditTable(t.row)}}},[e._v("编辑")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["tool:gen:remove"],expression:"['tool:gen:remove']"}],attrs:{type:"text",size:"small",icon:"el-icon-delete"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("删除")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["tool:gen:code"],expression:"['tool:gen:code']"}],attrs:{type:"text",size:"small",icon:"el-icon-download"},on:{click:function(i){return e.handleGenTable(t.row)}}},[e._v("生成代码")])]}}])})],1),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),i("el-dialog",{attrs:{title:e.preview.title,visible:e.preview.open,width:"80%",top:"5vh","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.preview,"open",t)}}},[i("el-tabs",{model:{value:e.preview.activeName,callback:function(t){e.$set(e.preview,"activeName",t)},expression:"preview.activeName"}},e._l(e.preview.data,(function(t,a){return i("el-tab-pane",{key:a,attrs:{label:a.substring(a.lastIndexOf("/")+1,a.indexOf(".vm")),name:a.substring(a.lastIndexOf("/")+1,a.indexOf(".vm"))}},[i("pre",[e._v(e._s(t))])])})),1)],1),i("import-table",{ref:"import",on:{ok:e.handleQuery}})],1)},n=[],r=(i("d81d"),i("4b72")),s=i("6f72"),o=(i("d3b7"),i("4d63"),i("c607"),i("ac1f"),i("2c3e"),i("25f0"),i("3ca3"),i("5319"),i("ddb0"),i("2b3d"),i("bf19"),i("9861"),i("bc3a")),l=i.n(o),c=i("5f87"),u={xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",zip:"application/zip"},d="/api";function p(e,t){var i=d+e;l()({method:"get",url:i,responseType:"blob",headers:{Authorization:"Bearer "+Object(c["a"])()}}).then((function(e){f(e,u.zip)}))}function f(e,t){var i=document.createElement("a"),a=new Blob([e.data],{type:t}),n=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),r=decodeURI(e.headers["content-disposition"]),s=n.exec(r),o=s[1];o=o.replace(/\"/g,""),i.href=URL.createObjectURL(a),i.setAttribute("download",o),document.body.appendChild(i),i.click(),document.body.appendChild(i)}var A=i("dd70"),h={name:"Gen",components:{importTable:s["default"]},data:function(){return{loading:!0,uniqueId:"",ids:[],tableNames:[],single:!0,multiple:!0,showSearch:!0,total:0,tableList:[],dateRange:"",queryParams:{pageNum:1,pageSize:A["Ic"],tableName:void 0,tableComment:void 0},preview:{open:!1,title:"代码预览",data:{},activeName:"domain.java"}}},created:function(){this.getList()},activated:function(){var e=this.$route.query.t;null!=e&&e!==this.uniqueId&&(this.uniqueId=e,this.resetQuery())},methods:{getList:function(){var e=this;this.loading=!0,Object(r["f"])(this.addDateRange(this.queryParams,this.dateRange)).then((function(t){e.tableList=t.rows,e.total=t.total,e.loading=!1}))},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},handleGenTable:function(e){var t=this,i=e.tableName||this.tableNames;""!==i?"1"===e.genType?Object(r["b"])(e.tableName).then((function(i){t.msgSuccess("成功生成到自定义路径:"+e.genPath)})):p("/tool/gen/batchGenCode?tables="+i,"common"):this.msgError("请选择要生成的数据")},openImportTable:function(){this.$refs.import.show()},resetQuery:function(){this.dateRange=[],this.resetForm("queryForm"),this.handleQuery()},handlePreview:function(e){var t=this;Object(r["g"])(e.tableId).then((function(e){t.preview.data=e.data,t.preview.open=!0}))},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.tableId})),this.tableNames=e.map((function(e){return e.tableName})),this.single=1!==e.length,this.multiple=!e.length},handleEditTable:function(e){var t=e.tableId||this.ids[0];this.$router.push("/gen/edit/"+t)},handleDelete:function(e){var t=this,i=e.tableId||this.ids;this.confirmModal({msg:'是否确认删除表编号为"'+i+'"的数据项?'},(function(){return Object(r["a"])(i).then((function(){t.getList(),t.msgSuccess("删除成功")})).catch((function(){}))}))}}},m=h,g=i("2877"),v=Object(g["a"])(m,a,n,!1,null,null,null);t["default"]=v.exports},"82d0":function(e,t,i){},8387:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"select-tag-modal"},[i("el-dialog",{staticClass:"tag-dialog",attrs:{title:e.modalTitle,visible:e.Pvisible,width:"680px","append-to-body":"","close-on-click-modal":!1},on:{"update:visible":function(t){e.Pvisible=t}}},[i("el-alert",{staticClass:"theme-el-alert",attrs:{title:e.alertTitle,type:"info","show-icon":"",closable:!1}}),i("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入标签","suffix-icon":"el-icon-search",clearable:""},model:{value:e.tagName,callback:function(t){e.tagName=t},expression:"tagName"}}),i("div",{staticClass:"tag-manage"},[e.showAddTag?i("div",[e.visibleAdd?i("el-input",{ref:"saveTagInput",staticClass:"input-new-tag",attrs:{size:"mini",maxlength:"15","show-word-limit":""},on:{blur:e.newInputConfirm},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.newInputConfirm(t)}},model:{value:e.newInput,callback:function(t){e.newInput="string"===typeof t?t.trim():t},expression:"newInput"}}):i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wechat:material:tagManage"],expression:"['wechat:material:tagManage']"}],staticClass:"add-tag-btn",attrs:{icon:"el-icon-plus"},on:{click:e.addTagFn}},[e._v("添加标签")])],1):e._e(),i("div",{staticClass:"tag-list"},[e._l(e.showTagList,(function(t,a){return[i("el-tag",{key:a,class:e.isChecked(t)?"selected":"",attrs:{type:"primary",closable:e.canRemoveTag,size:"medium"},on:{close:function(i){return e.removeTag(t)},click:function(i){return e.selectOneTag(t)}}},[e._v(" "+e._s(t.tagName)+" ")])]}))],2)]),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.Pvisible=!1}}},[e._v("取 消")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:1e3,expression:"1000"}],attrs:{type:"primary"},on:{click:e.submitSelectTags}},[e._v("确 定")])],1)],1)],1)},n=[],r=i("c7eb"),s=i("1da1"),o=i("2909"),l=(i("4de4"),i("c740"),i("caad"),i("a434"),i("b0c0"),i("d3b7"),i("2532"),i("9094")),c={name:"SelectTagModal",components:{},props:{visible:{type:Boolean,default:!1},alertTitle:{type:String,default:"请选择要为素材打上的标签"},modalTitle:{type:String,default:"选择标签"},canRemoveTag:{type:Boolean,default:!1},showAddTag:{type:Boolean,default:!1},tagList:{type:Array,default:function(){return[]}},checkSelectNum:{type:Boolean,default:!1},defaultTagList:{type:Array,default:function(){return[]}}},data:function(){return{tagName:"",Pselected:[],visibleAdd:!1,newInput:""}},computed:{Pvisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}},showTagList:function(){var e=this,t=Object(o["a"])(this.tagList);return t=t.filter((function(t){return t.tagName&&t.tagName.includes(e.tagName)})).reverse(),t}},watch:{visible:function(e){e&&(this.Pselected=this.defaultTagList)}},created:function(){},mounted:function(){},methods:{addTagFn:function(){var e=this;this.visibleAdd=!0,this.$nextTick((function(t){e.$refs.saveTagInput.$refs.input.focus()}))},handleAddTag:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var i;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(l["b"])(e.newInput);case 2:i=t.sent,i&&e.$store.dispatch("GetMaterialTag");case 4:case"end":return t.stop()}}),t)})))()},isChecked:function(e){return this.Pselected.some((function(t){return e.id===t.id}))},selectOneTag:function(e){var t=this.Pselected.findIndex((function(t){return t.id===e.id}));-1===t?this.Pselected.push(e):this.Pselected.splice(t,1)},submitSelectTags:function(){this.checkSelectNum&&0===this.Pselected.length?this.msgWarn("请至少选择一个标签"):(this.Pvisible=!1,this.$emit("submitSelectTags",this.Pselected))},newInputConfirm:function(){var e=this.newInput;if(e){Array.isArray(this.tagList)||(this.tagList=[]);var t=this.tagList.some((function(t){return t.name===e}));if(t)return void this.msgError("标签名已存在,不可重复添加");this.handleAddTag()}this.visibleAdd=!1,this.newInput=""},removeTag:function(e){var t=this;return Object(s["a"])(Object(r["a"])().mark((function i(){return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:t.confirmModal({msg:"删除后,将不可再为素材添加该标签,是否继续?"},Object(s["a"])(Object(r["a"])().mark((function i(){var a;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,Object(l["c"])(e.id);case 2:a=i.sent,a&&t.$store.dispatch("GetMaterialTag");case 4:case"end":return i.stop()}}),i)}))));case 1:case"end":return i.stop()}}),i)})))()}}},u=c,d=(i("02b6"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"c63dc1ec",null);t["default"]=p.exports},"841c":function(e,t,i){"use strict";var a=i("c65b"),n=i("d784"),r=i("825a"),s=i("1d80"),o=i("129f"),l=i("577e"),c=i("dc4a"),u=i("14c3");n("search",(function(e,t,i){return[function(t){var i=s(this),n=void 0==t?void 0:c(t,e);return n?a(n,t,i):new RegExp(t)[e](l(i))},function(e){var a=r(this),n=l(e),s=i(t,a,n);if(s.done)return s.value;var c=a.lastIndex;o(c,0)||(a.lastIndex=0);var d=u(a,n);return o(a.lastIndex,c)||(a.lastIndex=c),null===d?-1:d.index}]}))},"845d":function(e,t,i){},8481:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",e._g(e._b({staticClass:"property-setting-modal",attrs:{title:"设置客户显示信息",visible:e.visible},on:{close:e.onClose}},"el-dialog",e.$attrs,!1),e.$listeners),[i("el-alert",{attrs:{title:"设置要在表格显示的字段,展示客户更多个人信息",type:"warning",closable:!1,"show-icon":""}}),i("el-transfer",e._b({attrs:{data:e.data,titles:["不显示的信息","显示的信息"],props:{key:"id",label:"name"}},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},"el-transfer",e.$attrs,!1)),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.onClose}},[e._v("取消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.handelConfirm}},[e._v("确定")])],1)],1)},n=[],r=(i("99af"),i("4360")),s={name:"PropertySetting",components:{},props:{data:{type:Array,default:function(){return[]}},visible:{type:Boolean,default:!1}},data:function(){return{value:[]}},computed:{},watch:{visible:function(e){e&&(this.value=this.showValue())}},created:function(){this.value=this.showValue()},mounted:function(){},methods:{onClose:function(){this.$emit("update:visible",!1)},handelConfirm:function(){window.localStorage.setItem("showCustomerProperty-".concat(r["a"].getters.userId,"-").concat(r["a"].getters.corpId),this.value),this.value=this.showValue(),this.onClose(),this.$emit("getList")},showValue:function(){var e=[],t=window.localStorage.getItem("showCustomerProperty-".concat(r["a"].getters.userId,"-").concat(r["a"].getters.corpId));return e=t||""===t?t.split(","):["createTime","userName","tag","status"],e||[]}}},o=s,l=(i("ff43"),i("2877")),c=Object(l["a"])(o,a,n,!1,null,"4e6970ad",null);t["default"]=c.exports},"848bb":function(e,t,i){e.exports=i.p+"static/img/企微活码移动5.c6954f07.png"},"84f0":function(e,t,i){},8525:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"告警设置",visible:e.Pvisible,width:"700px"},on:{"update:visible":function(t){e.Pvisible=t}}},[i("el-form",{staticClass:"alarm-setting-form",attrs:{model:e.alarmForm,"label-width":"110px"}},[i("el-form-item",{attrs:{label:"链接不可用通知"}},[i("div",{staticClass:"content"},[i("el-switch",{model:{value:e.alarmForm.linkUnavailableSwitch,callback:function(t){e.$set(e.alarmForm,"linkUnavailableSwitch",t)},expression:"alarmForm.linkUnavailableSwitch"}}),i("span",{staticClass:"back-text"},[e._v("开启后,当获客链接暂时无法添加客户时,向员工发送告警通知")])],1),i("div",{directives:[{name:"show",rawName:"v-show",value:e.alarmForm.linkUnavailableSwitch,expression:"alarmForm.linkUnavailableSwitch"}],staticClass:"content-info"},[i("el-checkbox",{model:{value:e.alarmForm.alarmCreater,callback:function(t){e.$set(e.alarmForm,"alarmCreater",t)},expression:"alarmForm.alarmCreater"}},[e._v("链接创建人")]),i("div",{staticClass:"aic flexw"},[i("el-checkbox",{staticClass:"mb5",model:{value:e.alarmForm.alarmOtherUser,callback:function(t){e.$set(e.alarmForm,"alarmOtherUser",t)},expression:"alarmForm.alarmOtherUser"}},[e._v("其他员工")]),i("el-button",{staticClass:"ml10 mr10 mb5",attrs:{icon:"el-icon-plus",size:"mini"},on:{click:function(t){return e.selectUser("linkUnavailableUsersInfo")}}},[e._v("添加成员")]),e._l(e.alarmForm.linkUnavailableUsersInfo,(function(t,a){return i("el-tag",{key:a,staticClass:"mb5 user-tag",attrs:{size:"medium"}},[e._v(e._s(t.name))])}))],2)],1)]),i("el-form-item",{attrs:{label:"额度将耗尽预警"}},[i("div",{staticClass:"content"},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.alarmForm.balanceLowSwitch,callback:function(t){e.$set(e.alarmForm,"balanceLowSwitch",t)},expression:"alarmForm.balanceLowSwitch"}}),i("span",{staticClass:"back-text"},[e._v("开启后,当获客助手的使用量即将耗尽时,向员工发送告警通知")])],1),i("div",{directives:[{name:"show",rawName:"v-show",value:e.alarmForm.balanceLowSwitch,expression:"alarmForm.balanceLowSwitch"}],staticClass:"mt5"},[i("el-button",{staticClass:"mr10 mb5",attrs:{icon:"el-icon-plus",size:"mini"},on:{click:function(t){return e.selectUser("balanceLowUsersInfo")}}},[e._v("添加成员")]),e._l(e.alarmForm.balanceLowUsersInfo,(function(t,a){return i("el-tag",{key:a,staticClass:"mb5 user-tag",attrs:{size:"medium"}},[e._v(e._s(t.name))])}))],2)]),i("el-form-item",{attrs:{label:"额度已耗尽通知"}},[i("div",{staticClass:"content"},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.alarmForm.balanceExhaustedSwitch,callback:function(t){e.$set(e.alarmForm,"balanceExhaustedSwitch",t)},expression:"alarmForm.balanceExhaustedSwitch"}}),i("span",{staticClass:"back-text"},[e._v("开启后,当获客助手的使用量消耗完时,向员工发送告警通知")])],1),i("div",{directives:[{name:"show",rawName:"v-show",value:e.alarmForm.balanceExhaustedSwitch,expression:"alarmForm.balanceExhaustedSwitch"}],staticClass:"mt5"},[i("el-button",{staticClass:"mr10 mb5",attrs:{icon:"el-icon-plus",size:"mini"},on:{click:function(t){return e.selectUser("balanceExhaustedUsersInfo")}}},[e._v("添加成员")]),e._l(e.alarmForm.balanceExhaustedUsersInfo,(function(t,a){return i("el-tag",{key:a,staticClass:"mb5 user-tag",attrs:{size:"medium"}},[e._v(e._s(t.name))])}))],2)]),i("el-form-item",{attrs:{label:"额度将过期通知"}},[i("div",{staticClass:"content"},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.alarmForm.quotaExpireSoonSwitch,callback:function(t){e.$set(e.alarmForm,"quotaExpireSoonSwitch",t)},expression:"alarmForm.quotaExpireSoonSwitch"}}),i("span",{staticClass:"back-text"},[e._v("开启后,当获客助手的使用量即将过期时,向员工发送告警通知")])],1),i("div",{directives:[{name:"show",rawName:"v-show",value:e.alarmForm.quotaExpireSoonSwitch,expression:"alarmForm.quotaExpireSoonSwitch"}],staticClass:"mt5"},[i("el-button",{staticClass:"mr10 mb5",attrs:{icon:"el-icon-plus",size:"mini"},on:{click:function(t){return e.selectUser("quotaExpireSoonUsersInfo")}}},[e._v("添加成员")]),e._l(e.alarmForm.quotaExpireSoonUsersInfo,(function(t,a){return i("el-tag",{key:a,staticClass:"mb5 user-tag",attrs:{size:"medium"}},[e._v(e._s(t.name))])}))],2)]),i("el-divider"),i("el-form-item",{attrs:{label:"各事件通知频率"}},[i("el-radio-group",{model:{value:e.alarmForm.type,callback:function(t){e.$set(e.alarmForm,"type",t)},expression:"alarmForm.type"}},[i("el-radio",{attrs:{label:1}},[e._v("每次告警")]),i("el-radio",{attrs:{label:0}},[e._v("每天只告警1次")])],1)],1)],1),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.Pvisible=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1),i("SelectUser",{attrs:{visible:e.dialogVisibleSelectUser,title:"选择使用员工","selected-user-list":e.nowSelectUserList},on:{"update:visible":function(t){e.dialogVisibleSelectUser=t},success:e.selectedUser}})],1)},n=[],r=i("5530"),s=i("2909"),o=(i("a15b"),i("d81d"),i("c958")),l=i("8107"),c={components:{SelectUser:o["a"]},props:{visible:{type:Boolean,default:!1}},data:function(){return{alarmForm:{linkUnavailableSwitch:!1,alarmCreater:!1,balanceLowSwitch:!1,balanceLowUsersInfo:[],balanceExhaustedSwitch:!1,balanceExhaustedUsersInfo:[],quotaExpireSoonSwitch:!1,quotaExpireSoonUsersInfo:[],type:1},dialogVisibleSelectUser:!1,addUserType:void 0,nowSelectUserList:[]}},computed:{Pvisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}}},watch:{visible:function(e){e&&this.getWarnConfig()}},methods:{selectedUser:function(e){this.alarmForm[this.addUserType]=Object(s["a"])(e)},selectUser:function(e){this.addUserType=e,this.nowSelectUserList=this.alarmForm[e],this.dialogVisibleSelectUser=!0},getWarnConfig:function(){var e=this;Object(l["m"])().then((function(t){e.alarmForm=Object(r["a"])({},null===t||void 0===t?void 0:t.data)}))},submit:function(){var e,t,i,a,n=this,s=(null===(e=this.alarmForm.linkUnavailableUsersInfo)||void 0===e?void 0:e.map((function(e){return e.userId})))||[],o=(null===(t=this.alarmForm.balanceLowUsersInfo)||void 0===t?void 0:t.map((function(e){return e.userId})))||[],c=(null===(i=this.alarmForm.balanceExhaustedUsersInfo)||void 0===i?void 0:i.map((function(e){return e.userId})))||[],u=(null===(a=this.alarmForm.quotaExpireSoonUsersInfo)||void 0===a?void 0:a.map((function(e){return e.userId})))||[],d=Object(r["a"])(Object(r["a"])({},this.alarmForm),{},{linkUnavailableUsers:s.join(","),balanceLowUsers:o.join(","),balanceExhaustedUsers:c.join(","),quotaExpireSoonUsers:u.join(",")});delete d.linkUnavailableUsersInfo,delete d.balanceLowUsersInfo,delete d.balanceExhaustedUsersInfo,delete d.quotaExpireSoonUsersInfo,Object(l["p"])(d).then((function(e){n.msgSuccess("设置完成"),n.Pvisible=!1}))}}},u=c,d=(i("c858"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"730dce34",null);t["default"]=p.exports},"857a":function(e,t,i){var a=i("e330"),n=i("1d80"),r=i("577e"),s=/"/g,o=a("".replace);e.exports=function(e,t,i,a){var l=r(n(e)),c="<"+t;return""!==i&&(c+=" "+i+'="'+o(r(a),s,""")+'"'),c+">"+l+"</"+t+">"}},8586:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"genInfoForm",attrs:{model:e.info,rules:e.rules,"label-width":"150px"}},[i("el-row",[i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{prop:"tplCategory"}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("生成模板")]),i("el-select",{model:{value:e.info.tplCategory,callback:function(t){e.$set(e.info,"tplCategory",t)},expression:"info.tplCategory"}},[i("el-option",{attrs:{label:"单表(增删改查)",value:"crud"}}),i("el-option",{attrs:{label:"树表(增删改查)",value:"tree"}})],1)],1)],1),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{prop:"packageName"}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v(" 生成包路径 "),i("el-tooltip",{attrs:{content:"生成在哪个java包下,例如 com.common.system",placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1),i("el-input",{model:{value:e.info.packageName,callback:function(t){e.$set(e.info,"packageName",t)},expression:"info.packageName"}})],1)],1),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{prop:"moduleName"}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v(" 生成模块名 "),i("el-tooltip",{attrs:{content:"可理解为子系统名,例如 system",placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1),i("el-input",{model:{value:e.info.moduleName,callback:function(t){e.$set(e.info,"moduleName",t)},expression:"info.moduleName"}})],1)],1),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{prop:"businessName"}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v(" 生成业务名 "),i("el-tooltip",{attrs:{content:"可理解为功能英文名,例如 user",placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1),i("el-input",{model:{value:e.info.businessName,callback:function(t){e.$set(e.info,"businessName",t)},expression:"info.businessName"}})],1)],1),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{prop:"functionName"}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v(" 生成功能名 "),i("el-tooltip",{attrs:{content:"用作类描述,例如 用户",placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1),i("el-input",{model:{value:e.info.functionName,callback:function(t){e.$set(e.info,"functionName",t)},expression:"info.functionName"}})],1)],1),i("el-col",{attrs:{span:12}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v(" 上级菜单 "),i("el-tooltip",{attrs:{content:"分配到指定菜单下,例如 系统管理",placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1),i("treeselect",{attrs:{"append-to-body":!0,options:e.menus,normalizer:e.normalizer,"show-count":!0,placeholder:"请选择系统菜单"},model:{value:e.info.parentMenuId,callback:function(t){e.$set(e.info,"parentMenuId",t)},expression:"info.parentMenuId"}})],1)],1),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{prop:"genType"}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v(" 生成代码方式 "),i("el-tooltip",{attrs:{content:"默认为zip压缩包下载,也可以自定义生成路径",placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1),i("el-radio",{attrs:{label:"0"},model:{value:e.info.genType,callback:function(t){e.$set(e.info,"genType",t)},expression:"info.genType"}},[e._v("zip压缩包")]),i("el-radio",{attrs:{label:"1"},model:{value:e.info.genType,callback:function(t){e.$set(e.info,"genType",t)},expression:"info.genType"}},[e._v("自定义路径")])],1)],1),"1"==e.info.genType?i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{prop:"genPath"}},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v(" 自定义路径 "),i("el-tooltip",{attrs:{content:"填写磁盘绝对路径,若不填写,则生成到当前Web项目下",placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1),i("el-input",{model:{value:e.info.genPath,callback:function(t){e.$set(e.info,"genPath",t)},expression:"info.genPath"}},[i("el-dropdown",{attrs:{slot:"append"},slot:"append"},[i("el-button",{attrs:{type:"primary"}},[e._v(" 最近路径快速选择 "),i("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{nativeOn:{click:function(t){e.info.genPath="/"}}},[e._v("恢复默认的生成基础路径")])],1)],1)],1)],1)],1):e._e()],1),i("el-row",{directives:[{name:"show",rawName:"v-show",value:"tree"==e.info.tplCategory,expression:"info.tplCategory == 'tree'"}]},[i("h4",{staticClass:"form-header"},[e._v("其他信息")]),i("el-col",{attrs:{span:12}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v(" 树编码字段 "),i("el-tooltip",{attrs:{content:"树显示的编码字段名, 如:dept_id",placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1),i("el-select",{attrs:{placeholder:"请选择"},model:{value:e.info.treeCode,callback:function(t){e.$set(e.info,"treeCode",t)},expression:"info.treeCode"}},e._l(e.info.columns,(function(e){return i("el-option",{key:e.columnName,attrs:{label:e.columnName+":"+e.columnComment,value:e.columnName}})})),1)],1)],1),i("el-col",{attrs:{span:12}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v(" 树父编码字段 "),i("el-tooltip",{attrs:{content:"树显示的父编码字段名, 如:parent_Id",placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1),i("el-select",{attrs:{placeholder:"请选择"},model:{value:e.info.treeParentCode,callback:function(t){e.$set(e.info,"treeParentCode",t)},expression:"info.treeParentCode"}},e._l(e.info.columns,(function(e){return i("el-option",{key:e.columnName,attrs:{label:e.columnName+":"+e.columnComment,value:e.columnName}})})),1)],1)],1),i("el-col",{attrs:{span:12}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v(" 树名称字段 "),i("el-tooltip",{attrs:{content:"树节点的显示名称字段名, 如:dept_name",placement:"top"}},[i("i",{staticClass:"el-icon-question"})])],1),i("el-select",{attrs:{placeholder:"请选择"},model:{value:e.info.treeName,callback:function(t){e.$set(e.info,"treeName",t)},expression:"info.treeName"}},e._l(e.info.columns,(function(e){return i("el-option",{key:e.columnName,attrs:{label:e.columnName+":"+e.columnComment,value:e.columnName}})})),1)],1)],1)],1)],1)},n=[],r=i("ca17"),s=i.n(r),o=(i("542c"),{name:"BasicInfoForm",components:{Treeselect:s.a},props:{info:{type:Object,default:null},menus:{type:Array,default:function(){return[]}}},data:function(){return{rules:{tplCategory:[{required:!0,message:"请选择生成模板",trigger:"blur"}],packageName:[{required:!0,message:"请输入生成包路径",trigger:"blur"}],moduleName:[{required:!0,message:"请输入生成模块名",trigger:"blur"}],businessName:[{required:!0,message:"请输入生成业务名",trigger:"blur"}],functionName:[{required:!0,message:"请输入生成功能名",trigger:"blur"}]}}},created:function(){},methods:{normalizer:function(e){var t;return!e.children||null!==(t=e.children)&&void 0!==t&&t.length||delete e.children,{id:e.menuId,label:e.menuName,children:e.children}}}}),l=o,c=i("2877"),u=Object(c["a"])(l,a,n,!1,null,null,null);t["default"]=u.exports},"8586a":function(e,t,i){},"85d2":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"group-sop-page"},[i("div",{staticClass:"content-container"},[i("SOPList",{attrs:{type:"groupCalendar","sop-type":e.SOP_TYPE["groupCalendar"],"show-use-employees":!1,"sop-tip":"对指定的群聊定时发送指定内容","sop-name":"日历"}})],1)])},n=[],r=i("ddb0e"),s=i("dd70"),o={name:"",components:{SOPList:r["default"]},props:{},data:function(){return{SOP_TYPE:s["ed"]}},created:function(){this.$store.dispatch("app/setBusininessDesc","\n <div>对客户群制定更细化的运营方案,在指定日期提醒群主推送指定内容</div>\n ")},mounted:function(){}},l=o,c=i("2877"),u=Object(c["a"])(l,a,n,!1,null,"810384e8",null);t["default"]=u.exports},"85e3":function(e,t){function i(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}e.exports=i},8623:function(e,t,i){},"86a1":function(e,t,i){e.exports=i.p+"static/img/page-url-demo-1-3.4871b4dd.png"},"86ae":function(e,t,i){},"86e8":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"user-wrap"},[a("div",{staticClass:"user-img"},[a("img",{attrs:{src:e.headImg||i("3e20")}})]),e.isStaff?a("div",{staticClass:"user-textinfo"},[a("div",{staticClass:"name oneline",attrs:{title:e.userName}},[e._v(e._s(e.userName))]),a("div",{staticClass:"department oneline"},[e._v(" "+e._s(e.companName)+e._s(e.companName&&e.data.departmentName&&"/")+e._s(e.data.departmentName)+" ")])]):a("div",{staticClass:"user-name intwoline"},[e._v(" "+e._s(e.userName)+" ")])])},n=[],r={name:"UserItem",components:{},props:{data:{type:Object,default:function(){}},isStaff:{type:Boolean,default:!1}},data:function(){return{}},computed:{companName:function(){return this.$store.state.enterPriseWechatConfig.companyName},headImg:function(){var e,t;return this.isStaff?null===this||void 0===this||null===(e=this.data)||void 0===e?void 0:e.userHeadImage:null===this||void 0===this||null===(t=this.data)||void 0===t?void 0:t.externalUserHeadImage},userName:function(){var e,t;return this.isStaff?null===this||void 0===this||null===(e=this.data)||void 0===e?void 0:e.userName:null===this||void 0===this||null===(t=this.data)||void 0===t?void 0:t.externalUserName}},watch:{},methods:{}},s=r,o=(i("f2e1"),i("2877")),l=Object(o["a"])(s,a,n,!1,null,"2a3b28ea",null);t["a"]=l.exports},8743:function(e,t,i){},8780:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"group-sop-page"},[i("div",{staticClass:"header-radio-group"},[i("el-radio-group",{staticClass:"radio-group-div",attrs:{size:"medium"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-radio-button",{attrs:{label:e.SOP_TYPE["timing"]}},[e._v("定时SOP")]),i("el-radio-button",{attrs:{label:e.SOP_TYPE["cycle"]}},[e._v("循环SOP")])],1)],1),i("div",{staticClass:"content-container"},[i("SOPList",{attrs:{type:"group","sop-type":e.activeName,"show-use-employees":!1,"sop-tip":e.dealSopTip()}})],1)])},n=[],r=(i("99af"),i("a9e3"),i("dd70")),s=i("ddb0e"),o=i("cf45"),l={name:"",components:{SOPList:s["default"]},props:{},data:function(){return{SOP_TYPE:r["ed"],activeName:r["ed"]["timing"]}},watch:{activeName:function(e){var t=window.location.href;t=Object(o["N"])(t),window.history.pushState({},0,"".concat(t,"?sopType=").concat(e))}},created:function(){this.$store.dispatch("app/setBusininessDesc","\n <div>制定标准化、流程化的客户群服务运营方案,到指定时间提醒员工去执行,提升客户群的转化效率</div>\n ");var e=this.$route.query,t=e.sopType;this.activeName=t?Number(t):r["ed"]["timing"]},mounted:function(){},methods:{dealSopTip:function(){var e="";switch(this.activeName){case r["ed"]["timing"]:e="对指定的群聊定时发送指定内容";break;case r["ed"]["cycle"]:e="对指定的群聊定期循环发送指定内容";break}return e}}},c=l,u=(i("12b9"),i("2877")),d=Object(u["a"])(c,a,n,!1,null,"e9c77e94",null);t["default"]=d.exports},"87c1":function(e,t,i){},"87f6":function(e,t,i){"use strict";i("17bd")},"87fd":function(e,t,i){},8817:function(e,t,i){"use strict";i("96fa")},8818:function(e,t,i){"use strict";i("9df4")},"881d":function(e,t,i){},8852:function(e,t,i){e.exports=i.p+"static/img/chat-step2-2.d3d3b4fe.jpg"},8867:function(e,t,i){"use strict";i("a54a")},"88e8":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"radar-page"},[i("div",{staticClass:"header-radio-group"},[i("el-radio-group",{staticClass:"radio-group-div",attrs:{size:"medium"},model:{value:e.activeRadar,callback:function(t){e.activeRadar=t},expression:"activeRadar"}},[i("el-radio-button",{attrs:{label:e.RADAR_TYPE["enterprise"]}},[e._v("企业雷达")]),e.isAdmin?e._e():i("el-radio-button",{attrs:{label:e.RADAR_TYPE["department"]}},[e._v("部门雷达")]),e.isAdmin?e._e():i("el-radio-button",{attrs:{label:e.RADAR_TYPE["personal"]}},[e._v("我的雷达")])],1)],1),i("div",{staticClass:"list-container"},[i("radarList",{attrs:{"active-radar":e.activeRadar,"role-key":e.roleKey}})],1)])},n=[],r=(i("a9e3"),i("5469")),s=i("dd70"),o=i("e350"),l={name:"RadarManage",components:{radarList:r["default"]},data:function(){return{RADAR_TYPE:s["Qc"],activeRadar:s["Qc"]["enterprise"],roleKey:!0}},computed:{isAdmin:function(){return this.$store.state.user.isSuperAdmin}},watch:{activeRadar:function(e){this.roleKey=this.radarManage(e)}},created:function(){this.$store.dispatch("app/setBusininessDesc","\n <div>员工可在客户端侧边栏【素材库】、员工活欢迎语等地方使用雷达链接,统计分析客户的访问情况</div>\n "),this.roleKey=this.radarManage(this.activeRadar),this.activeRadar=Number(window.sessionStorage.getItem("radarActive"))||s["Qc"]["enterprise"],window.sessionStorage.removeItem("radarActive")},methods:{radarManage:function(e){switch(e){case s["Qc"]["department"]:return Object(o["a"])(["radar:department:manage"]);case s["Qc"]["enterprise"]:return Object(o["a"])(["radar:corp:manage"])}return!0}}},c=l,u=(i("a435"),i("2877")),d=Object(u["a"])(c,a,n,!1,null,"6bf23310",null);t["default"]=d.exports},"891e":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("MaPage",{ref:"page",attrs:{type:e.MEDIA_TYPE_POSTER,selected:e.selectedMaterialList,"select-material":e.selectMaterial},on:{"update:selected":function(t){e.selectedMaterialList=t}},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.list,n=t.getList,r=t.changeList,s=t.edit;return[e._l(a,(function(t,a){return[i("Poster",{key:a,attrs:{item:t,"tool-list":["preview",t.showMaterial?"published":"publish","edit","remove"],"selected-material-list":e.selectedMaterialList,"select-material":e.selectMaterial},on:{openMaterialDialog:s,getList:n,changeList:r}})]}))]}}])})},n=[],r=i("2d03"),s=i("0de2"),o=i("dd70"),l={name:"PosterList",components:{MaPage:r["default"],Poster:s["a"]},data:function(){return{selectedMaterialList:[],MEDIA_TYPE_POSTER:o["cc"]}},watch:{},created:function(){},methods:{selectMaterial:function(e){this.selectedMaterialList=e}}},c=l,u=(i("21f9"),i("2877")),d=Object(u["a"])(c,a,n,!1,null,"21234a4e",null);t["default"]=d.exports},"895e":function(e,t,i){"use strict";i.d(t,"a",(function(){return s})),i.d(t,"d",(function(){return o})),i.d(t,"c",(function(){return l})),i.d(t,"b",(function(){return c})),i.d(t,"e",(function(){return u}));var a=i("b775"),n=window.CONFIG.services.wecom+"/actual",r=window.CONFIG.services.wecom+"/corp/actual";function s(e){return Object(a["a"])({url:n+"/",method:"post",data:e})}function o(e){return Object(a["a"])({url:n+"/",method:"put",data:e})}function l(e){return Object(a["a"])({url:n+"/"+e,method:"delete"})}function c(e){return Object(a["a"])({url:r,method:"post",data:e})}function u(e){return Object(a["a"])({url:r+"/",method:"put",data:e})}},"89b2":function(e,t,i){"use strict";i("2916")},"89da":function(e,t,i){"use strict";i("54ae")},"8a1c":function(e,t,i){"use strict";i("9c35")},"8a2a":function(e,t,i){},"8a40":function(e,t,i){},"8a55":function(e,t,i){e.exports=i.p+"static/img/企微活码移动3.63502c84.png"},"8a82":function(e,t,i){"use strict";i("68cb")},"8bb4":function(e,t,i){e.exports=i.p+"static/img/linkUseTip-dk-1.7cb6b736.png"},"8bc1":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"remind-perform-div"},[e.sopType===e.SOP_TYPE["newCustomer"]?i("div",[e.alertType===e.RULE_PERFORM_TYPE["hourMinute"]?[e._v("客户添加员工 "),i("span",[e._v(e._s(e.alertData1+"小时 "+e.alertData2+"分钟"))]),e._v(" "+e._s("后提醒"+(e.showExtraText?"员工发送以下内容":"")))]:e._e(),e.alertType===e.RULE_PERFORM_TYPE["dayTime"]?[e._v("客户添加员工第 "),i("span",[e._v(e._s(e.alertData1+"天 "+e.alertData2))]),e._v(" 提醒员工发送内容")]:e._e()],2):e._e(),e.sopType===e.SOP_TYPE["activity"]?i("div",[e.alertType===e.RULE_PERFORM_TYPE["time"]?[i("span",[e._v(e._s(e.alertData2))]),e._v(" "+e._s("提醒"+e.extraText))]:e._e()],2):e._e(),e.sopType===e.SOP_TYPE["birthday"]?i("div",[e.alertType===e.RULE_PERFORM_TYPE["dayTime"]?[e._v("客户生日 "),i("span",[e._v(e._s("第"+e.alertData1+"天 "+e.alertData2))]),e._v(" 提醒员工发送内容 ")]:e._e(),e.alertType===e.RULE_PERFORM_TYPE["beforeDayTime"]?[e._v("客户生日 "),i("span",[e._v(e._s("前"+e.alertData1+"天 "+e.alertData2))]),e._v(" 提醒员工发送内容 ")]:e._e()],2):e._e(),e.sopType===e.SOP_TYPE["timing"]?i("div",[e.alertType===e.RULE_PERFORM_TYPE["hourMinute"]?[e._v(" 群聊加入SOP "),i("span",[e._v(e._s(e.alertData1+"小时 "+e.alertData2+"分钟"))]),e._v(" "+e._s("后提醒"+e.extraText)+" ")]:e._e(),e.alertType===e.RULE_PERFORM_TYPE["dayTime"]?[e._v(" 群聊加入SOP第 "),i("span",[e._v(e._s(e.alertData1+"天 "+e.alertData2))]),e._v(" "+e._s("提醒"+e.extraText)+" ")]:e._e()],2):e._e(),e.sopType===e.SOP_TYPE["cycle"]?i("div",[e.alertType===e.RULE_PERFORM_TYPE["everydayTime"]?[e._v(" 群聊加入SOP后,每天 "),i("span",[e._v(e._s(e.alertData2))]),e._v(" "+e._s("提醒"+e.extraText)+" ")]:e._e(),e.alertType===e.RULE_PERFORM_TYPE["everyWeekTime"]?[e._v(" 群聊加入SOP后,每周 "),i("span",[e._v(e._s("周"+e.transToCN+" "+e.alertData2))]),e._v(" "+e._s("提醒"+e.extraText)+" ")]:e._e(),e.alertType===e.RULE_PERFORM_TYPE["everyMonthTime"]?[e._v(" 群聊加入SOP后,每月 "),i("span",[e._v(e._s(e.alertData1+"号 "+e.alertData2))]),e._v(" "+e._s("提醒"+e.extraText)+" ")]:e._e()],2):e._e(),e.sopType===e.SOP_TYPE["groupCalendar"]?i("div",[e.alertType===e.RULE_PERFORM_TYPE["time"]?[i("span",[e._v(e._s(e.alertData2))]),e._v(" "+e._s("提醒"+e.extraText))]:e._e()],2):e._e()])},n=[],r=(i("a9e3"),i("dd70")),s={name:"",components:{},props:{ruleItem:{type:Object,default:function(){}},sopType:{type:Number,default:null},showExtraText:{type:Boolean,default:!1}},data:function(){return{SOP_TYPE:r["ed"],RULE_PERFORM_TYPE:r["Tc"]}},computed:{alertType:function(){return this.ruleItem.alertType},alertData1:function(){var e=this.ruleItem,t=e.alertData1;return t||0===t?t:e.alertDay},alertData2:function(){var e=this.ruleItem,t=e.alertData2;return t||0===t?t:e.alertTime},extraText:function(){return this.showExtraText?"员工发送内容":""},transToCN:function(){var e=this.alertData1,t={1:"一",2:"二",3:"三",4:"四",5:"五",6:"六",7:"天"};return t[e]}},created:function(){},mounted:function(){}},o=s,l=(i("94c0"),i("2877")),c=Object(l["a"])(o,a,n,!1,null,"3a35b596",null);t["default"]=c.exports},"8bd5":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.isFormPreview?a("div",{staticClass:"preview",staticStyle:{padding:"29px 18px 13px"}},[a("FormPreview",{staticClass:"preview-content",attrs:{"form-setting":e.formSetting,form:e.form}})],1):a("div",{staticClass:"preview ac"},[a("div",{staticClass:"preview-content"},[a("div",{staticClass:"top"},[e._v(e._s(e.title))]),a("ul",{staticClass:"msg-ul"},[e.message?a("li",{staticClass:"flex msg-li"},[a("el-avatar",{attrs:{shape:"square",size:"small",fit:"fill",src:i("0de6")}}),a("div",{staticClass:"msg"},[e._v(e._s(e.message))])],1):e._e(),e.isOther?a("li",{staticClass:"flex msg-li"},[a("el-avatar",{attrs:{shape:"square",size:"small",fit:"fill",src:i("0de6")}}),a("div",{staticClass:"msg msg-img",staticStyle:{"line-height":"0",padding:"5px"}},[e._t("default")],2)],1):e._e(),e._l(e.messageList,(function(t){return a("li",{key:t,staticClass:"flex msg-li"},[a("el-avatar",{attrs:{shape:"square",size:"small",src:i("0de6")}}),a("div",{staticClass:"msg"},[e._t("text",null,{text:t})],2)],1)})),e._l(e.imageList,(function(t){return a("li",{key:t,staticClass:"flex msg-li"},[a("el-avatar",{attrs:{shape:"square",size:"small",src:i("0de6")}}),a("div",{staticClass:"msg",staticStyle:{"line-height":"0",padding:"5px"}},[e._t("image",null,{image:t})],2)],1)})),e._l(e.msgList,(function(t){return a("li",{key:t.messageId,staticClass:"flex msg-li"},[a("el-avatar",{attrs:{shape:"square",size:"small",src:i("0de6")}}),a("div",{staticClass:"msg-item",staticStyle:{"padding-left":"5px"}},[String(t.mediaType)===e.MEDIA_TYPE_TEXT?a("div",{staticClass:"msg-item-image"},[e._v(" "+e._s(t.content)+" ")]):String(t.mediaType)===e.MEDIA_TYPE_POSTER?a("div",{staticClass:"msg-item-image"},[a("el-image",{staticStyle:{"border-radius":"6px"},attrs:{src:t[e.materialUrlField]}})],1):String(t.mediaType)===e.MEDIA_TYPE_IMGLINK?a("div",{staticClass:"msg-card"},[a("div",{staticClass:"msg-card-info"},[a("div",{staticClass:"msg-card-title"},[e._v(e._s(t[e.materialField]))]),a("div",{staticClass:"msg-card-desc"},[e._v(e._s(t[e.digestField]))])]),a("el-image",{attrs:{src:t.coverUrl}})],1):String(t.mediaType)===e.MEDIA_TYPE_RADARLINK?a("div",{staticClass:"msg-card"},[a("div",{staticClass:"msg-card-info"},[a("div",{staticClass:"msg-card-title inoneline"},[e._v(e._s(t.title||t.radar.weRadarUrl.title))]),a("div",{staticClass:"msg-card-desc"},[e._v(e._s(e.getContent(t)))])]),a("el-image",{attrs:{src:e.getCoverUrl(t)}})],1):String(t.mediaType)===e.MEDIA_TYPE_SMARTFORM?a("div",{staticClass:"msg-card"},[a("div",{staticClass:"msg-card-info msg-card-info-smart-form"},[a("div",{staticClass:"msg-card-title"},[e._v(e._s(t.formName||t.form.formName))]),a("div",{staticClass:"msg-card-desc"},[e._v(e._s(t.description||t.form.description))])]),a("svg-icon",{attrs:{"icon-class":"form-preview","class-name":"el-image"}})],1):String(t.mediaType)===e.MEDIA_TYPE_FILE?a("div",{staticClass:"msg-card"},[a("div",{staticClass:"msg-card-info"},[a("div",{staticClass:"msg-card-title"},[e._v(e._s(t[e.materialField]))]),a("div",{staticClass:"msg-card-desc"},[e._v(e._s(e.getFileSize(t)))])]),a("svg",{staticClass:"icon",attrs:{"aria-hidden":"true",width:"50",height:"50"}},[a("use",{attrs:{"xlink:href":"#icon-"+e.getFileIconClass(t[e.materialUrlField])}})])]):String(t.mediaType)===e.MEDIA_TYPE_MINIAPP?a("div",{staticClass:"msg-card"},[a("div",{staticClass:"msg-card-info"},[a("div",{staticClass:"msg-card-title"},[e._v(e._s(t[e.materialField]))]),a("div",{staticClass:"msg-card-desc"},[e._v("小程序")])]),a("el-image",{attrs:{src:t.coverUrl}})],1):String(t.mediaType)===e.MEDIA_TYPE_VIDEO?a("div",{staticClass:"msg-video"},[a("video",{attrs:{src:t[e.materialUrlField],poster:e.unShowVideoCover?"":t.coverUrl}}),a("div",{staticClass:"video-layer"},[a("i",{staticClass:"iconfont icon-play",on:{click:function(i){return e.onPreview(t)}}})])]):e._e()])],1)}))],2),a("VideoModal",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],ref:"videoModal",on:{closeModal:e.closeModal}}),e.customDomFlag?a("div",{staticClass:"preview-custom-dom"},[e._t("default")],2):e._e(),e.toolShow?a("div",{staticClass:"tool"},[a("i",{staticClass:"iconfont icon-voice",staticStyle:{color:"#333","font-size":"18px","margin-left":"0"}}),a("div",{staticClass:"chat-input"}),e._m(0)]):e._e()],1)])},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tool-right"},[i("i",{staticClass:"iconfont icon-emoji",staticStyle:{color:"#333","font-size":"18px"}}),i("i",{staticClass:"iconfont icon-add",staticStyle:{color:"#333","font-size":"18px"}})])}],r=(i("9911"),i("c408")),s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"operate"},[i("span",{on:{click:function(t){e.showResultPage=!1}}},[e._v("x")]),i("span",[e._v("...")])]),e.showResultPage?i("div",{staticClass:"result-page"},[i("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:e.resultPageOptions.iconUrl}}),i("span",{staticClass:"result-page-text"},[e._v(" "+e._s(e.resultPageOptions.text)+" ")])],1):i("div",{staticClass:"form-preview"},[e.formSetValue.headImageOpenFlag?i("div",{staticClass:"header-img fcc"},[e.formSetValue.headImageUrl?i("el-image",{staticStyle:{width:"210px",height:"84px"},attrs:{src:e.formSetValue.headImageUrl,fit:"cover"}}):i("svg-icon",{attrs:{"icon-class":"fa-image","class-name":"fa-image"}})],1):e._e(),i("div",{staticClass:"form-name fcc"},[e._v(" "+e._s(e.formSetValue.formName)+" ")]),e.formSetValue.descriptionFlag?i("div",{staticClass:"form-description"},[e._v(" "+e._s(e.formSetValue.description)+" ")]):e._e(),i("el-form",{staticStyle:{"min-height":"240px"},attrs:{"label-position":"top","label-width":"80px"}},e._l(e.prewievForm,(function(t){return i("div",{key:t.id,staticClass:"form-preview-item",style:e.isImageOrCarousel(t.type)?"margin-top:10px":"padding : 5px 10px"},[i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.isShowComponent(t),expression:"isShowComponent(item)"}]},[e.showTitle(t.type)?i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[t.type===e.ONE_LINE_TEXT_COMPONENT||t.type===e.MANY_LINE_TEXT_COMPONENT?i("span",[i("span",{class:t.required?"required":""},[e._v(e._s(e.formSetValue.showSortFlag?e.getSortIndex(t)+". "+t.title:t.title))]),t.valueLimitType===e.TEXT_LENGTH_TYPE&&t.max?i("span",{staticClass:"label-limit"},[e._v(e._s("("+(t.answer&&t.answer.length||0)+"/"+t.max+")"))]):e._e()]):i("span",{class:t.required?"required":""},[e._v(e._s(e.formSetValue.showSortFlag?e.getSortIndex(t)+". "+t.title:t.title))])]):e._e(),t.type===e.RADIO_COMPONENT?i("div",{key:t.id,staticClass:"radio-component"},[i("el-radio-group",{model:{value:t.answer,callback:function(i){e.$set(t,"answer",i)},expression:"item.answer"}},e._l(t.options,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.id}},[e._v(" "+e._s(t.label)+" ")])})),1)],1):e._e(),t.type===e.CHECKBOX_COMPONENT?i("div",{key:t.id,staticClass:"checkBox-component"},[i("el-checkbox-group",{on:{change:function(i){return e.checkBoxChange(i,t)}},model:{value:t.answer,callback:function(i){e.$set(t,"answer",i)},expression:"item.answer"}},e._l(t.options,(function(t){return i("el-checkbox",{key:t.id,attrs:{label:t}},[e._v(" "+e._s(t.label)+" ")])})),1)],1):e._e(),t.type===e.SELECT_COMPONENT?i("div",{key:t.id},[i("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",placeholder:"请选择"},model:{value:t.answer,callback:function(i){e.$set(t,"answer",i)},expression:"item.answer"}},e._l(t.options,(function(e){return i("el-option",{key:JSON.stringify(e),attrs:{label:e.label,value:JSON.stringify(e)}})})),1)],1):e._e(),t.type===e.ONE_LINE_TEXT_COMPONENT?i("div",[i("el-input",{attrs:{placeholder:t.info,resize:"none",maxlength:t.max||-1},model:{value:t.answer,callback:function(i){e.$set(t,"answer",i)},expression:"item.answer"}})],1):e._e(),t.type===e.MANY_LINE_TEXT_COMPONENT?i("div",[i("el-input",{attrs:{resize:"none",placeholder:t.info,type:"textarea",maxlength:t.max||-1,rows:6},model:{value:t.answer,callback:function(i){e.$set(t,"answer",i)},expression:"item.answer"}})],1):e._e(),t.type===e.DATE_TIME_COMPONENT?i("div",[i("el-date-picker",{staticStyle:{width:"200px"},attrs:{format:t.dataType===e.HOURS_MINUTE_TYPE?e.YEAR_MONTH_DATE_TIME:e.YEAR_MONTH_DATE,type:t.dataType===e.HOURS_MINUTE_TYPE?"datetime":"date",placeholder:t.info,"value-format":t.dataType===e.HOURS_MINUTE_TYPE?e.YEAR_MONTH_DATE_TIME:e.YEAR_MONTH_DATE},model:{value:t.answer,callback:function(i){e.$set(t,"answer",i)},expression:"item.answer"}})],1):e._e(),t.type===e.SCORE_COMPONENT?i("div",{staticClass:"score-component"},[i("el-rate",{attrs:{"void-icon-class":"el-icon-star-on"},model:{value:t.answer,callback:function(i){e.$set(t,"answer",i)},expression:"item.answer"}}),i("span",[e._v(e._s(e.getAuxiliaryText(t.auxiliaryTextOptions,t.answer)))])],1):e._e(),t.type===e.NPS_COMPONENT?i("div",{staticClass:"nps-component"},[i("div",{staticClass:"nps-score"},e._l(e.NPS_LENGTH,(function(a){return i("span",{key:a,style:t.answer===a?"background-color:#1989FA;color:white;":"",on:{click:function(i){return e.chooseNpsScore(t,a)}}},[e._v(" "+e._s(a)+" ")])})),0),i("div",{staticClass:"nps-text"},[i("span",[e._v(e._s(t.leftAuxiliaryText))]),i("span",[e._v(e._s(t.righAuxiliarytText))])])]):e._e(),t.type===e.TEXT_COMPONENT?i("div",{style:"color:"+t.textColor+";line-height:20px;"},[e._v(" "+e._s(t.content)+" ")]):e._e(),t.type===e.IMAGE_COMPONENT?i("div",[i("el-image",{staticStyle:{width:"210px",height:"84px"},attrs:{src:t.imageUrl,fit:"cover"}})],1):e._e(),t.type===e.CAROUSEL_COMPONENT?i("div",[i("el-carousel",{attrs:{height:"84px","indicator-position":"none"}},e._l(t.imageUrlList,(function(e){return i("el-carousel-item",{key:e.uid},[i("el-image",{staticStyle:{width:"210px",height:"84px"},attrs:{src:e.url,fit:"cover"}})],1)})),1)],1):e._e(),i("div",{staticClass:"required-info"},[e._v(" "+e._s(t.message)+" ")])])],1)})),0),i("div",{staticClass:"submit-button"},[i("el-button",{style:"background-color: "+e.formSetValue.submitColor+";border-color:"+e.formSetValue.submitColor,attrs:{type:"primary",disabled:e.submitButtonDisabled},on:{click:e.submit}},[e._v(e._s(e.submitText))])],1)],1)])},o=[],l=i("5530"),c=(i("99af"),i("4de4"),i("caad"),i("d81d"),i("fb6a"),i("b64b"),i("d3b7"),i("ac1f"),i("00b4"),i("2532"),i("159b"),i("2ef0")),u=i("dd70"),d="yyyy-MM-dd HH:mm",p="yyyy-MM-dd",f=1,A=2,h=3,m=4,g=1,v=2,b=/^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/,y=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,_=/^\d+$/,w=2,C=3,x=[0,1,2,3,4,5,6,7,8,9,10],k={props:{formSetting:{type:Object,default:function(){}},form:{type:Object,default:function(){}}},data:function(){return{RADIO_COMPONENT:u["Rc"],CHECKBOX_COMPONENT:u["p"],SELECT_COMPONENT:u["Zc"],ONE_LINE_TEXT_COMPONENT:u["Fc"],MANY_LINE_TEXT_COMPONENT:u["Sb"],DATE_TIME_COMPONENT:u["H"],SCORE_COMPONENT:u["Wc"],NPS_COMPONENT:u["Bc"],TEXT_COMPONENT:u["nd"],IMAGE_COMPONENT:u["Bb"],CAROUSEL_COMPONENT:u["m"],NPS_LENGTH:x,YEAR_MONTH_DATE_TIME:d,YEAR_MONTH_DATE:p,YEAR_MONTH_TYPE:g,HOURS_MINUTE_TYPE:v,JUMP_RESULT_PAGE:w,JUMP_LINK:C,TEXT_LENGTH_TYPE:A,prewievForm:[],formSetValue:{},showResultPage:!1,submitText:"",submitButtonDisabled:!1,resultPageOptions:{iconUrl:"",text:""}}},watch:{formSetting:{deep:!0,handler:function(){this.submitText=this.formSetValue.submitText,this.submitButtonDisabled=!1}},form:{deep:!0,handler:function(e){this.prewievForm=JSON.parse(e.formFieldListJson),this.formSetValue=Object(c["cloneDeep"])(e),this.submitText=this.formSetValue.submitText}}},mounted:function(){this.form.isFormDetail&&(this.prewievForm=JSON.parse(this.form.formFieldListJson),this.formSetValue=Object(c["cloneDeep"])(this.form),this.submitText=this.formSetValue.submitText)},methods:{showTitle:function(e){return![u["nd"],u["Bb"],u["m"]].includes(e)},isImageOrCarousel:function(e){return[u["Bb"],u["m"]].includes(e)},chooseNpsScore:function(e,t){this.$set(this.prewievForm,Object(c["findIndex"])(this.prewievForm,e),Object(l["a"])(Object(l["a"])({},e),{},{answer:t}))},checkRule:function(e){var t=[];return e.forEach((function(e){if(!1!==e.showFlag)switch(e.type){case u["Fc"]:case u["Sb"]:var i=e.max,a=e.min,n=e.required,r=e.hasFillIn,s=e.answer;switch(e.valueLimitType){case f:(n&&!r&&!i&&!a||r&&!_.test(s||""))&&t.push({message:"请填写数字",id:e.id}),(n&&!r&&i&&a||r&&i&&a&&(s>+i||s<+a))&&t.push({message:"请填写大于".concat(a,",小于").concat(i,"的数字"),id:e.id}),(n&&!r&&i&&!a||r&&i&&!a&&s>+i)&&t.push({message:"请填写小于".concat(i,"的数字"),id:e.id}),(n&&!r&&a&&!i||r&&a&&!i&&s<+a)&&t.push({message:"请填写大于".concat(a,"的数字"),id:e.id});break;case A:n&&!r&&t.push({message:"请填写该项",id:e.id}),r&&a&&(e.answer&&e.answer.length||0)<a&&t.push({message:"请填写至少".concat(a,"个字"),id:e.id});break;case h:case m:var o=e.valueLimitType===h?b:y;(n&&!r||r&&!o.test(s||""))&&t.push({message:"请填写".concat(e.valueLimitType===h?"正确的网址":"正确的电子邮箱"),id:e.id});break;default:e.required&&!e.hasFillIn&&t.push({message:"请填写该项",id:e.id});break}break;case u["p"]:var l=e.minSelectNums,c=e.selectNums,d=e.required,p=e.hasFillIn;d&&!p&&t.push({message:"请填写该项",id:e.id}),p&&c<l&&t.push({message:"最少选择".concat(l,"项"),id:e.id});break;default:e.required&&!e.hasFillIn&&t.push({message:"请填写该项",id:e.id})}})),t},getAuxiliaryText:function(e,t){var i=Object(c["find"])(e||[],{scoreType:t});return null===i||void 0===i?void 0:i.text},getSortIndex:function(e){var t=this,i=this.prewievForm.filter((function(e){return![u["nd"],u["Bb"],u["m"]].includes(e.type)&&t.isShowComponent(e)}));return Object(c["indexOf"])(i,e)+1},getTopicInfo:function(){var e=this,t=this.prewievForm.filter((function(e){return![u["nd"],u["Bb"],u["m"]].includes(e.type)})).map((function(t){var i={id:t.id,type:t.type,question:t.title,answer:t.answer,required:t.required,hasFillIn:Boolean(Array.isArray(t.answer)?t.answer.length:t.answer),showFlag:t.showFlag};switch(t.type){case u["p"]:return Object(l["a"])(Object(l["a"])({},i),{},{hasFillIn:0!==t.answer.length,maxSelectNums:t.maxSelectNums,minSelectNums:t.minSelectNums,selectNums:t.answer.length});case u["Zc"]:return Object(l["a"])(Object(l["a"])({},i),{},{hasFillIn:0!==t.answer.length});case u["Fc"]:case u["Sb"]:return Object(l["a"])(Object(l["a"])({},i),{},{valueLimitType:t.valueLimitType,min:t.min,max:t.max});case u["Wc"]:return Object(l["a"])(Object(l["a"])({},i),{},{text:e.getAuxiliaryText(t.auxiliaryTextOptions,t.answer)});case u["Bc"]:return Object(l["a"])(Object(l["a"])({},i),{},{hasFillIn:Boolean(void 0!==t.answer)});default:return i}}));return t},checkBoxChange:function(e,t){var i=t.maxSelectNums,a=t.options,n=e.map((function(e){return JSON.parse(e).id}));a.forEach((function(t){t.disabled="number"===typeof i&&e.length>=i&&-1===n.indexOf(t.id)}))},isShowComponent:function(e){var t=this,i=e.ruleList,a=void 0===i?[]:i;if(!a.length)return!0;a.forEach((function(e){var i=Object(c["find"])(t.prewievForm,{id:e.questionId});if(i){var a=e.answer.map((function(e){switch(i.type){case u["p"]:var t=(i.answer||[]).map((function(e){return e.id}));return{ruleAnswerId:e,meetCondition:t.includes(e)};case u["Zc"]:var a=(i.answer||[]).map((function(e){return JSON.parse(e).id}));return{ruleAnswerId:e,meetCondition:a.includes(e)};case u["Rc"]:case u["Bc"]:return{ruleAnswerId:e,meetCondition:i.answer===e}}}));e.canShow=!a.filter((function(e){return!e.meetCondition})).length}}));var n=-1!==Object(c["findIndex"])(a,(function(e){return e.canShow}));return e.showFlag=n,n},submit:function(){var e=this.formSetting,t=e.actionInfoParam,i=e.submitActionType,a=this.checkRule(this.getTopicInfo());if(this.prewievForm=this.prewievForm.map((function(e){var t=Object(c["find"])(a,{id:e.id});return Object(l["a"])(Object(l["a"])({},e),{},{message:null===t||void 0===t?void 0:t.message})})),!a.length)switch(i){case w:var n=t.document,r=t.iconUrl;this.showResultPage=!0,this.resultPageOptions={text:n,iconUrl:r};break;case C:var s=t.url;"http"!==s.slice(0,4)?window.open("http://".concat(s)):window.open("".concat(s));break;default:this.submitText="已提交",this.submitButtonDisabled=!0;break}}}},T=k,S=(i("2b8e"),i("2877")),I=Object(S["a"])(T,s,o,!1,null,"0496f77c",null),E=I.exports,O=i("cf45"),B={components:{VideoModal:r["default"],FormPreview:E},props:{message:{type:String,default:""},isOther:{type:Boolean,default:!1},imageList:{type:Array,default:function(){return[]}},messageList:{type:Array,default:function(){return[]}},title:{type:String,default:"客户昵称"},customDomFlag:{type:Boolean,default:!1},toolShow:{type:Boolean,default:!0},msgList:{type:Array,default:function(){return[]}},materialField:{type:String,default:"materialName"},digestField:{type:String,default:"digest"},materialUrlField:{type:String,default:"materialUrl"},unShowVideoCover:{type:Boolean,default:!1},isFormPreview:{type:Boolean,default:!1},formSetting:{type:Object,default:function(){}},form:{type:Object,default:function(){}}},data:function(){return{MEDIA_TYPE_POSTER:u["cc"],MEDIA_TYPE_IMGLINK:u["ac"],MEDIA_TYPE_VIDEO:u["gc"],MEDIA_TYPE_FILE:u["Zb"],MEDIA_TYPE_MINIAPP:u["bc"],MEDIA_TYPE_TEXT:u["fc"],MEDIA_TYPE_RADARLINK:u["dc"],DEFAULT_IMG:u["K"],MEDIA_TYPE_SMARTFORM:u["ec"],visible:!1}},methods:{onPreview:function(e){this.visible=!0,this.$refs.videoModal.play(e[this.materialUrlField])},closeModal:function(){this.visible=!1},getFileIconClass:function(e){return Object(O["z"])(e)},getFileSize:function(e){return Object(O["x"])(e.content)},getContent:function(e){var t;return(null===e||void 0===e||null===(t=e.radar)||void 0===t||null===(t=t.weRadarUrl)||void 0===t?void 0:t.content)||(null===e||void 0===e?void 0:e.content)||""},getCoverUrl:function(e){var t;return(null===e||void 0===e?void 0:e.coverUrl)||(null===e||void 0===e||null===(t=e.radar)||void 0===t||null===(t=t.weRadarUrl)||void 0===t?void 0:t.coverUrl)||u["K"].link}}},L=B,D=(i("bfb8"),i("d331")),M=i.n(D),N=Object(S["a"])(L,a,n,!1,null,"cb2e5f3a",null);"function"===typeof M.a&&M()(N);t["a"]=N.exports},"8bd6":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"enterprise-wechat-config"},[e.isConfiguration?i("div",[i("div",{staticClass:"step-item"},[i("HeaderComponent",{ref:"contactHeaderRef",attrs:{title:"应用信息",extraclick:"","application-from-type":e.APPLICATION},on:{reSetConfig:e.reSetConfig}}),i("ConfigItemComponent",{attrs:{params:[{label:"企业ID",type:"input",btnType:"copy",required:!1,field:"corpId"},{label:"应用ID",type:"input",btnType:"copy",required:!1,field:"agentId"}],form:e.form,"application-type":e.APPLICATION_TYPE,"application-from-type":e.APPLICATION_FROM_TYPE},on:{getNowConfig:e.getNowConfig}})],1),i("div",{staticClass:"step-item"},[i("HeaderComponent",{ref:"customerChat",attrs:{title:"客户联系","drawer-title":"如何获取客户联系配置内容",type:"customerChat"},scopedSlots:e._u([{key:"generationDevelopment",fn:function(){return[i("el-button",{staticClass:"btn-reset mini-btn mini-btn-transparent",attrs:{size:"mini"},on:{click:function(t){return e.onOpenDrawer("customerChat")}}},[e._v(" 如何获取? ")])]},proxy:!0}])}),i("ConfigItemComponent",{attrs:{params:[{label:"会话存档Secret",type:"input",btnText:"保存",btnType:"save",required:!1,field:"chatSecret"}],tip:"需要先在企业微信后台开通会话存档功能,开通后可以查看员工的聊天记录并做企业风控",form:e.form,"application-from-type":e.APPLICATION_FROM_TYPE},on:{getNowConfig:e.getNowConfig}})],1),i("div",{staticClass:"step-item"},[i("HeaderComponent",{ref:"chatside",attrs:{title:"聊天侧边栏","drawer-title":"如何配置聊天工具栏","extra-title":"快捷配置",type:"chatside","default-domain":e.defaultDomain,"config-id":e.form.id,form:e.form},on:{getNowConfig:e.getNowConfig},scopedSlots:e._u([{key:"generationDevelopment",fn:function(){return[i("el-button",{staticClass:"btn-reset mini-btn mini-btn-transparent",attrs:{size:"mini"},on:{click:function(t){return e.onOpenDrawer("chatside")}}},[e._v(" 如何配置? ")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wechat:corp:edit"],expression:"['wechat:corp:edit']"}],staticClass:"mini-btn",attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.onOpenPrimaryBtnDrawer("chatside")}}},[e._v(" 自动配置,减少出错 ")])]},proxy:!0}])}),i("ConfigItemComponent",{attrs:{params:[{label:"素材库",type:"input",btnText:"复制",btnType:"copy",required:!1,field:"materialUrl"},{label:"客户画像",type:"input",btnText:"复制",btnType:"copy",required:!1,field:"customerPortrait"},{label:"应用工具",type:"input",btnText:"复制",btnType:"copy",required:!1,field:"applicationTools"}],tip:"用于配置企业微信客户端侧边工具栏页面",form:e.form,"application-from-type":e.APPLICATION_FROM_TYPE},on:{getNowConfig:e.getNowConfig}})],1)]):[i("ConfigComponent",{attrs:{reset:e.reSet},on:{changeConfiguration:e.changeConfiguration}})]],2)},n=[],r=i("5530"),s=i("c7eb"),o=i("1da1"),l=(i("99af"),i("fb6a"),i("2ff4")),c=i("4073"),u=i("d87a"),d=i("b18e"),p=i("dd70"),f=i("50fc"),A=2,h={components:{HeaderComponent:c["default"],ConfigItemComponent:u["default"],ConfigComponent:d["default"]},props:{},data:function(){return{NORMAL:p["wc"],form:{},dialogVisible:!1,APPLICATION_TYPE:"generationDevelopment",APPLICATION_FROM_TYPE:"generationDevelopment",APPLICATION:"application",isConfiguration:!1,reSet:!1,defaultDomain:{}}},computed:{enterPriseWechatConfig:function(){return this.$store.state.enterPriseWechatConfig}},watch:{},created:function(){this.checkGuide(),this.getDefaultDomain(),this.isAuth()},mounted:function(){},methods:{isAuth:function(){this.$store.state.enterPriseWechatConfig.status!==p["wc"]||"ww"!==this.enterPriseWechatConfig.corpId.substring(0,A)&&!this.enterPriseWechatConfig.authorized||(this.isConfiguration=!0)},getDefaultDomain:function(){var e=this;Object(f["e"])().then((function(t){e.defaultDomain=t.data}))},checkGuide:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.getNowConfig();case 3:if(i=t.sent,i&&i.data){t.next=7;break}return e.dialogVisible=!0,t.abrupt("return");case 7:i.data.agentId||(e.dialogVisible=!0),t.next=13;break;case 10:t.prev=10,t.t0=t["catch"](0),t.t0.code===p["Ac"]&&(e.dialogVisible=!0);case 13:case"end":return t.stop()}}),t,null,[[0,10]])})))()},dealFormData:function(e){this.form.certFileName=e.certFilePath?e.certFilePath.slice(e.certFilePath.lastIndexOf("/")+1):"";var t="https://open.weixin.qq.com/connect/oauth2/authorize?appid=".concat(e.corpId,"&redirect_uri=").concat(encodeURIComponent(e.h5DoMainName),"%2F%23%2F"),i="&response_type=code&scope=snsapi_base&state=".concat(e.corpId,"#wechat_redirect");this.form.materialUrl="".concat(t,"chat").concat(i),this.form.customerPortrait="".concat(t,"portrait").concat(i),this.form.applicationTools="".concat(t,"applicationSet").concat(i)},getNowConfig:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i,a;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,l["e"]({});case 3:return i=t.sent,e.$store.dispatch("UpdateConfig",i.data),a=i.data||{},e.form=Object(r["a"])({},a),e.dealFormData(e.form),t.abrupt("return",i);case 11:t.prev=11,t.t0=t["catch"](0),t.t0.code!==p["Ac"]&&t.t0.msg&&e.msgError(t.t0.msg);case 14:case"end":return t.stop()}}),t,null,[[0,11]])})))()},changeConfiguration:function(e){this.getNowConfig(),this.isConfiguration=e},reSetConfig:function(e){this.reSet=!0,this.isConfiguration=!1},onOpenPrimaryBtnDrawer:function(e){this.$refs[e].onOpenExtraDrawer()},onOpenDrawer:function(e){this.$refs[e].onOpenDrawer()}}},m=h,g=(i("fd11"),i("2877")),v=Object(g["a"])(m,a,n,!1,null,"4fb4582d",null);t["default"]=v.exports},"8c58":function(e,t,i){e.exports=i.p+"static/img/chatside-step2.d3d3b4fe.png"},"8c9f":function(e,t,i){e.exports=i.p+"static/img/客户联系使用范围.0a8c8136.png"},"8d33":function(e,t,i){"use strict";i("dbca")},"8d84":function(e,t,i){},"8da7":function(e,t,i){},"8daa":function(e,t,i){},"8db4":function(e,t,i){},"8de1":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"batch-tag"},[i("RightContainer",{scopedSlots:e._u([{key:"header",fn:function(){return[i("ReturnPage",{staticClass:"mb10"})]},proxy:!0},{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{inline:!0,model:e.query,"label-width":"100px"}},[i("el-form-item",[i("el-input",{attrs:{placeholder:"请输入客户信息",clearable:""},model:{value:e.query.customerInfo,callback:function(t){e.$set(e.query,"customerInfo",t)},expression:"query.customerInfo"}})],1),i("el-form-item",[i("el-select",{attrs:{placeholder:"请选择打标状态",clearable:""},model:{value:e.query.status,callback:function(t){e.$set(e.query,"status",t)},expression:"query.status"}},e._l(e.TAG_STATUS,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.onSearch}},[e._v("查询")]),i("el-button",{staticClass:"btn-reset",on:{click:e.onReset}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"operate-btn",fn:function(){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:batchtag:export"],expression:"['wecom:batchtag:export']"}],on:{click:e.exportReport}},[e._v("导出报表")])]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",attrs:{data:e.taskDetailList,"tooltip-effect":"dark",size:"medium"}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{text:"暂无数据"}})],1),i("el-table-column",{attrs:{label:"external_userid",prop:"importExternalUserid",align:"left"}}),i("el-table-column",{attrs:{label:"unionid",prop:"importUnionId",align:"left"}}),i("el-table-column",{attrs:{label:"手机号",prop:"importMobile",align:"left"}}),i("el-table-column",{attrs:{label:"打标状态",prop:"status",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",{class:e.TAG_STATUS[a.status].className},[e._v(" "+e._s(e.TAG_STATUS[a.status].label)+" ")])]}}])}),i("el-table-column",{attrs:{label:"备注",prop:"remark",align:"left"}}),i("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-button",{style:a.status===e.TAG_TODO?"color: #ccc":"",attrs:{type:"text",size:"medium",disabled:a.status===e.TAG_TODO},on:{click:function(t){return e.goRoute(a)}}},[e._v("客户详情")])]}}])})],2),i("pagination",{attrs:{total:1*e.total,page:e.query.pageNum,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getTaskList()}}})]},proxy:!0}])})],1)},n=[],r=i("5530"),s=i("ade3"),o=(i("b0c0"),i("dca8"),i("b64b"),i("d3b7"),i("aa50")),l=i("b66d"),c=i("e77d"),u=i("ed08"),d=i("dd70"),p=i("eccc"),f=0,A=1,h=2,m=Object(s["a"])(Object(s["a"])(Object(s["a"])({},f,{className:"tag-todo",label:"待执行",value:f}),A,{className:"tag-success",label:"成功",value:A}),h,{className:"tag-fail",label:"失败",value:h}),g={name:"TaskDetail",components:{RightContainer:l["a"],EmptyDefaultIcon:c["a"],ReturnPage:o["a"]},data:function(){return{query:{pageNum:1,pageSize:d["Ic"],customerInfo:void 0},taskDetailList:[],total:0,taskId:void 0,taskName:void 0,loading:!1,TAG_STATUS:Object.freeze(m),TAG_TODO:f}},created:function(){this.$store.getters.saveCondition&&Object.keys(this.$store.getters.searchQuery[this.$route.name]||{}).length&&(this.query=this.$store.getters.searchQuery[this.$route.name]);var e=this.$route.query;this.taskId=e.taskId,this.taskName=e.taskName,this.getTaskList()},methods:{getTaskList:function(e){var t=this;e&&(this.query.pageNum=e);var i=Object(r["a"])(Object(r["a"])({},this.query),{},{taskId:this.taskId});this.loading=!0,Object(p["d"])(i).then((function(e){t.taskDetailList=e.rows,t.total=e.total})).finally((function(){t.loading=!1}))},onSearch:function(){this.getTaskList(1)},onReset:function(){this.query=this.$options.data().query,this.onSearch(1)},goRoute:function(e){e.tagExternalUserid?(this.$store.commit("SET_SEARCH_QUERY",{pageName:this.$route.name,query:this.query}),Object(u["l"])(this.$router,"customerDetail",{},{id:e.tagExternalUserid,userId:e.tagUserId,prePageType:"BatchTagTaskDetail"})):this.msgWarn("Ta不是企业客户")},exportReport:function(){var e=this,t=this.query,i=t.customerInfo,a=t.status,n={taskName:this.taskName,taskId:this.taskId,customerInfo:i,status:a};Object(p["b"])(n).then((function(t){e.download(t.data.msg,!0)})).catch((function(){e.msgError("导出失败!")}))}}},v=g,b=(i("2a60"),i("2877")),y=Object(b["a"])(v,a,n,!1,null,"25281a2a",null);t["default"]=y.exports},"8e13":function(e,t,i){},"8e4e":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"welcome-detail-special-div"},[i("div",{staticClass:"welcome-msg-title"},[e._v(e._s("时段欢迎语"+(e.specialIndex+1)))]),i("div",{staticClass:"welcome-time-div mb15"},[e._l(e.calcWeekList(e.specialItem.weekends),(function(t,a){return i("el-tag",{key:a,attrs:{size:"mini"}},[e._v(e._s("周"+e.weekNum[t-1]))])})),i("el-time-picker",{staticStyle:{width:"142px","margin-right":"10px","padding-left":"6px","padding-right":"0"},attrs:{disabled:"","is-range":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",placeholder:"选择时间范围","value-format":"HH:mm",format:"HH:mm"},model:{value:e.timeStamp,callback:function(t){e.timeStamp=t},expression:"timeStamp"}})],2),i("div",{staticClass:"default-msg-info mb10"},[e._v(e._s(e.specialItem.specialWelcomeMsg))]),e._l(e.specialItem.specialMaterialList,(function(t,a){return i("div",{key:a,staticClass:"detail-item mb10"},[i("VerbalTrickDetailPreview",{attrs:{item:e.transferMaterialTypeItem(t)}})],1)}))],2)},n=[],r=(i("a9e3"),i("dd70")),s=i("dbe0"),o={name:"",components:{VerbalTrickDetailPreview:s["default"]},props:{specialItem:{type:Object,default:function(){}},specialIndex:{type:Number,default:0},transferMaterialTypeItem:{type:Function,default:function(){}}},data:function(){return{weekNum:r["Ed"],timeStamp:[]}},created:function(){},mounted:function(){this.timeStamp=[this.specialItem.weekendBeginTime||"",this.specialItem.weekendEndTime||""]},methods:{calcWeekList:function(e){return e.split(",")||[]}}},l=o,c=(i("b0473"),i("2877")),u=Object(c["a"])(l,a,n,!1,null,"59258bfc",null);t["default"]=u.exports},"8e7c":function(e,t,i){"use strict";i.d(t,"e",(function(){return n})),i.d(t,"d",(function(){return r})),i.d(t,"a",(function(){return s})),i.d(t,"f",(function(){return o})),i.d(t,"b",(function(){return l})),i.d(t,"c",(function(){return c}));var a=i("b775");function n(e){return Object(a["a"])({url:"/xiaoe/qyjbxx/list",method:"get",params:e})}function r(e){return Object(a["a"])({url:"/xiaoe/qyjbxx/"+e,method:"get"})}function s(e){return Object(a["a"])({url:"/xiaoe/qyjbxx",method:"post",data:e})}function o(e){return Object(a["a"])({url:"/xiaoe/qyjbxx",method:"put",data:e})}function l(e){return Object(a["a"])({url:"/xiaoe/qyjbxx/"+e,method:"delete"})}function c(e){return Object(a["a"])({url:"/xiaoe/qyjbxx/export",method:"get",params:e})}},"8e9f":function(e,t,i){},"8f6b":function(e,t,i){},"8f70":function(e,t,i){"use strict";i("6930")},"8fc0":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:"item-container material-file-container material-item-scss"+(e.onChecked?" selected":""),on:{click:function(){return e.onCheck()}}},[i("div",{staticClass:"operate"},[i("div",{staticClass:"operate-left"},[i("el-checkbox",{attrs:{value:e.onChecked},on:{change:function(){return e.onCheck()}}}),e.type===e.MEDIA_TYPE_RADARLINK?i("div",{staticClass:"inoneline title"},[e._v(" "+e._s(e.item.radarTitle)+" ")]):e._e()],1),i("MaskItem",{attrs:{"tool-list":e.toolList,filemask:!0,"media-type":e.type,"material-item":e.item},on:{onPreview:e.onPreview,openMaterialDialog:e.openMaterialDialog,getList:e.getList,changeList:e.changeList}})],1),i("div",{staticClass:"content"},[i("div",{staticClass:"desc"},[i("div",{staticClass:"left"},[i("span",{staticClass:"file-title intwoline",attrs:{title:e.item.materialName}},[e.item.showMaterial&&!e.hideStatus?i("span",{staticClass:"publish-status"},[e._v("发布")]):e._e(),e.type!==e.MEDIA_TYPE_RADARLINK?i("span",{staticClass:"file-name"},[e._v(e._s(e.item.materialName))]):e._e()]),e.type===e.MEDIA_TYPE_RADARLINK?i("div",{staticClass:"inoneline title"},[i("div",{staticClass:"inoneline title"},[e._v(" "+e._s(e.item.title)+" ")]),i("div",{staticClass:"desc-text inoneline",attrs:{title:e.descText}},[e._v(e._s(e.item.content))])]):e._e(),e.type===e.MEDIA_TYPE_SMARTFORM?i("div",{staticClass:"title"},[i("div",{staticClass:"inoneline title"},[e._v(" "+e._s(e.item.formName)+" ")]),i("div",{staticClass:"desc-text intwoline",attrs:{title:e.descText}},[e._v(e._s(e.item.description))])]):e._e(),i("div",{staticClass:"desc-text inoneline",attrs:{title:e.descText}},[e._v(e._s(e.descText))])]),i("div",{staticClass:"right"},[e.type===e.MEDIA_TYPE_SMARTFORM?i("svg-icon",{attrs:{"icon-class":"form-preview","class-name":"form-preview"}}):[e.showIcon?i("svg",{staticClass:"icon",attrs:{"aria-hidden":"true",width:"50",height:"50"}},[i("use",{attrs:{"xlink:href":"#icon-"+e.getFileIconClass}})]):i("el-image",{attrs:{src:e.item.coverUrl,fit:"cover"}},[i("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[i("svg",{staticClass:"icon-img-link",attrs:{width:25,height:25}},[i("use",{attrs:{href:"#icon-img-link"}})])])])]],2)]),i("div",{staticClass:"bottom-div"},[e.showTag?i("TagList",{attrs:{"tag-list":e.tagList}}):e._e(),e.showExpireTime?i("div",{staticClass:"expire-time-common"},[e._v(" "+e._s(e.item.expireTime)+" 过期 ")]):e._e()],1)])])},n=[],r=i("2909"),s=(i("c740"),i("caad"),i("a434"),i("d3b7"),i("2532"),i("e8d4")),o=i("cf45"),l=i("dd70"),c=i("3d09"),u={name:"FileItem",components:{TagList:s["a"],MaskItem:c["a"]},props:{item:{type:Object,default:function(){}},hideStatus:{type:Boolean,default:!1},showExpireTime:{type:Boolean,default:!1},descField:{type:String,default:""},showIcon:{type:Boolean,default:!1},toolList:{type:Array,default:null},showFileSize:{type:Boolean,default:!1},type:{type:String,default:""},selectedMaterialList:{type:Array,default:function(){return[]}},selectMaterial:{type:Function,default:function(){}}},data:function(){return{srcList:[],checked:!1,ICON_LIST:l["Ab"],MEDIA_TYPE_RADARLINK:l["dc"],MEDIA_TYPE_SMARTFORM:l["ec"]}},computed:{getFileIconClass:function(){return Object(o["z"])(this.item.materialUrl)},descText:function(){return this.showFileSize?Object(o["x"])(this.item[this.descField]):this.item[this.descField]},tagList:function(){return Object(o["K"])(this.item.tagList||[],this.$store)},onChecked:function(){var e=this;return this.selectedMaterialList.some((function(t){return e.item.id?e.item.id===t.id:e.item.extraId===t.extraId}))},showTag:function(){return![l["dc"],l["ec"]].includes(this.type)}},methods:{onCheck:function(){var e=this,t=Object(r["a"])(this.selectedMaterialList),i=this.selectedMaterialList.findIndex((function(t){return e.item.id?e.item.id===t.id:e.item.extraId===t.extraId}));i>-1?t.splice(i,1):t.push(this.item),this.selectMaterial(t)},onPreview:function(){window.open(this.item.materialUrl)},openMaterialDialog:function(e){this.$emit("openMaterialDialog",e)},getList:function(){this.$emit("getList")},changeList:function(e){this.$emit("changeList",e)}}},d=u,p=(i("4b02"),i("2100"),i("2877")),f=Object(p["a"])(d,a,n,!1,null,"a701aa26",null);t["a"]=f.exports},"8fdd":function(e,t,i){"use strict";i("536b")},"8fe4":function(e,t,i){"use strict";i("ac7a")},9045:function(e,t,i){},9047:function(e,t,i){},"90c7":function(e,t,i){},"90ca":function(e,t,i){"use strict";i("219b")},"90d6":function(e,t,i){},"915f":function(e,t,i){e.exports=i.p+"static/img/boss.466c8d50.png"},9199:function(e,t,i){"use strict";i("f418")},"91b8":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"custom-channel"},[i("el-dialog",{attrs:{title:"自定义渠道",width:"1060px","append-to-body":!0,visible:e.Pvisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.Pvisible=t}}},[i("div",{staticClass:"title-info"},[i("i",{staticClass:"el-icon-info"}),i("div",[i("div",{staticClass:"info-desc"},[e._v(" 如果想要分析不同渠道的引流效果,可生成自定义渠道,分别投放到对应渠道,前往获客链接详情页可查看每个渠道的数据 ")])])]),i("div",{staticClass:"content"},[i("div",{staticClass:"header-container"},[i("el-input",{staticStyle:{width:"240px"},attrs:{"prefix-icon":"el-icon-search",placeholder:"请输入渠道,回车搜索"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSearch(t)}},model:{value:e.query.name,callback:function(t){e.$set(e.query,"name",t)},expression:"query.name"}}),i("div",{staticClass:"operate-btn"},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customer:assistant:edit"],expression:"['customer:assistant:edit']"}],attrs:{type:"primary"},on:{click:e.addChannel}},[e._v("添加渠道")])],1)],1),i("div",{staticClass:"content-container"},[i("RightContainer",{scopedSlots:e._u([{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,"max-height":"440"}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.list.length}})],1),i("el-table-column",{attrs:{prop:"name",label:"渠道",align:"center"}}),i("el-table-column",{attrs:{prop:"channelUrl",label:"渠道链接",align:"center",width:"286"}}),i("el-table-column",{attrs:{label:"创建人",align:"center",prop:"createBy"}}),i("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"createTime",width:"180"}}),i("el-table-column",{attrs:{label:"操作",align:"center",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-button",{directives:[{name:"copy",rawName:"v-copy",value:a.channelUrl,expression:"row.channelUrl"}],attrs:{size:"mini",type:"text"}},[e._v("复制链接")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customer:assistant:edit"],expression:"['customer:assistant:edit']"}],attrs:{size:"mini",type:"text"},on:{click:function(t){return e.editChannel(a)}}},[e._v("编辑")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customer:assistant:edit"],expression:"['customer:assistant:edit']"}],attrs:{size:"mini",type:"text"},on:{click:function(t){return e.handleDelete(a)}}},[e._v("删除")])]}}])})],2)]},proxy:!0}])})],1)]),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.Pvisible=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.Pvisible=!1}}},[e._v("确 定")])],1)]),i("div",{staticClass:"add-channel-visible"},[i("el-dialog",{attrs:{visible:e.addChannelVisible,"close-on-click-modal":!1,title:e.channelId?"编辑渠道":"添加渠道",width:"500px"},on:{"update:visible":function(t){e.addChannelVisible=t},close:e.close}},[i("el-form",{ref:"form",attrs:{model:e.form,"label-width":"80px",rules:e.rules}},[i("el-form-item",{attrs:{label:"渠道名称",prop:"name"}},[i("el-input",{staticStyle:{width:"360px"},attrs:{"show-word-limit":"",maxlength:e.MAX_INPUT_LENGTH,placeholder:"请填写渠道名称,方便标记使用"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.addChannelVisible=!1}}},[e._v("取 消")]),i("RequestButton",{attrs:{type:"primary","button-type":"submit","request-method":e.submit}},[e._v(e._s(e.channelId?"保存":"生成渠道链接")+" ")])],1)],1)],1)],1)},n=[],r=i("c7eb"),s=i("1da1"),o=i("5530"),l=(i("4de4"),i("b0c0"),i("d3b7"),i("b66d")),c=i("e77d"),u=i("52a9"),d=i("cf45"),p=i("8107"),f=16,A={components:{RightContainer:l["a"],EmptyDefaultIcon:c["a"],RequestButton:u["a"]},props:{visible:{type:Boolean,default:!1},empleCodeId:{type:String,default:""}},data:function(){return{query:{name:""},loading:!1,list:[],total:0,form:{name:""},rules:{name:[{required:!0,message:"请填写渠道名称",trigger:"blur"}]},addChannelVisible:!1,MAX_INPUT_LENGTH:f,channelId:void 0}},computed:{Pvisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}}},watch:{visible:function(e){e&&this.getList(1)}},methods:{getList:function(){var e=this;this.loading=!0,Object(p["f"])(Object(o["a"])(Object(o["a"])({},this.query),{},{empleCodeId:this.empleCodeId,isFilterDefaultUrl:!0})).then((function(t){var i,a=t.rows;t.total;e.list=a.filter((function(e){return!e.delFlag})),e.total=(null===e||void 0===e||null===(i=e.list)||void 0===i?void 0:i.length)||0})).catch((function(){e.list=[],e.total=0})).finally((function(){e.loading=!1}))},submit:function(){var e=this;this.$refs["form"].validate((function(t){if(!t)return Object(d["i"])(e.$store,"submit");var i={name:e.form.name};e.channelId?i.channelId=e.channelId:i.empleCodeId=e.empleCodeId,(e.channelId?p["v"]:p["b"])(i).then((function(){e.addChannelVisible=!1,Object(d["i"])(e.$store,"submit"),e.getList()}))}))},onSearch:function(){this.getList(1)},handleDelete:function(e){var t=this;this.confirmModal({msg:"自定义渠道“".concat(e.name,"”将被删除,是否继续?")},Object(s["a"])(Object(r["a"])().mark((function i(){return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:Object(p["o"])(e.channelId).then((function(){t.getList()}));case 1:case"end":return i.stop()}}),i)}))))},editChannel:function(e){var t;null===(t=this.$refs)||void 0===t||null===(t=t.form)||void 0===t||t.resetFields(),this.form.name=e.name,this.channelId=e.channelId,this.addChannelVisible=!0},addChannel:function(){this.form.name="",this.channelId=void 0,this.addChannelVisible=!0},close:function(){this.addChannelVisible=!1}}},h=A,m=(i("c32a"),i("2877")),g=Object(m["a"])(h,a,n,!1,null,"f274754e",null);t["default"]=g.exports},"91c6":function(e,t,i){},9223:function(e,t,i){"use strict";i("7370")},"92c3":function(e,t,i){e.exports=i.p+"static/img/企微活码pc4.85209f1d.png"},"92eb":function(e,t,i){},"932e":function(e,t,i){e.exports=i.p+"static/img/receive-step1-1.424d85a2.jpg"},9350:function(e,t,i){e.exports=i.p+"static/img/friends-step3-2.f739da18.png"},9358:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"radar-detail-page"},[i("div",{staticClass:"page-card mb10"},[i("ReturnPage"),i("div",{staticClass:"page-header"},[i("div",{staticClass:"header-left"},[i("div",[i("span",{staticClass:"label"},[e._v("雷达标题:")]),e._v(e._s(e.radarTitle))]),i("div",[i("span",{staticClass:"label"},[e._v("真实链接:")]),e._v(e._s(e.trueLink))]),i("div",[i("span",{staticClass:"label"},[e._v("创建时间:")]),e._v(e._s(e.createTime))]),i("div",[i("span",{staticClass:"label"},[e._v("创建人:")]),e._v(e._s(e.createName))])]),i("div",{staticClass:"header-right"},[i("div",[i("span",{staticClass:"label"},[e._v("行为通知:")]),i("el-switch",{attrs:{disabled:""},model:{value:e.enableClickNotice,callback:function(t){e.enableClickNotice=t},expression:"enableClickNotice"}})],1),i("div",[i("span",{staticClass:"label"},[e._v("轨迹记录:")]),i("el-switch",{attrs:{disabled:""},model:{value:e.enableBehaviorRecord,callback:function(t){e.enableBehaviorRecord=t},expression:"enableBehaviorRecord"}})],1),i("div",[i("span",{staticClass:"label"},[e._v("客户标签:")]),e._l(e.radarTagList,(function(t){return i("el-tag",{key:t.tagId,staticClass:"tag ml5"},[e._v(" "+e._s(t.tagName)+" ")])}))],2)])])],1),i("Statistics",{attrs:{"col-list":e.colList,title:"数据总览"}}),i("div",{staticClass:"mt10 page-echart bg-white"},[i("div",{staticClass:"echart"},[i("div",{staticClass:"echart-header"},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"left"},on:{change:e.pickData},model:{value:e.activeTime,callback:function(t){e.activeTime=t},expression:"activeTime"}}),i("el-select",{staticStyle:{width:"240px","margin-left":"5px"},attrs:{clearable:"",placeholder:"请选择渠道"},model:{value:e.channelName,callback:function(t){e.channelName=t},expression:"channelName"}},e._l(e.channelList,(function(e){return i("el-option",{key:e.channelName,attrs:{label:e.channelName,value:e.channelName}})})),1)],1),i("div",{staticClass:"echart-body"},[i("div",{attrs:{id:"fatherbox"}},[i("div",{ref:"views",attrs:{id:"main"}})])])]),i("div",{staticClass:"table"},[i("span",[e._v("渠道点击人数排行")]),i("div",{staticClass:"table-body"},[i("empty-default-icon",{attrs:{length:e.channelList.length}}),e._l(e.channelList,(function(t,a){return i("div",{key:a,staticClass:"table-row"},[i("div",{staticClass:"table-row-detail",style:a%2===0?"background-color:rgb(237, 236, 236)":""},[i("div",{staticClass:"table-row-num",style:e.rowIndexStyle(a+1)},[e._v(" "+e._s(a+1)+" ")]),i("div",{staticClass:"table-row-name"},[e._v(e._s(t.channelName))]),i("div",{staticClass:"table-row-num"},[e._v(e._s(t.clickNum))])])])}))],2)])]),i("div",{staticClass:"mt10 page-record bg-white"},[i("el-radio-group",{staticClass:"radio-group-div mb10",attrs:{size:"medium"},on:{input:e.changeActiveRecord},model:{value:e.activeRecord,callback:function(t){e.activeRecord=t},expression:"activeRecord"}},[i("el-radio-button",{attrs:{label:e.CLICK_RECORD["customer"]}},[e._v("客户点击记录")]),i("el-radio-button",{attrs:{label:e.CLICK_RECORD["channel"]}},[e._v("渠道点击记录")])],1),e.activeRecord===e.CLICK_RECORD["customer"]?i("div",[i("CustomerClickRecord",{attrs:{"radar-id":e.radarId}})],1):i("div",[i("ChannelClickRecord",{attrs:{"radar-id":e.radarId}})],1)],1)],1)},n=[],r=i("ade3"),s=i("5530"),o=(i("caad"),i("d81d"),i("313e")),l=i.n(o),c=i("e77d"),u=i("069e"),d=i("72d16"),p=i("bfcf"),f=i("f9d1"),A={customer:1,channel:2},h={components:{Statistics:u["a"],CustomerClickRecord:d["default"],ChannelClickRecord:p["default"],EmptyDefaultIcon:c["a"]},data:function(){return{CLICK_RECORD:A,activeRecord:A["customer"],radarTitle:"",createTime:"",createName:"",enableBehaviorRecord:!1,enableClickNotice:!1,trueLink:"",radarTagList:[],activeTime:[],colList:[{title:"总点击人数",showPopover:!0,placement:"top",content:"统计有点击雷达链接的客户,已去重",filed:"sumClickPersonNum"},{title:"总点击次数",showPopover:!1,content:"",filed:"sumClickNum"},{title:"今日点击人数",showPopover:!0,placement:"top",content:"统计有点击雷达链接的客户,已去重",filed:"nowadaysClickPersonNum"},{title:"今日点击次数",showPopover:!1,content:"",filed:"nowadaysClickNum"}],channelName:"",channelList:[],customerClickRecordList:[],loading:!1,charts:null,chartsXData:[],clickPersonNum:[],sumClickNum:[],radarId:"",beginTime:"",endTime:""}},watch:{channelName:function(){this.getTimeRangeAnalyseCount()}},created:function(){var e=this.$route.query;this.radarId=e.id,window.sessionStorage.getItem("clickRecord")&&(this.activeRecord=window.sessionStorage.getItem("clickRecord")),this.getTimeRangeAnalyseCount(),this.getRadaDetail(),this.getOverview(),this.getChannelSort()},methods:{changeActiveRecord:function(){this.$store.commit("SET_SAVE_CONDITION",!1)},rowIndexStyle:function(e){var t=[1,2,3],i=[4,5,6];return t.includes(e)?"color:#F59A23":i.includes(e)?"color:#37adff":"color:#666666"},drawLine:function(){var e=document.getElementById("main");e&&(e.style.width="821px",e.style.height="400px",this.charts=l.a.init(e)),this.charts.setOption({tooltip:{trigger:"axis"},xAxis:{type:"category",data:this.chartsXData},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1}},legend:{data:["点击人数","点击次数"]},series:[{name:"点击人数",type:"line",data:this.clickPersonNum,itemStyle:{normal:{lineStyle:{color:"#5087EC"}}}},{name:"点击次数",type:"line",data:this.sumClickNum,itemStyle:{normal:{lineStyle:{color:"#68BBC4"}}}}]})},getRadaDetail:function(){var e=this;Object(f["j"])({id:this.radarId}).then((function(t){var i=t.data,a=i.radarTagList,n=i.radarTitle,r=i.createTime,s=i.createName,o=i.enableClickNotice,l=i.enableBehaviorRecord,c=i.weRadarUrl;e.radarTagList=a,e.radarTitle=n,e.createTime=r,e.createName=s,e.enableBehaviorRecord=l,e.enableClickNotice=o,e.trueLink=c.url}))},getOverview:function(){var e=this;Object(f["n"])({radarId:this.radarId}).then((function(t){e.colList=e.colList.map((function(e){return Object(s["a"])(Object(s["a"])({},e),{},Object(r["a"])({},e.filed,t.data[e.filed]))}))}))},pickData:function(e){this.beginTime=e?e[0]:"",this.endTime=e?e[1]:"",this.getTimeRangeAnalyseCount(),this.getChannelSort()},getTimeRangeAnalyseCount:function(){var e=this,t={radarId:this.radarId,channelName:this.channelName,beginTime:this.beginTime,endTime:this.endTime};Object(f["o"])(t).then((function(t){e.chartsXData=t.data.list.map((function(e){return e.createDate})),e.clickPersonNum=t.data.list.map((function(e){return e.clickPersonNum})),e.sumClickNum=t.data.list.map((function(e){return e.sumClickNum})),e.drawLine()}))},getChannelSort:function(){var e=this;Object(f["g"])({radarId:this.radarId,beginTime:this.beginTime,endTime:this.endTime}).then((function(t){e.channelList=t.data}))}}},m=h,g=(i("b75f"),i("2877")),v=Object(g["a"])(m,a,n,!1,null,"25065e8e",null);t["default"]=v.exports},"93bf":function(e,t,i){},"941a":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-dialog",{attrs:{title:"自定义渠道",width:"1060px","append-to-body":!0,visible:e.Pvisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.Pvisible=t}}},[i("div",{staticClass:"title-info"},[i("i",{staticClass:"el-icon-info"}),i("div",[i("div",{staticClass:"info-desc"},[e._v(" 除了可在员工活码、客户群发、好友欢迎语等系统功能使用雷达链接外,还可生成自定义渠道,在其他渠道使用雷达链接,并统计数据 ")])])]),i("div",{staticClass:"content"},[i("div",{staticClass:"header-container"},[i("el-input",{staticStyle:{width:"240px"},attrs:{"prefix-icon":"el-icon-search",placeholder:"请输入渠道,回车搜索"},on:{input:e.clear},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSearch(t)}},model:{value:e.query.name,callback:function(t){e.$set(e.query,"name",t)},expression:"query.name"}}),i("div",{staticClass:"operate-btn"},[e.hasRole?i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.addChannelVisible=!0}}},[e._v("添加渠道")]):e._e()],1)],1),i("div",{staticClass:"content-container"},[i("RightContainer",{scopedSlots:e._u([{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.list.length}})],1),i("el-table-column",{attrs:{prop:"name",label:"渠道",align:"center"}}),i("el-table-column",{attrs:{prop:"shortUrl",label:"渠道链接",align:"center"}}),i("el-table-column",{attrs:{label:"创建人",align:"center",prop:"createName"}}),i("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"createTime",width:"180"}}),i("el-table-column",{attrs:{label:"操作",align:"center",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",[i("el-button",{directives:[{name:"copy",rawName:"v-copy",value:a.shortUrl,expression:"row.shortUrl"}],attrs:{size:"mini",type:"text"}},[e._v("复制链接")])],1),i("div",[e.hasRole?i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.editChannel(a)}}},[e._v("编辑")]):e._e(),e.hasRole?i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.handleDelete(a)}}},[e._v("删除")]):e._e()],1)]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.list.length>0,expression:"list.length > 0"}],attrs:{total:e.total,disabled:e.loading,limit:e.query.pageSize,page:e.query.pageNum},on:{"update:limit":function(t){return e.$set(e.query,"pageSize",t)},"update:page":function(t){return e.$set(e.query,"pageNum",t)},pagination:function(t){return e.getList()}}})]},proxy:!0}])})],1)]),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.Pvisible=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.Pvisible=!1}}},[e._v("确 定")])],1)]),i("div",{staticClass:"add-channel-visible"},[i("el-dialog",{attrs:{visible:e.addChannelVisible,"close-on-click-modal":!1,title:e.id?"编辑渠道":"添加渠道",width:"500px"},on:{"update:visible":function(t){e.addChannelVisible=t},close:e.close}},[i("el-form",{ref:"form",attrs:{model:e.form,"label-width":"80px",rules:e.rules}},[i("el-form-item",{attrs:{label:"渠道名称",prop:"name"}},[i("el-input",{staticStyle:{width:"360px"},attrs:{"show-word-limit":"",maxlength:e.MAX_INPUT_LENGTH,placeholder:"请填写渠道名称,方便标记使用"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.addChannelVisible=!1}}},[e._v("取 消")]),i("RequestButton",{attrs:{type:"primary","button-type":"submit","request-method":e.submit}},[e._v(e._s(e.id?"保存":"生成渠道链接")+" ")])],1)],1)],1)],1)},n=[],r=i("c7eb"),s=i("1da1"),o=(i("b0c0"),i("d3b7"),i("b66d")),l=i("dd70"),c=i("e77d"),u=i("f9d1"),d=i("52a9"),p=i("cf45"),f=32,A={components:{RightContainer:o["a"],EmptyDefaultIcon:c["a"],RequestButton:d["a"]},props:{visible:{type:Boolean,default:!1},radarId:{type:String,default:""},roleKey:{type:Boolean,default:!0}},data:function(){return{query:{name:"",pageNum:l["M"],pageSize:l["Ic"],radarId:this.radarId},loading:!1,list:[],total:0,form:{name:""},rules:{name:[{required:!0,message:"请输入渠道名称",trigger:"blur"}]},addChannelVisible:!1,MAX_INPUT_LENGTH:f,id:"",hasRole:this.roleKey}},computed:{Pvisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}}},watch:{radarId:function(e){this.query.radarId=e},roleKey:function(e){this.hasRole=e},visible:function(e){e&&this.getList(1)}},created:function(){},methods:{getList:function(e){var t=this;e&&(this.query.pageNum=e),this.loading=!0,Object(u["l"])(this.query).then((function(e){var i=e.rows,a=e.total;t.list=i,t.total=a,t.loading=!1})).catch((function(){t.loading=!1}))},submit:function(){var e=this;this.$refs["form"].validate((function(t){if(!t)return Object(p["i"])(e.$store,"submit");var i={radarId:e.radarId,name:e.form.name};e.id&&(i.id=e.id),(e.id?u["q"]:u["a"])(i).then((function(){e.addChannelVisible=!1,e.getList(e.id?null:1)})).finally((function(){Object(p["i"])(e.$store,"submit")}))}))},onSearch:function(){this.getList(1)},clear:function(e){e||this.getList(1)},handleDelete:function(e){var t=this;this.confirmModal({msg:"删除后,该渠道链接将失效,之前的统计数据也将被删除并不可恢复,是否继续?"},Object(s["a"])(Object(r["a"])().mark((function i(){return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:Object(u["c"])({idList:[e.id]}).then((function(e){t.getList()}));case 1:case"end":return i.stop()}}),i)}))))},editChannel:function(e){var t;null===(t=this.$refs)||void 0===t||null===(t=t.form)||void 0===t||t.resetFields(),this.form.name=e.name,this.id=e.id,this.addChannelVisible=!0},close:function(){this.form.name="",this.id=""}}},h=A,m=(i("b8ecd"),i("2877")),g=Object(m["a"])(h,a,n,!1,null,"ff0a855a",null);t["default"]=g.exports},9429:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"avatar-container"},[i("img",{staticClass:"img-circle img-lg",attrs:{src:e.avatarUrl},on:{error:e.loadAvatarError}}),!e.$store.state.serverInfo.dkCorp&&e.$store.state.user.isSuperAdmin?i("el-button",{on:{click:function(t){return e.editCropper()}}},[i("i",{staticClass:"iconfont icon-export"}),e._v("更换头像")]):e._e()],1),i("TailoringImg",{ref:"tailoringImg",attrs:{title:e.title,visible:e.open,"upload-img-url":e.avatarUrl,"upload-field-name":"avatarfile","use-blob":!0},on:{"update:visible":function(t){e.open=t},"update:uploadImgUrl":function(t){e.avatarUrl=t},"update:upload-img-url":function(t){e.avatarUrl=t},handleUpload:e.handleUpload}})],1)},n=[],r=i("4360"),s=i("c0c7"),o=i("af31"),l=i("3cb6"),c={components:{TailoringImg:o["a"]},props:{user:{type:Object,default:function(){return{}}}},data:function(){return{open:!1,title:"修改头像",avatarUrl:r["a"].getters.avatar||l}},methods:{editCropper:function(){this.open=!0},modalOpened:function(){this.visible=!0},loadAvatarError:function(){this.avatarUrl=l},handleUpload:function(e){var t=this;Object(s["d"])(e).then((function(e){t.open=!1;var i=e.imgUrl,a=t.$refs.tailoringImg;a.options.img===i?(t.avatarUrl="",r["a"].commit("SET_AVATAR",""),setTimeout((function(){t.avatarUrl=i,r["a"].commit("SET_AVATAR",i)}),100)):(a.options.img=i,t.avatarUrl=i,r["a"].commit("SET_AVATAR",i)),t.msgSuccess("修改成功"),a.visible=!1}))}}},u=c,d=(i("dfe1"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"ffae9e76",null);t["default"]=p.exports},9489:function(e,t,i){"use strict";i("c615")},"94c0":function(e,t,i){"use strict";i("7f7d")},"94d2":function(e,t,i){},"94d6":function(e,t,i){},"94eb":function(e,t,i){e.exports=i.p+"static/img/客户群移动3.a7d3da81.png"},9501:function(e,t,i){e.exports=i.p+"static/img/friendsSelf-step3-3.1dc50307.jpg"},"951d":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",e._g(e._b({staticClass:"config-offAccount-modal",attrs:{title:"配置公众号",width:"560px"},on:{close:e.onClose}},"el-dialog",e.$attrs,!1),e.$listeners),[i("el-alert",{attrs:{title:"由于雷达库功能需要获取客户身份标识,需要绑定公众号方可使用该功能",type:"warning",closable:!1}}),i("div",{staticClass:"check-offAccount"},[i("el-form",{ref:"elForm",attrs:{model:e.formData,rules:e.rules,size:"medium","label-width":"100px"}},[i("el-form-item",{attrs:{label:"使用公众号",prop:"appId"}},[i("el-select",{attrs:{placeholder:"请选择公众号",clearable:""},model:{value:e.formData.appId,callback:function(t){e.$set(e.formData,"appId",t)},expression:"formData.appId"}},[e._l(e.offAccountList,(function(e){return i("el-option",{key:e.officialAccountAppId,attrs:{label:e.nickName,value:e.officialAccountAppId}})})),i("template",{slot:"empty"},[i("div",{staticClass:"select-empty"},[i("EmptyDefaultIcon",{attrs:{"btn-text":"授权公众号","btn-click":e.impower,loading:e.impowerLoading,"btn-permi-key":["officialAccountsManager:set"]}})],1)])],2)],1)],1)],1),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.close}},[e._v("取消")]),i("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.handelConfirm}},[e._v("确定")])],1)],1)},n=[],r=(i("d3b7"),i("e77d")),s=i("f9d1"),o=i("689a"),l={components:{EmptyDefaultIcon:r["a"]},inheritAttrs:!1,props:{getOffAccount:{type:Function,default:function(){}},offAccountList:{type:Array,default:function(){return[]}}},data:function(){return{loading:!1,impowerLoading:!1,formData:{appId:void 0},rules:{appId:[{required:!0,message:"请选择公众号",trigger:"blur"}]}}},methods:{setInitAppId:function(){var e;this.formData.appId=null===(e=this.offAccountList[0])||void 0===e?void 0:e.officialAccountAppId},onClose:function(){this.$refs["elForm"].resetFields()},close:function(){this.$emit("update:visible",!1)},handelConfirm:function(){var e=this;this.$refs.elForm.validate((function(t){t&&(e.loading=!0,Object(s["p"])({appId:e.formData.appId}).then((function(t){e.getOffAccount(),e.close()})).finally((function(){e.loading=!1})))}))},impower:function(){var e=this;this.impowerLoading=!0,Object(o["b"])({}).then((function(e){window.open(e.msg)})).finally((function(){e.impowerLoading=!1}))}}},c=l,u=(i("d394"),i("2877")),d=Object(u["a"])(c,a,n,!1,null,"80633210",null);t["default"]=d.exports},9543:function(e,t,i){"use strict";i.d(t,"c",(function(){return r})),i.d(t,"d",(function(){return s})),i.d(t,"a",(function(){return o})),i.d(t,"g",(function(){return l})),i.d(t,"b",(function(){return c})),i.d(t,"f",(function(){return u})),i.d(t,"e",(function(){return d}));var a=i("b775"),n=window.CONFIG.services.wecom+"/wordsGroup";function r(e){return Object(a["a"])({url:n+"/listOfWords",method:"post",data:e})}function s(e){return Object(a["a"])({url:n+"/getUrlContent",method:"get",params:e})}function o(e){return Object(a["a"])({url:n+"/add",method:"post",data:e})}function l(e){return Object(a["a"])({url:n+"/update",method:"post",data:e})}function c(e){return Object(a["a"])({url:n+"/delete",method:"delete",data:e})}function u(e){return Object(a["a"])({url:n+"/updateCategory",method:"post",data:e})}function d(e){return Object(a["a"])({url:n+"/importWords",method:"post",data:e})}},"957b":function(e,t,i){"use strict";i("79cf")},"95ad":function(e,t,i){},9690:function(e,t,i){"use strict";i("e13b")},"96d5":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"查看上下文",visible:e.Pvisible,"append-to-body":"",width:"700px"},on:{"update:visible":function(t){e.Pvisible=t}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"msg-list"},[i("chat",{ref:"msgList",attrs:{"all-chat":e.allChat,"chat-data":e.chat,"chat-type":e.chatType,"show-avatar":""}})],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("span",{staticClass:"check-context-footer"},[i("div",{staticClass:"check-context-footer-button"},[i("el-button",{attrs:{disabled:e.prevButtonDisable},on:{click:function(t){return e.pageChange(!1)}}},[i("i",{staticClass:"el-icon-arrow-left"}),i("span",[e._v("上一页")])]),i("el-button",{attrs:{disabled:e.nextButtonDisable},on:{click:function(t){return e.pageChange(!0)}}},[i("span",[e._v("下一页")]),i("i",{staticClass:"el-icon-arrow-right ml5"})])],1),i("el-button",{on:{click:function(t){e.Pvisible=!1}}},[e._v("关闭")])],1)])])},n=[],r=i("5530"),s=(i("d3b7"),i("613f")),o=i("cc48"),l=20,c={name:"CheckContext",components:{chat:s["default"]},props:{visible:{type:Boolean,default:!1},checkContextQuery:{type:Object,default:function(){}},chatType:{type:String,default:"employee"}},data:function(){return{allChat:[],chat:{},loading:!1,prevButtonDisable:!1,nextButtonDisable:!1}},computed:{Pvisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}}},watch:{visible:function(e){if(e){var t=this.checkContextQuery.fromId;this.chat={fromId:t},this.getList(Object(r["a"])(Object(r["a"])({},this.checkContextQuery),{},{type:null}),!0)}else this.allChat=[],this.chat={},this.prevButtonDisable=!1,this.nextButtonDisable=!1}},methods:{pageChange:function(e){var t=Object(r["a"])(Object(r["a"])({},this.checkContextQuery),{},{type:e?"after":"before",msgId:e?this.allChat[this.allChat.length-1].msgId:this.allChat[0].msgId});this.getList(t,!1,e?"after":"before")},getList:function(e,t,i){var a=this;this.loading=!0,o["a"].viewContext(e).then((function(e){if(!t&&!e.rows.length)return a["after"===i?"nextButtonDisable":"prevButtonDisable"]=!0,a.msgInfo("没有更多数据");a.prevButtonDisable=!1,a.nextButtonDisable=!1,a.allChat=e.rows,e.total<l&&!t?a["after"===i?"nextButtonDisable":"prevButtonDisable"]=!0:a["after"===i?"prevButtonDisable":"nextButtonDisable"]=!1,a.$nextTick((function(){a.$refs["msgList"].initScollTop()}))})).finally((function(){a.loading=!1}))}}},u=c,d=(i("52ee"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"937ae66e",null);t["default"]=p.exports},"96fa":function(e,t,i){},"972f":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"employ"},[i("el-row",[i("el-col",{staticClass:"borderR",attrs:{span:6}},[i("div",{staticClass:"hd_box",staticStyle:{height:"92px"}},[i("div",{staticClass:"hd_name"},[e._v("成员")]),i("div",{staticClass:"paddingT10"},[i("el-input",{attrs:{placeholder:"请输入内容","prefix-icon":"el-icon-search"},model:{value:e.employName,callback:function(t){e.employName=t},expression:"employName"}})],1)]),i("div",{ref:"employTree",staticClass:"ct_box ct_boxFirst"},[i("UserTree",e._b({ref:"userTree",staticClass:"filter-tree conversation-user-tree",attrs:{"filter-text":e.employName,"click-node":e.clickNode,"is-only-click":""},on:{updateUserList:e.handleNodeClick}},"UserTree",e.$attrs,!1))],1)]),i("el-col",{staticClass:"borderR",attrs:{span:6}},[i("div",{staticClass:"hd_box"},[i("div",{staticClass:"hd_name"},[e._v(e._s(e.talkName))])]),i("div",{staticClass:"hd_tabs"},[i("el-tabs",{staticClass:"tabs-div",on:{"tab-click":e.loadContactList},model:{value:e.contactTabType,callback:function(t){e.contactTabType=t},expression:"contactTabType"}},[e.contactTabType!==e.CONTACT_TYPE_GROUP?i("div",{staticClass:"search"},[i("el-input",{attrs:{placeholder:"请输入聊天对象昵称",clearable:"","prefix-icon":"el-icon-search"},on:{clear:e.loadContactList},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(){e.query.pageNum=1,e.loadContactList()}()}},model:{value:e.query.chatName,callback:function(t){e.$set(e.query,"chatName",t)},expression:"query.chatName"}})],1):e._e(),e._l(e.contactTypeTabs,(function(t){return i("el-tab-pane",{key:t.value,staticClass:"hd-tab-pane",attrs:{label:t.label,name:t.value}},[e.contactTabType===e.CONTACT_TYPE_INNER?i("insideList",{attrs:{"person-list":e.personList,loading:e.loading},on:{chatFn:e.chatFn}}):e.contactTabType===e.CONTACT_TYPE_EXTERNAL?i("list",{attrs:{"person-list":e.personList,loading:e.loading},on:{chatFn:e.chatFn}}):i("grouplist",{attrs:{"person-list":e.personList,loading:e.loading},on:{groupFn:e.groupFn}})],1)}))],2),e.personList.length?i("div",{staticClass:"footer-button"},[i("el-button",{staticClass:"mr10",attrs:{size:"mini",disabled:e.query.pageNum===e.DEFAULT_PAGE_NUM,type:"primary",plain:"",icon:"el-icon-arrow-left"},on:{click:function(t){return e.pageChange(!1)}}},[e._v(" 上一页 ")]),i("el-button",{staticClass:"ml10",attrs:{size:"mini",disabled:e.personList.length<e.query.pageSize,type:"primary",plain:""},on:{click:function(t){return e.pageChange(!0)}}},[i("span",[e._v("下一页")]),i("i",{staticClass:"el-icon-arrow-right"})])],1):e._e()],1)]),i("el-col",{staticClass:"chat-content-col",attrs:{span:12}},[i("div",{staticClass:"hd_box"},[i("div",{staticClass:"hd_name"},[e.chat.receiveName?i("span",[e._v(" 与"+e._s(e.chat.receiveName)+"的聊天")]):e._e()])]),i("div",{staticClass:"hd_tabthree"},[i("el-tabs",{staticClass:"chat-content-tabs",on:{"tab-click":function(t){return e.loadMessageList()}},model:{value:e.msgTabType,callback:function(t){e.msgTabType=t},expression:"msgTabType"}},[i("el-tab-pane",{attrs:{label:"全部",name:e.MSG_TYPE_ALL}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.contentLoading,expression:"contentLoading"}],staticClass:"ct_box"},[e.allChatStack.length>1?i("div",{staticClass:"chatrecord-title"},[i("el-button",{attrs:{type:"text",size:"medium"},on:{click:function(){return e.allChatStack.pop()}}},[i("svg",{staticClass:"icon-restore",attrs:{width:18,height:18}},[i("use",{attrs:{href:"#icon-restore"}})])]),e._v(" "+e._s(e.chatReCordShowTitle(e.currentChat.title))+" ")],1):i("div",{staticClass:"hds_time"},[i("el-date-picker",{attrs:{type:"daterange",format:"yyyy-MM-dd",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions},on:{change:e.loadMessageList},model:{value:e.takeTime,callback:function(t){e.takeTime=t},expression:"takeTime"}})],1),i("chat",{attrs:{"all-chat":e.allChat,"chat-data":e.chat,"chat-type":"employee"},on:{openChatrecord:e.handleOpenChatrecord}}),e.allChat&&e.allChat.length>=1?i("el-pagination",{staticClass:"pagination",attrs:{background:"",layout:"prev, pager, next","current-page":e.currentPage,total:e.total},on:{"current-change":e.currentChange}}):e._e()],1)]),i("el-tab-pane",{attrs:{label:"图片",name:e.MSG_TYPE_IMG}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.contentLoading,expression:"contentLoading"}],staticClass:"ct_box"},[i("div",{staticClass:"hds_time"},[i("el-date-picker",{attrs:{type:"daterange",format:"yyyy-MM-dd",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions},on:{change:e.loadMessageList},model:{value:e.takeTime,callback:function(t){e.takeTime=t},expression:"takeTime"}})],1),i("chat",{attrs:{"all-chat":e.allChat,"chat-data":e.chat,"chat-type":"employee"}}),e.allChat&&e.allChat.length>=1?i("el-pagination",{staticClass:"pagination",attrs:{background:"",layout:"prev, pager, next",total:e.total,"current-page":e.currentPage},on:{"current-change":e.currentChange}}):e._e()],1)]),i("el-tab-pane",{attrs:{label:"视频",name:e.MSG_TYPE_VIDEO}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.contentLoading,expression:"contentLoading"}],staticClass:"ct_box"},[i("div",{staticClass:"hds_time"},[i("el-date-picker",{attrs:{type:"daterange",format:"yyyy-MM-dd",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions},on:{change:e.loadMessageList},model:{value:e.takeTime,callback:function(t){e.takeTime=t},expression:"takeTime"}})],1),i("chat",{attrs:{"all-chat":e.allChat,"chat-data":e.chat,"chat-type":"employee"}}),e.allChat&&e.allChat.length>=1?i("el-pagination",{staticClass:"pagination",attrs:{background:"",layout:"prev, pager, next",total:e.total,"current-page":e.currentPage},on:{"current-change":e.currentChange}}):e._e()],1)]),i("el-tab-pane",{attrs:{label:"文件",name:e.MSG_TYPE_FILE}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.contentLoading,expression:"contentLoading"}],staticClass:"ct_box"},[i("div",{staticClass:"hds_time"},[i("el-date-picker",{attrs:{type:"daterange",format:"yyyy-MM-dd",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions},on:{change:e.loadMessageList},model:{value:e.takeTime,callback:function(t){e.takeTime=t},expression:"takeTime"}})],1),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.allChat}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{text:"暂无聊天记录"}})],1),i("el-table-column",{attrs:{label:"类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.msgType||t.row.msgtype)+" ")]}}])}),i("el-table-column",{attrs:{label:"名称"},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.file?[e._v(" "+e._s(t.row.file.filename||t.row.file.fileName)+" ")]:void 0}}],null,!0)}),i("el-table-column",{attrs:{label:"大小"},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.file?[e._v(" "+e._s(e.filterSize(t.row.file.fileSize||t.row.file.filesize))+" ")]:void 0}}],null,!0)}),i("el-table-column",{attrs:{prop:"action",label:"来源"},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.fromInfo?[e._v(" "+e._s(t.row.fromInfo&&t.row.fromInfo.name)+" ")]:void 0}}],null,!0)}),i("el-table-column",{attrs:{prop:"action",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.download(t.row)}}},[e._v("下载")])]}}])})],2)],1)]),i("el-tab-pane",{attrs:{label:"图文链接",name:e.MSG_TYPE_LINK}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.contentLoading,expression:"contentLoading"}],staticClass:"ct_box"},[i("div",{staticClass:"hds_time"},[i("el-date-picker",{attrs:{type:"daterange",format:"yyyy-MM-dd",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions},on:{change:e.loadMessageList},model:{value:e.takeTime,callback:function(t){e.takeTime=t},expression:"takeTime"}})],1),i("chat",{attrs:{"all-chat":e.allChat,"chat-data":e.chat,"chat-type":"employee"}}),e.allChat&&e.allChat.length>=1?i("el-pagination",{staticClass:"pagination",attrs:{background:"",layout:"prev, pager, next",total:e.total,"current-page":e.currentPage},on:{"current-change":e.currentChange}}):e._e()],1)]),i("el-tab-pane",{attrs:{label:"语音通话",name:e.MSG_TYPE_VOICE}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.contentLoading,expression:"contentLoading"}],staticClass:"ct_box"},[i("div",{staticClass:"hds_time"},[i("el-date-picker",{attrs:{type:"daterange",format:"yyyy-MM-dd",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions},on:{change:e.loadMessageList},model:{value:e.takeTime,callback:function(t){e.takeTime=t},expression:"takeTime"}})],1),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.allChat}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{text:"暂无聊天记录"}})],1),i("el-table-column",{attrs:{prop:"date",label:"发起人"},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.fromInfo?[e._v(" "+e._s(t.row.fromInfo.name)+" ")]:void 0}}],null,!0)}),i("el-table-column",{attrs:{prop:"name",label:"通话时间"},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.msgtime?[e._v(" "+e._s(e.parseTime(t.row.msgtime||t.row.msgTime))+" ")]:void 0}}],null,!0)}),i("el-table-column",{attrs:{prop:"address",label:"时长"},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.voice?[e._v(" "+e._s(t.row.voice.play_length||t.row.voice.playLength)+"s ")]:void 0}}],null,!0)}),i("el-table-column",{attrs:{prop:"address",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.voiceLook(t.row.voice)}}},[e._v("下载")])]}}])})],2)],1)])],1)],1)])],1)],1)},n=[],r=i("5530"),s=i("ade3"),o=(i("a4d3"),i("e01a"),i("d81d"),i("fb6a"),i("b0c0"),i("4fadc"),i("b64b"),i("d3b7"),i("ac1f"),i("00b4"),i("466d"),i("3bfa")),l=i("613f"),c=i("e0d6"),u=i("cc67"),d=i("379b"),p=i("cc48"),f=i("cf45"),A=i("dd70"),h=i("e77d"),m="0",g="1",v="2",b=Object(s["a"])(Object(s["a"])(Object(s["a"])({},m,"内部联系人"),g,"外部联系人"),v,"群聊"),y=function(e,t){return{msgType:"text",msgTime:e,text:{content:t}}},_=function(e,t){return{msgType:"mixed",msgTime:e,mixed:t}},w=function(e){return e.msgTime||e.msgtime},C={components:{list:o["default"],grouplist:u["default"],insideList:c["default"],chat:l["default"],UserTree:d["a"],EmptyDefaultIcon:h["a"]},data:function(){return{employId:"",employName:"",talkName:"",contactTypeTabs:Object.entries(b).map((function(e){return{value:e[0],label:e[1]}})),contactTabType:g,msgTabType:A["nc"],takeTime:"",chat:{},personList:[],loading:!1,allChatStack:[],CONTACT_TYPE_INNER:m,CONTACT_TYPE_EXTERNAL:g,MSG_TYPE_ALL:A["nc"],MSG_TYPE_IMG:A["pc"],MSG_TYPE_FILE:A["oc"],MSG_TYPE_LINK:A["qc"],MSG_TYPE_VOICE:A["sc"],MSG_TYPE_VIDEO:A["rc"],DEFAULT_PAGE_NUM:A["M"],CONTACT_TYPE_GROUP:v,contentLoading:!1,query:{pageNum:A["M"],pageSize:A["Mc"],chatName:""},clickNode:{}}},computed:{currentChat:function(){return this.allChatStack[this.allChatStack.length-1]},allChat:function(){var e;return null===(e=this.currentChat)||void 0===e?void 0:e.allChat},total:function(){var e;return null===(e=this.currentChat)||void 0===e?void 0:e.total},departmentInfo:function(){return this.$store.state.departmentInfo},currentPage:{get:function(){var e,t;return null!==(e=null===(t=this.currentChat)||void 0===t?void 0:t.currentPage)&&void 0!==e?e:1},set:function(e){this.currentChat&&(this.currentChat.currentPage=e)}}},beforeDestroy:function(){sessionStorage.removeItem("list"),sessionStorage.removeItem("insideList")},methods:{filterSize:f["x"],voiceLook:function(e){Object(f["v"])(e.attachment)},download:function(e){Object(f["w"])(e.file.attachment,e.file.fileName||e.file.filename)},pageChange:function(e){e?this.query.pageNum++:this.query.pageNum--,this.loadContactList()},currentChange:function(e){this.currentPage=e,this.allChatStack.length<=1&&this.loadMessageList(!0)},loadMessageList:function(e){var t=this;if(this.chat.fromId&&(!0!==e&&(this.currentPage=1),this.chat)){var i="";i=this.msgTabType===A["nc"]?"":A["mc"][this.msgTabType];var a={fromId:this.employId,msgType:i,pageSize:A["Ic"],pageNum:this.currentPage,beginTime:this.takeTime?Object(f["T"])(this.takeTime[0]):"",endTime:this.takeTime?Object(f["T"])(this.takeTime[1]):""};this.contactTabType===v?a.roomId=this.chat.roomId:a.receiveId=this.chat.receiveId,this.contentLoading=!0,this.contactTabType===v?p["a"].chatGrounpList(a).then((function(e){t.allChatStack=[{allChat:e.data.list,total:+e.data.total,currentPage:t.currentPage}]})).finally((function(){t.contentLoading=!1})):p["a"].chatList(a).then((function(e){t.allChatStack=[{allChat:e.data.list,total:+e.data.total,currentPage:t.currentPage}]})).finally((function(){t.contentLoading=!1}))}},chatFn:function(e){var t;(this.chat=e,e)&&(this.chat.receiveName=e.receiveWeCustomer?e.receiveWeCustomer.name:(null===(t=e.receiveWeUser)||void 0===t?void 0:t.name)||"",this.loadMessageList())},groupFn:function(e){this.chat=e,e.roomId&&(this.chat.receiveName=e.roomInfo.groupName),this.loadMessageList("")},loadContactList:function(){var e=this;if(this.employId){this.loading=!0,this.personList=[];var t=Object(r["a"])({fromId:this.employId,searchType:this.contactTabType},this.query);this.contactTabType===v&&(t.chatName=""),p["a"].getTree(t).then((function(t){var i=t.rows;e.personList=i})).finally((function(){e.loading=!1}))}},handleNodeClick:function(e){if(this.clickNode=e,!e.userId)return this.clickNode={},void this.$refs["employTree"].classList.remove("ct_box_color");var t=document.querySelector('[data-userid="'.concat(this.dealUserId(e.userId),'"]'));t&&this.$refs["employTree"].classList.add("ct_box_color"),this.talkName=e.name,this.employId=e.userId,this.query.pageNum=A["M"],this.query.chatName="",this.loadContactList()},dealUserId:function(e){if(!e)return e;var t=/[a-zA-Z]/,i=e.match(t);return i?e.slice(i.index):e},chatReCordShowTitle:function(e){return e?/的聊天记录$/.test(e)?e:"".concat(e,"的聊天记录"):"聊天记录"},handleOpenChatrecordData:function(e){switch(e.type){case"chatrecord":var t=JSON.parse(e.content),i=t.item?t:{title:"",item:t};return{msgType:"chatrecord",msgTime:w(e),chatReCord:i};case"ChatRecordText":return{msgType:"text",msgTime:w(e),text:JSON.parse(e.content)};case"ChatRecordLink":var a=JSON.parse(e.content),n=a.link_url,r=a.image_url,s=a.description,o=a.title;return{msgType:"link",msgTime:w(e),link:{linkUrl:n,imageUrl:r,title:o,description:s}};case"ChatRecordLocation":return{msgType:"location",msgTime:w(e),location:JSON.parse(e.content)};case"ChatRecordMixed":return _(w(e),JSON.parse(e.content));case"ChatRecordImage":var l=JSON.parse(e.content),c=l.attachment;return c?{msgType:"image",msgTime:w(e),image:{attachment:c}}:y(w(e),"[图片]");case"ChatRecordVideo":var u=JSON.parse(e.content),d=u.attachment;return d?{msgType:"video",msgTime:w(e),video:{attachment:d}}:y(w(e),"[视频]");case"ChatRecordFile":var p=JSON.parse(e.content),f=p.filename,A=p.attachment;return{msgType:"file",msgTime:w(e),file:{fileName:f,attachment:A}};case"ChatRecordSphFeed":var h=JSON.parse(e.content);return{msgType:"sphfeed",msgTime:w(e),sphFeed:{feedDesc:h.feed_desc}};default:return y(w(e),"[未知类型消息]")}},handleOpenChatrecord:function(e){var t=e.title,i=e.item,a=i.map(this.handleOpenChatrecordData),n={title:t,currentPage:1,total:a.length,get allChat(){var e=(this.currentPage-1)*A["Ic"];return a.slice(e,e+A["Ic"])}};this.allChatStack.push(n)}}},x=C,k=(i("1af5"),i("2877")),T=Object(k["a"])(x,a,n,!1,null,"5aa05d6a",null);t["default"]=T.exports},9815:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"m",(function(){return s})),i.d(t,"j",(function(){return o})),i.d(t,"b",(function(){return l})),i.d(t,"c",(function(){return c})),i.d(t,"h",(function(){return u})),i.d(t,"g",(function(){return d})),i.d(t,"k",(function(){return p})),i.d(t,"i",(function(){return f})),i.d(t,"e",(function(){return A})),i.d(t,"f",(function(){return h})),i.d(t,"l",(function(){return m})),i.d(t,"d",(function(){return g}));var a=i("b775"),n=window.CONFIG.services.wecom+"/sop";function r(e){return Object(a["a"])({url:n,method:"post",data:e})}function s(e){return Object(a["a"])({url:n+"/update",method:"put",data:e})}var o=function(e){return Object(a["a"])({url:n+"/list",method:"get",params:e})};function l(e){return Object(a["a"])({url:n+"/batchSwitch",method:"put",data:e})}function c(e){return Object(a["a"])({url:n+"/del",method:"delete",data:e})}var u=function(e){return Object(a["a"])({url:n+"/listOfDetail",method:"get",params:e})},d=function(e){return Object(a["a"])({url:n+"/count",method:"get",params:e})},p=function(e){return Object(a["a"])({url:n+"/rules",method:"get",params:e})},f=function(e){return Object(a["a"])({url:n+"/users",method:"get",params:e})},A=function(e){return Object(a["a"])({url:n+"/detail/list/customer",method:"get",params:e})},h=function(e){return Object(a["a"])({url:n+"/detail/list/cycle",method:"get",params:e})},m=function(e){return Object(a["a"])({url:n+"/detail/list/timing",method:"get",params:e})},g=function(e){return Object(a["a"])({url:n+"/editUser",method:"put",data:e})}},"983e":function(e,t,i){"use strict";i("f22f")},9873:function(e,t,i){"use strict";i("45bd")},"989b":function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));i("c19f"),i("ace4"),i("d3b7"),i("ac1f"),i("00b4"),i("3ca3"),i("5319"),i("1276"),i("5cc6"),i("907a"),i("9a8c"),i("a975"),i("735e"),i("c1ac"),i("d139"),i("3a7b"),i("d5d6"),i("82f8"),i("e91f"),i("60bd"),i("5f96"),i("3280"),i("3fcc"),i("ca91"),i("25a1"),i("cd26"),i("3c5d"),i("2954"),i("649e"),i("219c"),i("170b"),i("b39a"),i("72f7"),i("fa9e"),i("77d9"),i("ddb0"),i("2b3d"),i("bf19"),i("9861");var a=i("5c96"),n=void 0,r=function(e,t,i){var s=window,o="application/octet-stream",l=i||o,c=e,u=!t&&!i&&c,d=document.createElement("a"),p=function(e){return String(e)},f=s.Blob||s.MozBlob||s.WebKitBlob||p,A=t||"download",h="",m="";if(f=f.call?f.bind(s):Blob,"true"===String(n)&&(c=[c,l],l=c[0],c=c[1]),u&&u.length<2048){A=u.split("/").pop().split("?")[0],A=decodeURIComponent(A),d.href=u;var g=new XMLHttpRequest;return g.open("GET",u,!0),g.responseType="blob",g.onload=function(e){r(e.target.response,A,o)},setTimeout((function(){g.send()}),0),g}if(/^data\:[\w+\-]+\/[\w+\-]+[, ]/.test(c)){if(!(c.length>2096103.424&&f!==p))return navigator.msSaveBlob?navigator.msSaveBlob(v(c),A):b(c);c=v(c),l=c.type||o}function v(e){var t=e.split(/[: ,]/),i=t[1],a="base64"===t[2]?atob:decodeURIComponent,n=a(t.pop()),r=n.length,s=0,o=new Uint8Array(r);for(s;s<r;++s)o[s]=n.charCodeAt(s);return new f([o],{type:i})}function b(e,t){if("download"in d)return d.href=e,d.setAttribute("download",A),d.className="download-js-link",d.innerHTML="downloading...",d.style.display="none",document.body.appendChild(d),setTimeout((function(){d.click(),document.body.removeChild(d),!0===t&&setTimeout((function(){s.URL.revokeObjectURL(d.href)}),250)}),66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return e=e.replace(/^data:([\w\/\-\+]+)/,o),window.open(e)||a["MessageBox"].$confirm("Use Save As... to download, then click back to return to this page.","Displaying New Document",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){location.href=e})),!0;var i=document.createElement("iframe");document.body.appendChild(i),t||(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,o)),i.src=e,setTimeout((function(){document.body.removeChild(i)}),333)}if(h=c instanceof f?c:new f([c],{type:l}),navigator.msSaveBlob)return navigator.msSaveBlob(h,A);if(s.URL)b(s.URL.createObjectURL(h),!0);else{if("string"===typeof h||h.constructor===p)try{return b("data:"+l+" base64,"+s.btoa(h))}catch(y){return b("data:"+l+","+encodeURIComponent(h))}m=new FileReader,m.onload=function(){b(this.result)},m.readAsDataURL(h)}return!0}},"98be":function(e,t,i){"use strict";i("df7e")},"98ed":function(e,t,i){},"98f3":function(e,t,i){},"98f6":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"add-sop-page wrap"},[i("ReturnPage",{staticClass:"wrap-head",attrs:{query:{sopType:this.$route.query.sopType},path:e.returnPath}}),i("div",{staticClass:"wrap-body"},[e.dealDescription().desc?i("el-alert",{attrs:{title:"功能说明",type:"info",description:e.dealDescription().desc,"show-icon":"",closable:!1}}):e._e(),e.showBirthdayTip?i("el-alert",{staticClass:"mt10",attrs:{title:"当前企业未启用客户的“出生日期”字段,无法使用该功能,请联系系统管理员前往【客户设置】启用“出生日期”",type:"warning","show-icon":"",closable:!1}}):e._e(),i("div",{staticClass:"wrap-body-form"},[i("el-form",{ref:"form",staticClass:"form",staticStyle:{width:"100%"},attrs:{model:e.sopForm,"label-width":"100px",rules:e.rules}},[i("p",{staticClass:"config-title"},[e._v("基础设置")]),i("el-form-item",{attrs:{label:(e.sopType===e.SOP_TYPE["groupCalendar"]?"日历":"SOP")+"名称",prop:"name"}},[i("el-input",{staticStyle:{width:"432px"},attrs:{maxlength:"32","show-word-limit":"",placeholder:"请填写"+(e.sopType===e.SOP_TYPE["groupCalendar"]?"日历":"SOP")+"使用场景,方便员工理解并执行",clearable:""},model:{value:e.sopForm.name,callback:function(t){e.$set(e.sopForm,"name",t)},expression:"sopForm.name"}})],1),[e.SOP_TYPE["newCustomer"],e.SOP_TYPE["birthday"]].includes(e.sopType)?i("el-form-item",{attrs:{label:"使用员工",prop:"useStaff"}},[i("el-button",{staticClass:"mr10",attrs:{plain:"",icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.dialogVisibleSelectUser=!0}}},[e._v(e._s(e.customerScopeInfo.useStaff.length?"修改":"添加")+"成员")]),e._l(e.customerScopeInfo.useStaff,(function(t,a){return i("el-tag",{key:a,staticClass:"user-tag iaic",attrs:{closable:""},on:{close:function(t){return e.handleClose(e.customerScopeInfo.useStaff,a)}}},[i("TagUserShow",{attrs:{name:t.name,"show-icon":!t.userId}})],1)}))],2):e._e(),[e.SOP_TYPE["newCustomer"],e.SOP_TYPE["activity"],e.SOP_TYPE["birthday"]].includes(e.sopType)?i("el-form-item",{attrs:{label:"客户范围",prop:e.sopType===e.SOP_TYPE["activity"]?"range":""}},[i("CustomerScope",{staticClass:"form-range-area",staticStyle:{width:"713px"},attrs:{"customer-scope-info":e.customerScopeInfo},on:{updateCustomerScopeInfo:e.updateCustomerScopeInfo}})],1):e._e(),[e.SOP_TYPE["timing"],e.SOP_TYPE["cycle"]].includes(e.sopType)?i("el-form-item",{attrs:{label:"使用群聊",prop:"useGroup"}},[i("el-radio-group",{model:{value:e.sopForm.filterType,callback:function(t){e.$set(e.sopForm,"filterType",t)},expression:"sopForm.filterType"}},[i("el-radio",{attrs:{label:e.SPECIFIED_GROUP}},[e._v("指定群聊")]),i("el-radio",{attrs:{label:e.FILTER_GROUP}},[e._v("筛选群聊")])],1),e.sopForm.filterType===e.SPECIFIED_GROUP?i("div",{staticClass:"form-range-area"},[i("el-button",{attrs:{icon:"el-icon-plus"},on:{click:function(t){e.customerGroupVisible=!0}}},[e._v("添加群聊")]),e._l(e.groupList,(function(t,a){return i("el-tag",{key:a,staticClass:"user-tag",attrs:{closable:"",type:"info"},on:{close:function(t){return e.handleClose(e.groupList,a)}}},[e._v(e._s(t.groupName))])}))],2):e._e(),e.sopForm.filterType===e.FILTER_GROUP?i("div",{staticClass:"form-range-area"},[i("el-alert",{style:"width: 408px;margin-top:0;",attrs:{title:"同时满足以下条件的客户群执行SOP规则",type:"warning",closable:!1}}),i("el-form-item",{staticStyle:{padding:"10px 0 0"},attrs:{label:"群主","label-width":"68px"}},[i("el-button",{attrs:{icon:"el-icon-plus"},on:{click:function(){return e.openUserModal("选择群主")}}},[e._v(e._s(0===e.groupOwner.length?"添加成员":"修改成员"))]),e._l(e.groupOwner,(function(t,a){return i("el-tag",{key:a,staticClass:"user-tag",attrs:{closable:"",type:"info"},on:{close:function(t){return e.handleClose(e.groupOwner,a)}}},[e._v(e._s(t.name))])}))],2),i("el-form-item",{staticStyle:{padding:"8px 0"},attrs:{label:"群标签","label-width":"68px"}},[i("el-button",{attrs:{icon:"el-icon-plus"},on:{click:function(t){e.dialogVisibleSelectTag=!0}}},[e._v("添加标签")]),e._l(e.tagList,(function(t,a){return i("el-tag",{key:a,attrs:{type:"info",closable:""},on:{close:function(i){return e.deleteOneSelectTag("tag",t)}}},[e._v(e._s(t.name))])}))],2),i("el-form-item",{staticStyle:{padding:"10px 0"},attrs:{label:"创建时间","label-width":"68px"}},[i("el-date-picker",{staticStyle:{width:"320px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},model:{value:e.sopForm.sopFilter.addTime,callback:function(t){e.$set(e.sopForm.sopFilter,"addTime",t)},expression:"sopForm.sopFilter.addTime"}})],1)],1):e._e()],1):e._e(),e.sopType===e.SOP_TYPE["groupCalendar"]?i("el-form-item",{attrs:{label:"使用群聊",prop:"useGroup"}},[i("el-button",{staticClass:"mr10",attrs:{icon:"el-icon-plus"},on:{click:function(t){e.customerGroupVisible=!0}}},[e._v("添加群聊")]),e._l(e.groupList,(function(t,a){return i("el-tag",{key:a,staticClass:"user-tag",attrs:{closable:"",type:"info"},on:{close:function(t){return e.handleClose(e.groupList,a)}}},[e._v(e._s(t.groupName))])}))],2):e._e(),e.sopType===e.SOP_TYPE["cycle"]?i("el-form-item",{attrs:{label:"循环周期",prop:"cycleTime"}},[i("el-date-picker",{staticStyle:{width:"431px"},attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"],"picker-options":e.pickerOptions},model:{value:e.sopForm.sopFilter.cycleTime,callback:function(t){e.$set(e.sopForm.sopFilter,"cycleTime",t)},expression:"sopForm.sopFilter.cycleTime"}}),i("div",{staticStyle:{color:"#999"}},[e._v("超出循环周期,则SOP规则不生效")])],1):e._e(),i("p",{staticClass:"config-title mt20",staticStyle:{"margin-bottom":"16px"}},[e._v(" SOP规则"),i("span",[e._v(e._s(e.dealDescription().tip))])]),e.sopType===e.SOP_TYPE["groupCalendar"]?i("el-radio-group",{staticClass:"rule-type mb15",attrs:{size:"medium"},model:{value:e.ruleListType,callback:function(t){e.ruleListType=t},expression:"ruleListType"}},[i("el-radio-button",{attrs:{label:"calendar"}},[e._v("日历")]),i("el-radio-button",{attrs:{label:"timeline"}},[e._v("时间轴")])],1):e._e(),"timeline"===e.ruleListType?i("div",{staticClass:"rule-list"},[i("el-button",{attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.addRule}},[e._v("添加规则")]),i("SOPRuleList",{attrs:{"rule-list":e.sopForm.ruleList,"show-tool":!0,"sop-type":e.sopType},on:{handleEdit:e.handleEdit,handleDelRule:e.handleDelRule}})],1):e._e(),"calendar"===e.ruleListType?i("div",{staticClass:"calendar-div"},[i("SopCalendar",{attrs:{"rule-list":e.sopForm.ruleList},on:{handleClickCalendar:e.handleClickCalendar,handleEditCalendarItem:e.handleEditCalendarItem}})],1):e._e()],1)],1)],1),i("div",{staticClass:"wrap-footer"},[i("RequestButton",{attrs:{type:"primary","request-method":e.submit,"button-type":"submit"}},[e._v("保存")])],1),[e.SOP_TYPE["newCustomer"],e.SOP_TYPE["birthday"]].includes(e.sopType)?i("SelectUser",{attrs:{visible:e.dialogVisibleSelectUser,title:"选择使用员工","is-dep-linkage":"","is-only-leaf":!1,"selected-user-list":e.customerScopeInfo.useStaff},on:{"update:visible":function(t){e.dialogVisibleSelectUser=t},success:e.selectedUser}}):e._e(),[e.SOP_TYPE["timing"],e.SOP_TYPE["cycle"]].includes(e.sopType)?i("SelectUser",{attrs:{visible:e.dialogVisibleSelectGroupOwner,title:e.selectTitle,"is-only-leaf":!0,"selected-user-list":e.groupOwner},on:{"update:visible":function(t){e.dialogVisibleSelectGroupOwner=t},success:e.selectedUser}}):e._e(),i("AddRuleDrawer",{ref:"addRuleDrawer",attrs:{title:e.addRuleDrawerTitle,visible:e.addRuleDrawerVisible,"sop-form":e.sopForm},on:{"update:visible":function(t){e.addRuleDrawerVisible=t},"update:sopForm":function(t){e.sopForm=t},"update:sop-form":function(t){e.sopForm=t},handleDelRule:e.handleDelRule}}),i("CustomerGroupModal",{ref:"customer",attrs:{visible:e.customerGroupVisible,"append-to-body":"","close-on-click-modal":!1,"customer-group-id":e.sopForm.chatId,"cancel-click":e.cancelClick,"ok-click":e.handleSelectCustomerGroup,"customer-group-list":e.customerGroupList,"select-single":!1},on:{"update:visible":function(t){e.customerGroupVisible=t},"update:customerGroupList":function(t){e.customerGroupList=t},"update:customer-group-list":function(t){e.customerGroupList=t},callback:e.getSelectCustomerGroup}}),i("SelectTag",{attrs:{visible:e.dialogVisibleSelectTag,title:"选择标签",type:"search","info-msg":"筛选出被打上选中标签的客户群,执行SOP",selected:"filter"===e.tagType?e.filterTagList:e.tagList,"tag-type":"group"},on:{"update:visible":function(t){e.dialogVisibleSelectTag=t},success:e.submitSelectTag}})],1)},n=[],r=i("c7eb"),s=i("1da1"),o=i("2909"),l=i("5530"),c=(i("99af"),i("4de4"),i("7db0"),i("c740"),i("caad"),i("a15b"),i("d81d"),i("a434"),i("b0c0"),i("a9e3"),i("d3b7"),i("2532"),i("159b"),i("52a9")),u=i("aa50"),d=i("c958"),p=i("1612"),f=i("4063"),A=i("dd70"),h=i("3f68"),m=i("aada"),g=i("9815"),v=i("cf45"),b=i("c1df"),y=i.n(b),_=i("ed08"),w=i("e393"),C=i("eace"),x=i("515a"),k=0,T=1,S={name:"",components:{ReturnPage:u["a"],SelectUser:d["a"],AddRuleDrawer:p["default"],SOPRuleList:f["default"],CustomerGroupModal:h["default"],SelectTag:m["a"],SopCalendar:w["default"],RequestButton:c["a"],CustomerScope:C["default"],TagUserShow:x["a"]},props:{},provide:function(){return{sopInfo:this.sopInfo}},data:function(){var e=this,t=function(t,i,a){switch(e.sopForm.filterType){case k:if(0===e.groupList.length)return a(new Error("请设置使用群聊"));break;case T:var n,r;if((null===(n=e.groupOwner)||void 0===n||!n.length)&&!e.tagList.length&&(null===(r=e.sopForm.sopFilter)||void 0===r||null===(r=r.addTime)||void 0===r||!r.length))return a(new Error("请设置筛选群聊条件"));break}return a()},i=function(t,i,a){var n;return null!==(n=e.sopForm.sopFilter)&&void 0!==n&&null!==(n=n.cycleTime)&&void 0!==n&&n.length?a():a(new Error("请选择循环周期"))},a=function(t,i,a){return e.customerScopeInfo.useStaff.length?a():a(new Error("请设置员工"))},n=function(t,i,a){var n=e.customerScopeInfo,r=n.gender,s=n.tagList,o=n.filterTagList,l=n.addTime,c=n.useStaff,u=n.customPropertyList;return"number"===typeof r||s.length||o.length||l.length||c.length||u.filter((function(e){return e.value||e.optionValue})).length?a():a(new Error("请设置客户范围"))};return{rules:{name:[{required:!0,message:"请填写SOP名称",trigger:"blur"}],useStaff:[{type:"array",required:!0,validator:a,trigger:"change"}],range:[{type:"object",required:!0,validator:n,trigger:"change"}],useGroup:[{required:!0,validator:t,trigger:"blur"}],cycleTime:[{required:!0,validator:i,trigger:"blur"}]},SPECIFIED_GROUP:k,FILTER_GROUP:T,sopForm:{name:"",ruleList:[],filterType:k,genderType:"-1",sopFilter:{},sopCustomerFilter:{gender:null}},tagList:[],filterTagList:[],dialogVisibleSelectUser:!1,addRuleDrawerVisible:!1,sopInfo:{sopType:null},SOP_TYPE:A["ed"],groupList:[],groupOwner:[],dialogVisibleSelectGroupOwner:!1,customerGroupVisible:!1,customerGroupList:[],dialogVisibleSelectTag:!1,tagType:"tag",customPropertyList:[],addRuleDrawerTitle:"添加规则",removeList:[],selectTitle:"选择成员",pickerOptions:{disabledDate:function(e){return e.getTime()<Date.now()-A["Cc"]*A["Ec"]*A["tc"]}},ruleListType:"timeline",customerScopeInfo:{useStaff:[]}}},computed:{sopType:function(){return this.sopInfo.sopType},showBirthdayTip:function(){if(this.sopType!==A["ed"]["birthday"])return!1;var e=this.$store.state.customerProperty.customerProperList,t=e.find((function(e){return e.status&&"出生日期"===e.name}));return!t},returnPath:function(){var e;switch(this.sopType){case A["ed"]["newCustomer"]:case A["ed"]["activity"]:case A["ed"]["birthday"]:e="/operationsCenter/retainedConversion/customerSOP";break;case A["ed"]["timing"]:case A["ed"]["cycle"]:e="/operationsCenter/retainedConversion/groupSOP";break;case A["ed"]["groupCalendar"]:e="/operationsCenter/retainedConversion/groupCalendarSOP";break}return e}},created:function(){var e=this.$route.query;this.sopInfo.sopType=Number(e.sopType),[A["ed"]["activity"],A["ed"]["birthday"],A["ed"]["newCustomer"]].includes(this.sopInfo.sopType)&&Object(v["H"])(this.$store),this.sopInfo.sopType===A["ed"]["groupCalendar"]&&(this.ruleListType="calendar"),e.id&&this.getSopDetail(e.id)},beforeUpdate:function(){Object(v["k"])(this.$options.data().sopForm,this.sopForm)},mounted:function(){},methods:{submit:function(){var e=this;this.$refs["form"].validate((function(t){if(!e.sopForm.ruleList.length)return e.msgWarn("请设置SOP规则"),void Object(v["i"])(e.$store,"submit");if(t){var i=e.dealAddParams();e.sopForm.id?(e.removeList.length&&(i.delRuleList=e.removeList.map((function(e){return e.id}))),delete i.customerSopVOList,Object(g["m"])(i).then((function(){e.$store.commit("SET_ADD_FLAG",!1),e.msgSuccess("修改成功"),e.$router.push(e.returnPath+"?sopType="+e.sopType)})).finally((function(){Object(v["i"])(e.$store,"submit")}))):Object(g["a"])(i).then((function(){e.$store.commit("SET_ADD_FLAG",!0),e.msgSuccess("新增成功"),e.$router.push(e.returnPath+"?sopType="+e.sopType)})).finally((function(){Object(v["i"])(e.$store,"submit")}))}else Object(v["i"])(e.$store,"submit")}))},dealAddParams:function(){var e=Object(l["a"])({},this.sopForm),t=Object(l["a"])(Object(l["a"])({},e),{},{sopType:this.sopInfo.sopType});switch(this.sopType){case A["ed"]["timing"]:case A["ed"]["cycle"]:var i,a,n=null===(i=e.sopFilter)||void 0===i?void 0:i.addTime,r=null===(a=this.sopForm.sopFilter)||void 0===a?void 0:a.cycleTime;t.chatIdList=this.groupList.map((function(e){return e.chatId})),t.sopFilter={createTime:n&&n[0],endTime:n&&n[1],owner:this.dealIds(this.groupOwner,"userId"),tagId:this.dealIds(this.tagList,"tagId"),cycleStart:r&&this.parseTime(r[0]),cycleEnd:r&&this.parseTime(r[1])};break;case A["ed"]["activity"]:case A["ed"]["newCustomer"]:case A["ed"]["birthday"]:var s=this.customerScopeInfo,o=s.gender,c=s.tagList,u=s.filterTagList,d=s.addTime,p=s.useStaff,f=s.customPropertyList,h=Object(v["F"])(p);t.sopCustomerFilter={tagId:this.dealIds(c,"tagId"),filterTagId:this.dealIds(u,"tagId"),startTime:d&&d[0],endTime:d&&d[1],users:this.dealIds(h.useEmployeesList,"userId"),departments:this.dealIds(h.useDepartmentList,"id"),gender:o,columnList:f.map((function(e){if(e.id===A["c"])return{type:A["c"],propertyValue:e.optionValue};var t=e.type===A["B"]["dateField"]||"出生日期"===e.name?(e.value||[]).join(","):e.optionValue;return{extendPropertyId:e.id,propertyValue:t,type:e.type}})).filter((function(e){return e.propertyValue}))};break;case A["ed"]["groupCalendar"]:t.chatIdList=this.groupList.map((function(e){return e.chatId}));break}return t},dealIds:function(e,t){if(!e||0===e.length)return null;var i=e.map((function(e){return e[t]}))||[],a=i.join(",");return a},addRule:function(){this.$refs["addRuleDrawer"].resetForm(),this.addRuleDrawerVisible=!0,"编辑规则"===this.addRuleDrawerTitle&&this.$refs["addRuleDrawer"].resetForm(),this.addRuleDrawerTitle="添加规则"},handleEdit:function(e,t){this.addRuleDrawerVisible=!0,this.$refs["addRuleDrawer"].formData=Object(_["h"])(e),this.$refs["addRuleDrawer"].ruleIndex=t,this.$refs["addRuleDrawer"].hasExpired=!1,this.addRuleDrawerTitle="编辑规则"},changeRuleList:function(e){this.sopForm=Object(l["a"])(Object(l["a"])({},this.sopForm),{},{ruleList:e})},deleteOneSelectTag:function(e,t){var i="filter"===e?Object(o["a"])(this.filterTagList):Object(o["a"])(this.tagList),a=i.findIndex((function(e){return e.tagId===t.tagId}));i.splice(a,1),this["filter"===e?"filterTagList":"tagList"]=i},selectedUser:function(e){var t=[A["ed"]["timing"],A["ed"]["cycle"]].includes(this.sopType);t?this.groupOwner=e:this.customerScopeInfo.useStaff=e},handleSelectCustomerGroup:function(){this.$refs.customer.submit()},submitSelectTag:function(e){"filter"===this.tagType?this.filterTagList=Object(o["a"])(e):this.tagList=Object(o["a"])(e),this.dialogVisibleSelectTag=!1},getSelectCustomerGroup:function(e){this.groupList=Object(o["a"])(e),this.customerGroupVisible=!1},cancelClick:function(){this.customerGroupVisible=!1},dealDescription:function(){switch(this.sopType){case A["ed"]["newCustomer"]:return{desc:"客户添加员工后,员工第一时间与客户建立联系,提高新客户的留存率。",tip:"满足规则,发送联络易应用消息提醒员工给新客户发送规则下内容"};case A["ed"]["activity"]:return{desc:"突破客户每天只能收到一条群发消息的限制,由员工在指定时间手动发送指定内容给客户",tip:"到指定时间,发送联络易应用消息提醒员工给指定客户发送规则下内容"};case A["ed"]["birthday"]:return{desc:"当客户生日时,提醒员工为客户发送生日祝福,让企业服务有温度。",tip:"客户生日时,发送联络易应用消息提醒员工给客户发送规则下内容"};case A["ed"]["timing"]:return{desc:"细化客户群每个阶段的运营,由员工定期发送统一文案,提升客户群的转化效率",tip:"满足规则,发送联络易应用消息提醒员工给客户群发送规则下内容"};case A["ed"]["cycle"]:return{desc:"标准化、流程化管理客户群,按天、周、月的周期定期循环提醒员工发送统一文案,提升客户群的运营效率",tip:"满足规则,发送联络易应用消息提醒员工给客户群发送规则下内容"};case A["ed"]["groupCalendar"]:return{desc:"对客户群指定更细化的运营方案,由员工定时发送指定内容",tip:"选择发送日期,添加内容"};default:return{desc:"",tip:""}}},getSopDetail:function(e){var t=this;Object(g["h"])({sopId:e}).then((function(e){var i=e.data,a=Object(l["a"])({},i);a=t.dealDetailGroup(a,i),[A["ed"]["newCustomer"],A["ed"]["activity"],A["ed"]["birthday"]].includes(t.sopType)&&(a=t.dealDetailCustomer(a,i)),a=t.dealAlertTime(a),t.sopForm=a}))},checkGetGroupList:function(e){return[A["ed"]["cycle"],A["ed"]["groupCalendar"]].includes(this.sopType)||this.sopType===A["ed"]["timing"]&&e.filterType===k},dealDetailGroup:function(e,t){var i=Object(l["a"])({},e);return this.checkGetGroupList(t)&&(this.groupList=Object(o["a"])(t.groupSopList)),this.sopType===A["ed"]["cycle"]&&(i.sopFilter.cycleTime=[t.sopFilter.cycleStart,t.sopFilter.cycleEnd]),t.filterType===T&&(this.groupOwner=t.sopFilter.ownerList?Object(o["a"])(t.sopFilter.ownerList):[],this.tagList=t.sopFilter.tagList?Object(o["a"])(t.sopFilter.tagList):[],t.sopFilter.createTime&&t.sopFilter.endTime&&(i.sopFilter.addTime=[t.sopFilter.createTime,t.sopFilter.endTime])),i},dealDetailCustomer:function(e,t){var i=this,a=Object(l["a"])({},e),n=t.sopCustomerFilter.userInfoList||[],r=t.sopCustomerFilter.departmentInfoList||[],s=[].concat(Object(o["a"])(n),Object(o["a"])(r));this.customerScopeInfo.useStaff=s.map((function(e){return Object(l["a"])(Object(l["a"])({},e),{},{name:e.userName||e.departmentName,id:e.departmentId})})),this.customerScopeInfo.gender=t.sopCustomerFilter.gender,this.customerScopeInfo.tagList=t.sopCustomerFilter.tagList?Object(o["a"])(t.sopCustomerFilter.tagList):[],this.customerScopeInfo.filterTagList=t.sopCustomerFilter.filterTagList?Object(o["a"])(t.sopCustomerFilter.filterTagList):[];var c=[],u=Object(o["a"])(t.sopCustomerFilter.columnList),d=this.$store.state.customerProperty.customPropertyObj;u.forEach((function(e){if(e.type===A["c"])c.push({id:A["c"],name:"来源",optionValue:e.propertyValue,placeholder:"请选择来源",type:A["B"]["selectSingle"],optionList:Object(v["D"])({key:"id",value:"multipleValue"})});else{var t=d[e.extendPropertyId];c.push(Object(l["a"])(Object(l["a"])({},t),{},{optionValue:e.propertyValue,value:"出生日期"===t.name||t.type===A["B"]["dateField"]?i.dealDate(e.propertyValue).split(","):e.propertyValue,propertyValue:e.propertyValue}))}})),this.customerScopeInfo.customPropertyList=c;var p=t.sopCustomerFilter.startTime,f=t.sopCustomerFilter.endTime;if(p&&f){var h=this.parseTime(new Date(p),"{y}-{m}-{d}"),m=this.parseTime(new Date(f),"{y}-{m}-{d}");this.customerScopeInfo.addTime=[h,m]}return a},dealDate:function(e){return-1===e.indexOf(",")?e+","+e:e},dealAlertTime:function(e){var t=Object(l["a"])({},e),i=Object(o["a"])(t.ruleList),a=i.map((function(e){var t=Object(l["a"])({},A["I"]);switch(e.alertType){case A["Tc"]["hourMinute"]:t.hourMinute={hour:e.alertData1,minute:e.alertData2};break;case A["Tc"]["dayTime"]:t.dayTime={day:e.alertData1,time:e.alertData2};break;case A["Tc"]["beforeDayTime"]:t.beforeDayTime={day:e.alertData1,time:e.alertData2};break;case A["Tc"]["everydayTime"]:t.everydayTime=e.alertData2;break;case A["Tc"]["everyWeekTime"]:t.everyWeekTime={week:e.alertData1,time:e.alertData2};break;case A["Tc"]["everyMonthTime"]:t.everyMonthTime={month:e.alertData1,time:e.alertData2};break;case A["Tc"]["time"]:t.time=e.alertData2;break}return Object(l["a"])(Object(l["a"])({},e),{},{alertInfo:t})}));return t.ruleList=a,t},removeItem:function(e){var t=Object(o["a"])(this.removeList);t.push(e),this.removeList=t},openUserModal:function(e){this.dialogVisibleSelectGroupOwner=!0,this.selectTitle=e},handleClickCalendar:function(e){e.getTime()<Date.now()-A["Dc"]?this.msgWarn("不能为今天之前的日期添加SOP"):(this.addRule(),this.$refs["addRuleDrawer"].formData=Object(l["a"])(Object(l["a"])({},this.$refs["addRuleDrawer"].formData),{},{alertInfo:Object(l["a"])(Object(l["a"])({},this.$refs["addRuleDrawer"].formData.alertInfo),{},{time:y()(e).format("YYYY-MM-DD HH:mm")})}))},handleEditCalendarItem:function(e){var t=this.sopForm.ruleList.findIndex((function(t){return"".concat(t.alertData2,"-").concat(t.name,"-").concat(t.id)==="".concat(e.alertData2,"-").concat(e.name,"-").concat(e.id)}));this.handleEdit(e,t),y()(e.alertData2).valueOf()<y()().valueOf()&&(this.$refs["addRuleDrawer"].hasExpired=!0)},handleDelRule:function(e,t){var i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};this.confirmModal({msg:"该规则即将被删除,是否继续?"},Object(s["a"])(Object(r["a"])().mark((function n(){var s;return Object(r["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:s=Object(o["a"])(i.sopForm.ruleList),s.splice(e,1),i.changeRuleList(s),i.removeItem(t),a();case 5:case"end":return n.stop()}}),n)}))))},updateCustomerScopeInfo:function(e){this.customerScopeInfo=e},handleClose:function(e,t){e.splice(t,1)}}},I=S,E=(i("a497"),i("3734"),i("2877")),O=Object(E["a"])(I,a,n,!1,null,"6283ba08",null);t["default"]=O.exports},"98ff":function(e,t,i){},9911:function(e,t,i){"use strict";var a=i("23e7"),n=i("857a"),r=i("af03");a({target:"String",proto:!0,forced:r("link")},{link:function(e){return n(this,"a","href",e)}})},"992a":function(e,t,i){},9948:function(e,t,i){e.exports=i.p+"static/img/config-step-5.0a79fc54.jpeg"},9952:function(e,t,i){},99524:function(e,t,i){"use strict";i("87c1")},9964:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"drawer-div"},[a("el-tabs",{staticClass:"drawer-tabs",attrs:{"tab-position":"left"},model:{value:e.type,callback:function(t){e.type=t},expression:"type"}},[a("el-tab-pane",{attrs:{label:"扫码加入",name:"qrcode"}},[a("div",{staticClass:"main-title"},[e._v("扫码后提示无法加入企业?")]),a("div",{staticClass:"content-title"},[e._v("需要确认以下内容:")]),a("div",[a("div",{staticClass:"content"},[e._v(" 1. 二维码是否在有效期内。每次从扫码加入弹窗获取的二维码,默认有效期是7天,如果过期,重新获取二维码,提供给员工扫码加入即可。"),a("br"),e._v(" 2. "),a("el-link",{attrs:{type:"primary",href:"https://work.weixin.qq.com/wework_admin/frame#apps/contactsApi",target:"_blank"}},[e._v("企业微信后台通讯录同步")]),e._v("配置中已开启手动编辑,如图所示。 ")],1),a("el-image",{staticClass:"part-img",attrs:{src:i("e1c7"),"preview-src-list":[i("e1c7")]}})],1),a("div",[a("div",{staticClass:"content"},[e._v(" 3. "),a("el-link",{attrs:{type:"primary",href:"https://work.weixin.qq.com/wework_admin/frame#profile/apply/setting",target:"_blank"}},[e._v("企业微信后台我的企业")]),e._v(" 申请加入设置中已开启可被邀请加入企业,如图所示。 ")],1),a("el-image",{staticClass:"part-img",attrs:{src:i("4960"),"preview-src-list":[i("4960")]}})],1)]),a("el-tab-pane",{attrs:{label:"发起邀请",name:"invite"}},[a("div",{staticClass:"main-title"},[e._v("未成功发起邀请?")]),a("div",[a("div",{staticClass:"content-title"},[e._v("需要确认以下内容:")]),a("div",{staticClass:"content"},[e._v(" 1. "),a("el-link",{attrs:{type:"primary",href:"https://work.weixin.qq.com/wework_admin/frame#apps/contactsApi",target:"_blank"}},[e._v("企业微信后台通讯录同步")]),e._v("配置中须开启API编辑通讯录,如图所示。 ")],1),a("el-image",{staticClass:"part-img",attrs:{src:i("e1c7"),"preview-src-list":[i("e1c7")]}})],1)])],1)],1)},n=[],r={name:"AddMemberTip",components:{},props:{type:{type:String,default:"qrcode"}},data:function(){return{}}},s=r,o=(i("ae7e"),i("2877")),l=Object(o["a"])(s,a,n,!1,null,"df7464d8",null);t["default"]=l.exports},"99a6":function(e,t,i){e.exports=i.p+"static/img/企微活码后台4.1bc4fdd9.png"},"9a38":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",e._g(e._b({staticClass:"employee-bind-account-modal",attrs:{width:"800px"},on:{close:e.onClose}},"el-dialog",e.$attrs,!1),e.$listeners),[a("RightContainer",{staticClass:"modal-container",scopedSlots:e._u([{key:"search",fn:function(){return[a("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{inline:!0,model:e.query,"label-width":"100px",size:"small"}},[a("el-form-item",{attrs:{prop:"userName"}},[a("el-input",{attrs:{placeholder:"请输入员工姓名",clearable:""},model:{value:e.query.userName,callback:function(t){e.$set(e.query,"userName",t)},expression:"query.userName"}})],1),a("el-form-item",{attrs:{prop:"orderUserName"}},[a("el-input",{attrs:{placeholder:"请输入工单账号"},model:{value:e.query.orderUserName,callback:function(t){e.$set(e.query,"orderUserName",t)},expression:"query.orderUserName"}})],1),a("el-form-item",{attrs:{prop:"bindStatus"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择绑定状态"},model:{value:e.query.bindStatus,callback:function(t){e.$set(e.query,"bindStatus",t)},expression:"query.bindStatus"}},e._l(e.bindStatusOptions,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:" "}},[a("el-button",{attrs:{type:"primary"},on:{click:e.onSearch}},[e._v("查询")]),a("el-button",{staticClass:"btn-reset",on:{click:e.resetForm}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"data-stat",fn:function(){return[a("div",{staticClass:"count-info"},[a("div",[e._v("当前企业共 "),a("span",{staticClass:"theme-text-color"},[e._v(e._s(e.bindTotalInfo.userNum))]),e._v(" 个在职员工")]),a("div",[e._v("已绑定 "),a("span",{staticClass:"theme-text-color"},[e._v(e._s(e.bindTotalInfo.bindNum))]),e._v(" 个工单账号")])])]},proxy:!0},{key:"operate-btn",fn:function(){return[a("div",{staticClass:"network-info"},[a("div",{staticClass:"enperprise-name"},[a("svg",{staticClass:"icon-enterprise-wx mr10",attrs:{width:16,height:16}},[a("use",{attrs:{href:"#icon-enterprise-wx"}})]),e._v(" "+e._s(e.companyName)+" ")]),a("svg",{staticClass:"icon-antOutline-link ml20 mr20",attrs:{width:24,height:24}},[a("use",{attrs:{href:"#icon-antOutline-link"}})]),a("div",{staticClass:"enperprise-name mr10"},[a("i",{staticClass:"el-icon-map-location mr10"}),a("div",[e._v(e._s(e.config.networkName))])])])]},proxy:!0},{key:"data",fn:function(){return[a("el-table",{ref:"table",staticClass:"bind-account-list-table",attrs:{data:e.list,"tooltip-effect":"dark","row-key":"id","highlight-current-row":"",height:"400px"}},[a("template",{slot:"empty"},[a("empty-default-icon",{attrs:{text:"暂无数据"}})],1),a("el-table-column",{attrs:{label:"员工",prop:"name"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("div",{staticClass:"user-info"},[a("el-image",{staticClass:"mr10",staticStyle:{height:"36px",width:"36px"},attrs:{src:n.headImageUrl}},[a("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[a("img",{staticClass:"user-avatar",staticStyle:{width:"100%"},attrs:{src:i("3e20")}})])]),a("div",{staticClass:"intwoline",staticStyle:{flex:"1"}},[e._v(e._s(n.userName))])],1)]}}])}),a("el-table-column",{attrs:{label:"工单账号"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择工单账号"},on:{change:function(t){return e.handleChangeAccount(t,i)}},model:{value:i.orderUserId,callback:function(t){e.$set(i,"orderUserId",t)},expression:"row.orderUserId"}},e._l(e.accountList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.orderUserName,value:e.orderUserId}})})),1)]}}])}),a("el-table-column",{attrs:{label:"绑定状态",prop:"bindStatus",width:"120"},scopedSlots:e._u([{key:"header",fn:function(){return[a("span",[e._v("绑定状态")]),a("el-popover",{attrs:{placement:"top-start",content:"记录员工与工单下网点的账号绑定情况",trigger:"hover","popper-class":"tip-popover"}},[a("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"14px"},attrs:{slot:"reference"},slot:"reference"})])]},proxy:!0},{key:"default",fn:function(t){var i=t.row;return[e._v(" "+e._s(i.bindStatus?"已绑定":"未绑定")+" ")]}}])}),a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.bindStatus?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(t){return e.handleUnBind(i)}}},[e._v("解绑")]):e._e()]}}])})],2),a("pagination",{attrs:{total:e.total,page:e.query.pageNum,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(){return e.listOfBindDetail()}}})]},proxy:!0}])})],1)},n=[],r=i("2909"),s=i("5530"),o=(i("7db0"),i("d3b7"),i("b66d")),l=i("e77d"),c=i("f8b7"),u=i("dd70"),d=i("2f62"),p={name:"",components:{RightContainer:o["a"],EmptyDefaultIcon:l["a"]},props:{networkId:{type:String,default:null},bindTotalInfo:{type:Object,default:function(){}},config:{type:Object,default:function(){}}},data:function(){return{query:{bindStatus:null,orderUserName:"",userName:"",pageNum:1,pageSize:u["Ic"]},bindStatusOptions:[{label:"未绑定",value:0},{label:"已绑定",value:1}],accountList:[],list:[],total:0}},computed:Object(s["a"])({},Object(d["b"])(["companyName"])),created:function(){},mounted:function(){},methods:{onClose:function(){this.$emit("update:visible",!1)},onSearch:function(){this.query.pageNum=1,this.listOfBindDetail()},resetForm:function(){this.query={bindStatus:null,orderUserName:"",userName:"",pageNum:1,pageSize:u["Ic"]},this.listOfBindDetail()},handleUnBind:function(e){var t=this;this.confirmModal({msg:"解绑后,员工将不可在侧边栏【应用工具】中查看或操作工单数据,是否继续?"},(function(){t.unbindUser(e.userId)}))},listOfBindDetail:function(){var e=this;Object(c["c"])(this.query).then((function(t){e.list=Object(r["a"])(t.rows),e.total=t.total}))},networkUser:function(){var e=this;Object(c["d"])().then((function(t){e.accountList=Object(r["a"])(t.data)}))},unbindUser:function(e){var t=this;Object(c["e"])({userId:e}).then((function(e){t.msgSuccess("解绑成功"),t.$emit("getBindTotal"),t.listOfBindDetail()}))},bindUser:function(e){var t=this;Object(c["a"])(e).then((function(e){t.$emit("getBindTotal"),t.msgSuccess("绑定成功"),t.listOfBindDetail()}))},handleChangeAccount:function(e,t){var i=this.accountList.find((function(t){return t.orderUserId===e}));this.bindUser({orderUserId:e,orderUserName:i.orderUserName,userId:t.userId,id:t.id})}}},f=p,A=(i("a14a"),i("2877")),h=Object(A["a"])(f,a,n,!1,null,"218f2866",null);t["default"]=h.exports},"9a3f":function(e,t,i){"use strict";i("126f")},"9a89":function(e,t,i){"use strict";i("4d89")},"9af6":function(e,t,i){e.exports=i.p+"static/img/page-url-demo-2-2.a89cd753.png"},"9b31":function(e,t,i){},"9b4e":function(e,t,i){e.exports={menuText:"#333",menuActiveText:"#333",subMenuActiveText:"#333",menuBg:"#fff",menuHover:"#fafafa",subMenuBg:"#fff",subMenuHover:"#fafafa",sideBarWidth:"250px"}},"9b7a":function(e,t,i){},"9b8f":function(e,t,i){"use strict";i.r(t);i("ac1f"),i("5319");var a,n,r={created:function(){var e=this.$route,t=e.params,i=e.query,a=t.path;this.$router.replace({path:"/"+a,query:i})},render:function(e){return e()}},s=r,o=i("2877"),l=Object(o["a"])(s,a,n,!1,null,null,null);t["default"]=l.exports},"9b96":function(e,t,i){},"9c35":function(e,t,i){},"9c91":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"scene-item"},[e.labelType===e.AUTOLABEL_TYPE["intoGroup"]?i("el-card",{staticClass:"content-card"},[i("div",{staticClass:"row-div flex mb10"},[i("div",{staticClass:"mr10 mt15"},[e._v("客户进入群聊")]),i("div",{staticClass:"content-div"},[e.ruleDetail?e._e():i("el-button",{staticClass:"mr10 mt10",attrs:{icon:"el-icon-plus",size:"mini"},on:{click:e.addGroup}},[e._v("添加群聊")]),e._l(e.chatRoomList,(function(t,a){return i("el-tag",{key:a,staticClass:"user-tag mb5",attrs:{type:"info",size:"medium",closable:!e.ruleDetail},on:{close:function(i){return e.handleCloseGroup(t)}}},[e._v(e._s(t.groupName))])}))],2)]),i("div",{staticClass:"row-div flex"},[i("div",{staticClass:"mr10 mt15"},[e._v("打上客户标签")]),i("div",{staticClass:"content-div"},[e.ruleDetail?e._e():i("el-button",{staticClass:"mr10 mt10",attrs:{icon:"el-icon-plus",size:"mini"},on:{click:e.openTagDialog}},[e._v("添加标签")]),e._l(e.tagList,(function(t,a){return i("el-tag",{key:a,staticClass:"mb5",attrs:{type:e.ruleDetail?"info":"",size:"medium",closable:!e.ruleDetail},on:{close:function(i){return e.handleClose(t)}}},[e._v(e._s(t.name||t.tagName))])}))],2)])]):e._e(),e.labelType===e.AUTOLABEL_TYPE["newCustomer"]?i("el-card",{staticClass:"content-card"},[i("div",{staticClass:"row-div flex ",staticStyle:{"align-items":"center","margin-bottom":"10px"}},[i("div",{staticClass:"mr10"},[e._v("在每")]),i("el-select",{staticStyle:{width:"70px"},attrs:{value:e.sceneType,disabled:e.ruleDetail},on:{change:e.changeScene}},e._l(e.sceneOptions,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),e.sceneType===e.NEWCUSOMTER_SCENE_TYPE["week"]?i("el-select",{staticClass:"ml5",staticStyle:{width:"70px"},attrs:{placeholder:"请选择",disabled:e.ruleDetail},model:{value:e.loopPoint,callback:function(t){e.loopPoint=t},expression:"loopPoint"}},e._l(e.weekOptions,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e._e(),e.sceneType===e.NEWCUSOMTER_SCENE_TYPE["month"]?i("MonthDateSelect",{attrs:{disable:e.ruleDetail,"month-date-val":e.loopPoint},on:{"update:monthDateVal":function(t){e.loopPoint=t},"update:month-date-val":function(t){e.loopPoint=t}}}):e._e(),i("el-time-picker",{staticClass:"mr5 ml5",staticStyle:{width:"102px"},attrs:{disabled:e.ruleDetail,placeholder:"开始时间","value-format":"HH:mm",format:"HH:mm"},model:{value:e.loopBeginTime,callback:function(t){e.loopBeginTime=t},expression:"loopBeginTime"}}),i("span",[e._v("~")]),i("el-time-picker",{staticClass:"ml5",staticStyle:{width:"102px"},attrs:{disabled:e.ruleDetail,placeholder:"结束时间","value-format":"HH:mm",format:"HH:mm","picker-options":{minTime:e.loopBeginTime}},model:{value:e.loopEndTime,callback:function(t){e.loopEndTime=t},expression:"loopEndTime"}}),i("span",{staticClass:"ml5"},[e._v("成为员工的客户")])],1),i("div",{staticClass:"row-div flex ",staticStyle:{width:"600px"}},[i("div",{staticClass:"mr10 mt15",staticStyle:{width:"90px"}},[e._v("打上客户标签")]),i("div",{staticStyle:{width:"470px"}},[e.ruleDetail?e._e():i("el-button",{staticClass:"mr10 mt10",attrs:{icon:"el-icon-plus",size:"mini"},on:{click:e.openTagDialog}},[e._v("添加标签")]),e._l(e.tagList,(function(t,a){return i("el-tag",{key:a,attrs:{size:"medium",type:e.ruleDetail?"info":"",closable:!e.ruleDetail},on:{close:function(i){return e.handleClose(t)}}},[e._v(" "+e._s(t.name||t.tagName))])}))],2)])]):e._e(),e.dialogVisibleSelectTagLoaded?i("SelectTag",{attrs:{visible:e.dialogVisibleSelectTag,title:"选择标签",type:"search",selected:e.tagList,"tag-type":"customer","is-show-add":!0},on:{"update:visible":function(t){e.dialogVisibleSelectTag=t},success:e.submitSelectTag}}):e._e(),e.labelType===e.AUTOLABEL_TYPE["intoGroup"]&&e.customerGroupVisibleLoaded?i("CustomerGroupModal",{ref:"customer",attrs:{visible:e.customerGroupVisible,"append-to-body":"","close-on-click-modal":!1,"cancel-click":e.cancelClick,"ok-click":e.handleSelectCustomerGroup,"customer-group-list":e.customerGroupList,"select-single":!1},on:{"update:visible":function(t){e.customerGroupVisible=t},"update:customerGroupList":function(t){e.customerGroupList=t},"update:customer-group-list":function(t){e.customerGroupList=t},callback:e.getSelectCustomerGroup}}):e._e()],1)},n=[],r=i("2909"),s=(i("99af"),i("c740"),i("a434"),i("a9e3"),i("dd70")),o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:e.disable?"disable month-date-div ml5":" month-date-div ml5"},[i("el-popover",{attrs:{placement:"bottom-start",width:"315",trigger:"click","popper-class":"month-date-popover"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[i("div",{staticClass:"list"},e._l(e.DAY,(function(t){return i("div",{key:t,staticClass:"item",on:{click:function(i){return e.numClick(t)}}},[e._v(" "+e._s(t)+" ")])})),0),i("el-button",{staticClass:"month-button",attrs:{slot:"reference",disabled:e.disable},slot:"reference"},[i("div",{staticStyle:{display:"flex",width:"20px",position:"relative"}},[i("div",{style:e.disable?"color:#C0C4CC font-size: 14px; margin-top: 2px; ":"font-size: 14px; margin-top: 2px; color: rgb(99, 97, 97)"},[e._v(" "+e._s(e.value)+"号 ")]),i("div",{staticClass:"icon-month"},[i("i",{class:e.visible?"el-icon-arrow-up":"el-icon-arrow-down"})])])])],1)],1)},l=[],c=31,u={name:"",components:{},props:{monthDateVal:{type:Number,default:1},disable:{type:Boolean,default:!1}},data:function(){return{visible:!1,value:"1",DAY:[]}},created:function(){},mounted:function(){for(var e=[],t=1;t<=c;t++)e.push(t);this.DAY=e},methods:{numClick:function(e){this.visible=!1,this.value=e,this.$emit("update:monthDateVal",this.value)}}},d=u,p=(i("6a26"),i("2877")),f=Object(p["a"])(d,o,l,!1,null,"2fd4a784",null),A=f.exports,h=i("aada"),m=i("3f68"),g=i("a125"),v=i.n(g),b={name:"SceneItem",components:{MonthDateSelect:A,SelectTag:h["a"],CustomerGroupModal:m["default"]},props:{labelType:{type:Number,default:s["j"]["keyWords"]},sceneList:{type:Array,default:function(){return[]}},updateSceneList:{type:Function,default:function(){}},sceneIndex:{type:Number,default:null},ruleDetail:{type:Boolean,default:!1}},data:function(){return{AUTOLABEL_TYPE:s["j"],NEWCUSOMTER_SCENE_TYPE:s["vc"],sceneOptions:[{value:s["vc"]["day"],label:"天"},{value:s["vc"]["week"],label:"周"},{value:s["vc"]["month"],label:"月"}],weekOptions:s["yd"],dialogVisibleSelectTag:!1,dialogVisibleSelectTagLoaded:!1,customerGroupList:[],customerGroupVisible:!1,customerGroupVisibleLoaded:!1,removeGroupList:[],removeTagList:[]}},computed:{chatRoomList:function(){return this.sceneList[this.sceneIndex].chatRoomList},tagList:function(){return this.sceneList[this.sceneIndex].tagList},sceneType:{get:function(){return this.sceneList[this.sceneIndex].sceneType},set:function(e){this.updateSceneList(e,"sceneType")}},loopPoint:{get:function(){return this.sceneList[this.sceneIndex].loopPoint},set:function(e){this.updateSceneList(e,"loopPoint")}},loopBeginTime:{get:function(){return this.sceneList[this.sceneIndex].loopBeginTime},set:function(e){this.updateSceneList(e,"loopBeginTime")}},loopEndTime:{get:function(){return this.sceneList[this.sceneIndex].loopEndTime},set:function(e){this.updateSceneList(e,"loopEndTime")}}},created:function(){},methods:{submitSelectTag:function(e){var t=v()(this.tagList,e,"tagId");this.updateSceneList(Object(r["a"])(e),"tagList"),this.dialogVisibleSelectTag=!1,t=this.removeTagList.concat(t),this.updateSceneList(t,"removeTagList")},handleClose:function(e){var t=Object(r["a"])(this.tagList),i=t.findIndex((function(t){return t.tagId===e.tagId}));t.splice(i,1),this.updateSceneList(t,"tagList"),this.removeTagList.push(e),this.updateSceneList(this.removeTagList,"removeTagList")},handleCloseGroup:function(e){var t=Object(r["a"])(this.chatRoomList),i=t.findIndex((function(t){return t.chatId===e.chatId}));t.splice(i,1),this.updateSceneList(t,"chatRoomList"),this.removeGroupList.push(e),this.updateSceneList(this.removeGroupList,"removeGroupList")},cancelClick:function(){this.customerGroupVisible=!1},handleSelectCustomerGroup:function(){this.$refs.customer.submit()},getSelectCustomerGroup:function(e){var t=Object(r["a"])(e),i=v()(this.chatRoomList,e,"chatId");this.updateSceneList(t,"chatRoomList"),this.customerGroupVisible=!1,i=this.removeGroupList.concat(i),this.updateSceneList(i,"removeGroupList")},changeScene:function(e){this.sceneType=e,this.loopPoint=1},addGroup:function(){this.customerGroupVisible=!0,this.customerGroupVisibleLoaded=!0,this.customerGroupList=Object(r["a"])(this.chatRoomList)},openTagDialog:function(){this.dialogVisibleSelectTag=!0,this.dialogVisibleSelectTagLoaded=!0}}},y=b,_=(i("cae1"),Object(p["a"])(y,a,n,!1,null,"5aeee8ce",null));t["default"]=_.exports},"9cb3":function(e,t,i){"use strict";i("2457")},"9d25":function(e,t,i){},"9d4e":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{width:"50%"}},[i("el-card",{attrs:{header:"小鹅通配置信息"}},[i("div",{staticClass:"config-item"},[i("div",{staticStyle:{"margin-bottom":"10px"}},[i("span",{staticClass:"require",staticStyle:{color:"red"}},[e._v("* ")]),i("span",[e._v("app_id"),i("span",{staticStyle:{color:"#2d8ff4","margin-left":"10px"}},[e._v("如何获取?")])])]),i("div",[i("el-input",{attrs:{placeholder:"请输入小鹅通app_id",clearable:""},model:{value:e.form.appId,callback:function(t){e.$set(e.form,"appId",t)},expression:"form.appId"}})],1),i("div",{staticStyle:{"margin-bottom":"10px","margin-top":"20px"}},[i("span",{staticClass:"require",staticStyle:{color:"red"}},[e._v("* ")]),i("span",[e._v("client_id"),i("span",{staticStyle:{color:"#2d8ff4","margin-left":"10px"}},[e._v("如何获取?")])])]),i("div",[i("el-input",{attrs:{placeholder:"请输入小鹅通client_id",clearable:""},model:{value:e.form.clientId,callback:function(t){e.$set(e.form,"clientId",t)},expression:"form.clientId"}})],1),i("div",{staticStyle:{"margin-bottom":"10px","margin-top":"20px"}},[i("span",{staticClass:"require",staticStyle:{color:"red"}},[e._v("* ")]),i("span",[e._v("secret_key"),i("span",{staticStyle:{color:"#2d8ff4","margin-left":"10px"}},[e._v("如何获取?")])])]),i("div",[i("el-input",{attrs:{placeholder:"请输入小鹅通secret_key",clearable:""},model:{value:e.form.secretKey,callback:function(t){e.$set(e.form,"secretKey",t)},expression:"form.secretKey"}})],1),i("div",{staticStyle:{"margin-bottom":"10px","margin-top":"20px"}},[i("span",{staticClass:"require",staticStyle:{color:"red"}},[e._v("* ")]),i("span",[e._v("grant_type"),i("span",{staticStyle:{color:"#2d8ff4","margin-left":"10px"}},[e._v("如何获取?")])])]),i("div",[i("el-input",{attrs:{placeholder:"请输入小鹅通grant_type",clearable:""},model:{value:e.form.grantType,callback:function(t){e.$set(e.form,"grantType",t)},expression:"form.grantType"}})],1),i("div",{staticStyle:{"margin-bottom":"10px","margin-top":"20px"}},[i("span",{staticClass:"require",staticStyle:{color:"red"}},[e._v("* ")]),i("span",[e._v("qy_id "),i("span",{staticStyle:{color:"#2d8ff4","margin-left":"10px"}},[e._v("如何获取?")])])]),i("div",[i("el-input",{attrs:{placeholder:"请输入小鹅通qy_id",clearable:""},model:{value:e.form.qyId,callback:function(t){e.$set(e.form,"qyId",t)},expression:"form.qyId"}})],1)]),i("el-button",{staticStyle:{"margin-top":"20px"},attrs:{type:"primary"}},[e._v("提交")])],1)],1)},n=[],r=i("b775"),s=window.CONFIG.services.wecom+"/xiaoe";function o(e){return Object(r["a"])({url:s+"/getConfig",method:"get",params:e})}function l(e){return Object(r["a"])({url:"/wecom/xiaoe/getOneConfig",method:"get",params:e})}var c={created:function(){this.getConfigTest()},mounted:function(){},name:"xiaoe",props:{},data:function(){return{query:{pageNum:1,pageSize:1,companyName:"",status:0},loading:!0,form:{},indata:"test"}},computed:{},methods:{getXiaoeConfig:function(){o().then((function(e){}))},getConfigTest:function(){var e=this;l({Id:1}).then((function(t){t.data&&(e.form=t.data)}))}}},u=c,d=i("2877"),p=Object(d["a"])(u,a,n,!1,null,null,null);t["default"]=p.exports},"9d52":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pageLoading,expression:"pageLoading"}],staticClass:"chart-show"},[i("EmptyDefaultIcon",{attrs:{length:Number(!e.showEmptyIcon),text:"暂无数据"}},[i("div",{staticClass:"show-card"},[e._l(e.list,(function(t){return i("div",{key:t.tagGroupId,staticClass:"card-item"},[i("div",{staticClass:"header"},[i("div",{staticClass:"header-left"},[e._v(" "+e._s(t.groupTagName)+e._s(" ("+t.tagGroupCustomerCnt+(e.tagType()===e.TAG_LABEL_TYPE["customer"]?"人)":"个)"))+" ")]),i("div",{staticClass:"header-right fcc"},[i("span",{directives:[{name:"show",rawName:"v-show",value:t.showType===e.SHOW_TYPE["chart"],expression:"item.showType === SHOW_TYPE['chart']"}]},[i("el-popover",{attrs:{placement:"top-start",trigger:"hover","popper-class":"tip-popover"}},[i("div",[e._v(e._s(e.SHOW_LABEL[e.tagType()]))]),i("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"14px",color:"#999"},attrs:{slot:"reference"},slot:"reference"})])],1),i("span",{staticClass:"ml10"},[e._v(e._s(t.showType))]),i("el-dropdown",{on:{command:function(i){return e.handleChangeShowType(i,t)}}},[i("span",[i("i",{staticClass:"el-icon-arrow-down el-icon--right",staticStyle:{"font-size":"14px",cursor:"pointer"}})]),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{attrs:{command:e.SHOW_TYPE["chart"]}},[e._v(e._s(e.SHOW_TYPE["chart"]))]),i("el-dropdown-item",{attrs:{command:e.SHOW_TYPE["list"]}},[e._v(e._s(e.SHOW_TYPE["list"]))])],1)],1)],1)]),i("div",{staticClass:"chart-body fcc"},[t.showType===e.SHOW_TYPE["chart"]?i("Graphics",{attrs:{"echars-options-data":t.echartOptions}}):i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"item.loading"}],attrs:{height:"250","default-sort":{prop:"customerCnt",order:"descending"},data:t.list}},[i("el-table-column",{attrs:{type:"index",label:"排序",width:"50"}}),i("el-table-column",{attrs:{prop:"tagName",label:"标签","min-width":"180"}}),i("el-table-column",{attrs:{prop:"customerCnt",label:e.tagType()===e.TAG_LABEL_TYPE["customer"]?"客户数(人)":"客户群(个)","min-width":"80"}})],1)],1)])})),i("div",{staticClass:"card-item empty-item"}),i("div",{staticClass:"card-item empty-item"}),i("div",{staticClass:"card-item empty-item"})],2),e.list.length!==e.total?i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"customClass",attrs:{"element-loading-spinner":"el-icon-loading"}}):e._e(),e.noMore?i("div",{staticClass:"no-more"},[e._v(" 没有更多了 ")]):e._e(),i("div",{attrs:{id:"emptyDiv"}})])],1)},n=[],r=i("2909"),s=i("5530"),o=i("ade3"),l=(i("99af"),i("d81d"),i("13d5"),i("fb6a"),i("a434"),i("b0c0"),i("a9e3"),i("d3b7"),i("48fb")),c=i("dd70"),u=i("1bd8"),d=i("2ef0"),p=i("e77d"),f={chart:"饼图",list:"列表"},A=Object(o["a"])(Object(o["a"])({},c["ld"]["customer"],"为更好的展示数据,只显示前10个客户数最多的标签,如需查看更多,请切换到列表"),c["ld"]["group"],"为更好的展示数据,只显示前10个客户群最多的标签,如需查看更多,请切换到列表"),h={components:{Graphics:u["default"],EmptyDefaultIcon:p["a"]},props:{getSearchPayload:{type:Function,default:null},modifyButtonStatus:{type:Function,default:null}},inject:["tagType"],data:function(){return{query:{pageNum:c["M"],pageSize:c["Ic"],sortName:"customerCntSort",sortType:"DESC"},list:[],total:0,SHOW_TYPE:f,pageLoading:!0,loading:!0,noMore:!1,showEmptyIcon:!1,SHOW_LABEL:A,TAG_LABEL_TYPE:c["ld"],ob:null}},watch:{list:function(e){e.length&&this.ob.observe(document.getElementById("emptyDiv"))}},mounted:function(){var e=this;this.ob=new IntersectionObserver((function(t){t[0].isIntersecting&&(e.list.length<e.total?(e.loading=!0,e.query.pageNum++,e.getList()):(e.loading=!1,e.ob.unobserve(document.getElementById("emptyDiv"))))}),{})},methods:{handleChangeShowType:function(e,t){var i=this;if(t.showType=e,e===f["list"]&&!t.list){var a=Object(d["findIndex"])(this.list,(function(e){return e.tagGroupId===t.tagGroupId}));t.loading=!0;var n=this.getPayload(),r=n.userIds,o=n.departmentIds,u=n.beginTime,p=n.endTime,A={sortName:"customerCntSort",sortType:"DESC",tagGroupIds:[t.tagGroupId],userIds:r,departmentIds:o,beginTime:u,endTime:p},h=this.tagType()===c["ld"]["customer"]?l["y"]:l["A"];h(A).then((function(e){t.list=e.rows,i.list.splice(a,1,Object(s["a"])(Object(s["a"])({},t),{},{list:e.rows}))})).finally((function(){i.list.splice(a,1,Object(s["a"])(Object(s["a"])({},t),{},{loading:!1}))}))}},getTagEchatsData:function(e){var t=e.groupTagList.reduce((function(e,t){return e+Number(t.customerCnt||0)}),0),i=e.groupTagList.map((function(e){return{value:e.customerCnt,name:e.tagName}}));return t<e.totalCustomerCnt&&(i=[].concat(Object(r["a"])(i),[{value:e.totalCustomerCnt-t,name:"其他"}])),i},getList:function(e){var t=this;e&&(this.query.pageNum=c["M"]);var i=this.tagType()===c["ld"]["customer"]?l["x"]:l["z"];i(this.getPayload()).then((function(e){t.list=Object(d["uniqBy"])([].concat(Object(r["a"])(t.list),Object(r["a"])(e.rows.map((function(e){return Object(s["a"])(Object(s["a"])({},e),{},{showType:f["chart"],echartOptions:{tooltip:{trigger:"item"},color:["#5087ec","#68bbc4","#58a55c","#f2bd42","#91cc75","#ee6665","#fc8452","#9a60B4","#ea7acc","#596ebc","#f2bd42"],series:[{type:"pie",radius:"70%",data:t.getTagEchatsData(e),label:{formatter:function(e){var t=6;return e.name.length<=t?"".concat(e.name,"\n").concat(e.percent,"%"):"".concat(e.name.slice(0,t),"\n").concat(e.name.slice(t,e.name.length),"\n").concat(e.percent,"%")},color:"black"}}]}})}))))),t.total=e.total})).catch((function(){t.list=[],t.total=0,t.msgError("服务异常,请联系管理员")})).finally((function(){t.loading=!1,t.pageLoading=!1,t.modifyButtonStatus(),t.query.pageNum!==c["M"]&&(t.noMore=t.list.length===t.total),t.showEmptyIcon=Boolean(!t.list.length)}))},reset:function(){this.ob.unobserve(document.getElementById("emptyDiv")),this.noMore=!1,this.loading=!1,this.list=[],this.pageLoading=!0,this.getList(!0)},getPayload:function(){var e=this.getSearchPayload(),t=Object(s["a"])(Object(s["a"])({},this.query),e);return t}}},m=h,g=(i("8a1c"),i("2877")),v=Object(g["a"])(m,a,n,!1,null,"c9aa9d80",null);t["default"]=v.exports},"9df4":function(e,t,i){},"9e1c":function(e,t,i){"use strict";i("4184")},"9e55":function(e,t,i){"use strict";i("e08a")},"9ec6":function(e,t,i){"use strict";i("e0f0")},"9ed5":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"customer-detail-page"},[i("ReturnPage"),i("div",{staticClass:"detail-div"},[i("div",{staticClass:"customer-info-div employees-info"},[i("div",{staticClass:"employees-tabs"},[i("div",{staticClass:"employees"},[e._v(e._s(e.form.nsrmc))]),i("span",{staticClass:"icon-line"}),i("el-tabs",[i("el-tab-pane",{attrs:{label:"基本信息"}})],1)],1),i("div",{staticClass:"customer-info-div"},[i("div",{staticClass:"customer-detail"},[i("div",{staticClass:"customer-name"},[e._v(" "+e._s(e.form.nsrmc)+" ")]),i("div",{staticClass:"customer-proper"},[i("div",{staticClass:"proper-item-div"},[i("div",{staticClass:"proper-item"},[i("span",{staticClass:"proper-name"},[e._v("纳税人识别号:")]),i("span",[e._v(e._s(e.form.nsrsbh))])]),e._m(0)]),i("div",{staticClass:"proper-item-div"},[i("div",{staticClass:"proper-item"},[i("span",{staticClass:"proper-name"},[e._v("注册地址:")]),i("span",[e._v(e._s(e.form.address))])]),i("div",{staticClass:"proper-item"},[i("span",{staticClass:"proper-name"},[e._v("所属税局:")]),i("span",[e._v(e._s(e.form.sssj))])])]),i("div",{staticClass:"proper-item-div"},[i("div",{staticClass:"proper-item"},[i("span",{staticClass:"proper-name"},[e._v("法人:")]),i("span",[e._v(e._s(e.form.fr))])]),i("div",{staticClass:"proper-item"},[i("span",{staticClass:"proper-name"},[e._v("法人电话:")]),i("span",[e._v(e._s(e.form.frdh))])])]),i("div",{staticClass:"proper-item-div"},[i("div",{staticClass:"proper-item"},[i("span",{staticClass:"proper-name"},[e._v("行业类型:")]),i("span",[e._v(e._s(e.form.hyType))])]),i("div",{staticClass:"proper-item"},[i("span",{staticClass:"proper-name"},[e._v("注册时间:")]),i("span",[e._v(e._s(e.form.zcTime))])])])])])])]),i("div",{staticClass:"all-detail-div"},[i("el-tabs",[i("el-tab-pane",{attrs:{label:"企业开票进项情况"}},[i("div",{staticClass:"app-container"},[i("el-row",{staticStyle:{"border-right":"1px solid","padding-right":"5px"},attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingJ,expression:"loadingJ"}],attrs:{border:"","show-overflow-tooltip":"",data:e.queryListJ}},[i("el-table-column",{attrs:{label:"开票月份",align:"center",prop:"month"}}),i("el-table-column",{attrs:{label:"当月开票总量",align:"center",prop:"totalFp"}}),i("el-table-column",{attrs:{label:"当月开票总金额",align:"center",prop:"totalJe"}}),i("el-table-column",{attrs:{label:"操作",align:"center",width:"200px","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.getSp(t.row.id)}}},[e._v("查看开票商品")])]}}])})],1),i("el-dialog",{attrs:{title:"提示",visible:e.dialogVisible,width:"30%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("el-table",{attrs:{data:e.spList}},[i("el-table-column",{attrs:{width:"150",prop:"spName",label:"商品名称"}}),i("el-table-column",{attrs:{width:"100",prop:"sl",label:"数量"}}),i("el-table-column",{attrs:{width:"300",prop:"dj",label:"单价"}})],1)],1),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalJ>0,expression:"totalJ>0"}],attrs:{total:e.totalJ},on:{pagination:e.getListJ},model:{value:e.queryParamsJ.pageSize,callback:function(t){e.$set(e.queryParamsJ,"pageSize",t)},expression:"queryParamsJ.pageSize"}})],1)],1)],1)]),i("el-tab-pane",{attrs:{label:"企业开票销项情况"}},[i("div",{staticClass:"app-container"},[i("el-row",{staticStyle:{"border-right":"1px solid","padding-right":"5px"},attrs:{gutter:20}},[i("el-col",{attrs:{span:24}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingX,expression:"loadingX"}],attrs:{border:"","show-overflow-tooltip":"",data:e.queryListX}},[i("el-table-column",{attrs:{label:"开票月份",align:"center",prop:"month"}}),i("el-table-column",{attrs:{label:"当月开票总量",align:"center",prop:"totalFp"}}),i("el-table-column",{attrs:{label:"当月开票总金额",align:"center",prop:"totalJe"}}),i("el-table-column",{attrs:{label:"操作",align:"center",width:"200px","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.getSp(t.row.id)}}},[e._v("查看开票商品")])]}}])})],1),i("el-dialog",{attrs:{title:"提示",visible:e.dialogVisible,width:"30%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("el-table",{attrs:{data:e.spList}},[i("el-table-column",{attrs:{width:"150",prop:"spName",label:"商品名称"}}),i("el-table-column",{attrs:{width:"100",prop:"sl",label:"数量"}}),i("el-table-column",{attrs:{width:"300",prop:"dj",label:"单价"}})],1)],1),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalX>0,expression:"totalX>0"}],attrs:{total:e.totalX},on:{pagination:e.getListX},model:{value:e.queryParamsX.pageSize,callback:function(t){e.$set(e.queryParamsX,"pageSize",t)},expression:"queryParamsX.pageSize"}})],1)],1)],1),e._v("> ")])],1)],1)])],1)},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"proper-item"},[i("span",{staticClass:"proper-name"},[e._v("注册资金:")]),i("span")])}],r=i("c7eb"),s=i("1da1"),o=i("8e7c"),l=i("b775");function c(e){return Object(l["a"])({url:"/issue/qyFpxx/list",method:"get",params:e})}function u(e){return Object(l["a"])({url:"/issue/qySpxx/list",method:"get",params:e})}var d={name:"Qyjbxx",components:{},data:function(){return{totalJ:0,queryListJ:[],loadingJ:!1,queryParamsJ:{pageNum:1,pageSize:12,id:null,qyId:null,month:null,totalFp:null,totalJe:null,isXx:null},totalX:0,queryListX:[],loadingX:!1,queryParamsX:{pageNum:1,pageSize:12,id:null,qyId:null,month:null,totalFp:null,totalJe:null,isXx:null},queryParamsSp:{pageNum:1,pageSize:10,id:null,fpxxId:null,spName:null,sl:null,dj:null},loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,qyjbxxList:[],spList:[],dialogVisible:!1,title:"",open:!1,queryParams:{pageNum:1,pageSize:10,djxh:void 0,nsrsbh:void 0,nsrmc:void 0,zcdz:void 0,fr:void 0,frdh:void 0,lxr:void 0,lxrdh:void 0,address:void 0,sssj:void 0,zgyxm:void 0,zgydh:void 0,hyType:void 0,zcTime:void 0,jyfw:void 0},form:{},rules:{}}},created:function(){this.getQyXx()},methods:{getQyXx:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var i;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=e.$route.query.qyXxId,Object(o["d"])(i).then((function(t){e.form=t.data})),t.next=4,e.getListJ();case 4:return t.next=6,e.getListX();case 6:case"end":return t.stop()}}),t)})))()},getListJ:function(){var e=this;this.loadingJ=!0,this.queryParamsJ.qyId=this.$route.query.qyXxId,this.queryParamsJ.isXx="0",c(this.queryParamsJ).then((function(t){e.queryListJ=t.rows,e.totalJ=t.total,e.loadingJ=!1}))},getListX:function(){var e=this;this.loadingX=!0,this.queryParamsX.qyId=this.$route.query.qyXxId,this.queryParamsX.isXx="1",c(this.queryParamsX).then((function(t){e.queryListX=t.rows,e.totalX=t.total,e.loadingX=!1}))},getSp:function(e){var t=this;this.queryParamsSp.fpxxId=e,u(this.queryParamsSp).then((function(e){t.spList=e.rows,t.dialogVisible=!0}))},reset:function(){this.form={id:void 0,djxh:void 0,nsrsbh:void 0,nsrmc:void 0,zcdz:void 0,fr:void 0,frdh:void 0,lxr:void 0,lxrdh:void 0,address:void 0,sssj:void 0,zgyxm:void 0,zgydh:void 0,hyType:void 0,zcTime:void 0,jyfw:void 0},this.resetForm("form")}}},p=d,f=(i("f952"),i("2877")),A=Object(f["a"])(p,a,n,!1,null,"55fb3e56",null);t["default"]=A.exports},"9f42":function(e,t,i){e.exports=i.p+"static/img/page-url-demo-1-1.65669f7e.png"},"9f79":function(e,t,i){"use strict";i("87fd")},"9f7c":function(e,t,i){"use strict";i("0d13")},"9fb2":function(e,t,i){},"9fb4":function(e,t,i){"use strict";i("1160")},a07c:function(e,t,i){"use strict";i("c640")},a0a1:function(e,t,i){"use strict";i("881d")},a125:function(e,t,i){var a=i("2eaa"),n=i("5c69"),r=i("badf"),s=i("100e"),o=i("dcbe"),l=i("4416"),c=s((function(e,t){var i=l(t);return o(i)&&(i=void 0),o(e)?a(e,n(t,1,o,!0),r(i,2)):[]}));e.exports=c},a14a:function(e,t,i){"use strict";i("8f6b")},a153:function(e,t,i){e.exports=i.p+"static/img/add-code-2.df9ad1ca.png"},a17a4:function(e,t,i){"use strict";i("8d84")},a1ac4:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",e._g(e._b({staticClass:"add-proper-modal",attrs:{title:(e.formData.id?"编辑":"新增")+"字段"},on:{close:e.onClose}},"el-dialog",e.$attrs,!1),e.$listeners),[i("el-form",{ref:"elForm",attrs:{model:e.formData,rules:e.rules,size:"medium","label-width":"80px"}},[i("el-tabs",{attrs:{"tab-position":"left"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.customerProperty,(function(t,a){return i("el-tab-pane",{key:a,staticClass:"property-tab-pane",attrs:{label:t,name:(a+2).toString(),disabled:e.formData.id&&e.formData.type!==a+2}},[e.alertTip(a+2)?i("el-alert",{staticClass:"tip-alert",attrs:{title:e.alertTip(a+2),closable:!1}}):e._e(),i("el-form-item",{attrs:{label:"字段名称",prop:"name"}},[i("el-input",{staticStyle:{width:"308px"},attrs:{maxlength:"12","show-word-limit":""},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name","string"===typeof t?t.trim():t)},expression:"formData.name"}})],1),i("el-form-item",{attrs:{label:"是否必填"}},[i("el-switch",{model:{value:e.formData.required,callback:function(t){e.$set(e.formData,"required",t)},expression:"formData.required"}}),i("span",{staticClass:"form-item-tip"},[e._v("开启后,员工为客户编辑资料时该字段不能为空")])],1),i("el-form-item",{attrs:{label:"是否启用"}},[i("el-switch",{model:{value:e.formData.status,callback:function(t){e.$set(e.formData,"status",t)},expression:"formData.status"}}),i("span",{staticClass:"form-item-tip"},[e._v("开启后,员工可为客户编辑该字段信息,后台可读取")])],1),e.showEditSelect?i("el-form-item",{staticStyle:{"padding-bottom":"15px"},attrs:{label:"编辑选项",prop:"optionList"},model:{value:e.formData.optionList,callback:function(t){e.$set(e.formData,"optionList",t)},expression:"formData.optionList"}},[i("div",[i("div",{staticClass:"edit-select-list"},e._l(e.formData.optionList,(function(t,a){return i("div",{key:a,staticClass:"edit-select-item"},[i("el-input",{staticStyle:{width:"308px"},attrs:{maxlength:"12","show-word-limit":""},model:{value:t.multipleValue,callback:function(i){e.$set(t,"multipleValue","string"===typeof i?i.trim():i)},expression:"selectItem.multipleValue"}}),i("MoveTool",{attrs:{index:a,item:t,list:e.formData.optionList},on:{"update:list":function(t){return e.$set(e.formData,"optionList",t)}}})],1)})),0),i("el-button",{attrs:{icon:"el-icon-plus"},on:{click:e.addSelect}},[e._v("添加选项")])],1)]):e._e()],1)})),1)],1),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.onClose}},[e._v("取消")]),i("RequestButton",{attrs:{type:"primary","request-method":e.handelConfirm,"button-type":"handelConfirm"}},[e._v("确 定")])],1)],1)},n=[],r=i("c7eb"),s=i("1da1"),o=i("2909"),l=(i("4de4"),i("caad"),i("d81d"),i("fb6a"),i("b0c0"),i("a9e3"),i("dca8"),i("d3b7"),i("07ac"),i("25f0"),i("2532"),i("52a9")),c=i("cf45"),u=i("dd70"),d=i("ba70"),p=i("bd01"),f={name:"AddPropertyModal",components:{MoveTool:d["a"],RequestButton:l["a"]},props:{},data:function(){var e=function(e){return e.slice(1,e.length)},t=function(e,t,i){if(!t)return i(new Error("请填写选项"));var a=t.filter((function(e){return!!e.multipleValue}));if(0===a.length)return i(new Error("请填写选项"));i()};return{formData:{name:null,required:0,status:0,optionList:[{multipleValue:""}]},rules:Object.freeze({name:[{required:!0,message:"请填写字段名称",trigger:"blur"}],optionList:[{required:!0,trigger:"blur",validator:t}]}),CUSTOMER_PROPERTY_MAP:u["A"],CUSTOMER_PROPERTY_VALUE:u["B"],customerProperty:e(Object.values(u["A"])),activeName:u["B"]["singleText"].toString(),loading:!1}},computed:{showEditSelect:function(){return[u["B"]["singleRadio"],u["B"]["mulRadio"],u["B"]["selectSingle"]].includes(Number(this.activeName))}},created:function(){},mounted:function(){},methods:{onClose:function(){this.$refs["elForm"].resetFields(),this.$emit("update:visible",!1)},handelConfirm:function(){var e=this;this.$refs["elForm"].validate((function(t){if(!t)return Object(c["i"])(e.$store,"handelConfirm");e.loading=!0,e.formData.id?e.onEdit():e.onAdd()}))},addSelect:function(){var e=Object(o["a"])(this.formData.optionList);e.push({multipleValue:""}),this.formData.optionList=e},alertTip:function(e){switch(e){case u["B"]["singleText"]:return"适用于邮箱等简短文字信息的输入,内容长度不超过32字。";case u["B"]["mulText"]:return"适用于客户详情等较多文字信息的输入,内容长度不超过200字。";case u["B"]["singleRadio"]:return"适用于三选一的场景,当选项超过3个时,推荐使用下拉框。";case u["B"]["mulRadio"]:return"适用于有多个选项的场景。";case u["B"]["selectSingle"]:return"适用于有较多选项的单选场景。";case u["B"]["dateField"]:return"适用于记录关键时间点,格式为YYYY-MM-DD HH:MM,例2021-11-11 00:00。";case u["B"]["img"]:return"适用于保存客户的图片信息等,最多可上传9张,图片大小不能超过2M。";case u["B"]["file"]:return"适用于保存发票等文件信息,最多可上传9个,文件大小不能超过20M。";default:return""}},onEdit:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var i,a,n,s;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=e.formData,a=Object(o["a"])(i.optionList),n=[],a.map((function(e){n.push({extendPropertyId:i.id,multipleValue:e.multipleValue,id:e.id})})),t.prev=4,t.next=7,Object(p["c"])({properties:[{id:i.id,name:i.name,optionList:n,required:i.required,status:i.status,type:i.type}]});case 7:s=t.sent,e.loading=!1,Object(c["i"])(e.$store,"handelConfirm"),s&&(e.onClose(),e.$emit("getList"),e.msgSuccess("修改成功")),t.next=17;break;case 13:t.prev=13,t.t0=t["catch"](4),Object(c["i"])(e.$store,"handelConfirm"),e.loading=!1;case 17:case"end":return t.stop()}}),t,null,[[4,13]])})))()},onAdd:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var i,a;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=e.formData,t.prev=1,t.next=4,Object(p["a"])({name:i.name,optionList:i.optionList,required:i.required,status:i.status,propertySort:i.propertySort,type:e.activeName});case 4:a=t.sent,e.loading=!1,Object(c["i"])(e.$store,"handelConfirm"),a&&(e.onClose(),e.$emit("getList"),e.msgSuccess("添加成功")),t.next=14;break;case 10:t.prev=10,t.t0=t["catch"](1),Object(c["i"])(e.$store,"handelConfirm"),e.loading=!1;case 14:case"end":return t.stop()}}),t,null,[[1,10]])})))()}}},A=f,h=(i("5665"),i("2877")),m=Object(h["a"])(A,a,n,!1,null,"2dc8784a",null);t["default"]=m.exports},a201:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"label-page"},[i("div",{staticClass:"header-radio-group"},[i("el-radio-group",{staticClass:"radio-group-div",attrs:{size:"medium"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-radio-button",{attrs:{label:e.AUTOLABEL_TYPE["keyWords"]}},[e._v("关键词打标签")]),i("el-radio-button",{attrs:{label:e.AUTOLABEL_TYPE["intoGroup"]}},[e._v("入群打标签")]),i("el-radio-button",{attrs:{label:e.AUTOLABEL_TYPE["newCustomer"]}},[e._v("新客打标签")]),i("el-radio-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:batchtag:list"],expression:"['wecom:batchtag:list']"}],attrs:{label:e.AUTOLABEL_TYPE["batch"]}},[e._v("批量打标签")])],1)],1),i("div",{staticClass:"content-container"},[e.activeName!==e.AUTOLABEL_TYPE["batch"]?i("LabelList",{attrs:{"label-type":e.activeName,"label-tip":e.dealLabelTip()}}):i("BatchTag")],1)])},n=[],r=(i("99af"),i("a9e3"),i("dd70")),s=i("e634"),o=i("cf45"),l=i("8157"),c={name:"",components:{LabelList:s["default"],BatchTag:l["default"]},props:{},data:function(){return{activeName:r["j"]["keyWords"],AUTOLABEL_TYPE:r["j"]}},watch:{activeName:function(e){e===r["j"]["batch"]&&this.$store.commit("SET_SAVE_CONDITION",!1);var t=window.location.href;t=Object(o["N"])(t),window.history.pushState({},0,"".concat(t,"?labelType=").concat(e))}},created:function(){this.$store.dispatch("app/setBusininessDesc","\n <div>当客户满足规则时,为其打上指定标签,完善客户画像,帮助企业做下一步运营转化</div>\n ");var e=this.$route.query,t=e.labelType;this.activeName=t?Number(t):r["j"]["keyWords"]},methods:{dealLabelTip:function(){var e="";switch(this.activeName){case r["j"]["keyWords"]:e="当客户的聊天内容包含指定关键词,为其自动打上客户标签";break;case r["j"]["intoGroup"]:e="当客户进入指定群聊,为其自动打上客户标签";break;case r["j"]["newCustomer"]:e="当客户在指定时段与员工成为好友,为其自动打上客户标签";break}return e}}},u=c,d=(i("98be"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"3e05b2b0",null);t["default"]=p.exports},a231:function(e,t,i){e.exports=i.p+"static/img/config-step2-(2)-3.262dd543.png"},a239:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"graphics",attrs:{id:"graphics"}})},n=[],r=i("313e"),s={name:"",components:{},props:{echarsOptionsData:{type:Object,default:function(){}}},data:function(){return{myChart:null}},computed:{},watch:{echarsOptionsData:{handler:function(e,t){this.myChart&&this.myChart.setOption(this.getOptions())},deep:!0}},mounted:function(){this.initGraphics()},methods:{initGraphics:function(){this.myChart=r["init"](this.$refs.graphics),this.myChart&&this.myChart.setOption(this.getOptions())},getOptions:function(){var e,t,i;return{legend:{data:["客户发送消息数","员工发送消息数"]},tooltip:{trigger:"axis"},xAxis:{type:"category",boundaryGap:!0,data:(null===this||void 0===this||null===(e=this.echarsOptionsData)||void 0===e?void 0:e.xAxisData)||[]},yAxis:{type:"value"},color:["#578CED","#6BBCC5"],series:[{name:"客户发送消息数",data:(null===this||void 0===this||null===(t=this.echarsOptionsData)||void 0===t?void 0:t.clientSendMessageList)||[],type:"line",areaStyle:{color:"#DCE7FB"}},{name:"员工发送消息数",data:(null===this||void 0===this||null===(i=this.echarsOptionsData)||void 0===i?void 0:i.userSendMessageList)||[],type:"line",areaStyle:{color:"#E1F1F3"}}]}}}},o=s,l=(i("0bd0"),i("2877")),c=Object(l["a"])(o,a,n,!1,null,"2c10d3fc",null);t["default"]=c.exports},a266:function(e,t,i){},a2d8:function(e,t,i){"use strict";i("b156")},a2e7:function(e,t,i){"use strict";i("30d7")},a36b:function(e,t,i){e.exports=i.p+"static/img/404.a57b6f31.png"},a383:function(e,t,i){"use strict";i("7410")},a3c7:function(e,t,i){},a435:function(e,t,i){"use strict";i("7f66")},a448:function(e,t,i){"use strict";i("499b")},a454:function(e,t,i){var a=i("72f0"),n=i("3b4a"),r=i("cd9d"),s=n?function(e,t){return n(e,"toString",{configurable:!0,enumerable:!1,value:a(t),writable:!0})}:r;e.exports=s},a495:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"login"},[i("div",{staticClass:"login-top"},[i("div",{staticClass:"login-top-title"},[i("p",[e._v(e._s(e.qdmc))])])]),e.pxdz||e.pxsj?i("div",{staticClass:"scan"},[e.pxsj?i("div",{staticStyle:{margin:"10px"}},[i("p",{staticStyle:{"font-size":"15px","font-family":"微软雅黑"}},[e._v("培训时间")]),i("p",{staticStyle:{"margin-top":"8px","font-size":"13px","font-family":"微软雅黑"}},[i("b",[e._v(e._s(e.pxsj))])])]):e._e(),e.pxdz?i("div",{staticStyle:{margin:"10px"}},[i("p",{staticStyle:{"font-size":"15px","font-family":"微软雅黑"}},[e._v("培训地点")]),i("p",{staticStyle:{"margin-top":"8px","font-size":"13px","font-family":"微软雅黑"}},[i("b",[e._v(e._s(e.pxdz))])])]):e._e()]):e._e(),i("div",{staticStyle:{"background-color":"whitesmoke",margin:"10px","border-radius":"20px"}},[i("el-form",{ref:"form",staticClass:"demo-ruleForm",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[i("el-form-item",{staticStyle:{"margin-top":"10px"},attrs:{label:"企业名称",prop:"qyName"}},[i("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"fetch-suggestions":e.querySearch,placeholder:"请输入企业名称","trigger-on-focus":!1},on:{select:e.handleSelect},model:{value:e.form.qyName,callback:function(t){e.$set(e.form,"qyName",t)},expression:"form.qyName"}})],1),i("el-form-item",{staticClass:"custom-form-item",attrs:{label:"用户电话",prop:"mobile"}},[i("el-input",{attrs:{clearable:"",placeholder:"请输入用户电话"},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1),i("el-form-item",{staticClass:"custom-form-item",attrs:{label:"用户姓名",prop:"userName"}},[i("el-input",{attrs:{clearable:"",placeholder:"请输入用户姓名"},model:{value:e.form.userName,callback:function(t){e.$set(e.form,"userName",t)},expression:"form.userName"}})],1),i("el-form-item",{attrs:{label:"是否第三方",prop:"isSf"}},[i("el-radio-group",{model:{value:e.form.isSf,callback:function(t){e.$set(e.form,"isSf",t)},expression:"form.isSf"}},[i("el-radio",{attrs:{label:"1"}},[e._v("是")]),i("el-radio",{attrs:{label:"0"}},[e._v("否")])],1)],1)],1)],1),e.pxdz&&e.pxsj?i("div",{staticStyle:{"text-align":"center","margin-top":"80px"}},[i("hr"),i("el-button",{staticStyle:{width:"90%",height:"50px","margin-top":"10px","background-color":"#2d8ff4"},attrs:{round:"",type:"primary"},on:{click:function(t){return e.submitForm("form")}}},[e._v("下一步 ")])],1):e.pxdz||e.pxsj?i("div",{staticStyle:{"text-align":"center","margin-top":"135px"}},[i("hr"),i("el-button",{staticStyle:{width:"90%",height:"50px","margin-top":"10px","background-color":"#2d8ff4"},attrs:{round:"",type:"primary"},on:{click:function(t){return e.submitForm("form")}}},[e._v("下一步 ")])],1):i("div",{staticStyle:{"text-align":"center","margin-top":"230px"}},[i("hr"),i("el-button",{staticStyle:{width:"90%",height:"50px","margin-top":"10px","background-color":"#2d8ff4"},attrs:{round:"",type:"primary"},on:{click:function(t){return e.submitForm("form")}}},[e._v("下一步 ")])],1)])},n=[],r=i("c7eb"),s=i("1da1"),o=(i("b0c0"),i("d3b7"),i("ac1f"),i("00b4"),i("159b"),i("42b0")),l=i("3347"),c=(i("17d4"),i("34e1")),u=i("8e7c"),d=(i("837c"),i("362b")),p={name:"QyInfo",data:function(){var e=function(e,t,i){if(!t)return i(new Error("请输入用户电话"));var a=/^1[3-9]\d{9}$/;a.test(t)?i():i(new Error("请输入正确的用户电话"))};return{empleCodeId:null,costomerName:null,NewCustomers:!1,restaurants:[],qdmc:"",pxsj:"",pxdz:"",queryParams:{pageNum:1,pageSize:10,createdAt:void 0,WXname:void 0,spuId:void 0,skuId:void 0,txUrl:void 0,qyName:void 0,userName:void 0,mobile:void 0,unionId:void 0,isSf:void 0,siginId:""},imge:{hmimgurl:null},form:{},rules:{qyName:[{required:!0,message:"请输入企业名称",trigger:"blur"}],isSf:[{required:!0,message:"请选择是否第三方",trigger:"blur"}],mobile:[{required:!0,validator:e,trigger:"blur"}]}}},created:function(){document.title="签到",this.getQrUser(),this.getUserData()},methods:{reset:function(){this.form={createdAt:void 0,WXname:void 0,spuId:void 0,skuId:void 0,txUrl:void 0,qyName:void 0,userName:void 0,mobile:void 0,unionId:void 0,isSf:void 0,siginId:void 0}},getQrUser:function(){var e=this;this.queryParams.siginId=this.$route.query.id,this.queryParams.siginId?Object(l["a"])(this.queryParams.siginId).then((function(t){e.qdmc=t.data.signinName,t.data.trainingTime&&(e.pxsj=t.data.trainingTime),e.pxsj&&(e.pxsj=e.pxsj+"~"),t.data.endTime&&(e.pxsj=e.pxsj+t.data.endTime),e.pxdz=t.data.trainingAddress,e.imge.hmimgurl=t.data.empleUrlImg,e.form.spuId=t.data.zbId,e.form.skuId=t.data.skuId,e.form.siginId=e.queryParams.siginId,e.form.empleCodeId=t.data.empleCodeId,e.empleCodeId=t.data.empleCodeId,e.unionSf(t.data.beginTime,t.data.periodTime)})):this.msgError("初始化信息失败")},handleSelect:function(e){var t=this;Object(u["d"])(e.id).then((function(e){t.form.nsrsbh=e.data.nsrsbh,t.form.sssj=e.data.sssj,t.form.zcTime=e.data.zcTime,t.form.hyType=e.data.hyType,t.form.address=e.data.address,t.form.jbxxId=e.data.id,t.form.isWx="F",t.form.isOther="N"}))},unionSf:function(e,t){new Date(e);var i=new Date(t),a=new Date;!t||a<i||this.$router.push({path:"/qdFail"})},getQy:function(e){var t=this;return Object(s["a"])(Object(r["a"])().mark((function i(){var a;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return t.restaurants=[],a={pageNum:1,pageSize:10,nsrmc:e},i.next=4,Object(u["e"])(a).then((function(e){e.rows.forEach((function(e,i,a){t.restaurants[i]={value:e.nsrmc,id:e.id}}))}));case 4:case"end":return i.stop()}}),i)})))()},querySearch:function(e,t){var i=this;return Object(s["a"])(Object(r["a"])().mark((function a(){return Object(r["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,i.getQy(e);case 2:t(i.restaurants);case 3:case"end":return a.stop()}}),a)})))()},getUserData:function(){var e=this;this.$route.query.code&&Object(d["a"])(this.$route.query.code).then((function(t){e.queryParams.unionId=t.data.unionId,e.getUnion()}))},getUnion:function(){var e=this;if(this.queryParams.unionId){var t={unionid:this.queryParams.unionId};Object(c["h"])(t).then((function(t){t.total>0&&(e.costomerName=t.rows[0].name,e.NewCustomers=!0)}))}else this.queryParams.unionId="null"},submitForm:function(e){var t=this;return Object(s["a"])(Object(r["a"])().mark((function i(){return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:t.$refs[e].validate((function(e){if(e){if(t.form.unionId=t.queryParams.unionId,!t.form.unionId)return void t.msgError("获取到用户信息,请联系管理员");if("null"===t.form.unionId)return void t.msgError("获取到用户信息,请联系管理员");t.form.id?Object(o["j"])(t.form).then((function(e){t.msgSuccess("提交成功"),t.NewCustomers?t.$router.push({path:"/oldCustomer",query:{costomerName:t.costomerName,empleCodeId:t.empleCodeId}}):t.$router.push({path:"/increase",query:{msgUrl:t.imge.hmimgurl}})})):Object(o["a"])(t.form).then((function(e){t.msgSuccess("提交成功"),t.NewCustomers?t.$router.push({path:"/oldCustomer",query:{costomerName:t.costomerName,empleCodeId:t.form.empleCodeId}}):t.$router.push({path:"/increase",query:{msgUrl:t.imge.hmimgurl}})}))}else t.msgError("请填写信息")}));case 1:case"end":return i.stop()}}),i)})))()}}},f=p,A=(i("536e"),i("2877")),h=Object(A["a"])(f,a,n,!1,null,"df9b178c",null);t["default"]=h.exports},a497:function(e,t,i){"use strict";i("98ff")},a4a9:function(e,t,i){},a4ad:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",e._g(e._b({staticClass:"perform-record-modal",attrs:{width:"800px"},on:{close:e.onClose}},"el-dialog",e.$attrs,!1),e.$listeners),[a("div",[a("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[a("div",{staticClass:"top-search"},[a("el-form",{ref:"customerForm",attrs:{inline:"","label-position":"right",model:e.query,"label-width":"80px"}},[e.isCustomerRule||e.isCustomerEmployee?a("el-form-item",{attrs:{prop:"customerName"}},[a("el-input",{attrs:{placeholder:"请输入客户名称",clearable:""},model:{value:e.query.customerName,callback:function(t){e.$set(e.query,"customerName",t)},expression:"query.customerName"}})],1):e._e(),e.isGroupRule||e.isGroupEmployee?a("el-form-item",{attrs:{prop:"chatName"}},[a("el-input",{attrs:{placeholder:"请输入群昵称",clearable:""},model:{value:e.query.chatName,callback:function(t){e.$set(e.query,"chatName",t)},expression:"query.chatName"}})],1):e._e(),e.isGroupRule?a("el-form-item",{attrs:{prop:"chatOwnerName"}},[a("el-input",{attrs:{placeholder:"请输入群主名称",clearable:""},model:{value:e.query.chatOwnerName,callback:function(t){e.$set(e.query,"chatOwnerName",t)},expression:"query.chatOwnerName"}})],1):e._e(),e.isCustomerRule?a("el-form-item",{attrs:{prop:"employName"}},[a("el-input",{attrs:{placeholder:"请输入员工名称",clearable:""},model:{value:e.query.employName,callback:function(t){e.$set(e.query,"employName",t)},expression:"query.employName"}})],1):e._e(),a("el-form-item",[a("el-select",{attrs:{placeholder:"请选择执行状态",size:"small",clearable:""},model:{value:e.query.finishFlag,callback:function(t){e.$set(e.query,"finishFlag",t)},expression:"query.finishFlag"}},e._l(e.performStatusOption,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{prop:"time"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"提醒时间",placement:"top"}},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.remindTime,callback:function(t){e.remindTime=t},expression:"remindTime"}})],1)],1),e.isCustomerEmployee||e.isGroupEmployee?a("el-form-item",[a("el-select",{attrs:{placeholder:"请选择任务",size:"small",clearable:""},model:{value:e.query.ruleId,callback:function(t){e.$set(e.query,"ruleId",t)},expression:"query.ruleId"}},e._l(e.ruleList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.ruleName,value:e.ruleId}})})),1)],1):e._e(),a("el-form-item",[a("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.onSearch()}}},[e._v("查询")]),a("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetForm()}}},[e._v("重置")])],1)],1)],1)]},proxy:!0},{key:"data",fn:function(){return[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.recordList,height:"300px"}},[a("template",{slot:"empty"},[a("empty-default-icon",{attrs:{length:e.recordList.length}})],1),e.isCustomerRule||e.isCustomerEmployee?a("el-table-column",{key:"customerName",attrs:{label:"客户",align:"center",prop:"customerName",width:"180px"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("div",{staticStyle:{display:"flex","align-items":"center"}},[a("el-image",{staticClass:"mr5",staticStyle:{width:"35px",height:"35px"},attrs:{src:n.avatar||i("3e20"),fit:"fill"}}),a("div",{staticClass:"user-info",staticStyle:{flex:"1"}},[a("span",{staticClass:"customer-name"},[e._v(e._s(n.customerName||""))]),a("span",{class:n.customerType===e.wxType?"wx-type-flag":"corp-type-name"},[e._v(" "+e._s(e.renderUserInfo(n,"customerType"))+" ")])])],1)]}}],null,!1,842980871)}):e._e(),e.isGroupRule||e.isGroupEmployee?a("el-table-column",{key:"chatName",attrs:{label:"客户群",align:"center",prop:"chatName",width:"180px"}}):e._e(),e.isCustomerRule||e.isGroupRule?a("el-table-column",{key:"chatCreatorName",attrs:{label:"员工",align:"center",prop:"chatCreatorName"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"al"},[a("div",{staticClass:"cus-owner"},[e._v(e._s(t.row.chatCreatorName))])])]}}],null,!1,3476796156)}):e._e(),e.isCustomerEmployee||e.isGroupEmployee?a("el-table-column",{key:"ruleName",attrs:{label:"任务名称",align:"center",prop:"ruleName"}}):e._e(),a("el-table-column",{attrs:{prop:"status",label:"执行状态",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("div",{staticClass:"flex",staticStyle:{"align-items":"center"}},[a("div",{class:"mr5 "+(i.isFinish?"dot-green":"dot-orange")}),a("span",[e._v(e._s(i.isFinish?"已执行":"未执行"))])])]}}])}),a("el-table-column",{key:"alertTime",attrs:{label:"提醒时间",align:"center",prop:"alertTime"}}),a("el-table-column",{key:"finishTime",attrs:{label:"完成时间",align:"center",prop:"finishTime"}})],2),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.query.pageNum,disabled:e.loading,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(){return e.getDetailList()}}})]},proxy:!0}])})],1)])},n=[],r=i("2909"),s=i("5530"),o=(i("a9e3"),i("d3b7"),i("dd70")),l=i("b66d"),c=i("e77d"),u=i("9815"),d=i("cf45"),p=i("e2e0"),f={name:"",components:{RightContainer:l["a"],EmptyDefaultIcon:c["a"]},mixins:[p["a"]],props:{ruleId:{type:Number,default:null},sopId:{type:String,default:null},sopType:{type:Number,default:null},isCustomerRule:{type:Boolean,default:!1},isCustomerEmployee:{type:Boolean,default:!1},isGroupRule:{type:Boolean,default:!1},isGroupEmployee:{type:Boolean,default:!1},userId:{type:String,default:null},type:{type:String,default:"rule"}},data:function(){return{performStatusOption:[{label:"全部",value:-1},{label:"已执行",value:1},{label:"未执行",value:0}],query:{pageNum:1,pageSize:o["Ic"],customerName:"",employName:""},total:0,loading:!1,recordList:[],ruleList:[],remindTime:null,SOP_TYPE:o["ed"],wxType:o["Cd"]}},watch:{isCustomerEmployee:function(e){e&&this.getRulesRecordList()},isGroupEmployee:function(e){e&&!this.ruleList.length&&this.getRulesRecordList()}},created:function(){},mounted:function(){},methods:{onClose:function(){this.resetQuery(),this.$emit("update:visible",!1)},onSearch:function(){this.getDetailList({pageNum:1})},resetForm:function(){this.resetQuery(),this.getDetailList({pageNum:1})},resetQuery:function(){this.query={pageNum:1,pageSize:o["Ic"],customerName:"",employName:""},this.remindTime=null},getDetailList:function(e){var t=this.query.finishFlag;switch(this.loading=!0,this.sopType){case o["ed"]["newCustomer"]:case o["ed"]["activity"]:case o["ed"]["birthday"]:this.getCustomerSopRulesDetailList(t,e);break;case o["ed"]["timing"]:this.getTimingSopRulesDetailList(t,e);break}},getTimingSopRulesDetailList:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=Object(s["a"])(Object(s["a"])({sopId:this.sopId,beginTime:this.remindTime&&this.parseTime(this.remindTime[0],"{y}-{m}-{d}"),endTime:this.remindTime&&this.parseTime(this.remindTime[1],"{y}-{m}-{d}")},this.query),{},{finishFlag:-1===e?null:e});switch(this.type){case"rule":a.ruleId=this.ruleId;break;case"employee":a.userId=this.userId;break}a=Object(s["a"])(Object(s["a"])({},a),i),Object(u["l"])(a).then((function(e){t.recordList=e.rows,t.total=e.total})).finally((function(){t.loading=!1,t.modifyButtonStatus()}))},getCustomerSopRulesDetailList:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=Object(s["a"])(Object(s["a"])({sopId:this.sopId,beginTime:this.remindTime&&this.parseTime(this.remindTime[0],"{y}-{m}-{d}"),endTime:this.remindTime&&this.parseTime(this.remindTime[1],"{y}-{m}-{d}")},this.query),{},{finishFlag:-1===e?null:e});switch(this.type){case"rule":a.ruleId=this.ruleId;break;case"employee":a.userId=this.userId;break}a=Object(s["a"])(Object(s["a"])({},a),i),Object(u["e"])(a).then((function(e){t.recordList=e.rows,t.total=e.total})).finally((function(){t.loading=!1,t.modifyButtonStatus()}))},getRulesRecordList:function(){var e=this;Object(u["k"])({sopId:this.sopId,pageNum:1,pageSize:o["Kc"]}).then((function(t){var i;t&&(e.ruleList=null!==(i=t.rows)&&void 0!==i&&i.length?Object(r["a"])(t.rows):[])}))},renderUserInfo:function(e,t){return Object(d["o"])(e,t)}}},A=f,h=(i("c5c7"),i("2877")),m=Object(h["a"])(A,a,n,!1,null,"7e909112",null);t["default"]=m.exports},a4f5:function(e,t,i){"use strict";i("0f84")},a51d:function(e,t,i){e.exports={menuText:"#333",menuActiveText:"#333",subMenuActiveText:"#333",menuBg:"#fff",menuHover:"#fafafa",subMenuBg:"#fff",subMenuHover:"#fafafa",sideBarWidth:"250px"}},a54a:function(e,t,i){},a54b:function(e,t,i){},a56b:function(e,t,i){},a5af:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"system-setting-config config-tab"},[a("div",{staticClass:"tab-title"},[e._v("企业绑定")]),a("div",{staticClass:"tab-tip"},[e._v(" 将工单系统下的网点ID填写到下面表单,实现当前企业微信所在企业与工单系统下网点绑定关联,员工可获取网点下的工单数据。 "),a("el-popover",{attrs:{placement:"top-start",width:"200",trigger:"hover"}},[a("span",{staticClass:"demo-tip",attrs:{slot:"reference"},slot:"reference"},[e._v("如何获取网点ID?")]),a("el-image",{attrs:{src:i("4d3f"),"preview-src-list":[i("4d3f")]}})],1)],1),a("div",{staticClass:"tab-form"},[e.config.networkName?a("div",{staticClass:"flex network-info"},[a("div",{staticClass:"enperprise-name"},[a("svg",{staticClass:"icon-enterprise-wx mr10",attrs:{width:16,height:16}},[a("use",{attrs:{href:"#icon-enterprise-wx"}})]),e._v(" "+e._s(e.companyName)+" ")]),a("svg",{staticClass:"icon-antOutline-link ml20 mr20",attrs:{width:24,height:24}},[a("use",{attrs:{href:"#icon-antOutline-link"}})]),a("div",{staticClass:"enperprise-name mr10"},[a("i",{staticClass:"el-icon-map-location mr10"}),a("div",[e._v(e._s(e.config.networkName))])]),a("el-button",{staticClass:"btn-reset",on:{click:e.handleUnBind}},[e._v("解绑")])],1):a("div",{staticClass:"flex network-info"},[a("div",{staticClass:"label mr10"},[e._v("网点")]),a("el-input",{staticClass:"mr10",staticStyle:{width:"320px"},attrs:{placeholder:"请填写工单系统下网点ID"},model:{value:e.inputNetworkId,callback:function(t){e.inputNetworkId=t},expression:"inputNetworkId"}}),a("el-button",{staticClass:"pro-address-save",attrs:{type:"primary"},on:{click:e.handleBind}},[e._v("绑定")])],1)]),e.networkId?a("div",[a("div",{staticClass:"tab-title"},[e._v("员工与工单账号绑定")]),a("div",{staticClass:"tab-tip"},[e._v(" 将企业下员工与工单系统账号绑定关联,员工可在侧边栏【应用工具】查看其在工单系统下的工单数据。 ")]),a("div",{staticClass:"tab-des"},[e._v(" 当前企业共 "),a("span",[e._v(e._s(e.bindTotalInfo.userNum))]),e._v(" 个在职员工,已绑定 "),a("span",[e._v(e._s(e.bindTotalInfo.bindNum))]),e._v(" 人,"),a("span",{staticClass:"go-link-span theme-text-color",on:{click:e.goToBind}},[e._v(" "+e._s(e.bindTotalInfo.bindNum>0?"绑定详情":"去绑定")+" > ")])])]):e._e(),e.networkId?a("div",[a("div",{staticClass:"tab-title"},[e._v("AI配置系统使用范围")]),a("div",{staticClass:"tab-tip"},[e._v(" 配置可以登录AI配置系统,并对机器人进行相关设置的操作人员。 ")]),a("div",{staticClass:"select-role"},[a("el-radio-group",{model:{value:e.useScope,callback:function(t){e.useScope=t},expression:"useScope"}},[a("el-radio",{attrs:{label:e.USESCOPE_TYPE["role"]}},[e._v(" 指定角色 "),a("el-select",{directives:[{name:"show",rawName:"v-show",value:e.useScope===e.USESCOPE_TYPE["role"],expression:"useScope === USESCOPE_TYPE['role']"}],staticClass:"mt10",attrs:{clearable:"",filterable:"",placeholder:"请选择角色"},on:{change:e.handleChangeRole},model:{value:e.selectedRole,callback:function(t){e.selectedRole=t},expression:"selectedRole"}},e._l(e.roleList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.roleName,value:e.roleId}})})),1)],1),a("el-radio",{attrs:{label:e.USESCOPE_TYPE["user"]}},[e._v(" 指定员工 "),a("div",{directives:[{name:"show",rawName:"v-show",value:e.useScope===e.USESCOPE_TYPE["user"],expression:"useScope === USESCOPE_TYPE['user']"}],staticClass:"mt15 user-list"},[a("el-button",{staticClass:"mr10",attrs:{icon:"el-icon-plus"},on:{click:function(t){e.dialogVisibleSelectUser=!0}}},[e._v("添加员工")]),e._l(e.useStaff,(function(t,i){return a("el-tag",{key:i,staticClass:"user-tag"},[a("TagUserShow",{attrs:{name:t.name,"show-icon":t.type===e.USESCOPE_TYPE["department"]}})],1)}))],2)])],1)],1)]):e._e(),a("EmployeeBindAccountModal",{ref:"employeeBindAccountModal",attrs:{visible:e.employeeVisible,title:"员工绑定工单账号","network-id":e.networkId,"bind-total-info":e.bindTotalInfo,config:e.config},on:{"update:visible":function(t){e.employeeVisible=t},getBindTotal:e.getBindTotal}}),a("SelectUser",{attrs:{visible:e.dialogVisibleSelectUser,title:"选择使用员工","is-only-leaf":!1,"selected-user-list":e.useStaff},on:{"update:visible":function(t){e.dialogVisibleSelectUser=t},success:e.selectedUser}})],1)},n=[],r=i("c7eb"),s=i("1da1"),o=i("2909"),l=i("5530"),c=(i("99af"),i("caad"),i("d81d"),i("e9c4"),i("a9e3"),i("b64b"),i("2532"),i("3528")),u=i("9a38"),d=i("c958"),p=i("d7b1"),f=i("f8b7"),A=i("2f62"),h=i("2ef0"),m=i("515a"),g=1,v=2,b=3,y={yuanTong:g,yunDa:v,zhongTong:b},_=1,w=2,C=3,x={user:_,role:w,department:C},k={name:"SystemSetConfig",components:{EmployeeBindAccountModal:u["default"],SelectUser:d["a"],TagUserShow:m["a"]},props:{appDetail:{type:Object,default:function(){}},appId:{type:Number,default:null}},data:function(){return{useScope:0,roleList:[],selectedRole:null,employeeVisible:!1,dialogVisibleSelectUser:!1,useStaff:[],config:{networkId:""},networkName:"",inputNetworkId:"",COURIER_TYPE:y,USESCOPE_TYPE:x,bindTotalInfo:{}}},computed:Object(l["a"])(Object(l["a"])({},Object(A["b"])(["companyName"])),{},{networkId:function(){return this.config.networkId}}),watch:{appDetail:function(e){e&&this.dealInitDetail()}},created:function(){this.getListRole()},mounted:function(){this.dealInitDetail(),this.getBindTotal(),this.dealType()},methods:{dealType:function(){if(this.appDetail.scopeList&&this.appDetail.scopeList.length>0){var e,t=this.appDetail.scopeList[0].type;this.useScope=[x["user"],x["department"]].includes(t)?x["user"]:x["role"];var i=Object(o["a"])(this.appDetail.scopeList),a=Object(h["groupBy"])(i,(function(e){return e.type})),n=a[x["user"]]||[];n=n.map((function(e){return Object(l["a"])(Object(l["a"])({},e),{},{userId:e.val})}));var r=a[x["department"]]||[];r=r.map((function(e){return Object(l["a"])(Object(l["a"])({},e),{},{id:e.val})}));var s=a[x["role"]]||[];this.useStaff=[].concat(Object(o["a"])(n),Object(o["a"])(r)),this.selectedRole=null===(e=s[0])||void 0===e?void 0:e.val}},getBindTotal:function(){var e=this;Object(f["b"])().then((function(t){e.bindTotalInfo=t.data||{}}))},dealInitDetail:function(){var e=this.appDetail.config?JSON.parse(this.appDetail.config):{};this.config=Object(l["a"])(Object(l["a"])({},this.config),e),this.config.networkId&&this.$refs.employeeBindAccountModal.networkUser()},handleBind:function(){var e=this;this.inputNetworkId?Object(f["f"])({networkId:this.inputNetworkId}).then((function(t){var i;e.confirmModal({msg:"在工单系统下为您找到与".concat(e.inputNetworkId,"匹配的网点「").concat(null===t||void 0===t||null===(i=t.data)||void 0===i?void 0:i.networkName,"」,是否要绑定?"),title:"温馨提示"},(function(){e.handleConfirmBind()}))})).catch((function(t){e.confirmModal({msg:t.msg,title:"温馨提示"},(function(){}))})):this.msgWarn("请填写工单系统的网点ID")},handleConfirmBind:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var i;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.updateMyApplicationConfig({appid:e.appId,config:JSON.stringify(Object(l["a"])(Object(l["a"])({},e.config),{},{networkId:e.inputNetworkId}))});case 2:i=t.sent,i&&e.getBindTotal();case 4:case"end":return t.stop()}}),t)})))()},getListRole:function(){var e=this;Object(c["d"])({}).then((function(t){e.roleList=t.rows}))},goToBind:function(){this.employeeVisible=!0,this.$refs.employeeBindAccountModal.listOfBindDetail()},selectedUser:function(e){var t=Object(o["a"])(e);t=t.map((function(e){return Object(l["a"])(Object(l["a"])({},e),{},{type:e.userId?x["user"]:x["department"]})})),this.useStaff=t,this.handleChangeScope()},updateMyApplicationConfig:function(e){var t=this;return Object(s["a"])(Object(r["a"])().mark((function i(){var a;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,Object(p["g"])(e);case 2:return a=i.sent,t.msgSuccess("配置成功"),t.$emit("getDetail",t.appId),i.abrupt("return",a);case 6:case"end":return i.stop()}}),i)})))()},handleChangeScope:function(){var e=this.useScope,t=[];switch(e){case x["role"]:t=[{type:e,val:this.selectedRole}];break;case x["user"]:this.useStaff&&this.useStaff.length&&(t=this.useStaff.map((function(t){return{type:t.userId?e:x["department"],val:t.userId||t.id}})));break}this.setMyApplicationUseScope({appid:this.appId,useScopeList:t})},handleChangeRole:function(){this.handleChangeScope()},setMyApplicationUseScope:function(e){var t=this;Object(p["f"])(e).then((function(e){return t.msgSuccess("配置成功")}))},handleUnBind:function(){var e=this,t=Object(l["a"])(Object(l["a"])({},this.config),{},{networkId:""});this.confirmModal({msg:"企业解绑后,员工将不可在侧边栏【应用工具】中查看并处理工单数据,是否继续?"},Object(s["a"])(Object(r["a"])().mark((function i(){var a;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,Object(p["g"])({appid:e.appId,config:JSON.stringify(t)});case 2:a=i.sent,a&&(e.msgSuccess("解绑成功"),e.inputNetworkId="",e.$emit("getDetail",e.appId));case 4:case"end":return i.stop()}}),i)}))))}}},T=k,S=(i("03c1"),i("1854"),i("2877")),I=Object(S["a"])(T,a,n,!1,null,"0a612d44",null);t["default"]=I.exports},a5d3:function(e,t,i){},a672:function(e,t,i){e.exports=i.p+"static/img/企微活码pc2.e97a220a.png"},a6bb:function(e,t,i){"use strict";i("ef90")},a6c1:function(e,t,i){var a,n;(function(){var r=function(e){var t={};function i(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=e,i.c=t,i.d=function(e,t,a){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(a,n,function(t){return e[t]}.bind(null,n));return a},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=18)}([,,function(e,t,i){"use strict";function a(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function r(e,t){this.__indent_cache=new n(e,t),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new a(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}a.prototype.clone_empty=function(){var e=new a(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},a.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},a.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},a.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},a.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},a.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},a.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},a.prototype.is_empty=function(){return 0===this.__items.length},a.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},a.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},a.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},a.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},a.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},a.prototype.trim=function(){while(" "===this.last())this.__items.pop(),this.__character_count-=1},a.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var i=this.__base_string_length;return t=t||0,e<0&&(i=0),i+=e*this.__indent_size,i+=t,i},n.prototype.get_indent_string=function(e,t){var i=this.__base_string;return t=t||0,e<0&&(e=0,i=""),t+=e*this.__indent_size,this.__ensure_cache(t),i+=this.__cache[t],i},n.prototype.__ensure_cache=function(e){while(e>=this.__cache.length)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,i="";this.__indent_size&&e>=this.__indent_size&&(t=Math.floor(e/this.__indent_size),e-=t*this.__indent_size,i=new Array(t+1).join(this.__indent_string)),e&&(i+=new Array(e+1).join(" ")),this.__cache.push(i)},r.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},r.prototype.get_line_number=function(){return this.__lines.length},r.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},r.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},r.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join("\n");return"\n"!==e&&(i=i.replace(/[\n]/g,e)),i},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},r.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},r.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},r.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},r.prototype.remove_indent=function(e){var t=this.__lines.length;while(e<t)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},r.prototype.trim=function(e){e=void 0!==e&&e,this.current_line.trim();while(e&&this.__lines.length>1&&this.current_line.is_empty())this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},r.prototype.just_added_newline=function(){return this.current_line.is_empty()},r.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},r.prototype.ensure_empty_line_above=function(e,t){var i=this.__lines.length-2;while(i>=0){var n=this.__lines[i];if(n.is_empty())break;if(0!==n.item(0).indexOf(e)&&n.item(-1)!==t){this.__lines.splice(i+1,0,new a(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=r},function(e,t,i){"use strict";function a(e,t,i,a){this.type=e,this.text=t,this.comments_before=null,this.newlines=i||0,this.whitespace_before=a||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}e.exports.Token=a},,,function(e,t,i){"use strict";function a(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php"],["auto"])}function n(e,t){var i,a={};for(i in e=r(e),e)i!==t&&(a[i]=e[i]);if(t&&e[t])for(i in e[t])a[i]=e[t][i];return a}function r(e){var t,i={};for(t in e){var a=t.replace(/-/g,"_");i[a]=e[t]}return i}a.prototype._get_array=function(e,t){var i=this.raw_options[e],a=t||[];return"object"===typeof i?null!==i&&"function"===typeof i.concat&&(a=i.concat()):"string"===typeof i&&(a=i.split(/[^a-zA-Z0-9_\/\-]+/)),a},a.prototype._get_boolean=function(e,t){var i=this.raw_options[e],a=void 0===i?!!t:!!i;return a},a.prototype._get_characters=function(e,t){var i=this.raw_options[e],a=t||"";return"string"===typeof i&&(a=i.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),a},a.prototype._get_number=function(e,t){var i=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var a=parseInt(i,10);return isNaN(a)&&(a=t),a},a.prototype._get_selection=function(e,t,i){var a=this._get_selection_list(e,t,i);if(1!==a.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return a[0]},a.prototype._get_selection_list=function(e,t,i){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(i=i||[t[0]],!this._is_valid_selection(i,t))throw new Error("Invalid Default Value!");var a=this._get_array(e,i);if(!this._is_valid_selection(a,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return a},a.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=a,e.exports.normalizeOpts=r,e.exports.mergeOpts=n},,function(e,t,i){"use strict";var a=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},n.prototype.peek=function(e){var t=null;return e=e||0,e+=this.__position,e>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},n.prototype.__match=function(e,t){e.lastIndex=t;var i=e.exec(this.__input);return!i||a&&e.sticky||i.index!==t&&(i=null),i},n.prototype.test=function(e,t){return t=t||0,t+=this.__position,t>=0&&t<this.__input_length&&!!this.__match(e,t)},n.prototype.testChar=function(e,t){var i=this.peek(t);return e.lastIndex=0,null!==i&&e.test(i)},n.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(e,t,i){var a,n="";return e&&(a=this.match(e),a&&(n+=a[0])),!t||!a&&e||(n+=this.readUntil(t,i)),n},n.prototype.readUntil=function(e,t){var i="",a=this.__position;e.lastIndex=this.__position;var n=e.exec(this.__input);return n?(a=n.index,t&&(a+=n[0].length)):a=this.__input_length,i=this.__input.substring(this.__position,a),this.__position=a,i},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,t){var i=null,n="g";return t&&a&&(n="y"),"string"===typeof e&&""!==e?i=new RegExp(e,n):e&&(i=new RegExp(e.source,n)),i},n.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(e){var t=this.__position,i=this.readUntilAfter(e);return this.__position=t,i},n.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},function(e,t,i){"use strict";var a=i(8).InputScanner,n=i(3).Token,r=i(10).TokenStream,s=i(11).WhitespacePattern,o={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(e,t){this._input=new a(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new s(this._input)};l.prototype.tokenize=function(){var e;this._input.restart(),this.__tokens=new r,this._reset();var t=new n(o.START,""),i=null,a=[],s=new r;while(t.type!==o.EOF){e=this._get_next_token(t,i);while(this._is_comment(e))s.add(e),e=this._get_next_token(t,i);s.isEmpty()||(e.comments_before=s,s=new r),e.parent=i,this._is_opening(e)?(a.push(i),i=e):i&&this._is_closing(e,i)&&(e.opened=i,i.closed=e,i=a.pop(),e.parent=i),e.previous=t,t.next=e,this.__tokens.add(e),t=e}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(e,t){this._readWhitespace();var i=this._input.read(/.+/g);return i?this._create_token(o.RAW,i):this._create_token(o.EOF,"")},l.prototype._is_comment=function(e){return!1},l.prototype._is_opening=function(e){return!1},l.prototype._is_closing=function(e,t){return!1},l.prototype._create_token=function(e,t){var i=new n(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return i},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=l,e.exports.TOKEN=o},function(e,t,i){"use strict";function a(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}a.prototype.restart=function(){this.__position=0},a.prototype.isEmpty=function(){return 0===this.__tokens_length},a.prototype.hasNext=function(){return this.__position<this.__tokens_length},a.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__tokens[this.__position],this.__position+=1),e},a.prototype.peek=function(e){var t=null;return e=e||0,e+=this.__position,e>=0&&e<this.__tokens_length&&(t=this.__tokens[e]),t},a.prototype.add=function(e){this.__parent_token&&(e.parent=this.__parent_token),this.__tokens.push(e),this.__tokens_length+=1},e.exports.TokenStream=a},function(e,t,i){"use strict";var a=i(12).Pattern;function n(e,t){a.call(this,e,t),t?this._line_regexp=this._input.get_regexp(t._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}n.prototype=new a,n.prototype.__set_whitespace_patterns=function(e,t){e+="\\t ",t+="\\n\\r",this._match_pattern=this._input.get_regexp("["+e+t+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+t+"]")},n.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var e=this._input.read(this._match_pattern);if(" "===e)this.whitespace_before_token=" ";else if(e){var t=this.__split(this._newline_regexp,e);this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]}return e},n.prototype.matching=function(e,t){var i=this._create();return i.__set_whitespace_patterns(e,t),i._update(),i},n.prototype._create=function(){return new n(this._input,this)},n.prototype.__split=function(e,t){e.lastIndex=0;var i=0,a=[],n=e.exec(t);while(n)a.push(t.substring(i,n.index)),i=n.index+n[0].length,n=e.exec(t);return i<t.length?a.push(t.substring(i,t.length)):a.push(""),a},e.exports.WhitespacePattern=n},function(e,t,i){"use strict";function a(e,t){this._input=e,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,t&&(this._starting_pattern=this._input.get_regexp(t._starting_pattern,!0),this._match_pattern=this._input.get_regexp(t._match_pattern,!0),this._until_pattern=this._input.get_regexp(t._until_pattern),this._until_after=t._until_after)}a.prototype.read=function(){var e=this._input.read(this._starting_pattern);return this._starting_pattern&&!e||(e+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),e},a.prototype.read_match=function(){return this._input.match(this._match_pattern)},a.prototype.until_after=function(e){var t=this._create();return t._until_after=!0,t._until_pattern=this._input.get_regexp(e),t._update(),t},a.prototype.until=function(e){var t=this._create();return t._until_after=!1,t._until_pattern=this._input.get_regexp(e),t._update(),t},a.prototype.starting_with=function(e){var t=this._create();return t._starting_pattern=this._input.get_regexp(e,!0),t._update(),t},a.prototype.matching=function(e){var t=this._create();return t._match_pattern=this._input.get_regexp(e,!0),t._update(),t},a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){},e.exports.Pattern=a},function(e,t,i){"use strict";function a(e,t){e="string"===typeof e?e:e.source,t="string"===typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}a.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;var i=this.__directive_pattern.exec(e);while(i)t[i[1]]=i[2],i=this.__directive_pattern.exec(e);return t},a.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=a},function(e,t,i){"use strict";var a=i(12).Pattern,n={django:!1,erb:!1,handlebars:!1,php:!1};function r(e,t){a.call(this,e,t),this.__template_pattern=null,this._disabled=Object.assign({},n),this._excluded=Object.assign({},n),t&&(this.__template_pattern=this._input.get_regexp(t.__template_pattern),this._excluded=Object.assign(this._excluded,t._excluded),this._disabled=Object.assign(this._disabled,t._disabled));var i=new a(e);this.__patterns={handlebars_comment:i.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:i.starting_with(/{{{/).until_after(/}}}/),handlebars:i.starting_with(/{{/).until_after(/}}/),php:i.starting_with(/<\?(?:[=]|php)/).until_after(/\?>/),erb:i.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:i.starting_with(/{%/).until_after(/%}/),django_value:i.starting_with(/{{/).until_after(/}}/),django_comment:i.starting_with(/{#/).until_after(/#}/)}}r.prototype=new a,r.prototype._create=function(){return new r(this._input,this)},r.prototype._update=function(){this.__set_templated_pattern()},r.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},r.prototype.read_options=function(e){var t=this._create();for(var i in n)t._disabled[i]=-1===e.templating.indexOf(i);return t._update(),t},r.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},r.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);var t=this._read_template();while(t)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},r.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},r.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var i=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==i||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==i||(e=e||this.__patterns.erb.read())}else"{"===t&&(this._disabled.handlebars||this._excluded.handlebars||(e=e||this.__patterns.handlebars_comment.read(),e=e||this.__patterns.handlebars_unescaped.read(),e=e||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=e||this.__patterns.django_comment.read(),e=e||this.__patterns.django.read())));return e},e.exports.TemplatablePattern=r},,,,function(e,t,i){"use strict";var a=i(19).Beautifier,n=i(20).Options;function r(e,t,i,n){var r=new a(e,t,i,n);return r.beautify()}e.exports=r,e.exports.defaultOptions=function(){return new n}},function(e,t,i){"use strict";var a=i(20).Options,n=i(2).Output,r=i(21).Tokenizer,s=i(21).TOKEN,o=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,c=function(e,t){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=e.max_preserve_newlines,this.preserve_newlines=e.preserve_newlines,this._output=new n(e,t)};c.prototype.current_line_has_match=function(e){return this._output.current_line.has_match(e)},c.prototype.set_space_before_token=function(e,t){this._output.space_before_token=e,this._output.non_breaking_space=t},c.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},c.prototype.add_raw_token=function(e){this._output.add_raw_token(e)},c.prototype.print_preserved_newlines=function(e){var t=0;e.type!==s.TEXT&&e.previous.type!==s.TEXT&&(t=e.newlines?1:0),this.preserve_newlines&&(t=e.newlines<this.max_preserve_newlines+1?e.newlines:this.max_preserve_newlines+1);for(var i=0;i<t;i++)this.print_newline(i>0);return 0!==t},c.prototype.traverse_whitespace=function(e){return!(!e.whitespace_before&&!e.newlines)&&(this.print_preserved_newlines(e)||(this._output.space_before_token=!0),!0)},c.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},c.prototype.print_newline=function(e){this._output.add_new_line(e)},c.prototype.print_token=function(e){e.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(e.text))},c.prototype.indent=function(){this.indent_level++},c.prototype.get_full_indent=function(e){return e=this.indent_level+(e||0),e<1?"":this._output.get_indent_string(e)};var u=function(e){var t=null,i=e.next;while(i.type!==s.EOF&&e.closed!==i){if(i.type===s.ATTRIBUTE&&"type"===i.text){i.next&&i.next.type===s.EQUALS&&i.next.next&&i.next.next.type===s.VALUE&&(t=i.next.next.text);break}i=i.next}return t},d=function(e,t){var i=null,a=null;return t.closed?("script"===e?i="text/javascript":"style"===e&&(i="text/css"),i=u(t)||i,i.search("text/css")>-1?a="css":i.search(/(text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect)/)>-1?a="javascript":i.search(/(text|application|dojo)\/(x-)?(html)/)>-1?a="html":i.search(/test\/null/)>-1&&(a="null"),a):null};function p(e,t){return-1!==t.indexOf(e)}function f(e,t,i){this.parent=e||null,this.tag=t?t.tag_name:"",this.indent_level=i||0,this.parser_token=t||null}function A(e){this._printer=e,this._current_frame=null}function h(e,t,i,n){this._source_text=e||"",t=t||{},this._js_beautify=i,this._css_beautify=n,this._tag_stack=null;var r=new a(t,"html");this._options=r,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,"force".length),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,"preserve".length),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}A.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},A.prototype.record_tag=function(e){var t=new f(this._current_frame,e,this._printer.indent_level);this._current_frame=t},A.prototype._try_pop_frame=function(e){var t=null;return e&&(t=e.parser_token,this._printer.indent_level=e.indent_level,this._current_frame=e.parent),t},A.prototype._get_frame=function(e,t){var i=this._current_frame;while(i){if(-1!==e.indexOf(i.tag))break;if(t&&-1!==t.indexOf(i.tag)){i=null;break}i=i.parent}return i},A.prototype.try_pop=function(e,t){var i=this._get_frame([e],t);return this._try_pop_frame(i)},A.prototype.indent_to_tag=function(e){var t=this._get_frame(e);t&&(this._printer.indent_level=t.indent_level)},h.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&o.test(e)&&(t=e.match(o)[0])),e=e.replace(l,"\n");var i=e.match(/^[\t ]*/)[0],a={text:"",type:""},n=new m,u=new c(this._options,i),d=new r(e,this._options).tokenize();this._tag_stack=new A(u);var p=null,f=d.next();while(f.type!==s.EOF)f.type===s.TAG_OPEN||f.type===s.COMMENT?(p=this._handle_tag_open(u,f,n,a),n=p):f.type===s.ATTRIBUTE||f.type===s.EQUALS||f.type===s.VALUE||f.type===s.TEXT&&!n.tag_complete?p=this._handle_inside_tag(u,f,n,d):f.type===s.TAG_CLOSE?p=this._handle_tag_close(u,f,n):f.type===s.TEXT?p=this._handle_text(u,f,n):u.add_raw_token(f),a=p,f=d.next();var h=u._output.get_code(t);return h},h.prototype._handle_tag_close=function(e,t,i){var a={text:t.text,type:t.type};return e.alignment_size=0,i.tag_complete=!0,e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),i.is_unformatted?e.add_raw_token(t):("<"===i.tag_start_char&&(e.set_space_before_token("/"===t.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&i.has_wrapped_attrs&&e.print_newline(!1)),e.print_token(t)),!i.indent_content||i.is_unformatted||i.is_content_unformatted||(e.indent(),i.indent_content=!1),i.is_inline_element||i.is_unformatted||i.is_content_unformatted||e.set_wrap_point(),a},h.prototype._handle_inside_tag=function(e,t,i,a){var n=i.has_wrapped_attrs,r={text:t.text,type:t.type};if(e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),i.is_unformatted)e.add_raw_token(t);else if("{"===i.tag_start_char&&t.type===s.TEXT)e.print_preserved_newlines(t)?(t.newlines=0,e.add_raw_token(t)):e.print_token(t);else{if(t.type===s.ATTRIBUTE?(e.set_space_before_token(!0),i.attr_count+=1):(t.type===s.EQUALS||t.type===s.VALUE&&t.previous.type===s.EQUALS)&&e.set_space_before_token(!1),t.type===s.ATTRIBUTE&&"<"===i.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(e.traverse_whitespace(t),n=n||0!==t.newlines),this._is_wrap_attributes_force)){var o=i.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&1===i.attr_count){var l,c=!0,u=0;do{if(l=a.peek(u),l.type===s.ATTRIBUTE){c=!1;break}u+=1}while(u<4&&l.type!==s.EOF&&l.type!==s.TAG_CLOSE);o=!c}o&&(e.print_newline(!1),n=!0)}e.print_token(t),n=n||e.previous_token_wrapped(),i.has_wrapped_attrs=n}return r},h.prototype._handle_text=function(e,t,i){var a={text:t.text,type:"TK_CONTENT"};return i.custom_beautifier_name?this._print_custom_beatifier_text(e,t,i):i.is_unformatted||i.is_content_unformatted?e.add_raw_token(t):(e.traverse_whitespace(t),e.print_token(t)),a},h.prototype._print_custom_beatifier_text=function(e,t,i){var a=this;if(""!==t.text){var n,r=t.text,s=1,o="",l="";"javascript"===i.custom_beautifier_name&&"function"===typeof this._js_beautify?n=this._js_beautify:"css"===i.custom_beautifier_name&&"function"===typeof this._css_beautify?n=this._css_beautify:"html"===i.custom_beautifier_name&&(n=function(e,t){var i=new h(e,t,a._js_beautify,a._css_beautify);return i.beautify()}),"keep"===this._options.indent_scripts?s=0:"separate"===this._options.indent_scripts&&(s=-e.indent_level);var c=e.get_full_indent(s);if(r=r.replace(/\n[ \t]*$/,""),"html"!==i.custom_beautifier_name&&"<"===r[0]&&r.match(/^(<!--|<!\[CDATA\[)/)){var u=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(r);if(!u)return void e.add_raw_token(t);o=c+u[1]+"\n",r=u[4],u[5]&&(l=c+u[5]),r=r.replace(/\n[ \t]*$/,""),(u[2]||-1!==u[3].indexOf("\n"))&&(u=u[3].match(/[ \t]+$/),u&&(t.whitespace_before=u[0]))}if(r)if(n){var d=function(){this.eol="\n"};d.prototype=this._options.raw_options;var p=new d;r=n(c+r,p)}else{var f=t.whitespace_before;f&&(r=r.replace(new RegExp("\n("+f+")?","g"),"\n")),r=c+r.replace(/\n/g,"\n"+c)}o&&(r=r?o+r+"\n"+l:o+l),e.print_newline(!1),r&&(t.text=r,t.whitespace_before="",t.newlines=0,e.add_raw_token(t),e.print_newline(!0))}},h.prototype._handle_tag_open=function(e,t,i,a){var n=this._get_tag_open_token(t);return(i.is_unformatted||i.is_content_unformatted)&&t.type===s.TAG_OPEN&&0===t.text.indexOf("</")?e.add_raw_token(t):(e.traverse_whitespace(t),this._set_tag_position(e,t,n,i,a),n.is_inline_element||e.set_wrap_point(),e.print_token(t)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(n.alignment_size=t.text.length+1),n.tag_complete||n.is_unformatted||(e.alignment_size=n.alignment_size),n};var m=function(e,t){var i;(this.parent=e||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",t)?(this.tag_start_char=t.text[0],this.text=t.text,"<"===this.tag_start_char?(i=t.text.match(/^<([^\s>]*)/),this.tag_check=i?i[1]:""):(i=t.text.match(/^{{[#\^]?([^\s}]+)/),this.tag_check=i?i[1]:""),this.tag_check=this.tag_check.toLowerCase(),t.type===s.COMMENT&&(this.tag_complete=!0),this.is_start_tag="/"!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||t.closed&&"/>"===t.closed.text,this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(2)))):this.tag_complete=!0};h.prototype._get_tag_open_token=function(e){var t=new m(this._tag_stack.get_parser_token(),e);return t.alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||p(t.tag_check,this._options.void_elements),t.is_empty_element=t.tag_complete||t.is_start_tag&&t.is_end_tag,t.is_unformatted=!t.tag_complete&&p(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&p(t.tag_check,this._options.content_unformatted),t.is_inline_element=p(t.tag_name,this._options.inline)||"{"===t.tag_start_char,t},h.prototype._set_tag_position=function(e,t,i,a,n){if(i.is_empty_element||(i.is_end_tag?i.start_tag_token=this._tag_stack.try_pop(i.tag_name):(this._do_optional_end_element(i)&&(i.is_inline_element||(i.parent&&(i.parent.multiline_content=!0),e.print_newline(!1))),this._tag_stack.record_tag(i),"script"!==i.tag_name&&"style"!==i.tag_name||i.is_unformatted||i.is_content_unformatted||(i.custom_beautifier_name=d(i.tag_check,t)))),p(i.tag_check,this._options.extra_liners)&&(e.print_newline(!1),e._output.just_added_blankline()||e.print_newline(!0)),i.is_empty_element){if("{"===i.tag_start_char&&"else"===i.tag_check){this._tag_stack.indent_to_tag(["if","unless","each"]),i.indent_content=!0;var r=e.current_line_has_match(/{{#if/);r||e.print_newline(!1)}"!--"===i.tag_name&&n.type===s.TAG_CLOSE&&a.is_end_tag&&-1===i.text.indexOf("\n")||i.is_inline_element||i.is_unformatted||e.print_newline(!1)}else i.is_unformatted||i.is_content_unformatted?i.is_inline_element||i.is_unformatted||e.print_newline(!1):i.is_end_tag?(i.start_tag_token&&i.start_tag_token.multiline_content||!(i.is_inline_element||a.is_inline_element||n.type===s.TAG_CLOSE&&i.start_tag_token===a||"TK_CONTENT"===n.type))&&e.print_newline(!1):(i.indent_content=!i.custom_beautifier_name,"<"===i.tag_start_char&&("html"===i.tag_name?i.indent_content=this._options.indent_inner_html:"head"===i.tag_name?i.indent_content=this._options.indent_head_inner_html:"body"===i.tag_name&&(i.indent_content=this._options.indent_body_inner_html)),i.is_inline_element||"TK_CONTENT"===n.type||(i.parent&&(i.parent.multiline_content=!0),e.print_newline(!1)))},h.prototype._do_optional_end_element=function(e){var t=null;if(!e.is_empty_element&&e.is_start_tag&&e.parent)return"body"===e.tag_name?t=t||this._tag_stack.try_pop("head"):"li"===e.tag_name?t=t||this._tag_stack.try_pop("li",["ol","ul"]):"dd"===e.tag_name||"dt"===e.tag_name?(t=t||this._tag_stack.try_pop("dt",["dl"]),t=t||this._tag_stack.try_pop("dd",["dl"])):"rp"===e.tag_name||"rt"===e.tag_name?(t=t||this._tag_stack.try_pop("rt",["ruby","rtc"]),t=t||this._tag_stack.try_pop("rp",["ruby","rtc"])):"optgroup"===e.tag_name?t=t||this._tag_stack.try_pop("optgroup",["select"]):"option"===e.tag_name?t=t||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===e.tag_name?t=t||this._tag_stack.try_pop("caption",["table"]):"thead"===e.tag_name?(t=t||this._tag_stack.try_pop("caption",["table"]),t=t||this._tag_stack.try_pop("colgroup",["table"])):"tbody"===e.tag_name||"tfoot"===e.tag_name?(t=t||this._tag_stack.try_pop("caption",["table"]),t=t||this._tag_stack.try_pop("colgroup",["table"]),t=t||this._tag_stack.try_pop("thead",["table"]),t=t||this._tag_stack.try_pop("tbody",["table"])):"tr"===e.tag_name?(t=t||this._tag_stack.try_pop("caption",["table"]),t=t||this._tag_stack.try_pop("colgroup",["table"]),t=t||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):"th"!==e.tag_name&&"td"!==e.tag_name||(t=t||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),t=t||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"])),e.parent=this._tag_stack.get_parser_token(),t},e.exports.Beautifier=h},function(e,t,i){"use strict";var a=i(6).Options;function n(e){a.call(this,e,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}n.prototype=new a,e.exports.Options=n},function(e,t,i){"use strict";var a=i(9).Tokenizer,n=i(9).TOKEN,r=i(13).Directives,s=i(14).TemplatablePattern,o=i(12).Pattern,l={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:n.START,RAW:n.RAW,EOF:n.EOF},c=new r(/<\!--/,/-->/),u=function(e,t){a.call(this,e,t),this._current_tag_name="";var i=new s(this._input).read_options(this._options),n=new o(this._input);if(this.__patterns={word:i.until(/[\n\r\t <]/),single_quote:i.until_after(/'/),double_quote:i.until_after(/"/),attribute:i.until(/[\n\r\t =\/>]/),element_name:i.until(/[\n\r\t >\/]/),handlebars_comment:n.starting_with(/{{!--/).until_after(/--}}/),handlebars:n.starting_with(/{{/).until_after(/}}/),handlebars_open:n.until(/[\n\r\t }]/),handlebars_raw_close:n.until(/}}/),comment:n.starting_with(/<!--/).until_after(/-->/),cdata:n.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:n.starting_with(/<!\[/).until_after(/]>/),processing:n.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var r=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=n.matching(r).until_after(r)}};u.prototype=new a,u.prototype._is_comment=function(e){return!1},u.prototype._is_opening=function(e){return e.type===l.TAG_OPEN},u.prototype._is_closing=function(e,t){return e.type===l.TAG_CLOSE&&t&&((">"===e.text||"/>"===e.text)&&"<"===t.text[0]||"}}"===e.text&&"{"===t.text[0]&&"{"===t.text[1])},u.prototype._reset=function(){this._current_tag_name=""},u.prototype._get_next_token=function(e,t){var i=null;this._readWhitespace();var a=this._input.peek();return null===a?this._create_token(l.EOF,""):(i=i||this._read_open_handlebars(a,t),i=i||this._read_attribute(a,e,t),i=i||this._read_raw_content(a,e,t),i=i||this._read_close(a,t),i=i||this._read_content_word(a),i=i||this._read_comment_or_cdata(a),i=i||this._read_processing(a),i=i||this._read_open(a,t),i=i||this._create_token(l.UNKNOWN,this._input.next()),i)},u.prototype._read_comment_or_cdata=function(e){var t=null,i=null,a=null;if("<"===e){var n=this._input.peek(1);"!"===n&&(i=this.__patterns.comment.read(),i?(a=c.get_directives(i),a&&"start"===a.ignore&&(i+=c.readIgnored(this._input))):i=this.__patterns.cdata.read()),i&&(t=this._create_token(l.COMMENT,i),t.directives=a)}return t},u.prototype._read_processing=function(e){var t=null,i=null,a=null;if("<"===e){var n=this._input.peek(1);"!"!==n&&"?"!==n||(i=this.__patterns.conditional_comment.read(),i=i||this.__patterns.processing.read()),i&&(t=this._create_token(l.COMMENT,i),t.directives=a)}return t},u.prototype._read_open=function(e,t){var i=null,a=null;return t||"<"===e&&(i=this._input.next(),"/"===this._input.peek()&&(i+=this._input.next()),i+=this.__patterns.element_name.read(),a=this._create_token(l.TAG_OPEN,i)),a},u.prototype._read_open_handlebars=function(e,t){var i=null,a=null;return t||this._options.indent_handlebars&&"{"===e&&"{"===this._input.peek(1)&&("!"===this._input.peek(2)?(i=this.__patterns.handlebars_comment.read(),i=i||this.__patterns.handlebars.read(),a=this._create_token(l.COMMENT,i)):(i=this.__patterns.handlebars_open.read(),a=this._create_token(l.TAG_OPEN,i))),a},u.prototype._read_close=function(e,t){var i=null,a=null;return t&&("<"===t.text[0]&&(">"===e||"/"===e&&">"===this._input.peek(1))?(i=this._input.next(),"/"===e&&(i+=this._input.next()),a=this._create_token(l.TAG_CLOSE,i)):"{"===t.text[0]&&"}"===e&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),a=this._create_token(l.TAG_CLOSE,"}}"))),a},u.prototype._read_attribute=function(e,t,i){var a=null,n="";if(i&&"<"===i.text[0])if("="===e)a=this._create_token(l.EQUALS,this._input.next());else if('"'===e||"'"===e){var r=this._input.next();r+='"'===e?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),a=this._create_token(l.VALUE,r)}else n=this.__patterns.attribute.read(),n&&(a=t.type===l.EQUALS?this._create_token(l.VALUE,n):this._create_token(l.ATTRIBUTE,n));return a},u.prototype._is_content_unformatted=function(e){return-1===this._options.void_elements.indexOf(e)&&(-1!==this._options.content_unformatted.indexOf(e)||-1!==this._options.unformatted.indexOf(e))},u.prototype._read_raw_content=function(e,t,i){var a="";if(i&&"{"===i.text[0])a=this.__patterns.handlebars_raw_close.read();else if(t.type===l.TAG_CLOSE&&"<"===t.opened.text[0]){var n=t.opened.text.substr(1).toLowerCase();if("script"===n||"style"===n){var r=this._read_comment_or_cdata(e);if(r)return r.type=l.TEXT,r;a=this._input.readUntil(new RegExp("</"+n+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(n)&&(a=this._input.readUntil(new RegExp("</"+n+"[\\n\\r\\t ]*?>","ig")))}return a?this._create_token(l.TEXT,a):null},u.prototype._read_content_word=function(e){var t="";if(this._options.unformatted_content_delimiter&&e===this._options.unformatted_content_delimiter[0]&&(t=this.__patterns.unformatted_content_delimiter.read()),t||(t=this.__patterns.word.read()),t)return this._create_token(l.TEXT,t)},e.exports.Tokenizer=u,e.exports.TOKEN=l}]),s=r;a=[i,i("e943"),i("4d7c")],n=function(e){var t=i("e943"),a=i("4d7c");return{html_beautify:function(e,i){return s(e,i,t.js_beautify,a.css_beautify)}}}.apply(t,a),void 0===n||(e.exports=n)})()},a6d1:function(e,t,i){"use strict";i("1ab6")},a6dc:function(e,t,i){"use strict";i.d(t,"d",(function(){return n})),i.d(t,"c",(function(){return r})),i.d(t,"e",(function(){return s})),i.d(t,"a",(function(){return o})),i.d(t,"f",(function(){return l})),i.d(t,"b",(function(){return c}));var a=i("b775");function n(e){return Object(a["a"])({url:"/system/menu/list",method:"get",params:e})}function r(e){return Object(a["a"])({url:"/system/menu/"+e,method:"get"})}function s(e){return Object(a["a"])({url:"/system/menu/roleMenuTreeselect/"+e,method:"get"})}function o(e){return Object(a["a"])({url:"/system/menu",method:"post",data:e})}function l(e){return Object(a["a"])({url:"/system/menu",method:"put",data:e})}function c(e){return Object(a["a"])({url:"/system/menu/"+e,method:"delete"})}},a705:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"push-result-wrapper"},[i("RightContainer",{scopedSlots:e._u([{key:"data",fn:function(){return[e.type===e.GROUP_MESSAGE_SEND_STATUS_UNEXEC?i("div",{staticClass:"search-form"},[i("el-input",{attrs:{placeholder:"请输入员工姓名",size:"small"},model:{value:e.query.userName,callback:function(t){e.$set(e.query,"userName",t)},expression:"query.userName"}}),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.getList(1)}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1):e._e(),e.type===e.GROUP_MESSAGE_SEND_STATUS_EXECED?i("div",{staticClass:"search-form"},[e.pushType===e.GROUP_MESSAGE_PUSH_TYPE_CUSTOMER?i("el-input",{attrs:{placeholder:"请输入客户昵称",size:"small"},model:{value:e.query.customerName,callback:function(t){e.$set(e.query,"customerName",t)},expression:"query.customerName"}}):e._e(),e.pushType===e.GROUP_MESSAGE_PUSH_TYPE_GROUP?i("el-input",{attrs:{placeholder:"请输入客户群昵称",size:"small"},model:{value:e.query.groupName,callback:function(t){e.$set(e.query,"groupName",t)},expression:"query.groupName"}}):e._e(),i("el-input",{attrs:{placeholder:"请输入员工姓名",size:"small"},model:{value:e.query.userName,callback:function(t){e.$set(e.query,"userName",t)},expression:"query.userName"}}),i("el-select",{attrs:{placeholder:"请选择发送状态"},model:{value:e.query.status,callback:function(t){e.$set(e.query,"status",t)},expression:"query.status"}},e._l(e.options,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.getList(1)}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1):e._e(),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.list.length}})],1),e.type===e.GROUP_MESSAGE_SEND_STATUS_EXECED?i("el-table-column",{staticClass:"trest1",attrs:{label:e.pushType===e.GROUP_MESSAGE_PUSH_TYPE_CUSTOMER?"客户":"客户群",align:"center",prop:"customers"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"user-info"},[e.pushType===e.GROUP_MESSAGE_PUSH_TYPE_GROUP?i("i",{staticClass:"iconfont icon-groupChat"}):e._e(),e.pushType===e.GROUP_MESSAGE_PUSH_TYPE_CUSTOMER?i("img",{attrs:{src:t.row.headImageUrl}}):e._e(),i("span",[e._v(e._s(t.row.customers))])])]}}],null,!1,148442731)}):e._e(),e.type===e.GROUP_MESSAGE_SEND_STATUS_EXECED?i("el-table-column",{attrs:{label:"执行员工",align:"center",prop:"userName"}}):e._e(),e.type===e.GROUP_MESSAGE_SEND_STATUS_EXECED?i("el-table-column",{attrs:{label:"发送状态",align:"center",prop:"remark"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.GROUP_MESSAGE_SEND_STATUS_MAP[t.row.sendStatus])+" ")]}}],null,!1,1193110899)}):e._e(),e.type===e.GROUP_MESSAGE_SEND_STATUS_EXECED?i("el-table-column",{attrs:{label:"备注",align:"center",prop:"remark"}}):e._e(),e.type===e.GROUP_MESSAGE_SEND_STATUS_UNEXEC?i("el-table-column",{attrs:{label:"员工",align:"center",prop:"userName"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"user-info"},[i("img",{attrs:{src:e.getHeadImgUrl(t.row.headImageUrl)}}),i("span",[e._v(e._s(t.row.userName))])])]}}],null,!1,2019888583)}):e._e(),e.type===e.GROUP_MESSAGE_SEND_STATUS_UNEXEC?i("el-table-column",{attrs:{label:"发送对象",align:"center",prop:"customers"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.getSendTargets(t.row))+" ")]}}],null,!1,2188199770)}):e._e(),e.type===e.GROUP_MESSAGE_SEND_STATUS_UNEXEC?i("el-table-column",{attrs:{label:"操作",align:"center",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(i){return e.notify(t.row)}}},[e._v("提醒执行")])]}}],null,!1,4115894987)}):e._e()],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,disabled:e.loading,page:e.query.pageNum,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}})]},proxy:!0}])})],1)},n=[],r=i("5530"),s=i("2909"),o=(i("7db0"),i("a15b"),i("d81d"),i("fb6a"),i("a9e3"),i("dca8"),i("b64b"),i("d3b7"),i("3464")),l=i("dd70"),c=i("b66d"),u=i("e77d"),d=i("e2e0"),p=i("cf45"),f=5,A={components:{RightContainer:c["a"],EmptyDefaultIcon:u["a"]},mixins:[d["a"]],props:{type:{type:Number|String,default:l["wb"]},total:{type:Number|String,default:0},pushType:{type:String,default:l["sb"]}},data:function(){return{query:{pageNum:1,pageSize:l["Ic"],messageId:void 0,sendStatus:0,customerName:"",status:"",userName:"",groupName:""},loading:!1,list:[],options:Object.freeze(Object(s["a"])(Object.keys(l["vb"]).map((function(e){return{label:l["vb"][e],value:e}})))),GROUP_MESSAGE_PUSH_TYPE_CUSTOMER:l["sb"],GROUP_MESSAGE_PUSH_TYPE_GROUP:l["tb"],GROUP_MESSAGE_SEND_STATUS_UNEXEC:l["wb"],GROUP_MESSAGE_SEND_STATUS_EXECED:l["ub"],GROUP_MESSAGE_SEND_STATUS_MAP:l["vb"]}},computed:{},watch:{},created:function(){this.query.messageId=this.$route.query.id,this.query.sendStatus=this.type,this.getList()},mounted:function(){},methods:{getHeadImgUrl:p["B"],getList:function(e){var t=this;e&&(this.query.pageNum=e),this.loading=!0;var i=Object(r["a"])({},this.query);i.status?(i.sendStatus=i.status,delete i.status):i.sendStatus=this.type,Object(o["f"])(i).then((function(e){var i=e.rows,a=e.total;t.list=i,t.$emit("update:total",+a)})).finally((function(){t.modifyButtonStatus(),t.loading=!1}))},resetQuery:function(){this.query.userName="",this.query.customerName="",this.query.groupName="",this.query.status="",this.getList(1)},notify:function(e){var t=this,i=e.userId,a=e.customers;Object(o["h"])({userId:i,customers:a,pushType:this.pushType}).then((function(e){t.msgSuccess("提醒成功")}))},getSendTargets:function(e){var t=e.customers.split("、");return e.count>f?t.slice(0,f).join("、")+"等"+e.count+(this.pushType===l["sb"]?"人":"个"):e.customers},getUserHeadImg:function(e){var t=this.$store.state.listInfo.userList.find((function(t){return t.userId===e}));return t&&t.avatarMediaid}}},h=A,m=(i("4db1"),i("2877")),g=Object(m["a"])(h,a,n,!1,null,"edd8a124",null);t["default"]=g.exports},a750:function(e,t,i){},a784:function(e,t,i){e.exports=i.p+"static/img/defaultAppLogo.1ff214b0.png"},a7f9:function(e,t,i){"use strict";i("90d6")},a814:function(e,t,i){"use strict";i("9b96")},a882:function(e,t,i){"use strict";i("e541")},a8f7:function(e,t,i){"use strict";i("90c7")},a92a:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-dialog",e._g(e._b({attrs:{width:"500px","close-on-click-modal":!1,"modal-append-to-body":!1},on:{open:e.onOpen,close:e.onClose}},"el-dialog",e.$attrs,!1),e.$listeners),[i("el-row",{attrs:{gutter:15}},[i("el-form",{ref:"elForm",attrs:{model:e.formData,rules:e.rules,size:"medium","label-width":"100px"}},[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"生成类型",prop:"type"}},[i("el-radio-group",{model:{value:e.formData.type,callback:function(t){e.$set(e.formData,"type",t)},expression:"formData.type"}},e._l(e.typeOptions,(function(t,a){return i("el-radio-button",{key:a,attrs:{label:t.value,disabled:t.disabled}},[e._v(" "+e._s(t.label)+" ")])})),1)],1),e.showFileName?i("el-form-item",{attrs:{label:"文件名",prop:"fileName"}},[i("el-input",{attrs:{placeholder:"请输入文件名",clearable:""},model:{value:e.formData.fileName,callback:function(t){e.$set(e.formData,"fileName",t)},expression:"formData.fileName"}})],1):e._e()],1)],1)],1),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.close}},[e._v(" 取消 ")]),i("el-button",{attrs:{type:"primary"},on:{click:e.handelConfirm}},[e._v(" 确定 ")])],1)],1)],1)},n=[],r=i("5530"),s={inheritAttrs:!1,props:["showFileName"],data:function(){return{formData:{fileName:void 0,type:"file"},rules:{fileName:[{required:!0,message:"请输入文件名",trigger:"blur"}],type:[{required:!0,message:"生成类型不能为空",trigger:"change"}]},typeOptions:[{label:"页面",value:"file"},{label:"弹窗",value:"dialog"}]}},computed:{},watch:{},mounted:function(){},methods:{onOpen:function(){this.showFileName&&(this.formData.fileName="".concat(+new Date,".vue"))},onClose:function(){},close:function(e){this.$emit("update:visible",!1)},handelConfirm:function(){var e=this;this.$refs.elForm.validate((function(t){t&&(e.$emit("confirm",Object(r["a"])({},e.formData)),e.close())}))}}},o=s,l=i("2877"),c=Object(l["a"])(o,a,n,!1,null,null,null);t["default"]=c.exports},a97f:function(e,t,i){},a983:function(e,t,i){},a9a0:function(e,t,i){"use strict";i("84f0")},a9cf:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("RightContainer",{attrs:{"config-keys":["contactSecret"],"page-title":"查看客户群信息"},scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{model:e.query,inline:!0,"label-width":"80px"}},[i("el-form-item",{attrs:{prop:"groupName"}},[i("el-input",{attrs:{placeholder:"请输入客户群昵称",clearable:""},model:{value:e.query.groupName,callback:function(t){e.$set(e.query,"groupName",t)},expression:"query.groupName"}})],1),i("el-form-item",{attrs:{prop:"groupLeader"}},[i("el-input",{attrs:{placeholder:"请输入群主",clearable:""},model:{value:e.query.groupLeader,callback:function(t){e.$set(e.query,"groupLeader",t)},expression:"query.groupLeader"}})],1),i("el-form-item",{attrs:{prop:"groupStatus"}},[i("el-select",{attrs:{placeholder:"请选择客户群状态"},model:{value:e.query.groupStatus,callback:function(t){e.$set(e.query,"groupStatus",t)},expression:"query.groupStatus"}},e._l(e.statusOptions,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),i("el-form-item",[i("div",{staticClass:"tag-input",on:{click:e.showTagDialog}},[e.queryTag.length?e._l(e.queryTag,(function(t,a){return i("el-tag",{key:a,attrs:{type:"info",closable:""},on:{close:function(i){return e.deleteTag(t)}}},[e._v(e._s(t.name))])})):i("span",{staticClass:"tag-place"},[e._v("请选择标签")])],2)]),i("el-form-item",[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"daterange","picker-options":e.pickerOptions,"range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),i("el-form-item",{attrs:{label:" "}},[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.getList(1)}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"operate-btn",fn:function(){return[i("el-dropdown",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:group:edit"],expression:"['customerManage:group:edit']"}],staticClass:"dropdown-reset",staticStyle:{"margin-right":"10px"},attrs:{"split-button":""},on:{click:function(t){return e.makeTag("batchAdd")},command:function(t){return e.makeTag(t)}}},[e._v(" 批量打标签 "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{staticStyle:{width:"120px"},attrs:{command:"remove"}},[e._v("批量移除标签")])],1)],1),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:group:sync"],expression:"['customerManage:group:sync']"}],on:{click:e.sync}},[e._v("同步客户群")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:group:export"],expression:"['customerManage:group:export']"}],on:{click:e.exportGroup}},[e._v("导出客户群")])]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list},on:{"selection-change":e.handleSelectionChange}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{text:"暂无数据",desc:"若首次加载,请耐心等待后台数据同步,稍后回来","desc-show-condition":{groupName:e.query.groupName,groupLeader:e.query.groupLeader,beginTime:e.query.beginTime,endTime:e.query.endTime}}})],1),i("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),i("el-table-column",{attrs:{label:"群昵称",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"group-name"},[i("svg",{staticClass:"icon-groupChat mr5",attrs:{width:35,height:35}},[i("use",{attrs:{href:"#icon-groupChat"}})]),i("div",[e._v(e._s(t.row.groupName))])])]}}])}),i("el-table-column",{attrs:{label:"群成员",align:"left",prop:"memberNum"}}),i("el-table-column",{attrs:{label:"群主",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"al"},[i("div",{staticClass:"cus-owner"},[e._v(e._s(t.row.groupLeaderName))]),i("div",{staticClass:"cus-dept"},[e._v(e._s(t.row.mainDepartmentName))])])]}}])}),i("el-table-column",{attrs:{prop:"address",label:"标签",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return e._l(a.tagList,(function(t,a){return i("el-tag",{key:a,attrs:{type:"info"}},[e._v(e._s(t.name))])}))}}])}),i("el-table-column",{attrs:{label:"客户群状态",prop:"status"},scopedSlots:e._u([{key:"header",fn:function(){return[i("span",[e._v("客户群状态")]),i("el-popover",{attrs:{placement:"top-start",content:"待继承:离职员工的客户群,等待被分配给在职员工",trigger:"hover","popper-class":"tip-popover"}},[i("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"14px"},attrs:{slot:"reference"},slot:"reference"})])]},proxy:!0},{key:"default",fn:function(t){var a=t.row;return[i("span",[e._v(e._s(a.groupStatus?e.GROUP_STATUS_MAP[a.groupStatus]:""))])]}}])}),i("el-table-column",{attrs:{label:"创建时间",align:"left",prop:"createTime",width:"180"}}),i("el-table-column",{attrs:{label:"操作",align:"left","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:group:view"],expression:"['customerManage:group:view']"}],attrs:{size:"mini",type:"text"},on:{click:function(i){return e.goRoute(t.row)}}},[e._v("详情")])]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,disabled:e.loading,page:e.query.pageNum,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}}),i("SelectTag",{ref:"selectTag",attrs:{visible:e.dialogVisible,title:e.tagDialogType.title,selected:e.selectedTags,type:e.tagDialogType.type,"info-msg":e.tagDialogType.infoMsg,"remove-tags":e.removeTags,"is-show-add":"batchAdd"===e.tagDialogType.type,loading:e.tagDialogLoading,"tag-type":"group"},on:{"update:visible":function(t){e.dialogVisible=t},success:e.submitSelectTag}})]},proxy:!0}])})},n=[],r=i("2909"),s=i("5530"),o=(i("7db0"),i("c740"),i("d81d"),i("a434"),i("b0c0"),i("b64b"),i("d3b7"),i("159b"),i("14e1")),l=i("2553"),c=i("b66d"),u=i("aada"),d=i("e77d"),p=i("ed08"),f=i("e2e0"),A=i("dd70"),h={name:"Group",components:{RightContainer:c["a"],EmptyDefaultIcon:d["a"],SelectTag:u["a"]},mixins:[f["a"]],data:function(){return{query:{pageNum:1,pageSize:A["Ic"],groupName:void 0,groupLeader:void 0,beginTime:void 0,endTime:void 0,tagIds:"",groupStatus:void 0},dateRange:[],pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()},shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-A["lc"]),e.$emit("pick",[i,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-A["jc"]),e.$emit("pick",[i,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-A["kc"]),e.$emit("pick",[i,t])}}]},loading:!1,ids:[],multiple:!0,total:0,list:[],statusOptions:A["zb"].map((function(e){return{label:A["yb"][e],value:e}})),batchTag:!1,dialogVisible:!1,tagDialogType:{title:"",type:""},selectedTags:[],queryTag:[],removeTags:[],tagDialogLoading:!1,multipleSelection:[],GROUP_STATUS_MAP:A["yb"]}},created:function(){var e=this.$store.getters.searchQuery[this.$route.name];if(this.$store.getters.saveCondition&&Object.keys(e||{}).length){var t=e.beginTime,i=e.endTime;t&&i&&(this.dateRange=[t,i]),this.queryTag=e.queryTag||[],delete e.queryTag,this.query=e}this.getList()},methods:{setQueryTime:function(){this.dateRange?(this.query.beginTime=this.dateRange[0],this.query.endTime=this.dateRange[1]):(this.query.beginTime="",this.query.endTime="")},exportGroup:function(){var e=this;this.setQueryTime(),this.$confirm("即将导出当前查询结果,是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){o["a"](e.query).then((function(t){e.download(t.msg,!0)})).catch((function(t){e.msgError("导出失败!")}))})).catch((function(){}))},getList:function(e){var t=this;this.setQueryTime(),e&&(this.query.pageNum=e),this.loading=!0,o["b"](this.query).then((function(e){var i=e.rows,a=e.total;t.list=i,t.total=+a})).finally((function(){t.modifyButtonStatus(),t.loading=!1}))},resetQuery:function(){var e=this;this.queryTag=[],this.query.tagIds="",this.dateRange=[],this.query=this.$options.data().query,this.$nextTick((function(){e.getList(1)}))},sync:function(){var e=this,t=this.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});o["e"]().then((function(){t.close(),e.msgSuccess("后台开始同步数据,请稍后关注进度")}))},handleSelectionChange:function(e){this.multipleSelection=e,this.ids=e.map((function(e){return e.id})),this.multiple=!e.length},goRoute:function(e){this.$store.commit("SET_SEARCH_QUERY",{pageName:this.$route.name,query:Object(s["a"])(Object(s["a"])({},this.query),{},{queryTag:this.queryTag})}),Object(p["l"])(this.$router,"groupDetail",{},e)},makeTag:function(e){var t=this;if(!this.multipleSelection.length){var i="请选择一个客户群";return"batchAdd"===e&&(i="请至少选择一个客户群"),void this.msgWarn(i)}this.selectedTags=[];var a=[];this.multipleSelection.forEach((function(i){i.tagList.forEach((function(i){var n=t.selectedTags.some((function(e){return e.tagId===i.tagId}));if(!n){var r=[];t.$store.state.listInfo.groupTagList.forEach((function(e){e.tagList.forEach((function(t){var i=Object(s["a"])(Object(s["a"])({},t),{},{tagId:t.id,groupName:e.groupName||e.name});r.push(i)}))}));var o=r.find((function(e){return e.id===i.tagId}));o?"batchAdd"!==e&&t.selectedTags.push(o):a.push(i.tagName)}}))})),a.length>0?this.msgError("已有标签["+a+"]不在标签库中,或存在异常"):"remove"!==e||0!==this.selectedTags.length?("remove"===e&&(this.removeTags=Object(r["a"])(this.selectedTags.map((function(e){return Object(s["a"])(Object(s["a"])({},e),{},{tagId:e.id})}))),this.selectedTags=[]),this.tagDialogType={title:"batchAdd"===e?"批量打标签":"批量移除标签",infoMsg:"batchAdd"===e?"请选择要为已勾选的客户群打上的标签":"以下选中的标签,将从已勾选客户群下移除",type:e},this.dialogVisible=!0):this.msgError("该客户没有标签,不可进行移除")},showTagDialog:function(){this.selectedTags=Object(r["a"])(this.queryTag),this.tagDialogType={title:"选择标签",type:"query"},this.dialogVisible=!0},deleteTag:function(e){var t=this.queryTag.findIndex((function(t){return t.tagId===e.tagId}));this.queryTag.splice(t,1),this.query.tagIds=this.queryTag.map((function(e){return e.tagId}))+""},submitSelectTag:function(e){var t=this;if("query"===this.tagDialogType.type)this.query.tagIds=e.map((function(e){return e.tagId}))+"",this.queryTag=Object(r["a"])(e),this.dialogVisible=!1;else{this.tagDialogLoading=!0;var i={chatIdList:this.multipleSelection.map((function(e){return e.chatId})),tagIdList:e.map((function(e){return e.id}))};l["batchAdd"===this.tagDialogType.type?"batchAddTagRel":"batchDelTagRel"](i).then((function(){t.tagDialogLoading=!1,t.msgSuccess("操作成功"),t.dialogVisible=!1,t.getList()})).catch((function(){t.tagDialogLoading=!1}))}}}},m=h,g=(i("2efb"),i("2877")),v=Object(g["a"])(m,a,n,!1,null,"0b67d43e",null);t["default"]=v.exports},a9da:function(e,t,i){},a9df:function(e,t,i){"use strict";i("5650")},a9f9:function(e,t,i){"use strict";i("0ecd")},aada:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{staticClass:"tag-dialog",attrs:{title:e.title,visible:e.Pvisible,"close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.Pvisible=t},closed:e.closed}},[e.infoMsg?i("el-alert",{staticClass:"theme-el-alert",attrs:{title:e.infoMsg,type:"info","show-icon":"",closable:!1}}):e._e(),i("div",[i("div",{staticClass:"search-area"},[i("el-select",{attrs:{clearable:"",filterable:"",placeholder:"所有标签组"},model:{value:e.selectedGroup,callback:function(t){e.selectedGroup=t},expression:"selectedGroup"}},e._l(e.list.filter(e.removeGroupFilterFn),(function(e,t){return i("el-option",{key:t,attrs:{label:e.groupName,value:e.groupId}})})),1),i("el-input",{attrs:{placeholder:"请输入标签",clearable:"","suffix-icon":e.tagName?"":"el-icon-search"},model:{value:e.tagName,callback:function(t){e.tagName=t},expression:"tagName"}})],1),e.Pvisible?i("div",{staticClass:"mt20"},[i("div",{staticClass:"tag-group-container"},[i("empty-default-icon",{attrs:{length:e.filterTagList.length}}),e._l(e.filterTagList,(function(t){return i("div",{key:t.groupId,staticClass:"tag-group"},[i("BorderColor",{staticClass:"tag-group-name"},[e._v(e._s(t.groupName))]),i("div",{staticClass:"tag-group-list flex"},[i("el-button",{directives:[{name:"show",rawName:"v-show",value:"add"===e.type,expression:"type === 'add'"},{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:tag:edit"],expression:"['customerManage:tag:edit']"}],attrs:{icon:"el-icon-plus"},on:{click:function(i){return e.addTagFn(t)}}},[e._v("添加标签")]),e.isShowAdd?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:tag:edit"],expression:"['customerManage:tag:edit']"}],attrs:{icon:"el-icon-plus"},on:{click:function(i){return e.showAddTagDialog(t)}}},[e._v("添加标签")]):e._e(),i("div",{staticClass:"tag-list"},e._l(t.weTags.filter((function(t){return e.removeTagFilterFn(t)&&e.tagFilterFn(t)})),(function(t){return i("el-button",{key:t.tagId,class:e.isChecked(t)?"selected":"",on:{click:function(i){return e.selectOneTag(t)}}},[e._v(e._s(t.name))])})),1)],1)],1)}))],2)]):e._e(),e._t("default")],2),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{directives:[{name:"show",rawName:"v-show",value:"add"===e.type,expression:"type === 'add'"},{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:tag:add"],expression:"['customerManage:tag:add']"}],staticClass:"fl",attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.addTagFn({})}}},[e._v("添加标签组")]),e.isShowAdd?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:tag:add"],expression:"['customerManage:tag:add']"}],staticClass:"fl",attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.showAddTagDialog({})}}},[e._v("添加标签组")]):e._e(),i("el-button",{on:{click:function(t){e.Pvisible=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.submit}},[e._v("确 定")])],1),i("AddTag",{attrs:{visible:e.dialogVisibleAddTag,"is-add-tag":!0,"tag-type":e.tagType,form:e.form},on:{"update:visible":function(t){e.dialogVisibleAddTag=t},success:e.getList}})],1)},n=[],r=i("5530"),s=i("2909"),o=(i("4de4"),i("7db0"),i("c740"),i("caad"),i("d81d"),i("fb6a"),i("a434"),i("b0c0"),i("e9c4"),i("a9e3"),i("b64b"),i("d3b7"),i("2532"),i("159b"),i("b9b5")),l=i("e77d"),c={name:"SelectTag",components:{EmptyDefaultIcon:l["a"],AddTag:o["a"]},props:{visible:{type:Boolean,default:!1},title:{type:String,default:"选择标签"},selected:{type:Array,default:function(){return[]}},type:{type:String,default:"add"},infoMsg:{type:String,default:""},addTagFn:{type:Function,default:function(){}},removeTags:{type:Array,default:function(){return[]}},isMandatory:{type:Number,default:1},isShowAdd:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},tagType:{type:String,default:"customer"}},data:function(){return{list:[],listOneArray:[],selectedGroup:"",removeTag:[],Pselected:[],dialogVisibleAddTag:!1,tagName:"",form:{groupName:"",weTags:[]}}},computed:{Pvisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}},filterTagList:{get:function(){var e=this;return this.list.filter((function(t){return e.removeGroupFilterFn(t)&&e.groupFilterFn(t)}))}}},watch:{selected:function(e){this.dealSelectTag(e)},list:function(){var e=this;"add"===this.type?this.selected.forEach((function(t){var i=e.listOneArray.find((function(e){return t.tagId===e.tagId}));i&&!e.Pselected.find((function(e){return e.tagId===t.tagId}))&&e.Pselected.push(i)})):"remove"===this.type&&(this.removeTag=this.selected.slice(),this.Pselected=this.selected.slice())},Pvisible:function(e){e?this.dealSelectTag(this.selected):(this.Pselected=[],this.removeTag=[])}},created:function(){this.getList()},mounted:function(){this.dealSelectTag(this.selected)},methods:{dealSelectTag:function(e){var t=this;"add"===this.type?e.forEach((function(e){var i=t.listOneArray.find((function(t){return e.tagId===t.tagId}));i&&!t.Pselected.find((function(t){return t.tagId===e.tagId}))&&t.Pselected.push(i)})):"remove"===this.type?(this.removeTag=e.slice(),this.Pselected=e.slice()):this.Pselected=Object(s["a"])(e)},getList:function(e){var t=this;this.$store.dispatch("listInfo/"+("customer"===this.tagType?"getTagList":"getGroupTagList")).then((function(i){var a,n=i.rows,s=i.data;("customer"===t.tagType?t.list=n:t.list=s.map((function(e){return Object(r["a"])(Object(r["a"])({},e),{},{groupName:e.name,groupId:e.id,weTags:e.tagList.map((function(e){return Object(r["a"])(Object(r["a"])({},e),{},{tagId:e.id})}))})})),t.listOneArray=[],t.list.forEach((function(e){e.weTags.forEach((function(i){t.listOneArray.push(Object(r["a"])({groupName:e.groupName},i))}))})),e)&&e.map((function(e){a=-1,a=t.listOneArray.findIndex((function(t){return e.groupName===t.groupName&&e.name===t.name})),-1!==a&&t.Pselected.push(t.listOneArray[a])}))}))},submit:function(){!this.isMandatory||this.Pselected.length?this.$emit("success",this.Pselected):this.msgError("请至少选择一个标签")},isChecked:function(e){return this.Pselected.some((function(t){return e.tagId===t.tagId}))},toJson:function(e){return JSON.stringify(e)},removeGroupFilterFn:function(e){if("remove"!==this.type)return!0;var t=this.removeTags.find((function(t){return t.groupId===e.groupId}));return t},removeTagFilterFn:function(e){if("remove"!==this.type)return!0;var t=this.removeTags.find((function(t){return t.tagId===e.tagId}));return t},groupFilterFn:function(e){var t=this,i=!this.selectedGroup||e.groupId===this.selectedGroup;if(this.tagName){var a=e.weTags.find((function(e){return e.name.includes(t.tagName)}));return a&&i}return i},tagFilterFn:function(e){return!this.tagName||e.name.includes(this.tagName)},selectOneTag:function(e){var t=this.Pselected.findIndex((function(t){return t.tagId===e.tagId}));-1===t?this.Pselected.push(e):this.Pselected.splice(t,1)},showAddTagDialog:function(e){this.form=JSON.parse(JSON.stringify(Object(r["a"])({weTags:[]},e))),this.dialogVisibleAddTag=!0},closed:function(){this.tagName="",this.selectedGroup=""}}},u=c,d=(i("cbd9"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"48763851",null);t["a"]=p.exports},aaf5:function(e,t,i){},ab76:function(e,t,i){},ab99:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"list"},[e.personList.length>=1?i("div",[i("ul",e._l(e.personList,(function(t,a){return i("li",{key:a,on:{click:function(i){return e.liClick(t)}}},[i("el-row",{staticStyle:{padding:"10px"}},[i("span",{staticClass:"fl"},[i("img",{attrs:{src:t.finalChatContext.fromInfo.avatar}})]),i("span",{staticClass:"fl",staticStyle:{"margin-left":"8px"}},[i("p",[e._v(" "+e._s(t.roomInfo.groupName)+" "),i("span",{staticClass:"fr gray"},[e._v(e._s(e.parseTime(t.finalChatContext.msgtime)))])]),t.finalChatContext.text?i("p",{staticClass:"gray "},[e._v(" "+e._s(t.finalChatContext.text.content)+" ")]):e._e()])])],1)})),0)]):i("div")])},n=[],r={props:{personList:{type:Array,default:function(){return[]}},loading:{type:Boolean,defluat:!1}},data:function(){return{loadings:!0}},methods:{liClick:function(e){this.$emit("chatFn",e)}}},s=r,o=(i("f745"),i("2877")),l=Object(o["a"])(s,a,n,!1,null,"9fd19c16",null);t["default"]=l.exports},abe2:function(e,t,i){(function(t){
|
||
/*!
|
||
* TOAST UI ImageEditor
|
||
* @version 3.15.3
|
||
* @license MIT
|
||
*/
|
||
(function(t,a){e.exports=a(i("fec2"))})(self,(function(e){return function(){var i={2777:function(e,i,a){
|
||
/*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */
|
||
var n=n||{version:"4.6.0"};if(i.fabric=n,"undefined"!==typeof document&&"undefined"!==typeof window)document instanceof("undefined"!==typeof HTMLDocument?HTMLDocument:Document)?n.document=document:n.document=document.implementation.createHTMLDocument(""),n.window=window;else{var r=a(4960),s=new r.JSDOM(decodeURIComponent("%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%3C%2Fbody%3E%3C%2Fhtml%3E"),{features:{FetchExternalResources:["img"]},resources:"usable"}).window;n.document=s.document,n.jsdomImplForWrapper=a(6759).implForWrapper,n.nodeCanvas=a(6272).Canvas,n.window=s,DOMParser=n.window.DOMParser}function o(e){var t=e.targetCanvas,i=t.width,a=t.height,n=e.destinationWidth,r=e.destinationHeight;i===n&&a===r||(t.width=n,t.height=r)}function l(e,t){var i=e.canvas,a=t.targetCanvas,n=a.getContext("2d");n.translate(0,a.height),n.scale(1,-1);var r=i.height-a.height;n.drawImage(i,0,r,a.width,a.height,0,0,a.width,a.height)}function c(e,t){var i=t.targetCanvas,a=i.getContext("2d"),n=t.destinationWidth,r=t.destinationHeight,s=n*r*4,o=new Uint8Array(this.imageBuffer,0,s),l=new Uint8ClampedArray(this.imageBuffer,0,s);e.readPixels(0,0,n,r,e.RGBA,e.UNSIGNED_BYTE,o);var c=new ImageData(l,n,r);a.putImageData(c,0,0)}n.isTouchSupported="ontouchstart"in n.window||"ontouchstart"in n.document||n.window&&n.window.navigator&&n.window.navigator.maxTouchPoints>0,n.isLikelyNode="undefined"!==typeof t&&"undefined"===typeof window,n.SHARED_ATTRIBUTES=["display","transform","fill","fill-opacity","fill-rule","opacity","stroke","stroke-dasharray","stroke-linecap","stroke-dashoffset","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","id","paint-order","vector-effect","instantiated_by_use","clip-path"],n.DPI=96,n.reNum="(?:[-+]?(?:\\d+|\\d*\\.\\d+)(?:[eE][-+]?\\d+)?)",n.commaWsp="(?:\\s+,?\\s*|,\\s*)",n.rePathCommand=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:[eE][-+]?\d+)?)/gi,n.reNonWord=/[ \n\.,;!\?\-]/,n.fontPaths={},n.iMatrix=[1,0,0,1,0,0],n.svgNS="http://www.w3.org/2000/svg",n.perfLimitSizeTotal=2097152,n.maxCacheSideLimit=4096,n.minCacheSideLimit=256,n.charWidthsCache={},n.textureSize=2048,n.disableStyleCopyPaste=!1,n.enableGLFiltering=!0,n.devicePixelRatio=n.window.devicePixelRatio||n.window.webkitDevicePixelRatio||n.window.mozDevicePixelRatio||1,n.browserShadowBlurConstant=1,n.arcToSegmentsCache={},n.boundsOfCurveCache={},n.cachesBoundsOfCurve=!0,n.forceGLPutImageData=!1,n.initFilterBackend=function(){return n.enableGLFiltering&&n.isWebglSupported&&n.isWebglSupported(n.textureSize)?new n.WebglFilterBackend({tileSize:n.textureSize}):n.Canvas2dFilterBackend?new n.Canvas2dFilterBackend:void 0},"undefined"!==typeof document&&"undefined"!==typeof window&&(window.fabric=n),function(){function e(e,t){if(this.__eventListeners[e]){var i=this.__eventListeners[e];t?i[i.indexOf(t)]=!1:n.util.array.fill(i,!1)}}function t(e,t){if(this.__eventListeners||(this.__eventListeners={}),1===arguments.length)for(var i in e)this.on(i,e[i]);else this.__eventListeners[e]||(this.__eventListeners[e]=[]),this.__eventListeners[e].push(t);return this}function i(e,t){var i=function(){t.apply(this,arguments),this.off(e,i)}.bind(this);this.on(e,i)}function a(e,t){if(1===arguments.length)for(var a in e)i.call(this,a,e[a]);else i.call(this,e,t);return this}function r(t,i){if(!this.__eventListeners)return this;if(0===arguments.length)for(t in this.__eventListeners)e.call(this,t);else if(1===arguments.length&&"object"===typeof arguments[0])for(var a in t)e.call(this,a,t[a]);else e.call(this,t,i);return this}function s(e,t){if(!this.__eventListeners)return this;var i=this.__eventListeners[e];if(!i)return this;for(var a=0,n=i.length;a<n;a++)i[a]&&i[a].call(this,t||{});return this.__eventListeners[e]=i.filter((function(e){return!1!==e})),this}n.Observable={fire:s,on:t,once:a,off:r}}(),n.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var e=0,t=arguments.length;e<t;e++)this._onObjectAdded(arguments[e]);return this.renderOnAddRemove&&this.requestRenderAll(),this},insertAt:function(e,t,i){var a=this._objects;return i?a[t]=e:a.splice(t,0,e),this._onObjectAdded&&this._onObjectAdded(e),this.renderOnAddRemove&&this.requestRenderAll(),this},remove:function(){for(var e,t=this._objects,i=!1,a=0,n=arguments.length;a<n;a++)e=t.indexOf(arguments[a]),-1!==e&&(i=!0,t.splice(e,1),this._onObjectRemoved&&this._onObjectRemoved(arguments[a]));return this.renderOnAddRemove&&i&&this.requestRenderAll(),this},forEachObject:function(e,t){for(var i=this.getObjects(),a=0,n=i.length;a<n;a++)e.call(t,i[a],a,i);return this},getObjects:function(e){return"undefined"===typeof e?this._objects.concat():this._objects.filter((function(t){return t.type===e}))},item:function(e){return this._objects[e]},isEmpty:function(){return 0===this._objects.length},size:function(){return this._objects.length},contains:function(e,t){return this._objects.indexOf(e)>-1||!!t&&this._objects.some((function(t){return"function"===typeof t.contains&&t.contains(e,!0)}))},complexity:function(){return this._objects.reduce((function(e,t){return e+=t.complexity?t.complexity():0,e}),0)}},n.CommonMethods={_setOptions:function(e){for(var t in e)this.set(t,e[t])},_initGradient:function(e,t){!e||!e.colorStops||e instanceof n.Gradient||this.set(t,new n.Gradient(e))},_initPattern:function(e,t,i){!e||!e.source||e instanceof n.Pattern?i&&i():this.set(t,new n.Pattern(e,i))},_setObject:function(e){for(var t in e)this._set(t,e[t])},set:function(e,t){return"object"===typeof e?this._setObject(e):this._set(e,t),this},_set:function(e,t){this[e]=t},toggle:function(e){var t=this.get(e);return"boolean"===typeof t&&this.set(e,!t),this},get:function(e){return this[e]}},function(e){var t=Math.sqrt,i=Math.atan2,a=Math.pow,r=Math.PI/180,s=Math.PI/2;n.util={cos:function(e){if(0===e)return 1;e<0&&(e=-e);var t=e/s;switch(t){case 1:case 3:return 0;case 2:return-1}return Math.cos(e)},sin:function(e){if(0===e)return 0;var t=e/s,i=1;switch(e<0&&(i=-1),t){case 1:return i;case 2:return 0;case 3:return-i}return Math.sin(e)},removeFromArray:function(e,t){var i=e.indexOf(t);return-1!==i&&e.splice(i,1),e},getRandomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e},degreesToRadians:function(e){return e*r},radiansToDegrees:function(e){return e/r},rotatePoint:function(e,t,i){var a=new n.Point(e.x-t.x,e.y-t.y),r=n.util.rotateVector(a,i);return new n.Point(r.x,r.y).addEquals(t)},rotateVector:function(e,t){var i=n.util.sin(t),a=n.util.cos(t),r=e.x*a-e.y*i,s=e.x*i+e.y*a;return{x:r,y:s}},transformPoint:function(e,t,i){return i?new n.Point(t[0]*e.x+t[2]*e.y,t[1]*e.x+t[3]*e.y):new n.Point(t[0]*e.x+t[2]*e.y+t[4],t[1]*e.x+t[3]*e.y+t[5])},makeBoundingBoxFromPoints:function(e,t){if(t)for(var i=0;i<e.length;i++)e[i]=n.util.transformPoint(e[i],t);var a=[e[0].x,e[1].x,e[2].x,e[3].x],r=n.util.array.min(a),s=n.util.array.max(a),o=s-r,l=[e[0].y,e[1].y,e[2].y,e[3].y],c=n.util.array.min(l),u=n.util.array.max(l),d=u-c;return{left:r,top:c,width:o,height:d}},invertTransform:function(e){var t=1/(e[0]*e[3]-e[1]*e[2]),i=[t*e[3],-t*e[1],-t*e[2],t*e[0]],a=n.util.transformPoint({x:e[4],y:e[5]},i,!0);return i[4]=-a.x,i[5]=-a.y,i},toFixed:function(e,t){return parseFloat(Number(e).toFixed(t))},parseUnit:function(e,t){var i=/\D{0,2}$/.exec(e),a=parseFloat(e);switch(t||(t=n.Text.DEFAULT_SVG_FONT_SIZE),i[0]){case"mm":return a*n.DPI/25.4;case"cm":return a*n.DPI/2.54;case"in":return a*n.DPI;case"pt":return a*n.DPI/72;case"pc":return a*n.DPI/72*12;case"em":return a*t;default:return a}},falseFunction:function(){return!1},getKlass:function(e,t){return e=n.util.string.camelize(e.charAt(0).toUpperCase()+e.slice(1)),n.util.resolveNamespace(t)[e]},getSvgAttributes:function(e){var t=["instantiated_by_use","style","id","class"];switch(e){case"linearGradient":t=t.concat(["x1","y1","x2","y2","gradientUnits","gradientTransform"]);break;case"radialGradient":t=t.concat(["gradientUnits","gradientTransform","cx","cy","r","fx","fy","fr"]);break;case"stop":t=t.concat(["offset","stop-color","stop-opacity"]);break}return t},resolveNamespace:function(t){if(!t)return n;var i,a=t.split("."),r=a.length,s=e||n.window;for(i=0;i<r;++i)s=s[a[i]];return s},loadImage:function(e,t,i,a){if(e){var r=n.util.createImage(),s=function(){t&&t.call(i,r,!1),r=r.onload=r.onerror=null};r.onload=s,r.onerror=function(){n.log("Error loading "+r.src),t&&t.call(i,null,!0),r=r.onload=r.onerror=null},0!==e.indexOf("data")&&void 0!==a&&null!==a&&(r.crossOrigin=a),"data:image/svg"===e.substring(0,14)&&(r.onload=null,n.util.loadImageInDom(r,s)),r.src=e}else t&&t.call(i,e)},loadImageInDom:function(e,t){var i=n.document.createElement("div");i.style.width=i.style.height="1px",i.style.left=i.style.top="-100%",i.style.position="absolute",i.appendChild(e),n.document.querySelector("body").appendChild(i),e.onload=function(){t(),i.parentNode.removeChild(i),i=null}},enlivenObjects:function(e,t,i,a){e=e||[];var r=[],s=0,o=e.length;function l(){++s===o&&t&&t(r.filter((function(e){return e})))}o?e.forEach((function(e,t){if(e&&e.type){var s=n.util.getKlass(e.type,i);s.fromObject(e,(function(i,n){n||(r[t]=i),a&&a(e,i,n),l()}))}else l()})):t&&t(r)},enlivenPatterns:function(e,t){function i(){++r===s&&t&&t(a)}e=e||[];var a=[],r=0,s=e.length;s?e.forEach((function(e,t){e&&e.source?new n.Pattern(e,(function(e){a[t]=e,i()})):(a[t]=e,i())})):t&&t(a)},groupSVGElements:function(e,t,i){var a;return e&&1===e.length?e[0]:(t&&(t.width&&t.height?t.centerPoint={x:t.width/2,y:t.height/2}:(delete t.width,delete t.height)),a=new n.Group(e,t),"undefined"!==typeof i&&(a.sourcePath=i),a)},populateWithProperties:function(e,t,i){if(i&&"[object Array]"===Object.prototype.toString.call(i))for(var a=0,n=i.length;a<n;a++)i[a]in e&&(t[i[a]]=e[i[a]])},drawDashedLine:function(e,a,n,r,s,o){var l=r-a,c=s-n,u=t(l*l+c*c),d=i(c,l),p=o.length,f=0,A=!0;e.save(),e.translate(a,n),e.moveTo(0,0),e.rotate(d),a=0;while(u>a)a+=o[f++%p],a>u&&(a=u),e[A?"lineTo":"moveTo"](a,0),A=!A;e.restore()},createCanvasElement:function(){return n.document.createElement("canvas")},copyCanvasElement:function(e){var t=n.util.createCanvasElement();return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0),t},toDataURL:function(e,t,i){return e.toDataURL("image/"+t,i)},createImage:function(){return n.document.createElement("img")},multiplyTransformMatrices:function(e,t,i){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],i?0:e[0]*t[4]+e[2]*t[5]+e[4],i?0:e[1]*t[4]+e[3]*t[5]+e[5]]},qrDecompose:function(e){var n=i(e[1],e[0]),s=a(e[0],2)+a(e[1],2),o=t(s),l=(e[0]*e[3]-e[2]*e[1])/o,c=i(e[0]*e[2]+e[1]*e[3],s);return{angle:n/r,scaleX:o,scaleY:l,skewX:c/r,skewY:0,translateX:e[4],translateY:e[5]}},calcRotateMatrix:function(e){if(!e.angle)return n.iMatrix.concat();var t=n.util.degreesToRadians(e.angle),i=n.util.cos(t),a=n.util.sin(t);return[i,a,-a,i,0,0]},calcDimensionsMatrix:function(e){var t="undefined"===typeof e.scaleX?1:e.scaleX,i="undefined"===typeof e.scaleY?1:e.scaleY,a=[e.flipX?-t:t,0,0,e.flipY?-i:i,0,0],r=n.util.multiplyTransformMatrices,s=n.util.degreesToRadians;return e.skewX&&(a=r(a,[1,0,Math.tan(s(e.skewX)),1],!0)),e.skewY&&(a=r(a,[1,Math.tan(s(e.skewY)),0,1],!0)),a},composeMatrix:function(e){var t=[1,0,0,1,e.translateX||0,e.translateY||0],i=n.util.multiplyTransformMatrices;return e.angle&&(t=i(t,n.util.calcRotateMatrix(e))),(1!==e.scaleX||1!==e.scaleY||e.skewX||e.skewY||e.flipX||e.flipY)&&(t=i(t,n.util.calcDimensionsMatrix(e))),t},resetObjectTransform:function(e){e.scaleX=1,e.scaleY=1,e.skewX=0,e.skewY=0,e.flipX=!1,e.flipY=!1,e.rotate(0)},saveObjectTransform:function(e){return{scaleX:e.scaleX,scaleY:e.scaleY,skewX:e.skewX,skewY:e.skewY,angle:e.angle,left:e.left,flipX:e.flipX,flipY:e.flipY,top:e.top}},isTransparent:function(e,t,i,a){a>0&&(t>a?t-=a:t=0,i>a?i-=a:i=0);var n,r,s=!0,o=e.getImageData(t,i,2*a||1,2*a||1),l=o.data.length;for(n=3;n<l;n+=4)if(r=o.data[n],s=r<=0,!1===s)break;return o=null,s},parsePreserveAspectRatioAttribute:function(e){var t,i="meet",a="Mid",n="Mid",r=e.split(" ");return r&&r.length&&(i=r.pop(),"meet"!==i&&"slice"!==i?(t=i,i="meet"):r.length&&(t=r.pop())),a="none"!==t?t.slice(1,4):"none",n="none"!==t?t.slice(5,8):"none",{meetOrSlice:i,alignX:a,alignY:n}},clearFabricFontCache:function(e){e=(e||"").toLowerCase(),e?n.charWidthsCache[e]&&delete n.charWidthsCache[e]:n.charWidthsCache={}},limitDimsByArea:function(e,t){var i=Math.sqrt(t*e),a=Math.floor(t/i);return{x:Math.floor(i),y:a}},capValue:function(e,t,i){return Math.max(e,Math.min(t,i))},findScaleToFit:function(e,t){return Math.min(t.width/e.width,t.height/e.height)},findScaleToCover:function(e,t){return Math.max(t.width/e.width,t.height/e.height)},matrixToSVG:function(e){return"matrix("+e.map((function(e){return n.util.toFixed(e,n.Object.NUM_FRACTION_DIGITS)})).join(" ")+")"},removeTransformFromObject:function(e,t){var i=n.util.invertTransform(t),a=n.util.multiplyTransformMatrices(i,e.calcOwnMatrix());n.util.applyTransformToObject(e,a)},addTransformToObject:function(e,t){n.util.applyTransformToObject(e,n.util.multiplyTransformMatrices(t,e.calcOwnMatrix()))},applyTransformToObject:function(e,t){var i=n.util.qrDecompose(t),a=new n.Point(i.translateX,i.translateY);e.flipX=!1,e.flipY=!1,e.set("scaleX",i.scaleX),e.set("scaleY",i.scaleY),e.skewX=i.skewX,e.skewY=i.skewY,e.angle=i.angle,e.setPositionByOrigin(a,"center","center")},sizeAfterTransform:function(e,t,i){var a=e/2,r=t/2,s=[{x:-a,y:-r},{x:a,y:-r},{x:-a,y:r},{x:a,y:r}],o=n.util.calcDimensionsMatrix(i),l=n.util.makeBoundingBoxFromPoints(s,o);return{x:l.width,y:l.height}}}}(i),function(){var e=Array.prototype.join,t={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},i={m:"l",M:"L"};function a(e,t,i,a,r,s,o,l,c,u,d){var p=n.util.cos(e),f=n.util.sin(e),A=n.util.cos(t),h=n.util.sin(t),m=i*r*A-a*s*h+o,g=a*r*A+i*s*h+l,v=u+c*(-i*r*f-a*s*p),b=d+c*(-a*r*f+i*s*p),y=m+c*(i*r*h+a*s*A),_=g+c*(a*r*h-i*s*A);return["C",v,b,y,_,m,g]}function r(e,t,i,r,o,l,c){var u=Math.PI,d=c*u/180,p=n.util.sin(d),f=n.util.cos(d),A=0,h=0;i=Math.abs(i),r=Math.abs(r);var m=-f*e*.5-p*t*.5,g=-f*t*.5+p*e*.5,v=i*i,b=r*r,y=g*g,_=m*m,w=v*b-v*y-b*_,C=0;if(w<0){var x=Math.sqrt(1-w/(v*b));i*=x,r*=x}else C=(o===l?-1:1)*Math.sqrt(w/(v*y+b*_));var k=C*i*g/r,T=-C*r*m/i,S=f*k-p*T+.5*e,I=p*k+f*T+.5*t,E=s(1,0,(m-k)/i,(g-T)/r),O=s((m-k)/i,(g-T)/r,(-m-k)/i,(-g-T)/r);0===l&&O>0?O-=2*u:1===l&&O<0&&(O+=2*u);for(var B=Math.ceil(Math.abs(O/u*2)),L=[],D=O/B,M=8/3*Math.sin(D/4)*Math.sin(D/4)/Math.sin(D/2),N=E+D,j=0;j<B;j++)L[j]=a(E,N,f,p,i,r,S,I,M,A,h),A=L[j][5],h=L[j][6],E=N,N+=D;return L}function s(e,t,i,a){var n=Math.atan2(t,e),r=Math.atan2(a,i);return r>=n?r-n:2*Math.PI-(n-r)}function o(t,i,a,r,s,o,l,c){var u;if(n.cachesBoundsOfCurve&&(u=e.call(arguments),n.boundsOfCurveCache[u]))return n.boundsOfCurveCache[u];var d,p,f,A,h,m,g,v,b=Math.sqrt,y=Math.min,_=Math.max,w=Math.abs,C=[],x=[[],[]];p=6*t-12*a+6*s,d=-3*t+9*a-9*s+3*l,f=3*a-3*t;for(var k=0;k<2;++k)if(k>0&&(p=6*i-12*r+6*o,d=-3*i+9*r-9*o+3*c,f=3*r-3*i),w(d)<1e-12){if(w(p)<1e-12)continue;A=-f/p,0<A&&A<1&&C.push(A)}else g=p*p-4*f*d,g<0||(v=b(g),h=(-p+v)/(2*d),0<h&&h<1&&C.push(h),m=(-p-v)/(2*d),0<m&&m<1&&C.push(m));var T,S,I,E=C.length,O=E;while(E--)A=C[E],I=1-A,T=I*I*I*t+3*I*I*A*a+3*I*A*A*s+A*A*A*l,x[0][E]=T,S=I*I*I*i+3*I*I*A*r+3*I*A*A*o+A*A*A*c,x[1][E]=S;x[0][O]=t,x[1][O]=i,x[0][O+1]=l,x[1][O+1]=c;var B=[{x:y.apply(null,x[0]),y:y.apply(null,x[1])},{x:_.apply(null,x[0]),y:_.apply(null,x[1])}];return n.cachesBoundsOfCurve&&(n.boundsOfCurveCache[u]=B),B}function l(e,t,i){for(var a=i[1],n=i[2],s=i[3],o=i[4],l=i[5],c=i[6],u=i[7],d=r(c-e,u-t,a,n,o,l,s),p=0,f=d.length;p<f;p++)d[p][1]+=e,d[p][2]+=t,d[p][3]+=e,d[p][4]+=t,d[p][5]+=e,d[p][6]+=t;return d}function c(e){var t,i,a,n,r,s,o=0,c=0,u=e.length,d=0,p=0,f=[];for(i=0;i<u;++i){switch(a=!1,t=e[i].slice(0),t[0]){case"l":t[0]="L",t[1]+=o,t[2]+=c;case"L":o=t[1],c=t[2];break;case"h":t[1]+=o;case"H":t[0]="L",t[2]=c,o=t[1];break;case"v":t[1]+=c;case"V":t[0]="L",c=t[1],t[1]=o,t[2]=c;break;case"m":t[0]="M",t[1]+=o,t[2]+=c;case"M":o=t[1],c=t[2],d=t[1],p=t[2];break;case"c":t[0]="C",t[1]+=o,t[2]+=c,t[3]+=o,t[4]+=c,t[5]+=o,t[6]+=c;case"C":r=t[3],s=t[4],o=t[5],c=t[6];break;case"s":t[0]="S",t[1]+=o,t[2]+=c,t[3]+=o,t[4]+=c;case"S":"C"===n?(r=2*o-r,s=2*c-s):(r=o,s=c),o=t[3],c=t[4],t[0]="C",t[5]=t[3],t[6]=t[4],t[3]=t[1],t[4]=t[2],t[1]=r,t[2]=s,r=t[3],s=t[4];break;case"q":t[0]="Q",t[1]+=o,t[2]+=c,t[3]+=o,t[4]+=c;case"Q":r=t[1],s=t[2],o=t[3],c=t[4];break;case"t":t[0]="T",t[1]+=o,t[2]+=c;case"T":"Q"===n?(r=2*o-r,s=2*c-s):(r=o,s=c),t[0]="Q",o=t[1],c=t[2],t[1]=r,t[2]=s,t[3]=o,t[4]=c;break;case"a":t[0]="A",t[6]+=o,t[7]+=c;case"A":a=!0,f=f.concat(l(o,c,t)),o=t[6],c=t[7];break;case"z":case"Z":o=d,c=p;break;default:}a||f.push(t),n=t[0]}return f}function u(e,t,i,a){return Math.sqrt((i-e)*(i-e)+(a-t)*(a-t))}function d(e){return e*e*e}function p(e){return 3*e*e*(1-e)}function f(e){return 3*e*(1-e)*(1-e)}function A(e){return(1-e)*(1-e)*(1-e)}function h(e,t,i,a,n,r,s,o){return function(l){var c=d(l),u=p(l),h=f(l),m=A(l);return{x:s*c+n*u+i*h+e*m,y:o*c+r*u+a*h+t*m}}}function m(e,t,i,a,n,r,s,o){return function(l){var c=1-l,u=3*c*c*(i-e)+6*c*l*(n-i)+3*l*l*(s-n),d=3*c*c*(a-t)+6*c*l*(r-a)+3*l*l*(o-r);return Math.atan2(d,u)}}function g(e){return e*e}function v(e){return 2*e*(1-e)}function b(e){return(1-e)*(1-e)}function y(e,t,i,a,n,r){return function(s){var o=g(s),l=v(s),c=b(s);return{x:n*o+i*l+e*c,y:r*o+a*l+t*c}}}function _(e,t,i,a,n,r){return function(s){var o=1-s,l=2*o*(i-e)+2*s*(n-i),c=2*o*(a-t)+2*s*(r-a);return Math.atan2(c,l)}}function w(e,t,i){var a,n,r={x:t,y:i},s=0;for(n=1;n<=100;n+=1)a=e(n/100),s+=u(r.x,r.y,a.x,a.y),r=a;return s}function C(e,t){var i,a,n,r=0,s=0,o=e.iterator,l={x:e.x,y:e.y},c=.01,d=e.angleFinder;while(s<t&&r<=1&&c>1e-4)i=o(r),n=r,a=u(l.x,l.y,i.x,i.y),a+s>t?(c/=2,r-=c):(l=i,r+=c,s+=a);return i.angle=d(n),i}function x(e){for(var t,i,a,n,r=0,s=e.length,o=0,l=0,c=0,d=0,p=[],f=0;f<s;f++){switch(t=e[f],a={x:o,y:l,command:t[0]},t[0]){case"M":a.length=0,c=o=t[1],d=l=t[2];break;case"L":a.length=u(o,l,t[1],t[2]),o=t[1],l=t[2];break;case"C":i=h(o,l,t[1],t[2],t[3],t[4],t[5],t[6]),n=m(o,l,t[1],t[2],t[3],t[4],t[5],t[6]),a.iterator=i,a.angleFinder=n,a.length=w(i,o,l),o=t[5],l=t[6];break;case"Q":i=y(o,l,t[1],t[2],t[3],t[4]),n=_(o,l,t[1],t[2],t[3],t[4]),a.iterator=i,a.angleFinder=n,a.length=w(i,o,l),o=t[3],l=t[4];break;case"Z":case"z":a.destX=c,a.destY=d,a.length=u(o,l,c,d),o=c,l=d;break}r+=a.length,p.push(a)}return p.push({length:r,x:o,y:l}),p}function k(e,t,i){i||(i=x(e));var a=0;while(t-i[a].length>0&&a<i.length-2)t-=i[a].length,a++;var r,s=i[a],o=t/s.length,l=s.command,c=e[a];switch(l){case"M":return{x:s.x,y:s.y,angle:0};case"Z":case"z":return r=new n.Point(s.x,s.y).lerp(new n.Point(s.destX,s.destY),o),r.angle=Math.atan2(s.destY-s.y,s.destX-s.x),r;case"L":return r=new n.Point(s.x,s.y).lerp(new n.Point(c[1],c[2]),o),r.angle=Math.atan2(c[2]-s.y,c[1]-s.x),r;case"C":return C(s,t);case"Q":return C(s,t)}}function T(e){var a,r,s,o,l,c=[],u=[],d=n.rePathCommand,p="[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?\\s*",f="("+p+")"+n.commaWsp,A="([01])"+n.commaWsp+"?",h=f+"?"+f+"?"+f+A+A+f+"?("+p+")",m=new RegExp(h,"g");if(!e||!e.match)return c;l=e.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi);for(var g,v=0,b=l.length;v<b;v++){a=l[v],o=a.slice(1).trim(),u.length=0;var y=a.charAt(0);if(g=[y],"a"===y.toLowerCase())for(var _;_=m.exec(o);)for(var w=1;w<_.length;w++)u.push(_[w]);else while(s=d.exec(o))u.push(s[0]);w=0;for(var C=u.length;w<C;w++)r=parseFloat(u[w]),isNaN(r)||g.push(r);var x=t[y.toLowerCase()],k=i[y]||y;if(g.length-1>x)for(var T=1,S=g.length;T<S;T+=x)c.push([y].concat(g.slice(T,T+x))),y=k;else c.push(g)}return c}function S(e,t){var i,a=[],r=new n.Point(e[0].x,e[0].y),s=new n.Point(e[1].x,e[1].y),o=e.length,l=1,c=0,u=o>2;for(t=t||0,u&&(l=e[2].x<s.x?-1:e[2].x===s.x?0:1,c=e[2].y<s.y?-1:e[2].y===s.y?0:1),a.push(["M",r.x-l*t,r.y-c*t]),i=1;i<o;i++){if(!r.eq(s)){var d=r.midPointFrom(s);a.push(["Q",r.x,r.y,d.x,d.y])}r=e[i],i+1<e.length&&(s=e[i+1])}return u&&(l=r.x>e[i-2].x?1:r.x===e[i-2].x?0:-1,c=r.y>e[i-2].y?1:r.y===e[i-2].y?0:-1),a.push(["L",r.x+l*t,r.y+c*t]),a}function I(e,t,i){return i&&(t=n.util.multiplyTransformMatrices(t,[1,0,0,1,-i.x,-i.y])),e.map((function(e){for(var i=e.slice(0),a={},r=1;r<e.length-1;r+=2)a.x=e[r],a.y=e[r+1],a=n.util.transformPoint(a,t),i[r]=a.x,i[r+1]=a.y;return i}))}function E(e,t,i,a,n,s,l,c,u){for(var d,p=0,f=0,A=[],h=r(c-e,u-t,i,a,s,l,n),m=0,g=h.length;m<g;m++)d=o(p,f,h[m][1],h[m][2],h[m][3],h[m][4],h[m][5],h[m][6]),A.push({x:d[0].x+e,y:d[0].y+t}),A.push({x:d[1].x+e,y:d[1].y+t}),p=h[m][5],f=h[m][6];return A}function O(e,t,i,a){a=a.slice(0).unshift("X");var n=l(t,i,a);n.forEach((function(t){e.bezierCurveTo.apply(e,t.slice(1))}))}n.util.joinPath=function(e){return e.map((function(e){return e.join(" ")})).join(" ")},n.util.parsePath=T,n.util.makePathSimpler=c,n.util.getSmoothPathFromPoints=S,n.util.getPathSegmentsInfo=x,n.util.getBoundsOfCurve=o,n.util.getPointOnPath=k,n.util.transformPath=I,n.util.fromArcToBeizers=l,n.util.getBoundsOfArc=E,n.util.drawArc=O}(),function(){var e=Array.prototype.slice;function t(t,i){for(var a=e.call(arguments,2),n=[],r=0,s=t.length;r<s;r++)n[r]=a.length?t[r][i].apply(t[r],a):t[r][i].call(t[r]);return n}function i(e,t){return s(e,t,(function(e,t){return e>=t}))}function a(e,t){return s(e,t,(function(e,t){return e<t}))}function r(e,t){var i=e.length;while(i--)e[i]=t;return e}function s(e,t,i){if(e&&0!==e.length){var a=e.length-1,n=t?e[a][t]:e[a];if(t)while(a--)i(e[a][t],n)&&(n=e[a][t]);else while(a--)i(e[a],n)&&(n=e[a]);return n}}n.util.array={fill:r,invoke:t,min:a,max:i}}(),function(){function e(t,i,a){if(a)if(!n.isLikelyNode&&i instanceof Element)t=i;else if(i instanceof Array){t=[];for(var r=0,s=i.length;r<s;r++)t[r]=e({},i[r],a)}else if(i&&"object"===typeof i)for(var o in i)"canvas"===o||"group"===o?t[o]=null:i.hasOwnProperty(o)&&(t[o]=e({},i[o],a));else t=i;else for(var o in i)t[o]=i[o];return t}function t(t,i){return e({},t,i)}n.util.object={extend:e,clone:t},n.util.object.extend(n.util,n.Observable)}(),function(){function e(e){return e.replace(/-+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))}function t(e,t){return e.charAt(0).toUpperCase()+(t?e.slice(1):e.slice(1).toLowerCase())}function i(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function a(e){var t,i=0,a=[];for(i=0,t;i<e.length;i++)!1!==(t=r(e,i))&&a.push(t);return a}function r(e,t){var i=e.charCodeAt(t);if(isNaN(i))return"";if(i<55296||i>57343)return e.charAt(t);if(55296<=i&&i<=56319){if(e.length<=t+1)throw"High surrogate without following low surrogate";var a=e.charCodeAt(t+1);if(56320>a||a>57343)throw"High surrogate without following low surrogate";return e.charAt(t)+e.charAt(t+1)}if(0===t)throw"Low surrogate without preceding high surrogate";var n=e.charCodeAt(t-1);if(55296>n||n>56319)throw"Low surrogate without preceding high surrogate";return!1}n.util.string={camelize:e,capitalize:t,escapeXml:i,graphemeSplit:a}}(),function(){var e=Array.prototype.slice,t=function(){},i=function(){for(var e in{toString:1})if("toString"===e)return!1;return!0}(),a=function(e,t,a){for(var n in t)n in e.prototype&&"function"===typeof e.prototype[n]&&(t[n]+"").indexOf("callSuper")>-1?e.prototype[n]=function(e){return function(){var i=this.constructor.superclass;this.constructor.superclass=a;var n=t[e].apply(this,arguments);if(this.constructor.superclass=i,"initialize"!==e)return n}}(n):e.prototype[n]=t[n],i&&(t.toString!==Object.prototype.toString&&(e.prototype.toString=t.toString),t.valueOf!==Object.prototype.valueOf&&(e.prototype.valueOf=t.valueOf))};function r(){}function s(t){var i=null,a=this;while(a.constructor.superclass){var n=a.constructor.superclass.prototype[t];if(a[t]!==n){i=n;break}a=a.constructor.superclass.prototype}if(i)return arguments.length>1?i.apply(this,e.call(arguments,1)):i.call(this)}function o(){var i=null,n=e.call(arguments,0);function o(){this.initialize.apply(this,arguments)}"function"===typeof n[0]&&(i=n.shift()),o.superclass=i,o.subclasses=[],i&&(r.prototype=i.prototype,o.prototype=new r,i.subclasses.push(o));for(var l=0,c=n.length;l<c;l++)a(o,n[l],i);return o.prototype.initialize||(o.prototype.initialize=t),o.prototype.constructor=o,o.prototype.callSuper=s,o}n.util.createClass=o}(),function(){var e=!!n.document.createElement("div").attachEvent,t=["touchstart","touchmove","touchend"];function i(e){var t=e.changedTouches;return t&&t[0]?t[0]:e}n.util.addListener=function(t,i,a,n){t&&t.addEventListener(i,a,!e&&n)},n.util.removeListener=function(t,i,a,n){t&&t.removeEventListener(i,a,!e&&n)},n.util.getPointer=function(e){var t=e.target,a=n.util.getScrollLeftTop(t),r=i(e);return{x:r.clientX+a.left,y:r.clientY+a.top}},n.util.isTouchEvent=function(e){return t.indexOf(e.type)>-1||"touch"===e.pointerType}}(),function(){function e(e,t){var i=e.style;if(!i)return e;if("string"===typeof t)return e.style.cssText+=";"+t,t.indexOf("opacity")>-1?s(e,t.match(/opacity:\s*(\d?\.?\d*)/)[1]):e;for(var a in t)if("opacity"===a)s(e,t[a]);else{var n="float"===a||"cssFloat"===a?"undefined"===typeof i.styleFloat?"cssFloat":"styleFloat":a;i[n]=t[a]}return e}var t=n.document.createElement("div"),i="string"===typeof t.style.opacity,a="string"===typeof t.style.filter,r=/alpha\s*\(\s*opacity\s*=\s*([^\)]+)\)/,s=function(e){return e};i?s=function(e,t){return e.style.opacity=t,e}:a&&(s=function(e,t){var i=e.style;return e.currentStyle&&!e.currentStyle.hasLayout&&(i.zoom=1),r.test(i.filter)?(t=t>=.9999?"":"alpha(opacity="+100*t+")",i.filter=i.filter.replace(r,t)):i.filter+=" alpha(opacity="+100*t+")",e}),n.util.setStyle=e}(),function(){var e=Array.prototype.slice;function t(e){return"string"===typeof e?n.document.getElementById(e):e}var i,a,r=function(t){return e.call(t,0)};try{i=r(n.document.childNodes)instanceof Array}catch(A){}function s(e,t){var i=n.document.createElement(e);for(var a in t)"class"===a?i.className=t[a]:"for"===a?i.htmlFor=t[a]:i.setAttribute(a,t[a]);return i}function o(e,t){e&&-1===(" "+e.className+" ").indexOf(" "+t+" ")&&(e.className+=(e.className?" ":"")+t)}function l(e,t,i){return"string"===typeof t&&(t=s(t,i)),e.parentNode&&e.parentNode.replaceChild(t,e),t.appendChild(e),t}function c(e){var t=0,i=0,a=n.document.documentElement,r=n.document.body||{scrollLeft:0,scrollTop:0};while(e&&(e.parentNode||e.host))if(e=e.parentNode||e.host,e===n.document?(t=r.scrollLeft||a.scrollLeft||0,i=r.scrollTop||a.scrollTop||0):(t+=e.scrollLeft||0,i+=e.scrollTop||0),1===e.nodeType&&"fixed"===e.style.position)break;return{left:t,top:i}}function u(e){var t,i,n=e&&e.ownerDocument,r={left:0,top:0},s={left:0,top:0},o={borderLeftWidth:"left",borderTopWidth:"top",paddingLeft:"left",paddingTop:"top"};if(!n)return s;for(var l in o)s[o[l]]+=parseInt(a(e,l),10)||0;return t=n.documentElement,"undefined"!==typeof e.getBoundingClientRect&&(r=e.getBoundingClientRect()),i=c(e),{left:r.left+i.left-(t.clientLeft||0)+s.left,top:r.top+i.top-(t.clientTop||0)+s.top}}function d(e){var t=n.jsdomImplForWrapper(e);return t._canvas||t._image}function p(e){if(n.isLikelyNode){var t=n.jsdomImplForWrapper(e);t&&(t._image=null,t._canvas=null,t._currentSrc=null,t._attributes=null,t._classList=null)}}function f(e,t){e.imageSmoothingEnabled=e.imageSmoothingEnabled||e.webkitImageSmoothingEnabled||e.mozImageSmoothingEnabled||e.msImageSmoothingEnabled||e.oImageSmoothingEnabled,e.imageSmoothingEnabled=t}i||(r=function(e){var t=new Array(e.length),i=e.length;while(i--)t[i]=e[i];return t}),a=n.document.defaultView&&n.document.defaultView.getComputedStyle?function(e,t){var i=n.document.defaultView.getComputedStyle(e,null);return i?i[t]:void 0}:function(e,t){var i=e.style[t];return!i&&e.currentStyle&&(i=e.currentStyle[t]),i},function(){var e=n.document.documentElement.style,t="userSelect"in e?"userSelect":"MozUserSelect"in e?"MozUserSelect":"WebkitUserSelect"in e?"WebkitUserSelect":"KhtmlUserSelect"in e?"KhtmlUserSelect":"";function i(e){return"undefined"!==typeof e.onselectstart&&(e.onselectstart=n.util.falseFunction),t?e.style[t]="none":"string"===typeof e.unselectable&&(e.unselectable="on"),e}function a(e){return"undefined"!==typeof e.onselectstart&&(e.onselectstart=null),t?e.style[t]="":"string"===typeof e.unselectable&&(e.unselectable=""),e}n.util.makeElementUnselectable=i,n.util.makeElementSelectable=a}(),n.util.setImageSmoothing=f,n.util.getById=t,n.util.toArray=r,n.util.addClass=o,n.util.makeElement=s,n.util.wrapElement=l,n.util.getScrollLeftTop=c,n.util.getElementOffset=u,n.util.getNodeCanvas=d,n.util.cleanUpJsdomNode=p}(),function(){function e(e,t){return e+(/\?/.test(e)?"&":"?")+t}function t(){}function i(i,a){a||(a={});var r=a.method?a.method.toUpperCase():"GET",s=a.onComplete||function(){},o=new n.window.XMLHttpRequest,l=a.body||a.parameters;return o.onreadystatechange=function(){4===o.readyState&&(s(o),o.onreadystatechange=t)},"GET"===r&&(l=null,"string"===typeof a.parameters&&(i=e(i,a.parameters))),o.open(r,i,!0),"POST"!==r&&"PUT"!==r||o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.send(l),o}n.util.request=i}(),n.log=console.log,n.warn=console.warn,function(){function e(){return!1}function t(e,t,i,a){return-i*Math.cos(e/a*(Math.PI/2))+i+t}function i(i){var a=!1;return s((function(n){i||(i={});var r,o=n||+new Date,l=i.duration||500,c=o+l,u=i.onChange||e,d=i.abort||e,p=i.onComplete||e,f=i.easing||t,A="startValue"in i?i.startValue:0,h="endValue"in i?i.endValue:100,m=i.byValue||h-A;i.onStart&&i.onStart(),function e(t){r=t||+new Date;var i=r>c?l:r-o,n=i/l,g=f(i,A,m,l),v=Math.abs((g-A)/m);if(!a){if(!d(g,v,n))return r>c?(u(h,1,1),void p(h,1,1)):(u(g,v,n),void s(e));p(h,1,1)}}(o)})),function(){a=!0}}var a=n.window.requestAnimationFrame||n.window.webkitRequestAnimationFrame||n.window.mozRequestAnimationFrame||n.window.oRequestAnimationFrame||n.window.msRequestAnimationFrame||function(e){return n.window.setTimeout(e,1e3/60)},r=n.window.cancelAnimationFrame||n.window.clearTimeout;function s(){return a.apply(n.window,arguments)}function o(){return r.apply(n.window,arguments)}n.util.animate=i,n.util.requestAnimFrame=s,n.util.cancelAnimFrame=o}(),function(){function e(e,t,i){var a="rgba("+parseInt(e[0]+i*(t[0]-e[0]),10)+","+parseInt(e[1]+i*(t[1]-e[1]),10)+","+parseInt(e[2]+i*(t[2]-e[2]),10);return a+=","+(e&&t?parseFloat(e[3]+i*(t[3]-e[3])):1),a+=")",a}function t(t,i,a,r){var s=new n.Color(t).getSource(),o=new n.Color(i).getSource(),l=r.onComplete,c=r.onChange;return r=r||{},n.util.animate(n.util.object.extend(r,{duration:a||500,startValue:s,endValue:o,byValue:o,easing:function(t,i,a,n){var s=r.colorEasing?r.colorEasing(t,n):1-Math.cos(t/n*(Math.PI/2));return e(i,a,s)},onComplete:function(t,i,a){if(l)return l(e(o,o,0),i,a)},onChange:function(t,i,a){if(c){if(Array.isArray(t))return c(e(t,t,0),i,a);c(t,i,a)}}}))}n.util.animateColor=t}(),function(){function e(e,t,i,a){return e<Math.abs(t)?(e=t,a=i/4):a=0===t&&0===e?i/(2*Math.PI)*Math.asin(1):i/(2*Math.PI)*Math.asin(t/e),{a:e,c:t,p:i,s:a}}function t(e,t,i){return e.a*Math.pow(2,10*(t-=1))*Math.sin((t*i-e.s)*(2*Math.PI)/e.p)}function i(e,t,i,a){return i*((e=e/a-1)*e*e+1)+t}function a(e,t,i,a){return e/=a/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}function r(e,t,i,a){return i*(e/=a)*e*e*e+t}function s(e,t,i,a){return-i*((e=e/a-1)*e*e*e-1)+t}function o(e,t,i,a){return e/=a/2,e<1?i/2*e*e*e*e+t:-i/2*((e-=2)*e*e*e-2)+t}function l(e,t,i,a){return i*(e/=a)*e*e*e*e+t}function c(e,t,i,a){return i*((e=e/a-1)*e*e*e*e+1)+t}function u(e,t,i,a){return e/=a/2,e<1?i/2*e*e*e*e*e+t:i/2*((e-=2)*e*e*e*e+2)+t}function d(e,t,i,a){return-i*Math.cos(e/a*(Math.PI/2))+i+t}function p(e,t,i,a){return i*Math.sin(e/a*(Math.PI/2))+t}function f(e,t,i,a){return-i/2*(Math.cos(Math.PI*e/a)-1)+t}function A(e,t,i,a){return 0===e?t:i*Math.pow(2,10*(e/a-1))+t}function h(e,t,i,a){return e===a?t+i:i*(1-Math.pow(2,-10*e/a))+t}function m(e,t,i,a){return 0===e?t:e===a?t+i:(e/=a/2,e<1?i/2*Math.pow(2,10*(e-1))+t:i/2*(2-Math.pow(2,-10*--e))+t)}function g(e,t,i,a){return-i*(Math.sqrt(1-(e/=a)*e)-1)+t}function v(e,t,i,a){return i*Math.sqrt(1-(e=e/a-1)*e)+t}function b(e,t,i,a){return e/=a/2,e<1?-i/2*(Math.sqrt(1-e*e)-1)+t:i/2*(Math.sqrt(1-(e-=2)*e)+1)+t}function y(i,a,n,r){var s=1.70158,o=0,l=n;if(0===i)return a;if(i/=r,1===i)return a+n;o||(o=.3*r);var c=e(l,n,o,s);return-t(c,i,r)+a}function _(t,i,a,n){var r=1.70158,s=0,o=a;if(0===t)return i;if(t/=n,1===t)return i+a;s||(s=.3*n);var l=e(o,a,s,r);return l.a*Math.pow(2,-10*t)*Math.sin((t*n-l.s)*(2*Math.PI)/l.p)+l.c+i}function w(i,a,n,r){var s=1.70158,o=0,l=n;if(0===i)return a;if(i/=r/2,2===i)return a+n;o||(o=r*(.3*1.5));var c=e(l,n,o,s);return i<1?-.5*t(c,i,r)+a:c.a*Math.pow(2,-10*(i-=1))*Math.sin((i*r-c.s)*(2*Math.PI)/c.p)*.5+c.c+a}function C(e,t,i,a,n){return void 0===n&&(n=1.70158),i*(e/=a)*e*((n+1)*e-n)+t}function x(e,t,i,a,n){return void 0===n&&(n=1.70158),i*((e=e/a-1)*e*((n+1)*e+n)+1)+t}function k(e,t,i,a,n){return void 0===n&&(n=1.70158),e/=a/2,e<1?i/2*(e*e*((1+(n*=1.525))*e-n))+t:i/2*((e-=2)*e*((1+(n*=1.525))*e+n)+2)+t}function T(e,t,i,a){return i-S(a-e,0,i,a)+t}function S(e,t,i,a){return(e/=a)<1/2.75?i*(7.5625*e*e)+t:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+t:i*(7.5625*(e-=2.625/2.75)*e+.984375)+t}function I(e,t,i,a){return e<a/2?.5*T(2*e,0,i,a)+t:.5*S(2*e-a,0,i,a)+.5*i+t}n.util.ease={easeInQuad:function(e,t,i,a){return i*(e/=a)*e+t},easeOutQuad:function(e,t,i,a){return-i*(e/=a)*(e-2)+t},easeInOutQuad:function(e,t,i,a){return e/=a/2,e<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,i,a){return i*(e/=a)*e*e+t},easeOutCubic:i,easeInOutCubic:a,easeInQuart:r,easeOutQuart:s,easeInOutQuart:o,easeInQuint:l,easeOutQuint:c,easeInOutQuint:u,easeInSine:d,easeOutSine:p,easeInOutSine:f,easeInExpo:A,easeOutExpo:h,easeInOutExpo:m,easeInCirc:g,easeOutCirc:v,easeInOutCirc:b,easeInElastic:y,easeOutElastic:_,easeInOutElastic:w,easeInBack:C,easeOutBack:x,easeInOutBack:k,easeInBounce:T,easeOutBounce:S,easeInOutBounce:I}}(),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,a=t.util.object.clone,n=t.util.toFixed,r=t.util.parseUnit,s=t.util.multiplyTransformMatrices,o=["path","circle","polygon","polyline","ellipse","rect","line","image","text"],l=["symbol","image","marker","pattern","view","svg"],c=["pattern","defs","symbol","metadata","clipPath","mask","desc"],u=["symbol","g","a","svg","clipPath","defs"],d={cx:"left",x:"left",r:"radius",cy:"top",y:"top",display:"visible",visibility:"visible",transform:"transformMatrix","fill-opacity":"fillOpacity","fill-rule":"fillRule","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","letter-spacing":"charSpacing","paint-order":"paintFirst","stroke-dasharray":"strokeDashArray","stroke-dashoffset":"strokeDashOffset","stroke-linecap":"strokeLineCap","stroke-linejoin":"strokeLineJoin","stroke-miterlimit":"strokeMiterLimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-decoration":"textDecoration","text-anchor":"textAnchor",opacity:"opacity","clip-path":"clipPath","clip-rule":"clipRule","vector-effect":"strokeUniform","image-rendering":"imageSmoothing"},p={stroke:"strokeOpacity",fill:"fillOpacity"},f="font-size",A="clip-path";function h(e){return e in d?d[e]:e}function m(e,i,a,n){var o,l="[object Array]"===Object.prototype.toString.call(i);if("fill"!==e&&"stroke"!==e||"none"!==i){if("strokeUniform"===e)return"non-scaling-stroke"===i;if("strokeDashArray"===e)i="none"===i?null:i.replace(/,/g," ").split(/\s+/).map(parseFloat);else if("transformMatrix"===e)i=a&&a.transformMatrix?s(a.transformMatrix,t.parseTransformAttribute(i)):t.parseTransformAttribute(i);else if("visible"===e)i="none"!==i&&"hidden"!==i,a&&!1===a.visible&&(i=!1);else if("opacity"===e)i=parseFloat(i),a&&"undefined"!==typeof a.opacity&&(i*=a.opacity);else if("textAnchor"===e)i="start"===i?"left":"end"===i?"right":"center";else if("charSpacing"===e)o=r(i,n)/n*1e3;else if("paintFirst"===e){var c=i.indexOf("fill"),u=i.indexOf("stroke");i="fill";(c>-1&&u>-1&&u<c||-1===c&&u>-1)&&(i="stroke")}else{if("href"===e||"xlink:href"===e||"font"===e)return i;if("imageSmoothing"===e)return"optimizeQuality"===i;o=l?i.map(r):r(i,n)}}else i="";return!l&&isNaN(o)?i:o}function g(e){return new RegExp("^("+e.join("|")+")\\b","i")}function v(e){for(var i in p)if("undefined"!==typeof e[p[i]]&&""!==e[i]){if("undefined"===typeof e[i]){if(!t.Object.prototype[i])continue;e[i]=t.Object.prototype[i]}if(0!==e[i].indexOf("url(")){var a=new t.Color(e[i]);e[i]=a.setAlpha(n(a.getAlpha()*e[p[i]],2)).toRgba()}}return e}function b(e,t){var i,a,n,r,s=[];for(n=0,r=t.length;n<r;n++)i=t[n],a=e.getElementsByTagName(i),s=s.concat(Array.prototype.slice.call(a));return s}function y(e,t){var i,a;e.replace(/;\s*$/,"").split(";").forEach((function(e){var n=e.split(":");i=n[0].trim().toLowerCase(),a=n[1].trim(),t[i]=a}))}function _(e,t){var i,a;for(var n in e)"undefined"!==typeof e[n]&&(i=n.toLowerCase(),a=e[n],t[i]=a)}function w(e,i){var a={};for(var n in t.cssRules[i])if(C(e,n.split(" ")))for(var r in t.cssRules[i][n])a[r]=t.cssRules[i][n][r];return a}function C(e,t){var i,a=!0;return i=k(e,t.pop()),i&&t.length&&(a=x(e,t)),i&&a&&0===t.length}function x(e,t){var i,a=!0;while(e.parentNode&&1===e.parentNode.nodeType&&t.length)a&&(i=t.pop()),e=e.parentNode,a=k(e,i);return 0===t.length}function k(e,t){var i,a,n=e.nodeName,r=e.getAttribute("class"),s=e.getAttribute("id");if(i=new RegExp("^"+n,"i"),t=t.replace(i,""),s&&t.length&&(i=new RegExp("#"+s+"(?![a-zA-Z\\-]+)","i"),t=t.replace(i,"")),r&&t.length)for(r=r.split(" "),a=r.length;a--;)i=new RegExp("\\."+r[a]+"(?![a-zA-Z\\-]+)","i"),t=t.replace(i,"");return 0===t.length}function T(e,t){var i;if(e.getElementById&&(i=e.getElementById(t)),i)return i;var a,n,r,s=e.getElementsByTagName("*");for(n=0,r=s.length;n<r;n++)if(a=s[n],t===a.getAttribute("id"))return a}function S(e){var i=b(e,["use","svg:use"]),a=0;while(i.length&&a<i.length){var n=i[a],r=n.getAttribute("xlink:href")||n.getAttribute("href");if(null===r)return;var s,o,l,c,u,d=r.substr(1),p=n.getAttribute("x")||0,f=n.getAttribute("y")||0,A=T(e,d).cloneNode(!0),h=(A.getAttribute("transform")||"")+" translate("+p+", "+f+")",m=i.length,g=t.svgNS;if(E(A),/^svg$/i.test(A.nodeName)){var v=A.ownerDocument.createElementNS(g,"g");for(l=0,c=A.attributes,u=c.length;l<u;l++)o=c.item(l),v.setAttributeNS(g,o.nodeName,o.nodeValue);while(A.firstChild)v.appendChild(A.firstChild);A=v}for(l=0,c=n.attributes,u=c.length;l<u;l++)o=c.item(l),"x"!==o.nodeName&&"y"!==o.nodeName&&"xlink:href"!==o.nodeName&&"href"!==o.nodeName&&("transform"===o.nodeName?h=o.nodeValue+" "+h:A.setAttribute(o.nodeName,o.nodeValue));A.setAttribute("transform",h),A.setAttribute("instantiated_by_use","1"),A.removeAttribute("id"),s=n.parentNode,s.replaceChild(A,n),i.length===m&&a++}}t.svgValidTagNamesRegEx=g(o),t.svgViewBoxElementsRegEx=g(l),t.svgInvalidAncestorsRegEx=g(c),t.svgValidParentsRegEx=g(u),t.cssRules={},t.gradientDefs={},t.clipPaths={},t.parseTransformAttribute=function(){function e(e,i){var a=t.util.cos(i[0]),n=t.util.sin(i[0]),r=0,s=0;3===i.length&&(r=i[1],s=i[2]),e[0]=a,e[1]=n,e[2]=-n,e[3]=a,e[4]=r-(a*r-n*s),e[5]=s-(n*r+a*s)}function i(e,t){var i=t[0],a=2===t.length?t[1]:t[0];e[0]=i,e[3]=a}function a(e,i,a){e[a]=Math.tan(t.util.degreesToRadians(i[0]))}function n(e,t){e[4]=t[0],2===t.length&&(e[5]=t[1])}var r=t.iMatrix,s=t.reNum,o=t.commaWsp,l="(?:(skewX)\\s*\\(\\s*("+s+")\\s*\\))",c="(?:(skewY)\\s*\\(\\s*("+s+")\\s*\\))",u="(?:(rotate)\\s*\\(\\s*("+s+")(?:"+o+"("+s+")"+o+"("+s+"))?\\s*\\))",d="(?:(scale)\\s*\\(\\s*("+s+")(?:"+o+"("+s+"))?\\s*\\))",p="(?:(translate)\\s*\\(\\s*("+s+")(?:"+o+"("+s+"))?\\s*\\))",f="(?:(matrix)\\s*\\(\\s*("+s+")"+o+"("+s+")"+o+"("+s+")"+o+"("+s+")"+o+"("+s+")"+o+"("+s+")\\s*\\))",A="(?:"+f+"|"+p+"|"+d+"|"+u+"|"+l+"|"+c+")",h="(?:"+A+"(?:"+o+"*"+A+")*)",m="^\\s*(?:"+h+"?)\\s*$",g=new RegExp(m),v=new RegExp(A,"g");return function(s){var o=r.concat(),l=[];if(!s||s&&!g.test(s))return o;s.replace(v,(function(s){var c=new RegExp(A).exec(s).filter((function(e){return!!e})),u=c[1],d=c.slice(2).map(parseFloat);switch(u){case"translate":n(o,d);break;case"rotate":d[0]=t.util.degreesToRadians(d[0]),e(o,d);break;case"scale":i(o,d);break;case"skewX":a(o,d,2);break;case"skewY":a(o,d,1);break;case"matrix":o=d;break}l.push(o.concat()),o=r.concat()}));var c=l[0];while(l.length>1)l.shift(),c=t.util.multiplyTransformMatrices(c,l[0]);return c}}();var I=new RegExp("^\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*$");function E(e){if(!t.svgViewBoxElementsRegEx.test(e.nodeName))return{};var i,a,n,s,o=e.getAttribute("viewBox"),l=1,c=1,u=0,d=0,p=e.getAttribute("width"),f=e.getAttribute("height"),A=e.getAttribute("x")||0,h=e.getAttribute("y")||0,m=e.getAttribute("preserveAspectRatio")||"",g=!o||!(o=o.match(I)),v=!p||!f||"100%"===p||"100%"===f,b=g&&v,y={},_="",w=0,C=0;if(y.width=0,y.height=0,y.toBeParsed=b,g&&(A||h)&&e.parentNode&&"#document"!==e.parentNode.nodeName&&(_=" translate("+r(A)+" "+r(h)+") ",n=(e.getAttribute("transform")||"")+_,e.setAttribute("transform",n),e.removeAttribute("x"),e.removeAttribute("y")),b)return y;if(g)return y.width=r(p),y.height=r(f),y;if(u=-parseFloat(o[1]),d=-parseFloat(o[2]),i=parseFloat(o[3]),a=parseFloat(o[4]),y.minX=u,y.minY=d,y.viewBoxWidth=i,y.viewBoxHeight=a,v?(y.width=i,y.height=a):(y.width=r(p),y.height=r(f),l=y.width/i,c=y.height/a),m=t.util.parsePreserveAspectRatioAttribute(m),"none"!==m.alignX&&("meet"===m.meetOrSlice&&(c=l=l>c?c:l),"slice"===m.meetOrSlice&&(c=l=l>c?l:c),w=y.width-i*l,C=y.height-a*l,"Mid"===m.alignX&&(w/=2),"Mid"===m.alignY&&(C/=2),"Min"===m.alignX&&(w=0),"Min"===m.alignY&&(C=0)),1===l&&1===c&&0===u&&0===d&&0===A&&0===h)return y;if((A||h)&&"#document"!==e.parentNode.nodeName&&(_=" translate("+r(A)+" "+r(h)+") "),n=_+" matrix("+l+" 0 0 "+c+" "+(u*l+w)+" "+(d*c+C)+") ","svg"===e.nodeName){s=e.ownerDocument.createElementNS(t.svgNS,"g");while(e.firstChild)s.appendChild(e.firstChild);e.appendChild(s)}else s=e,s.removeAttribute("x"),s.removeAttribute("y"),n=s.getAttribute("transform")+n;return s.setAttribute("transform",n),y}function O(e,t){while(e&&(e=e.parentNode))if(e.nodeName&&t.test(e.nodeName.replace("svg:",""))&&!e.getAttribute("instantiated_by_use"))return!0;return!1}function B(e,t){var i=["gradientTransform","x1","x2","y1","y2","gradientUnits","cx","cy","r","fx","fy"],a="xlink:href",n=t.getAttribute(a).substr(1),r=T(e,n);if(r&&r.getAttribute(a)&&B(e,r),i.forEach((function(e){r&&!t.hasAttribute(e)&&r.hasAttribute(e)&&t.setAttribute(e,r.getAttribute(e))})),!t.children.length){var s=r.cloneNode(!0);while(s.firstChild)t.appendChild(s.firstChild)}t.removeAttribute(a)}t.parseSVGDocument=function(e,i,n,r){if(e){S(e);var s,o,l=t.Object.__uid++,c=E(e),u=t.util.toArray(e.getElementsByTagName("*"));if(c.crossOrigin=r&&r.crossOrigin,c.svgUid=l,0===u.length&&t.isLikelyNode){u=e.selectNodes('//*[name(.)!="svg"]');var d=[];for(s=0,o=u.length;s<o;s++)d[s]=u[s];u=d}var p=u.filter((function(e){return E(e),t.svgValidTagNamesRegEx.test(e.nodeName.replace("svg:",""))&&!O(e,t.svgInvalidAncestorsRegEx)}));if(!p||p&&!p.length)i&&i([],{});else{var f={};u.filter((function(e){return"clipPath"===e.nodeName.replace("svg:","")})).forEach((function(e){var i=e.getAttribute("id");f[i]=t.util.toArray(e.getElementsByTagName("*")).filter((function(e){return t.svgValidTagNamesRegEx.test(e.nodeName.replace("svg:",""))}))})),t.gradientDefs[l]=t.getGradientDefs(e),t.cssRules[l]=t.getCSSRules(e),t.clipPaths[l]=f,t.parseElements(p,(function(e,a){i&&(i(e,c,a,u),delete t.gradientDefs[l],delete t.cssRules[l],delete t.clipPaths[l])}),a(c),n,r)}}};var L=new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*("+t.reNum+"(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|"+t.reNum+"))?\\s+(.*)");i(t,{parseFontDeclaration:function(e,t){var i=e.match(L);if(i){var a=i[1],n=i[3],s=i[4],o=i[5],l=i[6];a&&(t.fontStyle=a),n&&(t.fontWeight=isNaN(parseFloat(n))?n:parseFloat(n)),s&&(t.fontSize=r(s)),l&&(t.fontFamily=l),o&&(t.lineHeight="normal"===o?1:o)}},getGradientDefs:function(e){var t,i=["linearGradient","radialGradient","svg:linearGradient","svg:radialGradient"],a=b(e,i),n=0,r={};n=a.length;while(n--)t=a[n],t.getAttribute("xlink:href")&&B(e,t),r[t.getAttribute("id")]=t;return r},parseAttributes:function(e,a,n){if(e){var s,o,l,c={};"undefined"===typeof n&&(n=e.getAttribute("svgUid")),e.parentNode&&t.svgValidParentsRegEx.test(e.parentNode.nodeName)&&(c=t.parseAttributes(e.parentNode,a,n));var u=a.reduce((function(t,i){return s=e.getAttribute(i),s&&(t[i]=s),t}),{}),d=i(w(e,n),t.parseStyleAttribute(e));u=i(u,d),d[A]&&e.setAttribute(A,d[A]),o=l=c.fontSize||t.Text.DEFAULT_SVG_FONT_SIZE,u[f]&&(u[f]=o=r(u[f],l));var p,g,b={};for(var y in u)p=h(y),g=m(p,u[y],c,o),b[p]=g;b&&b.font&&t.parseFontDeclaration(b.font,b);var _=i(c,b);return t.svgValidParentsRegEx.test(e.nodeName)?_:v(_)}},parseElements:function(e,i,a,n,r){new t.ElementsParser(e,i,a,n,r).parse()},parseStyleAttribute:function(e){var t={},i=e.getAttribute("style");return i?("string"===typeof i?y(i,t):_(i,t),t):t},parsePointsAttribute:function(e){if(!e)return null;e=e.replace(/,/g," ").trim(),e=e.split(/\s+/);var t,i,a=[];for(t=0,i=e.length;t<i;t+=2)a.push({x:parseFloat(e[t]),y:parseFloat(e[t+1])});return a},getCSSRules:function(e){var i,a,n,r=e.getElementsByTagName("style"),s={};for(i=0,a=r.length;i<a;i++){var o=r[i].textContent;o=o.replace(/\/\*[\s\S]*?\*\//g,""),""!==o.trim()&&(n=o.match(/[^{]*\{[\s\S]*?\}/g),n=n.map((function(e){return e.trim()})),n.forEach((function(e){var n=e.match(/([\s\S]*?)\s*\{([^}]*)\}/),r={},o=n[2].trim(),l=o.replace(/;$/,"").split(/\s*;\s*/);for(i=0,a=l.length;i<a;i++){var c=l[i].split(/\s*:\s*/),u=c[0],d=c[1];r[u]=d}e=n[1],e.split(",").forEach((function(e){e=e.replace(/^svg/i,"").trim(),""!==e&&(s[e]?t.util.object.extend(s[e],r):s[e]=t.util.object.clone(r))}))})))}return s},loadSVGFromURL:function(e,i,a,n){function r(e){var r=e.responseXML;if(!r||!r.documentElement)return i&&i(null),!1;t.parseSVGDocument(r.documentElement,(function(e,t,a,n){i&&i(e,t,a,n)}),a,n)}e=e.replace(/^\n\s*/,"").trim(),new t.util.request(e,{method:"get",onComplete:r})},loadSVGFromString:function(e,i,a,n){var r=new t.window.DOMParser,s=r.parseFromString(e.trim(),"text/xml");t.parseSVGDocument(s.documentElement,(function(e,t,a,n){i(e,t,a,n)}),a,n)}})}(i),n.ElementsParser=function(e,t,i,a,n,r){this.elements=e,this.callback=t,this.options=i,this.reviver=a,this.svgUid=i&&i.svgUid||0,this.parsingOptions=n,this.regexUrl=/^url\(['"]?#([^'"]+)['"]?\)/g,this.doc=r},function(e){e.parse=function(){this.instances=new Array(this.elements.length),this.numElements=this.elements.length,this.createObjects()},e.createObjects=function(){var e=this;this.elements.forEach((function(t,i){t.setAttribute("svgUid",e.svgUid),e.createObject(t,i)}))},e.findTag=function(e){return n[n.util.string.capitalize(e.tagName.replace("svg:",""))]},e.createObject=function(e,t){var i=this.findTag(e);if(i&&i.fromElement)try{i.fromElement(e,this.createCallback(t,e),this.options)}catch(a){n.log(a)}else this.checkIfDone()},e.createCallback=function(e,t){var i=this;return function(a){var r;i.resolveGradient(a,t,"fill"),i.resolveGradient(a,t,"stroke"),a instanceof n.Image&&a._originalElement&&(r=a.parsePreserveAspectRatioAttribute(t)),a._removeTransformMatrix(r),i.resolveClipPath(a,t),i.reviver&&i.reviver(t,a),i.instances[e]=a,i.checkIfDone()}},e.extractPropertyDefinition=function(e,t,i){var a=e[t],r=this.regexUrl;if(r.test(a)){r.lastIndex=0;var s=r.exec(a)[1];return r.lastIndex=0,n[i][this.svgUid][s]}},e.resolveGradient=function(e,t,i){var a=this.extractPropertyDefinition(e,i,"gradientDefs");if(a){var r=t.getAttribute(i+"-opacity"),s=n.Gradient.fromElement(a,e,r,this.options);e.set(i,s)}},e.createClipPathCallback=function(e,t){return function(e){e._removeTransformMatrix(),e.fillRule=e.clipRule,t.push(e)}},e.resolveClipPath=function(e,t){var i,a,r,s,o,l=this.extractPropertyDefinition(e,"clipPath","clipPaths");if(l){s=[],r=n.util.invertTransform(e.calcTransformMatrix());var c=l[0].parentNode,u=t;while(u.parentNode&&u.getAttribute("clip-path")!==e.clipPath)u=u.parentNode;u.parentNode.appendChild(c);for(var d=0;d<l.length;d++)i=l[d],a=this.findTag(i),a.fromElement(i,this.createClipPathCallback(e,s),this.options);l=1===s.length?s[0]:new n.Group(s),o=n.util.multiplyTransformMatrices(r,l.calcTransformMatrix()),l.clipPath&&this.resolveClipPath(l,u);var p=n.util.qrDecompose(o);l.flipX=!1,l.flipY=!1,l.set("scaleX",p.scaleX),l.set("scaleY",p.scaleY),l.angle=p.angle,l.skewX=p.skewX,l.skewY=0,l.setPositionByOrigin({x:p.translateX,y:p.translateY},"center","center"),e.clipPath=l}else delete e.clipPath},e.checkIfDone=function(){0===--this.numElements&&(this.instances=this.instances.filter((function(e){return null!=e})),this.callback(this.instances,this.elements))}}(n.ElementsParser.prototype),function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e,t){this.x=e,this.y=t}t.Point?t.warn("fabric.Point is already defined"):(t.Point=i,i.prototype={type:"point",constructor:i,add:function(e){return new i(this.x+e.x,this.y+e.y)},addEquals:function(e){return this.x+=e.x,this.y+=e.y,this},scalarAdd:function(e){return new i(this.x+e,this.y+e)},scalarAddEquals:function(e){return this.x+=e,this.y+=e,this},subtract:function(e){return new i(this.x-e.x,this.y-e.y)},subtractEquals:function(e){return this.x-=e.x,this.y-=e.y,this},scalarSubtract:function(e){return new i(this.x-e,this.y-e)},scalarSubtractEquals:function(e){return this.x-=e,this.y-=e,this},multiply:function(e){return new i(this.x*e,this.y*e)},multiplyEquals:function(e){return this.x*=e,this.y*=e,this},divide:function(e){return new i(this.x/e,this.y/e)},divideEquals:function(e){return this.x/=e,this.y/=e,this},eq:function(e){return this.x===e.x&&this.y===e.y},lt:function(e){return this.x<e.x&&this.y<e.y},lte:function(e){return this.x<=e.x&&this.y<=e.y},gt:function(e){return this.x>e.x&&this.y>e.y},gte:function(e){return this.x>=e.x&&this.y>=e.y},lerp:function(e,t){return"undefined"===typeof t&&(t=.5),t=Math.max(Math.min(1,t),0),new i(this.x+(e.x-this.x)*t,this.y+(e.y-this.y)*t)},distanceFrom:function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},midPointFrom:function(e){return this.lerp(e)},min:function(e){return new i(Math.min(this.x,e.x),Math.min(this.y,e.y))},max:function(e){return new i(Math.max(this.x,e.x),Math.max(this.y,e.y))},toString:function(){return this.x+","+this.y},setXY:function(e,t){return this.x=e,this.y=t,this},setX:function(e){return this.x=e,this},setY:function(e){return this.y=e,this},setFromPoint:function(e){return this.x=e.x,this.y=e.y,this},swap:function(e){var t=this.x,i=this.y;this.x=e.x,this.y=e.y,e.x=t,e.y=i},clone:function(){return new i(this.x,this.y)}})}(i),function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e){this.status=e,this.points=[]}t.Intersection?t.warn("fabric.Intersection is already defined"):(t.Intersection=i,t.Intersection.prototype={constructor:i,appendPoint:function(e){return this.points.push(e),this},appendPoints:function(e){return this.points=this.points.concat(e),this}},t.Intersection.intersectLineLine=function(e,a,n,r){var s,o=(r.x-n.x)*(e.y-n.y)-(r.y-n.y)*(e.x-n.x),l=(a.x-e.x)*(e.y-n.y)-(a.y-e.y)*(e.x-n.x),c=(r.y-n.y)*(a.x-e.x)-(r.x-n.x)*(a.y-e.y);if(0!==c){var u=o/c,d=l/c;0<=u&&u<=1&&0<=d&&d<=1?(s=new i("Intersection"),s.appendPoint(new t.Point(e.x+u*(a.x-e.x),e.y+u*(a.y-e.y)))):s=new i}else s=new i(0===o||0===l?"Coincident":"Parallel");return s},t.Intersection.intersectLinePolygon=function(e,t,a){var n,r,s,o,l=new i,c=a.length;for(o=0;o<c;o++)n=a[o],r=a[(o+1)%c],s=i.intersectLineLine(e,t,n,r),l.appendPoints(s.points);return l.points.length>0&&(l.status="Intersection"),l},t.Intersection.intersectPolygonPolygon=function(e,t){var a,n=new i,r=e.length;for(a=0;a<r;a++){var s=e[a],o=e[(a+1)%r],l=i.intersectLinePolygon(s,o,t);n.appendPoints(l.points)}return n.points.length>0&&(n.status="Intersection"),n},t.Intersection.intersectPolygonRectangle=function(e,a,n){var r=a.min(n),s=a.max(n),o=new t.Point(s.x,r.y),l=new t.Point(r.x,s.y),c=i.intersectLinePolygon(r,o,e),u=i.intersectLinePolygon(o,s,e),d=i.intersectLinePolygon(s,l,e),p=i.intersectLinePolygon(l,r,e),f=new i;return f.appendPoints(c.points),f.appendPoints(u.points),f.appendPoints(d.points),f.appendPoints(p.points),f.points.length>0&&(f.status="Intersection"),f})}(i),function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e){e?this._tryParsingColor(e):this.setSource([0,0,0,1])}function a(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}t.Color?t.warn("fabric.Color is already defined."):(t.Color=i,t.Color.prototype={_tryParsingColor:function(e){var t;e in i.colorNameMap&&(e=i.colorNameMap[e]),"transparent"===e&&(t=[255,255,255,0]),t||(t=i.sourceFromHex(e)),t||(t=i.sourceFromRgb(e)),t||(t=i.sourceFromHsl(e)),t||(t=[0,0,0,1]),t&&this.setSource(t)},_rgbToHsl:function(e,i,a){e/=255,i/=255,a/=255;var n,r,s,o=t.util.array.max([e,i,a]),l=t.util.array.min([e,i,a]);if(s=(o+l)/2,o===l)n=r=0;else{var c=o-l;switch(r=s>.5?c/(2-o-l):c/(o+l),o){case e:n=(i-a)/c+(i<a?6:0);break;case i:n=(a-e)/c+2;break;case a:n=(e-i)/c+4;break}n/=6}return[Math.round(360*n),Math.round(100*r),Math.round(100*s)]},getSource:function(){return this._source},setSource:function(e){this._source=e},toRgb:function(){var e=this.getSource();return"rgb("+e[0]+","+e[1]+","+e[2]+")"},toRgba:function(){var e=this.getSource();return"rgba("+e[0]+","+e[1]+","+e[2]+","+e[3]+")"},toHsl:function(){var e=this.getSource(),t=this._rgbToHsl(e[0],e[1],e[2]);return"hsl("+t[0]+","+t[1]+"%,"+t[2]+"%)"},toHsla:function(){var e=this.getSource(),t=this._rgbToHsl(e[0],e[1],e[2]);return"hsla("+t[0]+","+t[1]+"%,"+t[2]+"%,"+e[3]+")"},toHex:function(){var e,t,i,a=this.getSource();return e=a[0].toString(16),e=1===e.length?"0"+e:e,t=a[1].toString(16),t=1===t.length?"0"+t:t,i=a[2].toString(16),i=1===i.length?"0"+i:i,e.toUpperCase()+t.toUpperCase()+i.toUpperCase()},toHexa:function(){var e,t=this.getSource();return e=Math.round(255*t[3]),e=e.toString(16),e=1===e.length?"0"+e:e,this.toHex()+e.toUpperCase()},getAlpha:function(){return this.getSource()[3]},setAlpha:function(e){var t=this.getSource();return t[3]=e,this.setSource(t),this},toGrayscale:function(){var e=this.getSource(),t=parseInt((.3*e[0]+.59*e[1]+.11*e[2]).toFixed(0),10),i=e[3];return this.setSource([t,t,t,i]),this},toBlackWhite:function(e){var t=this.getSource(),i=(.3*t[0]+.59*t[1]+.11*t[2]).toFixed(0),a=t[3];return e=e||127,i=Number(i)<Number(e)?0:255,this.setSource([i,i,i,a]),this},overlayWith:function(e){e instanceof i||(e=new i(e));var t,a=[],n=this.getAlpha(),r=.5,s=this.getSource(),o=e.getSource();for(t=0;t<3;t++)a.push(Math.round(s[t]*(1-r)+o[t]*r));return a[3]=n,this.setSource(a),this}},t.Color.reRGBa=/^rgba?\(\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*(?:\s*,\s*((?:\d*\.?\d+)?)\s*)?\)$/i,t.Color.reHSLa=/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i,t.Color.reHex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,t.Color.colorNameMap={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"},t.Color.fromRgb=function(e){return i.fromSource(i.sourceFromRgb(e))},t.Color.sourceFromRgb=function(e){var t=e.match(i.reRGBa);if(t){var a=parseInt(t[1],10)/(/%$/.test(t[1])?100:1)*(/%$/.test(t[1])?255:1),n=parseInt(t[2],10)/(/%$/.test(t[2])?100:1)*(/%$/.test(t[2])?255:1),r=parseInt(t[3],10)/(/%$/.test(t[3])?100:1)*(/%$/.test(t[3])?255:1);return[parseInt(a,10),parseInt(n,10),parseInt(r,10),t[4]?parseFloat(t[4]):1]}},t.Color.fromRgba=i.fromRgb,t.Color.fromHsl=function(e){return i.fromSource(i.sourceFromHsl(e))},t.Color.sourceFromHsl=function(e){var t=e.match(i.reHSLa);if(t){var n,r,s,o=(parseFloat(t[1])%360+360)%360/360,l=parseFloat(t[2])/(/%$/.test(t[2])?100:1),c=parseFloat(t[3])/(/%$/.test(t[3])?100:1);if(0===l)n=r=s=c;else{var u=c<=.5?c*(l+1):c+l-c*l,d=2*c-u;n=a(d,u,o+1/3),r=a(d,u,o),s=a(d,u,o-1/3)}return[Math.round(255*n),Math.round(255*r),Math.round(255*s),t[4]?parseFloat(t[4]):1]}},t.Color.fromHsla=i.fromHsl,t.Color.fromHex=function(e){return i.fromSource(i.sourceFromHex(e))},t.Color.sourceFromHex=function(e){if(e.match(i.reHex)){var t=e.slice(e.indexOf("#")+1),a=3===t.length||4===t.length,n=8===t.length||4===t.length,r=a?t.charAt(0)+t.charAt(0):t.substring(0,2),s=a?t.charAt(1)+t.charAt(1):t.substring(2,4),o=a?t.charAt(2)+t.charAt(2):t.substring(4,6),l=n?a?t.charAt(3)+t.charAt(3):t.substring(6,8):"FF";return[parseInt(r,16),parseInt(s,16),parseInt(o,16),parseFloat((parseInt(l,16)/255).toFixed(2))]}},t.Color.fromSource=function(e){var t=new i;return t.setSource(e),t})}(i),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=["e","se","s","sw","w","nw","n","ne","e"],a=["ns","nesw","ew","nwse"],n={},r="left",s="top",o="right",l="bottom",c="center",u={top:l,bottom:s,left:o,right:r,center:c},d=t.util.radiansToDegrees,p=Math.sign||function(e){return(e>0)-(e<0)||+e};function f(e,t){var i=e.angle+d(Math.atan2(t.y,t.x))+360;return Math.round(i%360/45)}function A(e,i){var a=i.transform.target,n=a.canvas,r=t.util.object.clone(i);r.target=a,n&&n.fire("object:"+e,r),a.fire(e,i)}function h(e,t){var i=t.canvas,a=i.uniScaleKey,n=e[a];return i.uniformScaling&&!n||!i.uniformScaling&&n}function m(e){return e.originX===c&&e.originY===c}function g(e,t,i){var a=e.lockScalingX,n=e.lockScalingY;return!(!a||!n)||(!(t||!a&&!n||!i)||(!(!a||"x"!==t)||!(!n||"y"!==t)))}function v(e,t,a){var n="not-allowed",r=h(e,a),s="";if(0!==t.x&&0===t.y?s="x":0===t.x&&0!==t.y&&(s="y"),g(a,s,r))return n;var o=f(a,t);return i[o]+"-resize"}function b(e,t,i){var n="not-allowed";if(0!==t.x&&i.lockSkewingY)return n;if(0!==t.y&&i.lockSkewingX)return n;var r=f(i,t)%4;return a[r]+"-resize"}function y(e,t,i){return e[i.canvas.altActionKey]?n.skewCursorStyleHandler(e,t,i):n.scaleCursorStyleHandler(e,t,i)}function _(e,t,i){var a=e[i.canvas.altActionKey];return 0===t.x?a?"skewX":"scaleY":0===t.y?a?"skewY":"scaleX":void 0}function w(e,t,i){return i.lockRotation?"not-allowed":t.cursorStyle}function C(e,t,i,a){return{e:e,transform:t,pointer:{x:i,y:a}}}function x(e){return function(t,i,a,n){var r=i.target,s=r.getCenterPoint(),o=r.translateToOriginPoint(s,i.originX,i.originY),l=e(t,i,a,n);return r.setPositionByOrigin(o,i.originX,i.originY),l}}function k(e,t){return function(i,a,n,r){var s=t(i,a,n,r);return s&&A(e,C(i,a,n,r)),s}}function T(e,i,a,n,r){var s=e.target,o=s.controls[e.corner],l=s.canvas.getZoom(),c=s.padding/l,u=s.toLocalPoint(new t.Point(n,r),i,a);return u.x>=c&&(u.x-=c),u.x<=-c&&(u.x+=c),u.y>=c&&(u.y-=c),u.y<=c&&(u.y+=c),u.x-=o.offsetX,u.y-=o.offsetY,u}function S(e){return e.flipX!==e.flipY}function I(e,t,i,a,n){if(0!==e[t]){var r=e._getTransformedDimensions()[a],s=n/r*e[i];e.set(i,s)}}function E(e,t,i,a){var n,c=t.target,u=c._getTransformedDimensions(0,c.skewY),p=T(t,t.originX,t.originY,i,a),f=Math.abs(2*p.x)-u.x,A=c.skewX;f<2?n=0:(n=d(Math.atan2(f/c.scaleX,u.y/c.scaleY)),t.originX===r&&t.originY===l&&(n=-n),t.originX===o&&t.originY===s&&(n=-n),S(c)&&(n=-n));var h=A!==n;if(h){var m=c._getTransformedDimensions().y;c.set("skewX",n),I(c,"skewY","scaleY","y",m)}return h}function O(e,t,i,a){var n,c=t.target,u=c._getTransformedDimensions(c.skewX,0),p=T(t,t.originX,t.originY,i,a),f=Math.abs(2*p.y)-u.y,A=c.skewY;f<2?n=0:(n=d(Math.atan2(f/c.scaleY,u.x/c.scaleX)),t.originX===r&&t.originY===l&&(n=-n),t.originX===o&&t.originY===s&&(n=-n),S(c)&&(n=-n));var h=A!==n;if(h){var m=c._getTransformedDimensions().x;c.set("skewY",n),I(c,"skewX","scaleX","x",m)}return h}function B(e,t,i,a){var n,l=t.target,u=l.skewX,d=t.originY;if(l.lockSkewingX)return!1;if(0===u){var p=T(t,c,c,i,a);n=p.x>0?r:o}else u>0&&(n=d===s?r:o),u<0&&(n=d===s?o:r),S(l)&&(n=n===r?o:r);t.originX=n;var f=k("skewing",x(E));return f(e,t,i,a)}function L(e,t,i,a){var n,o=t.target,u=o.skewY,d=t.originX;if(o.lockSkewingY)return!1;if(0===u){var p=T(t,c,c,i,a);n=p.y>0?s:l}else u>0&&(n=d===r?s:l),u<0&&(n=d===r?l:s),S(o)&&(n=n===s?l:s);t.originY=n;var f=k("skewing",x(O));return f(e,t,i,a)}function D(e,t,i,a){var n=t,r=n.target,s=r.translateToOriginPoint(r.getCenterPoint(),n.originX,n.originY);if(r.lockRotation)return!1;var o=Math.atan2(n.ey-s.y,n.ex-s.x),l=Math.atan2(a-s.y,i-s.x),c=d(l-o+n.theta),u=!0;if(r.snapAngle>0){var p=r.snapAngle,f=r.snapThreshold||p,A=Math.ceil(c/p)*p,h=Math.floor(c/p)*p;Math.abs(c-h)<f?c=h:Math.abs(c-A)<f&&(c=A)}return c<0&&(c=360+c),c%=360,u=r.angle!==c,r.angle=c,u}function M(e,t,i,a,n){n=n||{};var r,s,o,l,c,d,f=t.target,A=f.lockScalingX,v=f.lockScalingY,b=n.by,y=h(e,f),_=g(f,b,y),w=t.gestureScale;if(_)return!1;if(w)s=t.scaleX*w,o=t.scaleY*w;else{if(r=T(t,t.originX,t.originY,i,a),c="y"!==b?p(r.x):1,d="x"!==b?p(r.y):1,t.signX||(t.signX=c),t.signY||(t.signY=d),f.lockScalingFlip&&(t.signX!==c||t.signY!==d))return!1;if(l=f._getTransformedDimensions(),y&&!b){var C=Math.abs(r.x)+Math.abs(r.y),x=t.original,k=Math.abs(l.x*x.scaleX/f.scaleX)+Math.abs(l.y*x.scaleY/f.scaleY),S=C/k;s=x.scaleX*S,o=x.scaleY*S}else s=Math.abs(r.x*f.scaleX/l.x),o=Math.abs(r.y*f.scaleY/l.y);m(t)&&(s*=2,o*=2),t.signX!==c&&"y"!==b&&(t.originX=u[t.originX],s*=-1,t.signX=c),t.signY!==d&&"x"!==b&&(t.originY=u[t.originY],o*=-1,t.signY=d)}var I=f.scaleX,E=f.scaleY;return b?("x"===b&&f.set("scaleX",s),"y"===b&&f.set("scaleY",o)):(!A&&f.set("scaleX",s),!v&&f.set("scaleY",o)),I!==f.scaleX||E!==f.scaleY}function N(e,t,i,a){return M(e,t,i,a)}function j(e,t,i,a){return M(e,t,i,a,{by:"x"})}function P(e,t,i,a){return M(e,t,i,a,{by:"y"})}function U(e,t,i,a){return e[t.target.canvas.altActionKey]?n.skewHandlerX(e,t,i,a):n.scalingY(e,t,i,a)}function F(e,t,i,a){return e[t.target.canvas.altActionKey]?n.skewHandlerY(e,t,i,a):n.scalingX(e,t,i,a)}function R(e,t,i,a){var n=t.target,r=T(t,t.originX,t.originY,i,a),s=n.strokeWidth/(n.strokeUniform?n.scaleX:1),o=m(t)?2:1,l=n.width,c=Math.abs(r.x*o/n.scaleX)-s;return n.set("width",Math.max(c,0)),l!==c}function Q(e,t,i,a){var n=t.target,r=i-t.offsetX,s=a-t.offsetY,o=!n.get("lockMovementX")&&n.left!==r,l=!n.get("lockMovementY")&&n.top!==s;return o&&n.set("left",r),l&&n.set("top",s),(o||l)&&A("moving",C(e,t,i,a)),o||l}n.scaleCursorStyleHandler=v,n.skewCursorStyleHandler=b,n.scaleSkewCursorStyleHandler=y,n.rotationWithSnapping=k("rotating",x(D)),n.scalingEqually=k("scaling",x(N)),n.scalingX=k("scaling",x(j)),n.scalingY=k("scaling",x(P)),n.scalingYOrSkewingX=U,n.scalingXOrSkewingY=F,n.changeWidth=k("resizing",x(R)),n.skewHandlerX=B,n.skewHandlerY=L,n.dragHandler=Q,n.scaleOrSkewActionName=_,n.rotationStyleHandler=w,n.fireEvent=A,n.wrapWithFixedAnchor=x,n.wrapWithFireEvent=k,n.getLocalPoint=T,t.controlsUtils=n}(i),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.degreesToRadians,a=t.controlsUtils;function n(e,t,i,a,n){a=a||{};var r,s=this.sizeX||a.cornerSize||n.cornerSize,o=this.sizeY||a.cornerSize||n.cornerSize,l="undefined"!==typeof a.transparentCorners?a.transparentCorners:n.transparentCorners,c=l?"stroke":"fill",u=!l&&(a.cornerStrokeColor||n.cornerStrokeColor),d=t,p=i;e.save(),e.fillStyle=a.cornerColor||n.cornerColor,e.strokeStyle=a.cornerStrokeColor||n.cornerStrokeColor,s>o?(r=s,e.scale(1,o/s),p=i*s/o):o>s?(r=o,e.scale(s/o,1),d=t*o/s):r=s,e.lineWidth=1,e.beginPath(),e.arc(d,p,r/2,0,2*Math.PI,!1),e[c](),u&&e.stroke(),e.restore()}function r(e,t,a,n,r){n=n||{};var s=this.sizeX||n.cornerSize||r.cornerSize,o=this.sizeY||n.cornerSize||r.cornerSize,l="undefined"!==typeof n.transparentCorners?n.transparentCorners:r.transparentCorners,c=l?"stroke":"fill",u=!l&&(n.cornerStrokeColor||r.cornerStrokeColor),d=s/2,p=o/2;e.save(),e.fillStyle=n.cornerColor||r.cornerColor,e.strokeStyle=n.cornerStrokeColor||r.cornerStrokeColor,e.lineWidth=1,e.translate(t,a),e.rotate(i(r.angle)),e[c+"Rect"](-d,-p,s,o),u&&e.strokeRect(-d,-p,s,o),e.restore()}a.renderCircleControl=n,a.renderSquareControl=r}(i),function(e){"use strict";var t=e.fabric||(e.fabric={});function i(e){for(var t in e)this[t]=e[t]}t.Control=i,t.Control.prototype={visible:!0,actionName:"scale",angle:0,x:0,y:0,offsetX:0,offsetY:0,sizeX:null,sizeY:null,touchSizeX:null,touchSizeY:null,cursorStyle:"crosshair",withConnection:!1,actionHandler:function(){},mouseDownHandler:function(){},mouseUpHandler:function(){},getActionHandler:function(){return this.actionHandler},getMouseDownHandler:function(){return this.mouseDownHandler},getMouseUpHandler:function(){return this.mouseUpHandler},cursorStyleHandler:function(e,t){return t.cursorStyle},getActionName:function(e,t){return t.actionName},getVisibility:function(e,t){var i=e._controlsVisibility;return i&&"undefined"!==typeof i[t]?i[t]:this.visible},setVisibility:function(e){this.visible=e},positionHandler:function(e,i){var a=t.util.transformPoint({x:this.x*e.x+this.offsetX,y:this.y*e.y+this.offsetY},i);return a},calcCornerCoords:function(e,i,a,n,r){var s,o,l,c,u=r?this.touchSizeX:this.sizeX,d=r?this.touchSizeY:this.sizeY;if(u&&d&&u!==d){var p=Math.atan2(d,u),f=Math.sqrt(u*u+d*d)/2,A=p-t.util.degreesToRadians(e),h=Math.PI/2-p-t.util.degreesToRadians(e);s=f*t.util.cos(A),o=f*t.util.sin(A),l=f*t.util.cos(h),c=f*t.util.sin(h)}else{var m=u&&d?u:i;f=.7071067812*m;A=t.util.degreesToRadians(45-e);s=l=f*t.util.cos(A),o=c=f*t.util.sin(A)}return{tl:{x:a-c,y:n-l},tr:{x:a+s,y:n-o},bl:{x:a-s,y:n+o},br:{x:a+c,y:n+l}}},render:function(e,i,a,n,r){switch(n=n||{},n.cornerStyle||r.cornerStyle){case"circle":t.controlsUtils.renderCircleControl.call(this,e,i,a,n,r);break;default:t.controlsUtils.renderSquareControl.call(this,e,i,a,n,r)}}}}(i),function(){function e(e,t){var i,a,r,s,o=e.getAttribute("style"),l=e.getAttribute("offset")||0;if(l=parseFloat(l)/(/%$/.test(l)?100:1),l=l<0?0:l>1?1:l,o){var c=o.split(/\s*;\s*/);for(""===c[c.length-1]&&c.pop(),s=c.length;s--;){var u=c[s].split(/\s*:\s*/),d=u[0].trim(),p=u[1].trim();"stop-color"===d?i=p:"stop-opacity"===d&&(r=p)}}return i||(i=e.getAttribute("stop-color")||"rgb(0,0,0)"),r||(r=e.getAttribute("stop-opacity")),i=new n.Color(i),a=i.getAlpha(),r=isNaN(parseFloat(r))?1:parseFloat(r),r*=a*t,{offset:l,color:i.toRgb(),opacity:r}}function t(e){return{x1:e.getAttribute("x1")||0,y1:e.getAttribute("y1")||0,x2:e.getAttribute("x2")||"100%",y2:e.getAttribute("y2")||0}}function i(e){return{x1:e.getAttribute("fx")||e.getAttribute("cx")||"50%",y1:e.getAttribute("fy")||e.getAttribute("cy")||"50%",r1:0,x2:e.getAttribute("cx")||"50%",y2:e.getAttribute("cy")||"50%",r2:e.getAttribute("r")||"50%"}}var a=n.util.object.clone;function r(e,t,i,a){var n,r;Object.keys(t).forEach((function(e){n=t[e],"Infinity"===n?r=1:"-Infinity"===n?r=0:(r=parseFloat(t[e],10),"string"===typeof n&&/^(\d+\.\d+)%|(\d+)%$/.test(n)&&(r*=.01,"pixels"===a&&("x1"!==e&&"x2"!==e&&"r2"!==e||(r*=i.viewBoxWidth||i.width),"y1"!==e&&"y2"!==e||(r*=i.viewBoxHeight||i.height)))),t[e]=r}))}n.Gradient=n.util.createClass({offsetX:0,offsetY:0,gradientTransform:null,gradientUnits:"pixels",type:"linear",initialize:function(e){e||(e={}),e.coords||(e.coords={});var t,i=this;Object.keys(e).forEach((function(t){i[t]=e[t]})),this.id?this.id+="_"+n.Object.__uid++:this.id=n.Object.__uid++,t={x1:e.coords.x1||0,y1:e.coords.y1||0,x2:e.coords.x2||0,y2:e.coords.y2||0},"radial"===this.type&&(t.r1=e.coords.r1||0,t.r2=e.coords.r2||0),this.coords=t,this.colorStops=e.colorStops.slice()},addColorStop:function(e){for(var t in e){var i=new n.Color(e[t]);this.colorStops.push({offset:parseFloat(t),color:i.toRgb(),opacity:i.getAlpha()})}return this},toObject:function(e){var t={type:this.type,coords:this.coords,colorStops:this.colorStops,offsetX:this.offsetX,offsetY:this.offsetY,gradientUnits:this.gradientUnits,gradientTransform:this.gradientTransform?this.gradientTransform.concat():this.gradientTransform};return n.util.populateWithProperties(this,t,e),t},toSVG:function(e,t){var i,r,s,o,l=a(this.coords,!0),c=(t=t||{},a(this.colorStops,!0)),u=l.r1>l.r2,d=this.gradientTransform?this.gradientTransform.concat():n.iMatrix.concat(),p=-this.offsetX,f=-this.offsetY,A=!!t.additionalTransform,h="pixels"===this.gradientUnits?"userSpaceOnUse":"objectBoundingBox";if(c.sort((function(e,t){return e.offset-t.offset})),"objectBoundingBox"===h?(p/=e.width,f/=e.height):(p+=e.width/2,f+=e.height/2),"path"===e.type&&"percentage"!==this.gradientUnits&&(p-=e.pathOffset.x,f-=e.pathOffset.y),d[4]-=p,d[5]-=f,o='id="SVGID_'+this.id+'" gradientUnits="'+h+'"',o+=' gradientTransform="'+(A?t.additionalTransform+" ":"")+n.util.matrixToSVG(d)+'" ',"linear"===this.type?s=["<linearGradient ",o,' x1="',l.x1,'" y1="',l.y1,'" x2="',l.x2,'" y2="',l.y2,'">\n']:"radial"===this.type&&(s=["<radialGradient ",o,' cx="',u?l.x1:l.x2,'" cy="',u?l.y1:l.y2,'" r="',u?l.r1:l.r2,'" fx="',u?l.x2:l.x1,'" fy="',u?l.y2:l.y1,'">\n']),"radial"===this.type){if(u)for(c=c.concat(),c.reverse(),i=0,r=c.length;i<r;i++)c[i].offset=1-c[i].offset;var m=Math.min(l.r1,l.r2);if(m>0){var g=Math.max(l.r1,l.r2),v=m/g;for(i=0,r=c.length;i<r;i++)c[i].offset+=v*(1-c[i].offset)}}for(i=0,r=c.length;i<r;i++){var b=c[i];s.push("<stop ",'offset="',100*b.offset+"%",'" style="stop-color:',b.color,"undefined"!==typeof b.opacity?";stop-opacity: "+b.opacity:";",'"/>\n')}return s.push("linear"===this.type?"</linearGradient>\n":"</radialGradient>\n"),s.join("")},toLive:function(e){var t,i,a,r=n.util.object.clone(this.coords);if(this.type){for("linear"===this.type?t=e.createLinearGradient(r.x1,r.y1,r.x2,r.y2):"radial"===this.type&&(t=e.createRadialGradient(r.x1,r.y1,r.r1,r.x2,r.y2,r.r2)),i=0,a=this.colorStops.length;i<a;i++){var s=this.colorStops[i].color,o=this.colorStops[i].opacity,l=this.colorStops[i].offset;"undefined"!==typeof o&&(s=new n.Color(s).setAlpha(o).toRgba()),t.addColorStop(l,s)}return t}}}),n.util.object.extend(n.Gradient,{fromElement:function(a,s,o,l){var c=parseFloat(o)/(/%$/.test(o)?100:1);c=c<0?0:c>1?1:c,isNaN(c)&&(c=1);var u,d,p,f,A=a.getElementsByTagName("stop"),h="userSpaceOnUse"===a.getAttribute("gradientUnits")?"pixels":"percentage",m=a.getAttribute("gradientTransform")||"",g=[],v=0,b=0;for("linearGradient"===a.nodeName||"LINEARGRADIENT"===a.nodeName?(u="linear",d=t(a)):(u="radial",d=i(a)),p=A.length;p--;)g.push(e(A[p],c));f=n.parseTransformAttribute(m),r(s,d,l,h),"pixels"===h&&(v=-s.left,b=-s.top);var y=new n.Gradient({id:a.getAttribute("id"),type:u,coords:d,colorStops:g,gradientUnits:h,gradientTransform:f,offsetX:v,offsetY:b});return y}})}(),function(){"use strict";var e=n.util.toFixed;n.Pattern=n.util.createClass({repeat:"repeat",offsetX:0,offsetY:0,crossOrigin:"",patternTransform:null,initialize:function(e,t){if(e||(e={}),this.id=n.Object.__uid++,this.setOptions(e),!e.source||e.source&&"string"!==typeof e.source)t&&t(this);else{var i=this;this.source=n.util.createImage(),n.util.loadImage(e.source,(function(e,a){i.source=e,t&&t(i,a)}),null,this.crossOrigin)}},toObject:function(t){var i,a,r=n.Object.NUM_FRACTION_DIGITS;return"string"===typeof this.source.src?i=this.source.src:"object"===typeof this.source&&this.source.toDataURL&&(i=this.source.toDataURL()),a={type:"pattern",source:i,repeat:this.repeat,crossOrigin:this.crossOrigin,offsetX:e(this.offsetX,r),offsetY:e(this.offsetY,r),patternTransform:this.patternTransform?this.patternTransform.concat():null},n.util.populateWithProperties(this,a,t),a},toSVG:function(e){var t="function"===typeof this.source?this.source():this.source,i=t.width/e.width,a=t.height/e.height,n=this.offsetX/e.width,r=this.offsetY/e.height,s="";return"repeat-x"!==this.repeat&&"no-repeat"!==this.repeat||(a=1,r&&(a+=Math.abs(r))),"repeat-y"!==this.repeat&&"no-repeat"!==this.repeat||(i=1,n&&(i+=Math.abs(n))),t.src?s=t.src:t.toDataURL&&(s=t.toDataURL()),'<pattern id="SVGID_'+this.id+'" x="'+n+'" y="'+r+'" width="'+i+'" height="'+a+'">\n<image x="0" y="0" width="'+t.width+'" height="'+t.height+'" xlink:href="'+s+'"></image>\n</pattern>\n'},setOptions:function(e){for(var t in e)this[t]=e[t]},toLive:function(e){var t=this.source;if(!t)return"";if("undefined"!==typeof t.src){if(!t.complete)return"";if(0===t.naturalWidth||0===t.naturalHeight)return""}return e.createPattern(t,this.repeat)}})}(),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.toFixed;t.Shadow?t.warn("fabric.Shadow is already defined."):(t.Shadow=t.util.createClass({color:"rgb(0,0,0)",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1,initialize:function(e){for(var i in"string"===typeof e&&(e=this._parseShadow(e)),e)this[i]=e[i];this.id=t.Object.__uid++},_parseShadow:function(e){var i=e.trim(),a=t.Shadow.reOffsetsAndBlur.exec(i)||[],n=i.replace(t.Shadow.reOffsetsAndBlur,"")||"rgb(0,0,0)";return{color:n.trim(),offsetX:parseFloat(a[1],10)||0,offsetY:parseFloat(a[2],10)||0,blur:parseFloat(a[3],10)||0}},toString:function(){return[this.offsetX,this.offsetY,this.blur,this.color].join("px ")},toSVG:function(e){var a=40,n=40,r=t.Object.NUM_FRACTION_DIGITS,s=t.util.rotateVector({x:this.offsetX,y:this.offsetY},t.util.degreesToRadians(-e.angle)),o=20,l=new t.Color(this.color);return e.width&&e.height&&(a=100*i((Math.abs(s.x)+this.blur)/e.width,r)+o,n=100*i((Math.abs(s.y)+this.blur)/e.height,r)+o),e.flipX&&(s.x*=-1),e.flipY&&(s.y*=-1),'<filter id="SVGID_'+this.id+'" y="-'+n+'%" height="'+(100+2*n)+'%" x="-'+a+'%" width="'+(100+2*a)+'%" >\n\t<feGaussianBlur in="SourceAlpha" stdDeviation="'+i(this.blur?this.blur/2:0,r)+'"></feGaussianBlur>\n\t<feOffset dx="'+i(s.x,r)+'" dy="'+i(s.y,r)+'" result="oBlur" ></feOffset>\n\t<feFlood flood-color="'+l.toRgb()+'" flood-opacity="'+l.getAlpha()+'"/>\n\t<feComposite in2="oBlur" operator="in" />\n\t<feMerge>\n\t\t<feMergeNode></feMergeNode>\n\t\t<feMergeNode in="SourceGraphic"></feMergeNode>\n\t</feMerge>\n</filter>\n'},toObject:function(){if(this.includeDefaultValues)return{color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke,nonScaling:this.nonScaling};var e={},i=t.Shadow.prototype;return["color","blur","offsetX","offsetY","affectStroke","nonScaling"].forEach((function(t){this[t]!==i[t]&&(e[t]=this[t])}),this),e}}),t.Shadow.reOffsetsAndBlur=/(?:\s|^)(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(\d+(?:\.\d*)?(?:px)?)?(?:\s?|$)(?:$|\s)/)}(i),function(){"use strict";if(n.StaticCanvas)n.warn("fabric.StaticCanvas is already defined.");else{var e=n.util.object.extend,t=n.util.getElementOffset,i=n.util.removeFromArray,a=n.util.toFixed,r=n.util.transformPoint,s=n.util.invertTransform,o=n.util.getNodeCanvas,l=n.util.createCanvasElement,c=new Error("Could not initialize `canvas` element");n.StaticCanvas=n.util.createClass(n.CommonMethods,{initialize:function(e,t){t||(t={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(e,t)},backgroundColor:"",backgroundImage:null,overlayColor:"",overlayImage:null,includeDefaultValues:!0,stateful:!1,renderOnAddRemove:!0,controlsAboveOverlay:!1,allowTouchScrolling:!1,imageSmoothingEnabled:!0,viewportTransform:n.iMatrix.concat(),backgroundVpt:!0,overlayVpt:!0,enableRetinaScaling:!0,vptCoords:{},skipOffscreen:!0,clipPath:void 0,_initStatic:function(e,t){var i=this.requestRenderAllBound;this._objects=[],this._createLowerCanvas(e),this._initOptions(t),this.interactive||this._initRetinaScaling(),t.overlayImage&&this.setOverlayImage(t.overlayImage,i),t.backgroundImage&&this.setBackgroundImage(t.backgroundImage,i),t.backgroundColor&&this.setBackgroundColor(t.backgroundColor,i),t.overlayColor&&this.setOverlayColor(t.overlayColor,i),this.calcOffset()},_isRetinaScaling:function(){return 1!==n.devicePixelRatio&&this.enableRetinaScaling},getRetinaScaling:function(){return this._isRetinaScaling()?n.devicePixelRatio:1},_initRetinaScaling:function(){if(this._isRetinaScaling()){var e=n.devicePixelRatio;this.__initRetinaScaling(e,this.lowerCanvasEl,this.contextContainer),this.upperCanvasEl&&this.__initRetinaScaling(e,this.upperCanvasEl,this.contextTop)}},__initRetinaScaling:function(e,t,i){t.setAttribute("width",this.width*e),t.setAttribute("height",this.height*e),i.scale(e,e)},calcOffset:function(){return this._offset=t(this.lowerCanvasEl),this},setOverlayImage:function(e,t,i){return this.__setBgOverlayImage("overlayImage",e,t,i)},setBackgroundImage:function(e,t,i){return this.__setBgOverlayImage("backgroundImage",e,t,i)},setOverlayColor:function(e,t){return this.__setBgOverlayColor("overlayColor",e,t)},setBackgroundColor:function(e,t){return this.__setBgOverlayColor("backgroundColor",e,t)},__setBgOverlayImage:function(e,t,i,a){return"string"===typeof t?n.util.loadImage(t,(function(t,r){if(t){var s=new n.Image(t,a);this[e]=s,s.canvas=this}i&&i(t,r)}),this,a&&a.crossOrigin):(a&&t.setOptions(a),this[e]=t,t&&(t.canvas=this),i&&i(t,!1)),this},__setBgOverlayColor:function(e,t,i){return this[e]=t,this._initGradient(t,e),this._initPattern(t,e,i),this},_createCanvasElement:function(){var e=l();if(!e)throw c;if(e.style||(e.style={}),"undefined"===typeof e.getContext)throw c;return e},_initOptions:function(e){var t=this.lowerCanvasEl;this._setOptions(e),this.width=this.width||parseInt(t.width,10)||0,this.height=this.height||parseInt(t.height,10)||0,this.lowerCanvasEl.style&&(t.width=this.width,t.height=this.height,t.style.width=this.width+"px",t.style.height=this.height+"px",this.viewportTransform=this.viewportTransform.slice())},_createLowerCanvas:function(e){e&&e.getContext?this.lowerCanvasEl=e:this.lowerCanvasEl=n.util.getById(e)||this._createCanvasElement(),n.util.addClass(this.lowerCanvasEl,"lower-canvas"),this._originalCanvasStyle=this.lowerCanvasEl.style,this.interactive&&this._applyCanvasStyle(this.lowerCanvasEl),this.contextContainer=this.lowerCanvasEl.getContext("2d")},getWidth:function(){return this.width},getHeight:function(){return this.height},setWidth:function(e,t){return this.setDimensions({width:e},t)},setHeight:function(e,t){return this.setDimensions({height:e},t)},setDimensions:function(e,t){var i;for(var a in t=t||{},e)i=e[a],t.cssOnly||(this._setBackstoreDimension(a,e[a]),i+="px",this.hasLostContext=!0),t.backstoreOnly||this._setCssDimension(a,i);return this._isCurrentlyDrawing&&this.freeDrawingBrush&&this.freeDrawingBrush._setBrushStyles(),this._initRetinaScaling(),this.calcOffset(),t.cssOnly||this.requestRenderAll(),this},_setBackstoreDimension:function(e,t){return this.lowerCanvasEl[e]=t,this.upperCanvasEl&&(this.upperCanvasEl[e]=t),this.cacheCanvasEl&&(this.cacheCanvasEl[e]=t),this[e]=t,this},_setCssDimension:function(e,t){return this.lowerCanvasEl.style[e]=t,this.upperCanvasEl&&(this.upperCanvasEl.style[e]=t),this.wrapperEl&&(this.wrapperEl.style[e]=t),this},getZoom:function(){return this.viewportTransform[0]},setViewportTransform:function(e){var t,i,a,n=this._activeObject,r=this.backgroundImage,s=this.overlayImage;for(this.viewportTransform=e,i=0,a=this._objects.length;i<a;i++)t=this._objects[i],t.group||t.setCoords(!0);return n&&n.setCoords(),r&&r.setCoords(!0),s&&s.setCoords(!0),this.calcViewportBoundaries(),this.renderOnAddRemove&&this.requestRenderAll(),this},zoomToPoint:function(e,t){var i=e,a=this.viewportTransform.slice(0);e=r(e,s(this.viewportTransform)),a[0]=t,a[3]=t;var n=r(e,a);return a[4]+=i.x-n.x,a[5]+=i.y-n.y,this.setViewportTransform(a)},setZoom:function(e){return this.zoomToPoint(new n.Point(0,0),e),this},absolutePan:function(e){var t=this.viewportTransform.slice(0);return t[4]=-e.x,t[5]=-e.y,this.setViewportTransform(t)},relativePan:function(e){return this.absolutePan(new n.Point(-e.x-this.viewportTransform[4],-e.y-this.viewportTransform[5]))},getElement:function(){return this.lowerCanvasEl},_onObjectAdded:function(e){this.stateful&&e.setupState(),e._set("canvas",this),e.setCoords(),this.fire("object:added",{target:e}),e.fire("added")},_onObjectRemoved:function(e){this.fire("object:removed",{target:e}),e.fire("removed"),delete e.canvas},clearContext:function(e){return e.clearRect(0,0,this.width,this.height),this},getContext:function(){return this.contextContainer},clear:function(){return this.remove.apply(this,this.getObjects()),this.backgroundImage=null,this.overlayImage=null,this.backgroundColor="",this.overlayColor="",this._hasITextHandlers&&(this.off("mouse:up",this._mouseUpITextHandler),this._iTextInstances=null,this._hasITextHandlers=!1),this.clearContext(this.contextContainer),this.fire("canvas:cleared"),this.renderOnAddRemove&&this.requestRenderAll(),this},renderAll:function(){var e=this.contextContainer;return this.renderCanvas(e,this._objects),this},renderAndReset:function(){this.isRendering=0,this.renderAll()},requestRenderAll:function(){return this.isRendering||(this.isRendering=n.util.requestAnimFrame(this.renderAndResetBound)),this},calcViewportBoundaries:function(){var e={},t=this.width,i=this.height,a=s(this.viewportTransform);return e.tl=r({x:0,y:0},a),e.br=r({x:t,y:i},a),e.tr=new n.Point(e.br.x,e.tl.y),e.bl=new n.Point(e.tl.x,e.br.y),this.vptCoords=e,e},cancelRequestedRender:function(){this.isRendering&&(n.util.cancelAnimFrame(this.isRendering),this.isRendering=0)},renderCanvas:function(e,t){var i=this.viewportTransform,a=this.clipPath;this.cancelRequestedRender(),this.calcViewportBoundaries(),this.clearContext(e),n.util.setImageSmoothing(e,this.imageSmoothingEnabled),this.fire("before:render",{ctx:e}),this._renderBackground(e),e.save(),e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this._renderObjects(e,t),e.restore(),!this.controlsAboveOverlay&&this.interactive&&this.drawControls(e),a&&(a.canvas=this,a.shouldCache(),a._transformDone=!0,a.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(e)),this._renderOverlay(e),this.controlsAboveOverlay&&this.interactive&&this.drawControls(e),this.fire("after:render",{ctx:e})},drawClipPathOnCanvas:function(e){var t=this.viewportTransform,i=this.clipPath;e.save(),e.transform(t[0],t[1],t[2],t[3],t[4],t[5]),e.globalCompositeOperation="destination-in",i.transform(e),e.scale(1/i.zoomX,1/i.zoomY),e.drawImage(i._cacheCanvas,-i.cacheTranslationX,-i.cacheTranslationY),e.restore()},_renderObjects:function(e,t){var i,a;for(i=0,a=t.length;i<a;++i)t[i]&&t[i].render(e)},_renderBackgroundOrOverlay:function(e,t){var i=this[t+"Color"],a=this[t+"Image"],n=this.viewportTransform,r=this[t+"Vpt"];if(i||a){if(i){e.save(),e.beginPath(),e.moveTo(0,0),e.lineTo(this.width,0),e.lineTo(this.width,this.height),e.lineTo(0,this.height),e.closePath(),e.fillStyle=i.toLive?i.toLive(e,this):i,r&&e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),e.transform(1,0,0,1,i.offsetX||0,i.offsetY||0);var s=i.gradientTransform||i.patternTransform;s&&e.transform(s[0],s[1],s[2],s[3],s[4],s[5]),e.fill(),e.restore()}a&&(e.save(),r&&e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),a.render(e),e.restore())}},_renderBackground:function(e){this._renderBackgroundOrOverlay(e,"background")},_renderOverlay:function(e){this._renderBackgroundOrOverlay(e,"overlay")},getCenter:function(){return{top:this.height/2,left:this.width/2}},centerObjectH:function(e){return this._centerObject(e,new n.Point(this.getCenter().left,e.getCenterPoint().y))},centerObjectV:function(e){return this._centerObject(e,new n.Point(e.getCenterPoint().x,this.getCenter().top))},centerObject:function(e){var t=this.getCenter();return this._centerObject(e,new n.Point(t.left,t.top))},viewportCenterObject:function(e){var t=this.getVpCenter();return this._centerObject(e,t)},viewportCenterObjectH:function(e){var t=this.getVpCenter();return this._centerObject(e,new n.Point(t.x,e.getCenterPoint().y)),this},viewportCenterObjectV:function(e){var t=this.getVpCenter();return this._centerObject(e,new n.Point(e.getCenterPoint().x,t.y))},getVpCenter:function(){var e=this.getCenter(),t=s(this.viewportTransform);return r({x:e.left,y:e.top},t)},_centerObject:function(e,t){return e.setPositionByOrigin(t,"center","center"),e.setCoords(),this.renderOnAddRemove&&this.requestRenderAll(),this},toDatalessJSON:function(e){return this.toDatalessObject(e)},toObject:function(e){return this._toObjectMethod("toObject",e)},toDatalessObject:function(e){return this._toObjectMethod("toDatalessObject",e)},_toObjectMethod:function(t,i){var a=this.clipPath,r={version:n.version,objects:this._toObjects(t,i)};return a&&!a.excludeFromExport&&(r.clipPath=this._toObject(this.clipPath,t,i)),e(r,this.__serializeBgOverlay(t,i)),n.util.populateWithProperties(this,r,i),r},_toObjects:function(e,t){return this._objects.filter((function(e){return!e.excludeFromExport})).map((function(i){return this._toObject(i,e,t)}),this)},_toObject:function(e,t,i){var a;this.includeDefaultValues||(a=e.includeDefaultValues,e.includeDefaultValues=!1);var n=e[t](i);return this.includeDefaultValues||(e.includeDefaultValues=a),n},__serializeBgOverlay:function(e,t){var i={},a=this.backgroundImage,n=this.overlayImage,r=this.backgroundColor,s=this.overlayColor;return r&&r.toObject?r.excludeFromExport||(i.background=r.toObject(t)):r&&(i.background=r),s&&s.toObject?s.excludeFromExport||(i.overlay=s.toObject(t)):s&&(i.overlay=s),a&&!a.excludeFromExport&&(i.backgroundImage=this._toObject(a,e,t)),n&&!n.excludeFromExport&&(i.overlayImage=this._toObject(n,e,t)),i},svgViewportTransformation:!0,toSVG:function(e,t){e||(e={}),e.reviver=t;var i=[];return this._setSVGPreamble(i,e),this._setSVGHeader(i,e),this.clipPath&&i.push('<g clip-path="url(#'+this.clipPath.clipPathId+')" >\n'),this._setSVGBgOverlayColor(i,"background"),this._setSVGBgOverlayImage(i,"backgroundImage",t),this._setSVGObjects(i,t),this.clipPath&&i.push("</g>\n"),this._setSVGBgOverlayColor(i,"overlay"),this._setSVGBgOverlayImage(i,"overlayImage",t),i.push("</svg>"),i.join("")},_setSVGPreamble:function(e,t){t.suppressPreamble||e.push('<?xml version="1.0" encoding="',t.encoding||"UTF-8",'" standalone="no" ?>\n','<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" ','"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n')},_setSVGHeader:function(e,t){var i,r=t.width||this.width,s=t.height||this.height,o='viewBox="0 0 '+this.width+" "+this.height+'" ',l=n.Object.NUM_FRACTION_DIGITS;t.viewBox?o='viewBox="'+t.viewBox.x+" "+t.viewBox.y+" "+t.viewBox.width+" "+t.viewBox.height+'" ':this.svgViewportTransformation&&(i=this.viewportTransform,o='viewBox="'+a(-i[4]/i[0],l)+" "+a(-i[5]/i[3],l)+" "+a(this.width/i[0],l)+" "+a(this.height/i[3],l)+'" '),e.push("<svg ",'xmlns="http://www.w3.org/2000/svg" ','xmlns:xlink="http://www.w3.org/1999/xlink" ','version="1.1" ','width="',r,'" ','height="',s,'" ',o,'xml:space="preserve">\n',"<desc>Created with Fabric.js ",n.version,"</desc>\n","<defs>\n",this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup(t),"</defs>\n")},createSVGClipPathMarkup:function(e){var t=this.clipPath;return t?(t.clipPathId="CLIPPATH_"+n.Object.__uid++,'<clipPath id="'+t.clipPathId+'" >\n'+this.clipPath.toClipPathSVG(e.reviver)+"</clipPath>\n"):""},createSVGRefElementsMarkup:function(){var e=this,t=["background","overlay"].map((function(t){var i=e[t+"Color"];if(i&&i.toLive){var a=e[t+"Vpt"],r=e.viewportTransform,s={width:e.width/(a?r[0]:1),height:e.height/(a?r[3]:1)};return i.toSVG(s,{additionalTransform:a?n.util.matrixToSVG(r):""})}}));return t.join("")},createSVGFontFacesMarkup:function(){var e,t,i,a,r,s,o,l,c,u="",d={},p=n.fontPaths,f=[];for(this._objects.forEach((function e(t){f.push(t),t._objects&&t._objects.forEach(e)})),l=0,c=f.length;l<c;l++)if(e=f[l],t=e.fontFamily,-1!==e.type.indexOf("text")&&!d[t]&&p[t]&&(d[t]=!0,e.styles))for(r in i=e.styles,i)for(o in a=i[r],a)s=a[o],t=s.fontFamily,!d[t]&&p[t]&&(d[t]=!0);for(var A in d)u+=["\t\t@font-face {\n","\t\t\tfont-family: '",A,"';\n","\t\t\tsrc: url('",p[A],"');\n","\t\t}\n"].join("");return u&&(u=['\t<style type="text/css">',"<![CDATA[\n",u,"]]>","</style>\n"].join("")),u},_setSVGObjects:function(e,t){var i,a,n,r=this._objects;for(a=0,n=r.length;a<n;a++)i=r[a],i.excludeFromExport||this._setSVGObject(e,i,t)},_setSVGObject:function(e,t,i){e.push(t.toSVG(i))},_setSVGBgOverlayImage:function(e,t,i){this[t]&&!this[t].excludeFromExport&&this[t].toSVG&&e.push(this[t].toSVG(i))},_setSVGBgOverlayColor:function(e,t){var i=this[t+"Color"],a=this.viewportTransform,r=this.width,s=this.height;if(i)if(i.toLive){var o=i.repeat,l=n.util.invertTransform(a),c=this[t+"Vpt"],u=c?n.util.matrixToSVG(l):"";e.push('<rect transform="'+u+" translate(",r/2,",",s/2,')"',' x="',i.offsetX-r/2,'" y="',i.offsetY-s/2,'" ','width="',"repeat-y"===o||"no-repeat"===o?i.source.width:r,'" height="',"repeat-x"===o||"no-repeat"===o?i.source.height:s,'" fill="url(#SVGID_'+i.id+')"',"></rect>\n")}else e.push('<rect x="0" y="0" width="100%" height="100%" ','fill="',i,'"',"></rect>\n")},sendToBack:function(e){if(!e)return this;var t,a,n,r=this._activeObject;if(e===r&&"activeSelection"===e.type)for(n=r._objects,t=n.length;t--;)a=n[t],i(this._objects,a),this._objects.unshift(a);else i(this._objects,e),this._objects.unshift(e);return this.renderOnAddRemove&&this.requestRenderAll(),this},bringToFront:function(e){if(!e)return this;var t,a,n,r=this._activeObject;if(e===r&&"activeSelection"===e.type)for(n=r._objects,t=0;t<n.length;t++)a=n[t],i(this._objects,a),this._objects.push(a);else i(this._objects,e),this._objects.push(e);return this.renderOnAddRemove&&this.requestRenderAll(),this},sendBackwards:function(e,t){if(!e)return this;var a,n,r,s,o,l=this._activeObject,c=0;if(e===l&&"activeSelection"===e.type)for(o=l._objects,a=0;a<o.length;a++)n=o[a],r=this._objects.indexOf(n),r>0+c&&(s=r-1,i(this._objects,n),this._objects.splice(s,0,n)),c++;else r=this._objects.indexOf(e),0!==r&&(s=this._findNewLowerIndex(e,r,t),i(this._objects,e),this._objects.splice(s,0,e));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewLowerIndex:function(e,t,i){var a,n;if(i)for(a=t,n=t-1;n>=0;--n){var r=e.intersectsWithObject(this._objects[n])||e.isContainedWithinObject(this._objects[n])||this._objects[n].isContainedWithinObject(e);if(r){a=n;break}}else a=t-1;return a},bringForward:function(e,t){if(!e)return this;var a,n,r,s,o,l=this._activeObject,c=0;if(e===l&&"activeSelection"===e.type)for(o=l._objects,a=o.length;a--;)n=o[a],r=this._objects.indexOf(n),r<this._objects.length-1-c&&(s=r+1,i(this._objects,n),this._objects.splice(s,0,n)),c++;else r=this._objects.indexOf(e),r!==this._objects.length-1&&(s=this._findNewUpperIndex(e,r,t),i(this._objects,e),this._objects.splice(s,0,e));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewUpperIndex:function(e,t,i){var a,n,r;if(i)for(a=t,n=t+1,r=this._objects.length;n<r;++n){var s=e.intersectsWithObject(this._objects[n])||e.isContainedWithinObject(this._objects[n])||this._objects[n].isContainedWithinObject(e);if(s){a=n;break}}else a=t+1;return a},moveTo:function(e,t){return i(this._objects,e),this._objects.splice(t,0,e),this.renderOnAddRemove&&this.requestRenderAll()},dispose:function(){return this.isRendering&&(n.util.cancelAnimFrame(this.isRendering),this.isRendering=0),this.forEachObject((function(e){e.dispose&&e.dispose()})),this._objects=[],this.backgroundImage&&this.backgroundImage.dispose&&this.backgroundImage.dispose(),this.backgroundImage=null,this.overlayImage&&this.overlayImage.dispose&&this.overlayImage.dispose(),this.overlayImage=null,this._iTextInstances=null,this.contextContainer=null,this.lowerCanvasEl.classList.remove("lower-canvas"),this.lowerCanvasEl.style=this._originalCanvasStyle,delete this._originalCanvasStyle,this.lowerCanvasEl.setAttribute("width",this.width),this.lowerCanvasEl.setAttribute("height",this.height),n.util.cleanUpJsdomNode(this.lowerCanvasEl),this.lowerCanvasEl=void 0,this},toString:function(){return"#<fabric.Canvas ("+this.complexity()+"): { objects: "+this._objects.length+" }>"}}),e(n.StaticCanvas.prototype,n.Observable),e(n.StaticCanvas.prototype,n.Collection),e(n.StaticCanvas.prototype,n.DataURLExporter),e(n.StaticCanvas,{EMPTY_JSON:'{"objects": [], "background": "white"}',supports:function(e){var t=l();if(!t||!t.getContext)return null;var i=t.getContext("2d");if(!i)return null;switch(e){case"setLineDash":return"undefined"!==typeof i.setLineDash;default:return null}}}),n.StaticCanvas.prototype.toJSON=n.StaticCanvas.prototype.toObject,n.isLikelyNode&&(n.StaticCanvas.prototype.createPNGStream=function(){var e=o(this.lowerCanvasEl);return e&&e.createPNGStream()},n.StaticCanvas.prototype.createJPEGStream=function(e){var t=o(this.lowerCanvasEl);return t&&t.createJPEGStream(e)})}}(),n.BaseBrush=n.util.createClass({color:"rgb(0, 0, 0)",width:1,shadow:null,strokeLineCap:"round",strokeLineJoin:"round",strokeMiterLimit:10,strokeDashArray:null,limitedToCanvasSize:!1,_setBrushStyles:function(){var e=this.canvas.contextTop;e.strokeStyle=this.color,e.lineWidth=this.width,e.lineCap=this.strokeLineCap,e.miterLimit=this.strokeMiterLimit,e.lineJoin=this.strokeLineJoin,e.setLineDash(this.strokeDashArray||[])},_saveAndTransform:function(e){var t=this.canvas.viewportTransform;e.save(),e.transform(t[0],t[1],t[2],t[3],t[4],t[5])},_setShadow:function(){if(this.shadow){var e=this.canvas,t=this.shadow,i=e.contextTop,a=e.getZoom();e&&e._isRetinaScaling()&&(a*=n.devicePixelRatio),i.shadowColor=t.color,i.shadowBlur=t.blur*a,i.shadowOffsetX=t.offsetX*a,i.shadowOffsetY=t.offsetY*a}},needsFullRender:function(){var e=new n.Color(this.color);return e.getAlpha()<1||!!this.shadow},_resetShadow:function(){var e=this.canvas.contextTop;e.shadowColor="",e.shadowBlur=e.shadowOffsetX=e.shadowOffsetY=0},_isOutSideCanvas:function(e){return e.x<0||e.x>this.canvas.getWidth()||e.y<0||e.y>this.canvas.getHeight()}}),function(){n.PencilBrush=n.util.createClass(n.BaseBrush,{decimate:.4,initialize:function(e){this.canvas=e,this._points=[]},_drawSegment:function(e,t,i){var a=t.midPointFrom(i);return e.quadraticCurveTo(t.x,t.y,a.x,a.y),a},onMouseDown:function(e,t){this.canvas._isMainEvent(t.e)&&(this._prepareForDrawing(e),this._captureDrawingPath(e),this._render())},onMouseMove:function(e,t){if(this.canvas._isMainEvent(t.e)&&(!0!==this.limitedToCanvasSize||!this._isOutSideCanvas(e))&&this._captureDrawingPath(e)&&this._points.length>1)if(this.needsFullRender())this.canvas.clearContext(this.canvas.contextTop),this._render();else{var i=this._points,a=i.length,n=this.canvas.contextTop;this._saveAndTransform(n),this.oldEnd&&(n.beginPath(),n.moveTo(this.oldEnd.x,this.oldEnd.y)),this.oldEnd=this._drawSegment(n,i[a-2],i[a-1],!0),n.stroke(),n.restore()}},onMouseUp:function(e){return!this.canvas._isMainEvent(e.e)||(this.oldEnd=void 0,this._finalizeAndAddPath(),!1)},_prepareForDrawing:function(e){var t=new n.Point(e.x,e.y);this._reset(),this._addPoint(t),this.canvas.contextTop.moveTo(t.x,t.y)},_addPoint:function(e){return!(this._points.length>1&&e.eq(this._points[this._points.length-1]))&&(this._points.push(e),!0)},_reset:function(){this._points=[],this._setBrushStyles(),this._setShadow()},_captureDrawingPath:function(e){var t=new n.Point(e.x,e.y);return this._addPoint(t)},_render:function(){var e,t,i=this.canvas.contextTop,a=this._points[0],r=this._points[1];if(this._saveAndTransform(i),i.beginPath(),2===this._points.length&&a.x===r.x&&a.y===r.y){var s=this.width/1e3;a=new n.Point(a.x,a.y),r=new n.Point(r.x,r.y),a.x-=s,r.x+=s}for(i.moveTo(a.x,a.y),e=1,t=this._points.length;e<t;e++)this._drawSegment(i,a,r),a=this._points[e],r=this._points[e+1];i.lineTo(a.x,a.y),i.stroke(),i.restore()},convertPointsToSVGPath:function(e){var t=this.width/1e3;return n.util.getSmoothPathFromPoints(e,t)},_isEmptySVGPath:function(e){var t=n.util.joinPath(e);return"M 0 0 Q 0 0 0 0 L 0 0"===t},createPath:function(e){var t=new n.Path(e,{fill:null,stroke:this.color,strokeWidth:this.width,strokeLineCap:this.strokeLineCap,strokeMiterLimit:this.strokeMiterLimit,strokeLineJoin:this.strokeLineJoin,strokeDashArray:this.strokeDashArray});return this.shadow&&(this.shadow.affectStroke=!0,t.shadow=new n.Shadow(this.shadow)),t},decimatePoints:function(e,t){if(e.length<=2)return e;var i,a,n=this.canvas.getZoom(),r=Math.pow(t/n,2),s=e.length-1,o=e[0],l=[o];for(i=1;i<s-1;i++)a=Math.pow(o.x-e[i].x,2)+Math.pow(o.y-e[i].y,2),a>=r&&(o=e[i],l.push(o));return l.push(e[s]),l},_finalizeAndAddPath:function(){var e=this.canvas.contextTop;e.closePath(),this.decimate&&(this._points=this.decimatePoints(this._points,this.decimate));var t=this.convertPointsToSVGPath(this._points);if(this._isEmptySVGPath(t))this.canvas.requestRenderAll();else{var i=this.createPath(t);this.canvas.clearContext(this.canvas.contextTop),this.canvas.fire("before:path:created",{path:i}),this.canvas.add(i),this.canvas.requestRenderAll(),i.setCoords(),this._resetShadow(),this.canvas.fire("path:created",{path:i})}}})}(),n.CircleBrush=n.util.createClass(n.BaseBrush,{width:10,initialize:function(e){this.canvas=e,this.points=[]},drawDot:function(e){var t=this.addPoint(e),i=this.canvas.contextTop;this._saveAndTransform(i),this.dot(i,t),i.restore()},dot:function(e,t){e.fillStyle=t.fill,e.beginPath(),e.arc(t.x,t.y,t.radius,0,2*Math.PI,!1),e.closePath(),e.fill()},onMouseDown:function(e){this.points.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.drawDot(e)},_render:function(){var e,t,i=this.canvas.contextTop,a=this.points;for(this._saveAndTransform(i),e=0,t=a.length;e<t;e++)this.dot(i,a[e]);i.restore()},onMouseMove:function(e){!0===this.limitedToCanvasSize&&this._isOutSideCanvas(e)||(this.needsFullRender()?(this.canvas.clearContext(this.canvas.contextTop),this.addPoint(e),this._render()):this.drawDot(e))},onMouseUp:function(){var e,t,i=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;var a=[];for(e=0,t=this.points.length;e<t;e++){var r=this.points[e],s=new n.Circle({radius:r.radius,left:r.x,top:r.y,originX:"center",originY:"center",fill:r.fill});this.shadow&&(s.shadow=new n.Shadow(this.shadow)),a.push(s)}var o=new n.Group(a);o.canvas=this.canvas,this.canvas.fire("before:path:created",{path:o}),this.canvas.add(o),this.canvas.fire("path:created",{path:o}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=i,this.canvas.requestRenderAll()},addPoint:function(e){var t=new n.Point(e.x,e.y),i=n.util.getRandomInt(Math.max(0,this.width-20),this.width+20)/2,a=new n.Color(this.color).setAlpha(n.util.getRandomInt(0,100)/100).toRgba();return t.radius=i,t.fill=a,this.points.push(t),t}}),n.SprayBrush=n.util.createClass(n.BaseBrush,{width:10,density:20,dotWidth:1,dotWidthVariance:1,randomOpacity:!1,optimizeOverlapping:!0,initialize:function(e){this.canvas=e,this.sprayChunks=[]},onMouseDown:function(e){this.sprayChunks.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.addSprayChunk(e),this.render(this.sprayChunkPoints)},onMouseMove:function(e){!0===this.limitedToCanvasSize&&this._isOutSideCanvas(e)||(this.addSprayChunk(e),this.render(this.sprayChunkPoints))},onMouseUp:function(){var e=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;for(var t=[],i=0,a=this.sprayChunks.length;i<a;i++)for(var r=this.sprayChunks[i],s=0,o=r.length;s<o;s++){var l=new n.Rect({width:r[s].width,height:r[s].width,left:r[s].x+1,top:r[s].y+1,originX:"center",originY:"center",fill:this.color});t.push(l)}this.optimizeOverlapping&&(t=this._getOptimizedRects(t));var c=new n.Group(t);this.shadow&&c.set("shadow",new n.Shadow(this.shadow)),this.canvas.fire("before:path:created",{path:c}),this.canvas.add(c),this.canvas.fire("path:created",{path:c}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=e,this.canvas.requestRenderAll()},_getOptimizedRects:function(e){var t,i,a,n={};for(i=0,a=e.length;i<a;i++)t=e[i].left+""+e[i].top,n[t]||(n[t]=e[i]);var r=[];for(t in n)r.push(n[t]);return r},render:function(e){var t,i,a=this.canvas.contextTop;for(a.fillStyle=this.color,this._saveAndTransform(a),t=0,i=e.length;t<i;t++){var n=e[t];"undefined"!==typeof n.opacity&&(a.globalAlpha=n.opacity),a.fillRect(n.x,n.y,n.width,n.width)}a.restore()},_render:function(){var e,t,i=this.canvas.contextTop;for(i.fillStyle=this.color,this._saveAndTransform(i),e=0,t=this.sprayChunks.length;e<t;e++)this.render(this.sprayChunks[e]);i.restore()},addSprayChunk:function(e){this.sprayChunkPoints=[];var t,i,a,r,s=this.width/2;for(r=0;r<this.density;r++){t=n.util.getRandomInt(e.x-s,e.x+s),i=n.util.getRandomInt(e.y-s,e.y+s),a=this.dotWidthVariance?n.util.getRandomInt(Math.max(1,this.dotWidth-this.dotWidthVariance),this.dotWidth+this.dotWidthVariance):this.dotWidth;var o=new n.Point(t,i);o.width=a,this.randomOpacity&&(o.opacity=n.util.getRandomInt(0,100)/100),this.sprayChunkPoints.push(o)}this.sprayChunks.push(this.sprayChunkPoints)}}),n.PatternBrush=n.util.createClass(n.PencilBrush,{getPatternSrc:function(){var e=20,t=5,i=n.util.createCanvasElement(),a=i.getContext("2d");return i.width=i.height=e+t,a.fillStyle=this.color,a.beginPath(),a.arc(e/2,e/2,e/2,0,2*Math.PI,!1),a.closePath(),a.fill(),i},getPatternSrcFunction:function(){return String(this.getPatternSrc).replace("this.color",'"'+this.color+'"')},getPattern:function(){return this.canvas.contextTop.createPattern(this.source||this.getPatternSrc(),"repeat")},_setBrushStyles:function(){this.callSuper("_setBrushStyles"),this.canvas.contextTop.strokeStyle=this.getPattern()},createPath:function(e){var t=this.callSuper("createPath",e),i=t._getLeftTopCoords().scalarAdd(t.strokeWidth/2);return t.stroke=new n.Pattern({source:this.source||this.getPatternSrcFunction(),offsetX:-i.x,offsetY:-i.y}),t}}),function(){var e=n.util.getPointer,t=n.util.degreesToRadians,i=n.util.isTouchEvent;for(var a in n.Canvas=n.util.createClass(n.StaticCanvas,{initialize:function(e,t){t||(t={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(e,t),this._initInteractive(),this._createCacheCanvas()},uniformScaling:!0,uniScaleKey:"shiftKey",centeredScaling:!1,centeredRotation:!1,centeredKey:"altKey",altActionKey:"shiftKey",interactive:!0,selection:!0,selectionKey:"shiftKey",altSelectionKey:null,selectionColor:"rgba(100, 100, 255, 0.3)",selectionDashArray:[],selectionBorderColor:"rgba(255, 255, 255, 0.3)",selectionLineWidth:1,selectionFullyContained:!1,hoverCursor:"move",moveCursor:"move",defaultCursor:"default",freeDrawingCursor:"crosshair",rotationCursor:"crosshair",notAllowedCursor:"not-allowed",containerClass:"canvas-container",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,isDrawingMode:!1,preserveObjectStacking:!1,snapAngle:0,snapThreshold:null,stopContextMenu:!1,fireRightClick:!1,fireMiddleClick:!1,targets:[],_hoveredTarget:null,_hoveredTargets:[],_initInteractive:function(){this._currentTransform=null,this._groupSelector=null,this._initWrapperElement(),this._createUpperCanvas(),this._initEventListeners(),this._initRetinaScaling(),this.freeDrawingBrush=n.PencilBrush&&new n.PencilBrush(this),this.calcOffset()},_chooseObjectsToRender:function(){var e,t,i,a=this.getActiveObjects();if(a.length>0&&!this.preserveObjectStacking){t=[],i=[];for(var n=0,r=this._objects.length;n<r;n++)e=this._objects[n],-1===a.indexOf(e)?t.push(e):i.push(e);a.length>1&&(this._activeObject._objects=i),t.push.apply(t,i)}else t=this._objects;return t},renderAll:function(){!this.contextTopDirty||this._groupSelector||this.isDrawingMode||(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext&&this.renderTopLayer(this.contextTop);var e=this.contextContainer;return this.renderCanvas(e,this._chooseObjectsToRender()),this},renderTopLayer:function(e){e.save(),this.isDrawingMode&&this._isCurrentlyDrawing&&(this.freeDrawingBrush&&this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection&&this._groupSelector&&(this._drawSelection(e),this.contextTopDirty=!0),e.restore()},renderTop:function(){var e=this.contextTop;return this.clearContext(e),this.renderTopLayer(e),this.fire("after:render"),this},_normalizePointer:function(e,t){var i=e.calcTransformMatrix(),a=n.util.invertTransform(i),r=this.restorePointerVpt(t);return n.util.transformPoint(r,a)},isTargetTransparent:function(e,t,i){if(e.shouldCache()&&e._cacheCanvas&&e!==this._activeObject){var a=this._normalizePointer(e,{x:t,y:i}),r=Math.max(e.cacheTranslationX+a.x*e.zoomX,0),s=Math.max(e.cacheTranslationY+a.y*e.zoomY,0),o=n.util.isTransparent(e._cacheContext,Math.round(r),Math.round(s),this.targetFindTolerance);return o}var l=this.contextCache,c=e.selectionBackgroundColor,u=this.viewportTransform;e.selectionBackgroundColor="",this.clearContext(l),l.save(),l.transform(u[0],u[1],u[2],u[3],u[4],u[5]),e.render(l),l.restore(),e.selectionBackgroundColor=c;o=n.util.isTransparent(l,t,i,this.targetFindTolerance);return o},_isSelectionKeyPressed:function(e){var t=!1;return t="[object Array]"===Object.prototype.toString.call(this.selectionKey)?!!this.selectionKey.find((function(t){return!0===e[t]})):e[this.selectionKey],t},_shouldClearSelection:function(e,t){var i=this.getActiveObjects(),a=this._activeObject;return!t||t&&a&&i.length>1&&-1===i.indexOf(t)&&a!==t&&!this._isSelectionKeyPressed(e)||t&&!t.evented||t&&!t.selectable&&a&&a!==t},_shouldCenterTransform:function(e,t,i){var a;if(e)return"scale"===t||"scaleX"===t||"scaleY"===t||"resizing"===t?a=this.centeredScaling||e.centeredScaling:"rotate"===t&&(a=this.centeredRotation||e.centeredRotation),a?!i:i},_getOriginFromCorner:function(e,t){var i={x:e.originX,y:e.originY};return"ml"===t||"tl"===t||"bl"===t?i.x="right":"mr"!==t&&"tr"!==t&&"br"!==t||(i.x="left"),"tl"===t||"mt"===t||"tr"===t?i.y="bottom":"bl"!==t&&"mb"!==t&&"br"!==t||(i.y="top"),i},_getActionFromCorner:function(e,t,i,a){if(!t||!e)return"drag";var n=a.controls[t];return n.getActionName(i,n,a)},_setupCurrentTransform:function(e,i,a){if(i){var r=this.getPointer(e),s=i.__corner,o=i.controls[s],l=a&&s?o.getActionHandler(e,i,o):n.controlsUtils.dragHandler,c=this._getActionFromCorner(a,s,e,i),u=this._getOriginFromCorner(i,s),d=e[this.centeredKey],p={target:i,action:c,actionHandler:l,corner:s,scaleX:i.scaleX,scaleY:i.scaleY,skewX:i.skewX,skewY:i.skewY,offsetX:r.x-i.left,offsetY:r.y-i.top,originX:u.x,originY:u.y,ex:r.x,ey:r.y,lastX:r.x,lastY:r.y,theta:t(i.angle),width:i.width*i.scaleX,shiftKey:e.shiftKey,altKey:d,original:n.util.saveObjectTransform(i)};this._shouldCenterTransform(i,c,d)&&(p.originX="center",p.originY="center"),p.original.originX=u.x,p.original.originY=u.y,this._currentTransform=p,this._beforeTransform(e)}},setCursor:function(e){this.upperCanvasEl.style.cursor=e},_drawSelection:function(e){var t=this._groupSelector,i=new n.Point(t.ex,t.ey),a=n.util.transformPoint(i,this.viewportTransform),r=new n.Point(t.ex+t.left,t.ey+t.top),s=n.util.transformPoint(r,this.viewportTransform),o=Math.min(a.x,s.x),l=Math.min(a.y,s.y),c=Math.max(a.x,s.x),u=Math.max(a.y,s.y),d=this.selectionLineWidth/2;this.selectionColor&&(e.fillStyle=this.selectionColor,e.fillRect(o,l,c-o,u-l)),this.selectionLineWidth&&this.selectionBorderColor&&(e.lineWidth=this.selectionLineWidth,e.strokeStyle=this.selectionBorderColor,o+=d,l+=d,c-=d,u-=d,n.Object.prototype._setLineDash.call(this,e,this.selectionDashArray),e.strokeRect(o,l,c-o,u-l))},findTarget:function(e,t){if(!this.skipTargetFind){var a,n,r=!0,s=this.getPointer(e,r),o=this._activeObject,l=this.getActiveObjects(),c=i(e),u=l.length>1&&!t||1===l.length;if(this.targets=[],u&&o._findTargetCorner(s,c))return o;if(l.length>1&&!t&&o===this._searchPossibleTargets([o],s))return o;if(1===l.length&&o===this._searchPossibleTargets([o],s)){if(!this.preserveObjectStacking)return o;a=o,n=this.targets,this.targets=[]}var d=this._searchPossibleTargets(this._objects,s);return e[this.altSelectionKey]&&d&&a&&d!==a&&(d=a,this.targets=n),d}},_checkTarget:function(e,t,i){if(t&&t.visible&&t.evented&&t.containsPoint(e)){if(!this.perPixelTargetFind&&!t.perPixelTargetFind||t.isEditing)return!0;var a=this.isTargetTransparent(t,i.x,i.y);if(!a)return!0}},_searchPossibleTargets:function(e,t){var i,a,r=e.length;while(r--){var s=e[r],o=s.group?this._normalizePointer(s.group,t):t;if(this._checkTarget(o,s,t)){i=e[r],i.subTargetCheck&&i instanceof n.Group&&(a=this._searchPossibleTargets(i._objects,t),a&&this.targets.push(a));break}}return i},restorePointerVpt:function(e){return n.util.transformPoint(e,n.util.invertTransform(this.viewportTransform))},getPointer:function(t,i){if(this._absolutePointer&&!i)return this._absolutePointer;if(this._pointer&&i)return this._pointer;var a,n=e(t),r=this.upperCanvasEl,s=r.getBoundingClientRect(),o=s.width||0,l=s.height||0;o&&l||("top"in s&&"bottom"in s&&(l=Math.abs(s.top-s.bottom)),"right"in s&&"left"in s&&(o=Math.abs(s.right-s.left))),this.calcOffset(),n.x=n.x-this._offset.left,n.y=n.y-this._offset.top,i||(n=this.restorePointerVpt(n));var c=this.getRetinaScaling();return 1!==c&&(n.x/=c,n.y/=c),a=0===o||0===l?{width:1,height:1}:{width:r.width/o,height:r.height/l},{x:n.x*a.width,y:n.y*a.height}},_createUpperCanvas:function(){var e=this.lowerCanvasEl.className.replace(/\s*lower-canvas\s*/,""),t=this.lowerCanvasEl,i=this.upperCanvasEl;i?i.className="":(i=this._createCanvasElement(),this.upperCanvasEl=i),n.util.addClass(i,"upper-canvas "+e),this.wrapperEl.appendChild(i),this._copyCanvasStyle(t,i),this._applyCanvasStyle(i),this.contextTop=i.getContext("2d")},_createCacheCanvas:function(){this.cacheCanvasEl=this._createCanvasElement(),this.cacheCanvasEl.setAttribute("width",this.width),this.cacheCanvasEl.setAttribute("height",this.height),this.contextCache=this.cacheCanvasEl.getContext("2d")},_initWrapperElement:function(){this.wrapperEl=n.util.wrapElement(this.lowerCanvasEl,"div",{class:this.containerClass}),n.util.setStyle(this.wrapperEl,{width:this.width+"px",height:this.height+"px",position:"relative"}),n.util.makeElementUnselectable(this.wrapperEl)},_applyCanvasStyle:function(e){var t=this.width||e.width,i=this.height||e.height;n.util.setStyle(e,{position:"absolute",width:t+"px",height:i+"px",left:0,top:0,"touch-action":this.allowTouchScrolling?"manipulation":"none","-ms-touch-action":this.allowTouchScrolling?"manipulation":"none"}),e.width=t,e.height=i,n.util.makeElementUnselectable(e)},_copyCanvasStyle:function(e,t){t.style.cssText=e.style.cssText},getSelectionContext:function(){return this.contextTop},getSelectionElement:function(){return this.upperCanvasEl},getActiveObject:function(){return this._activeObject},getActiveObjects:function(){var e=this._activeObject;return e?"activeSelection"===e.type&&e._objects?e._objects.slice(0):[e]:[]},_onObjectRemoved:function(e){e===this._activeObject&&(this.fire("before:selection:cleared",{target:e}),this._discardActiveObject(),this.fire("selection:cleared",{target:e}),e.fire("deselected")),e===this._hoveredTarget&&(this._hoveredTarget=null,this._hoveredTargets=[]),this.callSuper("_onObjectRemoved",e)},_fireSelectionEvents:function(e,t){var i=!1,a=this.getActiveObjects(),n=[],r=[];e.forEach((function(e){-1===a.indexOf(e)&&(i=!0,e.fire("deselected",{e:t,target:e}),r.push(e))})),a.forEach((function(a){-1===e.indexOf(a)&&(i=!0,a.fire("selected",{e:t,target:a}),n.push(a))})),e.length>0&&a.length>0?i&&this.fire("selection:updated",{e:t,selected:n,deselected:r,updated:n[0]||r[0],target:this._activeObject}):a.length>0?this.fire("selection:created",{e:t,selected:n,target:this._activeObject}):e.length>0&&this.fire("selection:cleared",{e:t,deselected:r})},setActiveObject:function(e,t){var i=this.getActiveObjects();return this._setActiveObject(e,t),this._fireSelectionEvents(i,t),this},_setActiveObject:function(e,t){return this._activeObject!==e&&(!!this._discardActiveObject(t,e)&&(!e.onSelect({e:t})&&(this._activeObject=e,!0)))},_discardActiveObject:function(e,t){var i=this._activeObject;if(i){if(i.onDeselect({e:e,object:t}))return!1;this._activeObject=null}return!0},discardActiveObject:function(e){var t=this.getActiveObjects(),i=this.getActiveObject();return t.length&&this.fire("before:selection:cleared",{target:i,e:e}),this._discardActiveObject(e),this._fireSelectionEvents(t,e),this},dispose:function(){var e=this.wrapperEl;return this.removeListeners(),e.removeChild(this.upperCanvasEl),e.removeChild(this.lowerCanvasEl),this.contextCache=null,this.contextTop=null,["upperCanvasEl","cacheCanvasEl"].forEach(function(e){n.util.cleanUpJsdomNode(this[e]),this[e]=void 0}.bind(this)),e.parentNode&&e.parentNode.replaceChild(this.lowerCanvasEl,this.wrapperEl),delete this.wrapperEl,n.StaticCanvas.prototype.dispose.call(this),this},clear:function(){return this.discardActiveObject(),this.clearContext(this.contextTop),this.callSuper("clear")},drawControls:function(e){var t=this._activeObject;t&&t._renderControls(e)},_toObject:function(e,t,i){var a=this._realizeGroupTransformOnObject(e),n=this.callSuper("_toObject",e,t,i);return this._unwindGroupTransformOnObject(e,a),n},_realizeGroupTransformOnObject:function(e){if(e.group&&"activeSelection"===e.group.type&&this._activeObject===e.group){var t=["angle","flipX","flipY","left","scaleX","scaleY","skewX","skewY","top"],i={};return t.forEach((function(t){i[t]=e[t]})),n.util.addTransformToObject(e,this._activeObject.calcOwnMatrix()),i}return null},_unwindGroupTransformOnObject:function(e,t){t&&e.set(t)},_setSVGObject:function(e,t,i){var a=this._realizeGroupTransformOnObject(t);this.callSuper("_setSVGObject",e,t,i),this._unwindGroupTransformOnObject(t,a)},setViewportTransform:function(e){this.renderOnAddRemove&&this._activeObject&&this._activeObject.isEditing&&this._activeObject.clearContextTop(),n.StaticCanvas.prototype.setViewportTransform.call(this,e)}}),n.StaticCanvas)"prototype"!==a&&(n.Canvas[a]=n.StaticCanvas[a])}(),function(){var e=n.util.addListener,t=n.util.removeListener,i=3,a=2,r=1,s={passive:!1};function o(e,t){return e.button&&e.button===t-1}n.util.object.extend(n.Canvas.prototype,{mainTouchId:null,_initEventListeners:function(){this.removeListeners(),this._bindEvents(),this.addOrRemove(e,"add")},_getEventPrefix:function(){return this.enablePointerEvents?"pointer":"mouse"},addOrRemove:function(e,t){var i=this.upperCanvasEl,a=this._getEventPrefix();e(n.window,"resize",this._onResize),e(i,a+"down",this._onMouseDown),e(i,a+"move",this._onMouseMove,s),e(i,a+"out",this._onMouseOut),e(i,a+"enter",this._onMouseEnter),e(i,"wheel",this._onMouseWheel),e(i,"contextmenu",this._onContextMenu),e(i,"dblclick",this._onDoubleClick),e(i,"dragover",this._onDragOver),e(i,"dragenter",this._onDragEnter),e(i,"dragleave",this._onDragLeave),e(i,"drop",this._onDrop),this.enablePointerEvents||e(i,"touchstart",this._onTouchStart,s),"undefined"!==typeof eventjs&&t in eventjs&&(eventjs[t](i,"gesture",this._onGesture),eventjs[t](i,"drag",this._onDrag),eventjs[t](i,"orientation",this._onOrientationChange),eventjs[t](i,"shake",this._onShake),eventjs[t](i,"longpress",this._onLongPress))},removeListeners:function(){this.addOrRemove(t,"remove");var e=this._getEventPrefix();t(n.document,e+"up",this._onMouseUp),t(n.document,"touchend",this._onTouchEnd,s),t(n.document,e+"move",this._onMouseMove,s),t(n.document,"touchmove",this._onMouseMove,s)},_bindEvents:function(){this.eventsBound||(this._onMouseDown=this._onMouseDown.bind(this),this._onTouchStart=this._onTouchStart.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onResize=this._onResize.bind(this),this._onGesture=this._onGesture.bind(this),this._onDrag=this._onDrag.bind(this),this._onShake=this._onShake.bind(this),this._onLongPress=this._onLongPress.bind(this),this._onOrientationChange=this._onOrientationChange.bind(this),this._onMouseWheel=this._onMouseWheel.bind(this),this._onMouseOut=this._onMouseOut.bind(this),this._onMouseEnter=this._onMouseEnter.bind(this),this._onContextMenu=this._onContextMenu.bind(this),this._onDoubleClick=this._onDoubleClick.bind(this),this._onDragOver=this._onDragOver.bind(this),this._onDragEnter=this._simpleEventHandler.bind(this,"dragenter"),this._onDragLeave=this._simpleEventHandler.bind(this,"dragleave"),this._onDrop=this._simpleEventHandler.bind(this,"drop"),this.eventsBound=!0)},_onGesture:function(e,t){this.__onTransformGesture&&this.__onTransformGesture(e,t)},_onDrag:function(e,t){this.__onDrag&&this.__onDrag(e,t)},_onMouseWheel:function(e){this.__onMouseWheel(e)},_onMouseOut:function(e){var t=this._hoveredTarget;this.fire("mouse:out",{target:t,e:e}),this._hoveredTarget=null,t&&t.fire("mouseout",{e:e});var i=this;this._hoveredTargets.forEach((function(a){i.fire("mouse:out",{target:t,e:e}),a&&t.fire("mouseout",{e:e})})),this._hoveredTargets=[],this._iTextInstances&&this._iTextInstances.forEach((function(e){e.isEditing&&e.hiddenTextarea.focus()}))},_onMouseEnter:function(e){this._currentTransform||this.findTarget(e)||(this.fire("mouse:over",{target:null,e:e}),this._hoveredTarget=null,this._hoveredTargets=[])},_onOrientationChange:function(e,t){this.__onOrientationChange&&this.__onOrientationChange(e,t)},_onShake:function(e,t){this.__onShake&&this.__onShake(e,t)},_onLongPress:function(e,t){this.__onLongPress&&this.__onLongPress(e,t)},_onDragOver:function(e){e.preventDefault();var t=this._simpleEventHandler("dragover",e);this._fireEnterLeaveEvents(t,e)},_onContextMenu:function(e){return this.stopContextMenu&&(e.stopPropagation(),e.preventDefault()),!1},_onDoubleClick:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"dblclick"),this._resetTransformEventData(e)},getPointerId:function(e){var t=e.changedTouches;return t?t[0]&&t[0].identifier:this.enablePointerEvents?e.pointerId:-1},_isMainEvent:function(e){return!0===e.isPrimary||!1!==e.isPrimary&&("touchend"===e.type&&0===e.touches.length||(!e.changedTouches||e.changedTouches[0].identifier===this.mainTouchId))},_onTouchStart:function(i){i.preventDefault(),null===this.mainTouchId&&(this.mainTouchId=this.getPointerId(i)),this.__onMouseDown(i),this._resetTransformEventData();var a=this.upperCanvasEl,r=this._getEventPrefix();e(n.document,"touchend",this._onTouchEnd,s),e(n.document,"touchmove",this._onMouseMove,s),t(a,r+"down",this._onMouseDown)},_onMouseDown:function(i){this.__onMouseDown(i),this._resetTransformEventData();var a=this.upperCanvasEl,r=this._getEventPrefix();t(a,r+"move",this._onMouseMove,s),e(n.document,r+"up",this._onMouseUp),e(n.document,r+"move",this._onMouseMove,s)},_onTouchEnd:function(i){if(!(i.touches.length>0)){this.__onMouseUp(i),this._resetTransformEventData(),this.mainTouchId=null;var a=this._getEventPrefix();t(n.document,"touchend",this._onTouchEnd,s),t(n.document,"touchmove",this._onMouseMove,s);var r=this;this._willAddMouseDown&&clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout((function(){e(r.upperCanvasEl,a+"down",r._onMouseDown),r._willAddMouseDown=0}),400)}},_onMouseUp:function(i){this.__onMouseUp(i),this._resetTransformEventData();var a=this.upperCanvasEl,r=this._getEventPrefix();this._isMainEvent(i)&&(t(n.document,r+"up",this._onMouseUp),t(n.document,r+"move",this._onMouseMove,s),e(a,r+"move",this._onMouseMove,s))},_onMouseMove:function(e){!this.allowTouchScrolling&&e.preventDefault&&e.preventDefault(),this.__onMouseMove(e)},_onResize:function(){this.calcOffset()},_shouldRender:function(e){var t=this._activeObject;return!!(!!t!==!!e||t&&e&&t!==e)||(t&&t.isEditing,!1)},__onMouseUp:function(e){var t,s=this._currentTransform,l=this._groupSelector,c=!1,u=!l||0===l.left&&0===l.top;if(this._cacheTransformEventData(e),t=this._target,this._handleEvent(e,"up:before"),o(e,i))this.fireRightClick&&this._handleEvent(e,"up",i,u);else{if(o(e,a))return this.fireMiddleClick&&this._handleEvent(e,"up",a,u),void this._resetTransformEventData();if(this.isDrawingMode&&this._isCurrentlyDrawing)this._onMouseUpInDrawingMode(e);else if(this._isMainEvent(e)){if(s&&(this._finalizeCurrentTransform(e),c=s.actionPerformed),!u){var d=t===this._activeObject;this._maybeGroupObjects(e),c||(c=this._shouldRender(t)||!d&&t===this._activeObject)}if(t){if(t.selectable&&t!==this._activeObject&&"up"===t.activeOn)this.setActiveObject(t,e),c=!0;else{var p=t._findTargetCorner(this.getPointer(e,!0),n.util.isTouchEvent(e)),f=t.controls[p],A=f&&f.getMouseUpHandler(e,t,f);if(A){var h=this.getPointer(e);A(e,s,h.x,h.y)}}t.isMoving=!1}this._setCursorFromEvent(e,t),this._handleEvent(e,"up",r,u),this._groupSelector=null,this._currentTransform=null,t&&(t.__corner=0),c?this.requestRenderAll():u||this.renderTop()}}},_simpleEventHandler:function(e,t){var i=this.findTarget(t),a=this.targets,n={e:t,target:i,subTargets:a};if(this.fire(e,n),i&&i.fire(e,n),!a)return i;for(var r=0;r<a.length;r++)a[r].fire(e,n);return i},_handleEvent:function(e,t,i,a){var n=this._target,s=this.targets||[],o={e:e,target:n,subTargets:s,button:i||r,isClick:a||!1,pointer:this._pointer,absolutePointer:this._absolutePointer,transform:this._currentTransform};"up"===t&&(o.currentTarget=this.findTarget(e),o.currentSubTargets=this.targets),this.fire("mouse:"+t,o),n&&n.fire("mouse"+t,o);for(var l=0;l<s.length;l++)s[l].fire("mouse"+t,o)},_finalizeCurrentTransform:function(e){var t,i=this._currentTransform,a=i.target,n={e:e,target:a,transform:i,action:i.action};a._scaling&&(a._scaling=!1),a.setCoords(),(i.actionPerformed||this.stateful&&a.hasStateChanged())&&(i.actionPerformed&&(t=this._addEventOptions(n,i),this._fire(t,n)),this._fire("modified",n))},_addEventOptions:function(e,t){var i,a;switch(t.action){case"scaleX":i="scaled",a="x";break;case"scaleY":i="scaled",a="y";break;case"skewX":i="skewed",a="x";break;case"skewY":i="skewed",a="y";break;case"scale":i="scaled",a="equally";break;case"rotate":i="rotated";break;case"drag":i="moved";break}return e.by=a,i},_onMouseDownInDrawingMode:function(e){this._isCurrentlyDrawing=!0,this.getActiveObject()&&this.discardActiveObject(e).requestRenderAll();var t=this.getPointer(e);this.freeDrawingBrush.onMouseDown(t,{e:e,pointer:t}),this._handleEvent(e,"down")},_onMouseMoveInDrawingMode:function(e){if(this._isCurrentlyDrawing){var t=this.getPointer(e);this.freeDrawingBrush.onMouseMove(t,{e:e,pointer:t})}this.setCursor(this.freeDrawingCursor),this._handleEvent(e,"move")},_onMouseUpInDrawingMode:function(e){var t=this.getPointer(e);this._isCurrentlyDrawing=this.freeDrawingBrush.onMouseUp({e:e,pointer:t}),this._handleEvent(e,"up")},__onMouseDown:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"down:before");var t=this._target;if(o(e,i))this.fireRightClick&&this._handleEvent(e,"down",i);else if(o(e,a))this.fireMiddleClick&&this._handleEvent(e,"down",a);else if(this.isDrawingMode)this._onMouseDownInDrawingMode(e);else if(this._isMainEvent(e)&&!this._currentTransform){var r=this._pointer;this._previousPointer=r;var s=this._shouldRender(t),l=this._shouldGroup(e,t);if(this._shouldClearSelection(e,t)?this.discardActiveObject(e):l&&(this._handleGrouping(e,t),t=this._activeObject),!this.selection||t&&(t.selectable||t.isEditing||t===this._activeObject)||(this._groupSelector={ex:this._absolutePointer.x,ey:this._absolutePointer.y,top:0,left:0}),t){var c=t===this._activeObject;t.selectable&&"down"===t.activeOn&&this.setActiveObject(t,e);var u=t._findTargetCorner(this.getPointer(e,!0),n.util.isTouchEvent(e));if(t.__corner=u,t===this._activeObject&&(u||!l)){this._setupCurrentTransform(e,t,c);var d=t.controls[u],p=(r=this.getPointer(e),d&&d.getMouseDownHandler(e,t,d));p&&p(e,this._currentTransform,r.x,r.y)}}this._handleEvent(e,"down"),(s||l)&&this.requestRenderAll()}},_resetTransformEventData:function(){this._target=null,this._pointer=null,this._absolutePointer=null},_cacheTransformEventData:function(e){this._resetTransformEventData(),this._pointer=this.getPointer(e,!0),this._absolutePointer=this.restorePointerVpt(this._pointer),this._target=this._currentTransform?this._currentTransform.target:this.findTarget(e)||null},_beforeTransform:function(e){var t=this._currentTransform;this.stateful&&t.target.saveState(),this.fire("before:transform",{e:e,transform:t})},__onMouseMove:function(e){var t,i;if(this._handleEvent(e,"move:before"),this._cacheTransformEventData(e),this.isDrawingMode)this._onMouseMoveInDrawingMode(e);else if(this._isMainEvent(e)){var a=this._groupSelector;a?(i=this._absolutePointer,a.left=i.x-a.ex,a.top=i.y-a.ey,this.renderTop()):this._currentTransform?this._transformObject(e):(t=this.findTarget(e)||null,this._setCursorFromEvent(e,t),this._fireOverOutEvents(t,e)),this._handleEvent(e,"move"),this._resetTransformEventData()}},_fireOverOutEvents:function(e,t){var i=this._hoveredTarget,a=this._hoveredTargets,n=this.targets,r=Math.max(a.length,n.length);this.fireSyntheticInOutEvents(e,t,{oldTarget:i,evtOut:"mouseout",canvasEvtOut:"mouse:out",evtIn:"mouseover",canvasEvtIn:"mouse:over"});for(var s=0;s<r;s++)this.fireSyntheticInOutEvents(n[s],t,{oldTarget:a[s],evtOut:"mouseout",evtIn:"mouseover"});this._hoveredTarget=e,this._hoveredTargets=this.targets.concat()},_fireEnterLeaveEvents:function(e,t){var i=this._draggedoverTarget,a=this._hoveredTargets,n=this.targets,r=Math.max(a.length,n.length);this.fireSyntheticInOutEvents(e,t,{oldTarget:i,evtOut:"dragleave",evtIn:"dragenter"});for(var s=0;s<r;s++)this.fireSyntheticInOutEvents(n[s],t,{oldTarget:a[s],evtOut:"dragleave",evtIn:"dragenter"});this._draggedoverTarget=e},fireSyntheticInOutEvents:function(e,t,i){var a,n,r,s,o=i.oldTarget,l=o!==e,c=i.canvasEvtIn,u=i.canvasEvtOut;l&&(a={e:t,target:e,previousTarget:o},n={e:t,target:o,nextTarget:e}),s=e&&l,r=o&&l,r&&(u&&this.fire(u,n),o.fire(i.evtOut,n)),s&&(c&&this.fire(c,a),e.fire(i.evtIn,a))},__onMouseWheel:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"wheel"),this._resetTransformEventData()},_transformObject:function(e){var t=this.getPointer(e),i=this._currentTransform;i.reset=!1,i.shiftKey=e.shiftKey,i.altKey=e[this.centeredKey],this._performTransformAction(e,i,t),i.actionPerformed&&this.requestRenderAll()},_performTransformAction:function(e,t,i){var a=i.x,n=i.y,r=t.action,s=!1,o=t.actionHandler;o&&(s=o(e,t,a,n)),"drag"===r&&s&&(t.target.isMoving=!0,this.setCursor(t.target.moveCursor||this.moveCursor)),t.actionPerformed=t.actionPerformed||s},_fire:n.controlsUtils.fireEvent,_setCursorFromEvent:function(e,t){if(!t)return this.setCursor(this.defaultCursor),!1;var i=t.hoverCursor||this.hoverCursor,a=this._activeObject&&"activeSelection"===this._activeObject.type?this._activeObject:null,n=(!a||!a.contains(t))&&t._findTargetCorner(this.getPointer(e,!0));n?this.setCursor(this.getCornerCursor(n,t,e)):(t.subTargetCheck&&this.targets.concat().reverse().map((function(e){i=e.hoverCursor||i})),this.setCursor(i))},getCornerCursor:function(e,t,i){var a=t.controls[e];return a.cursorStyleHandler(i,a,t)}})}(),function(){var e=Math.min,t=Math.max;n.util.object.extend(n.Canvas.prototype,{_shouldGroup:function(e,t){var i=this._activeObject;return i&&this._isSelectionKeyPressed(e)&&t&&t.selectable&&this.selection&&(i!==t||"activeSelection"===i.type)&&!t.onSelect({e:e})},_handleGrouping:function(e,t){var i=this._activeObject;i.__corner||(t!==i||(t=this.findTarget(e,!0),t&&t.selectable))&&(i&&"activeSelection"===i.type?this._updateActiveSelection(t,e):this._createActiveSelection(t,e))},_updateActiveSelection:function(e,t){var i=this._activeObject,a=i._objects.slice(0);i.contains(e)?(i.removeWithUpdate(e),this._hoveredTarget=e,this._hoveredTargets=this.targets.concat(),1===i.size()&&this._setActiveObject(i.item(0),t)):(i.addWithUpdate(e),this._hoveredTarget=i,this._hoveredTargets=this.targets.concat()),this._fireSelectionEvents(a,t)},_createActiveSelection:function(e,t){var i=this.getActiveObjects(),a=this._createGroup(e);this._hoveredTarget=a,this._setActiveObject(a,t),this._fireSelectionEvents(i,t)},_createGroup:function(e){var t=this._objects,i=t.indexOf(this._activeObject)<t.indexOf(e),a=i?[this._activeObject,e]:[e,this._activeObject];return this._activeObject.isEditing&&this._activeObject.exitEditing(),new n.ActiveSelection(a,{canvas:this})},_groupSelectedObjects:function(e){var t,i=this._collectObjects(e);1===i.length?this.setActiveObject(i[0],e):i.length>1&&(t=new n.ActiveSelection(i.reverse(),{canvas:this}),this.setActiveObject(t,e))},_collectObjects:function(i){for(var a,r=[],s=this._groupSelector.ex,o=this._groupSelector.ey,l=s+this._groupSelector.left,c=o+this._groupSelector.top,u=new n.Point(e(s,l),e(o,c)),d=new n.Point(t(s,l),t(o,c)),p=!this.selectionFullyContained,f=s===l&&o===c,A=this._objects.length;A--;)if(a=this._objects[A],a&&a.selectable&&a.visible&&(p&&a.intersectsWithRect(u,d,!0)||a.isContainedWithinRect(u,d,!0)||p&&a.containsPoint(u,null,!0)||p&&a.containsPoint(d,null,!0))&&(r.push(a),f))break;return r.length>1&&(r=r.filter((function(e){return!e.onSelect({e:i})}))),r},_maybeGroupObjects:function(e){this.selection&&this._groupSelector&&this._groupSelectedObjects(e),this.setCursor(this.defaultCursor),this._groupSelector=null}})}(),function(){n.util.object.extend(n.StaticCanvas.prototype,{toDataURL:function(e){e||(e={});var t=e.format||"png",i=e.quality||1,a=(e.multiplier||1)*(e.enableRetinaScaling?this.getRetinaScaling():1),r=this.toCanvasElement(a,e);return n.util.toDataURL(r,t,i)},toCanvasElement:function(e,t){e=e||1,t=t||{};var i=(t.width||this.width)*e,a=(t.height||this.height)*e,r=this.getZoom(),s=this.width,o=this.height,l=r*e,c=this.viewportTransform,u=(c[4]-(t.left||0))*e,d=(c[5]-(t.top||0))*e,p=this.interactive,f=[l,0,0,l,u,d],A=this.enableRetinaScaling,h=n.util.createCanvasElement(),m=this.contextTop;return h.width=i,h.height=a,this.contextTop=null,this.enableRetinaScaling=!1,this.interactive=!1,this.viewportTransform=f,this.width=i,this.height=a,this.calcViewportBoundaries(),this.renderCanvas(h.getContext("2d"),this._objects),this.viewportTransform=c,this.width=s,this.height=o,this.calcViewportBoundaries(),this.interactive=p,this.enableRetinaScaling=A,this.contextTop=m,h}})}(),n.util.object.extend(n.StaticCanvas.prototype,{loadFromJSON:function(e,t,i){if(e){var a="string"===typeof e?JSON.parse(e):n.util.object.clone(e),r=this,s=a.clipPath,o=this.renderOnAddRemove;return this.renderOnAddRemove=!1,delete a.clipPath,this._enlivenObjects(a.objects,(function(e){r.clear(),r._setBgOverlay(a,(function(){s?r._enlivenObjects([s],(function(i){r.clipPath=i[0],r.__setupCanvas.call(r,a,e,o,t)})):r.__setupCanvas.call(r,a,e,o,t)}))}),i),this}},__setupCanvas:function(e,t,i,a){var n=this;t.forEach((function(e,t){n.insertAt(e,t)})),this.renderOnAddRemove=i,delete e.objects,delete e.backgroundImage,delete e.overlayImage,delete e.background,delete e.overlay,this._setOptions(e),this.renderAll(),a&&a()},_setBgOverlay:function(e,t){var i={backgroundColor:!1,overlayColor:!1,backgroundImage:!1,overlayImage:!1};if(e.backgroundImage||e.overlayImage||e.background||e.overlay){var a=function(){i.backgroundImage&&i.overlayImage&&i.backgroundColor&&i.overlayColor&&t&&t()};this.__setBgOverlay("backgroundImage",e.backgroundImage,i,a),this.__setBgOverlay("overlayImage",e.overlayImage,i,a),this.__setBgOverlay("backgroundColor",e.background,i,a),this.__setBgOverlay("overlayColor",e.overlay,i,a)}else t&&t()},__setBgOverlay:function(e,t,i,a){var r=this;if(!t)return i[e]=!0,void(a&&a());"backgroundImage"===e||"overlayImage"===e?n.util.enlivenObjects([t],(function(t){r[e]=t[0],i[e]=!0,a&&a()})):this["set"+n.util.string.capitalize(e,!0)](t,(function(){i[e]=!0,a&&a()}))},_enlivenObjects:function(e,t,i){e&&0!==e.length?n.util.enlivenObjects(e,(function(e){t&&t(e)}),null,i):t&&t([])},_toDataURL:function(e,t){this.clone((function(i){t(i.toDataURL(e))}))},_toDataURLWithMultiplier:function(e,t,i){this.clone((function(a){i(a.toDataURLWithMultiplier(e,t))}))},clone:function(e,t){var i=JSON.stringify(this.toJSON(t));this.cloneWithoutData((function(t){t.loadFromJSON(i,(function(){e&&e(t)}))}))},cloneWithoutData:function(e){var t=n.util.createCanvasElement();t.width=this.width,t.height=this.height;var i=new n.Canvas(t);this.backgroundImage?(i.setBackgroundImage(this.backgroundImage.src,(function(){i.renderAll(),e&&e(i)})),i.backgroundImageOpacity=this.backgroundImageOpacity,i.backgroundImageStretch=this.backgroundImageStretch):e&&e(i)}}),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,a=t.util.object.clone,n=t.util.toFixed,r=t.util.string.capitalize,s=t.util.degreesToRadians,o=!t.isLikelyNode,l=2;t.Object||(t.Object=t.util.createClass(t.CommonMethods,{type:"object",originX:"left",originY:"top",top:0,left:0,width:0,height:0,scaleX:1,scaleY:1,flipX:!1,flipY:!1,opacity:1,angle:0,skewX:0,skewY:0,cornerSize:13,touchCornerSize:24,transparentCorners:!0,hoverCursor:null,moveCursor:null,padding:0,borderColor:"rgb(178,204,255)",borderDashArray:null,cornerColor:"rgb(178,204,255)",cornerStrokeColor:null,cornerStyle:"rect",cornerDashArray:null,centeredScaling:!1,centeredRotation:!0,fill:"rgb(0,0,0)",fillRule:"nonzero",globalCompositeOperation:"source-over",backgroundColor:"",selectionBackgroundColor:"",stroke:null,strokeWidth:1,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:4,shadow:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,minScaleLimit:0,selectable:!0,evented:!0,visible:!0,hasControls:!0,hasBorders:!0,perPixelTargetFind:!1,includeDefaultValues:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,excludeFromExport:!1,objectCaching:o,statefullCache:!1,noScaleCache:!0,strokeUniform:!1,dirty:!0,__corner:0,paintFirst:"fill",activeOn:"down",stateProperties:"top left width height scaleX scaleY flipX flipY originX originY transformMatrix stroke strokeWidth strokeDashArray strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit angle opacity fill globalCompositeOperation shadow visible backgroundColor skewX skewY fillRule paintFirst clipPath strokeUniform".split(" "),cacheProperties:"fill stroke strokeWidth strokeDashArray width height paintFirst strokeUniform strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit backgroundColor clipPath".split(" "),colorProperties:"fill stroke backgroundColor".split(" "),clipPath:void 0,inverted:!1,absolutePositioned:!1,initialize:function(e){e&&this.setOptions(e)},_createCacheCanvas:function(){this._cacheProperties={},this._cacheCanvas=t.util.createCanvasElement(),this._cacheContext=this._cacheCanvas.getContext("2d"),this._updateCacheCanvas(),this.dirty=!0},_limitCacheSize:function(e){var i=t.perfLimitSizeTotal,a=e.width,n=e.height,r=t.maxCacheSideLimit,s=t.minCacheSideLimit;if(a<=r&&n<=r&&a*n<=i)return a<s&&(e.width=s),n<s&&(e.height=s),e;var o=a/n,l=t.util.limitDimsByArea(o,i),c=t.util.capValue,u=c(s,l.x,r),d=c(s,l.y,r);return a>u&&(e.zoomX/=a/u,e.width=u,e.capped=!0),n>d&&(e.zoomY/=n/d,e.height=d,e.capped=!0),e},_getCacheCanvasDimensions:function(){var e=this.getTotalObjectScaling(),t=this._getTransformedDimensions(0,0),i=t.x*e.scaleX/this.scaleX,a=t.y*e.scaleY/this.scaleY;return{width:i+l,height:a+l,zoomX:e.scaleX,zoomY:e.scaleY,x:i,y:a}},_updateCacheCanvas:function(){var e=this.canvas;if(this.noScaleCache&&e&&e._currentTransform){var i=e._currentTransform.target,a=e._currentTransform.action;if(this===i&&a.slice&&"scale"===a.slice(0,5))return!1}var n,r,s=this._cacheCanvas,o=this._limitCacheSize(this._getCacheCanvasDimensions()),l=t.minCacheSideLimit,c=o.width,u=o.height,d=o.zoomX,p=o.zoomY,f=c!==this.cacheWidth||u!==this.cacheHeight,A=this.zoomX!==d||this.zoomY!==p,h=f||A,m=0,g=0,v=!1;if(f){var b=this._cacheCanvas.width,y=this._cacheCanvas.height,_=c>b||u>y,w=(c<.9*b||u<.9*y)&&b>l&&y>l;v=_||w,_&&!o.capped&&(c>l||u>l)&&(m=.1*c,g=.1*u)}return this instanceof t.Text&&this.path&&(h=!0,v=!0,m+=this.getHeightOfLine(0)*this.zoomX,g+=this.getHeightOfLine(0)*this.zoomY),!!h&&(v?(s.width=Math.ceil(c+m),s.height=Math.ceil(u+g)):(this._cacheContext.setTransform(1,0,0,1,0,0),this._cacheContext.clearRect(0,0,s.width,s.height)),n=o.x/2,r=o.y/2,this.cacheTranslationX=Math.round(s.width/2-n)+n,this.cacheTranslationY=Math.round(s.height/2-r)+r,this.cacheWidth=c,this.cacheHeight=u,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale(d,p),this.zoomX=d,this.zoomY=p,!0)},setOptions:function(e){this._setOptions(e),this._initGradient(e.fill,"fill"),this._initGradient(e.stroke,"stroke"),this._initPattern(e.fill,"fill"),this._initPattern(e.stroke,"stroke")},transform:function(e){var t=this.group&&!this.group._transformDone||this.group&&this.canvas&&e===this.canvas.contextTop,i=this.calcTransformMatrix(!t);e.transform(i[0],i[1],i[2],i[3],i[4],i[5])},toObject:function(e){var i=t.Object.NUM_FRACTION_DIGITS,a={type:this.type,version:t.version,originX:this.originX,originY:this.originY,left:n(this.left,i),top:n(this.top,i),width:n(this.width,i),height:n(this.height,i),fill:this.fill&&this.fill.toObject?this.fill.toObject():this.fill,stroke:this.stroke&&this.stroke.toObject?this.stroke.toObject():this.stroke,strokeWidth:n(this.strokeWidth,i),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeDashOffset:this.strokeDashOffset,strokeLineJoin:this.strokeLineJoin,strokeUniform:this.strokeUniform,strokeMiterLimit:n(this.strokeMiterLimit,i),scaleX:n(this.scaleX,i),scaleY:n(this.scaleY,i),angle:n(this.angle,i),flipX:this.flipX,flipY:this.flipY,opacity:n(this.opacity,i),shadow:this.shadow&&this.shadow.toObject?this.shadow.toObject():this.shadow,visible:this.visible,backgroundColor:this.backgroundColor,fillRule:this.fillRule,paintFirst:this.paintFirst,globalCompositeOperation:this.globalCompositeOperation,skewX:n(this.skewX,i),skewY:n(this.skewY,i)};return this.clipPath&&!this.clipPath.excludeFromExport&&(a.clipPath=this.clipPath.toObject(e),a.clipPath.inverted=this.clipPath.inverted,a.clipPath.absolutePositioned=this.clipPath.absolutePositioned),t.util.populateWithProperties(this,a,e),this.includeDefaultValues||(a=this._removeDefaultValues(a)),a},toDatalessObject:function(e){return this.toObject(e)},_removeDefaultValues:function(e){var i=t.util.getKlass(e.type).prototype,a=i.stateProperties;return a.forEach((function(t){if("left"!==t&&"top"!==t){e[t]===i[t]&&delete e[t];var a="[object Array]"===Object.prototype.toString.call(e[t])&&"[object Array]"===Object.prototype.toString.call(i[t]);a&&0===e[t].length&&0===i[t].length&&delete e[t]}})),e},toString:function(){return"#<fabric."+r(this.type)+">"},getObjectScaling:function(){if(!this.group)return{scaleX:this.scaleX,scaleY:this.scaleY};var e=t.util.qrDecompose(this.calcTransformMatrix());return{scaleX:Math.abs(e.scaleX),scaleY:Math.abs(e.scaleY)}},getTotalObjectScaling:function(){var e=this.getObjectScaling(),t=e.scaleX,i=e.scaleY;if(this.canvas){var a=this.canvas.getZoom(),n=this.canvas.getRetinaScaling();t*=a*n,i*=a*n}return{scaleX:t,scaleY:i}},getObjectOpacity:function(){var e=this.opacity;return this.group&&(e*=this.group.getObjectOpacity()),e},_set:function(e,i){var a="scaleX"===e||"scaleY"===e,n=this[e]!==i,r=!1;return a&&(i=this._constrainScale(i)),"scaleX"===e&&i<0?(this.flipX=!this.flipX,i*=-1):"scaleY"===e&&i<0?(this.flipY=!this.flipY,i*=-1):"shadow"!==e||!i||i instanceof t.Shadow?"dirty"===e&&this.group&&this.group.set("dirty",i):i=new t.Shadow(i),this[e]=i,n&&(r=this.group&&this.group.isOnACache(),this.cacheProperties.indexOf(e)>-1?(this.dirty=!0,r&&this.group.set("dirty",!0)):r&&this.stateProperties.indexOf(e)>-1&&this.group.set("dirty",!0)),this},setOnGroup:function(){},getViewportTransform:function(){return this.canvas&&this.canvas.viewportTransform?this.canvas.viewportTransform:t.iMatrix.concat()},isNotVisible:function(){return 0===this.opacity||!this.width&&!this.height&&0===this.strokeWidth||!this.visible},render:function(e){this.isNotVisible()||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(e.save(),this._setupCompositeOperation(e),this.drawSelectionBackground(e),this.transform(e),this._setOpacity(e),this._setShadow(e,this),this.shouldCache()?(this.renderCache(),this.drawCacheOnCanvas(e)):(this._removeCacheCanvas(),this.dirty=!1,this.drawObject(e),this.objectCaching&&this.statefullCache&&this.saveState({propertySet:"cacheProperties"})),e.restore())},renderCache:function(e){e=e||{},this._cacheCanvas||this._createCacheCanvas(),this.isCacheDirty()&&(this.statefullCache&&this.saveState({propertySet:"cacheProperties"}),this.drawObject(this._cacheContext,e.forClipping),this.dirty=!1)},_removeCacheCanvas:function(){this._cacheCanvas=null,this.cacheWidth=0,this.cacheHeight=0},hasStroke:function(){return this.stroke&&"transparent"!==this.stroke&&0!==this.strokeWidth},hasFill:function(){return this.fill&&"transparent"!==this.fill},needsItsOwnCache:function(){return!("stroke"!==this.paintFirst||!this.hasFill()||!this.hasStroke()||"object"!==typeof this.shadow)||!!this.clipPath},shouldCache:function(){return this.ownCaching=this.needsItsOwnCache()||this.objectCaching&&(!this.group||!this.group.isOnACache()),this.ownCaching},willDrawShadow:function(){return!!this.shadow&&(0!==this.shadow.offsetX||0!==this.shadow.offsetY)},drawClipPathOnCache:function(e){var i=this.clipPath;if(e.save(),i.inverted?e.globalCompositeOperation="destination-out":e.globalCompositeOperation="destination-in",i.absolutePositioned){var a=t.util.invertTransform(this.calcTransformMatrix());e.transform(a[0],a[1],a[2],a[3],a[4],a[5])}i.transform(e),e.scale(1/i.zoomX,1/i.zoomY),e.drawImage(i._cacheCanvas,-i.cacheTranslationX,-i.cacheTranslationY),e.restore()},drawObject:function(e,t){var i=this.fill,a=this.stroke;t?(this.fill="black",this.stroke="",this._setClippingProperties(e)):this._renderBackground(e),this._render(e),this._drawClipPath(e),this.fill=i,this.stroke=a},_drawClipPath:function(e){var t=this.clipPath;t&&(t.canvas=this.canvas,t.shouldCache(),t._transformDone=!0,t.renderCache({forClipping:!0}),this.drawClipPathOnCache(e))},drawCacheOnCanvas:function(e){e.scale(1/this.zoomX,1/this.zoomY),e.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)},isCacheDirty:function(e){if(this.isNotVisible())return!1;if(this._cacheCanvas&&!e&&this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath&&this.clipPath.absolutePositioned||this.statefullCache&&this.hasStateChanged("cacheProperties")){if(this._cacheCanvas&&!e){var t=this.cacheWidth/this.zoomX,i=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-t/2,-i/2,t,i)}return!0}return!1},_renderBackground:function(e){if(this.backgroundColor){var t=this._getNonTransformedDimensions();e.fillStyle=this.backgroundColor,e.fillRect(-t.x/2,-t.y/2,t.x,t.y),this._removeShadow(e)}},_setOpacity:function(e){this.group&&!this.group._transformDone?e.globalAlpha=this.getObjectOpacity():e.globalAlpha*=this.opacity},_setStrokeStyles:function(e,t){var i=t.stroke;i&&(e.lineWidth=t.strokeWidth,e.lineCap=t.strokeLineCap,e.lineDashOffset=t.strokeDashOffset,e.lineJoin=t.strokeLineJoin,e.miterLimit=t.strokeMiterLimit,i.toLive?"percentage"===i.gradientUnits||i.gradientTransform||i.patternTransform?this._applyPatternForTransformedGradient(e,i):(e.strokeStyle=i.toLive(e,this),this._applyPatternGradientTransform(e,i)):e.strokeStyle=t.stroke)},_setFillStyles:function(e,t){var i=t.fill;i&&(i.toLive?(e.fillStyle=i.toLive(e,this),this._applyPatternGradientTransform(e,t.fill)):e.fillStyle=i)},_setClippingProperties:function(e){e.globalAlpha=1,e.strokeStyle="transparent",e.fillStyle="#000000"},_setLineDash:function(e,t){t&&0!==t.length&&(1&t.length&&t.push.apply(t,t),e.setLineDash(t))},_renderControls:function(e,i){var a,n,r,o=this.getViewportTransform(),l=this.calcTransformMatrix();i=i||{},n="undefined"!==typeof i.hasBorders?i.hasBorders:this.hasBorders,r="undefined"!==typeof i.hasControls?i.hasControls:this.hasControls,l=t.util.multiplyTransformMatrices(o,l),a=t.util.qrDecompose(l),e.save(),e.translate(a.translateX,a.translateY),e.lineWidth=1*this.borderScaleFactor,this.group||(e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),e.rotate(s(a.angle)),i.forActiveSelection||this.group?n&&this.drawBordersInGroup(e,a,i):n&&this.drawBorders(e,i),r&&this.drawControls(e,i),e.restore()},_setShadow:function(e){if(this.shadow){var i,a=this.shadow,n=this.canvas,r=n&&n.viewportTransform[0]||1,s=n&&n.viewportTransform[3]||1;i=a.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),n&&n._isRetinaScaling()&&(r*=t.devicePixelRatio,s*=t.devicePixelRatio),e.shadowColor=a.color,e.shadowBlur=a.blur*t.browserShadowBlurConstant*(r+s)*(i.scaleX+i.scaleY)/4,e.shadowOffsetX=a.offsetX*r*i.scaleX,e.shadowOffsetY=a.offsetY*s*i.scaleY}},_removeShadow:function(e){this.shadow&&(e.shadowColor="",e.shadowBlur=e.shadowOffsetX=e.shadowOffsetY=0)},_applyPatternGradientTransform:function(e,t){if(!t||!t.toLive)return{offsetX:0,offsetY:0};var i=t.gradientTransform||t.patternTransform,a=-this.width/2+t.offsetX||0,n=-this.height/2+t.offsetY||0;return"percentage"===t.gradientUnits?e.transform(this.width,0,0,this.height,a,n):e.transform(1,0,0,1,a,n),i&&e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),{offsetX:a,offsetY:n}},_renderPaintInOrder:function(e){"stroke"===this.paintFirst?(this._renderStroke(e),this._renderFill(e)):(this._renderFill(e),this._renderStroke(e))},_render:function(){},_renderFill:function(e){this.fill&&(e.save(),this._setFillStyles(e,this),"evenodd"===this.fillRule?e.fill("evenodd"):e.fill(),e.restore())},_renderStroke:function(e){if(this.stroke&&0!==this.strokeWidth){if(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(e),e.save(),this.strokeUniform&&this.group){var t=this.getObjectScaling();e.scale(1/t.scaleX,1/t.scaleY)}else this.strokeUniform&&e.scale(1/this.scaleX,1/this.scaleY);this._setLineDash(e,this.strokeDashArray),this._setStrokeStyles(e,this),e.stroke(),e.restore()}},_applyPatternForTransformedGradient:function(e,i){var a,n=this._limitCacheSize(this._getCacheCanvasDimensions()),r=t.util.createCanvasElement(),s=this.canvas.getRetinaScaling(),o=n.x/this.scaleX/s,l=n.y/this.scaleY/s;r.width=o,r.height=l,a=r.getContext("2d"),a.beginPath(),a.moveTo(0,0),a.lineTo(o,0),a.lineTo(o,l),a.lineTo(0,l),a.closePath(),a.translate(o/2,l/2),a.scale(n.zoomX/this.scaleX/s,n.zoomY/this.scaleY/s),this._applyPatternGradientTransform(a,i),a.fillStyle=i.toLive(e),a.fill(),e.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),e.scale(s*this.scaleX/n.zoomX,s*this.scaleY/n.zoomY),e.strokeStyle=a.createPattern(r,"no-repeat")},_findCenterFromElement:function(){return{x:this.left+this.width/2,y:this.top+this.height/2}},_assignTransformMatrixProps:function(){if(this.transformMatrix){var e=t.util.qrDecompose(this.transformMatrix);this.flipX=!1,this.flipY=!1,this.set("scaleX",e.scaleX),this.set("scaleY",e.scaleY),this.angle=e.angle,this.skewX=e.skewX,this.skewY=0}},_removeTransformMatrix:function(e){var i=this._findCenterFromElement();this.transformMatrix&&(this._assignTransformMatrixProps(),i=t.util.transformPoint(i,this.transformMatrix)),this.transformMatrix=null,e&&(this.scaleX*=e.scaleX,this.scaleY*=e.scaleY,this.cropX=e.cropX,this.cropY=e.cropY,i.x+=e.offsetLeft,i.y+=e.offsetTop,this.width=e.width,this.height=e.height),this.setPositionByOrigin(i,"center","center")},clone:function(e,i){var a=this.toObject(i);this.constructor.fromObject?this.constructor.fromObject(a,e):t.Object._fromObject("Object",a,e)},cloneAsImage:function(e,i){var a=this.toCanvasElement(i);return e&&e(new t.Image(a)),this},toCanvasElement:function(e){e||(e={});var i=t.util,a=i.saveObjectTransform(this),n=this.group,r=this.shadow,s=Math.abs,o=(e.multiplier||1)*(e.enableRetinaScaling?t.devicePixelRatio:1);delete this.group,e.withoutTransform&&i.resetObjectTransform(this),e.withoutShadow&&(this.shadow=null);var l,c,u,d,p=t.util.createCanvasElement(),f=this.getBoundingRect(!0,!0),A=this.shadow,h={x:0,y:0};A&&(c=A.blur,l=A.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),h.x=2*Math.round(s(A.offsetX)+c)*s(l.scaleX),h.y=2*Math.round(s(A.offsetY)+c)*s(l.scaleY)),u=f.width+h.x,d=f.height+h.y,p.width=Math.ceil(u),p.height=Math.ceil(d);var m=new t.StaticCanvas(p,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1});"jpeg"===e.format&&(m.backgroundColor="#fff"),this.setPositionByOrigin(new t.Point(m.width/2,m.height/2),"center","center");var g=this.canvas;m.add(this);var v=m.toCanvasElement(o||1,e);return this.shadow=r,this.set("canvas",g),n&&(this.group=n),this.set(a).setCoords(),m._objects=[],m.dispose(),m=null,v},toDataURL:function(e){return e||(e={}),t.util.toDataURL(this.toCanvasElement(e),e.format||"png",e.quality||1)},isType:function(e){return this.type===e},complexity:function(){return 1},toJSON:function(e){return this.toObject(e)},rotate:function(e){var t=("center"!==this.originX||"center"!==this.originY)&&this.centeredRotation;return t&&this._setOriginToCenter(),this.set("angle",e),t&&this._resetOrigin(),this},centerH:function(){return this.canvas&&this.canvas.centerObjectH(this),this},viewportCenterH:function(){return this.canvas&&this.canvas.viewportCenterObjectH(this),this},centerV:function(){return this.canvas&&this.canvas.centerObjectV(this),this},viewportCenterV:function(){return this.canvas&&this.canvas.viewportCenterObjectV(this),this},center:function(){return this.canvas&&this.canvas.centerObject(this),this},viewportCenter:function(){return this.canvas&&this.canvas.viewportCenterObject(this),this},getLocalPointer:function(e,i){i=i||this.canvas.getPointer(e);var a=new t.Point(i.x,i.y),n=this._getLeftTopCoords();return this.angle&&(a=t.util.rotatePoint(a,n,s(-this.angle))),{x:a.x-n.x,y:a.y-n.y}},_setupCompositeOperation:function(e){this.globalCompositeOperation&&(e.globalCompositeOperation=this.globalCompositeOperation)}}),t.util.createAccessors&&t.util.createAccessors(t.Object),i(t.Object.prototype,t.Observable),t.Object.NUM_FRACTION_DIGITS=2,t.Object._fromObject=function(e,i,n,r){var s=t[e];i=a(i,!0),t.util.enlivenPatterns([i.fill,i.stroke],(function(e){"undefined"!==typeof e[0]&&(i.fill=e[0]),"undefined"!==typeof e[1]&&(i.stroke=e[1]),t.util.enlivenObjects([i.clipPath],(function(e){i.clipPath=e[0];var t=r?new s(i[r],i):new s(i);n&&n(t)}))}))},t.Object.__uid=0)}(i),function(){var e=n.util.degreesToRadians,t={left:-.5,center:0,right:.5},i={top:-.5,center:0,bottom:.5};n.util.object.extend(n.Object.prototype,{translateToGivenOrigin:function(e,a,r,s,o){var l,c,u,d=e.x,p=e.y;return"string"===typeof a?a=t[a]:a-=.5,"string"===typeof s?s=t[s]:s-=.5,l=s-a,"string"===typeof r?r=i[r]:r-=.5,"string"===typeof o?o=i[o]:o-=.5,c=o-r,(l||c)&&(u=this._getTransformedDimensions(),d=e.x+l*u.x,p=e.y+c*u.y),new n.Point(d,p)},translateToCenterPoint:function(t,i,a){var r=this.translateToGivenOrigin(t,i,a,"center","center");return this.angle?n.util.rotatePoint(r,t,e(this.angle)):r},translateToOriginPoint:function(t,i,a){var r=this.translateToGivenOrigin(t,"center","center",i,a);return this.angle?n.util.rotatePoint(r,t,e(this.angle)):r},getCenterPoint:function(){var e=new n.Point(this.left,this.top);return this.translateToCenterPoint(e,this.originX,this.originY)},getPointByOrigin:function(e,t){var i=this.getCenterPoint();return this.translateToOriginPoint(i,e,t)},toLocalPoint:function(t,i,a){var r,s,o=this.getCenterPoint();return r="undefined"!==typeof i&&"undefined"!==typeof a?this.translateToGivenOrigin(o,"center","center",i,a):new n.Point(this.left,this.top),s=new n.Point(t.x,t.y),this.angle&&(s=n.util.rotatePoint(s,o,-e(this.angle))),s.subtractEquals(r)},setPositionByOrigin:function(e,t,i){var a=this.translateToCenterPoint(e,t,i),n=this.translateToOriginPoint(a,this.originX,this.originY);this.set("left",n.x),this.set("top",n.y)},adjustPosition:function(i){var a,r,s=e(this.angle),o=this.getScaledWidth(),l=n.util.cos(s)*o,c=n.util.sin(s)*o;a="string"===typeof this.originX?t[this.originX]:this.originX-.5,r="string"===typeof i?t[i]:i-.5,this.left+=l*(r-a),this.top+=c*(r-a),this.setCoords(),this.originX=i},_setOriginToCenter:function(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;var e=this.getCenterPoint();this.originX="center",this.originY="center",this.left=e.x,this.top=e.y},_resetOrigin:function(){var e=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX,this.originY=this._originalOriginY,this.left=e.x,this.top=e.y,this._originalOriginX=null,this._originalOriginY=null},_getLeftTopCoords:function(){return this.translateToOriginPoint(this.getCenterPoint(),"left","top")}})}(),function(){function e(e){return[new n.Point(e.tl.x,e.tl.y),new n.Point(e.tr.x,e.tr.y),new n.Point(e.br.x,e.br.y),new n.Point(e.bl.x,e.bl.y)]}var t=n.util,i=t.degreesToRadians,a=t.multiplyTransformMatrices,r=t.transformPoint;t.object.extend(n.Object.prototype,{oCoords:null,aCoords:null,lineCoords:null,ownMatrixCache:null,matrixCache:null,controls:{},_getCoords:function(e,t){return t?e?this.calcACoords():this.calcLineCoords():(this.aCoords&&this.lineCoords||this.setCoords(!0),e?this.aCoords:this.lineCoords)},getCoords:function(t,i){return e(this._getCoords(t,i))},intersectsWithRect:function(e,t,i,a){var r=this.getCoords(i,a),s=n.Intersection.intersectPolygonRectangle(r,e,t);return"Intersection"===s.status},intersectsWithObject:function(e,t,i){var a=n.Intersection.intersectPolygonPolygon(this.getCoords(t,i),e.getCoords(t,i));return"Intersection"===a.status||e.isContainedWithinObject(this,t,i)||this.isContainedWithinObject(e,t,i)},isContainedWithinObject:function(e,t,i){for(var a=this.getCoords(t,i),n=t?e.aCoords:e.lineCoords,r=0,s=e._getImageLines(n);r<4;r++)if(!e.containsPoint(a[r],s))return!1;return!0},isContainedWithinRect:function(e,t,i,a){var n=this.getBoundingRect(i,a);return n.left>=e.x&&n.left+n.width<=t.x&&n.top>=e.y&&n.top+n.height<=t.y},containsPoint:function(e,t,i,a){var n=this._getCoords(i,a),r=(t=t||this._getImageLines(n),this._findCrossPoints(e,t));return 0!==r&&r%2===1},isOnScreen:function(e){if(!this.canvas)return!1;var t=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br,a=this.getCoords(!0,e);return!!a.some((function(e){return e.x<=i.x&&e.x>=t.x&&e.y<=i.y&&e.y>=t.y}))||(!!this.intersectsWithRect(t,i,!0,e)||this._containsCenterOfCanvas(t,i,e))},_containsCenterOfCanvas:function(e,t,i){var a={x:(e.x+t.x)/2,y:(e.y+t.y)/2};return!!this.containsPoint(a,null,!0,i)},isPartiallyOnScreen:function(e){if(!this.canvas)return!1;var t=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br;if(this.intersectsWithRect(t,i,!0,e))return!0;var a=this.getCoords(!0,e).every((function(e){return(e.x>=i.x||e.x<=t.x)&&(e.y>=i.y||e.y<=t.y)}));return a&&this._containsCenterOfCanvas(t,i,e)},_getImageLines:function(e){var t={topline:{o:e.tl,d:e.tr},rightline:{o:e.tr,d:e.br},bottomline:{o:e.br,d:e.bl},leftline:{o:e.bl,d:e.tl}};return t},_findCrossPoints:function(e,t){var i,a,n,r,s,o,l=0;for(var c in t)if(o=t[c],!(o.o.y<e.y&&o.d.y<e.y)&&!(o.o.y>=e.y&&o.d.y>=e.y)&&(o.o.x===o.d.x&&o.o.x>=e.x?s=o.o.x:(i=0,a=(o.d.y-o.o.y)/(o.d.x-o.o.x),n=e.y-i*e.x,r=o.o.y-a*o.o.x,s=-(n-r)/(i-a)),s>=e.x&&(l+=1),2===l))break;return l},getBoundingRect:function(e,i){var a=this.getCoords(e,i);return t.makeBoundingBoxFromPoints(a)},getScaledWidth:function(){return this._getTransformedDimensions().x},getScaledHeight:function(){return this._getTransformedDimensions().y},_constrainScale:function(e){return Math.abs(e)<this.minScaleLimit?e<0?-this.minScaleLimit:this.minScaleLimit:0===e?1e-4:e},scale:function(e){return this._set("scaleX",e),this._set("scaleY",e),this.setCoords()},scaleToWidth:function(e,t){var i=this.getBoundingRect(t).width/this.getScaledWidth();return this.scale(e/this.width/i)},scaleToHeight:function(e,t){var i=this.getBoundingRect(t).height/this.getScaledHeight();return this.scale(e/this.height/i)},calcCoords:function(e){return e?this.calcACoords():this.calcOCoords()},calcLineCoords:function(){var e=this.getViewportTransform(),a=this.padding,n=i(this.angle),s=t.cos(n),o=t.sin(n),l=s*a,c=o*a,u=l+c,d=l-c,p=this.calcACoords(),f={tl:r(p.tl,e),tr:r(p.tr,e),bl:r(p.bl,e),br:r(p.br,e)};return a&&(f.tl.x-=d,f.tl.y-=u,f.tr.x+=u,f.tr.y-=d,f.bl.x-=u,f.bl.y+=d,f.br.x+=d,f.br.y+=u),f},calcOCoords:function(){var e=this._calcRotateMatrix(),t=this._calcTranslateMatrix(),i=this.getViewportTransform(),n=a(i,t),r=a(n,e),s=(r=a(r,[1/i[0],0,0,1/i[3],0,0]),this._calculateCurrentDimensions()),o={};return this.forEachControl((function(e,t,i){o[t]=e.positionHandler(s,r,i)})),o},calcACoords:function(){var e=this._calcRotateMatrix(),t=this._calcTranslateMatrix(),i=a(t,e),n=this._getTransformedDimensions(),s=n.x/2,o=n.y/2;return{tl:r({x:-s,y:-o},i),tr:r({x:s,y:-o},i),bl:r({x:-s,y:o},i),br:r({x:s,y:o},i)}},setCoords:function(e){return this.aCoords=this.calcACoords(),this.lineCoords=this.group?this.aCoords:this.calcLineCoords(),e||(this.oCoords=this.calcOCoords(),this._setCornerCoords&&this._setCornerCoords()),this},_calcRotateMatrix:function(){return t.calcRotateMatrix(this)},_calcTranslateMatrix:function(){var e=this.getCenterPoint();return[1,0,0,1,e.x,e.y]},transformMatrixKey:function(e){var t="_",i="";return!e&&this.group&&(i=this.group.transformMatrixKey(e)+t),i+this.top+t+this.left+t+this.scaleX+t+this.scaleY+t+this.skewX+t+this.skewY+t+this.angle+t+this.originX+t+this.originY+t+this.width+t+this.height+t+this.strokeWidth+this.flipX+this.flipY},calcTransformMatrix:function(e){var t=this.calcOwnMatrix();if(e||!this.group)return t;var i=this.transformMatrixKey(e),n=this.matrixCache||(this.matrixCache={});return n.key===i?n.value:(this.group&&(t=a(this.group.calcTransformMatrix(!1),t)),n.key=i,n.value=t,t)},calcOwnMatrix:function(){var e=this.transformMatrixKey(!0),i=this.ownMatrixCache||(this.ownMatrixCache={});if(i.key===e)return i.value;var a=this._calcTranslateMatrix(),n={angle:this.angle,translateX:a[4],translateY:a[5],scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY};return i.key=e,i.value=t.composeMatrix(n),i.value},_calcDimensionsTransformMatrix:function(e,i,a){return t.calcDimensionsMatrix({skewX:e,skewY:i,scaleX:this.scaleX*(a&&this.flipX?-1:1),scaleY:this.scaleY*(a&&this.flipY?-1:1)})},_getNonTransformedDimensions:function(){var e=this.strokeWidth,t=this.width+e,i=this.height+e;return{x:t,y:i}},_getTransformedDimensions:function(e,i){"undefined"===typeof e&&(e=this.skewX),"undefined"===typeof i&&(i=this.skewY);var a,n,r,s=0===e&&0===i;if(this.strokeUniform?(n=this.width,r=this.height):(a=this._getNonTransformedDimensions(),n=a.x,r=a.y),s)return this._finalizeDimensions(n*this.scaleX,r*this.scaleY);var o=t.sizeAfterTransform(n,r,{scaleX:this.scaleX,scaleY:this.scaleY,skewX:e,skewY:i});return this._finalizeDimensions(o.x,o.y)},_finalizeDimensions:function(e,t){return this.strokeUniform?{x:e+this.strokeWidth,y:t+this.strokeWidth}:{x:e,y:t}},_calculateCurrentDimensions:function(){var e=this.getViewportTransform(),t=this._getTransformedDimensions(),i=r(t,e,!0);return i.scalarAdd(2*this.padding)}})}(),n.util.object.extend(n.Object.prototype,{sendToBack:function(){return this.group?n.StaticCanvas.prototype.sendToBack.call(this.group,this):this.canvas&&this.canvas.sendToBack(this),this},bringToFront:function(){return this.group?n.StaticCanvas.prototype.bringToFront.call(this.group,this):this.canvas&&this.canvas.bringToFront(this),this},sendBackwards:function(e){return this.group?n.StaticCanvas.prototype.sendBackwards.call(this.group,this,e):this.canvas&&this.canvas.sendBackwards(this,e),this},bringForward:function(e){return this.group?n.StaticCanvas.prototype.bringForward.call(this.group,this,e):this.canvas&&this.canvas.bringForward(this,e),this},moveTo:function(e){return this.group&&"activeSelection"!==this.group.type?n.StaticCanvas.prototype.moveTo.call(this.group,this,e):this.canvas&&this.canvas.moveTo(this,e),this}}),function(){function e(e,t){if(t){if(t.toLive)return e+": url(#SVGID_"+t.id+"); ";var i=new n.Color(t),a=e+": "+i.toRgb()+"; ",r=i.getAlpha();return 1!==r&&(a+=e+"-opacity: "+r.toString()+"; "),a}return e+": none; "}var t=n.util.toFixed;n.util.object.extend(n.Object.prototype,{getSvgStyles:function(t){var i=this.fillRule?this.fillRule:"nonzero",a=this.strokeWidth?this.strokeWidth:"0",n=this.strokeDashArray?this.strokeDashArray.join(" "):"none",r=this.strokeDashOffset?this.strokeDashOffset:"0",s=this.strokeLineCap?this.strokeLineCap:"butt",o=this.strokeLineJoin?this.strokeLineJoin:"miter",l=this.strokeMiterLimit?this.strokeMiterLimit:"4",c="undefined"!==typeof this.opacity?this.opacity:"1",u=this.visible?"":" visibility: hidden;",d=t?"":this.getSvgFilter(),p=e("fill",this.fill),f=e("stroke",this.stroke);return[f,"stroke-width: ",a,"; ","stroke-dasharray: ",n,"; ","stroke-linecap: ",s,"; ","stroke-dashoffset: ",r,"; ","stroke-linejoin: ",o,"; ","stroke-miterlimit: ",l,"; ",p,"fill-rule: ",i,"; ","opacity: ",c,";",d,u].join("")},getSvgSpanStyles:function(t,i){var a="; ",n=t.fontFamily?"font-family: "+(-1===t.fontFamily.indexOf("'")&&-1===t.fontFamily.indexOf('"')?"'"+t.fontFamily+"'":t.fontFamily)+a:"",r=t.strokeWidth?"stroke-width: "+t.strokeWidth+a:"",s=(n=n,t.fontSize?"font-size: "+t.fontSize+"px"+a:""),o=t.fontStyle?"font-style: "+t.fontStyle+a:"",l=t.fontWeight?"font-weight: "+t.fontWeight+a:"",c=t.fill?e("fill",t.fill):"",u=t.stroke?e("stroke",t.stroke):"",d=this.getSvgTextDecoration(t),p=t.deltaY?"baseline-shift: "+-t.deltaY+"; ":"";return d&&(d="text-decoration: "+d+a),[u,r,n,s,o,l,d,c,p,i?"white-space: pre; ":""].join("")},getSvgTextDecoration:function(e){return["overline","underline","line-through"].filter((function(t){return e[t.replace("-","")]})).join(" ")},getSvgFilter:function(){return this.shadow?"filter: url(#SVGID_"+this.shadow.id+");":""},getSvgCommons:function(){return[this.id?'id="'+this.id+'" ':"",this.clipPath?'clip-path="url(#'+this.clipPath.clipPathId+')" ':""].join("")},getSvgTransform:function(e,t){var i=e?this.calcTransformMatrix():this.calcOwnMatrix(),a='transform="'+n.util.matrixToSVG(i);return a+(t||"")+'" '},_setSVGBg:function(e){if(this.backgroundColor){var i=n.Object.NUM_FRACTION_DIGITS;e.push("\t\t<rect ",this._getFillAttributes(this.backgroundColor),' x="',t(-this.width/2,i),'" y="',t(-this.height/2,i),'" width="',t(this.width,i),'" height="',t(this.height,i),'"></rect>\n')}},toSVG:function(e){return this._createBaseSVGMarkup(this._toSVG(e),{reviver:e})},toClipPathSVG:function(e){return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(e),{reviver:e})},_createBaseClipPathSVGMarkup:function(e,t){t=t||{};var i=t.reviver,a=t.additionalTransform||"",n=[this.getSvgTransform(!0,a),this.getSvgCommons()].join(""),r=e.indexOf("COMMON_PARTS");return e[r]=n,i?i(e.join("")):e.join("")},_createBaseSVGMarkup:function(e,t){t=t||{};var i,a,r=t.noStyle,s=t.reviver,o=r?"":'style="'+this.getSvgStyles()+'" ',l=t.withShadow?'style="'+this.getSvgFilter()+'" ':"",c=this.clipPath,u=this.strokeUniform?'vector-effect="non-scaling-stroke" ':"",d=c&&c.absolutePositioned,p=this.stroke,f=this.fill,A=this.shadow,h=[],m=e.indexOf("COMMON_PARTS"),g=t.additionalTransform;return c&&(c.clipPathId="CLIPPATH_"+n.Object.__uid++,a='<clipPath id="'+c.clipPathId+'" >\n'+c.toClipPathSVG(s)+"</clipPath>\n"),d&&h.push("<g ",l,this.getSvgCommons()," >\n"),h.push("<g ",this.getSvgTransform(!1),d?"":l+this.getSvgCommons()," >\n"),i=[o,u,r?"":this.addPaintOrder()," ",g?'transform="'+g+'" ':""].join(""),e[m]=i,f&&f.toLive&&h.push(f.toSVG(this)),p&&p.toLive&&h.push(p.toSVG(this)),A&&h.push(A.toSVG(this)),c&&h.push(a),h.push(e.join("")),h.push("</g>\n"),d&&h.push("</g>\n"),s?s(h.join("")):h.join("")},addPaintOrder:function(){return"fill"!==this.paintFirst?' paint-order="'+this.paintFirst+'" ':""}})}(),function(){var e=n.util.object.extend,t="stateProperties";function i(t,i,a){var n={},r=!0;a.forEach((function(e){n[e]=t[e]})),e(t[i],n,r)}function a(e,t,i){if(e===t)return!0;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(!a(e[n],t[n]))return!1;return!0}if(e&&"object"===typeof e){var s,o=Object.keys(e);if(!t||"object"!==typeof t||!i&&o.length!==Object.keys(t).length)return!1;for(n=0,r=o.length;n<r;n++)if(s=o[n],"canvas"!==s&&"group"!==s&&!a(e[s],t[s]))return!1;return!0}}n.util.object.extend(n.Object.prototype,{hasStateChanged:function(e){e=e||t;var i="_"+e;return Object.keys(this[i]).length<this[e].length||!a(this[i],this,!0)},saveState:function(e){var a=e&&e.propertySet||t,n="_"+a;return this[n]?(i(this,n,this[a]),e&&e.stateProperties&&i(this,n,e.stateProperties),this):this.setupState(e)},setupState:function(e){e=e||{};var i=e.propertySet||t;return e.propertySet=i,this["_"+i]={},this.saveState(e),this}})}(),function(){var e=n.util.degreesToRadians;n.util.object.extend(n.Object.prototype,{_findTargetCorner:function(e,t){if(!this.hasControls||this.group||!this.canvas||this.canvas._activeObject!==this)return!1;var i,a,n,r=e.x,s=e.y,o=Object.keys(this.oCoords),l=o.length-1;for(this.__corner=0;l>=0;l--)if(n=o[l],this.isControlVisible(n)&&(a=this._getImageLines(t?this.oCoords[n].touchCorner:this.oCoords[n].corner),i=this._findCrossPoints({x:r,y:s},a),0!==i&&i%2===1))return this.__corner=n,n;return!1},forEachControl:function(e){for(var t in this.controls)e(this.controls[t],t,this)},_setCornerCoords:function(){var e=this.oCoords;for(var t in e){var i=this.controls[t];e[t].corner=i.calcCornerCoords(this.angle,this.cornerSize,e[t].x,e[t].y,!1),e[t].touchCorner=i.calcCornerCoords(this.angle,this.touchCornerSize,e[t].x,e[t].y,!0)}},drawSelectionBackground:function(t){if(!this.selectionBackgroundColor||this.canvas&&!this.canvas.interactive||this.canvas&&this.canvas._activeObject!==this)return this;t.save();var i=this.getCenterPoint(),a=this._calculateCurrentDimensions(),n=this.canvas.viewportTransform;return t.translate(i.x,i.y),t.scale(1/n[0],1/n[3]),t.rotate(e(this.angle)),t.fillStyle=this.selectionBackgroundColor,t.fillRect(-a.x/2,-a.y/2,a.x,a.y),t.restore(),this},drawBorders:function(e,t){t=t||{};var i=this._calculateCurrentDimensions(),a=this.borderScaleFactor,n=i.x+a,r=i.y+a,s="undefined"!==typeof t.hasControls?t.hasControls:this.hasControls,o=!1;return e.save(),e.strokeStyle=t.borderColor||this.borderColor,this._setLineDash(e,t.borderDashArray||this.borderDashArray),e.strokeRect(-n/2,-r/2,n,r),s&&(e.beginPath(),this.forEachControl((function(t,i,a){t.withConnection&&t.getVisibility(a,i)&&(o=!0,e.moveTo(t.x*n,t.y*r),e.lineTo(t.x*n+t.offsetX,t.y*r+t.offsetY))})),o&&e.stroke()),e.restore(),this},drawBordersInGroup:function(e,t,i){i=i||{};var a=n.util.sizeAfterTransform(this.width,this.height,t),r=this.strokeWidth,s=this.strokeUniform,o=this.borderScaleFactor,l=a.x+r*(s?this.canvas.getZoom():t.scaleX)+o,c=a.y+r*(s?this.canvas.getZoom():t.scaleY)+o;return e.save(),this._setLineDash(e,i.borderDashArray||this.borderDashArray),e.strokeStyle=i.borderColor||this.borderColor,e.strokeRect(-l/2,-c/2,l,c),e.restore(),this},drawControls:function(e,t){t=t||{},e.save();var i,a,r=this.canvas.getRetinaScaling();return e.setTransform(r,0,0,r,0,0),e.strokeStyle=e.fillStyle=t.cornerColor||this.cornerColor,this.transparentCorners||(e.strokeStyle=t.cornerStrokeColor||this.cornerStrokeColor),this._setLineDash(e,t.cornerDashArray||this.cornerDashArray),this.setCoords(),this.group&&(i=this.group.calcTransformMatrix()),this.forEachControl((function(r,s,o){a=o.oCoords[s],r.getVisibility(o,s)&&(i&&(a=n.util.transformPoint(a,i)),r.render(e,a.x,a.y,t,o))})),e.restore(),this},isControlVisible:function(e){return this.controls[e]&&this.controls[e].getVisibility(this,e)},setControlVisible:function(e,t){return this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[e]=t,this},setControlsVisibility:function(e){for(var t in e||(e={}),e)this.setControlVisible(t,e[t]);return this},onDeselect:function(){},onSelect:function(){}})}(),n.util.object.extend(n.StaticCanvas.prototype,{FX_DURATION:500,fxCenterObjectH:function(e,t){t=t||{};var i=function(){},a=t.onComplete||i,r=t.onChange||i,s=this;return n.util.animate({startValue:e.left,endValue:this.getCenter().left,duration:this.FX_DURATION,onChange:function(t){e.set("left",t),s.requestRenderAll(),r()},onComplete:function(){e.setCoords(),a()}}),this},fxCenterObjectV:function(e,t){t=t||{};var i=function(){},a=t.onComplete||i,r=t.onChange||i,s=this;return n.util.animate({startValue:e.top,endValue:this.getCenter().top,duration:this.FX_DURATION,onChange:function(t){e.set("top",t),s.requestRenderAll(),r()},onComplete:function(){e.setCoords(),a()}}),this},fxRemove:function(e,t){t=t||{};var i=function(){},a=t.onComplete||i,r=t.onChange||i,s=this;return n.util.animate({startValue:e.opacity,endValue:0,duration:this.FX_DURATION,onChange:function(t){e.set("opacity",t),s.requestRenderAll(),r()},onComplete:function(){s.remove(e),a()}}),this}}),n.util.object.extend(n.Object.prototype,{animate:function(){if(arguments[0]&&"object"===typeof arguments[0]){var e,t,i=[];for(e in arguments[0])i.push(e);for(var a=0,n=i.length;a<n;a++)e=i[a],t=a!==n-1,this._animate(e,arguments[0][e],arguments[1],t)}else this._animate.apply(this,arguments);return this},_animate:function(e,t,i,a){var r,s=this;t=t.toString(),i=i?n.util.object.clone(i):{},~e.indexOf(".")&&(r=e.split("."));var o=s.colorProperties.indexOf(e)>-1||r&&s.colorProperties.indexOf(r[1])>-1,l=r?this.get(r[0])[r[1]]:this.get(e);"from"in i||(i.from=l),o||(t=~t.indexOf("=")?l+parseFloat(t.replace("=","")):parseFloat(t));var c={startValue:i.from,endValue:t,byValue:i.by,easing:i.easing,duration:i.duration,abort:i.abort&&function(e,t,a){return i.abort.call(s,e,t,a)},onChange:function(t,n,o){r?s[r[0]][r[1]]=t:s.set(e,t),a||i.onChange&&i.onChange(t,n,o)},onComplete:function(e,t,n){a||(s.setCoords(),i.onComplete&&i.onComplete(e,t,n))}};return o?n.util.animateColor(c.startValue,c.endValue,c.duration,c):n.util.animate(c)}}),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,a=t.util.object.clone,n={x1:1,x2:1,y1:1,y2:1};function r(e,t){var i=e.origin,a=e.axis1,n=e.axis2,r=e.dimension,s=t.nearest,o=t.center,l=t.farthest;return function(){switch(this.get(i)){case s:return Math.min(this.get(a),this.get(n));case o:return Math.min(this.get(a),this.get(n))+.5*this.get(r);case l:return Math.max(this.get(a),this.get(n))}}}t.Line?t.warn("fabric.Line is already defined"):(t.Line=t.util.createClass(t.Object,{type:"line",x1:0,y1:0,x2:0,y2:0,cacheProperties:t.Object.prototype.cacheProperties.concat("x1","x2","y1","y2"),initialize:function(e,t){e||(e=[0,0,0,0]),this.callSuper("initialize",t),this.set("x1",e[0]),this.set("y1",e[1]),this.set("x2",e[2]),this.set("y2",e[3]),this._setWidthHeight(t)},_setWidthHeight:function(e){e||(e={}),this.width=Math.abs(this.x2-this.x1),this.height=Math.abs(this.y2-this.y1),this.left="left"in e?e.left:this._getLeftToOriginX(),this.top="top"in e?e.top:this._getTopToOriginY()},_set:function(e,t){return this.callSuper("_set",e,t),"undefined"!==typeof n[e]&&this._setWidthHeight(),this},_getLeftToOriginX:r({origin:"originX",axis1:"x1",axis2:"x2",dimension:"width"},{nearest:"left",center:"center",farthest:"right"}),_getTopToOriginY:r({origin:"originY",axis1:"y1",axis2:"y2",dimension:"height"},{nearest:"top",center:"center",farthest:"bottom"}),_render:function(e){e.beginPath();var t=this.calcLinePoints();e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.lineWidth=this.strokeWidth;var i=e.strokeStyle;e.strokeStyle=this.stroke||e.fillStyle,this.stroke&&this._renderStroke(e),e.strokeStyle=i},_findCenterFromElement:function(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}},toObject:function(e){return i(this.callSuper("toObject",e),this.calcLinePoints())},_getNonTransformedDimensions:function(){var e=this.callSuper("_getNonTransformedDimensions");return"butt"===this.strokeLineCap&&(0===this.width&&(e.y-=this.strokeWidth),0===this.height&&(e.x-=this.strokeWidth)),e},calcLinePoints:function(){var e=this.x1<=this.x2?-1:1,t=this.y1<=this.y2?-1:1,i=e*this.width*.5,a=t*this.height*.5,n=e*this.width*-.5,r=t*this.height*-.5;return{x1:i,x2:n,y1:a,y2:r}},_toSVG:function(){var e=this.calcLinePoints();return["<line ","COMMON_PARTS",'x1="',e.x1,'" y1="',e.y1,'" x2="',e.x2,'" y2="',e.y2,'" />\n']}}),t.Line.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x1 y1 x2 y2".split(" ")),t.Line.fromElement=function(e,a,n){n=n||{};var r=t.parseAttributes(e,t.Line.ATTRIBUTE_NAMES),s=[r.x1||0,r.y1||0,r.x2||0,r.y2||0];a(new t.Line(s,i(r,n)))},t.Line.fromObject=function(e,i){function n(e){delete e.points,i&&i(e)}var r=a(e,!0);r.points=[e.x1,e.y1,e.x2,e.y2],t.Object._fromObject("Line",r,n,"points")})}(i),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=Math.PI;function a(e){return"radius"in e&&e.radius>=0}t.Circle?t.warn("fabric.Circle is already defined."):(t.Circle=t.util.createClass(t.Object,{type:"circle",radius:0,startAngle:0,endAngle:2*i,cacheProperties:t.Object.prototype.cacheProperties.concat("radius","startAngle","endAngle"),_set:function(e,t){return this.callSuper("_set",e,t),"radius"===e&&this.setRadius(t),this},toObject:function(e){return this.callSuper("toObject",["radius","startAngle","endAngle"].concat(e))},_toSVG:function(){var e,a=0,n=0,r=(this.endAngle-this.startAngle)%(2*i);if(0===r)e=["<circle ","COMMON_PARTS",'cx="'+a+'" cy="'+n+'" ','r="',this.radius,'" />\n'];else{var s=t.util.cos(this.startAngle)*this.radius,o=t.util.sin(this.startAngle)*this.radius,l=t.util.cos(this.endAngle)*this.radius,c=t.util.sin(this.endAngle)*this.radius,u=r>i?"1":"0";e=['<path d="M '+s+" "+o," A "+this.radius+" "+this.radius," 0 ",+u+" 1"," "+l+" "+c,'" ',"COMMON_PARTS"," />\n"]}return e},_render:function(e){e.beginPath(),e.arc(0,0,this.radius,this.startAngle,this.endAngle,!1),this._renderPaintInOrder(e)},getRadiusX:function(){return this.get("radius")*this.get("scaleX")},getRadiusY:function(){return this.get("radius")*this.get("scaleY")},setRadius:function(e){return this.radius=e,this.set("width",2*e).set("height",2*e)}}),t.Circle.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("cx cy r".split(" ")),t.Circle.fromElement=function(e,i){var n=t.parseAttributes(e,t.Circle.ATTRIBUTE_NAMES);if(!a(n))throw new Error("value of `r` attribute is required and can not be negative");n.left=(n.left||0)-n.radius,n.top=(n.top||0)-n.radius,i(new t.Circle(n))},t.Circle.fromObject=function(e,i){t.Object._fromObject("Circle",e,i)})}(i),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Triangle?t.warn("fabric.Triangle is already defined"):(t.Triangle=t.util.createClass(t.Object,{type:"triangle",width:100,height:100,_render:function(e){var t=this.width/2,i=this.height/2;e.beginPath(),e.moveTo(-t,i),e.lineTo(0,-i),e.lineTo(t,i),e.closePath(),this._renderPaintInOrder(e)},_toSVG:function(){var e=this.width/2,t=this.height/2,i=[-e+" "+t,"0 "+-t,e+" "+t].join(",");return["<polygon ","COMMON_PARTS",'points="',i,'" />']}}),t.Triangle.fromObject=function(e,i){return t.Object._fromObject("Triangle",e,i)})}(i),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=2*Math.PI;t.Ellipse?t.warn("fabric.Ellipse is already defined."):(t.Ellipse=t.util.createClass(t.Object,{type:"ellipse",rx:0,ry:0,cacheProperties:t.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(e){this.callSuper("initialize",e),this.set("rx",e&&e.rx||0),this.set("ry",e&&e.ry||0)},_set:function(e,t){switch(this.callSuper("_set",e,t),e){case"rx":this.rx=t,this.set("width",2*t);break;case"ry":this.ry=t,this.set("height",2*t);break}return this},getRx:function(){return this.get("rx")*this.get("scaleX")},getRy:function(){return this.get("ry")*this.get("scaleY")},toObject:function(e){return this.callSuper("toObject",["rx","ry"].concat(e))},_toSVG:function(){return["<ellipse ","COMMON_PARTS",'cx="0" cy="0" ','rx="',this.rx,'" ry="',this.ry,'" />\n']},_render:function(e){e.beginPath(),e.save(),e.transform(1,0,0,this.ry/this.rx,0,0),e.arc(0,0,this.rx,0,i,!1),e.restore(),this._renderPaintInOrder(e)}}),t.Ellipse.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("cx cy rx ry".split(" ")),t.Ellipse.fromElement=function(e,i){var a=t.parseAttributes(e,t.Ellipse.ATTRIBUTE_NAMES);a.left=(a.left||0)-a.rx,a.top=(a.top||0)-a.ry,i(new t.Ellipse(a))},t.Ellipse.fromObject=function(e,i){t.Object._fromObject("Ellipse",e,i)})}(i),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend;t.Rect?t.warn("fabric.Rect is already defined"):(t.Rect=t.util.createClass(t.Object,{stateProperties:t.Object.prototype.stateProperties.concat("rx","ry"),type:"rect",rx:0,ry:0,cacheProperties:t.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(e){this.callSuper("initialize",e),this._initRxRy()},_initRxRy:function(){this.rx&&!this.ry?this.ry=this.rx:this.ry&&!this.rx&&(this.rx=this.ry)},_render:function(e){var t=this.rx?Math.min(this.rx,this.width/2):0,i=this.ry?Math.min(this.ry,this.height/2):0,a=this.width,n=this.height,r=-this.width/2,s=-this.height/2,o=0!==t||0!==i,l=.4477152502;e.beginPath(),e.moveTo(r+t,s),e.lineTo(r+a-t,s),o&&e.bezierCurveTo(r+a-l*t,s,r+a,s+l*i,r+a,s+i),e.lineTo(r+a,s+n-i),o&&e.bezierCurveTo(r+a,s+n-l*i,r+a-l*t,s+n,r+a-t,s+n),e.lineTo(r+t,s+n),o&&e.bezierCurveTo(r+l*t,s+n,r,s+n-l*i,r,s+n-i),e.lineTo(r,s+i),o&&e.bezierCurveTo(r,s+l*i,r+l*t,s,r+t,s),e.closePath(),this._renderPaintInOrder(e)},toObject:function(e){return this.callSuper("toObject",["rx","ry"].concat(e))},_toSVG:function(){var e=-this.width/2,t=-this.height/2;return["<rect ","COMMON_PARTS",'x="',e,'" y="',t,'" rx="',this.rx,'" ry="',this.ry,'" width="',this.width,'" height="',this.height,'" />\n']}}),t.Rect.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y rx ry width height".split(" ")),t.Rect.fromElement=function(e,a,n){if(!e)return a(null);n=n||{};var r=t.parseAttributes(e,t.Rect.ATTRIBUTE_NAMES);r.left=r.left||0,r.top=r.top||0,r.height=r.height||0,r.width=r.width||0;var s=new t.Rect(i(n?t.util.object.clone(n):{},r));s.visible=s.visible&&s.width>0&&s.height>0,a(s)},t.Rect.fromObject=function(e,i){return t.Object._fromObject("Rect",e,i)})}(i),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,a=t.util.array.min,n=t.util.array.max,r=t.util.toFixed;t.Polyline?t.warn("fabric.Polyline is already defined"):(t.Polyline=t.util.createClass(t.Object,{type:"polyline",points:null,cacheProperties:t.Object.prototype.cacheProperties.concat("points"),initialize:function(e,t){t=t||{},this.points=e||[],this.callSuper("initialize",t),this._setPositionDimensions(t)},_setPositionDimensions:function(e){var t,i=this._calcDimensions(e);this.width=i.width,this.height=i.height,e.fromSVG||(t=this.translateToGivenOrigin({x:i.left-this.strokeWidth/2,y:i.top-this.strokeWidth/2},"left","top",this.originX,this.originY)),"undefined"===typeof e.left&&(this.left=e.fromSVG?i.left:t.x),"undefined"===typeof e.top&&(this.top=e.fromSVG?i.top:t.y),this.pathOffset={x:i.left+this.width/2,y:i.top+this.height/2}},_calcDimensions:function(){var e=this.points,t=a(e,"x")||0,i=a(e,"y")||0,r=n(e,"x")||0,s=n(e,"y")||0,o=r-t,l=s-i;return{left:t,top:i,width:o,height:l}},toObject:function(e){return i(this.callSuper("toObject",e),{points:this.points.concat()})},_toSVG:function(){for(var e=[],i=this.pathOffset.x,a=this.pathOffset.y,n=t.Object.NUM_FRACTION_DIGITS,s=0,o=this.points.length;s<o;s++)e.push(r(this.points[s].x-i,n),",",r(this.points[s].y-a,n)," ");return["<"+this.type+" ","COMMON_PARTS",'points="',e.join(""),'" />\n']},commonRender:function(e){var t,i=this.points.length,a=this.pathOffset.x,n=this.pathOffset.y;if(!i||isNaN(this.points[i-1].y))return!1;e.beginPath(),e.moveTo(this.points[0].x-a,this.points[0].y-n);for(var r=0;r<i;r++)t=this.points[r],e.lineTo(t.x-a,t.y-n);return!0},_render:function(e){this.commonRender(e)&&this._renderPaintInOrder(e)},complexity:function(){return this.get("points").length}}),t.Polyline.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(),t.Polyline.fromElementGenerator=function(e){return function(a,n,r){if(!a)return n(null);r||(r={});var s=t.parsePointsAttribute(a.getAttribute("points")),o=t.parseAttributes(a,t[e].ATTRIBUTE_NAMES);o.fromSVG=!0,n(new t[e](s,i(o,r)))}},t.Polyline.fromElement=t.Polyline.fromElementGenerator("Polyline"),t.Polyline.fromObject=function(e,i){return t.Object._fromObject("Polyline",e,i,"points")})}(i),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Polygon?t.warn("fabric.Polygon is already defined"):(t.Polygon=t.util.createClass(t.Polyline,{type:"polygon",_render:function(e){this.commonRender(e)&&(e.closePath(),this._renderPaintInOrder(e))}}),t.Polygon.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(),t.Polygon.fromElement=t.Polyline.fromElementGenerator("Polygon"),t.Polygon.fromObject=function(e,i){t.Object._fromObject("Polygon",e,i,"points")})}(i),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.array.min,a=t.util.array.max,n=t.util.object.extend,r=Object.prototype.toString,s=t.util.toFixed;t.Path?t.warn("fabric.Path is already defined"):(t.Path=t.util.createClass(t.Object,{type:"path",path:null,cacheProperties:t.Object.prototype.cacheProperties.concat("path","fillRule"),stateProperties:t.Object.prototype.stateProperties.concat("path"),initialize:function(e,i){i=i||{},this.callSuper("initialize",i),e||(e=[]);var a="[object Array]"===r.call(e);this.path=t.util.makePathSimpler(a?e:t.util.parsePath(e)),this.path&&t.Polyline.prototype._setPositionDimensions.call(this,i)},_renderPathCommands:function(e){var t,i=0,a=0,n=0,r=0,s=0,o=0,l=-this.pathOffset.x,c=-this.pathOffset.y;e.beginPath();for(var u=0,d=this.path.length;u<d;++u)switch(t=this.path[u],t[0]){case"L":n=t[1],r=t[2],e.lineTo(n+l,r+c);break;case"M":n=t[1],r=t[2],i=n,a=r,e.moveTo(n+l,r+c);break;case"C":n=t[5],r=t[6],s=t[3],o=t[4],e.bezierCurveTo(t[1]+l,t[2]+c,s+l,o+c,n+l,r+c);break;case"Q":e.quadraticCurveTo(t[1]+l,t[2]+c,t[3]+l,t[4]+c),n=t[3],r=t[4],s=t[1],o=t[2];break;case"z":case"Z":n=i,r=a,e.closePath();break}},_render:function(e){this._renderPathCommands(e),this._renderPaintInOrder(e)},toString:function(){return"#<fabric.Path ("+this.complexity()+'): { "top": '+this.top+', "left": '+this.left+" }>"},toObject:function(e){return n(this.callSuper("toObject",e),{path:this.path.map((function(e){return e.slice()}))})},toDatalessObject:function(e){var t=this.toObject(["sourcePath"].concat(e));return t.sourcePath&&delete t.path,t},_toSVG:function(){var e=t.util.joinPath(this.path);return["<path ","COMMON_PARTS",'d="',e,'" stroke-linecap="round" ',"/>\n"]},_getOffsetTransform:function(){var e=t.Object.NUM_FRACTION_DIGITS;return" translate("+s(-this.pathOffset.x,e)+", "+s(-this.pathOffset.y,e)+")"},toClipPathSVG:function(e){var t=this._getOffsetTransform();return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})},toSVG:function(e){var t=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})},complexity:function(){return this.path.length},_calcDimensions:function(){for(var e,n,r=[],s=[],o=0,l=0,c=0,u=0,d=0,p=this.path.length;d<p;++d){switch(e=this.path[d],e[0]){case"L":c=e[1],u=e[2],n=[];break;case"M":c=e[1],u=e[2],o=c,l=u,n=[];break;case"C":n=t.util.getBoundsOfCurve(c,u,e[1],e[2],e[3],e[4],e[5],e[6]),c=e[5],u=e[6];break;case"Q":n=t.util.getBoundsOfCurve(c,u,e[1],e[2],e[1],e[2],e[3],e[4]),c=e[3],u=e[4];break;case"z":case"Z":c=o,u=l;break}n.forEach((function(e){r.push(e.x),s.push(e.y)})),r.push(c),s.push(u)}var f=i(r)||0,A=i(s)||0,h=a(r)||0,m=a(s)||0,g=h-f,v=m-A;return{left:f,top:A,width:g,height:v}}}),t.Path.fromObject=function(e,i){if("string"===typeof e.sourcePath){var a=e.sourcePath;t.loadSVGFromURL(a,(function(t){var a=t[0];a.setOptions(e),i&&i(a)}))}else t.Object._fromObject("Path",e,i,"path")},t.Path.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(["d"]),t.Path.fromElement=function(e,i,a){var r=t.parseAttributes(e,t.Path.ATTRIBUTE_NAMES);r.fromSVG=!0,i(new t.Path(r.d,n(r,a)))})}(i),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.array.min,a=t.util.array.max;t.Group||(t.Group=t.util.createClass(t.Object,t.Collection,{type:"group",strokeWidth:0,subTargetCheck:!1,cacheProperties:[],useSetOnGroup:!1,initialize:function(e,t,i){t=t||{},this._objects=[],i&&this.callSuper("initialize",t),this._objects=e||[];for(var a=this._objects.length;a--;)this._objects[a].group=this;if(i)this._updateObjectsACoords();else{var n=t&&t.centerPoint;void 0!==t.originX&&(this.originX=t.originX),void 0!==t.originY&&(this.originY=t.originY),n||this._calcBounds(),this._updateObjectsCoords(n),delete t.centerPoint,this.callSuper("initialize",t)}this.setCoords()},_updateObjectsACoords:function(){for(var e=!0,t=this._objects.length;t--;)this._objects[t].setCoords(e)},_updateObjectsCoords:function(e){e=e||this.getCenterPoint();for(var t=this._objects.length;t--;)this._updateObjectCoords(this._objects[t],e)},_updateObjectCoords:function(e,t){var i=e.left,a=e.top,n=!0;e.set({left:i-t.x,top:a-t.y}),e.group=this,e.setCoords(n)},toString:function(){return"#<fabric.Group: ("+this.complexity()+")>"},addWithUpdate:function(e){var i=!!this.group;return this._restoreObjectsState(),t.util.resetObjectTransform(this),e&&(i&&t.util.removeTransformFromObject(e,this.group.calcTransformMatrix()),this._objects.push(e),e.group=this,e._set("canvas",this.canvas)),this._calcBounds(),this._updateObjectsCoords(),this.dirty=!0,i?this.group.addWithUpdate():this.setCoords(),this},removeWithUpdate:function(e){return this._restoreObjectsState(),t.util.resetObjectTransform(this),this.remove(e),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},_onObjectAdded:function(e){this.dirty=!0,e.group=this,e._set("canvas",this.canvas)},_onObjectRemoved:function(e){this.dirty=!0,delete e.group},_set:function(e,i){var a=this._objects.length;if(this.useSetOnGroup)while(a--)this._objects[a].setOnGroup(e,i);if("canvas"===e)while(a--)this._objects[a]._set(e,i);t.Object.prototype._set.call(this,e,i)},toObject:function(e){var i=this.includeDefaultValues,a=this._objects.filter((function(e){return!e.excludeFromExport})).map((function(t){var a=t.includeDefaultValues;t.includeDefaultValues=i;var n=t.toObject(e);return t.includeDefaultValues=a,n})),n=t.Object.prototype.toObject.call(this,e);return n.objects=a,n},toDatalessObject:function(e){var i,a=this.sourcePath;if(a)i=a;else{var n=this.includeDefaultValues;i=this._objects.map((function(t){var i=t.includeDefaultValues;t.includeDefaultValues=n;var a=t.toDatalessObject(e);return t.includeDefaultValues=i,a}))}var r=t.Object.prototype.toDatalessObject.call(this,e);return r.objects=i,r},render:function(e){this._transformDone=!0,this.callSuper("render",e),this._transformDone=!1},shouldCache:function(){var e=t.Object.prototype.shouldCache.call(this);if(e)for(var i=0,a=this._objects.length;i<a;i++)if(this._objects[i].willDrawShadow())return this.ownCaching=!1,!1;return e},willDrawShadow:function(){if(t.Object.prototype.willDrawShadow.call(this))return!0;for(var e=0,i=this._objects.length;e<i;e++)if(this._objects[e].willDrawShadow())return!0;return!1},isOnACache:function(){return this.ownCaching||this.group&&this.group.isOnACache()},drawObject:function(e){for(var t=0,i=this._objects.length;t<i;t++)this._objects[t].render(e);this._drawClipPath(e)},isCacheDirty:function(e){if(this.callSuper("isCacheDirty",e))return!0;if(!this.statefullCache)return!1;for(var t=0,i=this._objects.length;t<i;t++)if(this._objects[t].isCacheDirty(!0)){if(this._cacheCanvas){var a=this.cacheWidth/this.zoomX,n=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-a/2,-n/2,a,n)}return!0}return!1},_restoreObjectsState:function(){var e=this.calcOwnMatrix();return this._objects.forEach((function(i){t.util.addTransformToObject(i,e),delete i.group,i.setCoords()})),this},realizeTransform:function(e,i){return t.util.addTransformToObject(e,i),e},destroy:function(){return this._objects.forEach((function(e){e.set("dirty",!0)})),this._restoreObjectsState()},toActiveSelection:function(){if(this.canvas){var e=this._objects,i=this.canvas;this._objects=[];var a=this.toObject();delete a.objects;var n=new t.ActiveSelection([]);return n.set(a),n.type="activeSelection",i.remove(this),e.forEach((function(e){e.group=n,e.dirty=!0,i.add(e)})),n.canvas=i,n._objects=e,i._activeObject=n,n.setCoords(),n}},ungroupOnCanvas:function(){return this._restoreObjectsState()},setObjectsCoords:function(){var e=!0;return this.forEachObject((function(t){t.setCoords(e)})),this},_calcBounds:function(e){for(var t,i,a,n,r=[],s=[],o=["tr","br","bl","tl"],l=0,c=this._objects.length,u=o.length;l<c;++l){for(t=this._objects[l],a=t.calcACoords(),n=0;n<u;n++)i=o[n],r.push(a[i].x),s.push(a[i].y);t.aCoords=a}this._getBounds(r,s,e)},_getBounds:function(e,n,r){var s=new t.Point(i(e),i(n)),o=new t.Point(a(e),a(n)),l=s.y||0,c=s.x||0,u=o.x-s.x||0,d=o.y-s.y||0;this.width=u,this.height=d,r||this.setPositionByOrigin({x:c,y:l},"left","top")},_toSVG:function(e){for(var t=["<g ","COMMON_PARTS"," >\n"],i=0,a=this._objects.length;i<a;i++)t.push("\t\t",this._objects[i].toSVG(e));return t.push("</g>\n"),t},getSvgStyles:function(){var e="undefined"!==typeof this.opacity&&1!==this.opacity?"opacity: "+this.opacity+";":"",t=this.visible?"":" visibility: hidden;";return[e,this.getSvgFilter(),t].join("")},toClipPathSVG:function(e){for(var t=[],i=0,a=this._objects.length;i<a;i++)t.push("\t",this._objects[i].toClipPathSVG(e));return this._createBaseClipPathSVGMarkup(t,{reviver:e})}}),t.Group.fromObject=function(e,i){var a=e.objects,n=t.util.object.clone(e,!0);delete n.objects,"string"!==typeof a?t.util.enlivenObjects(a,(function(a){t.util.enlivenObjects([e.clipPath],(function(n){var r=t.util.object.clone(e,!0);r.clipPath=n[0],delete r.objects,i&&i(new t.Group(a,r,!0))}))})):t.loadSVGFromURL(a,(function(r){var s=t.util.groupSVGElements(r,e,a);s.set(n),i&&i(s)}))})}(i),function(e){"use strict";var t=e.fabric||(e.fabric={});t.ActiveSelection||(t.ActiveSelection=t.util.createClass(t.Group,{type:"activeSelection",initialize:function(e,i){i=i||{},this._objects=e||[];for(var a=this._objects.length;a--;)this._objects[a].group=this;i.originX&&(this.originX=i.originX),i.originY&&(this.originY=i.originY),this._calcBounds(),this._updateObjectsCoords(),t.Object.prototype.initialize.call(this,i),this.setCoords()},toGroup:function(){var e=this._objects.concat();this._objects=[];var i=t.Object.prototype.toObject.call(this),a=new t.Group([]);if(delete i.type,a.set(i),e.forEach((function(e){e.canvas.remove(e),e.group=a})),a._objects=e,!this.canvas)return a;var n=this.canvas;return n.add(a),n._activeObject=a,a.setCoords(),a},onDeselect:function(){return this.destroy(),!1},toString:function(){return"#<fabric.ActiveSelection: ("+this.complexity()+")>"},shouldCache:function(){return!1},isOnACache:function(){return!1},_renderControls:function(e,t,i){e.save(),e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,this.callSuper("_renderControls",e,t),i=i||{},"undefined"===typeof i.hasControls&&(i.hasControls=!1),i.forActiveSelection=!0;for(var a=0,n=this._objects.length;a<n;a++)this._objects[a]._renderControls(e,i);e.restore()}}),t.ActiveSelection.fromObject=function(e,i){t.util.enlivenObjects(e.objects,(function(a){delete e.objects,i&&i(new t.ActiveSelection(a,e,!0))}))})}(i),function(e){"use strict";var t=n.util.object.extend;e.fabric||(e.fabric={}),e.fabric.Image?n.warn("fabric.Image is already defined."):(n.Image=n.util.createClass(n.Object,{type:"image",strokeWidth:0,srcFromAttribute:!1,_lastScaleX:1,_lastScaleY:1,_filterScalingX:1,_filterScalingY:1,minimumScaleTrigger:.5,stateProperties:n.Object.prototype.stateProperties.concat("cropX","cropY"),cacheProperties:n.Object.prototype.cacheProperties.concat("cropX","cropY"),cacheKey:"",cropX:0,cropY:0,imageSmoothing:!0,initialize:function(e,t){t||(t={}),this.filters=[],this.cacheKey="texture"+n.Object.__uid++,this.callSuper("initialize",t),this._initElement(e,t)},getElement:function(){return this._element||{}},setElement:function(e,t){return this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._element=e,this._originalElement=e,this._initConfig(t),0!==this.filters.length&&this.applyFilters(),this.resizeFilter&&this.applyResizeFilters(),this},removeTexture:function(e){var t=n.filterBackend;t&&t.evictCachesForKey&&t.evictCachesForKey(e)},dispose:function(){this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._cacheContext=void 0,["_originalElement","_element","_filteredEl","_cacheCanvas"].forEach(function(e){n.util.cleanUpJsdomNode(this[e]),this[e]=void 0}.bind(this))},getCrossOrigin:function(){return this._originalElement&&(this._originalElement.crossOrigin||null)},getOriginalSize:function(){var e=this.getElement();return{width:e.naturalWidth||e.width,height:e.naturalHeight||e.height}},_stroke:function(e){if(this.stroke&&0!==this.strokeWidth){var t=this.width/2,i=this.height/2;e.beginPath(),e.moveTo(-t,-i),e.lineTo(t,-i),e.lineTo(t,i),e.lineTo(-t,i),e.lineTo(-t,-i),e.closePath()}},toObject:function(e){var i=[];this.filters.forEach((function(e){e&&i.push(e.toObject())}));var a=t(this.callSuper("toObject",["cropX","cropY"].concat(e)),{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:i});return this.resizeFilter&&(a.resizeFilter=this.resizeFilter.toObject()),a},hasCrop:function(){return this.cropX||this.cropY||this.width<this._element.width||this.height<this._element.height},_toSVG:function(){var e,t=[],i=[],a=this._element,r=-this.width/2,s=-this.height/2,o="",l="";if(!a)return[];if(this.hasCrop()){var c=n.Object.__uid++;t.push('<clipPath id="imageCrop_'+c+'">\n','\t<rect x="'+r+'" y="'+s+'" width="'+this.width+'" height="'+this.height+'" />\n',"</clipPath>\n"),o=' clip-path="url(#imageCrop_'+c+')" '}if(this.imageSmoothing||(l='" image-rendering="optimizeSpeed'),i.push("\t<image ","COMMON_PARTS",'xlink:href="',this.getSvgSrc(!0),'" x="',r-this.cropX,'" y="',s-this.cropY,'" width="',a.width||a.naturalWidth,'" height="',a.height||a.height,l,'"',o,"></image>\n"),this.stroke||this.strokeDashArray){var u=this.fill;this.fill=null,e=["\t<rect ",'x="',r,'" y="',s,'" width="',this.width,'" height="',this.height,'" style="',this.getSvgStyles(),'"/>\n'],this.fill=u}return t="fill"!==this.paintFirst?t.concat(e,i):t.concat(i,e),t},getSrc:function(e){var t=e?this._element:this._originalElement;return t?t.toDataURL?t.toDataURL():this.srcFromAttribute?t.getAttribute("src"):t.src:this.src||""},setSrc:function(e,t,i){return n.util.loadImage(e,(function(e,a){this.setElement(e,i),this._setWidthHeight(),t&&t(this,a)}),this,i&&i.crossOrigin),this},toString:function(){return'#<fabric.Image: { src: "'+this.getSrc()+'" }>'},applyResizeFilters:function(){var e=this.resizeFilter,t=this.minimumScaleTrigger,i=this.getTotalObjectScaling(),a=i.scaleX,r=i.scaleY,s=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!e||a>t&&r>t)return this._element=s,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=a,void(this._lastScaleY=r);n.filterBackend||(n.filterBackend=n.initFilterBackend());var o=n.util.createCanvasElement(),l=this._filteredEl?this.cacheKey+"_filtered":this.cacheKey,c=s.width,u=s.height;o.width=c,o.height=u,this._element=o,this._lastScaleX=e.scaleX=a,this._lastScaleY=e.scaleY=r,n.filterBackend.applyFilters([e],s,c,u,this._element,l),this._filterScalingX=o.width/this._originalElement.width,this._filterScalingY=o.height/this._originalElement.height},applyFilters:function(e){if(e=e||this.filters||[],e=e.filter((function(e){return e&&!e.isNeutralState()})),this.set("dirty",!0),this.removeTexture(this.cacheKey+"_filtered"),0===e.length)return this._element=this._originalElement,this._filteredEl=null,this._filterScalingX=1,this._filterScalingY=1,this;var t=this._originalElement,i=t.naturalWidth||t.width,a=t.naturalHeight||t.height;if(this._element===this._originalElement){var r=n.util.createCanvasElement();r.width=i,r.height=a,this._element=r,this._filteredEl=r}else this._element=this._filteredEl,this._filteredEl.getContext("2d").clearRect(0,0,i,a),this._lastScaleX=1,this._lastScaleY=1;return n.filterBackend||(n.filterBackend=n.initFilterBackend()),n.filterBackend.applyFilters(e,this._originalElement,i,a,this._element,this.cacheKey),this._originalElement.width===this._element.width&&this._originalElement.height===this._element.height||(this._filterScalingX=this._element.width/this._originalElement.width,this._filterScalingY=this._element.height/this._originalElement.height),this},_render:function(e){n.util.setImageSmoothing(e,this.imageSmoothing),!0!==this.isMoving&&this.resizeFilter&&this._needsResize()&&this.applyResizeFilters(),this._stroke(e),this._renderPaintInOrder(e)},drawCacheOnCanvas:function(e){n.util.setImageSmoothing(e,this.imageSmoothing),n.Object.prototype.drawCacheOnCanvas.call(this,e)},shouldCache:function(){return this.needsItsOwnCache()},_renderFill:function(e){var t=this._element;if(t){var i=this._filterScalingX,a=this._filterScalingY,n=this.width,r=this.height,s=Math.min,o=Math.max,l=o(this.cropX,0),c=o(this.cropY,0),u=t.naturalWidth||t.width,d=t.naturalHeight||t.height,p=l*i,f=c*a,A=s(n*i,u-p),h=s(r*a,d-f),m=-n/2,g=-r/2,v=s(n,u/i-l),b=s(r,d/a-c);t&&e.drawImage(t,p,f,A,h,m,g,v,b)}},_needsResize:function(){var e=this.getTotalObjectScaling();return e.scaleX!==this._lastScaleX||e.scaleY!==this._lastScaleY},_resetWidthHeight:function(){this.set(this.getOriginalSize())},_initElement:function(e,t){this.setElement(n.util.getById(e),t),n.util.addClass(this.getElement(),n.Image.CSS_CANVAS)},_initConfig:function(e){e||(e={}),this.setOptions(e),this._setWidthHeight(e)},_initFilters:function(e,t){e&&e.length?n.util.enlivenObjects(e,(function(e){t&&t(e)}),"fabric.Image.filters"):t&&t()},_setWidthHeight:function(e){e||(e={});var t=this.getElement();this.width=e.width||t.naturalWidth||t.width||0,this.height=e.height||t.naturalHeight||t.height||0},parsePreserveAspectRatioAttribute:function(){var e,t=n.util.parsePreserveAspectRatioAttribute(this.preserveAspectRatio||""),i=this._element.width,a=this._element.height,r=1,s=1,o=0,l=0,c=0,u=0,d=this.width,p=this.height,f={width:d,height:p};return!t||"none"===t.alignX&&"none"===t.alignY?(r=d/i,s=p/a):("meet"===t.meetOrSlice&&(r=s=n.util.findScaleToFit(this._element,f),e=(d-i*r)/2,"Min"===t.alignX&&(o=-e),"Max"===t.alignX&&(o=e),e=(p-a*s)/2,"Min"===t.alignY&&(l=-e),"Max"===t.alignY&&(l=e)),"slice"===t.meetOrSlice&&(r=s=n.util.findScaleToCover(this._element,f),e=i-d/r,"Mid"===t.alignX&&(c=e/2),"Max"===t.alignX&&(c=e),e=a-p/s,"Mid"===t.alignY&&(u=e/2),"Max"===t.alignY&&(u=e),i=d/r,a=p/s)),{width:i,height:a,scaleX:r,scaleY:s,offsetLeft:o,offsetTop:l,cropX:c,cropY:u}}}),n.Image.CSS_CANVAS="canvas-img",n.Image.prototype.getSvgSrc=n.Image.prototype.getSrc,n.Image.fromObject=function(e,t){var i=n.util.object.clone(e);n.util.loadImage(i.src,(function(e,a){a?t&&t(null,!0):n.Image.prototype._initFilters.call(i,i.filters,(function(a){i.filters=a||[],n.Image.prototype._initFilters.call(i,[i.resizeFilter],(function(a){i.resizeFilter=a[0],n.util.enlivenObjects([i.clipPath],(function(a){i.clipPath=a[0];var r=new n.Image(e,i);t(r,!1)}))}))}))}),null,i.crossOrigin)},n.Image.fromURL=function(e,t,i){n.util.loadImage(e,(function(e,a){t&&t(new n.Image(e,i),a)}),null,i&&i.crossOrigin)},n.Image.ATTRIBUTE_NAMES=n.SHARED_ATTRIBUTES.concat("x y width height preserveAspectRatio xlink:href crossOrigin image-rendering".split(" ")),n.Image.fromElement=function(e,i,a){var r=n.parseAttributes(e,n.Image.ATTRIBUTE_NAMES);n.Image.fromURL(r["xlink:href"],i,t(a?n.util.object.clone(a):{},r))})}(i),n.util.object.extend(n.Object.prototype,{_getAngleValueForStraighten:function(){var e=this.angle%360;return e>0?90*Math.round((e-1)/90):90*Math.round(e/90)},straighten:function(){return this.rotate(this._getAngleValueForStraighten()),this},fxStraighten:function(e){e=e||{};var t=function(){},i=e.onComplete||t,a=e.onChange||t,r=this;return n.util.animate({startValue:this.get("angle"),endValue:this._getAngleValueForStraighten(),duration:this.FX_DURATION,onChange:function(e){r.rotate(e),a()},onComplete:function(){r.setCoords(),i()}}),this}}),n.util.object.extend(n.StaticCanvas.prototype,{straightenObject:function(e){return e.straighten(),this.requestRenderAll(),this},fxStraightenObject:function(e){return e.fxStraighten({onChange:this.requestRenderAllBound}),this}}),function(){"use strict";function e(e,t){var i="precision "+t+" float;\nvoid main(){}",a=e.createShader(e.FRAGMENT_SHADER);return e.shaderSource(a,i),e.compileShader(a),!!e.getShaderParameter(a,e.COMPILE_STATUS)}function t(e){e&&e.tileSize&&(this.tileSize=e.tileSize),this.setupGLContext(this.tileSize,this.tileSize),this.captureGPUInfo()}n.isWebglSupported=function(t){if(n.isLikelyNode)return!1;t=t||n.WebglFilterBackend.prototype.tileSize;var i=document.createElement("canvas"),a=i.getContext("webgl")||i.getContext("experimental-webgl"),r=!1;if(a){n.maxTextureSize=a.getParameter(a.MAX_TEXTURE_SIZE),r=n.maxTextureSize>=t;for(var s=["highp","mediump","lowp"],o=0;o<3;o++)if(e(a,s[o])){n.webGlPrecision=s[o];break}}return this.isSupported=r,r},n.WebglFilterBackend=t,t.prototype={tileSize:2048,resources:{},setupGLContext:function(e,t){this.dispose(),this.createWebGLCanvas(e,t),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(e,t)},chooseFastestCopyGLTo2DMethod:function(e,t){var i,a="undefined"!==typeof window.performance;try{new ImageData(1,1),i=!0}catch(h){i=!1}var r="undefined"!==typeof ArrayBuffer,s="undefined"!==typeof Uint8ClampedArray;if(a&&i&&r&&s){var o=n.util.createCanvasElement(),u=new ArrayBuffer(e*t*4);if(n.forceGLPutImageData)return this.imageBuffer=u,void(this.copyGLTo2D=c);var d,p,f,A={imageBuffer:u,destinationWidth:e,destinationHeight:t,targetCanvas:o};o.width=e,o.height=t,d=window.performance.now(),l.call(A,this.gl,A),p=window.performance.now()-d,d=window.performance.now(),c.call(A,this.gl,A),f=window.performance.now()-d,p>f?(this.imageBuffer=u,this.copyGLTo2D=c):this.copyGLTo2D=l}},createWebGLCanvas:function(e,t){var i=n.util.createCanvasElement();i.width=e,i.height=t;var a={alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1},r=i.getContext("webgl",a);r||(r=i.getContext("experimental-webgl",a)),r&&(r.clearColor(0,0,0,0),this.canvas=i,this.gl=r)},applyFilters:function(e,t,i,a,n,r){var s,l=this.gl;r&&(s=this.getCachedTexture(r,t));var c={originalWidth:t.width||t.originalWidth,originalHeight:t.height||t.originalHeight,sourceWidth:i,sourceHeight:a,destinationWidth:i,destinationHeight:a,context:l,sourceTexture:this.createTexture(l,i,a,!s&&t),targetTexture:this.createTexture(l,i,a),originalTexture:s||this.createTexture(l,i,a,!s&&t),passes:e.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:n},u=l.createFramebuffer();return l.bindFramebuffer(l.FRAMEBUFFER,u),e.forEach((function(e){e&&e.applyTo(c)})),o(c),this.copyGLTo2D(l,c),l.bindTexture(l.TEXTURE_2D,null),l.deleteTexture(c.sourceTexture),l.deleteTexture(c.targetTexture),l.deleteFramebuffer(u),n.getContext("2d").setTransform(1,0,0,1,0,0),c},dispose:function(){this.canvas&&(this.canvas=null,this.gl=null),this.clearWebGLCaches()},clearWebGLCaches:function(){this.programCache={},this.textureCache={}},createTexture:function(e,t,i,a){var n=e.createTexture();return e.bindTexture(e.TEXTURE_2D,n),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),a?e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,a):e.texImage2D(e.TEXTURE_2D,0,e.RGBA,t,i,0,e.RGBA,e.UNSIGNED_BYTE,null),n},getCachedTexture:function(e,t){if(this.textureCache[e])return this.textureCache[e];var i=this.createTexture(this.gl,t.width,t.height,t);return this.textureCache[e]=i,i},evictCachesForKey:function(e){this.textureCache[e]&&(this.gl.deleteTexture(this.textureCache[e]),delete this.textureCache[e])},copyGLTo2D:l,captureGPUInfo:function(){if(this.gpuInfo)return this.gpuInfo;var e=this.gl,t={renderer:"",vendor:""};if(!e)return t;var i=e.getExtension("WEBGL_debug_renderer_info");if(i){var a=e.getParameter(i.UNMASKED_RENDERER_WEBGL),n=e.getParameter(i.UNMASKED_VENDOR_WEBGL);a&&(t.renderer=a.toLowerCase()),n&&(t.vendor=n.toLowerCase())}return this.gpuInfo=t,t}}}(),function(){"use strict";var e=function(){};function t(){}n.Canvas2dFilterBackend=t,t.prototype={evictCachesForKey:e,dispose:e,clearWebGLCaches:e,resources:{},applyFilters:function(e,t,i,a,n){var r=n.getContext("2d");r.drawImage(t,0,0,i,a);var s=r.getImageData(0,0,i,a),o=r.getImageData(0,0,i,a),l={sourceWidth:i,sourceHeight:a,imageData:s,originalEl:t,originalImageData:o,canvasEl:n,ctx:r,filterBackend:this};return e.forEach((function(e){e.applyTo(l)})),l.imageData.width===i&&l.imageData.height===a||(n.width=l.imageData.width,n.height=l.imageData.height),r.putImageData(l.imageData,0,0),l}}}(),n.Image=n.Image||{},n.Image.filters=n.Image.filters||{},n.Image.filters.BaseFilter=n.util.createClass({type:"BaseFilter",vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvoid main() {\nvTexCoord = aPosition;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:"precision highp float;\nvarying vec2 vTexCoord;\nuniform sampler2D uTexture;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\n}",initialize:function(e){e&&this.setOptions(e)},setOptions:function(e){for(var t in e)this[t]=e[t]},createProgram:function(e,t,i){t=t||this.fragmentSource,i=i||this.vertexSource,"highp"!==n.webGlPrecision&&(t=t.replace(/precision highp float/g,"precision "+n.webGlPrecision+" float"));var a=e.createShader(e.VERTEX_SHADER);if(e.shaderSource(a,i),e.compileShader(a),!e.getShaderParameter(a,e.COMPILE_STATUS))throw new Error("Vertex shader compile error for "+this.type+": "+e.getShaderInfoLog(a));var r=e.createShader(e.FRAGMENT_SHADER);if(e.shaderSource(r,t),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS))throw new Error("Fragment shader compile error for "+this.type+": "+e.getShaderInfoLog(r));var s=e.createProgram();if(e.attachShader(s,a),e.attachShader(s,r),e.linkProgram(s),!e.getProgramParameter(s,e.LINK_STATUS))throw new Error('Shader link error for "${this.type}" '+e.getProgramInfoLog(s));var o=this.getAttributeLocations(e,s),l=this.getUniformLocations(e,s)||{};return l.uStepW=e.getUniformLocation(s,"uStepW"),l.uStepH=e.getUniformLocation(s,"uStepH"),{program:s,attributeLocations:o,uniformLocations:l}},getAttributeLocations:function(e,t){return{aPosition:e.getAttribLocation(t,"aPosition")}},getUniformLocations:function(){return{}},sendAttributeData:function(e,t,i){var a=t.aPosition,n=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,n),e.enableVertexAttribArray(a),e.vertexAttribPointer(a,2,e.FLOAT,!1,0,0),e.bufferData(e.ARRAY_BUFFER,i,e.STATIC_DRAW)},_setupFrameBuffer:function(e){var t,i,a=e.context;e.passes>1?(t=e.destinationWidth,i=e.destinationHeight,e.sourceWidth===t&&e.sourceHeight===i||(a.deleteTexture(e.targetTexture),e.targetTexture=e.filterBackend.createTexture(a,t,i)),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,e.targetTexture,0)):(a.bindFramebuffer(a.FRAMEBUFFER,null),a.finish())},_swapTextures:function(e){e.passes--,e.pass++;var t=e.targetTexture;e.targetTexture=e.sourceTexture,e.sourceTexture=t},isNeutralState:function(){var e=this.mainParameter,t=n.Image.filters[this.type].prototype;if(e){if(Array.isArray(t[e])){for(var i=t[e].length;i--;)if(this[e][i]!==t[e][i])return!1;return!0}return t[e]===this[e]}return!1},applyTo:function(e){e.webgl?(this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e)):this.applyTo2d(e)},retrieveShader:function(e){return e.programCache.hasOwnProperty(this.type)||(e.programCache[this.type]=this.createProgram(e.context)),e.programCache[this.type]},applyToWebGL:function(e){var t=e.context,i=this.retrieveShader(e);0===e.pass&&e.originalTexture?t.bindTexture(t.TEXTURE_2D,e.originalTexture):t.bindTexture(t.TEXTURE_2D,e.sourceTexture),t.useProgram(i.program),this.sendAttributeData(t,i.attributeLocations,e.aPosition),t.uniform1f(i.uniformLocations.uStepW,1/e.sourceWidth),t.uniform1f(i.uniformLocations.uStepH,1/e.sourceHeight),this.sendUniformData(t,i.uniformLocations),t.viewport(0,0,e.destinationWidth,e.destinationHeight),t.drawArrays(t.TRIANGLE_STRIP,0,4)},bindAdditionalTexture:function(e,t,i){e.activeTexture(i),e.bindTexture(e.TEXTURE_2D,t),e.activeTexture(e.TEXTURE0)},unbindAdditionalTexture:function(e,t){e.activeTexture(t),e.bindTexture(e.TEXTURE_2D,null),e.activeTexture(e.TEXTURE0)},getMainParameter:function(){return this[this.mainParameter]},setMainParameter:function(e){this[this.mainParameter]=e},sendUniformData:function(){},createHelpLayer:function(e){if(!e.helpLayer){var t=document.createElement("canvas");t.width=e.sourceWidth,t.height=e.sourceHeight,e.helpLayer=t}},toObject:function(){var e={type:this.type},t=this.mainParameter;return t&&(e[t]=this[t]),e},toJSON:function(){return this.toObject()}}),n.Image.filters.BaseFilter.fromObject=function(e,t){var i=new n.Image.filters[e.type](e);return t&&t(i),i},function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,a=t.util.createClass;i.ColorMatrix=a(i.BaseFilter,{type:"ColorMatrix",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nuniform mat4 uColorMatrix;\nuniform vec4 uConstants;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor *= uColorMatrix;\ncolor += uConstants;\ngl_FragColor = color;\n}",matrix:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],mainParameter:"matrix",colorsOnly:!0,initialize:function(e){this.callSuper("initialize",e),this.matrix=this.matrix.slice(0)},applyTo2d:function(e){var t,i,a,n,r,s=e.imageData,o=s.data,l=o.length,c=this.matrix,u=this.colorsOnly;for(r=0;r<l;r+=4)t=o[r],i=o[r+1],a=o[r+2],u?(o[r]=t*c[0]+i*c[1]+a*c[2]+255*c[4],o[r+1]=t*c[5]+i*c[6]+a*c[7]+255*c[9],o[r+2]=t*c[10]+i*c[11]+a*c[12]+255*c[14]):(n=o[r+3],o[r]=t*c[0]+i*c[1]+a*c[2]+n*c[3]+255*c[4],o[r+1]=t*c[5]+i*c[6]+a*c[7]+n*c[8]+255*c[9],o[r+2]=t*c[10]+i*c[11]+a*c[12]+n*c[13]+255*c[14],o[r+3]=t*c[15]+i*c[16]+a*c[17]+n*c[18]+255*c[19])},getUniformLocations:function(e,t){return{uColorMatrix:e.getUniformLocation(t,"uColorMatrix"),uConstants:e.getUniformLocation(t,"uConstants")}},sendUniformData:function(e,t){var i=this.matrix,a=[i[0],i[1],i[2],i[3],i[5],i[6],i[7],i[8],i[10],i[11],i[12],i[13],i[15],i[16],i[17],i[18]],n=[i[4],i[9],i[14],i[19]];e.uniformMatrix4fv(t.uColorMatrix,!1,a),e.uniform4fv(t.uConstants,n)}}),t.Image.filters.ColorMatrix.fromObject=t.Image.filters.BaseFilter.fromObject}(i),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,a=t.util.createClass;i.Brightness=a(i.BaseFilter,{type:"Brightness",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uBrightness;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor.rgb += uBrightness;\ngl_FragColor = color;\n}",brightness:0,mainParameter:"brightness",applyTo2d:function(e){if(0!==this.brightness){var t,i=e.imageData,a=i.data,n=a.length,r=Math.round(255*this.brightness);for(t=0;t<n;t+=4)a[t]=a[t]+r,a[t+1]=a[t+1]+r,a[t+2]=a[t+2]+r}},getUniformLocations:function(e,t){return{uBrightness:e.getUniformLocation(t,"uBrightness")}},sendUniformData:function(e,t){e.uniform1f(t.uBrightness,this.brightness)}}),t.Image.filters.Brightness.fromObject=t.Image.filters.BaseFilter.fromObject}(i),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,a=t.Image.filters,n=t.util.createClass;a.Convolute=n(a.BaseFilter,{type:"Convolute",opaque:!1,matrix:[0,0,0,0,1,0,0,0,0],fragmentSource:{Convolute_3_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[9];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 3.0; h+=1.0) {\nfor (float w = 0.0; w < 3.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 1), uStepH * (h - 1));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 3.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_3_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[9];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 3.0; h+=1.0) {\nfor (float w = 0.0; w < 3.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 1.0), uStepH * (h - 1.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 3.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_5_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[25];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 5.0; h+=1.0) {\nfor (float w = 0.0; w < 5.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 5.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_5_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[25];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 5.0; h+=1.0) {\nfor (float w = 0.0; w < 5.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 5.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_7_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[49];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 7.0; h+=1.0) {\nfor (float w = 0.0; w < 7.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 7.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_7_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[49];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 7.0; h+=1.0) {\nfor (float w = 0.0; w < 7.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 7.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_9_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[81];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 9.0; h+=1.0) {\nfor (float w = 0.0; w < 9.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 9.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_9_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[81];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 9.0; h+=1.0) {\nfor (float w = 0.0; w < 9.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 9.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}"},retrieveShader:function(e){var t=Math.sqrt(this.matrix.length),i=this.type+"_"+t+"_"+(this.opaque?1:0),a=this.fragmentSource[i];return e.programCache.hasOwnProperty(i)||(e.programCache[i]=this.createProgram(e.context,a)),e.programCache[i]},applyTo2d:function(e){var t,i,a,n,r,s,o,l,c,u,d,p,f,A=e.imageData,h=A.data,m=this.matrix,g=Math.round(Math.sqrt(m.length)),v=Math.floor(g/2),b=A.width,y=A.height,_=e.ctx.createImageData(b,y),w=_.data,C=this.opaque?1:0;for(d=0;d<y;d++)for(u=0;u<b;u++){for(r=4*(d*b+u),t=0,i=0,a=0,n=0,f=0;f<g;f++)for(p=0;p<g;p++)o=d+f-v,s=u+p-v,o<0||o>=y||s<0||s>=b||(l=4*(o*b+s),c=m[f*g+p],t+=h[l]*c,i+=h[l+1]*c,a+=h[l+2]*c,C||(n+=h[l+3]*c));w[r]=t,w[r+1]=i,w[r+2]=a,w[r+3]=C?h[r+3]:n}e.imageData=_},getUniformLocations:function(e,t){return{uMatrix:e.getUniformLocation(t,"uMatrix"),uOpaque:e.getUniformLocation(t,"uOpaque"),uHalfSize:e.getUniformLocation(t,"uHalfSize"),uSize:e.getUniformLocation(t,"uSize")}},sendUniformData:function(e,t){e.uniform1fv(t.uMatrix,this.matrix)},toObject:function(){return i(this.callSuper("toObject"),{opaque:this.opaque,matrix:this.matrix})}}),t.Image.filters.Convolute.fromObject=t.Image.filters.BaseFilter.fromObject}(i),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,a=t.util.createClass;i.Grayscale=a(i.BaseFilter,{type:"Grayscale",fragmentSource:{average:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat average = (color.r + color.b + color.g) / 3.0;\ngl_FragColor = vec4(average, average, average, color.a);\n}",lightness:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = (max(max(col.r, col.g),col.b) + min(min(col.r, col.g),col.b)) / 2.0;\ngl_FragColor = vec4(average, average, average, col.a);\n}",luminosity:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = 0.21 * col.r + 0.72 * col.g + 0.07 * col.b;\ngl_FragColor = vec4(average, average, average, col.a);\n}"},mode:"average",mainParameter:"mode",applyTo2d:function(e){var t,i,a=e.imageData,n=a.data,r=n.length,s=this.mode;for(t=0;t<r;t+=4)"average"===s?i=(n[t]+n[t+1]+n[t+2])/3:"lightness"===s?i=(Math.min(n[t],n[t+1],n[t+2])+Math.max(n[t],n[t+1],n[t+2]))/2:"luminosity"===s&&(i=.21*n[t]+.72*n[t+1]+.07*n[t+2]),n[t]=i,n[t+1]=i,n[t+2]=i},retrieveShader:function(e){var t=this.type+"_"+this.mode;if(!e.programCache.hasOwnProperty(t)){var i=this.fragmentSource[this.mode];e.programCache[t]=this.createProgram(e.context,i)}return e.programCache[t]},getUniformLocations:function(e,t){return{uMode:e.getUniformLocation(t,"uMode")}},sendUniformData:function(e,t){var i=1;e.uniform1i(t.uMode,i)},isNeutralState:function(){return!1}}),t.Image.filters.Grayscale.fromObject=t.Image.filters.BaseFilter.fromObject}(i),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,a=t.util.createClass;i.Invert=a(i.BaseFilter,{type:"Invert",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uInvert;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nif (uInvert == 1) {\ngl_FragColor = vec4(1.0 - color.r,1.0 -color.g,1.0 -color.b,color.a);\n} else {\ngl_FragColor = color;\n}\n}",invert:!0,mainParameter:"invert",applyTo2d:function(e){var t,i=e.imageData,a=i.data,n=a.length;for(t=0;t<n;t+=4)a[t]=255-a[t],a[t+1]=255-a[t+1],a[t+2]=255-a[t+2]},isNeutralState:function(){return!this.invert},getUniformLocations:function(e,t){return{uInvert:e.getUniformLocation(t,"uInvert")}},sendUniformData:function(e,t){e.uniform1i(t.uInvert,this.invert)}}),t.Image.filters.Invert.fromObject=t.Image.filters.BaseFilter.fromObject}(i),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,a=t.Image.filters,n=t.util.createClass;a.Noise=n(a.BaseFilter,{type:"Noise",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uStepH;\nuniform float uNoise;\nuniform float uSeed;\nvarying vec2 vTexCoord;\nfloat rand(vec2 co, float seed, float vScale) {\nreturn fract(sin(dot(co.xy * vScale ,vec2(12.9898 , 78.233))) * 43758.5453 * (seed + 0.01) / 2.0);\n}\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor.rgb += (0.5 - rand(vTexCoord, uSeed, 0.1 / uStepH)) * uNoise;\ngl_FragColor = color;\n}",mainParameter:"noise",noise:0,applyTo2d:function(e){if(0!==this.noise){var t,i,a=e.imageData,n=a.data,r=n.length,s=this.noise;for(t=0,r=n.length;t<r;t+=4)i=(.5-Math.random())*s,n[t]+=i,n[t+1]+=i,n[t+2]+=i}},getUniformLocations:function(e,t){return{uNoise:e.getUniformLocation(t,"uNoise"),uSeed:e.getUniformLocation(t,"uSeed")}},sendUniformData:function(e,t){e.uniform1f(t.uNoise,this.noise/255),e.uniform1f(t.uSeed,Math.random())},toObject:function(){return i(this.callSuper("toObject"),{noise:this.noise})}}),t.Image.filters.Noise.fromObject=t.Image.filters.BaseFilter.fromObject}(i),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,a=t.util.createClass;i.Pixelate=a(i.BaseFilter,{type:"Pixelate",blocksize:4,mainParameter:"blocksize",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uBlocksize;\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nfloat blockW = uBlocksize * uStepW;\nfloat blockH = uBlocksize * uStepW;\nint posX = int(vTexCoord.x / blockW);\nint posY = int(vTexCoord.y / blockH);\nfloat fposX = float(posX);\nfloat fposY = float(posY);\nvec2 squareCoords = vec2(fposX * blockW, fposY * blockH);\nvec4 color = texture2D(uTexture, squareCoords);\ngl_FragColor = color;\n}",applyTo2d:function(e){var t,i,a,n,r,s,o,l,c,u,d,p=e.imageData,f=p.data,A=p.height,h=p.width;for(i=0;i<A;i+=this.blocksize)for(a=0;a<h;a+=this.blocksize)for(t=4*i*h+4*a,n=f[t],r=f[t+1],s=f[t+2],o=f[t+3],u=Math.min(i+this.blocksize,A),d=Math.min(a+this.blocksize,h),l=i;l<u;l++)for(c=a;c<d;c++)t=4*l*h+4*c,f[t]=n,f[t+1]=r,f[t+2]=s,f[t+3]=o},isNeutralState:function(){return 1===this.blocksize},getUniformLocations:function(e,t){return{uBlocksize:e.getUniformLocation(t,"uBlocksize"),uStepW:e.getUniformLocation(t,"uStepW"),uStepH:e.getUniformLocation(t,"uStepH")}},sendUniformData:function(e,t){e.uniform1f(t.uBlocksize,this.blocksize)}}),t.Image.filters.Pixelate.fromObject=t.Image.filters.BaseFilter.fromObject}(i),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.extend,a=t.Image.filters,n=t.util.createClass;a.RemoveColor=n(a.BaseFilter,{type:"RemoveColor",color:"#FFFFFF",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uLow;\nuniform vec4 uHigh;\nvarying vec2 vTexCoord;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\nif(all(greaterThan(gl_FragColor.rgb,uLow.rgb)) && all(greaterThan(uHigh.rgb,gl_FragColor.rgb))) {\ngl_FragColor.a = 0.0;\n}\n}",distance:.02,useAlpha:!1,applyTo2d:function(e){var i,a,n,r,s=e.imageData,o=s.data,l=255*this.distance,c=new t.Color(this.color).getSource(),u=[c[0]-l,c[1]-l,c[2]-l],d=[c[0]+l,c[1]+l,c[2]+l];for(i=0;i<o.length;i+=4)a=o[i],n=o[i+1],r=o[i+2],a>u[0]&&n>u[1]&&r>u[2]&&a<d[0]&&n<d[1]&&r<d[2]&&(o[i+3]=0)},getUniformLocations:function(e,t){return{uLow:e.getUniformLocation(t,"uLow"),uHigh:e.getUniformLocation(t,"uHigh")}},sendUniformData:function(e,i){var a=new t.Color(this.color).getSource(),n=parseFloat(this.distance),r=[0+a[0]/255-n,0+a[1]/255-n,0+a[2]/255-n,1],s=[a[0]/255+n,a[1]/255+n,a[2]/255+n,1];e.uniform4fv(i.uLow,r),e.uniform4fv(i.uHigh,s)},toObject:function(){return i(this.callSuper("toObject"),{color:this.color,distance:this.distance})}}),t.Image.filters.RemoveColor.fromObject=t.Image.filters.BaseFilter.fromObject}(i),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,a=t.util.createClass,n={Brownie:[.5997,.34553,-.27082,0,.186,-.0377,.86095,.15059,0,-.1449,.24113,-.07441,.44972,0,-.02965,0,0,0,1,0],Vintage:[.62793,.32021,-.03965,0,.03784,.02578,.64411,.03259,0,.02926,.0466,-.08512,.52416,0,.02023,0,0,0,1,0],Kodachrome:[1.12855,-.39673,-.03992,0,.24991,-.16404,1.08352,-.05498,0,.09698,-.16786,-.56034,1.60148,0,.13972,0,0,0,1,0],Technicolor:[1.91252,-.85453,-.09155,0,.04624,-.30878,1.76589,-.10601,0,-.27589,-.2311,-.75018,1.84759,0,.12137,0,0,0,1,0],Polaroid:[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],Sepia:[.393,.769,.189,0,0,.349,.686,.168,0,0,.272,.534,.131,0,0,0,0,0,1,0],BlackWhite:[1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,0,0,0,1,0]};for(var r in n)i[r]=a(i.ColorMatrix,{type:r,matrix:n[r],mainParameter:!1,colorsOnly:!0}),t.Image.filters[r].fromObject=t.Image.filters.BaseFilter.fromObject}(i),function(e){"use strict";var t=e.fabric,i=t.Image.filters,a=t.util.createClass;i.BlendColor=a(i.BaseFilter,{type:"BlendColor",color:"#F95C63",mode:"multiply",alpha:1,fragmentSource:{multiply:"gl_FragColor.rgb *= uColor.rgb;\n",screen:"gl_FragColor.rgb = 1.0 - (1.0 - gl_FragColor.rgb) * (1.0 - uColor.rgb);\n",add:"gl_FragColor.rgb += uColor.rgb;\n",diff:"gl_FragColor.rgb = abs(gl_FragColor.rgb - uColor.rgb);\n",subtract:"gl_FragColor.rgb -= uColor.rgb;\n",lighten:"gl_FragColor.rgb = max(gl_FragColor.rgb, uColor.rgb);\n",darken:"gl_FragColor.rgb = min(gl_FragColor.rgb, uColor.rgb);\n",exclusion:"gl_FragColor.rgb += uColor.rgb - 2.0 * (uColor.rgb * gl_FragColor.rgb);\n",overlay:"if (uColor.r < 0.5) {\ngl_FragColor.r *= 2.0 * uColor.r;\n} else {\ngl_FragColor.r = 1.0 - 2.0 * (1.0 - gl_FragColor.r) * (1.0 - uColor.r);\n}\nif (uColor.g < 0.5) {\ngl_FragColor.g *= 2.0 * uColor.g;\n} else {\ngl_FragColor.g = 1.0 - 2.0 * (1.0 - gl_FragColor.g) * (1.0 - uColor.g);\n}\nif (uColor.b < 0.5) {\ngl_FragColor.b *= 2.0 * uColor.b;\n} else {\ngl_FragColor.b = 1.0 - 2.0 * (1.0 - gl_FragColor.b) * (1.0 - uColor.b);\n}\n",tint:"gl_FragColor.rgb *= (1.0 - uColor.a);\ngl_FragColor.rgb += uColor.rgb;\n"},buildSource:function(e){return"precision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ngl_FragColor = color;\nif (color.a > 0.0) {\n"+this.fragmentSource[e]+"}\n}"},retrieveShader:function(e){var t,i=this.type+"_"+this.mode;return e.programCache.hasOwnProperty(i)||(t=this.buildSource(this.mode),e.programCache[i]=this.createProgram(e.context,t)),e.programCache[i]},applyTo2d:function(e){var i,a,n,r,s,o,l,c=e.imageData,u=c.data,d=u.length,p=1-this.alpha;l=new t.Color(this.color).getSource(),i=l[0]*this.alpha,a=l[1]*this.alpha,n=l[2]*this.alpha;for(var f=0;f<d;f+=4)switch(r=u[f],s=u[f+1],o=u[f+2],this.mode){case"multiply":u[f]=r*i/255,u[f+1]=s*a/255,u[f+2]=o*n/255;break;case"screen":u[f]=255-(255-r)*(255-i)/255,u[f+1]=255-(255-s)*(255-a)/255,u[f+2]=255-(255-o)*(255-n)/255;break;case"add":u[f]=r+i,u[f+1]=s+a,u[f+2]=o+n;break;case"diff":case"difference":u[f]=Math.abs(r-i),u[f+1]=Math.abs(s-a),u[f+2]=Math.abs(o-n);break;case"subtract":u[f]=r-i,u[f+1]=s-a,u[f+2]=o-n;break;case"darken":u[f]=Math.min(r,i),u[f+1]=Math.min(s,a),u[f+2]=Math.min(o,n);break;case"lighten":u[f]=Math.max(r,i),u[f+1]=Math.max(s,a),u[f+2]=Math.max(o,n);break;case"overlay":u[f]=i<128?2*r*i/255:255-2*(255-r)*(255-i)/255,u[f+1]=a<128?2*s*a/255:255-2*(255-s)*(255-a)/255,u[f+2]=n<128?2*o*n/255:255-2*(255-o)*(255-n)/255;break;case"exclusion":u[f]=i+r-2*i*r/255,u[f+1]=a+s-2*a*s/255,u[f+2]=n+o-2*n*o/255;break;case"tint":u[f]=i+r*p,u[f+1]=a+s*p,u[f+2]=n+o*p}},getUniformLocations:function(e,t){return{uColor:e.getUniformLocation(t,"uColor")}},sendUniformData:function(e,i){var a=new t.Color(this.color).getSource();a[0]=this.alpha*a[0]/255,a[1]=this.alpha*a[1]/255,a[2]=this.alpha*a[2]/255,a[3]=this.alpha,e.uniform4fv(i.uColor,a)},toObject:function(){return{type:this.type,color:this.color,mode:this.mode,alpha:this.alpha}}}),t.Image.filters.BlendColor.fromObject=t.Image.filters.BaseFilter.fromObject}(i),function(e){"use strict";var t=e.fabric,i=t.Image.filters,a=t.util.createClass;i.BlendImage=a(i.BaseFilter,{type:"BlendImage",image:null,mode:"multiply",alpha:1,vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nuniform mat3 uTransformMatrix;\nvoid main() {\nvTexCoord = aPosition;\nvTexCoord2 = (uTransformMatrix * vec3(aPosition, 1.0)).xy;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:{multiply:"precision highp float;\nuniform sampler2D uTexture;\nuniform sampler2D uImage;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec4 color2 = texture2D(uImage, vTexCoord2);\ncolor.rgba *= color2.rgba;\ngl_FragColor = color;\n}",mask:"precision highp float;\nuniform sampler2D uTexture;\nuniform sampler2D uImage;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec4 color2 = texture2D(uImage, vTexCoord2);\ncolor.a = color2.a;\ngl_FragColor = color;\n}"},retrieveShader:function(e){var t=this.type+"_"+this.mode,i=this.fragmentSource[this.mode];return e.programCache.hasOwnProperty(t)||(e.programCache[t]=this.createProgram(e.context,i)),e.programCache[t]},applyToWebGL:function(e){var t=e.context,i=this.createTexture(e.filterBackend,this.image);this.bindAdditionalTexture(t,i,t.TEXTURE1),this.callSuper("applyToWebGL",e),this.unbindAdditionalTexture(t,t.TEXTURE1)},createTexture:function(e,t){return e.getCachedTexture(t.cacheKey,t._element)},calculateMatrix:function(){var e=this.image,t=e._element.width,i=e._element.height;return[1/e.scaleX,0,0,0,1/e.scaleY,0,-e.left/t,-e.top/i,1]},applyTo2d:function(e){var i,a,n,r,s,o,l,c,u,d,p,f=e.imageData,A=e.filterBackend.resources,h=f.data,m=h.length,g=f.width,v=f.height,b=this.image;A.blendImage||(A.blendImage=t.util.createCanvasElement()),u=A.blendImage,d=u.getContext("2d"),u.width!==g||u.height!==v?(u.width=g,u.height=v):d.clearRect(0,0,g,v),d.setTransform(b.scaleX,0,0,b.scaleY,b.left,b.top),d.drawImage(b._element,0,0,g,v),p=d.getImageData(0,0,g,v).data;for(var y=0;y<m;y+=4)switch(s=h[y],o=h[y+1],l=h[y+2],c=h[y+3],i=p[y],a=p[y+1],n=p[y+2],r=p[y+3],this.mode){case"multiply":h[y]=s*i/255,h[y+1]=o*a/255,h[y+2]=l*n/255,h[y+3]=c*r/255;break;case"mask":h[y+3]=r;break}},getUniformLocations:function(e,t){return{uTransformMatrix:e.getUniformLocation(t,"uTransformMatrix"),uImage:e.getUniformLocation(t,"uImage")}},sendUniformData:function(e,t){var i=this.calculateMatrix();e.uniform1i(t.uImage,1),e.uniformMatrix3fv(t.uTransformMatrix,!1,i)},toObject:function(){return{type:this.type,image:this.image&&this.image.toObject(),mode:this.mode,alpha:this.alpha}}}),t.Image.filters.BlendImage.fromObject=function(e,i){t.Image.fromObject(e.image,(function(a){var n=t.util.object.clone(e);n.image=a,i(new t.Image.filters.BlendImage(n))}))}}(i),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=Math.pow,a=Math.floor,n=Math.sqrt,r=Math.abs,s=Math.round,o=Math.sin,l=Math.ceil,c=t.Image.filters,u=t.util.createClass;c.Resize=u(c.BaseFilter,{type:"Resize",resizeType:"hermite",scaleX:1,scaleY:1,lanczosLobes:3,getUniformLocations:function(e,t){return{uDelta:e.getUniformLocation(t,"uDelta"),uTaps:e.getUniformLocation(t,"uTaps")}},sendUniformData:function(e,t){e.uniform2fv(t.uDelta,this.horizontal?[1/this.width,0]:[0,1/this.height]),e.uniform1fv(t.uTaps,this.taps)},retrieveShader:function(e){var t=this.getFilterWindow(),i=this.type+"_"+t;if(!e.programCache.hasOwnProperty(i)){var a=this.generateShader(t);e.programCache[i]=this.createProgram(e.context,a)}return e.programCache[i]},getFilterWindow:function(){var e=this.tempScale;return Math.ceil(this.lanczosLobes/e)},getTaps:function(){for(var e=this.lanczosCreate(this.lanczosLobes),t=this.tempScale,i=this.getFilterWindow(),a=new Array(i),n=1;n<=i;n++)a[n-1]=e(n*t);return a},generateShader:function(e){for(var t=new Array(e),i=this.fragmentSourceTOP,a=1;a<=e;a++)t[a-1]=a+".0 * uDelta";return i+="uniform float uTaps["+e+"];\n",i+="void main() {\n",i+=" vec4 color = texture2D(uTexture, vTexCoord);\n",i+=" float sum = 1.0;\n",t.forEach((function(e,t){i+=" color += texture2D(uTexture, vTexCoord + "+e+") * uTaps["+t+"];\n",i+=" color += texture2D(uTexture, vTexCoord - "+e+") * uTaps["+t+"];\n",i+=" sum += 2.0 * uTaps["+t+"];\n"})),i+=" gl_FragColor = color / sum;\n",i+="}",i},fragmentSourceTOP:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec2 uDelta;\nvarying vec2 vTexCoord;\n",applyTo:function(e){e.webgl?(e.passes++,this.width=e.sourceWidth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=e.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),e.destinationWidth=this.dW,this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e),e.sourceWidth=e.destinationWidth,this.height=e.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),e.destinationHeight=this.dH,this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e),e.sourceHeight=e.destinationHeight):this.applyTo2d(e)},isNeutralState:function(){return 1===this.scaleX&&1===this.scaleY},lanczosCreate:function(e){return function(t){if(t>=e||t<=-e)return 0;if(t<1.1920929e-7&&t>-1.1920929e-7)return 1;t*=Math.PI;var i=t/e;return o(t)/t*o(i)/i}},applyTo2d:function(e){var t=e.imageData,i=this.scaleX,a=this.scaleY;this.rcpScaleX=1/i,this.rcpScaleY=1/a;var n,r=t.width,o=t.height,l=s(r*i),c=s(o*a);"sliceHack"===this.resizeType?n=this.sliceByTwo(e,r,o,l,c):"hermite"===this.resizeType?n=this.hermiteFastResize(e,r,o,l,c):"bilinear"===this.resizeType?n=this.bilinearFiltering(e,r,o,l,c):"lanczos"===this.resizeType&&(n=this.lanczosResize(e,r,o,l,c)),e.imageData=n},sliceByTwo:function(e,i,n,r,s){var o,l,c=e.imageData,u=.5,d=!1,p=!1,f=i*u,A=n*u,h=t.filterBackend.resources,m=0,g=0,v=i,b=0;h.sliceByTwo||(h.sliceByTwo=document.createElement("canvas")),o=h.sliceByTwo,(o.width<1.5*i||o.height<n)&&(o.width=1.5*i,o.height=n),l=o.getContext("2d"),l.clearRect(0,0,1.5*i,n),l.putImageData(c,0,0),r=a(r),s=a(s);while(!d||!p)i=f,n=A,r<a(f*u)?f=a(f*u):(f=r,d=!0),s<a(A*u)?A=a(A*u):(A=s,p=!0),l.drawImage(o,m,g,i,n,v,b,f,A),m=v,g=b,b+=A;return l.getImageData(m,g,r,s)},lanczosResize:function(e,t,s,o,c){function u(e){var l,x,k,T,S,I,E,O,B,L,D;for(w.x=(e+.5)*h,C.x=a(w.x),l=0;l<c;l++){for(w.y=(l+.5)*m,C.y=a(w.y),S=0,I=0,E=0,O=0,B=0,x=C.x-b;x<=C.x+b;x++)if(!(x<0||x>=t)){L=a(1e3*r(x-w.x)),_[L]||(_[L]={});for(var M=C.y-y;M<=C.y+y;M++)M<0||M>=s||(D=a(1e3*r(M-w.y)),_[L][D]||(_[L][D]=A(n(i(L*g,2)+i(D*v,2))/1e3)),k=_[L][D],k>0&&(T=4*(M*t+x),S+=k,I+=k*d[T],E+=k*d[T+1],O+=k*d[T+2],B+=k*d[T+3]))}T=4*(l*o+e),f[T]=I/S,f[T+1]=E/S,f[T+2]=O/S,f[T+3]=B/S}return++e<o?u(e):p}var d=e.imageData.data,p=e.ctx.createImageData(o,c),f=p.data,A=this.lanczosCreate(this.lanczosLobes),h=this.rcpScaleX,m=this.rcpScaleY,g=2/this.rcpScaleX,v=2/this.rcpScaleY,b=l(h*this.lanczosLobes/2),y=l(m*this.lanczosLobes/2),_={},w={},C={};return u(0)},bilinearFiltering:function(e,t,i,n,r){var s,o,l,c,u,d,p,f,A,h,m,g,v,b=0,y=this.rcpScaleX,_=this.rcpScaleY,w=4*(t-1),C=e.imageData,x=C.data,k=e.ctx.createImageData(n,r),T=k.data;for(p=0;p<r;p++)for(f=0;f<n;f++)for(u=a(y*f),d=a(_*p),A=y*f-u,h=_*p-d,v=4*(d*t+u),m=0;m<4;m++)s=x[v+m],o=x[v+4+m],l=x[v+w+m],c=x[v+w+4+m],g=s*(1-A)*(1-h)+o*A*(1-h)+l*h*(1-A)+c*A*h,T[b++]=g;return k},hermiteFastResize:function(e,t,i,s,o){for(var c=this.rcpScaleX,u=this.rcpScaleY,d=l(c/2),p=l(u/2),f=e.imageData,A=f.data,h=e.ctx.createImageData(s,o),m=h.data,g=0;g<o;g++)for(var v=0;v<s;v++){for(var b=4*(v+g*s),y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=(g+.5)*u,I=a(g*u);I<(g+1)*u;I++)for(var E=r(S-(I+.5))/p,O=(v+.5)*c,B=E*E,L=a(v*c);L<(v+1)*c;L++){var D=r(O-(L+.5))/d,M=n(B+D*D);M>1&&M<-1||(y=2*M*M*M-3*M*M+1,y>0&&(D=4*(L+I*t),T+=y*A[D+3],w+=y,A[D+3]<255&&(y=y*A[D+3]/250),C+=y*A[D],x+=y*A[D+1],k+=y*A[D+2],_+=y))}m[b]=C/_,m[b+1]=x/_,m[b+2]=k/_,m[b+3]=T/w}return h},toObject:function(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}}),t.Image.filters.Resize.fromObject=t.Image.filters.BaseFilter.fromObject}(i),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,a=t.util.createClass;i.Contrast=a(i.BaseFilter,{type:"Contrast",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uContrast;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast));\ncolor.rgb = contrastF * (color.rgb - 0.5) + 0.5;\ngl_FragColor = color;\n}",contrast:0,mainParameter:"contrast",applyTo2d:function(e){if(0!==this.contrast){var t,i=e.imageData,a=i.data,n=a.length,r=Math.floor(255*this.contrast),s=259*(r+255)/(255*(259-r));for(t=0;t<n;t+=4)a[t]=s*(a[t]-128)+128,a[t+1]=s*(a[t+1]-128)+128,a[t+2]=s*(a[t+2]-128)+128}},getUniformLocations:function(e,t){return{uContrast:e.getUniformLocation(t,"uContrast")}},sendUniformData:function(e,t){e.uniform1f(t.uContrast,this.contrast)}}),t.Image.filters.Contrast.fromObject=t.Image.filters.BaseFilter.fromObject}(i),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,a=t.util.createClass;i.Saturation=a(i.BaseFilter,{type:"Saturation",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uSaturation;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat rgMax = max(color.r, color.g);\nfloat rgbMax = max(rgMax, color.b);\ncolor.r += rgbMax != color.r ? (rgbMax - color.r) * uSaturation : 0.00;\ncolor.g += rgbMax != color.g ? (rgbMax - color.g) * uSaturation : 0.00;\ncolor.b += rgbMax != color.b ? (rgbMax - color.b) * uSaturation : 0.00;\ngl_FragColor = color;\n}",saturation:0,mainParameter:"saturation",applyTo2d:function(e){if(0!==this.saturation){var t,i,a=e.imageData,n=a.data,r=n.length,s=-this.saturation;for(t=0;t<r;t+=4)i=Math.max(n[t],n[t+1],n[t+2]),n[t]+=i!==n[t]?(i-n[t])*s:0,n[t+1]+=i!==n[t+1]?(i-n[t+1])*s:0,n[t+2]+=i!==n[t+2]?(i-n[t+2])*s:0}},getUniformLocations:function(e,t){return{uSaturation:e.getUniformLocation(t,"uSaturation")}},sendUniformData:function(e,t){e.uniform1f(t.uSaturation,-this.saturation)}}),t.Image.filters.Saturation.fromObject=t.Image.filters.BaseFilter.fromObject}(i),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,a=t.util.createClass;i.Vibrance=a(i.BaseFilter,{type:"Vibrance",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uVibrance;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat max = max(color.r, max(color.g, color.b));\nfloat avg = (color.r + color.g + color.b) / 3.0;\nfloat amt = (abs(max - avg) * 2.0) * uVibrance;\ncolor.r += max != color.r ? (max - color.r) * amt : 0.00;\ncolor.g += max != color.g ? (max - color.g) * amt : 0.00;\ncolor.b += max != color.b ? (max - color.b) * amt : 0.00;\ngl_FragColor = color;\n}",vibrance:0,mainParameter:"vibrance",applyTo2d:function(e){if(0!==this.vibrance){var t,i,a,n,r=e.imageData,s=r.data,o=s.length,l=-this.vibrance;for(t=0;t<o;t+=4)i=Math.max(s[t],s[t+1],s[t+2]),a=(s[t]+s[t+1]+s[t+2])/3,n=2*Math.abs(i-a)/255*l,s[t]+=i!==s[t]?(i-s[t])*n:0,s[t+1]+=i!==s[t+1]?(i-s[t+1])*n:0,s[t+2]+=i!==s[t+2]?(i-s[t+2])*n:0}},getUniformLocations:function(e,t){return{uVibrance:e.getUniformLocation(t,"uVibrance")}},sendUniformData:function(e,t){e.uniform1f(t.uVibrance,-this.vibrance)}}),t.Image.filters.Vibrance.fromObject=t.Image.filters.BaseFilter.fromObject}(i),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,a=t.util.createClass;i.Blur=a(i.BaseFilter,{type:"Blur",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec2 uDelta;\nvarying vec2 vTexCoord;\nconst float nSamples = 15.0;\nvec3 v3offset = vec3(12.9898, 78.233, 151.7182);\nfloat random(vec3 scale) {\nreturn fract(sin(dot(gl_FragCoord.xyz, scale)) * 43758.5453);\n}\nvoid main() {\nvec4 color = vec4(0.0);\nfloat total = 0.0;\nfloat offset = random(v3offset);\nfor (float t = -nSamples; t <= nSamples; t++) {\nfloat percent = (t + offset - 0.5) / nSamples;\nfloat weight = 1.0 - abs(percent);\ncolor += texture2D(uTexture, vTexCoord + uDelta * percent) * weight;\ntotal += weight;\n}\ngl_FragColor = color / total;\n}",blur:0,mainParameter:"blur",applyTo:function(e){e.webgl?(this.aspectRatio=e.sourceWidth/e.sourceHeight,e.passes++,this._setupFrameBuffer(e),this.horizontal=!0,this.applyToWebGL(e),this._swapTextures(e),this._setupFrameBuffer(e),this.horizontal=!1,this.applyToWebGL(e),this._swapTextures(e)):this.applyTo2d(e)},applyTo2d:function(e){e.imageData=this.simpleBlur(e)},simpleBlur:function(e){var i,a,n=e.filterBackend.resources,r=e.imageData.width,s=e.imageData.height;n.blurLayer1||(n.blurLayer1=t.util.createCanvasElement(),n.blurLayer2=t.util.createCanvasElement()),i=n.blurLayer1,a=n.blurLayer2,i.width===r&&i.height===s||(a.width=i.width=r,a.height=i.height=s);var o,l,c,u,d=i.getContext("2d"),p=a.getContext("2d"),f=15,A=.06*this.blur*.5;for(d.putImageData(e.imageData,0,0),p.clearRect(0,0,r,s),u=-f;u<=f;u++)o=(Math.random()-.5)/4,l=u/f,c=A*l*r+o,p.globalAlpha=1-Math.abs(l),p.drawImage(i,c,o),d.drawImage(a,0,0),p.globalAlpha=1,p.clearRect(0,0,a.width,a.height);for(u=-f;u<=f;u++)o=(Math.random()-.5)/4,l=u/f,c=A*l*s+o,p.globalAlpha=1-Math.abs(l),p.drawImage(i,o,c),d.drawImage(a,0,0),p.globalAlpha=1,p.clearRect(0,0,a.width,a.height);e.ctx.drawImage(i,0,0);var h=e.ctx.getImageData(0,0,i.width,i.height);return d.globalAlpha=1,d.clearRect(0,0,i.width,i.height),h},getUniformLocations:function(e,t){return{delta:e.getUniformLocation(t,"uDelta")}},sendUniformData:function(e,t){var i=this.chooseRightDelta();e.uniform2fv(t.delta,i)},chooseRightDelta:function(){var e,t=1,i=[0,0];return this.horizontal?this.aspectRatio>1&&(t=1/this.aspectRatio):this.aspectRatio<1&&(t=this.aspectRatio),e=t*this.blur*.12,this.horizontal?i[0]=e:i[1]=e,i}}),i.Blur.fromObject=t.Image.filters.BaseFilter.fromObject}(i),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,a=t.util.createClass;i.Gamma=a(i.BaseFilter,{type:"Gamma",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec3 uGamma;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec3 correction = (1.0 / uGamma);\ncolor.r = pow(color.r, correction.r);\ncolor.g = pow(color.g, correction.g);\ncolor.b = pow(color.b, correction.b);\ngl_FragColor = color;\ngl_FragColor.rgb *= color.a;\n}",gamma:[1,1,1],mainParameter:"gamma",initialize:function(e){this.gamma=[1,1,1],i.BaseFilter.prototype.initialize.call(this,e)},applyTo2d:function(e){var t,i=e.imageData,a=i.data,n=this.gamma,r=a.length,s=1/n[0],o=1/n[1],l=1/n[2];for(this.rVals||(this.rVals=new Uint8Array(256),this.gVals=new Uint8Array(256),this.bVals=new Uint8Array(256)),t=0,r=256;t<r;t++)this.rVals[t]=255*Math.pow(t/255,s),this.gVals[t]=255*Math.pow(t/255,o),this.bVals[t]=255*Math.pow(t/255,l);for(t=0,r=a.length;t<r;t+=4)a[t]=this.rVals[a[t]],a[t+1]=this.gVals[a[t+1]],a[t+2]=this.bVals[a[t+2]]},getUniformLocations:function(e,t){return{uGamma:e.getUniformLocation(t,"uGamma")}},sendUniformData:function(e,t){e.uniform3fv(t.uGamma,this.gamma)}}),t.Image.filters.Gamma.fromObject=t.Image.filters.BaseFilter.fromObject}(i),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,a=t.util.createClass;i.Composed=a(i.BaseFilter,{type:"Composed",subFilters:[],initialize:function(e){this.callSuper("initialize",e),this.subFilters=this.subFilters.slice(0)},applyTo:function(e){e.passes+=this.subFilters.length-1,this.subFilters.forEach((function(t){t.applyTo(e)}))},toObject:function(){return t.util.object.extend(this.callSuper("toObject"),{subFilters:this.subFilters.map((function(e){return e.toObject()}))})},isNeutralState:function(){return!this.subFilters.some((function(e){return!e.isNeutralState()}))}}),t.Image.filters.Composed.fromObject=function(e,i){var a=e.subFilters||[],n=a.map((function(e){return new t.Image.filters[e.type](e)})),r=new t.Image.filters.Composed({subFilters:n});return i&&i(r),r}}(i),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.Image.filters,a=t.util.createClass;i.HueRotation=a(i.ColorMatrix,{type:"HueRotation",rotation:0,mainParameter:"rotation",calculateMatrix:function(){var e=this.rotation*Math.PI,i=t.util.cos(e),a=t.util.sin(e),n=1/3,r=Math.sqrt(n)*a,s=1-i;this.matrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],this.matrix[0]=i+s/3,this.matrix[1]=n*s-r,this.matrix[2]=n*s+r,this.matrix[5]=n*s+r,this.matrix[6]=i+n*s,this.matrix[7]=n*s-r,this.matrix[10]=n*s-r,this.matrix[11]=n*s+r,this.matrix[12]=i+n*s},isNeutralState:function(e){return this.calculateMatrix(),i.BaseFilter.prototype.isNeutralState.call(this,e)},applyTo:function(e){this.calculateMatrix(),i.BaseFilter.prototype.applyTo.call(this,e)}}),t.Image.filters.HueRotation.fromObject=t.Image.filters.BaseFilter.fromObject}(i),function(e){"use strict";var t=e.fabric||(e.fabric={}),i=t.util.object.clone;if(t.Text)t.warn("fabric.Text is already defined");else{var a="fontFamily fontWeight fontSize text underline overline linethrough textAlign fontStyle lineHeight textBackgroundColor charSpacing styles direction path pathStartOffset pathSide".split(" ");t.Text=t.util.createClass(t.Object,{_dimensionAffectingProps:["fontSize","fontWeight","fontFamily","fontStyle","lineHeight","text","charSpacing","textAlign","styles","path","pathStartOffset","pathSide"],_reNewline:/\r?\n/,_reSpacesAndTabs:/[ \t\r]/g,_reSpaceAndTab:/[ \t\r]/,_reWords:/\S+/g,type:"text",fontSize:40,fontWeight:"normal",fontFamily:"Times New Roman",underline:!1,overline:!1,linethrough:!1,textAlign:"left",fontStyle:"normal",lineHeight:1.16,superscript:{size:.6,baseline:-.35},subscript:{size:.6,baseline:.11},textBackgroundColor:"",stateProperties:t.Object.prototype.stateProperties.concat(a),cacheProperties:t.Object.prototype.cacheProperties.concat(a),stroke:null,shadow:null,path:null,pathStartOffset:0,pathSide:"left",_fontSizeFraction:.222,offsets:{underline:.1,linethrough:-.315,overline:-.88},_fontSizeMult:1.13,charSpacing:0,styles:null,_measuringContext:null,deltaY:0,direction:"ltr",_styleProperties:["stroke","strokeWidth","fill","fontFamily","fontSize","fontWeight","fontStyle","underline","overline","linethrough","deltaY","textBackgroundColor"],__charBounds:[],CACHE_FONT_SIZE:400,MIN_TEXT_WIDTH:2,initialize:function(e,t){this.styles=t&&t.styles||{},this.text=e,this.__skipDimension=!0,this.callSuper("initialize",t),this.path&&this.setPathInfo(),this.__skipDimension=!1,this.initDimensions(),this.setCoords(),this.setupState({propertySet:"_dimensionAffectingProps"})},setPathInfo:function(){var e=this.path;e&&(e.segmentsInfo=t.util.getPathSegmentsInfo(e.path))},getMeasuringContext:function(){return t._measuringContext||(t._measuringContext=this.canvas&&this.canvas.contextCache||t.util.createCanvasElement().getContext("2d")),t._measuringContext},_splitText:function(){var e=this._splitTextIntoLines(this.text);return this.textLines=e.lines,this._textLines=e.graphemeLines,this._unwrappedTextLines=e._unwrappedLines,this._text=e.graphemeText,e},initDimensions:function(){this.__skipDimension||(this._splitText(),this._clearCache(),this.path?(this.width=this.path.width,this.height=this.path.height):(this.width=this.calcTextWidth()||this.cursorWidth||this.MIN_TEXT_WIDTH,this.height=this.calcTextHeight()),-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.saveState({propertySet:"_dimensionAffectingProps"}))},enlargeSpaces:function(){for(var e,t,i,a,n,r,s,o=0,l=this._textLines.length;o<l;o++)if(("justify"===this.textAlign||o!==l-1&&!this.isEndOfWrapping(o))&&(a=0,n=this._textLines[o],t=this.getLineWidth(o),t<this.width&&(s=this.textLines[o].match(this._reSpacesAndTabs)))){i=s.length,e=(this.width-t)/i;for(var c=0,u=n.length;c<=u;c++)r=this.__charBounds[o][c],this._reSpaceAndTab.test(n[c])?(r.width+=e,r.kernedWidth+=e,r.left+=a,a+=e):r.left+=a}},isEndOfWrapping:function(e){return e===this._textLines.length-1},missingNewlineOffset:function(){return 1},toString:function(){return"#<fabric.Text ("+this.complexity()+'): { "text": "'+this.text+'", "fontFamily": "'+this.fontFamily+'" }>'},_getCacheCanvasDimensions:function(){var e=this.callSuper("_getCacheCanvasDimensions"),t=this.fontSize;return e.width+=t*e.zoomX,e.height+=t*e.zoomY,e},_render:function(e){var t=this.path;t&&!t.isNotVisible()&&t._render(e),this._setTextStyles(e),this._renderTextLinesBackground(e),this._renderTextDecoration(e,"underline"),this._renderText(e),this._renderTextDecoration(e,"overline"),this._renderTextDecoration(e,"linethrough")},_renderText:function(e){"stroke"===this.paintFirst?(this._renderTextStroke(e),this._renderTextFill(e)):(this._renderTextFill(e),this._renderTextStroke(e))},_setTextStyles:function(e,t,i){e.textBaseline="alphabetic",e.font=this._getFontDeclaration(t,i)},calcTextWidth:function(){for(var e=this.getLineWidth(0),t=1,i=this._textLines.length;t<i;t++){var a=this.getLineWidth(t);a>e&&(e=a)}return e},_renderTextLine:function(e,t,i,a,n,r){this._renderChars(e,t,i,a,n,r)},_renderTextLinesBackground:function(e){if(this.textBackgroundColor||this.styleHas("textBackgroundColor")){for(var t,i,a,n,r,s,o,l=e.fillStyle,c=this._getLeftOffset(),u=this._getTopOffset(),d=0,p=0,f=this.path,A=0,h=this._textLines.length;A<h;A++)if(t=this.getHeightOfLine(A),this.textBackgroundColor||this.styleHas("textBackgroundColor",A)){a=this._textLines[A],i=this._getLineLeftOffset(A),p=0,d=0,n=this.getValueOfPropertyAt(A,0,"textBackgroundColor");for(var m=0,g=a.length;m<g;m++)r=this.__charBounds[A][m],s=this.getValueOfPropertyAt(A,m,"textBackgroundColor"),f?(e.save(),e.translate(r.renderLeft,r.renderTop),e.rotate(r.angle),e.fillStyle=s,s&&e.fillRect(-r.width/2,-t/this.lineHeight*(1-this._fontSizeFraction),r.width,t/this.lineHeight),e.restore()):s!==n?(o=c+i+d,"rtl"===this.direction&&(o=this.width-o-p),e.fillStyle=n,n&&e.fillRect(o,u,p,t/this.lineHeight),d=r.left,p=r.width,n=s):p+=r.kernedWidth;s&&!f&&(o=c+i+d,"rtl"===this.direction&&(o=this.width-o-p),e.fillStyle=s,e.fillRect(o,u,p,t/this.lineHeight)),u+=t}else u+=t;e.fillStyle=l,this._removeShadow(e)}},getFontCache:function(e){var i=e.fontFamily.toLowerCase();t.charWidthsCache[i]||(t.charWidthsCache[i]={});var a=t.charWidthsCache[i],n=e.fontStyle.toLowerCase()+"_"+(e.fontWeight+"").toLowerCase();return a[n]||(a[n]={}),a[n]},_measureChar:function(e,t,i,a){var n,r,s,o,l=this.getFontCache(t),c=this._getFontDeclaration(t),u=this._getFontDeclaration(a),d=i+e,p=c===u,f=t.fontSize/this.CACHE_FONT_SIZE;if(i&&void 0!==l[i]&&(s=l[i]),void 0!==l[e]&&(o=n=l[e]),p&&void 0!==l[d]&&(r=l[d],o=r-s),void 0===n||void 0===s||void 0===r){var A=this.getMeasuringContext();this._setTextStyles(A,t,!0)}return void 0===n&&(o=n=A.measureText(e).width,l[e]=n),void 0===s&&p&&i&&(s=A.measureText(i).width,l[i]=s),p&&void 0===r&&(r=A.measureText(d).width,l[d]=r,o=r-s),{width:n*f,kernedWidth:o*f}},getHeightOfChar:function(e,t){return this.getValueOfPropertyAt(e,t,"fontSize")},measureLine:function(e){var t=this._measureLine(e);return 0!==this.charSpacing&&(t.width-=this._getWidthOfCharSpacing()),t.width<0&&(t.width=0),t},_measureLine:function(e){var i,a,n,r,s,o,l=0,c=this._textLines[e],u=0,d=new Array(c.length),p=0,f=this.path,A="right"===this.pathSide;for(this.__charBounds[e]=d,i=0;i<c.length;i++)a=c[i],r=this._getGraphemeBox(a,e,i,n),d[i]=r,l+=r.kernedWidth,n=a;if(d[i]={left:r?r.left+r.width:0,width:0,kernedWidth:0,height:this.fontSize},f){switch(o=f.segmentsInfo[f.segmentsInfo.length-1].length,s=t.util.getPointOnPath(f.path,0,f.segmentsInfo),s.x+=f.pathOffset.x,s.y+=f.pathOffset.y,this.textAlign){case"left":p=A?o-l:0;break;case"center":p=(o-l)/2;break;case"right":p=A?0:o-l;break}for(p+=this.pathStartOffset*(A?-1:1),i=A?c.length-1:0;A?i>=0:i<c.length;A?i--:i++)r=d[i],p>o?p%=o:p<0&&(p+=o),this._setGraphemeOnPath(p,r,s),p+=r.kernedWidth}return{width:l,numOfSpaces:u}},_setGraphemeOnPath:function(e,i,a){var n=e+i.kernedWidth/2,r=this.path,s=t.util.getPointOnPath(r.path,n,r.segmentsInfo);i.renderLeft=s.x-a.x,i.renderTop=s.y-a.y,i.angle=s.angle+("right"===this.pathSide?Math.PI:0)},_getGraphemeBox:function(e,t,i,a,n){var r,s=this.getCompleteStyleDeclaration(t,i),o=a?this.getCompleteStyleDeclaration(t,i-1):{},l=this._measureChar(e,s,a,o),c=l.kernedWidth,u=l.width;0!==this.charSpacing&&(r=this._getWidthOfCharSpacing(),u+=r,c+=r);var d={width:u,left:0,height:s.fontSize,kernedWidth:c,deltaY:s.deltaY};if(i>0&&!n){var p=this.__charBounds[t][i-1];d.left=p.left+p.width+l.kernedWidth-l.width}return d},getHeightOfLine:function(e){if(this.__lineHeights[e])return this.__lineHeights[e];for(var t=this._textLines[e],i=this.getHeightOfChar(e,0),a=1,n=t.length;a<n;a++)i=Math.max(this.getHeightOfChar(e,a),i);return this.__lineHeights[e]=i*this.lineHeight*this._fontSizeMult},calcTextHeight:function(){for(var e,t=0,i=0,a=this._textLines.length;i<a;i++)e=this.getHeightOfLine(i),t+=i===a-1?e/this.lineHeight:e;return t},_getLeftOffset:function(){return"ltr"===this.direction?-this.width/2:this.width/2},_getTopOffset:function(){return-this.height/2},_renderTextCommon:function(e,t){e.save();for(var i=0,a=this._getLeftOffset(),n=this._getTopOffset(),r=0,s=this._textLines.length;r<s;r++){var o=this.getHeightOfLine(r),l=o/this.lineHeight,c=this._getLineLeftOffset(r);this._renderTextLine(t,e,this._textLines[r],a+c,n+i+l,r),i+=o}e.restore()},_renderTextFill:function(e){(this.fill||this.styleHas("fill"))&&this._renderTextCommon(e,"fillText")},_renderTextStroke:function(e){(this.stroke&&0!==this.strokeWidth||!this.isEmptyStyles())&&(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(e),e.save(),this._setLineDash(e,this.strokeDashArray),e.beginPath(),this._renderTextCommon(e,"strokeText"),e.closePath(),e.restore())},_renderChars:function(e,t,i,a,n,r){var s,o,l,c,u,d=this.getHeightOfLine(r),p=-1!==this.textAlign.indexOf("justify"),f="",A=0,h=this.path,m=!p&&0===this.charSpacing&&this.isEmptyStyles(r)&&!h,g="ltr"===this.direction,v="ltr"===this.direction?1:-1;if(t.save(),n-=d*this._fontSizeFraction/this.lineHeight,m)return t.canvas.setAttribute("dir",g?"ltr":"rtl"),t.direction=g?"ltr":"rtl",t.textAlign=g?"left":"right",this._renderChar(e,t,r,0,i.join(""),a,n,d),void t.restore();for(var b=0,y=i.length-1;b<=y;b++)c=b===y||this.charSpacing||h,f+=i[b],l=this.__charBounds[r][b],0===A?(a+=v*(l.kernedWidth-l.width),A+=l.width):A+=l.kernedWidth,p&&!c&&this._reSpaceAndTab.test(i[b])&&(c=!0),c||(s=s||this.getCompleteStyleDeclaration(r,b),o=this.getCompleteStyleDeclaration(r,b+1),c=this._hasStyleChanged(s,o)),c&&(h?(t.save(),t.translate(l.renderLeft,l.renderTop),t.rotate(l.angle),this._renderChar(e,t,r,b,f,-A/2,0,d),t.restore()):(u=a,t.canvas.setAttribute("dir",g?"ltr":"rtl"),t.direction=g?"ltr":"rtl",t.textAlign=g?"left":"right",this._renderChar(e,t,r,b,f,u,n,d)),f="",s=o,a+=v*A,A=0);t.restore()},_applyPatternGradientTransformText:function(e){var i,a=t.util.createCanvasElement(),n=this.width+this.strokeWidth,r=this.height+this.strokeWidth;return a.width=n,a.height=r,i=a.getContext("2d"),i.beginPath(),i.moveTo(0,0),i.lineTo(n,0),i.lineTo(n,r),i.lineTo(0,r),i.closePath(),i.translate(n/2,r/2),i.fillStyle=e.toLive(i),this._applyPatternGradientTransform(i,e),i.fill(),i.createPattern(a,"no-repeat")},handleFiller:function(e,t,i){var a,n;return i.toLive?"percentage"===i.gradientUnits||i.gradientTransform||i.patternTransform?(a=-this.width/2,n=-this.height/2,e.translate(a,n),e[t]=this._applyPatternGradientTransformText(i),{offsetX:a,offsetY:n}):(e[t]=i.toLive(e,this),this._applyPatternGradientTransform(e,i)):(e[t]=i,{offsetX:0,offsetY:0})},_setStrokeStyles:function(e,t){return e.lineWidth=t.strokeWidth,e.lineCap=this.strokeLineCap,e.lineDashOffset=this.strokeDashOffset,e.lineJoin=this.strokeLineJoin,e.miterLimit=this.strokeMiterLimit,this.handleFiller(e,"strokeStyle",t.stroke)},_setFillStyles:function(e,t){return this.handleFiller(e,"fillStyle",t.fill)},_renderChar:function(e,t,i,a,n,r,s){var o,l,c=this._getStyleDeclaration(i,a),u=this.getCompleteStyleDeclaration(i,a),d="fillText"===e&&u.fill,p="strokeText"===e&&u.stroke&&u.strokeWidth;(p||d)&&(t.save(),d&&(o=this._setFillStyles(t,u)),p&&(l=this._setStrokeStyles(t,u)),t.font=this._getFontDeclaration(u),c&&c.textBackgroundColor&&this._removeShadow(t),c&&c.deltaY&&(s+=c.deltaY),d&&t.fillText(n,r-o.offsetX,s-o.offsetY),p&&t.strokeText(n,r-l.offsetX,s-l.offsetY),t.restore())},setSuperscript:function(e,t){return this._setScript(e,t,this.superscript)},setSubscript:function(e,t){return this._setScript(e,t,this.subscript)},_setScript:function(e,t,i){var a=this.get2DCursorLocation(e,!0),n=this.getValueOfPropertyAt(a.lineIndex,a.charIndex,"fontSize"),r=this.getValueOfPropertyAt(a.lineIndex,a.charIndex,"deltaY"),s={fontSize:n*i.size,deltaY:r+n*i.baseline};return this.setSelectionStyles(s,e,t),this},_hasStyleChanged:function(e,t){return e.fill!==t.fill||e.stroke!==t.stroke||e.strokeWidth!==t.strokeWidth||e.fontSize!==t.fontSize||e.fontFamily!==t.fontFamily||e.fontWeight!==t.fontWeight||e.fontStyle!==t.fontStyle||e.deltaY!==t.deltaY},_hasStyleChangedForSvg:function(e,t){return this._hasStyleChanged(e,t)||e.overline!==t.overline||e.underline!==t.underline||e.linethrough!==t.linethrough},_getLineLeftOffset:function(e){var t=this.getLineWidth(e),i=this.width-t,a=this.textAlign,n=this.direction,r=0,s=this.isEndOfWrapping(e);return"justify"===a||"justify-center"===a&&!s||"justify-right"===a&&!s||"justify-left"===a&&!s?0:("center"===a&&(r=i/2),"right"===a&&(r=i),"justify-center"===a&&(r=i/2),"justify-right"===a&&(r=i),"rtl"===n&&(r-=i),r)},_clearCache:function(){this.__lineWidths=[],this.__lineHeights=[],this.__charBounds=[]},_shouldClearDimensionCache:function(){var e=this._forceClearCache;return e||(e=this.hasStateChanged("_dimensionAffectingProps")),e&&(this.dirty=!0,this._forceClearCache=!1),e},getLineWidth:function(e){if(this.__lineWidths[e])return this.__lineWidths[e];var t,i,a=this._textLines[e];return""===a?t=0:(i=this.measureLine(e),t=i.width),this.__lineWidths[e]=t,t},_getWidthOfCharSpacing:function(){return 0!==this.charSpacing?this.fontSize*this.charSpacing/1e3:0},getValueOfPropertyAt:function(e,t,i){var a=this._getStyleDeclaration(e,t);return a&&"undefined"!==typeof a[i]?a[i]:this[i]},_renderTextDecoration:function(e,t){if(this[t]||this.styleHas(t)){for(var i,a,n,r,s,o,l,c,u,d,p,f,A,h,m,g,v=this._getLeftOffset(),b=this._getTopOffset(),y=this.path,_=this._getWidthOfCharSpacing(),w=this.offsets[t],C=0,x=this._textLines.length;C<x;C++)if(i=this.getHeightOfLine(C),this[t]||this.styleHas(t,C)){l=this._textLines[C],h=i/this.lineHeight,r=this._getLineLeftOffset(C),d=0,p=0,c=this.getValueOfPropertyAt(C,0,t),g=this.getValueOfPropertyAt(C,0,"fill"),u=b+h*(1-this._fontSizeFraction),a=this.getHeightOfChar(C,0),s=this.getValueOfPropertyAt(C,0,"deltaY");for(var k=0,T=l.length;k<T;k++)if(f=this.__charBounds[C][k],A=this.getValueOfPropertyAt(C,k,t),m=this.getValueOfPropertyAt(C,k,"fill"),n=this.getHeightOfChar(C,k),o=this.getValueOfPropertyAt(C,k,"deltaY"),y&&A&&m)e.save(),e.fillStyle=g,e.translate(f.renderLeft,f.renderTop),e.rotate(f.angle),e.fillRect(-f.kernedWidth/2,w*n+o,f.kernedWidth,this.fontSize/15),e.restore();else if((A!==c||m!==g||n!==a||o!==s)&&p>0){var S=v+r+d;"rtl"===this.direction&&(S=this.width-S-p),c&&g&&(e.fillStyle=g,e.fillRect(S,u+w*a+s,p,this.fontSize/15)),d=f.left,p=f.width,c=A,g=m,a=n,s=o}else p+=f.kernedWidth;S=v+r+d;"rtl"===this.direction&&(S=this.width-S-p),e.fillStyle=m,A&&m&&e.fillRect(S,u+w*a+s,p-_,this.fontSize/15),b+=i}else b+=i;this._removeShadow(e)}},_getFontDeclaration:function(e,i){var a=e||this,n=this.fontFamily,r=t.Text.genericFonts.indexOf(n.toLowerCase())>-1,s=void 0===n||n.indexOf("'")>-1||n.indexOf(",")>-1||n.indexOf('"')>-1||r?a.fontFamily:'"'+a.fontFamily+'"';return[t.isLikelyNode?a.fontWeight:a.fontStyle,t.isLikelyNode?a.fontStyle:a.fontWeight,i?this.CACHE_FONT_SIZE+"px":a.fontSize+"px",s].join(" ")},render:function(e){this.visible&&(this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(this._shouldClearDimensionCache()&&this.initDimensions(),this.callSuper("render",e)))},_splitTextIntoLines:function(e){for(var i=e.split(this._reNewline),a=new Array(i.length),n=["\n"],r=[],s=0;s<i.length;s++)a[s]=t.util.string.graphemeSplit(i[s]),r=r.concat(a[s],n);return r.pop(),{_unwrappedLines:a,lines:i,graphemeText:r,graphemeLines:a}},toObject:function(e){var t=a.concat(e),n=this.callSuper("toObject",t);return n.styles=i(this.styles,!0),n.path&&(n.path=this.path.toObject()),n},set:function(e,t){this.callSuper("set",e,t);var i=!1,a=!1;if("object"===typeof e)for(var n in e)"path"===n&&this.setPathInfo(),i=i||-1!==this._dimensionAffectingProps.indexOf(n),a=a||"path"===n;else i=-1!==this._dimensionAffectingProps.indexOf(e),a="path"===e;return a&&this.setPathInfo(),i&&(this.initDimensions(),this.setCoords()),this},complexity:function(){return 1}}),t.Text.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y dx dy font-family font-style font-weight font-size letter-spacing text-decoration text-anchor".split(" ")),t.Text.DEFAULT_SVG_FONT_SIZE=16,t.Text.fromElement=function(e,a,n){if(!e)return a(null);var r=t.parseAttributes(e,t.Text.ATTRIBUTE_NAMES),s=r.textAnchor||"left";if(n=t.util.object.extend(n?i(n):{},r),n.top=n.top||0,n.left=n.left||0,r.textDecoration){var o=r.textDecoration;-1!==o.indexOf("underline")&&(n.underline=!0),-1!==o.indexOf("overline")&&(n.overline=!0),-1!==o.indexOf("line-through")&&(n.linethrough=!0),delete n.textDecoration}"dx"in r&&(n.left+=r.dx),"dy"in r&&(n.top+=r.dy),"fontSize"in n||(n.fontSize=t.Text.DEFAULT_SVG_FONT_SIZE);var l="";"textContent"in e?l=e.textContent:"firstChild"in e&&null!==e.firstChild&&"data"in e.firstChild&&null!==e.firstChild.data&&(l=e.firstChild.data),l=l.replace(/^\s+|\s+$|\n+/g,"").replace(/\s+/g," ");var c=n.strokeWidth;n.strokeWidth=0;var u=new t.Text(l,n),d=u.getScaledHeight()/u.height,p=(u.height+u.strokeWidth)*u.lineHeight-u.height,f=p*d,A=u.getScaledHeight()+f,h=0;"center"===s&&(h=u.getScaledWidth()/2),"right"===s&&(h=u.getScaledWidth()),u.set({left:u.left-h,top:u.top-(A-u.fontSize*(.07+u._fontSizeFraction))/u.lineHeight,strokeWidth:"undefined"!==typeof c?c:1}),a(u)},t.Text.fromObject=function(e,a){var n=i(e),r=e.path;return delete n.path,t.Object._fromObject("Text",n,(function(e){r?t.Object._fromObject("Path",r,(function(t){e.set("path",t),a(e)}),"path"):a(e)}),"text")},t.Text.genericFonts=["sans-serif","serif","cursive","fantasy","monospace"],t.util.createAccessors&&t.util.createAccessors(t.Text)}}(i),function(){n.util.object.extend(n.Text.prototype,{isEmptyStyles:function(e){if(!this.styles)return!0;if("undefined"!==typeof e&&!this.styles[e])return!0;var t="undefined"===typeof e?this.styles:{line:this.styles[e]};for(var i in t)for(var a in t[i])for(var n in t[i][a])return!1;return!0},styleHas:function(e,t){if(!this.styles||!e||""===e)return!1;if("undefined"!==typeof t&&!this.styles[t])return!1;var i="undefined"===typeof t?this.styles:{0:this.styles[t]};for(var a in i)for(var n in i[a])if("undefined"!==typeof i[a][n][e])return!0;return!1},cleanStyle:function(e){if(!this.styles||!e||""===e)return!1;var t,i,a=this.styles,n=0,r=!0,s=0;for(var o in a){for(var l in t=0,a[o]){var c=a[o][l],u=c.hasOwnProperty(e);n++,u?(i?c[e]!==i&&(r=!1):i=c[e],c[e]===this[e]&&delete c[e]):r=!1,0!==Object.keys(c).length?t++:delete a[o][l]}0===t&&delete a[o]}for(var d=0;d<this._textLines.length;d++)s+=this._textLines[d].length;r&&n===s&&(this[e]=i,this.removeStyle(e))},removeStyle:function(e){if(this.styles&&e&&""!==e){var t,i,a,n=this.styles;for(i in n){for(a in t=n[i],t)delete t[a][e],0===Object.keys(t[a]).length&&delete t[a];0===Object.keys(t).length&&delete n[i]}}},_extendStyles:function(e,t){var i=this.get2DCursorLocation(e);this._getLineStyle(i.lineIndex)||this._setLineStyle(i.lineIndex),this._getStyleDeclaration(i.lineIndex,i.charIndex)||this._setStyleDeclaration(i.lineIndex,i.charIndex,{}),n.util.object.extend(this._getStyleDeclaration(i.lineIndex,i.charIndex),t)},get2DCursorLocation:function(e,t){"undefined"===typeof e&&(e=this.selectionStart);for(var i=t?this._unwrappedTextLines:this._textLines,a=i.length,n=0;n<a;n++){if(e<=i[n].length)return{lineIndex:n,charIndex:e};e-=i[n].length+this.missingNewlineOffset(n)}return{lineIndex:n-1,charIndex:i[n-1].length<e?i[n-1].length:e}},getSelectionStyles:function(e,t,i){"undefined"===typeof e&&(e=this.selectionStart||0),"undefined"===typeof t&&(t=this.selectionEnd||e);for(var a=[],n=e;n<t;n++)a.push(this.getStyleAtPosition(n,i));return a},getStyleAtPosition:function(e,t){var i=this.get2DCursorLocation(e),a=t?this.getCompleteStyleDeclaration(i.lineIndex,i.charIndex):this._getStyleDeclaration(i.lineIndex,i.charIndex);return a||{}},setSelectionStyles:function(e,t,i){"undefined"===typeof t&&(t=this.selectionStart||0),"undefined"===typeof i&&(i=this.selectionEnd||t);for(var a=t;a<i;a++)this._extendStyles(a,e);return this._forceClearCache=!0,this},_getStyleDeclaration:function(e,t){var i=this.styles&&this.styles[e];return i?i[t]:null},getCompleteStyleDeclaration:function(e,t){for(var i,a=this._getStyleDeclaration(e,t)||{},n={},r=0;r<this._styleProperties.length;r++)i=this._styleProperties[r],n[i]="undefined"===typeof a[i]?this[i]:a[i];return n},_setStyleDeclaration:function(e,t,i){this.styles[e][t]=i},_deleteStyleDeclaration:function(e,t){delete this.styles[e][t]},_getLineStyle:function(e){return!!this.styles[e]},_setLineStyle:function(e){this.styles[e]={}},_deleteLineStyle:function(e){delete this.styles[e]}})}(),function(){function e(e){e.textDecoration&&(e.textDecoration.indexOf("underline")>-1&&(e.underline=!0),e.textDecoration.indexOf("line-through")>-1&&(e.linethrough=!0),e.textDecoration.indexOf("overline")>-1&&(e.overline=!0),delete e.textDecoration)}n.IText=n.util.createClass(n.Text,n.Observable,{type:"i-text",selectionStart:0,selectionEnd:0,selectionColor:"rgba(17,119,255,0.3)",isEditing:!1,editable:!0,editingBorderColor:"rgba(102,153,255,0.25)",cursorWidth:2,cursorColor:"",cursorDelay:1e3,cursorDuration:600,caching:!0,hiddenTextareaContainer:null,_reSpace:/\s|\n/,_currentCursorOpacity:0,_selectionDirection:null,_abortCursorAnimation:!1,__widthOfSpace:[],inCompositionMode:!1,initialize:function(e,t){this.callSuper("initialize",e,t),this.initBehavior()},setSelectionStart:function(e){e=Math.max(e,0),this._updateAndFire("selectionStart",e)},setSelectionEnd:function(e){e=Math.min(e,this.text.length),this._updateAndFire("selectionEnd",e)},_updateAndFire:function(e,t){this[e]!==t&&(this._fireSelectionChanged(),this[e]=t),this._updateTextarea()},_fireSelectionChanged:function(){this.fire("selection:changed"),this.canvas&&this.canvas.fire("text:selection:changed",{target:this})},initDimensions:function(){this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this.callSuper("initDimensions")},render:function(e){this.clearContextTop(),this.callSuper("render",e),this.cursorOffsetCache={},this.renderCursorOrSelection()},_render:function(e){this.callSuper("_render",e)},clearContextTop:function(e){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var t=this.canvas.contextTop,i=this.canvas.viewportTransform;t.save(),t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),this.transform(t),this._clearTextArea(t),e||t.restore()}},renderCursorOrSelection:function(){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var e=this._getCursorBoundaries(),t=this.canvas.contextTop;this.clearContextTop(!0),this.selectionStart===this.selectionEnd?this.renderCursor(e,t):this.renderSelection(e,t),t.restore()}},_clearTextArea:function(e){var t=this.width+4,i=this.height+4;e.clearRect(-t/2,-i/2,t,i)},_getCursorBoundaries:function(e){"undefined"===typeof e&&(e=this.selectionStart);var t=this._getLeftOffset(),i=this._getTopOffset(),a=this._getCursorBoundariesOffsets(e);return{left:t,top:i,leftOffset:a.left,topOffset:a.top}},_getCursorBoundariesOffsets:function(e){if(this.cursorOffsetCache&&"top"in this.cursorOffsetCache)return this.cursorOffsetCache;var t,i,a,n,r=0,s=0,o=this.get2DCursorLocation(e);a=o.charIndex,i=o.lineIndex;for(var l=0;l<i;l++)r+=this.getHeightOfLine(l);t=this._getLineLeftOffset(i);var c=this.__charBounds[i][a];return c&&(s=c.left),0!==this.charSpacing&&a===this._textLines[i].length&&(s-=this._getWidthOfCharSpacing()),n={top:r,left:t+(s>0?s:0)},"rtl"===this.direction&&(n.left*=-1),this.cursorOffsetCache=n,this.cursorOffsetCache},renderCursor:function(e,t){var i=this.get2DCursorLocation(),a=i.lineIndex,n=i.charIndex>0?i.charIndex-1:0,r=this.getValueOfPropertyAt(a,n,"fontSize"),s=this.scaleX*this.canvas.getZoom(),o=this.cursorWidth/s,l=e.topOffset,c=this.getValueOfPropertyAt(a,n,"deltaY");l+=(1-this._fontSizeFraction)*this.getHeightOfLine(a)/this.lineHeight-r*(1-this._fontSizeFraction),this.inCompositionMode&&this.renderSelection(e,t),t.fillStyle=this.cursorColor||this.getValueOfPropertyAt(a,n,"fill"),t.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,t.fillRect(e.left+e.leftOffset-o/2,l+e.top+c,o,r)},renderSelection:function(e,t){for(var i=this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,a=this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd,n=-1!==this.textAlign.indexOf("justify"),r=this.get2DCursorLocation(i),s=this.get2DCursorLocation(a),o=r.lineIndex,l=s.lineIndex,c=r.charIndex<0?0:r.charIndex,u=s.charIndex<0?0:s.charIndex,d=o;d<=l;d++){var p=this._getLineLeftOffset(d)||0,f=this.getHeightOfLine(d),A=0,h=0,m=0;if(d===o&&(h=this.__charBounds[o][c].left),d>=o&&d<l)m=n&&!this.isEndOfWrapping(d)?this.width:this.getLineWidth(d)||5;else if(d===l)if(0===u)m=this.__charBounds[l][u].left;else{var g=this._getWidthOfCharSpacing();m=this.__charBounds[l][u-1].left+this.__charBounds[l][u-1].width-g}A=f,(this.lineHeight<1||d===l&&this.lineHeight>1)&&(f/=this.lineHeight);var v=e.left+p+h,b=m-h,y=f,_=0;this.inCompositionMode?(t.fillStyle=this.compositionColor||"black",y=1,_=f):t.fillStyle=this.selectionColor,"rtl"===this.direction&&(v=this.width-v-b),t.fillRect(v,e.top+e.topOffset+_,b,y),e.topOffset+=A}},getCurrentCharFontSize:function(){var e=this._getCurrentCharIndex();return this.getValueOfPropertyAt(e.l,e.c,"fontSize")},getCurrentCharColor:function(){var e=this._getCurrentCharIndex();return this.getValueOfPropertyAt(e.l,e.c,"fill")},_getCurrentCharIndex:function(){var e=this.get2DCursorLocation(this.selectionStart,!0),t=e.charIndex>0?e.charIndex-1:0;return{l:e.lineIndex,c:t}}}),n.IText.fromObject=function(t,i){if(e(t),t.styles)for(var a in t.styles)for(var r in t.styles[a])e(t.styles[a][r]);n.Object._fromObject("IText",t,i,"text")}}(),function(){var e=n.util.object.clone;n.util.object.extend(n.IText.prototype,{initBehavior:function(){this.initAddedHandler(),this.initRemovedHandler(),this.initCursorSelectionHandlers(),this.initDoubleClickSimulation(),this.mouseMoveHandler=this.mouseMoveHandler.bind(this)},onDeselect:function(){this.isEditing&&this.exitEditing(),this.selected=!1},initAddedHandler:function(){var e=this;this.on("added",(function(){var t=e.canvas;t&&(t._hasITextHandlers||(t._hasITextHandlers=!0,e._initCanvasHandlers(t)),t._iTextInstances=t._iTextInstances||[],t._iTextInstances.push(e))}))},initRemovedHandler:function(){var e=this;this.on("removed",(function(){var t=e.canvas;t&&(t._iTextInstances=t._iTextInstances||[],n.util.removeFromArray(t._iTextInstances,e),0===t._iTextInstances.length&&(t._hasITextHandlers=!1,e._removeCanvasHandlers(t)))}))},_initCanvasHandlers:function(e){e._mouseUpITextHandler=function(){e._iTextInstances&&e._iTextInstances.forEach((function(e){e.__isMousedown=!1}))},e.on("mouse:up",e._mouseUpITextHandler)},_removeCanvasHandlers:function(e){e.off("mouse:up",e._mouseUpITextHandler)},_tick:function(){this._currentTickState=this._animateCursor(this,1,this.cursorDuration,"_onTickComplete")},_animateCursor:function(e,t,i,a){var n;return n={isAborted:!1,abort:function(){this.isAborted=!0}},e.animate("_currentCursorOpacity",t,{duration:i,onComplete:function(){n.isAborted||e[a]()},onChange:function(){e.canvas&&e.selectionStart===e.selectionEnd&&e.renderCursorOrSelection()},abort:function(){return n.isAborted}}),n},_onTickComplete:function(){var e=this;this._cursorTimeout1&&clearTimeout(this._cursorTimeout1),this._cursorTimeout1=setTimeout((function(){e._currentTickCompleteState=e._animateCursor(e,0,this.cursorDuration/2,"_tick")}),100)},initDelayedCursor:function(e){var t=this,i=e?0:this.cursorDelay;this.abortCursorAnimation(),this._currentCursorOpacity=1,this._cursorTimeout2=setTimeout((function(){t._tick()}),i)},abortCursorAnimation:function(){var e=this._currentTickState||this._currentTickCompleteState,t=this.canvas;this._currentTickState&&this._currentTickState.abort(),this._currentTickCompleteState&&this._currentTickCompleteState.abort(),clearTimeout(this._cursorTimeout1),clearTimeout(this._cursorTimeout2),this._currentCursorOpacity=0,e&&t&&t.clearContext(t.contextTop||t.contextContainer)},selectAll:function(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this},getSelectedText:function(){return this._text.slice(this.selectionStart,this.selectionEnd).join("")},findWordBoundaryLeft:function(e){var t=0,i=e-1;if(this._reSpace.test(this._text[i]))while(this._reSpace.test(this._text[i]))t++,i--;while(/\S/.test(this._text[i])&&i>-1)t++,i--;return e-t},findWordBoundaryRight:function(e){var t=0,i=e;if(this._reSpace.test(this._text[i]))while(this._reSpace.test(this._text[i]))t++,i++;while(/\S/.test(this._text[i])&&i<this._text.length)t++,i++;return e+t},findLineBoundaryLeft:function(e){var t=0,i=e-1;while(!/\n/.test(this._text[i])&&i>-1)t++,i--;return e-t},findLineBoundaryRight:function(e){var t=0,i=e;while(!/\n/.test(this._text[i])&&i<this._text.length)t++,i++;return e+t},searchWordBoundary:function(e,t){var i=this._text,a=this._reSpace.test(i[e])?e-1:e,r=i[a],s=n.reNonWord;while(!s.test(r)&&a>0&&a<i.length)a+=t,r=i[a];return s.test(r)&&(a+=1===t?0:1),a},selectWord:function(e){e=e||this.selectionStart;var t=this.searchWordBoundary(e,-1),i=this.searchWordBoundary(e,1);this.selectionStart=t,this.selectionEnd=i,this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()},selectLine:function(e){e=e||this.selectionStart;var t=this.findLineBoundaryLeft(e),i=this.findLineBoundaryRight(e);return this.selectionStart=t,this.selectionEnd=i,this._fireSelectionChanged(),this._updateTextarea(),this},enterEditing:function(e){if(!this.isEditing&&this.editable)return this.canvas&&(this.canvas.calcOffset(),this.exitEditingOnOthers(this.canvas)),this.isEditing=!0,this.initHiddenTextarea(e),this.hiddenTextarea.focus(),this.hiddenTextarea.value=this.text,this._updateTextarea(),this._saveEditingProps(),this._setEditingProps(),this._textBeforeEdit=this.text,this._tick(),this.fire("editing:entered"),this._fireSelectionChanged(),this.canvas?(this.canvas.fire("text:editing:entered",{target:this}),this.initMouseMoveHandler(),this.canvas.requestRenderAll(),this):this},exitEditingOnOthers:function(e){e._iTextInstances&&e._iTextInstances.forEach((function(e){e.selected=!1,e.isEditing&&e.exitEditing()}))},initMouseMoveHandler:function(){this.canvas.on("mouse:move",this.mouseMoveHandler)},mouseMoveHandler:function(e){if(this.__isMousedown&&this.isEditing){var t=this.getSelectionStartFromPointer(e.e),i=this.selectionStart,a=this.selectionEnd;(t===this.__selectionStartOnMouseDown&&i!==a||i!==t&&a!==t)&&(t>this.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=t):(this.selectionStart=t,this.selectionEnd=this.__selectionStartOnMouseDown),this.selectionStart===i&&this.selectionEnd===a||(this.restartCursorIfNeeded(),this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}},_setEditingProps:function(){this.hoverCursor="text",this.canvas&&(this.canvas.defaultCursor=this.canvas.moveCursor="text"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0},fromStringToGraphemeSelection:function(e,t,i){var a=i.slice(0,e),r=n.util.string.graphemeSplit(a).length;if(e===t)return{selectionStart:r,selectionEnd:r};var s=i.slice(e,t),o=n.util.string.graphemeSplit(s).length;return{selectionStart:r,selectionEnd:r+o}},fromGraphemeToStringSelection:function(e,t,i){var a=i.slice(0,e),n=a.join("").length;if(e===t)return{selectionStart:n,selectionEnd:n};var r=i.slice(e,t),s=r.join("").length;return{selectionStart:n,selectionEnd:n+s}},_updateTextarea:function(){if(this.cursorOffsetCache={},this.hiddenTextarea){if(!this.inCompositionMode){var e=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=e.selectionStart,this.hiddenTextarea.selectionEnd=e.selectionEnd}this.updateTextareaPosition()}},updateFromTextArea:function(){if(this.hiddenTextarea){this.cursorOffsetCache={},this.text=this.hiddenTextarea.value,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords());var e=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value);this.selectionEnd=this.selectionStart=e.selectionEnd,this.inCompositionMode||(this.selectionStart=e.selectionStart),this.updateTextareaPosition()}},updateTextareaPosition:function(){if(this.selectionStart===this.selectionEnd){var e=this._calcTextareaPosition();this.hiddenTextarea.style.left=e.left,this.hiddenTextarea.style.top=e.top}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var e=this.inCompositionMode?this.compositionStart:this.selectionStart,t=this._getCursorBoundaries(e),i=this.get2DCursorLocation(e),a=i.lineIndex,r=i.charIndex,s=this.getValueOfPropertyAt(a,r,"fontSize")*this.lineHeight,o=t.leftOffset,l=this.calcTransformMatrix(),c={x:t.left+o,y:t.top+t.topOffset+s},u=this.canvas.getRetinaScaling(),d=this.canvas.upperCanvasEl,p=d.width/u,f=d.height/u,A=p-s,h=f-s,m=d.clientWidth/p,g=d.clientHeight/f;return c=n.util.transformPoint(c,l),c=n.util.transformPoint(c,this.canvas.viewportTransform),c.x*=m,c.y*=g,c.x<0&&(c.x=0),c.x>A&&(c.x=A),c.y<0&&(c.y=0),c.y>h&&(c.y=h),c.x+=this.canvas._offset.left,c.y+=this.canvas._offset.top,{left:c.x+"px",top:c.y+"px",fontSize:s+"px",charHeight:s}},_saveEditingProps:function(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,selectable:this.selectable,defaultCursor:this.canvas&&this.canvas.defaultCursor,moveCursor:this.canvas&&this.canvas.moveCursor}},_restoreEditingProps:function(){this._savedProps&&(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.selectable=this._savedProps.selectable,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas&&(this.canvas.defaultCursor=this._savedProps.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor))},exitEditing:function(){var e=this._textBeforeEdit!==this.text,t=this.hiddenTextarea;return this.selected=!1,this.isEditing=!1,this.selectionEnd=this.selectionStart,t&&(t.blur&&t.blur(),t.parentNode&&t.parentNode.removeChild(t)),this.hiddenTextarea=null,this.abortCursorAnimation(),this._restoreEditingProps(),this._currentCursorOpacity=0,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this.fire("editing:exited"),e&&this.fire("modified"),this.canvas&&(this.canvas.off("mouse:move",this.mouseMoveHandler),this.canvas.fire("text:editing:exited",{target:this}),e&&this.canvas.fire("object:modified",{target:this})),this},_removeExtraneousStyles:function(){for(var e in this.styles)this._textLines[e]||delete this.styles[e]},removeStyleFromTo:function(e,t){var i,a,n=this.get2DCursorLocation(e,!0),r=this.get2DCursorLocation(t,!0),s=n.lineIndex,o=n.charIndex,l=r.lineIndex,c=r.charIndex;if(s!==l){if(this.styles[s])for(i=o;i<this._unwrappedTextLines[s].length;i++)delete this.styles[s][i];if(this.styles[l])for(i=c;i<this._unwrappedTextLines[l].length;i++)a=this.styles[l][i],a&&(this.styles[s]||(this.styles[s]={}),this.styles[s][o+i-c]=a);for(i=s+1;i<=l;i++)delete this.styles[i];this.shiftLineStyles(l,s-l)}else if(this.styles[s]){a=this.styles[s];var u,d,p=c-o;for(i=o;i<c;i++)delete a[i];for(d in this.styles[s])u=parseInt(d,10),u>=c&&(a[u-p]=a[d],delete a[d])}},shiftLineStyles:function(t,i){var a=e(this.styles);for(var n in this.styles){var r=parseInt(n,10);r>t&&(this.styles[r+i]=a[r],a[r-i]||delete this.styles[r])}},restartCursorIfNeeded:function(){this._currentTickState&&!this._currentTickState.isAborted&&this._currentTickCompleteState&&!this._currentTickCompleteState.isAborted||this.initDelayedCursor()},insertNewlineStyleObject:function(t,i,a,n){var r,s={},o=!1,l=this._unwrappedTextLines[t].length===i;for(var c in a||(a=1),this.shiftLineStyles(t,a),this.styles[t]&&(r=this.styles[t][0===i?i:i-1]),this.styles[t]){var u=parseInt(c,10);u>=i&&(o=!0,s[u-i]=this.styles[t][c],l&&0===i||delete this.styles[t][c])}var d=!1;o&&!l&&(this.styles[t+a]=s,d=!0),d&&a--;while(a>0)n&&n[a-1]?this.styles[t+a]={0:e(n[a-1])}:r?this.styles[t+a]={0:e(r)}:delete this.styles[t+a],a--;this._forceClearCache=!0},insertCharStyleObject:function(t,i,a,n){this.styles||(this.styles={});var r=this.styles[t],s=r?e(r):{};for(var o in a||(a=1),s){var l=parseInt(o,10);l>=i&&(r[l+a]=s[l],s[l-a]||delete r[l])}if(this._forceClearCache=!0,n)while(a--)Object.keys(n[a]).length&&(this.styles[t]||(this.styles[t]={}),this.styles[t][i+a]=e(n[a]));else if(r){var c=r[i?i-1:1];while(c&&a--)this.styles[t][i+a]=e(c)}},insertNewStyleBlock:function(e,t,i){for(var a=this.get2DCursorLocation(t,!0),n=[0],r=0,s=0;s<e.length;s++)"\n"===e[s]?(r++,n[r]=0):n[r]++;n[0]>0&&(this.insertCharStyleObject(a.lineIndex,a.charIndex,n[0],i),i=i&&i.slice(n[0]+1)),r&&this.insertNewlineStyleObject(a.lineIndex,a.charIndex+n[0],r);for(s=1;s<r;s++)n[s]>0?this.insertCharStyleObject(a.lineIndex+s,0,n[s],i):i&&(this.styles[a.lineIndex+s][0]=i[0]),i=i&&i.slice(n[s]+1);n[s]>0&&this.insertCharStyleObject(a.lineIndex+s,0,n[s],i)},setSelectionStartEndWithShift:function(e,t,i){i<=e?(t===e?this._selectionDirection="left":"right"===this._selectionDirection&&(this._selectionDirection="left",this.selectionEnd=e),this.selectionStart=i):i>e&&i<t?"right"===this._selectionDirection?this.selectionEnd=i:this.selectionStart=i:(t===e?this._selectionDirection="right":"left"===this._selectionDirection&&(this._selectionDirection="right",this.selectionStart=t),this.selectionEnd=i)},setSelectionInBoundaries:function(){var e=this.text.length;this.selectionStart>e?this.selectionStart=e:this.selectionStart<0&&(this.selectionStart=0),this.selectionEnd>e?this.selectionEnd=e:this.selectionEnd<0&&(this.selectionEnd=0)}})}(),n.util.object.extend(n.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on("mousedown",this.onMouseDown)},onMouseDown:function(e){if(this.canvas){this.__newClickTime=+new Date;var t=e.pointer;this.isTripleClick(t)&&(this.fire("tripleclick",e),this._stopEvent(e.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=t,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(e){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===e.x&&this.__lastPointer.y===e.y},_stopEvent:function(e){e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},doubleClickHandler:function(e){this.isEditing&&this.selectWord(this.getSelectionStartFromPointer(e.e))},tripleClickHandler:function(e){this.isEditing&&this.selectLine(this.getSelectionStartFromPointer(e.e))},initClicks:function(){this.on("mousedblclick",this.doubleClickHandler),this.on("tripleclick",this.tripleClickHandler)},_mouseDownHandler:function(e){!this.canvas||!this.editable||e.e.button&&1!==e.e.button||(this.__isMousedown=!0,this.selected&&(this.inCompositionMode=!1,this.setCursorByClick(e.e)),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection()))},_mouseDownHandlerBefore:function(e){!this.canvas||!this.editable||e.e.button&&1!==e.e.button||(this.selected=this===this.canvas._activeObject)},initMousedownHandler:function(){this.on("mousedown",this._mouseDownHandler),this.on("mousedown:before",this._mouseDownHandlerBefore)},initMouseupHandler:function(){this.on("mouseup",this.mouseUpHandler)},mouseUpHandler:function(e){if(this.__isMousedown=!1,!(!this.editable||this.group||e.transform&&e.transform.actionPerformed||e.e.button&&1!==e.e.button)){if(this.canvas){var t=this.canvas._activeObject;if(t&&t!==this)return}this.__lastSelected&&!this.__corner?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(e.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0}},setCursorByClick:function(e){var t=this.getSelectionStartFromPointer(e),i=this.selectionStart,a=this.selectionEnd;e.shiftKey?this.setSelectionStartEndWithShift(i,a,t):(this.selectionStart=t,this.selectionEnd=t),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(e){for(var t,i,a=this.getLocalPointer(e),n=0,r=0,s=0,o=0,l=0,c=0,u=this._textLines.length;c<u;c++){if(!(s<=a.y))break;s+=this.getHeightOfLine(c)*this.scaleY,l=c,c>0&&(o+=this._textLines[c-1].length+this.missingNewlineOffset(c-1))}t=this._getLineLeftOffset(l),r=t*this.scaleX,i=this._textLines[l],"rtl"===this.direction&&(a.x=this.width*this.scaleX-a.x+r);for(var d=0,p=i.length;d<p;d++){if(n=r,r+=this.__charBounds[l][d].kernedWidth*this.scaleX,!(r<=a.x))break;o++}return this._getNewSelectionStartFromOffset(a,n,r,o,p)},_getNewSelectionStartFromOffset:function(e,t,i,a,n){var r=e.x-t,s=i-e.x,o=s>r||s<0?0:1,l=a+o;return this.flipX&&(l=n-l),l>this._text.length&&(l=this._text.length),l}}),n.util.object.extend(n.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=n.document.createElement("textarea"),this.hiddenTextarea.setAttribute("autocapitalize","off"),this.hiddenTextarea.setAttribute("autocorrect","off"),this.hiddenTextarea.setAttribute("autocomplete","off"),this.hiddenTextarea.setAttribute("spellcheck","false"),this.hiddenTextarea.setAttribute("data-fabric-hiddentextarea",""),this.hiddenTextarea.setAttribute("wrap","off");var e=this._calcTextareaPosition();this.hiddenTextarea.style.cssText="position: absolute; top: "+e.top+"; left: "+e.left+"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; paddingーtop: "+e.fontSize+";",this.hiddenTextareaContainer?this.hiddenTextareaContainer.appendChild(this.hiddenTextarea):n.document.body.appendChild(this.hiddenTextarea),n.util.addListener(this.hiddenTextarea,"keydown",this.onKeyDown.bind(this)),n.util.addListener(this.hiddenTextarea,"keyup",this.onKeyUp.bind(this)),n.util.addListener(this.hiddenTextarea,"input",this.onInput.bind(this)),n.util.addListener(this.hiddenTextarea,"copy",this.copy.bind(this)),n.util.addListener(this.hiddenTextarea,"cut",this.copy.bind(this)),n.util.addListener(this.hiddenTextarea,"paste",this.paste.bind(this)),n.util.addListener(this.hiddenTextarea,"compositionstart",this.onCompositionStart.bind(this)),n.util.addListener(this.hiddenTextarea,"compositionupdate",this.onCompositionUpdate.bind(this)),n.util.addListener(this.hiddenTextarea,"compositionend",this.onCompositionEnd.bind(this)),!this._clickHandlerInitialized&&this.canvas&&(n.util.addListener(this.canvas.upperCanvasEl,"click",this.onClick.bind(this)),this._clickHandlerInitialized=!0)},keysMap:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorRight",36:"moveCursorLeft",37:"moveCursorLeft",38:"moveCursorUp",39:"moveCursorRight",40:"moveCursorDown"},keysMapRtl:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorLeft",36:"moveCursorRight",37:"moveCursorRight",38:"moveCursorUp",39:"moveCursorLeft",40:"moveCursorDown"},ctrlKeysMapUp:{67:"copy",88:"cut"},ctrlKeysMapDown:{65:"selectAll"},onClick:function(){this.hiddenTextarea&&this.hiddenTextarea.focus()},onKeyDown:function(e){if(this.isEditing){var t="rtl"===this.direction?this.keysMapRtl:this.keysMap;if(e.keyCode in t)this[t[e.keyCode]](e);else{if(!(e.keyCode in this.ctrlKeysMapDown)||!e.ctrlKey&&!e.metaKey)return;this[this.ctrlKeysMapDown[e.keyCode]](e)}e.stopImmediatePropagation(),e.preventDefault(),e.keyCode>=33&&e.keyCode<=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}},onKeyUp:function(e){!this.isEditing||this._copyDone||this.inCompositionMode?this._copyDone=!1:e.keyCode in this.ctrlKeysMapUp&&(e.ctrlKey||e.metaKey)&&(this[this.ctrlKeysMapUp[e.keyCode]](e),e.stopImmediatePropagation(),e.preventDefault(),this.canvas&&this.canvas.requestRenderAll())},onInput:function(e){var t=this.fromPaste;if(this.fromPaste=!1,e&&e.stopPropagation(),this.isEditing){var i,a,r,s,o,l=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,c=this._text.length,u=l.length,d=u-c,p=this.selectionStart,f=this.selectionEnd,A=p!==f;if(""===this.hiddenTextarea.value)return this.styles={},this.updateFromTextArea(),this.fire("changed"),void(this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll()));var h=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),m=p>h.selectionStart;A?(i=this._text.slice(p,f),d+=f-p):u<c&&(i=m?this._text.slice(f+d,f):this._text.slice(p,p-d)),a=l.slice(h.selectionEnd-d,h.selectionEnd),i&&i.length&&(a.length&&(r=this.getSelectionStyles(p,p+1,!1),r=a.map((function(){return r[0]}))),A?(s=p,o=f):m?(s=f-i.length,o=f):(s=f,o=f+i.length),this.removeStyleFromTo(s,o)),a.length&&(t&&a.join("")===n.copiedText&&!n.disableStyleCopyPaste&&(r=n.copiedTextStyle),this.insertNewStyleBlock(a,p,r)),this.updateFromTextArea(),this.fire("changed"),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll())}},onCompositionStart:function(){this.inCompositionMode=!0},onCompositionEnd:function(){this.inCompositionMode=!1},onCompositionUpdate:function(e){this.compositionStart=e.target.selectionStart,this.compositionEnd=e.target.selectionEnd,this.updateTextareaPosition()},copy:function(){this.selectionStart!==this.selectionEnd&&(n.copiedText=this.getSelectedText(),n.disableStyleCopyPaste?n.copiedTextStyle=null:n.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0)},paste:function(){this.fromPaste=!0},_getClipboardData:function(e){return e&&e.clipboardData||n.window.clipboardData},_getWidthBeforeCursor:function(e,t){var i,a=this._getLineLeftOffset(e);return t>0&&(i=this.__charBounds[e][t-1],a+=i.left+i.width),a},getDownCursorOffset:function(e,t){var i=this._getSelectionForOffset(e,t),a=this.get2DCursorLocation(i),n=a.lineIndex;if(n===this._textLines.length-1||e.metaKey||34===e.keyCode)return this._text.length-i;var r=a.charIndex,s=this._getWidthBeforeCursor(n,r),o=this._getIndexOnLine(n+1,s),l=this._textLines[n].slice(r);return l.length+o+1+this.missingNewlineOffset(n)},_getSelectionForOffset:function(e,t){return e.shiftKey&&this.selectionStart!==this.selectionEnd&&t?this.selectionEnd:this.selectionStart},getUpCursorOffset:function(e,t){var i=this._getSelectionForOffset(e,t),a=this.get2DCursorLocation(i),n=a.lineIndex;if(0===n||e.metaKey||33===e.keyCode)return-i;var r=a.charIndex,s=this._getWidthBeforeCursor(n,r),o=this._getIndexOnLine(n-1,s),l=this._textLines[n].slice(0,r),c=this.missingNewlineOffset(n-1);return-this._textLines[n-1].length+o-l.length+(1-c)},_getIndexOnLine:function(e,t){for(var i,a,n=this._textLines[e],r=this._getLineLeftOffset(e),s=r,o=0,l=0,c=n.length;l<c;l++)if(i=this.__charBounds[e][l].width,s+=i,s>t){a=!0;var u=s-i,d=s,p=Math.abs(u-t),f=Math.abs(d-t);o=f<p?l:l-1;break}return a||(o=n.length-1),o},moveCursorDown:function(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown("Down",e)},moveCursorUp:function(e){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorUpOrDown("Up",e)},_moveCursorUpOrDown:function(e,t){var i="get"+e+"CursorOffset",a=this[i](t,"right"===this._selectionDirection);t.shiftKey?this.moveCursorWithShift(a):this.moveCursorWithoutShift(a),0!==a&&(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(e){var t="left"===this._selectionDirection?this.selectionStart+e:this.selectionEnd+e;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,t),0!==e},moveCursorWithoutShift:function(e){return e<0?(this.selectionStart+=e,this.selectionEnd=this.selectionStart):(this.selectionEnd+=e,this.selectionStart=this.selectionEnd),0!==e},moveCursorLeft:function(e){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorLeftOrRight("Left",e)},_move:function(e,t,i){var a;if(e.altKey)a=this["findWordBoundary"+i](this[t]);else{if(!e.metaKey&&35!==e.keyCode&&36!==e.keyCode)return this[t]+="Left"===i?-1:1,!0;a=this["findLineBoundary"+i](this[t])}if(void 0!==typeof a&&this[t]!==a)return this[t]=a,!0},_moveLeft:function(e,t){return this._move(e,t,"Left")},_moveRight:function(e,t){return this._move(e,t,"Right")},moveCursorLeftWithoutShift:function(e){var t=!0;return this._selectionDirection="left",this.selectionEnd===this.selectionStart&&0!==this.selectionStart&&(t=this._moveLeft(e,"selectionStart")),this.selectionEnd=this.selectionStart,t},moveCursorLeftWithShift:function(e){return"right"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveLeft(e,"selectionEnd"):0!==this.selectionStart?(this._selectionDirection="left",this._moveLeft(e,"selectionStart")):void 0},moveCursorRight:function(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight("Right",e)},_moveCursorLeftOrRight:function(e,t){var i="moveCursor"+e+"With";this._currentCursorOpacity=1,t.shiftKey?i+="Shift":i+="outShift",this[i](t)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(e){return"left"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveRight(e,"selectionStart"):this.selectionEnd!==this._text.length?(this._selectionDirection="right",this._moveRight(e,"selectionEnd")):void 0},moveCursorRightWithoutShift:function(e){var t=!0;return this._selectionDirection="right",this.selectionStart===this.selectionEnd?(t=this._moveRight(e,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,t},removeChars:function(e,t){"undefined"===typeof t&&(t=e+1),this.removeStyleFromTo(e,t),this._text.splice(e,t-e),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(e,t,i,a){"undefined"===typeof a&&(a=i),a>i&&this.removeStyleFromTo(i,a);var r=n.util.string.graphemeSplit(e);this.insertNewStyleBlock(r,i,t),this._text=[].concat(this._text.slice(0,i),r,this._text.slice(a)),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()}}),function(){var e=n.util.toFixed,t=/ +/g;n.util.object.extend(n.Text.prototype,{_toSVG:function(){var e=this._getSVGLeftTopOffsets(),t=this._getSVGTextAndBg(e.textTop,e.textLeft);return this._wrapSVGTextAndBg(t)},toSVG:function(e){return this._createBaseSVGMarkup(this._toSVG(),{reviver:e,noStyle:!0,withShadow:!0})},_getSVGLeftTopOffsets:function(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}},_wrapSVGTextAndBg:function(e){var t=!0,i=this.getSvgTextDecoration(this);return[e.textBgRects.join(""),'\t\t<text xml:space="preserve" ',this.fontFamily?'font-family="'+this.fontFamily.replace(/"/g,"'")+'" ':"",this.fontSize?'font-size="'+this.fontSize+'" ':"",this.fontStyle?'font-style="'+this.fontStyle+'" ':"",this.fontWeight?'font-weight="'+this.fontWeight+'" ':"",i?'text-decoration="'+i+'" ':"",'style="',this.getSvgStyles(t),'"',this.addPaintOrder()," >",e.textSpans.join(""),"</text>\n"]},_getSVGTextAndBg:function(e,t){var i,a=[],n=[],r=e;this._setSVGBg(n);for(var s=0,o=this._textLines.length;s<o;s++)i=this._getLineLeftOffset(s),(this.textBackgroundColor||this.styleHas("textBackgroundColor",s))&&this._setSVGTextLineBg(n,s,t+i,r),this._setSVGTextLineText(a,s,t+i,r),r+=this.getHeightOfLine(s);return{textSpans:a,textBgRects:n}},_createTextCharSpan:function(i,a,r,s){var o=i!==i.trim()||i.match(t),l=this.getSvgSpanStyles(a,o),c=l?'style="'+l+'"':"",u=a.deltaY,d="",p=n.Object.NUM_FRACTION_DIGITS;return u&&(d=' dy="'+e(u,p)+'" '),['<tspan x="',e(r,p),'" y="',e(s,p),'" ',d,c,">",n.util.string.escapeXml(i),"</tspan>"].join("")},_setSVGTextLineText:function(e,t,i,a){var n,r,s,o,l,c=this.getHeightOfLine(t),u=-1!==this.textAlign.indexOf("justify"),d="",p=0,f=this._textLines[t];a+=c*(1-this._fontSizeFraction)/this.lineHeight;for(var A=0,h=f.length-1;A<=h;A++)l=A===h||this.charSpacing,d+=f[A],s=this.__charBounds[t][A],0===p?(i+=s.kernedWidth-s.width,p+=s.width):p+=s.kernedWidth,u&&!l&&this._reSpaceAndTab.test(f[A])&&(l=!0),l||(n=n||this.getCompleteStyleDeclaration(t,A),r=this.getCompleteStyleDeclaration(t,A+1),l=this._hasStyleChangedForSvg(n,r)),l&&(o=this._getStyleDeclaration(t,A)||{},e.push(this._createTextCharSpan(d,o,i,a)),d="",n=r,i+=p,p=0)},_pushTextBgRect:function(t,i,a,r,s,o){var l=n.Object.NUM_FRACTION_DIGITS;t.push("\t\t<rect ",this._getFillAttributes(i),' x="',e(a,l),'" y="',e(r,l),'" width="',e(s,l),'" height="',e(o,l),'"></rect>\n')},_setSVGTextLineBg:function(e,t,i,a){for(var n,r,s=this._textLines[t],o=this.getHeightOfLine(t)/this.lineHeight,l=0,c=0,u=this.getValueOfPropertyAt(t,0,"textBackgroundColor"),d=0,p=s.length;d<p;d++)n=this.__charBounds[t][d],r=this.getValueOfPropertyAt(t,d,"textBackgroundColor"),r!==u?(u&&this._pushTextBgRect(e,u,i+c,a,l,o),c=n.left,l=n.width,u=r):l+=n.kernedWidth;r&&this._pushTextBgRect(e,r,i+c,a,l,o)},_getFillAttributes:function(e){var t=e&&"string"===typeof e?new n.Color(e):"";return t&&t.getSource()&&1!==t.getAlpha()?'opacity="'+t.getAlpha()+'" fill="'+t.setAlpha(1).toRgb()+'"':'fill="'+e+'"'},_getSVGLineTopOffset:function(e){for(var t=0,i=0,a=0;a<e;a++)t+=this.getHeightOfLine(a);return i=this.getHeightOfLine(a),{lineTop:t,offset:(this._fontSizeMult-this._fontSizeFraction)*i/(this.lineHeight*this._fontSizeMult)}},getSvgStyles:function(e){var t=n.Object.prototype.getSvgStyles.call(this,e);return t+" white-space: pre;"}})}(),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Textbox=t.util.createClass(t.IText,t.Observable,{type:"textbox",minWidth:20,dynamicMinWidth:2,__cachedLines:null,lockScalingFlip:!0,noScaleCache:!1,_dimensionAffectingProps:t.Text.prototype._dimensionAffectingProps.concat("width"),_wordJoiners:/[ \t\r]/,splitByGrapheme:!1,initDimensions:function(){this.__skipDimension||(this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),this.dynamicMinWidth>this.width&&this._set("width",this.dynamicMinWidth),-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.height=this.calcTextHeight(),this.saveState({propertySet:"_dimensionAffectingProps"}))},_generateStyleMap:function(e){for(var t=0,i=0,a=0,n={},r=0;r<e.graphemeLines.length;r++)"\n"===e.graphemeText[a]&&r>0?(i=0,a++,t++):!this.splitByGrapheme&&this._reSpaceAndTab.test(e.graphemeText[a])&&r>0&&(i++,a++),n[r]={line:t,offset:i},a+=e.graphemeLines[r].length,i+=e.graphemeLines[r].length;return n},styleHas:function(e,i){if(this._styleMap&&!this.isWrapping){var a=this._styleMap[i];a&&(i=a.line)}return t.Text.prototype.styleHas.call(this,e,i)},isEmptyStyles:function(e){if(!this.styles)return!0;var t,i,a=0,n=e+1,r=!1,s=this._styleMap[e],o=this._styleMap[e+1];for(var l in s&&(e=s.line,a=s.offset),o&&(n=o.line,r=n===e,t=o.offset),i="undefined"===typeof e?this.styles:{line:this.styles[e]},i)for(var c in i[l])if(c>=a&&(!r||c<t))for(var u in i[l][c])return!1;return!0},_getStyleDeclaration:function(e,t){if(this._styleMap&&!this.isWrapping){var i=this._styleMap[e];if(!i)return null;e=i.line,t=i.offset+t}return this.callSuper("_getStyleDeclaration",e,t)},_setStyleDeclaration:function(e,t,i){var a=this._styleMap[e];e=a.line,t=a.offset+t,this.styles[e][t]=i},_deleteStyleDeclaration:function(e,t){var i=this._styleMap[e];e=i.line,t=i.offset+t,delete this.styles[e][t]},_getLineStyle:function(e){var t=this._styleMap[e];return!!this.styles[t.line]},_setLineStyle:function(e){var t=this._styleMap[e];this.styles[t.line]={}},_wrapText:function(e,t){var i,a=[];for(this.isWrapping=!0,i=0;i<e.length;i++)a=a.concat(this._wrapLine(e[i],i,t));return this.isWrapping=!1,a},_measureWord:function(e,t,i){var a,n=0,r=!0;i=i||0;for(var s=0,o=e.length;s<o;s++){var l=this._getGraphemeBox(e[s],t,s+i,a,r);n+=l.kernedWidth,a=e[s]}return n},_wrapLine:function(e,i,a,n){var r=0,s=this.splitByGrapheme,o=[],l=[],c=s?t.util.string.graphemeSplit(e):e.split(this._wordJoiners),u="",d=0,p=s?"":" ",f=0,A=0,h=0,m=!0,g=this._getWidthOfCharSpacing();n=n||0;0===c.length&&c.push([]),a-=n;for(var v=0;v<c.length;v++)u=s?c[v]:t.util.string.graphemeSplit(c[v]),f=this._measureWord(u,i,d),d+=u.length,r+=A+f-g,r>a&&!m?(o.push(l),l=[],r=f,m=!0):r+=g,m||s||l.push(p),l=l.concat(u),A=s?0:this._measureWord([p],i,d),d++,m=!1,f>h&&(h=f);return v&&o.push(l),h+n>this.dynamicMinWidth&&(this.dynamicMinWidth=h-g+n),o},isEndOfWrapping:function(e){return!this._styleMap[e+1]||this._styleMap[e+1].line!==this._styleMap[e].line},missingNewlineOffset:function(e){return this.splitByGrapheme?this.isEndOfWrapping(e)?1:0:1},_splitTextIntoLines:function(e){for(var i=t.Text.prototype._splitTextIntoLines.call(this,e),a=this._wrapText(i.lines,this.width),n=new Array(a.length),r=0;r<a.length;r++)n[r]=a[r].join("");return i.lines=n,i.graphemeLines=a,i},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},_removeExtraneousStyles:function(){var e={};for(var t in this._styleMap)this._textLines[t]&&(e[this._styleMap[t].line]=1);for(var t in this.styles)e[t]||delete this.styles[t]},toObject:function(e){return this.callSuper("toObject",["minWidth","splitByGrapheme"].concat(e))}}),t.Textbox.fromObject=function(e,i){return t.Object._fromObject("Textbox",e,i,"text")}}(i),function(){var e=n.controlsUtils,t=e.scaleSkewCursorStyleHandler,i=e.scaleCursorStyleHandler,a=e.scalingEqually,r=e.scalingYOrSkewingX,s=e.scalingXOrSkewingY,o=e.scaleOrSkewActionName,l=n.Object.prototype.controls;if(l.ml=new n.Control({x:-.5,y:0,cursorStyleHandler:t,actionHandler:s,getActionName:o}),l.mr=new n.Control({x:.5,y:0,cursorStyleHandler:t,actionHandler:s,getActionName:o}),l.mb=new n.Control({x:0,y:.5,cursorStyleHandler:t,actionHandler:r,getActionName:o}),l.mt=new n.Control({x:0,y:-.5,cursorStyleHandler:t,actionHandler:r,getActionName:o}),l.tl=new n.Control({x:-.5,y:-.5,cursorStyleHandler:i,actionHandler:a}),l.tr=new n.Control({x:.5,y:-.5,cursorStyleHandler:i,actionHandler:a}),l.bl=new n.Control({x:-.5,y:.5,cursorStyleHandler:i,actionHandler:a}),l.br=new n.Control({x:.5,y:.5,cursorStyleHandler:i,actionHandler:a}),l.mtr=new n.Control({x:0,y:-.5,actionHandler:e.rotationWithSnapping,cursorStyleHandler:e.rotationStyleHandler,offsetY:-40,withConnection:!0,actionName:"rotate"}),n.Textbox){var c=n.Textbox.prototype.controls={};c.mtr=l.mtr,c.tr=l.tr,c.br=l.br,c.tl=l.tl,c.bl=l.bl,c.mt=l.mt,c.mb=l.mb,c.mr=new n.Control({x:.5,y:0,actionHandler:e.changeWidth,cursorStyleHandler:t,actionName:"resizing"}),c.ml=new n.Control({x:-.5,y:0,actionHandler:e.changeWidth,cursorStyleHandler:t,actionName:"resizing"})}}()},3053:function(e,t,i){"use strict";var a=i(602);function n(e,t,i){var n,r;if(i=i||0,!a(t))return-1;if(Array.prototype.indexOf)return Array.prototype.indexOf.call(t,e,i);for(r=t.length,n=i;i>=0&&n<r;n+=1)if(t[n]===e)return n;return-1}e.exports=n},8592:function(e,t,i){"use strict";var a=i(602),n=i(6092),r=i(5573);function s(e,t,i){a(e)?n(e,t,i):r(e,t,i)}e.exports=s},6092:function(e){"use strict";function t(e,t,i){var a=0,n=e.length;for(i=i||null;a<n;a+=1)if(!1===t.call(i,e[a],a,e))break}e.exports=t},5573:function(e){"use strict";function t(e,t,i){var a;for(a in i=i||null,e)if(e.hasOwnProperty(a)&&!1===t.call(i,e[a],a,e))break}e.exports=t},9052:function(e,t,i){"use strict";var a=i(961),n=i(9886),r=i(2560),s=i(5393),o=i(602),l=i(5183),c=i(8592),u=/\s+/g;function d(){this.events=null,this.contexts=null}d.mixin=function(e){a(e.prototype,d.prototype)},d.prototype._getHandlerItem=function(e,t){var i={handler:e};return t&&(i.context=t),i},d.prototype._safeEvent=function(e){var t,i=this.events;return i||(i=this.events={}),e&&(t=i[e],t||(t=[],i[e]=t),i=t),i},d.prototype._safeContext=function(){var e=this.contexts;return e||(e=this.contexts=[]),e},d.prototype._indexOfContext=function(e){var t=this._safeContext(),i=0;while(t[i]){if(e===t[i][0])return i;i+=1}return-1},d.prototype._memorizeContext=function(e){var t,i;n(e)&&(t=this._safeContext(),i=this._indexOfContext(e),i>-1?t[i][1]+=1:t.push([e,1]))},d.prototype._forgetContext=function(e){var t,i;n(e)&&(t=this._safeContext(),i=this._indexOfContext(e),i>-1&&(t[i][1]-=1,t[i][1]<=0&&t.splice(i,1)))},d.prototype._bindEvent=function(e,t,i){var a=this._safeEvent(e);this._memorizeContext(i),a.push(this._getHandlerItem(t,i))},d.prototype.on=function(e,t,i){var a=this;r(e)?(e=e.split(u),c(e,(function(e){a._bindEvent(e,t,i)}))):s(e)&&(i=t,c(e,(function(e,t){a.on(t,e,i)})))},d.prototype.once=function(e,t,i){var a=this;if(s(e))return i=t,void c(e,(function(e,t){a.once(t,e,i)}));function n(){t.apply(i,arguments),a.off(e,n,i)}this.on(e,n,i)},d.prototype._spliceMatches=function(e,t){var i,a=0;if(o(e))for(i=e.length;a<i;a+=1)!0===t(e[a])&&(e.splice(a,1),i-=1,a-=1)},d.prototype._matchHandler=function(e){var t=this;return function(i){var a=e===i.handler;return a&&t._forgetContext(i.context),a}},d.prototype._matchContext=function(e){var t=this;return function(i){var a=e===i.context;return a&&t._forgetContext(i.context),a}},d.prototype._matchHandlerAndContext=function(e,t){var i=this;return function(a){var n=e===a.handler,r=t===a.context,s=n&&r;return s&&i._forgetContext(a.context),s}},d.prototype._offByEventName=function(e,t){var i=this,a=l(t),n=i._matchHandler(t);e=e.split(u),c(e,(function(e){var t=i._safeEvent(e);a?i._spliceMatches(t,n):(c(t,(function(e){i._forgetContext(e.context)})),i.events[e]=[])}))},d.prototype._offByHandler=function(e){var t=this,i=this._matchHandler(e);c(this._safeEvent(),(function(e){t._spliceMatches(e,i)}))},d.prototype._offByObject=function(e,t){var i,a=this;this._indexOfContext(e)<0?c(e,(function(e,t){a.off(t,e)})):r(t)?(i=this._matchContext(e),a._spliceMatches(this._safeEvent(t),i)):l(t)?(i=this._matchHandlerAndContext(t,e),c(this._safeEvent(),(function(e){a._spliceMatches(e,i)}))):(i=this._matchContext(e),c(this._safeEvent(),(function(e){a._spliceMatches(e,i)})))},d.prototype.off=function(e,t){r(e)?this._offByEventName(e,t):arguments.length?l(e)?this._offByHandler(e):s(e)&&this._offByObject(e,t):(this.events={},this.contexts=[])},d.prototype.fire=function(e){this.invoke.apply(this,arguments)},d.prototype.invoke=function(e){var t,i,a,n;if(!this.hasListener(e))return!0;t=this._safeEvent(e),i=Array.prototype.slice.call(arguments,1),a=0;while(t[a]){if(n=t[a],!1===n.handler.apply(n.context,i))return!1;a+=1}return!0},d.prototype.hasListener=function(e){return this.getListenerLength(e)>0},d.prototype.getListenerLength=function(e){var t=this._safeEvent(e);return t.length},e.exports=d},961:function(e){"use strict";function t(e,t){var i,a,n,r,s=Object.prototype.hasOwnProperty;for(n=1,r=arguments.length;n<r;n+=1)for(a in i=arguments[n],i)s.call(i,a)&&(e[a]=i[a]);return e}e.exports=t},1610:function(e,t,i){"use strict";var a=i(5695),n=i(3778);function r(e,t){for(var i=arguments,r=i[0],s=1,o=i.length;s<o;s+=1){if(a(r)||n(r))return;r=r[i[s]]}return r}e.exports=r},4564:function(e,t,i){"use strict";var a=i(5573);function n(e,t){var i=document.createElement("img"),n="";return a(t,(function(e,t){n+="&"+t+"="+e})),n=n.substring(1),i.src=e+"?"+n,i.style.display="none",document.body.appendChild(i),document.body.removeChild(i),i}e.exports=n},4729:function(e,t,i){"use strict";var a=i(5695),n=i(4564),r=6048e5;function s(e){var t=(new Date).getTime();return t-e>r}function o(e,t){var i="https://www.google-analytics.com/collect",r=location.hostname,o="event",l="use",c="TOAST UI "+e+" for "+r+": Statistics",u=window.localStorage.getItem(c);(a(window.tui)||!1!==window.tui.usageStatistics)&&(u&&!s(u)||(window.localStorage.setItem(c,(new Date).getTime()),setTimeout((function(){"interactive"!==document.readyState&&"complete"!==document.readyState||n(i,{v:1,t:o,tid:t,cid:r,dp:r,dh:e,el:e,ec:l})}),1e3)))}e.exports=o},602:function(e){"use strict";function t(e){return e instanceof Array}e.exports=t},9886:function(e,t,i){"use strict";var a=i(5695),n=i(3778);function r(e){return!a(e)&&!n(e)}e.exports=r},5183:function(e){"use strict";function t(e){return e instanceof Function}e.exports=t},3778:function(e){"use strict";function t(e){return null===e}e.exports=t},5393:function(e){"use strict";function t(e){return e===Object(e)}e.exports=t},2560:function(e){"use strict";function t(e){return"string"===typeof e||e instanceof String}e.exports=t},5695:function(e){"use strict";function t(e){return void 0===e}e.exports=t},4426:function(e,t,i){e.exports=i(4486)},9406:function(e,t,i){e.exports=i(4877)},789:function(e,t,i){e.exports=i(7178)},381:function(e,t,i){e.exports=i(5603)},7636:function(e,t,i){e.exports=i(1206)},1899:function(e,t,i){e.exports=i(6174)},899:function(e,t,i){e.exports=i(57)},8005:function(e,t,i){e.exports=i(4741)},6562:function(e,t,i){e.exports=i(8368)},9131:function(e,t,i){e.exports=i(3739)},4383:function(e,t,i){e.exports=i(172)},6065:function(e,t,i){e.exports=i(4963)},1734:function(e,t,i){e.exports=i(7820)},2461:function(e,t,i){e.exports=i(5636)},5214:function(e,t,i){e.exports=i(5059)},6397:function(e,t,i){e.exports=i(3969)},8189:function(e,t,i){e.exports=i(6618)},9146:function(e,t,i){e.exports=i(5279)},4496:function(e,t,i){e.exports=i(9562)},3972:function(e,t,i){e.exports=i(652)},7172:function(e,t,i){e.exports=i(2813)},1845:function(e,t,i){e.exports=i(8664)},662:function(e,t,i){e.exports=i(1457)},711:function(e,t,i){e.exports=i(2937)},6623:function(e,t,i){e.exports=i(9297)},7077:function(e,t,i){e.exports=i(8026)},9856:function(e,t,i){e.exports=i(2044)},4230:function(e,t,i){e.exports=i(2214)},184:function(e,t,i){e.exports=i(9256)},3742:function(e,t,i){e.exports=i(5659)},1801:function(e){var t={rect:1,circle:2,triangle:1},i={rect:{w:"width",h:"height"},circle:{w:"rx",h:"ry"},triangle:{w:"width",h:"height"}};function a(e){var t=e.originX,i=e.originY,a=t.substring(0,1)+i.substring(0,1);e.startPoint=e.origins[a]}function n(e,t,i){var a=e.x,n=e.y,r=t.x,s=t.y,o=i*Math.PI/180,l=(r-a)*Math.cos(o)-(s-n)*Math.sin(o)+a,c=(r-a)*Math.sin(o)+(s-n)*Math.cos(o)+n;return{originX:a>l?"right":"left",originY:n>c?"bottom":"top"}}function r(e){return"center"===e.originX&&"center"===e.originY}function s(e,t){var i=t.getPointByOrigin("center","center"),a=-t.angle,r=n(i,e,a),s=r.originX,o=r.originY,l=t.getPointByOrigin(s,o),c=t.left-(i.x-l.x),u=t.top-(i.y-l.y);t.set({originX:s,originY:o,left:c,top:u}),t.setCoords()}function o(e,t){var i=t.startPoint,a=-t.angle,r=n(i,e,a),s=r.originX,o=r.originY;t.setPositionByOrigin(i,s,o),t.setCoords()}function l(e){var t=e.type,a=e.scaleX,n=e.scaleY,r=i[t],s=e[r.w]*a,o=e[r.h]*n;if(e.isRegular){var l=Math.max(a,n);s=e[r.w]*l,o=e[r.h]*l}var c={hasControls:!1,hasBorders:!1,scaleX:1,scaleY:1};c[r.w]=s,c[r.h]=o,e.set(c)}function c(e,a){var n=a.type,r=a.strokeWidth,s=a.startPoint,o=t[n],l=i[n],c=!("triangle"!==a.type),u={},d=Math.abs(s.x-e.x)/o,p=Math.abs(s.y-e.y)/o;d>r&&(d-=r/o),p>r&&(p-=r/o),a.isRegular&&(d=p=Math.max(d,p),c&&(p=Math.sqrt(3)/2*d)),u[l.w]=d,u[l.h]=p,a.set(u)}e.exports={setOrigins:function(e){var t=e.getPointByOrigin("left","top"),i=e.getPointByOrigin("right","top"),a=e.getPointByOrigin("right","bottom"),n=e.getPointByOrigin("left","bottom");e.origins={lt:t,rt:i,rb:a,lb:n}},resize:function(e,t,i){r(e)&&(s(t,e),a(e)),i?l(e,t):c(t,e),o(t,e)},adjustOriginToCenter:function(e){var t=e.getPointByOrigin("center","center"),i=e.originX,a=e.originY,n=e.getPointByOrigin(i,a),r=e.left+(t.x-n.x),s=e.top+(t.y-n.y);e.set({hasControls:!0,hasBorders:!0,originX:"center",originY:"center",left:r,top:s}),e.setCoords()}}},2221:function(e,t,i){i(5454),i(9173);var a=i(7545);e.exports=a.Array.from},5078:function(e,t,i){i(8118);var a=i(7545);e.exports=a.Array.isArray},6135:function(e,t,i){i(9106);var a=i(5607);e.exports=a("Array").concat},9510:function(e,t,i){i(1710);var a=i(5607);e.exports=a("Array").fill},3971:function(e,t,i){i(3436);var a=i(5607);e.exports=a("Array").filter},98:function(e,t,i){i(9823);var a=i(5607);e.exports=a("Array").forEach},2089:function(e,t,i){i(2276);var a=i(5607);e.exports=a("Array").indexOf},6209:function(e,t,i){i(3838);var a=i(5607);e.exports=a("Array").map},2671:function(e,t,i){i(5818);var a=i(5607);e.exports=a("Array").slice},1375:function(e,t,i){i(2178);var a=i(5607);e.exports=a("Array").splice},3528:function(e,t,i){i(665);var a=i(5607);e.exports=a("Function").bind},5739:function(e,t,i){i(8939),i(5454);var a=i(8703);e.exports=a},278:function(e,t,i){var a=i(3528),n=Function.prototype;e.exports=function(e){var t=e.bind;return e===n||e instanceof Function&&t===n.bind?a:t}},1484:function(e,t,i){var a=i(6135),n=Array.prototype;e.exports=function(e){var t=e.concat;return e===n||e instanceof Array&&t===n.concat?a:t}},7731:function(e,t,i){var a=i(9510),n=Array.prototype;e.exports=function(e){var t=e.fill;return e===n||e instanceof Array&&t===n.fill?a:t}},3669:function(e,t,i){var a=i(3971),n=Array.prototype;e.exports=function(e){var t=e.filter;return e===n||e instanceof Array&&t===n.filter?a:t}},2604:function(e,t,i){var a=i(2089),n=Array.prototype;e.exports=function(e){var t=e.indexOf;return e===n||e instanceof Array&&t===n.indexOf?a:t}},263:function(e,t,i){var a=i(6209),n=Array.prototype;e.exports=function(e){var t=e.map;return e===n||e instanceof Array&&t===n.map?a:t}},7663:function(e,t,i){var a=i(2671),n=Array.prototype;e.exports=function(e){var t=e.slice;return e===n||e instanceof Array&&t===n.slice?a:t}},5063:function(e,t,i){var a=i(1375),n=Array.prototype;e.exports=function(e){var t=e.splice;return e===n||e instanceof Array&&t===n.splice?a:t}},6813:function(e,t,i){var a=i(3842),n=String.prototype;e.exports=function(e){var t=e.trim;return"string"===typeof e||e===n||e instanceof String&&t===n.trim?a:t}},6285:function(e,t,i){i(2666);var a=i(7545);e.exports=a.Number.parseInt},3213:function(e,t,i){i(3113);var a=i(7545),n=a.Object;e.exports=function(e,t){return n.create(e,t)}},3512:function(e,t,i){i(297);var a=i(7545),n=a.Object,r=e.exports=function(e,t,i){return n.defineProperty(e,t,i)};n.defineProperty.sham&&(r.sham=!0)},8168:function(e,t,i){i(9234);var a=i(7545);e.exports=a.Object.getPrototypeOf},8651:function(e,t,i){i(2647);var a=i(7545);e.exports=a.Object.keys},3083:function(e,t,i){i(3222);var a=i(7545);e.exports=a.Object.setPrototypeOf},2987:function(e,t,i){i(4859);var a=i(7545);e.exports=a.parseFloat},2239:function(e,t,i){i(5706);var a=i(7545);e.exports=a.parseInt},3154:function(e,t,i){i(4242),i(8939),i(6663),i(9021),i(7884),i(8885),i(1868),i(5454);var a=i(7545);e.exports=a.Promise},6577:function(e,t,i){i(5397);var a=i(7545);e.exports=a.Reflect.construct},3842:function(e,t,i){i(957);var a=i(5607);e.exports=a("String").trim},5008:function(e,t,i){i(9106),i(6663),i(6187),i(9781),i(492),i(6681),i(9594),i(3665),i(9017),i(1250),i(9786),i(503),i(6565),i(9322),i(3610),i(6886),i(3514),i(8671),i(8556),i(1367);var a=i(7545);e.exports=a.Symbol},994:function(e,t,i){i(8939),i(6663),i(5454),i(3665);var a=i(9207);e.exports=a.f("iterator")},2813:function(e,t,i){var a=i(3822);e.exports=a},8664:function(e,t,i){var a=i(1434);e.exports=a},1457:function(e,t,i){var a=i(7710);e.exports=a},2937:function(e,t,i){var a=i(4741);e.exports=a},9297:function(e,t,i){var a=i(4963);e.exports=a},8026:function(e,t,i){var a=i(7820);e.exports=a},2044:function(e,t,i){var a=i(8980);e.exports=a},2214:function(e,t,i){var a=i(6672);e.exports=a},9256:function(e,t,i){var a=i(2285);i(177),i(9031),i(6658),i(1875),i(8658),i(4592),i(6680),e.exports=a},5659:function(e,t,i){var a=i(8535);e.exports=a},6235:function(e,t,i){var a=i(6447),n=i(9288);e.exports=function(e){if(a(e))return e;throw TypeError(n(e)+" is not a function")}},1404:function(e,t,i){var a=i(2091),n=i(9288);e.exports=function(e){if(a(e))return e;throw TypeError(n(e)+" is not a constructor")}},7757:function(e,t,i){var a=i(6447);e.exports=function(e){if("object"===typeof e||a(e))return e;throw TypeError("Can't set "+String(e)+" as a prototype")}},7423:function(e){e.exports=function(){}},6961:function(e){e.exports=function(e,t,i){if(e instanceof t)return e;throw TypeError("Incorrect "+(i?i+" ":"")+"invocation")}},1138:function(e,t,i){var a=i(5744);e.exports=function(e){if(a(e))return e;throw TypeError(String(e)+" is not an object")}},2724:function(e,t,i){"use strict";var a=i(1795),n=i(7739),r=i(4104);e.exports=function(e){var t=a(this),i=r(t),s=arguments.length,o=n(s>1?arguments[1]:void 0,i),l=s>2?arguments[2]:void 0,c=void 0===l?i:n(l,i);while(c>o)t[o++]=e;return t}},7397:function(e,t,i){"use strict";var a=i(454).forEach,n=i(424),r=n("forEach");e.exports=r?[].forEach:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}},841:function(e,t,i){"use strict";var a=i(8043),n=i(1795),r=i(1635),s=i(6109),o=i(2091),l=i(4104),c=i(9361),u=i(1669),d=i(8703);e.exports=function(e){var t=n(e),i=o(this),p=arguments.length,f=p>1?arguments[1]:void 0,A=void 0!==f;A&&(f=a(f,p>2?arguments[2]:void 0,2));var h,m,g,v,b,y,_=d(t),w=0;if(!_||this==Array&&s(_))for(h=l(t),m=i?new this(h):Array(h);h>w;w++)y=A?f(t[w],w):t[w],c(m,w,y);else for(v=u(t,_),b=v.next,m=i?new this:[];!(g=b.call(v)).done;w++)y=A?r(v,f,[g.value,w],!0):g.value,c(m,w,y);return m.length=w,m}},8180:function(e,t,i){var a=i(101),n=i(7739),r=i(4104),s=function(e){return function(t,i,s){var o,l=a(t),c=r(l),u=n(s,c);if(e&&i!=i){while(c>u)if(o=l[u++],o!=o)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===i)return e||u||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},454:function(e,t,i){var a=i(8043),n=i(2202),r=i(1795),s=i(4104),o=i(1321),l=[].push,c=function(e){var t=1==e,i=2==e,c=3==e,u=4==e,d=6==e,p=7==e,f=5==e||d;return function(A,h,m,g){for(var v,b,y=r(A),_=n(y),w=a(h,m,3),C=s(_),x=0,k=g||o,T=t?k(A,C):i||p?k(A,0):void 0;C>x;x++)if((f||x in _)&&(v=_[x],b=w(v,x,y),e))if(t)T[x]=b;else if(b)switch(e){case 3:return!0;case 5:return v;case 6:return x;case 2:l.call(T,v)}else switch(e){case 4:return!1;case 7:l.call(T,v)}return d?-1:c||u?u:T}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},242:function(e,t,i){var a=i(6192),n=i(8182),r=i(4218),s=n("species");e.exports=function(e){return r>=51||!a((function(){var t=[],i=t.constructor={};return i[s]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},424:function(e,t,i){"use strict";var a=i(6192);e.exports=function(e,t){var i=[][e];return!!i&&a((function(){i.call(null,t||function(){throw 1},1)}))}},3712:function(e,t,i){var a=i(4770),n=i(2091),r=i(5744),s=i(8182),o=s("species");e.exports=function(e){var t;return a(e)&&(t=e.constructor,n(t)&&(t===Array||a(t.prototype))?t=void 0:r(t)&&(t=t[o],null===t&&(t=void 0))),void 0===t?Array:t}},1321:function(e,t,i){var a=i(3712);e.exports=function(e,t){return new(a(e))(0===t?0:t)}},1635:function(e,t,i){var a=i(1138),n=i(6639);e.exports=function(e,t,i,r){try{return r?t(a(i)[0],i[1]):t(i)}catch(s){n(e,"throw",s)}}},9770:function(e,t,i){var a=i(8182),n=a("iterator"),r=!1;try{var s=0,o={next:function(){return{done:!!s++}},return:function(){r=!0}};o[n]=function(){return this},Array.from(o,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!r)return!1;var i=!1;try{var a={};a[n]=function(){return{next:function(){return{done:i=!0}}}},e(a)}catch(l){}return i}},9272:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},4696:function(e,t,i){var a=i(3471),n=i(6447),r=i(9272),s=i(8182),o=s("toStringTag"),l="Arguments"==r(function(){return arguments}()),c=function(e,t){try{return e[t]}catch(i){}};e.exports=a?r:function(e){var t,i,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=c(t=Object(e),o))?i:l?r(t):"Object"==(a=r(t))&&n(t.callee)?"Arguments":a}},4635:function(e,t,i){var a=i(6192);e.exports=!a((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},5148:function(e,t,i){"use strict";var a=i(4413).IteratorPrototype,n=i(2853),r=i(774),s=i(1284),o=i(7771),l=function(){return this};e.exports=function(e,t,i){var c=t+" Iterator";return e.prototype=n(a,{next:r(1,i)}),s(e,c,!1,!0),o[c]=l,e}},8711:function(e,t,i){var a=i(69),n=i(2760),r=i(774);e.exports=a?function(e,t,i){return n.f(e,t,r(1,i))}:function(e,t,i){return e[t]=i,e}},774:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},9361:function(e,t,i){"use strict";var a=i(77),n=i(2760),r=i(774);e.exports=function(e,t,i){var s=a(t);s in e?n.f(e,s,r(0,i)):e[s]=i}},7218:function(e,t,i){"use strict";var a=i(3085),n=i(5546),r=i(2282),s=i(6447),o=i(5148),l=i(9341),c=i(4469),u=i(1284),d=i(8711),p=i(9482),f=i(8182),A=i(7771),h=i(4413),m=r.PROPER,g=r.CONFIGURABLE,v=h.IteratorPrototype,b=h.BUGGY_SAFARI_ITERATORS,y=f("iterator"),_="keys",w="values",C="entries",x=function(){return this};e.exports=function(e,t,i,r,f,h,k){o(i,t,r);var T,S,I,E=function(e){if(e===f&&M)return M;if(!b&&e in L)return L[e];switch(e){case _:return function(){return new i(this,e)};case w:return function(){return new i(this,e)};case C:return function(){return new i(this,e)}}return function(){return new i(this)}},O=t+" Iterator",B=!1,L=e.prototype,D=L[y]||L["@@iterator"]||f&&L[f],M=!b&&D||E(f),N="Array"==t&&L.entries||D;if(N&&(T=l(N.call(new e)),T!==Object.prototype&&T.next&&(n||l(T)===v||(c?c(T,v):s(T[y])||p(T,y,x)),u(T,O,!0,!0),n&&(A[O]=x))),m&&f==w&&D&&D.name!==w&&(!n&&g?d(L,"name",w):(B=!0,M=function(){return D.call(this)})),f)if(S={values:E(w),keys:h?M:E(_),entries:E(C)},k)for(I in S)(b||B||!(I in L))&&p(L,I,S[I]);else a({target:t,proto:!0,forced:b||B},S);return n&&!k||L[y]===M||p(L,y,M,{name:f}),A[t]=M,S}},1488:function(e,t,i){var a=i(7545),n=i(4500),r=i(9207),s=i(2760).f;e.exports=function(e){var t=a.Symbol||(a.Symbol={});n(t,e)||s(t,e,{value:r.f(e)})}},69:function(e,t,i){var a=i(6192);e.exports=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},7449:function(e,t,i){var a=i(8576),n=i(5744),r=a.document,s=n(r)&&n(r.createElement);e.exports=function(e){return s?r.createElement(e):{}}},7365:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},2957:function(e){e.exports="object"==typeof window},9347:function(e,t,i){var a=i(8989),n=i(8576);e.exports=/ipad|iphone|ipod/i.test(a)&&void 0!==n.Pebble},9536:function(e,t,i){var a=i(8989);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(a)},224:function(e,t,i){var a=i(9272),n=i(8576);e.exports="process"==a(n.process)},5914:function(e,t,i){var a=i(8989);e.exports=/web0s(?!.*chrome)/i.test(a)},8989:function(e,t,i){var a=i(150);e.exports=a("navigator","userAgent")||""},4218:function(e,t,i){var a,n,r=i(8576),s=i(8989),o=r.process,l=r.Deno,c=o&&o.versions||l&&l.version,u=c&&c.v8;u?(a=u.split("."),n=a[0]<4?1:a[0]+a[1]):s&&(a=s.match(/Edge\/(\d+)/),(!a||a[1]>=74)&&(a=s.match(/Chrome\/(\d+)/),a&&(n=a[1]))),e.exports=n&&+n},5607:function(e,t,i){var a=i(7545);e.exports=function(e){return a[e+"Prototype"]}},2952:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3085:function(e,t,i){"use strict";var a=i(8576),n=i(6447),r=i(5141).f,s=i(9245),o=i(7545),l=i(8043),c=i(8711),u=i(4500),d=function(e){var t=function(t,i,a){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,i)}return new e(t,i,a)}return e.apply(this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var i,p,f,A,h,m,g,v,b,y=e.target,_=e.global,w=e.stat,C=e.proto,x=_?a:w?a[y]:(a[y]||{}).prototype,k=_?o:o[y]||c(o,y,{})[y],T=k.prototype;for(A in t)i=s(_?A:y+(w?".":"#")+A,e.forced),p=!i&&x&&u(x,A),m=k[A],p&&(e.noTargetGet?(b=r(x,A),g=b&&b.value):g=x[A]),h=p&&g?g:t[A],p&&typeof m===typeof h||(v=e.bind&&p?l(h,a):e.wrap&&p?d(h):C&&n(h)?l(Function.call,h):h,(e.sham||h&&h.sham||m&&m.sham)&&c(v,"sham",!0),c(k,A,v),C&&(f=y+"Prototype",u(o,f)||c(o,f,{}),c(o[f],A,h),e.real&&T&&!T[A]&&c(T,A,h)))}},6192:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},8043:function(e,t,i){var a=i(6235);e.exports=function(e,t,i){if(a(e),void 0===t)return e;switch(i){case 0:return function(){return e.call(t)};case 1:return function(i){return e.call(t,i)};case 2:return function(i,a){return e.call(t,i,a)};case 3:return function(i,a,n){return e.call(t,i,a,n)}}return function(){return e.apply(t,arguments)}}},6782:function(e,t,i){"use strict";var a=i(6235),n=i(5744),r=[].slice,s={},o=function(e,t,i){if(!(t in s)){for(var a=[],n=0;n<t;n++)a[n]="a["+n+"]";s[t]=Function("C,a","return new C("+a.join(",")+")")}return s[t](e,i)};e.exports=Function.bind||function(e){var t=a(this),i=r.call(arguments,1),s=function(){var a=i.concat(r.call(arguments));return this instanceof s?o(t,a.length,a):t.apply(e,a)};return n(t.prototype)&&(s.prototype=t.prototype),s}},2282:function(e,t,i){var a=i(69),n=i(4500),r=Function.prototype,s=a&&Object.getOwnPropertyDescriptor,o=n(r,"name"),l=o&&"something"===function(){}.name,c=o&&(!a||a&&s(r,"name").configurable);e.exports={EXISTS:o,PROPER:l,CONFIGURABLE:c}},150:function(e,t,i){var a=i(7545),n=i(8576),r=i(6447),s=function(e){return r(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?s(a[e])||s(n[e]):a[e]&&a[e][t]||n[e]&&n[e][t]}},8703:function(e,t,i){var a=i(4696),n=i(5037),r=i(7771),s=i(8182),o=s("iterator");e.exports=function(e){if(void 0!=e)return n(e,o)||n(e,"@@iterator")||r[a(e)]}},1669:function(e,t,i){var a=i(6235),n=i(1138),r=i(8703);e.exports=function(e,t){var i=arguments.length<2?r(e):t;if(a(i))return n(i.call(e));throw TypeError(String(e)+" is not iterable")}},5037:function(e,t,i){var a=i(6235);e.exports=function(e,t){var i=e[t];return null==i?void 0:a(i)}},8576:function(e,t,i){var a=function(e){return e&&e.Math==Math&&e};e.exports=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof i.g&&i.g)||function(){return this}()||Function("return this")()},4500:function(e,t,i){var a=i(1795),n={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return n.call(a(e),t)}},4535:function(e){e.exports={}},3681:function(e,t,i){var a=i(8576);e.exports=function(e,t){var i=a.console;i&&i.error&&(1===arguments.length?i.error(e):i.error(e,t))}},7403:function(e,t,i){var a=i(150);e.exports=a("document","documentElement")},188:function(e,t,i){var a=i(69),n=i(6192),r=i(7449);e.exports=!a&&!n((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},2202:function(e,t,i){var a=i(6192),n=i(9272),r="".split;e.exports=a((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==n(e)?r.call(e,""):Object(e)}:Object},9516:function(e,t,i){var a=i(6447),n=i(6434),r=Function.toString;a(n.inspectSource)||(n.inspectSource=function(e){return r.call(e)}),e.exports=n.inspectSource},273:function(e,t,i){var a=i(5744),n=i(8711);e.exports=function(e,t){a(t)&&"cause"in t&&n(e,"cause",e.cause)}},3326:function(e,t,i){var a,n,r,s=i(8921),o=i(8576),l=i(5744),c=i(8711),u=i(4500),d=i(6434),p=i(9766),f=i(4535),A="Object already initialized",h=o.WeakMap,m=function(e){return r(e)?n(e):a(e,{})},g=function(e){return function(t){var i;if(!l(t)||(i=n(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return i}};if(s||d.state){var v=d.state||(d.state=new h),b=v.get,y=v.has,_=v.set;a=function(e,t){if(y.call(v,e))throw new TypeError(A);return t.facade=e,_.call(v,e,t),t},n=function(e){return b.call(v,e)||{}},r=function(e){return y.call(v,e)}}else{var w=p("state");f[w]=!0,a=function(e,t){if(u(e,w))throw new TypeError(A);return t.facade=e,c(e,w,t),t},n=function(e){return u(e,w)?e[w]:{}},r=function(e){return u(e,w)}}e.exports={set:a,get:n,has:r,enforce:m,getterFor:g}},6109:function(e,t,i){var a=i(8182),n=i(7771),r=a("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||s[r]===e)}},4770:function(e,t,i){var a=i(9272);e.exports=Array.isArray||function(e){return"Array"==a(e)}},6447:function(e){e.exports=function(e){return"function"===typeof e}},2091:function(e,t,i){var a=i(6192),n=i(6447),r=i(4696),s=i(150),o=i(9516),l=[],c=s("Reflect","construct"),u=/^\s*(?:class|function)\b/,d=u.exec,p=!u.exec((function(){})),f=function(e){if(!n(e))return!1;try{return c(Object,l,e),!0}catch(t){return!1}},A=function(e){if(!n(e))return!1;switch(r(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return p||!!d.call(u,o(e))};e.exports=!c||a((function(){var e;return f(f.call)||!f(Object)||!f((function(){e=!0}))||e}))?A:f},9245:function(e,t,i){var a=i(6192),n=i(6447),r=/#|\.prototype\./,s=function(e,t){var i=l[o(e)];return i==u||i!=c&&(n(t)?a(t):!!t)},o=s.normalize=function(e){return String(e).replace(r,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";e.exports=s},5744:function(e,t,i){var a=i(6447);e.exports=function(e){return"object"===typeof e?null!==e:a(e)}},5546:function(e){e.exports=!0},3236:function(e,t,i){var a=i(6447),n=i(150),r=i(615);e.exports=r?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return a(t)&&Object(e)instanceof t}},3442:function(e,t,i){var a=i(1138),n=i(6109),r=i(4104),s=i(8043),o=i(1669),l=i(8703),c=i(6639),u=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,i){var d,p,f,A,h,m,g,v=i&&i.that,b=!(!i||!i.AS_ENTRIES),y=!(!i||!i.IS_ITERATOR),_=!(!i||!i.INTERRUPTED),w=s(t,v,1+b+_),C=function(e){return d&&c(d,"normal",e),new u(!0,e)},x=function(e){return b?(a(e),_?w(e[0],e[1],C):w(e[0],e[1])):_?w(e,C):w(e)};if(y)d=e;else{if(p=l(e),!p)throw TypeError(String(e)+" is not iterable");if(n(p)){for(f=0,A=r(e);A>f;f++)if(h=x(e[f]),h&&h instanceof u)return h;return new u(!1)}d=o(e,p)}m=d.next;while(!(g=m.call(d)).done){try{h=x(g.value)}catch(k){c(d,"throw",k)}if("object"==typeof h&&h&&h instanceof u)return h}return new u(!1)}},6639:function(e,t,i){var a=i(1138),n=i(5037);e.exports=function(e,t,i){var r,s;a(e);try{if(r=n(e,"return"),!r){if("throw"===t)throw i;return i}r=r.call(e)}catch(o){s=!0,r=o}if("throw"===t)throw i;if(s)throw r;return a(r),i}},4413:function(e,t,i){"use strict";var a,n,r,s=i(6192),o=i(6447),l=i(2853),c=i(9341),u=i(9482),d=i(8182),p=i(5546),f=d("iterator"),A=!1;[].keys&&(r=[].keys(),"next"in r?(n=c(c(r)),n!==Object.prototype&&(a=n)):A=!0);var h=void 0==a||s((function(){var e={};return a[f].call(e)!==e}));h?a={}:p&&(a=l(a)),o(a[f])||u(a,f,(function(){return this})),e.exports={IteratorPrototype:a,BUGGY_SAFARI_ITERATORS:A}},7771:function(e){e.exports={}},4104:function(e,t,i){var a=i(8445);e.exports=function(e){return a(e.length)}},2950:function(e,t,i){var a,n,r,s,o,l,c,u,d=i(8576),p=i(5141).f,f=i(7160).set,A=i(9536),h=i(9347),m=i(5914),g=i(224),v=d.MutationObserver||d.WebKitMutationObserver,b=d.document,y=d.process,_=d.Promise,w=p(d,"queueMicrotask"),C=w&&w.value;C||(a=function(){var e,t;g&&(e=y.domain)&&e.exit();while(n){t=n.fn,n=n.next;try{t()}catch(i){throw n?s():r=void 0,i}}r=void 0,e&&e.enter()},A||g||m||!v||!b?!h&&_&&_.resolve?(c=_.resolve(void 0),c.constructor=_,u=c.then,s=function(){u.call(c,a)}):s=g?function(){y.nextTick(a)}:function(){f.call(d,a)}:(o=!0,l=b.createTextNode(""),new v(a).observe(l,{characterData:!0}),s=function(){l.data=o=!o})),e.exports=C||function(e){var t={fn:e,next:void 0};r&&(r.next=t),n||(n=t,s()),r=t}},4471:function(e,t,i){var a=i(8576);e.exports=a.Promise},3045:function(e,t,i){var a=i(4218),n=i(6192);e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&a&&a<41}))},4551:function(e,t,i){var a=i(6192),n=i(8182),r=i(5546),s=n("iterator");e.exports=!a((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,i="";return e.pathname="c%20d",t.forEach((function(e,a){t["delete"]("b"),i+=a+e})),r&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==i||"x"!==new URL("http://x",void 0).host}))},8921:function(e,t,i){var a=i(8576),n=i(6447),r=i(9516),s=a.WeakMap;e.exports=n(s)&&/native code/.test(r(s))},9438:function(e,t,i){"use strict";var a=i(6235),n=function(e){var t,i;this.promise=new e((function(e,a){if(void 0!==t||void 0!==i)throw TypeError("Bad Promise constructor");t=e,i=a})),this.resolve=a(t),this.reject=a(i)};e.exports.f=function(e){return new n(e)}},15:function(e,t,i){var a=i(8576),n=i(6192),r=i(4845),s=i(4277).trim,o=i(1450),l=a.parseFloat,c=a.Symbol,u=c&&c.iterator,d=1/l(o+"-0")!==-1/0||u&&!n((function(){l(Object(u))}));e.exports=d?function(e){var t=s(r(e)),i=l(t);return 0===i&&"-"==t.charAt(0)?-0:i}:l},2558:function(e,t,i){var a=i(8576),n=i(6192),r=i(4845),s=i(4277).trim,o=i(1450),l=a.parseInt,c=a.Symbol,u=c&&c.iterator,d=/^[+-]?0[Xx]/,p=8!==l(o+"08")||22!==l(o+"0x16")||u&&!n((function(){l(Object(u))}));e.exports=p?function(e,t){var i=s(r(e));return l(i,t>>>0||(d.test(i)?16:10))}:l},2503:function(e,t,i){"use strict";var a=i(69),n=i(6192),r=i(7653),s=i(4750),o=i(6007),l=i(1795),c=i(2202),u=Object.assign,d=Object.defineProperty;e.exports=!u||n((function(){if(a&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},i=Symbol(),n="abcdefghijklmnopqrst";return e[i]=7,n.split("").forEach((function(e){t[e]=e})),7!=u({},e)[i]||r(u({},t)).join("")!=n}))?function(e,t){var i=l(e),n=arguments.length,u=1,d=s.f,p=o.f;while(n>u){var f,A=c(arguments[u++]),h=d?r(A).concat(d(A)):r(A),m=h.length,g=0;while(m>g)f=h[g++],a&&!p.call(A,f)||(i[f]=A[f])}return i}:u},2853:function(e,t,i){var a,n=i(1138),r=i(1187),s=i(2952),o=i(4535),l=i(7403),c=i(7449),u=i(9766),d=">",p="<",f="prototype",A="script",h=u("IE_PROTO"),m=function(){},g=function(e){return p+A+d+e+p+"/"+A+d},v=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=c("iframe"),i="java"+A+":";return t.style.display="none",l.appendChild(t),t.src=String(i),e=t.contentWindow.document,e.open(),e.write(g("document.F=Object")),e.close(),e.F},y=function(){try{a=new ActiveXObject("htmlfile")}catch(t){}y="undefined"!=typeof document?document.domain&&a?v(a):b():v(a);var e=s.length;while(e--)delete y[f][s[e]];return y()};o[h]=!0,e.exports=Object.create||function(e,t){var i;return null!==e?(m[f]=n(e),i=new m,m[f]=null,i[h]=e):i=y(),void 0===t?i:r(i,t)}},1187:function(e,t,i){var a=i(69),n=i(2760),r=i(1138),s=i(7653);e.exports=a?Object.defineProperties:function(e,t){r(e);var i,a=s(t),o=a.length,l=0;while(o>l)n.f(e,i=a[l++],t[i]);return e}},2760:function(e,t,i){var a=i(69),n=i(188),r=i(1138),s=i(77),o=Object.defineProperty;t.f=a?o:function(e,t,i){if(r(e),t=s(t),r(i),n)try{return o(e,t,i)}catch(a){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},5141:function(e,t,i){var a=i(69),n=i(6007),r=i(774),s=i(101),o=i(77),l=i(4500),c=i(188),u=Object.getOwnPropertyDescriptor;t.f=a?u:function(e,t){if(e=s(e),t=o(t),c)try{return u(e,t)}catch(i){}if(l(e,t))return r(!n.f.call(e,t),e[t])}},4052:function(e,t,i){var a=i(101),n=i(2092).f,r={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],o=function(e){try{return n(e)}catch(t){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==r.call(e)?o(e):n(a(e))}},2092:function(e,t,i){var a=i(7934),n=i(2952),r=n.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return a(e,r)}},4750:function(e,t){t.f=Object.getOwnPropertySymbols},9341:function(e,t,i){var a=i(4500),n=i(6447),r=i(1795),s=i(9766),o=i(4635),l=s("IE_PROTO"),c=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){var t=r(e);if(a(t,l))return t[l];var i=t.constructor;return n(i)&&t instanceof i?i.prototype:t instanceof Object?c:null}},7934:function(e,t,i){var a=i(4500),n=i(101),r=i(8180).indexOf,s=i(4535);e.exports=function(e,t){var i,o=n(e),l=0,c=[];for(i in o)!a(s,i)&&a(o,i)&&c.push(i);while(t.length>l)a(o,i=t[l++])&&(~r(c,i)||c.push(i));return c}},7653:function(e,t,i){var a=i(7934),n=i(2952);e.exports=Object.keys||function(e){return a(e,n)}},6007:function(e,t){"use strict";var i={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,n=a&&!i.call({1:2},1);t.f=n?function(e){var t=a(this,e);return!!t&&t.enumerable}:i},4469:function(e,t,i){var a=i(1138),n=i(7757);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,i={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(i,[]),t=i instanceof Array}catch(r){}return function(i,r){return a(i),n(r),t?e.call(i,r):i.__proto__=r,i}}():void 0)},158:function(e,t,i){"use strict";var a=i(3471),n=i(4696);e.exports=a?{}.toString:function(){return"[object "+n(this)+"]"}},380:function(e,t,i){var a=i(6447),n=i(5744);e.exports=function(e,t){var i,r;if("string"===t&&a(i=e.toString)&&!n(r=i.call(e)))return r;if(a(i=e.valueOf)&&!n(r=i.call(e)))return r;if("string"!==t&&a(i=e.toString)&&!n(r=i.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},7545:function(e){e.exports={}},892:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},9126:function(e,t,i){var a=i(1138),n=i(5744),r=i(9438);e.exports=function(e,t){if(a(e),n(t)&&t.constructor===e)return t;var i=r.f(e),s=i.resolve;return s(t),i.promise}},533:function(e,t,i){var a=i(9482);e.exports=function(e,t,i){for(var n in t)i&&i.unsafe&&e[n]?e[n]=t[n]:a(e,n,t[n],i);return e}},9482:function(e,t,i){var a=i(8711);e.exports=function(e,t,i,n){n&&n.enumerable?e[t]=i:a(e,t,i)}},3209:function(e){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},7613:function(e,t,i){var a=i(8576);e.exports=function(e,t){try{Object.defineProperty(a,e,{value:t,configurable:!0,writable:!0})}catch(i){a[e]=t}return t}},3656:function(e,t,i){"use strict";var a=i(150),n=i(2760),r=i(8182),s=i(69),o=r("species");e.exports=function(e){var t=a(e),i=n.f;s&&t&&!t[o]&&i(t,o,{configurable:!0,get:function(){return this}})}},1284:function(e,t,i){var a=i(3471),n=i(2760).f,r=i(8711),s=i(4500),o=i(158),l=i(8182),c=l("toStringTag");e.exports=function(e,t,i,l){if(e){var u=i?e:e.prototype;s(u,c)||n(u,c,{configurable:!0,value:t}),l&&!a&&r(u,"toString",o)}}},9766:function(e,t,i){var a=i(8717),n=i(2759),r=a("keys");e.exports=function(e){return r[e]||(r[e]=n(e))}},6434:function(e,t,i){var a=i(8576),n=i(7613),r="__core-js_shared__",s=a[r]||n(r,{});e.exports=s},8717:function(e,t,i){var a=i(5546),n=i(6434);(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.18.2",mode:a?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},4743:function(e,t,i){var a=i(1138),n=i(1404),r=i(8182),s=r("species");e.exports=function(e,t){var i,r=a(e).constructor;return void 0===r||void 0==(i=a(r)[s])?t:n(i)}},863:function(e,t,i){var a=i(1941),n=i(4845),r=i(3209),s=function(e){return function(t,i){var s,o,l=n(r(t)),c=a(i),u=l.length;return c<0||c>=u?e?"":void 0:(s=l.charCodeAt(c),s<55296||s>56319||c+1===u||(o=l.charCodeAt(c+1))<56320||o>57343?e?l.charAt(c):s:e?l.slice(c,c+2):o-56320+(s-55296<<10)+65536)}};e.exports={codeAt:s(!1),charAt:s(!0)}},7977:function(e){"use strict";var t=2147483647,i=36,a=1,n=26,r=38,s=700,o=72,l=128,c="-",u=/[^\0-\u007E]/,d=/[.\u3002\uFF0E\uFF61]/g,p="Overflow: input needs wider integers to process",f=i-a,A=Math.floor,h=String.fromCharCode,m=function(e){var t=[],i=0,a=e.length;while(i<a){var n=e.charCodeAt(i++);if(n>=55296&&n<=56319&&i<a){var r=e.charCodeAt(i++);56320==(64512&r)?t.push(((1023&n)<<10)+(1023&r)+65536):(t.push(n),i--)}else t.push(n)}return t},g=function(e){return e+22+75*(e<26)},v=function(e,t,a){var o=0;for(e=a?A(e/s):e>>1,e+=A(e/t);e>f*n>>1;o+=i)e=A(e/f);return A(o+(f+1)*e/(e+r))},b=function(e){var r=[];e=m(e);var s,u,d=e.length,f=l,b=0,y=o;for(s=0;s<e.length;s++)u=e[s],u<128&&r.push(h(u));var _=r.length,w=_;_&&r.push(c);while(w<d){var C=t;for(s=0;s<e.length;s++)u=e[s],u>=f&&u<C&&(C=u);var x=w+1;if(C-f>A((t-b)/x))throw RangeError(p);for(b+=(C-f)*x,f=C,s=0;s<e.length;s++){if(u=e[s],u<f&&++b>t)throw RangeError(p);if(u==f){for(var k=b,T=i;;T+=i){var S=T<=y?a:T>=y+n?n:T-y;if(k<S)break;var I=k-S,E=i-S;r.push(h(g(S+I%E))),k=A(I/E)}r.push(h(g(k))),y=v(b,x,w==_),b=0,++w}}++b,++f}return r.join("")};e.exports=function(e){var t,i,a=[],n=e.toLowerCase().replace(d,".").split(".");for(t=0;t<n.length;t++)i=n[t],a.push(u.test(i)?"xn--"+b(i):i);return a.join(".")}},6815:function(e,t,i){var a=i(2282).PROPER,n=i(6192),r=i(1450),s="
";e.exports=function(e){return n((function(){return!!r[e]()||s[e]()!==s||a&&r[e].name!==e}))}},4277:function(e,t,i){var a=i(3209),n=i(4845),r=i(1450),s="["+r+"]",o=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),c=function(e){return function(t){var i=n(a(t));return 1&e&&(i=i.replace(o,"")),2&e&&(i=i.replace(l,"")),i}};e.exports={start:c(1),end:c(2),trim:c(3)}},7160:function(e,t,i){var a,n,r,s,o=i(8576),l=i(6447),c=i(6192),u=i(8043),d=i(7403),p=i(7449),f=i(9536),A=i(224),h=o.setImmediate,m=o.clearImmediate,g=o.process,v=o.MessageChannel,b=o.Dispatch,y=0,_={},w="onreadystatechange";try{a=o.location}catch(S){}var C=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},x=function(e){return function(){C(e)}},k=function(e){C(e.data)},T=function(e){o.postMessage(String(e),a.protocol+"//"+a.host)};h&&m||(h=function(e){var t=[],i=arguments.length,a=1;while(i>a)t.push(arguments[a++]);return _[++y]=function(){(l(e)?e:Function(e)).apply(void 0,t)},n(y),y},m=function(e){delete _[e]},A?n=function(e){g.nextTick(x(e))}:b&&b.now?n=function(e){b.now(x(e))}:v&&!f?(r=new v,s=r.port2,r.port1.onmessage=k,n=u(s.postMessage,s,1)):o.addEventListener&&l(o.postMessage)&&!o.importScripts&&a&&"file:"!==a.protocol&&!c(T)?(n=T,o.addEventListener("message",k,!1)):n=w in p("script")?function(e){d.appendChild(p("script"))[w]=function(){d.removeChild(this),C(e)}}:function(e){setTimeout(x(e),0)}),e.exports={set:h,clear:m}},7739:function(e,t,i){var a=i(1941),n=Math.max,r=Math.min;e.exports=function(e,t){var i=a(e);return i<0?n(i+t,0):r(i,t)}},101:function(e,t,i){var a=i(2202),n=i(3209);e.exports=function(e){return a(n(e))}},1941:function(e){var t=Math.ceil,i=Math.floor;e.exports=function(e){var a=+e;return a!==a||0===a?0:(a>0?i:t)(a)}},8445:function(e,t,i){var a=i(1941),n=Math.min;e.exports=function(e){return e>0?n(a(e),9007199254740991):0}},1795:function(e,t,i){var a=i(3209);e.exports=function(e){return Object(a(e))}},7888:function(e,t,i){var a=i(5744),n=i(3236),r=i(5037),s=i(380),o=i(8182),l=o("toPrimitive");e.exports=function(e,t){if(!a(e)||n(e))return e;var i,o=r(e,l);if(o){if(void 0===t&&(t="default"),i=o.call(e,t),!a(i)||n(i))return i;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},77:function(e,t,i){var a=i(7888),n=i(3236);e.exports=function(e){var t=a(e,"string");return n(t)?t:String(t)}},3471:function(e,t,i){var a=i(8182),n=a("toStringTag"),r={};r[n]="z",e.exports="[object z]"===String(r)},4845:function(e,t,i){var a=i(4696);e.exports=function(e){if("Symbol"===a(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}},9288:function(e){e.exports=function(e){try{return String(e)}catch(t){return"Object"}}},2759:function(e){var t=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+i).toString(36)}},615:function(e,t,i){var a=i(3045);e.exports=a&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},9207:function(e,t,i){var a=i(8182);t.f=a},8182:function(e,t,i){var a=i(8576),n=i(8717),r=i(4500),s=i(2759),o=i(3045),l=i(615),c=n("wks"),u=a.Symbol,d=l?u:u&&u.withoutSetter||s;e.exports=function(e){return r(c,e)&&(o||"string"==typeof c[e])||(o&&r(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},1450:function(e){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},4242:function(e,t,i){"use strict";var a=i(3085),n=i(9341),r=i(4469),s=i(2853),o=i(8711),l=i(774),c=i(273),u=i(3442),d=i(4845),p=function(e,t){var i=this,a=arguments.length>2?arguments[2]:void 0;if(!(i instanceof p))return new p(e,t,a);r&&(i=r(new Error(void 0),n(i))),void 0!==t&&o(i,"message",d(t)),c(i,a);var s=[];return u(e,s.push,{that:s}),o(i,"errors",s),i};p.prototype=s(Error.prototype,{constructor:l(5,p),message:l(5,""),name:l(5,"AggregateError")}),a({global:!0},{AggregateError:p})},9106:function(e,t,i){"use strict";var a=i(3085),n=i(6192),r=i(4770),s=i(5744),o=i(1795),l=i(4104),c=i(9361),u=i(1321),d=i(242),p=i(8182),f=i(4218),A=p("isConcatSpreadable"),h=9007199254740991,m="Maximum allowed index exceeded",g=f>=51||!n((function(){var e=[];return e[A]=!1,e.concat()[0]!==e})),v=d("concat"),b=function(e){if(!s(e))return!1;var t=e[A];return void 0!==t?!!t:r(e)},y=!g||!v;a({target:"Array",proto:!0,forced:y},{concat:function(e){var t,i,a,n,r,s=o(this),d=u(s,0),p=0;for(t=-1,a=arguments.length;t<a;t++)if(r=-1===t?s:arguments[t],b(r)){if(n=l(r),p+n>h)throw TypeError(m);for(i=0;i<n;i++,p++)i in r&&c(d,p,r[i])}else{if(p>=h)throw TypeError(m);c(d,p++,r)}return d.length=p,d}})},1710:function(e,t,i){var a=i(3085),n=i(2724),r=i(7423);a({target:"Array",proto:!0},{fill:n}),r("fill")},3436:function(e,t,i){"use strict";var a=i(3085),n=i(454).filter,r=i(242),s=r("filter");a({target:"Array",proto:!0,forced:!s},{filter:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})},9823:function(e,t,i){"use strict";var a=i(3085),n=i(7397);a({target:"Array",proto:!0,forced:[].forEach!=n},{forEach:n})},9173:function(e,t,i){var a=i(3085),n=i(841),r=i(9770),s=!r((function(e){Array.from(e)}));a({target:"Array",stat:!0,forced:s},{from:n})},2276:function(e,t,i){"use strict";var a=i(3085),n=i(8180).indexOf,r=i(424),s=[].indexOf,o=!!s&&1/[1].indexOf(1,-0)<0,l=r("indexOf");a({target:"Array",proto:!0,forced:o||!l},{indexOf:function(e){return o?s.apply(this,arguments)||0:n(this,e,arguments.length>1?arguments[1]:void 0)}})},8118:function(e,t,i){var a=i(3085),n=i(4770);a({target:"Array",stat:!0},{isArray:n})},8939:function(e,t,i){"use strict";var a=i(101),n=i(7423),r=i(7771),s=i(3326),o=i(7218),l="Array Iterator",c=s.set,u=s.getterFor(l);e.exports=o(Array,"Array",(function(e,t){c(this,{type:l,target:a(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,i=e.kind,a=e.index++;return!t||a>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:a,done:!1}:"values"==i?{value:t[a],done:!1}:{value:[a,t[a]],done:!1}}),"values"),r.Arguments=r.Array,n("keys"),n("values"),n("entries")},3838:function(e,t,i){"use strict";var a=i(3085),n=i(454).map,r=i(242),s=r("map");a({target:"Array",proto:!0,forced:!s},{map:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})},5818:function(e,t,i){"use strict";var a=i(3085),n=i(4770),r=i(2091),s=i(5744),o=i(7739),l=i(4104),c=i(101),u=i(9361),d=i(8182),p=i(242),f=p("slice"),A=d("species"),h=[].slice,m=Math.max;a({target:"Array",proto:!0,forced:!f},{slice:function(e,t){var i,a,d,p=c(this),f=l(p),g=o(e,f),v=o(void 0===t?f:t,f);if(n(p)&&(i=p.constructor,r(i)&&(i===Array||n(i.prototype))?i=void 0:s(i)&&(i=i[A],null===i&&(i=void 0)),i===Array||void 0===i))return h.call(p,g,v);for(a=new(void 0===i?Array:i)(m(v-g,0)),d=0;g<v;g++,d++)g in p&&u(a,d,p[g]);return a.length=d,a}})},2178:function(e,t,i){"use strict";var a=i(3085),n=i(7739),r=i(1941),s=i(4104),o=i(1795),l=i(1321),c=i(9361),u=i(242),d=u("splice"),p=Math.max,f=Math.min,A=9007199254740991,h="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!d},{splice:function(e,t){var i,a,u,d,m,g,v=o(this),b=s(v),y=n(e,b),_=arguments.length;if(0===_?i=a=0:1===_?(i=0,a=b-y):(i=_-2,a=f(p(r(t),0),b-y)),b+i-a>A)throw TypeError(h);for(u=l(v,a),d=0;d<a;d++)m=y+d,m in v&&c(u,d,v[m]);if(u.length=a,i<a){for(d=y;d<b-a;d++)m=d+a,g=d+i,m in v?v[g]=v[m]:delete v[g];for(d=b;d>b-a+i;d--)delete v[d-1]}else if(i>a)for(d=b-a;d>y;d--)m=d+a-1,g=d+i-1,m in v?v[g]=v[m]:delete v[g];for(d=0;d<i;d++)v[d+y]=arguments[d+2];return v.length=b-a+i,u}})},665:function(e,t,i){var a=i(3085),n=i(6782);a({target:"Function",proto:!0},{bind:n})},8671:function(e,t,i){var a=i(8576),n=i(1284);n(a.JSON,"JSON",!0)},8556:function(){},2666:function(e,t,i){var a=i(3085),n=i(2558);a({target:"Number",stat:!0,forced:Number.parseInt!=n},{parseInt:n})},3113:function(e,t,i){var a=i(3085),n=i(69),r=i(2853);a({target:"Object",stat:!0,sham:!n},{create:r})},297:function(e,t,i){var a=i(3085),n=i(69),r=i(2760);a({target:"Object",stat:!0,forced:!n,sham:!n},{defineProperty:r.f})},9234:function(e,t,i){var a=i(3085),n=i(6192),r=i(1795),s=i(9341),o=i(4635),l=n((function(){s(1)}));a({target:"Object",stat:!0,forced:l,sham:!o},{getPrototypeOf:function(e){return s(r(e))}})},2647:function(e,t,i){var a=i(3085),n=i(1795),r=i(7653),s=i(6192),o=s((function(){r(1)}));a({target:"Object",stat:!0,forced:o},{keys:function(e){return r(n(e))}})},3222:function(e,t,i){var a=i(3085),n=i(4469);a({target:"Object",stat:!0},{setPrototypeOf:n})},6663:function(){},4859:function(e,t,i){var a=i(3085),n=i(15);a({global:!0,forced:parseFloat!=n},{parseFloat:n})},5706:function(e,t,i){var a=i(3085),n=i(2558);a({global:!0,forced:parseInt!=n},{parseInt:n})},7884:function(e,t,i){"use strict";var a=i(3085),n=i(6235),r=i(9438),s=i(892),o=i(3442);a({target:"Promise",stat:!0},{allSettled:function(e){var t=this,i=r.f(t),a=i.resolve,l=i.reject,c=s((function(){var i=n(t.resolve),r=[],s=0,l=1;o(e,(function(e){var n=s++,o=!1;r.push(void 0),l++,i.call(t,e).then((function(e){o||(o=!0,r[n]={status:"fulfilled",value:e},--l||a(r))}),(function(e){o||(o=!0,r[n]={status:"rejected",reason:e},--l||a(r))}))})),--l||a(r)}));return c.error&&l(c.value),i.promise}})},8885:function(e,t,i){"use strict";var a=i(3085),n=i(6235),r=i(150),s=i(9438),o=i(892),l=i(3442),c="No one promise resolved";a({target:"Promise",stat:!0},{any:function(e){var t=this,i=s.f(t),a=i.resolve,u=i.reject,d=o((function(){var i=n(t.resolve),s=[],o=0,d=1,p=!1;l(e,(function(e){var n=o++,l=!1;s.push(void 0),d++,i.call(t,e).then((function(e){l||p||(p=!0,a(e))}),(function(e){l||p||(l=!0,s[n]=e,--d||u(new(r("AggregateError"))(s,c)))}))})),--d||u(new(r("AggregateError"))(s,c))}));return d.error&&u(d.value),i.promise}})},1868:function(e,t,i){"use strict";var a=i(3085),n=i(5546),r=i(4471),s=i(6192),o=i(150),l=i(6447),c=i(4743),u=i(9126),d=i(9482),p=!!r&&s((function(){r.prototype["finally"].call({then:function(){}},(function(){}))}));if(a({target:"Promise",proto:!0,real:!0,forced:p},{finally:function(e){var t=c(this,o("Promise")),i=l(e);return this.then(i?function(i){return u(t,e()).then((function(){return i}))}:e,i?function(i){return u(t,e()).then((function(){throw i}))}:e)}}),!n&&l(r)){var f=o("Promise").prototype["finally"];r.prototype["finally"]!==f&&d(r.prototype,"finally",f,{unsafe:!0})}},9021:function(e,t,i){"use strict";var a,n,r,s,o=i(3085),l=i(5546),c=i(8576),u=i(150),d=i(4471),p=i(9482),f=i(533),A=i(4469),h=i(1284),m=i(3656),g=i(6235),v=i(6447),b=i(5744),y=i(6961),_=i(9516),w=i(3442),C=i(9770),x=i(4743),k=i(7160).set,T=i(2950),S=i(9126),I=i(3681),E=i(9438),O=i(892),B=i(3326),L=i(9245),D=i(8182),M=i(2957),N=i(224),j=i(4218),P=D("species"),U="Promise",F=B.get,R=B.set,Q=B.getterFor(U),H=d&&d.prototype,z=d,q=H,G=c.TypeError,$=c.document,V=c.process,Y=E.f,K=Y,W=!!($&&$.createEvent&&c.dispatchEvent),X=v(c.PromiseRejectionEvent),J="unhandledrejection",Z="rejectionhandled",ee=0,te=1,ie=2,ae=1,ne=2,re=!1,se=L(U,(function(){var e=_(z),t=e!==String(z);if(!t&&66===j)return!0;if(l&&!q["finally"])return!0;if(j>=51&&/native code/.test(e))return!1;var i=new z((function(e){e(1)})),a=function(e){e((function(){}),(function(){}))},n=i.constructor={};return n[P]=a,re=i.then((function(){}))instanceof a,!re||!t&&M&&!X})),oe=se||!C((function(e){z.all(e)["catch"]((function(){}))})),le=function(e){var t;return!(!b(e)||!v(t=e.then))&&t},ce=function(e,t){if(!e.notified){e.notified=!0;var i=e.reactions;T((function(){var a=e.value,n=e.state==te,r=0;while(i.length>r){var s,o,l,c=i[r++],u=n?c.ok:c.fail,d=c.resolve,p=c.reject,f=c.domain;try{u?(n||(e.rejection===ne&&fe(e),e.rejection=ae),!0===u?s=a:(f&&f.enter(),s=u(a),f&&(f.exit(),l=!0)),s===c.promise?p(G("Promise-chain cycle")):(o=le(s))?o.call(s,d,p):d(s)):p(a)}catch(A){f&&!l&&f.exit(),p(A)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&de(e)}))}},ue=function(e,t,i){var a,n;W?(a=$.createEvent("Event"),a.promise=t,a.reason=i,a.initEvent(e,!1,!0),c.dispatchEvent(a)):a={promise:t,reason:i},!X&&(n=c["on"+e])?n(a):e===J&&I("Unhandled promise rejection",i)},de=function(e){k.call(c,(function(){var t,i=e.facade,a=e.value,n=pe(e);if(n&&(t=O((function(){N?V.emit("unhandledRejection",a,i):ue(J,i,a)})),e.rejection=N||pe(e)?ne:ae,t.error))throw t.value}))},pe=function(e){return e.rejection!==ae&&!e.parent},fe=function(e){k.call(c,(function(){var t=e.facade;N?V.emit("rejectionHandled",t):ue(Z,t,e.value)}))},Ae=function(e,t,i){return function(a){e(t,a,i)}},he=function(e,t,i){e.done||(e.done=!0,i&&(e=i),e.value=t,e.state=ie,ce(e,!0))},me=function(e,t,i){if(!e.done){e.done=!0,i&&(e=i);try{if(e.facade===t)throw G("Promise can't be resolved itself");var a=le(t);a?T((function(){var i={done:!1};try{a.call(t,Ae(me,i,e),Ae(he,i,e))}catch(n){he(i,n,e)}})):(e.value=t,e.state=te,ce(e,!1))}catch(n){he({done:!1},n,e)}}};if(se&&(z=function(e){y(this,z,U),g(e),a.call(this);var t=F(this);try{e(Ae(me,t),Ae(he,t))}catch(i){he(t,i)}},q=z.prototype,a=function(e){R(this,{type:U,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:ee,value:void 0})},a.prototype=f(q,{then:function(e,t){var i=Q(this),a=Y(x(this,z));return a.ok=!v(e)||e,a.fail=v(t)&&t,a.domain=N?V.domain:void 0,i.parent=!0,i.reactions.push(a),i.state!=ee&&ce(i,!1),a.promise},catch:function(e){return this.then(void 0,e)}}),n=function(){var e=new a,t=F(e);this.promise=e,this.resolve=Ae(me,t),this.reject=Ae(he,t)},E.f=Y=function(e){return e===z||e===r?new n(e):K(e)},!l&&v(d)&&H!==Object.prototype)){s=H.then,re||(p(H,"then",(function(e,t){var i=this;return new z((function(e,t){s.call(i,e,t)})).then(e,t)}),{unsafe:!0}),p(H,"catch",q["catch"],{unsafe:!0}));try{delete H.constructor}catch(ge){}A&&A(H,q)}o({global:!0,wrap:!0,forced:se},{Promise:z}),h(z,U,!1,!0),m(U),r=u(U),o({target:U,stat:!0,forced:se},{reject:function(e){var t=Y(this);return t.reject.call(void 0,e),t.promise}}),o({target:U,stat:!0,forced:l||se},{resolve:function(e){return S(l&&this===r?z:this,e)}}),o({target:U,stat:!0,forced:oe},{all:function(e){var t=this,i=Y(t),a=i.resolve,n=i.reject,r=O((function(){var i=g(t.resolve),r=[],s=0,o=1;w(e,(function(e){var l=s++,c=!1;r.push(void 0),o++,i.call(t,e).then((function(e){c||(c=!0,r[l]=e,--o||a(r))}),n)})),--o||a(r)}));return r.error&&n(r.value),i.promise},race:function(e){var t=this,i=Y(t),a=i.reject,n=O((function(){var n=g(t.resolve);w(e,(function(e){n.call(t,e).then(i.resolve,a)}))}));return n.error&&a(n.value),i.promise}})},5397:function(e,t,i){var a=i(3085),n=i(150),r=i(1404),s=i(1138),o=i(5744),l=i(2853),c=i(6782),u=i(6192),d=n("Reflect","construct"),p=u((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),f=!u((function(){d((function(){}))})),A=p||f;a({target:"Reflect",stat:!0,forced:A,sham:A},{construct:function(e,t){r(e),s(t);var i=arguments.length<3?e:r(arguments[2]);if(f&&!p)return d(e,t,i);if(e==i){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var a=[null];return a.push.apply(a,t),new(c.apply(e,a))}var n=i.prototype,u=l(o(n)?n:Object.prototype),A=Function.apply.call(e,u,t);return o(A)?A:u}})},1367:function(){},5454:function(e,t,i){"use strict";var a=i(863).charAt,n=i(4845),r=i(3326),s=i(7218),o="String Iterator",l=r.set,c=r.getterFor(o);s(String,"String",(function(e){l(this,{type:o,string:n(e),index:0})}),(function(){var e,t=c(this),i=t.string,n=t.index;return n>=i.length?{value:void 0,done:!0}:(e=a(i,n),t.index+=e.length,{value:e,done:!1})}))},957:function(e,t,i){"use strict";var a=i(3085),n=i(4277).trim,r=i(6815);a({target:"String",proto:!0,forced:r("trim")},{trim:function(){return n(this)}})},9781:function(e,t,i){var a=i(1488);a("asyncIterator")},492:function(){},6681:function(e,t,i){var a=i(1488);a("hasInstance")},9594:function(e,t,i){var a=i(1488);a("isConcatSpreadable")},3665:function(e,t,i){var a=i(1488);a("iterator")},6187:function(e,t,i){"use strict";var a=i(3085),n=i(8576),r=i(150),s=i(5546),o=i(69),l=i(3045),c=i(6192),u=i(4500),d=i(4770),p=i(6447),f=i(5744),A=i(3236),h=i(1138),m=i(1795),g=i(101),v=i(77),b=i(4845),y=i(774),_=i(2853),w=i(7653),C=i(2092),x=i(4052),k=i(4750),T=i(5141),S=i(2760),I=i(6007),E=i(9482),O=i(8717),B=i(9766),L=i(4535),D=i(2759),M=i(8182),N=i(9207),j=i(1488),P=i(1284),U=i(3326),F=i(454).forEach,R=B("hidden"),Q="Symbol",H="prototype",z=M("toPrimitive"),q=U.set,G=U.getterFor(Q),$=Object[H],V=n.Symbol,Y=r("JSON","stringify"),K=T.f,W=S.f,X=x.f,J=I.f,Z=O("symbols"),ee=O("op-symbols"),te=O("string-to-symbol-registry"),ie=O("symbol-to-string-registry"),ae=O("wks"),ne=n.QObject,re=!ne||!ne[H]||!ne[H].findChild,se=o&&c((function(){return 7!=_(W({},"a",{get:function(){return W(this,"a",{value:7}).a}})).a}))?function(e,t,i){var a=K($,t);a&&delete $[t],W(e,t,i),a&&e!==$&&W($,t,a)}:W,oe=function(e,t){var i=Z[e]=_(V[H]);return q(i,{type:Q,tag:e,description:t}),o||(i.description=t),i},le=function(e,t,i){e===$&&le(ee,t,i),h(e);var a=v(t);return h(i),u(Z,a)?(i.enumerable?(u(e,R)&&e[R][a]&&(e[R][a]=!1),i=_(i,{enumerable:y(0,!1)})):(u(e,R)||W(e,R,y(1,{})),e[R][a]=!0),se(e,a,i)):W(e,a,i)},ce=function(e,t){h(e);var i=g(t),a=w(i).concat(Ae(i));return F(a,(function(t){o&&!de.call(i,t)||le(e,t,i[t])})),e},ue=function(e,t){return void 0===t?_(e):ce(_(e),t)},de=function(e){var t=v(e),i=J.call(this,t);return!(this===$&&u(Z,t)&&!u(ee,t))&&(!(i||!u(this,t)||!u(Z,t)||u(this,R)&&this[R][t])||i)},pe=function(e,t){var i=g(e),a=v(t);if(i!==$||!u(Z,a)||u(ee,a)){var n=K(i,a);return!n||!u(Z,a)||u(i,R)&&i[R][a]||(n.enumerable=!0),n}},fe=function(e){var t=X(g(e)),i=[];return F(t,(function(e){u(Z,e)||u(L,e)||i.push(e)})),i},Ae=function(e){var t=e===$,i=X(t?ee:g(e)),a=[];return F(i,(function(e){!u(Z,e)||t&&!u($,e)||a.push(Z[e])})),a};if(l||(V=function(){if(this instanceof V)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?b(arguments[0]):void 0,t=D(e),i=function(e){this===$&&i.call(ee,e),u(this,R)&&u(this[R],t)&&(this[R][t]=!1),se(this,t,y(1,e))};return o&&re&&se($,t,{configurable:!0,set:i}),oe(t,e)},E(V[H],"toString",(function(){return G(this).tag})),E(V,"withoutSetter",(function(e){return oe(D(e),e)})),I.f=de,S.f=le,T.f=pe,C.f=x.f=fe,k.f=Ae,N.f=function(e){return oe(M(e),e)},o&&(W(V[H],"description",{configurable:!0,get:function(){return G(this).description}}),s||E($,"propertyIsEnumerable",de,{unsafe:!0}))),a({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:V}),F(w(ae),(function(e){j(e)})),a({target:Q,stat:!0,forced:!l},{for:function(e){var t=b(e);if(u(te,t))return te[t];var i=V(t);return te[t]=i,ie[i]=t,i},keyFor:function(e){if(!A(e))throw TypeError(e+" is not a symbol");if(u(ie,e))return ie[e]},useSetter:function(){re=!0},useSimple:function(){re=!1}}),a({target:"Object",stat:!0,forced:!l,sham:!o},{create:ue,defineProperty:le,defineProperties:ce,getOwnPropertyDescriptor:pe}),a({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:fe,getOwnPropertySymbols:Ae}),a({target:"Object",stat:!0,forced:c((function(){k.f(1)}))},{getOwnPropertySymbols:function(e){return k.f(m(e))}}),Y){var he=!l||c((function(){var e=V();return"[null]"!=Y([e])||"{}"!=Y({a:e})||"{}"!=Y(Object(e))}));a({target:"JSON",stat:!0,forced:he},{stringify:function(e,t,i){var a,n=[e],r=1;while(arguments.length>r)n.push(arguments[r++]);if(a=t,(f(t)||void 0!==e)&&!A(e))return d(t)||(t=function(e,t){if(p(a)&&(t=a.call(this,e,t)),!A(t))return t}),n[1]=t,Y.apply(null,n)}})}if(!V[H][z]){var me=V[H].valueOf;E(V[H],z,(function(){return me.apply(this,arguments)}))}P(V,Q),L[R]=!0},1250:function(e,t,i){var a=i(1488);a("matchAll")},9017:function(e,t,i){var a=i(1488);a("match")},9786:function(e,t,i){var a=i(1488);a("replace")},503:function(e,t,i){var a=i(1488);a("search")},6565:function(e,t,i){var a=i(1488);a("species")},9322:function(e,t,i){var a=i(1488);a("split")},3610:function(e,t,i){var a=i(1488);a("toPrimitive")},6886:function(e,t,i){var a=i(1488);a("toStringTag")},3514:function(e,t,i){var a=i(1488);a("unscopables")},177:function(e,t,i){var a=i(1488);a("asyncDispose")},9031:function(e,t,i){var a=i(1488);a("dispose")},6658:function(e,t,i){var a=i(1488);a("matcher")},1875:function(e,t,i){var a=i(1488);a("metadata")},8658:function(e,t,i){var a=i(1488);a("observable")},4592:function(e,t,i){var a=i(1488);a("patternMatch")},6680:function(e,t,i){var a=i(1488);a("replaceAll")},162:function(e,t,i){i(8939);var a=i(7365),n=i(8576),r=i(4696),s=i(8711),o=i(7771),l=i(8182),c=l("toStringTag");for(var u in a){var d=n[u],p=d&&d.prototype;p&&r(p)!==c&&s(p,c,u),o[u]=o.Array}},2906:function(e,t,i){var a=i(3085),n=i(8576),r=i(6447),s=i(8989),o=[].slice,l=/MSIE .\./.test(s),c=function(e){return function(t,i){var a=arguments.length>2,n=a?o.call(arguments,2):void 0;return e(a?function(){(r(t)?t:Function(t)).apply(this,n)}:t,i)}};a({global:!0,bind:!0,forced:l},{setTimeout:c(n.setTimeout),setInterval:c(n.setInterval)})},9336:function(e,t,i){"use strict";i(8939);var a=i(3085),n=i(150),r=i(4551),s=i(9482),o=i(533),l=i(1284),c=i(5148),u=i(3326),d=i(6961),p=i(6447),f=i(4500),A=i(8043),h=i(4696),m=i(1138),g=i(5744),v=i(4845),b=i(2853),y=i(774),_=i(1669),w=i(8703),C=i(8182),x=n("fetch"),k=n("Request"),T=k&&k.prototype,S=n("Headers"),I=C("iterator"),E="URLSearchParams",O=E+"Iterator",B=u.set,L=u.getterFor(E),D=u.getterFor(O),M=/\+/g,N=Array(4),j=function(e){return N[e-1]||(N[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},P=function(e){try{return decodeURIComponent(e)}catch(t){return e}},U=function(e){var t=e.replace(M," "),i=4;try{return decodeURIComponent(t)}catch(a){while(i)t=t.replace(j(i--),P);return t}},F=/[!'()~]|%20/g,R={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Q=function(e){return R[e]},H=function(e){return encodeURIComponent(e).replace(F,Q)},z=function(e,t){if(t){var i,a,n=t.split("&"),r=0;while(r<n.length)i=n[r++],i.length&&(a=i.split("="),e.push({key:U(a.shift()),value:U(a.join("="))}))}},q=function(e){this.entries.length=0,z(this.entries,e)},G=function(e,t){if(e<t)throw TypeError("Not enough arguments")},$=c((function(e,t){B(this,{type:O,iterator:_(L(e).entries),kind:t})}),"Iterator",(function(){var e=D(this),t=e.kind,i=e.iterator.next(),a=i.value;return i.done||(i.value="keys"===t?a.key:"values"===t?a.value:[a.key,a.value]),i})),V=function(){d(this,V,E);var e,t,i,a,n,r,s,o,l,c=arguments.length>0?arguments[0]:void 0,u=this,p=[];if(B(u,{type:E,entries:p,updateURL:function(){},updateSearchParams:q}),void 0!==c)if(g(c))if(e=w(c),e){t=_(c,e),i=t.next;while(!(a=i.call(t)).done){if(n=_(m(a.value)),r=n.next,(s=r.call(n)).done||(o=r.call(n)).done||!r.call(n).done)throw TypeError("Expected sequence with length 2");p.push({key:v(s.value),value:v(o.value)})}}else for(l in c)f(c,l)&&p.push({key:l,value:v(c[l])});else z(p,"string"===typeof c?"?"===c.charAt(0)?c.slice(1):c:v(c))},Y=V.prototype;if(o(Y,{append:function(e,t){G(arguments.length,2);var i=L(this);i.entries.push({key:v(e),value:v(t)}),i.updateURL()},delete:function(e){G(arguments.length,1);var t=L(this),i=t.entries,a=v(e),n=0;while(n<i.length)i[n].key===a?i.splice(n,1):n++;t.updateURL()},get:function(e){G(arguments.length,1);for(var t=L(this).entries,i=v(e),a=0;a<t.length;a++)if(t[a].key===i)return t[a].value;return null},getAll:function(e){G(arguments.length,1);for(var t=L(this).entries,i=v(e),a=[],n=0;n<t.length;n++)t[n].key===i&&a.push(t[n].value);return a},has:function(e){G(arguments.length,1);var t=L(this).entries,i=v(e),a=0;while(a<t.length)if(t[a++].key===i)return!0;return!1},set:function(e,t){G(arguments.length,1);for(var i,a=L(this),n=a.entries,r=!1,s=v(e),o=v(t),l=0;l<n.length;l++)i=n[l],i.key===s&&(r?n.splice(l--,1):(r=!0,i.value=o));r||n.push({key:s,value:o}),a.updateURL()},sort:function(){var e,t,i,a=L(this),n=a.entries,r=n.slice();for(n.length=0,i=0;i<r.length;i++){for(e=r[i],t=0;t<i;t++)if(n[t].key>e.key){n.splice(t,0,e);break}t===i&&n.push(e)}a.updateURL()},forEach:function(e){var t,i=L(this).entries,a=A(e,arguments.length>1?arguments[1]:void 0,3),n=0;while(n<i.length)t=i[n++],a(t.value,t.key,this)},keys:function(){return new $(this,"keys")},values:function(){return new $(this,"values")},entries:function(){return new $(this,"entries")}},{enumerable:!0}),s(Y,I,Y.entries,{name:"entries"}),s(Y,"toString",(function(){var e,t=L(this).entries,i=[],a=0;while(a<t.length)e=t[a++],i.push(H(e.key)+"="+H(e.value));return i.join("&")}),{enumerable:!0}),l(V,E),a({global:!0,forced:!r},{URLSearchParams:V}),!r&&p(S)){var K=function(e){if(g(e)){var t,i=e.body;if(h(i)===E)return t=e.headers?new S(e.headers):new S,t.has("content-type")||t.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),b(e,{body:y(0,String(i)),headers:y(0,t)})}return e};if(p(x)&&a({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return x(e,arguments.length>1?K(arguments[1]):{})}}),p(k)){var W=function(e){return d(this,W,"Request"),new k(e,arguments.length>1?K(arguments[1]):{})};T.constructor=W,W.prototype=T,a({global:!0,forced:!0},{Request:W})}}e.exports={URLSearchParams:V,getState:L}},4948:function(e,t,i){"use strict";i(5454);var a,n=i(3085),r=i(69),s=i(4551),o=i(8576),l=i(1187),c=i(9482),u=i(6961),d=i(4500),p=i(2503),f=i(841),A=i(863).codeAt,h=i(7977),m=i(4845),g=i(1284),v=i(9336),b=i(3326),y=o.URL,_=v.URLSearchParams,w=v.getState,C=b.set,x=b.getterFor("URL"),k=Math.floor,T=Math.pow,S="Invalid authority",I="Invalid scheme",E="Invalid host",O="Invalid port",B=/[A-Za-z]/,L=/[\d+-.A-Za-z]/,D=/\d/,M=/^0x/i,N=/^[0-7]+$/,j=/^\d+$/,P=/^[\dA-Fa-f]+$/,U=/[\0\t\n\r #%/:<>?@[\\\]^|]/,F=/[\0\t\n\r #/:<>?@[\\\]^|]/,R=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,Q=/[\t\n\r]/g,H=function(e,t){var i,a,n;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return E;if(i=q(t.slice(1,-1)),!i)return E;e.host=i}else if(Z(e)){if(t=h(t),U.test(t))return E;if(i=z(t),null===i)return E;e.host=i}else{if(F.test(t))return E;for(i="",a=f(t),n=0;n<a.length;n++)i+=X(a[n],V);e.host=i}},z=function(e){var t,i,a,n,r,s,o,l=e.split(".");if(l.length&&""==l[l.length-1]&&l.pop(),t=l.length,t>4)return e;for(i=[],a=0;a<t;a++){if(n=l[a],""==n)return e;if(r=10,n.length>1&&"0"==n.charAt(0)&&(r=M.test(n)?16:8,n=n.slice(8==r?1:2)),""===n)s=0;else{if(!(10==r?j:8==r?N:P).test(n))return e;s=parseInt(n,r)}i.push(s)}for(a=0;a<t;a++)if(s=i[a],a==t-1){if(s>=T(256,5-t))return null}else if(s>255)return null;for(o=i.pop(),a=0;a<i.length;a++)o+=i[a]*T(256,3-a);return o},q=function(e){var t,i,a,n,r,s,o,l=[0,0,0,0,0,0,0,0],c=0,u=null,d=0,p=function(){return e.charAt(d)};if(":"==p()){if(":"!=e.charAt(1))return;d+=2,c++,u=c}while(p()){if(8==c)return;if(":"!=p()){t=i=0;while(i<4&&P.test(p()))t=16*t+parseInt(p(),16),d++,i++;if("."==p()){if(0==i)return;if(d-=i,c>6)return;a=0;while(p()){if(n=null,a>0){if(!("."==p()&&a<4))return;d++}if(!D.test(p()))return;while(D.test(p())){if(r=parseInt(p(),10),null===n)n=r;else{if(0==n)return;n=10*n+r}if(n>255)return;d++}l[c]=256*l[c]+n,a++,2!=a&&4!=a||c++}if(4!=a)return;break}if(":"==p()){if(d++,!p())return}else if(p())return;l[c++]=t}else{if(null!==u)return;d++,c++,u=c}}if(null!==u){s=c-u,c=7;while(0!=c&&s>0)o=l[c],l[c--]=l[u+s-1],l[u+--s]=o}else if(8!=c)return;return l},G=function(e){for(var t=null,i=1,a=null,n=0,r=0;r<8;r++)0!==e[r]?(n>i&&(t=a,i=n),a=null,n=0):(null===a&&(a=r),++n);return n>i&&(t=a,i=n),t},$=function(e){var t,i,a,n;if("number"==typeof e){for(t=[],i=0;i<4;i++)t.unshift(e%256),e=k(e/256);return t.join(".")}if("object"==typeof e){for(t="",a=G(e),i=0;i<8;i++)n&&0===e[i]||(n&&(n=!1),a===i?(t+=i?":":"::",n=!0):(t+=e[i].toString(16),i<7&&(t+=":")));return"["+t+"]"}return e},V={},Y=p({},V,{" ":1,'"':1,"<":1,">":1,"`":1}),K=p({},Y,{"#":1,"?":1,"{":1,"}":1}),W=p({},K,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),X=function(e,t){var i=A(e,0);return i>32&&i<127&&!d(t,e)?e:encodeURIComponent(e)},J={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Z=function(e){return d(J,e.scheme)},ee=function(e){return""!=e.username||""!=e.password},te=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},ie=function(e,t){var i;return 2==e.length&&B.test(e.charAt(0))&&(":"==(i=e.charAt(1))||!t&&"|"==i)},ae=function(e){var t;return e.length>1&&ie(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},ne=function(e){var t=e.path,i=t.length;!i||"file"==e.scheme&&1==i&&ie(t[0],!0)||t.pop()},re=function(e){return"."===e||"%2e"===e.toLowerCase()},se=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},oe={},le={},ce={},ue={},de={},pe={},fe={},Ae={},he={},me={},ge={},ve={},be={},ye={},_e={},we={},Ce={},xe={},ke={},Te={},Se={},Ie=function(e,t,i,n){var r,s,o,l,c=i||oe,u=0,p="",A=!1,h=!1,m=!1;i||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(R,"")),t=t.replace(Q,""),r=f(t);while(u<=r.length){switch(s=r[u],c){case oe:if(!s||!B.test(s)){if(i)return I;c=ce;continue}p+=s.toLowerCase(),c=le;break;case le:if(s&&(L.test(s)||"+"==s||"-"==s||"."==s))p+=s.toLowerCase();else{if(":"!=s){if(i)return I;p="",c=ce,u=0;continue}if(i&&(Z(e)!=d(J,p)||"file"==p&&(ee(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=p,i)return void(Z(e)&&J[e.scheme]==e.port&&(e.port=null));p="","file"==e.scheme?c=ye:Z(e)&&n&&n.scheme==e.scheme?c=ue:Z(e)?c=Ae:"/"==r[u+1]?(c=de,u++):(e.cannotBeABaseURL=!0,e.path.push(""),c=ke)}break;case ce:if(!n||n.cannotBeABaseURL&&"#"!=s)return I;if(n.cannotBeABaseURL&&"#"==s){e.scheme=n.scheme,e.path=n.path.slice(),e.query=n.query,e.fragment="",e.cannotBeABaseURL=!0,c=Se;break}c="file"==n.scheme?ye:pe;continue;case ue:if("/"!=s||"/"!=r[u+1]){c=pe;continue}c=he,u++;break;case de:if("/"==s){c=me;break}c=xe;continue;case pe:if(e.scheme=n.scheme,s==a)e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query=n.query;else if("/"==s||"\\"==s&&Z(e))c=fe;else if("?"==s)e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query="",c=Te;else{if("#"!=s){e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.path.pop(),c=xe;continue}e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query=n.query,e.fragment="",c=Se}break;case fe:if(!Z(e)||"/"!=s&&"\\"!=s){if("/"!=s){e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,c=xe;continue}c=me}else c=he;break;case Ae:if(c=he,"/"!=s||"/"!=p.charAt(u+1))continue;u++;break;case he:if("/"!=s&&"\\"!=s){c=me;continue}break;case me:if("@"==s){A&&(p="%40"+p),A=!0,o=f(p);for(var g=0;g<o.length;g++){var v=o[g];if(":"!=v||m){var b=X(v,W);m?e.password+=b:e.username+=b}else m=!0}p=""}else if(s==a||"/"==s||"?"==s||"#"==s||"\\"==s&&Z(e)){if(A&&""==p)return S;u-=f(p).length+1,p="",c=ge}else p+=s;break;case ge:case ve:if(i&&"file"==e.scheme){c=we;continue}if(":"!=s||h){if(s==a||"/"==s||"?"==s||"#"==s||"\\"==s&&Z(e)){if(Z(e)&&""==p)return E;if(i&&""==p&&(ee(e)||null!==e.port))return;if(l=H(e,p),l)return l;if(p="",c=Ce,i)return;continue}"["==s?h=!0:"]"==s&&(h=!1),p+=s}else{if(""==p)return E;if(l=H(e,p),l)return l;if(p="",c=be,i==ve)return}break;case be:if(!D.test(s)){if(s==a||"/"==s||"?"==s||"#"==s||"\\"==s&&Z(e)||i){if(""!=p){var y=parseInt(p,10);if(y>65535)return O;e.port=Z(e)&&y===J[e.scheme]?null:y,p=""}if(i)return;c=Ce;continue}return O}p+=s;break;case ye:if(e.scheme="file","/"==s||"\\"==s)c=_e;else{if(!n||"file"!=n.scheme){c=xe;continue}if(s==a)e.host=n.host,e.path=n.path.slice(),e.query=n.query;else if("?"==s)e.host=n.host,e.path=n.path.slice(),e.query="",c=Te;else{if("#"!=s){ae(r.slice(u).join(""))||(e.host=n.host,e.path=n.path.slice(),ne(e)),c=xe;continue}e.host=n.host,e.path=n.path.slice(),e.query=n.query,e.fragment="",c=Se}}break;case _e:if("/"==s||"\\"==s){c=we;break}n&&"file"==n.scheme&&!ae(r.slice(u).join(""))&&(ie(n.path[0],!0)?e.path.push(n.path[0]):e.host=n.host),c=xe;continue;case we:if(s==a||"/"==s||"\\"==s||"?"==s||"#"==s){if(!i&&ie(p))c=xe;else if(""==p){if(e.host="",i)return;c=Ce}else{if(l=H(e,p),l)return l;if("localhost"==e.host&&(e.host=""),i)return;p="",c=Ce}continue}p+=s;break;case Ce:if(Z(e)){if(c=xe,"/"!=s&&"\\"!=s)continue}else if(i||"?"!=s)if(i||"#"!=s){if(s!=a&&(c=xe,"/"!=s))continue}else e.fragment="",c=Se;else e.query="",c=Te;break;case xe:if(s==a||"/"==s||"\\"==s&&Z(e)||!i&&("?"==s||"#"==s)){if(se(p)?(ne(e),"/"==s||"\\"==s&&Z(e)||e.path.push("")):re(p)?"/"==s||"\\"==s&&Z(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&ie(p)&&(e.host&&(e.host=""),p=p.charAt(0)+":"),e.path.push(p)),p="","file"==e.scheme&&(s==a||"?"==s||"#"==s))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==s?(e.query="",c=Te):"#"==s&&(e.fragment="",c=Se)}else p+=X(s,K);break;case ke:"?"==s?(e.query="",c=Te):"#"==s?(e.fragment="",c=Se):s!=a&&(e.path[0]+=X(s,V));break;case Te:i||"#"!=s?s!=a&&("'"==s&&Z(e)?e.query+="%27":e.query+="#"==s?"%23":X(s,V)):(e.fragment="",c=Se);break;case Se:s!=a&&(e.fragment+=X(s,Y));break}u++}},Ee=function(e){var t,i,a=u(this,Ee,"URL"),n=arguments.length>1?arguments[1]:void 0,s=m(e),o=C(a,{type:"URL"});if(void 0!==n)if(n instanceof Ee)t=x(n);else if(i=Ie(t={},m(n)),i)throw TypeError(i);if(i=Ie(o,s,null,t),i)throw TypeError(i);var l=o.searchParams=new _,c=w(l);c.updateSearchParams(o.query),c.updateURL=function(){o.query=String(l)||null},r||(a.href=Be.call(a),a.origin=Le.call(a),a.protocol=De.call(a),a.username=Me.call(a),a.password=Ne.call(a),a.host=je.call(a),a.hostname=Pe.call(a),a.port=Ue.call(a),a.pathname=Fe.call(a),a.search=Re.call(a),a.searchParams=Qe.call(a),a.hash=He.call(a))},Oe=Ee.prototype,Be=function(){var e=x(this),t=e.scheme,i=e.username,a=e.password,n=e.host,r=e.port,s=e.path,o=e.query,l=e.fragment,c=t+":";return null!==n?(c+="//",ee(e)&&(c+=i+(a?":"+a:"")+"@"),c+=$(n),null!==r&&(c+=":"+r)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?s[0]:s.length?"/"+s.join("/"):"",null!==o&&(c+="?"+o),null!==l&&(c+="#"+l),c},Le=function(){var e=x(this),t=e.scheme,i=e.port;if("blob"==t)try{return new Ee(t.path[0]).origin}catch(a){return"null"}return"file"!=t&&Z(e)?t+"://"+$(e.host)+(null!==i?":"+i:""):"null"},De=function(){return x(this).scheme+":"},Me=function(){return x(this).username},Ne=function(){return x(this).password},je=function(){var e=x(this),t=e.host,i=e.port;return null===t?"":null===i?$(t):$(t)+":"+i},Pe=function(){var e=x(this).host;return null===e?"":$(e)},Ue=function(){var e=x(this).port;return null===e?"":String(e)},Fe=function(){var e=x(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Re=function(){var e=x(this).query;return e?"?"+e:""},Qe=function(){return x(this).searchParams},He=function(){var e=x(this).fragment;return e?"#"+e:""},ze=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(r&&l(Oe,{href:ze(Be,(function(e){var t=x(this),i=m(e),a=Ie(t,i);if(a)throw TypeError(a);w(t.searchParams).updateSearchParams(t.query)})),origin:ze(Le),protocol:ze(De,(function(e){var t=x(this);Ie(t,m(e)+":",oe)})),username:ze(Me,(function(e){var t=x(this),i=f(m(e));if(!te(t)){t.username="";for(var a=0;a<i.length;a++)t.username+=X(i[a],W)}})),password:ze(Ne,(function(e){var t=x(this),i=f(m(e));if(!te(t)){t.password="";for(var a=0;a<i.length;a++)t.password+=X(i[a],W)}})),host:ze(je,(function(e){var t=x(this);t.cannotBeABaseURL||Ie(t,m(e),ge)})),hostname:ze(Pe,(function(e){var t=x(this);t.cannotBeABaseURL||Ie(t,m(e),ve)})),port:ze(Ue,(function(e){var t=x(this);te(t)||(e=m(e),""==e?t.port=null:Ie(t,e,be))})),pathname:ze(Fe,(function(e){var t=x(this);t.cannotBeABaseURL||(t.path=[],Ie(t,m(e),Ce))})),search:ze(Re,(function(e){var t=x(this);e=m(e),""==e?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Ie(t,e,Te)),w(t.searchParams).updateSearchParams(t.query)})),searchParams:ze(Qe),hash:ze(He,(function(e){var t=x(this);e=m(e),""!=e?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Ie(t,e,Se)):t.fragment=null}))}),c(Oe,"toJSON",(function(){return Be.call(this)}),{enumerable:!0}),c(Oe,"toString",(function(){return Be.call(this)}),{enumerable:!0}),y){var qe=y.createObjectURL,Ge=y.revokeObjectURL;qe&&c(Ee,"createObjectURL",(function(e){return qe.apply(y,arguments)})),Ge&&c(Ee,"revokeObjectURL",(function(e){return Ge.apply(y,arguments)}))}g(Ee,"URL"),n({global:!0,forced:!s,sham:!r},{URL:Ee})},9801:function(){},3822:function(e,t,i){var a=i(2221);e.exports=a},1434:function(e,t,i){var a=i(5078);e.exports=a},6899:function(e,t,i){var a=i(98);e.exports=a},7710:function(e,t,i){var a=i(5739);i(162),e.exports=a},4486:function(e,t,i){var a=i(278);e.exports=a},4877:function(e,t,i){var a=i(1484);e.exports=a},7178:function(e,t,i){var a=i(7731);e.exports=a},5603:function(e,t,i){var a=i(3669);e.exports=a},1206:function(e,t,i){i(162);var a=i(6899),n=i(4696),r=Array.prototype,s={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.forEach;return e===r||e instanceof Array&&t===r.forEach||s.hasOwnProperty(n(e))?a:t}},6174:function(e,t,i){var a=i(2604);e.exports=a},57:function(e,t,i){var a=i(263);e.exports=a},4741:function(e,t,i){var a=i(7663);e.exports=a},8368:function(e,t,i){var a=i(5063);e.exports=a},3739:function(e,t,i){var a=i(6813);e.exports=a},172:function(e,t,i){var a=i(6285);e.exports=a},4963:function(e,t,i){var a=i(3213);e.exports=a},7820:function(e,t,i){var a=i(3512);e.exports=a},8980:function(e,t,i){var a=i(8168);e.exports=a},5636:function(e,t,i){var a=i(8651);e.exports=a},6672:function(e,t,i){var a=i(3083);e.exports=a},5059:function(e,t,i){var a=i(2987);e.exports=a},3969:function(e,t,i){var a=i(2239);e.exports=a},6618:function(e,t,i){var a=i(3154);i(162),e.exports=a},5279:function(e,t,i){var a=i(6577);e.exports=a},9562:function(e,t,i){i(2906);var a=i(7545);e.exports=a.setTimeout},2285:function(e,t,i){var a=i(5008);i(162),e.exports=a},8535:function(e,t,i){var a=i(994);i(162),e.exports=a},652:function(e,t,i){var a=i(5668);e.exports=a},5668:function(e,t,i){i(4948),i(9801),i(9336);var a=i(7545);e.exports=a.URL},2534:function(e){"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyBkaXNwbGF5PSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KPGRlZnMgaWQ9InR1aS1pbWFnZS1lZGl0b3Itc3ZnLWRlZmF1bHQtaWNvbnMiPgo8c3ltYm9sIGlkPSJpYy1hcHBseSIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxwYXRoIGQ9Ik0wIDBoMjR2MjRIMHoiIHN0cm9rZT0ibm9uZSIgZmlsbD0ibm9uZSIvPgogICAgPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJpbmhlcml0IiBkPSJNNCAxMi4wMTFsNSA1TDIwLjAxMSA2Ii8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1jYW5jZWwiIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgICA8cGF0aCBkPSJNMCAwaDI0djI0SDB6IiBmaWxsPSJub25lIiBzdHJva2U9Im5vbmUiLz4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iaW5oZXJpdCIgZD0iTTYgNmwxMiAxMk0xOCA2TDYgMTgiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLWNyb3AiIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgICA8cGF0aCBkPSJNMCAwaDI0djI0SDB6IiBzdHJva2U9Im5vbmUiIGZpbGw9Im5vbmUiIC8+CiAgICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik00IDBoMXYyMGExIDEgMCAwIDEtMS0xVjB6TTIwIDE3aC0xVjVoMXYxMnptMCAydjVoLTF2LTVoMXoiLz4KICAgIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZD0iTTUgMTloMTl2MUg1ek00Ljc2MiA0djFIMFY0aDQuNzYyek03IDRoMTJhMSAxIDAgMCAxIDEgMUg3VjR6Ii8+Cjwvc3ltYm9sPgo8IS0tIFRoaXMgaWNvbiBtYWRlIGJ5IFBpeGVsIHBlcmZlY3QgZnJvbSB3d3cuZmxhdGljb24uY29tIC0tPgo8c3ltYm9sIGlkPSJpYy1yZXNpemUiIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgc3Ryb2tlPSJub25lIiBmaWxsPSJub25lIi8+CiAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJpbmhlcml0IiBkPSJNIDE4Ljk4ODI4MSAzLjAxMTcxOSBDIDE4LjgwMDc4MSAyLjgyNDIxOSAxOC41IDIuODI0MjE5IDE4LjMxMjUgMy4wMTE3MTkgTCAxMS42MjEwOTQgOS43MDcwMzEgQyAxMS40Mjk2ODggOS44OTQ1MzEgMTEuNDI5Njg4IDEwLjE5NTMxMiAxMS42MjEwOTQgMTAuMzc4OTA2IEMgMTEuNzEwOTM4IDEwLjQ3MjY1NiAxMS44MzU5MzggMTAuNTE5NTMxIDExLjk1NzAzMSAxMC41MTk1MzEgQyAxMi4wNzgxMjUgMTAuNTE5NTMxIDEyLjIwMzEyNSAxMC40NzI2NTYgMTIuMjkyOTY5IDEwLjM3ODkwNiBMIDE4Ljk4ODI4MSAzLjY4NzUgQyAxOS4xNzU3ODEgMy41IDE5LjE3NTc4MSAzLjE5OTIxOSAxOC45ODgyODEgMy4wMTE3MTkgWiBNIDE4Ljk4ODI4MSAzLjAxMTcxOSAiLz4KICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik0gMTguNjUyMzQ0IDIuODY3MTg4IEMgMTguMzg2NzE5IDIuODY3MTg4IDE4LjE3MTg3NSAzLjA4MjAzMSAxOC4xNzE4NzUgMy4zNDc2NTYgTCAxOC4xNzE4NzUgOS4wODU5MzggQyAxOC4xNzE4NzUgOS4zNDc2NTYgMTguMzg2NzE5IDkuNTYyNSAxOC42NTIzNDQgOS41NjI1IEMgMTguOTE3OTY5IDkuNTYyNSAxOS4xMzI4MTIgOS4zNDc2NTYgMTkuMTMyODEyIDkuMDg1OTM4IEwgMTkuMTMyODEyIDMuMzQ3NjU2IEMgMTkuMTMyODEyIDMuMDgyMDMxIDE4LjkxNzk2OSAyLjg2NzE4OCAxOC42NTIzNDQgMi44NjcxODggWiBNIDE4LjY1MjM0NCAyLjg2NzE4OCAiLz4KICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik0gMTguNjUyMzQ0IDIuODY3MTg4IEwgMTIuOTE0MDYyIDIuODY3MTg4IEMgMTIuNjUyMzQ0IDIuODY3MTg4IDEyLjQzNzUgMy4wODIwMzEgMTIuNDM3NSAzLjM0NzY1NiBDIDEyLjQzNzUgMy42MTMyODEgMTIuNjUyMzQ0IDMuODI4MTI1IDEyLjkxNDA2MiAzLjgyODEyNSBMIDE4LjY1MjM0NCAzLjgyODEyNSBDIDE4LjkxNzk2OSAzLjgyODEyNSAxOS4xMzI4MTIgMy42MTMyODEgMTkuMTMyODEyIDMuMzQ3NjU2IEMgMTkuMTMyODEyIDMuMDgyMDMxIDE4LjkxNzk2OSAyLjg2NzE4OCAxOC42NTIzNDQgMi44NjcxODggWiBNIDE4LjY1MjM0NCAyLjg2NzE4OCAiLz4KICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik0gMTAuMzc4OTA2IDExLjYyMTA5NCBDIDEwLjE5NTMxMiAxMS40MzM1OTQgOS44OTA2MjUgMTEuNDMzNTk0IDkuNzAzMTI1IDExLjYyMTA5NCBMIDMuMDA3ODEyIDE4LjMxNjQwNiBDIDIuODIwMzEyIDE4LjUgMi44MjAzMTIgMTguODA0Njg4IDMuMDA3ODEyIDE4Ljk5MjE4OCBDIDMuMTA1NDY5IDE5LjA4NTkzOCAzLjIyNjU2MiAxOS4xMzI4MTIgMy4zNDc2NTYgMTkuMTMyODEyIEMgMy40Njg3NSAxOS4xMzI4MTIgMy41ODk4NDQgMTkuMDg1OTM4IDMuNjgzNTk0IDE4Ljk5MjE4OCBMIDEwLjM3ODkwNiAxMi4yOTY4NzUgQyAxMC41NjY0MDYgMTIuMTA5Mzc1IDEwLjU2NjQwNiAxMS44MDQ2ODggMTAuMzc4OTA2IDExLjYyMTA5NCBaIE0gMTAuMzc4OTA2IDExLjYyMTA5NCAiLz4KICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik0gMy4zNDc2NTYgMTIuNDM3NSBDIDMuMDgyMDMxIDEyLjQzNzUgMi44NjcxODggMTIuNjUyMzQ0IDIuODY3MTg4IDEyLjkxNDA2MiBMIDIuODY3MTg4IDE4LjY1MjM0NCBDIDIuODY3MTg4IDE4LjkxNzk2OSAzLjA4MjAzMSAxOS4xMzI4MTIgMy4zNDc2NTYgMTkuMTMyODEyIEMgMy42MTMyODEgMTkuMTMyODEyIDMuODI4MTI1IDE4LjkxNzk2OSAzLjgyODEyNSAxOC42NTIzNDQgTCAzLjgyODEyNSAxMi45MTQwNjIgQyAzLjgyODEyNSAxMi42NTIzNDQgMy42MTMyODEgMTIuNDM3NSAzLjM0NzY1NiAxMi40Mzc1IFogTSAzLjM0NzY1NiAxMi40Mzc1ICIvPgogIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZD0iTSA5LjA4NTkzOCAxOC4xNzE4NzUgTCAzLjM0NzY1NiAxOC4xNzE4NzUgQyAzLjA4MjAzMSAxOC4xNzE4NzUgMi44NjcxODggMTguMzg2NzE5IDIuODY3MTg4IDE4LjY1MjM0NCBDIDIuODY3MTg4IDE4LjkxNzk2OSAzLjA4MjAzMSAxOS4xMzI4MTIgMy4zNDc2NTYgMTkuMTMyODEyIEwgOS4wODU5MzggMTkuMTMyODEyIEMgOS4zNDc2NTYgMTkuMTMyODEyIDkuNTYyNSAxOC45MTc5NjkgOS41NjI1IDE4LjY1MjM0NCBDIDkuNTYyNSAxOC4zODY3MTkgOS4zNDc2NTYgMTguMTcxODc1IDkuMDg1OTM4IDE4LjE3MTg3NSBaIE0gOS4wODU5MzggMTguMTcxODc1ICIvPgogIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZD0iTSAyMC41NjI1IDAgTCAxLjQzNzUgMCBDIDAuNjQ0NTMxIDAgMCAwLjY0NDUzMSAwIDEuNDM3NSBMIDAgMjAuNTYyNSBDIDAgMjEuMzU1NDY5IDAuNjQ0NTMxIDIyIDEuNDM3NSAyMiBMIDIwLjU2MjUgMjIgQyAyMS4zNTU0NjkgMjIgMjIgMjEuMzU1NDY5IDIyIDIwLjU2MjUgTCAyMiAxLjQzNzUgQyAyMiAwLjY0NDUzMSAyMS4zNTU0NjkgMCAyMC41NjI1IDAgWiBNIDIxLjA0Mjk2OSAyMC41NjI1IEMgMjEuMDQyOTY5IDIwLjgyODEyNSAyMC44MjgxMjUgMjEuMDQyOTY5IDIwLjU2MjUgMjEuMDQyOTY5IEwgMS40Mzc1IDIxLjA0Mjk2OSBDIDEuMTcxODc1IDIxLjA0Mjk2OSAwLjk1NzAzMSAyMC44MjgxMjUgMC45NTcwMzEgMjAuNTYyNSBMIDAuOTU3MDMxIDEuNDM3NSBDIDAuOTU3MDMxIDEuMTcxODc1IDEuMTcxODc1IDAuOTU3MDMxIDEuNDM3NSAwLjk1NzAzMSBMIDIwLjU2MjUgMC45NTcwMzEgQyAyMC44MjgxMjUgMC45NTcwMzEgMjEuMDQyOTY5IDEuMTcxODc1IDIxLjA0Mjk2OSAxLjQzNzUgWiBNIDIxLjA0Mjk2OSAyMC41NjI1ICIvPgo8L3N5bWJvbD4KPCEtLSAgLS0+CjxzeW1ib2wgaWQ9ImljLWRlbGV0ZS1hbGwiIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik01IDIzSDNhMSAxIDAgMCAxLTEtMVY2aDF2MTZoMnYxem0xNi0xMGgtMVY2aDF2N3pNOSAxM0g4di0zaDF2M3ptMyAwaC0xdi0zaDF2M3ptMyAwaC0xdi0zaDF2M3pNMTQuNzk0IDMuNzk0TDEzIDJoLTNMOC4yMDYgMy43OTRBLjk2My45NjMgMCAwIDEgOCAyLjVsLjcwMy0xLjA1NUExIDEgMCAwIDEgOS41MzUgMWgzLjkzYTEgMSAwIDAgMSAuODMyLjQ0NUwxNSAyLjVhLjk2NS45NjUgMCAwIDEtLjIwNiAxLjI5NHpNMTQuMTk3IDRIOC44MDNoNS4zOTR6Ii8+CiAgICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik0wIDNoMjN2MUgwek0xMS4yODYgMjFIOC43MTRMOCAyM0g3bDEtMi44VjIwaC4wNzFMOS41IDE2aDFsMS40MjkgNEgxMnYuMmwxIDIuOGgtMWwtLjcxNC0yem0tLjM1Ny0xTDEwIDE3LjQgOS4wNzEgMjBoMS44NTh6TTIwIDIyaDN2MWgtNHYtN2gxdjZ6bS01IDBoM3YxaC00di03aDF2NnoiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLWRlbGV0ZSIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZD0iTTMgNnYxNmgxN1Y2aDF2MTZhMSAxIDAgMCAxLTEgMUgzYTEgMSAwIDAgMS0xLTFWNmgxek0xNC43OTQgMy43OTRMMTMgMmgtM0w4LjIwNiAzLjc5NEEuOTYzLjk2MyAwIDAgMSA4IDIuNWwuNzAzLTEuMDU1QTEgMSAwIDAgMSA5LjUzNSAxaDMuOTNhMSAxIDAgMCAxIC44MzIuNDQ1TDE1IDIuNWEuOTY1Ljk2NSAwIDAgMS0uMjA2IDEuMjk0ek0xNC4xOTcgNEg4LjgwM2g1LjM5NHoiLz4KICAgIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZD0iTTAgM2gyM3YxSDB6TTggMTBoMXY2SDh2LTZ6bTMgMGgxdjZoLTF2LTZ6bTMgMGgxdjZoLTF2LTZ6Ii8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1kcmF3LWZyZWUiIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9ImluaGVyaXQiIGQ9Ik0yLjUgMjAuOTI5QzIuNTk0IDEwLjk3NiA0LjMyMyA2IDcuNjg2IDZjNS44NzIgMCAyLjUyNCAxOSA3LjY5NyAxOXMxLjg5LTE0LjkyOSA2LjQxNC0xNC45MjkgMS4zNTcgMTAuODU4IDUuMTMgMTAuODU4YzEuODAyIDAgMi42NTctMi4yNjIgMi41NjYtNi43ODYiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLWRyYXctbGluZSIgdmlld0JveD0iMCAwIDMyIDMyIj4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iaW5oZXJpdCIgZD0iTTIgMTUuNWgyOCIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtZHJhdyIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iaW5oZXJpdCIgZD0iTTIuNSAyMS41SDVjLjI0NSAwIC40OC0uMDU4LjY5MS0uMTY4bC4xMjQtLjA2NS4xNC4wMWMuNDI5LjAyOC44NS0uMTI3IDEuMTYtLjQzN0wyMi41NSA1LjQwNWEuNS41IDAgMCAwIDAtLjcwN2wtMy4yNDYtMy4yNDVhLjUuNSAwIDAgMC0uNzA3IDBMMy4xNjIgMTYuODg4YTEuNDk1IDEuNDk1IDAgMCAwLS40MzcgMS4xNTVsLjAxLjE0LS4wNjUuMTIzYy0uMTExLjIxMi0uMTcuNDQ4LS4xNy42OTR2Mi41eiIvPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJpbmhlcml0IiBkPSJNMTYuNDE0IDMuNzA3bDMuODkgMy44OS0uNzA4LjcwNi0zLjg4OS0zLjg4OXoiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLWZpbHRlciIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxwYXRoIGQ9Ik0wIDBoMjR2MjRIMHoiIGZpbGw9Im5vbmUiIHN0cm9rZT0ibm9uZSIgLz4KICAgIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZD0iTTEyIDd2MUgyVjdoMTB6bTYgMGg0djFoLTRWN3pNMTIgMTZ2MWgxMHYtMUgxMnptLTYgMEgydjFoNHYtMXoiLz4KICAgIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZD0iTTguNSAyMGEzLjUgMy41IDAgMSAxIDAtNyAzLjUgMy41IDAgMCAxIDAgN3ptMC0xYTIuNSAyLjUgMCAxIDAgMC01IDIuNSAyLjUgMCAwIDAgMCA1ek0xNS41IDExYTMuNSAzLjUgMCAxIDEgMC03IDMuNSAzLjUgMCAwIDEgMCA3em0wLTFhMi41IDIuNSAwIDEgMCAwLTUgMi41IDIuNSAwIDAgMCAwIDV6Ii8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1mbGlwLXJlc2V0IiB2aWV3Qm94PSIwIDAgMzEgMzIiPgogICAgPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJub25lIiBkPSJNMzEgMEgwdjMyaDMxeiIvPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJpbmhlcml0IiBkPSJNMjggMTZhOCA4IDAgMCAxLTggOEgzdi0xaDF2LTdIM2E4IDggMCAwIDEgOC04aDE3djFoLTF2N2gxek0xMSA5YTcgNyAwIDAgMC03IDd2N2gxNmE3IDcgMCAwIDAgNy03VjlIMTF6Ii8+CiAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9ImluaGVyaXQiIHN0cm9rZS1saW5lY2FwPSJzcXVhcmUiIGQ9Ik0yNCA1bDMuNSAzLjVMMjQgMTJNNyAyMGwtMy41IDMuNUw3IDI3Ii8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1mbGlwLXgiIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9Im5vbmUiIGQ9Ik0zMiAzMkgwVjBoMzJ6Ii8+CiAgICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik0xNyAzMmgtMVYwaDF6TTI3LjE2NyAxMWwuNSAzaC0xLjAzbC0uNTQ2LTNoMS4wNzZ6bS0uNS0zaC0xLjEyMkwyNSA1aC01VjRoNS4xNTNhMSAxIDAgMCAxIC45ODYuODM2TDI2LjY2NyA4em0xLjUgOWwuNSAzaC0uOTRsLS41NDUtM2guOTg1em0xIDZsLjYzOSAzLjgzNkExIDEgMCAwIDEgMjguODE5IDI4SDI2di0xaDNsLS43MjYtNGguODk0ek0yMyAyOGgtM3YtMWgzdjF6TTEzIDR2MUg3TDMgMjdoMTB2MUgzLjE4YTEgMSAwIDAgMS0uOTg2LTEuMTY0bDMuNjY2LTIyQTEgMSAwIDAgMSA2Ljg0NyA0SDEzeiIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtZmxpcC15IiB2aWV3Qm94PSIwIDAgMzIgMzIiPgogICAgPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJub25lIiBkPSJNMCAwdjMyaDMyVjB6Ii8+CiAgICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik0wIDE2djFoMzJ2LTF6TTExIDI3LjE2N2wzIC41di0xLjAzbC0zLS41NDZ2MS4wNzZ6bS0zLS41di0xLjEyMkw1IDI1di01SDR2NS4xNTNhMSAxIDAgMCAwIC44MzYuOTg2TDggMjYuNjY3em05IDEuNWwzIC41di0uOTRsLTMtLjU0NXYuOTg1em02IDFsMy44MzYuNjM5QTEgMSAwIDAgMCAyOCAyOC44MlYyNmgtMXYzbC00LS43Mjd2Ljg5NHpNMjggMjN2LTNoLTF2M2gxek00IDEzaDFWN2wyMi00djEwaDFWMy4xOGExIDEgMCAwIDAtMS4xNjQtLjk4NmwtMjIgMy42NjdBMSAxIDAgMCAwIDQgNi44NDdWMTN6Ii8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1mbGlwIiB2aWV3Qm94PSIwIDAgMjQgMjQiPgogICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJub25lIiAvPgogICAgPHBhdGggZmlsbD0iaW5oZXJpdCIgc3Ryb2tlPSJub25lIiBkPSJNMTEgMGgxdjI0aC0xek0xOSAyMXYtMWgydi0yaDF2MmExIDEgMCAwIDEtMSAxaC0yem0tMiAwaC0zdi0xaDN2MXptNS01aC0xdi0zaDF2M3ptMC01aC0xVjhoMXYzem0wLTVoLTFWNGgtMlYzaDJhMSAxIDAgMCAxIDEgMXYyem0tNS0zdjFoLTNWM2gzek05IDN2MUgydjE2aDd2MUgyYTEgMSAwIDAgMS0xLTFWNGExIDEgMCAwIDEgMS0xaDd6Ii8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1oaXN0b3J5IiB2aWV3Qm94PSIwIDAgMjQgMjQiPgogICAgPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJub25lIiBkPSJNMCAwSDI0VjI0SDB6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNzQwIC0xNikgdHJhbnNsYXRlKDU0NyA4KSB0cmFuc2xhdGUoMTkzIDgpIi8+CiAgICA8cGF0aCBmaWxsPSJpbmhlcml0IiBzdHJva2U9Im5vbmUiIGQ9Ik0xMi41IDFDMTguMjk5IDEgMjMgNS43MDEgMjMgMTEuNVMxOC4yOTkgMjIgMTIuNSAyMmMtNS4yOSAwLTkuNjY1LTMuOTExLTEwLjM5NC04Ljk5OWgxLjAxMkMzLjgzOCAxNy41MzQgNy43NjQgMjEgMTIuNSAyMWM1LjI0NyAwIDkuNS00LjI1MyA5LjUtOS41UzE3Ljc0NyAyIDEyLjUgMkM4LjQ5IDIgNS4wNiA0LjQ4NSAzLjY2NiA4SDNoNHYxSDJWNGgxdjMuMDIyQzQuNjggMy40NjIgOC4zMDMgMSAxMi41IDF6bS41IDVsLS4wMDEgNS4yOTEgMi41MzcgMi41MzctLjcwOC43MDhMMTIuMjkyIDEySDEyVjZoMXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC03NDAgLTE2KSB0cmFuc2xhdGUoNTQ3IDgpIHRyYW5zbGF0ZSgxOTMgOCkiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLWhpc3RvcnktY2hlY2siIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgICA8ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiID4KICAgICAgICA8cGF0aCBzdHJva2U9IiM1NTU1NTUiIGQ9Ik00LjUgLTFMMS41IDIgNi41IDciIHRyYW5zZm9ybT0idHJhbnNsYXRlKC02MCAtODA0KSB0cmFuc2xhdGUoNjAgODA0KSB0cmFuc2xhdGUoMiAzKSByb3RhdGUoLTkwIDQgMykiIC8+CiAgICA8L2c+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1oaXN0b3J5LWNyb3AiIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgICA8ZyBmaWxsPSJub25lIiBzdHJva2U9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgPgogICAgICAgIDxwYXRoIGQ9Ik0wIDBIMTJWMTJIMHoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC04NCAtODA0KSB0cmFuc2xhdGUoODQgODA0KSIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM0MzQzNDMiIGQ9Ik0yIDBoMXYxMGMtLjU1MiAwLTEtLjQ0OC0xLTFWMHpNMTAgOXYzSDlWOWgxek05IDJoMXY2SDlWMnoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC04NCAtODA0KSB0cmFuc2xhdGUoODQgODA0KSIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM0MzQzNDMiIGQ9Ik0yIDlIMTJWMTBIMnpNOSAyYy41MTMgMCAuOTM2LjM4Ni45OTMuODgzTDEwIDNIM1YyaDZ6TTIgM0gwVjJoMnYxeiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTg0IC04MDQpIHRyYW5zbGF0ZSg4NCA4MDQpIi8+CiAgICA8L2c+Cjwvc3ltYm9sPgo8IS0tIFRoaXMgaWNvbiBtYWRlIGJ5IFBpeGVsIHBlcmZlY3QgZnJvbSB3d3cuZmxhdGljb24uY29tIC0tPgo8c3ltYm9sIGlkPSJpYy1oaXN0b3J5LXJlc2l6ZSIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICA8ZyBmaWxsPSJub25lIiBzdHJva2U9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgPgogICAgPHBhdGggZmlsbD0iIzQzNDM0MyIgZD0iTSA5LjQ5MjE4OCAxLjUwNzgxMiBDIDkuMzk4NDM4IDEuNDE0MDYyIDkuMjUgMS40MTQwNjIgOS4xNTYyNSAxLjUwNzgxMiBMIDUuODEyNSA0Ljg1MTU2MiBDIDUuNzE0ODQ0IDQuOTQ1MzEyIDUuNzE0ODQ0IDUuMDk3NjU2IDUuODEyNSA1LjE4NzUgQyA1Ljg1NTQ2OSA1LjIzNDM3NSA1LjkxNzk2OSA1LjI1NzgxMiA1Ljk3NjU2MiA1LjI1NzgxMiBDIDYuMDM5MDYyIDUuMjU3ODEyIDYuMTAxNTYyIDUuMjM0Mzc1IDYuMTQ4NDM4IDUuMTg3NSBMIDkuNDkyMTg4IDEuODQzNzUgQyA5LjU4NTkzOCAxLjc1IDkuNTg1OTM4IDEuNjAxNTYyIDkuNDkyMTg4IDEuNTA3ODEyIFogTSA5LjQ5MjE4OCAxLjUwNzgxMiAiLz4KICAgIDxwYXRoIGZpbGw9IiM0MzQzNDMiIGQ9Ik0gOS4zMjgxMjUgMS40MzM1OTQgQyA5LjE5NTMxMiAxLjQzMzU5NCA5LjA4NTkzOCAxLjUzOTA2MiA5LjA4NTkzOCAxLjY3MTg3NSBMIDkuMDg1OTM4IDQuNTQyOTY5IEMgOS4wODU5MzggNC42NzE4NzUgOS4xOTUzMTIgNC43ODEyNSA5LjMyODEyNSA0Ljc4MTI1IEMgOS40NjA5MzggNC43ODEyNSA5LjU2NjQwNiA0LjY3MTg3NSA5LjU2NjQwNiA0LjU0Mjk2OSBMIDkuNTY2NDA2IDEuNjcxODc1IEMgOS41NjY0MDYgMS41MzkwNjIgOS40NjA5MzggMS40MzM1OTQgOS4zMjgxMjUgMS40MzM1OTQgWiBNIDkuMzI4MTI1IDEuNDMzNTk0ICIvPgogICAgPHBhdGggZmlsbD0iIzQzNDM0MyIgZD0iTSA5LjMyODEyNSAxLjQzMzU5NCBMIDYuNDU3MDMxIDEuNDMzNTk0IEMgNi4zMjgxMjUgMS40MzM1OTQgNi4yMTg3NSAxLjUzOTA2MiA2LjIxODc1IDEuNjcxODc1IEMgNi4yMTg3NSAxLjgwNDY4OCA2LjMyODEyNSAxLjkxNDA2MiA2LjQ1NzAzMSAxLjkxNDA2MiBMIDkuMzI4MTI1IDEuOTE0MDYyIEMgOS40NjA5MzggMS45MTQwNjIgOS41NjY0MDYgMS44MDQ2ODggOS41NjY0MDYgMS42NzE4NzUgQyA5LjU2NjQwNiAxLjUzOTA2MiA5LjQ2MDkzOCAxLjQzMzU5NCA5LjMyODEyNSAxLjQzMzU5NCBaIE0gOS4zMjgxMjUgMS40MzM1OTQgIi8+CiAgICA8cGF0aCBmaWxsPSIjNDM0MzQzIiBkPSJNIDUuMTg3NSA1LjgxMjUgQyA1LjA5NzY1NiA1LjcxODc1IDQuOTQ1MzEyIDUuNzE4NzUgNC44NTE1NjIgNS44MTI1IEwgMS41MDM5MDYgOS4xNTYyNSBDIDEuNDEwMTU2IDkuMjUgMS40MTAxNTYgOS40MDIzNDQgMS41MDM5MDYgOS40OTYwOTQgQyAxLjU1NDY4OCA5LjU0Mjk2OSAxLjYxMzI4MSA5LjU2NjQwNiAxLjY3MTg3NSA5LjU2NjQwNiBDIDEuNzM0Mzc1IDkuNTY2NDA2IDEuNzk2ODc1IDkuNTQyOTY5IDEuODQzNzUgOS40OTYwOTQgTCA1LjE4NzUgNi4xNDg0MzggQyA1LjI4MTI1IDYuMDU0Njg4IDUuMjgxMjUgNS45MDIzNDQgNS4xODc1IDUuODEyNSBaIE0gNS4xODc1IDUuODEyNSAiLz4KICAgIDxwYXRoIGZpbGw9IiM0MzQzNDMiIGQ9Ik0gMS42NzE4NzUgNi4yMTg3NSBDIDEuNTM5MDYyIDYuMjE4NzUgMS40MzM1OTQgNi4zMjgxMjUgMS40MzM1OTQgNi40NTcwMzEgTCAxLjQzMzU5NCA5LjMyODEyNSBDIDEuNDMzNTk0IDkuNDYwOTM4IDEuNTM5MDYyIDkuNTY2NDA2IDEuNjcxODc1IDkuNTY2NDA2IEMgMS44MDQ2ODggOS41NjY0MDYgMS45MTQwNjIgOS40NjA5MzggMS45MTQwNjIgOS4zMjgxMjUgTCAxLjkxNDA2MiA2LjQ1NzAzMSBDIDEuOTE0MDYyIDYuMzI4MTI1IDEuODA0Njg4IDYuMjE4NzUgMS42NzE4NzUgNi4yMTg3NSBaIE0gMS42NzE4NzUgNi4yMTg3NSAiLz4KICAgIDxwYXRoIGZpbGw9IiM0MzQzNDMiIGQ9Ik0gNC41NDI5NjkgOS4wODU5MzggTCAxLjY3MTg3NSA5LjA4NTkzOCBDIDEuNTM5MDYyIDkuMDg1OTM4IDEuNDMzNTk0IDkuMTk1MzEyIDEuNDMzNTk0IDkuMzI4MTI1IEMgMS40MzM1OTQgOS40NjA5MzggMS41MzkwNjIgOS41NjY0MDYgMS42NzE4NzUgOS41NjY0MDYgTCA0LjU0Mjk2OSA5LjU2NjQwNiBDIDQuNjcxODc1IDkuNTY2NDA2IDQuNzgxMjUgOS40NjA5MzggNC43ODEyNSA5LjMyODEyNSBDIDQuNzgxMjUgOS4xOTUzMTIgNC42NzE4NzUgOS4wODU5MzggNC41NDI5NjkgOS4wODU5MzggWiBNIDQuNTQyOTY5IDkuMDg1OTM4ICIvPgogICAgPHBhdGggZmlsbD0iIzQzNDM0MyIgZD0iTSAxMC4yODEyNSAwIEwgMC43MTg3NSAwIEMgMC4zMjAzMTIgMCAwIDAuMzIwMzEyIDAgMC43MTg3NSBMIDAgMTAuMjgxMjUgQyAwIDEwLjY3OTY4OCAwLjMyMDMxMiAxMSAwLjcxODc1IDExIEwgMTAuMjgxMjUgMTEgQyAxMC42Nzk2ODggMTEgMTEgMTAuNjc5Njg4IDExIDEwLjI4MTI1IEwgMTEgMC43MTg3NSBDIDExIDAuMzIwMzEyIDEwLjY3OTY4OCAwIDEwLjI4MTI1IDAgWiBNIDEwLjUyMzQzOCAxMC4yODEyNSBDIDEwLjUyMzQzOCAxMC40MTQwNjIgMTAuNDE0MDYyIDEwLjUyMzQzOCAxMC4yODEyNSAxMC41MjM0MzggTCAwLjcxODc1IDEwLjUyMzQzOCBDIDAuNTg1OTM4IDEwLjUyMzQzOCAwLjQ3NjU2MiAxMC40MTQwNjIgMC40NzY1NjIgMTAuMjgxMjUgTCAwLjQ3NjU2MiAwLjcxODc1IEMgMC40NzY1NjIgMC41ODU5MzggMC41ODU5MzggMC40NzY1NjIgMC43MTg3NSAwLjQ3NjU2MiBMIDEwLjI4MTI1IDAuNDc2NTYyIEMgMTAuNDE0MDYyIDAuNDc2NTYyIDEwLjUyMzQzOCAwLjU4NTkzOCAxMC41MjM0MzggMC43MTg3NSBaIE0gMTAuNTIzNDM4IDEwLjI4MTI1ICIvPgogIDwvZz4KPC9zeW1ib2w+CjwhLS0gIC0tPgo8c3ltYm9sIGlkPSJpYy1oaXN0b3J5LWRyYXciIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgICA8ZyBmaWxsPSJub25lIiBzdHJva2U9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgPgogICAgICAgIDxwYXRoIGQ9Ik0wIDFIMTJWMTNIMHoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xNTYgLTgwNCkgdHJhbnNsYXRlKDE1NiA4MDMpIi8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjNDM0MzQzIiBkPSJNOS42MjIgMS41ODRsMS44MzUgMS42NTgtOC4zMSA4LjQwN0wuNSAxMi41VjExbDkuMTIyLTkuNDE2eiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTE1NiAtODA0KSB0cmFuc2xhdGUoMTU2IDgwMykiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjNDM0MzQzIiBkPSJNNy42MjggMy43NTNMMTAuMzc4IDMuNzUzIDEwLjM3OCA0LjI1MyA3LjYyOCA0LjI1M3oiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xNTYgLTgwNCkgdHJhbnNsYXRlKDE1NiA4MDMpIHJvdGF0ZSg0NSA5LjAwMyA0LjAwMykiLz4KICAgIDwvZz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLWhpc3RvcnktZmlsdGVyIiB2aWV3Qm94PSIwIDAgMjQgMjQiPgogICAgPGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiID4KICAgICAgICA8cGF0aCBkPSJNMCAwSDEyVjEySDB6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjc2IC04MDQpIHRyYW5zbGF0ZSgyNzYgODA0KSIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM0MzQzNDMiIGQ9Ik0xMiAzdjFIOVYzaDN6TTcgNEgwVjNoN3YxeiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI3NiAtODA0KSB0cmFuc2xhdGUoMjc2IDgwNCkiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjNDM0MzQzIiBkPSJNMTIgOHYxSDlWOGgzek03IDlIMFY4aDd2MXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yNzYgLTgwNCkgdHJhbnNsYXRlKDI3NiA4MDQpIG1hdHJpeCgtMSAwIDAgMSAxMiAwKSIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM0MzQzNDMiIGQ9Ik04IDFjMS4xMDUgMCAyIC44OTUgMiAycy0uODk1IDItMiAyLTItLjg5NS0yLTIgLjg5NS0yIDItMnptMCAxYy0uNTUyIDAtMSAuNDQ4LTEgMXMuNDQ4IDEgMSAxIDEtLjQ0OCAxLTEtLjQ0OC0xLTEtMXpNNCA3YzEuMTA1IDAgMiAuODk1IDIgMnMtLjg5NSAyLTIgMi0yLS44OTUtMi0yIC44OTUtMiAyLTJ6bTAgMWMtLjU1MiAwLTEgLjQ0OC0xIDFzLjQ0OCAxIDEgMSAxLS40NDggMS0xLS40NDgtMS0xLTF6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjc2IC04MDQpIHRyYW5zbGF0ZSgyNzYgODA0KSIvPgogICAgPC9nPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtaGlzdG9yeS1mbGlwIiB2aWV3Qm94PSIwIDAgMjQgMjQiPgogICAgPGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiID4KICAgICAgICA8cGF0aCBkPSJNMCAwSDEyVjEySDB6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTA4IC04MDQpIHRyYW5zbGF0ZSgxMDggODA0KSIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM0MzQzNDMiIGQ9Ik02IDBMNyAwIDcgMTIgNiAxMnpNMTEgMTBWOWgxdjEuNWMwIC4yNzYtLjIyNC41LS41LjVIMTB2LTFoMXpNNSAxdjFIMXY4aDR2MUguNWMtLjI3NiAwLS41LS4yMjQtLjUtLjV2LTljMC0uMjc2LjIyNC0uNS41LS41SDV6bTcgNXYyaC0xVjZoMXptMC0zdjJoLTFWM2gxek05IDF2MUg3VjFoMnptMi41IDBjLjI3NiAwIC41LjIyNC41LjVWMmgtMlYxaDEuNXpNOSAxMUg3di0xaDJ2MXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMDggLTgwNCkgdHJhbnNsYXRlKDEwOCA4MDQpIi8+CiAgICA8L2c+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1oaXN0b3J5LWljb24iIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgICA8ZyBmaWxsPSJub25lIiBzdHJva2U9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgPgogICAgICAgIDxwYXRoIGQ9Ik0wIDBIMTJWMTJIMHoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMDQgLTgwNCkgdHJhbnNsYXRlKDIwNCA4MDQpIi8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjNDM0MzQzIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS4xIiBkPSJNNiA5LjU2OEwyLjYwMSAxMSAyLjk3NSA3LjQ2NyAwLjUgNC44MiA0LjEzIDQuMDY4IDYgMSA3Ljg3IDQuMDY4IDExLjUgNC44MiA5LjAyNSA3LjQ2NyA5LjM5OSAxMXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMDQgLTgwNCkgdHJhbnNsYXRlKDIwNCA4MDQpIi8+CiAgICA8L2c+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1oaXN0b3J5LW1hc2siIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgICA8ZyBmaWxsPSJub25lIiBzdHJva2U9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yNTIgLTgwNCkgdHJhbnNsYXRlKDI1MiA4MDQpIj4KICAgICAgICAgICAgPHBhdGggZD0iTTAgMEgxMlYxMkgweiIvPgogICAgICAgICAgICA8Y2lyY2xlIGN4PSI2IiBjeT0iNiIgcj0iMi41IiBzdHJva2U9IiM0NDQiLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iIzQzNDM0MyIgZD0iTTExLjUgMGMuMjc2IDAgLjUuMjI0LjUuNXYxMWMwIC4yNzYtLjIyNC41LS41LjVILjVjLS4yNzYgMC0uNS0uMjI0LS41LS41Vi41QzAgLjIyNC4yMjQgMCAuNSAwaDExek0xMSAxSDF2MTBoMTBWMXoiLz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1oaXN0b3J5LXJvdGF0ZSIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxkZWZzPgogICAgICAgIDxwYXRoIGlkPSJyZm40cnlsZmZhIiBkPSJNNyAxMmMtLjMzNSAwLS42NjMtLjAyNS0uOTgzLS4wNzRDMy4xNzEgMTEuNDkyIDEgOS4yMDUgMSA2LjQ0NGMwLTEuMzYzLjUzNC0yLjYxMyAxLjQxNS0zLjU4Ii8+CiAgICAgICAgPG1hc2sgaWQ9IjZmOWduMmR5c2IiIHdpZHRoPSI2IiBoZWlnaHQ9IjkuMTM2IiB4PSIwIiB5PSIwIiBtYXNrVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94Ij4KICAgICAgICAgICAgPHVzZSB4bGluazpocmVmPSIjcmZuNHJ5bGZmYSIgc3Ryb2tlPSI0MzQzNDMiLz4KICAgICAgICA8L21hc2s+CiAgICA8L2RlZnM+CiAgICA8ZyBmaWxsPSJub25lIiBzdHJva2U9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMzIgLTgwNCkgdHJhbnNsYXRlKDEzMiA4MDQpIj4KICAgICAgICAgICAgPHBhdGggZD0iTTAgMC41SDEyVjEyLjVIMHoiLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iIzQzNDM0MyIgZD0iTTYuNSAxQzkuNTM4IDEgMTIgMy40NjIgMTIgNi41YzAgMi4zNy0xLjUgNC4zOS0zLjYgNS4xNjNsLS40MDctLjkxNkM5Ljc0NCAxMC4xMyAxMSA4LjQ2MiAxMSA2LjUgMTEgNC4wMTUgOC45ODUgMiA2LjUgMmMtLjc3NyAwLTEuNTA5LjE5Ny0yLjE0Ny41NDRMNCAxLjc1bC0uMjA1LS4wNEM0LjU5NCAxLjI1OCA1LjUxNyAxIDYuNSAxeiIvPgogICAgICAgICAgICA8dXNlIHN0cm9rZT0iIzQzNDM0MyIgc3Ryb2tlLWRhc2hhcnJheT0iMiAxLjI1IiBzdHJva2Utd2lkdGg9IjEiIG1hc2s9InVybCgjNmY5Z24yZHlzYikiIHhsaW5rOmhyZWY9IiNyZm40cnlsZmZhIi8+CiAgICAgICAgICAgIDxwYXRoIGZpbGw9IiM0MzQzNDMiIGQ9Ik00LjI3OSAwTDYgMS43NSA0LjI1IDMuNTcxIDMuNTQzIDIuODY0IDQuNTg2IDEuNzUgMy41NzIgMC43MDd6IiB0cmFuc2Zvcm09Im1hdHJpeCgtMSAwIDAgMSA5LjU0MyAwKSIvPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLWhpc3Rvcnktc2hhcGUiIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgICA8ZyBmaWxsPSJub25lIiBzdHJva2U9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgPgogICAgICAgIDxwYXRoIGQ9Ik0wIDBIMTJWMTJIMHoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xODAgLTgwNCkgdHJhbnNsYXRlKDE4MCA4MDQpIi8+CiAgICAgICAgPHBhdGggZmlsbD0iIzQzNDM0MyIgZD0iTTExLjUgNGMuMjc2IDAgLjUuMjI0LjUuNXY3YzAgLjI3Ni0uMjI0LjUtLjUuNWgtN2MtLjI3NiAwLS41LS4yMjQtLjUtLjVWOC44aDFWMTFoNlY1SDguMzQxbC0uNTY4LTFIMTEuNXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xODAgLTgwNCkgdHJhbnNsYXRlKDE4MCA4MDQpIi8+CiAgICAgICAgPHBhdGggc3Ryb2tlPSIjNDM0MzQzIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGQ9Ik00LjUgMC41TDguNSA3LjYxMSAwLjUgNy42MTF6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTgwIC04MDQpIHRyYW5zbGF0ZSgxODAgODA0KSIvPgogICAgPC9nPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtaGlzdG9yeS10ZXh0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPgogICAgPGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiID4KICAgICAgICA8cGF0aCBkPSJNMCAwSDEyVjEySDB6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjI4IC04MDQpIHRyYW5zbGF0ZSgyMjggODA0KSIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM0MzQzNDMiIGQ9Ik0yIDFoOGMuNTUyIDAgMSAuNDQ4IDEgMUgxYzAtLjU1Mi40NDgtMSAxLTF6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjI4IC04MDQpIHRyYW5zbGF0ZSgyMjggODA0KSIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM0MzQzNDMiIGQ9Ik0xIDFIMlYzSDF6TTEwIDFIMTFWM0gxMHpNNS41IDFMNi41IDEgNi41IDExIDUuNSAxMXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMjggLTgwNCkgdHJhbnNsYXRlKDIyOCA4MDQpIi8+CiAgICAgICAgPHBhdGggZmlsbD0iIzQzNDM0MyIgZD0iTTQgMTBIOFYxMUg0eiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIyOCAtODA0KSB0cmFuc2xhdGUoMjI4IDgwNCkiLz4KICAgIDwvZz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLWhpc3RvcnktbG9hZCIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxnIGZpbGw9Im5vbmUiIHN0cm9rZT0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNMCAwSDEyVjEySDB6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMzI0IC04MDUpIHRyYW5zbGF0ZSgzMjQgODA1KSIvPgogICAgICAgIDxwYXRoIGZpbGw9IiM0MzQzNDMiIGQ9Ik01IDBjLjU1MiAwIDEgLjQ0OCAxIDF2MWg1LjVjLjI3NiAwIC41LjIyNC41LjV2OGMwIC4yNzYtLjIyNC41LS41LjVILjVjLS4yNzYgMC0uNS0uMjI0LS41LS41VjFjMC0uNTUyLjQ0OC0xIDEtMWg0em0wIDFIMXY5aDEwVjNINVYxeiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTMyNCAtODA1KSB0cmFuc2xhdGUoMzI0IDgwNSkiLz4KICAgICAgICA8cGF0aCBmaWxsPSIjNDM0MzQzIiBkPSJNMSAyTDUgMiA1IDMgMSAzeiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTMyNCAtODA1KSB0cmFuc2xhdGUoMzI0IDgwNSkiLz4KICAgIDwvZz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLWhpc3RvcnktZGVsZXRlIiB2aWV3Qm94PSIwIDAgMjQgMjQiPgogICAgPGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGZpbGw9IiM0MzQzNDMiPgogICAgICAgICAgICA8cGF0aCBkPSJNMiA5aDhWMWgxdjguNWMwIC4yNzYtLjIyNC41LS41LjVoLTljLS4yNzYgMC0uNS0uMjI0LS41LS41VjFoMXY4ek0wIDBIMTJWMUgweiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTMwMCAtODA0KSB0cmFuc2xhdGUoMzAwIDgwNCkgdHJhbnNsYXRlKDAgMikiLz4KICAgICAgICAgICAgPHBhdGggZD0iTTQgM0g1VjdINHpNNyAzSDhWN0g3eiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTMwMCAtODA0KSB0cmFuc2xhdGUoMzAwIDgwNCkgdHJhbnNsYXRlKDAgMikiLz4KICAgICAgICAgICAgPHBhdGggZD0iTTQgMWg0VjBoMXYxLjVjMCAuMjc2LS4yMjQuNS0uNS41aC01Yy0uMjc2IDAtLjUtLjIyNC0uNS0uNVYwaDF2MXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0zMDAgLTgwNCkgdHJhbnNsYXRlKDMwMCA4MDQpIG1hdHJpeCgxIDAgMCAtMSAwIDIpIi8+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtaGlzdG9yeS1ncm91cCIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxnIGZpbGw9Im5vbmUiIHN0cm9rZT0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMzQ4IC04MDQpIHRyYW5zbGF0ZSgzNDggODA0KSI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0wIDBIMTJWMTJIMHoiLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iIzQzNDM0MyIgZD0iTTEgOXYyaDF2MUguNWMtLjI3NiAwLS41LS4yMjQtLjUtLjVWOWgxem0xMSAxdjEuNWMwIC4yNzYtLjIyNC41LS41LjVIOXYtMWgydi0xaDF6bS00IDF2MUg2di0xaDJ6bS0zIDB2MUgzdi0xaDJ6bTctNHYyaC0xVjdoMXpNMSA2djJIMFY2aDF6bTExLTJ2MmgtMVY0aDF6TTEgM3YySDBWM2gxem0xMC41LTNjLjI3NiAwIC41LjIyNC41LjVWM2gtMVYxaC0xVjBoMS41ek02IDB2MUg0VjBoMnptMyAwdjFIN1YwaDJ6TTAgLjVDMCAuMjI0LjIyNCAwIC41IDBIM3YxSDF2MUgwVi41ek05LjUgNGMuMjc2IDAgLjUuMjI0LjUuNXY1YzAgLjI3Ni0uMjI0LjUtLjUuNWgtNWMtLjI3NiAwLS41LS4yMjQtLjUtLjVWOC4zNTVjLjMxNy4wOTQuNjUyLjE0NSAxIC4xNDVWOWg0VjVoLS41YzAtLjM0OC0uMDUtLjY4My0uMTQ1LTFIOS41eiIvPgogICAgICAgICAgICA8Y2lyY2xlIGN4PSI1IiBjeT0iNSIgcj0iMi41IiBzdHJva2U9IiM0MzQzNDMiLz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1pY29uLWFycm93LTIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9ImluaGVyaXQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0iTTIxLjc5MyAxOC41SDIuNXYtNWgxOC45MzVsLTcuNi04aDUuODcybDEwLjUgMTAuNS0xMC41IDEwLjVoLTUuOTE0bDgtOHoiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLWljb24tYXJyb3ctMyIgdmlld0JveD0iMCAwIDMyIDMyIj4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iaW5oZXJpdCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkPSJNMjUuMjg4IDE2LjQyTDE0LjIwOCAyNy41SDYuNzkybDExLjI5MS0xMS4yOTFMNi44MjYgNC41aDcuMzgxbDExLjY2MSAxMS42NjEtLjU4LjI1OHoiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLWljb24tYXJyb3ciIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9ImluaGVyaXQiIGQ9Ik0yLjUgMTEuNXY5aDE4djUuMjkzTDMwLjI5MyAxNiAyMC41IDYuMjA3VjExLjVoLTE4eiIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtaWNvbi1idWJibGUiIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9ImluaGVyaXQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0iTTIyLjIwNyAyNC41TDE2LjUgMzAuMjA3VjI0LjVIOEE2LjUgNi41IDAgMCAxIDEuNSAxOFY5QTYuNSA2LjUgMCAwIDEgOCAyLjVoMTZBNi41IDYuNSAwIDAgMSAzMC41IDl2OWE2LjUgNi41IDAgMCAxLTYuNSA2LjVoLTEuNzkzeiIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtaWNvbi1oZWFydCIgdmlld0JveD0iMCAwIDMyIDMyIj4KICAgIDxwYXRoIGZpbGwtcnVsZT0ibm9uemVybyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJpbmhlcml0IiBkPSJNMTUuOTk2IDMwLjY3NWwxLjk4MS0xLjc5YzcuODk4LTcuMTc3IDEwLjM2NS05LjcxOCAxMi4xMzUtMTMuMDEyLjkyMi0xLjcxNiAxLjM3Ny0zLjM3IDEuMzc3LTUuMDc2IDAtNC42NS0zLjY0Ny04LjI5Ny04LjI5Ny04LjI5Ny0yLjMzIDAtNC44NiAxLjUyNy02LjgxNyAzLjgyNGwtLjM4LjQ0Ny0uMzgxLS40NDdDMTMuNjU4IDQuMDI3IDExLjEyNiAyLjUgOC43OTcgMi41IDQuMTQ3IDIuNS41IDYuMTQ3LjUgMTAuNzk3YzAgMS43MTQuNDYgMy4zNzUgMS4zODkgNS4wOTggMS43NzUgMy4yODggNC4yNiA1Ljg0MyAxMi4xMjMgMTIuOTc0bDEuOTg0IDEuODA2eiIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtaWNvbi1sb2FkIiB2aWV3Qm94PSIwIDAgMzIgMzIiPgogICAgPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJpbmhlcml0IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGQ9Ik0xNy4zMTQgMTguODY3bDEuOTUxLTIuNTMgNCA1LjE4NGgtMTdsNi41LTguODQgNC41NDkgNi4xODZ6Ii8+CiAgICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik0xOC4wMSA0YTExLjc5OCAxMS43OTggMCAwIDAgMCAxSDN2MjRoMjRWMTQuOTg2YTguNzM4IDguNzM4IDAgMCAwIDEgMFYyOWExIDEgMCAwIDEtMSAxSDNhMSAxIDAgMCAxLTEtMVY1YTEgMSAwIDAgMSAxLTFoMTUuMDF6Ii8+CiAgICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik0yNSAzaDF2OWgtMXoiLz4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iaW5oZXJpdCIgZD0iTTIyIDZsMy41LTMuNUwyOSA2Ii8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1pY29uLWxvY2F0aW9uIiB2aWV3Qm94PSIwIDAgMzIgMzIiPgogICAgPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJpbmhlcml0IiBkPSJNMTYgMzEuMjhDMjMuNjc1IDIzLjMwMiAyNy41IDE3LjE4MSAyNy41IDEzYzAtNi4zNTEtNS4xNDktMTEuNS0xMS41LTExLjVTNC41IDYuNjQ5IDQuNSAxM2MwIDQuMTgxIDMuODI1IDEwLjMwMiAxMS41IDE4LjI4eiIvPgogICAgPGNpcmNsZSBmaWxsPSJub25lIiBzdHJva2U9ImluaGVyaXQiIGN4PSIxNiIgY3k9IjEzIiByPSI0LjUiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLWljb24tcG9seWdvbiIgdmlld0JveD0iMCAwIDMyIDMyIj4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iaW5oZXJpdCIgZD0iTS41NzYgMTZMOC4yOSAyOS41aDE1LjQyTDMxLjQyNCAxNiAyMy43MSAyLjVIOC4yOUwuNTc2IDE2eiIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtaWNvbi1zdGFyLTIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9ImluaGVyaXQiIGQ9Ik0xOS40NDYgMzEuNTkybDIuMjY1LTMuMjcyIDMuOTQ2LjI1LjYzNi0zLjk0IDMuNjY1LTEuNTA1LTEuMTItMy44MzIgMi42NTUtMi45NjItMi42NTYtMi45NjIgMS4xMi0zLjgzMi0zLjY2NC0xLjUwNS0uNjM2LTMuOTQxLTMuOTQ2LjI1LTIuMjY1LTMuMjcxTDE2IDMuMDI0IDEyLjU1NCAxLjA3IDEwLjI4OSA0LjM0bC0zLjk0Ni0uMjUtLjYzNiAzLjk0MS0zLjY2NSAxLjUwNSAxLjEyIDMuODMyTC41MDggMTYuMzNsMi42NTYgMi45NjItMS4xMiAzLjgzMiAzLjY2NCAxLjUwNC42MzYgMy45NDIgMy45NDYtLjI1IDIuMjY1IDMuMjdMMTYgMjkuNjM4bDMuNDQ2IDEuOTU1eiIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtaWNvbi1zdGFyIiB2aWV3Qm94PSIwIDAgMzIgMzIiPgogICAgPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJpbmhlcml0IiBkPSJNMjUuMjkyIDI5Ljg3OGwtMS43NzUtMTAuMzQ2IDcuNTE3LTcuMzI3LTEwLjM4OC0xLjUxTDE2IDEuMjgybC00LjY0NiA5LjQxMy0xMC4zODggMS41MSA3LjUxNyA3LjMyNy0xLjc3NSAxMC4zNDZMMTYgMjQuOTkzbDkuMjkyIDQuODg1eiIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtaWNvbiIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iaW5oZXJpdCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkPSJNMTEuOTIzIDE5LjEzNkw1LjQyNCAyMmwuNzE1LTcuMDY1LTQuNzMxLTUuMjk2IDYuOTQtMS41MDNMMTEuOTIzIDJsMy41NzQgNi4xMzYgNi45NCAxLjUwMy00LjczMSA1LjI5NkwxOC40MiAyMnoiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLW1hc2stbG9hZCIgdmlld0JveD0iMCAwIDMyIDMyIj4KICAgIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0ibm9uZSIgZD0iTTAgMGgzMnYzMkgweiIvPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJpbmhlcml0IiBkPSJNMTguMDEgNGExMS43OTggMTEuNzk4IDAgMCAwIDAgMUgzdjI0aDI0VjE0Ljk4NmE4LjczOCA4LjczOCAwIDAgMCAxIDBWMjlhMSAxIDAgMCAxLTEgMUgzYTEgMSAwIDAgMS0xLTFWNWExIDEgMCAwIDEgMS0xaDE1LjAxek0xNSAyM2E2IDYgMCAxIDEgMC0xMiA2IDYgMCAwIDEgMCAxMnptMC0xYTUgNSAwIDEgMCAwLTEwIDUgNSAwIDAgMCAwIDEweiIvPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJpbmhlcml0IiBkPSJNMjUgM2gxdjloLTF6Ii8+CiAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9ImluaGVyaXQiIGQ9Ik0yMiA2bDMuNS0zLjVMMjkgNiIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtbWFzayIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjQuNSIgc3Ryb2tlPSJpbmhlcml0IiBmaWxsPSJub25lIi8+CiAgICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik0yIDFoMjBhMSAxIDAgMCAxIDEgMXYyMGExIDEgMCAwIDEtMSAxSDJhMSAxIDAgMCAxLTEtMVYyYTEgMSAwIDAgMSAxLTF6bTAgMXYyMGgyMFYySDJ6Ii8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1yZWRvIiB2aWV3Qm94PSIwIDAgMjQgMjQiPgogICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgb3BhY2l0eT0iLjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0ibm9uZSIgLz4KICAgIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZD0iTTIxIDZIOWE2IDYgMCAxIDAgMCAxMmgxMnYxSDlBNyA3IDAgMCAxIDkgNWgxMnYxeiIvPgogICAgPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJpbmhlcml0IiBzdHJva2UtbGluZWNhcD0ic3F1YXJlIiBkPSJNMTkgM2wyLjUgMi41TDE5IDgiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLXJlc2V0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPgogICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgb3BhY2l0eT0iLjUiIHN0cm9rZT0ibm9uZSIgZmlsbD0ibm9uZSIvPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJpbmhlcml0IiBkPSJNMiAxM3YtMWE3IDcgMCAwIDEgNy03aDEzdjFoLTF2NWgxdjFhNyA3IDAgMCAxLTcgN0gydi0xaDF2LTVIMnptNy03YTYgNiAwIDAgMC02IDZ2NmgxMmE2IDYgMCAwIDAgNi02VjZIOXoiLz4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iaW5oZXJpdCIgc3Ryb2tlLWxpbmVjYXA9InNxdWFyZSIgZD0iTTE5IDNsMi41IDIuNUwxOSA4TTUgMTZsLTIuNSAyLjVMNSAyMSIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtcm90YXRlLWNsb2Nrd2lzZSIgdmlld0JveD0iMCAwIDMyIDMyIj4KICAgIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZD0iTTI5IDE3aC0uOTI0YzAgNi42MjctNS4zNzMgMTItMTIgMTItNi42MjggMC0xMi01LjM3My0xMi0xMkM0LjA3NiAxMC4zOTggOS40MDcgNS4wNDEgMTYgNVY0QzguODIgNCAzIDkuODIgMyAxN3M1LjgyIDEzIDEzIDEzIDEzLTUuODIgMTMtMTN6Ii8+CiAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9ImluaGVyaXQiIHN0cm9rZS1saW5lY2FwPSJzcXVhcmUiIGQ9Ik0xNiAxLjVsNCAzLTQgMyIvPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJpbmhlcml0IiBmaWxsLXJ1bGU9Im5vbnplcm8iIGQ9Ik0xNiA0aDR2MWgtNHoiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLXJvdGF0ZS1jb3VudGVyY2xvY2t3aXNlIiB2aWV3Qm94PSIwIDAgMzIgMzIiPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBkPSJNMyAxN2guOTI0YzAgNi42MjcgNS4zNzMgMTIgMTIgMTIgNi42MjggMCAxMi01LjM3MyAxMi0xMiAwLTYuNjAyLTUuMzMxLTExLjk2LTExLjkyNC0xMlY0YzcuMTggMCAxMyA1LjgyIDEzIDEzcy01LjgyIDEzLTEzIDEzUzMgMjQuMTggMyAxN3oiLz4KICAgIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZmlsbC1ydWxlPSJub256ZXJvIiBkPSJNMTIgNGg0djFoLTR6Ii8+CiAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9ImluaGVyaXQiIHN0cm9rZS1saW5lY2FwPSJzcXVhcmUiIGQ9Ik0xNiAxLjVsLTQgMyA0IDMiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLXJvdGF0ZSIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxwYXRoIGQ9Ik0wIDBoMjR2MjRIMHoiIGZpbGw9Im5vbmUiIHN0cm9rZT0ibm9uZSIgLz4KICAgIDxwYXRoIGZpbGw9ImluaGVyaXQiIHN0cm9rZT0ibm9uZSIgZD0iTTguMzQ5IDIyLjI1NGExMC4wMDIgMTAuMDAyIDAgMCAxLTIuNzc4LTEuNzE5bC42NS0uNzZhOS4wMDIgOS4wMDIgMCAwIDAgMi40OTUgMS41NDhsLS4zNjcuOTMxem0yLjg3My43MDRsLjA3OC0uOTk3YTkgOSAwIDEgMC0uNTU3LTE3Ljg1MmwtLjE0LS45OUExMC4wNzYgMTAuMDc2IDAgMCAxIDEyLjE0NSAzYzUuNTIzIDAgMTAgNC40NzcgMTAgMTBzLTQuNDc3IDEwLTEwIDEwYy0uMzEyIDAtLjYyLS4wMTQtLjkyNC0uMDQyem0tNy41NTYtNC42NTVhOS45NDIgOS45NDIgMCAwIDEtMS4yNTMtMi45OTZsLjk3My0uMjM0YTguOTQ4IDguOTQ4IDAgMCAwIDEuMTI0IDIuNjkzbC0uODQ0LjUzN3ptLTEuNTAyLTUuOTFBOS45NDkgOS45NDkgMCAwIDEgMi44OCA5LjIzbC45MjUuMzgyYTguOTU0IDguOTU0IDAgMCAwLS42NDQgMi44NDRsLS45OTgtLjA2MnptMi4yMS01LjY4NmMuNjg3LS44NDggMS41MS0xLjU4IDIuNDM2LTIuMTY2bC41MjMuODUyYTkuMDQ4IDkuMDQ4IDAgMCAwLTIuMTg4IDEuOTVsLS43NzEtLjYzNnoiLz4KICAgIDxwYXRoIHN0cm9rZT0iaW5oZXJpdCIgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InNxdWFyZSIgZD0iTTEzIDFsLTIuNSAyLjVMMTMgNiIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtc2hhcGUtY2lyY2xlIiB2aWV3Qm94PSIwIDAgMzIgMzIiPgogICAgPGNpcmNsZSBjeD0iMTYiIGN5PSIxNiIgcj0iMTQuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJpbmhlcml0Ii8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1zaGFwZS1yZWN0YW5nbGUiIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8cmVjdCB3aWR0aD0iMjciIGhlaWdodD0iMjciIHg9IjIuNSIgeT0iMi41IiBmaWxsPSJub25lIiBzdHJva2U9ImluaGVyaXQiIHJ4PSIxIi8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1zaGFwZS10cmlhbmdsZSIgdmlld0JveD0iMCAwIDMyIDMyIj4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0iTTE2IDIuNWwxNS41IDI3SC41eiIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtc2hhcGUiIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik0xNC43MDYgOEgyMWExIDEgMCAwIDEgMSAxdjEyYTEgMSAwIDAgMS0xIDFIOWExIDEgMCAwIDEtMS0xdi00aDF2NGgxMlY5aC01LjcwNmwtLjU4OC0xeiIvPgogICAgPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJpbmhlcml0IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGQ9Ik04LjUgMS41bDcuNSAxM0gxeiIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtdGV4dC1hbGlnbi1jZW50ZXIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9Im5vbmUiIGQ9Ik0wIDBoMzJ2MzJIMHoiLz4KICAgIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZD0iTTIgNWgyOHYxSDJ6TTggMTJoMTZ2MUg4ek0yIDE5aDI4djFIMnpNOCAyNmgxNnYxSDh6Ii8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy10ZXh0LWFsaWduLWxlZnQiIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9Im5vbmUiIGQ9Ik0wIDBoMzJ2MzJIMHoiLz4KICAgIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZD0iTTIgNWgyOHYxSDJ6TTIgMTJoMTZ2MUgyek0yIDE5aDI4djFIMnpNMiAyNmgxNnYxSDJ6Ii8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy10ZXh0LWFsaWduLXJpZ2h0IiB2aWV3Qm94PSIwIDAgMzIgMzIiPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJub25lIiBkPSJNMCAwaDMydjMySDB6Ii8+CiAgICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9ImluaGVyaXQiIGQ9Ik0yIDVoMjh2MUgyek0xNCAxMmgxNnYxSDE0ek0yIDE5aDI4djFIMnpNMTQgMjZoMTZ2MUgxNHoiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLXRleHQtYm9sZCIgdmlld0JveD0iMCAwIDMyIDMyIj4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0ibm9uZSIgZD0iTTAgMGgzMnYzMkgweiIvPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJpbmhlcml0IiBkPSJNNyAyaDJ2Mkg3ek03IDI4aDJ2Mkg3eiIvPgogICAgPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJpbmhlcml0IiBzdHJva2Utd2lkdGg9IjIiIGQ9Ik05IDN2MTJoOWE2IDYgMCAxIDAgMC0xMkg5ek05IDE1djE0aDEwYTcgNyAwIDAgMCAwLTE0SDl6Ii8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy10ZXh0LWl0YWxpYyIgdmlld0JveD0iMCAwIDMyIDMyIj4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0ibm9uZSIgZD0iTTAgMGgzMnYzMkgweiIvPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJpbmhlcml0IiBkPSJNMTUgMmg1djFoLTV6TTExIDI5aDV2MWgtNXpNMTcgM2gxbC00IDI2aC0xeiIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtdGV4dC11bmRlcmxpbmUiIHZpZXdCb3g9IjAgMCAzMiAzMiI+CiAgICA8cGF0aCBzdHJva2U9Im5vbmUiIGZpbGw9Im5vbmUiIGQ9Ik0wIDBoMzJ2MzJIMHoiLz4KICAgIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZD0iTTggMnYxNGE4IDggMCAxIDAgMTYgMFYyaDF2MTRhOSA5IDAgMCAxLTE4IDBWMmgxek0zIDI5aDI2djFIM3oiLz4KICAgIDxwYXRoIHN0cm9rZT0ibm9uZSIgZmlsbD0iaW5oZXJpdCIgZD0iTTUgMmg1djFINXpNMjIgMmg1djFoLTV6Ii8+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy10ZXh0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJpbmhlcml0IiBkPSJNNCAzaDE1YTEgMSAwIDAgMSAxIDFIM2ExIDEgMCAwIDEgMS0xek0zIDRoMXYxSDN6TTE5IDRoMXYxaC0xeiIvPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJpbmhlcml0IiBkPSJNMTEgM2gxdjE4aC0xeiIvPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJpbmhlcml0IiBkPSJNMTAgMjBoM3YxaC0zeiIvPgo8L3N5bWJvbD4KPHN5bWJvbCBpZD0iaWMtdW5kbyIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxwYXRoIGQ9Ik0yNCAwSDB2MjRoMjR6IiBvcGFjaXR5PSIuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJub25lIiAvPgogICAgPHBhdGggc3Ryb2tlPSJub25lIiBmaWxsPSJpbmhlcml0IiBkPSJNMyA2aDEyYTYgNiAwIDEgMSAwIDEySDN2MWgxMmE3IDcgMCAwIDAgMC0xNEgzdjF6Ii8+CiAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9ImluaGVyaXQiIHN0cm9rZS1saW5lY2FwPSJzcXVhcmUiIGQ9Ik01IDNMMi41IDUuNSA1IDgiLz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLXpvb20taW4iIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjI5IC0yOTApIHRyYW5zbGF0ZSgyMjkgMjkwKSI+CiAgICAgICAgPGNpcmNsZSBjeD0iMTAuNSIgY3k9IjEwLjUiIHI9IjkiIHN0cm9rZT0iaW5oZXJpdCIgZmlsbD0ibm9uZSIvPgogICAgICAgIDxwYXRoIGZpbGw9ImluaGVyaXQiIGQ9Ik0xOC44MjggMTUuODI4SDE5LjgyOFYyMi44MjhIMTguODI4eiIgdHJhbnNmb3JtPSJyb3RhdGUoLTQ1IDE5LjMyOCAxOS4zMjgpIi8+CiAgICAgICAgPHBhdGggZmlsbD0iaW5oZXJpdCIgZD0iTTcgMTBIMTRWMTFIN3oiLz4KICAgICAgICA8cGF0aCBmaWxsPSJpbmhlcml0IiBkPSJNMTAgN0gxMVYxNEgxMHoiLz4KICAgIDwvZz4KPC9zeW1ib2w+CjxzeW1ib2wgaWQ9ImljLXpvb20tb3V0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPgogICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI2MyAtMjkwKSB0cmFuc2xhdGUoMjYzIDI5MCkiPgogICAgICAgIDxjaXJjbGUgY3g9IjEwLjUiIGN5PSIxMC41IiByPSI5IiBzdHJva2U9ImluaGVyaXQiIGZpbGw9Im5vbmUiLz4KICAgICAgICA8cGF0aCBmaWxsPSJpbmhlcml0IiBkPSJNMTguODI4IDE1LjgyOEgxOS44MjhWMjIuODI4SDE4LjgyOHoiIHRyYW5zZm9ybT0icm90YXRlKC00NSAxOS4zMjggMTkuMzI4KSIvPgogICAgICAgIDxwYXRoIGZpbGw9ImluaGVyaXQiIGQ9Ik03IDEwSDE0VjExSDd6Ii8+CiAgICA8L2c+Cjwvc3ltYm9sPgo8c3ltYm9sIGlkPSJpYy1oYW5kIiB2aWV3Qm94PSIwIDAgMjQgMjQiPgogICAgPGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj4KICAgICAgICA8cGF0aCBmaWxsPSJpbmhlcml0IiBmaWxsLXJ1bGU9Im5vbnplcm8iIGQ9Ik04LjY3MiAzLjM2YzEuMzI4IDAgMi4xMTQuNzggMi4yOSAxLjg2OWwuMDE0LjEwMS4wMjMuMDA2djEuMDQybC0uNjM4LS4xODVjLS4xODctLjA1NS0uMzIzLS4yMTEtLjM1NC0uMzk5TDEwIDUuNzEzYzAtLjgyNS0uNDItMS4zNTMtMS4zMjgtMS4zNTNDNy42OTUgNC4zNiA3IDUuMDQxIDcgNS43MTN2Ny45NDFjMCAuNDM5LS41MjQuNjY1LS44NDMuMzY0bC0xLjg2OC0xLjc2MWMtLjU5NS0uNTI4LTEuMzE2LS42MTctMS45MTgtLjIxNi0uNTIyLjM0OC0uNTYyIDEuMjAzLS4xOCAxLjhMNy43MzggMjJoMTEuMDEzbC4yODUtLjUxOGMxLjI0Ny0yLjMyNiAxLjg5Ny00LjI1OSAxLjk2LTUuNzg1bC4wMDQtLjIzOVY4LjAzNWMwLS42NTYtLjUtMS4xNy0xLTEuMTctLjUwMyAwLTEgLjQ1Ni0xIDEuMTcgMCAuMzMzLS4zMi41NzMtLjY0LjQ4TDE4IDguNDFWNy4zNjhsLjA4Ni4wMjYuMDQyLS4xMzZjLjI3OS0uODA1Ljk3OC0xLjMzMiAxLjczOC0xLjM4OEwyMCA1Ljg2NWMxLjA1NyAwIDIgLjk2NyAyIDIuMTd2Ny40MjNjMCAxLjkyOS0uODQ1IDQuMzUyLTIuNTIxIDcuMjktLjA5LjE1Ni0uMjU1LjI1Mi0uNDM1LjI1Mkg3LjQ3NGMtLjE2NiAwLS4zMjEtLjA4Mi0uNDE0LS4yMTlsLTUuNzA0LTguMzljLS42NTMtMS4wMTktLjU4NC0yLjQ4Ni40Ni0zLjE4MiAxLS42NjYgMi4yMTYtLjUxNiAzLjE0OC4zMUw2IDEyLjQ5NVY1LjcxM2MwLTEuMTggMS4wNTgtMi4yNjMgMi40OS0yLjM0OHoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yOTcgLTI5MCkgdHJhbnNsYXRlKDI5NyAyOTApIi8+CiAgICAgICAgPHBhdGggZmlsbD0iaW5oZXJpdCIgZmlsbC1ydWxlPSJub256ZXJvIiBkPSJNMTIuNSAxLjVjMS4zMjUgMCAyLjQxIDEuMDMyIDIuNDk1IDIuMzM2TDE1IDR2Ny4yMmgtMVY0YzAtLjgyOC0uNjcyLTEuNS0xLjUtMS41LS43OCAwLTEuNDIuNTk1LTEuNDkzIDEuMzU2TDExIDR2Ny4yMmgtMVY0YzAtMS4zOCAxLjEyLTIuNSAyLjUtMi41eiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI5NyAtMjkwKSB0cmFuc2xhdGUoMjk3IDI5MCkiLz4KICAgICAgICA8cGF0aCBmaWxsPSJpbmhlcml0IiBmaWxsLXJ1bGU9Im5vbnplcm8iIGQ9Ik0xNi41IDMuNWMxLjMyNSAwIDIuNDEgMS4wMzIgMi40OTUgMi4zMzZMMTkgNnY2LjNoLTFWNmMwLS44MjgtLjY3Mi0xLjUtMS41LTEuNS0uNzggMC0xLjQyLjU5NS0xLjQ5MyAxLjM1NkwxNSA2djIuNDRoLTFWNmMwLTEuMzggMS4xMi0yLjUgMi41LTIuNXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yOTcgLTI5MCkgdHJhbnNsYXRlKDI5NyAyOTApIi8+CiAgICA8L2c+Cjwvc3ltYm9sPgo8L2RlZnM+Cjwvc3ZnPgo="},4858:function(t){"use strict";t.exports=e},4960:function(){},6759:function(){},6272:function(){}},a={};function n(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return i[e](r,r.exports,n),r.exports}!function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}();var r={};return function(){"use strict";n.d(r,{default:function(){return Ol}});var e=n(9131),t=n.n(e),i=n(1899),a=n.n(i),s=n(6562),o=n.n(s),l=n(1734),c=n.n(l),u=n(8005),d=n.n(u),p=n(6065),f=n.n(p),A=n(4496),h=n.n(A);Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(Element.prototype.matches.call(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})
|
||
/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */,"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(e){if("Element"in e){var i="classList",n="prototype",r=e.Element[n],s=Object,l=t()(String[n])||function(){return this.replace(/^\s+|\s+$/g,"")},u=a()(Array[n])||function(e){for(var t=0,i=this.length;t<i;t++)if(t in this&&this[t]===e)return t;return-1},d=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},p=function(e,t){if(""===t)throw new d("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(t))throw new d("INVALID_CHARACTER_ERR","The token must not contain space characters.");return u.call(e,t)},f=function(e){for(var t=l.call(e.getAttribute("class")||""),i=t?t.split(/\s+/):[],a=0,n=i.length;a<n;a++)this.push(i[a]);this._updateClassName=function(){e.setAttribute("class",this.toString())}},A=f[n]=[],h=function(){return new f(this)};if(d[n]=Error[n],A.item=function(e){return this[e]||null},A.contains=function(e){return~p(this,e+"")},A.add=function(){var e,t=arguments,i=0,a=t.length,n=!1;do{e=t[i]+"",~p(this,e)||(this.push(e),n=!0)}while(++i<a);n&&this._updateClassName()},A.remove=function(){var e,t,i=arguments,a=0,n=i.length,r=!1;do{e=i[a]+"",t=p(this,e);while(~t){var s;o()(s=this).call(s,t,1),r=!0,t=p(this,e)}}while(++a<n);r&&this._updateClassName()},A.toggle=function(e,t){var i=this.contains(e),a=i?!0!==t&&"remove":!1!==t&&"add";return a&&this[a](e),!0===t||!1===t?t:!i},A.replace=function(e,t){var i,a=p(e+"");~a&&(o()(i=this).call(i,a,1,t),this._updateClassName())},A.toString=function(){return this.join(" ")},c()){var m={get:h,enumerable:!0,configurable:!0};try{c()(r,i,m)}catch(g){void 0!==g.number&&-2146823252!==g.number||(m.enumerable=!1,c()(r,i,m))}}else s[n].__defineGetter__&&r.__defineGetter__(i,h)}}(self),function(){var e=document.createElement("_");if(e.classList.add("c1","c2"),!e.classList.contains("c2")){var t=function(e){var t=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(e){var i,a=arguments.length;for(i=0;i<a;i++)e=arguments[i],t.call(this,e)}};t("add"),t("remove")}if(e.classList.toggle("c3",!1),e.classList.contains("c3")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)===!t?t:i.call(this,e)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(e,t){var i=this.toString().split(" "),n=a()(i).call(i,e+"");~n&&(i=d()(i).call(i,n),this.remove.apply(this,i),this.add(t),this.add.apply(this,d()(i).call(i,1)))}),e=null}())
|
||
/*!
|
||
* @copyright Copyright (c) 2017 IcoMoon.io
|
||
* @license Licensed under MIT license
|
||
* See https://github.com/Keyamoon/svgxuse
|
||
* @version 1.2.6
|
||
*/,function(){if("undefined"!==typeof window&&window.addEventListener){var e,t,i,a=f()(null),n=function(){clearTimeout(t),t=h()(e,100)},r=function(){},s=function(){var e;window.addEventListener("resize",n,!1),window.addEventListener("orientationchange",n,!1),window.MutationObserver?(e=new MutationObserver(n),e.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}),r=function(){try{e.disconnect(),window.removeEventListener("resize",n,!1),window.removeEventListener("orientationchange",n,!1)}catch(t){}}):(document.documentElement.addEventListener("DOMSubtreeModified",n,!1),r=function(){document.documentElement.removeEventListener("DOMSubtreeModified",n,!1),window.removeEventListener("resize",n,!1),window.removeEventListener("orientationchange",n,!1)})},o=function(e){function t(e){var t;return void 0!==e.protocol?t=e:(t=document.createElement("a"),t.href=e),t.protocol.replace(/:/g,"")+t.host}var i,a,n;return window.XMLHttpRequest&&(i=new XMLHttpRequest,a=t(location),n=t(e),i=void 0===i.withCredentials&&""!==n&&n!==a?XDomainRequest||void 0:XMLHttpRequest),i},l="http://www.w3.org/1999/xlink";e=function(){var e,t,i,n,c,u,d,p,f,A,m="",g=0;function v(){g-=1,0===g&&(r(),s())}function b(e){return function(){!0!==a[e.base]&&(e.useEl.setAttributeNS(l,"xlink:href","#"+e.hash),e.useEl.hasAttribute("href")&&e.useEl.setAttribute("href","#"+e.hash))}}function y(e){return function(){var t,i=document.body,a=document.createElement("x");e.onload=null,a.innerHTML=e.responseText,t=a.getElementsByTagName("svg")[0],t&&(t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.width=0,t.style.height=0,t.style.overflow="hidden",i.insertBefore(t,i.firstChild)),v()}}function _(e){return function(){e.onerror=null,e.ontimeout=null,v()}}for(r(),f=document.getElementsByTagName("use"),c=0;c<f.length;c+=1){try{t=f[c].getBoundingClientRect()}catch(w){t=!1}n=f[c].getAttribute("href")||f[c].getAttributeNS(l,"href")||f[c].getAttribute("xlink:href"),p=n&&n.split?n.split("#"):["",""],e=p[0],i=p[1],u=t&&0===t.left&&0===t.right&&0===t.top&&0===t.bottom,t&&0===t.width&&0===t.height&&!u?(m&&!e.length&&i&&!document.getElementById(i)&&(e=m),f[c].hasAttribute("href")&&f[c].setAttributeNS(l,"xlink:href",n),e.length&&(A=a[e],!0!==A&&h()(b({useEl:f[c],base:e,hash:i}),0),void 0===A&&(d=o(e),void 0!==d&&(A=new d,a[e]=A,A.onload=y(A),A.onerror=_(A),A.ontimeout=_(A),A.open("GET",e),A.send(),g+=1)))):u?e.length&&a[e]&&h()(b({useEl:f[c],base:e,hash:i}),0):void 0===a[e]?a[e]=!0:a[e].onload&&(a[e].abort(),delete a[e].onload,a[e]=!0)}f="",g+=1,v()},i=function(){window.removeEventListener("load",i,!1),t=h()(e,0)},"complete"!==document.readyState?window.addEventListener("load",i,!1):i()}}();var m=n(1845);function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i<t;i++)a[i]=e[i];return a}function v(e){if(m(e))return g(e)}var b=n(184),y=n(662),_=n(7172);function w(e){if("undefined"!==typeof b&&null!=y(e)||null!=e["@@iterator"])return _(e)}var C=n(711);function x(e,t){var i;if(e){if("string"===typeof e)return g(e,t);var a=C(i=Object.prototype.toString.call(e)).call(i,8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?_(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?g(e,t):void 0}}function k(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(e){return v(e)||w(e)||x(e)||k()}var S=n(7077);function I(e,t,i){return t in e?S(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),S(e,a.key,a)}}function B(e,t,i){return t&&O(e.prototype,t),i&&O(e,i),e}var L=n(4426),D=n.n(L),M=n(9406),N=n.n(M),j=n(8189),P=n.n(j),U=n(3972),F=n.n(U),R=n(2777),Q=n(961),H=n.n(Q),z=n(5695),q=n.n(z),G=n(8592),$=n.n(G),V=n(9052),Y=n.n(V),K=n(2560),W=n.n(K),X=n(2461),J=n.n(X);function Z(e){if(m(e))return e}function ee(e,t){var i=null==e?null:"undefined"!==typeof b&&y(e)||e["@@iterator"];if(null!=i){var a,n,r=[],s=!0,o=!1;try{for(i=i.call(e);!(s=(a=i.next()).done);s=!0)if(r.push(a.value),t&&r.length===t)break}catch(l){o=!0,n=l}finally{try{s||null==i["return"]||i["return"]()}finally{if(o)throw n}}return r}}function te(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ie(e,t){return Z(e)||ee(e,t)||x(e,t)||te()}var ae,ne=n(6397),re=n.n(ne),se=n(7636),oe=n.n(se),le=n(789),ce=n.n(le),ue=n(4729),de=n.n(ue),pe=n(1610),fe=n.n(pe),Ae=n(3053),he=n.n(Ae),me=["zoomIn","zoomOut","hand"],ge=["history","undo","redo","reset"],ve=["delete","deleteAll"],be=N()(ae=[]).call(ae,me,ge,ve),ye={FILTER:"filter",COLOR:"color"},_e=["rect","circle","triangle"],we={CROPZONE:"cropzone"},Ce={VINTAGE:"vintage",SEPIA2:"sepia2",REMOVE_COLOR:"removeColor",COLOR_FILTER:"colorFilter",REMOVE_WHITE:"removeWhite",BLEND_COLOR:"blendColor",BLEND:"blend"},xe=et("IMAGE_LOADER","CROPPER","FLIP","ROTATION","FREE_DRAWING","LINE","TEXT","ICON","FILTER","SHAPE","ZOOM","RESIZE"),ke={lockSkewingX:!0,lockSkewingY:!0,bringForward:!0,isRegular:!1},Te={hasRotatingPoint:!1,hasBorders:!1,lockScalingFlip:!0,lockRotation:!0,lockSkewingX:!0,lockSkewingY:!0},Se={CLEAR_OBJECTS:"clearObjects",LOAD_IMAGE:"loadImage",FLIP_IMAGE:"flip",ROTATE_IMAGE:"rotate",ADD_OBJECT:"addObject",REMOVE_OBJECT:"removeObject",APPLY_FILTER:"applyFilter",REMOVE_FILTER:"removeFilter",ADD_ICON:"addIcon",CHANGE_ICON_COLOR:"changeIconColor",ADD_SHAPE:"addShape",CHANGE_SHAPE:"changeShape",ADD_TEXT:"addText",CHANGE_TEXT:"changeText",CHANGE_TEXT_STYLE:"changeTextStyle",ADD_IMAGE_OBJECT:"addImageObject",RESIZE_CANVAS_DIMENSION:"resizeCanvasDimension",SET_OBJECT_PROPERTIES:"setObjectProperties",SET_OBJECT_POSITION:"setObjectPosition",CHANGE_SELECTION:"changeSelection",RESIZE_IMAGE:"resize"},Ie={OBJECT_ACTIVATED:"objectActivated",OBJECT_MOVED:"objectMoved",OBJECT_SCALED:"objectScaled",OBJECT_CREATED:"objectCreated",OBJECT_ROTATED:"objectRotated",OBJECT_ADDED:"objectAdded",OBJECT_MODIFIED:"objectModified",TEXT_EDITING:"textEditing",TEXT_CHANGED:"textChanged",ICON_CREATE_RESIZE:"iconCreateResize",ICON_CREATE_END:"iconCreateEnd",ADD_TEXT:"addText",ADD_OBJECT:"addObject",ADD_OBJECT_AFTER:"addObjectAfter",MOUSE_DOWN:"mousedown",MOUSE_UP:"mouseup",MOUSE_MOVE:"mousemove",REDO_STACK_CHANGED:"redoStackChanged",UNDO_STACK_CHANGED:"undoStackChanged",SELECTION_CLEARED:"selectionCleared",SELECTION_CREATED:"selectionCreated",EXECUTE_COMMAND:"executeCommand",AFTER_UNDO:"afterUndo",AFTER_REDO:"afterRedo",ZOOM_CHANGED:"zoomChanged",HAND_STARTED:"handStarted",HAND_STOPPED:"handStopped",KEY_DOWN:"keydown",KEY_UP:"keyup",INPUT_BOX_EDITING_STARTED:"inputBoxEditingStarted",INPUT_BOX_EDITING_STOPPED:"inputBoxEditingStopped",FOCUS:"focus",BLUR:"blur",IMAGE_RESIZED:"imageResized"},Ee={COLOR_PICKER_INPUT_BOX:".tui-colorpicker-palette-hex"},Oe={LOAD_IMAGE:"Load",LOAD_MASK_IMAGE:"Mask",ADD_MASK_IMAGE:"Mask",ADD_IMAGE_OBJECT:"Mask",CROP:"Crop",RESIZE:"Resize",APPLY_FILTER:"Filter",REMOVE_FILTER:"Filter",CHANGE_SHAPE:"Shape",CHANGE_ICON_COLOR:"Icon",ADD_TEXT:"Text",CHANGE_TEXT_STYLE:"Text",REMOVE_OBJECT:"Delete",CLEAR_OBJECTS:"Delete"},Be=et("NORMAL","CROPPER","FREE_DRAWING","LINE_DRAWING","TEXT","SHAPE","ICON","ZOOM","RESIZE"),Le={TEXT:"text",CROP:"crop",RESIZE:"resize",SHAPE:"shape",ZOOM:"zoom"},De={DEFAULT:"normal",ZOOM:"zoom",HAND:"hand"},Me={Z:90,Y:89,C:67,V:86,SHIFT:16,BACKSPACE:8,DEL:46,ARROW_DOWN:40,ARROW_UP:38,SPACE:32,DIGIT_0:48,DIGIT_9:57},Ne={SELECTION_STYLE:{borderColor:"red",cornerColor:"green",cornerSize:10,originX:"center",originY:"center",transparentCorners:!1}},je={addedObject:"The object is already added.",flip:"The flipX and flipY setting values are not changed.",invalidDrawingMode:"This operation is not supported in the drawing mode.",invalidParameters:"Invalid parameters.",isLock:"The executing command state is locked.",loadImage:"The background image is empty.",loadingImageFailed:"Invalid image loaded.",noActiveObject:"There is no active object.",noObject:"The object is not in canvas.",redo:"The promise of redo command is reject.",rotation:"The current angle is same the old angle.",undo:"The promise of undo command is reject.",unsupportedOperation:"Unsupported operation.",unsupportedType:"Unsupported object type."},Pe={"icon-arrow":"M40 12V0l24 24-24 24V36H0V12h40z","icon-arrow-2":"M49,32 H3 V22 h46 l-18,-18 h12 l23,23 L43,50 h-12 l18,-18 z ","icon-arrow-3":"M43.349998,27 L17.354,53 H1.949999 l25.996,-26 L1.949999,1 h15.404 L43.349998,27 z ","icon-star":"M35,54.557999 l-19.912001,10.468 l3.804,-22.172001 l-16.108,-15.7 l22.26,-3.236 L35,3.746 l9.956,20.172001 l22.26,3.236 l-16.108,15.7 l3.804,22.172001 z ","icon-star-2":"M17,31.212 l-7.194,4.08 l-4.728,-6.83 l-8.234,0.524 l-1.328,-8.226 l-7.644,-3.14 l2.338,-7.992 l-5.54,-6.18 l5.54,-6.176 l-2.338,-7.994 l7.644,-3.138 l1.328,-8.226 l8.234,0.522 l4.728,-6.83 L17,-24.312 l7.194,-4.08 l4.728,6.83 l8.234,-0.522 l1.328,8.226 l7.644,3.14 l-2.338,7.992 l5.54,6.178 l-5.54,6.178 l2.338,7.992 l-7.644,3.14 l-1.328,8.226 l-8.234,-0.524 l-4.728,6.83 z ","icon-polygon":"M3,31 L19,3 h32 l16,28 l-16,28 H19 z ","icon-location":"M24 62C8 45.503 0 32.837 0 24 0 10.745 10.745 0 24 0s24 10.745 24 24c0 8.837-8 21.503-24 38zm0-28c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10z","icon-heart":"M49.994999,91.349998 l-6.96,-6.333 C18.324001,62.606995 2.01,47.829002 2.01,29.690998 C2.01,14.912998 13.619999,3.299999 28.401001,3.299999 c8.349,0 16.362,5.859 21.594,12 c5.229,-6.141 13.242001,-12 21.591,-12 c14.778,0 26.390999,11.61 26.390999,26.390999 c0,18.138 -16.314001,32.916 -41.025002,55.374001 l-6.96,6.285 z ","icon-bubble":"M44 48L34 58V48H12C5.373 48 0 42.627 0 36V12C0 5.373 5.373 0 12 0h40c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12h-8z"},Ue={realTimeEvent:!0,min:-360,max:360,value:0},Fe={min:5,max:30,value:12},Re={realTimeEvent:!0,min:2,max:300,value:3},Qe={realTimeEvent:!0,min:10,max:100,value:50},He={tintOpacityRange:{realTimeEvent:!0,min:0,max:1,value:.7,useDecimal:!0},removewhiteDistanceRange:{realTimeEvent:!0,min:0,max:1,value:.2,useDecimal:!0},brightnessRange:{realTimeEvent:!0,min:-1,max:1,value:0,useDecimal:!0},noiseRange:{realTimeEvent:!0,min:0,max:1e3,value:100},pixelateRange:{realTimeEvent:!0,min:2,max:20,value:4},colorfilterThresholdRange:{realTimeEvent:!0,min:0,max:1,value:.2,useDecimal:!0},blurFilterRange:{value:.1}},ze={LEFT:0,TOP:0,WIDTH:.5,HEIGHT:.5},qe={realTimeEvent:!0,min:32,max:4088,value:800},Ge=2,$e="tui-image-editor-",Ve=Math.min,Ye=Math.max,Ke=!1,We=0;function Xe(e){return e.__fe_id||(We+=1,e.__fe_id=We),e.__fe_id}function Je(e){return"function"===typeof e}function Ze(e,t,i){if(t>i){var a=[i,t];t=a[0],i=a[1]}return Ye(t,Ve(e,i))}function et(){for(var e={},t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];return $()(i,(function(t){e[t]=t})),e}function tt(e,t){var i,a={},n=t.length,r=0;for(r=0;r<n;r+=1)i=t[r],a[i]=e[i];return a}function it(e){return re()(e,10)}function at(e){return e.replace(/-([a-z])/g,(function(e,t){return t.toUpperCase()}))}function nt(){return!!(window.File&&window.FileList&&window.FileReader)}function rt(e,t){var i,a,n,r;4===e.length&&(e=N()(r="".concat(e)).call(r,d()(e).call(e,1,4)));var s=re()(d()(e).call(e,1,3),16),o=re()(d()(e).call(e,3,5),16),l=re()(d()(e).call(e,5,7),16),c=t||1;return N()(i=N()(a=N()(n="rgba(".concat(s,", ")).call(n,o,", ")).call(a,l,", ")).call(i,c,")")}function st(){Ke||(Ke=!0,de()("image-editor","UA-129999381-1"))}function ot(e,t){var i=document.getElementsByTagName("head"),a=ie(i,1),n=a[0],r=document.createElement("link"),s=encodeURIComponent(e);t&&(r.id=t),r.setAttribute("rel","stylesheet"),r.setAttribute("type","text/css"),r.setAttribute("href","data:text/css;charset=UTF-8,".concat(s)),n.appendChild(r)}function lt(e){return function(t){return e.querySelector(t)}}function ct(e){var t,i,a,n=/data:(image\/.+);base64,/,r="";t=e.replace(n,(function(e,t){return r=t,""})),t=atob(t);var s=t.length;for(i=new Uint8Array(s),a=0;a<s;a+=1)i[a]=t.charCodeAt(a);return new Blob([i],{type:r})}function ut(e){return Number(e.toFixed(Ge))}function dt(e){$()(e,(function(t,i){e[i]=null}))}function pt(){var e,t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"."===i.charAt(0)?N()(t=".".concat($e).concat(a)).call(t,d()(i).call(i,1)):N()(e="".concat($e).concat(a)).call(e,i)}function ft(e,t){var i=t.originX,a=t.originY,n=e.getPointByOrigin(i,a),r=n.x,s=n.y;e.set({left:r,top:s,originX:i,originY:a}),e.setCoords()}function At(e){var t,i={};return oe()(t=J()(e)).call(t,(function(t){i[e[t]]=t})),i}function ht(e,t){e.customProps=e.customProps||{},H()(e.customProps,t)}function mt(e,t){var i={};return W()(t)&&(t=[t]),$()(t,(function(t){i[t]=e.customProps[t]})),i}function gt(e){return e.charAt(0).toUpperCase()+d()(e).call(e,1)}function vt(e,t){return a()(e).call(e,t)>=0}function bt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return fe()(e,"type")||ye.COLOR}function yt(e){var t=ce()(e),i=void 0===t?{}:t;return i.source?ye.FILTER:ye.COLOR}function _t(e){return he()(e.get("type"),_e)>=0}function wt(e){if(vt(_e,e))return"Shape";switch(e){case"i-text":return"Text";case"path":case"line":return"Draw";case"activeSelection":return"Group";default:return St(e)}}function Ct(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.useAlpha,n=void 0===a||a,r=i.mode,s=Ce.VINTAGE,o=Ce.REMOVE_COLOR,l=Ce.BLEND_COLOR,c=Ce.SEPIA2,u=Ce.COLOR_FILTER,d=Ce.REMOVE_WHITE,p=Ce.BLEND;switch(e){case s:t=c;break;case o:t=n?u:d;break;case l:t="add"===r?p:r;break;default:t=e}return St(t)}function xt(e){var t=Se.LOAD_IMAGE;return"string"===typeof e?t===e:t===e.name}function kt(e){var t,i,a,n=Se.FLIP_IMAGE,r=Se.ROTATE_IMAGE,s=Se.ADD_TEXT,o=Se.APPLY_FILTER,l=Se.REMOVE_FILTER,c=Se.CHANGE_SHAPE,u=Se.CHANGE_ICON_COLOR,p=Se.CHANGE_TEXT_STYLE,f=Se.CLEAR_OBJECTS,A=Se.ADD_IMAGE_OBJECT,h=Se.REMOVE_OBJECT,m=Se.RESIZE_IMAGE,g=e.name,v=e.args;switch(g){case n:a={name:g,detail:"reset"===v[1]?v[1]:d()(t=v[1]).call(t,4)};break;case r:a={name:g,detail:v[2]};break;case o:a={name:Oe.APPLY_FILTER,detail:Ct(v[1],v[2])};break;case l:a={name:Oe.REMOVE_FILTER,detail:"Remove"};break;case c:a={name:Oe.CHANGE_SHAPE,detail:"Change"};break;case u:a={name:Oe.CHANGE_ICON_COLOR,detail:"Change"};break;case p:a={name:Oe.CHANGE_TEXT_STYLE,detail:"Change"};break;case h:a={name:Oe.REMOVE_OBJECT,detail:v[2]};break;case f:a={name:Oe.CLEAR_OBJECTS,detail:"All"};break;case A:a={name:Oe.ADD_IMAGE_OBJECT,detail:"Add"};break;case s:a={name:Oe.ADD_TEXT};break;case m:a={name:Oe.RESIZE,detail:N()(i="".concat(~~v[1].width,"x")).call(i,~~v[1].height)};break;default:a={name:g};break}return"mask"===v[1]&&(a={name:Oe.LOAD_MASK_IMAGE,detail:"Apply"}),a}function Tt(e){return"top"===e?"bottom":"left"===e?"right":"right"===e?"left":"top"}function St(e){return e.replace(/[a-z]/,(function(e){return e.toUpperCase()}))}function It(e){var t=e.left,i=e.top,a=e.width,n=e.height,r=ze.LEFT,s=ze.TOP,o=ze.WIDTH,l=ze.HEIGHT;return t===r&&i===s&&a===o&&n===l}var Et=et("UN_IMPLEMENTATION","NO_COMPONENT_NAME"),Ot={UN_IMPLEMENTATION:"Should implement a method: ",NO_COMPONENT_NAME:"Should set a component name"},Bt={UN_IMPLEMENTATION:function(e){return Ot.UN_IMPLEMENTATION+e},NO_COMPONENT_NAME:function(){return Ot.NO_COMPONENT_NAME}},Lt={types:H()({},Et),create:function(e){e=e.toLowerCase();for(var t=Bt[e],i=arguments.length,a=new Array(i>1?i-1:0),n=1;n<i;n++)a[n-1]=arguments[n];return t.apply(void 0,a)}},Dt=Lt.create,Mt=Lt.types,Nt=function(){function e(t,i){E(this,e),this.name=t.name,this.args=i,this.execute=t.execute,this.undo=t.undo,this.executeCallback=t.executeCallback||null,this.undoCallback=t.undoCallback||null,this.undoData={}}return B(e,[{key:"execute",value:function(){throw new Error(Dt(Mt.UN_IMPLEMENTATION,"execute"))}},{key:"undo",value:function(){throw new Error(Dt(Mt.UN_IMPLEMENTATION,"undo"))}},{key:"isRedo",get:function(){return J()(this.undoData).length>0}},{key:"setUndoData",value:function(e,t,i){return t&&(e=t),i?t||(t=e):(H()(this.undoData,e),t=null),t}},{key:"setExecuteCallback",value:function(e){return this.executeCallback=e,this}},{key:"setUndoCallback",value:function(e){return this.undoCallback=e,this}}]),e}(),jt=Nt,Pt={};function Ut(e){var t=Pt[e];if(t){for(var i=arguments.length,a=new Array(i>1?i-1:0),n=1;n<i;n++)a[n-1]=arguments[n];return new jt(t,a)}return null}function Ft(e){Pt[e.name]=e}var Rt={create:Ut,register:Ft},Qt=function(){function e(){E(this,e),this._undoStack=[],this._redoStack=[],this._isLocked=!1,this._isSilent=!1}return B(e,[{key:"_invokeExecution",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.lock();var a=e.args;return a||(a=[]),e.execute.apply(e,T(a)).then((function(a){return t._isSilent||(t.pushUndoStack(e),t.fire(i?Ie.AFTER_REDO:Ie.EXECUTE_COMMAND,e)),t.unlock(),Je(e.executeCallback)&&e.executeCallback(a),a}))["catch"]((function(e){return t.unlock(),P().reject(e)}))}},{key:"_invokeUndo",value:function(e){var t=this;this.lock();var i=e.args;return i||(i=[]),e.undo.apply(e,T(i)).then((function(i){return t.pushRedoStack(e),t.fire(Ie.AFTER_UNDO,e),t.unlock(),Je(e.undoCallback)&&e.undoCallback(i),i}))["catch"]((function(e){return t.unlock(),P().reject(e)}))}},{key:"_fireRedoStackChanged",value:function(){this.fire(Ie.REDO_STACK_CHANGED,this._redoStack.length)}},{key:"_fireUndoStackChanged",value:function(){this.fire(Ie.UNDO_STACK_CHANGED,this._undoStack.length)}},{key:"lock",value:function(){this._isLocked=!0}},{key:"unlock",value:function(){this._isLocked=!1}},{key:"executeSilent",value:function(){var e=this;this._isSilent=!0;for(var t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];return this.execute.apply(this,N()(i).call(i,[this._isSilent])).then((function(){e._isSilent=!1}))}},{key:"execute",value:function(){var e=this;if(this._isLocked)return P().reject(je.isLock);for(var t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];var n=i[0];return W()(n)&&(n=Rt.create.apply(Rt,i)),this._invokeExecution(n).then((function(t){return e.clearRedoStack(),t}))}},{key:"undo",value:function(){var e,t=this._undoStack.pop(),i="";if(t&&this._isLocked&&(this.pushUndoStack(t,!0),t=null),t)this.isEmptyUndoStack()&&this._fireUndoStackChanged(),e=this._invokeUndo(t);else{var a;if(i=je.undo,this._isLocked)i=N()(a="".concat(i," Because ")).call(a,je.isLock);e=P().reject(i)}return e}},{key:"redo",value:function(){var e,t=this._redoStack.pop(),i="";if(t&&this._isLocked&&(this.pushRedoStack(t,!0),t=null),t)this.isEmptyRedoStack()&&this._fireRedoStackChanged(),e=this._invokeExecution(t,!0);else{var a;if(i=je.redo,this._isLocked)i=N()(a="".concat(i," Because ")).call(a,je.isLock);e=P().reject(i)}return e}},{key:"pushUndoStack",value:function(e,t){this._undoStack.push(e),t||this._fireUndoStackChanged()}},{key:"pushRedoStack",value:function(e,t){this._redoStack.push(e),t||this._fireRedoStackChanged()}},{key:"isEmptyRedoStack",value:function(){return 0===this._redoStack.length}},{key:"isEmptyUndoStack",value:function(){return 0===this._undoStack.length}},{key:"clearUndoStack",value:function(){this.isEmptyUndoStack()||(this._undoStack=[],this._fireUndoStackChanged())}},{key:"clearRedoStack",value:function(){this.isEmptyRedoStack()||(this._redoStack=[],this._fireRedoStackChanged())}}]),e}();Y().mixin(Qt);var Ht=Qt,zt=n(5214),qt=n.n(zt),Gt=function(e){var t,i,a,n,r,s,o,l=e.locale,c=e.biImage,u=e.commonStyle,d=e.headerStyle,p=e.loadButtonStyle,f=e.downloadButtonStyle,A=e.submenuStyle;return N()(t=N()(i=N()(a=N()(n=N()(r=N()(s=N()(o='\n <div class="tui-image-editor-main-container" style="'.concat(u,'">\n <div class="tui-image-editor-header" style="')).call(o,d,'">\n <div class="tui-image-editor-header-logo">\n <img src="')).call(s,c,'" />\n </div>\n <div class="tui-image-editor-header-buttons">\n <div style="')).call(r,p,'">\n ')).call(n,l.localize("Load"),'\n <input type="file" class="tui-image-editor-load-btn" />\n </div>\n <button class="tui-image-editor-download-btn" style="')).call(a,f,'">\n ')).call(i,l.localize("Download"),'\n </button>\n </div>\n </div>\n <div class="tui-image-editor-main">\n <div class="tui-image-editor-submenu">\n <div class="tui-image-editor-submenu-style" style="')).call(t,A,'"></div>\n </div>\n <div class="tui-image-editor-wrap">\n <div class="tui-image-editor-size-wrap">\n <div class="tui-image-editor-align-wrap">\n <div class="tui-image-editor"></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n')},$t=function(e){var t,i,a,n,r,s=e.locale,o=e.biImage,l=e.loadButtonStyle,c=e.downloadButtonStyle,u=e.menuBarPosition;return N()(t=N()(i=N()(a=N()(n=N()(r='\n <ul class="tui-image-editor-help-menu '.concat(Tt(u),'"></ul>\n <div class="tui-image-editor-controls">\n <div class="tui-image-editor-controls-logo">\n <img src="')).call(r,o,'" />\n </div>\n <ul class="tui-image-editor-menu"></ul>\n\n <div class="tui-image-editor-controls-buttons">\n <div style="')).call(n,l,'">\n ')).call(a,s.localize("Load"),'\n <input type="file" class="tui-image-editor-load-btn" />\n </div>\n <button class="tui-image-editor-download-btn" style="')).call(i,c,'">\n ')).call(t,s.localize("Download"),"\n </button>\n </div>\n </div>\n")},Vt=n(899),Yt=n.n(Vt),Kt=function(e){var t,i,a,n,r,s,o,l,c,u,d,p,f,A,h,m,g,v,b,y,_,w,C,x,k,T,S,I,E,O=e.subMenuLabelActive,B=e.subMenuLabelNormal,L=e.subMenuRangeTitle,D=e.submenuPartitionVertical,M=e.submenuPartitionHorizontal,j=e.submenuCheckbox,P=e.submenuRangePointer,U=e.submenuRangeValue,F=e.submenuColorpickerTitle,R=e.submenuColorpickerButton,Q=e.submenuRangeBar,H=e.submenuRangeSubbar,z=e.submenuDisabledRangePointer,q=e.submenuDisabledRangeBar,G=e.submenuDisabledRangeSubbar,$=e.submenuIconSize,V=e.menuIconSize,Y=e.biSize,K=e.menuIconStyle,W=e.submenuIconStyle;return N()(t=N()(i=N()(a=N()(n=N()(r=N()(s=N()(o=N()(l=N()(c=N()(u=N()(d=N()(p=N()(f=N()(A=N()(h=N()(m=N()(g=N()(v=N()(b=N()(y=N()(_=N()(w=N()(C=N()(x=N()(k=N()(T=N()(S=N()(I=N()(E='\n .tie-icon-add-button.icon-bubble .tui-image-editor-button[data-icontype="icon-bubble"] label,\n .tie-icon-add-button.icon-heart .tui-image-editor-button[data-icontype="icon-heart"] label,\n .tie-icon-add-button.icon-location .tui-image-editor-button[data-icontype="icon-location"] label,\n .tie-icon-add-button.icon-polygon .tui-image-editor-button[data-icontype="icon-polygon"] label,\n .tie-icon-add-button.icon-star .tui-image-editor-button[data-icontype="icon-star"] label,\n .tie-icon-add-button.icon-star-2 .tui-image-editor-button[data-icontype="icon-star-2"] label,\n .tie-icon-add-button.icon-arrow-3 .tui-image-editor-button[data-icontype="icon-arrow-3"] label,\n .tie-icon-add-button.icon-arrow-2 .tui-image-editor-button[data-icontype="icon-arrow-2"] label,\n .tie-icon-add-button.icon-arrow .tui-image-editor-button[data-icontype="icon-arrow"] label,\n .tie-icon-add-button.icon-bubble .tui-image-editor-button[data-icontype="icon-bubble"] label,\n .tie-draw-line-select-button.line .tui-image-editor-button.line label,\n .tie-draw-line-select-button.free .tui-image-editor-button.free label,\n .tie-flip-button.flipX .tui-image-editor-button.flipX label,\n .tie-flip-button.flipY .tui-image-editor-button.flipY label,\n .tie-flip-button.resetFlip .tui-image-editor-button.resetFlip label,\n .tie-crop-button .tui-image-editor-button.apply.active label,\n .tie-crop-preset-button .tui-image-editor-button.preset.active label,\n .tie-resize-button .tui-image-editor-button.apply.active label,\n .tie-resize-preset-button .tui-image-editor-button.preset.active label,\n .tie-shape-button.rect .tui-image-editor-button.rect label,\n .tie-shape-button.circle .tui-image-editor-button.circle label,\n .tie-shape-button.triangle .tui-image-editor-button.triangle label,\n .tie-text-effect-button .tui-image-editor-button.active label,\n .tie-text-align-button.tie-text-align-left .tui-image-editor-button.left label,\n .tie-text-align-button.tie-text-align-center .tui-image-editor-button.center label,\n .tie-text-align-button.tie-text-align-right .tui-image-editor-button.right label,\n .tie-mask-apply.apply.active .tui-image-editor-button.apply label,\n .tui-image-editor-container .tui-image-editor-submenu .tui-image-editor-button:hover > label,\n .tui-image-editor-container .tui-image-editor-checkbox label > span {\n '.concat(O,"\n }\n .tui-image-editor-container .tui-image-editor-submenu .tui-image-editor-button > label,\n .tui-image-editor-container .tui-image-editor-range-wrap.tui-image-editor-newline.short label,\n .tui-image-editor-container .tui-image-editor-range-wrap.tui-image-editor-newline.short label > span {\n ")).call(E,B,"\n }\n .tui-image-editor-container .tui-image-editor-range-wrap label > span {\n ")).call(I,L,"\n }\n .tui-image-editor-container .tui-image-editor-partition > div {\n ")).call(S,D,"\n }\n .tui-image-editor-container.left .tui-image-editor-submenu .tui-image-editor-partition > div,\n .tui-image-editor-container.right .tui-image-editor-submenu .tui-image-editor-partition > div {\n ")).call(T,M,"\n }\n .tui-image-editor-container .tui-image-editor-checkbox label > span:before {\n ")).call(k,j,"\n }\n .tui-image-editor-container .tui-image-editor-checkbox label > input:checked + span:before {\n border: 0;\n }\n .tui-image-editor-container .tui-image-editor-virtual-range-pointer {\n ")).call(x,P,"\n }\n .tui-image-editor-container .tui-image-editor-virtual-range-bar {\n ")).call(C,Q,"\n }\n .tui-image-editor-container .tui-image-editor-virtual-range-subbar {\n ")).call(w,H,"\n }\n .tui-image-editor-container .tui-image-editor-disabled .tui-image-editor-virtual-range-pointer {\n ")).call(_,z,"\n }\n .tui-image-editor-container .tui-image-editor-disabled .tui-image-editor-virtual-range-subbar {\n ")).call(y,G,"\n }\n .tui-image-editor-container .tui-image-editor-disabled .tui-image-editor-virtual-range-bar {\n ")).call(b,q,"\n }\n .tui-image-editor-container .tui-image-editor-range-value {\n ")).call(v,U,"\n }\n .tui-image-editor-container .tui-image-editor-submenu .tui-image-editor-button .color-picker-value + label {\n ")).call(g,F,"\n }\n .tui-image-editor-container .tui-image-editor-submenu .tui-image-editor-button .color-picker-value {\n ")).call(m,R,"\n }\n .tui-image-editor-container .svg_ic-menu {\n ")).call(h,V,"\n }\n .tui-image-editor-container .svg_ic-submenu {\n ")).call(A,$,"\n }\n .tui-image-editor-container .tui-image-editor-controls-logo > img,\n .tui-image-editor-container .tui-image-editor-header-logo > img {\n ")).call(f,Y,"\n }\n .tui-image-editor-menu use.normal.use-default,\n .tui-image-editor-help-menu use.normal.use-default {\n fill-rule: evenodd;\n fill: ")).call(p,K.normal.color,";\n stroke: ")).call(d,K.normal.color,";\n }\n .tui-image-editor-menu use.active.use-default,\n .tui-image-editor-help-menu use.active.use-default {\n fill-rule: evenodd;\n fill: ")).call(u,K.active.color,";\n stroke: ")).call(c,K.active.color,";\n }\n .tui-image-editor-menu use.hover.use-default,\n .tui-image-editor-help-menu use.hover.use-default {\n fill-rule: evenodd;\n fill: ")).call(l,K.hover.color,";\n stroke: ")).call(o,K.hover.color,";\n }\n .tui-image-editor-menu use.disabled.use-default,\n .tui-image-editor-help-menu use.disabled.use-default {\n fill-rule: evenodd;\n fill: ")).call(s,K.disabled.color,";\n stroke: ")).call(r,K.disabled.color,";\n }\n .tui-image-editor-submenu use.normal.use-default {\n fill-rule: evenodd;\n fill: ")).call(n,W.normal.color,";\n stroke: ")).call(a,W.normal.color,";\n }\n .tui-image-editor-submenu use.active.use-default {\n fill-rule: evenodd;\n fill: ")).call(i,W.active.color,";\n stroke: ")).call(t,W.active.color,";\n }\n")},Wt={"common.bi.image":"https://uicdn.toast.com/toastui/img/tui-image-editor-bi.png","common.bisize.width":"251px","common.bisize.height":"21px","common.backgroundImage":"none","common.backgroundColor":"#1e1e1e","common.border":"0px","header.backgroundImage":"none","header.backgroundColor":"transparent","header.border":"0px","loadButton.backgroundColor":"#fff","loadButton.border":"1px solid #ddd","loadButton.color":"#222","loadButton.fontFamily":"'Noto Sans', sans-serif","loadButton.fontSize":"12px","downloadButton.backgroundColor":"#fdba3b","downloadButton.border":"1px solid #fdba3b","downloadButton.color":"#fff","downloadButton.fontFamily":"'Noto Sans', sans-serif","downloadButton.fontSize":"12px","menu.normalIcon.color":"#8a8a8a","menu.activeIcon.color":"#555555","menu.disabledIcon.color":"#434343","menu.hoverIcon.color":"#e9e9e9","submenu.normalIcon.color":"#8a8a8a","submenu.activeIcon.color":"#e9e9e9","menu.iconSize.width":"24px","menu.iconSize.height":"24px","submenu.iconSize.width":"32px","submenu.iconSize.height":"32px","submenu.backgroundColor":"#1e1e1e","submenu.partition.color":"#3c3c3c","submenu.normalLabel.color":"#8a8a8a","submenu.normalLabel.fontWeight":"lighter","submenu.activeLabel.color":"#fff","submenu.activeLabel.fontWeight":"lighter","checkbox.border":"0px","checkbox.backgroundColor":"#fff","range.pointer.color":"#fff","range.bar.color":"#666","range.subbar.color":"#d1d1d1","range.disabledPointer.color":"#414141","range.disabledBar.color":"#282828","range.disabledSubbar.color":"#414141","range.value.color":"#fff","range.value.fontWeight":"lighter","range.value.fontSize":"11px","range.value.border":"1px solid #353535","range.value.backgroundColor":"#151515","range.title.color":"#fff","range.title.fontWeight":"lighter","colorpicker.button.border":"1px solid #1e1e1e","colorpicker.title.color":"#fff"},Xt=n(2534),Jt=function(){function e(t){E(this,e),this.styles=this._changeToObject(H()({},Wt,t)),ot(this._styleMaker()),this._loadDefaultSvgIcon()}return B(e,[{key:"getStyle",value:function(e){var t=null,i=e.replace(/\..+$/,""),a=this.styles[e];switch(e){case"common.bi":t=this.styles[e].image;break;case"menu.icon":t={active:this.styles["".concat(i,".activeIcon")],normal:this.styles["".concat(i,".normalIcon")],hover:this.styles["".concat(i,".hoverIcon")],disabled:this.styles["".concat(i,".disabledIcon")]};break;case"submenu.icon":t={active:this.styles["".concat(i,".activeIcon")],normal:this.styles["".concat(i,".normalIcon")]};break;case"submenu.label":t={active:this._makeCssText(this.styles["".concat(i,".activeLabel")]),normal:this._makeCssText(this.styles["".concat(i,".normalLabel")])};break;case"submenu.partition":t={vertical:this._makeCssText(H()({},a,{borderLeft:"1px solid ".concat(a.color)})),horizontal:this._makeCssText(H()({},a,{borderBottom:"1px solid ".concat(a.color)}))};break;case"range.disabledPointer":case"range.disabledBar":case"range.disabledSubbar":case"range.pointer":case"range.bar":case"range.subbar":a.backgroundColor=a.color,t=this._makeCssText(a);break;default:t=this._makeCssText(a);break}return t}},{key:"_styleMaker",value:function(){var e=this.getStyle("submenu.label"),t=this.getStyle("submenu.partition");return Kt({subMenuLabelActive:e.active,subMenuLabelNormal:e.normal,submenuPartitionVertical:t.vertical,submenuPartitionHorizontal:t.horizontal,biSize:this.getStyle("common.bisize"),subMenuRangeTitle:this.getStyle("range.title"),submenuRangePointer:this.getStyle("range.pointer"),submenuRangeBar:this.getStyle("range.bar"),submenuRangeSubbar:this.getStyle("range.subbar"),submenuDisabledRangePointer:this.getStyle("range.disabledPointer"),submenuDisabledRangeBar:this.getStyle("range.disabledBar"),submenuDisabledRangeSubbar:this.getStyle("range.disabledSubbar"),submenuRangeValue:this.getStyle("range.value"),submenuColorpickerTitle:this.getStyle("colorpicker.title"),submenuColorpickerButton:this.getStyle("colorpicker.button"),submenuCheckbox:this.getStyle("checkbox"),menuIconSize:this.getStyle("menu.iconSize"),submenuIconSize:this.getStyle("submenu.iconSize"),menuIconStyle:this.getStyle("menu.icon"),submenuIconStyle:this.getStyle("submenu.icon")})}},{key:"_changeToObject",value:function(e){var t={};return $()(e,(function(e,i){var a=i.match(/^(.+)\.([a-z]+)$/i),n=ie(a,3),r=n[1],s=n[2];t[r]||(t[r]={}),t[r][s]=e})),t}},{key:"_makeCssText",value:function(e){var t=this,i=[];return $()(e,(function(e,n){var r,s;a()(r=["backgroundImage"]).call(r,n)>-1&&"none"!==e&&(e="url(".concat(e,")")),i.push(N()(s="".concat(t._toUnderScore(n),": ")).call(s,e))})),i.join(";")}},{key:"_toUnderScore",value:function(e){return e.replace(/([A-Z])/g,(function(e,t){return"-".concat(t.toLowerCase())}))}},{key:"_loadDefaultSvgIcon",value:function(){if(!document.getElementById("tui-image-editor-svg-default-icons")){var e=new DOMParser,t=Xt.replace(/data:image\/svg\+xml;base64,/,""),i=e.parseFromString(atob(t),"text/xml");document.body.appendChild(i.documentElement)}}},{key:"_makeIconClassName",value:function(e,t){var i=t?this.getStyle("submenu.icon"):this.getStyle("menu.icon"),a=i[e],n=a.path,r=a.name;return n&&r?e:"".concat(e," use-default")}},{key:"_makeSvgIconPrefix",value:function(e,t){var i,a=t?this.getStyle("submenu.icon"):this.getStyle("menu.icon"),n=a[e],r=n.path,s=n.name;return r&&s?N()(i="".concat(r,"#")).call(i,s,"-"):"#"}},{key:"_makeSvgItem",value:function(e,t,i){var a=this;return Yt()(e).call(e,(function(e){var n,r,s=a._makeSvgIconPrefix(e,i),o=a._toUnderScore(t),l=a._makeIconClassName(e,i);return N()(n=N()(r='<use xlink:href="'.concat(s,"ic-")).call(r,o,'" class="')).call(n,l,'"/>')})).join("")}},{key:"makeMenSvgIconSet",value:function(e,t){var i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return N()(i='<svg class="svg_ic-'.concat(a?"submenu":"menu",'">')).call(i,this._makeSvgItem(e,t,a),"</svg>")}}]),e}(),Zt=Jt,ei=n(9146),ti=n.n(ei),ii=n(6623),ai=n(4230);function ni(e,t){return ni=ai||function(e,t){return e.__proto__=t,e},ni(e,t)}function ri(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=ii(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ni(e,t)}var si=n(3742);function oi(e){return oi="function"===typeof b&&"symbol"===typeof si?function(e){return typeof e}:function(e){return e&&"function"===typeof b&&e.constructor===b&&e!==b.prototype?"symbol":typeof e},oi(e)}function li(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ci(e,t){if(t&&("object"===oi(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return li(e)}var ui=n(9856);function di(e){return di=ai?ui:function(e){return e.__proto__||ui(e)},di(e)}var pi=n(6092),fi=n.n(pi),Ai=n(4858),hi=n.n(Ai),mi=["#000000","#2a2a2a","#545454","#7e7e7e","#a8a8a8","#d2d2d2","#ffffff","","#ff4040","#ff6518","#ffbb3b","#03bd9e","#00a9ff","#515ce6","#9e5fff","#ff5583"],gi=function(){function e(t,i){var a=i.defaultColor,n=void 0===a?"#7e7e7e":a,r=i.toggleDirection,s=void 0===r?"up":r,o=i.usageStatistics;E(this,e),this.colorpickerElement=t,this.usageStatistics=o,this._show=!1,this._colorpickerElement=t,this._toggleDirection=s,this._makePickerButtonElement(n),this._makePickerLayerElement(t,t.getAttribute("title")),this._color=n,this.picker=hi().create({container:this.pickerElement,preset:mi,color:n,usageStatistics:this.usageStatistics}),this._addEvent()}return B(e,[{key:"destroy",value:function(){var e=this;this._removeEvent(),this.picker.destroy(),this.colorpickerElement.innerHTML="",$()(this,(function(t,i){e[i]=null}))}},{key:"color",get:function(){return this._color},set:function(e){this._color=e,this._changeColorElement(e)}},{key:"_changeColorElement",value:function(e){e?(this.colorElement.classList.remove("transparent"),this.colorElement.style.backgroundColor=e):(this.colorElement.style.backgroundColor="#fff",this.colorElement.classList.add("transparent"))}},{key:"_makePickerButtonElement",value:function(e){this.colorpickerElement.classList.add("tui-image-editor-button"),this.colorElement=document.createElement("div"),this.colorElement.className="color-picker-value",e?this.colorElement.style.backgroundColor=e:this.colorElement.classList.add("transparent")}},{key:"_makePickerLayerElement",value:function(e,t){var i=document.createElement("label"),a=document.createElement("div");this.pickerControl=document.createElement("div"),this.pickerControl.className="color-picker-control",this.pickerElement=document.createElement("div"),this.pickerElement.className="color-picker",i.innerHTML=t,a.className="triangle",this.pickerControl.appendChild(this.pickerElement),this.pickerControl.appendChild(a),e.appendChild(this.pickerControl),e.appendChild(this.colorElement),e.appendChild(i)}},{key:"_addEvent",value:function(){var e,t=this;this.picker.on("selectColor",(function(e){t._changeColorElement(e.color),t._color=e.color,t.fire("change",e.color)})),this.eventHandler={pickerToggle:D()(e=this._pickerToggleEventHandler).call(e,this),pickerHide:function(){return t.hide()}},this.colorpickerElement.addEventListener("click",this.eventHandler.pickerToggle),document.body.addEventListener("click",this.eventHandler.pickerHide)}},{key:"_removeEvent",value:function(){this.colorpickerElement.removeEventListener("click",this.eventHandler.pickerToggle),document.body.removeEventListener("click",this.eventHandler.pickerHide),this.picker.off()}},{key:"_pickerToggleEventHandler",value:function(e){var t=e.target,i=t&&this._isElementInColorPickerControl(t);(!i||i&&this._isPaletteButton(t))&&(this._show=!this._show,this.pickerControl.style.display=this._show?"block":"none",this._setPickerControlPosition(),this.fire("changeShow",this)),e.stopPropagation()}},{key:"_isPaletteButton",value:function(e){return"tui-colorpicker-palette-button"===e.className}},{key:"_isElementInColorPickerControl",value:function(e){var t=e;while(t!==document.body){if(!t)break;if(t===this.pickerControl)return!0;t=t.parentNode}return!1}},{key:"hide",value:function(){this._show=!1,this.pickerControl.style.display="none"}},{key:"_setPickerControlPosition",value:function(){var e=this.pickerControl.style,t=this._colorpickerElement.clientWidth/2+2,i=this.pickerControl.offsetWidth/2-t,a=-1*(this.pickerControl.offsetHeight+10);"down"===this._toggleDirection&&(a=30),e.top="".concat(a,"px"),e.left="-".concat(i,"px")}}]),e}();Y().mixin(gi);var vi=gi,bi=/(-?)([0-9]*)[^0-9]*([0-9]*)/g,yi=function(){function e(t){var i,a,n,r,s,o,l,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};E(this,e),this._value=c.value||0,this.rangeElement=t.slider,this.rangeInputElement=t.input,this._drawRangeElement(),this.rangeWidth=this._getRangeWidth(),this._min=c.min||0,this._max=c.max||100,this._useDecimal=c.useDecimal,this._absMax=-1*this._min+this._max,this.realTimeEvent=c.realTimeEvent||!1,this._userInputTimer=null,this.eventHandler={startChangingSlide:D()(i=this._startChangingSlide).call(i,this),stopChangingSlide:D()(a=this._stopChangingSlide).call(a,this),changeSlide:D()(n=this._changeSlide).call(n,this),changeSlideFinally:D()(r=this._changeSlideFinally).call(r,this),changeInput:D()(s=this._changeInput).call(s,this),changeInputFinally:D()(o=this._changeValueWithInput).call(o,this,!0),changeInputWithArrow:D()(l=this._changeValueWithInputKeyEvent).call(l,this)},this._addClickEvent(),this._addDragEvent(),this._addInputEvent(),this.value=c.value,this.trigger("change")}return B(e,[{key:"destroy",value:function(){var e=this;this._removeClickEvent(),this._removeDragEvent(),this._removeInputEvent(),this.rangeElement.innerHTML="",$()(this,(function(t,i){e[i]=null}))}},{key:"max",get:function(){return this._max},set:function(e){this._max=e,this._absMax=-1*this._min+this._max,this.value=this._value}},{key:"min",get:function(){return this._min},set:function(e){this._min=e,this.max=this._max}},{key:"value",get:function(){return this._value},set:function(e){e=this._useDecimal?e:it(e);var t=e-this._min,i=t*this.rangeWidth/this._absMax;this.rangeWidth<i&&(i=this.rangeWidth),this.pointer.style.left="".concat(i,"px"),this.subbar.style.right="".concat(this.rangeWidth-i,"px"),this._value=e,this.rangeInputElement&&(this.rangeInputElement.value=e)}},{key:"trigger",value:function(e){this.fire(e,this._value)}},{key:"_getRangeWidth",value:function(){var e=function(e){return it(window.getComputedStyle(e,null).width)};return e(this.rangeElement)-e(this.pointer)}},{key:"_drawRangeElement",value:function(){this.rangeElement.classList.add("tui-image-editor-range"),this.bar=document.createElement("div"),this.bar.className="tui-image-editor-virtual-range-bar",this.subbar=document.createElement("div"),this.subbar.className="tui-image-editor-virtual-range-subbar",this.pointer=document.createElement("div"),this.pointer.className="tui-image-editor-virtual-range-pointer",this.bar.appendChild(this.subbar),this.bar.appendChild(this.pointer),this.rangeElement.appendChild(this.bar)}},{key:"_addInputEvent",value:function(){this.rangeInputElement&&(this.rangeInputElement.addEventListener("keydown",this.eventHandler.changeInputWithArrow),this.rangeInputElement.addEventListener("keydown",this.eventHandler.changeInput),this.rangeInputElement.addEventListener("blur",this.eventHandler.changeInputFinally))}},{key:"_removeInputEvent",value:function(){this.rangeInputElement&&(this.rangeInputElement.removeEventListener("keydown",this.eventHandler.changeInputWithArrow),this.rangeInputElement.removeEventListener("keydown",this.eventHandler.changeInput),this.rangeInputElement.removeEventListener("blur",this.eventHandler.changeInputFinally))}},{key:"_changeValueWithInputKeyEvent",value:function(e){var t,i=e.keyCode,n=e.target;if(!(a()(t=[Me.ARROW_UP,Me.ARROW_DOWN]).call(t,i)<0)){var r=Number(n.value);r=this._valueUpDownForKeyEvent(r,i);var s=r<this._min||r>this._max;if(!s){var o=Ze(r,this._min,this.max);this.value=o,this.fire("change",o,!1)}}}},{key:"_valueUpDownForKeyEvent",value:function(e,t){var i=this._useDecimal?.1:1;return t===Me.ARROW_UP?e+=i:t===Me.ARROW_DOWN&&(e-=i),e}},{key:"_changeInput",value:function(e){var t=this;clearTimeout(this._userInputTimer);var i=e.keyCode;i<Me.DIGIT_0||i>Me.DIGIT_9?e.preventDefault():this._userInputTimer=h()((function(){t._inputSetValue(e.target.value)}),350)}},{key:"_inputSetValue",value:function(e){var t=this._useDecimal?Number(e):it(e);t=Ze(t,this._min,this.max),this.value=t,this.fire("change",t,!0)}},{key:"_changeValueWithInput",value:function(e,t){var i,n=t.keyCode,r=t.target;if(!(a()(i=[Me.ARROW_UP,Me.ARROW_DOWN]).call(i,n)>=0)){var s=this._filterForInputText(r.value),o=!s||isNaN(s);r.value=s,o||this._inputSetValue(s)}}},{key:"_addClickEvent",value:function(){this.rangeElement.addEventListener("click",this.eventHandler.changeSlideFinally)}},{key:"_removeClickEvent",value:function(){this.rangeElement.removeEventListener("click",this.eventHandler.changeSlideFinally)}},{key:"_addDragEvent",value:function(){this.pointer.addEventListener("mousedown",this.eventHandler.startChangingSlide)}},{key:"_removeDragEvent",value:function(){this.pointer.removeEventListener("mousedown",this.eventHandler.startChangingSlide)}},{key:"_changeSlide",value:function(e){var t=e.screenX,i=t-this.firstPosition,a=this.firstLeft+i;a=a>this.rangeWidth?this.rangeWidth:a,a=a<0?0:a,this.pointer.style.left="".concat(a,"px"),this.subbar.style.right="".concat(this.rangeWidth-a,"px");var n=a/this.rangeWidth,r=this._absMax*n+this._min,s=this._useDecimal?r:it(r),o=this.value!==s;o&&(this.value=s,this.realTimeEvent&&this.fire("change",this._value,!1))}},{key:"_changeSlideFinally",value:function(e){if(e.stopPropagation(),"tui-image-editor-range"===e.target.className){var t=e.offsetX,i=t/this.rangeWidth,a=this._absMax*i+this._min;this.pointer.style.left="".concat(i*this.rangeWidth,"px"),this.subbar.style.right="".concat((1-i)*this.rangeWidth,"px"),this.value=a,this.fire("change",a,!0)}}},{key:"_startChangingSlide",value:function(e){this.firstPosition=e.screenX,this.firstLeft=it(this.pointer.style.left)||0,document.addEventListener("mousemove",this.eventHandler.changeSlide),document.addEventListener("mouseup",this.eventHandler.stopChangingSlide)}},{key:"_stopChangingSlide",value:function(){this.fire("change",this._value,!0),document.removeEventListener("mousemove",this.eventHandler.changeSlide),document.removeEventListener("mouseup",this.eventHandler.stopChangingSlide)}},{key:"_filterForInputText",value:function(e){return e.replace(bi,"$1$2$3")}}]),e}();Y().mixin(yi);var _i=yi,wi=function(){function e(t,i){var a=i.locale,n=i.name,r=i.makeSvgIcon,s=i.menuBarPosition,o=i.templateHtml,l=i.usageStatistics;E(this,e),this.subMenuElement=t,this.menuBarPosition=s,this.toggleDirection="top"===s?"down":"up",this.colorPickerControls=[],this.usageStatistics=l,this.eventHandler={},this._makeSubMenuElement({locale:a,name:n,makeSvgIcon:r,templateHtml:o})}return B(e,[{key:"selector",value:function(e){return this.subMenuElement.querySelector(e)}},{key:"colorPickerChangeShow",value:function(e){var t;oe()(t=this.colorPickerControls).call(t,(function(t){e!==t&&t.hide()}))}},{key:"getButtonType",value:function(e,t){return e.className.match(RegExp("(".concat(t.join("|"),")")))[0]}},{key:"changeClass",value:function(e,t,i){e.classList.remove(t),e.classList.add(i)}},{key:"changeStandbyMode",value:function(){}},{key:"changeStartMode",value:function(){}},{key:"_makeSubMenuElement",value:function(e){var t=e.locale,i=e.name,a=e.iconStyle,n=e.makeSvgIcon,r=e.templateHtml,s=document.createElement("div");s.className="tui-image-editor-menu-".concat(i),s.innerHTML=r({locale:t,iconStyle:a,makeSvgIcon:n}),this.subMenuElement.appendChild(s)}},{key:"_onStartEditingInputBox",value:function(){this.fire(Ie.INPUT_BOX_EDITING_STARTED)}},{key:"_onStopEditingInputBox",value:function(){this.fire(Ie.INPUT_BOX_EDITING_STOPPED)}}]),e}();Y().mixin(wi);var Ci=wi,xi=function(e){var t,i,a,n,r,s,o,l,c=e.locale,u=e.makeSvgIcon;return N()(t=N()(i=N()(a=N()(n=N()(r=N()(s=N()(o=N()(l='\n <ul class="tui-image-editor-submenu-item">\n <li class="tie-shape-button">\n <div class="tui-image-editor-button rect">\n <div>\n '.concat(u(["normal","active"],"shape-rectangle",!0),"\n </div>\n <label> ")).call(l,c.localize("Rectangle"),' </label>\n </div>\n <div class="tui-image-editor-button circle">\n <div>\n ')).call(o,u(["normal","active"],"shape-circle",!0),"\n </div>\n <label> ")).call(s,c.localize("Circle"),' </label>\n </div>\n <div class="tui-image-editor-button triangle">\n <div>\n ')).call(r,u(["normal","active"],"shape-triangle",!0),"\n </div>\n <label> ")).call(n,c.localize("Triangle"),' </label>\n </div>\n </li>\n <li class="tui-image-editor-partition">\n <div></div>\n </li>\n <li class="tie-shape-color-button">\n <div class="tie-color-fill" title="')).call(a,c.localize("Fill"),'"></div>\n <div class="tie-color-stroke" title="')).call(i,c.localize("Stroke"),'"></div>\n </li>\n <li class="tui-image-editor-partition only-left-right">\n <div></div>\n </li>\n <li class="tui-image-editor-newline tui-image-editor-range-wrap">\n <label class="range">')).call(t,c.localize("Stroke"),'</label>\n <div class="tie-stroke-range"></div>\n <input class="tie-stroke-range-value tui-image-editor-range-value" value="0" />\n </li>\n </ul>\n')};function ki(e){var t=Ti();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function Ti(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var Si={stroke:"#ffbb3b",fill:"",strokeWidth:3},Ii=function(e){ri(i,e);var t=ki(i);function i(e,a){var n,r=a.locale,s=a.makeSvgIcon,o=a.menuBarPosition,l=a.usageStatistics;return E(this,i),n=t.call(this,e,{locale:r,name:"shape",makeSvgIcon:s,menuBarPosition:o,templateHtml:xi,usageStatistics:l}),n.type=null,n.options=Si,n._els={shapeSelectButton:n.selector(".tie-shape-button"),shapeColorButton:n.selector(".tie-shape-color-button"),strokeRange:new _i({slider:n.selector(".tie-stroke-range"),input:n.selector(".tie-stroke-range-value")},Re),fillColorpicker:new vi(n.selector(".tie-color-fill"),{defaultColor:"",toggleDirection:n.toggleDirection,usageStatistics:n.usageStatistics}),strokeColorpicker:new vi(n.selector(".tie-color-stroke"),{defaultColor:"#ffbb3b",toggleDirection:n.toggleDirection,usageStatistics:n.usageStatistics})},n.colorPickerControls.push(n._els.fillColorpicker),n.colorPickerControls.push(n._els.strokeColorpicker),n.colorPickerInputBoxes=[],n.colorPickerInputBoxes.push(n._els.fillColorpicker.colorpickerElement.querySelector(Ee.COLOR_PICKER_INPUT_BOX)),n.colorPickerInputBoxes.push(n._els.strokeColorpicker.colorpickerElement.querySelector(Ee.COLOR_PICKER_INPUT_BOX)),n}return B(i,[{key:"destroy",value:function(){this._removeEvent(),this._els.strokeRange.destroy(),this._els.fillColorpicker.destroy(),this._els.strokeColorpicker.destroy(),dt(this)}},{key:"addEvent",value:function(e){var t,i,a,n,r,s,o=this;this.eventHandler.shapeTypeSelected=D()(t=this._changeShapeHandler).call(t,this),this.actions=e,this._els.shapeSelectButton.addEventListener("click",this.eventHandler.shapeTypeSelected),this._els.strokeRange.on("change",D()(i=this._changeStrokeRangeHandler).call(i,this)),this._els.fillColorpicker.on("change",D()(a=this._changeFillColorHandler).call(a,this)),this._els.strokeColorpicker.on("change",D()(n=this._changeStrokeColorHandler).call(n,this)),this._els.fillColorpicker.on("changeShow",D()(r=this.colorPickerChangeShow).call(r,this)),this._els.strokeColorpicker.on("changeShow",D()(s=this.colorPickerChangeShow).call(s,this)),fi()(this.colorPickerInputBoxes,(function(e){var t,i;e.addEventListener(Ie.FOCUS,D()(t=o._onStartEditingInputBox).call(t,o)),e.addEventListener(Ie.BLUR,D()(i=o._onStopEditingInputBox).call(i,o))}),this)}},{key:"_removeEvent",value:function(){var e=this;this._els.shapeSelectButton.removeEventListener("click",this.eventHandler.shapeTypeSelected),this._els.strokeRange.off(),this._els.fillColorpicker.off(),this._els.strokeColorpicker.off(),fi()(this.colorPickerInputBoxes,(function(t){var i,a;t.removeEventListener(Ie.FOCUS,D()(i=e._onStartEditingInputBox).call(i,e)),t.removeEventListener(Ie.BLUR,D()(a=e._onStopEditingInputBox).call(a,e))}),this)}},{key:"setShapeStatus",value:function(e){var t=e.strokeWidth,i=e.strokeColor,a=e.fillColor;this._els.strokeRange.value=t,this._els.strokeColorpicker.color=i,this._els.fillColorpicker.color=a,this.options.stroke=i,this.options.fill=a,this.options.strokeWidth=t,this.actions.setDrawingShape(this.type,{strokeWidth:t})}},{key:"changeStartMode",value:function(){this.actions.stopDrawingMode()}},{key:"changeStandbyMode",value:function(){this.type=null,this.actions.changeSelectableAll(!0),this._els.shapeSelectButton.classList.remove("circle"),this._els.shapeSelectButton.classList.remove("triangle"),this._els.shapeSelectButton.classList.remove("rect")}},{key:"setMaxStrokeValue",value:function(e){var t=e;t<=0&&(t=Re.max),this._els.strokeRange.max=t}},{key:"setStrokeValue",value:function(e){this._els.strokeRange.value=e,this._els.strokeRange.trigger("change")}},{key:"getStrokeValue",value:function(){return this._els.strokeRange.value}},{key:"_changeShapeHandler",value:function(e){var t=e.target.closest(".tui-image-editor-button");if(t){this.actions.stopDrawingMode(),this.actions.discardSelection();var i=this.getButtonType(t,["circle","triangle","rect"]);if(this.type===i)return void this.changeStandbyMode();this.changeStandbyMode(),this.type=i,e.currentTarget.classList.add(i),this.actions.changeSelectableAll(!1),this.actions.modeChange("shape")}}},{key:"_changeStrokeRangeHandler",value:function(e,t){this.options.strokeWidth=it(e),this.actions.changeShape({strokeWidth:e},!t),this.actions.setDrawingShape(this.type,this.options)}},{key:"_changeFillColorHandler",value:function(e){e=e||"transparent",this.options.fill=e,this.actions.changeShape({fill:e})}},{key:"_changeStrokeColorHandler",value:function(e){e=e||"transparent",this.options.stroke=e,this.actions.changeShape({stroke:e})}}]),i}(Ci),Ei=Ii,Oi=function(e){var t,i,a,n,r,s,o,l,c,u,d,p,f,A,h,m,g,v=e.locale,b=e.makeSvgIcon;return N()(t=N()(i=N()(a=N()(n=N()(r=N()(s=N()(o=N()(l=N()(c=N()(u=N()(d=N()(p=N()(f=N()(A=N()(h=N()(m=N()(g='\n <ul class="tui-image-editor-submenu-item">\n <li class="tie-crop-preset-button">\n <div class="tui-image-editor-button preset preset-none active">\n <div>\n '.concat(b(["normal","active"],"shape-rectangle",!0),"\n </div>\n <label> ")).call(g,v.localize("Custom"),' </label>\n </div>\n <div class="tui-image-editor-button preset preset-square">\n <div>\n ')).call(m,b(["normal","active"],"crop",!0),"\n </div>\n <label> ")).call(h,v.localize("Square"),' </label>\n </div>\n <div class="tui-image-editor-button preset preset-3-2">\n <div>\n ')).call(A,b(["normal","active"],"crop",!0),"\n </div>\n <label> ")).call(f,v.localize("3:2"),' </label>\n </div>\n <div class="tui-image-editor-button preset preset-4-3">\n <div>\n ')).call(p,b(["normal","active"],"crop",!0),"\n </div>\n <label> ")).call(d,v.localize("4:3"),' </label>\n </div>\n <div class="tui-image-editor-button preset preset-5-4">\n <div>\n ')).call(u,b(["normal","active"],"crop",!0),"\n </div>\n <label> ")).call(c,v.localize("5:4"),' </label>\n </div>\n <div class="tui-image-editor-button preset preset-7-5">\n <div>\n ')).call(l,b(["normal","active"],"crop",!0),"\n </div>\n <label> ")).call(o,v.localize("7:5"),' </label>\n </div>\n <div class="tui-image-editor-button preset preset-16-9">\n <div>\n ')).call(s,b(["normal","active"],"crop",!0),"\n </div>\n <label> ")).call(r,v.localize("16:9"),' </label>\n </div>\n </li>\n <li class="tui-image-editor-partition tui-image-editor-newline">\n </li>\n <li class="tui-image-editor-partition only-left-right">\n <div></div>\n </li>\n <li class="tie-crop-button action">\n <div class="tui-image-editor-button apply">\n ')).call(n,b(["normal","active"],"apply"),"\n <label>\n ")).call(a,v.localize("Apply"),'\n </label>\n </div>\n <div class="tui-image-editor-button cancel">\n ')).call(i,b(["normal","active"],"cancel"),"\n <label>\n ")).call(t,v.localize("Cancel"),"\n </label>\n </div>\n </li>\n </ul>\n")};function Bi(e){var t=Li();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function Li(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var Di=function(e){ri(i,e);var t=Bi(i);function i(e,a){var n,r=a.locale,s=a.makeSvgIcon,o=a.menuBarPosition,l=a.usageStatistics;return E(this,i),n=t.call(this,e,{locale:r,name:"crop",makeSvgIcon:s,menuBarPosition:o,templateHtml:Oi,usageStatistics:l}),n.status="active",n._els={apply:n.selector(".tie-crop-button .apply"),cancel:n.selector(".tie-crop-button .cancel"),preset:n.selector(".tie-crop-preset-button")},n.defaultPresetButton=n._els.preset.querySelector(".preset-none"),n}return B(i,[{key:"destroy",value:function(){this._removeEvent(),dt(this)}},{key:"addEvent",value:function(e){var t,i,a,n=D()(t=this._applyEventHandler).call(t,this),r=D()(i=this._cancelEventHandler).call(i,this),s=D()(a=this._cropzonePresetEventHandler).call(a,this);this.eventHandler={apply:n,cancel:r,cropzonePreset:s},this.actions=e,this._els.apply.addEventListener("click",n),this._els.cancel.addEventListener("click",r),this._els.preset.addEventListener("click",s)}},{key:"_removeEvent",value:function(){this._els.apply.removeEventListener("click",this.eventHandler.apply),this._els.cancel.removeEventListener("click",this.eventHandler.cancel),this._els.preset.removeEventListener("click",this.eventHandler.cropzonePreset)}},{key:"_applyEventHandler",value:function(){this.actions.crop(),this._els.apply.classList.remove("active")}},{key:"_cancelEventHandler",value:function(){this.actions.cancel(),this._els.apply.classList.remove("active")}},{key:"_cropzonePresetEventHandler",value:function(e){var t=e.target.closest(".tui-image-editor-button.preset");if(t){var i=t.className.match(/preset-[^\s]+/),a=ie(i,1),n=a[0];this._setPresetButtonActive(t),this.actions.preset(n)}}},{key:"changeStartMode",value:function(){this.actions.modeChange("crop")}},{key:"changeStandbyMode",value:function(){this.actions.stopDrawingMode(),this._setPresetButtonActive()}},{key:"changeApplyButtonStatus",value:function(e){e?this._els.apply.classList.add("active"):this._els.apply.classList.remove("active")}},{key:"_setPresetButtonActive",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.defaultPresetButton;$()(this._els.preset.querySelectorAll(".preset"),(function(e){e.classList.remove("active")})),e&&e.classList.add("active")}}]),i}(Ci),Mi=Di,Ni=function(e){var t,i,a,n,r,s,o=e.locale,l=e.makeSvgIcon;return N()(t=N()(i=N()(a=N()(n=N()(r=N()(s='\n <ul class="tui-image-editor-submenu-item">\n <li class="tui-image-editor-submenu-align">\n <div class="tui-image-editor-range-wrap tui-image-editor-newline">\n <label class="range">'.concat(o.localize("Width"),' </label>\n <div class="tie-width-range"></div>\n <input class="tie-width-range-value tui-image-editor-range-value" value="0" /> <label>px</label>\n <div class="tui-image-editor-partition tui-image-editor-newline"></div>\n <label class="range">')).call(s,o.localize("Height"),'</label>\n <div class="tie-height-range"></div>\n <input class="tie-height-range-value tui-image-editor-range-value" value="0" /> <label>px</label>\n </div>\n </li>\n <li class="tui-image-editor-partition tui-image-editor-newline"></li>\n <li class="tui-image-editor-partition only-left-right">\n <div></div>\n </li>\n <li class="tui-image-editor-submenu-align">\n <div class="tui-image-editor-checkbox-wrap">\n <div class="tui-image-editor-checkbox">\n <label>\n <input type="checkbox" class="tie-lock-aspect-ratio">\n <span>')).call(r,o.localize("Lock Aspect Ratio"),'</span>\n </label>\n </div>\n </div>\n </li>\n <li class="tui-image-editor-partition tui-image-editor-newline"></li>\n <li class="tui-image-editor-partition only-left-right">\n <div></div>\n </li>\n <li class="tui-image-editor-partition tui-image-editor-newline"></li>\n <li class="tie-resize-button action">\n <div class="tui-image-editor-button apply">\n ')).call(n,l(["normal","active"],"apply"),"\n <label>\n ")).call(a,o.localize("Apply"),'\n </label>\n </div>\n <div class="tui-image-editor-button cancel">\n ')).call(i,l(["normal","active"],"cancel"),"\n <label>\n ")).call(t,o.localize("Cancel"),"\n </label>\n </div>\n </li>\n </ul>\n")};function ji(e){var t=Pi();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function Pi(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var Ui=function(e){ri(i,e);var t=ji(i);function i(e,a){var n,r=a.locale,s=a.makeSvgIcon,o=a.menuBarPosition,l=a.usageStatistics;return E(this,i),n=t.call(this,e,{locale:r,name:"resize",makeSvgIcon:s,menuBarPosition:o,templateHtml:Ni,usageStatistics:l}),n.status="active",n._lockState=!1,n._originalDimensions=null,n._els={widthRange:new _i({slider:n.selector(".tie-width-range"),input:n.selector(".tie-width-range-value")},qe),heightRange:new _i({slider:n.selector(".tie-height-range"),input:n.selector(".tie-height-range-value")},qe),lockAspectRatio:n.selector(".tie-lock-aspect-ratio"),apply:n.selector(".tie-resize-button .apply"),cancel:n.selector(".tie-resize-button .cancel")},n}return B(i,[{key:"changeStartMode",value:function(){this.actions.modeChange("resize");var e=this.actions.getCurrentDimensions();this._originalDimensions=e,this.setWidthValue(e.width),this.setHeightValue(e.height)}},{key:"changeStandbyMode",value:function(){this.actions.stopDrawingMode(),this.actions.reset(!0)}},{key:"setLimit",value:function(e){this._els.widthRange.min=this.calcMinValue(e.minWidth),this._els.heightRange.min=this.calcMinValue(e.minHeight),this._els.widthRange.max=this.calcMaxValue(e.maxWidth),this._els.heightRange.max=this.calcMaxValue(e.maxHeight)}},{key:"calcMaxValue",value:function(e){return e<=0&&(e=qe.max),e}},{key:"calcMinValue",value:function(e){return e<=0&&(e=qe.min),e}},{key:"setWidthValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._els.widthRange.value=e,t&&this._els.widthRange.trigger("change")}},{key:"setHeightValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._els.heightRange.value=e,t&&this._els.heightRange.trigger("change")}},{key:"destroy",value:function(){this._removeEvent(),dt(this)}},{key:"addEvent",value:function(e){var t,i,a,n,r;this._els.widthRange.on("change",D()(t=this._changeWidthRangeHandler).call(t,this)),this._els.heightRange.on("change",D()(i=this._changeHeightRangeHandler).call(i,this)),this._els.lockAspectRatio.addEventListener("change",D()(a=this._changeLockAspectRatio).call(a,this));var s=D()(n=this._applyEventHandler).call(n,this),o=D()(r=this._cancelEventHandler).call(r,this);this.eventHandler={apply:s,cancel:o},this.actions=e,this._els.apply.addEventListener("click",s),this._els.cancel.addEventListener("click",o)}},{key:"_changeWidthRangeHandler",value:function(e){this.actions.preview("width",it(e),this._lockState)}},{key:"_changeHeightRangeHandler",value:function(e){this.actions.preview("height",it(e),this._lockState)}},{key:"_changeLockAspectRatio",value:function(e){this._lockState=e.target.checked,this.actions.lockAspectRatio(this._lockState,qe.min,qe.max)}},{key:"_removeEvent",value:function(){this._els.apply.removeEventListener("click",this.eventHandler.apply),this._els.cancel.removeEventListener("click",this.eventHandler.cancel)}},{key:"_applyEventHandler",value:function(){this.actions.resize(),this._els.apply.classList.remove("active")}},{key:"_cancelEventHandler",value:function(){this.actions.reset(),this._els.cancel.classList.remove("active")}},{key:"changeApplyButtonStatus",value:function(e){e?this._els.apply.classList.add("active"):this._els.apply.classList.remove("active")}}]),i}(Ci),Fi=Ui,Ri=function(e){var t,i,a,n,r,s=e.locale,o=e.makeSvgIcon;return N()(t=N()(i=N()(a=N()(n=N()(r='\n <ul class="tie-flip-button tui-image-editor-submenu-item">\n <li>\n <div class="tui-image-editor-button flipX">\n <div>\n '.concat(o(["normal","active"],"flip-x",!0),"\n </div>\n <label>\n ")).call(r,s.localize("Flip X"),'\n </label>\n </div>\n <div class="tui-image-editor-button flipY">\n <div>\n ')).call(n,o(["normal","active"],"flip-y",!0),"\n </div>\n <label>\n ")).call(a,s.localize("Flip Y"),'\n </label>\n </div>\n </li>\n <li class="tui-image-editor-partition">\n <div></div>\n </li>\n <li>\n <div class="tui-image-editor-button resetFlip">\n <div>\n ')).call(i,o(["normal","active"],"flip-reset",!0),"\n </div>\n <label>\n ")).call(t,s.localize("Reset"),"\n </label>\n </div>\n </li>\n </ul>\n")};function Qi(e){var t=Hi();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function Hi(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var zi=function(e){ri(i,e);var t=Qi(i);function i(e,a){var n,r=a.locale,s=a.makeSvgIcon,o=a.menuBarPosition,l=a.usageStatistics;return E(this,i),n=t.call(this,e,{locale:r,name:"flip",makeSvgIcon:s,menuBarPosition:o,templateHtml:Ri,usageStatistics:l}),n.flipStatus=!1,n._els={flipButton:n.selector(".tie-flip-button")},n}return B(i,[{key:"destroy",value:function(){this._removeEvent(),dt(this)}},{key:"addEvent",value:function(e){var t;this.eventHandler.changeFlip=D()(t=this._changeFlip).call(t,this),this._actions=e,this._els.flipButton.addEventListener("click",this.eventHandler.changeFlip)}},{key:"_removeEvent",value:function(){this._els.flipButton.removeEventListener("click",this.eventHandler.changeFlip)}},{key:"_changeFlip",value:function(e){var t=this,i=e.target.closest(".tui-image-editor-button");if(i){var a=this.getButtonType(i,["flipX","flipY","resetFlip"]);if(!this.flipStatus&&"resetFlip"===a)return;this._actions.flip(a).then((function(e){var i=t._els.flipButton.classList;t.flipStatus=!1,i.remove("resetFlip"),$()(["flipX","flipY"],(function(a){i.remove(a),e[a]&&(i.add(a),i.add("resetFlip"),t.flipStatus=!0)}))}))}}}]),i}(Ci),qi=zi,Gi=function(e){var t,i,a=e.locale,n=e.makeSvgIcon;return N()(t=N()(i='\n <ul class="tui-image-editor-submenu-item">\n <li class="tie-rotate-button">\n <div class="tui-image-editor-button clockwise">\n <div>\n '.concat(n(["normal","active"],"rotate-clockwise",!0),'\n </div>\n <label> 30 </label>\n </div>\n <div class="tui-image-editor-button counterclockwise">\n <div>\n ')).call(i,n(["normal","active"],"rotate-counterclockwise",!0),'\n </div>\n <label> -30 </label>\n </div>\n </li>\n <li class="tui-image-editor-partition only-left-right">\n <div></div>\n </li>\n <li class="tui-image-editor-newline tui-image-editor-range-wrap">\n <label class="range">')).call(t,a.localize("Range"),'</label>\n <div class="tie-rotate-range"></div>\n <input class="tie-rotate-range-value tui-image-editor-range-value" value="0" />\n </li>\n </ul>\n')};function $i(e){var t=Vi();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function Vi(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var Yi=30,Ki=-30,Wi=function(e){ri(i,e);var t=$i(i);function i(e,a){var n,r=a.locale,s=a.makeSvgIcon,o=a.menuBarPosition,l=a.usageStatistics;return E(this,i),n=t.call(this,e,{locale:r,name:"rotate",makeSvgIcon:s,menuBarPosition:o,templateHtml:Gi,usageStatistics:l}),n._value=0,n._els={rotateButton:n.selector(".tie-rotate-button"),rotateRange:new _i({slider:n.selector(".tie-rotate-range"),input:n.selector(".tie-rotate-range-value")},Ue)},n}return B(i,[{key:"destroy",value:function(){this._removeEvent(),this._els.rotateRange.destroy(),dt(this)}},{key:"setRangeBarAngle",value:function(e,t){var i=t;"rotate"===e&&(i=re()(this._els.rotateRange.value,10)+t),this._setRangeBarRatio(i)}},{key:"_setRangeBarRatio",value:function(e){this._els.rotateRange.value=e}},{key:"addEvent",value:function(e){var t,i;this.eventHandler.rotationAngleChanged=D()(t=this._changeRotateForButton).call(t,this),this.actions=e,this._els.rotateButton.addEventListener("click",this.eventHandler.rotationAngleChanged),this._els.rotateRange.on("change",D()(i=this._changeRotateForRange).call(i,this))}},{key:"_removeEvent",value:function(){this._els.rotateButton.removeEventListener("click",this.eventHandler.rotationAngleChanged),this._els.rotateRange.off()}},{key:"_changeRotateForRange",value:function(e,t){var i=it(e);this.actions.setAngle(i,!t),this._value=i}},{key:"_changeRotateForButton",value:function(e){var t=e.target.closest(".tui-image-editor-button"),i=this._els.rotateRange.value;if(t){var a=this.getButtonType(t,["counterclockwise","clockwise"]),n={clockwise:Yi,counterclockwise:Ki}[a],r=re()(i,10)+n,s=r>=-360&&r<=360;s&&this.actions.rotate(n)}}}]),i}(Ci),Xi=Wi,Ji=function(e){var t,i,a,n,r,s,o,l,c,u,d,p,f,A=e.locale,h=e.makeSvgIcon;return N()(t=N()(i=N()(a=N()(n=N()(r=N()(s=N()(o=N()(l=N()(c=N()(u=N()(d=N()(p=N()(f='\n <ul class="tui-image-editor-submenu-item">\n <li class="tie-text-effect-button">\n <div class="tui-image-editor-button bold">\n <div>\n '.concat(h(["normal","active"],"text-bold",!0),"\n </div>\n <label> ")).call(f,A.localize("Bold"),' </label>\n </div>\n <div class="tui-image-editor-button italic">\n <div>\n ')).call(p,h(["normal","active"],"text-italic",!0),"\n </div>\n <label> ")).call(d,A.localize("Italic"),' </label>\n </div>\n <div class="tui-image-editor-button underline">\n <div>\n ')).call(u,h(["normal","active"],"text-underline",!0),"\n </div>\n <label> ")).call(c,A.localize("Underline"),' </label>\n </div>\n </li>\n <li class="tui-image-editor-partition">\n <div></div>\n </li>\n <li class="tie-text-align-button">\n <div class="tui-image-editor-button left">\n <div>\n ')).call(l,h(["normal","active"],"text-align-left",!0),"\n </div>\n <label> ")).call(o,A.localize("Left"),' </label>\n </div>\n <div class="tui-image-editor-button center">\n <div>\n ')).call(s,h(["normal","active"],"text-align-center",!0),"\n </div>\n <label> ")).call(r,A.localize("Center"),' </label>\n </div>\n <div class="tui-image-editor-button right">\n <div>\n ')).call(n,h(["normal","active"],"text-align-right",!0),"\n </div>\n <label> ")).call(a,A.localize("Right"),' </label>\n </div>\n </li>\n <li class="tui-image-editor-partition">\n <div></div>\n </li>\n <li>\n <div class="tie-text-color" title="')).call(i,A.localize("Color"),'"></div>\n </li>\n <li class="tui-image-editor-partition only-left-right">\n <div></div>\n </li>\n <li class="tui-image-editor-newline tui-image-editor-range-wrap">\n <label class="range">')).call(t,A.localize("Text size"),'</label>\n <div class="tie-text-range"></div>\n <input class="tie-text-range-value tui-image-editor-range-value" value="0" />\n </li>\n </ul>\n')};function Zi(e){var t=ea();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function ea(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var ta=function(e){ri(i,e);var t=Zi(i);function i(e,a){var n,r=a.locale,s=a.makeSvgIcon,o=a.menuBarPosition,l=a.usageStatistics;return E(this,i),n=t.call(this,e,{locale:r,name:"text",makeSvgIcon:s,menuBarPosition:o,templateHtml:Ji,usageStatistics:l}),n.effect={bold:!1,italic:!1,underline:!1},n.align="tie-text-align-left",n._els={textEffectButton:n.selector(".tie-text-effect-button"),textAlignButton:n.selector(".tie-text-align-button"),textColorpicker:new vi(n.selector(".tie-text-color"),{defaultColor:"#ffbb3b",toggleDirection:n.toggleDirection,usageStatistics:n.usageStatistics}),textRange:new _i({slider:n.selector(".tie-text-range"),input:n.selector(".tie-text-range-value")},Qe)},n.colorPickerInputBox=n._els.textColorpicker.colorpickerElement.querySelector(Ee.COLOR_PICKER_INPUT_BOX),n}return B(i,[{key:"destroy",value:function(){this._removeEvent(),this._els.textColorpicker.destroy(),this._els.textRange.destroy(),dt(this)}},{key:"addEvent",value:function(e){var t,i,a,n,r,s,o=D()(t=this._setTextEffectHandler).call(t,this),l=D()(i=this._setTextAlignHandler).call(i,this);this.eventHandler={setTextEffect:o,setTextAlign:l},this.actions=e,this._els.textEffectButton.addEventListener("click",o),this._els.textAlignButton.addEventListener("click",l),this._els.textRange.on("change",D()(a=this._changeTextRnageHandler).call(a,this)),this._els.textColorpicker.on("change",D()(n=this._changeColorHandler).call(n,this)),this.colorPickerInputBox.addEventListener(Ie.FOCUS,D()(r=this._onStartEditingInputBox).call(r,this)),this.colorPickerInputBox.addEventListener(Ie.BLUR,D()(s=this._onStopEditingInputBox).call(s,this))}},{key:"_removeEvent",value:function(){var e,t,i=this.eventHandler,a=i.setTextEffect,n=i.setTextAlign;this._els.textEffectButton.removeEventListener("click",a),this._els.textAlignButton.removeEventListener("click",n),this._els.textRange.off(),this._els.textColorpicker.off(),this.colorPickerInputBox.removeEventListener(Ie.FOCUS,D()(e=this._onStartEditingInputBox).call(e,this)),this.colorPickerInputBox.removeEventListener(Ie.BLUR,D()(t=this._onStopEditingInputBox).call(t,this))}},{key:"changeStandbyMode",value:function(){this.actions.stopDrawingMode()}},{key:"changeStartMode",value:function(){this.actions.modeChange("text")}},{key:"textColor",get:function(){return this._els.textColorpicker.color},set:function(e){this._els.textColorpicker.color=e}},{key:"fontSize",get:function(){return this._els.textRange.value},set:function(e){this._els.textRange.value=e}},{key:"fontStyle",get:function(){return this.effect.italic?"italic":"normal"}},{key:"fontWeight",get:function(){return this.effect.bold?"bold":"normal"}},{key:"underline",get:function(){return this.effect.underline}},{key:"setTextStyleStateOnAction",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ce()(e),i=e.fontSize,a=e.fontStyle,n=e.fontWeight,r=e.textDecoration,s=e.textAlign;this.textColor=t,this.fontSize=i,this.setEffectState("italic",a),this.setEffectState("bold",n),this.setEffectState("underline",r),this.setAlignState("tie-text-align-".concat(s))}},{key:"setEffectState",value:function(e,t){var i="italic"===t||"bold"===t||"underline"===t,a=this._els.textEffectButton.querySelector(".tui-image-editor-button.".concat(e));this.effect[e]=i,a.classList[i?"add":"remove"]("active")}},{key:"setAlignState",value:function(e){var t=this._els.textAlignButton;t.classList.remove(this.align),t.classList.add(e),this.align=e}},{key:"_setTextEffectHandler",value:function(e){var t=e.target.closest(".tui-image-editor-button");if(t){var i=t.className.match(/(bold|italic|underline)/),a=ie(i,1),n=a[0],r={bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},underline:{textDecoration:"underline"}}[n];this.effect[n]=!this.effect[n],t.classList.toggle("active"),this.actions.changeTextStyle(r)}}},{key:"_setTextAlignHandler",value:function(e){var t=e.target.closest(".tui-image-editor-button");if(t){var i=this.getButtonType(t,["left","center","right"]),a="tie-text-align-".concat(i);e.currentTarget.classList.remove(this.align),this.align!==a&&e.currentTarget.classList.add(a),this.actions.changeTextStyle({textAlign:i}),this.align=a}}},{key:"_changeTextRnageHandler",value:function(e,t){this.actions.changeTextStyle({fontSize:e},!t)}},{key:"_changeColorHandler",value:function(e){e=e||"transparent",this.actions.changeTextStyle({fill:e})}}]),i}(Ci),ia=ta,aa=function(e){var t,i,a,n=e.locale,r=e.makeSvgIcon;return N()(t=N()(i=N()(a='\n <ul class="tui-image-editor-submenu-item">\n <li>\n <div class="tui-image-editor-button">\n <div>\n <input type="file" accept="image/*" class="tie-mask-image-file">\n '.concat(r(["normal","active"],"mask-load",!0),"\n </div>\n <label> ")).call(a,n.localize("Load Mask Image"),' </label>\n </div>\n </li>\n <li class="tui-image-editor-partition only-left-right">\n <div></div>\n </li>\n <li class="tie-mask-apply tui-image-editor-newline apply" style="margin-top: 22px;margin-bottom: 5px">\n <div class="tui-image-editor-button apply">\n ')).call(i,r(["normal","active"],"apply"),"\n <label>\n ")).call(t,n.localize("Apply"),"\n </label>\n </div>\n </li>\n </ul>\n")};function na(e){var t=ra();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function ra(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var sa=function(e){ri(i,e);var t=na(i);function i(e,a){var n,r=a.locale,s=a.makeSvgIcon,o=a.menuBarPosition,l=a.usageStatistics;return E(this,i),n=t.call(this,e,{locale:r,name:"mask",makeSvgIcon:s,menuBarPosition:o,templateHtml:aa,usageStatistics:l}),n._els={applyButton:n.selector(".tie-mask-apply"),maskImageButton:n.selector(".tie-mask-image-file")},n}return B(i,[{key:"destroy",value:function(){this._removeEvent(),dt(this)}},{key:"addEvent",value:function(e){var t,i,a=D()(t=this._loadMaskFile).call(t,this),n=D()(i=this._applyMask).call(i,this);this.eventHandler={loadMaskFile:a,applyMask:n},this.actions=e,this._els.maskImageButton.addEventListener("change",a),this._els.applyButton.addEventListener("click",n)}},{key:"_removeEvent",value:function(){this._els.maskImageButton.removeEventListener("change",this.eventHandler.loadMaskFile),this._els.applyButton.removeEventListener("click",this.eventHandler.applyMask)}},{key:"_applyMask",value:function(){this.actions.applyFilter(),this._els.applyButton.classList.remove("active")}},{key:"_loadMaskFile",value:function(e){var t;nt()||alert("This browser does not support file-api");var i=ie(e.target.files,1),a=i[0];a&&(t=F().createObjectURL(a),this.actions.loadImageFromURL(t,a),this._els.applyButton.classList.add("active"))}}]),i}(Ci),oa=sa,la=function(e){var t,i,a,n,r,s,o,l,c,u,d,p,f,A,h,m,g,v,b,y,_=e.locale,w=e.makeSvgIcon;return N()(t=N()(i=N()(a=N()(n=N()(r=N()(s=N()(o=N()(l=N()(c=N()(u=N()(d=N()(p=N()(f=N()(A=N()(h=N()(m=N()(g=N()(v=N()(b=N()(y='\n <ul class="tui-image-editor-submenu-item">\n <li class="tie-icon-add-button">\n <div class="tui-image-editor-button" data-icontype="icon-arrow">\n <div>\n '.concat(w(["normal","active"],"icon-arrow",!0),"\n </div>\n <label>\n ")).call(y,_.localize("Arrow"),'\n </label>\n </div>\n <div class="tui-image-editor-button" data-icontype="icon-arrow-2">\n <div>\n ')).call(b,w(["normal","active"],"icon-arrow-2",!0),"\n </div>\n <label>\n ")).call(v,_.localize("Arrow-2"),'\n </label>\n </div>\n <div class="tui-image-editor-button" data-icontype="icon-arrow-3">\n <div>\n ')).call(g,w(["normal","active"],"icon-arrow-3",!0),"\n </div>\n <label>\n ")).call(m,_.localize("Arrow-3"),'\n </label>\n </div>\n <div class="tui-image-editor-button" data-icontype="icon-star">\n <div>\n ')).call(h,w(["normal","active"],"icon-star",!0),"\n </div>\n <label>\n ")).call(A,_.localize("Star-1"),'\n </label>\n </div>\n <div class="tui-image-editor-button" data-icontype="icon-star-2">\n <div>\n ')).call(f,w(["normal","active"],"icon-star-2",!0),"\n </div>\n <label>\n ")).call(p,_.localize("Star-2"),'\n </label>\n </div>\n\n <div class="tui-image-editor-button" data-icontype="icon-polygon">\n <div>\n ')).call(d,w(["normal","active"],"icon-polygon",!0),"\n </div>\n <label>\n ")).call(u,_.localize("Polygon"),'\n </label>\n </div>\n\n <div class="tui-image-editor-button" data-icontype="icon-location">\n <div>\n ')).call(c,w(["normal","active"],"icon-location",!0),"\n </div>\n <label>\n ")).call(l,_.localize("Location"),'\n </label>\n </div>\n\n <div class="tui-image-editor-button" data-icontype="icon-heart">\n <div>\n ')).call(o,w(["normal","active"],"icon-heart",!0),"\n </div>\n <label>\n ")).call(s,_.localize("Heart"),'\n </label>\n </div>\n\n <div class="tui-image-editor-button" data-icontype="icon-bubble">\n <div>\n ')).call(r,w(["normal","active"],"icon-bubble",!0),"\n </div>\n <label>\n ")).call(n,_.localize("Bubble"),'\n </label>\n </div>\n </li>\n <li class="tui-image-editor-partition">\n <div></div>\n </li>\n <li class="tie-icon-add-button">\n <div class="tui-image-editor-button" style="margin:0">\n <div>\n <input type="file" accept="image/*" class="tie-icon-image-file">\n ')).call(a,w(["normal","active"],"icon-load",!0),"\n </div>\n <label>\n ")).call(i,_.localize("Custom icon"),'\n </label>\n </div>\n </li>\n <li class="tui-image-editor-partition">\n <div></div>\n </li>\n <li>\n <div class="tie-icon-color" title="')).call(t,_.localize("Color"),'"></div>\n </li>\n </ul>\n')};function ca(e){var t=ua();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function ua(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var da=function(e){ri(i,e);var t=ca(i);function i(e,a){var n,r=a.locale,s=a.makeSvgIcon,o=a.menuBarPosition,l=a.usageStatistics;return E(this,i),n=t.call(this,e,{locale:r,name:"icon",makeSvgIcon:s,menuBarPosition:o,templateHtml:la,usageStatistics:l}),n.iconType=null,n._iconMap={},n._els={registerIconButton:n.selector(".tie-icon-image-file"),addIconButton:n.selector(".tie-icon-add-button"),iconColorpicker:new vi(n.selector(".tie-icon-color"),{defaultColor:"#ffbb3b",toggleDirection:n.toggleDirection,usageStatistics:n.usageStatistics})},n.colorPickerInputBox=n._els.iconColorpicker.colorpickerElement.querySelector(Ee.COLOR_PICKER_INPUT_BOX),n}return B(i,[{key:"destroy",value:function(){this._removeEvent(),this._els.iconColorpicker.destroy(),dt(this)}},{key:"addEvent",value:function(e){var t,i,a,n,r,s=D()(t=this._registerIconHandler).call(t,this),o=D()(i=this._addIconHandler).call(i,this);this.eventHandler={registerIcon:s,addIcon:o},this.actions=e,this._els.iconColorpicker.on("change",D()(a=this._changeColorHandler).call(a,this)),this._els.registerIconButton.addEventListener("change",s),this._els.addIconButton.addEventListener("click",o),this.colorPickerInputBox.addEventListener(Ie.FOCUS,D()(n=this._onStartEditingInputBox).call(n,this)),this.colorPickerInputBox.addEventListener(Ie.BLUR,D()(r=this._onStopEditingInputBox).call(r,this))}},{key:"_removeEvent",value:function(){var e,t;this._els.iconColorpicker.off(),this._els.registerIconButton.removeEventListener("change",this.eventHandler.registerIcon),this._els.addIconButton.removeEventListener("click",this.eventHandler.addIcon),this.colorPickerInputBox.removeEventListener(Ie.FOCUS,D()(e=this._onStartEditingInputBox).call(e,this)),this.colorPickerInputBox.removeEventListener(Ie.BLUR,D()(t=this._onStopEditingInputBox).call(t,this))}},{key:"clearIconType",value:function(){this._els.addIconButton.classList.remove(this.iconType),this.iconType=null}},{key:"registerDefaultIcon",value:function(){var e=this;$()(Pe,(function(t,i){e.actions.registerDefaultIcons(i,t)}))}},{key:"setIconPickerColor",value:function(e){this._els.iconColorpicker.color=e}},{key:"changeStandbyMode",value:function(){this.clearIconType(),this.actions.cancelAddIcon()}},{key:"_changeColorHandler",value:function(e){e=e||"transparent",this.actions.changeColor(e)}},{key:"_addIconHandler",value:function(e){var t=e.target.closest(".tui-image-editor-button");if(t){var i=t.getAttribute("data-icontype"),a=this._els.iconColorpicker.color;this.actions.discardSelection(),this.actions.changeSelectableAll(!1),this._els.addIconButton.classList.remove(this.iconType),this._els.addIconButton.classList.add(i),this.iconType===i?this.changeStandbyMode():(this.actions.addIcon(i,a),this.iconType=i)}}},{key:"_registerIconHandler",value:function(e){var t;nt||alert("This browser does not support file-api");var i=ie(e.target.files,1),a=i[0];a&&(t=F().createObjectURL(a),this.actions.registerCustomIcon(t,a))}}]),i}(Ci),pa=da,fa=function(e){var t,i,a,n,r,s=e.locale,o=e.makeSvgIcon;return N()(t=N()(i=N()(a=N()(n=N()(r='\n <ul class="tui-image-editor-submenu-item">\n <li class="tie-draw-line-select-button">\n <div class="tui-image-editor-button free">\n <div>\n '.concat(o(["normal","active"],"draw-free",!0),"\n </div>\n <label>\n ")).call(r,s.localize("Free"),'\n </label>\n </div>\n <div class="tui-image-editor-button line">\n <div>\n ')).call(n,o(["normal","active"],"draw-line",!0),"\n </div>\n <label>\n ")).call(a,s.localize("Straight"),'\n </label>\n </div>\n </li>\n <li class="tui-image-editor-partition">\n <div></div>\n </li>\n <li>\n <div class="tie-draw-color" title="')).call(i,s.localize("Color"),'"></div>\n </li>\n <li class="tui-image-editor-partition only-left-right">\n <div></div>\n </li>\n <li class="tui-image-editor-newline tui-image-editor-range-wrap">\n <label class="range">')).call(t,s.localize("Range"),'</label>\n <div class="tie-draw-range"></div>\n <input class="tie-draw-range-value tui-image-editor-range-value" value="0" />\n </li>\n </ul>\n')};function Aa(e){var t=ha();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function ha(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var ma=.7,ga=function(e){ri(i,e);var t=Aa(i);function i(e,a){var n,r=a.locale,s=a.makeSvgIcon,o=a.menuBarPosition,l=a.usageStatistics;return E(this,i),n=t.call(this,e,{locale:r,name:"draw",makeSvgIcon:s,menuBarPosition:o,templateHtml:fa,usageStatistics:l}),n._els={lineSelectButton:n.selector(".tie-draw-line-select-button"),drawColorPicker:new vi(n.selector(".tie-draw-color"),{defaultColor:"#00a9ff",toggleDirection:n.toggleDirection,usageStatistics:n.usageStatistics}),drawRange:new _i({slider:n.selector(".tie-draw-range"),input:n.selector(".tie-draw-range-value")},Fe)},n.type=null,n.color=n._els.drawColorPicker.color,n.width=n._els.drawRange.value,n.colorPickerInputBox=n._els.drawColorPicker.colorpickerElement.querySelector(Ee.COLOR_PICKER_INPUT_BOX),n}return B(i,[{key:"destroy",value:function(){this._removeEvent(),this._els.drawColorPicker.destroy(),this._els.drawRange.destroy(),dt(this)}},{key:"addEvent",value:function(e){var t,i,a,n,r;this.eventHandler.changeDrawType=D()(t=this._changeDrawType).call(t,this),this.actions=e,this._els.lineSelectButton.addEventListener("click",this.eventHandler.changeDrawType),this._els.drawColorPicker.on("change",D()(i=this._changeDrawColor).call(i,this)),this._els.drawRange.on("change",D()(a=this._changeDrawRange).call(a,this)),this.colorPickerInputBox.addEventListener(Ie.FOCUS,D()(n=this._onStartEditingInputBox).call(n,this)),this.colorPickerInputBox.addEventListener(Ie.BLUR,D()(r=this._onStopEditingInputBox).call(r,this))}},{key:"_removeEvent",value:function(){var e,t;this._els.lineSelectButton.removeEventListener("click",this.eventHandler.changeDrawType),this._els.drawColorPicker.off(),this._els.drawRange.off(),this.colorPickerInputBox.removeEventListener(Ie.FOCUS,D()(e=this._onStartEditingInputBox).call(e,this)),this.colorPickerInputBox.removeEventListener(Ie.BLUR,D()(t=this._onStopEditingInputBox).call(t,this))}},{key:"setDrawMode",value:function(){this.actions.setDrawMode(this.type,{width:this.width,color:rt(this.color,ma)})}},{key:"changeStandbyMode",value:function(){this.type=null,this.actions.stopDrawingMode(),this.actions.changeSelectableAll(!0),this._els.lineSelectButton.classList.remove("free"),this._els.lineSelectButton.classList.remove("line")}},{key:"changeStartMode",value:function(){this.type="free",this._els.lineSelectButton.classList.add("free"),this.setDrawMode()}},{key:"_changeDrawType",value:function(e){var t=e.target.closest(".tui-image-editor-button");if(t){var i=this.getButtonType(t,["free","line"]);if(this.actions.discardSelection(),this.type===i)return void this.changeStandbyMode();this.changeStandbyMode(),this.type=i,this._els.lineSelectButton.classList.add(i),this.setDrawMode()}}},{key:"_changeDrawColor",value:function(e){this.color=e||"transparent",this.type?this.setDrawMode():this.changeStartMode()}},{key:"_changeDrawRange",value:function(e){this.width=e,this.type?this.setDrawMode():this.changeStartMode()}}]),i}(Ci),va=ga,ba=n(9886),ya=n.n(ba),_a=function(e){var t,i,a,n,r,s,o,l,c,u,d,p,f,A,h,m,g=e.locale;return N()(t=N()(i=N()(a=N()(n=N()(r=N()(s=N()(o=N()(l=N()(c=N()(u=N()(d=N()(p=N()(f=N()(A=N()(h=N()(m='\n <ul class="tui-image-editor-submenu-item">\n <li class="tui-image-editor-submenu-align">\n <div class="tui-image-editor-checkbox-wrap fixed-width">\n <div class="tui-image-editor-checkbox">\n <label>\n <input type="checkbox" class="tie-grayscale">\n <span>'.concat(g.localize("Grayscale"),'</span>\n </label>\n </div>\n <div class="tui-image-editor-checkbox">\n <label>\n <input type="checkbox" class="tie-invert">\n <span>')).call(m,g.localize("Invert"),'</span>\n </label>\n </div>\n <div class="tui-image-editor-checkbox">\n <label>\n <input type="checkbox" class="tie-sepia">\n <span>')).call(h,g.localize("Sepia"),'</span>\n </label>\n </div>\n <div class="tui-image-editor-checkbox">\n <label>\n <input type="checkbox" class="tie-vintage">\n <span>')).call(A,g.localize("Sepia2"),'</span>\n </label>\n </div>\n <div class="tui-image-editor-checkbox">\n <label>\n <input type="checkbox" class="tie-blur">\n <span>')).call(f,g.localize("Blur"),'</span>\n </label>\n </div>\n <div class="tui-image-editor-checkbox">\n <label>\n <input type="checkbox" class="tie-sharpen">\n <span>')).call(p,g.localize("Sharpen"),'</span>\n </label>\n </div>\n <div class="tui-image-editor-checkbox">\n <label>\n <input type="checkbox" class="tie-emboss">\n <span>')).call(d,g.localize("Emboss"),'</span>\n </label>\n </div>\n </div>\n </li>\n <li class="tui-image-editor-partition">\n <div></div>\n </li>\n <li class="tui-image-editor-submenu-align">\n <div class="tui-image-editor-checkbox-group tui-image-editor-disabled" style="margin-bottom: 7px;">\n <div class="tui-image-editor-checkbox-wrap">\n <div class="tui-image-editor-checkbox">\n <label>\n <input type="checkbox" class="tie-remove-white">\n <span>')).call(u,g.localize("Remove White"),'</span>\n </label>\n </div>\n </div>\n <div class="tui-image-editor-newline tui-image-editor-range-wrap short">\n <label>')).call(c,g.localize("Distance"),'</label>\n <div class="tie-removewhite-distance-range"></div>\n </div>\n </div>\n <div class="tui-image-editor-checkbox-group tui-image-editor-disabled">\n <div class="tui-image-editor-checkbox">\n <label>\n <input type="checkbox" class="tie-brightness">\n <span>')).call(l,g.localize("Brightness"),'</span>\n </label>\n </div>\n <div class="tui-image-editor-range-wrap short">\n <div class="tie-brightness-range"></div>\n </div>\n </div>\n <div class="tui-image-editor-checkbox-group tui-image-editor-disabled">\n <div class="tui-image-editor-checkbox">\n <label>\n <input type="checkbox" class="tie-noise">\n <span>')).call(o,g.localize("Noise"),'</span>\n </label>\n </div>\n <div class="tui-image-editor-range-wrap short">\n <div class="tie-noise-range"></div>\n </div>\n </div>\n </li>\n <li class="tui-image-editor-partition only-left-right">\n <div></div>\n </li>\n <li class="tui-image-editor-submenu-align">\n <div class="tui-image-editor-checkbox-group tui-image-editor-disabled">\n <div class="tui-image-editor-checkbox">\n <label>\n <input type="checkbox" class="tie-pixelate">\n <span>')).call(s,g.localize("Pixelate"),'</span>\n </label>\n </div>\n <div class="tui-image-editor-range-wrap short">\n <div class="tie-pixelate-range"></div>\n </div>\n </div>\n <div class="tui-image-editor-checkbox-group tui-image-editor-disabled">\n <div class="tui-image-editor-newline tui-image-editor-checkbox-wrap">\n <div class="tui-image-editor-checkbox">\n <label>\n <input type="checkbox" class="tie-color-filter">\n <span>')).call(r,g.localize("Color Filter"),'</span>\n </label>\n </div>\n </div>\n <div class="tui-image-editor-newline tui-image-editor-range-wrap short">\n <label>')).call(n,g.localize("Threshold"),'</label>\n <div class="tie-colorfilter-threshold-range"></div>\n </div>\n </div>\n </li>\n <li class="tui-image-editor-partition">\n <div></div>\n </li>\n <li>\n <div class="filter-color-item">\n <div class="tie-filter-tint-color" title="')).call(a,g.localize("Tint"),'"></div>\n <div class="tui-image-editor-checkbox">\n <label>\n <input type="checkbox" class="tie-tint">\n <span></span>\n </label>\n </div>\n </div>\n <div class="filter-color-item">\n <div class="tie-filter-multiply-color" title="')).call(i,g.localize("Multiply"),'"></div>\n <div class="tui-image-editor-checkbox">\n <label>\n <input type="checkbox" class="tie-multiply">\n <span></span>\n </label>\n </div>\n </div>\n <div class="filter-color-item">\n <div class="tie-filter-blend-color" title="')).call(t,g.localize("Blend"),'"></div>\n <div class="tui-image-editor-checkbox">\n <label>\n <input type="checkbox" class="tie-blend">\n <span></span>\n </label>\n </div>\n </div>\n </li>\n </ul>\n')};function wa(e){var t=Ca();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function Ca(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var xa="130px",ka=["add","diff","subtract","multiply","screen","lighten","darken"],Ta=["grayscale","invert","sepia","vintage","blur","sharpen","emboss","remove-white","brightness","noise","pixelate","color-filter","tint","multiply","blend"],Sa={grayscale:"grayscale",invert:"invert",sepia:"sepia",blur:"blur",sharpen:"sharpen",emboss:"emboss",removeWhite:"removeColor",brightness:"brightness",contrast:"contrast",saturation:"saturation",vintage:"vintage",polaroid:"polaroid",noise:"noise",pixelate:"pixelate",colorFilter:"removeColor",tint:"blendColor",multiply:"blendColor",blend:"blendColor",hue:"hue",gamma:"gamma"},Ia=["removewhiteDistanceRange","colorfilterThresholdRange","pixelateRange","noiseRange","brightnessRange","tintOpacity"],Ea=["filterBlendColor","filterMultiplyColor","filterTintColor"],Oa=function(e){ri(i,e);var t=wa(i);function i(e,a){var n,r=a.locale,s=a.menuBarPosition,o=a.usageStatistics;return E(this,i),n=t.call(this,e,{locale:r,name:"filter",menuBarPosition:s,templateHtml:_a,usageStatistics:o}),n.selectBoxShow=!1,n.checkedMap={},n._makeControlElement(),n}return B(i,[{key:"destroy",value:function(){this._removeEvent(),this._destroyToolInstance(),dt(this)}},{key:"_removeEvent",value:function(){var e,t=this;$()(Ta,(function(e){var i=t.selector(".tie-".concat(e)),a=at(e);i.removeEventListener("change",t.eventHandler[a])})),$()(N()(e=[]).call(e,Ia,Ea),(function(e){t._els[e].off()})),this._els.blendType.removeEventListener("change",this.eventHandler.changeBlendFilter),this._els.blendType.removeEventListener("click",this.eventHandler.changeBlendFilter),fi()(this.colorPickerInputBoxes,(function(e){var i,a;e.removeEventListener(Ie.FOCUS,D()(i=t._onStartEditingInputBox).call(i,t)),e.removeEventListener(Ie.BLUR,D()(a=t._onStopEditingInputBox).call(a,t))}),this)}},{key:"_destroyToolInstance",value:function(){var e,t=this;$()(N()(e=[]).call(e,Ia,Ea),(function(e){t._els[e].destroy()}))}},{key:"addEvent",value:function(e){var t,i,a,n=this,r=e.applyFilter,s=function(e){var t;return D()(t=n._changeFilterState).call(t,n,r,e)},o=function(e){return function(t,i){return n._changeFilterState(r,e,i)}};this.eventHandler={changeBlendFilter:s("blend"),blandTypeClick:function(e){return e.stopPropagation()}},$()(Ta,(function(e){var t=n.selector(".tie-".concat(e)),i=at(e);n.checkedMap[i]=t,n.eventHandler[i]=s(i),t.addEventListener("change",n.eventHandler[i])})),this._els.removewhiteDistanceRange.on("change",o("removeWhite")),this._els.colorfilterThresholdRange.on("change",o("colorFilter")),this._els.pixelateRange.on("change",o("pixelate")),this._els.noiseRange.on("change",o("noise")),this._els.brightnessRange.on("change",o("brightness")),this._els.filterBlendColor.on("change",this.eventHandler.changeBlendFilter),this._els.filterMultiplyColor.on("change",s("multiply")),this._els.filterTintColor.on("change",s("tint")),this._els.tintOpacity.on("change",o("tint")),this._els.filterMultiplyColor.on("changeShow",D()(t=this.colorPickerChangeShow).call(t,this)),this._els.filterTintColor.on("changeShow",D()(i=this.colorPickerChangeShow).call(i,this)),this._els.filterBlendColor.on("changeShow",D()(a=this.colorPickerChangeShow).call(a,this)),this._els.blendType.addEventListener("change",this.eventHandler.changeBlendFilter),this._els.blendType.addEventListener("click",this.eventHandler.blandTypeClick),fi()(this.colorPickerInputBoxes,(function(e){var t,i;e.addEventListener(Ie.FOCUS,D()(t=n._onStartEditingInputBox).call(t,n)),e.addEventListener(Ie.BLUR,D()(i=n._onStopEditingInputBox).call(i,n))}),this)}},{key:"setFilterState",value:function(e){var t=e.type,i=e.options,a=e.action,n=this._getFilterNameFromOptions(t,i),r="remove"===a;r||this._setFilterState(n,i),this.checkedMap[n].checked=!r}},{key:"initFilterCheckBoxState",value:function(){$()(this.checkedMap,(function(e){e.checked=!1}),this)}},{key:"_setFilterState",value:function(e,t){"colorFilter"===e?this._els.colorfilterThresholdRange.value=t.distance:"removeWhite"===e?this._els.removewhiteDistanceRange.value=t.distance:"pixelate"===e?this._els.pixelateRange.value=t.blocksize:"brightness"===e?this._els.brightnessRange.value=t.brightness:"noise"===e?this._els.noiseRange.value=t.noise:"tint"===e?(this._els.tintOpacity.value=t.alpha,this._els.filterTintColor.color=t.color):"blend"===e?this._els.filterBlendColor.color=t.color:"multiply"===e&&(this._els.filterMultiplyColor.color=t.color)}},{key:"_getFilterNameFromOptions",value:function(e,t){var i=e;return"removeColor"===e?i=ya()(t.useAlpha)?"removeWhite":"colorFilter":"blendColor"===e&&(i={add:"blend",multiply:"multiply",tint:"tint"}[t.mode]),i}},{key:"_changeFilterState",value:function(e,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=this.checkedMap[t].checked,n=Sa[t],r=this.checkedMap[t].closest(".tui-image-editor-checkbox-group");r&&(a?r.classList.remove("tui-image-editor-disabled"):r.classList.add("tui-image-editor-disabled")),e(a,n,this._getFilterOption(t),!i)}},{key:"_getFilterOption",value:function(e){var t={};switch(e){case"removeWhite":t.color="#FFFFFF",t.useAlpha=!1,t.distance=qt()(this._els.removewhiteDistanceRange.value);break;case"colorFilter":t.color="#FFFFFF",t.distance=qt()(this._els.colorfilterThresholdRange.value);break;case"pixelate":t.blocksize=it(this._els.pixelateRange.value);break;case"noise":t.noise=it(this._els.noiseRange.value);break;case"brightness":t.brightness=qt()(this._els.brightnessRange.value);break;case"blend":t.mode="add",t.color=this._els.filterBlendColor.color,t.mode=this._els.blendType.value;break;case"multiply":t.mode="multiply",t.color=this._els.filterMultiplyColor.color;break;case"tint":t.mode="tint",t.color=this._els.filterTintColor.color,t.alpha=this._els.tintOpacity.value;break;case"blur":t.blur=this._els.blurRange.value;break;default:break}return t}},{key:"_makeControlElement",value:function(){this._els={removewhiteDistanceRange:new _i({slider:this.selector(".tie-removewhite-distance-range")},He.removewhiteDistanceRange),brightnessRange:new _i({slider:this.selector(".tie-brightness-range")},He.brightnessRange),noiseRange:new _i({slider:this.selector(".tie-noise-range")},He.noiseRange),pixelateRange:new _i({slider:this.selector(".tie-pixelate-range")},He.pixelateRange),colorfilterThresholdRange:new _i({slider:this.selector(".tie-colorfilter-threshold-range")},He.colorfilterThresholdRange),filterTintColor:new vi(this.selector(".tie-filter-tint-color"),{defaultColor:"#03bd9e",toggleDirection:this.toggleDirection,usageStatistics:this.usageStatistics}),filterMultiplyColor:new vi(this.selector(".tie-filter-multiply-color"),{defaultColor:"#515ce6",toggleDirection:this.toggleDirection,usageStatistics:this.usageStatistics}),filterBlendColor:new vi(this.selector(".tie-filter-blend-color"),{defaultColor:"#ffbb3b",toggleDirection:this.toggleDirection,usageStatistics:this.usageStatistics}),blurRange:He.blurFilterRange},this._els.tintOpacity=this._pickerWithRange(this._els.filterTintColor.pickerControl),this._els.blendType=this._pickerWithSelectbox(this._els.filterBlendColor.pickerControl),this.colorPickerControls.push(this._els.filterTintColor),this.colorPickerControls.push(this._els.filterMultiplyColor),this.colorPickerControls.push(this._els.filterBlendColor),this.colorPickerInputBoxes=[],this.colorPickerInputBoxes.push(this._els.filterTintColor.colorpickerElement.querySelector(Ee.COLOR_PICKER_INPUT_BOX)),this.colorPickerInputBoxes.push(this._els.filterMultiplyColor.colorpickerElement.querySelector(Ee.COLOR_PICKER_INPUT_BOX)),this.colorPickerInputBoxes.push(this._els.filterBlendColor.colorpickerElement.querySelector(Ee.COLOR_PICKER_INPUT_BOX))}},{key:"_pickerWithRange",value:function(e){var t=document.createElement("div"),i=document.createElement("label"),a=document.createElement("div");return a.id="tie-filter-tint-opacity",i.innerHTML="Opacity",t.appendChild(i),t.appendChild(a),e.appendChild(t),e.style.height=xa,new _i({slider:a},He.tintOpacityRange)}},{key:"_pickerWithSelectbox",value:function(e){var t=document.createElement("div"),i=document.createElement("select"),a=document.createElement("ul");return t.className="tui-image-editor-selectlist-wrap",a.className="tui-image-editor-selectlist",t.appendChild(i),t.appendChild(a),this._makeSelectOptionList(i),e.appendChild(t),e.style.height=xa,this._drawSelectOptionList(i,a),this._pickerWithSelectboxForAddEvent(i,a),i}},{key:"_drawSelectOptionList",value:function(e,t){var i=e.querySelectorAll("option");$()(i,(function(e){var i=document.createElement("li");i.innerHTML=e.innerHTML,i.setAttribute("data-item",e.value),t.appendChild(i)}))}},{key:"_pickerWithSelectboxForAddEvent",value:function(e,t){var i=this;t.addEventListener("click",(function(a){var n=a.target.getAttribute("data-item"),r=document.createEvent("HTMLEvents");e.querySelector('[value="'.concat(n,'"]')).selected=!0,r.initEvent("change",!0,!0),e.dispatchEvent(r),i.selectBoxShow=!1,t.style.display="none"})),e.addEventListener("mousedown",(function(a){a.preventDefault(),i.selectBoxShow=!i.selectBoxShow,t.style.display=i.selectBoxShow?"block":"none",t.setAttribute("data-selectitem",e.value),t.querySelector("[data-item='".concat(e.value,"']")).classList.add("active")}))}},{key:"_makeSelectOptionList",value:function(e){$()(ka,(function(t){var i=document.createElement("option");i.setAttribute("value",t),i.innerHTML=t.replace(/^[a-z]/,(function(e){return e.toUpperCase()})),e.appendChild(i)}))}}]),i}(Ci),Ba=Oa,La=n(4383),Da=n.n(La),Ma=function(){function e(t,i){var a=i.name;E(this,e),this.name=a,this.items=[],this.panelElement=this._makePanelElement(),this.listElement=this._makeListElement(),this.panelElement.appendChild(this.listElement),t.appendChild(this.panelElement)}return B(e,[{key:"_makePanelElement",value:function(){var e=document.createElement("div");return e.className="tie-panel-".concat(this.name),e}},{key:"_makeListElement",value:function(){var e=document.createElement("ol");return e.className="".concat(this.name,"-list"),e}},{key:"makeListItemElement",value:function(e){var t=document.createElement("li");return t.innerHTML=e,t.className="".concat(this.name,"-item"),t.setAttribute("data-index",this.items.length),t}},{key:"pushListItemElement",value:function(e){this.listElement.appendChild(e),this.listElement.scrollTop+=e.offsetHeight,this.items.push(e)}},{key:"deleteListItemElement",value:function(e,t){for(var i=this.items,a=e;a<t;a+=1)this.listElement.removeChild(i[a]);o()(i).call(i,e,t-e+1)}},{key:"getListLength",value:function(){return this.items.length}},{key:"addClass",value:function(e,t){this.items[e]&&this.items[e].classList.add(t)}},{key:"removeClass",value:function(e,t){this.items[e]&&this.items[e].classList.remove(t)}},{key:"toggleClass",value:function(e,t){this.items[e]&&this.items[e].classList.toggle(t)}}]),e}(),Na=Ma,ja=function(e){var t,i,a,n=e.locale,r=e.makeSvgIcon,s=e.name,o=e.detail;return N()(t=N()(i=N()(a='\n <div class="tui-image-editor-history-item history">\n <div class="history-item-icon">\n '.concat(r(["normal","active"],"history-".concat(s.toLowerCase()),!0),"\n </div>\n <span>\n ")).call(a,n.localize(s),"\n ")).call(i,o?"(".concat(n.localize(o),")"):"",'\n </span>\n <div class="history-item-checkbox">\n ')).call(t,r(["normal"],"history-check",!0),"\n </div>\n </div>\n")};function Pa(e){var t=Ua();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function Ua(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var Fa="history-item",Ra="selected-item",Qa="disabled-item",Ha=function(e){ri(i,e);var t=Pa(i);function i(e,a){var n,r=a.locale,s=a.makeSvgIcon;return E(this,i),n=t.call(this,e,{name:"history"}),e.classList.add("enabled"),n.locale=r,n.makeSvgIcon=s,n._eventHandler={},n._historyIndex=n.getListLength(),n}return B(i,[{key:"add",value:function(e){var t=e.name,i=e.detail;this._hasDisabledItem()&&this.deleteListItemElement(this._historyIndex+1,this.getListLength());var a=ja({locale:this.locale,makeSvgIcon:this.makeSvgIcon,name:t,detail:i}),n=this.makeListItemElement(a);this.pushListItemElement(n),this._historyIndex=this.getListLength()-1,this._selectItem(this._historyIndex)}},{key:"init",value:function(){this.deleteListItemElement(1,this.getListLength()),this._historyIndex=0,this._selectItem(this._historyIndex)}},{key:"clear",value:function(){this.deleteListItemElement(0,this.getListLength()),this._historyIndex=-1}},{key:"prev",value:function(){this._historyIndex-=1,this._selectItem(this._historyIndex)}},{key:"next",value:function(){this._historyIndex+=1,this._selectItem(this._historyIndex)}},{key:"_hasDisabledItem",value:function(){return this.getListLength()-1>this._historyIndex}},{key:"_addHistoryEventListener",value:function(){var e=this;this._eventHandler.history=function(t){return e._clickHistoryItem(t)},this.listElement.addEventListener("click",this._eventHandler.history)}},{key:"_removeHistoryEventListener",value:function(){this.listElement.removeEventListener("click",this._eventHandler.history)}},{key:"_clickHistoryItem",value:function(e){var t=e.target,i=t.closest(".".concat(Fa));if(i){var a=Da()(i.getAttribute("data-index"),10);if(a!==this._historyIndex){var n=Math.abs(a-this._historyIndex);a<this._historyIndex?this._actions.undo(n):this._actions.redo(n)}}}},{key:"_selectItem",value:function(e){for(var t=0;t<this.getListLength();t+=1)this.removeClass(t,Ra),this.removeClass(t,Qa),t>e&&this.addClass(t,Qa);this.addClass(e,Ra)}},{key:"destroy",value:function(){this.removeEvent(),dt(this)}},{key:"addEvent",value:function(e){this._actions=e,this._addHistoryEventListener()}},{key:"removeEvent",value:function(){this._removeHistoryEventListener()}}]),i}(Na),za=Ha,qa=function(){function e(t){E(this,e),this._locale=t}return B(e,[{key:"localize",value:function(e){return this._locale[e]||e}}]),e}(),Ga=qa,$a={Shape:Ei,Crop:Mi,Resize:Fi,Flip:qi,Rotate:Xi,Text:ia,Mask:oa,Icon:pa,Draw:va,Filter:Ba},Va="1300",Ya="history",Ka="tie-panel-history",Wa="on",Xa={ZOOM_IN:"zoomIn",HAND:"hand"},Ja=function(){function e(t,i,a){E(this,e),this.options=this._initializeOption(i),this._actions=a,this.submenu=!1,this.imageSize={},this.uiSize={},this._locale=new Ga(this.options.locale),this.theme=new Zt(this.options.theme),this.eventHandler={},this._submenuChangeTransection=!1,this._selectedElement=null,this._mainElement=null,this._editorElementWrap=null,this._editorElement=null,this._menuBarElement=null,this._subMenuElement=null,this._makeUiElement(t),this._setUiSize(),this._initMenuEvent=!1,this._makeSubMenu(),this._attachHistoryEvent(),this._attachZoomEvent()}return B(e,[{key:"destroy",value:function(){this._removeUiEvent(),this._destroyAllMenu(),this._selectedElement.innerHTML="",dt(this)}},{key:"setUiDefaultSelectionStyle",value:function(e){return H()({applyCropSelectionStyle:!0,applyGroupSelectionStyle:!0,selectionStyle:{cornerStyle:"circle",cornerSize:16,cornerColor:"#fff",cornerStrokeColor:"#fff",transparentCorners:!1,lineWidth:2,borderColor:"#fff"}},e)}},{key:"resizeEditor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.uiSize,i=e.imageSize,a=void 0===i?this.imageSize:i;a!==this.imageSize&&(this.imageSize=a),t&&this._setUiSize(t);var n=this._getCanvasMaxDimension(),r=n.width,s=n.height,o=this._editorElement.style,l=this.options.menuBarPosition;o.height="".concat(s,"px"),o.width="".concat(r,"px"),this._setEditorPosition(l),this._editorElementWrap.style.bottom="0px",this._editorElementWrap.style.top="0px",this._editorElementWrap.style.left="0px",this._editorElementWrap.style.width="100%";var c=this._selectedElement.classList;"top"===l&&this._selectedElement.offsetWidth<Va?c.add("tui-image-editor-top-optimization"):c.remove("tui-image-editor-top-optimization")}},{key:"toggleZoomButtonStatus",value:function(e){var t=this._buttonElements[e].classList;t.toggle(Wa),e===Xa.ZOOM_IN?this._buttonElements[Xa.HAND].classList.remove(Wa):this._buttonElements[Xa.ZOOM_IN].classList.remove(Wa)}},{key:"offZoomInButtonStatus",value:function(){var e=this._buttonElements[Xa.ZOOM_IN].classList;e.remove(Wa)}},{key:"changeHandButtonStatus",value:function(e){var t=this._buttonElements[Xa.HAND].classList;t[e?"add":"remove"](Wa)}},{key:"changeHelpButtonEnabled",value:function(e,t){var i=this._buttonElements[e].classList;i[t?"add":"remove"]("enabled")}},{key:"_initializeOption",value:function(e){return H()({loadImage:{path:"",name:""},locale:{},menuIconPath:"",menu:["resize","crop","flip","rotate","draw","shape","icon","text","mask","filter"],initMenu:"",uiSize:{width:"100%",height:"100%"},menuBarPosition:"bottom"},e)}},{key:"_setUiSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.uiSize,t=this._selectedElement.style;t.width=e.width,t.height=e.height}},{key:"_makeSubMenu",value:function(){var e=this;$()(this.options.menu,(function(t){var i,a=$a[t.replace(/^[a-z]/,(function(e){return e.toUpperCase()}))];e._makeMenuElement(t),e._buttonElements[t]=e._menuBarElement.querySelector(".tie-btn-".concat(t)),e[t]=new a(e._subMenuElement,{locale:e._locale,makeSvgIcon:D()(i=e.theme.makeMenSvgIconSet).call(i,e.theme),menuBarPosition:e.options.menuBarPosition,usageStatistics:e.options.usageStatistics})}))}},{key:"_attachHistoryEvent",value:function(){var e,t,i;this.on(Ie.EXECUTE_COMMAND,D()(e=this._addHistory).call(e,this)),this.on(Ie.AFTER_UNDO,D()(t=this._selectPrevHistory).call(t,this)),this.on(Ie.AFTER_REDO,D()(i=this._selectNextHistory).call(i,this))}},{key:"_attachZoomEvent",value:function(){var e=this;this.on(Ie.HAND_STARTED,(function(){e.offZoomInButtonStatus(),e.changeHandButtonStatus(!0)})),this.on(Ie.HAND_STOPPED,(function(){return e.changeHandButtonStatus(!1)}))}},{key:"_makeUiElement",value:function(e){var t,i;i=e.nodeType?e:document.querySelector(e);var a=lt(i);i.classList.add("tui-image-editor-container"),i.innerHTML=$t({locale:this._locale,biImage:this.theme.getStyle("common.bi"),loadButtonStyle:this.theme.getStyle("loadButton"),downloadButtonStyle:this.theme.getStyle("downloadButton"),menuBarPosition:this.options.menuBarPosition})+Gt({locale:this._locale,biImage:this.theme.getStyle("common.bi"),commonStyle:this.theme.getStyle("common"),headerStyle:this.theme.getStyle("header"),loadButtonStyle:this.theme.getStyle("loadButton"),downloadButtonStyle:this.theme.getStyle("downloadButton"),submenuStyle:this.theme.getStyle("submenu")}),this._selectedElement=i,this._selectedElement.classList.add(this.options.menuBarPosition),this._mainElement=a(".tui-image-editor-main"),this._editorElementWrap=a(".tui-image-editor-wrap"),this._editorElement=a(".tui-image-editor"),this._helpMenuBarElement=a(".tui-image-editor-help-menu"),this._menuBarElement=a(".tui-image-editor-menu"),this._subMenuElement=a(".tui-image-editor-submenu"),this._buttonElements={download:this._selectedElement.querySelectorAll(".tui-image-editor-download-btn"),load:this._selectedElement.querySelectorAll(".tui-image-editor-load-btn")},this._addHelpMenus(),this._historyMenu=new za(this._buttonElements[Ya],{locale:this._locale,makeSvgIcon:D()(t=this.theme.makeMenSvgIconSet).call(t,this.theme)}),this._activateZoomMenus()}},{key:"_activateZoomMenus",value:function(){var e=this;$()(me,(function(t){e.changeHelpButtonEnabled(t,!0)}))}},{key:"_makeHelpMenuWithPartition",value:function(){var e;return N()(e=[]).call(e,T(me),[""],T(ge),[""],T(ve))}},{key:"_addHelpMenus",value:function(){var e=this,t=this._makeHelpMenuWithPartition();$()(t,(function(t){t?(e._makeMenuElement(t,["normal","disabled","hover"],"help"),e._buttonElements[t]=e._helpMenuBarElement.querySelector(".tie-btn-".concat(t))):e._makeMenuPartitionElement()}))}},{key:"_makeMenuPartitionElement",value:function(){var e=document.createElement("li"),t=document.createElement("div");e.className=pt("item"),t.className=pt("icpartition"),e.appendChild(t),this._helpMenuBarElement.appendChild(e)}},{key:"_makeMenuElement",value:function(e){var t,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["normal","active","hover"],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal",r=document.createElement("li"),s=this.theme.makeMenSvgIconSet(a,e);this._addTooltipAttribute(r,e),r.className=N()(t=N()(i="tie-btn-".concat(e," ")).call(i,pt("item")," ")).call(t,n),r.innerHTML=s,"normal"===n?this._menuBarElement.appendChild(r):this._helpMenuBarElement.appendChild(r)}},{key:"_addHelpActionEvent",value:function(){var e=this;$()(be,(function(t){e.eventHandler[t]=function(i){return e._actions.main[t](i)},e._buttonElements[t].addEventListener("click",e.eventHandler[t])}))}},{key:"_removeHelpActionEvent",value:function(){var e=this;$()(be,(function(t){e._buttonElements[t].removeEventListener("click",e.eventHandler[t])}))}},{key:"_addHistory",value:function(e){if(!xt(e)){var t="string"===typeof e?{name:e}:kt(e);this._historyMenu.add(t)}}},{key:"initHistory",value:function(){this._historyMenu.init()}},{key:"clearHistory",value:function(){this._historyMenu.clear()}},{key:"_selectPrevHistory",value:function(){this._historyMenu.prev()}},{key:"_selectNextHistory",value:function(){this._historyMenu.next()}},{key:"toggleHistoryMenu",value:function(e){var t=e.target,i=t.closest(".".concat(Ka));if(!i){var a=this._buttonElements[Ya].classList;a.toggle("opened")}}},{key:"_addTooltipAttribute",value:function(e,t){e.setAttribute("tooltip-content",this._locale.localize(t.replace(/^[a-z]/g,(function(e){return e.toUpperCase()}))))}},{key:"_addDownloadEvent",value:function(){var e=this;this.eventHandler.download=function(){return e._actions.main.download()},$()(this._buttonElements.download,(function(t){t.addEventListener("click",e.eventHandler.download)}))}},{key:"_removeDownloadEvent",value:function(){var e=this;$()(this._buttonElements.download,(function(t){t.removeEventListener("click",e.eventHandler.download)}))}},{key:"_addLoadEvent",value:function(){var e=this;this.eventHandler.loadImage=function(t){return e._actions.main.load(t.target.files[0])},$()(this._buttonElements.load,(function(t){t.addEventListener("change",e.eventHandler.loadImage)}))}},{key:"_removeLoadEvent",value:function(){var e=this;$()(this._buttonElements.load,(function(t){t.removeEventListener("change",e.eventHandler.loadImage)}))}},{key:"_addMainMenuEvent",value:function(e){var t=this;this.eventHandler[e]=function(){return t.changeMenu(e)},this._buttonElements[e].addEventListener("click",this.eventHandler[e])}},{key:"_addSubMenuEvent",value:function(e){var t=this;this[e].addEvent(this._actions[e]),this[e].on(Ie.INPUT_BOX_EDITING_STARTED,(function(){return t.fire(Ie.INPUT_BOX_EDITING_STARTED)})),this[e].on(Ie.INPUT_BOX_EDITING_STOPPED,(function(){return t.fire(Ie.INPUT_BOX_EDITING_STOPPED)}))}},{key:"_addMenuEvent",value:function(){var e=this;$()(this.options.menu,(function(t){e._addMainMenuEvent(t),e._addSubMenuEvent(t)}))}},{key:"_removeMainMenuEvent",value:function(){var e=this;$()(this.options.menu,(function(t){e._buttonElements[t].removeEventListener("click",e.eventHandler[t]),e[t].off(Ie.INPUT_BOX_EDITING_STARTED),e[t].off(Ie.INPUT_BOX_EDITING_STOPPED)}))}},{key:"getEditorArea",value:function(){return this._editorElement}},{key:"activeMenuEvent",value:function(){this._initMenuEvent||(this._addHelpActionEvent(),this._addDownloadEvent(),this._addMenuEvent(),this._initMenu(),this._historyMenu.addEvent(this._actions.history),this._initMenuEvent=!0)}},{key:"_removeUiEvent",value:function(){this._removeHelpActionEvent(),this._removeDownloadEvent(),this._removeLoadEvent(),this._removeMainMenuEvent(),this._historyMenu.removeEvent()}},{key:"_destroyAllMenu",value:function(){var e=this;$()(this.options.menu,(function(t){e[t].destroy()})),this._historyMenu.destroy()}},{key:"initCanvas",value:function(){var e=this,t=this._getLoadImage();t.path&&this._actions.main.initLoadImage(t.path,t.name).then((function(){e.activeMenuEvent()})),this._addLoadEvent();var i=document.createElement("div");i.className=pt("grid-visual");var a='<table>\n <tr><td class="dot left-top"></td><td></td><td class="dot right-top"></td></tr>\n <tr><td></td><td></td><td></td></tr>\n <tr><td class="dot left-bottom"></td><td></td><td class="dot right-bottom"></td></tr>\n </table>';i.innerHTML=a,this._editorContainerElement=this._editorElement.querySelector(".tui-image-editor-canvas-container"),this._editorContainerElement.appendChild(i)}},{key:"_getLoadImage",value:function(){return this.options.loadImage}},{key:"changeMenu",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this._submenuChangeTransection||(this._submenuChangeTransection=!0,this._changeMenu(e,t,i),this._submenuChangeTransection=!1)}},{key:"_changeMenu",value:function(e,t,i){this.submenu&&(this._buttonElements[this.submenu].classList.remove("active"),this._mainElement.classList.remove("tui-image-editor-menu-".concat(this.submenu)),i&&this._actions.main.discardSelection(),this._actions.main.changeSelectableAll(!0),this[this.submenu].changeStandbyMode()),this.submenu===e&&t?this.submenu=null:(this._buttonElements[e].classList.add("active"),this._mainElement.classList.add("tui-image-editor-menu-".concat(e)),this.submenu=e,this[this.submenu].changeStartMode()),this.resizeEditor()}},{key:"_initMenu",value:function(){if(this.options.initMenu){var e=document.createEvent("MouseEvents");e.initEvent("click",!0,!1),this._buttonElements[this.options.initMenu].dispatchEvent(e)}this.icon&&this.icon.registerDefaultIcon()}},{key:"_getCanvasMaxDimension",value:function(){var e=this._editorContainerElement.style,t=e.maxWidth,i=e.maxHeight,a=qt()(t),n=qt()(i);return{width:a,height:n}}},{key:"_setEditorPosition",value:function(e){var t=this._getCanvasMaxDimension(),i=t.width,a=t.height,n=this._editorElement.style,r=0,s=0;this.submenu&&("bottom"===e?r=a>this._editorElementWrap.scrollHeight-150?(a-this._editorElementWrap.scrollHeight)/2:-75:"top"===e?r=a>this._editorElementWrap.offsetHeight-150?75-(a-(this._editorElementWrap.offsetHeight-150))/2:75:"left"===e?s=i>this._editorElementWrap.offsetWidth-248?124-(i-(this._editorElementWrap.offsetWidth-248))/2:124:"right"===e&&(s=i>this._editorElementWrap.scrollWidth-248?(i-this._editorElementWrap.scrollWidth)/2:-124)),n.top="".concat(r,"px"),n.left="".concat(s,"px")}}]),e}();Y().mixin(Ja);var Za=Ja,en=n(381),tn=n.n(en),an=function(){function e(){E(this,e),this.versionnumber="1.2.4",this.optionpresets={default:{corsenabled:!1,ltres:1,qtres:1,pathomit:8,rightangleenhance:!0,colorsampling:2,numberofcolors:16,mincolorratio:0,colorquantcycles:3,layering:0,strokewidth:1,linefilter:!1,scale:1,roundcoords:1,viewbox:!1,desc:!1,lcpr:0,qcpr:0,blurradius:0,blurdelta:20},posterized1:{colorsampling:0,numberofcolors:2},posterized2:{numberofcolors:4,blurradius:5},curvy:{ltres:.01,linefilter:!0,rightangleenhance:!1},sharp:{qtres:.01,linefilter:!1},detailed:{pathomit:0,roundcoords:2,ltres:.5,qtres:.5,numberofcolors:64},smoothed:{blurradius:5,blurdelta:64},grayscale:{colorsampling:0,colorquantcycles:1,numberofcolors:7},fixedpalette:{colorsampling:0,colorquantcycles:1,numberofcolors:27},randomsampling1:{colorsampling:1,numberofcolors:8},randomsampling2:{colorsampling:1,numberofcolors:64},artistic1:{colorsampling:0,colorquantcycles:1,pathomit:0,blurradius:5,blurdelta:64,ltres:.01,linefilter:!0,numberofcolors:16,strokewidth:2},artistic2:{qtres:.01,colorsampling:0,colorquantcycles:1,numberofcolors:4,strokewidth:0},artistic3:{qtres:10,ltres:10,numberofcolors:8},artistic4:{qtres:10,ltres:10,numberofcolors:64,blurradius:5,blurdelta:256,strokewidth:2},posterized3:{ltres:1,qtres:1,pathomit:20,rightangleenhance:!0,colorsampling:0,numberofcolors:3,mincolorratio:0,colorquantcycles:3,blurradius:3,blurdelta:20,strokewidth:0,linefilter:!1,roundcoords:1,pal:[{r:0,g:0,b:100,a:255},{r:255,g:255,b:255,a:255}]}},this.pathscan_combined_lookup=[[[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1]],[[0,1,0,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],[0,2,-1,0]],[[-1,-1,-1,-1],[-1,-1,-1,-1],[0,1,0,-1],[0,0,1,0]],[[0,0,1,0],[-1,-1,-1,-1],[0,2,-1,0],[-1,-1,-1,-1]],[[-1,-1,-1,-1],[0,0,1,0],[0,3,0,1],[-1,-1,-1,-1]],[[13,3,0,1],[13,2,-1,0],[7,1,0,-1],[7,0,1,0]],[[-1,-1,-1,-1],[0,1,0,-1],[-1,-1,-1,-1],[0,3,0,1]],[[0,3,0,1],[0,2,-1,0],[-1,-1,-1,-1],[-1,-1,-1,-1]],[[0,3,0,1],[0,2,-1,0],[-1,-1,-1,-1],[-1,-1,-1,-1]],[[-1,-1,-1,-1],[0,1,0,-1],[-1,-1,-1,-1],[0,3,0,1]],[[11,1,0,-1],[14,0,1,0],[14,3,0,1],[11,2,-1,0]],[[-1,-1,-1,-1],[0,0,1,0],[0,3,0,1],[-1,-1,-1,-1]],[[0,0,1,0],[-1,-1,-1,-1],[0,2,-1,0],[-1,-1,-1,-1]],[[-1,-1,-1,-1],[-1,-1,-1,-1],[0,1,0,-1],[0,0,1,0]],[[0,1,0,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],[0,2,-1,0]],[[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1]]],this.gks=[[.27901,.44198,.27901],[.135336,.228569,.272192,.228569,.135336],[.086776,.136394,.178908,.195843,.178908,.136394,.086776],[.063327,.093095,.122589,.144599,.152781,.144599,.122589,.093095,.063327],[.049692,.069304,.089767,.107988,.120651,.125194,.120651,.107988,.089767,.069304,.049692]],this.specpalette=[{r:0,g:0,b:0,a:255},{r:128,g:128,b:128,a:255},{r:0,g:0,b:128,a:255},{r:64,g:64,b:128,a:255},{r:192,g:192,b:192,a:255},{r:255,g:255,b:255,a:255},{r:128,g:128,b:192,a:255},{r:0,g:0,b:192,a:255},{r:128,g:0,b:0,a:255},{r:128,g:64,b:64,a:255},{r:128,g:0,b:128,a:255},{r:168,g:168,b:168,a:255},{r:192,g:128,b:128,a:255},{r:192,g:0,b:0,a:255},{r:255,g:255,b:255,a:255},{r:0,g:128,b:0,a:255}]}return B(e,[{key:"imageToSVG",value:function(e,t,i){var a=this;i=this.checkoptions(i),this.loadImage(e,(function(e){t(a.imagedataToSVG(a.getImgdata(e),i))}),i)}},{key:"imagedataToSVG",value:function(e,t){t=this.checkoptions(t);var i=this.imagedataToTracedata(e,t);return this.getsvgstring(i,t)}},{key:"imageToTracedata",value:function(e,t,i){var a=this;i=this.checkoptions(i),this.loadImage(e,(function(e){t(a.imagedataToTracedata(a.getImgdata(e),i))}),i)}},{key:"imagedataToTracedata",value:function(e,t){t=this.checkoptions(t);var i,a=this.colorquantization(e,t);if(0===t.layering){i={layers:[],palette:a.palette,width:a.array[0].length-2,height:a.array.length-2};for(var n=0;n<a.palette.length;n+=1){var r=this.batchtracepaths(this.internodes(this.pathscan(this.layeringstep(a,n),t.pathomit),t),t.ltres,t.qtres);i.layers.push(r)}}else{var s=this.layering(a);t.layercontainerid&&this.drawLayers(s,this.specpalette,t.scale,t.layercontainerid);var o=this.batchpathscan(s,t.pathomit),l=this.batchinternodes(o,t);i={layers:this.batchtracelayers(l,t.ltres,t.qtres),palette:a.palette,width:e.width,height:e.height}}return i}},{key:"checkoptions",value:function(e){e=e||{},"string"===typeof e&&(e=e.toLowerCase(),e=this.optionpresets[e]?this.optionpresets[e]:{});for(var t=J()(this.optionpresets["default"]),i=0;i<t.length;i+=1)e.hasOwnProperty(t[i])||(e[t[i]]=this.optionpresets["default"][t[i]]);return e}},{key:"colorquantization",value:function(e,t){var i,a,n,r,s,o,l,c,u=[],d=0,p=[],f=e.width*e.height;for(s=0;s<e.height+2;s+=1)for(u[s]=[],r=0;r<e.width+2;r+=1)u[s][r]=-1;for(c=t.pal?t.pal:0===t.colorsampling?this.generatepalette(t.numberofcolors):1===t.colorsampling?this.samplepalette(t.numberofcolors,e):this.samplepalette2(t.numberofcolors,e),t.blurradius>0&&(e=this.blur(e,t.blurradius,t.blurdelta)),l=0;l<t.colorquantcycles;l+=1){if(l>0)for(o=0;o<c.length;o+=1)p[o].n>0&&(c[o]={r:Math.floor(p[o].r/p[o].n),g:Math.floor(p[o].g/p[o].n),b:Math.floor(p[o].b/p[o].n),a:Math.floor(p[o].a/p[o].n)}),p[o].n/f<t.mincolorratio&&l<t.colorquantcycles-1&&(c[o]={r:Math.floor(255*Math.random()),g:Math.floor(255*Math.random()),b:Math.floor(255*Math.random()),a:Math.floor(255*Math.random())});for(r=0;r<c.length;r+=1)p[r]={r:0,g:0,b:0,a:0,n:0};for(s=0;s<e.height;s+=1)for(r=0;r<e.width;r+=1){for(d=4*(s*e.width+r),n=0,a=1024,o=0;o<c.length;o+=1)i=Math.abs(c[o].r-e.data[d])+Math.abs(c[o].g-e.data[d+1])+Math.abs(c[o].b-e.data[d+2])+Math.abs(c[o].a-e.data[d+3]),i<a&&(a=i,n=o);p[n].r+=e.data[d],p[n].g+=e.data[d+1],p[n].b+=e.data[d+2],p[n].a+=e.data[d+3],p[n].n+=1,u[s+1][r+1]=n}}return{array:u,palette:c}}},{key:"samplepalette",value:function(e,t){for(var i,a=[],n=0;n<e;n+=1)i=4*Math.floor(Math.random()*t.data.length/4),a.push({r:t.data[i],g:t.data[i+1],b:t.data[i+2],a:t.data[i+3]});return a}},{key:"samplepalette2",value:function(e,t){for(var i,a=[],n=Math.ceil(Math.sqrt(e)),r=Math.ceil(e/n),s=t.width/(n+1),o=t.height/(r+1),l=0;l<r;l+=1)for(var c=0;c<n;c+=1){if(a.length===e)break;i=4*Math.floor((l+1)*o*t.width+(c+1)*s),a.push({r:t.data[i],g:t.data[i+1],b:t.data[i+2],a:t.data[i+3]})}return a}},{key:"generatepalette",value:function(e){var t,i,a,n=[];if(e<8)for(var r=Math.floor(255/(e-1)),s=0;s<e;s+=1)n.push({r:s*r,g:s*r,b:s*r,a:255});else{var o=Math.floor(Math.pow(e,1/3)),l=Math.floor(255/(o-1)),c=e-o*o*o;for(t=0;t<o;t+=1)for(i=0;i<o;i+=1)for(a=0;a<o;a+=1)n.push({r:t*l,g:i*l,b:a*l,a:255});for(t=0;t<c;t+=1)n.push({r:Math.floor(255*Math.random()),g:Math.floor(255*Math.random()),b:Math.floor(255*Math.random()),a:Math.floor(255*Math.random())})}return n}},{key:"layering",value:function(e){var t,i,a,n,r,s,o,l,c,u,d,p=[],f=0,A=e.array.length,h=e.array[0].length;for(d=0;d<e.palette.length;d+=1)for(p[d]=[],u=0;u<A;u+=1)for(p[d][u]=[],c=0;c<h;c+=1)p[d][u][c]=0;for(u=1;u<A-1;u+=1)for(c=1;c<h-1;c+=1)f=e.array[u][c],t=e.array[u-1][c-1]===f?1:0,i=e.array[u-1][c]===f?1:0,a=e.array[u-1][c+1]===f?1:0,n=e.array[u][c-1]===f?1:0,r=e.array[u][c+1]===f?1:0,s=e.array[u+1][c-1]===f?1:0,o=e.array[u+1][c]===f?1:0,l=e.array[u+1][c+1]===f?1:0,p[f][u+1][c+1]=1+2*r+4*l+8*o,n||(p[f][u+1][c]=2+4*o+8*s),i||(p[f][u][c+1]=0+2*a+4*r+8),t||(p[f][u][c]=0+2*i+4+8*n);return p}},{key:"layeringstep",value:function(e,t){var i,a,n=[],r=e.array.length,s=e.array[0].length;for(a=0;a<r;a+=1)for(n[a]=[],i=0;i<s;i+=1)n[a][i]=0;for(a=1;a<r;a+=1)for(i=1;i<s;i+=1)n[a][i]=(e.array[a-1][i-1]===t?1:0)+(e.array[a-1][i]===t?2:0)+(e.array[a][i-1]===t?8:0)+(e.array[a][i]===t?4:0);return n}},{key:"pathscan",value:function(e,t){for(var i,a=[],n=0,r=0,s=0,o=0,l=e[0].length,c=e.length,u=0,d=!0,p=!1,f=0;f<c;f+=1)for(var A=0;A<l;A+=1)if(4===e[f][A]||11===e[f][A]){s=A,o=f,a[n]={},a[n].points=[],a[n].boundingbox=[s,o,s,o],a[n].holechildren=[],d=!1,r=0,p=11===e[f][A],u=1;while(!d){if(a[n].points[r]={},a[n].points[r].x=s-1,a[n].points[r].y=o-1,a[n].points[r].t=e[o][s],s-1<a[n].boundingbox[0]&&(a[n].boundingbox[0]=s-1),s-1>a[n].boundingbox[2]&&(a[n].boundingbox[2]=s-1),o-1<a[n].boundingbox[1]&&(a[n].boundingbox[1]=o-1),o-1>a[n].boundingbox[3]&&(a[n].boundingbox[3]=o-1),i=this.pathscan_combined_lookup[e[o][s]][u],e[o][s]=i[0],u=i[1],s+=i[2],o+=i[3],s-1===a[n].points[0].x&&o-1===a[n].points[0].y)if(d=!0,a[n].points.length<t)a.pop();else{if(a[n].isholepath=!!p,p){for(var h=0,m=[-1,-1,l+1,c+1],g=0;g<n;g++)!a[g].isholepath&&this.boundingboxincludes(a[g].boundingbox,a[n].boundingbox)&&this.boundingboxincludes(m,a[g].boundingbox)&&(h=g,m=a[g].boundingbox);a[h].holechildren.push(n)}n+=1}r+=1}}return a}},{key:"boundingboxincludes",value:function(e,t){return e[0]<t[0]&&e[1]<t[1]&&e[2]>t[2]&&e[3]>t[3]}},{key:"batchpathscan",value:function(e,t){var i=[];for(var a in e)e.hasOwnProperty(a)&&(i[a]=this.pathscan(e[a],t));return i}},{key:"internodes",value:function(e,t){var i,a,n=[],r=0,s=0,o=0,l=0,c=0;for(i=0;i<e.length;i+=1)for(n[i]={},n[i].points=[],n[i].boundingbox=e[i].boundingbox,n[i].holechildren=e[i].holechildren,n[i].isholepath=e[i].isholepath,r=e[i].points.length,a=0;a<r;a+=1)s=(a+1)%r,o=(a+2)%r,l=(a-1+r)%r,c=(a-2+r)%r,t.rightangleenhance&&this.testrightangle(e[i],c,l,a,s,o)&&(n[i].points.length>0&&(n[i].points[n[i].points.length-1].linesegment=this.getdirection(n[i].points[n[i].points.length-1].x,n[i].points[n[i].points.length-1].y,e[i].points[a].x,e[i].points[a].y)),n[i].points.push({x:e[i].points[a].x,y:e[i].points[a].y,linesegment:this.getdirection(e[i].points[a].x,e[i].points[a].y,(e[i].points[a].x+e[i].points[s].x)/2,(e[i].points[a].y+e[i].points[s].y)/2)})),n[i].points.push({x:(e[i].points[a].x+e[i].points[s].x)/2,y:(e[i].points[a].y+e[i].points[s].y)/2,linesegment:this.getdirection((e[i].points[a].x+e[i].points[s].x)/2,(e[i].points[a].y+e[i].points[s].y)/2,(e[i].points[s].x+e[i].points[o].x)/2,(e[i].points[s].y+e[i].points[o].y)/2)});return n}},{key:"testrightangle",value:function(e,t,i,a,n,r){return e.points[a].x===e.points[t].x&&e.points[a].x===e.points[i].x&&e.points[a].y===e.points[n].y&&e.points[a].y===e.points[r].y||e.points[a].y===e.points[t].y&&e.points[a].y===e.points[i].y&&e.points[a].x===e.points[n].x&&e.points[a].x===e.points[r].x}},{key:"getdirection",value:function(e,t,i,a){var n=8;return n=e<i?t<a?1:t>a?7:0:e>i?t<a?3:t>a?5:4:t<a?2:t>a?6:8,n}},{key:"batchinternodes",value:function(e,t){var i=[];for(var a in e)e.hasOwnProperty(a)&&(i[a]=this.internodes(e[a],t));return i}},{key:"tracepath",value:function(e,t,i){var a,n,r,s=0,o={segments:[]};o.boundingbox=e.boundingbox,o.holechildren=e.holechildren,o.isholepath=e.isholepath;while(s<e.points.length){var l;a=e.points[s].linesegment,n=-1,r=s+1;while((e.points[r].linesegment===a||e.points[r].linesegment===n||-1===n)&&r<e.points.length-1)e.points[r].linesegment!==a&&-1===n&&(n=e.points[r].linesegment),r+=1;r===e.points.length-1&&(r=0),o.segments=N()(l=o.segments).call(l,this.fitseq(e,t,i,s,r)),s=r>0?r:e.points.length}return o}},{key:"fitseq",value:function(e,t,i,a,n){var r;if(n>e.points.length||n<0)return[];var s,o,l,c=a,u=0,d=!0,p=n-a;p<0&&(p+=e.points.length);var f,A=(e.points[n].x-e.points[a].x)/p,h=(e.points[n].y-e.points[a].y)/p,m=(a+1)%e.points.length;while(m!=n)f=m-a,f<0&&(f+=e.points.length),s=e.points[a].x+A*f,o=e.points[a].y+h*f,l=(e.points[m].x-s)*(e.points[m].x-s)+(e.points[m].y-o)*(e.points[m].y-o),l>t&&(d=!1),l>u&&(c=m,u=l),m=(m+1)%e.points.length;if(d)return[{type:"L",x1:e.points[a].x,y1:e.points[a].y,x2:e.points[n].x,y2:e.points[n].y}];var g=c;d=!0,u=0;var v=(g-a)/p,b=(1-v)*(1-v),y=2*(1-v)*v,_=v*v,w=(b*e.points[a].x+_*e.points[n].x-e.points[g].x)/-y,C=(b*e.points[a].y+_*e.points[n].y-e.points[g].y)/-y;m=a+1;while(m!=n)v=(m-a)/p,b=(1-v)*(1-v),y=2*(1-v)*v,_=v*v,s=b*e.points[a].x+y*w+_*e.points[n].x,o=b*e.points[a].y+y*C+_*e.points[n].y,l=(e.points[m].x-s)*(e.points[m].x-s)+(e.points[m].y-o)*(e.points[m].y-o),l>i&&(d=!1),l>u&&(c=m,u=l),m=(m+1)%e.points.length;if(d)return[{type:"Q",x1:e.points[a].x,y1:e.points[a].y,x2:w,y2:C,x3:e.points[n].x,y3:e.points[n].y}];var x=g;return N()(r=this.fitseq(e,t,i,a,x)).call(r,this.fitseq(e,t,i,x,n))}},{key:"batchtracepaths",value:function(e,t,i){var a=[];for(var n in e)e.hasOwnProperty(n)&&a.push(this.tracepath(e[n],t,i));return a}},{key:"batchtracelayers",value:function(e,t,i){var a=[];for(var n in e)e.hasOwnProperty(n)&&(a[n]=this.batchtracepaths(e[n],t,i));return a}},{key:"roundtodec",value:function(e,t){return Number(e.toFixed(t))}},{key:"svgpathstring",value:function(e,t,i,a){var n,r,s,o=e.layers[t],l=o[i],c="";if(a.linefilter&&l.segments.length<3)return c;if(c=N()(n="<path ".concat(a.desc?N()(r='desc="l '.concat(t," p ")).call(r,i,'" '):"")).call(n,this.tosvgcolorstr(e.palette[t],a),'d="'),-1===a.roundcoords){var u;for(c+=N()(u="M ".concat(l.segments[0].x1*a.scale," ")).call(u,l.segments[0].y1*a.scale," "),s=0;s<l.segments.length;s++){var d,p,f;if(c+=N()(d=N()(p="".concat(l.segments[s].type," ")).call(p,l.segments[s].x2*a.scale," ")).call(d,l.segments[s].y2*a.scale," "),l.segments[s].hasOwnProperty("x3"))c+=N()(f="".concat(l.segments[s].x3*a.scale," ")).call(f,l.segments[s].y3*a.scale," ")}c+="Z "}else{var A;for(c+=N()(A="M ".concat(this.roundtodec(l.segments[0].x1*a.scale,a.roundcoords)," ")).call(A,this.roundtodec(l.segments[0].y1*a.scale,a.roundcoords)," "),s=0;s<l.segments.length;s++){var h,m,g;if(c+=N()(h=N()(m="".concat(l.segments[s].type," ")).call(m,this.roundtodec(l.segments[s].x2*a.scale,a.roundcoords)," ")).call(h,this.roundtodec(l.segments[s].y2*a.scale,a.roundcoords)," "),l.segments[s].hasOwnProperty("x3"))c+=N()(g="".concat(this.roundtodec(l.segments[s].x3*a.scale,a.roundcoords)," ")).call(g,this.roundtodec(l.segments[s].y3*a.scale,a.roundcoords)," ")}c+="Z "}for(var v=0;v<l.holechildren.length;v++){var b=o[l.holechildren[v]];if(-1===a.roundcoords){var y,_;if(b.segments[b.segments.length-1].hasOwnProperty("x3"))c+=N()(y="M ".concat(b.segments[b.segments.length-1].x3*a.scale," ")).call(y,b.segments[b.segments.length-1].y3*a.scale," ");else c+=N()(_="M ".concat(b.segments[b.segments.length-1].x2*a.scale," ")).call(_,b.segments[b.segments.length-1].y2*a.scale," ");for(s=b.segments.length-1;s>=0;s--){var w,C;if(c+="".concat(b.segments[s].type," "),b.segments[s].hasOwnProperty("x3"))c+=N()(C="".concat(b.segments[s].x2*a.scale," ")).call(C,b.segments[s].y2*a.scale," ");c+=N()(w="".concat(b.segments[s].x1*a.scale," ")).call(w,b.segments[s].y1*a.scale," ")}}else{var x,k;if(b.segments[b.segments.length-1].hasOwnProperty("x3"))c+=N()(x="M ".concat(this.roundtodec(b.segments[b.segments.length-1].x3*a.scale)," ")).call(x,this.roundtodec(b.segments[b.segments.length-1].y3*a.scale)," ");else c+=N()(k="M ".concat(this.roundtodec(b.segments[b.segments.length-1].x2*a.scale)," ")).call(k,this.roundtodec(b.segments[b.segments.length-1].y2*a.scale)," ");for(s=b.segments.length-1;s>=0;s--){var T,S;if(c+="".concat(b.segments[s].type," "),b.segments[s].hasOwnProperty("x3"))c+=N()(S="".concat(this.roundtodec(b.segments[s].x2*a.scale)," ")).call(S,this.roundtodec(b.segments[s].y2*a.scale)," ");c+=N()(T="".concat(this.roundtodec(b.segments[s].x1*a.scale)," ")).call(T,this.roundtodec(b.segments[s].y1*a.scale)," ")}}c+="Z "}if(c+='" />',a.lcpr||a.qcpr){for(s=0;s<l.segments.length;s++){var I,E,O,B,L,D,M,j,P,U,F,R,Q,H,z,q,G;if(l.segments[s].hasOwnProperty("x3")&&a.qcpr)c+=N()(I=N()(E=N()(O='<circle cx="'.concat(l.segments[s].x2*a.scale,'" cy="')).call(O,l.segments[s].y2*a.scale,'" r="')).call(E,a.qcpr,'" fill="cyan" stroke-width="')).call(I,.2*a.qcpr,'" stroke="black" />'),c+=N()(B=N()(L=N()(D='<circle cx="'.concat(l.segments[s].x3*a.scale,'" cy="')).call(D,l.segments[s].y3*a.scale,'" r="')).call(L,a.qcpr,'" fill="white" stroke-width="')).call(B,.2*a.qcpr,'" stroke="black" />'),c+=N()(M=N()(j=N()(P=N()(U='<line x1="'.concat(l.segments[s].x1*a.scale,'" y1="')).call(U,l.segments[s].y1*a.scale,'" x2="')).call(P,l.segments[s].x2*a.scale,'" y2="')).call(j,l.segments[s].y2*a.scale,'" stroke-width="')).call(M,.2*a.qcpr,'" stroke="cyan" />'),c+=N()(F=N()(R=N()(Q=N()(H='<line x1="'.concat(l.segments[s].x2*a.scale,'" y1="')).call(H,l.segments[s].y2*a.scale,'" x2="')).call(Q,l.segments[s].x3*a.scale,'" y2="')).call(R,l.segments[s].y3*a.scale,'" stroke-width="')).call(F,.2*a.qcpr,'" stroke="cyan" />');if(!l.segments[s].hasOwnProperty("x3")&&a.lcpr)c+=N()(z=N()(q=N()(G='<circle cx="'.concat(l.segments[s].x2*a.scale,'" cy="')).call(G,l.segments[s].y2*a.scale,'" r="')).call(q,a.lcpr,'" fill="white" stroke-width="')).call(z,.2*a.lcpr,'" stroke="black" />')}for(v=0;v<l.holechildren.length;v++){b=o[l.holechildren[v]];for(s=0;s<b.segments.length;s++){var $,V,Y,K,W,X,J,Z,ee,te,ie,ae,ne,re,se,oe,le;if(b.segments[s].hasOwnProperty("x3")&&a.qcpr)c+=N()($=N()(V=N()(Y='<circle cx="'.concat(b.segments[s].x2*a.scale,'" cy="')).call(Y,b.segments[s].y2*a.scale,'" r="')).call(V,a.qcpr,'" fill="cyan" stroke-width="')).call($,.2*a.qcpr,'" stroke="black" />'),c+=N()(K=N()(W=N()(X='<circle cx="'.concat(b.segments[s].x3*a.scale,'" cy="')).call(X,b.segments[s].y3*a.scale,'" r="')).call(W,a.qcpr,'" fill="white" stroke-width="')).call(K,.2*a.qcpr,'" stroke="black" />'),c+=N()(J=N()(Z=N()(ee=N()(te='<line x1="'.concat(b.segments[s].x1*a.scale,'" y1="')).call(te,b.segments[s].y1*a.scale,'" x2="')).call(ee,b.segments[s].x2*a.scale,'" y2="')).call(Z,b.segments[s].y2*a.scale,'" stroke-width="')).call(J,.2*a.qcpr,'" stroke="cyan" />'),c+=N()(ie=N()(ae=N()(ne=N()(re='<line x1="'.concat(b.segments[s].x2*a.scale,'" y1="')).call(re,b.segments[s].y2*a.scale,'" x2="')).call(ne,b.segments[s].x3*a.scale,'" y2="')).call(ae,b.segments[s].y3*a.scale,'" stroke-width="')).call(ie,.2*a.qcpr,'" stroke="cyan" />');if(!b.segments[s].hasOwnProperty("x3")&&a.lcpr)c+=N()(se=N()(oe=N()(le='<circle cx="'.concat(b.segments[s].x2*a.scale,'" cy="')).call(le,b.segments[s].y2*a.scale,'" r="')).call(oe,a.lcpr,'" fill="white" stroke-width="')).call(se,.2*a.lcpr,'" stroke="black" />')}}}return c}},{key:"getsvgstring",value:function(e,t){var i,a,n;t=this.checkoptions(t);for(var r=e.width*t.scale,s=e.height*t.scale,o=N()(i="<svg ".concat(t.viewbox?N()(a='viewBox="0 0 '.concat(r," ")).call(a,s,'" '):N()(n='width="'.concat(r,'" height="')).call(n,s,'" '),'version="1.1" xmlns="http://www.w3.org/2000/svg" desc="Created with imagetracer.js version ')).call(i,this.versionnumber,'" >'),l=0;l<e.layers.length;l+=1)for(var c=0;c<e.layers[l].length;c+=1)e.layers[l][c].isholepath||(o+=this.svgpathstring(e,l,c,t));return o+="</svg>",o}},{key:"compareNumbers",value:function(e,t){return e-t}},{key:"torgbastr",value:function(e){var t,i,a;return N()(t=N()(i=N()(a="rgba(".concat(e.r,",")).call(a,e.g,",")).call(i,e.b,",")).call(t,e.a,")")}},{key:"tosvgcolorstr",value:function(e,t){var i,a,n,r,s,o,l;return N()(i=N()(a=N()(n=N()(r=N()(s=N()(o=N()(l='fill="rgb('.concat(e.r,",")).call(l,e.g,",")).call(o,e.b,')" stroke="rgb(')).call(s,e.r,",")).call(r,e.g,",")).call(n,e.b,')" stroke-width="')).call(a,t.strokewidth,'" opacity="')).call(i,e.a/255,'" ')}},{key:"appendSVGString",value:function(e,t){var i;t?(i=document.getElementById(t),i||(i=document.createElement("div"),i.id=t,document.body.appendChild(i))):(i=document.createElement("div"),document.body.appendChild(i)),i.innerHTML+=e}},{key:"blur",value:function(e,t,i){var a,n,r,s,o,l,c,u,d,p,f={width:e.width,height:e.height,data:[]};if(t=Math.floor(t),t<1)return e;t>5&&(t=5),i=Math.abs(i),i>1024&&(i=1024);var A=this.gks[t-1];for(n=0;n<e.height;n++)for(a=0;a<e.width;a++){for(l=0,c=0,u=0,d=0,p=0,r=-t;r<t+1;r++)a+r>0&&a+r<e.width&&(o=4*(n*e.width+a+r),l+=e.data[o]*A[r+t],c+=e.data[o+1]*A[r+t],u+=e.data[o+2]*A[r+t],d+=e.data[o+3]*A[r+t],p+=A[r+t]);o=4*(n*e.width+a),f.data[o]=Math.floor(l/p),f.data[o+1]=Math.floor(c/p),f.data[o+2]=Math.floor(u/p),f.data[o+3]=Math.floor(d/p)}var h=new Uint8ClampedArray(f.data);for(n=0;n<e.height;n++)for(a=0;a<e.width;a++){for(l=0,c=0,u=0,d=0,p=0,r=-t;r<t+1;r++)n+r>0&&n+r<e.height&&(o=4*((n+r)*e.width+a),l+=h[o]*A[r+t],c+=h[o+1]*A[r+t],u+=h[o+2]*A[r+t],d+=h[o+3]*A[r+t],p+=A[r+t]);o=4*(n*e.width+a),f.data[o]=Math.floor(l/p),f.data[o+1]=Math.floor(c/p),f.data[o+2]=Math.floor(u/p),f.data[o+3]=Math.floor(d/p)}for(n=0;n<e.height;n++)for(a=0;a<e.width;a++)o=4*(n*e.width+a),s=Math.abs(f.data[o]-e.data[o])+Math.abs(f.data[o+1]-e.data[o+1])+Math.abs(f.data[o+2]-e.data[o+2])+Math.abs(f.data[o+3]-e.data[o+3]),s>i&&(f.data[o]=e.data[o],f.data[o+1]=e.data[o+1],f.data[o+2]=e.data[o+2],f.data[o+3]=e.data[o+3]);return f}},{key:"loadImage",value:function(e,t,i){var a=new Image;i&&i.corsenabled&&(a.crossOrigin="Anonymous"),a.src=e,a.onload=function(){var e=document.createElement("canvas");e.width=a.width,e.height=a.height;var i=e.getContext("2d");i.drawImage(a,0,0),t(e)}}},{key:"getImgdata",value:function(e){var t=e.getContext("2d");return t.getImageData(0,0,e.width,e.height)}},{key:"drawLayers",value:function(e,t,i,a){var n,r,s,o,l,c;for(l in i=i||1,a?(c=document.getElementById(a),c||(c=document.createElement("div"),c.id=a,document.body.appendChild(c))):(c=document.createElement("div"),document.body.appendChild(c)),e)if(e.hasOwnProperty(l)){n=e[l][0].length,r=e[l].length;var u=document.createElement("canvas");u.width=n*i,u.height=r*i;var d=u.getContext("2d");for(o=0;o<r;o+=1)for(s=0;s<n;s+=1)d.fillStyle=this.torgbastr(t[e[l][o][s]%t.length]),d.fillRect(s*i,o*i,i,i);c.appendChild(u)}}}],[{key:"tracerDefaultOption",value:function(){return{pathomit:100,ltres:.1,qtres:1,scale:1,strokewidth:5,viewbox:!1,linefilter:!0,desc:!1,rightangleenhance:!1,pal:[{r:0,g:0,b:0,a:255},{r:255,g:255,b:255,a:255}]}}}]),e}(),nn={getActions:function(){return{main:this._mainAction(),shape:this._shapeAction(),crop:this._cropAction(),resize:this._resizeAction(),flip:this._flipAction(),rotate:this._rotateAction(),text:this._textAction(),mask:this._maskAction(),draw:this._drawAction(),icon:this._iconAction(),filter:this._filterAction(),history:this._historyAction()}},_mainAction:function(){var e=this,t=function(){"crop"===e.ui.submenu&&(e.stopDrawingMode(),e.ui.changeMenu("crop"))},i=function(t){"rotate"===e.ui.submenu&&e.ui.rotate.setRangeBarAngle("setAngle",t)},a=function(t){"filter"===e.ui.submenu&&tn()(e.ui).setFilterState(t)},n=function(e){return i(e),a(e),e},r=function(){var t=e._graphics.getZoomMode();e.stopDrawingMode(),t!==De.ZOOM?(e.startDrawingMode(Be.ZOOM),e._graphics.startZoomInMode()):e._graphics.endZoomInMode()},s=function(){var t=e._graphics.getZoomMode();e.stopDrawingMode(),t!==De.HAND?(e.startDrawingMode(Be.ZOOM),e._graphics.startHandMode()):e._graphics.endHandMode()},o=function(){tn()(e.ui)&&tn()(e.ui).initFilterCheckBoxState()};return H()({initLoadImage:function(i,a){return e.loadImageFromURL(i,a).then((function(a){t(),e.ui.initializeImgUrl=i,e.ui.resizeEditor({imageSize:a}),e.clearUndoStack(),e._invoker.fire(Ie.EXECUTE_COMMAND,Oe.LOAD_IMAGE)}))},undo:function(){e.isEmptyUndoStack()||(t(),e.deactivateAll(),e.undo().then(n))},redo:function(){e.isEmptyRedoStack()||(t(),e.deactivateAll(),e.redo().then(n))},reset:function(){t(),e.loadImageFromURL(e.ui.initializeImgUrl,"resetImage").then((function(i){t(),o(),e.ui.resizeEditor({imageSize:i}),e.clearUndoStack(),e._initHistory()}))},delete:function(){e.ui.changeHelpButtonEnabled("delete",!1),t(),e.removeActiveObject(),e.activeObjectId=null},deleteAll:function(){t(),e.clearObjects(),e.ui.changeHelpButtonEnabled("delete",!1),e.ui.changeHelpButtonEnabled("deleteAll",!1)},load:function(i){nt()||alert("This browser does not support file-api"),e.ui.initializeImgUrl=F().createObjectURL(i),e.loadImageFromFile(i).then((function(i){t(),o(),e.clearUndoStack(),e.ui.activeMenuEvent(),e.ui.resizeEditor({imageSize:i}),e._clearHistory(),e._invoker.fire(Ie.EXECUTE_COMMAND,Oe.LOAD_IMAGE)}))["catch"]((function(e){return P().reject(e)}))},download:function(){var t,i,a,n=e.toDataURL(),r=e.getImageName();nt()&&window.saveAs?(t=ct(n),i=t.type.split("/")[1],r.split(".").pop()!==i&&(r+=".".concat(i)),saveAs(t,r)):(a=window.open(),a.document.body.innerHTML="<img src='".concat(n,"'>"))},history:function(t){e.ui.toggleHistoryMenu(t)},zoomIn:function(){e.ui.toggleZoomButtonStatus("zoomIn"),e.deactivateAll(),r()},zoomOut:function(){e._graphics.zoomOut()},hand:function(){e.ui.offZoomInButtonStatus(),e.ui.toggleZoomButtonStatus("hand"),e.deactivateAll(),s()}},this._commonAction())},_iconAction:function(){var e=this;return H()({changeColor:function(t){e.activeObjectId&&e.changeIconColor(e.activeObjectId,t)},addIcon:function(t,i){e.startDrawingMode("ICON"),e.setDrawingIcon(t,i)},cancelAddIcon:function(){e.ui.icon.clearIconType(),e.changeSelectableAll(!0),e.changeCursor("default"),e.stopDrawingMode()},registerDefaultIcons:function(t,i){var a={};a[t]=i,e.registerIcons(a)},registerCustomIcon:function(t,i){var a=new an;a.imageToSVG(t,(function(t){var a=t.match(/path[^>]*d="([^"]*)"/),n=ie(a,2),r=n[1],s={};s[i.name]=r,e.registerIcons(s),e.addIcon(i.name,{left:100,top:100})}),an.tracerDefaultOption())}},this._commonAction())},_drawAction:function(){var e=this;return H()({setDrawMode:function(t,i){e.stopDrawingMode(),"free"===t?e.startDrawingMode("FREE_DRAWING",i):e.startDrawingMode("LINE_DRAWING",i)},setColor:function(t){e.setBrush({color:t})}},this._commonAction())},_maskAction:function(){var e=this;return H()({loadImageFromURL:function(t,i){return e.loadImageFromURL(e.toDataURL(),"FilterImage").then((function(){e.addImageObject(t).then((function(){F().revokeObjectURL(i)})),e._invoker.fire(Ie.EXECUTE_COMMAND,Oe.LOAD_MASK_IMAGE)}))},applyFilter:function(){e.applyFilter("mask",{maskObjId:e.activeObjectId})}},this._commonAction())},_textAction:function(){var e=this;return H()({changeTextStyle:function(t,i){e.activeObjectId&&e.changeTextStyle(e.activeObjectId,t,i)}},this._commonAction())},_rotateAction:function(){var e=this;return H()({rotate:function(t,i){e.rotate(t,i),e.ui.resizeEditor(),e.ui.rotate.setRangeBarAngle("rotate",t)},setAngle:function(t,i){e.setAngle(t,i),e.ui.resizeEditor(),e.ui.rotate.setRangeBarAngle("setAngle",t)}},this._commonAction())},_shapeAction:function(){var e=this;return H()({changeShape:function(t,i){e.activeObjectId&&e.changeShape(e.activeObjectId,t,i)},setDrawingShape:function(t){e.setDrawingShape(t)}},this._commonAction())},_cropAction:function(){var e=this;return H()({crop:function(){var t=e.getCropzoneRect();t&&!It(t)&&e.crop(t).then((function(){e.stopDrawingMode(),e.ui.resizeEditor(),e.ui.changeMenu("crop"),e._invoker.fire(Ie.EXECUTE_COMMAND,Oe.CROP)}))["catch"]((function(e){return P().reject(e)}))},cancel:function(){e.stopDrawingMode(),e.ui.changeMenu("crop")},preset:function(t){switch(t){case"preset-square":e.setCropzoneRect(1);break;case"preset-3-2":e.setCropzoneRect(1.5);break;case"preset-4-3":e.setCropzoneRect(4/3);break;case"preset-5-4":e.setCropzoneRect(5/4);break;case"preset-7-5":e.setCropzoneRect(1.4);break;case"preset-16-9":e.setCropzoneRect(16/9);break;default:e.setCropzoneRect(),e.ui.crop.changeApplyButtonStatus(!1);break}}},this._commonAction())},_resizeAction:function(){var e=this;return H()({getCurrentDimensions:function(){return e._graphics.getCurrentDimensions()},preview:function(t,i,a){var n=e._graphics.getCurrentDimensions(),r=function(){return n.width/n.height},s={};switch(t){case"width":s.width=i,s.height=a?i/r():n.height;break;case"height":s.height=i,s.width=a?i*r():n.width;break;default:s=n}e._graphics.resize(s).then((function(){e.ui.resizeEditor()})),a&&(e.ui.resize.setWidthValue(s.width),e.ui.resize.setHeightValue(s.height))},lockAspectRatio:function(t,i,a){var n=e._graphics.getCurrentDimensions(),r=n.width,s=n.height,o=r/s;if(t)if(r>s){var l=a/o,c=i*o;e.ui.resize.setLimit({minWidth:c>i?c:i,minHeight:i,maxWidth:a,maxHeight:l<a?l:a})}else{var u=a*o,d=i/o;e.ui.resize.setLimit({minWidth:i,minHeight:d>i?d:i,maxWidth:u<a?u:a,maxHeight:a})}else e.ui.resize.setLimit({minWidth:i,minHeight:i,maxWidth:a,maxHeight:a})},resize:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t||(t=e._graphics.getCurrentDimensions()),e.resize(t).then((function(){e._graphics.setOriginalDimensions(t),e.stopDrawingMode(),e.ui.resizeEditor(),e.ui.changeMenu("resize")}))["catch"]((function(e){return P().reject(e)}))},reset:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=e._graphics.getOriginalDimensions();e.ui.resize.setWidthValue(i.width,!0),e.ui.resize.setHeightValue(i.height,!0),e._graphics.resize(i).then((function(){t||(e.stopDrawingMode(),e.ui.resizeEditor(),e.ui.changeMenu("resize"))}))}},this._commonAction())},_flipAction:function(){var e=this;return H()({flip:function(t){return e[t]()}},this._commonAction())},_filterAction:function(){var e=this;return H()({applyFilter:function(t,i,a,n){t?e.applyFilter(i,a,n):e.hasFilter(i)&&e.removeFilter(i)}},this._commonAction())},setReAction:function(){var e=this;this.on({undoStackChanged:function(t){t?(e.ui.changeHelpButtonEnabled("undo",!0),e.ui.changeHelpButtonEnabled("reset",!0)):(e.ui.changeHelpButtonEnabled("undo",!1),e.ui.changeHelpButtonEnabled("reset",!1)),e.ui.resizeEditor()},redoStackChanged:function(t){t?e.ui.changeHelpButtonEnabled("redo",!0):e.ui.changeHelpButtonEnabled("redo",!1),e.ui.resizeEditor()},objectActivated:function(t){var i,n;e.activeObjectId=t.id,e.ui.changeHelpButtonEnabled("delete",!0),e.ui.changeHelpButtonEnabled("deleteAll",!0),"cropzone"===t.type?e.ui.crop.changeApplyButtonStatus(!0):a()(i=["rect","circle","triangle"]).call(i,t.type)>-1?(e.stopDrawingMode(),"shape"!==e.ui.submenu&&e.ui.changeMenu("shape",!1,!1),e.ui.shape.setShapeStatus({strokeColor:t.stroke,strokeWidth:t.strokeWidth,fillColor:ce()(t)}),e.ui.shape.setMaxStrokeValue(Math.min(t.width,t.height))):"path"===t.type||"line"===t.type?"draw"!==e.ui.submenu&&(e.ui.changeMenu("draw",!1,!1),e.ui.draw.changeStandbyMode()):a()(n=["i-text","text"]).call(n,t.type)>-1?("text"!==e.ui.submenu&&e.ui.changeMenu("text",!1,!1),e.ui.text.setTextStyleStateOnAction(t)):"icon"===t.type&&(e.stopDrawingMode(),"icon"!==e.ui.submenu&&e.ui.changeMenu("icon",!1,!1),e.ui.icon.setIconPickerColor(ce()(t)))},addText:function(t){var i=e.ui.text,a=i.textColor,n=i.fontSize,r=i.fontStyle,s=i.fontWeight,o=i.underline,l="Noto Sans";e.addText("Double Click",{position:t.originPosition,styles:{fill:a,fontSize:n,fontFamily:l,fontStyle:r,fontWeight:s,underline:o}}).then((function(){e.changeCursor("default")}))},addObjectAfter:function(t){var i;"icon"===t.type?e.ui.icon.changeStandbyMode():a()(i=["rect","circle","triangle"]).call(i,t.type)>-1&&(e.ui.shape.setMaxStrokeValue(Math.min(t.width,t.height)),e.ui.shape.changeStandbyMode())},objectScaled:function(t){var i,n;if(a()(i=["i-text","text"]).call(i,t.type)>-1)e.ui.text.fontSize=it(t.fontSize);else if(a()(n=["rect","circle","triangle"]).call(n,t.type)>=0){var r=t.width,s=t.height,o=e.ui.shape.getStrokeValue();r<o&&e.ui.shape.setStrokeValue(r),s<o&&e.ui.shape.setStrokeValue(s)}},selectionCleared:function(){e.activeObjectId=null,"text"===e.ui.submenu?e.changeCursor("text"):vt(["draw","crop","resize"],e.ui.submenu)||e.stopDrawingMode()}})},_historyAction:function(){var e=this;return{undo:function(t){return e.undo(t)},redo:function(t){return e.redo(t)}}},_commonAction:function(){var e,t,i,a,n=this,r=Be.TEXT,s=Be.CROPPER,o=Be.SHAPE,l=Be.ZOOM,c=Be.RESIZE;return{modeChange:function(e){switch(e){case Le.TEXT:n._changeActivateMode(r);break;case Le.CROP:n.startDrawingMode(s);break;case Le.SHAPE:n._changeActivateMode(o),n.setDrawingShape(n.ui.shape.type,n.ui.shape.options);break;case Le.ZOOM:n.startDrawingMode(l);break;case Le.RESIZE:n.startDrawingMode(c);break;default:break}},deactivateAll:D()(e=this.deactivateAll).call(e,this),changeSelectableAll:D()(t=this.changeSelectableAll).call(t,this),discardSelection:D()(i=this.discardSelection).call(i,this),stopDrawingMode:D()(a=this.stopDrawingMode).call(a,this)}},mixin:function(e){H()(e.prototype,this)}},rn=n(602),sn=n.n(rn),on=n(5573),ln=n.n(on),cn=function(){function e(t,i){E(this,e),this.name=t,this.graphics=i}return B(e,[{key:"fire",value:function(){for(var e=this.graphics,t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];return this.graphics.fire.apply(e,i)}},{key:"setCanvasImage",value:function(e,t){this.graphics.setCanvasImage(e,t)}},{key:"getCanvasElement",value:function(){return this.graphics.getCanvasElement()}},{key:"getCanvas",value:function(){return this.graphics.getCanvas()}},{key:"getCanvasImage",value:function(){return this.graphics.getCanvasImage()}},{key:"getImageName",value:function(){return this.graphics.getImageName()}},{key:"getEditor",value:function(){return this.graphics.getEditor()}},{key:"getName",value:function(){return this.name}},{key:"setImageProperties",value:function(e,t){this.graphics.setImageProperties(e,t)}},{key:"setCanvasCssDimension",value:function(e){this.graphics.setCanvasCssDimension(e)}},{key:"setCanvasBackstoreDimension",value:function(e){this.graphics.setCanvasBackstoreDimension(e)}},{key:"adjustCanvasDimension",value:function(){this.graphics.adjustCanvasDimension()}},{key:"adjustCanvasDimensionBase",value:function(){this.graphics.adjustCanvasDimensionBase()}}]),e}(),un=cn;function dn(e){var t=pn();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function pn(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var fn={padding:0,crossOrigin:"Anonymous"},An=function(e){ri(i,e);var t=dn(i);function i(e){return E(this,i),t.call(this,xe.IMAGE_LOADER,e)}return B(i,[{key:"load",value:function(e,t){var i,a=this;if(e||t)i=this._setBackgroundImage(t).then((function(t){return a.setCanvasImage(e,t),a.adjustCanvasDimension(),t}));else{var n=this.getCanvas();n.backgroundImage=null,n.renderAll(),i=new(P())((function(e){a.setCanvasImage("",null),e()}))}return i}},{key:"_setBackgroundImage",value:function(e){var t=this;return e?new(P())((function(i,a){var n=t.getCanvas();n.setBackgroundImage(e,(function(){var e=n.backgroundImage;e&&e.getElement()?i(e):a(je.loadingImageFailed)}),fn)})):P().reject(je.loadImage)}}]),i}(un),hn=An,mn="tl",gn="tr",vn="mt",bn="ml",yn="mr",_n="mb",wn="bl",Cn="br",xn=[mn,gn,vn,bn,yn,_n,wn,Cn],kn=function(){};function Tn(e){return a()(xn).call(xn,e)>=0}function Sn(e,t){return e>t?"width":"height"}var In=R.fabric.util.createClass(R.fabric.Rect,{initialize:function(e,t,i){t=H()(t,i),t.type="cropzone",this.callSuper("initialize",t),this._addEventHandler(),this.canvas=e,this.options=t},canvasEventDelegation:function(e){var t,i="unregistered",n=this.canvasEventTrigger[e]!==kn;return n?i="registered":a()(t=[Ie.OBJECT_MOVED,Ie.OBJECT_SCALED]).call(t,e)<0&&(i="none"),i},canvasEventRegister:function(e,t){this.canvasEventTrigger[e]=t},_addEventHandler:function(){var e,t,i,a,n;this.canvasEventTrigger=(e={},I(e,Ie.OBJECT_MOVED,kn),I(e,Ie.OBJECT_SCALED,kn),e),this.on({moving:D()(t=this._onMoving).call(t,this),scaling:D()(i=this._onScaling).call(i,this)}),R.fabric.util.addListener(document,"keydown",D()(a=this._onKeyDown).call(a,this)),R.fabric.util.addListener(document,"keyup",D()(n=this._onKeyUp).call(n,this))},_renderCropzone:function(e){var t=7,i=7,a=this.flipX?-1:1,n=this.flipY?-1:1,r=a/this.scaleX,s=n/this.scaleY;e.scale(r,s),this._fillOuterRect(e,"rgba(0, 0, 0, 0.5)"),this.options.lineWidth?(this._fillInnerRect(e),this._strokeBorder(e,"rgb(255, 255, 255)",{lineWidth:this.options.lineWidth})):(this._strokeBorder(e,"rgb(0, 0, 0)",{lineDashWidth:t}),this._strokeBorder(e,"rgb(255, 255, 255)",{lineDashWidth:t,lineDashOffset:i})),e.scale(1/r,1/s)},_render:function(e){this.callSuper("_render",e),this._renderCropzone(e)},_fillOuterRect:function(e,t){var i=this._getCoordinates(),a=i.x,n=i.y;e.save(),e.fillStyle=t,e.beginPath(),e.moveTo(a[0]-1,n[0]-1),e.lineTo(a[3]+1,n[0]-1),e.lineTo(a[3]+1,n[3]+1),e.lineTo(a[0]-1,n[3]+1),e.lineTo(a[0]-1,n[0]-1),e.closePath(),e.moveTo(a[1],n[1]),e.lineTo(a[1],n[2]),e.lineTo(a[2],n[2]),e.lineTo(a[2],n[1]),e.lineTo(a[1],n[1]),e.closePath(),ce()(e).call(e),e.restore()},_fillInnerRect:function(e){var t=this._getCoordinates(),i=t.x,a=t.y,n=this._caculateInnerPosition(i,(i[2]-i[1])/3),r=this._caculateInnerPosition(a,(a[2]-a[1])/3);e.save(),e.strokeStyle="rgba(255, 255, 255, 0.7)",e.lineWidth=this.options.lineWidth,e.beginPath(),e.moveTo(n[0],r[1]),e.lineTo(n[3],r[1]),e.moveTo(n[0],r[2]),e.lineTo(n[3],r[2]),e.moveTo(n[1],r[0]),e.lineTo(n[1],r[3]),e.moveTo(n[2],r[0]),e.lineTo(n[2],r[3]),e.stroke(),e.closePath(),e.restore()},_caculateInnerPosition:function(e,t){var i=[];return i[0]=e[1],i[1]=e[1]+t,i[2]=e[1]+2*t,i[3]=e[2],i},_getCoordinates:function(){var e,t,i=this.canvas,a=this.width,n=this.height,r=this.left,s=this.top,o=a/2,l=n/2,c=i.getHeight(),u=i.getWidth();return{x:Yt()(e=[-(o+r),-o,o,o+(u-r-a)]).call(e,Math.ceil),y:Yt()(t=[-(l+s),-l,l,l+(c-s-n)]).call(t,Math.ceil)}},_strokeBorder:function(e,t,i){var a=i.lineDashWidth,n=i.lineDashOffset,r=i.lineWidth,s=this.width/2,o=this.height/2;e.save(),e.strokeStyle=t,e.setLineDash&&e.setLineDash([a,a]),n&&(e.lineDashOffset=n),r&&(e.lineWidth=r),e.beginPath(),e.moveTo(-s,-o),e.lineTo(s,-o),e.lineTo(s,o),e.lineTo(-s,o),e.lineTo(-s,-o),e.stroke(),e.restore()},_onMoving:function(){var e=this.height,t=this.width,i=this.left,a=this.top,n=this.canvas.getWidth()-t,r=this.canvas.getHeight()-e;this.left=Ze(i,0,n),this.top=Ze(a,0,r),this.canvasEventTrigger[Ie.OBJECT_MOVED](this)},_onScaling:function(e){var t=e.transform.corner,i=this.canvas.getPointer(e.e),a=this._calcScalingSizeFromPointer(i,t);this.scale(1).set(a),this.canvasEventTrigger[Ie.OBJECT_SCALED](this)},_calcScalingSizeFromPointer:function(e,t){var i=Tn(t);return i&&this._resizeCropZone(e,t)},adjustRatioCropzoneSize:function(e){var t=e.width,i=e.height,a=e.leftMaker,n=e.topMaker,r=e.maxWidth,s=e.maxHeight,o=e.scaleTo;if(t=r?Ze(t,1,r):t,i=s?Ze(i,1,s):i,!this.presetRatio)return this._withShiftKey&&(t>i?i=t:i>t&&(t=i)),{width:t,height:i,left:a(t),top:n(i)};"width"===o?i=t/this.presetRatio:t=i*this.presetRatio;var l=Math.min(r/t,s/i);if(l<=1){var c,u=Yt()(c=[t,i]).call(c,(function(e){return e*l})),d=ie(u,2);t=d[0],i=d[1]}return{width:t,height:i,left:a(t),top:n(i)}},_getCropzoneRectInfo:function(){var e=this.canvas,t=e.width,i=e.height,a=this.getBoundingRect(!1,!0),n=a.top,r=a.left,s=a.width,o=a.height;return{rectTop:n,rectLeft:r,rectWidth:s,rectHeight:o,rectRight:r+s,rectBottom:n+o,canvasWidth:t,canvasHeight:i}},_resizeCropZone:function(e,t){var i=e.x,a=e.y,n=this._getCropzoneRectInfo(),r=n.rectWidth,s=n.rectHeight,o=n.rectTop,l=n.rectLeft,c=n.rectBottom,u=n.rectRight,d=n.canvasWidth,p=n.canvasHeight,f={tl:{width:u-i,height:c-a,leftMaker:function(e){return u-e},topMaker:function(e){return c-e},maxWidth:u,maxHeight:c,scaleTo:Sn(l-i,o-a)},tr:{width:i-l,height:c-a,leftMaker:function(){return l},topMaker:function(e){return c-e},maxWidth:d-l,maxHeight:c,scaleTo:Sn(i-u,o-a)},mt:{width:r,height:c-a,leftMaker:function(){return l},topMaker:function(e){return c-e},maxWidth:d-l,maxHeight:c,scaleTo:"height"},ml:{width:u-i,height:s,leftMaker:function(e){return u-e},topMaker:function(){return o},maxWidth:u,maxHeight:p-o,scaleTo:"width"},mr:{width:i-l,height:s,leftMaker:function(){return l},topMaker:function(){return o},maxWidth:d-l,maxHeight:p-o,scaleTo:"width"},mb:{width:r,height:a-o,leftMaker:function(){return l},topMaker:function(){return o},maxWidth:d-l,maxHeight:p-o,scaleTo:"height"},bl:{width:u-i,height:a-o,leftMaker:function(e){return u-e},topMaker:function(){return o},maxWidth:u,maxHeight:p-o,scaleTo:Sn(l-i,a-c)},br:{width:i-l,height:a-o,leftMaker:function(){return l},topMaker:function(){return o},maxWidth:d-l,maxHeight:p-o,scaleTo:Sn(i-u,a-c)}};return this.adjustRatioCropzoneSize(f[t])},isValid:function(){return this.left>=0&&this.top>=0&&this.width>0&&this.height>0},_onKeyDown:function(e){var t=e.keyCode;t===Me.SHIFT&&(this._withShiftKey=!0)},_onKeyUp:function(e){var t=e.keyCode;t===Me.SHIFT&&(this._withShiftKey=!1)}}),En=In;function On(e){var t=Bn();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function Bn(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var Ln=10,Dn={presetRatio:null,top:-10,left:-10,height:1,width:1},Mn=function(e){ri(i,e);var t=On(i);function i(e){var a,n,r,s,o,l;return E(this,i),l=t.call(this,xe.CROPPER,e),l._cropzone=null,l._startX=null,l._startY=null,l._withShiftKey=!1,l._listeners={keydown:D()(a=l._onKeyDown).call(a,li(l)),keyup:D()(n=l._onKeyUp).call(n,li(l)),mousedown:D()(r=l._onFabricMouseDown).call(r,li(l)),mousemove:D()(s=l._onFabricMouseMove).call(s,li(l)),mouseup:D()(o=l._onFabricMouseUp).call(o,li(l))},l}return B(i,[{key:"start",value:function(){if(!this._cropzone){var e=this.getCanvas();e.forEachObject((function(e){e.evented=!1})),this._cropzone=new En(e,H()({left:0,top:0,width:.5,height:.5,strokeWidth:0,cornerSize:10,cornerColor:"black",fill:"transparent"},Te,this.graphics.cropSelectionStyle)),e.discardActiveObject(),e.add(this._cropzone),e.on("mouse:down",this._listeners.mousedown),e.selection=!1,e.defaultCursor="crosshair",R.fabric.util.addListener(document,"keydown",this._listeners.keydown),R.fabric.util.addListener(document,"keyup",this._listeners.keyup)}}},{key:"end",value:function(){var e=this.getCanvas(),t=this._cropzone;t&&(e.remove(t),e.selection=!0,e.defaultCursor="default",e.off("mouse:down",this._listeners.mousedown),e.forEachObject((function(e){e.evented=!0})),this._cropzone=null,R.fabric.util.removeListener(document,"keydown",this._listeners.keydown),R.fabric.util.removeListener(document,"keyup",this._listeners.keyup))}},{key:"changeVisibility",value:function(e){this._cropzone&&this._cropzone.set({visible:e})}},{key:"_onFabricMouseDown",value:function(e){var t=this.getCanvas();if(!e.target){t.selection=!1;var i=t.getPointer(e.e);this._startX=i.x,this._startY=i.y,t.on({"mouse:move":this._listeners.mousemove,"mouse:up":this._listeners.mouseup})}}},{key:"_onFabricMouseMove",value:function(e){var t=this.getCanvas(),i=t.getPointer(e.e),a=i.x,n=i.y,r=this._cropzone;Math.abs(a-this._startX)+Math.abs(n-this._startY)>Ln&&(t.remove(r),r.set(this._calcRectDimensionFromPoint(a,n,r.presetRatio)),t.add(r),t.setActiveObject(r))}},{key:"_calcRectDimensionFromPoint",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=this.getCanvas(),n=a.getWidth(),r=a.getHeight(),s=this._startX,o=this._startY,l=Ze(e,0,s),c=Ze(t,0,o),u=Ze(e,s,n)-l,d=Ze(t,o,r)-c;return this._withShiftKey&&!i?(u>d?d=u:d>u&&(u=d),s>=e&&(l=s-u),o>=t&&(c=o-d)):i&&(d=u/i,s>=e&&(l=Ze(s-u,0,n)),o>=t&&(c=Ze(o-d,0,r)),c+d>r&&(d=r-c,u=d*i,s>=e&&(l=Ze(s-u,0,n)),o>=t&&(c=Ze(o-d,0,r)))),{left:l,top:c,width:u,height:d}}},{key:"_onFabricMouseUp",value:function(){var e=this._cropzone,t=this._listeners,i=this.getCanvas();i.setActiveObject(e),i.off({"mouse:move":t.mousemove,"mouse:up":t.mouseup})}},{key:"getCroppedImageData",value:function(e){var t=this.getCanvas(),i=t.contains(this._cropzone);if(!e)return null;i&&t.remove(this._cropzone);var a={imageName:this.getImageName(),url:t.toDataURL(e)};return i&&t.add(this._cropzone),a}},{key:"getCropzoneRect",value:function(){var e=this._cropzone;return e.isValid()?{left:e.left,top:e.top,width:e.width,height:e.height}:null}},{key:"setCropzoneRect",value:function(e){var t=this.getCanvas(),i=this._cropzone;t.discardActiveObject(),t.selection=!1,t.remove(i),i.set(e?this._getPresetPropertiesForCropSize(e):Dn),t.add(i),t.selection=!0,e&&t.setActiveObject(i)}},{key:"_getPresetPropertiesForCropSize",value:function(e){var t,i,a=this.getCanvas(),n=a.getWidth(),r=a.getHeight(),s=n>=r?n:r,o=function(e,t){return e>t?t/e:1},l=s*e,c=s,u=o(l,n),d=Yt()(t=[l,c]).call(t,(function(e){return e*u})),p=ie(d,2);l=p[0],c=p[1];var f=o(c,r),A=Yt()(i=[l,c]).call(i,(function(e){return ut(e*f)})),h=ie(A,2);return l=h[0],c=h[1],{presetRatio:e,top:(r-c)/2,left:(n-l)/2,width:l,height:c}}},{key:"_onKeyDown",value:function(e){e.keyCode===Me.SHIFT&&(this._withShiftKey=!0)}},{key:"_onKeyUp",value:function(e){e.keyCode===Me.SHIFT&&(this._withShiftKey=!1)}}]),i}(un),Nn=Mn;function jn(e){var t=Pn();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function Pn(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var Un=function(e){ri(i,e);var t=jn(i);function i(e){return E(this,i),t.call(this,xe.FLIP,e)}return B(i,[{key:"getCurrentSetting",value:function(){var e=this.getCanvasImage();return{flipX:e.flipX,flipY:e.flipY}}},{key:"set",value:function(e){var t=this.getCurrentSetting(),i=t.flipX!==e.flipX,a=t.flipY!==e.flipY;return i||a?(H()(t,e),this.setImageProperties(t,!0),this._invertAngle(i,a),this._flipObjects(i,a),P().resolve({flipX:t.flipX,flipY:t.flipY,angle:this.getCanvasImage().angle})):P().reject(je.flip)}},{key:"_invertAngle",value:function(e,t){var i=this.getCanvasImage(),a=i.angle;e&&(a*=-1),t&&(a*=-1),i.rotate(qt()(a)).setCoords()}},{key:"_flipObjects",value:function(e,t){var i=this.getCanvas();e&&i.forEachObject((function(e){e.set({angle:qt()(-1*e.angle),flipX:!e.flipX,left:i.width-e.left}).setCoords()})),t&&i.forEachObject((function(e){e.set({angle:qt()(-1*e.angle),flipY:!e.flipY,top:i.height-e.top}).setCoords()})),i.renderAll()}},{key:"reset",value:function(){return this.set({flipX:!1,flipY:!1})}},{key:"flipX",value:function(){var e=this.getCurrentSetting();return this.set({flipX:!e.flipX,flipY:e.flipY})}},{key:"flipY",value:function(){var e=this.getCurrentSetting();return this.set({flipX:e.flipX,flipY:!e.flipY})}}]),i}(un),Fn=Un;function Rn(e){var t=Qn();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function Qn(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var Hn=function(e){ri(i,e);var t=Rn(i);function i(e){return E(this,i),t.call(this,xe.ROTATION,e)}return B(i,[{key:"getCurrentAngle",value:function(){return this.getCanvasImage().angle}},{key:"setAngle",value:function(e){var t=this.getCurrentAngle()%360;e%=360;var i=this.getCanvasImage(),a=i.getCenterPoint();i.set({angle:e}).setCoords(),this.adjustCanvasDimension();var n=i.getCenterPoint();return this._rotateForEachObject(a,n,e-t),P().resolve(e)}},{key:"_rotateForEachObject",value:function(e,t,i){var a=this.getCanvas(),n={x:e.x-t.x,y:e.y-t.y};a.forEachObject((function(t){var a=t.getCenterPoint(),r=R.fabric.util.degreesToRadians(i),s=R.fabric.util.rotatePoint(a,e,r);t.set({left:s.x-n.x,top:s.y-n.y,angle:(t.angle+i)%360}),t.setCoords()})),a.renderAll()}},{key:"rotate",value:function(e){var t=this.getCurrentAngle();return this.setAngle(t+e)}}]),i}(un),zn=Hn;function qn(e){var t=Gn();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function Gn(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var $n=function(e){ri(i,e);var t=qn(i);function i(e){var a;return E(this,i),a=t.call(this,xe.FREE_DRAWING,e),a.width=12,a.oColor=new R.fabric.Color("rgba(0, 0, 0, 0.5)"),a}return B(i,[{key:"start",value:function(e){var t=this.getCanvas();t.isDrawingMode=!0,this.setBrush(e)}},{key:"setBrush",value:function(e){var t=this.getCanvas().freeDrawingBrush;e=e||{},this.width=e.width||this.width,e.color&&(this.oColor=new R.fabric.Color(e.color)),t.width=this.width,t.color=this.oColor.toRgba()}},{key:"end",value:function(){var e=this.getCanvas();e.isDrawingMode=!1}}]),i}(un),Vn=$n,Yn=30,Kn=2.7,Wn=1.7,Xn=180,Jn=R.fabric.util.createClass(R.fabric.Line,{type:"line",initialize:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.callSuper("initialize",e,t),this.arrowType=t.arrowType},_render:function(e){var t=this.calcLinePoints(),i=t.x1,a=t.y1,n=t.x2,r=t.y2,s={fromX:i,fromY:a,toX:n,toY:r};this.ctx=e,e.lineWidth=this.strokeWidth,this._renderBasicLinePath(s),this._drawDecoratorPath(s),this._renderStroke(e)},_renderBasicLinePath:function(e){var t=e.fromX,i=e.fromY,a=e.toX,n=e.toY;this.ctx.beginPath(),this.ctx.moveTo(t,i),this.ctx.lineTo(a,n)},_drawDecoratorPath:function(e){this._drawDecoratorPathType("head",e),this._drawDecoratorPathType("tail",e)},_drawDecoratorPathType:function(e,t){switch(this.arrowType[e]){case"triangle":this._drawTrianglePath(e,t);break;case"chevron":this._drawChevronPath(e,t);break;default:break}},_drawTrianglePath:function(e,t){var i=this.ctx.lineWidth*Wn;this._drawChevronPath(e,t,i),this.ctx.closePath()},_drawChevronPath:function(e,t,i){var a=this,n=t.fromX,r=t.fromY,s=t.toX,o=t.toY,l=this.ctx;i||(i=this.ctx.lineWidth*Kn);var c="head"===e?[n,r]:[s,o],u=ie(c,2),d=u[0],p=u[1],f="head"===e?[s,o]:[n,r],A=ie(f,2),h=A[0],m=A[1],g=Math.atan2(m-p,h-d)*Xn/Math.PI,v=function(e){return a.getRotatePosition(i,e,{x:d,y:p})};l.moveTo.apply(l,T(v(g+Yn))),l.lineTo(d,p),l.lineTo.apply(l,T(v(g-Yn)))},getRotatePosition:function(e,t,i){var a=t*Math.PI/Xn,n=i.x,r=i.y;return[e*Math.cos(a)+n,e*Math.sin(a)+r]}}),Zn=Jn;function er(e){var t=tr();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function tr(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var ir=function(e){ri(i,e);var t=er(i);function i(e){var a,n,r,s;return E(this,i),s=t.call(this,xe.LINE,e),s._width=12,s._oColor=new R.fabric.Color("rgba(0, 0, 0, 0.5)"),s._listeners={mousedown:D()(a=s._onFabricMouseDown).call(a,li(s)),mousemove:D()(n=s._onFabricMouseMove).call(n,li(s)),mouseup:D()(r=s._onFabricMouseUp).call(r,li(s))},s}return B(i,[{key:"setHeadOption",value:function(e){var t=e.arrowType,i=void 0===t?{head:null,tail:null}:t;this._arrowType=i}},{key:"start",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.getCanvas();t.defaultCursor="crosshair",t.selection=!1,this.setHeadOption(e),this.setBrush(e),t.forEachObject((function(e){e.set({evented:!1})})),t.on({"mouse:down":this._listeners.mousedown})}},{key:"setBrush",value:function(e){var t=this.getCanvas().freeDrawingBrush;e=e||{},this._width=e.width||this._width,e.color&&(this._oColor=new R.fabric.Color(e.color)),t.width=this._width,t.color=this._oColor.toRgba()}},{key:"end",value:function(){var e=this.getCanvas();e.defaultCursor="default",e.selection=!0,e.forEachObject((function(e){e.set({evented:!0})})),e.off("mouse:down",this._listeners.mousedown)}},{key:"_onFabricMouseDown",value:function(e){var t=this.getCanvas(),i=t.getPointer(e.e),a=i.x,n=i.y,r=[a,n,a,n];this._line=new Zn(r,{stroke:this._oColor.toRgba(),strokeWidth:this._width,arrowType:this._arrowType,evented:!1}),this._line.set(Ne.SELECTION_STYLE),t.add(this._line),t.on({"mouse:move":this._listeners.mousemove,"mouse:up":this._listeners.mouseup}),this.fire(Ie.ADD_OBJECT,this._createLineEventObjectProperties())}},{key:"_onFabricMouseMove",value:function(e){var t=this.getCanvas(),i=t.getPointer(e.e);this._line.set({x2:i.x,y2:i.y}),this._line.setCoords(),t.renderAll()}},{key:"_onFabricMouseUp",value:function(){var e=this.getCanvas();this.fire(Ie.OBJECT_ADDED,this._createLineEventObjectProperties()),this._line=null,e.off({"mouse:move":this._listeners.mousemove,"mouse:up":this._listeners.mouseup})}},{key:"_createLineEventObjectProperties",value:function(){var e=this.graphics.createObjectProperties(this._line),t=this._line,i=t.x1,a=t.x2,n=t.y1,r=t.y2;return H()({},e,{startPosition:{x:i,y:n},endPosition:{x:a,y:r}})}}]),i}(un),ar=ir;function nr(e){var t=rr();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function rr(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var sr={fill:"#000000",left:0,top:0},or={fill:"#000000",fontStyle:"normal",fontWeight:"normal",textAlign:"tie-text-align-left",underline:!1},lr=500,cr=function(e){ri(i,e);var t=nr(i);function i(e){var a,n,r,s,o,l;return E(this,i),l=t.call(this,xe.TEXT,e),l._defaultStyles=sr,l._isSelected=!1,l._selectedObj={},l._editingObj={},l._listeners={mousedown:D()(a=l._onFabricMouseDown).call(a,li(l)),select:D()(n=l._onFabricSelect).call(n,li(l)),selectClear:D()(r=l._onFabricSelectClear).call(r,li(l)),scaling:D()(s=l._onFabricScaling).call(s,li(l)),textChanged:D()(o=l._onFabricTextChanged).call(o,li(l))},l._textarea=null,l._ratio=1,l._lastClickTime=(new Date).getTime(),l._editingObjInfos={},l.isPrevEditing=!1,l}return B(i,[{key:"start",value:function(){var e=this,t=this.getCanvas();t.selection=!1,t.defaultCursor="text",t.on({"mouse:down":this._listeners.mousedown,"selection:created":this._listeners.select,"selection:updated":this._listeners.select,"before:selection:cleared":this._listeners.selectClear,"object:scaling":this._listeners.scaling,"text:changed":this._listeners.textChanged}),t.forEachObject((function(t){"i-text"===t.type&&e.adjustOriginPosition(t,"start")})),this.setCanvasRatio()}},{key:"end",value:function(){var e=this,t=this.getCanvas();t.selection=!0,t.defaultCursor="default",t.forEachObject((function(i){"i-text"===i.type&&(""===i.text?t.remove(i):e.adjustOriginPosition(i,"end"))})),t.off({"mouse:down":this._listeners.mousedown,"selection:created":this._listeners.select,"selection:updated":this._listeners.select,"before:selection:cleared":this._listeners.selectClear,"object:selected":this._listeners.select,"object:scaling":this._listeners.scaling,"text:changed":this._listeners.textChanged})}},{key:"adjustOriginPosition",value:function(e,t){var i="center",a="center";"start"===t&&(i="left",a="top");var n=e.getPointByOrigin(i,a),r=n.x,s=n.y;e.set({left:r,top:s,originX:i,originY:a}),e.setCoords()}},{key:"add",value:function(e,t){var i=this;return new(P())((function(a){var n,r=i.getCanvas(),s=null,o=Ne.SELECTION_STYLE,l=i._defaultStyles;i._setInitPos(t.position),t.styles&&(l=H()(l,t.styles)),ya()(t.autofocus)||(t.autofocus=!0),s=new R.fabric.IText(e,l),o=H()({},o,{originX:"left",originY:"top"}),s.set(o),s.on({mouseup:D()(n=i._onFabricMouseUp).call(n,i)}),r.add(s),t.autofocus&&(s.enterEditing(),s.selectAll()),r.getActiveObject()||r.setActiveObject(s),i.isPrevEditing=!0,a(i.graphics.createObjectProperties(s))}))}},{key:"change",value:function(e,t){var i=this;return new(P())((function(a){e.set("text",t),i.getCanvas().renderAll(),a()}))}},{key:"setStyle",value:function(e,t){var i=this;return new(P())((function(a){$()(t,(function(i,a){e[a]===i&&"fontSize"!==a&&(t[a]=or[a]||"")}),i),"textDecoration"in t&&H()(t,i._getTextDecorationAdaptObject(t.textDecoration)),e.set(t),i.getCanvas().renderAll(),a()}))}},{key:"getText",value:function(e){return e.text}},{key:"setSelectedInfo",value:function(e,t){this._selectedObj=e,this._isSelected=t}},{key:"isSelected",value:function(){return this._isSelected}},{key:"getSelectedObj",value:function(){return this._selectedObj}},{key:"setCanvasRatio",value:function(){var e=this.getCanvasElement(),t=re()(e.style.maxWidth,10),i=e.width;this._ratio=i/t}},{key:"getCanvasRatio",value:function(){return this._ratio}},{key:"_getTextDecorationAdaptObject",value:function(e){return{underline:"underline"===e,linethrough:"line-through"===e,overline:"overline"===e}}},{key:"_setInitPos",value:function(e){e=e||this.getCanvasImage().getCenterPoint(),this._defaultStyles.left=e.x,this._defaultStyles.top=e.y}},{key:"_onInput",value:function(){var e=this.getCanvasRatio(),t=this._editingObj,i=this._textarea.style;i.width="".concat(Math.ceil(t.width/e),"px"),i.height="".concat(Math.ceil(t.height/e),"px")}},{key:"_onKeyDown",value:function(){var e=this,t=this.getCanvasRatio(),i=this._editingObj,a=this._textarea.style;h()((function(){i.text(e._textarea.value),a.width="".concat(Math.ceil(i.width/t),"px"),a.height="".concat(Math.ceil(i.height/t),"px")}),0)}},{key:"_onBlur",value:function(){var e=this.getCanvasRatio(),t=this._editingObj,i=this._editingObjInfos,a=this._textarea.value,n=t.width/e-i.width/e,r=t.height/e-i.height/e;if(1===e&&(n/=2,r/=2),this._textarea.style.display="none",t.set({left:i.left+n,top:i.top+r}),a.length){this.getCanvas().add(t);var s={id:Xe(t),type:t.type,text:a};this.fire(Ie.TEXT_CHANGED,s)}}},{key:"_onScroll",value:function(){this._textarea.scrollLeft=0,this._textarea.scrollTop=0}},{key:"_onFabricScaling",value:function(e){var t=e.target;t.fontSize=t.fontSize*t.scaleY,t.scaleX=1,t.scaleY=1}},{key:"_onFabricTextChanged",value:function(e){this.fire(Ie.TEXT_CHANGED,e.target)}},{key:"_onFabricSelectClear",value:function(e){var t=this.getSelectedObj();this.isPrevEditing=!0,this.setSelectedInfo(e.target,!1),t&&""===t.text&&this.getCanvas().remove(t)}},{key:"_onFabricSelect",value:function(e){this.isPrevEditing=!0,this.setSelectedInfo(e.target,!0)}},{key:"_onFabricMouseDown",value:function(e){var t=e.target;t&&!t.isType("text")||(this.isPrevEditing?this.isPrevEditing=!1:this._fireAddText(e))}},{key:"_fireAddText",value:function(e){var t=e.target,i=e.e||{},a=this.getCanvas().getPointer(i);t||this.fire(Ie.ADD_TEXT,{originPosition:{x:a.x,y:a.y},clientPosition:{x:i.clientX||0,y:i.clientY||0}})}},{key:"_onFabricMouseUp",value:function(e){var t=e.target,i=(new Date).getTime();this._isDoubleClick(i)&&!t.isEditing&&t.enterEditing(),t.isEditing&&this.fire(Ie.TEXT_EDITING),this._lastClickTime=i}},{key:"_isDoubleClick",value:function(e){return e-this._lastClickTime<lr}}]),i}(un),ur=cr;function dr(e){var t=pr();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function pr(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var fr={arrow:"M 0 90 H 105 V 120 L 160 60 L 105 0 V 30 H 0 Z",cancel:"M 0 30 L 30 60 L 0 90 L 30 120 L 60 90 L 90 120 L 120 90 L 90 60 L 120 30 L 90 0 L 60 30 L 30 0 Z"},Ar=function(e){ri(i,e);var t=dr(i);function i(e){var a,n,r,s;return E(this,i),s=t.call(this,xe.ICON,e),s._oColor="#000000",s._pathMap=fr,s._type=null,s._iconColor=null,s._handlers={mousedown:D()(a=s._onFabricMouseDown).call(a,li(s)),mousemove:D()(n=s._onFabricMouseMove).call(n,li(s)),mouseup:D()(r=s._onFabricMouseUp).call(r,li(s))},s}return B(i,[{key:"setStates",value:function(e,t){this._type=e,this._iconColor=t}},{key:"start",value:function(){var e=this.getCanvas();e.selection=!1,e.on("mouse:down",this._handlers.mousedown)}},{key:"end",value:function(){var e=this.getCanvas();e.selection=!0,e.off({"mouse:down":this._handlers.mousedown})}},{key:"add",value:function(e,t){var i=this;return new(P())((function(a,n){var r=i.getCanvas(),s=i._pathMap[e],o=Ne.SELECTION_STYLE,l=s?i._createIcon(s):null;i._icon=l,l||n(je.invalidParameters),l.set(H()({type:"icon",fill:i._oColor},o,t,i.graphics.controlStyle)),r.add(l).setActiveObject(l),a(i.graphics.createObjectProperties(l))}))}},{key:"registerPaths",value:function(e){var t=this;$()(e,(function(e,i){t._pathMap[i]=e}),this)}},{key:"setColor",value:function(e,t){this._oColor=e,t&&"icon"===t.get("type")&&(t.set({fill:this._oColor}),this.getCanvas().renderAll())}},{key:"getColor",value:function(e){return ce()(e)}},{key:"_createIcon",value:function(e){return new R.fabric.Path(e)}},{key:"_onFabricMouseDown",value:function(e){var t=this,i=this.getCanvas();this._startPoint=i.getPointer(e.e);var a=this._startPoint,n=a.x,r=a.y;this.add(this._type,{left:n,top:r,fill:this._iconColor}).then((function(){t.fire(Ie.ADD_OBJECT,t.graphics.createObjectProperties(t._icon)),i.on("mouse:move",t._handlers.mousemove),i.on("mouse:up",t._handlers.mouseup)}))}},{key:"_onFabricMouseMove",value:function(e){var t=this.getCanvas();if(this._icon){var i=t.getPointer(e.e),a=(i.x-this._startPoint.x)/this._icon.width,n=(i.y-this._startPoint.y)/this._icon.height;this._icon.set({scaleX:Math.abs(2*a),scaleY:Math.abs(2*n)}),this._icon.setCoords(),t.renderAll()}}},{key:"_onFabricMouseUp",value:function(){var e=this.getCanvas();this.fire(Ie.OBJECT_ADDED,this.graphics.createObjectProperties(this._icon)),this._icon=null,e.off("mouse:down",this._handlers.mousedown),e.off("mouse:move",this._handlers.mousemove),e.off("mouse:up",this._handlers.mouseup)}}]),i}(un),hr=Ar,mr=R.fabric.util.createClass(R.fabric.Image.filters.BlendImage,{applyTo:function(e){if(this.mask){var t=e.canvasEl,i=t.width,a=t.height,n=this._createCanvasOfMask(i,a),r=t.getContext("2d"),s=n.getContext("2d"),o=r.getImageData(0,0,i,a);this._drawMask(s,t,r),this._mapData(s,o,i,a),e.imageData=o}},_createCanvasOfMask:function(e,t){var i=R.fabric.util.createCanvasElement();return i.width=e,i.height=t,i},_drawMask:function(e){var t=this.mask,i=t.getElement(),a=t.angle,n=t.left,r=t.scaleX,s=t.scaleY,o=t.top;e.save(),e.translate(n,o),e.rotate(a*Math.PI/180),e.scale(r,s),e.drawImage(i,-i.width/2,-i.height/2),e.restore()},_mapData:function(e,t,i,a){for(var n=t.data,r=t.height,s=t.width,o=n,l=s*r*4,c=e.getImageData(0,0,i,a).data,u=0;u<l;u+=4)o[u+3]=c[u]}}),gr=mr,vr=R.fabric.util.createClass(R.fabric.Image.filters.Convolute,{type:"Sharpen",initialize:function(){this.matrix=[0,-1,0,-1,5,-1,0,-1,0]}}),br=vr,yr=R.fabric.util.createClass(R.fabric.Image.filters.Convolute,{type:"Emboss",initialize:function(){this.matrix=[1,1,1,1,.7,-1,-1,-1,-1]}}),_r=yr,wr=R.fabric.util.createClass(R.fabric.Image.filters.BaseFilter,{type:"ColorFilter",initialize:function(e){e||(e={}),this.color=e.color||"#FFFFFF",this.threshold=e.threshold||45,this.x=e.x||null,this.y=e.y||null},applyTo:function(e){var t,i,a=e.canvasEl,n=a.getContext("2d"),r=n.getImageData(0,0,a.width,a.height),s=r.data,o=this.threshold,l=R.fabric.Color.sourceFromHex(this.color);for(this.x&&this.y&&(l=this._getColor(r,this.x,this.y)),t=0,i=s.length;t<i;t+=4)this._isOutsideThreshold(s[t],l[0],o)||this._isOutsideThreshold(s[t+1],l[1],o)||this._isOutsideThreshold(s[t+2],l[2],o)||(s[t]=s[t+1]=s[t+2]=s[t+3]=0);n.putImageData(r,0,0)},_isOutsideThreshold:function(e,t,i){var a=e-t;return Math.abs(a)>i},_getColor:function(e,t,i){var a=[0,0,0,0],n=e.data,r=e.width,s=4,o=(r*i+t)*s;return a[0]=n[o],a[1]=n[o+1],a[2]=n[o+2],a[3]=n[o+3],a}}),Cr=wr;function xr(e){var t=kr();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function kr(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var Tr=R.fabric.Image.filters;Tr.Mask=gr,Tr.Sharpen=br,Tr.Emboss=_r,Tr.ColorFilter=Cr;var Sr=function(e){ri(i,e);var t=xr(i);function i(e){return E(this,i),t.call(this,xe.FILTER,e)}return B(i,[{key:"add",value:function(e,t){var i=this;return new(P())((function(a,n){var r=i._getSourceImage(),s=i.getCanvas(),o=i._getFilter(r,e);o||(o=i._createFilter(r,e,t)),o||n(je.invalidParameters),i._changeFilterValues(o,t),i._apply(r,(function(){s.renderAll(),a({type:e,action:"add",options:t})}))}))}},{key:"remove",value:function(e){var t=this;return new(P())((function(i,a){var n=t._getSourceImage(),r=t.getCanvas(),s=t.getOptions(e);n.filters.length||a(je.unsupportedOperation),t._removeFilter(n,e),t._apply(n,(function(){r.renderAll(),i({type:e,action:"remove",options:s})}))}))}},{key:"hasFilter",value:function(e){return!!this._getFilter(this._getSourceImage(),e)}},{key:"getOptions",value:function(e){var t=this._getSourceImage(),i=this._getFilter(t,e);return i?H()({},i.options):null}},{key:"_changeFilterValues",value:function(e,t){$()(t,(function(t,i){q()(e[i])||(e[i]=t)})),$()(e.options,(function(i,a){q()(t[a])||(e.options[a]=t[a])}))}},{key:"_apply",value:function(e,t){e.filters.push();var i=e.applyFilters();i&&t()}},{key:"_getSourceImage",value:function(){return this.getCanvasImage()}},{key:"_createFilter",value:function(e,t,i){var a,n=this._getFabricFilterType(t),r=R.fabric.Image.filters[n];return r&&(a=new r(i),a.options=i,e.filters.push(a)),a}},{key:"_getFilter",value:function(e,t){var i=null;if(e){var a,n,r=this._getFabricFilterType(t),s=e.filters.length;for(n=0;n<s;n+=1)if(a=e.filters[n],a.type===r){i=a;break}}return i}},{key:"_removeFilter",value:function(e,t){var i,a=this._getFabricFilterType(t);e.filters=tn()(i=e.filters).call(i,(function(e){return e.type!==a}))}},{key:"_getFabricFilterType",value:function(e){return e.charAt(0).toUpperCase()+d()(e).call(e,1)}}]),i}(un),Ir=Sr,Er=n(1801),Or=n.n(Er),Br={pixelate:"blocksize",blur:"blur"},Lr={x:"width",y:"height"},Dr=At(Br),Mr=null;function Nr(e){var t=mt(e,"patternSourceCanvas"),i=t.patternSourceCanvas,a=i.getObjects(),n=ie(a,1),r=n[0];return r}function jr(e){var t=e.angle,i=e.flipX,a=e.flipY,n=Nr(e),r=Jr(e),s=r.right,o=r.bottom,l=r.width,c=r.height,u=(l-e.width)/2,d=(c-e.height)/2,p=e.left-e.width/2-u,f=e.top-e.height/2-d,A=l/2-u,h=c/2-d,m=Math.max(l,c)+Math.max(u,d),g=Ur({shapeObj:e,left:A,top:h,width:l,height:c,cropX:p,cropY:f,flipX:i,flipY:a,right:s,bottom:o}),v=ie(g,4);A=v[0],h=v[1],l=v[2],c=v[3],n.set({angle:i===a?-t:t,left:A,top:h,width:l,height:c,cropX:p,cropY:f,flipX:i,flipY:a}),ht(n,{fillImageMaxSize:m})}function Pr(e){var t;return Yt()(t=e.filters).call(t,(function(e){var t=J()(e),i=ie(t,1),a=i[0];return I({},Dr[a],e[a])}))}function Ur(e){var t=e.shapeObj,i=e.left,a=e.top,n=e.width,r=e.height,s=e.cropX,o=e.cropY,l=e.flipX,c=e.flipY,u=e.right,d=e.bottom,p=function(e,i,a,n){return Gr({type:e,outDistance:i,shapeObj:t,flipX:l,flipY:c,left:a,top:n})},f=n,A=r,h=Rr(p,{left:i,top:a,width:n,height:r,cropX:s,cropY:o}),m=ie(h,4);i=m[0],a=m[1],n=m[2],r=m[3];var g=Fr(p,{left:i,top:a,insideCanvasRealImageWidth:n,insideCanvasRealImageHeight:r,right:u,bottom:d,cropX:s,cropY:o,originalWidth:f,originalHeight:A}),v=ie(g,4);return i=v[0],a=v[1],n=v[2],r=v[3],[i,a,n,r]}function Fr(e,t){var i=t.left,a=t.top,n=t.insideCanvasRealImageWidth,r=t.insideCanvasRealImageHeight,s=t.right,o=t.bottom,l=t.cropX,c=t.cropY,u=t.originalWidth,d=t.originalHeight,p=n,f=r,A=Mr,h=A.width,m=A.height;s>h&&l>0&&(p=u-Math.abs(s-h)),o>m&&c>0&&(f=d-Math.abs(o-m));var g={x:(n-p)/2,y:(r-f)/2};return $()(["x","y"],(function(t){var n=g[t];if(n>0){var r=e(t,n,i,a),s=ie(r,2);i=s[0],a=s[1]}})),[i,a,p,f]}function Rr(e,t){var i=t.left,a=t.top,n=t.width,r=t.height,s=t.cropX,o=t.cropY,l={width:n,height:r};return $()(["x","y"],(function(t){var n="x"===t?s:o,r=l[Lr[t]],c=Mr[Lr[t]];if(r>c){var u=(r-c)/2;l[Lr[t]]=c;var d=e(t,u,i,a),p=ie(d,2);i=p[0],a=p[1]}if(n<0){var f=e(t,n,i,a),A=ie(f,2);i=A[0],a=A[1]}})),[i,a,l.width,l.height]}function Qr(e,t,i){var a=qr(e),n=Zr(a,e.angle,t);i.add(n);var r={fill:new R.fabric.Pattern({source:i.getElement(),repeat:"no-repeat"})};return ht(r,{patternSourceCanvas:i}),r}function Hr(e){var t=e.getObjects(),i=ie(t,1),a=i[0],n=mt(a,"fillImageMaxSize"),r=n.fillImageMaxSize;r=Math.max(1,r),e.setDimensions({width:r,height:r}),e.renderAll()}function zr(e,t){var i=mt(e,"patternSourceCanvas"),a=i.patternSourceCanvas,n=a.getObjects(),r=ie(n,1),s=r[0],o=Pr(s);a.remove(s);var l=qr(t,!0),c=Zr(l,t.angle,o);a.add(c)}function qr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Mr&&!t||(Mr=e.toCanvasElement()),Mr}function Gr(e){var t=e.type,i=e.shapeObj,a=e.outDistance,n=e.left,r=e.top,s=e.flipX,o=e.flipY,l=Xr(i),c=[[1,2],[0,3],[0,3],[1,2]],u=Vr(t,l,c),d=Yr(t,l,u),p=u.startPointIndex,f=$r({outDistance:a,startPointIndex:p,flipX:s,flipY:o,reatAngles:d});return[n+f.left,r+f.top]}function $r(e){var t=e.outDistance,i=e.startPointIndex,a=e.flipX,n=e.flipY,r=e.reatAngles,s=t*Math.cos(r[0]*Math.PI/180),o=t*Math.cos(r[1]*Math.PI/180),l=2===i||3===i,c={top:l?s:o,left:l?o:s};return Kr(i,a,n)&&(c.left=-1*c.left),Wr(i,a,n)&&(c.top=-1*c.top),c}function Vr(e,t,i){var a=0,n=0;$()(t,(function(t,i){t[e]<a&&(a=t[e],n=i)}));var r=ie(i[n],2),s=r[0],o=r[1];return{startPointIndex:n,endPointIndex1:s,endPointIndex2:o}}function Yr(e,t,i){var a,n=i.startPointIndex,r=i.endPointIndex1,s=i.endPointIndex2,o="x"===e?180:270;return Yt()(a=[r,s]).call(a,(function(e){var i=t[n],a=t[e],r=i.y-a.y,s=i.x-a.x;return 180*Math.atan2(r,s)/Math.PI-o}))}function Kr(e,t,i){return(!t&&i||!t&&!i)&&0===e||(t&&i||t&&!i)&&1===e||(!t&&!i||!t&&i)&&2===e||(t&&!i||t&&i)&&3===e}function Wr(e,t,i){return(t&&!i||!t&&!i)&&0===e||(!t&&!i||t&&!i)&&1===e||(t&&i||!t&&i)&&2===e||(!t&&i||t&&i)&&3===e}function Xr(e){return[e.getPointByOrigin("left","top"),e.getPointByOrigin("right","top"),e.getPointByOrigin("left","bottom"),e.getPointByOrigin("right","bottom")]}function Jr(e){var t=Xr(e),i=ie(t,4),a=i[0],n=a.x,r=a.y,s=i[1],o=s.x,l=s.y,c=i[2],u=c.x,d=c.y,p=i[3],f=p.x,A=p.y,h=Math.min(n,o,u,f),m=Math.min(r,l,d,A),g=Math.max(n,o,u,f),v=Math.max(r,l,d,A);return{left:h,top:m,right:g,bottom:v,width:g-h,height:v-m}}function Zr(e,t,i){var a,n=new R.fabric.Image(e);return $()(H().apply(void 0,N()(a=[{}]).call(a,T(i))),(function(e,t){var i=gt(t),a=new R.fabric.Image.filters[i](I({},Br[t],e));n.filters.push(a)})),n.applyFilters(),ht(n,{originalAngle:t,fillImageMaxSize:Math.max(n.width,n.height)}),Or().adjustOriginToCenter(n),n}function es(e){var t=ts();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function ts(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var is=H()({strokeWidth:1,stroke:"#000000",fill:"#ffffff",width:1,height:1,rx:0,ry:0},ke),as="rect",ns=20,rs=20;function ss(e,t,i){var a=ce()(e),n=bt(ce()(e)),r=a;a.color&&(r=a.color);var s=null;if("filter"===n){var o=i();s=Qr(t,tn()(a),o)}else s={fill:r};return H()({},e,s)}var os=function(e){ri(i,e);var t=es(i);function i(e){var a,n,r,s,o,l;return E(this,i),l=t.call(this,xe.SHAPE,e),l._shapeObj=null,l._type=as,l._options=H()({},is),l._isSelected=!1,l._startPoint={},l._withShiftKey=!1,l._handlers={mousedown:D()(a=l._onFabricMouseDown).call(a,li(l)),mousemove:D()(n=l._onFabricMouseMove).call(n,li(l)),mouseup:D()(r=l._onFabricMouseUp).call(r,li(l)),keydown:D()(s=l._onKeyDown).call(s,li(l)),keyup:D()(o=l._onKeyUp).call(o,li(l))},l}return B(i,[{key:"start",value:function(){var e=this.getCanvas();this._isSelected=!1,e.defaultCursor="crosshair",e.selection=!1,e.uniformScaling=!0,e.on({"mouse:down":this._handlers.mousedown}),R.fabric.util.addListener(document,"keydown",this._handlers.keydown),R.fabric.util.addListener(document,"keyup",this._handlers.keyup)}},{key:"end",value:function(){var e=this.getCanvas();this._isSelected=!1,e.defaultCursor="default",e.selection=!0,e.uniformScaling=!1,e.off({"mouse:down":this._handlers.mousedown}),R.fabric.util.removeListener(document,"keydown",this._handlers.keydown),R.fabric.util.removeListener(document,"keyup",this._handlers.keyup)}},{key:"setStates",value:function(e,t){this._type=e,t&&(this._options=H()(this._options,t))}},{key:"add",value:function(e,t){var i=this;return new(P())((function(a){var n=i.getCanvas(),r=i._extendOptions(t),s=i._createInstance(e,r),o=i.graphics.createObjectProperties(s);i._bindEventOnShape(s),n.add(s).setActiveObject(s),i._resetPositionFillFilter(s),a(o)}))}},{key:"change",value:function(e,t){var i=this;return new(P())((function(a,n){_t(e)||n(je.unsupportedType);var r="filter"===bt(ce()(t)),s=i.graphics,o=s.canvasImage,l=s.createStaticCanvas;e.set(r?ss(t,o,l):t),r&&i._resetPositionFillFilter(e),i.getCanvas().renderAll(),a()}))}},{key:"makeFillPropertyForUserEvent",value:function(e){var t=yt(e),i={};if(t===ye.FILTER){var a=Nr(e),n=Pr(a);i.type=t,i.filter=n}else i.type=ye.COLOR,i.color=ce()(e)||"transparent";return i}},{key:"processForCopiedObject",value:function(e,t){if(this._bindEventOnShape(e),"filter"===yt(e)){var i=Nr(t),a=Pr(i),n=this.graphics.createStaticCanvas();e.set(Qr(this.graphics.canvasImage,a,n)),this._resetPositionFillFilter(e)}}},{key:"_createInstance",value:function(e,t){var i;switch(e){case"rect":i=new R.fabric.Rect(t);break;case"circle":i=new R.fabric.Ellipse(H()({type:"circle"},t));break;case"triangle":i=new R.fabric.Triangle(t);break;default:i={}}return i}},{key:"_extendOptions",value:function(e){var t=Ne.SELECTION_STYLE,i=this.graphics,a=i.canvasImage,n=i.createStaticCanvas;return e=H()({},is,this._options,t,e),ss(e,a,n)}},{key:"_bindEventOnShape",value:function(e){var t=this,i=this.getCanvas();e.on({added:function(){t._shapeObj=this,Or().setOrigins(t._shapeObj)},selected:function(){t._isSelected=!0,t._shapeObj=this,i.uniformScaling=!0,i.defaultCursor="default",Or().setOrigins(t._shapeObj)},deselected:function(){t._isSelected=!1,t._shapeObj=null,i.defaultCursor="crosshair",i.uniformScaling=!1},modified:function(){var e=t._shapeObj;Or().adjustOriginToCenter(e),Or().setOrigins(e)},modifiedInGroup:function(i){t._fillFilterRePositionInGroupSelection(e,i)},moving:function(){t._resetPositionFillFilter(this)},rotating:function(){t._resetPositionFillFilter(this)},scaling:function(e){var a=i.getPointer(e.e),n=t._shapeObj;i.setCursor("crosshair"),Or().resize(n,a,!0),t._resetPositionFillFilter(this)}})}},{key:"_onFabricMouseDown",value:function(e){if(e.target||(this._isSelected=!1,this._shapeObj=!1),!this._isSelected&&!this._shapeObj){var t=this.getCanvas();this._startPoint=t.getPointer(e.e),t.on({"mouse:move":this._handlers.mousemove,"mouse:up":this._handlers.mouseup})}}},{key:"_onFabricMouseMove",value:function(e){var t=this,i=this.getCanvas(),a=i.getPointer(e.e),n=this._startPoint.x,r=this._startPoint.y,s=n-a.x,o=r-a.y,l=this._shapeObj;l?(this._shapeObj.set({isRegular:this._withShiftKey}),Or().resize(l,a),i.renderAll(),this._resetPositionFillFilter(l)):this.add(this._type,{left:n,top:r,width:s,height:o}).then((function(e){t.fire(Ie.ADD_OBJECT,e)}))}},{key:"_onFabricMouseUp",value:function(){var e=this,t=this.getCanvas(),i=this._startPoint.x,a=this._startPoint.y,n=this._shapeObj;n?n&&(Or().adjustOriginToCenter(n),this.fire(Ie.OBJECT_ADDED,this.graphics.createObjectProperties(n))):this.add(this._type,{left:i,top:a,width:ns,height:rs}).then((function(t){e.fire(Ie.ADD_OBJECT,t)})),t.off({"mouse:move":this._handlers.mousemove,"mouse:up":this._handlers.mouseup})}},{key:"_onKeyDown",value:function(e){e.keyCode===Me.SHIFT&&(this._withShiftKey=!0,this._shapeObj&&(this._shapeObj.isRegular=!0))}},{key:"_onKeyUp",value:function(e){e.keyCode===Me.SHIFT&&(this._withShiftKey=!1,this._shapeObj&&(this._shapeObj.isRegular=!1))}},{key:"_resetPositionFillFilter",value:function(e){if("filter"===yt(e)){var t=mt(e,"patternSourceCanvas"),i=t.patternSourceCanvas,a=Nr(e),n=mt(a,"originalAngle"),r=n.originalAngle;this.graphics.canvasImage.angle!==r&&zr(e,this.graphics.canvasImage);var s=e.originX,o=e.originY;Or().adjustOriginToCenter(e),e.width*=e.scaleX,e.height*=e.scaleY,e.rx*=e.scaleX,e.ry*=e.scaleY,e.scaleX=1,e.scaleY=1,jr(e),ft(e,{originX:s,originY:o}),Hr(i)}}},{key:"_fillFilterRePositionInGroupSelection",value:function(e,t){1===t.scaleX&&1===t.scaleY||t.addWithUpdate();var i=e.angle,a=e.left,n=e.top;R.fabric.util.addTransformToObject(e,t.calcTransformMatrix()),this._resetPositionFillFilter(e),e.set({angle:i,left:a,top:n})}}]),i}(un);function ls(e){var t=cs();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function cs(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var us=10,ds={left:0,top:0,width:0,height:0,stroke:"#000000",strokeWidth:0,fill:"#000000",opacity:.4,evented:!1,selectable:!1,hoverCursor:"auto"},ps={SIZE:.0045,MARGIN:.003,BORDER_RADIUS:.003},fs={SIZE:.0066,MARGIN:.0044,BORDER_RADIUS:.003},As=1,hs=Ie.ZOOM_CHANGED,ms=Ie.ADD_TEXT,gs=Ie.TEXT_EDITING,vs=Ie.OBJECT_MODIFIED,bs=Ie.KEY_DOWN,ys=Ie.KEY_UP,_s=Ie.HAND_STARTED,ws=Ie.HAND_STOPPED,Cs=function(e){ri(i,e);var t=ls(i);function i(e){var a,n,r,s,o,l,c,u,d,p,f,A,h;E(this,i),h=t.call(this,xe.ZOOM,e),h.zoomArea=null,h._startPoint=null,h._centerPoints=[],h.zoomLevel=As,h.zoomMode=De.DEFAULT,h._listeners={startZoom:D()(a=h._onMouseDownWithZoomMode).call(a,li(h)),moveZoom:D()(n=h._onMouseMoveWithZoomMode).call(n,li(h)),stopZoom:D()(r=h._onMouseUpWithZoomMode).call(r,li(h)),startHand:D()(s=h._onMouseDownWithHandMode).call(s,li(h)),moveHand:D()(o=h._onMouseMoveWithHandMode).call(o,li(h)),stopHand:D()(l=h._onMouseUpWithHandMode).call(l,li(h)),zoomChanged:D()(c=h._changeScrollState).call(c,li(h)),keydown:D()(u=h._startHandModeWithSpaceBar).call(u,li(h)),keyup:D()(d=h._endHandModeWithSpaceBar).call(d,li(h))};var m=h.getCanvas();return h.aspectRatio=m.width/m.height,h._verticalScroll=new R.fabric.Rect(ds),h._horizontalScroll=new R.fabric.Rect(ds),m.on(hs,h._listeners.zoomChanged),h.graphics.on(ms,D()(p=h._startTextEditingHandler).call(p,li(h))),h.graphics.on(gs,D()(f=h._startTextEditingHandler).call(f,li(h))),h.graphics.on(vs,D()(A=h._stopTextEditingHandler).call(A,li(h))),h}return B(i,[{key:"attachKeyboardZoomEvents",value:function(){R.fabric.util.addListener(document,bs,this._listeners.keydown),R.fabric.util.addListener(document,ys,this._listeners.keyup)}},{key:"detachKeyboardZoomEvents",value:function(){R.fabric.util.removeListener(document,bs,this._listeners.keydown),R.fabric.util.removeListener(document,ys,this._listeners.keyup)}},{key:"_startTextEditingHandler",value:function(){this.isTextEditing=!0}},{key:"_stopTextEditingHandler",value:function(){this.isTextEditing=!1}},{key:"_startHandModeWithSpaceBar",value:function(e){this.withSpace||this.isTextEditing||e.keyCode===Me.SPACE&&(this.withSpace=!0,this.startHandMode())}},{key:"_endHandModeWithSpaceBar",value:function(e){e.keyCode===Me.SPACE&&(this.withSpace=!1,this.endHandMode())}},{key:"startZoomInMode",value:function(){if(!this.zoomArea){this.endHandMode(),this.zoomMode=De.ZOOM;var e=this.getCanvas();this._changeObjectsEventedState(!1),this.zoomArea=new R.fabric.Rect({left:0,top:0,width:.5,height:.5,stroke:"black",strokeWidth:1,fill:"transparent",hoverCursor:"zoom-in"}),e.discardActiveObject(),e.add(this.zoomArea),e.on("mouse:down",this._listeners.startZoom),e.selection=!1,e.defaultCursor="zoom-in"}}},{key:"endZoomInMode",value:function(){this.zoomMode=De.DEFAULT;var e=this.getCanvas(),t=this._listeners,i=t.startZoom,a=t.moveZoom,n=t.stopZoom;e.selection=!0,e.defaultCursor="auto",e.off({"mouse:down":i,"mouse:move":a,"mouse:up":n}),this._changeObjectsEventedState(!0),e.remove(this.zoomArea),this.zoomArea=null}},{key:"start",value:function(){this.zoomArea=null,this._startPoint=null,this._startHandPoint=null}},{key:"end",value:function(){this.endZoomInMode(),this.endHandMode()}},{key:"startHandMode",value:function(){this.endZoomInMode(),this.zoomMode=De.HAND;var e=this.getCanvas();this._changeObjectsEventedState(!1),e.discardActiveObject(),e.off("mouse:down",this._listeners.startHand),e.on("mouse:down",this._listeners.startHand),e.selection=!1,e.defaultCursor="grab",e.fire(_s)}},{key:"endHandMode",value:function(){this.zoomMode=De.DEFAULT;var e=this.getCanvas();this._changeObjectsEventedState(!0),e.off("mouse:down",this._listeners.startHand),e.selection=!0,e.defaultCursor="auto",this._startHandPoint=null,e.fire(ws)}},{key:"_onMouseDownWithZoomMode",value:function(e){var t=e.target,i=e.e;if(!t){var a=this.getCanvas();a.selection=!1,this._startPoint=a.getPointer(i),this.zoomArea.set({width:0,height:0});var n=this._listeners,r=n.moveZoom,s=n.stopZoom;a.on({"mouse:move":r,"mouse:up":s})}}},{key:"_onMouseMoveWithZoomMode",value:function(e){var t=e.e,i=this.getCanvas(),a=i.getPointer(t),n=a.x,r=a.y,s=this.zoomArea,o=this._startPoint,l=Math.abs(n-o.x),c=Math.abs(r-o.y);l+c>us&&(i.remove(s),s.set(this._calcRectDimensionFromPoint(n,r)),i.add(s))}},{key:"_calcRectDimensionFromPoint",value:function(e,t){var i=this.getCanvas(),a=i.getWidth(),n=i.getHeight(),r=this._startPoint,s=r.x,o=r.y,l=Math.min,c=l(s,e),u=l(o,t),d=Ze(e,s,a)-c,p=Ze(t,o,n)-u;return{left:c,top:u,width:d,height:p}}},{key:"_onMouseUpWithZoomMode",value:function(){var e=this.zoomLevel,t=this.zoomArea,i=this._listeners,a=i.moveZoom,n=i.stopZoom,r=this.getCanvas(),s=this._getCenterPoint(),o=s.x,l=s.y;this._isMaxZoomLevel()||(this._centerPoints.push({x:o,y:l,prevZoomLevel:e,zoomLevel:e+1}),e+=1,r.zoomToPoint({x:o,y:l},e),this._fireZoomChanged(r,e),this.zoomLevel=e),r.off({"mouse:move":a,"mouse:up":n}),r.remove(t),this._startPoint=null}},{key:"_getCenterPoint",value:function(){var e=this.zoomArea,t=e.left,i=e.top,a=e.width,n=e.height,r=this._startPoint,s=r.x,o=r.y,l=this.aspectRatio;return a<us&&n<us?{x:s,y:o}:a>n?{x:t+l*n/2,y:i+n/2}:{x:t+a/2,y:i+a/l/2}}},{key:"zoom",value:function(e){for(var t=e.x,i=e.y,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.zoomLevel,n=this.getCanvas(),r=this._centerPoints,s=r.length-1;s>=0;s-=1){if(r[s].zoomLevel<a)break;var o=r.pop(),l=o.x,c=o.y,u=o.prevZoomLevel;n.zoomToPoint({x:l,y:c},u),this.zoomLevel=u}n.zoomToPoint({x:t,y:i},a),this._isDefaultZoomLevel(a)||this._centerPoints.push({x:t,y:i,zoomLevel:a,prevZoomLevel:this.zoomLevel}),this.zoomLevel=a,this._fireZoomChanged(n,a)}},{key:"zoomOut",value:function(){var e=this._centerPoints;if(e.length){var t=this.getCanvas(),i=e.pop(),a=i.x,n=i.y,r=i.prevZoomLevel;this._isDefaultZoomLevel(r)?t.setViewportTransform([1,0,0,1,0,0]):t.zoomToPoint({x:a,y:n},r),this.zoomLevel=r,this._fireZoomChanged(t,this.zoomLevel)}}},{key:"resetZoom",value:function(){var e=this.getCanvas();e.setViewportTransform([1,0,0,1,0,0]),this.zoomLevel=As,this._centerPoints=[],this._fireZoomChanged(e,this.zoomLevel)}},{key:"_isMaxZoomLevel",value:function(){return this.zoomLevel>=5}},{key:"_movePointOfZoom",value:function(e){var t=e.x,i=e.y,a=this._centerPoints;if(a.length){var n=this.getCanvas(),r=this.zoomLevel,s=a.pop(),o=s.x,l=s.y,c=s.prevZoomLevel,u=o-t,d=l-i;n.zoomToPoint({x:o,y:l},c),n.zoomToPoint({x:u,y:d},r),a.push({x:u,y:d,prevZoomLevel:c,zoomLevel:r}),this._fireZoomChanged(n,r)}}},{key:"_onMouseDownWithHandMode",value:function(e){var t=e.target,i=e.e;if(!t){var a=this.getCanvas();if(!(this.zoomLevel<=As)){a.selection=!1,this._startHandPoint=a.getPointer(i);var n=this._listeners,r=n.moveHand,s=n.stopHand;a.on({"mouse:move":r,"mouse:up":s})}}}},{key:"_onMouseMoveWithHandMode",value:function(e){var t=e.e,i=this.getCanvas(),a=i.getPointer(t),n=a.x,r=a.y,s=n-this._startHandPoint.x,o=r-this._startHandPoint.y;this._movePointOfZoom({x:s,y:o})}},{key:"_onMouseUpWithHandMode",value:function(){var e=this.getCanvas(),t=this._listeners,i=t.moveHand,a=t.stopHand;e.off({"mouse:move":i,"mouse:up":a}),this._startHandPoint=null}},{key:"_changeScrollState",value:function(e){var t=e.viewport,i=e.zoomLevel,a=this.getCanvas();if(a.remove(this._verticalScroll),a.remove(this._horizontalScroll),!this._isDefaultZoomLevel(i)){var n=a.width,r=a.height,s=t.tl,o=t.tr,l=t.bl,c=o.x-s.x,u=l.y-s.y,d=c*c/n,p=u*fs.SIZE,f=Ze(s.x+s.x/n*c,s.x,o.x-d),A=u*fs.MARGIN,h=u*fs.BORDER_RADIUS;this._horizontalScroll.set({left:f,top:l.y-p-A,width:d,height:p,rx:h,ry:h});var m=c*ps.SIZE,g=u*u/r,v=Ze(s.y+s.y/r*u,o.y,l.y-g),b=c*ps.MARGIN,y=c*ps.BORDER_RADIUS;this._verticalScroll.set({left:o.x-m-b,top:v,width:m,height:g,rx:y,ry:y}),this._addScrollBar()}}},{key:"_changeObjectsEventedState",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.getCanvas();t.forEachObject((function(t){t.evented=e}))}},{key:"_addScrollBar",value:function(){var e=this,t=this.getCanvas();t.add(this._horizontalScroll),t.add(this._verticalScroll),this.scrollBarTid&&clearTimeout(this.scrollBarTid),this.scrollBarTid=h()((function(){t.remove(e._horizontalScroll),t.remove(e._verticalScroll)}),3e3)}},{key:"_isDefaultZoomLevel",value:function(e){return e===As}},{key:"_fireZoomChanged",value:function(e,t){e.fire(hs,{viewport:e.calcViewportBoundaries(),zoomLevel:t})}},{key:"mode",get:function(){return this.zoomMode}}]),i}(un),xs=Cs,ks=Lt.create,Ts=Lt.types,Ss=function(){function e(t){E(this,e),this.name=t}return B(e,[{key:"getName",value:function(){return this.name}},{key:"start",value:function(){throw new Error(ks(Ts.UN_IMPLEMENTATION,"start"))}},{key:"end",value:function(){throw new Error(ks(Ts.UN_IMPLEMENTATION,"stop"))}}]),e}(),Is=Ss;function Es(e){var t=Os();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function Os(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var Bs=function(e){ri(i,e);var t=Es(i);function i(){return E(this,i),t.call(this,Be.CROPPER)}return B(i,[{key:"start",value:function(e){var t=e.getComponent(xe.CROPPER);t.start()}},{key:"end",value:function(e){var t=e.getComponent(xe.CROPPER);t.end()}}]),i}(Is),Ls=Bs;function Ds(e){var t=Ms();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function Ms(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var Ns=function(e){ri(i,e);var t=Ds(i);function i(){return E(this,i),t.call(this,Be.FREE_DRAWING)}return B(i,[{key:"start",value:function(e,t){var i=e.getComponent(xe.FREE_DRAWING);i.start(t)}},{key:"end",value:function(e){var t=e.getComponent(xe.FREE_DRAWING);t.end()}}]),i}(Is),js=Ns;function Ps(e){var t=Us();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function Us(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var Fs=function(e){ri(i,e);var t=Ps(i);function i(){return E(this,i),t.call(this,Be.LINE_DRAWING)}return B(i,[{key:"start",value:function(e,t){var i=e.getComponent(xe.LINE);i.start(t)}},{key:"end",value:function(e){var t=e.getComponent(xe.LINE);t.end()}}]),i}(Is),Rs=Fs;function Qs(e){var t=Hs();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function Hs(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var zs=function(e){ri(i,e);var t=Qs(i);function i(){return E(this,i),t.call(this,Be.SHAPE)}return B(i,[{key:"start",value:function(e){var t=e.getComponent(xe.SHAPE);t.start()}},{key:"end",value:function(e){var t=e.getComponent(xe.SHAPE);t.end()}}]),i}(Is),qs=zs;function Gs(e){var t=$s();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function $s(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var Vs=function(e){ri(i,e);var t=Gs(i);function i(){return E(this,i),t.call(this,Be.TEXT)}return B(i,[{key:"start",value:function(e){var t=e.getComponent(xe.TEXT);t.start()}},{key:"end",value:function(e){var t=e.getComponent(xe.TEXT);t.end()}}]),i}(Is),Ys=Vs;function Ks(e){var t=Ws();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function Ws(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var Xs=function(e){ri(i,e);var t=Ks(i);function i(){return E(this,i),t.call(this,Be.ICON)}return B(i,[{key:"start",value:function(e){var t=e.getComponent(xe.ICON);t.start()}},{key:"end",value:function(e){var t=e.getComponent(xe.ICON);t.end()}}]),i}(Is),Js=Xs;function Zs(e){var t=eo();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function eo(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var to=function(e){ri(i,e);var t=Zs(i);function i(){return E(this,i),t.call(this,Be.ZOOM)}return B(i,[{key:"start",value:function(e){var t=e.getComponent(xe.ZOOM);t.start()}},{key:"end",value:function(e){var t=e.getComponent(xe.ZOOM);t.end()}}]),i}(Is),io=to,ao=null;function no(e){ao=e}function ro(){return ao}function so(e,t){var i,a;"activeSelection"===e.type?i=Yt()(a=e.getObjects()).call(a,(function(i){var a=i.angle,n=i.left,r=i.top,s=i.scaleX,o=i.scaleY,l=i.width,c=i.height;R.fabric.util.addTransformToObject(i,e.calcTransformMatrix());var u=t(i);return i.set({angle:a,left:n,top:r,width:l,height:c,scaleX:s,scaleY:o}),u})):i=[t(e)];return i}function oo(e,t,i){return i?{id:e,width:t.width,height:t.height,top:t.top,left:t.left,angle:t.angle,scaleX:t.scaleX,scaleY:t.scaleY}:H()({id:e},t)}function lo(e){var t=co();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function co(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var uo=function(e){ri(i,e);var t=lo(i);function i(e){var a;return E(this,i),a=t.call(this,xe.RESIZE,e),a._dimensions=null,a._originalDimensions=null,a}return B(i,[{key:"getCurrentDimensions",value:function(){var e=this.getCanvasImage();if(!this._dimensions&&e){var t=e.width,i=e.height;this._dimensions={width:t,height:i}}return this._dimensions}},{key:"getOriginalDimensions",value:function(){return this._originalDimensions}},{key:"setOriginalDimensions",value:function(e){this._originalDimensions=e}},{key:"resize",value:function(e){var t=this.getCanvasImage(),i=t.width,a=t.height,n=t.scaleX,r=t.scaleY,s=e.width,o=e.height,l={scaleX:s?s/i:n,scaleY:o?o/a:r};return n===l.scaleX&&r===l.scaleY||(t.set(l).setCoords(),this._dimensions={width:t.width*t.scaleX,height:t.height*t.scaleY}),this.adjustCanvasDimensionBase(),P().resolve()}},{key:"start",value:function(){var e=this.getCurrentDimensions();this.setOriginalDimensions(e)}},{key:"end",value:function(){}}]),i}(un),po=uo;function fo(e){var t=Ao();return function(){var i,a=di(e);if(t){var n=di(this).constructor;i=ti()(a,arguments,n)}else i=a.apply(this,arguments);return ci(this,i)}}function Ao(){if("undefined"===typeof Reflect||!ti())return!1;if(ti().sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}var ho=function(e){ri(i,e);var t=fo(i);function i(){return E(this,i),t.call(this,Be.RESIZE)}return B(i,[{key:"start",value:function(e){var t=e.getComponent(xe.RESIZE);t.start()}},{key:"end",value:function(e){var t=e.getComponent(xe.RESIZE);t.end()}}]),i}(Is),mo=ho,go=1e3,vo=800,bo=10,yo={cssOnly:!0},_o={backstoreOnly:!0},wo=function(){function e(t){var i,a,n,r,s,o,l,c,u,d,p,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},A=f.cssMaxWidth,h=f.cssMaxHeight;E(this,e),this.canvasImage=null,this.cssMaxWidth=A||go,this.cssMaxHeight=h||vo,this.cropSelectionStyle={},this.targetObjectForCopyPaste=null,this.imageName="",this._objects={},this._canvas=null,this._drawingMode=Be.NORMAL,this._drawingModeMap={},this._componentMap={},this._handler={onMouseDown:D()(i=this._onMouseDown).call(i,this),onObjectAdded:D()(a=this._onObjectAdded).call(a,this),onObjectRemoved:D()(n=this._onObjectRemoved).call(n,this),onObjectMoved:D()(r=this._onObjectMoved).call(r,this),onObjectScaled:D()(s=this._onObjectScaled).call(s,this),onObjectModified:D()(o=this._onObjectModified).call(o,this),onObjectRotated:D()(l=this._onObjectRotated).call(l,this),onObjectSelected:D()(c=this._onObjectSelected).call(c,this),onPathCreated:D()(u=this._onPathCreated).call(u,this),onSelectionCleared:D()(d=this._onSelectionCleared).call(d,this),onSelectionCreated:D()(p=this._onSelectionCreated).call(p,this)},this._setObjectCachingToFalse(),this._setCanvasElement(t),this._createDrawingModeInstances(),this._createComponents(),this._attachCanvasEvents(),this._attachZoomEvents()}return B(e,[{key:"destroy",value:function(){var e=this._canvas.wrapperEl;this._canvas.clear(),e.parentNode.removeChild(e),this._detachZoomEvents()}},{key:"_attachZoomEvents",value:function(){var e=this.getComponent(xe.ZOOM);e.attachKeyboardZoomEvents()}},{key:"_detachZoomEvents",value:function(){var e=this.getComponent(xe.ZOOM);e.detachKeyboardZoomEvents()}},{key:"deactivateAll",value:function(){return this._canvas.discardActiveObject(),this}},{key:"renderAll",value:function(){return this._canvas.renderAll(),this}},{key:"add",value:function(e){var t,i=[];sn()(e)?i=e:i.push(e),(t=this._canvas).add.apply(t,T(i))}},{key:"contains",value:function(e){return this._canvas.contains(e)}},{key:"getObjects",value:function(){var e;return d()(e=this._canvas.getObjects()).call(e)}},{key:"getObject",value:function(e){return this._objects[e]}},{key:"remove",value:function(e){this._canvas.remove(e)}},{key:"removeAll",value:function(e){var t,i=this._canvas,a=d()(t=i.getObjects()).call(t);return i.remove.apply(i,T(this._canvas.getObjects())),e&&i.clear(),a}},{key:"removeObjectById",value:function(e){var t=[],i=this._canvas,a=this.getObject(e),n=a&&a.isType("group")&&!a.isEmpty();return n?(i.discardActiveObject(),a.forEachObject((function(e){t.push(e),i.remove(e)}))):i.contains(a)&&(t.push(a),i.remove(a)),t}},{key:"getObjectId",value:function(e){var t=null;for(t in this._objects)if(this._objects.hasOwnProperty(t)&&e===this._objects[t])return t;return null}},{key:"getActiveObject",value:function(){return this._canvas._activeObject}},{key:"getActiveObjectIdForRemove",value:function(){var e=this.getActiveObject(),t=e.type,i=e.left,a=e.top,n="activeSelection"===t;if(n){var r=new R.fabric.Group(T(e.getObjects()),{left:i,top:a});return this._addFabricObject(r)}return this.getObjectId(e)}},{key:"isReadyRemoveObject",value:function(){var e=this.getActiveObject();return e&&!e.isEditing}},{key:"getActiveObjects",value:function(){var e=this._canvas._activeObject;return e&&"activeSelection"===e.type?e:null}},{key:"getActiveSelectionFromObjects",value:function(e){var t=this.getCanvas();return new R.fabric.ActiveSelection(e,{canvas:t})}},{key:"setActiveObject",value:function(e){this._canvas.setActiveObject(e)}},{key:"setCropSelectionStyle",value:function(e){this.cropSelectionStyle=e}},{key:"getComponent",value:function(e){return this._componentMap[e]}},{key:"getDrawingMode",value:function(){return this._drawingMode}},{key:"startDrawingMode",value:function(e,t){if(this._isSameDrawingMode(e))return!0;this.stopDrawingMode();var i=this._getDrawingModeInstance(e);return i&&i.start&&(i.start(this,t),this._drawingMode=e),!!i}},{key:"stopDrawingMode",value:function(){if(!this._isSameDrawingMode(Be.NORMAL)){var e=this._getDrawingModeInstance(this.getDrawingMode());e&&e.end&&e.end(this),this._drawingMode=Be.NORMAL}}},{key:"zoom",value:function(e,t){var i=e.x,a=e.y,n=this.getComponent(xe.ZOOM);n.zoom({x:i,y:a},t)}},{key:"getZoomMode",value:function(){var e=this.getComponent(xe.ZOOM);return e.mode}},{key:"startZoomInMode",value:function(){var e=this.getComponent(xe.ZOOM);e.startZoomInMode()}},{key:"endZoomInMode",value:function(){var e=this.getComponent(xe.ZOOM);e.endZoomInMode()}},{key:"zoomOut",value:function(){var e=this.getComponent(xe.ZOOM);e.zoomOut()}},{key:"startHandMode",value:function(){var e=this.getComponent(xe.ZOOM);e.startHandMode()}},{key:"endHandMode",value:function(){var e=this.getComponent(xe.ZOOM);e.endHandMode()}},{key:"resetZoom",value:function(){var e=this.getComponent(xe.ZOOM);e.resetZoom()}},{key:"toDataURL",value:function(e){var t=this.getComponent(xe.CROPPER);t.changeVisibility(!1);var i=this._canvas&&this._canvas.toDataURL(e);return t.changeVisibility(!0),i}},{key:"setCanvasImage",value:function(e,t){t&&Xe(t),this.imageName=e,this.canvasImage=t}},{key:"setCssMaxDimension",value:function(e){this.cssMaxWidth=e.width||this.cssMaxWidth,this.cssMaxHeight=e.height||this.cssMaxHeight}},{key:"adjustCanvasDimension",value:function(){this.adjustCanvasDimensionBase(this.canvasImage.scale(1))}},{key:"adjustCanvasDimensionBase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e||(e=this.canvasImage);var t=e.getBoundingRect(),i=t.width,a=t.height,n=this._calcMaxDimension(i,a);this.setCanvasCssDimension({width:"100%",height:"100%","max-width":"".concat(n.width,"px"),"max-height":"".concat(n.height,"px")}),this.setCanvasBackstoreDimension({width:i,height:a}),this._canvas.centerObject(e)}},{key:"setCanvasCssDimension",value:function(e){this._canvas.setDimensions(e,yo)}},{key:"setCanvasBackstoreDimension",value:function(e){this._canvas.setDimensions(e,_o)}},{key:"setImageProperties",value:function(e,t){var i=this.canvasImage;i&&(i.set(e).setCoords(),t&&this._canvas.renderAll())}},{key:"getCanvasElement",value:function(){return this._canvas.getElement()}},{key:"getCanvas",value:function(){return this._canvas}},{key:"getCanvasImage",value:function(){return this.canvasImage}},{key:"getImageName",value:function(){return this.imageName}},{key:"addImageObject",value:function(e){var t,i=this,a=D()(t=this._callbackAfterLoadingImageObject).call(t,this);return new(P())((function(t){R.fabric.Image.fromURL(e,(function(e){a(e),t(i.createObjectProperties(e))}),{crossOrigin:"Anonymous"})}))}},{key:"getCenter",value:function(){return this._canvas.getCenter()}},{key:"getCropzoneRect",value:function(){return this.getComponent(xe.CROPPER).getCropzoneRect()}},{key:"setCropzoneRect",value:function(e){this.getComponent(xe.CROPPER).setCropzoneRect(e)}},{key:"getCroppedImageData",value:function(e){return this.getComponent(xe.CROPPER).getCroppedImageData(e)}},{key:"setBrush",value:function(e){var t=this._drawingMode,i=xe.FREE_DRAWING;t===Be.LINE_DRAWING&&(i=xe.LINE),this.getComponent(i).setBrush(e)}},{key:"setDrawingShape",value:function(e,t){this.getComponent(xe.SHAPE).setStates(e,t)}},{key:"setIconStyle",value:function(e,t){this.getComponent(xe.ICON).setStates(e,t)}},{key:"registerPaths",value:function(e){this.getComponent(xe.ICON).registerPaths(e)}},{key:"changeCursor",value:function(e){var t=this.getCanvas();t.defaultCursor=e,t.renderAll()}},{key:"hasFilter",value:function(e){return this.getComponent(xe.FILTER).hasFilter(e)}},{key:"setSelectionStyle",value:function(e){H()(Ne.SELECTION_STYLE,e)}},{key:"setObjectProperties",value:function(e,t){var i=this.getObject(e),a=H()({},t);return i.set(a),i.setCoords(),this.getCanvas().renderAll(),a}},{key:"getObjectProperties",value:function(e,t){var i=this.getObject(e),a={};return W()(t)?a[t]=i[t]:sn()(t)?fi()(t,(function(e){a[e]=i[e]})):ln()(t,(function(e,t){a[t]=i[t]})),a}},{key:"getObjectPosition",value:function(e,t,i){var a=this.getObject(e);return a?a.getPointByOrigin(t,i):null}},{key:"setObjectPosition",value:function(e,t){var i=this.getObject(e),a=t.x,n=t.y,r=t.originX,s=t.originY;if(!i)return!1;var o=i.getPointByOrigin(r,s),l=i.getPointByOrigin("center","center"),c=l.x-o.x,u=l.y-o.y;return i.set({left:a+c,top:n+u}),i.setCoords(),!0}},{key:"getCanvasSize",value:function(){var e=this.getCanvasImage();return{width:e?e.width:0,height:e?e.height:0}}},{key:"createStaticCanvas",value:function(){var e=new R.fabric.StaticCanvas;return e.set({enableRetinaScaling:!1}),e}},{key:"_getDrawingModeInstance",value:function(e){return this._drawingModeMap[e]}},{key:"_setObjectCachingToFalse",value:function(){R.fabric.Object.prototype.objectCaching=!1}},{key:"_setCanvasElement",value:function(e){var t,i;t=e.nodeType?e:document.querySelector(e),"CANVAS"!==t.nodeName.toUpperCase()&&(i=document.createElement("canvas"),t.appendChild(i)),this._canvas=new R.fabric.Canvas(i,{containerClass:"tui-image-editor-canvas-container",enableRetinaScaling:!1})}},{key:"_createDrawingModeInstances",value:function(){this._register(this._drawingModeMap,new Ls),this._register(this._drawingModeMap,new js),this._register(this._drawingModeMap,new Rs),this._register(this._drawingModeMap,new qs),this._register(this._drawingModeMap,new Ys),this._register(this._drawingModeMap,new Js),this._register(this._drawingModeMap,new io),this._register(this._drawingModeMap,new mo)}},{key:"_createComponents",value:function(){this._register(this._componentMap,new hn(this)),this._register(this._componentMap,new Nn(this)),this._register(this._componentMap,new Fn(this)),this._register(this._componentMap,new zn(this)),this._register(this._componentMap,new Vn(this)),this._register(this._componentMap,new ar(this)),this._register(this._componentMap,new ur(this)),this._register(this._componentMap,new hr(this)),this._register(this._componentMap,new Ir(this)),this._register(this._componentMap,new os(this)),this._register(this._componentMap,new xs(this)),this._register(this._componentMap,new po(this))}},{key:"_register",value:function(e,t){e[t.getName()]=t}},{key:"_isSameDrawingMode",value:function(e){return this.getDrawingMode()===e}},{key:"_calcMaxDimension",value:function(e,t){var i=this.cssMaxWidth/e,a=this.cssMaxHeight/t,n=Math.min(e,this.cssMaxWidth),r=Math.min(t,this.cssMaxHeight);return i<1&&i<a?(n=e*i,r=t*i):a<1&&a<i&&(n=e*a,r=t*a),{width:Math.floor(n),height:Math.floor(r)}}},{key:"_callbackAfterLoadingImageObject",value:function(e){var t=this.getCanvasImage().getCenterPoint();e.set(Ne.SELECTION_STYLE),e.set({left:t.x,top:t.y,crossOrigin:"Anonymous"}),this.getCanvas().add(e).setActiveObject(e)}},{key:"_attachCanvasEvents",value:function(){var e=this._canvas,t=this._handler;e.on({"mouse:down":t.onMouseDown,"object:added":t.onObjectAdded,"object:removed":t.onObjectRemoved,"object:moving":t.onObjectMoved,"object:scaling":t.onObjectScaled,"object:modified":t.onObjectModified,"object:rotating":t.onObjectRotated,"path:created":t.onPathCreated,"selection:cleared":t.onSelectionCleared,"selection:created":t.onSelectionCreated,"selection:updated":t.onObjectSelected})}},{key:"_onMouseDown",value:function(e){var t=this,i=e.e,a=e.target,n=this._canvas.getPointer(i);if(a){var r=a.type,s=so(a,(function(e){return oo(t.getObjectId(e),e,"activeSelection"===r)}));no(s)}this.fire(Ie.MOUSE_DOWN,i,n)}},{key:"_onObjectAdded",value:function(e){var t=e.target;t.isType("cropzone")||this._addFabricObject(t)}},{key:"_onObjectRemoved",value:function(e){var t=e.target;this._removeFabricObject(Xe(t))}},{key:"_onObjectMoved",value:function(e){var t=this;this._lazyFire(Ie.OBJECT_MOVED,(function(e){return t.createObjectProperties(e)}),e.target)}},{key:"_onObjectScaled",value:function(e){var t=this;this._lazyFire(Ie.OBJECT_SCALED,(function(e){return t.createObjectProperties(e)}),e.target)}},{key:"_onObjectModified",value:function(e){var t=e.target;if("activeSelection"===t.type){var i=t.getObjects();oe()(i).call(i,(function(e){return e.fire("modifiedInGroup",t)}))}this.fire(Ie.OBJECT_MODIFIED,t,this.getObjectId(t))}},{key:"_onObjectRotated",value:function(e){var t=this;this._lazyFire(Ie.OBJECT_ROTATED,(function(e){return t.createObjectProperties(e)}),e.target)}},{key:"_lazyFire",value:function(e,t,i){var a=this,n=i&&i.canvasEventDelegation,r=n?i.canvasEventDelegation(e):"none";"unregistered"===r&&i.canvasEventRegister(e,(function(i){a.fire(e,t(i))})),"none"===r&&this.fire(e,t(i))}},{key:"_onObjectSelected",value:function(e){var t=e.target,i=this.createObjectProperties(t);this.fire(Ie.OBJECT_ACTIVATED,i)}},{key:"_onPathCreated",value:function(e){var t=e.path.getCenterPoint(),i=t.x,a=t.y;e.path.set(H()({left:i,top:a},Ne.SELECTION_STYLE));var n=this.createObjectProperties(e.path);this.fire(Ie.ADD_OBJECT,n)}},{key:"_onSelectionCleared",value:function(){this.fire(Ie.SELECTION_CLEARED)}},{key:"_onSelectionCreated",value:function(e){var t=e.target,i=this.createObjectProperties(t);this.fire(Ie.OBJECT_ACTIVATED,i),this.fire(Ie.SELECTION_CREATED,e.target)}},{key:"discardSelection",value:function(){this._canvas.discardActiveObject(),this._canvas.renderAll()}},{key:"changeSelectableAll",value:function(e){this._canvas.forEachObject((function(t){t.selectable=e,t.hoverCursor=e?"move":"crosshair"}))}},{key:"createObjectProperties",value:function(e){var t=["left","top","width","height","fill","stroke","strokeWidth","opacity","angle"],i={id:Xe(e),type:e.type};if(H()(i,tt(e,t)),vt(["i-text","text"],e.type))H()(i,this._createTextProperties(e,i));else if(vt(["rect","triangle","circle"],e.type)){var a=this.getComponent(xe.SHAPE);H()(i,{fill:a.makeFillPropertyForUserEvent(e)})}return i}},{key:"_createTextProperties",value:function(e){var t=["text","fontFamily","fontSize","fontStyle","textAlign","textDecoration","fontWeight"],i={};return H()(i,tt(e,t)),i}},{key:"_addFabricObject",value:function(e){var t=Xe(e);return this._objects[t]=e,t}},{key:"_removeFabricObject",value:function(e){delete this._objects[e]}},{key:"resetTargetObjectForCopyPaste",value:function(){var e=this.getActiveObject();e&&(this.targetObjectForCopyPaste=e)}},{key:"pasteObject",value:function(){var e=this;if(!this.targetObjectForCopyPaste)return P().resolve([]);var t=this.targetObjectForCopyPaste,i="activeSelection"===t.type,a=i?t.getObjects():[t],n=null;return this.discardSelection(),this._cloneObject(a).then((function(t){if(t.length>1)n=e.getActiveSelectionFromObjects(t);else{var i=ie(t,1);n=i[0]}e.targetObjectForCopyPaste=n,e.setActiveObject(n)}))}},{key:"_cloneObject",value:function(e){var t=this,i=Yt()(e).call(e,(function(e){return t._cloneObjectItem(e)}));return P().all(i)}},{key:"_cloneObjectItem",value:function(e){var t=this;return this._copyFabricObjectForPaste(e).then((function(e){var i=t.createObjectProperties(e);return t.add(e),t.fire(Ie.ADD_OBJECT,i),e}))}},{key:"_copyFabricObjectForPaste",value:function(e){var t=this,i=function(e,t){return t?e-bo:e+bo};return this._copyFabricObject(e).then((function(e){var a=e.left,n=e.top,r=e.width,s=e.height,o=t.getCanvasSize(),l=o.width,c=o.height,u=a+r/2,d=n+s/2;return e.set(H()({left:i(a,u+bo>l),top:i(n,d+bo>c)},Ne.SELECTION_STYLE)),e}))}},{key:"_copyFabricObject",value:function(e){var t=this;return new(P())((function(i){e.clone((function(a){var n=t.getComponent(xe.SHAPE);_t(a)&&n.processForCopiedObject(a,e),i(a)}))}))}},{key:"getCurrentDimensions",value:function(){var e=this.getComponent(xe.RESIZE);return e.getCurrentDimensions()}},{key:"getOriginalDimensions",value:function(){var e=this.getComponent(xe.RESIZE);return e.getOriginalDimensions()}},{key:"setOriginalDimensions",value:function(e){var t=this.getComponent(xe.RESIZE);t.setOriginalDimensions(e)}},{key:"resize",value:function(e){var t=this.getComponent(xe.RESIZE);return t.resize(e)}}]),e}();Y().mixin(wo);var Co=wo,xo=Ie.MOUSE_DOWN,ko=Ie.OBJECT_MOVED,To=Ie.OBJECT_SCALED,So=Ie.OBJECT_ACTIVATED,Io=Ie.OBJECT_ROTATED,Eo=Ie.OBJECT_ADDED,Oo=Ie.OBJECT_MODIFIED,Bo=Ie.ADD_TEXT,Lo=Ie.ADD_OBJECT,Do=Ie.TEXT_EDITING,Mo=Ie.TEXT_CHANGED,No=Ie.ICON_CREATE_RESIZE,jo=Ie.ICON_CREATE_END,Po=Ie.SELECTION_CLEARED,Uo=Ie.SELECTION_CREATED,Fo=Ie.ADD_OBJECT_AFTER,Ro=function(){function e(t,i){var a,n,r,s,o,l,c,u,d,p,f,A,h,m,g,v;if(E(this,e),i=H()({includeUI:!1,usageStatistics:!0},i),this.mode=null,this.activeObjectId=null,i.includeUI){var b=i.includeUI;b.usageStatistics=i.usageStatistics,this.ui=new Za(t,b,this.getActions()),i=this.ui.setUiDefaultSelectionStyle(i)}this._invoker=new Ht,this._graphics=new Co(this.ui?this.ui.getEditorArea():t,{cssMaxWidth:i.cssMaxWidth,cssMaxHeight:i.cssMaxHeight}),this._handlers={keydown:D()(a=this._onKeyDown).call(a,this),mousedown:D()(n=this._onMouseDown).call(n,this),objectActivated:D()(r=this._onObjectActivated).call(r,this),objectMoved:D()(s=this._onObjectMoved).call(s,this),objectScaled:D()(o=this._onObjectScaled).call(o,this),objectRotated:D()(l=this._onObjectRotated).call(l,this),objectAdded:D()(c=this._onObjectAdded).call(c,this),objectModified:D()(u=this._onObjectModified).call(u,this),createdPath:this._onCreatedPath,addText:D()(d=this._onAddText).call(d,this),addObject:D()(p=this._onAddObject).call(p,this),textEditing:D()(f=this._onTextEditing).call(f,this),textChanged:D()(A=this._onTextChanged).call(A,this),iconCreateResize:D()(h=this._onIconCreateResize).call(h,this),iconCreateEnd:D()(m=this._onIconCreateEnd).call(m,this),selectionCleared:D()(g=this._selectionCleared).call(g,this),selectionCreated:D()(v=this._selectionCreated).call(v,this)},this._attachInvokerEvents(),this._attachGraphicsEvents(),this._attachDomEvents(),this._setSelectionStyle(i.selectionStyle,{applyCropSelectionStyle:i.applyCropSelectionStyle,applyGroupSelectionStyle:i.applyGroupSelectionStyle}),i.usageStatistics&&st(),this.ui&&(this.ui.initCanvas(),this.setReAction(),this._attachColorPickerInputBoxEvents()),R.fabric.enableGLFiltering=!1}return B(e,[{key:"_attachColorPickerInputBoxEvents",value:function(){var e=this;this.ui.on(Ie.INPUT_BOX_EDITING_STARTED,(function(){e.isColorPickerInputBoxEditing=!0})),this.ui.on(Ie.INPUT_BOX_EDITING_STOPPED,(function(){e.isColorPickerInputBoxEditing=!1}))}},{key:"_detachColorPickerInputBoxEvents",value:function(){this.ui.off(Ie.INPUT_BOX_EDITING_STARTED),this.ui.off(Ie.INPUT_BOX_EDITING_STOPPED)}},{key:"_setSelectionStyle",value:function(e,t){var i=t.applyCropSelectionStyle,a=t.applyGroupSelectionStyle;e&&this._graphics.setSelectionStyle(e),i&&this._graphics.setCropSelectionStyle(e),a&&this.on("selectionCreated",(function(t){"activeSelection"===t.type&&t.set(e)}))}},{key:"_attachInvokerEvents",value:function(){var e,t,i=this,a=Ie.UNDO_STACK_CHANGED,n=Ie.REDO_STACK_CHANGED,r=Ie.EXECUTE_COMMAND,s=Ie.AFTER_UNDO,o=Ie.AFTER_REDO,l=Ie.HAND_STARTED,c=Ie.HAND_STOPPED;if(this._invoker.on(a,D()(e=this.fire).call(e,this,a)),this._invoker.on(n,D()(t=this.fire).call(t,this,n)),this.ui){var u=this._graphics.getCanvas();this._invoker.on(r,(function(e){return i.ui.fire(r,e)})),this._invoker.on(s,(function(e){return i.ui.fire(s,e)})),this._invoker.on(o,(function(e){return i.ui.fire(o,e)})),u.on(l,(function(){return i.ui.fire(l)})),u.on(c,(function(){return i.ui.fire(c)}))}}},{key:"_attachGraphicsEvents",value:function(){var e;this._graphics.on((e={},I(e,xo,this._handlers.mousedown),I(e,ko,this._handlers.objectMoved),I(e,To,this._handlers.objectScaled),I(e,Io,this._handlers.objectRotated),I(e,So,this._handlers.objectActivated),I(e,Eo,this._handlers.objectAdded),I(e,Oo,this._handlers.objectModified),I(e,Bo,this._handlers.addText),I(e,Lo,this._handlers.addObject),I(e,Do,this._handlers.textEditing),I(e,Mo,this._handlers.textChanged),I(e,No,this._handlers.iconCreateResize),I(e,jo,this._handlers.iconCreateEnd),I(e,Po,this._handlers.selectionCleared),I(e,Uo,this._handlers.selectionCreated),e))}},{key:"_attachDomEvents",value:function(){document.addEventListener("keydown",this._handlers.keydown)}},{key:"_detachDomEvents",value:function(){document.removeEventListener("keydown",this._handlers.keydown)}},{key:"_onKeyDown",value:function(e){var t=e.ctrlKey,i=e.keyCode,a=e.metaKey,n=t||a;n&&(i===Me.C?this._graphics.resetTargetObjectForCopyPaste():i===Me.V?(this._graphics.pasteObject(),this.clearRedoStack()):i===Me.Z?this.undo()["catch"]((function(){})):i===Me.Y&&this.redo()["catch"]((function(){})));var r=i===Me.BACKSPACE||i===Me.DEL,s=this._graphics.isReadyRemoveObject();!this.isColorPickerInputBoxEditing&&s&&r&&(e.preventDefault(),this.removeActiveObject())}},{key:"removeActiveObject",value:function(){var e=this._graphics.getActiveObjectIdForRemove();this.removeObject(e)}},{key:"_onMouseDown",value:function(e,t){this.fire(Ie.MOUSE_DOWN,e,t)}},{key:"_pushAddObjectCommand",value:function(e){var t=Rt.create(Se.ADD_OBJECT,this._graphics,e);this._invoker.pushUndoStack(t)}},{key:"_pushModifyObjectCommand",value:function(e){var t=this,i=e.type,a=so(e,(function(e){return oo(t._graphics.getObjectId(e),e,"activeSelection"===i)})),n=Rt.create(Se.CHANGE_SELECTION,this._graphics,a);n.execute(this._graphics,a),this._invoker.pushUndoStack(n)}},{key:"_onObjectActivated",value:function(e){this.fire(Ie.OBJECT_ACTIVATED,e)}},{key:"_onObjectMoved",value:function(e){this.fire(Ie.OBJECT_MOVED,e)}},{key:"_onObjectScaled",value:function(e){this.fire(Ie.OBJECT_SCALED,e)}},{key:"_onObjectRotated",value:function(e){this.fire(Ie.OBJECT_ROTATED,e)}},{key:"getDrawingMode",value:function(){return this._graphics.getDrawingMode()}},{key:"clearObjects",value:function(){return this.execute(Se.CLEAR_OBJECTS)}},{key:"deactivateAll",value:function(){this._graphics.deactivateAll(),this._graphics.renderAll()}},{key:"discardSelection",value:function(){this._graphics.discardSelection()}},{key:"changeSelectableAll",value:function(e){this._graphics.changeSelectableAll(e)}},{key:"_initHistory",value:function(){this.ui&&this.ui.initHistory()}},{key:"_clearHistory",value:function(){this.ui&&this.ui.clearHistory()}},{key:"execute",value:function(e){for(var t,i,a,n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];var o=N()(t=[this._graphics]).call(t,r);return(i=this._invoker).execute.apply(i,N()(a=[e]).call(a,T(o)))}},{key:"executeSilent",value:function(e){for(var t,i,a,n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];var o=N()(t=[this._graphics]).call(t,r);return(i=this._invoker).executeSilent.apply(i,N()(a=[e]).call(a,T(o)))}},{key:"undo",value:function(){for(var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,i=P().resolve(),a=0;a<t;a+=1)i=i.then((function(){return e._invoker.undo()}));return i}},{key:"redo",value:function(){for(var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,i=P().resolve(),a=0;a<t;a+=1)i=i.then((function(){return e._invoker.redo()}));return i}},{key:"zoom",value:function(e){var t=e.x,i=e.y,a=e.zoomLevel;this._graphics.zoom({x:t,y:i},a)}},{key:"resetZoom",value:function(){this._graphics.resetZoom()}},{key:"loadImageFromFile",value:function(e,t){if(!e)return P().reject(je.invalidParameters);var i=F().createObjectURL(e);return t=t||e.name,this.loadImageFromURL(i,t).then((function(t){return F().revokeObjectURL(e),t}))}},{key:"loadImageFromURL",value:function(e,t){return t&&e?this.execute(Se.LOAD_IMAGE,t,e):P().reject(je.invalidParameters)}},{key:"addImageObject",value:function(e){return e?this.execute(Se.ADD_IMAGE_OBJECT,e):P().reject(je.invalidParameters)}},{key:"startDrawingMode",value:function(e,t){return this._graphics.startDrawingMode(e,t)}},{key:"stopDrawingMode",value:function(){this._graphics.stopDrawingMode()}},{key:"crop",value:function(e){var t=this._graphics.getCroppedImageData(e);return t?this.loadImageFromURL(t.url,t.imageName):P().reject(je.invalidParameters)}},{key:"getCropzoneRect",value:function(){return this._graphics.getCropzoneRect()}},{key:"setCropzoneRect",value:function(e){this._graphics.setCropzoneRect(e)}},{key:"_flip",value:function(e){return this.execute(Se.FLIP_IMAGE,e)}},{key:"flipX",value:function(){return this._flip("flipX")}},{key:"flipY",value:function(){return this._flip("flipY")}},{key:"resetFlip",value:function(){return this._flip("reset")}},{key:"_rotate",value:function(e,t,i){var a=null;return a=i?this.executeSilent(Se.ROTATE_IMAGE,e,t):this.execute(Se.ROTATE_IMAGE,e,t),a}},{key:"rotate",value:function(e,t){return this._rotate("rotate",e,t)}},{key:"setAngle",value:function(e,t){return this._rotate("setAngle",e,t)}},{key:"setBrush",value:function(e){this._graphics.setBrush(e)}},{key:"setDrawingShape",value:function(e,t){this._graphics.setDrawingShape(e,t)}},{key:"setDrawingIcon",value:function(e,t){this._graphics.setIconStyle(e,t)}},{key:"addShape",value:function(e,t){return t=t||{},this._setPositions(t),this.execute(Se.ADD_SHAPE,e,t)}},{key:"changeShape",value:function(e,t,i){var a=i?"executeSilent":"execute";return this[a](Se.CHANGE_SHAPE,e,t)}},{key:"addText",value:function(e,t){return e=e||"",t=t||{},this.execute(Se.ADD_TEXT,e,t)}},{key:"changeText",value:function(e,t){return t=t||"",this.execute(Se.CHANGE_TEXT,e,t)}},{key:"changeTextStyle",value:function(e,t,i){var a=i?"executeSilent":"execute";return this[a](Se.CHANGE_TEXT_STYLE,e,t)}},{key:"_changeActivateMode",value:function(e){"ICON"!==e&&this.getDrawingMode()!==e&&this.startDrawingMode(e)}},{key:"_onTextChanged",value:function(e){this.fire(Ie.TEXT_CHANGED,e)}},{key:"_onIconCreateResize",value:function(e){this.fire(Ie.ICON_CREATE_RESIZE,e)}},{key:"_onIconCreateEnd",value:function(e){this.fire(Ie.ICON_CREATE_END,e)}},{key:"_onTextEditing",value:function(){this.fire(Ie.TEXT_EDITING)}},{key:"_onAddText",value:function(e){this.fire(Ie.ADD_TEXT,{originPosition:e.originPosition,clientPosition:e.clientPosition})}},{key:"_onAddObject",value:function(e){var t=this._graphics.getObject(e.id);this._invoker.fire(Ie.EXECUTE_COMMAND,wt(t.type)),this._pushAddObjectCommand(t)}},{key:"_onObjectAdded",value:function(e){this.fire(Eo,e),this.fire(Fo,e)}},{key:"_onObjectModified",value:function(e){e.type!==we.CROPZONE&&(this._invoker.fire(Ie.EXECUTE_COMMAND,wt(e.type)),this._pushModifyObjectCommand(e))}},{key:"_selectionCleared",value:function(){this.fire(Po)}},{key:"_selectionCreated",value:function(e){this.fire(Uo,e)}},{key:"registerIcons",value:function(e){this._graphics.registerPaths(e)}},{key:"changeCursor",value:function(e){this._graphics.changeCursor(e)}},{key:"addIcon",value:function(e,t){return t=t||{},this._setPositions(t),this.execute(Se.ADD_ICON,e,t)}},{key:"changeIconColor",value:function(e,t){return this.execute(Se.CHANGE_ICON_COLOR,e,t)}},{key:"removeObject",value:function(e){var t=this._graphics.getObject(e),i=t.type;return this.execute(Se.REMOVE_OBJECT,e,wt(i))}},{key:"hasFilter",value:function(e){return this._graphics.hasFilter(e)}},{key:"removeFilter",value:function(e){return this.execute(Se.REMOVE_FILTER,e)}},{key:"applyFilter",value:function(e,t,i){var a=i?"executeSilent":"execute";return this[a](Se.APPLY_FILTER,e,t)}},{key:"toDataURL",value:function(e){return this._graphics.toDataURL(e)}},{key:"getImageName",value:function(){return this._graphics.getImageName()}},{key:"clearUndoStack",value:function(){this._invoker.clearUndoStack()}},{key:"clearRedoStack",value:function(){this._invoker.clearRedoStack()}},{key:"isEmptyUndoStack",value:function(){return this._invoker.isEmptyUndoStack()}},{key:"isEmptyRedoStack",value:function(){return this._invoker.isEmptyRedoStack()}},{key:"resizeCanvasDimension",value:function(e){return e?this.execute(Se.RESIZE_CANVAS_DIMENSION,e):P().reject(je.invalidParameters)}},{key:"destroy",value:function(){var e=this;this.stopDrawingMode(),this._detachDomEvents(),this._graphics.destroy(),this._graphics=null,this.ui&&(this._detachColorPickerInputBoxEvents(),this.ui.destroy()),$()(this,(function(t,i){e[i]=null}),this)}},{key:"_setPositions",value:function(e){var t=this._graphics.getCenter();q()(e.left)&&(e.left=t.left),q()(e.top)&&(e.top=t.top)}},{key:"setObjectProperties",value:function(e,t){return this.execute(Se.SET_OBJECT_PROPERTIES,e,t)}},{key:"setObjectPropertiesQuietly",value:function(e,t){this._graphics.setObjectProperties(e,t)}},{key:"getObjectProperties",value:function(e,t){var i=this._graphics.getObject(e);return i?this._graphics.getObjectProperties(e,t):null}},{key:"getCanvasSize",value:function(){return this._graphics.getCanvasSize()}},{key:"getObjectPosition",value:function(e,t,i){return this._graphics.getObjectPosition(e,t,i)}},{key:"setObjectPosition",value:function(e,t){return this.execute(Se.SET_OBJECT_POSITION,e,t)}},{key:"resize",value:function(e){return this.execute(Se.RESIZE_IMAGE,e)}}]),e}();nn.mixin(Ro),Y().mixin(Ro);var Qo=Ro,Ho=xe.ICON,zo={name:Se.ADD_ICON,execute:function(e,t,i){var a=this,n=e.getComponent(Ho);return n.add(t,i).then((function(t){return a.undoData.object=e.getObject(t.id),t}))},undo:function(e){return e.remove(this.undoData.object),P().resolve()}};Rt.register(zo);var qo={name:Se.ADD_IMAGE_OBJECT,execute:function(e,t){var i=this;return e.addImageObject(t).then((function(t){return i.undoData.object=e.getObject(t.id),t}))},undo:function(e){return e.remove(this.undoData.object),P().resolve()}};Rt.register(qo);var Go={name:Se.ADD_OBJECT,execute:function(e,t){return new(P())((function(i,a){e.contains(t)?a(je.addedObject):(e.add(t),i(t))}))},undo:function(e,t){return new(P())((function(i,a){e.contains(t)?(e.remove(t),i(t)):a(je.noObject)}))}};Rt.register(Go);var $o=xe.SHAPE,Vo={name:Se.ADD_SHAPE,execute:function(e,t,i){var a=this,n=e.getComponent($o);return n.add(t,i).then((function(t){var i=t.id;return a.undoData.object=e.getObject(i),t}))},undo:function(e){return e.remove(this.undoData.object),P().resolve()}};Rt.register(Vo);var Yo=xe.TEXT,Ko={name:Se.ADD_TEXT,execute:function(e,t,i){var a=this,n=e.getComponent(Yo);if(this.undoData.object){var r=this.undoData.object;return new(P())((function(t,i){e.contains(r)?i(je.redo):(e.add(r),t(r))}))}return n.add(t,i).then((function(t){var i=t.id,n=e.getObject(i);return a.undoData.object=n,no(so(n,(function(){return oo(i,n,!1)}))),t}))},undo:function(e){return e.remove(this.undoData.object),P().resolve()}};Rt.register(Ko);var Wo=xe.FILTER,Xo=null;function Jo(e,t,i){var a={};return"mask"===e&&(a.object=i.mask),a.options=t,a}var Zo={name:Se.APPLY_FILTER,execute:function(e,t,i,a){var n=e.getComponent(Wo);if("mask"===t){var r=e.getObject(i.maskObjId);if(!r||!r.isType("image"))return P().reject(je.invalidParameters);H()(i,{mask:r}),e.remove(i.mask)}if(!this.isRedo){var s=n.getOptions(t),o=Jo(t,s,i);Xo=this.setUndoData(o,Xo,a)}return n.add(t,i)},undo:function(e,t){var i=e.getComponent(Wo);if("mask"===t){var a=this.undoData.object;return e.add(a),e.setActiveObject(a),i.remove(t)}return this.undoData.options?i.add(t,this.undoData.options):i.remove(t)}};Rt.register(Zo);var el=xe.ICON,tl={name:Se.CHANGE_ICON_COLOR,execute:function(e,t,i){var a=this;return new(P())((function(n,r){var s=e.getComponent(el),o=e.getObject(t);o||r(je.noObject),a.undoData.object=o,a.undoData.color=s.getColor(o),s.setColor(i,o),n()}))},undo:function(e){var t=e.getComponent(el),i=this.undoData,a=i.object,n=i.color;return t.setColor(n,a),P().resolve()}};Rt.register(tl);var il=xe.SHAPE,al=null;function nl(e,t){var i={object:t,options:{}};return ln()(e,(function(e,a){i.options[a]=t[a]})),i}var rl={name:Se.CHANGE_SHAPE,execute:function(e,t,i,a){var n=e.getComponent(il),r=e.getObject(t);if(!r)return P().reject(je.noObject);if(!this.isRedo){var s=nl(i,r);al=this.setUndoData(s,al,a)}return n.change(r,i)},undo:function(e){var t=e.getComponent(il),i=this.undoData,a=i.object,n=i.options;return t.change(a,n)}};Rt.register(rl);var sl=xe.TEXT,ol={name:Se.CHANGE_TEXT,execute:function(e,t,i){var a=e.getComponent(sl),n=e.getObject(t);return n?(this.undoData.object=n,this.undoData.text=a.getText(n),a.change(n,i)):P().reject(je.noObject)},undo:function(e){var t=e.getComponent(sl),i=this.undoData,a=i.object,n=i.text;return t.change(a,n)}};Rt.register(ol);var ll=xe.TEXT,cl=null;function ul(e,t){var i={object:t,styles:{}};return ln()(e,(function(e,a){var n=t[a];i.styles[a]=n})),i}var dl={name:Se.CHANGE_TEXT_STYLE,execute:function(e,t,i,a){var n=e.getComponent(ll),r=e.getObject(t);if(!r)return P().reject(je.noObject);if(!this.isRedo){var s=ul(i,r);cl=this.setUndoData(s,cl,a)}return n.setStyle(r,i)},undo:function(e){var t=e.getComponent(ll),i=this.undoData,a=i.object,n=i.styles;return t.setStyle(a,n)}};Rt.register(dl);var pl={name:Se.CLEAR_OBJECTS,execute:function(e){var t=this;return new(P())((function(i){t.undoData.objects=e.removeAll(),i()}))},undo:function(e){return e.add(this.undoData.objects),P().resolve()}};Rt.register(pl);var fl=xe.FLIP,Al={name:Se.FLIP_IMAGE,execute:function(e,t){var i=e.getComponent(fl);return this.undoData.setting=i.getCurrentSetting(),i[t]()},undo:function(e){var t=e.getComponent(fl);return t.set(this.undoData.setting)}};Rt.register(Al);var hl=xe.IMAGE_LOADER,ml={name:Se.LOAD_IMAGE,execute:function(e,t,i){var a,n=e.getComponent(hl),r=n.getCanvasImage(),s=r?r.width:0,o=r?r.height:0,l=tn()(a=e.removeAll(!0)).call(a,(function(e){return"cropzone"!==e.type}));return oe()(l).call(l,(function(e){e.evented=!0})),this.undoData={name:n.getImageName(),image:r,objects:l},n.load(t,i).then((function(e){return{oldWidth:s,oldHeight:o,newWidth:e.width,newHeight:e.height}}))},undo:function(e){var t=e.getComponent(hl),i=this.undoData,a=i.objects,n=i.name,r=i.image;return e.removeAll(!0),e.add(a),t.load(n,r)}};Rt.register(ml);var gl=xe.FILTER,vl={name:Se.REMOVE_FILTER,execute:function(e,t){var i=e.getComponent(gl);return this.undoData.options=i.getOptions(t),i.remove(t)},undo:function(e,t){var i=e.getComponent(gl),a=this.undoData.options;return i.add(t,a)}};Rt.register(vl);var bl={name:Se.REMOVE_OBJECT,execute:function(e,t){var i=this;return new(P())((function(a,n){i.undoData.objects=e.removeObjectById(t),i.undoData.objects.length?a():n(je.noObject)}))},undo:function(e){return e.add(this.undoData.objects),P().resolve()}};Rt.register(bl);var yl={name:Se.RESIZE_CANVAS_DIMENSION,execute:function(e,t){var i=this;return new(P())((function(a){i.undoData.size={width:e.cssMaxWidth,height:e.cssMaxHeight},e.setCssMaxDimension(t),e.adjustCanvasDimension(),a()}))},undo:function(e){return e.setCssMaxDimension(this.undoData.size),e.adjustCanvasDimension(),P().resolve()}};Rt.register(yl);var _l=xe.ROTATION,wl=null;function Cl(e){return{angle:e.getCurrentAngle()}}var xl={name:Se.ROTATE_IMAGE,execute:function(e,t,i,a){var n=e.getComponent(_l);if(!this.isRedo){var r=Cl(n);wl=this.setUndoData(r,wl,a)}return n[t](i)},undo:function(e){var t=e.getComponent(_l),i=ie(this.args,3),a=i[1],n=i[2];return"setAngle"===a?t[a](this.undoData.angle):t.rotate(-n)}};Rt.register(xl);var kl={name:Se.SET_OBJECT_PROPERTIES,execute:function(e,t,i){var a=this,n=e.getObject(t);return n?(this.undoData.props={},ln()(i,(function(e,t){a.undoData.props[t]=n[t]})),e.setObjectProperties(t,i),P().resolve()):P().reject(je.noObject)},undo:function(e,t){var i=this.undoData.props;return e.setObjectProperties(t,i),P().resolve()}};Rt.register(kl);var Tl={name:Se.SET_OBJECT_POSITION,execute:function(e,t,i){var a=e.getObject(t);return a?(this.undoData.objectId=t,this.undoData.props=e.getObjectProperties(t,["left","top"]),e.setObjectPosition(t,i),e.renderAll(),P().resolve()):P().reject(je.noObject)},undo:function(e){var t=this.undoData,i=t.objectId,a=t.props;return e.setObjectProperties(i,a),e.renderAll(),P().resolve()}};Rt.register(Tl);var Sl={name:Se.CHANGE_SELECTION,execute:function(e,t){return this.isRedo?oe()(t).call(t,(function(t){e.setObjectProperties(t.id,t)})):this.undoData=ro(),P().resolve()},undo:function(e){var t;return oe()(t=this.undoData).call(t,(function(t){e.setObjectProperties(t.id,t)})),P().resolve()}};Rt.register(Sl);var Il=xe.RESIZE,El={name:Se.RESIZE_IMAGE,execute:function(e,t){var i=e.getComponent(Il),a=i.getOriginalDimensions();return a||(a=i.getCurrentDimensions()),this.undoData.dimensions=a,i.resize(t)},undo:function(e){var t=e.getComponent(Il);return t.resize(this.undoData.dimensions)}};Rt.register(El);var Ol=Qo}(),r=r["default"],r}()}))}).call(this,i("b639").Buffer)},ac7a:function(e,t,i){},ac9e:function(e,t,i){},acb6:function(e,t,i){},ace7:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",e._g(e._b({staticClass:"export-customer-modal",attrs:{title:"导出客户"},on:{close:e.onClose}},"el-dialog",e.$attrs,!1),e.$listeners),[i("el-alert",{attrs:{title:"请设置要导出的客户信息字段",type:"warning","show-icon":"",closable:!1}}),i("div",{staticClass:"check-list"},e._l(e.list,(function(t,a){return i("span",{key:a,staticClass:"check-item"},[i("el-checkbox",{attrs:{value:e.checked(t)},on:{change:function(i){return e.onCheck(i,t)}}},[e._v(e._s(t.name))])],1)})),0),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.onClose}},[e._v("取消")]),i("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.handelConfirm}},[e._v("确定")])],1)],1)},n=[],r=i("5530"),s=i("2909"),o=(i("99af"),i("4de4"),i("c740"),i("caad"),i("d81d"),i("b0c0"),i("e9c4"),i("4ec9"),i("b64b"),i("d3b7"),i("2532"),i("3ca3"),i("159b"),i("ddb0"),i("34e1")),l=i("4360"),c=i("dd70"),u={name:"",components:{},props:{list:{type:Array,default:function(){return[]}},query:{type:Object,default:function(){}}},data:function(){return{selected:[],loading:!1}},computed:{allCustomerPropertyIds:function(){var e=this.$store.state.customerProperty.customerProperList.filter((function(e){return e.status})),t=e.map((function(e){return e.id}))||[];return t},loginUserId:function(){return l["a"].getters.userId}},watch:{list:function(e){this.dealSelected(e)}},mounted:function(){this.dealSelected(this.list)},methods:{dealSelected:function(e){var t,i,a=this,n=window.localStorage.getItem("exportProperty-".concat(this.loginUserId,"-").concat(l["a"].getters.corpId));n||""===n?t=null===(i=JSON.parse(n))||void 0===i?void 0:i.list:t=Object(s["a"])(e);t=t.filter((function(e){return["customer","remark","source","createTime","userName","department","tag","status"].concat(Object(s["a"])(a.allCustomerPropertyIds)).includes(e.id)})),this.selected=t||[]},onClose:function(){this.$emit("update:visible",!1)},handelConfirm:function(){var e=this,t=this.selected&&this.selected.map((function(e){return e.name}));if(this.selected&&0!==this.selected.length){var i=Object(r["a"])(Object(r["a"])({},this.query),{},{selectedProperties:t});window.localStorage.setItem("exportProperty-".concat(this.loginUserId,"-").concat(l["a"].getters.corpId),JSON.stringify({list:this.selected})),this.loading=!0,o["a"](i).then((function(t){t.data.hasFinished?e.download(t.data.fileName):(e.msgInfo("数据准备中,请稍后前往窗口右下角下载"),e.$store.commit("ADD_TASK",{fileName:t.data.fileName,status:c["md"]["process"],percentage:0,oprId:t.data.oprId}))})).finally((function(t){e.loading=!1,e.onClose()}))}else this.msgWarn("请至少选择一个字段")},checked:function(e){return this.selected&&this.selected.findIndex((function(t){return t.id===e.id}))>-1},onCheck:function(e,t){var i=Object(s["a"])(this.selected);e?i.push({id:t.id,name:t.name}):i=i.filter((function(e){return e.id!==t.id})),this.selected=this.reorderArray(Object(s["a"])(i),this.list)},reorderArray:function(e,t){for(var i=[],a=new Map,n=0;n<t.length;n++)a.set(t[n].id,n);return e.forEach((function(e){a.has(e.id)?i[a.get(e.id)]=e:i.push(e)})),[].concat(i).filter(Boolean)}}},d=u,p=(i("8a82"),i("2877")),f=Object(p["a"])(d,a,n,!1,null,"400c5a8c",null);t["default"]=f.exports},ada3:function(e,t,i){"use strict";i("b595")},addc:function(e,t,i){},ade1:function(e,t,i){e.exports=i.p+"static/img/linkUseTip-3-2.e1814625.png"},ae03:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:["content-wrapper",e.newsItem.subType===e.EDIT_PIC?"content-img":""]},[i("span",[e._v(e._s(e.newsItem.content))]),e.newsItem.subType===e.EDIT_TAG||e.newsItem.subType===e.EDIT_MULTI?i("div",e._l(e.dealContent(e.newsItem.detail),(function(t,a){return i("el-tag",{key:a,attrs:{type:"info"}},[e._v(e._s(t)+" ")])})),1):e.newsItem.subType===e.EDIT_PIC?i("div",e._l(e.dealContent(e.newsItem.detail),(function(e,t){return i("el-image",{key:t,staticStyle:{width:"70px",height:"70px"},attrs:{fit:"cover",src:e}})})),1):e.newsItem.subType===e.EDIT_FILE?i("div",e._l(e.dealFile(e.newsItem.detail),(function(t,a){return i("div",{key:a,staticClass:"file-name",on:{click:function(i){return e.downloadFile(t)}}},[e._v(" "+e._s(t.name)+" "),a!==e.dealFile(e.newsItem.detail).length-1?[e._v("、")]:e._e()],2)})),0):i("div",[e._v(e._s(e.newsItem.detail))])])},n=[],r=(i("d81d"),i("b0c0"),i("b64b"),i("cf45")),s="edit_tag",o="edit_multi",l="edit_pic",c="edit_file",u="edit_remark",d="edit_choice",p={name:"NewsContent",components:{},props:{newsItem:{type:Object,default:function(){}}},data:function(){return{EDIT_TAG:s,EDIT_MULTI:o,EDIT_PIC:l,EDIT_FILE:c,EDIT_REMARK:u,EDIT_CHOICE:d}},methods:{dealFile:function(e){var t=e.split("|"),i=[];try{t.map((function(e){e&&i.push(JSON.parse(e))}))}catch(a){}return i},dealContent:function(e){return e&&e.split(",")||""},downloadFile:function(e){Object(r["w"])(e.url,e.name)}}},f=p,A=(i("e4ed"),i("2877")),h=Object(A["a"])(f,a,n,!1,null,"d8b8aab6",null);t["default"]=h.exports},ae40:function(e,t,i){e.exports=i.p+"static/img/客户群pc1.93dd6348.png"},ae4c:function(e,t,i){(function(t){(function(t,i){e.exports=i()})(0,(function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function a(e,t,a){return t&&i(e.prototype,t),a&&i(e,a),e}"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;var n={exports:{}};(function(e,t){(function(t,i){e.exports=i()})(0,(function(){var e=function(){var e,t=0,i=[],a=[];function n(t){e=t.sampleRate}function r(e){i.push(e[0]),a.push(e[1]),t+=e[0].length}function s(e){var n=c(i,t),r=c(a,t),s=u(n,r),o=f(s),l=new Blob([o],{type:e});self.postMessage({type:"blob",data:l})}function o(){var e=[];e.push(c(i,t)),e.push(c(a,t)),self.postMessage({type:"buffer",data:e})}function l(){t=0,i=[],a=[]}function c(e,t){for(var i=new Float32Array(t),a=0,n=0;n<e.length;n++)i.set(e[n],a),a+=e[n].length;return i}function u(e,t){var i=e.length+t.length,a=new Float32Array(i),n=0,r=0;while(n<i)a[n++]=e[r],a[n++]=t[r],r++;return a}function d(e,t,i){for(var a=0;a<i.length;a++,t+=2){var n=Math.max(-1,Math.min(1,i[a]));e.setInt16(t,n<0?32768*n:32767*n,!0)}}function p(e,t,i){for(var a=0;a<i.length;a++)e.setUint8(t+a,i.charCodeAt(a))}function f(t){var i=new ArrayBuffer(44+2*t.length),a=new DataView(i);return p(a,0,"RIFF"),a.setUint32(4,36+2*t.length,!0),p(a,8,"WAVE"),p(a,12,"fmt "),a.setUint32(16,16,!0),a.setUint16(20,1,!0),a.setUint16(22,2,!0),a.setUint32(24,e,!0),a.setUint32(28,4*e,!0),a.setUint16(32,4,!0),a.setUint16(34,16,!0),p(a,36,"data"),a.setUint32(40,2*t.length,!0),d(a,44,t),a}self.onmessage=function(e){switch(e.data.command){case"init":n(e.data.config);break;case"record":r(e.data.buffer);break;case"exportWAV":s(e.data.type);break;case"getBuffer":o();break;case"clear":l();break}}},t=e.toString().replace(/^\s*function.*?\(\)\s*{/,"").replace(/}\s*$/,""),i=function(e,i){var a=i||{},n=a.bufferLen||4096;this.context=e.context,this.node=(this.context.createScriptProcessor||this.context.createJavaScriptNode).call(this.context,n,2,2);var r=new Worker((window.URL||window.webkitURL).createObjectURL(new Blob([t],{type:"text/javascript"})));r.onmessage=function(e){"blob"===e.data.type?o(e.data.data):s(e.data.data)},r.postMessage({command:"init",config:{sampleRate:this.context.sampleRate}});var s,o,l=!1;this.node.onaudioprocess=function(e){l&&r.postMessage({command:"record",buffer:[e.inputBuffer.getChannelData(0),e.inputBuffer.getChannelData(1)]})},this.configure=function(e){for(var t in e)e.hasOwnProperty(t)&&(a[t]=e[t])},this.record=function(){l=!0},this.stop=function(){l=!1},this.clear=function(){r.postMessage({command:"clear"})},this.getBuffer=function(e){s=e||a.callback,r.postMessage({command:"getBuffer"})},this.exportWAV=function(e,t){if(o=e||a.callback,t=t||a.type||"audio/wav",!o)throw new Error("Callback not set");r.postMessage({command:"exportWAV",type:t})},this.release=function(){this.stop(),this.clear(),this.configure=this.record=this.stop=this.clear=this.getBuffer=this.exportWAV=function(){},e.disconnect(this.node),this.node.onaudioprocess=null,this.node.disconnect(),r.terminate()},e.connect(this.node),this.node.connect(this.context.destination)};i.forceDownload=function(e,t){var i=(window.URL||window.webkitURL).createObjectURL(e),a=window.document.createElement("a");a.href=i,a.download=t||"output.wav";var n=document.createEvent("Event");n.initEvent("click",!0,!0),a.dispatchEvent(n)};var a=i;return a}))})(n);var r=n.exports,s=window.AudioContext||window.webkitAudioContext||window.mozAudioContext,o=null,l=!0;s||(l=!1);var c=function(){function t(){e(this,t),this._recorderStream=null,this._recorderStreamSourceNode=null,this._recorder=null,this._isRecording=!1,this._curSourceNode=null}return a(t,[{key:"playPcm",value:function(e,t,i,a){o&&"closed"!==o.state||(o=new s),"interrupted"!==o.state&&"suspended"!==o.state||o.resume(),t=t||8e3,this.stopPcm();var n,r,l=a&&a>.001?e.slice(t*a):e;if(!l.length)return i();this._curSourceNode=o["createBufferSource"]();try{n=o["createBuffer"](1,l.length,t)}catch(c){t<11025?(n=o["createBuffer"](1,l.length,4*t),this._curSourceNode["playbackRate"].value=.25):(n=o["createBuffer"](1,l.length,2*t),this._curSourceNode["playbackRate"].value=.5)}n["copyToChannel"]?n["copyToChannel"](l,0,0):(r=n["getChannelData"](0),r.set(l)),this._curSourceNode["buffer"]=n,this._curSourceNode["loop"]=!1,this._curSourceNode["connect"](o["destination"]),this._curSourceNode.onended=i,this._curSourceNode.start()}},{key:"stopPcm",value:function(){this._curSourceNode&&(this._curSourceNode.stop(),this._curSourceNode=null)}},{key:"stopPcmSilently",value:function(){this._curSourceNode.onended=null,this.stopPcm()}},{key:"initRecorder",value:function(){var e=this;return new Promise((function(t,i){var a=function(i){e._recorderStream=i,e._recorderStreamSourceNode=o.createMediaStreamSource(i),e._recorder=new r(e._recorderStreamSourceNode),e._isRecording=!1,t()},n=function(e){i(e)};e._recorder?t():window.navigator.mediaDevices&&window.navigator.mediaDevices.getUserMedia?window.navigator.mediaDevices.getUserMedia({audio:!0}).then(a).catch(n):window.navigator.getUserMedia?window.navigator.getUserMedia({audio:!0},a,n):n()}))}},{key:"isRecording",value:function(){return this._recorder&&this._isRecording}},{key:"startRecord",value:function(){this._recorder&&(this._recorder.clear(),this._recorder.record(),this._isRecording=!0)}},{key:"stopRecord",value:function(){this._recorder&&(this._recorder.stop(),this._isRecording=!1)}},{key:"generateRecordSamples",value:function(){var e=this;return new Promise((function(t){e._recorder&&e._recorder.getBuffer((function(e){t(e[0])}))}))}},{key:"releaseRecord",value:function(){this._recorderStream&&this._recorderStream.getTracks&&(this._recorderStream.getTracks().forEach((function(e){e.stop()})),this._recorderStream=null),this._recorder&&(this._recorder.release(),this._recorder=null)}}],[{key:"isPlaySupported",value:function(){return l}},{key:"isRecordSupported",value:function(){return!!(window.navigator.mediaDevices&&window.navigator.mediaDevices.getUserMedia||window.navigator.getUserMedia)}},{key:"getCtxSampleRate",value:function(){return o&&o.sampleRate||0}},{key:"getCtxTime",value:function(){return o&&o.currentTime||0}},{key:"decodeAudioArrayBufferByContext",value:function(e){return new Promise((function(t,i){o["decodeAudioData"](e,(function(e){var i=e.numberOfChannels,a=new Float32Array(e.length);switch(i){default:case 1:a=e.getChannelData(0);break;case 2:for(var n=e.getChannelData(0),r=e.getChannelData(1),s=0,o=a.length;s<o;s++)a[s]=.5*(n[s]+r[s]);break;case 4:for(var l=e.getChannelData(0),c=e.getChannelData(1),u=e.getChannelData(2),d=e.getChannelData(3),p=0,f=a.length;p<f;p++)a[p]=.25*(l[p]+c[p]+u[p]+d[p]);break;case 6:for(var A=e.getChannelData(0),h=e.getChannelData(1),m=e.getChannelData(2),g=e.getChannelData(4),v=e.getChannelData(5),b=0,y=a.length;b<y;b++)a[b]=.7071*(A[b]+h[b])+m[b]+.5*(g[b]+v[b]);break}t(a)}),i)}))}}]),t}(),u=function(){var e=function(){var e={toWAV:function(e){var t=this._decode(e);if(!t)return null;var i=new Uint8Array(t.buffer,t.byteOffset,t.byteLength),a=new Uint8Array(i.length+this.WAV_HEADER_SIZE),n=0,r=function(e){var t=new Uint8Array(2);new Int16Array(t.buffer)[0]=e,a.set(t,n),n+=2},s=function(e){var t=new Uint8Array(4);new Int32Array(t.buffer)[0]=e,a.set(t,n),n+=4},o=function(e){var t=new TextEncoder("utf-8").encode(e);a.set(t,n),n+=t.length};o("RIFF"),s(36+i.length),o("WAVEfmt "),s(16);var l=16,c=8e3,u=1,d=l/8*u,p=d*c;return r(1),r(1),s(c),s(p),r(d),r(l),o("data"),s(i.length),a.set(i,n),a},decode:function(e){var t=this._decode(e);if(!t)return null;for(var i=new Float32Array(t.length),a=0;a<i.length;a++)i[a]=t[a]/32768;return i},_decode:function(e){if(String.fromCharCode.apply(null,e.subarray(0,this.AMR_HEADER.length))!==this.AMR_HEADER)return null;var i=this.Decoder_Interface_init();if(!i)return null;var a=new Int16Array(Math.floor(e.length/6*this.PCM_BUFFER_COUNT)),n=t._malloc(this.AMR_BUFFER_COUNT),r=new Uint8Array(t.HEAPU8.buffer,n,this.AMR_BUFFER_COUNT);n=t._malloc(2*this.PCM_BUFFER_COUNT);var s=new Int16Array(t.HEAPU8.buffer,n,this.PCM_BUFFER_COUNT),o=6,l=0;while(o+1<e.length&&l+1<a.length){var c=this.SIZES[e[o]>>3&15];if(o+c+1>e.length)break;if(r.set(e.subarray(o,o+c+1)),this.Decoder_Interface_Decode(i,r.byteOffset,s.byteOffset,0),l+this.PCM_BUFFER_COUNT>a.length){var u=new Int16Array(2*a.length);u.set(a.subarray(0,l)),a=u}a.set(s,l),l+=this.PCM_BUFFER_COUNT,o+=c+1}return t._free(r.byteOffset),t._free(s.byteOffset),this.Decoder_Interface_exit(i),a.subarray(0,l)},encode:function(e,i,a){if(i<8e3)return null;"undefined"===typeof a&&(a=this.Mode.MR795);var n=this.Encoder_Interface_init();if(!n)return null;var r=t._malloc(2*this.PCM_BUFFER_COUNT),s=new Int16Array(t.HEAPU8.buffer,r,this.PCM_BUFFER_COUNT);r=t._malloc(this.AMR_BUFFER_COUNT);for(var o=new Uint8Array(t.HEAPU8.buffer,r,this.AMR_BUFFER_COUNT),l=i/8e3,c=Math.floor(e.length/l),u=new Int16Array(c),d=0;d<c;d++)u[d]=32767*e[Math.floor(d*l)];var p=this.SIZES[a]+1,f=new Uint8Array(Math.ceil(c/this.PCM_BUFFER_COUNT*p)+this.AMR_HEADER.length);f.set(new TextEncoder("utf-8").encode(this.AMR_HEADER));var A=0,h=this.AMR_HEADER.length;while(A+this.PCM_BUFFER_COUNT<u.length&&h+p<f.length){s.set(u.subarray(A,A+this.PCM_BUFFER_COUNT));var m=this.Encoder_Interface_Encode(n,a,s.byteOffset,o.byteOffset,0);if(m!=p)break;f.set(o.subarray(0,m),h),A+=this.PCM_BUFFER_COUNT,h+=m}return t._free(s.byteOffset),t._free(o.byteOffset),this.Encoder_Interface_exit(n),f.subarray(0,h)},Decoder_Interface_init:function(){return 0},Decoder_Interface_exit:function(e){},Decoder_Interface_Decode:function(e,t,i,a){},Encoder_Interface_init:function(e){return 0},Encoder_Interface_exit:function(e){},Encoder_Interface_Encode:function(e,t,i,a,n){},Mode:{MR475:0,MR515:1,MR59:2,MR67:3,MR74:4,MR795:5,MR102:6,MR122:7,MRDTX:8},SIZES:[12,13,15,17,19,20,26,31,5,6,5,5,0,0,0,0],AMR_BUFFER_COUNT:32,PCM_BUFFER_COUNT:160,AMR_HEADER:"#!AMR\n",WAV_HEADER_SIZE:44},t={canvas:{},print:function(e){},_main:function(){return e.Decoder_Interface_init=t._Decoder_Interface_init,e.Decoder_Interface_exit=t._Decoder_Interface_exit,e.Decoder_Interface_Decode=t._Decoder_Interface_Decode,e.Encoder_Interface_init=t._Encoder_Interface_init,e.Encoder_Interface_exit=t._Encoder_Interface_exit,e.Encoder_Interface_Encode=t._Encoder_Interface_Encode,0}};t||(t=("undefined"!==typeof t?t:null)||{});var i={};for(var a in t)t.hasOwnProperty(a)&&(i[a]=t[a]);var n="object"===typeof window,r="function"===typeof importScripts,s=!1,o=!n&&!s&&!r;if(o)t["print"]||(t["print"]=print),"undefined"!=typeof printErr&&(t["printErr"]=printErr),"undefined"!=typeof read?t["read"]=read:t["read"]=function(){throw"no read() available (jsc?)"},t["readBinary"]=function(e){if("function"===typeof readbuffer)return new Uint8Array(readbuffer(e));var t=read(e,"binary");return g("object"===typeof t),t},"undefined"!=typeof scriptArgs?t["arguments"]=scriptArgs:"undefined"!=typeof arguments&&(t["arguments"]=arguments);else{if(!n&&!r)throw"Unknown runtime environment. Where are we?";if(t["read"]=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},"undefined"!=typeof arguments&&(t["arguments"]=arguments),"undefined"!==typeof console)t["print"]||(t["print"]=function(e){}),t["printErr"]||(t["printErr"]=function(e){});else{var l=!1;t["print"]||(t["print"]=l&&"undefined"!==typeof dump?function(e){dump(e)}:function(e){})}r&&(t["load"]=importScripts),"undefined"===typeof t["setWindowTitle"]&&(t["setWindowTitle"]=function(e){document.title=e})}function c(e){eval.call(null,e)}for(var a in!t["load"]&&t["read"]&&(t["load"]=function(e){c(t["read"](e))}),t["print"]||(t["print"]=function(){}),t["printErr"]||(t["printErr"]=t["print"]),t["arguments"]||(t["arguments"]=[]),t["thisProgram"]||(t["thisProgram"]="./this.program"),t.print=t["print"],t.printErr=t["printErr"],t["preRun"]=[],t["postRun"]=[],i)i.hasOwnProperty(a)&&(t[a]=i[a]);var u={setTempRet0:function(e){f=e},getTempRet0:function(){return f},stackSave:function(){return oe},stackRestore:function(e){oe=e},getNativeTypeSize:function(e){switch(e){case"i1":case"i8":return 1;case"i16":return 2;case"i32":return 4;case"i64":return 8;case"float":return 4;case"double":return 8;default:if("*"===e[e.length-1])return u.QUANTUM_SIZE;if("i"===e[0]){var t=parseInt(e.substr(1));return g(t%8===0),t/8}return 0}},getNativeFieldSize:function(e){return Math.max(u.getNativeTypeSize(e),u.QUANTUM_SIZE)},STACK_ALIGN:16,prepVararg:function(e,t){return"double"===t||"i64"===t?7&e&&(g(4===(7&e)),e+=4):g(0===(3&e)),e},getAlignSize:function(e,t,i){return i||"i64"!=e&&"double"!=e?e?Math.min(t||(e?u.getNativeFieldSize(e):0),u.QUANTUM_SIZE):Math.min(t,8):8},dynCall:function(e,i,a){return a&&a.length?(a.splice||(a=Array.prototype.slice.call(a)),a.splice(0,0,i),t["dynCall_"+e].apply(null,a)):t["dynCall_"+e].call(null,i)},functionPointers:[],addFunction:function(e){for(var t=0;t<u.functionPointers.length;t++)if(!u.functionPointers[t])return u.functionPointers[t]=e,2*(1+t);throw"Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS."},removeFunction:function(e){u.functionPointers[(e-2)/2]=null},warnOnce:function(e){u.warnOnce.shown||(u.warnOnce.shown={}),u.warnOnce.shown[e]||(u.warnOnce.shown[e]=1,t.printErr(e))},funcWrappers:{},getFuncWrapper:function(e,t){g(t),u.funcWrappers[t]||(u.funcWrappers[t]={});var i=u.funcWrappers[t];return i[e]||(i[e]=function(){return u.dynCall(t,e,arguments)}),i[e]},getCompilerSetting:function(e){throw"You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work"},stackAlloc:function(e){var t=oe;return oe=oe+e|0,oe=oe+15&-16,t},staticAlloc:function(e){var t=ne;return ne=ne+e|0,ne=ne+15&-16,t},dynamicAlloc:function(e){var t=ue;if(ue=ue+e|0,ue=ue+15&-16,ue>=Ae){var i=de();if(!i)return ue=t,0}return t},alignMemory:function(e,t){var i=e=Math.ceil(e/(t||16))*(t||16);return i},makeBigInt:function(e,t,i){var a=i?+(e>>>0)+4294967296*+(t>>>0):+(e>>>0)+4294967296*+(0|t);return a},GLOBAL_BASE:8,QUANTUM_SIZE:4,__dummy__:0};t["Runtime"]=u;var d,p,f,A,h,m=!1;function g(e,t){e||wt("Assertion failed: "+t)}function v(e){var i=t["_"+e];if(!i)try{i=[eval][0]("_"+e)}catch(a){}return g(i,"Cannot call unknown function "+e+" (perhaps LLVM optimizations or closure removed it?)"),i}function b(e,t,i,a){switch(i=i||"i8","*"===i.charAt(i.length-1)&&(i="i32"),i){case"i1":V[e>>0]=t;break;case"i8":V[e>>0]=t;break;case"i16":K[e>>1]=t;break;case"i32":X[e>>2]=t;break;case"i64":p=[t>>>0,(d=t,+Ue(d)>=1?d>0?(0|Qe(+Re(d/4294967296),4294967295))>>>0:~~+Fe((d-+(~~d>>>0))/4294967296)>>>0:0)],X[e>>2]=p[0],X[e+4>>2]=p[1];break;case"float":Z[e>>2]=t;break;case"double":ee[e>>3]=t;break;default:wt("invalid type for setValue: "+i)}}function y(e,t,i){switch(t=t||"i8","*"===t.charAt(t.length-1)&&(t="i32"),t){case"i1":return V[e>>0];case"i8":return V[e>>0];case"i16":return K[e>>1];case"i32":return X[e>>2];case"i64":return X[e>>2];case"float":return Z[e>>2];case"double":return ee[e>>3];default:wt("invalid type for setValue: "+t)}return null}(function(){var e={stackSave:function(){u.stackSave()},stackRestore:function(){u.stackRestore()},arrayToC:function(e){var t=u.stackAlloc(e.length);return je(e,t),t},stringToC:function(e){var t=0;return null!==e&&void 0!==e&&0!==e&&(t=u.stackAlloc(1+(e.length<<2)),Ne(e,t)),t}},t={string:e["stringToC"],array:e["arrayToC"]};h=function(e,i,a,n,r){var s=v(e),o=[],l=0;if(n)for(var c=0;c<n.length;c++){var d=t[a[c]];d?(0===l&&(l=u.stackSave()),o[c]=d(n[c])):o[c]=n[c]}var p=s.apply(null,o);if("string"===i&&(p=I(p)),0!==l){if(r&&r.async)return void EmterpreterAsync.asyncFinalizers.push((function(){u.stackRestore(l)}));u.stackRestore(l)}return p};var i=/^function\s\(([^)]*)\)\s*{\s*([^*]*?)[\s;]*(?:return\s*(.*?)[;\s]*)?}$/;function a(e){var t=e.toString().match(i);return t?(t=t.slice(1),{arguments:t[0],body:t[1],returnValue:t[2]}):{}}var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=a(e[r]));A=function(e,t,i){i=i||[];var r=v(e),s=i.every((function(e){return"number"===e})),o="string"!==t;if(o&&s)return r;var l=i.map((function(e,t){return"$"+t})),c="(function("+l.join(",")+") {",u=i.length;if(!s){c+="var stack = "+n["stackSave"].body+";";for(var d=0;d<u;d++){var p=l[d],f=i[d];if("number"!==f){var A=n[f+"ToC"];c+="var "+A.arguments+" = "+p+";",c+=A.body+";",c+=p+"="+A.returnValue+";"}}}var h=a((function(){return r})).returnValue;if(c+="var ret = "+h+"("+l.join(",")+");",!o){var m=a((function(){return I})).returnValue;c+="ret = "+m+"(ret);"}return s||(c+=n["stackRestore"].body.replace("()","(stack)")+";"),c+="return ret})",[eval][0](c)}})(),t["ccall"]=h,t["cwrap"]=A,t["setValue"]=b,t["getValue"]=y;var _=0,w=1,C=2,x=3,k=4;function T(e,t,i,a){var n,r;"number"===typeof e?(n=!0,r=e):(n=!1,r=e.length);var s,o="string"===typeof t?t:null;if(s=i==k?a:[mt,u.stackAlloc,u.staticAlloc,u.dynamicAlloc][void 0===i?C:i](Math.max(r,o?1:t.length)),n){var l;a=s;for(g(0==(3&s)),l=s+(-4&r);a<l;a+=4)X[a>>2]=0;l=s+r;while(a<l)V[a++>>0]=0;return s}if("i8"===o)return e.subarray||e.slice?Y.set(e,s):Y.set(new Uint8Array(e),s),s;var c,d,p,f=0;while(f<r){var A=e[f];"function"===typeof A&&(A=u.getFunctionIndex(A)),c=o||t[f],0!==c?("i64"==c&&(c="i32"),b(s+f,A,c),p!==c&&(d=u.getNativeTypeSize(c),p=c),f+=d):f++}return s}function S(e){return re?"undefined"!==typeof Ve&&!Ve.called||!we?u.dynamicAlloc(e):mt(e):u.staticAlloc(e)}function I(e,i){if(0===i||!e)return"";var a,n=0,r=0;while(1){if(a=Y[e+r>>0],n|=a,0==a&&!i)break;if(r++,i&&r==i)break}i||(i=r);var s="";if(n<128){var o,l=1024;while(i>0)o=String.fromCharCode.apply(String,Y.subarray(e,e+Math.min(i,l))),s=s?s+o:o,e+=l,i-=l;return s}return t["UTF8ToString"](e)}function E(e){var t="";while(1){var i=V[e++>>0];if(!i)return t;t+=String.fromCharCode(i)}}function O(e,t){return Pe(e,t,!1)}function B(e,t){var i,a,n,r,s,o,l="";while(1){if(i=e[t++],!i)return l;if(128&i)if(a=63&e[t++],192!=(224&i))if(n=63&e[t++],224==(240&i)?i=(15&i)<<12|a<<6|n:(r=63&e[t++],240==(248&i)?i=(7&i)<<18|a<<12|n<<6|r:(s=63&e[t++],248==(252&i)?i=(3&i)<<24|a<<18|n<<12|r<<6|s:(o=63&e[t++],i=(1&i)<<30|a<<24|n<<18|r<<12|s<<6|o))),i<65536)l+=String.fromCharCode(i);else{var c=i-65536;l+=String.fromCharCode(55296|c>>10,56320|1023&c)}else l+=String.fromCharCode((31&i)<<6|a);else l+=String.fromCharCode(i)}}function L(e){return B(Y,e)}function D(e,t,i,a){if(!(a>0))return 0;for(var n=i,r=i+a-1,s=0;s<e.length;++s){var o=e.charCodeAt(s);if(o>=55296&&o<=57343&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++s)),o<=127){if(i>=r)break;t[i++]=o}else if(o<=2047){if(i+1>=r)break;t[i++]=192|o>>6,t[i++]=128|63&o}else if(o<=65535){if(i+2>=r)break;t[i++]=224|o>>12,t[i++]=128|o>>6&63,t[i++]=128|63&o}else if(o<=2097151){if(i+3>=r)break;t[i++]=240|o>>18,t[i++]=128|o>>12&63,t[i++]=128|o>>6&63,t[i++]=128|63&o}else if(o<=67108863){if(i+4>=r)break;t[i++]=248|o>>24,t[i++]=128|o>>18&63,t[i++]=128|o>>12&63,t[i++]=128|o>>6&63,t[i++]=128|63&o}else{if(i+5>=r)break;t[i++]=252|o>>30,t[i++]=128|o>>24&63,t[i++]=128|o>>18&63,t[i++]=128|o>>12&63,t[i++]=128|o>>6&63,t[i++]=128|63&o}}return t[i]=0,i-n}function M(e,t,i){return D(e,Y,t,i)}function N(e){for(var t=0,i=0;i<e.length;++i){var a=e.charCodeAt(i);a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++i)),a<=127?++t:t+=a<=2047?2:a<=65535?3:a<=2097151?4:a<=67108863?5:6}return t}function j(e){var t=0,i="";while(1){var a=K[e+2*t>>1];if(0==a)return i;++t,i+=String.fromCharCode(a)}}function P(e,t,i){if(void 0===i&&(i=2147483647),i<2)return 0;i-=2;for(var a=t,n=i<2*e.length?i/2:e.length,r=0;r<n;++r){var s=e.charCodeAt(r);K[t>>1]=s,t+=2}return K[t>>1]=0,t-a}function U(e){return 2*e.length}function F(e){var t=0,i="";while(1){var a=X[e+4*t>>2];if(0==a)return i;if(++t,a>=65536){var n=a-65536;i+=String.fromCharCode(55296|n>>10,56320|1023&n)}else i+=String.fromCharCode(a)}}function R(e,t,i){if(void 0===i&&(i=2147483647),i<4)return 0;for(var a=t,n=a+i-4,r=0;r<e.length;++r){var s=e.charCodeAt(r);if(s>=55296&&s<=57343){var o=e.charCodeAt(++r);s=65536+((1023&s)<<10)|1023&o}if(X[t>>2]=s,t+=4,t+4>n)break}return X[t>>2]=0,t-a}function Q(e){for(var t=0,i=0;i<e.length;++i){var a=e.charCodeAt(i);a>=55296&&a<=57343&&++i,t+=4}return t}function H(e){var i=!!t["___cxa_demangle"];if(i)try{var a=mt(e.length);Ne(e.substr(1),a);var n=mt(4),r=t["___cxa_demangle"](a,0,0,n);if(0===y(n,"i32")&&r)return I(r)}catch(A){}finally{a&&pt(a),n&&pt(n),r&&pt(r)}var s=3,o={v:"void",b:"bool",c:"char",s:"short",i:"int",l:"long",f:"float",d:"double",w:"wchar_t",a:"signed char",h:"unsigned char",t:"unsigned short",j:"unsigned int",m:"unsigned long",x:"long long",y:"unsigned long long",z:"..."},l=[],c=!0;function d(){s++,"K"===e[s]&&s++;var t=[];while("E"!==e[s])if("S"!==e[s])if("C"!==e[s]){var i=parseInt(e.substr(s)),a=i.toString().length;if(!i||!a){s--;break}var n=e.substr(s+a,i);t.push(n),l.push(n),s+=a+i}else t.push(t[t.length-1]),s+=2;else{s++;var r=e.indexOf("_",s),o=e.substring(s,r)||0;t.push(l[o]||"?"),s=r+1}return s++,t}function p(t,i,a){i=i||1/0;var n,r="",l=[];function u(){return"("+l.join(", ")+")"}if("N"===e[s]){if(n=d().join("::"),i--,0===i)return t?[n]:n}else{("K"===e[s]||c&&"L"===e[s])&&s++;var f=parseInt(e.substr(s));if(f){var A=f.toString().length;n=e.substr(s+A,f),s+=A+f}}if(c=!1,"I"===e[s]){s++;var h=p(!0),m=p(!0,1,!0);r+=m[0]+" "+n+"<"+h.join(", ")+">"}else r=n;e:while(s<e.length&&i-- >0){var g=e[s++];if(g in o)l.push(o[g]);else switch(g){case"P":l.push(p(!0,1,!0)[0]+"*");break;case"R":l.push(p(!0,1,!0)[0]+"&");break;case"L":s++;var v=e.indexOf("E",s);f=v-s;l.push(e.substr(s,f)),s+=f+2;break;case"A":f=parseInt(e.substr(s));if(s+=f.toString().length,"_"!==e[s])throw"?";s++,l.push(p(!0,1,!0)[0]+" ["+f+"]");break;case"E":break e;default:r+="?"+g;break e}}return a||1!==l.length||"void"!==l[0]||(l=[]),t?(r&&l.push(r+"?"),l):r+u()}var f=e;try{if("Object._main"==e||"_main"==e)return"main()";if("number"===typeof e&&(e=I(e)),"_"!==e[0])return e;if("_"!==e[1])return e;if("Z"!==e[2])return e;switch(e[3]){case"n":return"operator new()";case"d":return"operator delete()"}f=p()}catch(A){f+="?"}return f.indexOf("?")>=0&&!i&&u.warnOnce("warning: a problem occurred in builtin C++ name demangling; build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling"),f}function z(e){return e.replace(/__Z[\w\d_]+/g,(function(e){var t=H(e);return e===t?e:e+" ["+t+"]"}))}function q(){var e=new Error;if(!e.stack){try{throw new Error(0)}catch(t){e=t}if(!e.stack)return"(no stack trace available)"}return e.stack.toString()}function G(){return z(q())}t["ALLOC_NORMAL"]=_,t["ALLOC_STACK"]=w,t["ALLOC_STATIC"]=C,t["ALLOC_DYNAMIC"]=x,t["ALLOC_NONE"]=k,t["allocate"]=T,t["getMemory"]=S,t["Pointer_stringify"]=I,t["AsciiToString"]=E,t["stringToAscii"]=O,t["UTF8ArrayToString"]=B,t["UTF8ToString"]=L,t["stringToUTF8Array"]=D,t["stringToUTF8"]=M,t["lengthBytesUTF8"]=N,t["UTF16ToString"]=j,t["stringToUTF16"]=P,t["lengthBytesUTF16"]=U,t["UTF32ToString"]=F,t["stringToUTF32"]=R,t["lengthBytesUTF32"]=Q,t["stackTrace"]=G;var $,V,Y,K,W,X,J,Z,ee,te=4096;function ie(e){return e%4096>0&&(e+=4096-e%4096),e}var ae=0,ne=0,re=!1,se=0,oe=0,le=0,ce=0,ue=0;function de(){wt("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value "+Ae+", (2) compile with ALLOW_MEMORY_GROWTH which adjusts the size at runtime but prevents some optimizations, or (3) set Module.TOTAL_MEMORY before the program runs.")}var pe,fe=t["TOTAL_STACK"]||65536,Ae=t["TOTAL_MEMORY"]||524288,he=65536;while(he<Ae||he<2*fe)he<16777216?he*=2:he+=16777216;function me(e){while(e.length>0){var t=e.shift();if("function"!=typeof t){var i=t.func;"number"===typeof i?void 0===t.arg?u.dynCall("v",i):u.dynCall("vi",i,[t.arg]):i(void 0===t.arg?null:t.arg)}else t()}}he!==Ae&&(t.printErr("increasing TOTAL_MEMORY to "+he+" to be compliant with the asm.js spec (and given that TOTAL_STACK="+fe+")"),Ae=he),g("undefined"!==typeof Int32Array&&"undefined"!==typeof Float64Array&&!!new Int32Array(1)["subarray"]&&!!new Int32Array(1)["set"],"JS engine does not provide full typed array support"),pe=new ArrayBuffer(Ae),V=new Int8Array(pe),K=new Int16Array(pe),X=new Int32Array(pe),Y=new Uint8Array(pe),W=new Uint16Array(pe),J=new Uint32Array(pe),Z=new Float32Array(pe),ee=new Float64Array(pe),X[0]=255,g(255===Y[0]&&0===Y[3],"Typed arrays 2 must be run on a little-endian system"),t["HEAP"]=$,t["buffer"]=pe,t["HEAP8"]=V,t["HEAP16"]=K,t["HEAP32"]=X,t["HEAPU8"]=Y,t["HEAPU16"]=W,t["HEAPU32"]=J,t["HEAPF32"]=Z,t["HEAPF64"]=ee;var ge=[],ve=[],be=[],ye=[],_e=[],we=!1;function Ce(){if(t["preRun"]){"function"==typeof t["preRun"]&&(t["preRun"]=[t["preRun"]]);while(t["preRun"].length)Ie(t["preRun"].shift())}me(ge)}function xe(){we||(we=!0,me(ve))}function ke(){me(be)}function Te(){me(ye)}function Se(){if(t["postRun"]){"function"==typeof t["postRun"]&&(t["postRun"]=[t["postRun"]]);while(t["postRun"].length)Le(t["postRun"].shift())}me(_e)}function Ie(e){ge.unshift(e)}function Ee(e){ve.unshift(e)}function Oe(e){be.unshift(e)}function Be(e){ye.unshift(e)}function Le(e){_e.unshift(e)}function De(e,t,i){var a=i>0?i:N(e)+1,n=new Array(a),r=D(e,n,0,n.length);return t&&(n.length=r),n}function Me(e){for(var t=[],i=0;i<e.length;i++){var a=e[i];a>255&&(a&=255),t.push(String.fromCharCode(a))}return t.join("")}function Ne(e,t,i){var a=De(e,i),n=0;while(n<a.length){var r=a[n];V[t+n>>0]=r,n+=1}}function je(e,t){for(var i=0;i<e.length;i++)V[t++>>0]=e[i]}function Pe(e,t,i){for(var a=0;a<e.length;++a)V[t++>>0]=e.charCodeAt(a);i||(V[t>>0]=0)}t["addOnPreRun"]=Ie,t["addOnInit"]=Ee,t["addOnPreMain"]=Oe,t["addOnExit"]=Be,t["addOnPostRun"]=Le,t["intArrayFromString"]=De,t["intArrayToString"]=Me,t["writeStringToMemory"]=Ne,t["writeArrayToMemory"]=je,t["writeAsciiToMemory"]=Pe,Math["imul"]&&-5===Math["imul"](4294967295,5)||(Math["imul"]=function(e,t){var i=e>>>16,a=65535&e,n=t>>>16,r=65535&t;return a*r+(i*r+a*n<<16)|0}),Math.imul=Math["imul"],Math["clz32"]||(Math["clz32"]=function(e){e>>>=0;for(var t=0;t<32;t++)if(e&1<<31-t)return t;return 32}),Math.clz32=Math["clz32"];var Ue=Math.abs,Fe=Math.ceil,Re=Math.floor,Qe=Math.min,He=0,ze=null;function qe(e){He++,t["monitorRunDependencies"]&&t["monitorRunDependencies"](He)}function Ge(e){if(He--,t["monitorRunDependencies"]&&t["monitorRunDependencies"](He),0==He&&ze){var i=ze;ze=null,i()}}t["addRunDependency"]=qe,t["removeRunDependency"]=Ge,t["preloadedImages"]={},t["preloadedAudios"]={},ae=8,ne=ae+31776,ve.push(),T([154,14,0,0,188,14,0,0,226,14,0,0,8,15,0,0,46,15,0,0,84,15,0,0,130,15,0,0,208,15,0,0,66,16,0,0,108,16,0,0,42,17,0,0,248,17,0,0,228,18,0,0,240,19,0,0,24,21,0,0,86,22,0,0,238,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,13,0,15,0,17,0,19,0,20,0,26,0,31,0,5,0,6,0,5,0,5,0,0,0,0,0,0,0,0,0,1,252,146,252,36,253,182,253,72,254,218,254,108,255,0,0,0,0,32,78,32,78,32,78,32,78,32,78,80,70,0,64,0,32,0,0,0,0,255,127,112,125,112,125,112,125,112,125,112,125,153,89,255,127,112,125,112,125,102,102,102,38,153,25,153,25,154,89,185,62,232,43,188,30,132,21,16,15,139,10,97,7,42,5,157,3,0,96,0,72,0,54,128,40,96,30,200,22,22,17,209,12,157,9,54,7,102,70,184,38,75,21,182,11,113,6,139,3,243,1,18,1,151,0,83,0,154,89,185,62,232,43,188,30,132,21,16,15,139,10,97,7,42,5,157,3,44,3,128,0,30,2,140,0,57,11,111,4,218,8,74,13,19,8,51,2,133,49,135,2,36,16,6,7,225,21,165,20,9,30,118,1,151,14,185,1,160,42,78,10,31,46,190,9,10,80,29,3,98,20,163,2,68,26,162,32,162,20,160,6,208,5,172,1,250,22,196,1,212,20,232,15,255,13,244,4,165,9,133,3,22,62,237,3,134,58,199,12,91,40,250,18,51,14,229,7,36,10,67,3,72,48,28,19,174,47,168,6,120,52,68,6,158,35,37,9,128,15,2,6,103,21,208,38,211,14,161,1,79,5,158,1,56,14,33,6,59,31,213,13,141,44,133,2,104,33,123,2,216,15,97,5,224,64,236,23,156,44,188,2,215,7,95,2,127,48,42,6,111,43,46,18,112,53,172,6,214,46,205,4,60,31,129,28,175,51,83,22,124,9,135,4,25,8,149,7,74,24,233,23,218,13,12,7,221,34,10,7,231,33,44,6,111,54,248,13,1,52,93,24,254,23,106,4,106,23,198,6,61,55,54,18,7,44,249,12,194,47,15,6,107,54,199,11,217,19,224,40,228,36,50,26,153,6,171,2,156,5,26,5,44,28,93,15,242,15,153,10,113,30,192,2,222,58,34,3,155,24,92,20,241,16,237,20,20,26,29,2,174,23,114,2,83,53,116,14,234,44,104,9,28,63,204,2,145,47,239,2,129,31,225,44,170,24,208,8,114,17,240,1,125,28,11,2,229,39,249,14,202,32,221,11,211,32,198,3,148,55,88,7,255,33,33,21,11,64,255,18,252,28,187,7,201,23,206,4,155,36,46,17,222,56,35,13,247,52,57,11,107,51,185,5,158,21,142,6,82,51,179,57,170,28,88,2,38,5,36,2,156,16,211,13,60,39,60,9,91,41,110,2,32,51,157,2,46,55,198,13,175,19,56,38,234,59,107,2,43,12,78,2,58,64,197,11,182,60,72,16,177,60,75,6,45,60,204,4,151,62,83,36,110,29,112,19,198,7,189,4,183,44,133,4,224,48,143,21,3,37,84,10,36,30,242,7,224,51,191,8,139,62,229,19,130,31,105,26,99,39,133,5,138,19,43,9,235,48,87,23,22,59,83,11,88,71,241,8,211,61,223,9,137,63,14,40,59,57,55,44,5,7,81,1,43,12,141,1,182,13,112,11,240,17,110,10,95,29,116,2,151,44,144,2,58,23,131,9,144,25,199,28,46,32,61,3,160,15,95,3,48,39,188,9,185,62,223,13,28,71,30,4,215,23,174,5,252,22,220,30,64,73,140,13,72,7,32,2,238,35,171,2,103,45,64,16,242,17,108,6,86,12,133,4,81,62,0,10,61,48,149,14,12,68,140,20,218,23,212,7,101,11,206,6,83,64,137,20,147,65,144,6,53,67,223,6,165,18,159,12,218,28,147,23,6,56,28,39,195,15,186,1,98,16,202,1,254,35,194,8,3,29,121,16,60,50,33,3,178,43,57,3,104,49,36,8,156,50,154,25,33,37,228,3,229,25,217,3,41,41,198,9,185,59,142,19,58,49,7,8,124,60,117,6,66,63,9,27,151,55,158,22,66,10,60,3,239,21,150,6,95,53,146,22,84,14,18,6,49,44,73,10,42,38,179,5,179,54,125,18,25,62,147,24,134,24,78,7,230,30,237,8,82,66,219,17,192,64,9,15,144,59,7,9,151,62,172,12,123,56,144,69,71,46,203,10,189,7,127,5,120,5,108,3,239,16,219,13,39,17,114,16,29,21,168,2,53,68,13,3,101,25,254,19,155,31,253,29,187,28,26,3,141,32,158,4,193,58,88,12,80,58,223,11,197,79,112,3,209,56,84,3,49,48,116,57,248,26,128,7,129,16,165,3,26,32,63,4,163,41,244,15,98,39,181,17,175,10,72,3,177,80,57,4,71,65,78,23,1,62,226,17,119,42,14,10,189,14,142,4,183,56,204,15,219,80,67,10,115,59,174,10,170,59,138,8,113,24,154,12,69,51,24,76,28,28,162,3,158,9,82,6,163,17,20,12,28,54,181,16,220,40,65,3,187,67,42,3,251,65,241,8,186,60,25,32,35,53,148,6,125,12,42,7,76,62,4,11,196,61,207,20,110,66,134,9,148,65,46,5,55,61,220,31,206,45,108,33,178,14,5,8,91,37,37,5,249,52,134,26,195,47,144,7,244,31,222,13,231,51,242,6,171,63,199,25,163,63,78,30,73,33,247,9,57,28,85,10,93,71,65,29,245,65,200,8,218,69,68,11,113,67,0,13,201,36,194,78,34,43,128,32,6,5,108,2,151,5,71,2,105,23,241,8,138,15,42,14,24,20,240,2,97,52,62,3,177,21,44,11,244,45,20,23,241,41,48,2,70,21,52,2,9,52,192,11,170,46,99,14,175,77,30,3,97,38,216,2,95,53,44,34,223,28,237,11,211,9,10,3,162,23,65,3,69,25,210,19,113,32,159,9,253,23,73,7,204,59,238,4,72,56,195,17,95,53,163,17,65,12,167,11,175,9,235,4,240,58,39,18,22,60,47,10,156,56,88,9,174,48,233,9,115,29,133,11,109,50,28,47,92,21,172,2,69,12,210,2,217,19,250,4,188,49,104,16,198,59,169,2,139,30,80,2,134,25,229,7,94,64,33,34,52,52,114,3,21,21,131,3,64,57,130,8,149,57,131,16,190,55,18,5,105,54,237,7,117,60,58,29,199,61,220,17,217,9,221,7,198,19,12,7,39,20,182,25,218,27,13,14,168,42,75,6,209,45,172,6,7,66,127,13,140,63,240,25,90,36,239,3,153,36,58,8,238,74,173,19,153,48,173,16,47,62,52,5,253,59,184,13,122,46,61,55,229,62,198,26,218,7,225,2,195,14,93,3,190,44,64,11,236,13,212,13,97,35,217,4,103,48,128,3,98,33,21,18,41,45,144,22,193,31,77,2,26,32,76,2,40,73,171,14,173,50,77,12,113,61,246,2,250,64,242,2,118,59,130,43,255,61,160,8,65,18,98,2,234,39,166,2,153,59,50,16,97,22,255,12,185,32,134,6,150,77,17,9,90,60,135,21,230,54,105,21,96,22,72,11,156,29,66,5,48,56,205,20,108,63,110,15,14,59,160,14,202,59,155,5,5,57,230,15,13,48,80,61,193,29,163,6,122,8,116,3,107,17,215,17,174,70,234,12,198,49,47,3,78,58,139,3,168,58,185,16,158,60,176,32,74,70,63,4,54,9,97,3,153,63,203,14,63,61,244,17,228,63,254,5,200,64,162,8,193,65,225,37,57,62,161,17,205,12,61,4,171,37,139,8,197,46,180,23,239,35,110,17,251,34,93,6,49,40,246,11,97,64,35,20,106,60,154,27,110,53,239,9,153,20,229,8,106,65,69,24,15,65,80,13,80,79,35,13,0,73,193,7,92,55,67,50,50,59,87,61,121,17,252,3,145,6,118,3,215,16,205,16,248,34,73,14,5,23,123,4,127,45,172,5,14,62,179,8,230,17,244,25,17,27,181,4,76,24,31,3,127,48,81,13,96,62,37,15,147,77,61,8,217,37,93,8,150,57,126,34,144,56,39,10,25,7,214,4,91,30,45,3,135,74,58,17,178,21,16,8,103,14,28,11,27,68,208,8,57,65,134,17,71,63,12,21,92,31,203,10,77,13,71,8,18,68,101,21,130,53,226,10,167,77,160,10,138,35,40,15,252,70,225,18,184,67,175,47,252,19,228,3,71,19,220,3,160,38,9,12,126,23,251,20,9,62,131,6,213,32,159,4,239,58,62,9,65,77,90,27,187,46,26,6,111,28,104,4,219,65,252,5,146,61,5,21,116,57,17,8,137,78,107,8,6,67,53,32,247,69,174,24,91,21,224,5,4,16,14,10,13,68,154,26,41,22,72,11,252,64,54,13,15,35,39,7,191,78,129,18,94,76,126,28,2,26,221,10,208,44,249,12,197,75,190,19,190,73,114,18,55,64,69,9,206,79,34,17,89,44,158,103,73,45,252,11,50,11,30,6,244,19,46,4,142,37,51,19,75,19,208,13,117,29,110,3,237,80,83,3,26,27,43,17,159,65,53,30,153,39,251,3,117,38,196,3,134,60,115,15,99,60,102,13,175,73,214,3,152,78,195,3,236,65,87,50,254,55,104,16,199,25,196,4,6,36,46,3,46,66,14,20,29,22,34,19,112,21,6,7,34,79,122,15,109,66,34,24,9,70,41,23,149,36,92,13,50,29,179,7,81,76,57,20,59,74,190,11,70,64,204,14,198,62,63,9,216,33,183,10,229,36,246,102,104,42,7,5,227,13,241,3,230,21,38,14,253,75,136,21,165,48,29,3,154,80,143,3,67,60,250,11,141,66,35,40,195,73,73,10,73,15,244,4,63,76,43,13,132,70,110,20,91,75,142,6,52,76,100,12,152,70,2,42,241,64,189,26,62,12,250,8,117,42,133,9,220,60,1,27,53,49,53,13,108,43,225,12,122,65,120,9,165,73,59,26,19,67,159,38,199,49,45,10,233,34,68,12,89,74,84,30,171,71,40,15,251,79,98,14,146,76,52,13,244,50,173,75,30,41,84,90,1,0,3,0,0,0,1,0,2,0,4,0,82,120,26,113,81,106,240,99,241,93,78,88,2,83,7,78,89,73,242,68,51,115,174,103,80,93,251,83,149,75,6,68,56,61,25,55,150,49,161,44,205,76,21,46,166,27,151,16,244,9,249,5,149,3,38,2,74,1,198,0,249,79,26,80,59,80,92,80,125,80,164,80,197,80,236,80,13,81,52,81,85,81,124,81,157,81,196,81,236,81,19,82,58,82,97,82,137,82,176,82,215,82,255,82,38,83,84,83,123,83,169,83,208,83,254,83,38,84,84,84,129,84,175,84,221,84,11,85,57,85,103,85,149,85,201,85,247,85,43,86,89,86,142,86,194,86,247,86,43,87,95,87,148,87,200,87,3,88,56,88,115,88,174,88,233,88,36,89,95,89,154,89,219,89,22,90,88,90,153,90,212,90,28,91,94,91,159,91,231,91,48,92,113,92,192,92,8,93,80,93,159,93,237,93,60,94,138,94,224,94,46,95,131,95,217,95,52,96,138,96,229,96,72,97,163,97,6,98,104,98,209,98,51,99,156,99,11,100,123,100,234,100,96,101,214,101,76,102,201,102,76,103,207,103,82,104,220,104,108,105,252,105,147,106,48,107,205,107,113,108,27,109,204,109,125,110,59,111,249,111,197,112,150,113,111,114,84,115,64,116,50,117,50,118,63,119,88,120,225,122,255,127,255,127,255,127,255,127,255,127,255,127,255,127,225,122,88,120,63,119,50,118,50,117,64,116,84,115,111,114,150,113,197,112,249,111,59,111,125,110,204,109,27,109,113,108,205,107,48,107,147,106,252,105,108,105,220,104,82,104,207,103,76,103,201,102,76,102,214,101,96,101,234,100,123,100,11,100,156,99,51,99,209,98,104,98,6,98,163,97,72,97,229,96,138,96,52,96,217,95,131,95,46,95,224,94,138,94,60,94,237,93,159,93,80,93,8,93,192,92,113,92,48,92,231,91,159,91,94,91,28,91,212,90,153,90,88,90,22,90,219,89,154,89,95,89,36,89,233,88,174,88,115,88,56,88,3,88,200,87,148,87,95,87,43,87,247,86,194,86,142,86,89,86,43,86,247,85,201,85,149,85,103,85,57,85,11,85,221,84,175,84,129,84,84,84,38,84,254,83,208,83,169,83,123,83,84,83,38,83,255,82,215,82,176,82,137,82,97,82,58,82,19,82,236,81,196,81,157,81,124,81,85,81,52,81,13,81,236,80,197,80,164,80,125,80,92,80,59,80,26,80,249,79,210,79,177,79,145,79,112,79,13,0,14,0,16,0,18,0,20,0,21,0,27,0,32,0,6,0,7,0,6,0,6,0,0,0,0,0,0,0,1,0,13,0,14,0,16,0,18,0,19,0,21,0,26,0,31,0,6,0,6,0,6,0,6,0,0,0,0,0,0,0,1,0,79,115,156,110,74,97,126,77,72,54,9,31,195,10,153,251,125,242,48,239,127,240,173,244,231,249,176,254,22,2,202,3,255,3,55,3,4,2,220,0,0,0,125,255,62,255,41,255,0,0,216,127,107,127,182,126,187,125,123,124,248,122,53,121,53,119,250,116,137,114,128,46,128,67,0,120,0,101,128,94,64,113,64,95,192,28,64,76,192,57,84,0,1,0,254,255,2,0,5,0,10,0,5,0,9,0,20,0,84,0,1,0,254,255,2,0,5,0,10,0,5,0,9,0,20,0,84,0,1,0,254,255,2,0,3,0,6,0,5,0,9,0,20,0,84,0,1,0,254,255,2,0,3,0,6,0,5,0,9,0,20,0,84,0,1,0,254,255,2,0,3,0,6,0,5,0,9,0,20,0,84,0,1,0,254,255,2,0,3,0,6,0,10,0,19,0,20,0,84,0,1,0,254,255,2,0,3,0,6,0,5,0,9,0,20,0,94,0,0,0,253,255,3,0,3,0,6,0,5,0,9,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,0,19,0,19,0,19,0,19,0,23,0,39,0,57,0,5,0,8,0,8,0,7,0,8,0,7,0,2,0,8,0,4,0,7,0,2,0,4,0,7,0,2,0,8,0,4,0,7,0,2,0,8,0,8,0,7,0,8,0,7,0,2,0,6,0,4,0,7,0,2,0,6,0,4,0,7,0,2,0,6,0,4,0,7,0,2,0,6,0,8,0,9,0,9,0,8,0,9,0,2,0,6,0,4,0,9,0,2,0,6,0,8,0,9,0,2,0,6,0,4,0,9,0,2,0,6,0,8,0,9,0,9,0,8,0,11,0,3,0,7,0,4,0,11,0,3,0,7,0,8,0,11,0,3,0,7,0,4,0,11,0,3,0,7,0,8,0,9,0,9,0,8,0,13,0,4,0,7,0,5,0,13,0,4,0,7,0,8,0,13,0,4,0,7,0,5,0,13,0,4,0,7,0,9,0,9,0,9,0,8,0,13,0,4,0,4,0,5,0,6,0,13,0,4,0,4,0,5,0,8,0,13,0,4,0,4,0,5,0,6,0,13,0,4,0,4,0,5,0,8,0,9,0,9,0,8,0,1,0,1,0,1,0,1,0,10,0,10,0,7,0,7,0,5,0,1,0,1,0,1,0,1,0,10,0,10,0,7,0,7,0,8,0,1,0,1,0,1,0,1,0,10,0,10,0,7,0,7,0,5,0,1,0,1,0,1,0,1,0,10,0,10,0,7,0,7,0,7,0,8,0,9,0,8,0,6,0,9,0,4,0,4,0,4,0,4,0,4,0,4,0,3,0,3,0,3,0,3,0,3,0,5,0,6,0,4,0,4,0,4,0,4,0,4,0,4,0,3,0,3,0,3,0,3,0,3,0,5,0,9,0,4,0,4,0,4,0,4,0,4,0,4,0,3,0,3,0,3,0,3,0,3,0,5,0,6,0,4,0,4,0,4,0,4,0,4,0,4,0,3,0,3,0,3,0,3,0,3,0,5,0,3,0,8,0,9,0,9,0,6,0,95,0,103,0,118,0,134,0,148,0,159,0,204,0,244,0,39,0,43,0,38,0,37,0,0,0,0,0,0,0,0,0,0,0,1,0,2,0,3,0,4,0,5,0,6,0,7,0,8,0,9,0,10,0,11,0,12,0,13,0,14,0,15,0,23,0,24,0,25,0,26,0,27,0,28,0,48,0,49,0,61,0,62,0,82,0,83,0,47,0,46,0,45,0,44,0,81,0,80,0,79,0,78,0,17,0,18,0,20,0,22,0,77,0,76,0,75,0,74,0,29,0,30,0,43,0,42,0,41,0,40,0,38,0,39,0,16,0,19,0,21,0,50,0,51,0,59,0,60,0,63,0,64,0,72,0,73,0,84,0,85,0,93,0,94,0,32,0,33,0,35,0,36,0,53,0,54,0,56,0,57,0,66,0,67,0,69,0,70,0,87,0,88,0,90,0,91,0,34,0,55,0,68,0,89,0,37,0,58,0,71,0,92,0,31,0,52,0,65,0,86,0,7,0,6,0,5,0,4,0,3,0,2,0,1,0,0,0,15,0,14,0,13,0,12,0,11,0,10,0,9,0,8,0,23,0,24,0,25,0,26,0,27,0,46,0,65,0,84,0,45,0,44,0,43,0,64,0,63,0,62,0,83,0,82,0,81,0,102,0,101,0,100,0,42,0,61,0,80,0,99,0,28,0,47,0,66,0,85,0,18,0,41,0,60,0,79,0,98,0,29,0,48,0,67,0,17,0,20,0,22,0,40,0,59,0,78,0,97,0,21,0,30,0,49,0,68,0,86,0,19,0,16,0,87,0,39,0,38,0,58,0,57,0,77,0,35,0,54,0,73,0,92,0,76,0,96,0,95,0,36,0,55,0,74,0,93,0,32,0,51,0,33,0,52,0,70,0,71,0,89,0,90,0,31,0,50,0,69,0,88,0,37,0,56,0,75,0,94,0,34,0,53,0,72,0,91,0,0,0,1,0,4,0,5,0,3,0,6,0,7,0,2,0,13,0,15,0,8,0,9,0,11,0,12,0,14,0,10,0,16,0,28,0,74,0,29,0,75,0,27,0,73,0,26,0,72,0,30,0,76,0,51,0,97,0,50,0,71,0,96,0,117,0,31,0,77,0,52,0,98,0,49,0,70,0,95,0,116,0,53,0,99,0,32,0,78,0,33,0,79,0,48,0,69,0,94,0,115,0,47,0,68,0,93,0,114,0,46,0,67,0,92,0,113,0,19,0,21,0,23,0,22,0,18,0,17,0,20,0,24,0,111,0,43,0,89,0,110,0,64,0,65,0,44,0,90,0,25,0,45,0,66,0,91,0,112,0,54,0,100,0,40,0,61,0,86,0,107,0,39,0,60,0,85,0,106,0,36,0,57,0,82,0,103,0,35,0,56,0,81,0,102,0,34,0,55,0,80,0,101,0,42,0,63,0,88,0,109,0,41,0,62,0,87,0,108,0,38,0,59,0,84,0,105,0,37,0,58,0,83,0,104,0,0,0,1,0,4,0,3,0,5,0,6,0,13,0,7,0,2,0,8,0,9,0,11,0,15,0,12,0,14,0,10,0,28,0,82,0,29,0,83,0,27,0,81,0,26,0,80,0,30,0,84,0,16,0,55,0,109,0,56,0,110,0,31,0,85,0,57,0,111,0,48,0,73,0,102,0,127,0,32,0,86,0,51,0,76,0,105,0,130,0,52,0,77,0,106,0,131,0,58,0,112,0,33,0,87,0,19,0,23,0,53,0,78,0,107,0,132,0,21,0,22,0,18,0,17,0,20,0,24,0,25,0,50,0,75,0,104,0,129,0,47,0,72,0,101,0,126,0,54,0,79,0,108,0,133,0,46,0,71,0,100,0,125,0,128,0,103,0,74,0,49,0,45,0,70,0,99,0,124,0,42,0,67,0,96,0,121,0,39,0,64,0,93,0,118,0,38,0,63,0,92,0,117,0,35,0,60,0,89,0,114,0,34,0,59,0,88,0,113,0,44,0,69,0,98,0,123,0,43,0,68,0,97,0,122,0,41,0,66,0,95,0,120,0,40,0,65,0,94,0,119,0,37,0,62,0,91,0,116,0,36,0,61,0,90,0,115,0,0,0,1,0,2,0,3,0,4,0,5,0,6,0,7,0,8,0,9,0,10,0,11,0,12,0,13,0,14,0,15,0,16,0,26,0,87,0,27,0,88,0,28,0,89,0,29,0,90,0,30,0,91,0,51,0,80,0,112,0,141,0,52,0,81,0,113,0,142,0,54,0,83,0,115,0,144,0,55,0,84,0,116,0,145,0,58,0,119,0,59,0,120,0,21,0,22,0,23,0,17,0,18,0,19,0,31,0,60,0,92,0,121,0,56,0,85,0,117,0,146,0,20,0,24,0,25,0,50,0,79,0,111,0,140,0,57,0,86,0,118,0,147,0,49,0,78,0,110,0,139,0,48,0,77,0,53,0,82,0,114,0,143,0,109,0,138,0,47,0,76,0,108,0,137,0,32,0,33,0,61,0,62,0,93,0,94,0,122,0,123,0,41,0,42,0,43,0,44,0,45,0,46,0,70,0,71,0,72,0,73,0,74,0,75,0,102,0,103,0,104,0,105,0,106,0,107,0,131,0,132,0,133,0,134,0,135,0,136,0,34,0,63,0,95,0,124,0,35,0,64,0,96,0,125,0,36,0,65,0,97,0,126,0,37,0,66,0,98,0,127,0,38,0,67,0,99,0,128,0,39,0,68,0,100,0,129,0,40,0,69,0,101,0,130,0,8,0,7,0,6,0,5,0,4,0,3,0,2,0,14,0,16,0,9,0,10,0,12,0,13,0,15,0,11,0,17,0,20,0,22,0,24,0,23,0,19,0,18,0,21,0,56,0,88,0,122,0,154,0,57,0,89,0,123,0,155,0,58,0,90,0,124,0,156,0,52,0,84,0,118,0,150,0,53,0,85,0,119,0,151,0,27,0,93,0,28,0,94,0,29,0,95,0,30,0,96,0,31,0,97,0,61,0,127,0,62,0,128,0,63,0,129,0,59,0,91,0,125,0,157,0,32,0,98,0,64,0,130,0,1,0,0,0,25,0,26,0,33,0,99,0,34,0,100,0,65,0,131,0,66,0,132,0,54,0,86,0,120,0,152,0,60,0,92,0,126,0,158,0,55,0,87,0,121,0,153,0,117,0,116,0,115,0,46,0,78,0,112,0,144,0,43,0,75,0,109,0,141,0,40,0,72,0,106,0,138,0,36,0,68,0,102,0,134,0,114,0,149,0,148,0,147,0,146,0,83,0,82,0,81,0,80,0,51,0,50,0,49,0,48,0,47,0,45,0,44,0,42,0,39,0,35,0,79,0,77,0,76,0,74,0,71,0,67,0,113,0,111,0,110,0,108,0,105,0,101,0,145,0,143,0,142,0,140,0,137,0,133,0,41,0,73,0,107,0,139,0,37,0,69,0,103,0,135,0,38,0,70,0,104,0,136,0,7,0,6,0,5,0,4,0,3,0,2,0,1,0,0,0,16,0,15,0,14,0,13,0,12,0,11,0,10,0,9,0,8,0,26,0,27,0,28,0,29,0,30,0,31,0,115,0,116,0,117,0,118,0,119,0,120,0,72,0,73,0,161,0,162,0,65,0,68,0,69,0,108,0,111,0,112,0,154,0,157,0,158,0,197,0,200,0,201,0,32,0,33,0,121,0,122,0,74,0,75,0,163,0,164,0,66,0,109,0,155,0,198,0,19,0,23,0,21,0,22,0,18,0,17,0,20,0,24,0,25,0,37,0,36,0,35,0,34,0,80,0,79,0,78,0,77,0,126,0,125,0,124,0,123,0,169,0,168,0,167,0,166,0,70,0,67,0,71,0,113,0,110,0,114,0,159,0,156,0,160,0,202,0,199,0,203,0,76,0,165,0,81,0,82,0,92,0,91,0,93,0,83,0,95,0,85,0,84,0,94,0,101,0,102,0,96,0,104,0,86,0,103,0,87,0,97,0,127,0,128,0,138,0,137,0,139,0,129,0,141,0,131,0,130,0,140,0,147,0,148,0,142,0,150,0,132,0,149,0,133,0,143,0,170,0,171,0,181,0,180,0,182,0,172,0,184,0,174,0,173,0,183,0,190,0,191,0,185,0,193,0,175,0,192,0,176,0,186,0,38,0,39,0,49,0,48,0,50,0,40,0,52,0,42,0,41,0,51,0,58,0,59,0,53,0,61,0,43,0,60,0,44,0,54,0,194,0,179,0,189,0,196,0,177,0,195,0,178,0,187,0,188,0,151,0,136,0,146,0,153,0,134,0,152,0,135,0,144,0,145,0,105,0,90,0,100,0,107,0,88,0,106,0,89,0,98,0,99,0,62,0,47,0,57,0,64,0,45,0,63,0,46,0,55,0,56,0,0,0,1,0,2,0,3,0,4,0,5,0,6,0,7,0,8,0,9,0,10,0,11,0,12,0,13,0,14,0,23,0,15,0,16,0,17,0,18,0,19,0,20,0,21,0,22,0,24,0,25,0,26,0,27,0,28,0,38,0,141,0,39,0,142,0,40,0,143,0,41,0,144,0,42,0,145,0,43,0,146,0,44,0,147,0,45,0,148,0,46,0,149,0,47,0,97,0,150,0,200,0,48,0,98,0,151,0,201,0,49,0,99,0,152,0,202,0,86,0,136,0,189,0,239,0,87,0,137,0,190,0,240,0,88,0,138,0,191,0,241,0,91,0,194,0,92,0,195,0,93,0,196,0,94,0,197,0,95,0,198,0,29,0,30,0,31,0,32,0,33,0,34,0,35,0,50,0,100,0,153,0,203,0,89,0,139,0,192,0,242,0,51,0,101,0,154,0,204,0,55,0,105,0,158,0,208,0,90,0,140,0,193,0,243,0,59,0,109,0,162,0,212,0,63,0,113,0,166,0,216,0,67,0,117,0,170,0,220,0,36,0,37,0,54,0,53,0,52,0,58,0,57,0,56,0,62,0,61,0,60,0,66,0,65,0,64,0,70,0,69,0,68,0,104,0,103,0,102,0,108,0,107,0,106,0,112,0,111,0,110,0,116,0,115,0,114,0,120,0,119,0,118,0,157,0,156,0,155,0,161,0,160,0,159,0,165,0,164,0,163,0,169,0,168,0,167,0,173,0,172,0,171,0,207,0,206,0,205,0,211,0,210,0,209,0,215,0,214,0,213,0,219,0,218,0,217,0,223,0,222,0,221,0,73,0,72,0,71,0,76,0,75,0,74,0,79,0,78,0,77,0,82,0,81,0,80,0,85,0,84,0,83,0,123,0,122,0,121,0,126,0,125,0,124,0,129,0,128,0,127,0,132,0,131,0,130,0,135,0,134,0,133,0,176,0,175,0,174,0,179,0,178,0,177,0,182,0,181,0,180,0,185,0,184,0,183,0,188,0,187,0,186,0,226,0,225,0,224,0,229,0,228,0,227,0,232,0,231,0,230,0,235,0,234,0,233,0,238,0,237,0,236,0,96,0,199,0,0,0,2,0,0,0,3,0,0,0,2,0,0,0,3,0,1,0,3,0,2,0,4,0,1,0,4,0,1,0,4,0,0,0,205,12,156,25,0,32,102,38,205,44,0,48,51,51,102,54,154,57,205,60,0,64,51,67,102,70,154,73,205,76,159,0,64,241,53,167,206,0,190,242,52,176,12,1,67,244,88,185,93,1,201,245,133,194,163,1,215,246,223,200,226,1,166,247,189,205,42,2,116,248,147,210,125,2,66,249,109,215,221,2,18,250,77,220,74,3,222,250,30,225,201,3,174,251,0,230,90,4,124,252,216,234,1,5,74,253,179,239,193,5,25,254,141,244,158,6,231,254,104,249,156,7,181,255,67,254,193,8,133,0,33,3,17,10,83,1,252,7,147,11,33,2,213,12,80,13,240,2,178,17,79,15,190,3,140,22,155,17,141,4,104,27,63,20,91,5,67,32,72,23,41,6,29,37,199,26,248,6,249,41,203,30,199,7,212,46,105,35,149,8,175,51,185,40,100,9,138,56,222,48,113,10,224,62,135,63,244,11,253,71,150,82,120,13,27,81,93,107,252,14,57,90,93,107,252,14,57,90,0,0,1,0,3,0,2,0,6,0,4,0,5,0,7,0,0,0,1,0,3,0,2,0,5,0,6,0,4,0,7,0,248,127,211,127,76,127,108,126,51,125,163,123,188,121,127,119,239,116,12,114,217,110,89,107,141,103,121,99,31,95,130,90,166,85,141,80,60,75,182,69,0,64,28,58,15,52,223,45,141,39,32,33,156,26,6,20,97,13,178,6,0,0,78,249,159,242,250,235,100,229,224,222,115,216,33,210,241,203,228,197,0,192,74,186,196,180,115,175,90,170,126,165,225,160,135,156,115,152,167,148,39,145,244,141,17,139,129,136,68,134,93,132,205,130,148,129,180,128,45,128,8,128,255,127,46,124,174,120,118,117,125,114,186,111,41,109,194,106,131,104,102,102,105,100,137,98,194,96,19,95,122,93,245,91,130,90,33,89,207,87,139,86,85,85,44,84,15,83,252,81,244,80,246,79,1,79,20,78,48,77,83,76,126,75,175,74,231,73,37,73,104,72,178,71,0,71,84,70,173,69,10,69,107,68,209,67,59,67,168,66,25,66,142,65,6,65,130,64,0,64,0,0,175,5,50,11,140,16,192,21,207,26,188,31,136,36,53,41,196,45,55,50,143,54,206,58,245,62,4,67,252,70,223,74,174,78,105,82,17,86,167,89,44,93,159,96,3,100,87,103,155,106,209,109,250,112,20,116,33,119,34,122,23,125,255,127,255,127,217,127,98,127,157,126,138,125,42,124,125,122,133,120,66,118,182,115,227,112,202,109,110,106,208,102,242,98,215,94,130,90,246,85,52,81,64,76,29,71,206,65,87,60,186,54,252,48,31,43,40,37,26,31,249,24,200,18,140,12,72,6,0,0,184,249,116,243,56,237,7,231,230,224,216,218,225,212,4,207,70,201,169,195,50,190,227,184,192,179,204,174,10,170,126,165,41,161,14,157,48,153,146,149,54,146,29,143,74,140,190,137,123,135,131,133,214,131,118,130,99,129,158,128,39,128,0,128,249,150,148,221,53,235,27,241,93,244,116,246,223,247,237,248,184,249,86,250,214,250,61,251,148,251,221,251,26,252,78,252,123,252,163,252,197,252,227,252,252,252,18,253,38,253,55,253,69,253,81,253,91,253,100,253,106,253,111,253,114,253,116,253,116,253,114,253,111,253,106,253,100,253,91,253,81,253,69,253,55,253,38,253,18,253,252,252,227,252,197,252,163,252,123,252,78,252,26,252,221,251,148,251,61,251,214,250,86,250,184,249,237,248,223,247,116,246,93,244,27,241,53,235,148,221,249,150,48,117,144,101,8,82,152,58,64,31,0,0,192,224,104,197,248,173,112,154,153,104,33,3,201,9,85,253,154,250,70,2,92,2,6,251,183,13,250,232,182,17,13,254,108,248,195,11,62,236,238,21,58,248,219,251,77,250,90,17,68,253,41,235,1,18,196,1,179,253,232,242,137,11,243,4,68,251,226,245,195,6,86,14,133,238,49,252,39,17,23,246,181,3,173,250,45,252,102,22,66,118,247,14,60,240,156,11,232,251,22,252,173,9,29,244,255,10,73,247,217,6,181,249,178,6,17,249,7,6,16,252,173,1,87,255,216,1,16,251,128,8,110,245,219,9,171,249,88,1,58,3,7,250,188,6,135,249,165,6,241,247,84,10,12,244,81,11,70,248,45,2,12,3,167,250,74,3,143,2,98,57,254,44,244,4,55,245,217,233,90,29,221,255,9,245,32,244,215,18,136,11,24,223,201,14,175,5,131,8,67,222,115,31,201,247,82,250,9,3,84,4,175,246,206,8,149,254,94,253,201,247,158,23,207,233,48,4,51,12,62,236,192,20,231,246,112,241,12,27,207,240,163,2,17,249,29,0,161,39,66,118,247,14,60,240,156,11,232,251,22,252,173,9,29,244,255,10,73,247,217,6,181,249,178,6,17,249,7,6,16,252,173,1,87,255,216,1,16,251,128,8,110,245,219,9,171,249,88,1,58,3,7,250,188,6,135,249,165,6,241,247,84,10,12,244,81,11,70,248,45,2,12,3,167,250,74,3,143,2,0,64,103,65,213,66,76,68,203,69,82,71,226,72,122,74,28,76,199,77,123,79,56,81,255,82,209,84,172,86,146,88,130,90,126,92,132,94,150,96,180,98,221,100,18,103,84,105,162,107,254,109,102,112,221,114,96,117,242,119,147,122,66,125,255,127,3,115,186,110,119,98,225,79,109,57,245,33,71,12,184,250,206,238,23,233,38,233,191,237,33,245,96,253,187,4,232,9,58,12,175,11,211,8,146,4,0,0,23,252,140,249,180,248,126,249,133,251,48,254,218,0,244,2,36,4,75,4,136,3,38,2,135,0,11,255,254,253,134,253,166,253,61,254,25,255,0,0,191,0,52,1,84,1,40,1,198,0,78,0,220,255,136,255,93,255,91,255,124,255,177,255,237,255,34,0,73,0,91,0,89,0,70,0,38,0,0,0,254,254,194,254,73,254,134,253,112,253,251,252,57,253,10,254,244,254,63,255,254,255,125,0,122,0,217,255,247,255,105,0,129,0,27,1,116,1,63,2,235,254,188,254,59,255,25,254,67,254,150,254,220,254,229,255,177,0,31,2,86,1,5,2,4,2,130,0,27,0,152,255,136,255,116,255,182,255,200,255,204,253,81,252,16,250,59,252,210,252,242,253,190,254,254,255,159,0,145,2,200,254,228,254,126,254,171,253,19,254,242,253,94,254,27,255,105,0,193,1,211,253,154,252,205,251,105,252,74,252,16,253,59,253,196,254,62,0,230,1,198,254,65,255,53,255,182,254,96,255,153,255,205,255,131,0,82,1,3,2,10,6,224,8,194,14,112,21,60,27,190,32,63,39,221,43,222,49,146,53,84,37,17,42,27,49,236,51,45,56,131,45,92,41,39,38,145,33,84,25,6,0,82,0,125,255,154,0,200,255,33,253,183,0,191,255,247,254,9,0,46,255,151,254,113,0,206,2,25,7,242,3,190,4,37,6,89,3,53,5,228,8,59,3,32,6,141,7,205,2,197,7,158,8,70,3,148,4,31,7,209,2,232,3,106,8,30,1,220,1,229,5,9,255,237,253,230,0,147,0,174,255,57,2,26,0,79,255,80,252,229,255,239,254,180,2,92,255,248,254,73,255,224,0,22,3,15,4,131,3,178,3,89,2,229,1,3,3,126,4,12,2,165,2,135,3,116,255,119,1,10,3,154,1,164,2,173,1,45,1,18,2,241,3,207,2,134,2,38,0,226,0,111,1,40,0,145,0,211,255,7,254,34,1,121,0,135,255,46,1,127,0,166,0,132,255,129,254,68,252,154,254,57,254,47,252,203,2,110,3,126,3,210,3,155,3,211,0,221,1,16,1,64,0,188,0,178,255,17,0,113,255,191,255,38,0,131,2,74,2,109,2,122,255,86,254,117,253,91,1,33,2,4,11,164,4,166,10,138,9,142,0,176,255,199,6,27,1,130,0,205,1,250,254,113,254,135,251,101,254,155,0,174,1,73,1,119,1,11,3,53,0,30,255,117,255,127,255,20,255,146,6,29,1,232,2,47,5,226,2,185,2,128,6,56,1,153,1,10,1,69,1,208,2,135,0,1,0,221,0,197,1,8,0,203,0,145,0,43,1,128,2,248,2,29,0,212,1,126,2,103,0,173,1,123,1,164,1,186,3,164,3,46,5,186,4,234,4,192,2,244,3,128,4,90,255,68,254,246,254,196,254,126,255,136,254,191,0,127,4,112,7,16,255,225,253,20,251,144,255,12,1,183,4,70,0,38,4,47,6,22,1,80,5,38,6,254,254,240,254,0,253,19,0,51,2,192,8,253,255,247,254,135,0,217,254,177,253,124,254,140,0,98,1,50,255,252,254,8,254,229,252,79,254,50,253,217,250,109,0,75,1,194,3,83,254,169,255,140,2,216,254,170,1,251,3,17,255,7,3,83,3,233,1,54,5,49,4,178,254,180,254,25,0,31,2,182,4,15,7,70,1,61,0,215,2,66,2,81,3,125,5,48,255,235,254,73,1,104,255,64,0,157,2,78,254,90,253,41,253,58,254,185,255,251,0,93,2,224,1,254,0,30,254,11,0,228,3,223,254,139,1,230,1,210,2,25,4,160,5,226,255,196,254,238,252,150,255,141,255,149,253,93,3,194,5,132,5,31,4,86,5,160,4,44,3,213,4,157,3,42,0,5,255,192,253,86,1,141,0,58,254,88,255,176,255,79,5,170,254,112,253,29,249,100,0,53,3,213,2,222,3,235,2,32,3,76,1,184,1,56,2,151,2,123,1,84,3,112,0,165,0,143,254,85,2,142,3,26,1,248,255,66,3,1,5,160,254,60,2,183,2,206,1,198,8,14,7,89,1,190,0,94,5,160,1,147,3,118,8,168,0,174,255,24,1,252,253,66,254,72,3,47,0,21,2,44,0,150,254,57,253,137,251,22,0,193,0,192,5,171,255,233,0,21,7,194,255,67,2,224,5,38,2,176,3,213,6,211,2,138,2,124,4,204,3,116,3,115,5,87,254,131,2,0,0,232,3,184,3,74,4,249,0,166,5,160,2,178,254,169,255,124,8,214,253,90,7,112,10,140,0,34,7,61,7,152,3,213,6,30,10,52,4,141,7,246,7,119,255,69,254,237,249,245,4,150,4,212,1,19,254,134,255,241,5,61,254,9,4,190,4,226,1,159,6,94,4,47,3,137,2,128,1,66,254,76,253,107,0,193,254,163,253,138,255,49,255,7,254,13,2,44,254,244,255,176,10,75,0,142,7,25,5,112,3,54,9,219,8,5,5,39,6,212,7,208,255,208,254,94,251,77,254,51,254,5,255,146,254,108,254,221,253,223,254,163,253,171,253,230,253,214,252,91,255,136,255,3,0,100,1,127,2,217,4,222,5,96,0,177,0,238,2,77,254,183,253,106,251,156,254,109,0,177,255,27,254,32,1,213,7,9,0,92,4,219,2,112,3,86,8,178,3,247,254,49,6,41,4,133,4,186,4,75,3,14,254,100,253,175,1,118,1,65,1,27,255,160,5,53,8,101,5,193,1,205,1,131,4,151,255,39,0,128,254,249,254,111,1,182,0,141,254,108,253,5,3,68,255,127,4,203,3,53,5,96,6,155,5,6,3,243,4,197,4,30,254,192,252,47,250,19,255,46,255,92,3,122,3,79,6,40,4,216,1,38,4,168,4,185,0,53,4,221,3,200,253,32,252,88,249,63,254,122,252,5,248,114,255,135,254,54,254,46,255,214,253,251,251,245,255,109,4,217,8,183,254,93,253,131,252,6,255,145,2,163,4,7,2,230,5,243,6,8,2,27,2,123,5,15,2,141,5,22,5,205,253,153,252,32,251,109,255,49,254,111,3,180,255,30,9,24,11,51,2,13,10,81,9,120,2,134,7,104,11,207,2,231,7,48,7,223,253,45,253,84,4,129,0,131,255,116,3,137,5,96,6,157,3,162,255,30,6,215,6,171,254,253,5,15,6,79,2,139,1,238,254,180,255,213,3,15,11,153,0,169,11,52,7,8,4,5,10,189,10,228,5,16,11,87,7,23,3,175,4,26,2,66,255,59,254,209,5,234,254,220,253,134,4,11,255,149,7,252,7,0,4,24,6,114,6,0,2,253,0,210,1,194,255,189,254,127,4,39,254,136,254,251,1,79,254,100,5,114,8,131,3,151,7,165,5,134,0,192,2,184,1,204,1,13,2,228,255,62,254,23,1,58,5,0,0,203,3,252,0,67,254,141,253,33,252,164,254,166,253,112,250,142,1,200,2,120,6,149,255,58,1,78,255,93,0,178,8,190,8,6,2,81,3,144,2,50,254,57,253,65,254,174,0,222,255,167,4,137,255,42,0,237,3,140,254,18,1,246,2,12,4,48,9,46,7,163,2,188,6,218,5,174,1,6,5,85,8,127,255,73,254,0,0,139,254,32,3,96,8,6,0,51,6,174,9,222,1,84,2,80,8,84,254,32,253,225,5,129,1,178,0,212,3,139,0,193,1,201,4,242,253,182,252,42,252,145,0,18,6,218,4,111,2,168,5,144,2,93,1,248,3,202,5,31,0,232,254,159,1,196,254,212,2,105,6,104,1,34,4,44,2,76,254,154,254,177,4,157,254,99,4,147,7,145,1,48,6,200,8,241,253,12,252,99,1,233,0,238,0,185,8,218,253,127,252,129,253,147,254,11,254,165,7,133,1,68,7,85,6,162,0,108,4,240,4,19,255,150,4,110,5,128,253,101,254,116,0,28,255,158,6,250,8,103,6,138,8,219,8,50,2,249,4,98,10,67,1,82,1,238,6,66,2,83,4,84,3,22,0,82,2,166,3,113,255,206,2,190,1,50,0,71,0,247,255,174,254,70,253,129,250,102,0,118,255,204,252,202,254,43,254,133,251,158,1,67,0,245,254,36,4,46,3,161,5,12,6,80,5,248,4,218,6,103,7,125,6,227,7,85,8,28,7,16,7,14,9,53,7,132,2,163,255,198,1,90,3,73,1,120,255,233,1,254,254,128,255,58,255,23,253,215,255,204,255,247,254,39,252,90,1,137,0,223,1,51,249,20,253,84,253,117,251,67,249,145,254,129,252,135,251,240,252,24,254,78,252,56,252,171,255,122,254,43,253,215,0,172,254,85,255,252,3,148,3,177,7,52,2,179,0,234,2,150,2,209,3,198,6,119,3,110,2,146,3,171,3,88,3,141,4,53,1,176,2,35,3,149,3,161,0,58,2,118,0,236,255,229,254,208,252,214,255,204,0,52,251,187,254,50,254,61,252,54,255,113,255,36,252,28,254,151,254,66,253,46,252,35,254,210,254,234,252,92,251,156,255,238,252,192,251,226,251,77,252,108,249,54,255,181,252,242,252,241,251,158,250,123,252,144,253,146,255,171,255,100,1,213,0,246,255,19,254,108,1,6,3,169,1,54,3,223,1,173,255,45,2,8,2,32,252,232,249,196,253,165,253,27,253,230,255,10,254,130,253,121,252,209,0,50,1,147,0,196,254,175,253,172,253,171,255,45,255,31,255,106,252,239,253,117,0,233,0,73,254,30,253,77,4,239,2,121,2,177,5,180,6,231,5,229,6,177,5,142,3,98,4,132,4,81,3,74,5,100,3,214,1,153,252,130,251,252,248,153,252,163,252,32,252,138,255,155,0,212,0,229,251,175,252,162,253,163,251,199,248,66,245,5,252,109,250,179,248,114,1,72,255,98,254,191,3,237,1,104,0,190,3,15,4,31,2,154,0,141,2,201,0,225,4,251,1,150,0,151,2,247,1,230,0,111,2,9,3,163,2,147,2,88,0,146,255,75,3,244,0,224,0,126,1,29,2,46,1,212,2,177,1,154,2,142,4,222,2,85,1,118,255,20,0,115,254,97,251,88,254,210,255,191,254,160,254,132,255,53,5,253,3,56,4,6,1,110,1,211,2,154,3,27,1,217,253,31,0,132,253,157,253,79,253,71,253,97,254,72,252,245,252,55,255,207,250,170,253,153,254,71,252,251,250,166,0,237,1,49,1,221,0,78,3,191,2],"i8",k,u.GLOBAL_BASE),T([98,2,72,3,168,3,6,3,45,253,212,250,19,251,155,254,255,251,148,250,184,251,160,250,147,254,120,250,167,248,160,253,250,248,65,249,94,253,223,253,107,251,65,253,166,2,18,3,148,0,133,255,184,2,8,5,132,2,94,1,246,255,158,1,102,2,15,0,137,0,88,1,45,255,210,252,24,250,205,252,121,254,94,252,180,253,47,0,177,253,126,252,115,252,183,251,93,255,8,251,113,251,99,255,72,250,11,250,123,254,6,251,92,251,144,253,159,2,213,0,198,1,124,0,238,254,243,253,39,253,16,254,104,255,192,250,122,0,135,0,167,244,179,253,118,254,64,249,185,1,206,255,196,5,136,3,19,3,60,1,236,0,72,254,165,254,217,0,157,1,113,252,107,252,121,0,57,254,92,252,202,0,164,255,47,254,137,254,232,1,134,1,218,1,108,3,217,2,60,1,233,248,224,250,99,253,87,0,194,3,176,1,51,2,7,255,222,251,250,0,29,1,81,4,117,4,171,1,184,2,242,251,128,249,210,249,76,252,90,1,160,0,203,254,240,254,166,252,158,2,112,2,226,4,80,252,104,254,102,253,162,253,192,254,128,254,20,254,230,0,65,0,78,1,206,255,240,255,240,255,78,253,139,250,255,6,180,6,119,5,174,9,15,8,124,5,221,4,191,5,146,5,130,254,243,251,254,255,173,0,114,254,121,4,211,5,232,7,9,7,4,3,250,4,226,5,149,5,199,6,209,7,55,4,194,4,249,4,126,251,197,248,207,250,216,252,147,251,184,251,61,254,247,251,70,249,65,0,66,2,172,255,60,250,126,246,14,249,3,253,170,250,18,254,38,255,174,253,93,252,81,1,20,255,50,2,53,9,102,10,146,7,209,5,252,4,106,3,189,0,102,1,118,1,17,250,23,247,214,246,57,252,9,251,209,247,140,253,92,251,250,249,125,6,19,4,34,2,53,2,37,4,220,2,192,255,188,252,78,254,76,254,160,255,203,0,54,4,192,4,100,6,139,3,254,5,218,3,70,1,197,3,77,3,142,0,172,255,197,0,214,1,75,9,34,6,109,4,214,1,190,4,139,1,96,5,176,4,101,4,18,4,92,1,225,253,46,251,136,254,41,255,75,255,225,1,101,248,171,249,46,255,18,253,95,251,134,1,29,0,113,254,27,0,52,3,212,4,243,2,183,2,211,3,153,1,82,255,173,4,11,4,144,3,76,5,54,7,32,252,99,250,228,1,51,250,92,249,208,0,100,254,180,4,152,5,241,254,128,3,120,4,96,254,241,6,154,5,96,249,172,245,52,255,3,249,241,249,9,4,136,249,233,249,23,5,27,251,203,249,57,4,99,253,185,251,190,255,86,253,64,1,167,254,147,2,49,1,45,4,244,250,220,252,237,255,157,249,245,250,29,0,109,249,15,254,71,0,225,254,249,255,156,255,18,254,62,252,19,255,84,3,89,7,204,6,63,251,149,250,227,0,108,253,46,1,117,1,96,0,63,4,233,4,206,251,123,249,160,0,229,1,28,8,6,7,90,252,36,255,40,2,172,253,156,253,237,0,80,1,184,6,111,3,131,2,117,2,178,1,243,4,10,2,97,6,15,0,244,0,71,254,195,5,205,2,184,0,27,7,54,6,173,6,220,3,5,1,169,3,45,8,41,9,240,5,91,8,66,7,70,6,191,253,189,253,77,251,68,252,135,0,24,254,48,254,51,0,174,254,139,253,164,254,45,253,122,4,25,8,162,5,144,8,186,5,143,3,92,250,220,249,26,247,120,5,198,2,17,5,55,5,121,2,160,3,154,5,146,8,34,10,118,9,156,8,89,7,214,3,194,8,62,7,124,1,24,3,121,4,193,255,229,253,158,1,4,255,60,252,198,254,19,251,85,253,244,252,193,252,242,253,19,252,126,249,145,251,88,254,181,249,60,254,213,254,244,4,24,4,130,2,123,4,85,3,88,3,93,253,176,254,139,0,220,8,63,5,138,5,29,0,0,3,29,3,56,251,167,1,52,2,218,250,198,251,245,0,234,250,212,252,61,2,238,250,175,249,134,2,56,252,66,3,211,2,225,3,116,6,235,7,65,255,207,252,176,1,150,2,60,0,198,0,114,2,229,3,50,5,112,6,171,7,9,5,195,249,163,255,211,255,192,251,37,0,172,255,117,6,47,10,33,9,41,4,248,7,73,9,115,4,22,9,70,8,91,3,101,1,230,5,152,2,203,4,75,4,223,1,80,5,144,3,105,7,218,6,227,7,144,4,117,7,248,6,143,1,34,0,0,1,175,253,208,254,227,251,35,2,158,6,127,5,135,2,157,255,171,254,212,5,111,6,166,4,38,0,124,253,44,255,139,1,78,3,222,0,64,253,3,253,52,253,44,253,84,248,12,245,106,255,35,1,174,255,209,4,179,5,239,3,116,255,101,255,153,0,183,1,41,1,32,6,7,250,102,254,132,253,0,6,199,1,19,255,208,250,117,255,252,254,19,2,42,2,100,3,13,1,240,4,94,2,23,255,115,3,207,1,230,2,88,2,136,255,183,255,165,1,212,0,73,254,198,255,36,3,250,250,39,251,216,2,38,1,22,254,50,0,177,253,119,252,26,251,42,0,81,253,147,0,231,255,17,1,84,2,201,254,189,4,89,2,14,253,81,3,72,2,173,1,95,2,75,2,166,253,90,255,205,1,228,252,201,252,9,3,100,5,142,3,219,6,119,0,137,5,204,3,37,255,144,252,196,249,231,251,14,252,182,1,55,253,157,250,78,0,0,0,65,254,101,251,144,251,217,250,219,249,200,8,231,6,29,5,178,3,47,6,152,5,126,4,226,1,180,1,43,254,172,251,106,2,65,254,58,252,64,4,28,251,21,250,142,255,176,251,40,248,189,253,210,0,101,2,241,1,73,248,99,250,130,2,11,251,168,252,243,3,146,249,95,251,39,4,237,249,96,253,180,4,100,249,166,251,111,2,45,252,210,250,3,251,27,2,109,255,126,3,182,250,127,252,78,254,120,3,219,1,172,1,153,0,128,254,82,1,44,250,1,254,103,1,50,252,165,251,42,254,105,0,218,253,165,2,87,252,135,251,109,3,124,1,252,254,210,0,149,6,156,3,232,4,239,6,166,4,71,4,139,5,119,2,21,2,115,2,43,1,165,254,101,254,234,253,135,2,118,253,29,0,173,253,134,254,169,250,27,6,122,5,97,4,185,5,65,4,130,5,136,2,208,247,190,251,250,255,55,1,62,255,155,252,129,253,193,252,160,1,118,251,56,251,69,5,33,251,83,252,21,7,111,247,61,248,197,1,149,253,169,250,68,252,186,249,76,248,29,250,105,251,223,251,176,251,135,254,89,2,201,0,84,7,57,3,118,1,82,254,213,250,29,0,139,250,31,251,205,250,17,252,32,250,192,3,135,250,39,248,197,0,157,250,99,248,20,255,203,251,123,0,166,1,103,2,245,4,34,2,206,254,246,5,136,3,170,4,252,6,153,4,142,253,140,252,10,250,199,0,254,2,224,5,215,251,94,3,197,0,246,251,19,249,137,252,224,252,145,0,87,2,146,251,249,253,114,2,75,251,122,248,244,1,114,252,239,251,141,250,60,250,225,249,55,252,245,253,74,3,34,0,2,7,134,2,94,3,73,251,160,248,22,252,178,255,247,255,96,253,20,4,247,2,80,0,168,253,115,4,251,3,57,0,208,7,142,5,191,252,134,5,97,4,78,251,94,6,236,4,51,254,140,5,220,4,1,6,207,3,253,0,229,254,68,1,153,254,87,2,61,255,106,0,76,2,62,0,181,253,11,253,133,2,205,0,51,0,177,4,246,2,71,251,161,2,122,254,144,253,45,6,173,3,105,255,255,3,223,2,4,11,21,5,178,2,210,254,12,2,157,255,124,252,204,249,91,251,60,4,251,0,238,0,222,7,0,7,242,3,221,4,97,6,205,6,53,251,252,249,72,251,147,253,200,1,147,255,40,0,191,255,20,3,219,252,69,253,186,250,185,253,136,3,64,3,223,252,20,2,82,2,180,7,128,5,71,5,103,251,168,248,190,247,251,252,56,2,180,3,9,252,55,4,236,4,169,251,226,1,126,255,242,6,20,4,12,3,45,250,245,0,144,3,196,254,139,251,107,252,232,253,94,250,214,246,239,252,246,249,60,248,45,248,1,1,141,3,199,248,135,253,71,251,254,249,130,248,226,251,70,6,191,8,40,6,201,253,36,250,248,249,1,251,195,0,89,5,207,252,37,1,195,4,243,253,118,2,173,4,94,249,135,246,208,248,209,254,219,2,235,2,111,251,5,255,13,1,74,252,181,255,148,6,98,251,59,254,237,3,193,249,73,2,122,1,229,247,197,253,85,254,239,253,121,251,109,251,229,254,51,255,204,253,228,252,222,4,205,2,229,8,159,3,27,2,58,254,47,2,184,1,51,253,180,5,79,6,250,251,28,4,74,6,111,251,118,255,79,3,226,0,39,0,156,253,29,251,150,255,39,253,117,253,200,3,22,5,54,253,132,253,191,6,97,1,45,4,154,1,226,252,100,255,75,4,194,253,150,3,190,1,226,250,244,3,210,1,128,5,55,6,253,2,149,5,100,5,221,6,157,7,164,7,74,9,42,6,255,7,100,8,148,3,98,0,249,255,101,7,138,5,93,8,92,1,125,5,43,6,152,0,110,4,9,7,245,254,154,0,115,5,114,251,213,1,30,4,138,251,107,254,207,251,195,250,40,247,211,249,148,254,101,3,170,6,118,251,37,2,14,6,55,251,116,248,126,249,51,250,71,248,249,247,65,249,118,252,158,255,151,248,233,0,212,5,124,3,108,0,181,254,64,249,110,251,92,249,220,251,188,7,254,6,210,251,51,249,139,248,245,255,3,6,37,5,192,249,94,0,241,1,165,1,187,1,59,255,214,249,163,254,30,252,169,253,229,253,116,4,59,252,117,250,127,255,195,250,175,0,65,254,137,254,31,5,7,8,141,254,118,253,205,254,207,251,93,2,109,1,247,247,143,255,174,1,140,2,146,3,199,3,12,252,206,249,237,246,225,5,224,4,47,2,6,1,26,254,111,254,65,249,62,5,10,6,50,0,56,0,176,1,182,254,119,0,164,253,19,250,200,251,214,252,178,3,103,4,31,4,136,250,89,249,80,249,10,251,64,253,219,250,39,3,29,7,119,4,200,10,70,6,123,8,96,4,153,1,106,255,109,255,148,1,191,3,135,9,119,7,141,8,118,252,115,255,158,252,120,252,114,255,54,254,211,253,60,253,113,249,194,252,105,250,209,249,206,248,190,250,194,251,188,249,240,254,147,3,84,251,4,3,32,4,130,253,46,251,151,248,12,254,175,255,202,252,247,250,179,249,33,253,139,255,17,3,168,0,190,251,109,4,154,3,184,251,22,253,104,5,31,1,221,253,217,251,160,250,103,247,76,251,128,247,222,249,35,249,25,250,63,247,253,252,55,249,75,4,62,3,204,249,212,2,219,4,250,249,181,2,37,3,102,249,16,255,129,6,92,249,252,255,100,253,101,8,48,3,18,4,206,252,207,248,22,0,4,253,5,254,193,1,129,251,151,253,33,1,181,252,196,249,16,255,242,1,22,255,111,253,16,253,224,1,142,6,193,254,31,254,193,0,213,252,171,0,137,255,176,247,54,255,176,252,181,6,116,4,164,6,67,0,239,255,66,0,244,255,102,249,187,253,152,255,240,254,204,251,94,251,203,248,136,254,140,251,98,252,92,254,198,255,253,254,112,253,146,251,215,253,252,6,203,4,199,1,129,0,206,1,185,1,16,255,240,253,72,3,2,2,130,0,181,255,90,4,111,2,153,0,216,0,44,4,52,2,250,255,236,254,95,4,215,2,190,0,188,255,192,2,50,1,119,0,248,254,73,1,61,0,156,255,156,0,108,1,123,0,183,0,48,255,85,255,133,255,220,0,191,255,206,254,194,255,146,1,17,0,108,253,86,252,246,254,0,0,129,1,235,0,20,1,29,1,64,1,12,1,176,254,56,255,44,253,17,0,172,255,125,1,224,253,173,1,238,1,7,2,139,255,32,1,48,1,73,1,131,2,157,0,189,2,252,1,176,4,113,2,28,3,96,2,230,3,165,1,236,1,120,2,180,4,12,3,190,1,132,0,233,4,76,3,35,2,193,1,61,3,146,2,29,2,214,1,108,4,234,4,150,3,127,2,35,2,51,0,167,1,23,1,9,0,136,1,83,0,94,0,30,2,31,2,229,0,109,255,58,255,129,0,194,0,71,255,161,252,215,250,210,254,30,0,171,253,139,253,237,255,114,0,124,252,199,251,210,1,97,1,53,250,219,249,15,0,113,255,84,249,245,247,17,253,196,0,172,248,237,247,126,253,254,254,225,246,66,250,62,254,204,253,184,253,70,255,152,252,98,254,243,248,36,252,155,251,226,250,42,253,151,251,28,0,169,0,241,251,160,252,50,253,10,255,228,1,36,0,23,255,207,255,9,1,67,0,33,1,211,1,178,0,31,2,42,3,28,2,84,0,26,1,160,2,191,2,49,252,247,252,129,0,31,1,86,252,29,255,187,3,83,2,175,249,223,254,68,3,137,2,201,248,41,255,82,4,206,2,14,248,195,251,138,2,184,1,203,247,239,253,139,3,63,2,37,248,176,254,158,2,204,0,171,246,76,253,104,1,137,0,148,247,100,247,247,255,24,1,246,254,119,0,39,0,193,0,78,0,197,255,136,255,226,0,49,252,166,252,243,252,185,251,149,253,99,254,61,254,182,252,64,251,215,250,211,252,141,252,160,250,177,249,118,254,84,254,31,253,167,251,219,253,234,252,144,252,49,252,57,252,126,253,39,252,138,252,7,251,175,250,39,254,220,252,135,250,129,250,160,0,247,254,105,252,237,254,8,255,6,255,50,253,132,254,97,0,153,255,137,254,27,255,97,254,63,255,121,255,213,253,116,2,105,1,119,0,216,0,67,2,108,1,135,1,209,0,122,2,10,2,102,255,108,255,14,2,133,1,170,0,33,0,105,0,11,1,64,0,124,1,33,250,24,252,226,255,143,254,210,251,58,0,135,2,223,0,16,250,221,254,109,2,51,1,5,250,156,0,250,2,148,1,19,248,141,0,222,2,243,1,199,248,118,253,50,1,0,2,69,255,152,255,197,255,182,1,134,0,26,255,156,0,70,255,195,255,252,254,240,255,10,0,199,253,253,255,91,254,215,254,67,249,247,253,166,254,178,0,174,250,197,255,212,255,157,0,158,247,51,254,42,254,163,254,134,247,255,255,143,254,135,255,213,249,139,254,124,252,9,252,163,251,177,253,155,253,240,252,207,253,122,0,181,255,63,254,252,255,85,255,133,255,140,254,192,0,168,0,180,255,124,255,252,0,149,255,84,1,210,0,136,1,253,1,16,1,181,0,147,255,145,0,218,0,119,0,96,254,249,254,229,1,9,1,75,255,248,255,226,254,226,0,12,255,38,255,69,0,222,254,98,255,191,0,255,255,192,255,176,253,166,255,213,0,160,255,255,0,179,1,178,0,176,255,143,254,238,255,223,255,176,255,214,255,159,1,140,0,34,255,119,4,139,2,137,2,73,1,255,2,44,2,249,0,235,0,180,3,157,1,186,1,23,1,141,0,83,1,100,1,45,2,42,254,86,255,99,0,237,0,199,253,224,252,96,1,53,2,26,1,217,1,214,1,76,1,57,255,78,253,252,250,107,252,63,255,86,254,224,252,158,251,230,255,141,254,22,254,63,255,125,2,83,2,7,2,74,1,152,1,141,255,79,0,12,0,221,1,87,0,153,255,136,254,102,253,165,254,235,254,221,254,2,254,31,254,169,0,41,1,195,252,30,253,51,255,85,255,192,254,228,253,72,1,27,1,165,252,66,252,186,1,254,255,44,2,174,2,130,0,56,0,103,5,244,3,243,2,171,1,100,2,229,2,116,2,41,2,173,254,228,252,134,0,21,1,135,253,195,251,254,255,10,255,144,252,245,251,185,249,216,251,30,252,38,254,142,251,24,254,98,254,229,252,73,0,50,255,248,255,117,255,183,1,204,0,80,255,190,253,23,0,131,0,243,254,11,253,65,255,245,0,147,255,174,254,112,0,60,1,120,0,106,254,138,255,99,2,76,255,70,255,123,253,115,0,83,255,34,0,250,253,23,254,105,255,61,0,185,253,180,252,220,0,118,255,87,253,4,252,135,1,239,255,170,253,191,254,157,0,217,254,129,0,155,0,98,252,149,252,37,252,29,1,241,0,173,255,131,255,131,255,108,2,85,2,176,1,92,0,137,1,78,0,153,1,61,0,119,254,29,253,99,254,20,253,83,0,54,0,105,1,27,0,196,251,130,0,175,254,74,253,227,249,41,1,62,1,237,255,175,248,36,0,51,0,195,254,237,246,10,255,231,0,172,255,254,246,241,252,40,0,77,255,71,247,94,252,38,254,50,254,14,253,170,255,224,254,142,253,149,246,57,254,193,255,171,0,181,251,186,251,230,255,113,255,87,251,57,254,106,254,131,254,163,253,46,255,160,255,205,255,188,253,36,254,236,254,241,255,85,251,134,253,77,251,143,252,134,254,35,255,99,253,72,252,82,2,178,0,109,254,92,253,251,2,71,1,89,2,34,1,172,0,44,1,203,0,157,0,200,255,176,254,100,1,24,0,28,255,216,254,253,254,227,255,70,255,7,1,160,1,14,0,159,254,117,1,244,255,40,255,1,1,96,0,174,0,57,0,10,250,152,253,70,252,13,254,15,254,104,255,179,254,125,0,105,0,200,0,179,0,159,255,181,254,32,255,253,2,185,2,248,2,0,1,45,1,59,0,199,1,171,255,204,0,32,1,254,253,240,0,251,0,147,255,0,1,161,1,222,255,99,254,101,0,174,1,128,1,156,0,225,255,246,255,206,0,170,1,77,2,145,0,143,0,71,0,40,3,138,3,77,1,93,1,218,3,170,3,77,2,75,1,20,5,56,3,187,0,253,1,38,4,141,2,123,1,210,1,182,5,169,3,145,1,18,1,19,3,93,3,9,1,2,0,97,2,41,2,28,0,49,1,158,3,84,1,106,0,130,1,241,0,245,254,109,255,225,0,78,255,234,253,91,1,246,1,125,253,131,254,141,1,30,0,117,253,35,253,77,254,142,1,105,254,42,253,28,254,8,255,235,252,110,252,74,254,36,254,14,254,122,254,75,0,217,254,60,252,178,253,162,253,150,0,135,255,207,255,101,255,178,255,167,3,38,2,133,1,38,0,191,254,127,0,168,1,59,1,227,254,143,255,27,1,3,1,146,2,203,0,66,1,230,1,135,3,249,1,236,2,161,1,99,2,167,1,43,2,0,2,239,0,173,255,190,253,237,255,173,254,37,253,93,1,13,0,90,252,137,250,142,255,152,254,107,0,180,2,182,0,90,0,37,251,254,249,241,249,43,253,200,253,121,252,173,250,243,253,251,253,171,252,163,252,20,252,88,255,78,253,189,252,63,0,119,255,212,253,221,253,144,0,226,254,207,252,229,1,63,1,109,255,104,254,14,2,246,0,165,254,78,254,41,1,228,255,222,254,41,254,170,251,251,250,52,254,153,254,36,252,230,252,67,5,19,5,178,2,11,2,192,4,44,4,70,4,245,2,57,3,116,4,240,2,238,1,228,4,85,5,171,4,130,3,9,2,29,4,20,2,176,1,178,254,40,255,199,254,249,254,96,255,52,0,40,254,101,255,127,0,136,0,132,254,44,0,83,3,154,1,94,255,23,254,123,0,1,255,228,252,101,253,66,4,149,3,21,3,237,1,117,5,173,4,46,2,202,0,205,255,138,255,170,254,67,253,83,0,108,0,214,255,71,254,61,0,95,0,31,1,0,1,229,255,89,0,12,2,19,2,95,1,227,0,80,2,33,2,185,2,155,0,92,255,51,1,126,2,18,1,23,254,206,255,242,2,240,0,90,255,132,255,140,255,189,253,68,251,193,255,190,0,217,254,240,251,240,250,147,0,136,254,79,255,143,255,73,3,217,4,27,4,156,2,2,0,37,1,39,2,48,1,184,251,71,252,8,255,120,1,18,253,59,252,87,0,4,2,237,254,252,253,177,2,135,1,133,254,125,253,108,3,82,2,122,254,11,252,123,253,61,2,149,255,200,253,79,253,198,252,255,251,229,255,184,254,53,255,93,3,237,2,36,2,233,0,132,249,237,251,195,1,108,0,108,253,148,253,174,1,236,0,21,0,116,254,122,251,137,253,92,5,18,5,199,3,65,2,101,4,101,4,77,2,198,1,189,254,159,252,45,254,153,0,44,254,69,253,220,252,3,254,120,254,50,253,52,255,221,255,165,253,187,251,201,253,94,255,7,254,20,252,154,255,94,1,219,0,224,0,167,1,252,0,139,1,79,2,96,2,107,1,22,253,160,255,117,1,172,0,171,0,39,1,202,2,83,1,233,0,77,0,107,0,21,1,157,0,153,0,13,254,156,254,11,6,49,4,64,2,238,1,220,254,173,254,8,254,176,253,121,252,184,255,149,253,31,254,198,249,163,251,201,253,2,255,231,252,5,254,204,253,221,254,20,254,236,253,246,1,48,2,130,254,171,1,88,2,230,0,29,255,221,1,251,0,75,0,29,1,74,3,45,3,220,1,226,250,203,250,186,0,121,1,181,253,107,252,131,2,125,1,94,251,215,253,155,1,82,0,153,251,204,252,82,255,228,253,164,253,119,0,31,2,205,0,132,254,145,2,141,3,55,2,112,0,214,254,138,254,114,0,167,252,5,255,56,0,159,0,145,1,89,1,222,255,116,255,145,255,161,253,41,0,102,2,99,1,142,255,179,255,218,1,66,2,56,0,170,5,156,3,74,4,140,5,229,2,144,1,246,0,22,0,76,2,57,1,135,255,71,1,63,3,216,1,142,251,160,253,88,3,40,2,39,251,208,251,126,2,88,2,154,254,254,0,179,254,209,254,122,253,227,2,102,1,74,0,202,4,135,6,197,4,81,3,193,8,88,6,215,3,124,2,49,7,197,5,237,2,128,1,94,1,7,1,87,0,128,0,146,248,83,252,112,255,192,255,58,249,1,255,32,1,225,255,172,245,42,251,110,1,235,0,149,249,188,251,192,250,208,254,227,253,205,251,164,251,123,0,102,251,4,255,208,252,76,255,8,252,21,2,53,2,233,0,25,254,82,254,68,255,78,1,99,3,212,4,22,2,171,0,202,249,185,249,123,2,118,2,108,247,54,1,156,3,156,1,202,246,184,254,188,3,17,2,177,245,135,254,118,2,22,1,214,245,61,1,31,3,43,1,154,246,133,0,84,1,31,0,148,247,68,250,131,0,125,0,96,251,22,254,117,255,46,0,24,253,191,1,123,3,52,2,67,0,61,254,134,2,92,2,215,253,83,254,148,252,140,1,162,0,190,255,25,5,147,3,223,1,67,2,64,4,26,3,194,1,22,1,54,2,68,1,223,251,102,255,148,0,79,255,15,246,168,0,46,4,80,2,209,246,214,255,51,3,89,1,216,246,61,253,209,2,250,0,129,247,39,250,203,254,122,0,178,255,183,255,120,0,173,0,252,255,6,1,249,254,251,254,81,254,192,255,107,254,36,253,207,245,116,0,173,255,63,255,11,250,80,252,35,254,43,253,4,254,51,1,170,0,172,0,64,3,161,1,64,3,174,2,31,255,177,0,126,3,50,3,30,254,123,254,255,4,15,4,129,254,201,0,162,254,40,0,218,2,123,2,226,0,14,2,247,1,206,1,82,1,142,1,23,2,202,2,40,0,230,254,202,5,191,5,61,4,219,2,25,6,48,4,141,3,181,2,139,5,2,5,121,3,111,3,129,4,216,2,162,4,72,3,30,255,106,4,181,3,177,2,18,254,38,252,236,249,128,255,200,253,47,253,55,253,230,255,61,1,12,2,70,0,135,0,107,254,159,252,26,249,116,253,82,255,223,252,117,3,5,3,103,255,165,255,75,4,239,2,6,254,131,251,85,3,134,2,241,0,14,3,7,2,27,2,61,7,164,6,77,4,172,2,31,251,50,250,48,254,188,0,131,252,127,250,224,250,171,254,121,255,182,1,81,255,18,0,87,4,208,3,63,1,208,0,106,250,24,249,83,0,202,1,238,253,24,252,51,1,129,0,184,252,241,255,227,255,156,254,113,252,100,252,133,251,14,255,137,255,240,253,127,0,123,255,7,253,3,253,190,0,173,255,197,254,127,3,10,2,231,0,34,255,102,0,193,255,84,254,60,1,187,2,123,1,70,0,25,0,204,2,58,1,148,255,251,1,106,3,54,2,238,0,108,0,173,3,7,2,195,0,169,1,196,255,85,254,1,1,139,0,153,255,138,253,190,1,78,1,114,1,156,1,48,0,84,255,78,253,229,254,45,2,187,0,226,254,158,0,227,1,140,0,14,1,168,254,137,253,156,3,67,2,140,255,132,0,142,0,210,1,188,255,192,255,230,0,111,255,210,254,226,253,221,252,112,252,250,3,225,2,251,252,247,3,118,2,41,1,220,245,95,0,189,1,80,1,182,247,235,1,254,1,191,0,27,251,161,0,254,255,188,254,86,250,135,253,56,253,151,255,182,252,2,255,101,254,100,0,128,253,222,254,242,3,251,2,118,253,57,1,145,4,218,2,140,0,249,1,6,4,254,2,4,3,31,1,43,4,55,3,239,1,237,2,49,1,67,1,92,255,206,1,78,0,143,1,170,254,150,252,69,0,85,2,240,255,108,2,109,2,81,1,118,255,68,254,247,254,218,0,84,0,62,254,185,3,154,2,34,255,221,252,29,2,92,2,103,252,160,250,244,0,116,0,183,252,45,253,118,2,76,2,140,0,151,2,38,1,112,1,167,3,22,4,113,3,247,2,210,6,184,5,148,3,116,2,180,1,195,3,25,1,1,0,137,255,74,0,30,2,213,0,1,0,201,253,45,1,241,0,4,1,179,1,222,0,140,1,168,3,189,3,84,4,191,2,254,1,250,1,40,3,222,1,89,2,182,2,192,3,108,2,204,3,229,2,212,3,88,2,66,3,205,2,255,2,172,2,131,2,204,3,167,3,126,2,245,1,149,2,208,2,83,3,151,255,136,253,209,254,139,255,83,254,130,0,21,3,186,1,246,253,68,255,192,2,117,1,9,253,42,0,46,3,11,2,237,253,143,251,117,1,66,2,86,253,77,251,57,254,29,1,117,251,215,249,182,251,44,0,81,0,174,255,200,2,107,1,221,1,246,0,186,3,110,2,68,6,86,6,253,4,123,3,129,5,91,3,156,3,124,3,6,3,17,4,179,3,118,4,40,0,222,253,181,255,32,1,152,253,150,255,71,253,230,255,87,255,96,255,133,252,29,253,233,254,128,254,251,251,162,254,245,6,28,5,22,4,48,3,44,6,253,5,192,5,154,4,225,5,52,4,192,4,131,3,122,3,136,3,52,2,142,2,152,3,180,2,253,3,88,3,19,254,132,0,177,0,249,1,71,0,195,0,228,255,97,0,200,1,95,1,92,255,88,0,183,1,22,1,216,255,94,1,115,5,181,3,234,0,161,255,219,252,40,254,38,0,93,255,111,1,158,255,233,1,11,2,1,4,154,4,188,4,138,3,63,1,34,5,46,3,205,1,133,255,225,253,220,252,191,1,20,253,188,254,127,252,153,251,31,253,11,254,235,252,55,253,203,2,9,3,215,4,154,3,157,7,147,7,88,5,97,3,218,2,112,3,246,2,132,1,153,252,198,1,17,0,5,255,131,254,214,252,209,249,239,0,247,253,58,252,232,252,3,1,134,252,178,250,254,252,183,255,166,0,93,1,44,255,67,1,184,252,211,254,217,1,179,1,89,253,48,254,216,2,95,1,100,255,57,255,155,2,176,1,29,0,4,255,159,1,224,1,37,253,133,254,145,0,47,2,240,253,137,253,122,251,97,255,189,1,17,1,123,0,127,2,117,1,130,255,32,3,56,2,84,0,94,255,208,2,200,2,194,252,232,253,71,255,222,0,152,1,196,1,245,1,3,3,127,252,181,250,189,255,186,1,232,252,130,250,54,2,90,2,167,0,186,254,253,1,74,1,161,255,142,253,38,253,168,254,132,6,193,4,11,3,199,1,36,5,60,3,72,2,207,2,148,1,225,255,245,3,21,3,89,0,107,0,123,3,37,2,103,3,45,6,149,3,159,2,98,3,199,5,9,5,86,3,135,1,44,4,98,4,44,3,78,0,206,253,89,1,51,2,173,1,153,255,161,1,19,3,134,255,75,254,155,1,20,3,111,252,95,254,90,2,242,2,30,255,240,255,151,0,248,2,68,253,118,0,152,255,242,255,152,251,48,0,28,1,137,1,122,254,93,254,129,253,140,255,114,252,50,1,60,1,243,255,183,4,216,3,53,3,157,2,85,251,75,253,140,0,43,255,140,252,96,254,57,255,210,253,152,253,245,0,108,254,104,253,6,1,56,0,151,253,44,253,171,255,21,254,192,254,112,253,198,253,193,252,127,255,240,253,30,250,193,255,145,254,127,254,154,254,191,254,4,0,51,0,146,254,42,255,63,1,255,1,146,0,159,2,239,255,221,254,146,255,208,1,117,255,16,254,54,255,220,0,200,254,137,253,108,253,183,255,113,253,204,252,106,253,115,253,248,250,167,252,82,254,71,252,65,252,248,254,207,255,44,254,184,255,131,254,162,254,205,253,63,255,105,254,55,0,104,254,221,252,11,0,203,254,137,2,188,0,58,255,0,254,205,1,177,255,54,254,218,250,249,254,122,255,245,253,135,249,77,254,17,254,3,253,57,0,165,254,98,254,178,1,139,251,14,255,104,253,167,252,34,0,188,255,61,253,174,254,163,1,163,0,226,255,250,254,57,254,235,252,106,250,47,253,238,3,152,2,13,1,25,0,107,2,4,1,183,0,96,0,56,252,178,250,124,254,135,0,75,253,67,3,200,1,154,0,81,4,191,2,57,2,107,1,89,6,46,5,217,3,236,2,36,255,219,0,76,0,48,255,81,250,130,249,49,0,149,0,60,252,84,255,16,253,176,254,113,2,209,0,6,255,190,255,7,252,186,252,254,255,61,1,136,247,51,250,118,255,123,0,172,248,205,247,247,253,85,0,57,252,146,254,73,253,143,252,103,252,13,252,5,253,75,252,132,255,0,255,160,254,108,253,178,0,207,1,98,1,48,1,48,249,177,253,230,254,79,0,55,247,175,0,99,3,243,1,118,255,76,255,75,255,235,255,13,247,39,251,52,254,248,253,253,252,195,1,246,255,204,254,15,1,191,255,4,0,214,0,233,254,77,254,213,255,164,254,98,253,35,0,191,255,45,255,38,3,23,2,85,0,41,1,57,0,239,0,210,2,237,1,225,0,149,2,72,3,35,2,228,253,136,254,14,0,93,1,213,1,209,2,75,1,162,0,224,253,16,253,194,255,246,255,142,1,168,255,212,2,189,2,237,255,235,253,162,255,89,2,136,0,185,255,87,253,21,253,90,255,168,254,5,1,206,255,161,0,204,255,229,1,81,1,117,249,50,0,190,0,163,255,22,247,25,255,62,255,174,255,161,255,173,253,102,255,128,0,126,3,245,1,76,2,201,1,167,254,206,0,122,0,110,0,137,253,29,255,199,253,3,0,152,1,239,0,141,1,226,0,59,255,254,255,128,0,235,1,1,5,136,3,36,1,215,0,26,2,50,1,3,1,253,1,91,253,233,251,13,0,65,1,89,253,180,253,154,254,44,255,210,253,243,0,134,2,223,1,230,1,86,1,122,2,20,2,107,0,34,3,75,1,136,0,144,255,114,254,249,251,226,254,186,254,63,253,32,1,16,1,19,5,120,4,154,4,92,3,89,254,121,0,127,254,108,255,217,254,210,254,190,252,205,252,16,0,232,255,55,255,36,254,43,2,91,0,11,255,38,1,218,255,133,254,62,252,59,251,89,251,18,250,239,254,117,254,122,254,11,252,123,253,61,2,205,248,250,251,249,1,212,1,232,2,179,3,97,2,237,1,79,253,108,251,140,253,121,255,254,251,195,0,155,1,196,0,46,6,123,4,63,2,81,1,41,251,247,252,120,253,114,255,83,2,57,3,199,3,223,2,74,251,54,252,175,255,170,254,23,253,13,0,184,255,119,1,198,1,19,0,127,5,153,3,145,249,84,255,93,3,50,2,160,3,1,6,39,4,228,2,88,246,72,252,8,1,82,0,10,254,59,252,202,250,123,0,99,3,212,4,22,2,171,0,240,246,52,254,12,3,107,1,90,251,151,253,252,0,195,255,82,255,34,0,243,3,20,3,227,246,247,0,167,1,153,0,240,255,157,254,6,1,193,1,216,249,207,251,224,253,141,254,153,253,207,254,27,4,37,3,175,2,16,2,6,0,74,255,167,3,107,3,234,3,41,3,199,0,1,1,126,0,76,0,184,253,142,251,87,2,44,2,175,251,145,250,201,249,249,253,47,252,211,250,108,0,91,1,46,253,49,252,109,1,101,0,111,255,169,2,249,0,103,255,0,0,178,254,198,253,159,0,156,1,29,1,176,254,151,253,71,252,58,252,119,3,177,2,29,251,84,0,71,255,114,254,176,253,177,1,20,4,141,2,85,0,73,1,216,255,105,1,79,254,63,253,210,1,62,2,102,255,142,2,80,2,34,1,89,255,72,0,93,1,175,0,162,2,41,1,209,3,208,2,211,4,180,4,245,2,232,1,112,254,243,254,26,2,116,1,186,250,149,250,86,251,165,255,238,4,108,3,7,3,188,2,169,253,218,255,82,254,46,253,184,7,94,6,223,3,96,2,111,0,20,1,30,255,160,255,77,252,124,254,245,255,249,255,209,254,237,253,185,252,82,1,198,6,174,6,125,5,245,3,252,253,169,252,123,253,210,0,80,253,96,254,1,2,230,0,202,252,131,253,134,251,192,254,72,252,110,253,74,253,183,0,142,255,145,253,50,3,162,2,65,255,52,255,219,2,123,2,51,0,197,4,115,3,64,2,70,252,81,254,58,3,86,2,170,254,13,253,124,252,105,254,154,251,158,254,50,255,0,254,221,253,214,252,155,254,148,253,66,0,3,2,183,255,102,254,152,252,79,252,92,250,53,251,191,0,239,255,224,253,25,255,252,249,224,253,123,252,138,252,134,252,242,249,19,246,205,252,54,252,175,0,198,252,46,251,6,253,169,253,234,255,122,2,213,252,37,252,122,252,189,254,203,0,26,0,129,254,21,255,243,252,113,254,238,4,138,3,92,252,137,250,156,250,144,253,93,0,87,0,98,254,229,253,77,253,37,0,121,2,254,1,125,254,36,254,206,250,143,1,66,0,7,1,105,254,207,255,177,254,95,254,17,4,73,7,245,252,191,251,96,250,22,253,166,252,64,3,187,253,9,253,141,254,95,253,6,254,40,8,208,253,134,253,101,251,15,1,241,0,14,0,74,254,12,255,115,254,207,1,178,4,23,4,162,253,227,252,98,250,205,255,189,254,225,1,32,255,184,253,241,253,238,1,113,3,170,2,79,254,206,254,22,252,42,2,147,2,222,0,171,0,96,255,159,254,169,2,6,7,29,6,172,252,99,251,97,249,176,254,102,253,114,0,187,253,12,253,24,253,61,255,119,1,241,1,47,254,220,252,182,251,154,0,26,1,125,255,206,255,65,255,49,253,67,1,220,2,6,6,46,253,205,252,132,250,105,0,6,255,185,0,78,255,10,254,26,253,65,1,254,1,87,4,189,254,201,253,58,252,127,0,228,1,82,1,96,255,52,0,174,254,220,2,87,5,18,6,142,253,222,252,96,249,226,254,182,253,164,2,73,253,169,254,142,254,22,254,39,1,101,7,138,253,194,253,10,252,176,255,133,2,187,255,250,255,194,254,148,254,14,3,170,5,14,4,199,254,35,253,141,250,120,0,60,0,221,1,248,254,183,253,133,255,199,2,221,4,121,2,165,255,157,254,8,252,3,3,246,2,5,1,253,0,81,0,38,254,162,3,167,8,184,6,216,252,181,251,123,248,208,253,242,252,169,0,220,252,206,251,68,255,142,253,201,255,125,5,74,253,52,253,86,251,108,253,98,1,73,1,254,253,201,255,225,253,110,1,9,4,158,4,110,253,65,252,179,250,201,255,72,255,93,0,163,253,226,254,106,253,148,1,193,1,59,3,226,254,162,254,17,251,116,2,50,1,227,0,240,255,147,0,145,253,186,0,155,3,98,8,94,253,134,252,186,249,69,254,28,255,83,1,143,254,234,252,103,254,231,0,86,0,189,5,64,254,187,253,219,251,82,2,194,1,79,255,132,255,86,255,65,254,159,2,135,4,124,5,36,254,101,253,25,250,179,255,118,255,204,2,79,255,140,254,131,254,195,1,166,3,147,3,6,255,80,254,202,252,16,1,60,3,190,1,26,0,19,0,225,255,186,2,156,6,120,8,122,253,47,252,124,248,77,255,39,254,12,1,133,254,23,253,77,253,11,0,127,0,9,4,24,254,107,252,199,252,61,0,67,1,135,0,147,0,111,255,82,253,173,2,18,3,146,6,6,254,176,252,239,250,35,0,90,0,222,0,233,255,166,254,98,253,199,1,79,2,7,5,53,255,175,253,194,251,140,2,96,1,181,1,39,0,63,0,55,254,73,3,241,4,57,8,248,253,142,252,208,249,184,254,57,253,141,5,172,253,170,254,186,255,209,0,173,0,136,7,89,254,170,253,103,252,165,1,93,2,218,255,254,255,11,255,129,255,128,3,177,7,111,4,133,254,250,253,213,249,173,0,118,0,241,2,201,255,131,254,204,255,217,3,253,3,241,2,254,255,221,254,133,252,241,2,224,3,167,1,8,1,131,0,60,255,127,3,226,8,239,9,133,253,192,251,61,246,239,253,42,252,14,2,4,253,194,252,220,253,76,254,60,1,87,2,93,253,84,252,22,253,199,255,236,0,245,255,55,255,175,255,226,252,16,0,77,3,22,6,31,253,39,252,68,251,44,254,17,0,34,1,233,254,184,253,68,253,183,0,54,3,193,2,247,254,20,254,93,251,165,1,152,0,212,1,122,254,166,0,244,254,39,0,14,6,76,7,133,253,58,252,221,249,59,254,20,254,142,3,228,254,253,251,181,255,75,255,123,255,60,7,67,254,144,253,106,251,164,1,111,1,207,255,123,254,44,255,87,255,195,2,49,4,184,4,229,253,58,253,87,250,83,0,93,255,228,1,20,255,225,253,157,254,82,1,151,4,46,3,10,255,203,254,66,252,94,2,248,2,60,0,166,0,248,255,93,255,206,254,57,7,3,10,21,253,255,251,9,249,93,254,66,254,209,0,50,253,202,253,234,253,6,254,181,2,89,3,49,254,71,253,198,251,69,1,175,1,50,255,241,255,248,255,5,253,33,2,151,3,238,5,157,253,241,252,223,250,0,1,201,255,208,0,91,255,164,254,106,253,65,1,168,2,162,3,186,254,83,254,73,252,228,1,190,1,58,2,59,255,72,0,183,255,141,3,175,5,205,6,205,253,31,253,74,248,132,255,96,254,206,2,34,254,108,254,198,254,240,255,190,1,100,6,217,253,231,253,18,253,198,255,126,2,214,0,55,0,71,255,241,254,124,4,21,5,188,4,29,254,97,253,16,251,117,0,29,1,31,2,52,255,121,254,145,255,1,2,2,6,86,3,142,255,66,255,46,252,109,3,83,2,208,1,4,1,4,1,201,254,236,2,235,8,168,8,251,253,79,252,133,247,186,254,60,253,122,1,212,252,77,253,24,255,208,253,175,2,129,5,36,253,78,253,188,252,153,254,133,2,130,1,247,254,62,0,90,253,145,0,108,6,184,4,213,253,36,252,47,251,178,255,14,0,114,0,185,254,154,254,23,254,136,1,165,2,185,2,55,255,20,255,140,251,181,2,193,1,178,0,13,255,0,1,79,254,99,2,105,5,152,9,156,253,123,252,72,250,205,254,239,255,243,1,197,254,101,253,2,255,0,1,172,1,183,5,26,254,90,254,224,251,143,2,114,1,18,0,154,255,71,255,236,254,243,2,42,6,55,5,24,254,165,253,118,250,182,0,163,255,102,3,183,255,54,254,164,254,67,3,94,3,189,3,230,254,179,254,22,253,35,2,71,3,172,1,17,1,167,255,13,0,172,3,172,6,16,10,94,254,196,251,34,249,212,255,154,254,3,1,15,254,125,253,208,253,99,0,45,2,193,3,91,254,2,253,107,252,39,1,70,1,184,0,175,0,15,0,142,253,20,2,110,3,189,7,69,254,0,253,5,251,221,0,156,0,12,1,39,0,149,254,7,254,183,2,4,3,116,4,94,255,53,254,112,252,197,2,188,1,146,2,25,0,47,1,200,254,244,4,130,5,179,6,215,254,2,253,212,248,249,254,148,255,46,4,106,254,243,255,127,255,57,0,182,1,174,10,138,254,25,254,189,252,48,1,184,2,164,0,104,0,21,255,5,0,75,6,108,7,119,5,27,255,186,253,211,250,149,1,192,0,49,3,169,255,74,254,111,0,4,4,175,4,225,3,68,0,81,255,90,252,9,4,93,4,195,1,222,1,200,0,8,255,79,8,136,10,250,7,189,252,213,250,173,247,225,252,76,253,210,1,212,252,248,251,43,254,146,253,32,1,152,3,67,253,183,252,210,251,101,254,0,2,8,0,122,254,165,255,24,253,226,255,19,4,137,4,202,252,132,251,124,251,218,254,210,255,110,0,101,254,138,254,90,253,214,0,19,2,156,2,106,254,92,254,86,251,231,1,232,0,47,1,194,254,91,0,40,254,123,0,208,4,141,9,46,253,72,252,41,250,30,253,93,253,52,5,225,253,162,253,45,255,161,255,158,255,228,5,219,253,254,253,87,251,217,1,211,0,73,0,224,254,144,255,123,254,25,2,52,5,234,4,201,253,13,253,247,249,71,0,229,254,120,2,86,255,31,254,19,254,169,2,234,3,49,3,156,254,181,254,147,252,163,1,194,2,90,1,241,0,222,255,186,254,121,1,158,7,91,7,41,253,205,251,167,249,23,255,225,253,116,0,244,253,218,252,183,253,183,255,222,1,217,2,224,254,99,252,137,251,173,0,191,1,204,255,68,0,27,255,162,253,193,1,17,2,5,7,177,253,149,252,173,250,183,0,112,255,68,1,153,255,60,254,102,253,111,2,232,1,152,4,18,255,1,254,20,252,70,1,40,2,202,1,136,0,108,0,193,254,114,2,63,5,91,7,22,254,122,253,62,249,70,255,63,254,216,3,30,253,180,255,86,255,218,253,243,2,0,10,16,254,2,254,77,252,210,0,182,2,204,255,84,0,190,254,57,255,66,4,89,6,200,4,136,254,165,253,140,250,87,1,74,0,120,2,81,255,10,254,224,255,204,3,52,5,222,2,52,0,217,254,167,251,41,4,150,3,160,0,137,1,107,0,115,254,190,4,89,10,205,6,136,253,79,251,157,248,49,253,235,254,97,1,117,253,144,252,134,255,45,255,209,0,58,5,206,253,54,253,221,251,48,255,132,1,159,0,192,254,195,255,217,253,37,1,68,4,163,5,120,253,159,252,27,251,207,255,113,255,49,1,111,254,29,255,183,253,49,2,20,2,159,3,139,255,69,254,92,251,251,1,180,1,36,1,177,255,233,0,54,254,159,2,1,4,92,9,135,253,182,252,11,250,204,254,226,254,128,2,139,254,147,253,105,254,162,1,253,0,25,5,197,254,187,253,143,251,60,2,173,2,231,254,61,0,188,255,141,254,223,3,77,4,218,5,19,254,85,253,174,250,209,255,164,0,192,2,0,255,198,254,244,254,119,2,181,3,28,4,138,255,164,254,191,252,68,0,156,4,56,2,152,0,117,0,34,0,89,4,110,7,191,8,167,253,65,252,86,249,113,255,23,254,224,1,180,254,113,253,194,253,54,0,97,1,168,4,50,254,116,253,228,252,150,0,37,2,112,0,195,0,145,255,253,253,167,2,84,4,111,6,210,253,19,253,63,251,247,255,16,1,85,1,203,255,247,254,233,253,233,1,75,3,18,5,136,255,30,254,248,251,120,2,31,2,152,1,179,0,50,1,242,253,100,4,184,5,196,8,95,254,238,252,230,249,32,255,128,254,84,5,135,254,53,254,231,255,129,1,233,1,126,8,180,254,117,253,195,252,32,2,41,2,61,0,22,0,143,255,167,255,104,4,189,6,244,5,40,255,139,254,139,249,161,0,60,1,140,3,91,255,34,255,189,255,82,5,151,4,21,3,73,0,4,255,1,253,226,2,164,3,104,2,106,1,246,0,130,255,19,3,94,10,211,11,77,253,174,251,114,247,203,253,180,253,12,2,178,253,45,252,22,254,249,254,141,1,214,3,191,253,187,252,79,252,234,255,179,1,207,255,66,255,138,255,139,253,168,255,216,4,233,5,132,253,229,251,5,252,221,254,189,0,3,1,255,254,42,254,139,253,145,0,177,3,126,3,186,254,148,254,186,251,31,2,4,1,118,2,54,255,189,0,47,255,101,1,99,5,43,8,199,253,205,251,87,250,54,253,17,255,151,3,92,254,63,253,172,255,147,255,142,255,103,9,99,254,239,253,103,251,226,1,112,1,131,0,70,255,184,255,125,255,93,3,231,4,196,4,157,253,110,253,195,250,227,0,135,255,119,2,80,255,23,254,38,255,233,2,151,4,189,3,191,254,108,255,88,252,159,2,198,3,216,0,84,1,253,255,113,255,213,1,56,7,133,9,39,253,63,252,109,249,43,255,2,255,65,1,1,254,74,254,247,253,130,255,213,2,135,3,172,254,83,253,248,251,60,1,224,1,20,0,23,0,167,255,217,253,97,1,27,4,253,6,224,253,11,253,172,250,42,1,231,255,180,1,156,255,120,254,249,253,211,1,242,2,54,4,46,255,114,254,202,251,108,2,146,2,118,2],"i8",k,u.GLOBAL_BASE+10240),T([33,0,147,0,78,255,153,3,151,6,129,7,187,254,240,253,70,248,2,0,227,254,142,3,141,254,22,254,26,255,0,0,85,2,218,7,16,254,117,254,190,252,37,0,177,3,245,0,181,0,96,255,112,255,201,5,93,5,77,5,157,254,167,253,10,251,42,1,66,1,160,2,63,255,176,254,77,0,65,4,253,5,154,3,177,0,217,255,155,251,228,3,13,3,24,2,200,1,110,1,80,254,135,5,136,9,231,8,46,254,10,253,235,246,209,254,3,254,131,1,41,253,211,253,66,0,111,255,131,2,224,4,224,253,92,253,108,252,31,255,94,3,76,2,104,255,40,0,235,253,167,1,143,5,22,6,196,253,181,252,135,251,128,255,85,0,205,1,18,255,255,254,184,253,93,2,236,2,93,3,24,0,54,255,127,250,29,3,231,1,47,1,75,255,108,1,74,255,104,2,98,5,126,11,18,254,172,252,95,250,220,254,61,0,44,3,172,255,45,253,74,255,43,2,20,2,226,5,147,254,19,254,223,251,54,3,76,2,11,0,242,255,238,255,26,255,233,3,121,5,171,5,38,254,199,253,244,250,46,1,62,0,38,4,186,255,136,254,34,255,214,3,206,3,125,4,60,255,22,255,229,252,223,1,74,4,243,1,106,1,58,0,70,0,123,4,21,8,41,11,25,254,146,252,224,248,73,0,224,254,92,1,154,254,12,254,4,254,199,0,209,2,218,4,178,255,71,253,229,252,105,1,24,2,196,0,118,1,110,0,33,253,79,3,27,4,104,7,146,254,55,253,98,251,59,1,64,1,173,1,72,0,41,255,62,254,247,2,118,3,83,5,226,255,84,254,190,252,93,3,115,2,28,3,118,0,212,1,233,254,75,5,91,7,101,7,68,255,126,253,180,249,63,0,81,255,174,4,94,254,45,255,51,0,158,1,75,2,41,10,22,255,211,253,166,252,168,1,121,3,222,0,136,0,155,255,83,0,133,5,230,8,103,5,172,255,67,254,147,250,158,1,57,1,21,4,29,0,169,254,65,0,16,6,111,6,212,3,183,0,165,255,195,252,249,4,133,5,104,1,41,2,16,1,149,255,51,6,77,12,43,10,104,5,29,8,92,13,244,19,86,26,186,31,135,38,84,43,170,49,133,53,61,254,215,251,239,253,231,250,62,254,12,253,15,254,161,252,128,254,149,253,99,254,99,253,195,254,230,253,181,254,212,253,98,254,4,254,88,254,134,254,238,254,188,254,78,254,154,253,30,255,12,254,24,255,254,253,249,254,135,254,214,254,102,254,105,255,58,253,82,255,206,252,107,255,100,254,100,255,83,254,224,254,50,254,70,255,53,255,86,255,210,254,65,255,191,254,125,255,109,255,215,254,117,254,28,255,42,255,11,255,64,255,189,255,196,254,185,255,185,254,152,255,51,255,162,255,73,255,113,255,218,255,63,255,161,255,16,0,180,255,132,255,8,255,23,0,19,255,24,0,12,255,18,0,120,255,44,0,145,255,223,255,232,255,231,255,0,0,149,0,19,0,23,0,113,255,158,0,87,255,174,0,75,255,133,0,201,255,165,0,230,255,111,0,84,0,98,0,75,0,87,0,183,0,141,255,245,255,248,255,130,0,11,0,170,0,254,0,77,0,205,0,17,0,183,0,112,0,6,1,194,0,202,0,31,1,95,0,189,0,214,255,151,255,234,0,179,0,39,0,186,0,163,0,89,1,76,1,199,0,43,1,161,0,202,255,29,1,178,255,25,1,123,255,141,0,74,255,111,0,249,0,85,1,15,1,108,1,93,0,147,1,75,0,135,1,92,0,254,1,118,255,220,0,71,255,227,255,222,255,105,1,141,255,64,1,3,0,42,2,99,0,30,1,218,0,79,2,11,255,150,1,244,254,197,1,0,0,68,2,25,0,94,2,19,1,20,2,148,0,194,1,183,255,227,2,227,254,6,2,224,254,94,0,53,255,162,2,116,255,182,255,205,0,202,2,142,255,43,1,176,0,155,3,182,0,45,2,240,0,193,2,240,255,1,2,229,1,81,2,37,1,128,1,195,1,105,2,218,255,50,0,51,2,17,2,47,1,209,0,203,1,107,1,177,1,196,1,194,1,198,1,111,1,94,2,221,1,229,2,176,1,97,1,112,1,11,1,105,1,204,2,17,1,71,2,197,1,166,0,254,1,172,0,201,0,117,2,18,1,191,0,56,2,127,2,46,1,42,1,122,2,131,1,131,2,94,1,75,2,48,2,100,2,53,2,88,2,20,3,231,1,160,2,0,2,247,3,65,1,77,1,101,1,86,3,131,255,157,1,218,1,200,2,17,0,105,255,52,2,29,1,14,1,15,255,203,3,121,3,233,1,220,0,254,1,128,3,37,2,156,3,71,1,57,3,34,1,143,3,28,2,84,4,158,0,37,3,199,0,189,3,255,1,218,2,100,0,106,3,13,0,23,3,179,1,120,2,164,2,204,3,249,0,132,3,211,1,194,4,13,3,50,4,73,2,17,3,233,255,157,2,11,1,19,4,107,2,60,4,103,2,121,4,110,2,137,3,148,3,25,4,80,0,75,1,72,2,51,4,89,0,127,2,220,3,193,3,2,3,208,2,30,3,187,2,236,1,191,1,131,3,115,2,15,1,164,4,213,2,53,5,87,0,91,2,64,3,67,6,104,2,103,4,122,3,225,5,232,3,132,4,98,3,241,3,227,3,59,3,125,4,90,3,49,3,170,5,5,3,40,5,244,1,109,5,56,1,129,4,236,255,60,4,64,0,3,5,2,0,148,4,143,1,77,7,2,2,170,6,246,1,100,6,118,3,242,5,160,1,88,2,107,4,70,5,251,4,110,5,121,3,3,7,146,3,230,6,227,0,159,4,226,4,34,7,249,1,62,7,151,3,49,9,57,255,175,1,152,0,199,6,43,255,228,255,136,1,54,5,103,255,204,255,210,3,127,4,189,254,112,254,45,3,167,6,120,255,84,0,169,5,223,7,181,254,113,255,119,255,168,4,0,255,22,2,99,255,7,4,205,254,73,254,30,2,219,2,183,254,92,254,159,255,104,2,150,254,88,255,190,254,110,1,9,255,146,255,45,255,89,0,60,255,203,254,20,0,59,0,148,254,49,254,226,254,89,0,176,254,175,0,80,254,141,0,133,254,66,255,78,254,60,255,177,255,150,0,234,254,29,255,232,254,166,0,213,253,90,254,101,255,29,2,146,254,54,0,227,255,173,255,211,254,250,252,186,0,116,2,115,254,248,254,242,0,37,1,59,255,183,253,124,0,154,1,53,0,123,255,10,0,84,1,198,253,215,251,65,0,66,254,68,0,19,254,127,1,169,3,155,254,57,253,153,254,6,255,91,253,212,251,36,1,230,255,107,1,6,0,95,2,33,5,129,255,246,255,233,5,94,7,201,2,204,3,189,5,133,8,163,5,224,7,161,249,192,249,252,248,14,247,253,251,22,249,180,251,23,248,3,251,148,250,169,250,2,250,77,252,75,250,52,252,12,250,25,252,58,251,4,252,108,251,209,252,37,252,32,252,165,250,64,251,18,252,247,250,186,251,24,253,12,251,13,253,243,250,162,252,101,252,119,252,40,252,90,253,229,251,83,253,230,251,193,251,39,252,218,251,89,253,35,252,127,253,153,251,48,252,6,253,114,253,134,252,218,252,191,252,189,251,62,253,139,253,147,253,218,252,128,253,212,252,249,252,134,253,245,252,225,253,28,252,203,253,205,251,188,253,222,253,157,253,196,253,149,253,8,253,222,254,145,252,242,253,201,252,50,254,229,252,3,255,215,253,97,254,179,253,73,254,235,253,172,254,76,253,89,252,7,254,252,252,66,253,149,251,249,254,206,254,53,252,29,254,67,254,182,255,213,253,220,253,154,253,127,255,75,253,22,255,116,254,10,255,37,254,6,255,247,254,108,254,136,254,254,253,95,254,2,254,212,254,199,254,178,254,104,253,49,254,210,252,126,254,64,253,175,254,153,253,22,255,55,255,23,255,17,255,89,255,201,253,53,255,149,253,109,255,97,254,141,255,160,254,90,255,18,253,85,255,7,253,242,254,145,252,248,254,121,252,145,254,24,253,43,0,37,254,14,0,115,253,43,0,98,253,11,0,64,254,197,255,247,253,130,255,137,255,101,255,155,253,214,255,161,252,229,255,93,252,136,0,29,254,183,0,44,254,55,0,214,254,55,0,208,254,57,1,159,253,57,1,48,253,66,1,89,255,100,0,227,253,253,255,137,255,145,255,69,255,233,0,20,255,4,1,22,255,26,0,91,255,134,0,211,255,216,255,219,253,104,1,53,255,122,1,124,254,194,1,129,254,19,1,20,0,182,0,153,255,246,0,145,255,175,1,37,0,206,1,110,255,231,1,99,255,228,254,197,255,247,1,72,255,24,0,53,0,253,255,54,0,122,0,3,1,77,1,66,0,228,1,104,0,180,1,68,0,195,0,116,0,190,0,206,0,13,1,247,255,226,1,96,1,126,1,29,1,143,1,21,1,196,1,0,1,69,0,186,0,13,0,41,1,243,255,3,1,161,255,30,0,56,0,138,1,196,0,169,1,205,0,200,1,25,1,65,2,15,0,191,0,119,1,34,1,151,1,64,2,200,255,227,0,32,2,149,1,0,0,37,2,164,255,16,2,27,255,95,1,11,255,82,1,150,254,179,1,167,0,15,2,181,255,46,1,91,0,56,3,129,0,87,2,240,1,167,2,186,0,237,2,153,0,225,2,231,254,88,2,164,254,103,2,20,255,1,3,41,0,113,3,38,0,122,3,36,255,73,3,155,254,115,3,119,254,135,3,134,253,218,1,68,254,82,3,81,255,166,2,19,254,242,0,249,253,17,3,54,253,70,2,227,253,110,1,225,253,178,1,171,253,244,1,3,253,222,0,66,253,149,3,25,253,194,3,155,252,245,1,125,252,36,2,133,254,200,0,77,254,157,0,205,252,214,0,163,252,157,0,154,253,40,0,136,253,94,0,141,252,202,255,27,253,4,2,11,254,42,1,154,253,85,255,154,252,95,255,159,252,233,255,206,252,93,0,9,252,245,254,106,253,153,254,219,253,2,0,70,254,135,255,135,254,0,0,29,255,33,0,98,254,130,255,127,255,212,0,90,252,34,0,198,251,230,254,161,251,244,254,58,253,199,252,92,254,65,255,204,251,96,252,107,252,163,255,140,253,154,254,97,0,7,0,50,255,119,254,155,255,24,0,53,255,38,0,88,255,83,0,169,253,89,254,233,254,170,1,68,253,118,0,181,255,206,0,43,252,95,253,88,253,161,1,145,254,37,0,233,254,218,1,127,255,194,254,63,1,40,1,142,253,217,255,87,1,90,2,72,253,217,255,209,254,172,3,104,0,233,0,132,254,137,0,220,255,13,1,181,255,42,255,120,0,43,0,239,253,35,254,203,1,164,0,54,255,27,255,207,255,89,255,97,2,24,3,98,0,36,255,147,3,148,0,37,1,27,1,101,3,91,0,63,2,138,1,70,1,178,255,205,2,67,0,109,1,189,254,104,2,220,255,219,2,27,0,107,2,238,0,120,2,17,1,192,1,99,0,33,3,220,1,101,3,17,1,173,2,64,0,21,3,72,0,253,3,217,0,25,3,203,1,222,2,104,1,134,2,224,1,104,1,66,1,173,1,208,1,126,2,174,1,244,2,107,1,232,3,148,1,171,2,16,2,90,2,103,2,143,2,157,1,178,3,175,2,169,3,90,2,136,3,92,2,43,2,225,2,18,3,150,2,211,1,142,2,106,1,77,2,161,3,198,2,242,1,222,1,159,1,164,1,181,2,115,3,45,3,171,2,13,3,157,3,145,3,171,3,214,2,220,2,235,1,85,3,19,2,180,3,222,2,195,3,59,1,40,3,249,2,243,2,120,4,248,2,143,2,52,4,58,3,33,4,67,4,70,3,235,3,40,3,23,4,109,4,147,2,77,4,224,3,26,4,50,4,51,4,203,3,182,2,202,4,30,4,59,2,73,3,116,3,124,5,99,5,72,4,56,4,93,3,207,4,223,2,4,5,248,2,248,4,223,3,87,5,29,4,233,4,188,2,26,4,22,2,220,3,197,1,240,4,87,2,116,4,167,2,85,6,47,3,104,5,9,2,37,5,137,1,28,6,37,3,168,5,174,2,44,4,136,2,107,3,51,1,59,4,105,1,23,4,61,1,137,5,196,3,163,2,59,2,128,4,79,0,90,4,209,255,250,5,55,1,185,6,58,1,142,4,177,2,2,2,162,255,93,1,26,1,132,5,72,1,1,4,231,1,191,255,57,0,37,3,202,3,36,0,62,0,1,3,249,254,23,3,166,254,125,2,187,2,119,255,108,2,22,2,29,2,33,253,194,0,199,2,44,1,244,254,161,252,158,3,1,3,60,253,84,254,250,1,174,0,132,252,138,253,179,1,35,2,101,250,254,254,109,2,215,1,6,252,168,250,119,254,9,2,104,252,82,253,231,255,20,0,42,252,124,251,84,1,9,0,234,249,145,251,160,254,48,0,213,249,110,254,137,252,6,0,124,251,136,252,220,253,160,254,149,249,112,251,97,255,98,2,24,248,61,252,31,255,193,0,136,249,88,248,11,255,19,254,60,252,112,249,88,252,133,253,237,250,48,249,148,250,164,253,252,249,189,252,139,250,121,255,204,249,222,254,122,249,56,253,37,248,160,249,129,249,229,255,46,247,213,252,123,251,184,0,15,251,189,0,169,250,74,2,37,248,201,0,234,252,200,2,70,251,3,0,247,251,40,3,29,251,62,3,145,255,123,2,156,249,191,1,49,254,75,252,67,254,96,252,8,254,118,251,11,254,69,251,144,0,161,254,140,254,228,251,229,254,221,251,233,254,157,251,193,253,98,250,181,253,178,249,89,252,40,252,229,0,178,2,103,252,49,253,109,254,82,5,83,253,47,254,106,3,141,1,3,254,210,255,61,1,54,5,27,254,200,1,45,3,183,1,101,254,83,1,130,3,43,4,87,254,46,0,161,5,241,1,115,252,224,252,185,5,22,4,2,255,191,254,150,5,141,4,68,0,94,1,10,4,154,2,114,1,11,0,31,5,22,3,143,0,232,0,17,4,26,6,142,255,151,2,80,6,54,4,198,1,67,2,251,4,16,4,180,255,141,3,240,2,43,4,153,0,0,2,92,1,190,4,102,2,129,1,51,7,40,3,13,1,10,4,203,0,62,4,140,2,249,3,247,6,106,4,173,1,47,5,131,1,104,5,207,255,159,4,184,255,191,4,96,254,233,3,32,2,213,6,160,254,199,4,10,254,175,4,179,253,57,2,29,255,94,6,114,255,42,6,26,255,179,6,54,253,8,5,186,252,118,5,107,4,77,5,48,255,208,4,181,1,197,3,95,252,50,3,43,3,130,5,91,3,227,5,164,0,188,4,107,5,1,7,228,1,82,7,200,1,15,8,228,3,146,4,46,5,122,5,36,5,80,5,111,4,238,4,210,4,82,6,81,5,232,6,141,5,203,4,48,6,67,5,86,3,160,2,149,6,30,6,115,4,246,4,224,7,33,7,237,6,45,6,252,5,180,5,207,5,178,3,123,6,253,3,208,6,188,4,112,5,209,3,236,6,137,4,34,7,140,4,182,6,149,5,181,7,55,6,161,4,96,3,84,8,37,4,7,7,46,3,46,7,245,2,56,8,35,5,6,8,234,4,65,8,147,3,27,9,162,3,187,5,123,4,30,10,159,5,197,8,208,6,42,8,84,6,54,9,174,5,106,10,226,5,84,7,45,7,22,8,183,7,203,6,41,6,170,2,9,5,48,6,253,7,174,5,50,8,194,9,212,7,151,10,18,8,214,2,52,6,196,10,32,9,228,0,79,3,152,9,123,6,36,0,45,1,150,7,165,7,66,254,160,255,106,8,116,5,253,5,77,4,14,0,96,2,101,252,36,253,103,5,190,7,65,5,184,3,88,253,65,1,1,5,244,4,198,249,109,1,173,3,178,3,55,249,202,252,70,9,227,10,29,7,228,10,236,248,29,247,169,248,23,246,152,249,200,248,97,249,44,248,60,251,136,248,59,251,198,247,233,249,204,249,219,249,236,249,85,251,177,249,56,251,65,249,177,250,129,251,176,249,100,248,6,251,145,250,231,250,133,250,185,249,101,251,116,249,225,250,93,250,58,250,169,250,126,252,24,251,221,251,205,250,146,251,42,252,147,251,131,251,32,250,200,251,228,250,4,252,97,251,44,252,50,250,57,252,41,250,36,252,102,252,233,251,203,251,186,252,101,251,166,252,58,251,149,251,239,251,216,251,1,253,152,252,123,251,67,253,144,252,62,253,118,252,250,252,8,252,190,253,200,251,223,252,58,250,177,253,169,251,176,253,134,251,55,253,148,250,128,253,160,250,171,253,221,251,96,254,121,252,82,253,192,252,107,253,60,253,68,254,156,252,22,254,103,252,138,254,248,252,149,253,110,251,183,253,219,253,255,252,229,252,77,254,109,253,238,253,27,253,14,254,187,252,155,254,171,253,233,254,153,252,13,255,137,252,230,254,103,253,232,254,101,253,91,255,208,253,118,254,121,252,150,254,102,254,64,254,185,253,103,254,194,253,199,254,155,254,131,253,220,253,198,253,76,254,128,252,8,254,130,254,11,253,198,255,31,254,91,255,150,253,65,255,138,254,22,255,130,254,34,255,85,253,231,255,32,254,94,254,153,254,38,253,159,254,188,254,99,255,80,254,190,254,118,254,209,254,228,254,152,255,167,253,223,254,212,253,60,255,180,253,106,255,109,253,160,253,39,254,232,255,188,255,64,254,38,254,248,255,6,254,211,255,20,253,72,255,180,252,4,255,123,252,165,255,184,253,159,255,116,253,138,0,4,253,125,255,90,253,244,255,98,253,165,0,253,254,253,255,184,252,149,255,115,252,37,0,32,252,44,0,170,252,97,254,185,252,13,0,23,252,241,254,254,251,203,254,226,252,34,254,192,252,24,254,81,252,168,0,168,251,125,254,95,251,155,255,97,251,216,255,83,252,196,254,250,251,254,252,236,251,143,253,199,251,230,253,56,251,213,254,224,250,76,254,83,251,105,253,113,251,95,255,64,251,78,253,43,251,193,252,104,250,48,253,133,250,19,254,126,252,28,253,102,252,223,252,178,251,110,254,213,249,60,252,219,251,130,253,11,251,98,250,37,250,90,252,34,250,129,252,194,249,204,253,69,249,51,253,162,253,171,253,114,251,195,251,167,250,44,254,102,248,43,250,210,248,71,252,116,248,93,252,37,250,68,255,157,249,91,254,79,250,174,254,88,250,234,255,106,248,90,254,42,248,7,255,16,254,142,255,138,248,13,253,247,250,174,0,85,250,147,255,30,254,255,254,59,251,4,254,175,249,151,0,98,249,208,0,114,253,107,0,141,249,29,0,139,251,23,1,65,251,50,1,52,251,6,254,38,253,81,255,44,251,155,255,55,252,39,2,154,252,22,1,201,252,59,1,205,253,120,1,229,251,228,0,5,254,24,1,169,253,25,1,10,253,253,0,207,254,123,1,13,253,122,255,157,253,148,2,200,252,24,2,207,252,134,2,99,254,49,0,171,254,177,0,59,254,14,2,30,254,77,2,185,255,83,1,111,253,8,1,12,255,39,1,19,255,59,1,125,254,57,2,6,254,247,255,135,254,14,0,96,255,149,2,40,255,40,0,204,254,210,255,95,0,214,0,14,255,167,0,170,255,192,0,200,255,27,0,180,255,31,0,36,0,53,1,150,255,74,255,143,255,74,0,71,254,234,255,23,0,139,0,81,0,245,255,44,0,15,0,169,255,119,255,138,255,49,255,98,255,198,255,16,1,164,255,100,255,71,254,8,0,120,255,128,0,35,255,101,0,38,255,40,0,59,255,180,255,56,254,9,0,67,254,33,0,89,254,226,0,60,0,73,0,34,255,156,0,113,254,24,1,194,254,245,0,171,254,166,0,13,254,83,1,66,255,71,1,37,255,69,1,119,255,167,255,172,253,100,0,141,253,144,0,91,253,231,1,28,0,252,0,121,254,214,0,215,255,26,1,228,255,99,0,226,254,75,1,49,0,203,1,124,254,53,2,143,254,180,1,28,0,80,1,247,255,141,1,89,255,106,2,34,0,84,2,239,255,49,2,116,255,43,1,79,0,10,2,125,0,203,0,2,0,244,0,32,1,255,0,211,0,175,0,82,0,84,2,187,0,5,2,108,0,125,1,255,0,109,1,41,1,241,1,96,1,71,1,174,255,25,0,210,0,115,1,245,0,5,1,3,0,33,2,193,1,140,0,38,1,44,0,39,1,212,0,91,1,244,0,238,1,75,1,16,2,201,0,51,1,93,1,155,1,101,2,28,1,102,2,157,1,208,1,66,1,112,2,141,1,97,0,200,0,96,255,128,1,149,0,106,1,239,1,13,2,13,1,73,2,33,0,235,1,135,255,177,1,171,1,99,2,242,1,4,2,171,0,187,1,241,1,154,2,184,1,19,1,54,2,63,2,146,0,127,2,155,0,158,2,223,255,173,0,212,0,184,2,90,255,89,2,65,255,183,2,23,254,247,1,175,0,230,2,214,0,220,1,116,1,59,4,66,2,18,2,74,2,9,3,169,1,106,3,59,1,73,3,118,1,80,3,91,255,53,2,35,0,223,3,217,255,38,4,73,1,200,2,18,3,72,3,133,2,27,3,149,2,164,2,59,2,150,3,120,2,55,4,161,2,49,3,62,1,132,1,106,3,244,3,52,2,80,3,112,3,108,2,45,2,223,1,159,2,197,1,180,2,212,1,72,3,130,2,76,3,133,2,250,1,172,1,129,3,55,2,69,3,131,1,194,3,243,1,179,2,49,2,171,3,158,3,15,3,40,1,22,3,12,1,4,4,18,2,106,3,73,1,36,2,143,0,163,2,35,1,247,1,66,0,17,4,103,1,18,3,97,0,37,3,33,0,69,3,214,1,255,1,49,0,68,4,71,1,150,4,67,1,3,0,242,0,104,3,218,1,177,2,173,1,49,5,166,2,18,4,108,2,85,4,152,2,65,1,193,0,121,3,182,3,129,4,106,3,125,3,123,2,109,3,94,3,180,3,145,3,13,5,153,2,40,5,127,2,229,3,25,3,122,5,6,4,152,4,244,3,86,4,191,3,130,5,157,3,123,5,147,3,31,2,94,3,92,4,198,4,67,3,166,4,67,3,166,4,191,3,124,4,123,4,96,5,20,5,169,4,135,5,207,4,55,5,61,5,234,2,68,4,175,6,3,5,109,5,49,4,54,5,30,6,129,4,195,5,109,6,113,4,33,7,196,4,32,4,102,5,241,5,194,6,96,6,9,6,84,6,6,6,87,3,60,6,97,3,131,6,181,2,117,3,180,6,239,5,143,4,16,5,161,8,224,6,160,7,213,5,228,7,202,5,254,5,74,7,158,6,216,7,30,6,236,2,225,6,57,3,38,1,112,5,60,4,10,8,109,2,35,5,109,1,7,5,198,0,4,4,232,1,128,5,249,0,147,1,246,3,25,6,68,1,107,1,109,6,20,4,193,0,111,1,242,7,67,7,5,255,67,2,238,2,226,3,13,255,30,0,45,5,111,3,228,255,87,255,112,2,149,3,59,254,159,0,186,0,90,5,154,253,6,0,25,2,136,1,162,255,221,254,13,3,229,0,128,255,214,254,245,0,235,1,67,253,120,253,204,3,21,3,11,254,128,253,178,0,255,0,147,254,122,254,1,255,61,1,66,252,218,254,65,255,228,0,249,252,65,254,157,0,19,255,111,253,48,253,105,254,92,0,139,255,157,253,78,1,26,255,89,253,196,251,112,255,195,254,123,252,163,252,30,253,152,254,171,255,41,253,166,255,237,252,100,0,234,255,121,254,249,254,200,255,183,255,175,254,14,253,5,0,67,255,62,253,144,253,89,0,168,254,121,255,167,251,159,254,19,255,84,253,145,251,237,254,178,251,243,254,77,251,152,0,145,0,46,253,48,251,49,0,80,0,32,251,248,252,8,255,135,1,36,253,221,253,213,1,218,0,1,255,160,252,69,0,110,1,90,255,27,254,80,253,191,0,68,251,84,251,86,255,87,255,228,250,161,249,65,1,214,1,117,250,37,251,192,255,16,1,175,250,8,255,236,1,53,2,47,253,159,253,195,0,229,1,195,253,123,255,171,1,202,0,85,255,138,255,199,0,63,2,2,0,225,255,182,2,243,2,170,250,217,255,40,2,45,2,23,254,15,1,168,2,25,2,13,0,59,254,87,3,186,3,123,255,204,255,175,255,226,2,111,251,125,2,31,4,35,4,161,255,164,2,235,4,57,4,233,1,49,1,63,254,186,3,234,253,228,3,55,252,98,3,222,251,35,4,242,250,106,2,120,250,105,2,54,254,86,5,97,255,29,7,250,252,240,253,242,255,86,4,78,251,123,252,252,252,177,1,24,251,25,251,13,252,210,254,166,253,183,253,9,253,174,249,8,253,243,249,184,252,127,248,208,252,229,253,23,249,69,247,29,255,220,255,14,248,217,248,197,247,154,251,89,246,232,248,66,250,252,0,115,245,97,254,197,253,45,254,229,5,18,6,132,8,183,7,22,9,228,7,191,248,111,249,191,248,37,249,248,247,130,251,170,247,138,249,173,249,181,251,88,249,149,251,191,250,184,249,177,250,154,249,198,250,243,250,211,250,15,251,128,249,143,249,49,250,173,252,190,250,216,248,123,250,116,247,254,250,87,253,7,249,143,249,58,252,198,251,97,251,116,249,226,251,207,251,138,251,122,251,73,251,24,253,6,251,27,252,90,252,153,250,97,252,120,250,14,252,231,250,241,252,69,252,231,251,124,252,31,252,207,252,31,253,201,252,52,252,91,251,30,253,186,251,30,253,126,251,240,252,223,252,214,252,238,252,132,252,248,253,24,252,206,252,124,253,59,252,191,253,142,252,227,253,74,253,97,253,107,252,173,253,126,253,122,253,153,253,68,252,147,253,99,252,253,253,41,253,29,254,209,252,27,254,184,252,190,253,72,254,55,253,190,253,187,254,111,253,98,253,126,254,198,253,71,254,102,253,254,253,237,252,120,254,239,253,246,253,59,254,25,254,89,254,152,253,183,253,151,253,99,255,106,253,244,254,88,253,164,254,190,254,189,254,136,253,68,254,208,254,82,254,180,254,54,254,235,254,44,254,109,253,231,252,193,254,132,253,29,255,214,253,139,254,165,254,178,254,46,255,56,254,64,255,238,253,14,255,40,255,58,255,146,254,142,254,174,254,95,255,103,254,20,253,149,255,132,254,218,254,125,253,33,255,103,253,22,255,27,253,115,255,16,254,126,255,2,254,117,255,185,254,84,255,207,254,206,254,188,253,92,255,249,254,250,254,84,255,189,255,110,254,31,0,146,254,246,255,76,254,170,255,241,253,71,0,135,254,234,255,159,253,244,255,90,253,189,255,193,254,63,0,65,255,35,0,75,255,217,255,14,255,126,0,89,255,116,255,224,253,155,0,215,254,174,0,215,254,38,0,248,255,117,0,132,254,197,0,60,254,240,0,246,253,223,0,153,255,110,0,69,255,87,0,101,255,169,0,209,255,157,0,26,0,173,255,156,255,128,0,80,0,209,0,194,255,6,0,7,0,22,0,5,0,62,1,236,255,248,0,211,255,56,255,193,255,156,0,187,255,250,0,73,255,113,1,130,255,143,255,180,255,114,255,134,255,192,255,2,255,225,255,35,0,79,255,185,255,249,255,171,0,93,0,27,0,108,0,212,0,182,254,47,255,133,255,186,255,233,254,95,0,160,255,20,0,68,255,195,255,198,254,87,0,212,254,178,255,158,254,122,255,11,0,122,0,116,255,122,0,237,254,152,0,219,254,140,0,174,255,138,0,191,254,145,255,32,254,100,255,153,254,76,0,2,255,216,255,133,253,160,255,246,253,79,0,5,254,8,0,244,254,47,1,229,253,68,0,66,254,61,0,246,253,50,1,111,0,189,0,77,254,122,0,133,254,166,0,197,253,114,254,136,253,182,255,21,253,161,255,57,254,194,0,72,252,83,0,226,252,192,0,13,253,192,0,243,252,94,255,149,253,234,0,105,253,215,254,24,254,147,255,60,252,124,255,186,252,188,255,181,252,58,0,168,251,170,255,219,252,213,254,80,252,3,255,246,252,206,255,59,252,219,253,160,254,158,255,32,252,169,254,163,251,197,254,163,251,205,254,125,251,138,254,131,253,26,255,114,251,213,255,237,250,156,255,99,252,119,254,6,251,168,253,79,253,126,255,57,250,200,254,215,250,2,255,72,250,70,254,244,250,155,253,19,251,9,254,35,250,144,254,214,250,26,0,104,250,190,255,49,249,95,255,148,249,45,254,32,249,220,253,143,250,200,253,236,249,153,252,41,250,246,251,149,250,197,253,131,248,240,253,9,249,133,255,151,248,25,255,250,247,189,254,252,247,118,252,72,248,201,253,131,248,148,253,1,248,35,252,203,251,142,254,17,248,64,253,205,246,19,253,76,245,191,251,139,248,159,0,36,248,248,0,142,253,133,255,221,246,62,252,99,253,104,254,157,250,106,251,60,254,148,254,236,251,33,253,124,255,183,0,172,249,16,253,221,253,205,254,247,252,19,251,158,255,41,0,144,252,189,251,255,254,97,0,190,249,215,248,31,0,230,255,124,253,207,253,76,255,222,253,127,254,185,251,102,254,222,252,98,254,197,252,55,254,54,252,22,254,171,251,41,255,108,252,112,255,87,252,19,254,11,251,251,253,29,250,181,0,101,0,180,254,135,252,188,252,87,252,209,253,83,254,139,253,221,253,73,255,175,254,223,253,174,255,6,255,226,254,5,0,124,255,164,254,4,255,219,254,40,254,98,255,100,0,227,255,197,0,20,255,88,254,163,252,43,255,116,255,249,255,85,254,69,254,187,0,159,255,84,253,32,253,219,254,2,1,144,254,104,255,106,255,136,1,159,253,175,0,114,255,43,1,118,255,152,0,137,255,73,1,26,254,204,255,37,1,198,0,73,255,117,0,175,0,75,1,198,255,238,254,231,0,44,1,224,254,74,1,207,254,116,1,145,255,153,1,247,255,167,1,83,0,0,1,67,0,111,1,237,255,248,0,91,0,113,0,221,255,150,1,65,255,154,0,238,0,40,1,5,0,197,0,141,0,221,0,57,1,198,0,211,0,165,1,244,0,78,1,88,0,170,1,13,255,198,1,202,0,40,2,251,255,147,1,35,1,185,0,219,0,45,1,251,0,138,0,128,0,69,0,197,0,32,1,116,255,195,255,188,0,105,1,197,0,86,2,186,1,17,1,34,1,143,0,216,1,226,1,157,0,114,1,159,1,65,1,116,1,129,1,146,1,40,2,155,0,24,0,38,2,7,1,245,255,21,0,104,1,227,0,147,0,2,255,168,1,97,0,110,1,243,255,119,1,141,0,193,1,232,0,140,1,251,1,218,1,16,1,189,2,68,1,106,1,209,255,75,2,148,0,31,2,69,0,144,1,205,255,49,2,59,0,220,0,246,255,96,1,147,0,206,0,211,0,141,2,185,0,51,2,41,1,53,2,28,1,82,2,121,0,254,2,192,0,142,1,118,0,130,2,178,1,233,0,8,1,225,1,211,1,129,0,91,255,187,2,239,0,90,0,26,0,86,1,218,1,201,255,27,0,132,1,94,0,84,255,0,0,213,2,123,1,196,255,81,1,114,1,209,1,95,0,63,1,38,3,83,2,78,0,4,1,241,1,83,3,210,0,48,2,202,1,62,2,48,254,202,0,241,1,113,2,54,255,152,0,48,0,200,2,236,255,54,2,100,0,203,2,199,1,212,1,155,1,93,2,63,1,134,2,195,0,103,2,145,1,26,2,168,2,227,2,201,0,155,2,178,1,186,3,198,1,169,1,134,2,235,1,94,2,169,2,160,1,252,1,241,1,54,3,170,1,47,3,148,2,135,2,116,2,204,2,185,2,210,1,106,2,201,1,173,2,204,1,109,1,53,1,209,2,55,2,68,3,89,2,97,2,44,1,57,3,203,1,175,3,175,2,169,2,21,2,147,3,86,2,79,2,243,0,108,3,195,1,106,3,164,1,18,3,61,1,220,2,220,0,154,3,61,1,84,4,111,1,19,2,210,1,4,4,137,2,29,4,103,2,10,4,41,2,61,3,90,2,253,3,31,3,159,3,35,3,110,3,251,2,31,3,240,1,93,5,5,3,73,2,2,3,35,3,162,3,75,4,25,3,198,4,94,3,185,4,127,3,1,4,215,2,4,3,77,3,148,4,91,4,99,3,253,3,62,3,245,3,73,3,142,3,250,1,191,2,215,4,53,4,108,2,51,3,172,4,59,4,131,4,57,4,118,4,139,3,11,6,97,4,29,5,136,2,63,5,100,2,204,5,220,3,199,5,169,3,217,3,48,5,187,3,61,5,173,1,142,3,73,3,58,5,52,2,155,4,156,1,132,4,147,5,40,5,154,5,50,5,128,2,248,2,190,6,130,5,190,0,43,2,49,4,237,3,170,1,1,1,71,3,212,3,235,0,231,0,240,5,143,4,109,0,37,1,246,3,33,6,49,1,142,0,124,4,27,2,221,254,148,255,189,4,204,3,22,0,40,255,155,2,60,3,30,254,182,1,197,1,151,5,187,253,90,254,21,3,131,1,154,254,58,254,174,0,12,3,220,255,140,254,134,1,122,255,139,253,160,0,206,254,239,2,22,251,181,254,177,0,10,2,8,255,62,2,5,255,127,2,237,253,151,1,172,253,138,1,93,254,21,3,151,253,33,3,38,252,143,1,167,252,215,2,249,255,6,2,65,253,54,1,137,251,232,255,22,252,31,1,64,252,107,1,237,250,56,1,2,250,245,0,235,249,49,1,28,0,153,0,165,252,81,255,223,255,76,1,138,250,102,255,212,0,154,1,175,253,59,255,188,251,64,253,120,252,191,255,26,1,111,1,106,252,82,253,89,1,93,0,254,254,155,254,184,2,132,2,75,253,228,255,192,1,237,1,239,254,193,0,15,2,34,2,13,255,255,253,128,1,120,255,17,1,159,254,0,2,114,255,25,2,58,255,173,3,238,2,83,0,248,0,66,2,93,3,200,255,80,2,74,3,44,0,124,3,24,0,33,0,122,3,240,255,214,3,63,3,118,5,255,5,106,7,180,6,96,5,156,7,185,5,22,252,95,252,184,251,77,251,127,253,93,252,164,253,63,252,245,252,95,253,189,252,236,252,96,254,104,253,54,254,2,253,116,253,247,253,106,253,17,254,1,252,3,254,1,252,84,254,68,254,216,253,144,254,63,254,33,254,45,255,226,251,121,252,196,254,7,255,199,253,177,253,199,253,237,254,227,253,65,255,52,253,68,255,182,252,248,254,179,254,8,255,194,254,28,255,237,254,1,0,201,253,28,255,141,255,35,255,18,255,138,254,59,255,5,254,34,255,189,253,254,254,80,254,195,255,12,255,167,254,2,0,174,254,39,0,41,255,87,255,198,255,0,0,200,255,250,255,53,255,125,255,1,0,70,255,251,255,45,255,6,0,132,254,11,0,94,254,140,255,131,0,122,255,113,0,89,0,252,255,71,0,254,255,237,255,64,255,6,1,24,0,189,0,151,0,123,255,147,255,186,0,103,255,166,0,37,255,37,0,139,0,193,0,171,0,81,1,124,0,158,0,195,255,141,0,226,0,243,255,190,0,231,0,34,0,98,1,109,0,60,1,201,0,244,0,164,0,74,1,171,255,134,1,172,255,254,0,71,1,1,1,79,1,235,1,147,0,220,1,105,0,54,0,77,0,181,1,114,1,165,1,58,1,193,1,86,1,73,1,126,0,161,2,36,1,59,2,132,1,243,0,193,0,141,2,64,1,109,2,24,1,194,0,124,1,5,2,69,2,45,0,67,1,111,0,166,1,233,1,139,1,222,2,22,2,110,2,34,2,230,1,246,1,62,1,60,2,189,0,38,2,129,1,166,1,99,255,153,0,131,255,126,1,59,255,130,1,249,254,78,1,228,0,185,2,68,255,1,0,51,0,41,1,5,254,213,0,136,254,141,1,232,255,255,0,221,253,89,0,10,254,162,255,131,1,179,0,148,253,68,0,84,253,112,0,126,253,162,254,252,254,172,0,74,254,188,254,8,1,136,2,60,252,252,255,159,251,7,0,122,255,134,0,147,251,206,254,143,0,96,0,92,254,15,254,59,251,162,254,9,250,83,253,95,255,72,0,105,3,179,2,220,2,27,1,153,3,97,1,78,1,219,1,71,4,53,3,96,3,12,2,75,3,241,1,202,2,199,2,20,3,238,2,52,4,202,2,180,4,241,2,65,2,150,2,124,245,170,192,38,3,44,7,95,251,33,228,37,12,28,4,40,248,202,208,85,16,107,5,192,249,99,218,69,9,145,5,232,249,78,219,176,12,193,7,210,251,214,230,35,7,16,9,184,252,64,236,173,3,242,12,199,254,163,248,47,9,161,11,41,254,234,244,32,14,116,9,247,252,183,237,123,13,24,12,98,254,70,246,139,11,205,16,72,0,178,1,56,7,148,17,139,0,68,3,44,15,40,21,157,1,180,9,163,4,42,28,67,3,166,19,11,12,40,35,139,4,90,27,216,28,115,3,37,247,177,202,74,23,226,5,58,250,60,221,35,20,86,8,61,252,88,233,8,31,217,7,228,251,65,231,107,25,202,8,139,252,49,235,246,29,192,10,180,253,47,242,64,23,200,11,60,254,92,245,34,19,180,14,131,255,17,253,77,27,4,14,60,255,103,251,238,31,138,15,213,255,252,254,176,23,52,17,107,0,133,2,29,30,223,19,64,1,136,7,147,21,133,23,57,2,98,13,89,30,214,27,50,3,62,19,172,23,2,31,209,3,253,22,218,21,223,44,243,5,212,35,85,41,76,5,159,249,153,217,89,35,61,6,145,250,68,223,66,38,243,7,247,251,180,231,242,34,111,9,244,252,164,237,56,40,24,10,87,253,253,239,191,36,174,10,171,253,245,241,252,33,146,12,156,254,160,247,29,38,67,13,235,254,123,249,193,39,52,15,181,255,58,254,210,35,176,17,148,0,123,3,168,39,140,19,40,1,245,6,154,35,103,22,241,1,177,11,4,41,122,24,116,2,198,14,126,39,207,29,151,3,158,21,140,34,23,34,93,4,72,26,252,34,208,48,112,6,193,38,124,50,208,3,185,247,47,206,171,44,219,6,28,251,141,226,106,47,24,9,189,252,96,236,124,44,64,9,214,252,248,236,204,41,248,11,83,254,236,245,44,48,45,11,238,253,136,243,202,45,255,12,205,254,200,248,6,44,116,14,106,255,120,252,109,42,61,17,110,0,151,2,50,47,181,17,150,0,134,3,19,44,85,20,98,1,84,8,184,46,161,24,125,2,253,14,159,43,110,29,132,3,44,21,96,47,137,32,25,4,168,24,217,42,25,42,149,5,156,33,60,40,224,67,87,8,53,50,75,54,145,6,220,250,15,225,36,49,253,7,254,251,221,231,209,51,135,9,2,253,254,237,209,54,173,11,47,254,14,245,140,52,26,12,99,254,78,246,108,48,74,14,89,255,18,252,198,52,196,14,137,255,55,253,80,50,176,16,62,0,118,1,221,52,253,18,253,0,243,5,123,49,81,21,168,1,248,9,30,54,218,23,78,2,223,13,231,50,83,25,166,2,244,15,245,52,41,30,169,3,7,22,157,50,95,36,189,4,136,28,146,53,31,45,252,5,5,36,47,49,102,59,146,7,147,45,9,59,4,6,91,250,4,222,224,58,29,9,192,252,113,236,191,56,207,9,45,253,0,239,100,57,127,12,147,254,107,247,22,60,232,13,49,255,33,251,53,55,120,15,206,255,212,254,254,58,140,16,50,0,42,1,252,55,216,18,242,0,174,5,254,57,75,21,166,1,238,9,202,59,195,23,72,2,190,13,249,55,232,26,0,3,15,18,212,58,9,30,162,3,226,21,70,56,210,36,207,4,245,28,27,60,13,38,0,5,26,30,232,57,191,55,52,7,94,43,32,53,107,97,109,10,195,62,12,64,177,7,198,251,139,230,177,65,16,11,223,253,45,243,97,61,27,11,229,253,80,243,232,62,8,13,209,254,223,248,0,64,123,15,207,255,218,254,44,66,227,17,165,0,224,3,95,61,247,17,171,0,6,4,94,63,72,21,165,1,233,9,192,65,238,24,143,2,105,15,129,61,229,27,53,3,80,19,198,63,45,29,120,3,223,20,227,64,176,33,76,4,222,25,132,66,178,40,99,5,111,32,33,62,41,46,29,6,207,36,238,65,98,57,95,7,96,44,131,64,134,81,102,9,147,56,222,70,35,8,25,252,131,232,201,75,106,12,137,254,47,247,100,68,98,13,248,254,203,249,86,78,187,15,231,255,105,255,149,70,153,16,54,0,70,1,8,74,202,19,58,1,98,7,47,69,26,21,153,1,157,9,123,77,48,24,98,2,92,14,30,70,102,27,27,3,176,18,70,83,197,30,198,3,184,22,246,69,73,36,186,4,115,28,200,74,74,36,186,4,116,28,37,80,117,44,230,5,129,35,155,70,149,56,74,7,226,43,31,78,218,69,129,8,52,51,154,73,252,127,0,12,62,72,61,42,81,112,63,11,181,67,0,80,225,10,198,253,153,242,153,73,194,25,191,2,139,16,81,24,245,28,108,3,156,20,51,67,204,40,103,5,133,32,122,84,245,4,61,249,74,215,143,82,71,17,113,0,171,2,40,44,20,6,106,250,95,222,61,74,20,50,150,6,164,39,215,67,194,9,37,253,210,238,194,69,225,18,244,0,192,5,10,39,194,9,37,253,210,238,122,68,184,30,196,3,170,22,174,55,92,7,133,251,5,229,20,62,81,12,125,254,233,246,61,26,10,7,67,251,121,227,10,71,225,78,53,9,109,55,102,70,215,11,67,254,138,245,71,65,225,22,16,2,109,12,143,34,174,15,226,255,76,255,20,62,10,35,134,4,60,27,102,70,112,5,198,249,129,218,71,65,0,16,0,0,0,0,0,32,143,2,108,245,79,192,133,59,102,54,16,7,132,42,174,55,40,12,106,254,116,246,10,55,61,18,193,0,141,4,30,21,143,10,154,253,143,241,122,52,153,25,182,2,84,16,163,48,133,3,67,247,100,203,163,48,102,10,131,253,7,241,184,14,143,2,108,245,79,192,153,57,215,91,22,10,183,60,225,74,153,9,13,253,62,238,184,78,215,19,62,1,121,7,225,26,0,16,0,0,0,0,0,80,112,33,65,4,156,25,204,76,225,2,26,246,105,196,61,74,163,16,58,0,91,1,184,30,40,8,29,252,151,232,204,44,0,48,87,6,43,38,20,62,194,5,26,250,126,220,112,61,20,18,180,0,62,4,215,35,153,5,240,249,131,219,184,62,92,27,25,3,164,18,235,57,225,2,26,246,105,196,225,58,204,8,140,252,55,235,215,19,204,4,12,249,38,214,215,51,174,67,83,8,27,50,163,64,30,9,193,252,118,236,225,58,184,22,6,2,46,12,92,15,102,14,100,255,86,252,174,55,153,33,72,4,198,25,235,65,10,3,106,246,74,198,225,58,225,14,149,255,122,253,174,23,102,2,12,245,17,190,122,36,40,36,180,4,83,28,215,51,225,6,33,251,172,226,215,51,194,13,33,255,193,250,153,9,174,7,196,251,127,230,204,44,153,21,187,1,108,10,245,40,225,2,26,246,105,196,112,45,122,12,145,254,92,247,194,5,10,3,106,246,74,198,0,64,248,65,226,67,190,69,142,71,82,73,12,75,188,76,98,78,0,80,150,81,35,83,170,84,42,86,163,87,22,89,130,90,234,91,76,93,168,94,0,96,83,97,161,98,236,99,49,101,115,102,177,103,235,104,34,106,85,107,132,108,177,109,218,110,0,112,35,113,67,114,97,115,123,116,147,117,169,118,188,119,204,120,218,121,230,122,239,123,247,124,252,125,255,126,255,127,255,127,61,10,63,10,69,10,78,10,91,10,108,10,129,10,153,10,181,10,212,10,248,10,31,11,74,11,120,11,170,11,224,11,25,12,86,12,151,12,219,12,35,13,110,13,189,13,15,14,101,14,190,14,27,15,123,15,223,15,70,16,176,16,30,17,143,17,3,18,123,18,245,18,115,19,244,19,120,20,0,21,138,21,23,22,168,22,59,23,209,23,106,24,6,25,165,25,70,26,234,26,145,27,59,28,231,28,149,29,70,30,250,30,176,31,104,32,35,33,224,33,159,34,97,35,36,36,234,36,178,37,124,38,71,39,21,40,228,40,181,41,136,42,93,43,51,44,11,45,228,45,191,46,155,47,121,48,88,49,56,50,26,51,252,51,224,52,196,53,170,54,145,55,120,56,96,57,73,58,51,59,29,60,8,61,243,61,223,62,203,63,184,64,165,65,146,66,127,67,108,68,90,69,71,70,52,71,33,72,14,73,251,73,231,74,211,75,191,76,170,77,149,78,126,79,104,80,80,81,56,82,31,83,5,84,234,84,207,85,178,86,148,87,116,88,84,89,50,90,15,91,235,91,197,92,157,93,117,94,74,95,30,96,240,96,192,97,143,98,91,99,38,100,239,100,181,101,122,102,60,103,253,103,187,104,119,105,48,106,232,106,156,107,79,108,255,108,172,109,87,110,255,110,165,111,71,112,231,112,133,113,31,114,183,114,75,115,221,115,108,116,248,116,129,117,6,118,137,118,8,119,133,119,254,119,116,120,230,120,86,121,194,121,42,122,144,122,242,122,80,123,171,123,3,124,87,124,167,124,244,124,62,125,132,125,198,125,5,126,64,126,120,126,172,126,220,126,9,127,49,127,87,127,120,127,150,127,176,127,199,127,217,127,232,127,243,127,251,127,255,127,255,127,229,127,153,127,25,127,103,126,129,125],"i8",k,u.GLOBAL_BASE+20480),T([106,124,33,123,167,121,252,119,34,118,24,116,223,113,122,111,231,108,41,106,65,103,47,100,245,96,149,93,15,90,101,86,153,82,171,78,158,74,116,70,45,66,204,61,82,57,193,52,27,48,98,43,151,38,189,33,213,28,226,23,230,18,226,13,216,8,203,3,61,10,64,10,73,10,88,10,108,10,135,10,167,10,205,10,249,10,43,11,99,11,160,11,227,11,44,12,122,12,207,12,40,13,136,13,237,13,87,14,199,14,60,15,183,15,55,16,189,16,71,17,215,17,108,18,6,19,165,19,73,20,242,20,159,21,82,22,9,23,196,23,133,24,73,25,18,26,224,26,177,27,135,28,97,29,62,30,32,31,5,32,238,32,219,33,203,34,191,35,182,36,176,37,174,38,174,39,177,40,184,41,193,42,204,43,218,44,235,45,254,46,19,48,42,49,67,50,94,51,123,52,154,53,186,54,219,55,254,56,34,58,71,59,109,60,148,61,188,62,228,63,13,65,54,66,96,67,138,68,180,69,221,70,7,72,48,73,89,74,130,75,169,76,208,77,246,78,27,80,63,81,98,82,132,83,164,84,194,85,223,86,250,87,19,89,43,90,64,91,83,92,99,93,113,94,125,95,134,96,140,97,143,98,144,99,141,100,135,101,126,102,114,103,98,104,79,105,56,106,30,107,255,107,221,108,183,109,140,110,94,111,43,112,244,112,185,113,121,114,53,115,236,115,158,116,76,117,245,117,153,118,55,119,209,119,102,120,246,120,129,121,6,122,134,122,1,123,118,123,230,123,81,124,182,124,21,125,111,125,195,125,17,126,90,126,157,126,219,126,18,127,68,127,112,127,150,127,183,127,209,127,230,127,244,127,253,127,255,127,255,127,244,127,208,127,149,127,66,127,215,126,85,126,188,125,12,125,69,124,104,123,117,122,108,121,78,120,28,119,213,117,122,116,13,115,140,113,250,111,87,110,162,108,222,106,11,105,40,103,57,101,60,99,51,97,30,95,255,92,215,90,165,88,108,86,44,84,229,81,154,79,74,77,247,74,161,72,74,70,243,67,156,65,71,63,244,60,164,58,88,56,18,54,209,51,152,49,103,47,62,45,31,43,11,41,2,39,5,37,21,35,51,33,95,31,155,29,231,27,67,26,177,24,49,23,195,21,105,20,34,19,239,17,209,16,201,15,214,14,249,13,50,13,130,12,232,11,102,11,252,10,169,10,109,10,73,10,61,10,61,10,63,10,67,10,74,10,84,10,96,10,111,10,129,10,150,10,174,10,200,10,229,10,5,11,39,11,77,11,117,11,159,11,205,11,253,11,48,12,101,12,157,12,216,12,22,13,86,13,153,13,222,13,38,14,113,14,190,14,13,15,96,15,181,15,12,16,102,16,194,16,33,17,130,17,230,17,76,18,180,18,31,19,140,19,252,19,110,20,226,20,88,21,209,21,76,22,201,22,72,23,202,23,77,24,211,24,91,25,229,25,113,26,254,26,142,27,32,28,180,28,74,29,225,29,123,30,22,31,179,31,82,32,242,32,149,33,57,34,222,34,133,35,46,36,216,36,132,37,50,38,224,38,145,39,66,40,245,40,169,41,95,42,22,43,206,43,135,44,66,45,253,45,186,46,120,47,54,48,246,48,183,49,120,50,59,51,254,51,194,52,135,53,77,54,19,55,218,55,161,56,106,57,50,58,252,58,197,59,144,60,90,61,37,62,240,62,188,63,136,64,84,65,32,66,236,66,185,67,133,68,82,69,30,70,235,70,183,71,132,72,80,73,28,74,231,74,179,75,126,76,73,77,19,78,221,78,166,79,111,80,56,81,0,82,199,82,142,83,84,84,25,85,221,85,161,86,100,87,38,88,231,88,167,89,103,90,37,91,226,91,158,92,89,93,19,94,204,94,131,95,57,96,238,96,162,97,84,98,5,99,181,99,99,100,15,101,186,101,100,102,12,103,178,103,87,104,250,104,155,105,59,106,217,106,117,107,16,108,168,108,63,109,211,109,102,110,247,110,134,111,19,112,158,112,39,113,174,113,50,114,181,114,53,115,179,115,47,116,169,116,33,117,150,117,9,118,122,118,232,118,84,119,190,119,37,120,138,120,236,120,76,121,170,121,5,122,94,122,180,122,7,123,88,123,167,123,242,123,60,124,130,124,198,124,8,125,71,125,131,125,188,125,243,125,39,126,89,126,136,126,180,126,221,126,4,127,40,127,73,127,103,127,131,127,156,127,178,127,197,127,214,127,228,127,239,127,247,127,253,127,255,127,255,127,97,125,160,117,15,105,48,88,181,67,116,44,98,19,68,101,99,111,100,101,114,0,101,110,99,111,100,101,114,0],"i8",k,u.GLOBAL_BASE+30720);var $e=u.alignMemory(T(12,"i8",C),8);function Ve(e){var t=Ve;t.called||(ue=ie(ue),t.called=!0,g(u.dynamicAlloc),t.alloc=u.dynamicAlloc,u.dynamicAlloc=function(){wt("cannot dynamically allocate, sbrk now has control")});var i=ue;if(0!=e){var a=t.alloc(e);if(!a)return-1>>>0}return i}function Ye(e){return t["___errno_location"]&&(X[t["___errno_location"]()>>2]=e),e}g($e%8==0);var Ke={EPERM:1,ENOENT:2,ESRCH:3,EINTR:4,EIO:5,ENXIO:6,E2BIG:7,ENOEXEC:8,EBADF:9,ECHILD:10,EAGAIN:11,EWOULDBLOCK:11,ENOMEM:12,EACCES:13,EFAULT:14,ENOTBLK:15,EBUSY:16,EEXIST:17,EXDEV:18,ENODEV:19,ENOTDIR:20,EISDIR:21,EINVAL:22,ENFILE:23,EMFILE:24,ENOTTY:25,ETXTBSY:26,EFBIG:27,ENOSPC:28,ESPIPE:29,EROFS:30,EMLINK:31,EPIPE:32,EDOM:33,ERANGE:34,ENOMSG:42,EIDRM:43,ECHRNG:44,EL2NSYNC:45,EL3HLT:46,EL3RST:47,ELNRNG:48,EUNATCH:49,ENOCSI:50,EL2HLT:51,EDEADLK:35,ENOLCK:37,EBADE:52,EBADR:53,EXFULL:54,ENOANO:55,EBADRQC:56,EBADSLT:57,EDEADLOCK:35,EBFONT:59,ENOSTR:60,ENODATA:61,ETIME:62,ENOSR:63,ENONET:64,ENOPKG:65,EREMOTE:66,ENOLINK:67,EADV:68,ESRMNT:69,ECOMM:70,EPROTO:71,EMULTIHOP:72,EDOTDOT:73,EBADMSG:74,ENOTUNIQ:76,EBADFD:77,EREMCHG:78,ELIBACC:79,ELIBBAD:80,ELIBSCN:81,ELIBMAX:82,ELIBEXEC:83,ENOSYS:38,ENOTEMPTY:39,ENAMETOOLONG:36,ELOOP:40,EOPNOTSUPP:95,EPFNOSUPPORT:96,ECONNRESET:104,ENOBUFS:105,EAFNOSUPPORT:97,EPROTOTYPE:91,ENOTSOCK:88,ENOPROTOOPT:92,ESHUTDOWN:108,ECONNREFUSED:111,EADDRINUSE:98,ECONNABORTED:103,ENETUNREACH:101,ENETDOWN:100,ETIMEDOUT:110,EHOSTDOWN:112,EHOSTUNREACH:113,EINPROGRESS:115,EALREADY:114,EDESTADDRREQ:89,EMSGSIZE:90,EPROTONOSUPPORT:93,ESOCKTNOSUPPORT:94,EADDRNOTAVAIL:99,ENETRESET:102,EISCONN:106,ENOTCONN:107,ETOOMANYREFS:109,EUSERS:87,EDQUOT:122,ESTALE:116,ENOTSUP:95,ENOMEDIUM:123,EILSEQ:84,EOVERFLOW:75,ECANCELED:125,ENOTRECOVERABLE:131,EOWNERDEAD:130,ESTRPIPE:86};function We(e){switch(e){case 30:return te;case 85:return he/te;case 132:case 133:case 12:case 137:case 138:case 15:case 235:case 16:case 17:case 18:case 19:case 20:case 149:case 13:case 10:case 236:case 153:case 9:case 21:case 22:case 159:case 154:case 14:case 77:case 78:case 139:case 80:case 81:case 82:case 68:case 67:case 164:case 11:case 29:case 47:case 48:case 95:case 52:case 51:case 46:return 200809;case 79:return 0;case 27:case 246:case 127:case 128:case 23:case 24:case 160:case 161:case 181:case 182:case 242:case 183:case 184:case 243:case 244:case 245:case 165:case 178:case 179:case 49:case 50:case 168:case 169:case 175:case 170:case 171:case 172:case 97:case 76:case 32:case 173:case 35:return-1;case 176:case 177:case 7:case 155:case 8:case 157:case 125:case 126:case 92:case 93:case 129:case 130:case 131:case 94:case 91:return 1;case 74:case 60:case 69:case 70:case 4:return 1024;case 31:case 42:case 72:return 32;case 87:case 26:case 33:return 2147483647;case 34:case 1:return 47839;case 38:case 36:return 99;case 43:case 37:return 2048;case 0:return 2097152;case 3:return 65536;case 28:return 32768;case 44:return 32767;case 75:return 16384;case 39:return 1e3;case 89:return 700;case 71:return 256;case 40:return 255;case 2:return 100;case 180:return 64;case 25:return 20;case 5:return 16;case 6:return 6;case 73:return 4;case 84:return"object"===typeof navigator&&navigator["hardwareConcurrency"]||1}return Ye(Ke.EINVAL),-1}function Xe(e,t,i){return Y.set(Y.subarray(t,t+i),e),e}function Je(){t["abort"]()}t["_memcpy"]=gt,t["_memmove"]=ft,t["_memset"]=ht;var Ze={0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"File locking deadlock error",36:"File or path name too long",37:"No record locks available",38:"Function not implemented",39:"Directory not empty",40:"Too many symbolic links",42:"No message of desired type",43:"Identifier removed",44:"Channel number out of range",45:"Level 2 not synchronized",46:"Level 3 halted",47:"Level 3 reset",48:"Link number out of range",49:"Protocol driver not attached",50:"No CSI structure available",51:"Level 2 halted",52:"Invalid exchange",53:"Invalid request descriptor",54:"Exchange full",55:"No anode",56:"Invalid request code",57:"Invalid slot",59:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",72:"Multihop attempted",73:"Cross mount point (not really error)",74:"Trying to read unreadable message",75:"Value too large for defined data type",76:"Given log. name not unique",77:"f.d. invalid for this operation",78:"Remote address changed",79:"Can access a needed shared lib",80:"Accessing a corrupted shared lib",81:".lib section in a.out corrupted",82:"Attempting to link in too many libs",83:"Attempting to exec a shared library",84:"Illegal byte sequence",86:"Streams pipe error",87:"Too many users",88:"Socket operation on non-socket",89:"Destination address required",90:"Message too long",91:"Protocol wrong type for socket",92:"Protocol not available",93:"Unknown protocol",94:"Socket type not supported",95:"Not supported",96:"Protocol family not supported",97:"Address family not supported by protocol family",98:"Address already in use",99:"Address not available",100:"Network interface is not configured",101:"Network is unreachable",102:"Connection reset by network",103:"Connection aborted",104:"Connection reset by peer",105:"No buffer space available",106:"Socket is already connected",107:"Socket is not connected",108:"Can't send after socket shutdown",109:"Too many references",110:"Connection timed out",111:"Connection refused",112:"Host is down",113:"Host is unreachable",114:"Socket already connected",115:"Connection already in progress",116:"Stale file handle",122:"Quota exceeded",123:"No medium (in tape drive)",125:"Operation canceled",130:"Previous owner died",131:"State not recoverable"},et={ttys:[],init:function(){},shutdown:function(){},register:function(e,t){et.ttys[e]={input:[],output:[],ops:t},nt.registerDevice(e,et.stream_ops)},stream_ops:{open:function(e){var t=et.ttys[e.node.rdev];if(!t)throw new nt.ErrnoError(Ke.ENODEV);e.tty=t,e.seekable=!1},close:function(e){e.tty.ops.flush(e.tty)},flush:function(e){e.tty.ops.flush(e.tty)},read:function(e,t,i,a,n){if(!e.tty||!e.tty.ops.get_char)throw new nt.ErrnoError(Ke.ENXIO);for(var r=0,s=0;s<a;s++){var o;try{o=e.tty.ops.get_char(e.tty)}catch(l){throw new nt.ErrnoError(Ke.EIO)}if(void 0===o&&0===r)throw new nt.ErrnoError(Ke.EAGAIN);if(null===o||void 0===o)break;r++,t[i+s]=o}return r&&(e.node.timestamp=Date.now()),r},write:function(e,t,i,a,n){if(!e.tty||!e.tty.ops.put_char)throw new nt.ErrnoError(Ke.ENXIO);for(var r=0;r<a;r++)try{e.tty.ops.put_char(e.tty,t[i+r])}catch(s){throw new nt.ErrnoError(Ke.EIO)}return a&&(e.node.timestamp=Date.now()),r}},default_tty_ops:{get_char:function(e){if(!e.input.length){var t=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?(t=window.prompt("Input: "),null!==t&&(t+="\n")):"function"==typeof readline&&(t=readline(),null!==t&&(t+="\n")),!t)return null;e.input=De(t,!0)}return e.input.shift()},put_char:function(e,i){null===i||10===i?(t["print"](B(e.output,0)),e.output=[]):0!=i&&e.output.push(i)},flush:function(e){e.output&&e.output.length>0&&(t["print"](B(e.output,0)),e.output=[])}},default_tty1_ops:{put_char:function(e,i){null===i||10===i?(t["printErr"](B(e.output,0)),e.output=[]):0!=i&&e.output.push(i)},flush:function(e){e.output&&e.output.length>0&&(t["printErr"](B(e.output,0)),e.output=[])}}},tt={ops_table:null,mount:function(e){return tt.createNode(null,"/",16895,0)},createNode:function(e,t,i,a){if(nt.isBlkdev(i)||nt.isFIFO(i))throw new nt.ErrnoError(Ke.EPERM);tt.ops_table||(tt.ops_table={dir:{node:{getattr:tt.node_ops.getattr,setattr:tt.node_ops.setattr,lookup:tt.node_ops.lookup,mknod:tt.node_ops.mknod,rename:tt.node_ops.rename,unlink:tt.node_ops.unlink,rmdir:tt.node_ops.rmdir,readdir:tt.node_ops.readdir,symlink:tt.node_ops.symlink},stream:{llseek:tt.stream_ops.llseek}},file:{node:{getattr:tt.node_ops.getattr,setattr:tt.node_ops.setattr},stream:{llseek:tt.stream_ops.llseek,read:tt.stream_ops.read,write:tt.stream_ops.write,allocate:tt.stream_ops.allocate,mmap:tt.stream_ops.mmap,msync:tt.stream_ops.msync}},link:{node:{getattr:tt.node_ops.getattr,setattr:tt.node_ops.setattr,readlink:tt.node_ops.readlink},stream:{}},chrdev:{node:{getattr:tt.node_ops.getattr,setattr:tt.node_ops.setattr},stream:nt.chrdev_stream_ops}});var n=nt.createNode(e,t,i,a);return nt.isDir(n.mode)?(n.node_ops=tt.ops_table.dir.node,n.stream_ops=tt.ops_table.dir.stream,n.contents={}):nt.isFile(n.mode)?(n.node_ops=tt.ops_table.file.node,n.stream_ops=tt.ops_table.file.stream,n.usedBytes=0,n.contents=null):nt.isLink(n.mode)?(n.node_ops=tt.ops_table.link.node,n.stream_ops=tt.ops_table.link.stream):nt.isChrdev(n.mode)&&(n.node_ops=tt.ops_table.chrdev.node,n.stream_ops=tt.ops_table.chrdev.stream),n.timestamp=Date.now(),e&&(e.contents[t]=n),n},getFileDataAsRegularArray:function(e){if(e.contents&&e.contents.subarray){for(var t=[],i=0;i<e.usedBytes;++i)t.push(e.contents[i]);return t}return e.contents},getFileDataAsTypedArray:function(e){return e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array},expandFileStorage:function(e,t){if(e.contents&&e.contents.subarray&&t>e.contents.length&&(e.contents=tt.getFileDataAsRegularArray(e),e.usedBytes=e.contents.length),!e.contents||e.contents.subarray){var i=e.contents?e.contents.buffer.byteLength:0;if(i>=t)return;var a=1048576;t=Math.max(t,i*(i<a?2:1.125)|0),0!=i&&(t=Math.max(t,256));var n=e.contents;return e.contents=new Uint8Array(t),void(e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0))}!e.contents&&t>0&&(e.contents=[]);while(e.contents.length<t)e.contents.push(0)},resizeFileStorage:function(e,t){if(e.usedBytes!=t){if(0==t)return e.contents=null,void(e.usedBytes=0);if(!e.contents||e.contents.subarray){var i=e.contents;return e.contents=new Uint8Array(new ArrayBuffer(t)),i&&e.contents.set(i.subarray(0,Math.min(t,e.usedBytes))),void(e.usedBytes=t)}if(e.contents||(e.contents=[]),e.contents.length>t)e.contents.length=t;else while(e.contents.length<t)e.contents.push(0);e.usedBytes=t}},node_ops:{getattr:function(e){var t={};return t.dev=nt.isChrdev(e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,nt.isDir(e.mode)?t.size=4096:nt.isFile(e.mode)?t.size=e.usedBytes:nt.isLink(e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},setattr:function(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&tt.resizeFileStorage(e,t.size)},lookup:function(e,t){throw nt.genericErrors[Ke.ENOENT]},mknod:function(e,t,i,a){return tt.createNode(e,t,i,a)},rename:function(e,t,i){if(nt.isDir(e.mode)){var a;try{a=nt.lookupNode(t,i)}catch(r){}if(a)for(var n in a.contents)throw new nt.ErrnoError(Ke.ENOTEMPTY)}delete e.parent.contents[e.name],e.name=i,t.contents[i]=e,e.parent=t},unlink:function(e,t){delete e.contents[t]},rmdir:function(e,t){var i=nt.lookupNode(e,t);for(var a in i.contents)throw new nt.ErrnoError(Ke.ENOTEMPTY);delete e.contents[t]},readdir:function(e){var t=[".",".."];for(var i in e.contents)e.contents.hasOwnProperty(i)&&t.push(i);return t},symlink:function(e,t,i){var a=tt.createNode(e,t,41471,0);return a.link=i,a},readlink:function(e){if(!nt.isLink(e.mode))throw new nt.ErrnoError(Ke.EINVAL);return e.link}},stream_ops:{read:function(e,t,i,a,n){var r=e.node.contents;if(n>=e.node.usedBytes)return 0;var s=Math.min(e.node.usedBytes-n,a);if(g(s>=0),s>8&&r.subarray)t.set(r.subarray(n,n+s),i);else for(var o=0;o<s;o++)t[i+o]=r[n+o];return s},write:function(e,t,i,a,n,r){if(!a)return 0;var s=e.node;if(s.timestamp=Date.now(),t.subarray&&(!s.contents||s.contents.subarray)){if(r)return s.contents=t.subarray(i,i+a),s.usedBytes=a,a;if(0===s.usedBytes&&0===n)return s.contents=new Uint8Array(t.subarray(i,i+a)),s.usedBytes=a,a;if(n+a<=s.usedBytes)return s.contents.set(t.subarray(i,i+a),n),a}if(tt.expandFileStorage(s,n+a),s.contents.subarray&&t.subarray)s.contents.set(t.subarray(i,i+a),n);else for(var o=0;o<a;o++)s.contents[n+o]=t[i+o];return s.usedBytes=Math.max(s.usedBytes,n+a),a},llseek:function(e,t,i){var a=t;if(1===i?a+=e.position:2===i&&nt.isFile(e.node.mode)&&(a+=e.node.usedBytes),a<0)throw new nt.ErrnoError(Ke.EINVAL);return a},allocate:function(e,t,i){tt.expandFileStorage(e.node,t+i),e.node.usedBytes=Math.max(e.node.usedBytes,t+i)},mmap:function(e,t,i,a,n,r,s){if(!nt.isFile(e.node.mode))throw new nt.ErrnoError(Ke.ENODEV);var o,l,c=e.node.contents;if(2&s||c.buffer!==t&&c.buffer!==t.buffer){if((n>0||n+a<e.node.usedBytes)&&(c=c.subarray?c.subarray(n,n+a):Array.prototype.slice.call(c,n,n+a)),l=!0,o=mt(a),!o)throw new nt.ErrnoError(Ke.ENOMEM);t.set(c,o)}else l=!1,o=c.byteOffset;return{ptr:o,allocated:l}},msync:function(e,t,i,a,n){if(!nt.isFile(e.node.mode))throw new nt.ErrnoError(Ke.ENODEV);return 2&n||tt.stream_ops.write(e,t,0,a,i,!1),0}}},it={dbs:{},indexedDB:function(){if("undefined"!==typeof indexedDB)return indexedDB;var e=null;return"object"===typeof window&&(e=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),g(e,"IDBFS used, but indexedDB not supported"),e},DB_VERSION:21,DB_STORE_NAME:"FILE_DATA",mount:function(e){return tt.mount.apply(null,arguments)},syncfs:function(e,t,i){it.getLocalSet(e,(function(a,n){if(a)return i(a);it.getRemoteSet(e,(function(e,a){if(e)return i(e);var r=t?a:n,s=t?n:a;it.reconcile(r,s,i)}))}))},getDB:function(e,t){var i,a=it.dbs[e];if(a)return t(null,a);try{i=it.indexedDB().open(e,it.DB_VERSION)}catch(n){return t(n)}i.onupgradeneeded=function(e){var t,i=e.target.result,a=e.target.transaction;t=i.objectStoreNames.contains(it.DB_STORE_NAME)?a.objectStore(it.DB_STORE_NAME):i.createObjectStore(it.DB_STORE_NAME),t.indexNames.contains("timestamp")||t.createIndex("timestamp","timestamp",{unique:!1})},i.onsuccess=function(){a=i.result,it.dbs[e]=a,t(null,a)},i.onerror=function(e){t(this.error),e.preventDefault()}},getLocalSet:function(e,t){var i={};function a(e){return"."!==e&&".."!==e}function n(e){return function(t){return rt.join2(e,t)}}var r=nt.readdir(e.mountpoint).filter(a).map(n(e.mountpoint));while(r.length){var s,o=r.pop();try{s=nt.stat(o)}catch(l){return t(l)}nt.isDir(s.mode)&&r.push.apply(r,nt.readdir(o).filter(a).map(n(o))),i[o]={timestamp:s.mtime}}return t(null,{type:"local",entries:i})},getRemoteSet:function(e,t){var i={};it.getDB(e.mountpoint,(function(e,a){if(e)return t(e);var n=a.transaction([it.DB_STORE_NAME],"readonly");n.onerror=function(e){t(this.error),e.preventDefault()};var r=n.objectStore(it.DB_STORE_NAME),s=r.index("timestamp");s.openKeyCursor().onsuccess=function(e){var n=e.target.result;if(!n)return t(null,{type:"remote",db:a,entries:i});i[n.primaryKey]={timestamp:n.key},n.continue()}}))},loadLocalEntry:function(e,t){var i,a;try{var n=nt.lookupPath(e);a=n.node,i=nt.stat(e)}catch(r){return t(r)}return nt.isDir(i.mode)?t(null,{timestamp:i.mtime,mode:i.mode}):nt.isFile(i.mode)?(a.contents=tt.getFileDataAsTypedArray(a),t(null,{timestamp:i.mtime,mode:i.mode,contents:a.contents})):t(new Error("node type not supported"))},storeLocalEntry:function(e,t,i){try{if(nt.isDir(t.mode))nt.mkdir(e,t.mode);else{if(!nt.isFile(t.mode))return i(new Error("node type not supported"));nt.writeFile(e,t.contents,{encoding:"binary",canOwn:!0})}nt.chmod(e,t.mode),nt.utime(e,t.timestamp,t.timestamp)}catch(a){return i(a)}i(null)},removeLocalEntry:function(e,t){try{nt.lookupPath(e);var i=nt.stat(e);nt.isDir(i.mode)?nt.rmdir(e):nt.isFile(i.mode)&&nt.unlink(e)}catch(a){return t(a)}t(null)},loadRemoteEntry:function(e,t,i){var a=e.get(t);a.onsuccess=function(e){i(null,e.target.result)},a.onerror=function(e){i(this.error),e.preventDefault()}},storeRemoteEntry:function(e,t,i,a){var n=e.put(i,t);n.onsuccess=function(){a(null)},n.onerror=function(e){a(this.error),e.preventDefault()}},removeRemoteEntry:function(e,t,i){var a=e.delete(t);a.onsuccess=function(){i(null)},a.onerror=function(e){i(this.error),e.preventDefault()}},reconcile:function(e,t,i){var a=0,n=[];Object.keys(e.entries).forEach((function(i){var r=e.entries[i],s=t.entries[i];(!s||r.timestamp>s.timestamp)&&(n.push(i),a++)}));var r=[];if(Object.keys(t.entries).forEach((function(i){t.entries[i];var n=e.entries[i];n||(r.push(i),a++)})),!a)return i(null);var s=0,o="remote"===e.type?e.db:t.db,l=o.transaction([it.DB_STORE_NAME],"readwrite"),c=l.objectStore(it.DB_STORE_NAME);function u(e){return e?u.errored?void 0:(u.errored=!0,i(e)):++s>=a?i(null):void 0}l.onerror=function(e){u(this.error),e.preventDefault()},n.sort().forEach((function(e){"local"===t.type?it.loadRemoteEntry(c,e,(function(t,i){if(t)return u(t);it.storeLocalEntry(e,i,u)})):it.loadLocalEntry(e,(function(t,i){if(t)return u(t);it.storeRemoteEntry(c,e,i,u)}))})),r.sort().reverse().forEach((function(e){"local"===t.type?it.removeLocalEntry(e,u):it.removeRemoteEntry(c,e,u)}))}},at={DIR_MODE:16895,FILE_MODE:33279,reader:null,mount:function(e){g(r),at.reader||(at.reader=new FileReaderSync);var t=at.createNode(null,"/",at.DIR_MODE,0),i={};function a(e){for(var a=e.split("/"),n=t,r=0;r<a.length-1;r++){var s=a.slice(0,r+1).join("/");i[s]||(i[s]=at.createNode(n,s,at.DIR_MODE,0)),n=i[s]}return n}function n(e){var t=e.split("/");return t[t.length-1]}return Array.prototype.forEach.call(e.opts["files"]||[],(function(e){at.createNode(a(e.name),n(e.name),at.FILE_MODE,0,e,e.lastModifiedDate)})),(e.opts["blobs"]||[]).forEach((function(e){at.createNode(a(e["name"]),n(e["name"]),at.FILE_MODE,0,e["data"])})),(e.opts["packages"]||[]).forEach((function(e){e["metadata"].files.forEach((function(t){var i=t.filename.substr(1);at.createNode(a(i),n(i),at.FILE_MODE,0,e["blob"].slice(t.start,t.end))}))})),t},createNode:function(e,t,i,a,n,r){var s=nt.createNode(e,t,i);return s.mode=i,s.node_ops=at.node_ops,s.stream_ops=at.stream_ops,s.timestamp=(r||new Date).getTime(),g(at.FILE_MODE!==at.DIR_MODE),i===at.FILE_MODE?(s.size=n.size,s.contents=n):(s.size=4096,s.contents={}),e&&(e.contents[t]=s),s},node_ops:{getattr:function(e){return{dev:1,ino:void 0,mode:e.mode,nlink:1,uid:0,gid:0,rdev:void 0,size:e.size,atime:new Date(e.timestamp),mtime:new Date(e.timestamp),ctime:new Date(e.timestamp),blksize:4096,blocks:Math.ceil(e.size/4096)}},setattr:function(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp)},lookup:function(e,t){throw new nt.ErrnoError(Ke.ENOENT)},mknod:function(e,t,i,a){throw new nt.ErrnoError(Ke.EPERM)},rename:function(e,t,i){throw new nt.ErrnoError(Ke.EPERM)},unlink:function(e,t){throw new nt.ErrnoError(Ke.EPERM)},rmdir:function(e,t){throw new nt.ErrnoError(Ke.EPERM)},readdir:function(e){throw new nt.ErrnoError(Ke.EPERM)},symlink:function(e,t,i){throw new nt.ErrnoError(Ke.EPERM)},readlink:function(e){throw new nt.ErrnoError(Ke.EPERM)}},stream_ops:{read:function(e,t,i,a,n){if(n>=e.node.size)return 0;var r=e.node.contents.slice(n,n+a),s=at.reader.readAsArrayBuffer(r);return t.set(new Uint8Array(s),i),r.size},write:function(e,t,i,a,n){throw new nt.ErrnoError(Ke.EIO)},llseek:function(e,t,i){var a=t;if(1===i?a+=e.position:2===i&&nt.isFile(e.node.mode)&&(a+=e.node.size),a<0)throw new nt.ErrnoError(Ke.EINVAL);return a}}};T(1,"i32*",C),T(1,"i32*",C),T(1,"i32*",C);var nt={root:null,mounts:[],devices:[null],streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,trackingDelegate:{},tracking:{openFlags:{READ:1,WRITE:2}},ErrnoError:null,genericErrors:{},filesystems:null,handleFSError:function(e){if(!(e instanceof nt.ErrnoError))throw e+" : "+G();return Ye(e.errno)},lookupPath:function(e,t){if(e=rt.resolve(nt.cwd(),e),t=t||{},!e)return{path:"",node:null};var i={follow_mount:!0,recurse_count:0};for(var a in i)void 0===t[a]&&(t[a]=i[a]);if(t.recurse_count>8)throw new nt.ErrnoError(Ke.ELOOP);for(var n=rt.normalizeArray(e.split("/").filter((function(e){return!!e})),!1),r=nt.root,s="/",o=0;o<n.length;o++){var l=o===n.length-1;if(l&&t.parent)break;if(r=nt.lookupNode(r,n[o]),s=rt.join2(s,n[o]),nt.isMountpoint(r)&&(!l||l&&t.follow_mount)&&(r=r.mounted.root),!l||t.follow){var c=0;while(nt.isLink(r.mode)){var u=nt.readlink(s);s=rt.resolve(rt.dirname(s),u);var d=nt.lookupPath(s,{recurse_count:t.recurse_count});if(r=d.node,c++>40)throw new nt.ErrnoError(Ke.ELOOP)}}}return{path:s,node:r}},getPath:function(e){var t;while(1){if(nt.isRoot(e)){var i=e.mount.mountpoint;return t?"/"!==i[i.length-1]?i+"/"+t:i+t:i}t=t?e.name+"/"+t:e.name,e=e.parent}},hashName:function(e,t){for(var i=0,a=0;a<t.length;a++)i=(i<<5)-i+t.charCodeAt(a)|0;return(e+i>>>0)%nt.nameTable.length},hashAddNode:function(e){var t=nt.hashName(e.parent.id,e.name);e.name_next=nt.nameTable[t],nt.nameTable[t]=e},hashRemoveNode:function(e){var t=nt.hashName(e.parent.id,e.name);if(nt.nameTable[t]===e)nt.nameTable[t]=e.name_next;else{var i=nt.nameTable[t];while(i){if(i.name_next===e){i.name_next=e.name_next;break}i=i.name_next}}},lookupNode:function(e,t){var i=nt.mayLookup(e);if(i)throw new nt.ErrnoError(i,e);for(var a=nt.hashName(e.id,t),n=nt.nameTable[a];n;n=n.name_next){var r=n.name;if(n.parent.id===e.id&&r===t)return n}return nt.lookup(e,t)},createNode:function(e,t,i,a){if(!nt.FSNode){nt.FSNode=function(e,t,i,a){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=nt.nextInode++,this.name=t,this.mode=i,this.node_ops={},this.stream_ops={},this.rdev=a},nt.FSNode.prototype={};var n=365,r=146;Object.defineProperties(nt.FSNode.prototype,{read:{get:function(){return(this.mode&n)===n},set:function(e){e?this.mode|=n:this.mode&=~n}},write:{get:function(){return(this.mode&r)===r},set:function(e){e?this.mode|=r:this.mode&=~r}},isFolder:{get:function(){return nt.isDir(this.mode)}},isDevice:{get:function(){return nt.isChrdev(this.mode)}}})}var s=new nt.FSNode(e,t,i,a);return nt.hashAddNode(s),s},destroyNode:function(e){nt.hashRemoveNode(e)},isRoot:function(e){return e===e.parent},isMountpoint:function(e){return!!e.mounted},isFile:function(e){return 32768===(61440&e)},isDir:function(e){return 16384===(61440&e)},isLink:function(e){return 40960===(61440&e)},isChrdev:function(e){return 8192===(61440&e)},isBlkdev:function(e){return 24576===(61440&e)},isFIFO:function(e){return 4096===(61440&e)},isSocket:function(e){return 49152===(49152&e)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(e){var t=nt.flagModes[e];if("undefined"===typeof t)throw new Error("Unknown file open mode: "+e);return t},flagsToPermissionString:function(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:function(e,t){return nt.ignorePermissions||(-1===t.indexOf("r")||292&e.mode)&&(-1===t.indexOf("w")||146&e.mode)&&(-1===t.indexOf("x")||73&e.mode)?0:Ke.EACCES},mayLookup:function(e){var t=nt.nodePermissions(e,"x");return t||(e.node_ops.lookup?0:Ke.EACCES)},mayCreate:function(e,t){try{nt.lookupNode(e,t);return Ke.EEXIST}catch(i){}return nt.nodePermissions(e,"wx")},mayDelete:function(e,t,i){var a;try{a=nt.lookupNode(e,t)}catch(r){return r.errno}var n=nt.nodePermissions(e,"wx");if(n)return n;if(i){if(!nt.isDir(a.mode))return Ke.ENOTDIR;if(nt.isRoot(a)||nt.getPath(a)===nt.cwd())return Ke.EBUSY}else if(nt.isDir(a.mode))return Ke.EISDIR;return 0},mayOpen:function(e,t){return e?nt.isLink(e.mode)?Ke.ELOOP:nt.isDir(e.mode)&&(0!==(2097155&t)||512&t)?Ke.EISDIR:nt.nodePermissions(e,nt.flagsToPermissionString(t)):Ke.ENOENT},MAX_OPEN_FDS:4096,nextfd:function(e,t){e=e||0,t=t||nt.MAX_OPEN_FDS;for(var i=e;i<=t;i++)if(!nt.streams[i])return i;throw new nt.ErrnoError(Ke.EMFILE)},getStream:function(e){return nt.streams[e]},createStream:function(e,t,i){nt.FSStream||(nt.FSStream=function(){},nt.FSStream.prototype={},Object.defineProperties(nt.FSStream.prototype,{object:{get:function(){return this.node},set:function(e){this.node=e}},isRead:{get:function(){return 1!==(2097155&this.flags)}},isWrite:{get:function(){return 0!==(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}));var a=new nt.FSStream;for(var n in e)a[n]=e[n];e=a;var r=nt.nextfd(t,i);return e.fd=r,nt.streams[r]=e,e},closeStream:function(e){nt.streams[e]=null},chrdev_stream_ops:{open:function(e){var t=nt.getDevice(e.node.rdev);e.stream_ops=t.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek:function(){throw new nt.ErrnoError(Ke.ESPIPE)}},major:function(e){return e>>8},minor:function(e){return 255&e},makedev:function(e,t){return e<<8|t},registerDevice:function(e,t){nt.devices[e]={stream_ops:t}},getDevice:function(e){return nt.devices[e]},getMounts:function(e){var t=[],i=[e];while(i.length){var a=i.pop();t.push(a),i.push.apply(i,a.mounts)}return t},syncfs:function(e,t){"function"===typeof e&&(t=e,e=!1);var i=nt.getMounts(nt.root.mount),a=0;function n(e){if(e)return n.errored?void 0:(n.errored=!0,t(e));++a>=i.length&&t(null)}i.forEach((function(t){if(!t.type.syncfs)return n(null);t.type.syncfs(t,e,n)}))},mount:function(e,t,i){var a,n="/"===i,r=!i;if(n&&nt.root)throw new nt.ErrnoError(Ke.EBUSY);if(!n&&!r){var s=nt.lookupPath(i,{follow_mount:!1});if(i=s.path,a=s.node,nt.isMountpoint(a))throw new nt.ErrnoError(Ke.EBUSY);if(!nt.isDir(a.mode))throw new nt.ErrnoError(Ke.ENOTDIR)}var o={type:e,opts:t,mountpoint:i,mounts:[]},l=e.mount(o);return l.mount=o,o.root=l,n?nt.root=l:a&&(a.mounted=o,a.mount&&a.mount.mounts.push(o)),l},unmount:function(e){var t=nt.lookupPath(e,{follow_mount:!1});if(!nt.isMountpoint(t.node))throw new nt.ErrnoError(Ke.EINVAL);var i=t.node,a=i.mounted,n=nt.getMounts(a);Object.keys(nt.nameTable).forEach((function(e){var t=nt.nameTable[e];while(t){var i=t.name_next;-1!==n.indexOf(t.mount)&&nt.destroyNode(t),t=i}})),i.mounted=null;var r=i.mount.mounts.indexOf(a);g(-1!==r),i.mount.mounts.splice(r,1)},lookup:function(e,t){return e.node_ops.lookup(e,t)},mknod:function(e,t,i){var a=nt.lookupPath(e,{parent:!0}),n=a.node,r=rt.basename(e);if(!r||"."===r||".."===r)throw new nt.ErrnoError(Ke.EINVAL);var s=nt.mayCreate(n,r);if(s)throw new nt.ErrnoError(s);if(!n.node_ops.mknod)throw new nt.ErrnoError(Ke.EPERM);return n.node_ops.mknod(n,r,t,i)},create:function(e,t){return t=void 0!==t?t:438,t&=4095,t|=32768,nt.mknod(e,t,0)},mkdir:function(e,t){return t=void 0!==t?t:511,t&=1023,t|=16384,nt.mknod(e,t,0)},mkdev:function(e,t,i){return"undefined"===typeof i&&(i=t,t=438),t|=8192,nt.mknod(e,t,i)},symlink:function(e,t){if(!rt.resolve(e))throw new nt.ErrnoError(Ke.ENOENT);var i=nt.lookupPath(t,{parent:!0}),a=i.node;if(!a)throw new nt.ErrnoError(Ke.ENOENT);var n=rt.basename(t),r=nt.mayCreate(a,n);if(r)throw new nt.ErrnoError(r);if(!a.node_ops.symlink)throw new nt.ErrnoError(Ke.EPERM);return a.node_ops.symlink(a,n,e)},rename:function(e,t){var i,a,n,r=rt.dirname(e),s=rt.dirname(t),o=rt.basename(e),l=rt.basename(t);try{i=nt.lookupPath(e,{parent:!0}),a=i.node,i=nt.lookupPath(t,{parent:!0}),n=i.node}catch(A){throw new nt.ErrnoError(Ke.EBUSY)}if(!a||!n)throw new nt.ErrnoError(Ke.ENOENT);if(a.mount!==n.mount)throw new nt.ErrnoError(Ke.EXDEV);var c,u=nt.lookupNode(a,o),d=rt.relative(e,s);if("."!==d.charAt(0))throw new nt.ErrnoError(Ke.EINVAL);if(d=rt.relative(t,r),"."!==d.charAt(0))throw new nt.ErrnoError(Ke.ENOTEMPTY);try{c=nt.lookupNode(n,l)}catch(A){}if(u!==c){var p=nt.isDir(u.mode),f=nt.mayDelete(a,o,p);if(f)throw new nt.ErrnoError(f);if(f=c?nt.mayDelete(n,l,p):nt.mayCreate(n,l),f)throw new nt.ErrnoError(f);if(!a.node_ops.rename)throw new nt.ErrnoError(Ke.EPERM);if(nt.isMountpoint(u)||c&&nt.isMountpoint(c))throw new nt.ErrnoError(Ke.EBUSY);if(n!==a&&(f=nt.nodePermissions(a,"w"),f))throw new nt.ErrnoError(f);try{nt.trackingDelegate["willMovePath"]&&nt.trackingDelegate["willMovePath"](e,t)}catch(A){}nt.hashRemoveNode(u);try{a.node_ops.rename(u,n,l)}catch(A){throw A}finally{nt.hashAddNode(u)}try{nt.trackingDelegate["onMovePath"]&&nt.trackingDelegate["onMovePath"](e,t)}catch(A){}}},rmdir:function(e){var t=nt.lookupPath(e,{parent:!0}),i=t.node,a=rt.basename(e),n=nt.lookupNode(i,a),r=nt.mayDelete(i,a,!0);if(r)throw new nt.ErrnoError(r);if(!i.node_ops.rmdir)throw new nt.ErrnoError(Ke.EPERM);if(nt.isMountpoint(n))throw new nt.ErrnoError(Ke.EBUSY);try{nt.trackingDelegate["willDeletePath"]&&nt.trackingDelegate["willDeletePath"](e)}catch(s){}i.node_ops.rmdir(i,a),nt.destroyNode(n);try{nt.trackingDelegate["onDeletePath"]&&nt.trackingDelegate["onDeletePath"](e)}catch(s){}},readdir:function(e){var t=nt.lookupPath(e,{follow:!0}),i=t.node;if(!i.node_ops.readdir)throw new nt.ErrnoError(Ke.ENOTDIR);return i.node_ops.readdir(i)},unlink:function(e){var t=nt.lookupPath(e,{parent:!0}),i=t.node,a=rt.basename(e),n=nt.lookupNode(i,a),r=nt.mayDelete(i,a,!1);if(r)throw r===Ke.EISDIR&&(r=Ke.EPERM),new nt.ErrnoError(r);if(!i.node_ops.unlink)throw new nt.ErrnoError(Ke.EPERM);if(nt.isMountpoint(n))throw new nt.ErrnoError(Ke.EBUSY);try{nt.trackingDelegate["willDeletePath"]&&nt.trackingDelegate["willDeletePath"](e)}catch(s){}i.node_ops.unlink(i,a),nt.destroyNode(n);try{nt.trackingDelegate["onDeletePath"]&&nt.trackingDelegate["onDeletePath"](e)}catch(s){}},readlink:function(e){var t=nt.lookupPath(e),i=t.node;if(!i)throw new nt.ErrnoError(Ke.ENOENT);if(!i.node_ops.readlink)throw new nt.ErrnoError(Ke.EINVAL);return rt.resolve(nt.getPath(i.parent),i.node_ops.readlink(i))},stat:function(e,t){var i=nt.lookupPath(e,{follow:!t}),a=i.node;if(!a)throw new nt.ErrnoError(Ke.ENOENT);if(!a.node_ops.getattr)throw new nt.ErrnoError(Ke.EPERM);return a.node_ops.getattr(a)},lstat:function(e){return nt.stat(e,!0)},chmod:function(e,t,i){var a;if("string"===typeof e){var n=nt.lookupPath(e,{follow:!i});a=n.node}else a=e;if(!a.node_ops.setattr)throw new nt.ErrnoError(Ke.EPERM);a.node_ops.setattr(a,{mode:4095&t|-4096&a.mode,timestamp:Date.now()})},lchmod:function(e,t){nt.chmod(e,t,!0)},fchmod:function(e,t){var i=nt.getStream(e);if(!i)throw new nt.ErrnoError(Ke.EBADF);nt.chmod(i.node,t)},chown:function(e,t,i,a){var n;if("string"===typeof e){var r=nt.lookupPath(e,{follow:!a});n=r.node}else n=e;if(!n.node_ops.setattr)throw new nt.ErrnoError(Ke.EPERM);n.node_ops.setattr(n,{timestamp:Date.now()})},lchown:function(e,t,i){nt.chown(e,t,i,!0)},fchown:function(e,t,i){var a=nt.getStream(e);if(!a)throw new nt.ErrnoError(Ke.EBADF);nt.chown(a.node,t,i)},truncate:function(e,t){if(t<0)throw new nt.ErrnoError(Ke.EINVAL);var i;if("string"===typeof e){var a=nt.lookupPath(e,{follow:!0});i=a.node}else i=e;if(!i.node_ops.setattr)throw new nt.ErrnoError(Ke.EPERM);if(nt.isDir(i.mode))throw new nt.ErrnoError(Ke.EISDIR);if(!nt.isFile(i.mode))throw new nt.ErrnoError(Ke.EINVAL);var n=nt.nodePermissions(i,"w");if(n)throw new nt.ErrnoError(n);i.node_ops.setattr(i,{size:t,timestamp:Date.now()})},ftruncate:function(e,t){var i=nt.getStream(e);if(!i)throw new nt.ErrnoError(Ke.EBADF);if(0===(2097155&i.flags))throw new nt.ErrnoError(Ke.EINVAL);nt.truncate(i.node,t)},utime:function(e,t,i){var a=nt.lookupPath(e,{follow:!0}),n=a.node;n.node_ops.setattr(n,{timestamp:Math.max(t,i)})},open:function(e,i,a,n,r){if(""===e)throw new nt.ErrnoError(Ke.ENOENT);var s;if(i="string"===typeof i?nt.modeStringToFlags(i):i,a="undefined"===typeof a?438:a,a=64&i?4095&a|32768:0,"object"===typeof e)s=e;else{e=rt.normalize(e);try{var o=nt.lookupPath(e,{follow:!(131072&i)});s=o.node}catch(p){}}var l=!1;if(64&i)if(s){if(128&i)throw new nt.ErrnoError(Ke.EEXIST)}else s=nt.mknod(e,a,0),l=!0;if(!s)throw new nt.ErrnoError(Ke.ENOENT);if(nt.isChrdev(s.mode)&&(i&=-513),65536&i&&!nt.isDir(s.mode))throw new nt.ErrnoError(Ke.ENOTDIR);if(!l){var c=nt.mayOpen(s,i);if(c)throw new nt.ErrnoError(c)}512&i&&nt.truncate(s,0),i&=-641;var u=nt.createStream({node:s,path:nt.getPath(s),flags:i,seekable:!0,position:0,stream_ops:s.stream_ops,ungotten:[],error:!1},n,r);u.stream_ops.open&&u.stream_ops.open(u),!t["logReadFiles"]||1&i||(nt.readFiles||(nt.readFiles={}),e in nt.readFiles||(nt.readFiles[e]=1,t["printErr"]("read file: "+e)));try{if(nt.trackingDelegate["onOpenFile"]){var d=0;1!==(2097155&i)&&(d|=nt.tracking.openFlags.READ),0!==(2097155&i)&&(d|=nt.tracking.openFlags.WRITE),nt.trackingDelegate["onOpenFile"](e,d)}}catch(p){}return u},close:function(e){e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(t){throw t}finally{nt.closeStream(e.fd)}},llseek:function(e,t,i){if(!e.seekable||!e.stream_ops.llseek)throw new nt.ErrnoError(Ke.ESPIPE);return e.position=e.stream_ops.llseek(e,t,i),e.ungotten=[],e.position},read:function(e,t,i,a,n){if(a<0||n<0)throw new nt.ErrnoError(Ke.EINVAL);if(1===(2097155&e.flags))throw new nt.ErrnoError(Ke.EBADF);if(nt.isDir(e.node.mode))throw new nt.ErrnoError(Ke.EISDIR);if(!e.stream_ops.read)throw new nt.ErrnoError(Ke.EINVAL);var r=!0;if("undefined"===typeof n)n=e.position,r=!1;else if(!e.seekable)throw new nt.ErrnoError(Ke.ESPIPE);var s=e.stream_ops.read(e,t,i,a,n);return r||(e.position+=s),s},write:function(e,t,i,a,n,r){if(a<0||n<0)throw new nt.ErrnoError(Ke.EINVAL);if(0===(2097155&e.flags))throw new nt.ErrnoError(Ke.EBADF);if(nt.isDir(e.node.mode))throw new nt.ErrnoError(Ke.EISDIR);if(!e.stream_ops.write)throw new nt.ErrnoError(Ke.EINVAL);1024&e.flags&&nt.llseek(e,0,2);var s=!0;if("undefined"===typeof n)n=e.position,s=!1;else if(!e.seekable)throw new nt.ErrnoError(Ke.ESPIPE);var o=e.stream_ops.write(e,t,i,a,n,r);s||(e.position+=o);try{e.path&&nt.trackingDelegate["onWriteToFile"]&&nt.trackingDelegate["onWriteToFile"](e.path)}catch(l){}return o},allocate:function(e,t,i){if(t<0||i<=0)throw new nt.ErrnoError(Ke.EINVAL);if(0===(2097155&e.flags))throw new nt.ErrnoError(Ke.EBADF);if(!nt.isFile(e.node.mode)&&!nt.isDir(node.mode))throw new nt.ErrnoError(Ke.ENODEV);if(!e.stream_ops.allocate)throw new nt.ErrnoError(Ke.EOPNOTSUPP);e.stream_ops.allocate(e,t,i)},mmap:function(e,t,i,a,n,r,s){if(1===(2097155&e.flags))throw new nt.ErrnoError(Ke.EACCES);if(!e.stream_ops.mmap)throw new nt.ErrnoError(Ke.ENODEV);return e.stream_ops.mmap(e,t,i,a,n,r,s)},msync:function(e,t,i,a,n){return e&&e.stream_ops.msync?e.stream_ops.msync(e,t,i,a,n):0},munmap:function(e){return 0},ioctl:function(e,t,i){if(!e.stream_ops.ioctl)throw new nt.ErrnoError(Ke.ENOTTY);return e.stream_ops.ioctl(e,t,i)},readFile:function(e,t){if(t=t||{},t.flags=t.flags||"r",t.encoding=t.encoding||"binary","utf8"!==t.encoding&&"binary"!==t.encoding)throw new Error('Invalid encoding type "'+t.encoding+'"');var i,a=nt.open(e,t.flags),n=nt.stat(e),r=n.size,s=new Uint8Array(r);return nt.read(a,s,0,r,0),"utf8"===t.encoding?i=B(s,0):"binary"===t.encoding&&(i=s),nt.close(a),i},writeFile:function(e,t,i){if(i=i||{},i.flags=i.flags||"w",i.encoding=i.encoding||"utf8","utf8"!==i.encoding&&"binary"!==i.encoding)throw new Error('Invalid encoding type "'+i.encoding+'"');var a=nt.open(e,i.flags,i.mode);if("utf8"===i.encoding){var n=new Uint8Array(N(t)+1),r=D(t,n,0,n.length);nt.write(a,n,0,r,0,i.canOwn)}else"binary"===i.encoding&&nt.write(a,t,0,t.length,0,i.canOwn);nt.close(a)},cwd:function(){return nt.currentPath},chdir:function(e){var t=nt.lookupPath(e,{follow:!0});if(!nt.isDir(t.node.mode))throw new nt.ErrnoError(Ke.ENOTDIR);var i=nt.nodePermissions(t.node,"x");if(i)throw new nt.ErrnoError(i);nt.currentPath=t.path},createDefaultDirectories:function(){nt.mkdir("/tmp"),nt.mkdir("/home"),nt.mkdir("/home/web_user")},createDefaultDevices:function(){var e;if(nt.mkdir("/dev"),nt.registerDevice(nt.makedev(1,3),{read:function(){return 0},write:function(e,t,i,a,n){return a}}),nt.mkdev("/dev/null",nt.makedev(1,3)),et.register(nt.makedev(5,0),et.default_tty_ops),et.register(nt.makedev(6,0),et.default_tty1_ops),nt.mkdev("/dev/tty",nt.makedev(5,0)),nt.mkdev("/dev/tty1",nt.makedev(6,0)),"undefined"!==typeof crypto){var t=new Uint8Array(1);e=function(){return crypto.getRandomValues(t),t[0]}}else e=function(){return 256*Math.random()|0};nt.createDevice("/dev","random",e),nt.createDevice("/dev","urandom",e),nt.mkdir("/dev/shm"),nt.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){nt.mkdir("/proc"),nt.mkdir("/proc/self"),nt.mkdir("/proc/self/fd"),nt.mount({mount:function(){var e=nt.createNode("/proc/self","fd",16895,73);return e.node_ops={lookup:function(e,t){var i=+t,a=nt.getStream(i);if(!a)throw new nt.ErrnoError(Ke.EBADF);var n={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return a.path}}};return n.parent=n,n}},e}},{},"/proc/self/fd")},createStandardStreams:function(){t["stdin"]?nt.createDevice("/dev","stdin",t["stdin"]):nt.symlink("/dev/tty","/dev/stdin"),t["stdout"]?nt.createDevice("/dev","stdout",null,t["stdout"]):nt.symlink("/dev/tty","/dev/stdout"),t["stderr"]?nt.createDevice("/dev","stderr",null,t["stderr"]):nt.symlink("/dev/tty1","/dev/stderr");var e=nt.open("/dev/stdin","r");g(0===e.fd,"invalid handle for stdin ("+e.fd+")");var i=nt.open("/dev/stdout","w");g(1===i.fd,"invalid handle for stdout ("+i.fd+")");var a=nt.open("/dev/stderr","w");g(2===a.fd,"invalid handle for stderr ("+a.fd+")")},ensureErrnoError:function(){nt.ErrnoError||(nt.ErrnoError=function(e,t){this.node=t,this.setErrno=function(e){for(var t in this.errno=e,Ke)if(Ke[t]===e){this.code=t;break}},this.setErrno(e),this.message=Ze[e]},nt.ErrnoError.prototype=new Error,nt.ErrnoError.prototype.constructor=nt.ErrnoError,[Ke.ENOENT].forEach((function(e){nt.genericErrors[e]=new nt.ErrnoError(e),nt.genericErrors[e].stack="<generic error, no stack>"})))},staticInit:function(){nt.ensureErrnoError(),nt.nameTable=new Array(4096),nt.mount(tt,{},"/"),nt.createDefaultDirectories(),nt.createDefaultDevices(),nt.createSpecialDirectories(),nt.filesystems={MEMFS:tt,IDBFS:it,NODEFS:{},WORKERFS:at}},init:function(e,i,a){g(!nt.init.initialized,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)"),nt.init.initialized=!0,nt.ensureErrnoError(),t["stdin"]=e||t["stdin"],t["stdout"]=i||t["stdout"],t["stderr"]=a||t["stderr"],nt.createStandardStreams()},quit:function(){nt.init.initialized=!1;var e=t["_fflush"];e&&e(0);for(var i=0;i<nt.streams.length;i++){var a=nt.streams[i];a&&nt.close(a)}},getMode:function(e,t){var i=0;return e&&(i|=365),t&&(i|=146),i},joinPath:function(e,t){var i=rt.join.apply(null,e);return t&&"/"==i[0]&&(i=i.substr(1)),i},absolutePath:function(e,t){return rt.resolve(t,e)},standardizePath:function(e){return rt.normalize(e)},findObject:function(e,t){var i=nt.analyzePath(e,t);return i.exists?i.object:(Ye(i.error),null)},analyzePath:function(e,t){try{var i=nt.lookupPath(e,{follow:!t});e=i.path}catch(n){}var a={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{i=nt.lookupPath(e,{parent:!0});a.parentExists=!0,a.parentPath=i.path,a.parentObject=i.node,a.name=rt.basename(e),i=nt.lookupPath(e,{follow:!t}),a.exists=!0,a.path=i.path,a.object=i.node,a.name=i.node.name,a.isRoot="/"===i.path}catch(n){a.error=n.errno}return a},createFolder:function(e,t,i,a){var n=rt.join2("string"===typeof e?e:nt.getPath(e),t),r=nt.getMode(i,a);return nt.mkdir(n,r)},createPath:function(e,t,i,a){e="string"===typeof e?e:nt.getPath(e);var n=t.split("/").reverse();while(n.length){var r=n.pop();if(r){var s=rt.join2(e,r);try{nt.mkdir(s)}catch(o){}e=s}}return s},createFile:function(e,t,i,a,n){var r=rt.join2("string"===typeof e?e:nt.getPath(e),t),s=nt.getMode(a,n);return nt.create(r,s)},createDataFile:function(e,t,i,a,n,r){var s=t?rt.join2("string"===typeof e?e:nt.getPath(e),t):e,o=nt.getMode(a,n),l=nt.create(s,o);if(i){if("string"===typeof i){for(var c=new Array(i.length),u=0,d=i.length;u<d;++u)c[u]=i.charCodeAt(u);i=c}nt.chmod(l,146|o);var p=nt.open(l,"w");nt.write(p,i,0,i.length,0,r),nt.close(p),nt.chmod(l,o)}return l},createDevice:function(e,t,i,a){var n=rt.join2("string"===typeof e?e:nt.getPath(e),t),r=nt.getMode(!!i,!!a);nt.createDevice.major||(nt.createDevice.major=64);var s=nt.makedev(nt.createDevice.major++,0);return nt.registerDevice(s,{open:function(e){e.seekable=!1},close:function(e){a&&a.buffer&&a.buffer.length&&a(10)},read:function(e,t,a,n,r){for(var s=0,o=0;o<n;o++){var l;try{l=i()}catch(c){throw new nt.ErrnoError(Ke.EIO)}if(void 0===l&&0===s)throw new nt.ErrnoError(Ke.EAGAIN);if(null===l||void 0===l)break;s++,t[a+o]=l}return s&&(e.node.timestamp=Date.now()),s},write:function(e,t,i,n,r){for(var s=0;s<n;s++)try{a(t[i+s])}catch(o){throw new nt.ErrnoError(Ke.EIO)}return n&&(e.node.timestamp=Date.now()),s}}),nt.mkdev(n,r,s)},createLink:function(e,t,i,a,n){var r=rt.join2("string"===typeof e?e:nt.getPath(e),t);return nt.symlink(i,r)},forceLoadFile:function(e){if(e.isDevice||e.isFolder||e.link||e.contents)return!0;var i=!0;if("undefined"!==typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!t["read"])throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=De(t["read"](e.url),!0),e.usedBytes=e.contents.length}catch(a){i=!1}return i||Ye(Ke.EIO),i},createLazyFile:function(e,t,i,a,n){function s(){this.lengthKnown=!1,this.chunks=[]}if(s.prototype.get=function(e){if(!(e>this.length-1||e<0)){var t=e%this.chunkSize,i=e/this.chunkSize|0;return this.getter(i)[t]}},s.prototype.setDataGetter=function(e){this.getter=e},s.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",i,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+i+". Status: "+e.status);var t,a=Number(e.getResponseHeader("Content-length")),n=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t,r=1048576;n||(r=a);var s=function(e,t){if(e>t)throw new Error("invalid range ("+e+", "+t+") or no bytes requested!");if(t>a-1)throw new Error("only "+a+" bytes available! programmer error!");var n=new XMLHttpRequest;if(n.open("GET",i,!1),a!==r&&n.setRequestHeader("Range","bytes="+e+"-"+t),"undefined"!=typeof Uint8Array&&(n.responseType="arraybuffer"),n.overrideMimeType&&n.overrideMimeType("text/plain; charset=x-user-defined"),n.send(null),!(n.status>=200&&n.status<300||304===n.status))throw new Error("Couldn't load "+i+". Status: "+n.status);return void 0!==n.response?new Uint8Array(n.response||[]):De(n.responseText||"",!0)},o=this;o.setDataGetter((function(e){var t=e*r,i=(e+1)*r-1;if(i=Math.min(i,a-1),"undefined"===typeof o.chunks[e]&&(o.chunks[e]=s(t,i)),"undefined"===typeof o.chunks[e])throw new Error("doXHR failed!");return o.chunks[e]})),this._length=a,this._chunkSize=r,this.lengthKnown=!0},"undefined"!==typeof XMLHttpRequest){if(!r)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var o=new s;Object.defineProperty(o,"length",{get:function(){return this.lengthKnown||this.cacheLength(),this._length}}),Object.defineProperty(o,"chunkSize",{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}});var l={isDevice:!1,contents:o}}else l={isDevice:!1,url:i};var c=nt.createFile(e,t,l,a,n);l.contents?c.contents=l.contents:l.url&&(c.contents=null,c.url=l.url),Object.defineProperty(c,"usedBytes",{get:function(){return this.contents.length}});var u={},d=Object.keys(c.stream_ops);return d.forEach((function(e){var t=c.stream_ops[e];u[e]=function(){if(!nt.forceLoadFile(c))throw new nt.ErrnoError(Ke.EIO);return t.apply(null,arguments)}})),u.read=function(e,t,i,a,n){if(!nt.forceLoadFile(c))throw new nt.ErrnoError(Ke.EIO);var r=e.node.contents;if(n>=r.length)return 0;var s=Math.min(r.length-n,a);if(g(s>=0),r.slice)for(var o=0;o<s;o++)t[i+o]=r[n+o];else for(o=0;o<s;o++)t[i+o]=r.get(n+o);return s},c.stream_ops=u,c},createPreloadedFile:function(e,i,a,n,r,s,o,l,c,u){lt.init();var d=i?rt.resolve(rt.join2(e,i)):e;function p(a){function p(t){u&&u(),l||nt.createDataFile(e,i,t,n,r,c),s&&s(),Ge()}var f=!1;t["preloadPlugins"].forEach((function(e){f||e["canHandle"](d)&&(e["handle"](a,d,p,(function(){o&&o(),Ge()})),f=!0)})),f||p(a)}qe(),"string"==typeof a?lt.asyncLoad(a,(function(e){p(e)}),o):p(a)},indexedDB:function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},DB_NAME:function(){return"EM_FS_"+window.location.pathname},DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:function(e,t,i){t=t||function(){},i=i||function(){};var a=nt.indexedDB();try{var n=a.open(nt.DB_NAME(),nt.DB_VERSION)}catch(r){return i(r)}n.onupgradeneeded=function(){var e=n.result;e.createObjectStore(nt.DB_STORE_NAME)},n.onsuccess=function(){var a=n.result,r=a.transaction([nt.DB_STORE_NAME],"readwrite"),s=r.objectStore(nt.DB_STORE_NAME),o=0,l=0,c=e.length;function u(){0==l?t():i()}e.forEach((function(e){var t=s.put(nt.analyzePath(e).object.contents,e);t.onsuccess=function(){o++,o+l==c&&u()},t.onerror=function(){l++,o+l==c&&u()}})),r.onerror=i},n.onerror=i},loadFilesFromDB:function(e,t,i){t=t||function(){},i=i||function(){};var a=nt.indexedDB();try{var n=a.open(nt.DB_NAME(),nt.DB_VERSION)}catch(r){return i(r)}n.onupgradeneeded=i,n.onsuccess=function(){var a=n.result;try{var s=a.transaction([nt.DB_STORE_NAME],"readonly")}catch(r){return void i(r)}var o=s.objectStore(nt.DB_STORE_NAME),l=0,c=0,u=e.length;function d(){0==c?t():i()}e.forEach((function(e){var t=o.get(e);t.onsuccess=function(){nt.analyzePath(e).exists&&nt.unlink(e),nt.createDataFile(rt.dirname(e),rt.basename(e),t.result,!0,!0,!0),l++,l+c==u&&d()},t.onerror=function(){c++,l+c==u&&d()}})),s.onerror=i},n.onerror=i}},rt={splitPath:function(e){var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return t.exec(e).slice(1)},normalizeArray:function(e,t){for(var i=0,a=e.length-1;a>=0;a--){var n=e[a];"."===n?e.splice(a,1):".."===n?(e.splice(a,1),i++):i&&(e.splice(a,1),i--)}if(t)for(;i--;i)e.unshift("..");return e},normalize:function(e){var t="/"===e.charAt(0),i="/"===e.substr(-1);return e=rt.normalizeArray(e.split("/").filter((function(e){return!!e})),!t).join("/"),e||t||(e="."),e&&i&&(e+="/"),(t?"/":"")+e},dirname:function(e){var t=rt.splitPath(e),i=t[0],a=t[1];return i||a?(a&&(a=a.substr(0,a.length-1)),i+a):"."},basename:function(e){if("/"===e)return"/";var t=e.lastIndexOf("/");return-1===t?e:e.substr(t+1)},extname:function(e){return rt.splitPath(e)[3]},join:function(){var e=Array.prototype.slice.call(arguments,0);return rt.normalize(e.join("/"))},join2:function(e,t){return rt.normalize(e+"/"+t)},resolve:function(){for(var e="",t=!1,i=arguments.length-1;i>=-1&&!t;i--){var a=i>=0?arguments[i]:nt.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");if(!a)return"";e=a+"/"+e,t="/"===a.charAt(0)}return e=rt.normalizeArray(e.split("/").filter((function(e){return!!e})),!t).join("/"),(t?"/":"")+e||"."},relative:function(e,t){function i(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var i=e.length-1;i>=0;i--)if(""!==e[i])break;return t>i?[]:e.slice(t,i-t+1)}e=rt.resolve(e).substr(1),t=rt.resolve(t).substr(1);for(var a=i(e.split("/")),n=i(t.split("/")),r=Math.min(a.length,n.length),s=r,o=0;o<r;o++)if(a[o]!==n[o]){s=o;break}var l=[];for(o=s;o<a.length;o++)l.push("..");return l=l.concat(n.slice(s)),l.join("/")}};function st(e,t){if(lt.mainLoop.timingMode=e,lt.mainLoop.timingValue=t,!lt.mainLoop.func)return 1;if(0==e)lt.mainLoop.scheduler=function(){setTimeout(lt.mainLoop.runner,t)},lt.mainLoop.method="timeout";else if(1==e)lt.mainLoop.scheduler=function(){lt.requestAnimationFrame(lt.mainLoop.runner)},lt.mainLoop.method="rAF";else if(2==e){if(!window["setImmediate"]){var i=[],a="__emcc";function n(e){e.source===window&&e.data===a&&(e.stopPropagation(),i.shift()())}window.addEventListener("message",n,!0),window["setImmediate"]=function(e){i.push(e),window.postMessage(a,"*")}}lt.mainLoop.scheduler=function(){window["setImmediate"](lt.mainLoop.runner)},lt.mainLoop.method="immediate"}return 0}function ot(e,i,a,n,r){t["noExitRuntime"]=!0,g(!lt.mainLoop.func,"emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters."),lt.mainLoop.func=e,lt.mainLoop.arg=n;var s=lt.mainLoop.currentlyRunningMainloop;if(lt.mainLoop.runner=function(){if(!m){if(lt.mainLoop.queue.length>0){Date.now();var i=lt.mainLoop.queue.shift();if(i.func(i.arg),lt.mainLoop.remainingBlockers){var a=lt.mainLoop.remainingBlockers,r=a%1==0?a-1:Math.floor(a);i.counted?lt.mainLoop.remainingBlockers=r:(r+=.5,lt.mainLoop.remainingBlockers=(8*a+r)/9)}return lt.mainLoop.updateStatus(),void setTimeout(lt.mainLoop.runner,0)}s<lt.mainLoop.currentlyRunningMainloop||(lt.mainLoop.currentFrameNumber=lt.mainLoop.currentFrameNumber+1|0,1==lt.mainLoop.timingMode&<.mainLoop.timingValue>1&<.mainLoop.currentFrameNumber%lt.mainLoop.timingValue!=0?lt.mainLoop.scheduler():("timeout"===lt.mainLoop.method&&t.ctx&&(t.printErr("Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!"),lt.mainLoop.method=""),lt.mainLoop.runIter((function(){"undefined"!==typeof n?u.dynCall("vi",e,[n]):u.dynCall("v",e)})),s<lt.mainLoop.currentlyRunningMainloop||("object"===typeof SDL&&SDL.audio&&SDL.audio.queueNewAudioData&&SDL.audio.queueNewAudioData(),lt.mainLoop.scheduler())))}},r||(i&&i>0?st(0,1e3/i):st(1,1),lt.mainLoop.scheduler()),a)throw"SimulateInfiniteLoop"}var lt={mainLoop:{scheduler:null,method:"",currentlyRunningMainloop:0,func:null,arg:0,timingMode:0,timingValue:0,currentFrameNumber:0,queue:[],pause:function(){lt.mainLoop.scheduler=null,lt.mainLoop.currentlyRunningMainloop++},resume:function(){lt.mainLoop.currentlyRunningMainloop++;var e=lt.mainLoop.timingMode,t=lt.mainLoop.timingValue,i=lt.mainLoop.func;lt.mainLoop.func=null,ot(i,0,!1,lt.mainLoop.arg,!0),st(e,t),lt.mainLoop.scheduler()},updateStatus:function(){if(t["setStatus"]){var e=t["statusMessage"]||"Please wait...",i=lt.mainLoop.remainingBlockers,a=lt.mainLoop.expectedBlockers;i?i<a?t["setStatus"](e+" ("+(a-i)+"/"+a+")"):t["setStatus"](e):t["setStatus"]("")}},runIter:function(e){if(!m){if(t["preMainLoop"]){var i=t["preMainLoop"]();if(!1===i)return}try{e()}catch(a){if(a instanceof vt)return;throw a&&"object"===typeof a&&a.stack&&t.printErr("exception thrown: "+[a,a.stack]),a}t["postMainLoop"]&&t["postMainLoop"]()}}},isFullScreen:!1,pointerLock:!1,moduleContextCreatedCallbacks:[],workers:[],init:function(){if(t["preloadPlugins"]||(t["preloadPlugins"]=[]),!lt.initted){lt.initted=!0;try{new Blob,lt.hasBlobConstructor=!0}catch(r){lt.hasBlobConstructor=!1}lt.BlobBuilder="undefined"!=typeof MozBlobBuilder?MozBlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:lt.hasBlobConstructor?null:void 0,lt.URLObject="undefined"!=typeof window?window.URL?window.URL:window.webkitURL:void 0,t.noImageDecoding||"undefined"!==typeof lt.URLObject||(t.noImageDecoding=!0);var e={canHandle:function(e){return!t.noImageDecoding&&/\.(jpg|jpeg|png|bmp)$/i.test(e)},handle:function(e,i,a,n){var s=null;if(lt.hasBlobConstructor)try{s=new Blob([e],{type:lt.getMimetype(i)}),s.size!==e.length&&(s=new Blob([new Uint8Array(e).buffer],{type:lt.getMimetype(i)}))}catch(r){u.warnOnce("Blob constructor present but fails: "+r+"; falling back to blob builder")}if(!s){var o=new lt.BlobBuilder;o.append(new Uint8Array(e).buffer),s=o.getBlob()}var l=lt.URLObject.createObjectURL(s),c=new Image;c.onload=function(){g(c.complete,"Image "+i+" could not be decoded");var n=document.createElement("canvas");n.width=c.width,n.height=c.height;var r=n.getContext("2d");r.drawImage(c,0,0),t["preloadedImages"][i]=n,lt.URLObject.revokeObjectURL(l),a&&a(e)},c.onerror=function(e){n&&n()},c.src=l}};t["preloadPlugins"].push(e);var i={canHandle:function(e){return!t.noAudioDecoding&&e.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},handle:function(e,i,a,n){var s=!1;function o(n){s||(s=!0,t["preloadedAudios"][i]=n,a&&a(e))}function l(){s||(s=!0,t["preloadedAudios"][i]=new Audio,n&&n())}if(!lt.hasBlobConstructor)return l();try{var c=new Blob([e],{type:lt.getMimetype(i)})}catch(r){return l()}var u=lt.URLObject.createObjectURL(c),d=new Audio;d.addEventListener("canplaythrough",(function(){o(d)}),!1),d.onerror=function(t){function a(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i="=",a="",n=0,r=0,s=0;s<e.length;s++){n=n<<8|e[s],r+=8;while(r>=6){var o=n>>r-6&63;r-=6,a+=t[o]}}return 2==r?(a+=t[(3&n)<<4],a+=i+i):4==r&&(a+=t[(15&n)<<2],a+=i),a}s||(d.src="data:audio/x-"+i.substr(-3)+";base64,"+a(e),o(d))},d.src=u,lt.safeSetTimeout((function(){o(d)}),1e4)}};t["preloadPlugins"].push(i);var a=t["canvas"];a&&(a.requestPointerLock=a["requestPointerLock"]||a["mozRequestPointerLock"]||a["webkitRequestPointerLock"]||a["msRequestPointerLock"]||function(){},a.exitPointerLock=document["exitPointerLock"]||document["mozExitPointerLock"]||document["webkitExitPointerLock"]||document["msExitPointerLock"]||function(){},a.exitPointerLock=a.exitPointerLock.bind(document),document.addEventListener("pointerlockchange",n,!1),document.addEventListener("mozpointerlockchange",n,!1),document.addEventListener("webkitpointerlockchange",n,!1),document.addEventListener("mspointerlockchange",n,!1),t["elementPointerLock"]&&a.addEventListener("click",(function(e){!lt.pointerLock&&a.requestPointerLock&&(a.requestPointerLock(),e.preventDefault())}),!1))}function n(){lt.pointerLock=document["pointerLockElement"]===a||document["mozPointerLockElement"]===a||document["webkitPointerLockElement"]===a||document["msPointerLockElement"]===a}},createContext:function(e,i,a,n){if(i&&t.ctx&&e==t.canvas)return t.ctx;var r,s;if(i){var o={antialias:!1,alpha:!1};if(n)for(var l in n)o[l]=n[l];s=GL.createContext(e,o),s&&(r=GL.getContext(s).GLctx),e.style.backgroundColor="black"}else r=e.getContext("2d");return r?(a&&(i||g("undefined"===typeof GLctx,"cannot set in module if GLctx is used, but we are a non-GL context that would replace it"),t.ctx=r,i&&GL.makeContextCurrent(s),t.useWebGL=i,lt.moduleContextCreatedCallbacks.forEach((function(e){e()})),lt.init()),r):null},destroyContext:function(e,t,i){},fullScreenHandlersInstalled:!1,lockPointer:void 0,resizeCanvas:void 0,requestFullScreen:function(e,i,a){lt.lockPointer=e,lt.resizeCanvas=i,lt.vrDevice=a,"undefined"===typeof lt.lockPointer&&(lt.lockPointer=!0),"undefined"===typeof lt.resizeCanvas&&(lt.resizeCanvas=!1),"undefined"===typeof lt.vrDevice&&(lt.vrDevice=null);var n=t["canvas"];function r(){lt.isFullScreen=!1;var e=n.parentNode;(document["webkitFullScreenElement"]||document["webkitFullscreenElement"]||document["mozFullScreenElement"]||document["mozFullscreenElement"]||document["fullScreenElement"]||document["fullscreenElement"]||document["msFullScreenElement"]||document["msFullscreenElement"]||document["webkitCurrentFullScreenElement"])===e?(n.cancelFullScreen=document["cancelFullScreen"]||document["mozCancelFullScreen"]||document["webkitCancelFullScreen"]||document["msExitFullscreen"]||document["exitFullscreen"]||function(){},n.cancelFullScreen=n.cancelFullScreen.bind(document),lt.lockPointer&&n.requestPointerLock(),lt.isFullScreen=!0,lt.resizeCanvas&<.setFullScreenCanvasSize()):(e.parentNode.insertBefore(n,e),e.parentNode.removeChild(e),lt.resizeCanvas&<.setWindowedCanvasSize()),t["onFullScreen"]&&t["onFullScreen"](lt.isFullScreen),lt.updateCanvasDimensions(n)}lt.fullScreenHandlersInstalled||(lt.fullScreenHandlersInstalled=!0,document.addEventListener("fullscreenchange",r,!1),document.addEventListener("mozfullscreenchange",r,!1),document.addEventListener("webkitfullscreenchange",r,!1),document.addEventListener("MSFullscreenChange",r,!1));var s=document.createElement("div");n.parentNode.insertBefore(s,n),s.appendChild(n),s.requestFullScreen=s["requestFullScreen"]||s["mozRequestFullScreen"]||s["msRequestFullscreen"]||(s["webkitRequestFullScreen"]?function(){s["webkitRequestFullScreen"](Element["ALLOW_KEYBOARD_INPUT"])}:null),a?s.requestFullScreen({vrDisplay:a}):s.requestFullScreen()},nextRAF:0,fakeRequestAnimationFrame:function(e){var t=Date.now();if(0===lt.nextRAF)lt.nextRAF=t+1e3/60;else while(t+2>=lt.nextRAF)lt.nextRAF+=1e3/60;var i=Math.max(lt.nextRAF-t,0);setTimeout(e,i)},requestAnimationFrame:function(e){"undefined"===typeof window?lt.fakeRequestAnimationFrame(e):(window.requestAnimationFrame||(window.requestAnimationFrame=window["requestAnimationFrame"]||window["mozRequestAnimationFrame"]||window["webkitRequestAnimationFrame"]||window["msRequestAnimationFrame"]||window["oRequestAnimationFrame"]||lt.fakeRequestAnimationFrame),window.requestAnimationFrame(e))},safeCallback:function(e){return function(){if(!m)return e.apply(null,arguments)}},allowAsyncCallbacks:!0,queuedAsyncCallbacks:[],pauseAsyncCallbacks:function(){lt.allowAsyncCallbacks=!1},resumeAsyncCallbacks:function(){if(lt.allowAsyncCallbacks=!0,lt.queuedAsyncCallbacks.length>0){var e=lt.queuedAsyncCallbacks;lt.queuedAsyncCallbacks=[],e.forEach((function(e){e()}))}},safeRequestAnimationFrame:function(e){return lt.requestAnimationFrame((function(){m||(lt.allowAsyncCallbacks?e():lt.queuedAsyncCallbacks.push(e))}))},safeSetTimeout:function(e,i){return t["noExitRuntime"]=!0,setTimeout((function(){m||(lt.allowAsyncCallbacks?e():lt.queuedAsyncCallbacks.push(e))}),i)},safeSetInterval:function(e,i){return t["noExitRuntime"]=!0,setInterval((function(){m||lt.allowAsyncCallbacks&&e()}),i)},getMimetype:function(e){return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[e.substr(e.lastIndexOf(".")+1)]},getUserMedia:function(e){window.getUserMedia||(window.getUserMedia=navigator["getUserMedia"]||navigator["mozGetUserMedia"]),window.getUserMedia(e)},getMovementX:function(e){return e["movementX"]||e["mozMovementX"]||e["webkitMovementX"]||0},getMovementY:function(e){return e["movementY"]||e["mozMovementY"]||e["webkitMovementY"]||0},getMouseWheelDelta:function(e){var t=0;switch(e.type){case"DOMMouseScroll":t=e.detail;break;case"mousewheel":t=e.wheelDelta;break;case"wheel":t=e["deltaY"];break;default:throw"unrecognized mouse wheel event: "+e.type}return t},mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,touches:{},lastTouches:{},calculateMouseEvent:function(e){if(lt.pointerLock)"mousemove"!=e.type&&"mozMovementX"in e?lt.mouseMovementX=lt.mouseMovementY=0:(lt.mouseMovementX=lt.getMovementX(e),lt.mouseMovementY=lt.getMovementY(e)),"undefined"!=typeof SDL?(lt.mouseX=SDL.mouseX+lt.mouseMovementX,lt.mouseY=SDL.mouseY+lt.mouseMovementY):(lt.mouseX+=lt.mouseMovementX,lt.mouseY+=lt.mouseMovementY);else{var i=t["canvas"].getBoundingClientRect(),a=t["canvas"].width,n=t["canvas"].height,r="undefined"!==typeof window.scrollX?window.scrollX:window.pageXOffset,s="undefined"!==typeof window.scrollY?window.scrollY:window.pageYOffset;if("touchstart"===e.type||"touchend"===e.type||"touchmove"===e.type){var o=e.touch;if(void 0===o)return;var l=o.pageX-(r+i.left),c=o.pageY-(s+i.top);l*=a/i.width,c*=n/i.height;var u={x:l,y:c};if("touchstart"===e.type)lt.lastTouches[o.identifier]=u,lt.touches[o.identifier]=u;else if("touchend"===e.type||"touchmove"===e.type){var d=lt.touches[o.identifier];d||(d=u),lt.lastTouches[o.identifier]=d,lt.touches[o.identifier]=u}return}var p=e.pageX-(r+i.left),f=e.pageY-(s+i.top);p*=a/i.width,f*=n/i.height,lt.mouseMovementX=p-lt.mouseX,lt.mouseMovementY=f-lt.mouseY,lt.mouseX=p,lt.mouseY=f}},xhrLoad:function(e,t,i){var a=new XMLHttpRequest;a.open("GET",e,!0),a.responseType="arraybuffer",a.onload=function(){200==a.status||0==a.status&&a.response?t(a.response):i()},a.onerror=i,a.send(null)},asyncLoad:function(e,t,i,a){lt.xhrLoad(e,(function(i){g(i,'Loading data file "'+e+'" failed (no arrayBuffer).'),t(new Uint8Array(i)),a||Ge()}),(function(t){if(!i)throw'Loading data file "'+e+'" failed.';i()})),a||qe()},resizeListeners:[],updateResizeListeners:function(){var e=t["canvas"];lt.resizeListeners.forEach((function(t){t(e.width,e.height)}))},setCanvasSize:function(e,i,a){var n=t["canvas"];lt.updateCanvasDimensions(n,e,i),a||lt.updateResizeListeners()},windowedWidth:0,windowedHeight:0,setFullScreenCanvasSize:function(){if("undefined"!=typeof SDL){var e=J[SDL.screen+0*u.QUANTUM_SIZE>>2];e|=8388608,X[SDL.screen+0*u.QUANTUM_SIZE>>2]=e}lt.updateResizeListeners()},setWindowedCanvasSize:function(){if("undefined"!=typeof SDL){var e=J[SDL.screen+0*u.QUANTUM_SIZE>>2];e&=-8388609,X[SDL.screen+0*u.QUANTUM_SIZE>>2]=e}lt.updateResizeListeners()},updateCanvasDimensions:function(e,i,a){i&&a?(e.widthNative=i,e.heightNative=a):(i=e.widthNative,a=e.heightNative);var n=i,r=a;if(t["forcedAspectRatio"]&&t["forcedAspectRatio"]>0&&(n/r<t["forcedAspectRatio"]?n=Math.round(r*t["forcedAspectRatio"]):r=Math.round(n/t["forcedAspectRatio"])),(document["webkitFullScreenElement"]||document["webkitFullscreenElement"]||document["mozFullScreenElement"]||document["mozFullscreenElement"]||document["fullScreenElement"]||document["fullscreenElement"]||document["msFullScreenElement"]||document["msFullscreenElement"]||document["webkitCurrentFullScreenElement"])===e.parentNode&&"undefined"!=typeof screen){var s=Math.min(screen.width/n,screen.height/r);n=Math.round(n*s),r=Math.round(r*s)}lt.resizeCanvas?(e.width!=n&&(e.width=n),e.height!=r&&(e.height=r),"undefined"!=typeof e.style&&(e.style.removeProperty("width"),e.style.removeProperty("height"))):(e.width!=i&&(e.width=i),e.height!=a&&(e.height=a),"undefined"!=typeof e.style&&(n!=i||r!=a?(e.style.setProperty("width",n+"px","important"),e.style.setProperty("height",r+"px","important")):(e.style.removeProperty("width"),e.style.removeProperty("height"))))},wgetRequests:{},nextWgetRequestHandle:0,getNextWgetRequestHandle:function(){var e=lt.nextWgetRequestHandle;return lt.nextWgetRequestHandle++,e}};function ct(e){var t=Date.now()/1e3|0;return e&&(X[e>>2]=t),t}function ut(){return 0}t["requestFullScreen"]=function(e,t,i){lt.requestFullScreen(e,t,i)},t["requestAnimationFrame"]=function(e){lt.requestAnimationFrame(e)},t["setCanvasSize"]=function(e,t,i){lt.setCanvasSize(e,t,i)},t["pauseMainLoop"]=function(){lt.mainLoop.pause()},t["resumeMainLoop"]=function(){lt.mainLoop.resume()},t["getUserMedia"]=function(){lt.getUserMedia()},t["createContext"]=function(e,t,i,a){return lt.createContext(e,t,i,a)},nt.staticInit(),ve.unshift((function(){t["noFSInit"]||nt.init.initialized||nt.init()})),be.push((function(){nt.ignorePermissions=!1})),ye.push((function(){nt.quit()})),t["FS_createFolder"]=nt.createFolder,t["FS_createPath"]=nt.createPath,t["FS_createDataFile"]=nt.createDataFile,t["FS_createPreloadedFile"]=nt.createPreloadedFile,t["FS_createLazyFile"]=nt.createLazyFile,t["FS_createLink"]=nt.createLink,t["FS_createDevice"]=nt.createDevice,t["FS_unlink"]=nt.unlink,ve.unshift((function(){})),ye.push((function(){})),se=oe=u.alignMemory(ne),re=!0,le=se+fe,ce=ue=u.alignMemory(le),g(ce<Ae,"TOTAL_MEMORY not big enough for stack"),t.asmGlobalArg={Math:Math,Int8Array:Int8Array,Int16Array:Int16Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Uint16Array:Uint16Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array,NaN:NaN,Infinity:1/0},t.asmLibraryArg={abort:wt,assert:g,_sysconf:We,_pthread_self:ut,_abort:Je,___setErrNo:Ye,_sbrk:Ve,_time:ct,_emscripten_set_main_loop_timing:st,_emscripten_memcpy_big:Xe,_emscripten_set_main_loop:ot,STACKTOP:oe,STACK_MAX:le,tempDoublePtr:$e,ABORT:m};var dt=function(e,t,i){"use asm";var a=new e.Int8Array(i);var n=new e.Int16Array(i);var r=new e.Int32Array(i);var s=new e.Uint8Array(i);var o=new e.Uint16Array(i);var l=new e.Uint32Array(i);var c=new e.Float32Array(i);var u=new e.Float64Array(i);var d=t.STACKTOP|0;var p=t.STACK_MAX|0;var f=t.tempDoublePtr|0;var A=t.ABORT|0;var h=0;var m=0;var g=0;var v=0;var b=e.NaN,y=e.Infinity;var _=0,w=0,C=0,x=0,k=0.0,T=0,S=0,I=0,E=0.0;var O=0;var B=0;var L=0;var D=0;var M=0;var N=0;var j=0;var P=0;var U=0;var F=0;var R=e.Math.floor;var Q=e.Math.abs;var H=e.Math.sqrt;var z=e.Math.pow;var q=e.Math.cos;var G=e.Math.sin;var $=e.Math.tan;var V=e.Math.acos;var Y=e.Math.asin;var K=e.Math.atan;var W=e.Math.atan2;var X=e.Math.exp;var J=e.Math.log;var Z=e.Math.ceil;var ee=e.Math.imul;var te=e.Math.min;var ie=e.Math.clz32;var ae=t.abort;var ne=t.assert;var re=t._sysconf;var se=t._pthread_self;var oe=t._abort;var le=t.___setErrNo;var ce=t._sbrk;var ue=t._time;var de=t._emscripten_set_main_loop_timing;var pe=t._emscripten_memcpy_big;var fe=t._emscripten_set_main_loop;var Ae=0.0;function he(e){e=e|0;var t=0;t=d;d=d+e|0;d=d+15&-16;return t|0}function me(){return d|0}function ge(e){e=e|0;d=e}function ve(e,t){e=e|0;t=t|0;d=e;p=t}function be(e,t){e=e|0;t=t|0;if(!h){h=e;m=t}}function ye(e){e|0;a[f>>0]=a[e>>0];a[f+1>>0]=a[e+1>>0];a[f+2>>0]=a[e+2>>0];a[f+3>>0]=a[e+3>>0]}function _e(e){e|0;a[f>>0]=a[e>>0];a[f+1>>0]=a[e+1>>0];a[f+2>>0]=a[e+2>>0];a[f+3>>0]=a[e+3>>0];a[f+4>>0]=a[e+4>>0];a[f+5>>0]=a[e+5>>0];a[f+6>>0]=a[e+6>>0];a[f+7>>0]=a[e+7>>0]}function we(e){e=e|0;O=e}function Ce(){return O|0}function xe(){var e=0,t=0;t=d;d=d+16|0;e=t;r[e>>2]=0;Lt(e,31756)|0;d=t;return r[e>>2]|0}function ke(e){e=e|0;var t=0,i=0;t=d;d=d+16|0;i=t;r[i>>2]=e;Dt(i);d=t;return}function Te(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;De(e,(a|0)==0?(s[t>>0]|0)>>>3&15:15,t+1|0,i,2)|0;return}function Se(e){e=e|0;var t=0;t=Fn(8)|0;jt(t,t+4|0,e)|0;return t|0}function Ie(e){e=e|0;Pt(e,e+4|0);Rn(e);return}function Ee(e,t,i,n,o){e=e|0;t=t|0;i=i|0;n=n|0;o=o|0;var l=0;o=d;d=d+16|0;l=o;r[l>>2]=t;i=(Ut(r[e>>2]|0,r[e+4>>2]|0,t,i,n,l,3)|0)<<16>>16;a[n>>0]=s[n>>0]|0|4;d=o;return i|0}function Oe(e){e=e|0;if(!e)e=-1;else{n[e>>1]=4096;e=0}return e|0}function Be(e,t,i,a,s,o){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;o=o|0;var l=0,c=0,u=0,d=0,p=0,f=0,A=0,h=0,m=0;p=r[o>>2]|0;m=s<<16>>16>0;if(m){l=0;c=0;do{d=n[i+(l<<1)>>1]|0;d=ee(d,d)|0;if((d|0)!=1073741824){u=(d<<1)+c|0;if((d^c|0)>0&(u^c|0)<0){r[o>>2]=1;c=(c>>>31)+2147483647|0}else c=u}else{r[o>>2]=1;c=2147483647}l=l+1|0}while((l&65535)<<16>>16!=s<<16>>16);if((c|0)==2147483647){r[o>>2]=p;d=0;u=0;do{c=n[i+(d<<1)>>1]>>2;c=ee(c,c)|0;if((c|0)!=1073741824){l=(c<<1)+u|0;if((c^u|0)>0&(l^u|0)<0){r[o>>2]=1;u=(u>>>31)+2147483647|0}else u=l}else{r[o>>2]=1;u=2147483647}d=d+1|0}while((d&65535)<<16>>16!=s<<16>>16)}else h=8}else{c=0;h=8}if((h|0)==8)u=c>>4;if(!u){n[e>>1]=0;return}A=((bn(u)|0)&65535)+65535|0;c=A<<16>>16;if((A&65535)<<16>>16>0){l=u<<c;if((l>>c|0)==(u|0))u=l;else u=u>>31^2147483647}else{c=0-c<<16;if((c|0)<2031616)u=u>>(c>>16);else u=0}f=Ln(u,o)|0;l=r[o>>2]|0;if(m){c=0;u=0;do{p=n[t+(c<<1)>>1]|0;p=ee(p,p)|0;if((p|0)!=1073741824){d=(p<<1)+u|0;if((p^u|0)>0&(d^u|0)<0){r[o>>2]=1;u=(u>>>31)+2147483647|0}else u=d}else{r[o>>2]=1;u=2147483647}c=c+1|0}while((c&65535)<<16>>16!=s<<16>>16);if((u|0)==2147483647){r[o>>2]=l;p=0;u=0;do{d=n[t+(p<<1)>>1]>>2;d=ee(d,d)|0;if((d|0)!=1073741824){c=(d<<1)+u|0;if((d^u|0)>0&(c^u|0)<0){r[o>>2]=1;u=(u>>>31)+2147483647|0}else u=c}else{r[o>>2]=1;u=2147483647}p=p+1|0}while((p&65535)<<16>>16!=s<<16>>16)}else h=29}else{u=0;h=29}if((h|0)==29)u=u>>4;if(!u)d=0;else{c=(bn(u)|0)<<16>>16;l=A-c|0;d=l&65535;u=(Ya(f,Ln(u<<c,o)|0)|0)<<16>>16;c=u<<7;l=l<<16>>16;if(d<<16>>16>0)l=d<<16>>16<31?c>>l:0;else{h=0-l<<16>>16;l=c<<h;l=(l>>h|0)==(c|0)?l:u>>24^2147483647}d=(ee(((sn(l,o)|0)<<9)+32768>>16,32767-(a&65535)<<16>>16)|0)>>>15<<16>>16}l=n[e>>1]|0;if(m){u=a<<16>>16;c=0;while(1){a=((ee(l<<16>>16,u)|0)>>>15&65535)+d|0;l=a&65535;n[i>>1]=(ee(n[i>>1]|0,a<<16>>16)|0)>>>12;c=c+1<<16>>16;if(c<<16>>16>=s<<16>>16)break;else i=i+2|0}}n[e>>1]=l;return}function Le(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var s=0,o=0,l=0,c=0,u=0,d=0,p=0,f=0,A=0;l=r[a>>2]|0;s=i<<16>>16>0;if(s){c=0;o=0;do{d=n[t+(c<<1)>>1]|0;d=ee(d,d)|0;if((d|0)!=1073741824){u=(d<<1)+o|0;if((d^o|0)>0&(u^o|0)<0){r[a>>2]=1;o=(o>>>31)+2147483647|0}else o=u}else{r[a>>2]=1;o=2147483647}c=c+1|0}while((c&65535)<<16>>16!=i<<16>>16);if((o|0)==2147483647){r[a>>2]=l;d=0;l=0;do{u=n[t+(d<<1)>>1]>>2;u=ee(u,u)|0;if((u|0)!=1073741824){c=(u<<1)+l|0;if((u^l|0)>0&(c^l|0)<0){r[a>>2]=1;l=(l>>>31)+2147483647|0}else l=c}else{r[a>>2]=1;l=2147483647}d=d+1|0}while((d&65535)<<16>>16!=i<<16>>16)}else A=8}else{o=0;A=8}if((A|0)==8)l=o>>4;if(!l)return;f=((bn(l)|0)&65535)+65535|0;u=f<<16>>16;if((f&65535)<<16>>16>0){c=l<<u;if((c>>u|0)==(l|0))l=c;else l=l>>31^2147483647}else{u=0-u<<16;if((u|0)<2031616)l=l>>(u>>16);else l=0}p=Ln(l,a)|0;l=r[a>>2]|0;if(s){c=0;o=0;do{d=n[e+(c<<1)>>1]|0;d=ee(d,d)|0;if((d|0)!=1073741824){u=(d<<1)+o|0;if((d^o|0)>0&(u^o|0)<0){r[a>>2]=1;o=(o>>>31)+2147483647|0}else o=u}else{r[a>>2]=1;o=2147483647}c=c+1|0}while((c&65535)<<16>>16!=i<<16>>16);if((o|0)==2147483647){r[a>>2]=l;l=0;c=0;do{d=n[e+(l<<1)>>1]>>2;d=ee(d,d)|0;if((d|0)!=1073741824){u=(d<<1)+c|0;if((d^c|0)>0&(u^c|0)<0){r[a>>2]=1;c=(c>>>31)+2147483647|0}else c=u}else{r[a>>2]=1;c=2147483647}l=l+1|0}while((l&65535)<<16>>16!=i<<16>>16)}else A=28}else{o=0;A=28}if((A|0)==28)c=o>>4;if(!c)s=0;else{d=bn(c)|0;u=d<<16>>16;if(d<<16>>16>0){l=c<<u;if((l>>u|0)==(c|0))c=l;else c=c>>31^2147483647}else{u=0-u<<16;if((u|0)<2031616)c=c>>(u>>16);else c=0}l=f-(d&65535)|0;u=l&65535;o=(Ya(p,Ln(c,a)|0)|0)<<16>>16;s=o<<7;l=l<<16>>16;if(u<<16>>16>0)s=u<<16>>16<31?s>>l:0;else{f=0-l<<16>>16;e=s<<f;s=(e>>f|0)==(s|0)?e:o>>24^2147483647}s=sn(s,a)|0;if((s|0)>4194303)s=2147483647;else s=(s|0)<-4194304?-2147483648:s<<9;s=Ln(s,a)|0}o=(i&65535)+65535&65535;if(o<<16>>16<=-1)return;d=s<<16>>16;u=i+-1<<16>>16<<16>>16;while(1){l=t+(u<<1)|0;s=ee(n[l>>1]|0,d)|0;do{if((s|0)!=1073741824){c=s<<1;if((c|0)<=268435455)if((c|0)<-268435456){n[l>>1]=-32768;break}else{n[l>>1]=s>>>12;break}else A=52}else{r[a>>2]=1;A=52}}while(0);if((A|0)==52){A=0;n[l>>1]=32767}o=o+-1<<16>>16;if(o<<16>>16<=-1)break;else u=u+-1|0}return}function De(e,t,i,a,s){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;var o=0,l=0,c=0,u=0;u=d;d=d+496|0;c=u;l=(s|0)==2;do{if(!(l&1|(s|0)==4)){if(s){e=-1;d=u;return e|0}l=n[i>>1]|0;t=i+490|0;s=i+2|0;o=0;while(1){n[c+(o<<1)>>1]=n[s>>1]|0;o=o+1|0;if((o|0)==244)break;else s=s+2|0}o=l<<16>>16;if(l<<16>>16==7){s=492;t=r[e+1760>>2]|0;break}else{s=492;t=n[t>>1]|0;break}}else{o=e+1168|0;if(l){Nt(t,i,c,o);o=604}else{vt(t,i,c,o);o=3436}s=n[o+(t<<1)>>1]|0;do{if(t>>>0>=8){if((t|0)==8){t=n[c+76>>1]<<2|(n[c+74>>1]<<1|n[c+72>>1]);o=(n[c+70>>1]|0)==0?4:5;break}if(t>>>0<15){e=-1;d=u;return e|0}else{t=r[e+1760>>2]|0;o=7;break}}else o=0}while(0);if(s<<16>>16==-1){e=-1;d=u;return e|0}}}while(0);Mt(e,t,c,o,a);r[e+1760>>2]=t;e=s;d=u;return e|0}function Me(e,t,i){e=e|0;t=t|0;i=i|0;var a=0,s=0,l=0,c=0,u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0;b=d;d=d+48|0;g=b+20|0;v=b;s=g;a=s+20|0;do{n[s>>1]=n[e>>1]|0;s=s+2|0;e=e+2|0}while((s|0)<(a|0));e=n[g+18>>1]|0;m=(e&65535)-((e&65535)>>>15&65535)|0;e:do{if(((m<<16>>31^m)&65535)<<16>>16<=4095){a=9;m=9;while(1){e=e<<16>>16;e=(e<<19>>19|0)==(e|0)?e<<3:e>>>15^32767;h=t+(a<<1)|0;n[h>>1]=e;e=e<<16>>16;e=ee(e,e)|0;if((e|0)==1073741824){r[i>>2]=1;s=2147483647}else s=e<<1;e=2147483647-s|0;if((e&s|0)<0){r[i>>2]=1;e=2147483647}f=bn(e)|0;A=15-(f&65535)&65535;l=f<<16>>16;if(f<<16>>16>0){s=e<<l;if((s>>l|0)!=(e|0))s=e>>31^2147483647}else{s=0-l<<16;if((s|0)<2031616)s=e>>(s>>16);else s=0}s=Ya(16384,Ln(s,i)|0)|0;do{if(m<<16>>16>0){f=a+-1|0;c=s<<16>>16;u=m<<16>>16;p=0;while(1){a=o[g+(p<<1)>>1]|0;e=a<<16;l=ee(n[g+(f-p<<1)>>1]|0,n[h>>1]|0)|0;if((l|0)==1073741824){r[i>>2]=1;s=2147483647}else s=l<<1;l=e-s|0;if(((l^e)&(s^e)|0)<0){r[i>>2]=1;l=(a>>>15)+2147483647|0}l=ee((Ln(l,i)|0)<<16>>16,c)|0;if((l|0)==1073741824){r[i>>2]=1;l=2147483647}else l=l<<1;l=un(l,A,i)|0;s=l-(l>>>31)|0;if((s>>31^s|0)>32767){l=24;break}n[v+(p<<1)>>1]=l;p=p+1|0;if((u|0)<=(p|0)){l=26;break}}if((l|0)==24){l=0;s=t;a=s+20|0;do{n[s>>1]=0;s=s+2|0}while((s|0)<(a|0));e=10}else if((l|0)==26){l=0;if(m<<16>>16>0)e=m;else{l=28;break}}s=e+-1<<16>>16;qn(g|0,v|0,((s&65535)<<1)+2|0)|0;a=s<<16>>16}else l=28}while(0);if((l|0)==28){e=m+-1<<16>>16;if(e<<16>>16>-1){a=e<<16>>16;s=32767}else break}e=n[g+(a<<1)>>1]|0;m=(e&65535)-((e&65535)>>>15&65535)|0;if(((m<<16>>31^m)&65535)<<16>>16>4095)break e;else m=s}d=b;return}}while(0);s=t;a=s+20|0;do{n[s>>1]=0;s=s+2|0}while((s|0)<(a|0));d=b;return}function Ne(e,t){e=e|0;t=t|0;var i=0,a=0,n=0,s=0,o=0;if(t<<16>>16<=0){e=0;return e|0}a=r[e>>2]|0;n=0;i=0;do{o=a&1;i=o|i<<1&131070;s=a>>1;a=(o|0)==(a>>>28&1|0)?s:s|1073741824;n=n+1<<16>>16}while(n<<16>>16<t<<16>>16);r[e>>2]=a;o=i&65535;return o|0}function je(e,t,i){e=e|0;t=t|0;i=i|0;var a=0,s=0,o=0,l=0,c=0,u=0;s=t;a=s+80|0;do{n[s>>1]=0;s=s+2|0}while((s|0)<(a|0));a=0;s=r[e>>2]|0;do{u=s&1;c=s>>1;c=(u|0)==(s>>>28&1|0)?c:c|1073741824;o=c&1;l=c>>1;r[e>>2]=(o|0)==(c>>>28&1|0)?l:l|1073741824;o=$a((ee(u<<1|o,1310720)|0)>>>17&65535,a,i)|0;u=r[e>>2]|0;l=u&1;c=u>>1;s=(l|0)==(u>>>28&1|0)?c:c|1073741824;r[e>>2]=s;n[t+(o<<16>>16<<1)>>1]=((l&65535)<<13&65535)+-4096<<16>>16;a=a+1<<16>>16}while(a<<16>>16<10);return}function Pe(e,t,i,a,s,l){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;l=l|0;var c=0,u=0;c=n[e>>1]|0;if((c*31821|0)==1073741824){r[l>>2]=1;u=1073741823}else u=c*63642>>1;c=u+13849|0;if((u|0)>-1&(c^u|0)<0){r[l>>2]=1;c=(u>>>31)+2147483647|0}n[e>>1]=c;if(t<<16>>16<=0)return;u=0;c=s+((c&127)<<1)|0;while(1){n[a+(u<<1)>>1]=(-65536<<n[i+(u<<1)>>1]>>>16^65535)&o[c>>1];u=u+1|0;if((u&65535)<<16>>16==t<<16>>16)break;else c=c+2|0}return}function Ue(e){e=e|0;var t=0;if(!e){t=-1;return t|0}t=e+122|0;do{n[e>>1]=0;e=e+2|0}while((e|0)<(t|0));t=0;return t|0}function Fe(e,t,i,a,s){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;var l=0,c=0,u=0,d=0,p=0,f=0,A=0;u=159;c=0;while(1){p=n[i+(u<<1)>>1]|0;p=ee(p,p)|0;p=(p|0)==1073741824?2147483647:p<<1;l=p+c|0;if((p^c|0)>-1&(l^c|0)<0){r[s>>2]=1;c=(c>>>31)+2147483647|0}else c=l;if((u|0)>0)u=u+-1|0;else{u=c;break}}s=u>>>14&65535;c=32767;l=59;while(1){p=n[e+(l<<1)>>1]|0;c=p<<16>>16<c<<16>>16?p:c;if((l|0)>0)l=l+-1|0;else break}p=(u|0)>536870911?32767:s;s=c<<16>>16;l=s<<20>>16;u=c<<16>>16>0?32767:-32768;i=55;c=n[e>>1]|0;while(1){d=n[e+(i<<1)>>1]|0;c=c<<16>>16<d<<16>>16?d:c;if((i|0)>1)i=i+-1|0;else break}i=n[e+80>>1]|0;d=n[e+82>>1]|0;i=i<<16>>16<d<<16>>16?d:i;d=n[e+84>>1]|0;i=i<<16>>16<d<<16>>16?d:i;d=n[e+86>>1]|0;i=i<<16>>16<d<<16>>16?d:i;d=n[e+88>>1]|0;i=i<<16>>16<d<<16>>16?d:i;d=n[e+90>>1]|0;i=i<<16>>16<d<<16>>16?d:i;d=n[e+92>>1]|0;i=i<<16>>16<d<<16>>16?d:i;d=n[e+94>>1]|0;i=i<<16>>16<d<<16>>16?d:i;d=n[e+96>>1]|0;i=i<<16>>16<d<<16>>16?d:i;d=n[e+98>>1]|0;i=i<<16>>16<d<<16>>16?d:i;d=n[e+100>>1]|0;i=i<<16>>16<d<<16>>16?d:i;d=n[e+102>>1]|0;i=i<<16>>16<d<<16>>16?d:i;d=n[e+104>>1]|0;i=i<<16>>16<d<<16>>16?d:i;d=n[e+106>>1]|0;i=i<<16>>16<d<<16>>16?d:i;d=n[e+108>>1]|0;i=i<<16>>16<d<<16>>16?d:i;d=n[e+110>>1]|0;i=i<<16>>16<d<<16>>16?d:i;d=n[e+112>>1]|0;i=i<<16>>16<d<<16>>16?d:i;d=n[e+114>>1]|0;i=i<<16>>16<d<<16>>16?d:i;d=n[e+116>>1]|0;i=i<<16>>16<d<<16>>16?d:i;d=e+118|0;A=n[d>>1]|0;do{if((p+-21&65535)<17557&c<<16>>16>20?(p<<16>>16|0)<(((s<<4|0)==(l|0)?l:u)|0)?1:(i<<16>>16<A<<16>>16?A:i)<<16>>16<1953:0){c=e+120|0;l=n[c>>1]|0;if(l<<16>>16>29){n[c>>1]=30;i=c;u=1;break}else{u=(l&65535)+1&65535;n[c>>1]=u;i=c;u=u<<16>>16>1&1;break}}else f=14}while(0);if((f|0)==14){i=e+120|0;n[i>>1]=0;u=0}c=0;do{A=c;c=c+1|0;n[e+(A<<1)>>1]=n[e+(c<<1)>>1]|0}while((c|0)!=59);n[d>>1]=p;c=n[i>>1]|0;c=c<<16>>16>15?16383:c<<16>>16>8?15565:13926;l=en(t+8|0,5)|0;if((n[i>>1]|0)>20){if(((en(t,9)|0)<<16>>16|0)>(c|0))f=20}else if((l<<16>>16|0)>(c|0))f=20;if((f|0)==20){n[a>>1]=0;return u|0}l=(o[a>>1]|0)+1&65535;if(l<<16>>16>10){n[a>>1]=10;return u|0}else{n[a>>1]=l;return u|0}return 0}function Re(e){e=e|0;var t=0;if(!e){t=-1;return t|0}t=e+18|0;do{n[e>>1]=0;e=e+2|0}while((e|0)<(t|0));t=0;return t|0}function Qe(e,t,i,a,s,l,c,u,d,p,f,A){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;l=l|0;c=c|0;u=u|0;d=d|0;p=p|0;f=f|0;A=A|0;var h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0,I=0,E=0;x=e+2|0;n[e>>1]=n[x>>1]|0;k=e+4|0;n[x>>1]=n[k>>1]|0;T=e+6|0;n[k>>1]=n[T>>1]|0;S=e+8|0;n[T>>1]=n[S>>1]|0;I=e+10|0;n[S>>1]=n[I>>1]|0;E=e+12|0;n[I>>1]=n[E>>1]|0;n[E>>1]=i;b=0;C=0;do{h=s+(C<<1)|0;g=jn(n[h>>1]|0,n[a+(C<<1)>>1]|0,A)|0;g=(g&65535)-((g&65535)>>>15&65535)|0;g=g<<16>>31^g;w=((yn(g&65535)|0)&65535)+65535|0;m=w<<16>>16;if((w&65535)<<16>>16<0){v=0-m<<16;if((v|0)<983040)y=g<<16>>16>>(v>>16)&65535;else y=0}else{v=g<<16>>16;g=v<<m;if((g<<16>>16>>m|0)==(v|0))y=g&65535;else y=(v>>>15^32767)&65535}_=yn(n[h>>1]|0)|0;g=n[h>>1]|0;m=_<<16>>16;if(_<<16>>16<0){v=0-m<<16;if((v|0)<983040)v=g<<16>>16>>(v>>16)&65535;else v=0}else{v=g<<16>>16;g=v<<m;if((g<<16>>16>>m|0)==(v|0))v=g&65535;else v=(v>>>15^32767)&65535}m=Ya(y,v)|0;v=(w&65535)+2-(_&65535)|0;g=v&65535;do{if(v&32768){if(g<<16>>16!=-32768){w=0-v|0;v=w<<16>>16;if((w&65535)<<16>>16<0){v=0-v<<16;if((v|0)>=983040){v=0;break}v=m<<16>>16>>(v>>16)&65535;break}}else v=32767;g=m<<16>>16;m=g<<v;if((m<<16>>16>>v|0)==(g|0))v=m&65535;else v=(g>>>15^32767)&65535}else v=Dn(m,g,A)|0}while(0);b=$a(b,v,A)|0;C=C+1|0}while((C|0)!=10);v=b&65535;g=b<<16>>16>5325;b=e+14|0;if(g){s=(o[b>>1]|0)+1&65535;n[b>>1]=s;if(s<<16>>16>10)n[e+16>>1]=0}else n[b>>1]=0;switch(t|0){case 0:case 1:case 2:case 3:case 6:break;default:{E=e+16|0;A=i;i=n[E>>1]|0;i=i&65535;i=i+1|0;i=i&65535;n[E>>1]=i;return A|0}}y=(c|l)<<16>>16==0;_=p<<16>>16==0;w=t>>>0<3;b=v+(w&((_|(y&(u<<16>>16==0|d<<16>>16==0)|f<<16>>16<2))^1)?61030:62259)&65535;b=b<<16>>16>0?b:0;if(b<<16>>16<=2048){b=b<<16>>16;if((b<<18>>18|0)==(b|0))d=b<<2;else d=b>>>15^32767}else d=8192;u=e+16|0;f=g|(n[u>>1]|0)<40;b=n[k>>1]|0;if((b*6554|0)==1073741824){r[A>>2]=1;g=2147483647}else g=b*13108|0;b=n[T>>1]|0;v=b*6554|0;if((v|0)!=1073741824){b=(b*13108|0)+g|0;if((v^g|0)>0&(b^g|0)<0){r[A>>2]=1;b=(g>>>31)+2147483647|0}}else{r[A>>2]=1;b=2147483647}v=n[S>>1]|0;g=v*6554|0;if((g|0)!=1073741824){v=(v*13108|0)+b|0;if((g^b|0)>0&(v^b|0)<0){r[A>>2]=1;v=(b>>>31)+2147483647|0}}else{r[A>>2]=1;v=2147483647}b=n[I>>1]|0;g=b*6554|0;if((g|0)!=1073741824){b=(b*13108|0)+v|0;if((g^v|0)>0&(b^v|0)<0){r[A>>2]=1;g=(v>>>31)+2147483647|0}else g=b}else{r[A>>2]=1;g=2147483647}b=n[E>>1]|0;v=b*6554|0;if((v|0)!=1073741824){b=(b*13108|0)+g|0;if((v^g|0)>0&(b^g|0)<0){r[A>>2]=1;b=(g>>>31)+2147483647|0}}else{r[A>>2]=1;b=2147483647}g=Ln(b,A)|0;if(w&((y|_)^1)){b=n[e>>1]|0;if((b*4681|0)==1073741824){r[A>>2]=1;g=2147483647}else g=b*9362|0;b=n[x>>1]|0;v=b*4681|0;if((v|0)!=1073741824){b=(b*9362|0)+g|0;if((v^g|0)>0&(b^g|0)<0){r[A>>2]=1;g=(g>>>31)+2147483647|0}else g=b}else{r[A>>2]=1;g=2147483647}b=n[k>>1]|0;v=b*4681|0;if((v|0)!=1073741824){b=(b*9362|0)+g|0;if((v^g|0)>0&(b^g|0)<0){r[A>>2]=1;g=(g>>>31)+2147483647|0}else g=b}else{r[A>>2]=1;g=2147483647}b=n[T>>1]|0;v=b*4681|0;if((v|0)!=1073741824){b=(b*9362|0)+g|0;if((v^g|0)>0&(b^g|0)<0){r[A>>2]=1;b=(g>>>31)+2147483647|0}}else{r[A>>2]=1;b=2147483647}v=n[S>>1]|0;g=v*4681|0;if((g|0)!=1073741824){v=(v*9362|0)+b|0;if((g^b|0)>0&(v^b|0)<0){r[A>>2]=1;b=(b>>>31)+2147483647|0}else b=v}else{r[A>>2]=1;b=2147483647}v=n[I>>1]|0;g=v*4681|0;if((g|0)!=1073741824){v=(v*9362|0)+b|0;if((g^b|0)>0&(v^b|0)<0){r[A>>2]=1;v=(b>>>31)+2147483647|0}}else{r[A>>2]=1;v=2147483647}g=n[E>>1]|0;h=g*4681|0;if((h|0)!=1073741824){m=(g*9362|0)+v|0;if((h^v|0)>0&(m^v|0)<0){r[A>>2]=1;m=(v>>>31)+2147483647|0}}else{r[A>>2]=1;m=2147483647}g=Ln(m,A)|0}b=f?8192:d<<16>>16;h=ee(b,i<<16>>16)|0;if((h|0)==1073741824){r[A>>2]=1;v=2147483647}else v=h<<1;g=g<<16>>16;m=g<<13;if((m|0)!=1073741824){h=v+(g<<14)|0;if((v^m|0)>0&(h^v|0)<0){r[A>>2]=1;v=(v>>>31)+2147483647|0}else v=h}else{r[A>>2]=1;v=2147483647}h=ee(g,b)|0;if((h|0)==1073741824){r[A>>2]=1;m=2147483647}else m=h<<1;h=v-m|0;if(((h^v)&(m^v)|0)<0){r[A>>2]=1;h=(v>>>31)+2147483647|0}E=h<<2;i=u;A=Ln((E>>2|0)==(h|0)?E:h>>31^2147483647,A)|0;E=n[i>>1]|0;E=E&65535;E=E+1|0;E=E&65535;n[i>>1]=E;return A|0}function He(e,t,i){e=e|0;t=t|0;i=i|0;var a=0,r=0,s=0,l=0;a=t;r=a+80|0;do{n[a>>1]=0;a=a+2|0}while((a|0)<(r|0));a=0;do{l=n[e+(a<<1)>>1]|0;r=((l&8)<<10&65535^8192)+-4096<<16>>16;s=a<<16;l=((n[i+((l&7)<<1)>>1]|0)*327680|0)+s>>16;n[t+(l<<1)>>1]=r;s=((n[i+((o[e+(a+5<<1)>>1]&7)<<1)>>1]|0)*327680|0)+s>>16;if((s|0)<(l|0))r=0-(r&65535)&65535;l=t+(s<<1)|0;n[l>>1]=(o[l>>1]|0)+(r&65535);a=a+1|0}while((a|0)!=5);return}function ze(e,t,i){e=e|0;t=t|0;i=i|0;var a=0,r=0,s=0;r=t<<16>>16;a=(r<<1&2|1)+((r>>>1&7)*5|0)|0;t=r>>>4&3;t=((r>>>6&7)*5|0)+((t|0)==3?4:t)|0;r=i;s=r+80|0;do{n[r>>1]=0;r=r+2|0}while((r|0)<(s|0));e=e<<16>>16;n[i+(a<<1)>>1]=(0-(e&1)&16383)+57344;n[i+(t<<1)>>1]=(0-(e>>>1&1)&16383)+57344;return}function qe(e,t,i,a,r,s){e=e|0;t=t|0;i=i|0;a=a|0;r=r|0;s=s|0;var l=0,c=0;s=i<<16>>16;c=s>>>3;e=e<<16>>16;e=((e<<17>>17|0)==(e|0)?e<<1:e>>>15^32767)+(c&8)<<16;c=(o[a+(e+65536>>16<<1)>>1]|0)+((c&7)*5|0)|0;i=t<<16>>16;l=(0-(i&1)&16383)+57344&65535;e=r+((o[a+(e>>16<<1)>>1]|0)+((s&7)*5|0)<<16>>16<<1)|0;t=r;s=t+80|0;do{n[t>>1]=0;t=t+2|0}while((t|0)<(s|0));n[e>>1]=l;n[r+(c<<16>>16<<1)>>1]=(0-(i>>>1&1)&16383)+57344;return}function Ge(e,t,i){e=e|0;t=t|0;i=i|0;var a=0,r=0,s=0,o=0;t=t<<16>>16;a=(t&7)*5|0;r=(t>>>2&2|1)+((t>>>4&7)*5|0)|0;t=(t>>>6&2)+2+((t>>>8&7)*5|0)|0;s=i;o=s+80|0;do{n[s>>1]=0;s=s+2|0}while((s|0)<(o|0));e=e<<16>>16;n[i+(a<<1)>>1]=(0-(e&1)&16383)+57344;n[i+(r<<1)>>1]=(0-(e>>>1&1)&16383)+57344;n[i+(t<<1)>>1]=(0-(e>>>2&1)&16383)+57344;return}function $e(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var r=0,s=0,o=0,l=0;t=t<<16>>16;o=n[i+((t&7)<<1)>>1]|0;l=n[i+((t>>>3&7)<<1)>>1]|0;s=n[i+((t>>>6&7)<<1)>>1]|0;i=(t>>>9&1)+3+((n[i+((t>>>10&7)<<1)>>1]|0)*5|0)|0;t=a;r=t+80|0;do{n[t>>1]=0;t=t+2|0}while((t|0)<(r|0));e=e<<16>>16;n[a+(o*327680>>16<<1)>>1]=(0-(e&1)&16383)+57344;n[a+((l*327680|0)+65536>>16<<1)>>1]=(0-(e>>>1&1)&16383)+57344;n[a+((s*327680|0)+131072>>16<<1)>>1]=(0-(e>>>2&1)&16383)+57344;n[a+(i<<16>>16<<1)>>1]=(0-(e>>>3&1)&16383)+57344;return}function Ve(e,t,i){e=e|0;t=t|0;i=i|0;var a=0,s=0,l=0,c=0,u=0,p=0,f=0,A=0,h=0,m=0;m=d;d=d+32|0;h=m+16|0;A=m;l=t;s=l+80|0;do{n[l>>1]=0;l=l+2|0}while((l|0)<(s|0));s=n[e>>1]|0;n[h>>1]=s;n[h+2>>1]=n[e+2>>1]|0;n[h+4>>1]=n[e+4>>1]|0;n[h+6>>1]=n[e+6>>1]|0;p=n[e+8>>1]|0;Ye(p>>>3&65535,p&7,0,4,1,A,i);p=n[e+10>>1]|0;Ye(p>>>3&65535,p&7,2,6,5,A,i);p=n[e+12>>1]|0;a=p>>2;do{if((a*25|0)!=1073741824){l=(ee(a,1638400)|0)+786432>>21;a=l*6554>>15;if((a|0)>32767){r[i>>2]=1;c=1;u=1;e=163835;f=6;break}e=(a<<16>>16)*5|0;c=a&1;if((e|0)==1073741824){r[i>>2]=1;u=0;e=65535}else{u=0;f=6}}else{r[i>>2]=1;c=0;a=0;u=0;l=0;e=0;f=6}}while(0);if((f|0)==6)e=e&65535;f=l-e|0;c=c<<16>>16==0?f:4-f|0;f=c<<16>>16;n[A+6>>1]=$a(((c<<17>>17|0)==(f|0)?c<<1:f>>>15^32767)&65535,p&1,i)|0;if(u){r[i>>2]=1;a=32767}f=a<<16>>16;n[A+14>>1]=((a<<17>>17|0)==(f|0)?a<<1:f>>>15^32767)+(p>>>1&1);a=0;while(1){s=s<<16>>16==0?8191:-8191;f=(n[A+(a<<1)>>1]<<2)+a<<16;l=f>>16;if((f|0)<2621440)n[t+(l<<1)>>1]=s;c=(n[A+(a+4<<1)>>1]<<2)+a<<16;e=c>>16;if((e|0)<(l|0))s=0-(s&65535)&65535;if((c|0)<2621440){f=t+(e<<1)|0;n[f>>1]=(o[f>>1]|0)+(s&65535)}a=a+1|0;if((a|0)==4)break;s=n[h+(a<<1)>>1]|0}d=m;return}function Ye(e,t,i,a,s,o,l){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;o=o|0;l=l|0;var c=0,u=0,d=0,p=0,f=0,A=0,h=0;u=e<<16>>16>124?124:e;e=(u<<16>>16)*1311>>15;h=(e|0)>32767;if(!h){c=e<<16>>16;if((c*25|0)==1073741824){r[l>>2]=1;c=1073741823}else A=4}else{r[l>>2]=1;c=32767;A=4}if((A|0)==4)c=(c*50|0)>>>1;p=(u&65535)-c|0;c=(p<<16>>16)*6554>>15;f=(c|0)>32767;if(!f){u=c<<16>>16;if((u*5|0)==1073741824){r[l>>2]=1;d=1073741823}else A=9}else{r[l>>2]=1;u=32767;A=9}if((A|0)==9)d=(u*10|0)>>>1;p=p-d|0;A=p<<16>>16;u=t<<16>>16;d=u>>2;u=u-(d<<2)|0;n[o+(i<<16>>16<<1)>>1]=((p<<17>>17|0)==(A|0)?p<<1:A>>>15^32767)+(u&1);if(f){r[l>>2]=1;c=32767}i=c<<16>>16;n[o+(a<<16>>16<<1)>>1]=((c<<17>>17|0)==(i|0)?c<<1:i>>>15^32767)+(u<<16>>17);if(h){r[l>>2]=1;e=32767}a=e<<16>>16;n[o+(s<<16>>16<<1)>>1]=$a(d&65535,((e<<17>>17|0)==(a|0)?e<<1:a>>>15^32767)&65535,l)|0;return}function Ke(e){e=e|0;var t=0,i=0,a=0,s=0;if(!e){s=-1;return s|0}Za(e+1168|0);n[e+460>>1]=40;r[e+1164>>2]=0;t=e+646|0;i=e+1216|0;a=e+462|0;s=a+22|0;do{n[a>>1]=0;a=a+2|0}while((a|0)<(s|0));st(t,r[i>>2]|0)|0;ht(e+686|0)|0;dt(e+700|0)|0;Re(e+608|0)|0;yt(e+626|0,r[i>>2]|0)|0;Ue(e+484|0)|0;wt(e+730|0)|0;ot(e+748|0)|0;Ka(e+714|0)|0;We(e,0)|0;s=0;return s|0}function We(e,t){e=e|0;t=t|0;var i=0,a=0;if(!e){e=-1;return e|0}r[e+388>>2]=e+308;$n(e|0,0,308)|0;t=(t|0)!=8;if(t){i=e+412|0;a=i+20|0;do{n[i>>1]=0;i=i+2|0}while((i|0)<(a|0));n[e+392>>1]=3e4;n[e+394>>1]=26e3;n[e+396>>1]=21e3;n[e+398>>1]=15e3;n[e+400>>1]=8e3;n[e+402>>1]=0;n[e+404>>1]=-8e3;n[e+406>>1]=-15e3;n[e+408>>1]=-21e3;n[e+410>>1]=-26e3}n[e+432>>1]=0;n[e+434>>1]=40;r[e+1164>>2]=0;n[e+436>>1]=0;n[e+438>>1]=0;n[e+440>>1]=0;n[e+460>>1]=40;n[e+462>>1]=0;n[e+464>>1]=0;if(t){i=e+442|0;a=i+18|0;do{n[i>>1]=0;i=i+2|0}while((i|0)<(a|0));i=e+466|0;a=i+18|0;do{n[i>>1]=0;i=i+2|0}while((i|0)<(a|0));Re(e+608|0)|0;a=e+1216|0;yt(e+626|0,r[a>>2]|0)|0;st(e+646|0,r[a>>2]|0)|0;ht(e+686|0)|0;dt(e+700|0)|0;Ka(e+714|0)|0}else{i=e+466|0;a=i+18|0;do{n[i>>1]=0;i=i+2|0}while((i|0)<(a|0));Re(e+608|0)|0;st(e+646|0,r[e+1216>>2]|0)|0;ht(e+686|0)|0;dt(e+700|0)|0}Ue(e+484|0)|0;n[e+606>>1]=21845;wt(e+730|0)|0;if(!t){e=0;return e|0}ot(e+748|0)|0;e=0;return e|0}function Xe(e,t,i,s,l,c){e=e|0;t=t|0;i=i|0;s=s|0;l=l|0;c=c|0;var u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0,I=0,E=0,O=0,B=0,L=0,D=0,M=0,N=0,j=0,P=0,U=0,F=0,R=0,Q=0,H=0,z=0,q=0,G=0,$=0,V=0,Y=0,K=0,W=0,X=0,J=0,Z=0,te=0,ie=0,ae=0,ne=0,re=0,se=0,oe=0,le=0,ce=0,ue=0,de=0,pe=0,fe=0,Ae=0,he=0,me=0,ge=0,ve=0,be=0,ye=0,_e=0,we=0,Ce=0,xe=0,ke=0,Te=0,Se=0,Ie=0,Ee=0,Oe=0,Be=0,De=0,Me=0,Ne=0,je=0,Ue=0,Re=0,Ye=0,Ke=0,Xe=0,nt=0,st=0,ot=0,dt=0,ht=0,vt=0,yt=0,wt=0,Tt=0,St=0;St=d;d=d+336|0;g=St+236|0;m=St+216|0;wt=St+112|0;yt=St+12|0;st=St+256|0;dt=St+136|0;ot=St+32|0;Xe=St+8|0;nt=St+6|0;vt=St+4|0;ht=St+2|0;Tt=St;je=e+1164|0;Ue=e+748|0;Re=ut(Ue,s,je)|0;if(Re){We(e,8)|0;lt(Ue,e+412|0,e+646|0,e+714|0,e+608|0,Re,t,i,e+1168|0,l,c,je);Tt=e+666|0;mn(Tt,e+392|0,10,je);_t(e+626|0,Tt,je);Tt=e+1156|0;r[Tt>>2]=Re;d=St;return}switch(s|0){case 1:{u=1;C=6;break}case 2:case 7:{Pe(e+606|0,n[(r[e+1256>>2]|0)+(t<<1)>>1]|0,r[(r[e+1260>>2]|0)+(t<<2)>>2]|0,i,r[e+1276>>2]|0,je);C=9;break}case 3:{C=9;break}default:{u=0;C=6}}do{if((C|0)==6){s=e+440|0;if((n[s>>1]|0)==6){n[s>>1]=5;Me=0;Ne=0;break}else{n[s>>1]=0;Me=0;Ne=0;break}}else if((C|0)==9){s=e+440|0;Me=(o[s>>1]|0)+1&65535;n[s>>1]=Me<<16>>16>6?6:Me;Me=1;Ne=1;u=0}}while(0);Ee=e+1156|0;switch(r[Ee>>2]|0){case 1:{n[s>>1]=5;n[e+436>>1]=0;break}case 2:{n[s>>1]=5;n[e+436>>1]=1;break}default:{}}f=e+646|0;Oe=e+666|0;p=wt;A=Oe;h=p+20|0;do{a[p>>0]=a[A>>0]|0;p=p+1|0;A=A+1|0}while((p|0)<(h|0));Be=(t|0)!=7;De=e+1168|0;if(Be){at(f,t,Ne,i,De,g,je);p=e+392|0;nn(p,g,c,je);i=i+6|0}else{rt(f,Ne,i,De,m,g,je);p=e+392|0;tn(p,m,g,c,je);i=i+10|0}A=g;h=p+20|0;do{n[p>>1]=n[A>>1]|0;p=p+2|0;A=A+2|0}while((p|0)<(h|0));Ie=t>>>0>1;S=t>>>0<4&1;Se=(t|0)==5;Te=Se?10:5;Se=Se?19:9;O=e+434|0;B=143-Se&65535;L=e+460|0;D=e+462|0;M=e+464|0;I=t>>>0>2;N=e+388|0;j=(t|0)==0;P=t>>>0<2;U=e+1244|0;F=e+432|0;R=t>>>0<6;Q=e+1168|0;H=(t|0)==6;z=Ne<<16>>16==0;q=e+714|0;G=e+686|0;$=e+436|0;V=e+700|0;Y=(t|0)==7;K=e+482|0;W=t>>>0<3;X=e+608|0;J=e+626|0;Z=e+438|0;te=t>>>0<7;ie=e+730|0;E=Me^1;ae=u<<16>>16!=0;ke=ae?Ne^1:0;ne=e+442|0;re=e+458|0;se=e+412|0;oe=e+80|0;le=e+1236|0;ce=e+1240|0;ue=e+468|0;de=e+466|0;pe=e+470|0;fe=e+472|0;Ae=e+474|0;he=e+476|0;me=e+478|0;ge=e+480|0;ve=e+444|0;be=e+446|0;ye=e+448|0;_e=e+450|0;we=e+452|0;Ce=e+454|0;xe=e+456|0;x=0;k=0;v=0;b=0;T=-1;while(1){T=(T<<16>>16)+1|0;h=T&65535;k=1-(k<<16>>16)|0;_=k&65535;m=Ie&v<<16>>16==80?0:v;y=i+2|0;g=n[i>>1]|0;e:do{if(Be){w=n[O>>1]|0;p=(w&65535)-Te&65535;p=p<<16>>16<20?20:p;A=(p&65535)+Se&65535;f=A<<16>>16>143;Ze(g,f?B:p,f?143:A,m,w,Xe,nt,S,je);m=n[Xe>>1]|0;n[L>>1]=m;if(Me){g=n[O>>1]|0;if(g<<16>>16<143){g=(g&65535)+1&65535;n[O>>1]=g}n[Xe>>1]=g;n[nt>>1]=0;if((n[D>>1]|0)!=0?!(I|(n[M>>1]|0)<5):0){n[Xe>>1]=m;g=m;m=0}else m=0}else{g=m;m=n[nt>>1]|0}wn(r[N>>2]|0,g,m,40,1,je);if(P){m=i+6|0;qe(h,n[i+4>>1]|0,n[y>>1]|0,r[U>>2]|0,st,je);i=n[F>>1]|0;w=i<<16>>16;g=w<<1;if((g|0)==(w<<17>>16|0)){A=j;break}A=j;g=i<<16>>16>0?32767:-32768;break}switch(t|0){case 2:{m=i+6|0;ze(n[i+4>>1]|0,n[y>>1]|0,st);i=n[F>>1]|0;w=i<<16>>16;g=w<<1;if((g|0)==(w<<17>>16|0)){A=j;break e}A=j;g=i<<16>>16>0?32767:-32768;break e}case 3:{m=i+6|0;Ge(n[i+4>>1]|0,n[y>>1]|0,st);i=n[F>>1]|0;w=i<<16>>16;g=w<<1;if((g|0)==(w<<17>>16|0)){A=j;break e}A=j;g=i<<16>>16>0?32767:-32768;break e}default:{if(R){m=i+6|0;$e(n[i+4>>1]|0,n[y>>1]|0,r[Q>>2]|0,st);i=n[F>>1]|0;w=i<<16>>16;g=w<<1;if((g|0)==(w<<17>>16|0)){A=j;break e}A=j;g=i<<16>>16>0?32767:-32768;break e}if(!H){A=j;C=44;break e}Ve(y,st,je);g=i+16|0;i=n[F>>1]|0;w=i<<16>>16;h=w<<1;if((h|0)==(w<<17>>16|0)){m=g;A=j;g=h;break e}m=g;A=j;g=i<<16>>16>0?32767:-32768;break e}}}else{et(g,18,143,m,Xe,nt,je);if(z?m<<16>>16==0|g<<16>>16<61:0){g=n[Xe>>1]|0;m=n[nt>>1]|0}else{n[L>>1]=n[Xe>>1]|0;g=n[O>>1]|0;n[Xe>>1]=g;n[nt>>1]=0;m=0}wn(r[N>>2]|0,g,m,40,0,je);A=0;C=44}}while(0);if((C|0)==44){C=0;if(Me)At(G,n[s>>1]|0,vt,je);else n[vt>>1]=it(t,n[y>>1]|0,r[ce>>2]|0)|0;mt(G,Ne,n[$>>1]|0,vt,je);He(i+4|0,st,r[Q>>2]|0);g=i+24|0;i=n[vt>>1]|0;w=i<<16>>16;h=w<<1;if((h|0)==(w<<17>>16|0)){m=g;g=h}else{m=g;g=i<<16>>16>0?32767:-32768}}i=n[Xe>>1]|0;e:do{if(i<<16>>16<40){p=g<<16>>16;f=i;g=i<<16>>16;while(1){h=st+(g<<1)|0;i=(ee(n[st+(g-(f<<16>>16)<<1)>>1]|0,p)|0)>>15;if((i|0)>32767){r[je>>2]=1;i=32767}w=i&65535;n[Tt>>1]=w;n[h>>1]=$a(n[h>>1]|0,w,je)|0;g=g+1|0;if((g&65535)<<16>>16==40)break e;f=n[Xe>>1]|0}}}while(0);e:do{if(A){A=(k&65535|0)==0;if(A){i=m;h=b}else{i=m+2|0;h=n[m>>1]|0}if(z)Je(q,t,h,st,_,vt,ht,De,je);else{At(G,n[s>>1]|0,vt,je);pt(V,q,n[s>>1]|0,ht,je)}mt(G,Ne,n[$>>1]|0,vt,je);ft(V,Ne,n[$>>1]|0,ht,je);m=n[vt>>1]|0;g=m<<16>>16>13017?13017:m;if(A)C=80;else w=h}else{i=m+2|0;g=n[m>>1]|0;switch(t|0){case 1:case 2:case 3:case 4:case 6:{if(z)Je(q,t,g,st,_,vt,ht,De,je);else{At(G,n[s>>1]|0,vt,je);pt(V,q,n[s>>1]|0,ht,je)}mt(G,Ne,n[$>>1]|0,vt,je);ft(V,Ne,n[$>>1]|0,ht,je);m=n[vt>>1]|0;g=m<<16>>16>13017?13017:m;if(!H){h=b;C=80;break e}if((n[O>>1]|0)<=45){h=b;C=80;break e}h=b;g=g<<16>>16>>>2&65535;C=80;break e}case 5:{if(Me)At(G,n[s>>1]|0,vt,je);else n[vt>>1]=it(5,g,r[ce>>2]|0)|0;mt(G,Ne,n[$>>1]|0,vt,je);if(z)tt(q,5,n[i>>1]|0,st,r[le>>2]|0,ht,je);else pt(V,q,n[s>>1]|0,ht,je);ft(V,Ne,n[$>>1]|0,ht,je);g=n[vt>>1]|0;i=m+4|0;m=g;h=b;g=g<<16>>16>13017?13017:g;C=80;break e}default:{if(z)tt(q,t,g,st,r[le>>2]|0,ht,je);else pt(V,q,n[s>>1]|0,ht,je);ft(V,Ne,n[$>>1]|0,ht,je);g=n[vt>>1]|0;m=g;h=b;C=80;break e}}}}while(0);if((C|0)==80){C=0;n[F>>1]=m<<16>>16>13017?13017:m;w=h}g=g<<16>>16;g=(g<<17>>17|0)==(g|0)?g<<1:g>>>15^32767;_=(g&65535)<<16>>16>16384;e:do{if(_){y=g<<16>>16;if(Y)m=0;else{m=0;while(1){g=(ee(n[(r[N>>2]|0)+(m<<1)>>1]|0,y)|0)>>15;if((g|0)>32767){r[je>>2]=1;g=32767}n[Tt>>1]=g;g=ee(n[vt>>1]|0,g<<16>>16)|0;if((g|0)==1073741824){r[je>>2]=1;g=2147483647}else g=g<<1;n[dt+(m<<1)>>1]=Ln(g,je)|0;m=m+1|0;if((m|0)==40)break e}}do{g=(ee(n[(r[N>>2]|0)+(m<<1)>>1]|0,y)|0)>>15;if((g|0)>32767){r[je>>2]=1;g=32767}n[Tt>>1]=g;g=ee(n[vt>>1]|0,g<<16>>16)|0;if((g|0)!=1073741824){g=g<<1;if((g|0)<0)g=~((g^-2)>>1);else C=88}else{r[je>>2]=1;g=2147483647;C=88}if((C|0)==88){C=0;g=g>>1}n[dt+(m<<1)>>1]=Ln(g,je)|0;m=m+1|0}while((m|0)!=40)}}while(0);if(z){n[de>>1]=n[ue>>1]|0;n[ue>>1]=n[pe>>1]|0;n[pe>>1]=n[fe>>1]|0;n[fe>>1]=n[Ae>>1]|0;n[Ae>>1]=n[he>>1]|0;n[he>>1]=n[me>>1]|0;n[me>>1]=n[ge>>1]|0;n[ge>>1]=n[K>>1]|0;n[K>>1]=n[vt>>1]|0}if((Me|(n[$>>1]|0)!=0?W&(n[D>>1]|0)!=0:0)?(Ye=n[vt>>1]|0,Ye<<16>>16>12288):0){C=(((Ye<<16>>16)+118784|0)>>>1)+12288&65535;n[vt>>1]=C<<16>>16>14745?14745:C}bt(wt,Oe,v,yt,je);g=Qe(X,t,n[ht>>1]|0,yt,J,Ne,n[$>>1]|0,u,n[Z>>1]|0,n[D>>1]|0,n[M>>1]|0,je)|0;switch(t|0){case 0:case 1:case 2:case 3:case 6:{h=n[vt>>1]|0;y=1;break}default:{g=n[ht>>1]|0;h=n[vt>>1]|0;if(te)y=1;else{m=h<<16>>16;if(h<<16>>16<0)m=~((m^-2)>>1);else m=m>>>1;h=m&65535;y=2}}}p=h<<16>>16;v=y&65535;m=r[N>>2]|0;b=0;do{m=m+(b<<1)|0;n[ot+(b<<1)>>1]=n[m>>1]|0;m=ee(n[m>>1]|0,p)|0;if((m|0)==1073741824){r[je>>2]=1;f=2147483647}else f=m<<1;A=ee(n[ht>>1]|0,n[st+(b<<1)>>1]|0)|0;if((A|0)!=1073741824){m=(A<<1)+f|0;if((A^f|0)>0&(m^f|0)<0){r[je>>2]=1;m=(f>>>31)+2147483647|0}}else{r[je>>2]=1;m=2147483647}C=m<<v;C=Ln((C>>v|0)==(m|0)?C:m>>31^2147483647,je)|0;m=r[N>>2]|0;n[m+(b<<1)>>1]=C;b=b+1|0}while((b|0)!=40);xt(ie);if((W?(n[M>>1]|0)>3:0)?!((n[D>>1]|0)==0|E):0)Ct(ie);kt(ie,t,ot,g,n[vt>>1]|0,st,h,y,De,je);g=0;A=0;do{m=n[ot+(A<<1)>>1]|0;m=ee(m,m)|0;if((m|0)!=1073741824){h=(m<<1)+g|0;if((m^g|0)>0&(h^g|0)<0){r[je>>2]=1;g=(g>>>31)+2147483647|0}else g=h}else{r[je>>2]=1;g=2147483647}A=A+1|0}while((A|0)!=40);if((g|0)<0)g=~((g^-2)>>1);else g=g>>1;g=Nn(g,Tt,je)|0;h=((n[Tt>>1]|0)>>>1)+15|0;m=h&65535;h=h<<16>>16;if(m<<16>>16>0)if(m<<16>>16<31){g=g>>h;C=135}else{g=0;C=137}else{y=0-h<<16>>16;C=g<<y;g=(C>>y|0)==(g|0)?C:g>>31^2147483647;C=135}if((C|0)==135){C=0;if((g|0)<0)g=~((g^-4)>>2);else C=137}if((C|0)==137){C=0;g=g>>>2}g=g&65535;do{if(W?(Ke=n[M>>1]|0,Ke<<16>>16>5):0)if(n[D>>1]|0)if((n[s>>1]|0)<4){if(ae){if(!(Me|(n[Z>>1]|0)!=0))C=145}else if(!Me)C=145;if((C|0)==145?(0,(n[$>>1]|0)==0):0){C=147;break}gt(ot,g,ne,Ke,n[$>>1]|0,ke,je)|0;C=147}else C=147;else C=151;else C=147}while(0);do{if((C|0)==147){C=0;if(n[D>>1]|0){if(!Me?(n[$>>1]|0)==0:0){C=151;break}if((n[s>>1]|0)>=4)C=151}else C=151}}while(0);if((C|0)==151){C=0;n[ne>>1]=n[ve>>1]|0;n[ve>>1]=n[be>>1]|0;n[be>>1]=n[ye>>1]|0;n[ye>>1]=n[_e>>1]|0;n[_e>>1]=n[we>>1]|0;n[we>>1]=n[Ce>>1]|0;n[Ce>>1]=n[xe>>1]|0;n[xe>>1]=n[re>>1]|0;n[re>>1]=g}if(_){g=0;do{_=dt+(g<<1)|0;n[_>>1]=$a(n[_>>1]|0,n[ot+(g<<1)>>1]|0,je)|0;g=g+1|0}while((g|0)!=40);Le(ot,dt,40,je);r[je>>2]=0;Pn(c,dt,l+(x<<1)|0,40,se,0)}else{r[je>>2]=0;Pn(c,ot,l+(x<<1)|0,40,se,0)}if(!(r[je>>2]|0))Gn(se|0,l+(x+30<<1)|0,20)|0;else{h=193;while(1){m=e+(h<<1)|0;_=n[m>>1]|0;g=_<<16>>16;if(_<<16>>16<0)g=~((g^-4)>>2);else g=g>>>2;n[m>>1]=g;if((h|0)>0)h=h+-1|0;else{h=39;break}}while(1){m=ot+(h<<1)|0;_=n[m>>1]|0;g=_<<16>>16;if(_<<16>>16<0)g=~((g^-4)>>2);else g=g>>>2;n[m>>1]=g;if((h|0)>0)h=h+-1|0;else break}Pn(c,ot,l+(x<<1)|0,40,se,1)}Gn(e|0,oe|0,308)|0;n[O>>1]=n[Xe>>1]|0;g=x+40|0;v=g&65535;if(v<<16>>16>=160)break;else{x=g<<16>>16;c=c+22|0;b=w}}n[D>>1]=Fe(e+484|0,e+466|0,l,M,je)|0;ct(Ue,Oe,l,je);n[$>>1]=Ne;n[Z>>1]=u;_t(e+626|0,Oe,je);Tt=Ee;r[Tt>>2]=Re;d=St;return}function Je(e,t,i,a,s,l,c,u,p){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;l=l|0;c=c|0;u=u|0;p=p|0;var f=0,A=0,h=0,m=0,g=0;g=d;d=d+16|0;h=g+2|0;m=g;i=i<<16>>16;i=(i<<18>>18|0)==(i|0)?i<<2:i>>>15^32767;switch(t|0){case 3:case 4:case 6:{A=i<<16>>16;i=r[u+84>>2]|0;n[l>>1]=n[i+(A<<1)>>1]|0;u=n[i+(A+1<<1)>>1]|0;f=n[i+(A+3<<1)>>1]|0;l=n[i+(A+2<<1)>>1]|0;break}case 0:{u=(i&65535)+(s<<16>>16<<1^2)|0;u=(u&65535)<<16>>16>1022?1022:u<<16>>16;n[l>>1]=n[782+(u<<1)>>1]|0;l=n[782+(u+1<<1)>>1]|0;on(l<<16>>16,m,h,p);n[m>>1]=(o[m>>1]|0)+65524;u=Mn(n[h>>1]|0,5,p)|0;A=n[m>>1]|0;A=$a(u,((A<<26>>26|0)==(A|0)?A<<10:A>>>15^32767)&65535,p)|0;u=n[h>>1]|0;i=n[m>>1]|0;if((i*24660|0)==1073741824){r[p>>2]=1;s=2147483647}else s=i*49320|0;f=(u<<16>>16)*24660>>15;i=s+(f<<1)|0;if((s^f|0)>0&(i^s|0)<0){r[p>>2]=1;i=(s>>>31)+2147483647|0}f=i<<13;u=l;f=Ln((f>>13|0)==(i|0)?f:i>>31^2147483647,p)|0;l=A;break}default:{A=i<<16>>16;i=r[u+80>>2]|0;n[l>>1]=n[i+(A<<1)>>1]|0;u=n[i+(A+1<<1)>>1]|0;f=n[i+(A+3<<1)>>1]|0;l=n[i+(A+2<<1)>>1]|0}}Wa(e,t,a,m,h,0,0,p);s=ee((_n(14,n[h>>1]|0,p)|0)<<16>>16,u<<16>>16)|0;if((s|0)==1073741824){r[p>>2]=1;i=2147483647}else i=s<<1;u=10-(o[m>>1]|0)|0;s=u&65535;u=u<<16>>16;if(s<<16>>16>0){m=s<<16>>16<31?i>>u:0;m=m>>>16;m=m&65535;n[c>>1]=m;Xa(e,l,f);d=g;return}else{p=0-u<<16>>16;m=i<<p;m=(m>>p|0)==(i|0)?m:i>>31^2147483647;m=m>>>16;m=m&65535;n[c>>1]=m;Xa(e,l,f);d=g;return}}function Ze(e,t,i,a,s,o,l,c,u){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;o=o|0;l=l|0;c=c|0;u=u|0;if(!(a<<16>>16)){c=e<<16>>16;if(e<<16>>16>=197){n[o>>1]=c+65424;n[l>>1]=0;return}s=((c<<16)+131072>>16)*10923>>15;if((s|0)>32767){r[u>>2]=1;s=32767}e=(s&65535)+19|0;n[o>>1]=e;n[l>>1]=c+58-((e*196608|0)>>>16);return}if(!(c<<16>>16)){u=e<<16>>16<<16;e=((u+131072>>16)*21846|0)+-65536>>16;n[o>>1]=e+(t&65535);n[l>>1]=((u+-131072|0)>>>16)-((e*196608|0)>>>16);return}if((jn(s,t,u)|0)<<16>>16>5)s=(t&65535)+5&65535;c=i<<16>>16;c=(c-(s&65535)&65535)<<16>>16>4?c+65532&65535:s;s=e<<16>>16;if(e<<16>>16<4){n[o>>1]=((((c&65535)<<16)+-327680|0)>>>16)+s;n[l>>1]=0;return}s=s<<16;if(e<<16>>16<12){u=(((s+-327680>>16)*10923|0)>>>15<<16)+-65536|0;e=u>>16;n[o>>1]=(c&65535)+e;n[l>>1]=((s+-589824|0)>>>16)-(u>>>15)-e;return}else{n[o>>1]=((s+-786432+((c&65535)<<16)|0)>>>16)+1;n[l>>1]=0;return}}function et(e,t,i,a,r,s,l){e=e|0;t=t|0;i=i|0;a=a|0;r=r|0;s=s|0;l=l|0;if(a<<16>>16){l=(o[r>>1]|0)+65531|0;l=(l<<16>>16|0)<(t<<16>>16|0)?t:l&65535;i=i<<16>>16;t=e<<16>>16<<16;e=((t+327680>>16)*10924|0)+-65536>>16;n[r>>1]=(((((l&65535)<<16)+589824>>16|0)>(i|0)?i+65527&65535:l)&65535)+e;n[s>>1]=((t+-196608|0)>>>16)-((e*393216|0)>>>16);return}a=e<<16>>16;if(e<<16>>16<463){e=((((a<<16)+327680>>16)*10924|0)>>>16)+17|0;n[r>>1]=e;n[s>>1]=a+105-((e*393216|0)>>>16);return}else{n[r>>1]=a+65168;n[s>>1]=0;return}}function tt(e,t,i,a,s,o,l){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;o=o|0;l=l|0;var c=0,u=0,p=0,f=0;f=d;d=d+16|0;u=f+6|0;c=f+4|0;Wa(e,t,a,u,c,f+2|0,f,l);p=(i&31)*3|0;a=s+(p<<1)|0;if(!((jn(t&65535,7,l)|0)<<16>>16)){u=_n(n[u>>1]|0,n[c>>1]|0,l)|0;c=u<<16>>16;c=(ee(((u<<20>>20|0)==(c|0)?u<<4:c>>>15^32767)<<16>>16,n[a>>1]|0)|0)>>15;if((c|0)>32767){r[l>>2]=1;c=32767}a=c<<16;i=a>>16;if((c<<17>>17|0)==(i|0))c=a>>15;else c=i>>>15^32767}else{i=_n(14,n[c>>1]|0,l)|0;i=ee(i<<16>>16,n[a>>1]|0)|0;if((i|0)==1073741824){r[l>>2]=1;a=2147483647}else a=i<<1;i=jn(9,n[u>>1]|0,l)|0;c=i<<16>>16;if(i<<16>>16>0)c=i<<16>>16<31?a>>c:0;else{l=0-c<<16>>16;c=a<<l;c=(c>>l|0)==(a|0)?c:a>>31^2147483647}c=c>>>16}n[o>>1]=c;Xa(e,n[s+(p+1<<1)>>1]|0,n[s+(p+2<<1)>>1]|0);d=f;return}function it(e,t,i){e=e|0;t=t|0;i=i|0;t=n[i+(t<<16>>16<<1)>>1]|0;if((e|0)!=7){e=t;return e|0}e=t&65532;return e|0}function at(e,t,i,s,o,l,c){e=e|0;t=t|0;i=i|0;s=s|0;o=o|0;l=l|0;c=c|0;var u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0;_=d;d=d+48|0;g=_+20|0;y=_;b=r[o+44>>2]|0;v=r[o+64>>2]|0;u=r[o+4>>2]|0;m=r[o+12>>2]|0;f=r[o+20>>2]|0;p=r[o+56>>2]|0;if(!(i<<16>>16)){A=t>>>0<2;if(A){i=765;h=508;f=r[o+52>>2]|0}else{o=(t|0)==5;i=o?1533:765;h=2044;u=o?p:u}p=n[s>>1]|0;i=((p*196608>>16|0)>(i&65535|0)?i:p*3&65535)<<16>>16;p=n[u+(i<<1)>>1]|0;n[g>>1]=p;n[g+2>>1]=n[u+(i+1<<1)>>1]|0;n[g+4>>1]=n[u+(i+2<<1)>>1]|0;i=n[s+2>>1]|0;if(A)i=i<<16>>16<<1&65535;A=(i<<16>>16)*196608|0;A=(A|0)>100466688?1533:A>>16;n[g+6>>1]=n[m+(A<<1)>>1]|0;n[g+8>>1]=n[m+(A+1<<1)>>1]|0;n[g+10>>1]=n[m+(A+2<<1)>>1]|0;s=n[s+4>>1]|0;s=((s<<18>>16|0)>(h&65535|0)?h:s<<2&65535)<<16>>16;n[g+12>>1]=n[f+(s<<1)>>1]|0;n[g+14>>1]=n[f+((s|1)<<1)>>1]|0;n[g+16>>1]=n[f+((s|2)<<1)>>1]|0;n[g+18>>1]=n[f+((s|3)<<1)>>1]|0;if((t|0)==8){i=0;while(1){v=e+(i<<1)|0;n[y+(i<<1)>>1]=$a(p,$a(n[b+(i<<1)>>1]|0,n[v>>1]|0,c)|0,c)|0;n[v>>1]=p;i=i+1|0;if((i|0)==10)break;p=n[g+(i<<1)>>1]|0}On(y,205,10,c);u=e+20|0;p=y;i=u+20|0;do{a[u>>0]=a[p>>0]|0;u=u+1|0;p=p+1|0}while((u|0)<(i|0));mn(y,l,10,c);d=_;return}else u=0;do{p=e+(u<<1)|0;i=(ee(n[v+(u<<1)>>1]|0,n[p>>1]|0)|0)>>15;if((i|0)>32767){r[c>>2]=1;i=32767}s=$a(n[b+(u<<1)>>1]|0,i&65535,c)|0;t=n[g+(u<<1)>>1]|0;n[y+(u<<1)>>1]=$a(t,s,c)|0;n[p>>1]=t;u=u+1|0}while((u|0)!=10);On(y,205,10,c);u=e+20|0;p=y;i=u+20|0;do{a[u>>0]=a[p>>0]|0;u=u+1|0;p=p+1|0}while((u|0)<(i|0));mn(y,l,10,c);d=_;return}else{u=0;do{i=(n[e+20+(u<<1)>>1]|0)*29491>>15;if((i|0)>32767){r[c>>2]=1;i=32767}p=(n[b+(u<<1)>>1]|0)*3277>>15;if((p|0)>32767){r[c>>2]=1;p=32767}n[y+(u<<1)>>1]=$a(p&65535,i&65535,c)|0;u=u+1|0}while((u|0)!=10);if((t|0)==8){u=0;do{v=e+(u<<1)|0;g=$a(n[b+(u<<1)>>1]|0,n[v>>1]|0,c)|0;n[v>>1]=jn(n[y+(u<<1)>>1]|0,g,c)|0;u=u+1|0}while((u|0)!=10);On(y,205,10,c);u=e+20|0;p=y;i=u+20|0;do{a[u>>0]=a[p>>0]|0;u=u+1|0;p=p+1|0}while((u|0)<(i|0));mn(y,l,10,c);d=_;return}else u=0;do{p=e+(u<<1)|0;i=(ee(n[v+(u<<1)>>1]|0,n[p>>1]|0)|0)>>15;if((i|0)>32767){r[c>>2]=1;i=32767}g=$a(n[b+(u<<1)>>1]|0,i&65535,c)|0;n[p>>1]=jn(n[y+(u<<1)>>1]|0,g,c)|0;u=u+1|0}while((u|0)!=10);On(y,205,10,c);u=e+20|0;p=y;i=u+20|0;do{a[u>>0]=a[p>>0]|0;u=u+1|0;p=p+1|0}while((u|0)<(i|0));mn(y,l,10,c);d=_;return}}function nt(e,t,i){e=e|0;t=t|0;i=i|0;Gn(e|0,i+((t<<16>>16)*10<<1)|0,20)|0;return}function rt(e,t,i,s,o,l,c){e=e|0;t=t|0;i=i|0;s=s|0;o=o|0;l=l|0;c=c|0;var u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0;_=d;d=d+80|0;m=_+60|0;g=_+40|0;b=_+20|0;y=_;v=r[s+48>>2]|0;f=r[s+24>>2]|0;A=r[s+28>>2]|0;h=r[s+32>>2]|0;if(t<<16>>16){u=0;do{m=v+(u<<1)|0;i=$a(((n[m>>1]|0)*1639|0)>>>15&65535,((n[e+20+(u<<1)>>1]|0)*31128|0)>>>15&65535,c)|0;n[b+(u<<1)>>1]=i;n[y+(u<<1)>>1]=i;g=e+(u<<1)|0;n[g>>1]=jn(i,$a(n[m>>1]|0,((n[g>>1]|0)*21299|0)>>>15&65535,c)|0,c)|0;u=u+1|0}while((u|0)!=10);On(b,205,10,c);On(y,205,10,c);u=e+20|0;s=y;t=u+20|0;do{a[u>>0]=a[s>>0]|0;u=u+1|0;s=s+1|0}while((u|0)<(t|0));mn(b,o,10,c);mn(y,l,10,c);d=_;return}t=r[s+16>>2]|0;s=r[s+8>>2]|0;p=n[i>>1]|0;p=((p<<18>>18|0)==(p|0)?p<<2:p>>>15^32767)<<16>>16;n[m>>1]=n[s+(p<<1)>>1]|0;n[m+2>>1]=n[s+(p+1<<1)>>1]|0;n[g>>1]=n[s+(p+2<<1)>>1]|0;n[g+2>>1]=n[s+(p+3<<1)>>1]|0;p=n[i+2>>1]|0;p=((p<<18>>18|0)==(p|0)?p<<2:p>>>15^32767)<<16>>16;n[m+4>>1]=n[t+(p<<1)>>1]|0;n[m+6>>1]=n[t+(p+1<<1)>>1]|0;n[g+4>>1]=n[t+(p+2<<1)>>1]|0;n[g+6>>1]=n[t+(p+3<<1)>>1]|0;p=n[i+4>>1]|0;s=p<<16>>16;if(p<<16>>16<0)t=~((s^-2)>>1);else t=s>>>1;p=t<<16>>16;p=((t<<18>>18|0)==(p|0)?t<<2:p>>>15^32767)<<16>>16;u=f+(p+1<<1)|0;t=n[f+(p<<1)>>1]|0;if(!(s&1)){n[m+8>>1]=t;n[m+10>>1]=n[u>>1]|0;n[g+8>>1]=n[f+(p+2<<1)>>1]|0;n[g+10>>1]=n[f+(p+3<<1)>>1]|0}else{if(t<<16>>16==-32768)t=32767;else t=0-(t&65535)&65535;n[m+8>>1]=t;t=n[u>>1]|0;if(t<<16>>16==-32768)t=32767;else t=0-(t&65535)&65535;n[m+10>>1]=t;t=n[f+(p+2<<1)>>1]|0;if(t<<16>>16==-32768)t=32767;else t=0-(t&65535)&65535;n[g+8>>1]=t;t=n[f+(p+3<<1)>>1]|0;if(t<<16>>16==-32768)t=32767;else t=0-(t&65535)&65535;n[g+10>>1]=t}u=n[i+6>>1]|0;u=((u<<18>>18|0)==(u|0)?u<<2:u>>>15^32767)<<16>>16;n[m+12>>1]=n[A+(u<<1)>>1]|0;n[m+14>>1]=n[A+(u+1<<1)>>1]|0;n[g+12>>1]=n[A+(u+2<<1)>>1]|0;n[g+14>>1]=n[A+(u+3<<1)>>1]|0;u=n[i+8>>1]|0;u=((u<<18>>18|0)==(u|0)?u<<2:u>>>15^32767)<<16>>16;n[m+16>>1]=n[h+(u<<1)>>1]|0;n[m+18>>1]=n[h+(u+1<<1)>>1]|0;n[g+16>>1]=n[h+(u+2<<1)>>1]|0;n[g+18>>1]=n[h+(u+3<<1)>>1]|0;u=0;do{s=e+(u<<1)|0;t=(n[s>>1]|0)*21299>>15;if((t|0)>32767){r[c>>2]=1;t=32767}h=$a(n[v+(u<<1)>>1]|0,t&65535,c)|0;n[b+(u<<1)>>1]=$a(n[m+(u<<1)>>1]|0,h,c)|0;i=n[g+(u<<1)>>1]|0;n[y+(u<<1)>>1]=$a(i,h,c)|0;n[s>>1]=i;u=u+1|0}while((u|0)!=10);On(b,205,10,c);On(y,205,10,c);u=e+20|0;s=y;t=u+20|0;do{a[u>>0]=a[s>>0]|0;u=u+1|0;s=s+1|0}while((u|0)<(t|0));mn(b,o,10,c);mn(y,l,10,c);d=_;return}function st(e,t){e=e|0;t=t|0;var i=0,a=0;if(!e){a=-1;return a|0}i=e;a=i+20|0;do{n[i>>1]=0;i=i+2|0}while((i|0)<(a|0));Gn(e+20|0,t|0,20)|0;a=0;return a|0}function ot(e){e=e|0;var t=0,i=0,s=0,o=0,l=0;if(!e){l=-1;return l|0}n[e>>1]=0;n[e+2>>1]=8192;t=e+4|0;n[t>>1]=3500;n[e+6>>1]=3500;r[e+8>>2]=1887529304;n[e+12>>1]=3e4;n[e+14>>1]=26e3;n[e+16>>1]=21e3;n[e+18>>1]=15e3;n[e+20>>1]=8e3;n[e+22>>1]=0;n[e+24>>1]=-8e3;n[e+26>>1]=-15e3;n[e+28>>1]=-21e3;n[e+30>>1]=-26e3;n[e+32>>1]=3e4;n[e+34>>1]=26e3;n[e+36>>1]=21e3;n[e+38>>1]=15e3;n[e+40>>1]=8e3;n[e+42>>1]=0;n[e+44>>1]=-8e3;n[e+46>>1]=-15e3;n[e+48>>1]=-21e3;n[e+50>>1]=-26e3;n[e+212>>1]=0;n[e+374>>1]=0;n[e+392>>1]=0;i=e+52|0;n[i>>1]=1384;n[e+54>>1]=2077;n[e+56>>1]=3420;n[e+58>>1]=5108;n[e+60>>1]=6742;n[e+62>>1]=8122;n[e+64>>1]=9863;n[e+66>>1]=11092;n[e+68>>1]=12714;n[e+70>>1]=13701;s=e+72|0;o=i;l=s+20|0;do{a[s>>0]=a[o>>0]|0;s=s+1|0;o=o+1|0}while((s|0)<(l|0));s=e+92|0;o=i;l=s+20|0;do{a[s>>0]=a[o>>0]|0;s=s+1|0;o=o+1|0}while((s|0)<(l|0));s=e+112|0;o=i;l=s+20|0;do{a[s>>0]=a[o>>0]|0;s=s+1|0;o=o+1|0}while((s|0)<(l|0));s=e+132|0;o=i;l=s+20|0;do{a[s>>0]=a[o>>0]|0;s=s+1|0;o=o+1|0}while((s|0)<(l|0));s=e+152|0;o=i;l=s+20|0;do{a[s>>0]=a[o>>0]|0;s=s+1|0;o=o+1|0}while((s|0)<(l|0));s=e+172|0;o=i;l=s+20|0;do{a[s>>0]=a[o>>0]|0;s=s+1|0;o=o+1|0}while((s|0)<(l|0));s=e+192|0;o=i;l=s+20|0;do{a[s>>0]=a[o>>0]|0;s=s+1|0;o=o+1|0}while((s|0)<(l|0));$n(e+214|0,0,160)|0;n[e+376>>1]=3500;n[e+378>>1]=3500;l=n[t>>1]|0;n[e+380>>1]=l;n[e+382>>1]=l;n[e+384>>1]=l;n[e+386>>1]=l;n[e+388>>1]=l;n[e+390>>1]=l;n[e+394>>1]=0;n[e+396>>1]=7;n[e+398>>1]=32767;n[e+400>>1]=0;n[e+402>>1]=0;n[e+404>>1]=0;r[e+408>>2]=1;n[e+412>>1]=0;l=0;return l|0}function lt(e,t,i,s,l,c,u,p,f,A,h,m){e=e|0;t=t|0;i=i|0;s=s|0;l=l|0;c=c|0;u=u|0;p=p|0;f=f|0;A=A|0;h=h|0;m=m|0;var g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0,I=0,E=0,O=0,B=0,L=0,D=0,M=0,N=0,j=0,P=0,U=0,F=0,R=0,Q=0,H=0,z=0,q=0,G=0,$=0,V=0,Y=0,K=0,W=0,X=0;X=d;d=d+304|0;H=X+192|0;F=X+168|0;q=X+148|0;Y=X+216|0;G=X+146|0;$=X+144|0;R=X+124|0;Q=X+104|0;z=X+84|0;V=X+60|0;P=X+40|0;j=X;W=e+404|0;K=e+400|0;if((n[W>>1]|0)!=0?(n[K>>1]|0)!=0:0){N=e+394|0;n[N>>1]=n[636+(u<<1)>>1]|0;k=n[e+212>>1]|0;x=k+10|0;Gn(e+52+(((x&65535|0)==80?0:x<<16>>16)<<1)|0,e+52+(k<<1)|0,20)|0;k=n[e+392>>1]|0;x=k+1|0;n[e+376+(((x&65535|0)==8?0:x<<16>>16)<<1)>>1]=n[e+376+(k<<1)>>1]|0;x=e+4|0;n[x>>1]=0;k=j+36|0;T=j+32|0;S=j+28|0;I=j+24|0;E=j+20|0;O=j+16|0;B=j+12|0;L=j+8|0;D=j+4|0;M=e+52|0;b=j;U=b+40|0;do{r[b>>2]=0;b=b+4|0}while((b|0)<(U|0));v=0;g=7;while(1){U=n[e+376+(g<<1)>>1]|0;C=U<<16>>16;if(U<<16>>16<0)C=~((C^-8)>>3);else C=C>>>3;v=$a(v,C&65535,m)|0;n[x>>1]=v;_=g*10|0;b=9;while(1){y=j+(b<<2)|0;w=r[y>>2]|0;U=n[e+52+(b+_<<1)>>1]|0;C=U+w|0;if((U^w|0)>-1&(C^w|0)<0){r[m>>2]=1;C=(w>>>31)+2147483647|0}r[y>>2]=C;if((b|0)>0)b=b+-1|0;else break}if((g|0)<=0)break;else g=g+-1|0}n[P+18>>1]=(r[k>>2]|0)>>>3;n[P+16>>1]=(r[T>>2]|0)>>>3;n[P+14>>1]=(r[S>>2]|0)>>>3;n[P+12>>1]=(r[I>>2]|0)>>>3;n[P+10>>1]=(r[E>>2]|0)>>>3;n[P+8>>1]=(r[O>>2]|0)>>>3;n[P+6>>1]=(r[B>>2]|0)>>>3;n[P+4>>1]=(r[L>>2]|0)>>>3;n[P+2>>1]=(r[D>>2]|0)>>>3;n[P>>1]=(r[j>>2]|0)>>>3;mn(P,e+12|0,10,m);n[x>>1]=jn(n[x>>1]|0,n[N>>1]|0,m)|0;qn(e+214|0,M|0,160)|0;P=9;while(1){U=n[e+214+(P+70<<1)>>1]|0;y=U<<16>>16;j=n[e+214+(P+60<<1)>>1]|0;b=(j<<16>>16)+y|0;if((j^U)<<16>>16>-1&(b^y|0)<0){r[m>>2]=1;b=(y>>>31)+2147483647|0}U=n[e+214+(P+50<<1)>>1]|0;y=U+b|0;if((U^b|0)>-1&(y^b|0)<0){r[m>>2]=1;y=(b>>>31)+2147483647|0}U=n[e+214+(P+40<<1)>>1]|0;b=U+y|0;if((U^y|0)>-1&(b^y|0)<0){r[m>>2]=1;b=(y>>>31)+2147483647|0}U=n[e+214+(P+30<<1)>>1]|0;y=U+b|0;if((U^b|0)>-1&(y^b|0)<0){r[m>>2]=1;y=(b>>>31)+2147483647|0}U=n[e+214+(P+20<<1)>>1]|0;b=U+y|0;if((U^y|0)>-1&(b^y|0)<0){r[m>>2]=1;b=(y>>>31)+2147483647|0}U=n[e+214+(P+10<<1)>>1]|0;y=U+b|0;if((U^b|0)>-1&(y^b|0)<0){r[m>>2]=1;b=(b>>>31)+2147483647|0}else b=y;U=n[e+214+(P<<1)>>1]|0;y=U+b|0;if((U^b|0)>-1&(y^b|0)<0){r[m>>2]=1;y=(b>>>31)+2147483647|0}if((y|0)<0)y=~((y^-8)>>3);else y=y>>>3;C=y&65535;_=n[654+(P<<1)>>1]|0;w=7;while(1){g=e+214+((w*10|0)+P<<1)|0;y=jn(n[g>>1]|0,C,m)|0;n[g>>1]=y;y=(ee(_,y<<16>>16)|0)>>15;if((y|0)>32767){r[m>>2]=1;y=32767}n[g>>1]=y;v=(y&65535)-(y>>>15&1)|0;v=v<<16>>31^v;b=v&65535;if(b<<16>>16>655)b=(((v<<16>>16)+261489|0)>>>2)+655&65535;b=b<<16>>16>1310?1310:b;if(!(y&32768))y=b;else y=0-(b&65535)&65535;n[g>>1]=y;if((w|0)>0)w=w+-1|0;else break}if((P|0)>0)P=P+-1|0;else break}}if(n[K>>1]|0){C=e+32|0;w=e+12|0;b=C;_=w;U=b+20|0;do{a[b>>0]=a[_>>0]|0;b=b+1|0;_=_+1|0}while((b|0)<(U|0));_=e+4|0;v=n[_>>1]|0;g=e+6|0;n[g>>1]=v;do{if(n[e+402>>1]|0){b=n[e>>1]|0;n[e>>1]=0;b=b<<16>>16<32?b:32;U=b<<16>>16;y=U<<10;if((y|0)!=(U<<26>>16|0)){r[m>>2]=1;y=b<<16>>16>0?32767:-32768}if(b<<16>>16>1)y=Ya(1024,y&65535)|0;else y=16384;n[e+2>>1]=y;nt(i,n[p>>1]|0,r[f+60>>2]|0);at(i,8,0,p+2|0,f,w,m);b=i;U=b+20|0;do{a[b>>0]=0;b=b+1|0}while((b|0)<(U|0));v=n[p+8>>1]|0;v=v<<16>>16==0?-32768:((v+64&65535)>127?v<<16>>16>0?32767:32768:v<<16>>16<<9)+60416&65535;n[_>>1]=v;if((n[e+412>>1]|0)!=0?(r[e+408>>2]|0)!=0:0)break;b=C;_=w;U=b+20|0;do{a[b>>0]=a[_>>0]|0;b=b+1|0;_=_+1|0}while((b|0)<(U|0));n[g>>1]=v}}while(0);b=v<<16>>16;if(v<<16>>16<0)b=~((b^-2)>>1);else b=b>>>1;b=b+56536|0;y=b<<16;if((y|0)>0)b=0;else b=(y|0)<-946077696?-14436:b&65535;n[s>>1]=b;n[s+2>>1]=b;n[s+4>>1]=b;n[s+6>>1]=b;p=((b<<16>>16)*5443|0)>>>15&65535;n[s+8>>1]=p;n[s+10>>1]=p;n[s+12>>1]=p;n[s+14>>1]=p}b=((n[636+(u<<1)>>1]|0)*104864|0)>>>15<<16;if((b|0)<0)b=~((b>>16^-32)>>5);else b=b>>21;u=e+394|0;n[u>>1]=$a(((n[u>>1]|0)*29491|0)>>>15&65535,b&65535,m)|0;s=(o[e>>1]<<16)+65536|0;b=s>>16;f=e+2|0;b=(ee(((s<<10>>26|0)==(b|0)?s>>>6:b>>>15^32767)<<16>>16,n[f>>1]|0)|0)>>15;if((b|0)>32767){r[m>>2]=1;b=32767}v=b&65535;if(v<<16>>16<=1024)if(v<<16>>16<-2048)w=-32768;else w=b<<4&65535;else w=16384;p=e+4|0;C=w<<16>>16;y=ee(n[p>>1]|0,C)|0;if((y|0)==1073741824){r[m>>2]=1;P=2147483647}else P=y<<1;y=(ee(n[e+30>>1]|0,C)|0)>>15;if((y|0)>32767){r[m>>2]=1;y=32767}x=y&65535;n[H+18>>1]=x;y=(ee(n[e+28>>1]|0,C)|0)>>15;if((y|0)>32767){r[m>>2]=1;y=32767}n[H+16>>1]=y;y=(ee(n[e+26>>1]|0,C)|0)>>15;if((y|0)>32767){r[m>>2]=1;y=32767}n[H+14>>1]=y;y=(ee(n[e+24>>1]|0,C)|0)>>15;if((y|0)>32767){r[m>>2]=1;y=32767}n[H+12>>1]=y;y=(ee(n[e+22>>1]|0,C)|0)>>15;if((y|0)>32767){r[m>>2]=1;y=32767}n[H+10>>1]=y;y=(ee(n[e+20>>1]|0,C)|0)>>15;if((y|0)>32767){r[m>>2]=1;y=32767}n[H+8>>1]=y;y=(ee(n[e+18>>1]|0,C)|0)>>15;if((y|0)>32767){r[m>>2]=1;y=32767}n[H+6>>1]=y;y=(ee(n[e+16>>1]|0,C)|0)>>15;if((y|0)>32767){r[m>>2]=1;y=32767}n[H+4>>1]=y;y=(ee(n[e+14>>1]|0,C)|0)>>15;if((y|0)>32767){r[m>>2]=1;y=32767}n[H+2>>1]=y;y=(ee(n[e+12>>1]|0,C)|0)>>15;if((y|0)>32767){r[m>>2]=1;y=32767}n[H>>1]=y;s=e+6|0;C=16384-(w&65535)<<16>>16;y=ee(n[s>>1]|0,C)|0;if((y|0)!=1073741824){b=(y<<1)+P|0;if((y^P|0)>0&(b^P|0)<0){r[m>>2]=1;j=(P>>>31)+2147483647|0}else j=b}else{r[m>>2]=1;j=2147483647}b=x;_=9;while(1){v=H+(_<<1)|0;y=(ee(n[e+32+(_<<1)>>1]|0,C)|0)>>15;if((y|0)>32767){r[m>>2]=1;y=32767}b=$a(b,y&65535,m)|0;n[v>>1]=b;U=b<<16>>16;y=U<<1;if((y|0)!=(U<<17>>16|0)){r[m>>2]=1;y=b<<16>>16>0?32767:-32768}n[v>>1]=y;y=_+-1|0;if((_|0)<=0)break;b=n[H+(y<<1)>>1]|0;_=y}P=e+374|0;y=((o[P>>1]<<16)+-161021952>>16)*9830>>15;if((y|0)>32767){r[m>>2]=1;y=32767}y=4096-(y&65535)|0;b=y<<16;if((b|0)>268369920)C=32767;else C=(b|0)<0?0:y<<19>>16;N=e+8|0;y=Ne(N,3)|0;gn(H,R,10,m);b=Q;_=R;U=b+20|0;do{n[b>>1]=n[_>>1]|0;b=b+2|0;_=_+2|0}while((b|0)<(U|0));b=(y<<16>>16)*10|0;_=9;while(1){v=Q+(_<<1)|0;g=n[v>>1]|0;y=(ee(n[e+214+(_+b<<1)>>1]|0,C)|0)>>15;if((y|0)>32767){r[m>>2]=1;y=32767}n[v>>1]=$a(g,y&65535,m)|0;if((_|0)>0)_=_+-1|0;else break}On(R,205,10,m);On(Q,205,10,m);b=i+20|0;_=R;U=b+20|0;do{a[b>>0]=a[_>>0]|0;b=b+1|0;_=_+1|0}while((b|0)<(U|0));mn(R,H,10,m);mn(Q,z,10,m);dn(H,F,m);dn(z,V,m);b=h;_=F;U=b+22|0;do{a[b>>0]=a[_>>0]|0;b=b+1|0;_=_+1|0}while((b|0)<(U|0));b=h+22|0;_=F;U=b+22|0;do{a[b>>0]=a[_>>0]|0;b=b+1|0;_=_+1|0}while((b|0)<(U|0));b=h+44|0;_=F;U=b+22|0;do{a[b>>0]=a[_>>0]|0;b=b+1|0;_=_+1|0}while((b|0)<(U|0));b=h+66|0;_=F;U=b+22|0;do{a[b>>0]=a[_>>0]|0;b=b+1|0;_=_+1|0}while((b|0)<(U|0));Me(F+2|0,q,m);y=0;b=32767;do{v=n[q+(y<<1)>>1]|0;v=ee(v,v)|0;if(v>>>0<1073741824)v=32767-(v>>>15)|0;else{r[m>>2]=1;v=0}b=(ee(v<<16>>16,b<<16>>16)|0)>>15;if((b|0)>32767){r[m>>2]=1;b=32767}y=y+1|0}while((y|0)!=10);on(b<<16>>16,G,$,m);b=(o[G>>1]<<16)+-983040|0;v=b>>16;v=Dn(jn(0,$a(((b<<12>>28|0)==(v|0)?b>>>4:v>>>15^32767)&65535,Dn(n[$>>1]|0,3,m)|0,m)|0,m)|0,1,m)|0;b=(n[P>>1]|0)*29491>>15;if((b|0)>32767){r[m>>2]=1;b=32767}y=v<<16>>16;v=y*3277>>15;if((v|0)>32767){r[m>>2]=1;v=32767}n[P>>1]=$a(b&65535,v&65535,m)|0;v=j>>10;g=v+262144|0;if((v|0)>-1&(g^v|0)<0){r[m>>2]=1;g=(v>>>31)+2147483647|0}$=y<<4;v=g-$|0;if(((v^g)&(g^$)|0)<0){r[m>>2]=1;g=(g>>>31)+2147483647|0}else g=v;$=n[u>>1]<<5;v=$+g|0;if(($^g|0)>-1&(v^g|0)<0){r[m>>2]=1;v=(g>>>31)+2147483647|0}y=(_n(v>>>16&65535,v>>>1&32767,m)|0)<<16>>16;je(N,Y,m);g=39;while(1){b=Y+(g<<1)|0;v=(ee(n[b>>1]|0,y)|0)>>15;if((v|0)>32767){r[m>>2]=1;v=32767}n[b>>1]=v;if((g|0)>0)g=g+-1|0;else break}Pn(V,Y,A,40,t,1);je(N,Y,m);g=39;while(1){b=Y+(g<<1)|0;v=(ee(n[b>>1]|0,y)|0)>>15;if((v|0)>32767){r[m>>2]=1;v=32767}n[b>>1]=v;if((g|0)>0)g=g+-1|0;else break}Pn(V,Y,A+80|0,40,t,1);je(N,Y,m);g=39;while(1){b=Y+(g<<1)|0;v=(ee(n[b>>1]|0,y)|0)>>15;if((v|0)>32767){r[m>>2]=1;v=32767}n[b>>1]=v;if((g|0)>0)g=g+-1|0;else break}Pn(V,Y,A+160|0,40,t,1);je(N,Y,m);b=39;while(1){g=Y+(b<<1)|0;v=(ee(n[g>>1]|0,y)|0)>>15;if((v|0)>32767){r[m>>2]=1;v=32767}n[g>>1]=v;if((b|0)>0)b=b+-1|0;else break}Pn(V,Y,A+240|0,40,t,1);n[l+14>>1]=20;n[l+16>>1]=0;if((c|0)==2){v=n[e>>1]|0;v=v<<16>>16>32?32:v<<16>>16<1?8:v;A=v<<16>>16;g=A<<10;if((g|0)!=(A<<26>>16|0)){r[m>>2]=1;g=v<<16>>16>0?32767:-32768}n[f>>1]=Ya(1024,g&65535)|0;n[e>>1]=0;b=e+32|0;_=e+12|0;U=b+20|0;do{a[b>>0]=a[_>>0]|0;b=b+1|0;_=_+1|0}while((b|0)<(U|0));m=n[p>>1]|0;n[s>>1]=m;n[p>>1]=(m&65535)+65280}if(!(n[K>>1]|0)){d=X;return}do{if(!(n[e+402>>1]|0)){if(n[W>>1]|0)break;d=X;return}}while(0);n[e>>1]=0;n[e+412>>1]=1;d=X;return}function ct(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var s=0,l=0,c=0,u=0,p=0,f=0;p=d;d=d+16|0;c=p+2|0;u=p;n[u>>1]=0;l=e+212|0;s=(o[l>>1]|0)+10|0;s=(s&65535|0)==80?0:s&65535;n[l>>1]=s;Gn(e+52+(s<<16>>16<<1)|0,t|0,20)|0;s=0;l=159;while(1){f=n[i+(l<<1)>>1]|0;f=ee(f,f)|0;f=(f|0)==1073741824?2147483647:f<<1;t=f+s|0;if((f^s|0)>-1&(t^s|0)<0){r[a>>2]=1;s=(s>>>31)+2147483647|0}else s=t;if((l|0)>0)l=l+-1|0;else break}on(s,c,u,a);s=n[c>>1]|0;f=s<<16>>16;t=f<<10;if((t|0)!=(f<<26>>16|0)){r[a>>2]=1;t=s<<16>>16>0?32767:-32768}n[c>>1]=t;f=n[u>>1]|0;s=f<<16>>16;if(f<<16>>16<0)s=~((s^-32)>>5);else s=s>>>5;u=e+392|0;f=(o[u>>1]|0)+1|0;f=(f&65535|0)==8?0:f&65535;n[u>>1]=f;n[e+376+(f<<16>>16<<1)>>1]=s+57015+t;d=p;return}function ut(e,t,i){e=e|0;t=t|0;i=i|0;var a=0,s=0,l=0,c=0,u=0,d=0,p=0,f=0;d=(t|0)==4;p=(t|0)==5;f=(t|0)==6;a=r[e+408>>2]|0;e:do{if((t+-4|0)>>>0<3)u=4;else{if((a+-1|0)>>>0<2)switch(t|0){case 2:case 3:case 7:{u=4;break e}default:{}}n[e>>1]=0;c=0}}while(0);if((u|0)==4){e:do{if((a|0)==2){switch(t|0){case 2:case 4:case 6:case 7:break;default:{s=1;break e}}s=2}else s=1}while(0);c=(o[e>>1]|0)+1&65535;n[e>>1]=c;c=(t|0)!=5&c<<16>>16>50?2:s}l=e+398|0;if(p&(n[e+412>>1]|0)==0){n[l>>1]=0;s=0}else s=n[l>>1]|0;s=$a(s,1,i)|0;n[l>>1]=s;i=e+404|0;n[i>>1]=0;e:do{switch(t|0){case 2:case 4:case 5:case 6:case 7:{if(!((t|0)==7&(c|0)==0)){if(s<<16>>16>30){n[i>>1]=1;n[l>>1]=0;n[e+396>>1]=0;break e}s=e+396|0;a=n[s>>1]|0;if(!(a<<16>>16)){n[l>>1]=0;break e}else{n[s>>1]=(a&65535)+65535;break e}}else u=14;break}default:u=14}}while(0);if((u|0)==14)n[e+396>>1]=7;if(!c)return c|0;s=e+400|0;n[s>>1]=0;a=e+402|0;n[a>>1]=0;if(d){n[s>>1]=1;return c|0}if(p){n[s>>1]=1;n[a>>1]=1;return c|0}if(!f)return c|0;n[s>>1]=1;n[i>>1]=0;return c|0}function dt(e){e=e|0;if(!e){e=-1;return e|0}n[e>>1]=1;n[e+2>>1]=1;n[e+4>>1]=1;n[e+6>>1]=1;n[e+8>>1]=1;n[e+10>>1]=0;n[e+12>>1]=1;e=0;return e|0}function pt(e,t,i,a,s){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;var o=0,l=0,c=0,u=0;u=d;d=d+16|0;c=u+2|0;l=u;o=en(e,5)|0;e=e+10|0;if((jn(o,n[e>>1]|0,s)|0)<<16>>16>0)o=n[e>>1]|0;o=(ee(n[674+(i<<16>>16<<1)>>1]|0,o<<16>>16)|0)>>15;if((o|0)>32767){r[s>>2]=1;o=32767}n[a>>1]=o;Ja(t,c,l,s);Xa(t,n[c>>1]|0,n[l>>1]|0);d=u;return}function ft(e,t,i,a,r){e=e|0;t=t|0;i=i|0;a=a|0;r=r|0;if(!(t<<16>>16)){if(i<<16>>16){t=e+12|0;if((jn(n[a>>1]|0,n[t>>1]|0,r)|0)<<16>>16>0)n[a>>1]=n[t>>1]|0}else t=e+12|0;n[t>>1]=n[a>>1]|0}n[e+10>>1]=n[a>>1]|0;r=e+2|0;n[e>>1]=n[r>>1]|0;i=e+4|0;n[r>>1]=n[i>>1]|0;r=e+6|0;n[i>>1]=n[r>>1]|0;e=e+8|0;n[r>>1]=n[e>>1]|0;n[e>>1]=n[a>>1]|0;return}function At(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var s=0;s=en(e,5)|0;e=e+10|0;if((jn(s,n[e>>1]|0,a)|0)<<16>>16>0)s=n[e>>1]|0;s=(ee(n[688+(t<<16>>16<<1)>>1]|0,s<<16>>16)|0)>>15;if((s|0)<=32767){a=s;a=a&65535;n[i>>1]=a;return}r[a>>2]=1;a=32767;a=a&65535;n[i>>1]=a;return}function ht(e){e=e|0;if(!e){e=-1;return e|0}n[e>>1]=1640;n[e+2>>1]=1640;n[e+4>>1]=1640;n[e+6>>1]=1640;n[e+8>>1]=1640;n[e+10>>1]=0;n[e+12>>1]=16384;e=0;return e|0}function mt(e,t,i,a,r){e=e|0;t=t|0;i=i|0;a=a|0;r=r|0;if(!(t<<16>>16)){if(i<<16>>16){t=e+12|0;if((jn(n[a>>1]|0,n[t>>1]|0,r)|0)<<16>>16>0)n[a>>1]=n[t>>1]|0}else t=e+12|0;n[t>>1]=n[a>>1]|0}a=n[a>>1]|0;t=e+10|0;n[t>>1]=a;if((jn(a,16384,r)|0)<<16>>16>0){n[t>>1]=16384;t=16384}else t=n[t>>1]|0;r=e+2|0;n[e>>1]=n[r>>1]|0;a=e+4|0;n[r>>1]=n[a>>1]|0;r=e+6|0;n[a>>1]=n[r>>1]|0;e=e+8|0;n[r>>1]=n[e>>1]|0;n[e>>1]=t;return}function gt(e,t,i,a,s,o,l){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;o=o|0;l=l|0;var c=0,u=0,d=0;u=en(i,9)|0;d=n[i+16>>1]|0;c=d<<16>>16;i=(c+(n[i+14>>1]|0)|0)>>>1;i=(c|0)<(i<<16>>16|0)?d:i&65535;if(!(t<<16>>16>5?u<<16>>16>t<<16>>16:0))return 0;c=i<<16>>16;c=((c<<18>>18|0)==(c|0)?c<<2:c>>>15^32767)&65535;if(!(a<<16>>16>6&s<<16>>16==0))c=jn(c,i,l)|0;u=u<<16>>16>c<<16>>16?c:u;d=yn(t)|0;c=d<<16>>16;if(d<<16>>16<0){i=0-c<<16;if((i|0)<983040)c=t<<16>>16>>(i>>16)&65535;else c=0}else{i=t<<16>>16;s=i<<c;if((s<<16>>16>>c|0)==(i|0))c=s&65535;else c=(i>>>15^32767)&65535}a=ee((Ya(16383,c)|0)<<16>>16,u<<16>>16)|0;if((a|0)==1073741824){r[l>>2]=1;s=2147483647}else s=a<<1;a=jn(20,d,l)|0;c=a<<16>>16;if(a<<16>>16>0)a=a<<16>>16<31?s>>c:0;else{t=0-c<<16>>16;a=s<<t;a=(a>>t|0)==(s|0)?a:s>>31^2147483647}a=(a|0)>32767?32767:a&65535;a=o<<16>>16!=0&a<<16>>16>3072?3072:a<<16>>16;i=0;do{s=e+(i<<1)|0;c=ee(n[s>>1]|0,a)|0;if((c|0)==1073741824){r[l>>2]=1;c=2147483647}else c=c<<1;n[s>>1]=c>>>11;i=i+1|0}while((i|0)!=40);return 0}function vt(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var o=0,l=0,c=0,u=0;o=r[a+104>>2]|0;l=r[a+96>>2]|0;if(e>>>0>=8){n[i>>1]=(s[t>>0]|0)>>>4&1;n[i+2>>1]=(s[t>>0]|0)>>>5&1;n[i+4>>1]=(s[t>>0]|0)>>>6&1;n[i+6>>1]=(s[t>>0]|0)>>>7&255;o=o+(e<<1)|0;if((n[o>>1]|0)>1){e=1;a=1;l=4}else return;while(1){c=t+e|0;e=l|1;n[i+(l<<16>>16<<1)>>1]=s[c>>0]&1;n[i+(e<<16>>16<<1)>>1]=(s[c>>0]|0)>>>1&1;u=l|3;n[i+(e+1<<16>>16<<16>>16<<1)>>1]=(s[c>>0]|0)>>>2&1;n[i+(u<<16>>16<<1)>>1]=(s[c>>0]|0)>>>3&1;n[i+(u+1<<16>>16<<16>>16<<1)>>1]=(s[c>>0]|0)>>>4&1;n[i+(u+2<<16>>16<<16>>16<<1)>>1]=(s[c>>0]|0)>>>5&1;n[i+(u+3<<16>>16<<16>>16<<1)>>1]=(s[c>>0]|0)>>>6&1;n[i+(u+4<<16>>16<<16>>16<<1)>>1]=(s[c>>0]|0)>>>7&255;a=a+1<<16>>16;if(a<<16>>16<(n[o>>1]|0)){e=a<<16>>16;l=l+8<<16>>16}else break}return}u=r[(r[a+100>>2]|0)+(e<<2)>>2]|0;n[i+(n[u>>1]<<1)>>1]=(s[t>>0]|0)>>>4&1;n[i+(n[u+2>>1]<<1)>>1]=(s[t>>0]|0)>>>5&1;n[i+(n[u+4>>1]<<1)>>1]=(s[t>>0]|0)>>>6&1;n[i+(n[u+6>>1]<<1)>>1]=(s[t>>0]|0)>>>7&255;c=o+(e<<1)|0;if((n[c>>1]|0)<=1)return;a=l+(e<<1)|0;o=1;e=1;l=4;while(1){o=t+o|0;l=l<<16>>16;if((l|0)<(n[a>>1]|0)){n[i+(n[u+(l<<1)>>1]<<1)>>1]=s[o>>0]&1;l=l+1|0;if((l|0)<(n[a>>1]|0)){n[i+(n[u+(l<<1)>>1]<<1)>>1]=(s[o>>0]|0)>>>1&1;l=l+1|0;if((l|0)<(n[a>>1]|0)){n[i+(n[u+(l<<1)>>1]<<1)>>1]=(s[o>>0]|0)>>>2&1;l=l+1|0;if((l|0)<(n[a>>1]|0)){n[i+(n[u+(l<<1)>>1]<<1)>>1]=(s[o>>0]|0)>>>3&1;l=l+1|0;if((l|0)<(n[a>>1]|0)){n[i+(n[u+(l<<1)>>1]<<1)>>1]=(s[o>>0]|0)>>>4&1;l=l+1|0;if((l|0)<(n[a>>1]|0)){n[i+(n[u+(l<<1)>>1]<<1)>>1]=(s[o>>0]|0)>>>5&1;l=l+1|0;if((l|0)<(n[a>>1]|0)){n[i+(n[u+(l<<1)>>1]<<1)>>1]=(s[o>>0]|0)>>>6&1;l=l+1|0;if((l|0)<(n[a>>1]|0)){n[i+(n[u+(l<<1)>>1]<<1)>>1]=(s[o>>0]|0)>>>7&1;l=l+1|0}}}}}}}}e=e+1<<16>>16;if(e<<16>>16<(n[c>>1]|0))o=e<<16>>16;else break}return}function bt(e,t,i,a,r){e=e|0;t=t|0;i=i|0;a=a|0;r=r|0;var s=0,o=0,l=0,c=0;switch(i<<16>>16){case 0:{c=9;while(1){l=n[e+(c<<1)>>1]|0;i=l<<16>>16;if(l<<16>>16<0)i=~((i^-4)>>2);else i=i>>>2;o=n[t+(c<<1)>>1]|0;s=o<<16>>16;if(o<<16>>16<0)o=~((s^-4)>>2);else o=s>>>2;n[a+(c<<1)>>1]=$a((l&65535)-i&65535,o&65535,r)|0;if((c|0)>0)c=c+-1|0;else break}return}case 40:{o=9;while(1){r=n[e+(o<<1)>>1]|0;i=r<<16>>16;if(r<<16>>16<0)s=~((i^-2)>>1);else s=i>>>1;r=n[t+(o<<1)>>1]|0;i=r<<16>>16;if(r<<16>>16<0)i=~((i^-2)>>1);else i=i>>>1;n[a+(o<<1)>>1]=i+s;if((o|0)>0)o=o+-1|0;else break}return}case 80:{c=9;while(1){l=n[e+(c<<1)>>1]|0;i=l<<16>>16;if(l<<16>>16<0)l=~((i^-4)>>2);else l=i>>>2;i=n[t+(c<<1)>>1]|0;s=i<<16>>16;if(i<<16>>16<0)o=~((s^-4)>>2);else o=s>>>2;n[a+(c<<1)>>1]=$a(l&65535,(i&65535)-o&65535,r)|0;if((c|0)>0)c=c+-1|0;else break}return}case 120:{n[a+18>>1]=n[t+18>>1]|0;n[a+16>>1]=n[t+16>>1]|0;n[a+14>>1]=n[t+14>>1]|0;n[a+12>>1]=n[t+12>>1]|0;n[a+10>>1]=n[t+10>>1]|0;n[a+8>>1]=n[t+8>>1]|0;n[a+6>>1]=n[t+6>>1]|0;n[a+4>>1]=n[t+4>>1]|0;n[a+2>>1]=n[t+2>>1]|0;n[a>>1]=n[t>>1]|0;return}default:return}}function yt(e,t){e=e|0;t=t|0;if(!e){e=-1;return e|0}Gn(e|0,t|0,20)|0;e=0;return e|0}function _t(e,t,i){e=e|0;t=t|0;i=i|0;var a=0,s=0,o=0,l=0,c=0,u=0,d=0;d=0;do{u=e+(d<<1)|0;a=n[u>>1]|0;l=a&65535;c=l<<16;a=a<<16>>16;if((a*5243|0)==1073741824){r[i>>2]=1;o=2147483647}else o=a*10486|0;s=c-o|0;if(((s^c)&(o^c)|0)<0){r[i>>2]=1;o=(l>>>15)+2147483647|0}else o=s;a=n[t+(d<<1)>>1]|0;s=a*5243|0;if((s|0)!=1073741824){a=(a*10486|0)+o|0;if((s^o|0)>0&(a^o|0)<0){r[i>>2]=1;a=(o>>>31)+2147483647|0}}else{r[i>>2]=1;a=2147483647}n[u>>1]=Ln(a,i)|0;d=d+1|0}while((d|0)!=10);return}function wt(e){e=e|0;var t=0;if(!e){t=-1;return t|0}t=e+18|0;do{n[e>>1]=0;e=e+2|0}while((e|0)<(t|0));t=0;return t|0}function Ct(e){e=e|0;n[e+14>>1]=1;return}function xt(e){e=e|0;n[e+14>>1]=0;return}function kt(e,t,i,a,s,o,l,c,u,p){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;o=o|0;l=l|0;c=c|0;u=u|0;p=p|0;var f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0,I=0;I=d;d=d+160|0;k=I+80|0;T=I;_=r[u+120>>2]|0;w=r[u+124>>2]|0;C=r[u+128>>2]|0;y=r[u+132>>2]|0;A=e+6|0;b=e+8|0;n[b>>1]=n[A>>1]|0;g=e+4|0;n[A>>1]=n[g>>1]|0;v=e+2|0;n[g>>1]=n[v>>1]|0;n[v>>1]=n[e>>1]|0;n[e>>1]=s;u=s<<16>>16<14746?s<<16>>16>9830&1:2;f=e+12|0;s=n[f>>1]|0;h=s<<15;do{if((h|0)<=536870911)if((h|0)<-536870912){r[p>>2]=1;s=-2147483648;break}else{s=s<<17;break}else{r[p>>2]=1;s=2147483647}}while(0);x=a<<16>>16;m=e+16|0;if((Ln(s,p)|0)<<16>>16>=a<<16>>16){h=n[m>>1]|0;if(h<<16>>16>0){h=(h&65535)+65535&65535;n[m>>1]=h}if(!(h<<16>>16)){s=(n[e>>1]|0)<9830;s=(n[v>>1]|0)<9830?s?2:1:s&1;if((n[g>>1]|0)<9830)s=(s&65535)+1&65535;if((n[A>>1]|0)<9830)s=(s&65535)+1&65535;if((n[b>>1]|0)<9830)s=(s&65535)+1&65535;h=0;u=s<<16>>16>2?0:u}}else{n[m>>1]=2;h=2}v=u<<16>>16;b=e+10|0;v=(h<<16>>16==0?(v|0)>((n[b>>1]|0)+1|0):0)?v+65535&65535:u;e=(n[e+14>>1]|0)==1?0:a<<16>>16<10?2:v<<16>>16<2&h<<16>>16>0?(v&65535)+1&65535:v;n[b>>1]=e;n[f>>1]=a;switch(t|0){case 4:case 6:case 7:break;default:if(e<<16>>16<2){h=0;u=0;A=o;f=k;while(1){if(!(n[A>>1]|0))s=0;else{u=u<<16>>16;n[T+(u<<1)>>1]=h;s=n[A>>1]|0;u=u+1&65535}n[f>>1]=s;n[A>>1]=0;h=h+1<<16>>16;if(h<<16>>16>=40){b=u;break}else{A=A+2|0;f=f+2|0}}v=e<<16>>16==0;v=(t|0)==5?v?_:w:v?C:y;if(b<<16>>16>0){g=0;do{m=n[T+(g<<1)>>1]|0;u=m<<16>>16;e=n[k+(u<<1)>>1]|0;if(m<<16>>16<40){h=e<<16>>16;A=39-m&65535;f=m;u=o+(u<<1)|0;s=v;while(1){t=(ee(n[s>>1]|0,h)|0)>>>15&65535;n[u>>1]=$a(n[u>>1]|0,t,p)|0;f=f+1<<16>>16;if(f<<16>>16>=40)break;else{u=u+2|0;s=s+2|0}}if(m<<16>>16>0){u=v+(A+1<<1)|0;S=36}}else{u=v;S=36}if((S|0)==36){S=0;s=e<<16>>16;h=0;A=o;while(1){t=(ee(n[u>>1]|0,s)|0)>>>15&65535;n[A>>1]=$a(n[A>>1]|0,t,p)|0;h=h+1<<16>>16;if(h<<16>>16>=m<<16>>16)break;else{A=A+2|0;u=u+2|0}}}g=g+1|0}while((g&65535)<<16>>16!=b<<16>>16)}}}g=l<<16>>16;v=x<<1;s=c<<16>>16;f=0-s<<16;u=f>>16;if(c<<16>>16>0){h=0;A=i;while(1){e=ee(n[i+(h<<1)>>1]|0,g)|0;if((e|0)==1073741824){r[p>>2]=1;f=2147483647}else f=e<<1;c=ee(v,n[o>>1]|0)|0;e=c+f|0;if((c^f|0)>-1&(e^f|0)<0){r[p>>2]=1;e=(f>>>31)+2147483647|0}c=e<<s;n[A>>1]=Ln((c>>s|0)==(e|0)?c:e>>31^2147483647,p)|0;h=h+1|0;if((h|0)==40)break;else{o=o+2|0;A=A+2|0}}d=I;return}if((f|0)<2031616){h=0;A=i;while(1){e=ee(n[i+(h<<1)>>1]|0,g)|0;if((e|0)==1073741824){r[p>>2]=1;f=2147483647}else f=e<<1;c=ee(v,n[o>>1]|0)|0;e=c+f|0;if((c^f|0)>-1&(e^f|0)<0){r[p>>2]=1;e=(f>>>31)+2147483647|0}n[A>>1]=Ln(e>>u,p)|0;h=h+1|0;if((h|0)==40)break;else{o=o+2|0;A=A+2|0}}d=I;return}else{A=0;f=i;while(1){e=ee(n[i+(A<<1)>>1]|0,g)|0;if((e|0)==1073741824){r[p>>2]=1;e=2147483647}else e=e<<1;c=ee(v,n[o>>1]|0)|0;if((c^e|0)>-1&(c+e^e|0)<0)r[p>>2]=1;n[f>>1]=Ln(0,p)|0;A=A+1|0;if((A|0)==40)break;else{o=o+2|0;f=f+2|0}}d=I;return}}function Tt(e){e=e|0;if(!e){e=-1;return e|0}n[e>>1]=0;n[e+2>>1]=0;n[e+4>>1]=0;n[e+6>>1]=0;n[e+8>>1]=0;n[e+10>>1]=0;e=0;return e|0}function St(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var r=0,s=0,o=0,l=0,c=0,u=0,d=0,p=0,f=0,A=0,h=0,m=0,g=0;if(i<<16>>16<=0)return;r=e+10|0;c=e+8|0;d=e+4|0;p=e+6|0;f=e+2|0;s=n[d>>1]|0;o=n[p>>1]|0;l=n[e>>1]|0;u=n[f>>1]|0;A=0;while(1){h=n[r>>1]|0;m=n[c>>1]|0;n[r>>1]=m;g=n[t>>1]|0;n[c>>1]=g;h=((g<<16>>16)*7699|0)+((ee(l<<16>>16,-7667)|0)+(((s<<16>>16)*15836|0)+((o<<16>>16)*15836>>15))+((ee(u<<16>>16,-7667)|0)>>15))+(ee(m<<16>>16,-15398)|0)+((h<<16>>16)*7699|0)|0;m=h<<3;h=(m>>3|0)==(h|0)?m:h>>31^2147483647;m=h<<1;n[t>>1]=Ln((m>>1|0)==(h|0)?m:h>>31^2147483647,a)|0;l=n[d>>1]|0;n[e>>1]=l;u=n[p>>1]|0;n[f>>1]=u;s=h>>>16&65535;n[d>>1]=s;o=(h>>>1)-(h>>16<<15)&65535;n[p>>1]=o;A=A+1<<16>>16;if(A<<16>>16>=i<<16>>16)break;else t=t+2|0}return}function It(e){e=e|0;if(!e)e=-1;else{n[e>>1]=0;e=0}return e|0}function Et(e,t,i,a,s){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;var o=0,l=0,c=0,u=0;c=a<<16>>16;o=t+(c+-1<<1)|0;c=c+-2|0;u=n[o>>1]|0;if(a<<16>>16<2)a=i<<16>>16;else{a=i<<16>>16;l=0;t=t+(c<<1)|0;while(1){i=(ee(n[t>>1]|0,a)|0)>>15;if((i|0)>32767){r[s>>2]=1;i=32767}n[o>>1]=jn(n[o>>1]|0,i&65535,s)|0;o=o+-2|0;l=l+1<<16>>16;if((l<<16>>16|0)>(c|0))break;else t=t+-2|0}}a=(ee(n[e>>1]|0,a)|0)>>15;if((a|0)<=32767){c=a;c=c&65535;l=n[o>>1]|0;s=jn(l,c,s)|0;n[o>>1]=s;n[e>>1]=u;return}r[s>>2]=1;c=32767;c=c&65535;l=n[o>>1]|0;s=jn(l,c,s)|0;n[o>>1]=s;n[e>>1]=u;return}function Ot(e){e=e|0;var t=0,i=0,a=0;if(!e){a=-1;return a|0}$n(e+104|0,0,340)|0;t=e+102|0;i=e;a=i+100|0;do{n[i>>1]=0;i=i+2|0}while((i|0)<(a|0));Oe(t)|0;It(e+100|0)|0;a=0;return a|0}function Bt(e,t,i,s,o){e=e|0;t=t|0;i=i|0;s=s|0;o=o|0;var l=0,c=0,u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0;w=d;d=d+96|0;v=w+22|0;b=w;y=w+44|0;Gn(e+124|0,i|0,320)|0;A=y+22|0;h=e+100|0;m=e+80|0;g=e+102|0;if((t&-2|0)==6){f=0;while(1){Un(s,702,v);Un(s,722,b);p=e+104+(f+10<<1)|0;Bn(v,p,e,40);c=y;l=v;t=c+22|0;do{n[c>>1]=n[l>>1]|0;c=c+2|0;l=l+2|0}while((c|0)<(t|0));c=A;t=c+22|0;do{n[c>>1]=0;c=c+2|0}while((c|0)<(t|0));Pn(b,y,y,22,A,0);t=0;c=21;do{l=n[y+(c<<16>>16<<1)>>1]|0;l=ee(l,l)|0;if((l|0)==1073741824){_=7;break}u=l<<1;l=u+t|0;if((u^t|0)>-1&(l^t|0)<0){r[o>>2]=1;t=(t>>>31)+2147483647|0}else t=l;c=c+-1<<16>>16}while(c<<16>>16>-1);if((_|0)==7){_=0;r[o>>2]=1}u=t>>>16&65535;l=20;t=0;c=20;while(1){l=ee(n[y+(l+1<<1)>>1]|0,n[y+(l<<1)>>1]|0)|0;if((l|0)==1073741824){_=13;break}C=l<<1;l=C+t|0;if((C^t|0)>-1&(l^t|0)<0){r[o>>2]=1;t=(t>>>31)+2147483647|0}else t=l;l=(c&65535)+-1<<16>>16;if(l<<16>>16>-1){l=l<<16>>16;c=c+-1|0}else break}if((_|0)==13){_=0;r[o>>2]=1}t=t>>16;if((t|0)<1)t=0;else t=Ya((t*26214|0)>>>15&65535,u)|0;Et(h,e,t,40,o);t=i+(f<<1)|0;Pn(b,e,t,40,m,1);Be(g,p,t,29491,40,o);t=(f<<16)+2621440|0;if((t|0)<10485760){f=t>>16;s=s+22|0}else break}c=e+104|0;l=e+424|0;t=c+20|0;do{a[c>>0]=a[l>>0]|0;c=c+1|0;l=l+1|0}while((c|0)<(t|0));d=w;return}else{f=0;while(1){Un(s,742,v);Un(s,762,b);p=e+104+(f+10<<1)|0;Bn(v,p,e,40);c=y;l=v;t=c+22|0;do{n[c>>1]=n[l>>1]|0;c=c+2|0;l=l+2|0}while((c|0)<(t|0));c=A;t=c+22|0;do{n[c>>1]=0;c=c+2|0}while((c|0)<(t|0));Pn(b,y,y,22,A,0);t=0;c=21;do{l=n[y+(c<<16>>16<<1)>>1]|0;l=ee(l,l)|0;if((l|0)==1073741824){_=22;break}C=l<<1;l=C+t|0;if((C^t|0)>-1&(l^t|0)<0){r[o>>2]=1;t=(t>>>31)+2147483647|0}else t=l;c=c+-1<<16>>16}while(c<<16>>16>-1);if((_|0)==22){_=0;r[o>>2]=1}u=t>>>16&65535;l=20;t=0;c=20;while(1){l=ee(n[y+(l+1<<1)>>1]|0,n[y+(l<<1)>>1]|0)|0;if((l|0)==1073741824){_=28;break}C=l<<1;l=C+t|0;if((C^t|0)>-1&(l^t|0)<0){r[o>>2]=1;t=(t>>>31)+2147483647|0}else t=l;l=(c&65535)+-1<<16>>16;if(l<<16>>16>-1){l=l<<16>>16;c=c+-1|0}else break}if((_|0)==28){_=0;r[o>>2]=1}t=t>>16;if((t|0)<1)t=0;else t=Ya((t*26214|0)>>>15&65535,u)|0;Et(h,e,t,40,o);t=i+(f<<1)|0;Pn(b,e,t,40,m,1);Be(g,p,t,29491,40,o);t=(f<<16)+2621440|0;if((t|0)<10485760){f=t>>16;s=s+22|0}else break}c=e+104|0;l=e+424|0;t=c+20|0;do{a[c>>0]=a[l>>0]|0;c=c+1|0;l=l+1|0}while((c|0)<(t|0));d=w;return}}function Lt(e,t){e=e|0;t=t|0;var i=0,a=0;if(!e){e=-1;return e|0}r[e>>2]=0;i=Fn(1764)|0;if(!i){e=-1;return e|0}if((Ke(i)|0)<<16>>16==0?(a=i+1748|0,(Tt(a)|0)<<16>>16==0):0){We(i,0)|0;Ot(i+1304|0)|0;Tt(a)|0;r[i+1760>>2]=0;r[e>>2]=i;e=0;return e|0}t=r[i>>2]|0;if(!t){e=-1;return e|0}Rn(t);r[i>>2]=0;e=-1;return e|0}function Dt(e){e=e|0;var t=0;if(!e)return;t=r[e>>2]|0;if(!t)return;Rn(t);r[e>>2]=0;return}function Mt(e,t,i,a,s){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;var l=0,c=0,u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0;_=d;d=d+208|0;y=_+88|0;b=_;v=e+1164|0;l=r[e+1256>>2]|0;if((a+-5|0)>>>0<2){g=l+16|0;if((n[g>>1]|0)>0){m=r[(r[e+1260>>2]|0)+32>>2]|0;h=0;l=0;while(1){A=m+(h<<1)|0;p=n[A>>1]|0;if(p<<16>>16>0){u=i;f=0;c=0;while(1){c=o[u>>1]|c<<1&131070;f=f+1<<16>>16;if(f<<16>>16>=p<<16>>16)break;else u=u+2|0}c=c&65535}else c=0;n[y+(h<<1)>>1]=c;l=l+1<<16>>16;if(l<<16>>16<(n[g>>1]|0)){i=i+(n[A>>1]<<1)|0;h=l<<16>>16}else break}}}else{m=l+(t<<1)|0;if((n[m>>1]|0)>0){g=r[(r[e+1260>>2]|0)+(t<<2)>>2]|0;A=0;l=0;while(1){h=g+(A<<1)|0;p=n[h>>1]|0;if(p<<16>>16>0){u=i;f=0;c=0;while(1){c=o[u>>1]|c<<1&131070;f=f+1<<16>>16;if(f<<16>>16>=p<<16>>16)break;else u=u+2|0}c=c&65535}else c=0;n[y+(A<<1)>>1]=c;l=l+1<<16>>16;if(l<<16>>16<(n[m>>1]|0)){i=i+(n[h>>1]<<1)|0;A=l<<16>>16}else break}}}Xe(e,t,y,a,s,b);Bt(e+1304|0,t,s,b,v);St(e+1748|0,s,160,v);l=0;do{e=s+(l<<1)|0;n[e>>1]=o[e>>1]&65528;l=l+1|0}while((l|0)!=160);d=_;return}function Nt(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var l=0,c=0,u=0;c=r[a+100>>2]|0;u=(o[(r[a+96>>2]|0)+(e<<1)>>1]|0)+65535|0;a=u&65535;l=a<<16>>16>-1;if(e>>>0<8){if(!l)return;c=r[c+(e<<2)>>2]|0;l=u<<16>>16;while(1){n[i+(n[c+(l<<1)>>1]<<1)>>1]=(s[t+(l>>3)>>0]|0)>>>(l&7^7)&1;a=a+-1<<16>>16;if(a<<16>>16>-1)l=a<<16>>16;else break}return}else{if(!l)return;l=u<<16>>16;while(1){n[i+(l<<1)>>1]=(s[t+(l>>3)>>0]|0)>>>(l&7^7)&1;a=a+-1<<16>>16;if(a<<16>>16>-1)l=a<<16>>16;else break}return}}function jt(e,t,i){e=e|0;t=t|0;i=i|0;e=xa(e,i,31764)|0;return((_a(t)|0|e)<<16>>16!=0)<<31>>31|0}function Pt(e,t){e=e|0;t=t|0;ka(e);wa(t);return}function Ut(e,t,i,s,l,c,u){e=e|0;t=t|0;i=i|0;s=s|0;l=l|0;c=c|0;u=u|0;var p=0,f=0,A=0,h=0,m=0;m=d;d=d+512|0;p=m+8|0;f=m+4|0;A=m;r[A>>2]=0;h=u<<16>>16==3;if(!((u&65535)<2|h&1)){if(u<<16>>16!=2){l=-1;d=m;return l|0}Ta(e,i,s,p+2|0,A);e=r[A>>2]|0;r[c>>2]=e;Ca(t,e,f);t=r[f>>2]|0;n[p>>1]=t;n[p+490>>1]=(t|0)==3?-1:i&65535;a[l>>0]=t;t=1;do{p=p+1|0;a[l+t>>0]=a[p>>0]|0;t=t+1|0}while((t|0)!=492);p=492;d=m;return p|0}Ta(e,i,s,p,A);Ca(t,r[A>>2]|0,f);s=r[f>>2]|0;if((s|0)!=3){t=r[A>>2]|0;r[c>>2]=t;if((t|0)==8){switch(s|0){case 1:{n[p+70>>1]=0;break}case 2:{A=p+70|0;n[A>>1]=o[A>>1]|0|1;break}default:{}}n[p+72>>1]=i&1;n[p+74>>1]=i>>>1&1;n[p+76>>1]=i>>>2&1;t=8}}else{r[c>>2]=15;t=15}if(h){wi(t,p,l,(r[e+4>>2]|0)+2392|0);l=n[3404+(r[c>>2]<<16>>16<<1)>>1]|0;d=m;return l|0}switch(u<<16>>16){case 0:{_i(t,p,l,(r[e+4>>2]|0)+2392|0);l=n[3404+(r[c>>2]<<16>>16<<1)>>1]|0;d=m;return l|0}case 1:{yi(t,p,l,(r[e+4>>2]|0)+2392|0);l=n[3436+(r[c>>2]<<16>>16<<1)>>1]|0;d=m;return l|0}default:{l=-1;d=m;return l|0}}return 0}function Ft(e,t,i,a,r,s){e=e|0;t=t|0;i=i|0;a=a|0;r=r|0;s=s|0;var o=0,l=0,c=0,u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0;x=d;d=d+480|0;C=x;s=240;u=r;c=e;l=C;o=0;while(1){w=((ee(n[u>>1]|0,n[c>>1]|0)|0)+16384|0)>>>15;n[l>>1]=w;w=w<<16;o=(ee(w>>15,w>>16)|0)+o|0;if((o|0)<0){p=4;break}s=s+-1|0;if(!((s&65535)<<16>>16)){s=0;break}else{u=u+2|0;c=c+2|0;l=l+2|0}}if((p|0)==4){o=s&65535;l=240-s|0;if(!(o<<16>>16))s=0;else{u=o;c=r+(l<<1)|0;s=e+(l<<1)|0;o=C+(l<<1)|0;while(1){n[o>>1]=((ee(n[c>>1]|0,n[s>>1]|0)|0)+16384|0)>>>15;u=u+-1<<16>>16;if(!(u<<16>>16)){s=0;break}else{c=c+2|0;s=s+2|0;o=o+2|0}}}do{c=s&65535;s=120;l=C;o=0;while(1){w=(n[l>>1]|0)>>>2;y=l+2|0;n[l>>1]=w;w=w<<16>>16;w=ee(w,w)|0;_=(n[y>>1]|0)>>>2;n[y>>1]=_;_=_<<16>>16;o=((ee(_,_)|0)+w<<1)+o|0;s=s+-1<<16>>16;if(!(s<<16>>16))break;else l=l+4|0}s=c+4|0}while((o|0)<1)}w=o+1|0;_=(bn(w)|0)<<16>>16;w=w<<_;n[i>>1]=w>>>16;n[a>>1]=(w>>>1)-(w>>16<<15);w=C+478|0;u=t<<16>>16;if(t<<16>>16<=0){C=_-s|0;C=C&65535;d=x;return C|0}g=C+476|0;v=_+1|0;b=239-u|0;y=C+(236-u<<1)|0;t=u;i=i+(u<<1)|0;a=a+(u<<1)|0;while(1){p=ee((b>>>1)+65535&65535,-2)|0;c=C+(p+236<<1)|0;p=y+(p<<1)|0;r=240-t|0;m=r+-1|0;l=C+(m<<1)|0;e=m>>>1&65535;r=C+(r+-2<<1)|0;u=ee(n[w>>1]|0,n[l>>1]|0)|0;if(!(e<<16>>16)){p=r;c=g}else{h=g;A=w;while(1){o=l+-4|0;f=A+-4|0;u=(ee(n[h>>1]|0,n[r>>1]|0)|0)+u|0;e=e+-1<<16>>16;u=(ee(n[f>>1]|0,n[o>>1]|0)|0)+u|0;if(!(e<<16>>16))break;else{r=l+-6|0;h=A+-6|0;l=o;A=f}}}if(m&1)u=(ee(n[c>>1]|0,n[p>>1]|0)|0)+u|0;m=u<<v;n[i>>1]=m>>>16;n[a>>1]=(m>>>1)-(m>>16<<15);if((t&65535)+-1<<16>>16<<16>>16>0){b=b+1|0;y=y+2|0;t=t+-1|0;i=i+-2|0;a=a+-2|0}else break}C=_-s|0;C=C&65535;d=x;return C|0}function Rt(e,t,i,a,r,s,l,c){e=e|0;t=t|0;i=i|0;a=a|0;r=r|0;s=s|0;l=l|0;c=c|0;var u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0,I=0,E=0,O=0,B=0,L=0,D=0,M=0,N=0,j=0;O=d;d=d+3440|0;E=O+3420|0;k=O+3400|0;T=O+3224|0;I=O;C=O+3320|0;S=O+3240|0;x=O+24|0;ui(i,e,C,2,c);ya(C,t,S,T,5,k,5,c);li(i,S,x,c);va(10,5,5,C,x,k,T,I,c);t=a;c=t+80|0;do{n[t>>1]=0;t=t+2|0}while((t|0)<(c|0));n[s>>1]=65535;n[s+2>>1]=65535;n[s+4>>1]=65535;n[s+6>>1]=65535;n[s+8>>1]=65535;h=0;m=I;g=E;do{e=n[m>>1]|0;m=m+2|0;u=(e*6554|0)>>>15;p=u<<16>>16;t=a+(e<<1)|0;c=n[t>>1]|0;if((n[S+(e<<1)>>1]|0)>0){n[t>>1]=c+4096;n[g>>1]=8192;f=u}else{n[t>>1]=c+61440;n[g>>1]=-8192;f=p+8|0}g=g+2|0;A=f&65535;t=e-(u<<2)-p<<16>>16;u=s+(t<<1)|0;c=n[u>>1]|0;e=c<<16>>16;do{if(c<<16>>16>=0){p=f<<16>>16;if(!((p^e)&8)){t=s+(t+5<<1)|0;if((e|0)>(p|0)){n[t>>1]=c;n[u>>1]=A;break}else{n[t>>1]=A;break}}else{t=s+(t+5<<1)|0;if((e&7)>>>0>(p&7)>>>0){n[t>>1]=A;break}else{n[t>>1]=c;n[u>>1]=A;break}}}else n[u>>1]=A}while(0);h=h+1<<16>>16}while(h<<16>>16<10);g=E+2|0;h=E+4|0;f=E+6|0;p=E+8|0;u=E+10|0;t=E+12|0;c=E+14|0;e=E+16|0;v=E+18|0;b=40;y=i+(0-(n[I>>1]|0)<<1)|0;_=i+(0-(n[I+2>>1]|0)<<1)|0;w=i+(0-(n[I+4>>1]|0)<<1)|0;C=i+(0-(n[I+6>>1]|0)<<1)|0;x=i+(0-(n[I+8>>1]|0)<<1)|0;k=i+(0-(n[I+10>>1]|0)<<1)|0;T=i+(0-(n[I+12>>1]|0)<<1)|0;S=i+(0-(n[I+14>>1]|0)<<1)|0;a=i+(0-(n[I+16>>1]|0)<<1)|0;m=i+(0-(n[I+18>>1]|0)<<1)|0;A=r;while(1){j=(ee(n[E>>1]|0,n[y>>1]|0)|0)>>7;N=(ee(n[g>>1]|0,n[_>>1]|0)|0)>>7;M=(ee(n[h>>1]|0,n[w>>1]|0)|0)>>7;D=(ee(n[f>>1]|0,n[C>>1]|0)|0)>>7;L=(ee(n[p>>1]|0,n[x>>1]|0)|0)>>7;B=(ee(n[u>>1]|0,n[k>>1]|0)|0)>>7;I=(ee(n[t>>1]|0,n[T>>1]|0)|0)>>7;i=(ee(n[c>>1]|0,n[S>>1]|0)|0)>>>7;r=(ee(n[e>>1]|0,n[a>>1]|0)|0)>>>7;n[A>>1]=(j+128+N+M+D+L+B+I+i+r+((ee(n[v>>1]|0,n[m>>1]|0)|0)>>>7)|0)>>>8;b=b+-1<<16>>16;if(!(b<<16>>16))break;else{y=y+2|0;_=_+2|0;w=w+2|0;C=C+2|0;x=x+2|0;k=k+2|0;T=T+2|0;S=S+2|0;a=a+2|0;m=m+2|0;A=A+2|0}}t=0;do{c=s+(t<<1)|0;e=n[c>>1]|0;if((t|0)<5)e=(o[l+((e&7)<<1)>>1]|e&8)&65535;else e=n[l+((e&7)<<1)>>1]|0;n[c>>1]=e;t=t+1|0}while((t|0)!=10);d=O;return}function Qt(e,t,i,a,s,o,l,c){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;o=o|0;l=l|0;c=c|0;var u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0,I=0,E=0,O=0,B=0,L=0,D=0,M=0,N=0,j=0,P=0,U=0,F=0;F=d;d=d+3456|0;M=F+3448|0;L=F+3360|0;O=F+3368|0;h=F+3280|0;D=F+3200|0;B=F;j=(a&65535)<<17;U=i<<16>>16;N=i<<16>>16<40;if(N){a=j>>16;i=U;do{p=(ee(n[t+(i-U<<1)>>1]|0,a)|0)>>15;if((p|0)>32767){r[c>>2]=1;p=32767}E=t+(i<<1)|0;n[E>>1]=$a(n[E>>1]|0,p&65535,c)|0;i=i+1|0}while((i&65535)<<16>>16!=40)}ui(t,e,O,1,c);ba(O,D,h,8);li(t,D,B,c);E=L+2|0;n[L>>1]=0;n[E>>1]=1;e=1;p=0;A=1;h=0;f=-1;do{S=n[2830+(h<<1)>>1]|0;I=S<<16>>16;T=0;do{x=n[2834+(T<<1)>>1]|0;k=x<<16>>16;C=e;_=I;y=A;w=S;b=f;while(1){u=n[O+(_<<1)>>1]|0;g=n[B+(_*80|0)+(_<<1)>>1]|0;i=k;A=1;v=x;e=x;f=-1;while(1){a=$a(u,n[O+(i<<1)>>1]|0,c)|0;a=a<<16>>16;a=(ee(a,a)|0)>>>15;m=(n[B+(_*80|0)+(i<<1)>>1]<<15)+32768+((n[B+(i*80|0)+(i<<1)>>1]|0)+g<<14)|0;if(((ee(a<<16>>16,A<<16>>16)|0)-(ee(m>>16,f<<16>>16)|0)<<1|0)>0){A=m>>>16&65535;e=v;f=a&65535}m=i+5|0;v=m&65535;if(v<<16>>16>=40)break;else i=m<<16>>16}if(((ee(f<<16>>16,y<<16>>16)|0)-(ee(A<<16>>16,b<<16>>16)|0)<<1|0)>0){n[L>>1]=w;n[E>>1]=e;p=w}else{e=C;A=y;f=b}m=_+5|0;w=m&65535;if(w<<16>>16>=40)break;else{C=e;_=m<<16>>16;y=A;b=f}}T=T+1|0}while((T|0)!=4);h=h+1|0}while((h|0)!=2);g=e;v=p;a=s;i=a+80|0;do{n[a>>1]=0;a=a+2|0}while((a|0)<(i|0));A=v;i=0;m=0;a=0;while(1){p=A<<16>>16;u=n[D+(p<<1)>>1]|0;e=(p*6554|0)>>>15;A=e<<16;h=A>>15;f=p-(h+(e<<3)<<16>>17)|0;switch(f<<16>>16|0){case 0:{h=A>>10;e=1;break}case 1:{if(!((i&65535)<<16>>16))e=0;else{h=e<<22>>16|16;e=1}break}case 2:{h=e<<22>>16|32;e=1;break}case 3:{h=e<<17>>16|1;e=0;break}case 4:{h=e<<22>>16|48;e=1;break}default:{h=e;e=f&65535}}h=h&65535;f=s+(p<<1)|0;if(u<<16>>16>0){n[f>>1]=8191;n[M+(i<<1)>>1]=32767;p=e<<16>>16;if(e<<16>>16<0){p=0-p<<16;if((p|0)<983040)p=1>>>(p>>16)&65535;else p=0}else{B=1<<p;p=(B<<16>>16>>p|0)==1?B&65535:32767}a=$a(a,p,c)|0}else{n[f>>1]=-8192;n[M+(i<<1)>>1]=-32768}p=$a(m,h,c)|0;i=i+1|0;if((i|0)==2){m=p;break}A=n[L+(i<<1)>>1]|0;m=p}n[l>>1]=a;h=M+2|0;A=n[M>>1]|0;e=0;f=t+(0-(v<<16>>16)<<1)|0;p=t+(0-(g<<16>>16)<<1)|0;do{a=ee(n[f>>1]|0,A)|0;f=f+2|0;if((a|0)!=1073741824?(P=a<<1,!((a|0)>0&(P|0)<0)):0)u=P;else{r[c>>2]=1;u=2147483647}i=ee(n[h>>1]|0,n[p>>1]|0)|0;p=p+2|0;if((i|0)!=1073741824){a=(i<<1)+u|0;if((i^u|0)>0&(a^u|0)<0){r[c>>2]=1;a=(u>>>31)+2147483647|0}}else{r[c>>2]=1;a=2147483647}n[o+(e<<1)>>1]=Ln(a,c)|0;e=e+1|0}while((e|0)!=40);if(!N){d=F;return m|0}i=j>>16;a=U;do{u=(ee(n[s+(a-U<<1)>>1]|0,i)|0)>>15;if((u|0)>32767){r[c>>2]=1;u=32767}o=s+(a<<1)|0;n[o>>1]=$a(n[o>>1]|0,u&65535,c)|0;a=a+1|0}while((a&65535)<<16>>16!=40);d=F;return m|0}function Ht(e,t,i,a,s,o,l,c,u,p){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;o=o|0;l=l|0;c=c|0;u=u|0;p=p|0;var f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0;C=d;d=d+3456|0;g=C+3360|0;v=C+3368|0;b=C+3280|0;y=C+3200|0;_=C;w=s<<16>>16;h=w<<1;if((h|0)==(w<<17>>16|0))m=h;else{r[p>>2]=1;m=s<<16>>16>0?32767:-32768}w=a<<16>>16;f=a<<16>>16<40;if(f){s=m<<16>>16;A=w;do{a=i+(A<<1)|0;h=(ee(n[i+(A-w<<1)>>1]|0,s)|0)>>15;if((h|0)>32767){r[p>>2]=1;h=32767}n[a>>1]=$a(n[a>>1]|0,h&65535,p)|0;A=A+1|0}while((A&65535)<<16>>16!=40)}ui(i,t,v,1,p);ba(v,y,b,8);li(i,y,_,p);zt(e,v,_,u,g);h=qt(e,g,y,o,i,l,c,p)|0;if(!f){d=C;return h|0}A=m<<16>>16;s=w;do{a=o+(s<<1)|0;f=(ee(n[o+(s-w<<1)>>1]|0,A)|0)>>15;if((f|0)>32767){r[p>>2]=1;f=32767}n[a>>1]=$a(n[a>>1]|0,f&65535,p)|0;s=s+1|0}while((s&65535)<<16>>16!=40);d=C;return h|0}function zt(e,t,i,a,r){e=e|0;t=t|0;i=i|0;a=a|0;r=r|0;var s=0,l=0,c=0,u=0,d=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0;C=r+2|0;n[r>>1]=0;n[C>>1]=1;_=e<<16>>16<<1;s=1;w=0;e=-1;do{y=(w<<3)+_<<16>>16;u=n[a+(y<<1)>>1]|0;y=n[a+((y|1)<<1)>>1]|0;l=u<<16>>16;e:do{if(u<<16>>16<40){b=y<<16>>16;if(y<<16>>16<40)v=s;else while(1){if((e<<16>>16|0)<(0-(s<<16>>16)|0)){n[r>>1]=u;n[C>>1]=y;c=1;e=-1}else c=s;s=l+5|0;u=s&65535;if(u<<16>>16>=40){s=c;break e}else{l=s<<16>>16;s=c}}while(1){m=n[i+(l*80|0)+(l<<1)>>1]|0;h=o[t+(l<<1)>>1]|0;A=b;s=1;g=y;c=y;d=-1;while(1){f=(o[t+(A<<1)>>1]|0)+h<<16>>16;f=(ee(f,f)|0)>>>15;p=(n[i+(l*80|0)+(A<<1)>>1]<<15)+32768+((n[i+(A*80|0)+(A<<1)>>1]|0)+m<<14)|0;if(((ee(f<<16>>16,s<<16>>16)|0)-(ee(p>>16,d<<16>>16)|0)<<1|0)>0){s=p>>>16&65535;c=g;d=f&65535}p=A+5|0;g=p&65535;if(g<<16>>16>=40)break;else A=p<<16>>16}if(((ee(d<<16>>16,v<<16>>16)|0)-(ee(s<<16>>16,e<<16>>16)|0)<<1|0)>0){n[r>>1]=u;n[C>>1]=c;e=d}else s=v;l=l+5|0;u=l&65535;if(u<<16>>16>=40)break;else{l=l<<16>>16;v=s}}}}while(0);w=w+1|0}while((w|0)!=2);return}function qt(e,t,i,a,s,o,l,c){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;o=o|0;l=l|0;c=c|0;var u=0,d=0,p=0,f=0,A=0,h=0;u=a;d=u+80|0;do{n[u>>1]=0;u=u+2|0}while((u|0)<(d|0));u=n[t>>1]|0;A=(u*6554|0)>>>15;d=A<<16>>16;f=(748250>>>((u+(ee(d,-5)|0)<<16>>16)+((e<<16>>16)*5|0)|0)&1|0)==0;p=(n[i+(u<<1)>>1]|0)>0;h=p?32767:-32768;n[a+(u<<1)>>1]=p?8191:-8192;u=t+2|0;e=n[u>>1]|0;a=a+(e<<1)|0;if((n[i+(e<<1)>>1]|0)>0){n[a>>1]=8191;i=32767;a=(p&1|2)&65535}else{n[a>>1]=-8192;i=-32768;a=p&1}A=((e*6554|0)>>>15<<3)+(f?A:d+64|0)&65535;n[l>>1]=a;f=0;p=s+(0-(n[t>>1]|0)<<1)|0;a=s+(0-(n[u>>1]|0)<<1)|0;do{u=ee(h,n[p>>1]|0)|0;p=p+2|0;if((u|0)==1073741824){r[c>>2]=1;e=2147483647}else e=u<<1;d=ee(i,n[a>>1]|0)|0;a=a+2|0;if((d|0)!=1073741824){u=(d<<1)+e|0;if((d^e|0)>0&(u^e|0)<0){r[c>>2]=1;u=(e>>>31)+2147483647|0}}else{r[c>>2]=1;u=2147483647}n[o+(f<<1)>>1]=Ln(u,c)|0;f=f+1|0}while((f|0)!=40);return A|0}function Gt(e,t,i,a,s,l,c,u){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;l=l|0;c=c|0;u=u|0;var p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0,I=0,E=0,O=0,B=0,L=0,D=0,M=0,N=0,j=0,P=0,U=0,F=0,R=0,Q=0,H=0,z=0,q=0,G=0,$=0;$=d;d=d+3440|0;U=$+3360|0;F=$+3280|0;Q=$+3200|0;R=$;z=(a&65535)<<17;G=i<<16>>16;H=i<<16>>16<40;if(H){i=z>>16;p=G;do{a=(ee(n[t+(p-G<<1)>>1]|0,i)|0)>>15;if((a|0)>32767){r[u>>2]=1;a=32767}P=t+(p<<1)|0;n[P>>1]=$a(n[P>>1]|0,a&65535,u)|0;p=p+1|0}while((p&65535)<<16>>16!=40)}ui(t,e,U,1,u);ba(U,Q,F,6);li(t,Q,R,u);P=1;f=2;A=1;a=0;p=1;e=-1;h=1;while(1){j=2;v=2;while(1){D=0;M=0;N=h;L=v;while(1){if(M<<16>>16<40){I=N<<16>>16;E=N<<16>>16<40;O=L<<16>>16;B=L<<16>>16<40;T=M<<16>>16;S=M;while(1){if((n[F+(T<<1)>>1]|0)>-1){C=n[R+(T*80|0)+(T<<1)>>1]|0;if(E){x=o[U+(T<<1)>>1]|0;w=I;g=1;k=N;i=N;v=0;m=-1;while(1){y=(o[U+(w<<1)>>1]|0)+x|0;_=y<<16>>16;_=(ee(_,_)|0)>>>15;b=(n[R+(T*80|0)+(w<<1)>>1]<<15)+32768+((n[R+(w*80|0)+(w<<1)>>1]|0)+C<<14)|0;if(((ee(_<<16>>16,g<<16>>16)|0)-(ee(b>>16,m<<16>>16)|0)<<1|0)>0){g=b>>>16&65535;i=k;v=y&65535;m=_&65535}b=w+5|0;k=b&65535;if(k<<16>>16>=40)break;else w=b<<16>>16}}else{g=1;i=N;v=0}if(B){x=v&65535;k=i<<16>>16;w=(g<<16>>16<<14)+32768|0;_=O;v=1;C=L;m=L;g=-1;while(1){y=(o[U+(_<<1)>>1]|0)+x<<16>>16;y=(ee(y,y)|0)>>>15;b=w+(n[R+(_*80|0)+(_<<1)>>1]<<12)+((n[R+(T*80|0)+(_<<1)>>1]|0)+(n[R+(k*80|0)+(_<<1)>>1]|0)<<13)|0;if(((ee(y<<16>>16,v<<16>>16)|0)-(ee(b>>16,g<<16>>16)|0)<<1|0)>0){v=b>>>16&65535;m=C;g=y&65535}b=_+5|0;C=b&65535;if(C<<16>>16>=40){w=v;_=g;break}else _=b<<16>>16}}else{w=1;m=L;_=-1}v=ee(_<<16>>16,p<<16>>16)|0;if((v|0)==1073741824){r[u>>2]=1;b=2147483647}else b=v<<1;v=ee(w<<16>>16,e<<16>>16)|0;if((v|0)==1073741824){r[u>>2]=1;g=2147483647}else g=v<<1;v=b-g|0;if(((v^b)&(g^b)|0)<0){r[u>>2]=1;v=(b>>>31)+2147483647|0}k=(v|0)>0;f=k?m:f;A=k?i:A;a=k?S:a;p=k?w:p;e=k?_:e}v=T+5|0;S=v&65535;if(S<<16>>16>=40)break;else T=v<<16>>16}}D=D+1<<16>>16;if(D<<16>>16>=3)break;else{B=L;L=N;N=M;M=B}}i=j+2|0;v=i&65535;if(v<<16>>16>=5)break;else j=i&65535}i=P+2|0;h=i&65535;if(h<<16>>16<4)P=i&65535;else{v=f;f=A;break}}i=s;p=i+80|0;do{n[i>>1]=0;i=i+2|0}while((i|0)<(p|0));_=a<<16>>16;e=n[Q+(_<<1)>>1]|0;a=(_*6554|0)>>>15;i=a<<16;p=_-(((i>>16)*327680|0)>>>16)|0;switch(p<<16>>16|0){case 1:{a=i>>12;break}case 2:{a=i>>8;p=2;break}case 3:{a=a<<20>>16|8;p=1;break}case 4:{a=a<<24>>16|128;p=2;break}default:{}}i=s+(_<<1)|0;if(e<<16>>16>0){n[i>>1]=8191;k=32767;A=65536<<(p<<16>>16)>>>16&65535}else{n[i>>1]=-8192;k=-32768;A=0}b=f<<16>>16;f=n[Q+(b<<1)>>1]|0;i=(b*6554|0)>>>15;p=i<<16;e=b-(((p>>16)*327680|0)>>>16)|0;switch(e<<16>>16|0){case 1:{i=p>>12;break}case 2:{i=p>>8;e=2;break}case 3:{i=i<<20>>16|8;e=1;break}case 4:{i=i<<24>>16|128;e=2;break}default:{}}p=s+(b<<1)|0;if(f<<16>>16>0){n[p>>1]=8191;y=32767;A=(65536<<(e<<16>>16)>>>16)+(A&65535)&65535}else{n[p>>1]=-8192;y=-32768}h=i+a|0;g=v<<16>>16;f=n[Q+(g<<1)>>1]|0;a=(g*6554|0)>>>15;i=a<<16;p=g-(((i>>16)*327680|0)>>>16)|0;switch(p<<16>>16|0){case 1:{i=i>>12;break}case 2:{i=i>>8;p=2;break}case 3:{i=a<<20>>16|8;p=1;break}case 4:{i=a<<24>>16|128;p=2;break}default:i=a}a=s+(g<<1)|0;if(f<<16>>16>0){n[a>>1]=8191;v=32767;a=(65536<<(p<<16>>16)>>>16)+(A&65535)&65535}else{n[a>>1]=-8192;v=-32768;a=A}m=h+i|0;n[c>>1]=a;A=0;h=t+(0-_<<1)|0;e=t+(0-b<<1)|0;f=t+(0-g<<1)|0;do{a=ee(n[h>>1]|0,k)|0;h=h+2|0;if((a|0)!=1073741824?(q=a<<1,!((a|0)>0&(q|0)<0)):0)p=q;else{r[u>>2]=1;p=2147483647}a=ee(n[e>>1]|0,y)|0;e=e+2|0;if((a|0)!=1073741824){i=(a<<1)+p|0;if((a^p|0)>0&(i^p|0)<0){r[u>>2]=1;i=(p>>>31)+2147483647|0}}else{r[u>>2]=1;i=2147483647}p=ee(n[f>>1]|0,v)|0;f=f+2|0;if((p|0)!=1073741824){a=(p<<1)+i|0;if((p^i|0)>0&(a^i|0)<0){r[u>>2]=1;a=(i>>>31)+2147483647|0}}else{r[u>>2]=1;a=2147483647}n[l+(A<<1)>>1]=Ln(a,u)|0;A=A+1|0}while((A|0)!=40);a=m&65535;if(!H){d=$;return a|0}p=z>>16;i=G;do{e=(ee(n[s+(i-G<<1)>>1]|0,p)|0)>>15;if((e|0)>32767){r[u>>2]=1;e=32767}l=s+(i<<1)|0;n[l>>1]=$a(n[l>>1]|0,e&65535,u)|0;i=i+1|0}while((i&65535)<<16>>16!=40);d=$;return a|0}function $t(e,t,i,a,s,l,c,u,p){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;l=l|0;c=c|0;u=u|0;p=p|0;var f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0,I=0,E=0,O=0,B=0,L=0,D=0,M=0,N=0,j=0,P=0,U=0,F=0,R=0,Q=0,H=0,z=0,q=0,G=0,$=0,V=0,Y=0,K=0,W=0,X=0,J=0,Z=0,te=0,ie=0,ae=0;ae=d;d=d+3456|0;X=ae+3448|0;K=ae+3360|0;$=ae+3368|0;V=ae+3280|0;W=ae+3200|0;Y=ae;Z=(a&65535)<<17;ie=i<<16>>16;J=i<<16>>16<40;if(J){i=Z>>16;f=ie;do{a=(ee(n[t+(f-ie<<1)>>1]|0,i)|0)>>15;if((a|0)>32767){r[p>>2]=1;a=32767}G=t+(f<<1)|0;n[G>>1]=$a(n[G>>1]|0,a&65535,p)|0;f=f+1|0}while((f&65535)<<16>>16!=40)}ui(t,e,$,1,p);ba($,W,V,4);li(t,W,Y,p);z=K+2|0;n[K>>1]=0;q=K+4|0;n[z>>1]=1;G=K+6|0;n[q>>1]=2;n[G>>1]=3;g=3;h=2;A=1;a=0;i=1;f=-1;m=3;do{U=0;F=0;R=m;Q=1;H=2;while(1){if(F<<16>>16<40){L=Q<<16>>16;D=Q<<16>>16<40;M=H<<16>>16;N=H<<16>>16<40;j=R<<16>>16;P=R<<16>>16<40;B=F<<16>>16;O=h;I=A;S=i;E=F;while(1){if((n[V+(B<<1)>>1]|0)>-1){b=n[Y+(B*80|0)+(B<<1)>>1]|0;if(D){v=o[$+(B<<1)>>1]|0;y=L;k=1;h=Q;A=Q;C=0;x=-1;while(1){w=(o[$+(y<<1)>>1]|0)+v|0;_=w<<16>>16;_=(ee(_,_)|0)>>>15;T=(n[Y+(B*80|0)+(y<<1)>>1]<<15)+32768+((n[Y+(y*80|0)+(y<<1)>>1]|0)+b<<14)|0;if(((ee(_<<16>>16,k<<16>>16)|0)-(ee(T>>16,x<<16>>16)|0)<<1|0)>0){k=T>>>16&65535;A=h;C=w&65535;x=_&65535}T=y+5|0;h=T&65535;if(h<<16>>16>=40)break;else y=T<<16>>16}}else{k=1;A=Q;C=0}if(N){i=C&65535;e=A<<16>>16;b=(k<<16>>16<<14)+32768|0;y=M;T=1;v=H;h=H;x=0;C=-1;while(1){w=(o[$+(y<<1)>>1]|0)+i|0;_=w<<16>>16;_=(ee(_,_)|0)>>>15;k=b+(n[Y+(y*80|0)+(y<<1)>>1]<<12)+((n[Y+(B*80|0)+(y<<1)>>1]|0)+(n[Y+(e*80|0)+(y<<1)>>1]|0)<<13)|0;if(((ee(_<<16>>16,T<<16>>16)|0)-(ee(k>>16,C<<16>>16)|0)<<1|0)>0){T=k>>>16&65535;h=v;x=w&65535;C=_&65535}k=y+5|0;v=k&65535;if(v<<16>>16>=40)break;else y=k<<16>>16}}else{T=1;h=H;x=0}if(P){b=x&65535;v=h<<16>>16;e=A<<16>>16;_=(T&65535)<<16|32768;w=j;i=1;y=R;k=R;T=-1;while(1){C=(o[$+(w<<1)>>1]|0)+b<<16>>16;C=(ee(C,C)|0)>>>15;x=(n[Y+(w*80|0)+(w<<1)>>1]<<12)+_+((n[Y+(e*80|0)+(w<<1)>>1]|0)+(n[Y+(v*80|0)+(w<<1)>>1]|0)+(n[Y+(B*80|0)+(w<<1)>>1]|0)<<13)|0;if(((ee(C<<16>>16,i<<16>>16)|0)-(ee(x>>16,T<<16>>16)|0)<<1|0)>0){i=x>>>16&65535;k=y;T=C&65535}x=w+5|0;y=x&65535;if(y<<16>>16>=40)break;else w=x<<16>>16}}else{i=1;k=R;T=-1}if(((ee(T<<16>>16,S<<16>>16)|0)-(ee(i<<16>>16,f<<16>>16)|0)<<1|0)>0){n[K>>1]=E;n[z>>1]=A;n[q>>1]=h;n[G>>1]=k;g=k;a=E;f=T}else{h=O;A=I;i=S}}else{h=O;A=I;i=S}w=B+5|0;E=w&65535;if(E<<16>>16>=40)break;else{B=w<<16>>16;O=h;I=A;S=i}}}U=U+1<<16>>16;if(U<<16>>16>=4)break;else{j=H;P=R;H=Q;Q=F;R=j;F=P}}m=m+1<<16>>16}while(m<<16>>16<5);T=g;k=h;x=A;C=a;a=s;i=a+80|0;do{n[a>>1]=0;a=a+2|0}while((a|0)<(i|0));e=C;i=0;f=0;a=0;while(1){h=e<<16>>16;m=n[W+(h<<1)>>1]|0;e=h*13108>>16;A=h-((e*327680|0)>>>16)|0;e=n[u+(e<<1)>>1]|0;switch(A<<16>>16|0){case 1:{g=e<<16>>16<<3&65535;break}case 2:{g=e<<16>>16<<6&65535;break}case 3:{g=e<<16>>16<<10&65535;break}case 4:{g=((e&65535)<<10|512)&65535;A=3;break}default:g=e}e=s+(h<<1)|0;if(m<<16>>16>0){n[e>>1]=8191;e=32767;a=(65536<<(A<<16>>16)>>>16)+(a&65535)&65535}else{n[e>>1]=-8192;e=-32768}n[X+(i<<1)>>1]=e;f=(g&65535)+(f&65535)|0;i=i+1|0;if((i|0)==4){w=f;break}e=n[K+(i<<1)>>1]|0}n[c>>1]=a;b=X+2|0;y=X+4|0;_=X+6|0;e=n[X>>1]|0;v=0;A=t+(0-(C<<16>>16)<<1)|0;h=t+(0-(x<<16>>16)<<1)|0;m=t+(0-(k<<16>>16)<<1)|0;g=t+(0-(T<<16>>16)<<1)|0;do{a=ee(n[A>>1]|0,e)|0;A=A+2|0;if((a|0)!=1073741824?(te=a<<1,!((a|0)>0&(te|0)<0)):0)f=te;else{r[p>>2]=1;f=2147483647}a=ee(n[b>>1]|0,n[h>>1]|0)|0;h=h+2|0;if((a|0)!=1073741824){i=(a<<1)+f|0;if((a^f|0)>0&(i^f|0)<0){r[p>>2]=1;i=(f>>>31)+2147483647|0}}else{r[p>>2]=1;i=2147483647}a=ee(n[y>>1]|0,n[m>>1]|0)|0;m=m+2|0;if((a|0)!=1073741824){f=(a<<1)+i|0;if((a^i|0)>0&(f^i|0)<0){r[p>>2]=1;f=(i>>>31)+2147483647|0}}else{r[p>>2]=1;f=2147483647}i=ee(n[_>>1]|0,n[g>>1]|0)|0;g=g+2|0;if((i|0)!=1073741824){a=(i<<1)+f|0;if((i^f|0)>0&(a^f|0)<0){r[p>>2]=1;a=(f>>>31)+2147483647|0}}else{r[p>>2]=1;a=2147483647}n[l+(v<<1)>>1]=Ln(a,p)|0;v=v+1|0}while((v|0)!=40);a=w&65535;if(((ie<<16)+-2621440|0)>-1|J^1){d=ae;return a|0}f=Z>>16;i=ie;do{e=(ee(n[s+(i-ie<<1)>>1]|0,f)|0)>>15;if((e|0)>32767){r[p>>2]=1;e=32767}l=s+(i<<1)|0;n[l>>1]=$a(n[l>>1]|0,e&65535,p)|0;i=i+1|0}while((i&65535)<<16>>16!=40);d=ae;return a|0}function Vt(e,t,i,a,s,l,c){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;l=l|0;c=c|0;var u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0,I=0,E=0,O=0,B=0,L=0,D=0,M=0,N=0,j=0,P=0;P=d;d=d+3440|0;b=P+3424|0;L=P+3408|0;D=P+3240|0;y=P+3224|0;O=P+3328|0;v=P+3248|0;B=P+24|0;j=P+16|0;N=P;ci(i,e,O,2,4,4,c);ya(O,t,v,D,4,L,4,c);li(i,v,B,c);va(8,4,4,O,B,L,D,y,c);t=a;e=t+80|0;do{n[t>>1]=0;t=t+2|0}while((t|0)<(e|0));n[N>>1]=-1;n[j>>1]=-1;I=N+2|0;n[I>>1]=-1;E=j+2|0;n[E>>1]=-1;O=N+4|0;n[O>>1]=-1;B=j+4|0;n[B>>1]=-1;D=N+6|0;n[D>>1]=-1;L=j+6|0;n[L>>1]=-1;m=0;do{A=n[y+(m<<1)>>1]|0;t=A>>>2;p=t&65535;e=A&3;f=(n[v+(A<<1)>>1]|0)>0;A=a+(A<<1)|0;g=f&1^1;n[A>>1]=(o[A>>1]|0)+(f?8191:57345);n[b+(m<<1)>>1]=f?32767:-32768;f=N+(e<<1)|0;A=n[f>>1]|0;do{if(A<<16>>16>=0){h=j+(e<<1)|0;u=(A<<16>>16|0)<=(t<<16>>16|0);t=N+((e|4)<<1)|0;if((g&65535|0)==(o[h>>1]&1|0))if(u){n[t>>1]=p;break}else{n[t>>1]=A;n[f>>1]=p;n[h>>1]=g;break}else if(u){n[t>>1]=A;n[f>>1]=p;n[h>>1]=g;break}else{n[t>>1]=p;break}}else{n[f>>1]=p;n[j+(e<<1)>>1]=g}}while(0);m=m+1|0}while((m|0)!=8);_=b+2|0;w=b+4|0;C=b+6|0;x=b+8|0;k=b+10|0;T=b+12|0;S=b+14|0;b=n[b>>1]|0;m=0;h=i+(0-(n[y>>1]|0)<<1)|0;A=i+(0-(n[y+2>>1]|0)<<1)|0;f=i+(0-(n[y+4>>1]|0)<<1)|0;p=i+(0-(n[y+6>>1]|0)<<1)|0;t=i+(0-(n[y+8>>1]|0)<<1)|0;e=i+(0-(n[y+10>>1]|0)<<1)|0;u=i+(0-(n[y+12>>1]|0)<<1)|0;i=i+(0-(n[y+14>>1]|0)<<1)|0;do{g=ee(n[h>>1]|0,b)|0;h=h+2|0;if((g|0)!=1073741824?(M=g<<1,!((g|0)>0&(M|0)<0)):0)g=M;else{r[c>>2]=1;g=2147483647}v=ee(n[_>>1]|0,n[A>>1]|0)|0;A=A+2|0;if((v|0)!=1073741824){a=(v<<1)+g|0;if((v^g|0)>0&(a^g|0)<0){r[c>>2]=1;g=(g>>>31)+2147483647|0}else g=a}else{r[c>>2]=1;g=2147483647}v=ee(n[w>>1]|0,n[f>>1]|0)|0;f=f+2|0;if((v|0)!=1073741824){a=(v<<1)+g|0;if((v^g|0)>0&(a^g|0)<0){r[c>>2]=1;a=(g>>>31)+2147483647|0}}else{r[c>>2]=1;a=2147483647}v=ee(n[C>>1]|0,n[p>>1]|0)|0;p=p+2|0;if((v|0)!=1073741824){g=(v<<1)+a|0;if((v^a|0)>0&(g^a|0)<0){r[c>>2]=1;g=(a>>>31)+2147483647|0}}else{r[c>>2]=1;g=2147483647}v=ee(n[x>>1]|0,n[t>>1]|0)|0;t=t+2|0;if((v|0)!=1073741824){a=(v<<1)+g|0;if((v^g|0)>0&(a^g|0)<0){r[c>>2]=1;a=(g>>>31)+2147483647|0}}else{r[c>>2]=1;a=2147483647}v=ee(n[k>>1]|0,n[e>>1]|0)|0;e=e+2|0;if((v|0)!=1073741824){g=(v<<1)+a|0;if((v^a|0)>0&(g^a|0)<0){r[c>>2]=1;g=(a>>>31)+2147483647|0}}else{r[c>>2]=1;g=2147483647}v=ee(n[T>>1]|0,n[u>>1]|0)|0;u=u+2|0;if((v|0)!=1073741824){a=(v<<1)+g|0;if((v^g|0)>0&(a^g|0)<0){r[c>>2]=1;a=(g>>>31)+2147483647|0}}else{r[c>>2]=1;a=2147483647}v=ee(n[S>>1]|0,n[i>>1]|0)|0;i=i+2|0;if((v|0)!=1073741824){g=(v<<1)+a|0;if((v^a|0)>0&(g^a|0)<0){r[c>>2]=1;g=(a>>>31)+2147483647|0}}else{r[c>>2]=1;g=2147483647}n[s+(m<<1)>>1]=Ln(g,c)|0;m=m+1|0}while((m|0)!=40);n[l>>1]=n[j>>1]|0;n[l+2>>1]=n[E>>1]|0;n[l+4>>1]=n[B>>1]|0;n[l+6>>1]=n[L>>1]|0;e=n[N>>1]|0;t=n[N+8>>1]|0;u=n[I>>1]|0;n[l+8>>1]=t<<1&2|e&1|u<<2&4|(((t>>1)*327680|0)+(e>>>1<<16)+(ee(u>>1,1638400)|0)|0)>>>13&65528;u=n[O>>1]|0;e=n[N+12>>1]|0;t=n[N+10>>1]|0;n[l+10>>1]=e<<1&2|u&1|t<<2&4|(((e>>1)*327680|0)+(u>>>1<<16)+(ee(t>>1,1638400)|0)|0)>>>13&65528;t=n[N+14>>1]|0;u=n[D>>1]|0;e=u<<16>>16>>>1;if(!(t&2)){s=e;c=t<<16>>16;j=c>>1;j=j*327680|0;s=s<<16;j=s+j|0;j=j<<5;j=j>>16;j=j|12;j=j*2622|0;j=j>>>16;s=u&65535;s=s&1;c=c<<17;c=c&131072;j=j<<18;c=j|c;c=c>>>16;s=c|s;s=s&65535;l=l+12|0;n[l>>1]=s;d=P;return}s=4-(e<<16>>16)|0;c=t<<16>>16;j=c>>1;j=j*327680|0;s=s<<16;j=s+j|0;j=j<<5;j=j>>16;j=j|12;j=j*2622|0;j=j>>>16;s=u&65535;s=s&1;c=c<<17;c=c&131072;j=j<<18;c=j|c;c=c>>>16;s=c|s;s=s&65535;l=l+12|0;n[l>>1]=s;d=P;return}function Yt(e,t,i,a,s){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;var o=0,l=0,c=0,u=0,d=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0;g=i<<16>>16;o=0-g|0;i=s+(o<<2)|0;s=((g-(a<<16>>16)|0)>>>2)+1&65535;if(s<<16>>16<=0)return;g=t<<16>>16>>>1&65535;if(!(g<<16>>16)){while(1){r[i>>2]=0;r[i+4>>2]=0;r[i+8>>2]=0;r[i+12>>2]=0;if(s<<16>>16>1){i=i+16|0;s=s+-1<<16>>16}else break}return}m=e+(o<<1)|0;while(1){d=m+4|0;f=n[d>>1]|0;c=n[m>>1]|0;p=f;u=g;A=e;h=m;m=m+8|0;l=0;o=0;a=0;t=0;while(1){b=n[A>>1]|0;v=(ee(c<<16>>16,b)|0)+l|0;l=n[h+2>>1]|0;o=(ee(l,b)|0)+o|0;c=(ee(p<<16>>16,b)|0)+a|0;a=n[h+6>>1]|0;p=(ee(a,b)|0)+t|0;t=n[A+2>>1]|0;l=v+(ee(t,l)|0)|0;o=o+(ee(f<<16>>16,t)|0)|0;d=d+4|0;a=c+(ee(t,a)|0)|0;c=n[d>>1]|0;t=p+(ee(c<<16>>16,t)|0)|0;u=u+-1<<16>>16;if(!(u<<16>>16))break;b=f;p=c;f=n[h+8>>1]|0;A=A+4|0;h=h+4|0;c=b}r[i>>2]=l<<1;r[i+4>>2]=o<<1;r[i+8>>2]=a<<1;r[i+12>>2]=t<<1;if(s<<16>>16<=1)break;else{i=i+16|0;s=s+-1<<16>>16}}return}function Kt(e,t,i,a,s,l,c,u,p){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;l=l|0;c=c|0;u=u|0;p=p|0;var f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0;x=d;d=d+16|0;w=x+2|0;C=x;do{if(s<<16>>16>0){v=a<<16>>16;y=0;h=0;a=0;A=0;b=0;while(1){f=n[e+(y<<1)>>1]|0;m=f<<16>>16;h=(ee(m,m)|0)+h|0;m=n[t+(y<<1)>>1]|0;a=(ee(m,m)|0)+a|0;A=(ee(n[i+(y<<1)>>1]|0,m)|0)+A|0;m=ee(m,v)|0;if((m|0)==1073741824){r[p>>2]=1;g=2147483647}else g=m<<1;m=g<<1;m=(jn(f,Ln((m>>1|0)==(g|0)?m:g>>31^2147483647,p)|0,p)|0)<<16>>16;m=ee(m,m)|0;if((m|0)!=1073741824){f=(m<<1)+b|0;if((m^b|0)>0&(f^b|0)<0){r[p>>2]=1;f=(b>>>31)+2147483647|0}}else{r[p>>2]=1;f=2147483647}y=y+1|0;if((y&65535)<<16>>16==s<<16>>16){b=f;break}else b=f}h=h<<1;a=a<<1;A=A<<1;if((h|0)>=0){if((h|0)<400){f=b;_=14;break}}else{r[p>>2]=1;h=2147483647}g=bn(h)|0;m=g<<16>>16;if(g<<16>>16>0){f=h<<m;if((f>>m|0)!=(h|0))f=h>>31^2147483647}else{f=0-m<<16;if((f|0)<2031616)f=h>>(f>>16);else f=0}n[l>>1]=f>>>16;h=a;v=A;f=b;a=15-(g&65535)&65535}else{a=0;A=0;f=0;_=14}}while(0);if((_|0)==14){n[l>>1]=0;h=a;v=A;a=-15}n[c>>1]=a;if((h|0)<0){r[p>>2]=1;h=2147483647}m=bn(h)|0;A=m<<16>>16;if(m<<16>>16>0){a=h<<A;if((a>>A|0)!=(h|0))a=h>>31^2147483647}else{a=0-A<<16;if((a|0)<2031616)a=h>>(a>>16);else a=0}n[l+2>>1]=a>>>16;n[c+2>>1]=15-(m&65535);h=bn(v)|0;A=h<<16>>16;if(h<<16>>16>0){a=v<<A;if((a>>A|0)!=(v|0))a=v>>31^2147483647}else{a=0-A<<16;if((a|0)<2031616)a=v>>(a>>16);else a=0}n[l+4>>1]=a>>>16;n[c+4>>1]=2-(h&65535);h=bn(f)|0;a=h<<16>>16;if(h<<16>>16>0){A=f<<a;if((A>>a|0)!=(f|0))A=f>>31^2147483647}else{a=0-a<<16;if((a|0)<2031616)A=f>>(a>>16);else A=0}a=A>>>16&65535;f=15-(h&65535)&65535;n[l+6>>1]=a;n[c+6>>1]=f;if((A>>16|0)<=0){p=0;n[u>>1]=p;d=x;return}A=n[l>>1]|0;if(!(A<<16>>16)){p=0;n[u>>1]=p;d=x;return}a=Ya(Dn(A,1,p)|0,a)|0;a=(a&65535)<<16;A=((jn(f,n[c>>1]|0,p)|0)&65535)+3|0;f=A&65535;A=A<<16>>16;if(f<<16>>16>0)f=f<<16>>16<31?a>>A:0;else{c=0-A<<16>>16;f=a<<c;f=(f>>c|0)==(a|0)?f:a>>31^2147483647}on(f,w,C,p);C=Pi((o[w>>1]|0)+65509&65535,n[C>>1]|0,p)|0;w=C<<13;p=Ln((w>>13|0)==(C|0)?w:C>>31^2147483647,p)|0;n[u>>1]=p;d=x;return}function Wt(e,t,i,a,s,l,c,u,p,f,A){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;l=l|0;c=c|0;u=u|0;p=p|0;f=f|0;A=A|0;var h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0;x=d;d=d+80|0;_=x;n[c>>1]=n[l>>1]|0;n[u>>1]=n[l+2>>1]|0;g=n[l+4>>1]|0;if(g<<16>>16==-32768)g=32767;else g=0-(g&65535)&65535;n[c+2>>1]=g;n[u+2>>1]=(o[l+6>>1]|0)+1;switch(e|0){case 0:case 5:{y=0;m=0;h=0;b=0;break}default:{y=0;m=1;h=1;b=1}}while(1){v=(n[s+(y<<1)>>1]|0)>>>3;n[_+(y<<1)>>1]=v;v=v<<16>>16;g=ee(v,v)|0;if((g|0)!=1073741824){l=(g<<1)+m|0;if((g^m|0)>0&(l^m|0)<0){r[A>>2]=1;m=(m>>>31)+2147483647|0}else m=l}else{r[A>>2]=1;m=2147483647}g=ee(n[t+(y<<1)>>1]|0,v)|0;if((g|0)!=1073741824){l=(g<<1)+h|0;if((g^h|0)>0&(l^h|0)<0){r[A>>2]=1;h=(h>>>31)+2147483647|0}else h=l}else{r[A>>2]=1;h=2147483647}g=ee(n[a+(y<<1)>>1]|0,v)|0;if((g|0)!=1073741824){l=(g<<1)+b|0;if((g^b|0)>0&(l^b|0)<0){r[A>>2]=1;l=(b>>>31)+2147483647|0}}else{r[A>>2]=1;l=2147483647}y=y+1|0;if((y|0)==40){a=l;v=h;break}else b=l}h=bn(m)|0;l=h<<16>>16;if(h<<16>>16>0){g=m<<l;if((g>>l|0)!=(m|0))g=m>>31^2147483647}else{g=0-l<<16;if((g|0)<2031616)g=m>>(g>>16);else g=0}s=c+4|0;n[s>>1]=g>>>16;t=u+4|0;n[t>>1]=-3-(h&65535);m=bn(v)|0;l=m<<16>>16;if(m<<16>>16>0){g=v<<l;if((g>>l|0)!=(v|0))g=v>>31^2147483647}else{g=0-l<<16;if((g|0)<2031616)g=v>>(g>>16);else g=0}l=g>>>16;n[c+6>>1]=(l|0)==32768?32767:0-l&65535;n[u+6>>1]=7-(m&65535);m=bn(a)|0;l=m<<16>>16;if(m<<16>>16>0){g=a<<l;if((g>>l|0)!=(a|0))g=a>>31^2147483647}else{g=0-l<<16;if((g|0)<2031616)g=a>>(g>>16);else g=0}n[c+8>>1]=g>>>16;n[u+8>>1]=7-(m&65535);switch(e|0){case 0:case 5:{g=0;h=0;break}default:{d=x;return}}do{h=(ee(n[_+(g<<1)>>1]|0,n[i+(g<<1)>>1]|0)|0)+h|0;g=g+1|0}while((g|0)!=40);l=h<<1;g=bn(l)|0;m=g<<16>>16;if(g<<16>>16>0){h=l<<m;if((h>>m|0)==(l|0)){w=h;C=40}else{w=l>>31^2147483647;C=40}}else{h=0-m<<16;if((h|0)<2031616){w=l>>(h>>16);C=40}}if((C|0)==40?(w>>16|0)>=1:0){A=Dn(w>>>16&65535,1,A)|0;n[p>>1]=Ya(A,n[s>>1]|0)|0;n[f>>1]=65528-(g&65535)-(o[t>>1]|0);d=x;return}n[p>>1]=0;n[f>>1]=0;d=x;return}function Xt(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var s=0,o=0,l=0;o=0;s=0;do{l=n[e+(o<<1)>>1]|0;s=(ee(l,l)|0)+s|0;o=o+1|0}while((o|0)!=40);if((s|0)<0){r[a>>2]=1;s=2147483647}a=bn(s)|0;e=a<<16>>16;if(a<<16>>16>0){o=s<<e;if((o>>e|0)==(s|0))s=o;else s=s>>31^2147483647}else{e=0-e<<16;if((e|0)<2031616)s=s>>(e>>16);else s=0}n[i>>1]=s>>>16;n[t>>1]=16-(a&65535);return}function Jt(e,t,i,a,s,o,l,c,u,p,f,A,h){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;o=o|0;l=l|0;c=c|0;u=u|0;p=p|0;f=f|0;A=A|0;h=h|0;var m=0,g=0,v=0,b=0;g=d;d=d+16|0;m=g;if(p>>>0<2){l=Ht(f,e,t,i,a,l,c,m,r[A+76>>2]|0,h)|0;h=r[u>>2]|0;n[h>>1]=l;l=n[m>>1]|0;r[u>>2]=h+4;n[h+2>>1]=l;d=g;return}switch(p|0){case 2:{l=Qt(e,t,i,a,l,c,m,h)|0;h=r[u>>2]|0;n[h>>1]=l;l=n[m>>1]|0;r[u>>2]=h+4;n[h+2>>1]=l;d=g;return}case 3:{l=Gt(e,t,i,a,l,c,m,h)|0;h=r[u>>2]|0;n[h>>1]=l;l=n[m>>1]|0;r[u>>2]=h+4;n[h+2>>1]=l;d=g;return}default:{if((p&-2|0)==4){l=$t(e,t,i,a,l,c,m,r[A+36>>2]|0,h)|0;h=r[u>>2]|0;n[h>>1]=l;l=n[m>>1]|0;r[u>>2]=h+4;n[h+2>>1]=l;d=g;return}if((p|0)!=6){f=s<<16>>16;f=(f<<17>>17|0)==(f|0)?f<<1:f>>>15^32767;s=i<<16>>16<40;if(!s){Rt(e,o,t,l,c,r[u>>2]|0,r[A+36>>2]|0,h);r[u>>2]=(r[u>>2]|0)+20;d=g;return}m=i<<16>>16;p=f<<16>>16;a=m;do{b=(ee(n[t+(a-m<<1)>>1]|0,p)|0)>>>15&65535;v=t+(a<<1)|0;n[v>>1]=$a(n[v>>1]|0,b,h)|0;a=a+1|0}while((a&65535)<<16>>16!=40);Rt(e,o,t,l,c,r[u>>2]|0,r[A+36>>2]|0,h);r[u>>2]=(r[u>>2]|0)+20;if(!s){d=g;return}s=i<<16>>16;p=f<<16>>16;m=s;do{a=(ee(n[l+(m-s<<1)>>1]|0,p)|0)>>15;if((a|0)>32767){r[h>>2]=1;a=32767}b=l+(m<<1)|0;n[b>>1]=$a(n[b>>1]|0,a&65535,h)|0;m=m+1|0}while((m&65535)<<16>>16!=40);d=g;return}A=a<<16>>16;A=(A<<17>>17|0)==(A|0)?A<<1:A>>>15^32767;f=i<<16>>16<40;if(!f){Vt(e,o,t,l,c,r[u>>2]|0,h);r[u>>2]=(r[u>>2]|0)+14;d=g;return}m=i<<16>>16;p=A<<16>>16;a=m;do{s=(ee(n[t+(a-m<<1)>>1]|0,p)|0)>>15;if((s|0)>32767){r[h>>2]=1;s=32767}b=t+(a<<1)|0;n[b>>1]=$a(n[b>>1]|0,s&65535,h)|0;a=a+1|0}while((a&65535)<<16>>16!=40);Vt(e,o,t,l,c,r[u>>2]|0,h);r[u>>2]=(r[u>>2]|0)+14;if(!f){d=g;return}s=i<<16>>16;p=A<<16>>16;m=s;do{a=(ee(n[l+(m-s<<1)>>1]|0,p)|0)>>15;if((a|0)>32767){r[h>>2]=1;a=32767}b=l+(m<<1)|0;n[b>>1]=$a(n[b>>1]|0,a&65535,h)|0;m=m+1|0}while((m&65535)<<16>>16!=40);d=g;return}}}function Zt(e){e=e|0;var t=0;if(!e){e=-1;return e|0}r[e>>2]=0;t=Fn(4)|0;if(!t){e=-1;return e|0}if(!((Ki(t)|0)<<16>>16)){Wi(r[t>>2]|0)|0;r[e>>2]=t;e=0;return e|0}else{Xi(t);Rn(t);e=-1;return e|0}return 0}function ei(e){e=e|0;var t=0;if(!e)return;t=r[e>>2]|0;if(!t)return;Xi(t);Rn(r[e>>2]|0);r[e>>2]=0;return}function ti(e){e=e|0;if(!e){e=-1;return e|0}Wi(r[e>>2]|0)|0;e=0;return e|0}function ii(e,t,i,a,s,l,c,u,p,f,A,h,m,g,v,b,y,_,w,C){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;l=l|0;c=c|0;u=u|0;p=p|0;f=f|0;A=A|0;h=h|0;m=m|0;g=g|0;v=v|0;b=b|0;y=y|0;_=_|0;w=w|0;C=C|0;var x=0,k=0,T=0,S=0;k=d;d=d+16|0;S=k+2|0;T=k;n[m>>1]=Ji(r[e>>2]|0,i,s,c,p,l,40,a,g,T,S,C)|0;e=n[S>>1]|0;a=r[y>>2]|0;r[y>>2]=a+2;n[a>>1]=e;wn(c,n[m>>1]|0,n[g>>1]|0,40,n[T>>1]|0,C);oi(c,l,h,40);n[v>>1]=Li(i,p,h,b,40,C)|0;n[_>>1]=32767;if(f<<16>>16!=0?(x=n[v>>1]|0,x<<16>>16>15565):0)x=Da(t,x,C)|0;else x=0;if(i>>>0<2){S=n[v>>1]|0;n[v>>1]=S<<16>>16>13926?13926:S;if(x<<16>>16)n[_>>1]=15565}else{if(x<<16>>16){n[_>>1]=15565;n[v>>1]=15565}if((i|0)==7){T=ma(7,n[_>>1]|0,v,0,0,w,C)|0;S=r[y>>2]|0;r[y>>2]=S+2;n[S>>1]=T}}m=n[v>>1]|0;x=0;while(1){T=ee(n[h>>1]|0,m)|0;n[A>>1]=(o[p>>1]|0)-(T>>>14);T=(ee(n[c>>1]|0,m)|0)>>>14;S=u+(x<<1)|0;n[S>>1]=(o[S>>1]|0)-T;x=x+1|0;if((x|0)==40)break;else{c=c+2|0;p=p+2|0;A=A+2|0;h=h+2|0}}d=k;return}function ai(e,t){e=e|0;t=t|0;var i=0,a=0,n=0,s=0;s=d;d=d+16|0;n=s;if(!e){e=-1;d=s;return e|0}r[e>>2]=0;i=Fn(2532)|0;r[n>>2]=i;if(!i){e=-1;d=s;return e|0}Za(i+2392|0);r[i+2188>>2]=0;r[(r[n>>2]|0)+2192>>2]=0;r[(r[n>>2]|0)+2196>>2]=0;r[(r[n>>2]|0)+2200>>2]=0;r[(r[n>>2]|0)+2204>>2]=0;r[(r[n>>2]|0)+2208>>2]=0;r[(r[n>>2]|0)+2212>>2]=0;r[(r[n>>2]|0)+2220>>2]=0;a=r[n>>2]|0;r[a+2216>>2]=t;r[a+2528>>2]=0;i=a;if((((((((Zt(a+2196|0)|0)<<16>>16==0?(pn(a+2192|0)|0)<<16>>16==0:0)?(Si(a+2200|0)|0)<<16>>16==0:0)?(ta(a+2204|0)|0)<<16>>16==0:0)?(Ea(a+2208|0)|0)<<16>>16==0:0)?(Na(a+2212|0)|0)<<16>>16==0:0)?(pi(a+2220|0,r[a+2432>>2]|0)|0)<<16>>16==0:0)?(qi(a+2188|0)|0)<<16>>16==0:0){ri(a)|0;r[e>>2]=i;e=0;d=s;return e|0}ni(n);e=-1;d=s;return e|0}function ni(e){e=e|0;var t=0;if(!e)return;t=r[e>>2]|0;if(!t)return;Gi(t+2188|0);An((r[e>>2]|0)+2192|0);Ii((r[e>>2]|0)+2200|0);ei((r[e>>2]|0)+2196|0);aa((r[e>>2]|0)+2204|0);Ba((r[e>>2]|0)+2208|0);Pa((r[e>>2]|0)+2212|0);Ai((r[e>>2]|0)+2220|0);Rn(r[e>>2]|0);r[e>>2]=0;return}function ri(e){e=e|0;var t=0,i=0,a=0,s=0;if(!e){s=-1;return s|0}r[e+652>>2]=e+320;r[e+640>>2]=e+240;r[e+644>>2]=e+160;r[e+648>>2]=e+80;r[e+1264>>2]=e+942;r[e+1912>>2]=e+1590;a=e+1938|0;r[e+2020>>2]=a;r[e+2384>>2]=e+2304;t=e+2028|0;r[e+2024>>2]=e+2108;r[e+2528>>2]=0;$n(e|0,0,640)|0;$n(e+1282|0,0,308)|0;$n(e+656|0,0,286)|0;i=e+2224|0;s=a+80|0;do{n[a>>1]=0;a=a+2|0}while((a|0)<(s|0));a=t;s=a+80|0;do{n[a>>1]=0;a=a+2|0}while((a|0)<(s|0));t=e+1268|0;a=i;s=a+80|0;do{n[a>>1]=0;a=a+2|0}while((a|0)<(s|0));n[t>>1]=40;n[e+1270>>1]=40;n[e+1272>>1]=40;n[e+1274>>1]=40;n[e+1276>>1]=40;$i(r[e+2188>>2]|0)|0;fn(r[e+2192>>2]|0)|0;ti(r[e+2196>>2]|0)|0;Ei(r[e+2200>>2]|0)|0;ia(r[e+2204>>2]|0)|0;Oa(r[e+2208>>2]|0)|0;ja(r[e+2212>>2]|0)|0;fi(r[e+2220>>2]|0,r[e+2432>>2]|0)|0;n[e+2388>>1]=0;s=0;return s|0}function si(e,t,i,a,s,o){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;o=o|0;var l=0,c=0,u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0,I=0,E=0,O=0,B=0,L=0,D=0,M=0,N=0,j=0,P=0,U=0,F=0,R=0,Q=0,H=0,z=0,q=0,G=0,$=0,V=0,Y=0,K=0,W=0,X=0,J=0,Z=0,ee=0,te=0,ie=0,ae=0,ne=0,re=0,se=0,oe=0,le=0,ce=0,ue=0,de=0,pe=0,fe=0,Ae=0,he=0,me=0;me=d;d=d+1184|0;G=me;f=me+1096|0;A=me+1008|0;u=me+904|0;ue=me+928|0;de=me+824|0;K=me+744|0;fe=me+664|0;Ae=me+584|0;X=me+328|0;oe=me+504|0;le=me+424|0;pe=me+344|0;he=me+248|0;W=me+168|0;ae=me+88|0;re=me+68|0;se=me+48|0;ne=me+28|0;ce=me+24|0;te=me+22|0;Z=me+20|0;Y=me+16|0;$=me+12|0;V=me+10|0;ee=me+8|0;J=me+6|0;ie=me+4|0;r[G>>2]=a;q=e+2528|0;l=e+652|0;qn(r[l>>2]|0,i|0,320)|0;r[s>>2]=t;p=e+2216|0;if(!(r[p>>2]|0)){i=e+2220|0;a=0}else{a=Ha(r[e+2212>>2]|0,r[l>>2]|0,q)|0;z=e+2220|0;i=z;a=gi(r[z>>2]|0,a,s,q)|0}z=e+2392|0;Vi(r[e+2188>>2]|0,t,r[e+644>>2]|0,r[e+648>>2]|0,f,z,q);c=e+2192|0;hn(r[c>>2]|0,t,r[s>>2]|0,f,A,u,G,q);mi(r[i>>2]|0,u,r[l>>2]|0,q);if((r[s>>2]|0)==8){hi(r[i>>2]|0,a,r[(r[c>>2]|0)+40>>2]|0,(r[e+2200>>2]|0)+32|0,G,q);$n(e+1282|0,0,308)|0;l=e+2244|0;m=l+20|0;do{n[l>>1]=0;l=l+2|0}while((l|0)<(m|0));l=e+2284|0;m=l+20|0;do{n[l>>1]=0;l=l+2|0}while((l|0)<(m|0));l=r[e+2020>>2]|0;m=l+80|0;do{n[l>>1]=0;l=l+2|0}while((l|0)<(m|0));l=e+2028|0;m=l+80|0;do{n[l>>1]=0;l=l+2|0}while((l|0)<(m|0));fn(r[c>>2]|0)|0;l=r[c>>2]|0;i=u;m=l+20|0;do{n[l>>1]=n[i>>1]|0;l=l+2|0;i=i+2|0}while((l|0)<(m|0));l=(r[c>>2]|0)+20|0;i=u;m=l+20|0;do{n[l>>1]=n[i>>1]|0;l=l+2|0;i=i+2|0}while((l|0)<(m|0));ti(r[e+2196>>2]|0)|0;n[e+2388>>1]=0;H=0}else H=La(r[e+2208>>2]|0,r[c>>2]|0,q)|0;F=e+640|0;c=e+2264|0;l=e+1264|0;i=e+2204|0;a=e+2212|0;R=e+1268|0;Q=e+1278|0;ra(t,2842,2862,2882,f,0,r[F>>2]|0,c,r[l>>2]|0,q);if(t>>>0>1){Yi(r[i>>2]|0,r[a>>2]|0,t,r[l>>2]|0,Y,R,Q,0,r[p>>2]|0,q);ra(t,2842,2862,2882,f,80,r[F>>2]|0,c,r[l>>2]|0,q);Yi(r[i>>2]|0,r[a>>2]|0,t,(r[l>>2]|0)+160|0,Y+2|0,R,Q,1,r[p>>2]|0,q)}else{ra(t,2842,2862,2882,f,80,r[F>>2]|0,c,r[l>>2]|0,q);Yi(r[i>>2]|0,r[a>>2]|0,t,r[l>>2]|0,Y,R,Q,1,r[p>>2]|0,q);n[Y+2>>1]=n[Y>>1]|0}if(r[p>>2]|0)Qa(r[a>>2]|0,Y,q);if((r[s>>2]|0)==8){Ae=e+656|0;he=e+976|0;qn(Ae|0,he|0,286)|0;he=e+320|0;qn(e|0,he|0,320)|0;d=me;return 0}k=e+2224|0;T=e+2244|0;S=e+2284|0;I=e+2388|0;E=e+2020|0;O=e+1916|0;B=e+1912|0;L=e+2024|0;D=e+2384|0;M=e+2196|0;N=e+2208|0;j=e+2464|0;P=e+2200|0;U=e+2224|0;w=e+2244|0;C=e+1270|0;x=e+1280|0;_=0;p=0;u=0;v=0;b=0;c=0;y=-1;while(1){h=y;y=y+1<<16>>16;v=1-(v<<16>>16)|0;a=v&65535;g=(v&65535|0)!=0;i=r[s>>2]|0;l=(i|0)==0;do{if(g)if(l){l=re;i=k;m=l+20|0;do{n[l>>1]=n[i>>1]|0;l=l+2|0;i=i+2|0}while((l|0)<(m|0));l=se;i=T;m=l+20|0;do{n[l>>1]=n[i>>1]|0;l=l+2|0;i=i+2|0}while((l|0)<(m|0));l=ne;i=S;m=l+20|0;do{n[l>>1]=n[i>>1]|0;l=l+2|0;i=i+2|0}while((l|0)<(m|0));n[ce>>1]=n[I>>1]|0;t=(r[F>>2]|0)+(_<<1)|0;l=20;break}else{t=(r[F>>2]|0)+(_<<1)|0;l=19;break}else{t=(r[F>>2]|0)+(_<<1)|0;if(l)l=20;else l=19}}while(0);if((l|0)==19)Sa(i,2842,2862,2882,f,A,t,S,w,r[E>>2]|0,O,(r[B>>2]|0)+(_<<1)|0,r[L>>2]|0,ue,oe,r[D>>2]|0);else if((l|0)==20?(0,Sa(0,2842,2862,2882,f,A,t,S,se,r[E>>2]|0,O,(r[B>>2]|0)+(_<<1)|0,r[L>>2]|0,ue,oe,r[D>>2]|0),g):0){l=ae;i=r[L>>2]|0;m=l+80|0;do{n[l>>1]=n[i>>1]|0;l=l+2|0;i=i+2|0}while((l|0)<(m|0))}l=le;i=oe;m=l+80|0;do{n[l>>1]=n[i>>1]|0;l=l+2|0;i=i+2|0}while((l|0)<(m|0));ii(r[M>>2]|0,r[N>>2]|0,r[s>>2]|0,b,Y,r[L>>2]|0,(r[B>>2]|0)+(_<<1)|0,le,ue,H,de,fe,$,V,ee,X,G,ie,r[j>>2]|0,q);switch(h<<16>>16){case-1:{if((n[Q>>1]|0)>0)n[C>>1]=n[$>>1]|0;break}case 2:{if((n[x>>1]|0)>0)n[R>>1]=n[$>>1]|0;break}default:{}}Jt(de,r[L>>2]|0,n[$>>1]|0,n[I>>1]|0,n[ee>>1]|0,le,K,Ae,G,r[s>>2]|0,y,z,q);Oi(r[P>>2]|0,r[s>>2]|0,oe,(r[B>>2]|0)+(_<<1)|0,K,ue,de,fe,Ae,X,a,n[ie>>1]|0,te,Z,ee,J,G,z,q);Ma(r[N>>2]|0,n[ee>>1]|0,q);t=r[s>>2]|0;do{if(!t)if(g){l=pe;i=ue;m=l+80|0;do{n[l>>1]=n[i>>1]|0;l=l+2|0;i=i+2|0}while((l|0)<(m|0));l=he;i=Ae;m=l+80|0;do{n[l>>1]=n[i>>1]|0;l=l+2|0;i=i+2|0}while((l|0)<(m|0));l=W;i=K;m=l+80|0;do{n[l>>1]=n[i>>1]|0;l=l+2|0;i=i+2|0}while((l|0)<(m|0));u=n[$>>1]|0;p=n[V>>1]|0;Ia(r[F>>2]|0,0,b,n[ee>>1]|0,n[J>>1]|0,A,o,ue,K,fe,Ae,re,S,se,r[B>>2]|0,I,q);n[I>>1]=n[ce>>1]|0;c=b;break}else{l=S;i=ne;m=l+20|0;do{n[l>>1]=n[i>>1]|0;l=l+2|0;i=i+2|0}while((l|0)<(m|0));g=c<<16>>16;wn((r[B>>2]|0)+(g<<1)|0,u,p,40,1,q);oi((r[B>>2]|0)+(g<<1)|0,ae,fe,40);Ia(r[F>>2]|0,r[s>>2]|0,c,n[te>>1]|0,n[Z>>1]|0,A+-22|0,o,pe,W,fe,he,U,S,w,r[B>>2]|0,ce,q);Sa(r[s>>2]|0,2842,2862,2882,f,A,(r[F>>2]|0)+(_<<1)|0,S,w,r[E>>2]|0,O,(r[B>>2]|0)+(_<<1)|0,r[L>>2]|0,ue,oe,r[D>>2]|0);wn((r[B>>2]|0)+(_<<1)|0,n[$>>1]|0,n[V>>1]|0,40,1,q);oi((r[B>>2]|0)+(_<<1)|0,r[L>>2]|0,fe,40);Ia(r[F>>2]|0,r[s>>2]|0,b,n[ee>>1]|0,n[J>>1]|0,A,o,ue,K,fe,Ae,U,S,w,r[B>>2]|0,I,q);break}else Ia(r[F>>2]|0,t,b,n[ee>>1]|0,n[J>>1]|0,A,o,ue,K,fe,Ae,U,S,w,r[B>>2]|0,I,q)}while(0);t=_+40|0;b=t&65535;if(b<<16>>16>=160)break;else{_=t<<16>>16;f=f+22|0;A=A+22|0}}qn(e+1282|0,e+1602|0,308)|0;Ae=e+656|0;he=e+976|0;qn(Ae|0,he|0,286)|0;he=e+320|0;qn(e|0,he|0,320)|0;d=me;return 0}function oi(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var r=0,s=0,o=0,l=0,c=0,u=0,d=0,p=0,f=0,A=0,h=0,m=0;A=a<<16>>16;if(a<<16>>16>1)f=1;else return;while(1){r=n[e>>1]|0;l=t+(f+-1<<1)|0;a=ee(n[t+(f<<1)>>1]|0,r)|0;u=n[l>>1]|0;r=ee(u<<16>>16,r)|0;o=(f+131071|0)>>>1;c=o&65535;s=n[e+2>>1]|0;if(!(c<<16>>16)){t=l;o=u}else{d=(o<<1)+131070&131070;p=f-d|0;o=e;do{m=(ee(u<<16>>16,s)|0)+a|0;h=o;o=o+4|0;a=n[l+-2>>1]|0;s=(ee(a,s)|0)+r|0;r=n[o>>1]|0;l=l+-4|0;a=m+(ee(r,a)|0)|0;u=n[l>>1]|0;r=s+(ee(u<<16>>16,r)|0)|0;c=c+-1<<16>>16;s=n[h+6>>1]|0}while(c<<16>>16!=0);o=t+(p+-3<<1)|0;e=e+(d+2<<1)|0;t=o;o=n[o>>1]|0}a=(ee(o<<16>>16,s)|0)+a|0;n[i>>1]=r>>>12;n[i+2>>1]=a>>>12;a=(f<<16)+131072>>16;if((a|0)<(A|0)){i=i+4|0;e=e+(1-f<<1)|0;f=a}else break}return}function li(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var r=0,s=0,o=0,l=0,c=0,u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0;k=d;d=d+80|0;x=k;o=20;s=e;r=1;while(1){C=n[s>>1]|0;C=(ee(C,C)|0)+r|0;r=n[s+2>>1]|0;r=C+(ee(r,r)|0)|0;o=o+-1<<16>>16;if(!(o<<16>>16))break;else s=s+4|0}r=r<<1;if((r|0)<0){s=20;r=e;a=x;while(1){n[a>>1]=(n[r>>1]|0)>>>1;n[a+2>>1]=(n[r+2>>1]|0)>>>1;s=s+-1<<16>>16;if(!(s<<16>>16)){C=x;break}else{r=r+4|0;a=a+4|0}}}else{r=sn(r>>1,a)|0;if((r|0)<16777215)r=((r>>9)*32440|0)>>>15<<16>>16;else r=32440;o=20;s=e;a=x;while(1){n[a>>1]=((ee(n[s>>1]|0,r)|0)+32|0)>>>6;n[a+2>>1]=((ee(n[s+2>>1]|0,r)|0)+32|0)>>>6;o=o+-1<<16>>16;if(!(o<<16>>16)){C=x;break}else{s=s+4|0;a=a+4|0}}}o=20;s=C;a=i+3198|0;r=0;while(1){w=n[s>>1]|0;w=(ee(w,w)|0)+r|0;n[a>>1]=(w+16384|0)>>>15;_=n[s+2>>1]|0;r=(ee(_,_)|0)+w|0;n[a+-82>>1]=(r+16384|0)>>>15;o=o+-1<<16>>16;if(!(o<<16>>16))break;else{s=s+4|0;a=a+-164|0}}w=t+78|0;_=1;while(1){r=39-_|0;e=i+3120+(r<<1)|0;a=i+(r*80|0)+78|0;r=t+(r<<1)|0;c=x+(_<<1)|0;s=65575-_|0;l=s&65535;o=n[C>>1]|0;if(!(l<<16>>16)){l=w;s=0}else{g=s+65535&65535;b=g*41|0;y=(ee(_,-40)|0)-b|0;v=0-_|0;b=v-b|0;v=v-g|0;m=_+g|0;h=n[c>>1]|0;f=C;A=w;u=i+((38-_|0)*80|0)+78|0;s=0;p=0;while(1){c=c+2|0;s=(ee(h<<16>>16,o)|0)+s|0;f=f+2|0;h=n[c>>1]|0;p=(ee(h<<16>>16,o)|0)+p|0;S=r;r=r+-2|0;o=n[r>>1]|0;T=n[A>>1]<<1;S=(ee((ee(T,n[S>>1]|0)|0)>>16,(s<<1)+32768>>16)|0)>>>15&65535;n[a>>1]=S;n[e>>1]=S;o=(ee((ee(T,o)|0)>>16,(p<<1)+32768>>16)|0)>>>15&65535;n[e+-2>>1]=o;n[u>>1]=o;l=l+-1<<16>>16;o=n[f>>1]|0;if(!(l<<16>>16))break;else{A=A+-2|0;e=e+-82|0;a=a+-82|0;u=u+-82|0}}c=x+(m+1<<1)|0;l=t+(38-g<<1)|0;r=t+(v+38<<1)|0;e=i+3040+(b+38<<1)|0;a=i+3040+(y+38<<1)|0}S=(ee(n[c>>1]|0,o)|0)+s|0;S=(ee((S<<1)+32768>>16,(ee(n[l>>1]<<1,n[r>>1]|0)|0)>>16)|0)>>>15&65535;n[e>>1]=S;n[a>>1]=S;a=(_<<16)+131072|0;if((a|0)<2621440)_=a>>16;else break}d=k;return}function ci(e,t,i,a,s,o,l){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;o=o|0;l=l|0;var c=0,u=0,p=0,f=0,A=0,h=0,m=0,g=0;g=d;d=d+160|0;m=g;if(s<<16>>16>0){A=o&65535;h=0;c=5;do{if((h|0)<40){f=h;p=h&65535;o=0;while(1){if(p<<16>>16<40){p=p<<16>>16;u=0;do{u=(ee(n[e+(p-f<<1)>>1]|0,n[t+(p<<1)>>1]|0)|0)+u|0;p=p+1|0}while((p&65535)<<16>>16!=40)}else u=0;u=u<<1;r[m+(f<<2)>>2]=u;u=Ni(u)|0;o=(u|0)>(o|0)?u:o;u=f+A|0;p=u&65535;if(p<<16>>16>=40)break;else f=u<<16>>16}}else o=0;c=(o>>1)+c|0;h=h+1|0}while((h&65535)<<16>>16!=s<<16>>16)}else c=5;a=((bn(c)|0)&65535)-(a&65535)|0;o=a<<16>>16;u=0-o<<16;c=(u|0)<2031616;u=u>>16;if((a&65535)<<16>>16>0)if(c){c=0;do{a=r[m+(c<<2)>>2]|0;t=a<<o;n[i+(c<<1)>>1]=Ln((t>>o|0)==(a|0)?t:a>>31^2147483647,l)|0;c=c+1|0}while((c|0)!=40);d=g;return}else{c=0;do{a=r[m+(c<<2)>>2]|0;t=a<<o;n[i+(c<<1)>>1]=Ln((t>>o|0)==(a|0)?t:a>>31^2147483647,l)|0;c=c+1|0}while((c|0)!=40);d=g;return}else if(c){c=0;do{n[i+(c<<1)>>1]=Ln(r[m+(c<<2)>>2]>>u,l)|0;c=c+1|0}while((c|0)!=40);d=g;return}else{c=0;do{n[i+(c<<1)>>1]=Ln(0,l)|0;c=c+1|0}while((c|0)!=40);d=g;return}}function ui(e,t,i,a,s){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;var o=0,l=0,c=0,u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0;k=d;d=d+160|0;x=k;_=e+2|0;w=n[e>>1]|0;C=0;s=5;do{y=C;c=0;while(1){f=t+(y<<1)|0;b=40-y|0;o=(b+131071|0)>>>1&65535;u=t+(y+1<<1)|0;l=ee(n[f>>1]<<1,w)|0;if(!(o<<16>>16))o=_;else{v=131111-y+131070&131070;g=y+v|0;m=_;h=e;A=f;while(1){p=A+4|0;f=h+4|0;l=(ee(n[u>>1]<<1,n[m>>1]|0)|0)+l|0;o=o+-1<<16>>16;l=(ee(n[p>>1]<<1,n[f>>1]|0)|0)+l|0;if(!(o<<16>>16))break;else{u=A+6|0;m=h+6|0;h=f;A=p}}u=t+(g+3<<1)|0;o=e+(v+3<<1)|0}if(!(b&1))l=(ee(n[u>>1]<<1,n[o>>1]|0)|0)+l|0;r[x+(y<<2)>>2]=l;l=(l|0)<0?0-l|0:l;c=(l|0)>(c|0)?l:c;l=y+5|0;if((l&65535)<<16>>16<40)y=l<<16>>16;else break}s=(c>>1)+s|0;C=C+1|0}while((C|0)!=5);a=((bn(s)|0)&65535)-(a&65535)|0;l=a<<16>>16;s=0-l<<16;c=s>>16;if((a&65535)<<16>>16>0){o=20;s=x;while(1){x=r[s>>2]|0;a=x<<l;n[i>>1]=(((a>>l|0)==(x|0)?a:x>>31^2147483647)+32768|0)>>>16;x=r[s+4>>2]|0;a=x<<l;n[i+2>>1]=(((a>>l|0)==(x|0)?a:x>>31^2147483647)+32768|0)>>>16;o=o+-1<<16>>16;if(!(o<<16>>16))break;else{i=i+4|0;s=s+8|0}}d=k;return}if((s|0)<2031616){o=20;s=x;while(1){n[i>>1]=((r[s>>2]>>c)+32768|0)>>>16;n[i+2>>1]=((r[s+4>>2]>>c)+32768|0)>>>16;o=o+-1<<16>>16;if(!(o<<16>>16))break;else{i=i+4|0;s=s+8|0}}d=k;return}else{n[i>>1]=0;x=i+4|0;n[i+2>>1]=0;n[x>>1]=0;a=x+4|0;n[x+2>>1]=0;n[a>>1]=0;x=a+4|0;n[a+2>>1]=0;n[x>>1]=0;a=x+4|0;n[x+2>>1]=0;n[a>>1]=0;x=a+4|0;n[a+2>>1]=0;n[x>>1]=0;a=x+4|0;n[x+2>>1]=0;n[a>>1]=0;x=a+4|0;n[a+2>>1]=0;n[x>>1]=0;a=x+4|0;n[x+2>>1]=0;n[a>>1]=0;x=a+4|0;n[a+2>>1]=0;n[x>>1]=0;a=x+4|0;n[x+2>>1]=0;n[a>>1]=0;x=a+4|0;n[a+2>>1]=0;n[x>>1]=0;a=x+4|0;n[x+2>>1]=0;n[a>>1]=0;x=a+4|0;n[a+2>>1]=0;n[x>>1]=0;a=x+4|0;n[x+2>>1]=0;n[a>>1]=0;x=a+4|0;n[a+2>>1]=0;n[x>>1]=0;a=x+4|0;n[x+2>>1]=0;n[a>>1]=0;x=a+4|0;n[a+2>>1]=0;n[x>>1]=0;a=x+4|0;n[x+2>>1]=0;n[a>>1]=0;x=a+4|0;n[a+2>>1]=0;n[x>>1]=0;n[x+2>>1]=0;d=k;return}}function di(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var n=0,s=0,o=0;o=(Ya(16383,t)|0)<<16>>16;t=ee(o,t<<16>>16)|0;if((t|0)==1073741824){r[a>>2]=1;n=2147483647}else n=t<<1;s=(ee(o,i<<16>>16)|0)>>15;t=n+(s<<1)|0;if((n^s|0)>0&(t^n|0)<0){r[a>>2]=1;t=(n>>>31)+2147483647|0}n=2147483647-t|0;i=n>>16;t=ee(i,o)|0;if((t|0)==1073741824){r[a>>2]=1;s=2147483647}else s=t<<1;o=(ee((n>>>1)-(i<<15)<<16>>16,o)|0)>>15;t=s+(o<<1)|0;if((s^o|0)>0&(t^s|0)<0){r[a>>2]=1;t=(s>>>31)+2147483647|0}s=t>>16;o=e>>16;i=ee(s,o)|0;i=(i|0)==1073741824?2147483647:i<<1;n=(ee((t>>>1)-(s<<15)<<16>>16,o)|0)>>15;a=(n<<1)+i|0;a=(n^i|0)>0&(a^i|0)<0?(i>>>31)+2147483647|0:a;o=(ee(s,(e>>>1)-(o<<15)<<16>>16)|0)>>15;e=a+(o<<1)|0;e=(a^o|0)>0&(e^a|0)<0?(a>>>31)+2147483647|0:e;a=e<<2;return((a>>2|0)==(e|0)?a:e>>31^2147483647)|0}function pi(e,t){e=e|0;t=t|0;var i=0,a=0,s=0,o=0;if(!e){o=-1;return o|0}r[e>>2]=0;i=Fn(192)|0;if(!i){o=-1;return o|0}a=i+176|0;n[a>>1]=0;n[a+2>>1]=0;n[a+4>>1]=0;n[a+6>>1]=0;n[a+8>>1]=0;n[a+10>>1]=0;a=i;s=t;o=a+20|0;do{n[a>>1]=n[s>>1]|0;a=a+2|0;s=s+2|0}while((a|0)<(o|0));a=i+20|0;s=t;o=a+20|0;do{n[a>>1]=n[s>>1]|0;a=a+2|0;s=s+2|0}while((a|0)<(o|0));a=i+40|0;s=t;o=a+20|0;do{n[a>>1]=n[s>>1]|0;a=a+2|0;s=s+2|0}while((a|0)<(o|0));a=i+60|0;s=t;o=a+20|0;do{n[a>>1]=n[s>>1]|0;a=a+2|0;s=s+2|0}while((a|0)<(o|0));a=i+80|0;s=t;o=a+20|0;do{n[a>>1]=n[s>>1]|0;a=a+2|0;s=s+2|0}while((a|0)<(o|0));a=i+100|0;s=t;o=a+20|0;do{n[a>>1]=n[s>>1]|0;a=a+2|0;s=s+2|0}while((a|0)<(o|0));a=i+120|0;s=t;o=a+20|0;do{n[a>>1]=n[s>>1]|0;a=a+2|0;s=s+2|0}while((a|0)<(o|0));a=i+140|0;s=t;o=a+20|0;do{n[a>>1]=n[s>>1]|0;a=a+2|0;s=s+2|0}while((a|0)<(o|0));a=i+160|0;o=a+20|0;do{n[a>>1]=0;a=a+2|0}while((a|0)<(o|0));n[i+188>>1]=7;n[i+190>>1]=32767;r[e>>2]=i;o=0;return o|0}function fi(e,t){e=e|0;t=t|0;var i=0,a=0,r=0;if(!e){r=-1;return r|0}i=e+176|0;n[i>>1]=0;n[i+2>>1]=0;n[i+4>>1]=0;n[i+6>>1]=0;n[i+8>>1]=0;n[i+10>>1]=0;i=e;a=t;r=i+20|0;do{n[i>>1]=n[a>>1]|0;i=i+2|0;a=a+2|0}while((i|0)<(r|0));i=e+20|0;a=t;r=i+20|0;do{n[i>>1]=n[a>>1]|0;i=i+2|0;a=a+2|0}while((i|0)<(r|0));i=e+40|0;a=t;r=i+20|0;do{n[i>>1]=n[a>>1]|0;i=i+2|0;a=a+2|0}while((i|0)<(r|0));i=e+60|0;a=t;r=i+20|0;do{n[i>>1]=n[a>>1]|0;i=i+2|0;a=a+2|0}while((i|0)<(r|0));i=e+80|0;a=t;r=i+20|0;do{n[i>>1]=n[a>>1]|0;i=i+2|0;a=a+2|0}while((i|0)<(r|0));i=e+100|0;a=t;r=i+20|0;do{n[i>>1]=n[a>>1]|0;i=i+2|0;a=a+2|0}while((i|0)<(r|0));i=e+120|0;a=t;r=i+20|0;do{n[i>>1]=n[a>>1]|0;i=i+2|0;a=a+2|0}while((i|0)<(r|0));i=e+140|0;a=t;r=i+20|0;do{n[i>>1]=n[a>>1]|0;i=i+2|0;a=a+2|0}while((i|0)<(r|0));i=e+160|0;r=i+20|0;do{n[i>>1]=0;i=i+2|0}while((i|0)<(r|0));n[e+188>>1]=7;n[e+190>>1]=32767;r=1;return r|0}function Ai(e){e=e|0;var t=0;if(!e)return;t=r[e>>2]|0;if(!t)return;Rn(t);r[e>>2]=0;return}function hi(e,t,i,a,s,o){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;o=o|0;var l=0,c=0,u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0,I=0,E=0;I=d;d=d+112|0;k=I+80|0;T=I+60|0;S=I+40|0;x=I;if(t<<16>>16==0?(l=e+178|0,(n[l>>1]|0)!=0):0){S=e+180|0;o=e+182|0;i=l;S=n[S>>1]|0;a=r[s>>2]|0;T=a+2|0;n[a>>1]=S;o=n[o>>1]|0;S=a+4|0;n[T>>1]=o;T=e+184|0;T=n[T>>1]|0;o=a+6|0;n[S>>1]=T;S=e+186|0;S=n[S>>1]|0;e=a+8|0;n[o>>1]=S;i=n[i>>1]|0;a=a+10|0;r[s>>2]=a;n[e>>1]=i;d=I;return}v=x+36|0;b=x+32|0;y=x+28|0;_=x+24|0;w=x+20|0;C=x+16|0;h=x+12|0;m=x+8|0;g=x+4|0;t=x;l=t+40|0;do{r[t>>2]=0;t=t+4|0}while((t|0)<(l|0));A=7;t=0;while(1){f=n[e+160+(A<<1)>>1]|0;l=f<<16>>16;if(f<<16>>16<0)l=~((l^-4)>>2);else l=l>>>2;t=$a(t,l&65535,o)|0;u=A*10|0;f=9;while(1){p=x+(f<<2)|0;c=r[p>>2]|0;E=n[e+(f+u<<1)>>1]|0;l=E+c|0;if((E^c|0)>-1&(l^c|0)<0){r[o>>2]=1;l=(c>>>31)+2147483647|0}r[p>>2]=l;if((f|0)>0)f=f+-1|0;else break}if((A|0)>0)A=A+-1|0;else break}l=t<<16>>16;if(t<<16>>16<0)l=~((l^-2)>>1);else l=l>>>1;n[T+18>>1]=(r[v>>2]|0)>>>3;n[T+16>>1]=(r[b>>2]|0)>>>3;n[T+14>>1]=(r[y>>2]|0)>>>3;n[T+12>>1]=(r[_>>2]|0)>>>3;n[T+10>>1]=(r[w>>2]|0)>>>3;n[T+8>>1]=(r[C>>2]|0)>>>3;n[T+6>>1]=(r[h>>2]|0)>>>3;n[T+4>>1]=(r[m>>2]|0)>>>3;n[T+2>>1]=(r[g>>2]|0)>>>3;n[T>>1]=(r[x>>2]|0)>>>3;t=e+178|0;l=(((l<<16)+167772160|0)>>>16)+128|0;n[t>>1]=l;l=l<<16;if((l|0)<0)l=~((l>>16^-256)>>8);else l=l>>24;n[t>>1]=l;if((l|0)<=63){if((l|0)<0){n[t>>1]=0;l=0}}else{n[t>>1]=63;l=63}E=jn(l<<8&65535,11560,o)|0;E=E<<16>>16>0?0:E<<16>>16<-14436?-14436:E;n[a>>1]=E;n[a+2>>1]=E;n[a+4>>1]=E;n[a+6>>1]=E;E=((E<<16>>16)*5443|0)>>>15&65535;n[a+8>>1]=E;n[a+10>>1]=E;n[a+12>>1]=E;n[a+14>>1]=E;gn(T,k,10,o);On(k,205,10,o);mn(k,T,10,o);a=e+182|0;E=e+180|0;Cn(i,8,T,S,a,E,o);o=a;a=t;E=n[E>>1]|0;i=r[s>>2]|0;S=i+2|0;n[i>>1]=E;o=n[o>>1]|0;E=i+4|0;n[S>>1]=o;S=e+184|0;S=n[S>>1]|0;o=i+6|0;n[E>>1]=S;e=e+186|0;e=n[e>>1]|0;E=i+8|0;n[o>>1]=e;e=n[a>>1]|0;i=i+10|0;r[s>>2]=i;n[E>>1]=e;d=I;return}function mi(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var s=0,l=0,c=0,u=0,p=0,f=0;f=d;d=d+16|0;c=f+2|0;p=f;u=e+176|0;l=(o[u>>1]|0)+1|0;l=(l&65535|0)==8?0:l&65535;n[u>>1]=l;l=e+((l<<16>>16)*10<<1)|0;s=l+20|0;do{n[l>>1]=n[t>>1]|0;l=l+2|0;t=t+2|0}while((l|0)<(s|0));t=0;s=160;while(1){l=n[i>>1]|0;t=(ee(l<<1,l)|0)+t|0;if((t|0)<0){t=2147483647;break}s=s+-1<<16>>16;if(!(s<<16>>16))break;else i=i+2|0}on(t,c,p,a);t=n[c>>1]|0;c=t<<16>>16;i=c<<10;if((i|0)!=(c<<26>>16|0)){r[a>>2]=1;i=t<<16>>16>0?32767:-32768}n[e+160+(n[u>>1]<<1)>>1]=(((n[p>>1]|0)>>>5)+i<<16)+-558432256>>17;d=f;return}function gi(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var s=0,o=0,l=0;o=e+190|0;l=$a(n[o>>1]|0,1,a)|0;n[o>>1]=l;s=e+188|0;do{if(!(t<<16>>16)){e=n[s>>1]|0;if(!(e<<16>>16)){n[o>>1]=0;r[i>>2]=8;e=1;break}o=(e&65535)+65535&65535;n[s>>1]=o;if(($a(l,o,a)|0)<<16>>16<30){r[i>>2]=8;e=0}else e=0}else{n[s>>1]=7;e=0}}while(0);return e|0}function vi(e,t,i,a,n,r,s,o){e=e|0;t=t|0;i=i|0;a=a|0;n=n|0;r=r|0;s=s|0;o=o|0;if(!(r<<16>>16)){r=e<<16>>16;if(((r<<16)+-5570560|0)<65536){t=(r*3|0)+-58+(t<<16>>16)|0;t=t&65535;return t|0}else{t=r+112|0;t=t&65535;return t|0}}if(!(s<<16>>16)){o=(e&65535)-(a&65535)<<16;t=(t<<16>>16)+2+(o>>15)+(o>>16)|0;t=t&65535;return t|0}a=a<<16>>16;a=(((i&65535)-a<<16)+-327680|0)>0?a+5&65535:i;n=n<<16>>16;i=e<<16>>16;a=(((n-(a&65535)<<16)+-262144|0)>0?n+65532&65535:a)<<16>>16;n=a*196608|0;e=n+-393216>>16;r=((t&65535)<<16)+(i*196608|0)>>16;if(!(e-r&32768)){t=i+5-a|0;t=t&65535;return t|0}if((n+196608>>16|0)>(r|0)){t=r+3-e|0;t=t&65535;return t|0}else{t=i+11-a|0;t=t&65535;return t|0}return 0}function bi(e,t,i,a,n){e=e|0;t=t|0;i=i|0;a=a|0;n=n|0;n=e<<16>>16;do{if(!(a<<16>>16))if(e<<16>>16<95){n=((n*393216|0)+-6881280>>16)+(t<<16>>16)|0;break}else{n=n+368|0;break}else n=((((n-(i&65535)|0)*393216|0)+196608|0)>>>16)+(t&65535)|0}while(0);return n&65535|0}function yi(e,t,i,s){e=e|0;t=t|0;i=i|0;s=s|0;var l=0,c=0,u=0,d=0,p=0,f=0;l=r[s+96>>2]|0;if(e>>>0<8){p=(r[s+100>>2]|0)+(e<<2)|0;d=r[p>>2]|0;a[i>>0]=n[t+(n[d>>1]<<1)>>1]<<4|e|n[t+(n[d+2>>1]<<1)>>1]<<5|n[t+(n[d+4>>1]<<1)>>1]<<6|n[t+(n[d+6>>1]<<1)>>1]<<7;d=l+(e<<1)|0;s=n[d>>1]|0;if((s+-7|0)>4){l=4;u=4;e=1;while(1){f=n[t+(n[(r[p>>2]|0)+(l<<1)>>1]<<1)>>1]|0;s=i+(e<<16>>16)|0;a[s>>0]=f;f=o[t+(n[(r[p>>2]|0)+((u|1)<<16>>16<<1)>>1]<<1)>>1]<<1|f&65535;a[s>>0]=f;f=o[t+(n[(r[p>>2]|0)+((u|2)<<16>>16<<1)>>1]<<1)>>1]<<2|f;a[s>>0]=f;f=o[t+(n[(r[p>>2]|0)+((u|3)<<16>>16<<1)>>1]<<1)>>1]<<3|f;a[s>>0]=f;f=o[t+(n[(r[p>>2]|0)+(u+4<<16>>16<<16>>16<<1)>>1]<<1)>>1]<<4|f;a[s>>0]=f;f=o[t+(n[(r[p>>2]|0)+(u+5<<16>>16<<16>>16<<1)>>1]<<1)>>1]<<5|f;a[s>>0]=f;f=o[t+(n[(r[p>>2]|0)+(u+6<<16>>16<<16>>16<<1)>>1]<<1)>>1]<<6|f;a[s>>0]=f;c=u+8<<16>>16;e=e+1<<16>>16;a[s>>0]=o[t+(n[(r[p>>2]|0)+(u+7<<16>>16<<16>>16<<1)>>1]<<1)>>1]<<7|f;l=c<<16>>16;s=n[d>>1]|0;if((l|0)>=(s+-7|0))break;else u=c}}else{c=4;e=1}d=s+4&7;if(!d)return;l=i+(e<<16>>16)|0;a[l>>0]=0;s=0;u=0;e=0;while(1){u=(o[t+(n[(r[p>>2]|0)+(c<<16>>16<<1)>>1]<<1)>>1]&255)<<s|u&255;a[l>>0]=u;e=e+1<<16>>16;s=e<<16>>16;if((s|0)>=(d|0))break;else c=c+1<<16>>16}return}if((e|0)==15){a[i>>0]=15;return}a[i>>0]=n[t>>1]<<4|e|n[t+2>>1]<<5|n[t+4>>1]<<6|n[t+6>>1]<<7;s=l+(e<<1)|0;e=n[s>>1]|0;l=((e&65535)<<16)+262144>>16;p=l&-8;u=(p+524281|0)>>>3&65535;if(u<<16>>16>0){l=((l&-8)+524281|0)>>>3;d=((l<<3)+524280&524280)+12|0;c=1;e=t+8|0;while(1){a[i+(c<<16>>16)>>0]=o[e+2>>1]<<1|o[e>>1]|o[e+4>>1]<<2|o[e+6>>1]<<3|o[e+8>>1]<<4|o[e+10>>1]<<5|o[e+12>>1]<<6|o[e+14>>1]<<7;if(u<<16>>16>1){u=u+-1<<16>>16;c=c+1<<16>>16;e=e+16|0}else break}e=n[s>>1]|0;c=(l<<16)+65536>>16}else{d=4;c=1}e=(0-p|4)+(e&65535)<<16;u=e>>16;if(!u)return;c=i+c|0;a[c>>0]=0;if((e|0)>0){e=0;l=0;s=0}else return;do{l=l&255|n[t+(d+e<<1)>>1]<<e;a[c>>0]=l;s=s+1<<16>>16;e=s<<16>>16}while((e|0)<(u|0));return}function _i(e,t,i,s){e=e|0;t=t|0;i=i|0;s=s|0;var l=0,c=0,u=0,d=0,p=0,f=0,A=0,h=0;A=r[s+100>>2]|0;f=r[s+96>>2]|0;a[i>>0]=e&15;f=f+(e<<1)|0;l=n[f>>1]|0;if(e>>>0>=8){d=((l&65535)<<16)+-458752|0;if((d|0)>0){p=1;u=t;while(1){t=u+16|0;s=p+1<<16>>16;a[i+(p<<16>>16)>>0]=o[u+14>>1]|o[u+12>>1]<<1|((o[u+2>>1]<<6|o[u>>1]<<7|o[u+4>>1]<<5|o[u+6>>1]<<4)&240|o[u+8>>1]<<3|o[u+10>>1]<<2)&252;d=d+-524288&-65536;if((d|0)<=0)break;else{p=s;u=t}}l=n[f>>1]|0}else s=1;p=l&7;l=i+(s<<16>>16)|0;a[l>>0]=0;if(!p)return;else{c=0;u=0;d=0;s=t}while(1){u=u&255|n[s>>1]<<7-c;a[l>>0]=u;d=d+1<<16>>16;c=d<<16>>16;if((c|0)>=(p|0))break;else s=s+2|0}return}u=l<<16>>16;if(l<<16>>16>7){l=A+(e<<2)|0;s=0;p=0;c=1;while(1){h=o[t+(n[(r[l>>2]|0)+(s<<1)>>1]<<1)>>1]<<7;u=i+(c<<16>>16)|0;a[u>>0]=h;h=o[t+(n[(r[l>>2]|0)+((p|1)<<16>>16<<1)>>1]<<1)>>1]<<6|h;a[u>>0]=h;h=o[t+(n[(r[l>>2]|0)+((p|2)<<16>>16<<1)>>1]<<1)>>1]<<5|h;a[u>>0]=h;h=o[t+(n[(r[l>>2]|0)+((p|3)<<16>>16<<1)>>1]<<1)>>1]<<4|h;a[u>>0]=h;h=o[t+(n[(r[l>>2]|0)+((p|4)<<16>>16<<1)>>1]<<1)>>1]<<3|h&240;a[u>>0]=h;h=o[t+(n[(r[l>>2]|0)+((p|5)<<16>>16<<1)>>1]<<1)>>1]<<2|h;a[u>>0]=h;h=o[t+(n[(r[l>>2]|0)+((p|6)<<16>>16<<1)>>1]<<1)>>1]<<1|h;a[u>>0]=h;d=p+8<<16>>16;c=c+1<<16>>16;a[u>>0]=h&254|o[t+(n[(r[l>>2]|0)+((p|7)<<16>>16<<1)>>1]<<1)>>1];s=d<<16>>16;u=n[f>>1]|0;if((s|0)>=(u+-7|0))break;else p=d}}else{d=0;c=1}f=u&7;p=i+(c<<16>>16)|0;a[p>>0]=0;if(!f)return;c=A+(e<<2)|0;l=0;s=0;u=0;while(1){s=(o[t+(n[(r[c>>2]|0)+(d<<16>>16<<1)>>1]<<1)>>1]&255)<<7-l|s&255;a[p>>0]=s;u=u+1<<16>>16;l=u<<16>>16;if((l|0)>=(f|0))break;else d=d+1<<16>>16}return}function wi(e,t,i,s){e=e|0;t=t|0;i=i|0;s=s|0;var l=0,c=0,u=0,d=0,p=0,f=0,A=0,h=0;A=r[s+100>>2]|0;f=r[s+96>>2]|0;a[i>>0]=e<<3;f=f+(e<<1)|0;l=n[f>>1]|0;if(e>>>0>=8){d=((l&65535)<<16)+-458752|0;if((d|0)>0){p=1;u=t;while(1){t=u+16|0;s=p+1<<16>>16;a[i+(p<<16>>16)>>0]=o[u+14>>1]|o[u+12>>1]<<1|((o[u+2>>1]<<6|o[u>>1]<<7|o[u+4>>1]<<5|o[u+6>>1]<<4)&240|o[u+8>>1]<<3|o[u+10>>1]<<2)&252;d=d+-524288&-65536;if((d|0)<=0)break;else{p=s;u=t}}l=n[f>>1]|0}else s=1;p=l&7;l=i+(s<<16>>16)|0;a[l>>0]=0;if(!p)return;else{c=0;u=0;d=0;s=t}while(1){u=u&255|n[s>>1]<<7-c;a[l>>0]=u;d=d+1<<16>>16;c=d<<16>>16;if((c|0)>=(p|0))break;else s=s+2|0}return}u=l<<16>>16;if(l<<16>>16>7){l=A+(e<<2)|0;s=0;p=0;c=1;while(1){h=o[t+(n[(r[l>>2]|0)+(s<<1)>>1]<<1)>>1]<<7;u=i+(c<<16>>16)|0;a[u>>0]=h;h=o[t+(n[(r[l>>2]|0)+((p|1)<<16>>16<<1)>>1]<<1)>>1]<<6|h;a[u>>0]=h;h=o[t+(n[(r[l>>2]|0)+((p|2)<<16>>16<<1)>>1]<<1)>>1]<<5|h;a[u>>0]=h;h=o[t+(n[(r[l>>2]|0)+((p|3)<<16>>16<<1)>>1]<<1)>>1]<<4|h;a[u>>0]=h;h=o[t+(n[(r[l>>2]|0)+((p|4)<<16>>16<<1)>>1]<<1)>>1]<<3|h&240;a[u>>0]=h;h=o[t+(n[(r[l>>2]|0)+((p|5)<<16>>16<<1)>>1]<<1)>>1]<<2|h;a[u>>0]=h;h=o[t+(n[(r[l>>2]|0)+((p|6)<<16>>16<<1)>>1]<<1)>>1]<<1|h;a[u>>0]=h;d=p+8<<16>>16;c=c+1<<16>>16;a[u>>0]=h&254|o[t+(n[(r[l>>2]|0)+((p|7)<<16>>16<<1)>>1]<<1)>>1];s=d<<16>>16;u=n[f>>1]|0;if((s|0)>=(u+-7|0))break;else p=d}}else{d=0;c=1}f=u&7;p=i+(c<<16>>16)|0;a[p>>0]=0;if(!f)return;c=A+(e<<2)|0;l=0;s=0;u=0;while(1){s=(o[t+(n[(r[c>>2]|0)+(d<<16>>16<<1)>>1]<<1)>>1]&255)<<7-l|s&255;a[p>>0]=s;u=u+1<<16>>16;l=u<<16>>16;if((l|0)>=(f|0))break;else d=d+1<<16>>16}return}function Ci(e){e=e|0;var t=0;if(!e){e=-1;return e|0}r[e>>2]=0;t=Fn(16)|0;if(!t){e=-1;return e|0}n[t>>1]=0;n[t+2>>1]=0;n[t+4>>1]=0;n[t+6>>1]=0;n[t+8>>1]=0;n[t+10>>1]=0;n[t+12>>1]=0;n[t+14>>1]=0;r[e>>2]=t;e=0;return e|0}function xi(e){e=e|0;if(!e){e=-1;return e|0}n[e>>1]=0;n[e+2>>1]=0;n[e+4>>1]=0;n[e+6>>1]=0;n[e+8>>1]=0;n[e+10>>1]=0;n[e+12>>1]=0;n[e+14>>1]=0;e=0;return e|0}function ki(e){e=e|0;var t=0;if(!e)return;t=r[e>>2]|0;if(!t)return;Rn(t);r[e>>2]=0;return}function Ti(e,t,i,a,s){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;var o=0,l=0,c=0,u=0,d=0;c=t<<16>>16<2722?0:t<<16>>16<5444?1:2;l=Mn(i,1,s)|0;d=e+4|0;if(!(i<<16>>16>200?l<<16>>16>(n[d>>1]|0):0)){l=n[e>>1]|0;if(l<<16>>16){o=l+-1<<16>>16;n[e>>1]=o;o=o<<16>>16!=0;u=5}}else{n[e>>1]=8;o=1;u=5}if((u|0)==5)if((c&65535)<2&o)c=(c&65535)+1&65535;u=e+6|0;n[u>>1]=t;o=en(u,5)|0;if(!(c<<16>>16!=0|o<<16>>16>5443))if(o<<16>>16<0)o=16384;else{o=o<<16>>16;o=(((o<<18>>18|0)==(o|0)?o<<2:o>>>15^32767)<<16>>16)*24660>>15;if((o|0)>32767){r[s>>2]=1;o=32767}o=16384-o&65535}else o=0;l=e+2|0;if(!(n[l>>1]|0))o=Dn(o,1,s)|0;n[a>>1]=o;n[l>>1]=o;n[d>>1]=i;a=e+12|0;n[e+14>>1]=n[a>>1]|0;i=e+10|0;n[a>>1]=n[i>>1]|0;e=e+8|0;n[i>>1]=n[e>>1]|0;n[e>>1]=n[u>>1]|0;return}function Si(e){e=e|0;var t=0,i=0,a=0,s=0,o=0,l=0;if(!e){e=-1;return e|0}r[e>>2]=0;t=Fn(68)|0;a=t;if(!t){e=-1;return e|0}r[t+28>>2]=0;s=t+64|0;r[s>>2]=0;o=t+32|0;if(((Ka(o)|0)<<16>>16==0?(l=t+48|0,(Ka(l)|0)<<16>>16==0):0)?(Ci(s)|0)<<16>>16==0:0){i=t+32|0;do{n[t>>1]=0;t=t+2|0}while((t|0)<(i|0));Ka(o)|0;Ka(l)|0;xi(r[s>>2]|0)|0;r[e>>2]=a;e=0;return e|0}ki(s);Rn(t);e=-1;return e|0}function Ii(e){e=e|0;var t=0;if(!e)return;t=r[e>>2]|0;if(!t)return;ki(t+64|0);Rn(r[e>>2]|0);r[e>>2]=0;return}function Ei(e){e=e|0;var t=0,i=0,a=0;if(!e){a=-1;return a|0}t=e+32|0;i=e;a=i+32|0;do{n[i>>1]=0;i=i+2|0}while((i|0)<(a|0));Ka(t)|0;Ka(e+48|0)|0;xi(r[e+64>>2]|0)|0;a=0;return a|0}function Oi(e,t,i,a,s,l,c,u,p,f,A,h,m,g,v,b,y,_,w){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;l=l|0;c=c|0;u=u|0;p=p|0;f=f|0;A=A|0;h=h|0;m=m|0;g=g|0;v=v|0;b=b|0;y=y|0;_=_|0;w=w|0;var C=0,x=0,k=0,T=0,S=0,I=0,E=0,O=0,B=0,L=0,D=0;D=d;d=d+48|0;x=D+34|0;T=D+32|0;I=D+30|0;S=D+28|0;k=D+18|0;C=D+8|0;E=D+6|0;O=D+4|0;B=D+2|0;L=D;if(t){A=e+32|0;Wa(A,t,s,x,T,E,O,w);do{if((t|0)!=7){Wt(t,l,c,u,p,f,k,C,L,B,w);if((t|0)==5){Aa(r[e+64>>2]|0,i,a,s,k,C,n[E>>1]|0,n[O>>1]|0,n[x>>1]|0,n[T>>1]|0,40,n[L>>1]|0,n[B>>1]|0,h,v,b,I,S,y,_,w);break}else{e=ga(t,n[x>>1]|0,n[T>>1]|0,k,C,h,v,b,I,S,_,w)|0;l=r[y>>2]|0;r[y>>2]=l+2;n[l>>1]=e;break}}else{n[b>>1]=Bi(c,p,w)|0;e=ha(7,n[x>>1]|0,n[T>>1]|0,b,I,S,r[_+68>>2]|0,w)|0;l=r[y>>2]|0;r[y>>2]=l+2;n[l>>1]=e}}while(0);Xa(A,n[I>>1]|0,n[S>>1]|0);d=D;return}if(!(A<<16>>16)){Wa(e+48|0,0,s,x,T,E,O,w);Wt(0,l,c,u,p,f,k,C,L,B,w);Xt(l,E,O,w);l=pa(e+32|0,n[e>>1]|0,n[e+2>>1]|0,e+8|0,e+18|0,n[e+4>>1]|0,n[e+6>>1]|0,s,n[x>>1]|0,n[T>>1]|0,C,k,n[E>>1]|0,n[O>>1]|0,h,m,g,v,b,w)|0;n[r[e+28>>2]>>1]=l;d=D;return}A=r[y>>2]|0;r[y>>2]=A+2;r[e+28>>2]=A;A=e+48|0;i=e+32|0;m=i;m=o[m>>1]|o[m+2>>1]<<16;i=i+4|0;i=o[i>>1]|o[i+2>>1]<<16;y=A;g=y;n[g>>1]=m;n[g+2>>1]=m>>>16;y=y+4|0;n[y>>1]=i;n[y+2>>1]=i>>>16;y=e+40|0;i=y;i=o[i>>1]|o[i+2>>1]<<16;y=y+4|0;y=o[y>>1]|o[y+2>>1]<<16;g=e+56|0;m=g;n[m>>1]=i;n[m+2>>1]=i>>>16;g=g+4|0;n[g>>1]=y;n[g+2>>1]=y>>>16;g=e+2|0;Wa(A,0,s,e,g,E,O,w);Wt(0,l,c,u,p,f,e+18|0,e+8|0,L,B,w);u=(o[B>>1]|0)+1|0;y=n[L>>1]|0;m=u<<16>>16;if((u&65535)<<16>>16<0){_=0-m<<16;if((_|0)<983040)_=y<<16>>16>>(_>>16)&65535;else _=0}else{y=y<<16>>16;_=y<<m;if((_<<16>>16>>m|0)==(y|0))_=_&65535;else _=(y>>>15^32767)&65535}n[b>>1]=_;Xt(l,e+4|0,e+6|0,w);da(A,n[e>>1]|0,n[g>>1]|0,n[B>>1]|0,n[L>>1]|0,w);d=D;return}function Bi(e,t,i){e=e|0;t=t|0;i=i|0;var a=0,r=0,s=0;r=10;i=e;a=t;e=0;while(1){e=(ee(n[a>>1]>>1,n[i>>1]|0)|0)+e|0;e=e+(ee(n[a+2>>1]>>1,n[i+2>>1]|0)|0)|0;e=e+(ee(n[a+4>>1]>>1,n[i+4>>1]|0)|0)|0;e=e+(ee(n[a+6>>1]>>1,n[i+6>>1]|0)|0)|0;r=r+-1<<16>>16;if(!(r<<16>>16))break;else{i=i+8|0;a=a+8|0}}i=e<<1;r=bn(i|1)|0;s=r<<16>>16;i=(r<<16>>16<17?i>>17-s:i<<s+-17)&65535;if(i<<16>>16<1){t=0;return t|0}else{r=20;a=t;e=0}while(1){t=n[a>>1]>>1;t=((ee(t,t)|0)>>>2)+e|0;e=n[a+2>>1]>>1;e=t+((ee(e,e)|0)>>>2)|0;r=r+-1<<16>>16;if(!(r<<16>>16))break;else a=a+4|0}e=e<<3;r=bn(e)|0;t=r<<16>>16;i=Ya(i,(r<<16>>16<16?e>>16-t:e<<t+-16)&65535)|0;t=(s<<16)+327680-(t<<16)|0;e=t>>16;if((t|0)>65536)e=i<<16>>16>>e+-1;else e=i<<16>>16<<1-e;t=e&65535;return t|0}function Li(e,t,i,a,s,o){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;o=o|0;var l=0,c=0,u=0,d=0,p=0,f=0,A=0,h=0,m=0,g=0;r[o>>2]=0;p=s<<16>>16;u=p>>>2&65535;A=u<<16>>16==0;if(A)c=0;else{d=u;l=i;c=0;while(1){h=n[l>>1]|0;h=(ee(h,h)|0)+c|0;c=n[l+2>>1]|0;c=h+(ee(c,c)|0)|0;h=n[l+4>>1]|0;h=c+(ee(h,h)|0)|0;c=n[l+6>>1]|0;c=h+(ee(c,c)|0)|0;d=d+-1<<16>>16;if(!(d<<16>>16))break;else l=l+8|0}}if(!((c>>>31^1)&(c|0)<1073741824)){c=p>>>1&65535;if(!(c<<16>>16))c=1;else{l=c;d=i;c=0;while(1){h=n[d>>1]>>2;h=(ee(h,h)|0)+c|0;c=n[d+2>>1]>>2;c=h+(ee(c,c)|0)|0;l=l+-1<<16>>16;if(!(l<<16>>16))break;else d=d+4|0}c=c<<1|1}h=(bn(c)|0)<<16>>16;f=h+65532&65535;h=Ln(c<<h,o)|0}else{p=c<<1|1;h=bn(p)|0;f=h;h=Ln(p<<(h<<16>>16),o)|0}r[o>>2]=0;do{if(!(s<<16>>16)){c=1;m=14}else{p=s;d=t;c=i;s=0;while(1){g=ee(n[c>>1]|0,n[d>>1]|0)|0;l=g+s|0;if((g^s|0)>0&(l^s|0)<0)break;p=p+-1<<16>>16;if(!(p<<16>>16)){m=13;break}else{d=d+2|0;c=c+2|0;s=l}}if((m|0)==13){c=l<<1|1;m=14;break}r[o>>2]=1;if(A)c=1;else{c=t;l=0;while(1){l=(ee(n[i>>1]>>2,n[c>>1]|0)|0)+l|0;l=l+(ee(n[i+2>>1]>>2,n[c+2>>1]|0)|0)|0;l=l+(ee(n[i+4>>1]>>2,n[c+4>>1]|0)|0)|0;l=l+(ee(n[i+6>>1]>>2,n[c+6>>1]|0)|0)|0;u=u+-1<<16>>16;if(!(u<<16>>16))break;else{c=c+8|0;i=i+8|0}}c=l<<1|1}i=(bn(c)|0)<<16>>16;l=i+65532&65535;i=Ln(c<<i,o)|0}}while(0);if((m|0)==14){i=bn(c)|0;l=i;i=Ln(c<<(i<<16>>16),o)|0}n[a>>1]=h;c=f<<16>>16;n[a+2>>1]=15-c;n[a+4>>1]=i;l=l<<16>>16;n[a+6>>1]=15-l;if(i<<16>>16<4){g=0;return g|0}l=Dn(Ya(i<<16>>16>>>1&65535,h)|0,l-c&65535,o)|0;l=l<<16>>16>19661?19661:l;if((e|0)!=7){g=l;return g|0}g=l&65532;return g|0}function Di(e,t,i,a,s,o,l){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;o=o|0;l=l|0;var c=0,u=0,d=0,p=0,f=0,A=0;u=(a&65535)+65535&65535;if(u<<16>>16>s<<16>>16){f=a+-1<<16>>16<<16>>16;a=-2147483648;while(1){d=r[e+(0-f<<2)>>2]|0;c=d<<1;d=(c>>1|0)==(d|0)?c:d>>31^2147483647;c=r[e+(~f<<2)>>2]|0;p=d-c|0;if(((p^d)&(d^c)|0)<0){r[l>>2]=1;p=(d>>>31)+2147483647|0}d=r[e+(1-f<<2)>>2]|0;c=p-d|0;if(((c^p)&(d^p)|0)<0){r[l>>2]=1;c=(p>>>31)+2147483647|0}p=Ni(c)|0;a=(p|0)<(a|0)?a:p;u=u+-1<<16>>16;if(u<<16>>16<=s<<16>>16){s=a;break}else f=f+-1|0}}else s=-2147483648;e=i<<16>>16>0;if(e){a=0;c=t;u=0;while(1){p=n[c>>1]|0;p=ee(p,p)|0;if((p|0)!=1073741824){d=(p<<1)+u|0;if((p^u|0)>0&(d^u|0)<0){r[l>>2]=1;u=(u>>>31)+2147483647|0}else u=d}else{r[l>>2]=1;u=2147483647}a=a+1<<16>>16;if(a<<16>>16>=i<<16>>16)break;else c=c+2|0}if(e){e=0;f=t;a=t+-2|0;c=0;while(1){p=ee(n[a>>1]|0,n[f>>1]|0)|0;if((p|0)!=1073741824){d=(p<<1)+c|0;if((p^c|0)>0&(d^c|0)<0){r[l>>2]=1;c=(c>>>31)+2147483647|0}else c=d}else{r[l>>2]=1;c=2147483647}e=e+1<<16>>16;if(e<<16>>16>=i<<16>>16)break;else{f=f+2|0;a=a+2|0}}}else c=0}else{u=0;c=0}a=u<<1;a=(a>>1|0)==(u|0)?a:u>>31^2147483647;i=c<<1;i=(i>>1|0)==(c|0)?i:c>>31^2147483647;u=a-i|0;if(((u^a)&(i^a)|0)<0){r[l>>2]=1;u=(a>>>31)+2147483647|0}e=Ni(u)|0;f=((bn(s)|0)&65535)+65535|0;u=f<<16>>16;if((f&65535)<<16>>16>0){a=s<<u;if((a>>u|0)!=(s|0))a=s>>31^2147483647}else{u=0-u<<16;if((u|0)<2031616)a=s>>(u>>16);else a=0}p=bn(e)|0;c=p<<16>>16;if(p<<16>>16>0){u=e<<c;if((u>>c|0)==(e|0))A=33;else{u=e>>31^2147483647;A=33}}else{u=0-c<<16;if((u|0)<2031616){u=e>>(u>>16);A=33}else d=0}if((A|0)==33)if(u>>>0>65535)d=Ya(a>>>16&65535,u>>>16&65535)|0;else d=0;u=p&65535;A=(f&65535)-u|0;a=A&65535;if(!(A&32768)){l=Dn(d,a,l)|0;n[o>>1]=l;return 0}if(a<<16>>16!=-32768){l=u-f|0;c=l<<16>>16;if((l&65535)<<16>>16<0){c=0-c<<16;if((c|0)>=983040){l=0;n[o>>1]=l;return 0}l=d<<16>>16>>(c>>16)&65535;n[o>>1]=l;return 0}}else c=32767;a=d<<16>>16;u=a<<c;if((u<<16>>16>>c|0)==(a|0)){l=u&65535;n[o>>1]=l;return 0}l=(a>>>15^32767)&65535;n[o>>1]=l;return 0}function Mi(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;if(i<<16>>16)t=t<<16>>16<<1&65535;if(t<<16>>16<0){e=e+-2|0;t=(t&65535)+6&65535}i=t<<16>>16;a=6-i<<16>>16;t=(ee(n[3468+(i<<1)>>1]|0,n[e>>1]|0)|0)+16384|0;t=t+(ee(n[3468+(a<<1)>>1]|0,n[e+2>>1]|0)|0)|0;t=t+(ee(n[3468+(i+6<<1)>>1]|0,n[e+-2>>1]|0)|0)|0;t=t+(ee(n[3468+(a+6<<1)>>1]|0,n[e+4>>1]|0)|0)|0;t=(ee(n[3468+(i+12<<1)>>1]|0,n[e+-4>>1]|0)|0)+t|0;t=t+(ee(n[3468+(a+12<<1)>>1]|0,n[e+6>>1]|0)|0)|0;i=t+(ee(n[3468+(i+18<<1)>>1]|0,n[e+-6>>1]|0)|0)|0;return(i+(ee(n[3468+(a+18<<1)>>1]|0,n[e+8>>1]|0)|0)|0)>>>15&65535|0}function Ni(e){e=e|0;e=e-(e>>>31)|0;return e>>31^e|0}function ji(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var r=0,s=0,o=0,l=0,c=0;if(!(e<<16>>16))return;else{r=3518;s=3538;a=i}while(1){a=a+2|0;t=t+2|0;c=n[t>>1]|0;l=n[r>>1]|0;i=ee(l,c)|0;i=(i|0)==1073741824?2147483647:i<<1;c=(ee(n[s>>1]|0,c)|0)>>15;o=(c<<1)+i|0;o=(i^c|0)>0&(o^i|0)<0?(i>>>31)+2147483647|0:o;l=(ee(l,n[a>>1]|0)|0)>>15;i=o+(l<<1)|0;i=(o^l|0)>0&(i^o|0)<0?(o>>>31)+2147483647|0:i;n[t>>1]=i>>>16;n[a>>1]=(i>>>1)-(i>>16<<15);e=e+-1<<16>>16;if(!(e<<16>>16))break;else{r=r+2|0;s=s+2|0}}return}function Pi(e,t,i){e=e|0;t=t|0;i=i|0;var a=0,n=0;a=e&65535;n=a<<16;t=t<<16>>16;e=(t<<1)+n|0;if(!((t^n|0)>0&(e^n|0)<0)){n=e;return n|0}r[i>>2]=1;n=(a>>>15)+2147483647|0;return n|0}function Ui(e){e=e|0;var t=0,i=0,a=0;if(!e){a=-1;return a|0}r[e>>2]=0;t=Fn(22)|0;if(!t){a=-1;return a|0}n[t>>1]=4096;i=t+2|0;a=i+20|0;do{n[i>>1]=0;i=i+2|0}while((i|0)<(a|0));r[e>>2]=t;a=0;return a|0}function Fi(e){e=e|0;var t=0;if(!e){t=-1;return t|0}n[e>>1]=4096;e=e+2|0;t=e+20|0;do{n[e>>1]=0;e=e+2|0}while((e|0)<(t|0));t=0;return t|0}function Ri(e){e=e|0;var t=0;if(!e)return;t=r[e>>2]|0;if(!t)return;Rn(t);r[e>>2]=0;return}function Qi(e,t,i,a,r,s){e=e|0;t=t|0;i=i|0;a=a|0;r=r|0;s=s|0;var l=0,c=0,u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0,I=0,E=0,O=0,B=0,L=0,D=0,M=0,N=0,j=0,P=0,U=0;j=d;d=d+96|0;M=j+66|0;N=j+44|0;D=j+22|0;c=j;E=t+2|0;L=i+2|0;B=(n[L>>1]<<1)+(o[E>>1]<<16)|0;l=Ni(B)|0;l=di(l,n[t>>1]|0,n[i>>1]|0,s)|0;if((B|0)>0)l=zi(l)|0;S=l>>16;n[r>>1]=Ln(l,s)|0;_=l>>20;O=M+2|0;n[O>>1]=_;B=N+2|0;n[B>>1]=(l>>>5)-(_<<15);_=ee(S,S)|0;_=(_|0)==1073741824?2147483647:_<<1;S=(ee((l>>>1)-(S<<15)<<16>>16,S)|0)>>15;I=S<<1;T=I+_|0;T=(S^_|0)>0&(T^_|0)<0?(_>>>31)+2147483647|0:T;I=T+I|0;I=2147483647-(Ni((T^S|0)>0&(I^T|0)<0?(T>>>31)+2147483647|0:I)|0)|0;T=I>>16;S=n[t>>1]|0;_=ee(T,S)|0;_=(_|0)==1073741824?2147483647:_<<1;S=(ee((I>>>1)-(T<<15)<<16>>16,S)|0)>>15;I=(S<<1)+_|0;I=(S^_|0)>0&(I^_|0)<0?(_>>>31)+2147483647|0:I;T=(ee(n[i>>1]|0,T)|0)>>15;_=I+(T<<1)|0;_=(I^T|0)>0&(_^I|0)<0?(I>>>31)+2147483647|0:_;I=bn(_)|0;_=_<<(I<<16>>16);T=D+2|0;S=c+2|0;u=_;_=(_>>>1)-(_>>16<<15)|0;w=c+4|0;C=D+4|0;x=2;k=2;while(1){y=u>>>16;l=y&65535;g=_&65535;v=k+-1|0;f=M+(v<<1)|0;b=N+(v<<1)|0;m=1;h=f;A=b;p=E;c=L;u=0;while(1){P=n[p>>1]|0;U=((ee(n[A>>1]|0,P)|0)>>15)+u|0;u=n[h>>1]|0;u=U+(ee(u,P)|0)+((ee(u,n[c>>1]|0)|0)>>15)|0;m=m+1<<16>>16;if((m<<16>>16|0)>=(k|0))break;else{h=h+-2|0;A=A+-2|0;p=p+2|0;c=c+2|0}}U=(o[t+(k<<1)>>1]<<16)+(u<<5)+(n[i+(k<<1)>>1]<<1)|0;u=di(Ni(U)|0,l,g,s)|0;if((U|0)>0)u=zi(u)|0;c=I<<16>>16;if(I<<16>>16>0){l=u<<c;if((l>>c|0)!=(u|0))l=u>>31^2147483647}else{c=0-c<<16;if((c|0)<2031616)l=u>>(c>>16);else l=0}m=l>>16;if((k|0)<5)n[r+(v<<1)>>1]=(l+32768|0)>>>16;U=(l>>>16)-(l>>>31)|0;if(((U<<16>>31^U)&65535)<<16>>16>32750){l=16;break}A=(l>>>1)-(m<<15)<<16>>16;h=1;u=b;c=T;p=S;while(1){P=(ee(n[u>>1]|0,m)|0)>>15;b=n[f>>1]|0;U=(ee(b,A)|0)>>15;b=ee(b,m)|0;U=b+P+(n[N+(h<<1)>>1]|0)+(n[M+(h<<1)>>1]<<15)+U|0;n[c>>1]=U>>>15;n[p>>1]=U&32767;h=h+1|0;if((h&65535)<<16>>16==x<<16>>16)break;else{f=f+-2|0;u=u+-2|0;c=c+2|0;p=p+2|0}}n[C>>1]=l>>20;n[w>>1]=(l>>>5)-(n[D+(k<<1)>>1]<<15);P=ee(m,m)|0;P=(P|0)==1073741824?2147483647:P<<1;l=(ee(A,m)|0)>>15;U=l<<1;c=U+P|0;c=(l^P|0)>0&(c^P|0)<0?(P>>>31)+2147483647|0:c;U=c+U|0;U=2147483647-(Ni((c^l|0)>0&(U^c|0)<0?(c>>>31)+2147483647|0:U)|0)|0;c=U>>16;l=y<<16>>16;l=((ee(c,_<<16>>16)|0)>>15)+(ee(c,l)|0)+((ee((U>>>1)-(c<<15)<<16>>16,l)|0)>>15)<<1;c=(bn(l)|0)<<16>>16;l=l<<c;U=k<<1;qn(O|0,T|0,U|0)|0;qn(B|0,S|0,U|0)|0;k=k+1|0;if((k|0)>=11){l=20;break}else{I=c+(I&65535)&65535;u=l;_=(l>>1)-(l>>16<<15)|0;w=w+2|0;C=C+2|0;x=x+1<<16>>16}}if((l|0)==16){l=a+22|0;do{n[a>>1]=n[e>>1]|0;a=a+2|0;e=e+2|0}while((a|0)<(l|0));U=r;P=U;n[P>>1]=0;n[P+2>>1]=0>>>16;U=U+4|0;n[U>>1]=0;n[U+2>>1]=0>>>16;d=j;return 0}else if((l|0)==20){n[a>>1]=4096;U=((n[B>>1]|0)+8192+(n[O>>1]<<15)|0)>>>14&65535;n[a+2>>1]=U;n[e+2>>1]=U;U=((n[N+4>>1]|0)+8192+(n[M+4>>1]<<15)|0)>>>14&65535;n[a+4>>1]=U;n[e+4>>1]=U;U=((n[N+6>>1]|0)+8192+(n[M+6>>1]<<15)|0)>>>14&65535;n[a+6>>1]=U;n[e+6>>1]=U;U=((n[N+8>>1]|0)+8192+(n[M+8>>1]<<15)|0)>>>14&65535;n[a+8>>1]=U;n[e+8>>1]=U;U=((n[N+10>>1]|0)+8192+(n[M+10>>1]<<15)|0)>>>14&65535;n[a+10>>1]=U;n[e+10>>1]=U;U=((n[N+12>>1]|0)+8192+(n[M+12>>1]<<15)|0)>>>14&65535;n[a+12>>1]=U;n[e+12>>1]=U;U=((n[N+14>>1]|0)+8192+(n[M+14>>1]<<15)|0)>>>14&65535;n[a+14>>1]=U;n[e+14>>1]=U;U=((n[N+16>>1]|0)+8192+(n[M+16>>1]<<15)|0)>>>14&65535;n[a+16>>1]=U;n[e+16>>1]=U;U=((n[N+18>>1]|0)+8192+(n[M+18>>1]<<15)|0)>>>14&65535;n[a+18>>1]=U;n[e+18>>1]=U;U=((n[N+20>>1]|0)+8192+(n[M+20>>1]<<15)|0)>>>14&65535;n[a+20>>1]=U;n[e+20>>1]=U;d=j;return 0}return 0}function Hi(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;a=e>>16;n[t>>1]=a;n[i>>1]=(e>>>1)-(a<<15);return}function zi(e){e=e|0;return((e|0)==-2147483648?2147483647:0-e|0)|0}function qi(e){e=e|0;var t=0;if(!e){e=-1;return e|0}r[e>>2]=0;t=Fn(4)|0;if(!t){e=-1;return e|0}r[t>>2]=0;if(!((Ui(t)|0)<<16>>16)){Fi(r[t>>2]|0)|0;r[e>>2]=t;e=0;return e|0}else{Ri(t);Rn(t);e=-1;return e|0}return 0}function Gi(e){e=e|0;var t=0;if(!e)return;t=r[e>>2]|0;if(!t)return;Ri(t);Rn(r[e>>2]|0);r[e>>2]=0;return}function $i(e){e=e|0;if(!e){e=-1;return e|0}Fi(r[e>>2]|0)|0;e=0;return e|0}function Vi(e,t,i,a,n,s,o){e=e|0;t=t|0;i=i|0;a=a|0;n=n|0;s=s|0;o=o|0;var l=0,c=0,u=0,p=0;p=d;d=d+64|0;u=p+48|0;c=p+22|0;l=p;if((t|0)==7){i=r[s+116>>2]|0;Ft(a,10,l,c,r[s+112>>2]|0,o)|0;ji(10,l,c,o);Qi(r[e>>2]|0,l,c,n+22|0,u,o)|0;Ft(a,10,l,c,i,o)|0;ji(10,l,c,o);Qi(r[e>>2]|0,l,c,n+66|0,u,o)|0;d=p;return}else{Ft(i,10,l,c,r[s+108>>2]|0,o)|0;ji(10,l,c,o);Qi(r[e>>2]|0,l,c,n+66|0,u,o)|0;d=p;return}}function Yi(e,t,i,a,r,s,o,l,c,u){e=e|0;t=t|0;i=i|0;a=a|0;r=r|0;s=s|0;o=o|0;l=l|0;c=c|0;u=u|0;if((i|0)==6){n[r>>1]=na(e,t,a,20,143,80,s,o,l,c,u)|0;return}n[o>>1]=0;n[o+2>>1]=0;if(i>>>0<2){n[r>>1]=Zi(t,i,a,20,143,160,l,c,u)|0;return}if(i>>>0<6){n[r>>1]=Zi(t,i,a,20,143,80,l,c,u)|0;return}else{n[r>>1]=Zi(t,i,a,18,143,80,l,c,u)|0;return}}function Ki(e){e=e|0;var t=0;if((e|0)!=0?(r[e>>2]=0,t=Fn(2)|0,(t|0)!=0):0){n[t>>1]=0;r[e>>2]=t;t=0}else t=-1;return t|0}function Wi(e){e=e|0;if(!e)e=-1;else{n[e>>1]=0;e=0}return e|0}function Xi(e){e=e|0;var t=0;if(!e)return;t=r[e>>2]|0;if(!t)return;Rn(t);r[e>>2]=0;return}function Ji(e,t,i,a,r,s,l,c,u,p,f,A){e=e|0;t=t|0;i=i|0;a=a|0;r=r|0;s=s|0;l=l|0;c=c|0;u=u|0;p=p|0;f=f|0;A=A|0;var h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0,I=0,E=0,O=0,B=0,L=0,D=0,M=0,N=0,j=0,P=0,U=0,F=0,R=0,Q=0,H=0,z=0,q=0,G=0,$=0;$=d;d=d+240|0;y=$+160|0;_=$+80|0;R=$;F=n[3558+(t*18|0)>>1]|0;G=n[3558+(t*18|0)+2>>1]|0;h=n[3558+(t*18|0)+4>>1]|0;Q=n[3558+(t*18|0)+6>>1]|0;v=n[3558+(t*18|0)+12>>1]|0;g=n[3558+(t*18|0)+14>>1]|0;m=n[3558+(t*18|0)+16>>1]|0;e:do{switch(c<<16>>16){case 0:case 80:if(t>>>0<2&c<<16>>16==80){H=(o[e>>1]|0)-(v&65535)|0;H=(H<<16>>16|0)<(m<<16>>16|0)?m:H&65535;U=g<<16>>16;z=(H&65535)+U&65535;q=z<<16>>16>143;H=q?143-U&65535:H;z=q?143:z;q=1;break e}else{H=(o[i+((c<<16>>16!=0&1)<<1)>>1]|0)-(o[3558+(t*18|0)+8>>1]|0)|0;H=(H<<16>>16|0)<(m<<16>>16|0)?m:H&65535;U=n[3558+(t*18|0)+10>>1]|0;z=(H&65535)+U&65535;q=z<<16>>16>143;H=q?143-U&65535:H;z=q?143:z;q=0;break e}default:{H=(o[e>>1]|0)-(v&65535)|0;H=(H<<16>>16|0)<(m<<16>>16|0)?m:H&65535;U=g<<16>>16;z=(H&65535)+U&65535;q=z<<16>>16>143;H=q?143-U&65535:H;z=q?143:z;q=1}}}while(0);P=H&65535;c=P+65532|0;b=c&65535;j=(z&65535)+4&65535;U=c<<16>>16;c=0-(c&65535)|0;v=c&65535;oi(a+(c<<16>>16<<1)|0,s,y,l);c=l<<16>>16;S=c>>>1&65535;w=S<<16>>16==0;if(w)l=1;else{l=S;m=y;i=_;g=0;while(1){N=n[m>>1]|0;n[i>>1]=N>>>2;N=(ee(N,N)|0)+g|0;g=n[m+2>>1]|0;n[i+2>>1]=g>>>2;g=N+(ee(g,g)|0)|0;l=l+-1<<16>>16;if(!(l<<16>>16))break;else{m=m+4|0;i=i+4|0}}l=(g|0)<33554433}N=l?0:2;T=l?y:_;C=l?y:_;e:do{if(b<<16>>16<=j<<16>>16){x=c+-1|0;L=T+(x<<1)|0;D=s+(x<<1)|0;M=T+(c+-2<<1)|0;E=x>>>1;O=E&65535;k=O<<16>>16==0;B=l?12:14;E=(E<<1)+131070&131070;i=c+-3-E|0;I=T+(i<<1)|0;E=T+(c+-4-E<<1)|0;s=s+(i<<1)|0;if(!w){w=U;while(1){_=S;y=C;m=r;g=0;l=0;while(1){_=_+-1<<16>>16;c=n[y>>1]|0;g=(ee(c,n[m>>1]|0)|0)+g|0;c=(ee(c,c)|0)+l|0;l=n[y+2>>1]|0;g=g+(ee(l,n[m+2>>1]|0)|0)|0;l=c+(ee(l,l)|0)|0;if(!(_<<16>>16))break;else{y=y+4|0;m=m+4|0}}y=sn(l<<1,A)|0;l=y>>16;m=g<<1>>16;_=ee(l,m)|0;_=(_|0)==1073741824?2147483647:_<<1;m=(ee((y>>>1)-(l<<15)<<16>>16,m)|0)>>15;y=(m<<1)+_|0;y=(m^_|0)>0&(y^_|0)<0?(_>>>31)+2147483647|0:y;l=(ee(l,g&32767)|0)>>15;_=y+(l<<1)|0;n[R+(w-U<<1)>>1]=(y^l|0)>0&(_^y|0)<0?(y>>>31)+65535|0:_;if(b<<16>>16!=j<<16>>16){v=v+-1<<16>>16;_=n[a+(v<<16>>16<<1)>>1]|0;if(k){y=x;l=M;g=D;m=L}else{y=O;l=M;g=D;m=L;while(1){w=(ee(n[g>>1]|0,_)|0)>>B;n[m>>1]=w+(o[l>>1]|0);w=(ee(n[g+-2>>1]|0,_)|0)>>B;n[m+-2>>1]=w+(o[l+-2>>1]|0);y=y+-1<<16>>16;if(!(y<<16>>16)){y=i;l=E;g=s;m=I;break}else{l=l+-4|0;g=g+-4|0;m=m+-4|0}}}w=(ee(n[g>>1]|0,_)|0)>>B;n[m>>1]=w+(o[l>>1]|0);n[T+(y+-1<<1)>>1]=_>>N}b=b+1<<16>>16;if(b<<16>>16>j<<16>>16)break e;else w=b<<16>>16}}if(k){l=T+(c+-2<<1)|0;g=U;while(1){sn(0,A)|0;n[R+(g-U<<1)>>1]=0;if(b<<16>>16!=j<<16>>16){v=v+-1<<16>>16;r=n[a+(v<<16>>16<<1)>>1]|0;O=(ee(n[D>>1]|0,r)|0)>>B;n[L>>1]=O+(o[M>>1]|0);n[l>>1]=r>>N}b=b+1<<16>>16;if(b<<16>>16>j<<16>>16)break e;else g=b<<16>>16}}y=T+(i+-1<<1)|0;l=U;while(1){sn(0,A)|0;n[R+(l-U<<1)>>1]=0;if(b<<16>>16!=j<<16>>16){v=v+-1<<16>>16;l=n[a+(v<<16>>16<<1)>>1]|0;g=O;m=M;i=D;c=L;while(1){r=(ee(n[i>>1]|0,l)|0)>>B;n[c>>1]=r+(o[m>>1]|0);r=(ee(n[i+-2>>1]|0,l)|0)>>B;n[c+-2>>1]=r+(o[m+-2>>1]|0);g=g+-1<<16>>16;if(!(g<<16>>16))break;else{m=m+-4|0;i=i+-4|0;c=c+-4|0}}r=(ee(n[s>>1]|0,l)|0)>>B;n[I>>1]=r+(o[E>>1]|0);n[y>>1]=l>>N}b=b+1<<16>>16;if(b<<16>>16>j<<16>>16)break;else l=b<<16>>16}}}while(0);b=H<<16>>16;i=P+1&65535;if(i<<16>>16>z<<16>>16)s=H;else{v=H;c=n[R+(b-U<<1)>>1]|0;while(1){g=n[R+((i<<16>>16)-U<<1)>>1]|0;m=g<<16>>16<c<<16>>16;v=m?v:i;i=i+1<<16>>16;if(i<<16>>16>z<<16>>16){s=v;break}else c=m?c:g}}e:do{if(!(q<<16>>16==0?s<<16>>16>F<<16>>16:0)){if(!(t>>>0<4&q<<16>>16!=0)){v=R+((s<<16>>16)-U<<1)|0;g=Mi(v,h,G,A)|0;i=(h&65535)+1&65535;if(i<<16>>16<=Q<<16>>16)while(1){m=Mi(v,i,G,A)|0;c=m<<16>>16>g<<16>>16;h=c?i:h;i=i+1<<16>>16;if(i<<16>>16>Q<<16>>16)break;else g=c?m:g}if((t+-7|0)>>>0<2){Q=h<<16>>16==-3;i=(Q<<31>>31)+s<<16>>16;h=Q?3:h;break}switch(h<<16>>16){case-2:{i=s+-1<<16>>16;h=1;break e}case 2:{i=s+1<<16>>16;h=-1;break e}default:{i=s;break e}}}F=n[e>>1]|0;F=((F<<16>>16)-b|0)>5?b+5&65535:F;c=z<<16>>16;F=(c-(F<<16>>16)|0)>4?c+65532&65535:F;c=s<<16>>16;i=F<<16>>16;if((c|0)==(i+-1|0)?1:s<<16>>16==F<<16>>16){v=R+(c-U<<1)|0;c=Mi(v,h,G,A)|0;i=(h&65535)+1&65535;if(i<<16>>16<=Q<<16>>16)while(1){g=Mi(v,i,G,A)|0;m=g<<16>>16>c<<16>>16;h=m?i:h;i=i+1<<16>>16;if(i<<16>>16>Q<<16>>16)break;else c=m?g:c}if((t+-7|0)>>>0<2){Q=h<<16>>16==-3;i=(Q<<31>>31)+s<<16>>16;h=Q?3:h;break}switch(h<<16>>16){case-2:{i=s+-1<<16>>16;h=1;break e}case 2:{i=s+1<<16>>16;h=-1;break e}default:{i=s;break e}}}if((c|0)==(i+-2|0)){i=R+(c-U<<1)|0;c=Mi(i,0,G,A)|0;if((t|0)!=8){h=0;v=1;while(1){g=Mi(i,v,G,A)|0;m=g<<16>>16>c<<16>>16;h=m?v:h;v=v+1<<16>>16;if(v<<16>>16>Q<<16>>16)break;else c=m?g:c}if((t+-7|0)>>>0>=2)switch(h<<16>>16){case-2:{i=s+-1<<16>>16;h=1;break e}case 2:{i=s+1<<16>>16;h=-1;break e}default:{i=s;break e}}}else h=0;Q=h<<16>>16==-3;i=(Q<<31>>31)+s<<16>>16;h=Q?3:h;break}if((c|0)==(i+1|0)){v=R+(c-U<<1)|0;i=Mi(v,h,G,A)|0;c=(h&65535)+1&65535;if(c<<16>>16<=0)while(1){m=Mi(v,c,G,A)|0;g=m<<16>>16>i<<16>>16;h=g?c:h;c=c+1<<16>>16;if(c<<16>>16>0)break;else i=g?m:i}if((t+-7|0)>>>0<2){Q=h<<16>>16==-3;i=(Q<<31>>31)+s<<16>>16;h=Q?3:h;break}switch(h<<16>>16){case-2:{i=s+-1<<16>>16;h=1;break e}case 2:{i=s+1<<16>>16;h=-1;break e}default:{i=s;break e}}}else{i=s;h=0}}else{i=s;h=0}}while(0);if((t+-7|0)>>>0>1){Q=e;e=vi(i,h,n[e>>1]|0,H,z,q,t>>>0<4&1,A)|0;n[f>>1]=e;n[Q>>1]=i;n[p>>1]=G;n[u>>1]=h;d=$;return i|0}else{A=bi(i,h,H,q,A)|0;n[f>>1]=A;n[e>>1]=i;n[p>>1]=G;n[u>>1]=h;d=$;return i|0}return 0}function Zi(e,t,i,a,s,o,l,c,u){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;o=o|0;l=l|0;c=c|0;u=u|0;var p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0,I=0,E=0;E=d;d=d+1200|0;S=E+1188|0;T=E+580|0;I=E+578|0;k=E+576|0;_=E;C=E+582|0;x=(c|0)!=0;do{if(x)if(t>>>0<2){Ra(e,1,u);break}else{Ra(e,0,u);break}}while(0);w=s<<16>>16;A=0-w|0;f=i+(A<<1)|0;A=A&65535;v=o<<16>>16;do{if(A<<16>>16<o<<16>>16){g=A;m=f;A=0;while(1){b=n[m>>1]|0;A=(ee(b<<1,b)|0)+A|0;if((A|0)<0)break;g=g+1<<16>>16;if(g<<16>>16>=o<<16>>16){y=14;break}else m=m+2|0}if((y|0)==14){if((A|0)<1048576){y=15;break}qn(C|0,f|0,v+w<<1|0)|0;b=0;break}p=v+w|0;h=p>>>1;g=h&65535;if(!(g<<16>>16))A=C;else{b=((h<<1)+131070&131070)+2|0;v=b-w|0;m=C;while(1){n[m>>1]=(n[f>>1]|0)>>>3;n[m+2>>1]=(n[f+2>>1]|0)>>>3;g=g+-1<<16>>16;if(!(g<<16>>16))break;else{f=f+4|0;m=m+4|0}}f=i+(v<<1)|0;A=C+(b<<1)|0}if(!(p&1))b=3;else{n[A>>1]=(n[f>>1]|0)>>>3;b=3}}else y=15}while(0);if((y|0)==15){b=v+w|0;A=b>>>1;h=A&65535;if(!(h<<16>>16))A=C;else{v=((A<<1)+131070&131070)+2|0;m=v-w|0;g=C;while(1){n[g>>1]=n[f>>1]<<3;n[g+2>>1]=n[f+2>>1]<<3;h=h+-1<<16>>16;if(!(h<<16>>16))break;else{f=f+4|0;g=g+4|0}}f=i+(m<<1)|0;A=C+(v<<1)|0}if(!(b&1))b=-3;else{n[A>>1]=n[f>>1]<<3;b=-3}}v=_+(w<<2)|0;m=C+(w<<1)|0;Yt(m,o,s,a,v);p=(t|0)==7&1;A=a<<16>>16;f=A<<2;if((f|0)!=(A<<18>>16|0)){r[u>>2]=1;f=a<<16>>16>0?32767:-32768}g=ea(e,v,m,b,p,o,s,f&65535,S,c,u)|0;A=A<<1;h=ea(e,v,m,b,p,o,f+65535&65535,A&65535,T,c,u)|0;A=ea(e,v,m,b,p,o,A+65535&65535,a,I,c,u)|0;if(l<<16>>16==1&x){Di(v,m,o,s,a,k,u)|0;Ua(e,n[k>>1]|0)}f=n[S>>1]|0;p=n[T>>1]|0;if(((f<<16>>16)*55706>>16|0)>=(p<<16>>16|0)){T=f;S=g;T=T<<16>>16;T=T*55706|0;T=T>>16;I=n[I>>1]|0;I=I<<16>>16;I=(T|0)<(I|0);I=I?A:S;d=E;return I|0}n[S>>1]=p;T=p;S=h;T=T<<16>>16;T=T*55706|0;T=T>>16;I=n[I>>1]|0;I=I<<16>>16;I=(T|0)<(I|0);I=I?A:S;d=E;return I|0}function ea(e,t,i,a,s,o,l,c,u,d,p){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;o=o|0;l=l|0;c=c|0;u=u|0;d=d|0;p=p|0;var f=0,A=0,h=0,m=0,g=0;if(l<<16>>16<c<<16>>16){c=-2147483648;h=l}else{h=l;f=-2147483648;A=t+(0-(l<<16>>16)<<2)|0;t=l;while(1){l=r[A>>2]|0;g=(l|0)<(f|0);t=g?t:h;f=g?f:l;h=h+-1<<16>>16;if(h<<16>>16<c<<16>>16){c=f;h=t;break}else A=A+4|0}}t=o<<16>>16>>>2&65535;if(!(t<<16>>16))t=0;else{f=t;l=i+(0-(h<<16>>16)<<1)|0;t=0;while(1){g=n[l>>1]|0;g=(ee(g,g)|0)+t|0;t=n[l+2>>1]|0;t=g+(ee(t,t)|0)|0;g=n[l+4>>1]|0;g=t+(ee(g,g)|0)|0;t=n[l+6>>1]|0;t=g+(ee(t,t)|0)|0;f=f+-1<<16>>16;if(!(f<<16>>16))break;else l=l+8|0}t=t<<1}if(d)Fa(e,c,t,p);t=sn(t,p)|0;l=s<<16>>16!=0;if(l)t=(t|0)>1073741823?2147483647:t<<1;s=c>>16;e=t>>16;p=ee(e,s)|0;p=(p|0)==1073741824?2147483647:p<<1;t=(ee((t>>>1)-(e<<15)<<16>>16,s)|0)>>15;g=(t<<1)+p|0;g=(t^p|0)>0&(g^p|0)<0?(p>>>31)+2147483647|0:g;s=(ee(e,(c>>>1)-(s<<15)<<16>>16)|0)>>15;t=g+(s<<1)|0;t=(g^s|0)>0&(t^g|0)<0?(g>>>31)+2147483647|0:t;if(!l){n[u>>1]=t;return h|0}l=a<<16>>16;if(a<<16>>16>0)if(a<<16>>16<31){l=t>>l;m=16}else l=0;else{m=0-l<<16>>16;l=t<<m;l=(l>>m|0)==(t|0)?l:t>>31^2147483647;m=16}if((m|0)==16){if((l|0)>65535){n[u>>1]=32767;return h|0}if((l|0)<-65536){n[u>>1]=-32768;return h|0}}n[u>>1]=l>>>1;return h|0}function ta(e){e=e|0;var t=0;if(!e){e=-1;return e|0}r[e>>2]=0;t=Fn(6)|0;if(!t){e=-1;return e|0}n[t>>1]=40;n[t+2>>1]=0;n[t+4>>1]=0;r[e>>2]=t;e=0;return e|0}function ia(e){e=e|0;if(!e){e=-1;return e|0}n[e>>1]=40;n[e+2>>1]=0;n[e+4>>1]=0;e=0;return e|0}function aa(e){e=e|0;var t=0;if(!e)return;t=r[e>>2]|0;if(!t)return;Rn(t);r[e>>2]=0;return}function na(e,t,i,a,s,o,l,c,u,p,f){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;o=o|0;l=l|0;c=c|0;u=u|0;p=p|0;f=f|0;var A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0,I=0,E=0,O=0,B=0;B=d;d=d+1200|0;w=B+1186|0;C=B+1184|0;O=B+1182|0;_=B;k=B+576|0;x=s<<16>>16;E=k+(x<<1)|0;A=(0-x&65535)<<16>>16<o<<16>>16;if(A){v=0-s<<16>>16<<16>>16;h=0;do{g=n[i+(v<<1)>>1]|0;g=ee(g,g)|0;if((g|0)!=1073741824){m=(g<<1)+h|0;if((g^h|0)>0&(m^h|0)<0){r[f>>2]=1;h=(h>>>31)+2147483647|0}else h=m}else{r[f>>2]=1;h=2147483647}v=v+1|0}while((v&65535)<<16>>16!=o<<16>>16)}else h=0;if((2147483646-h&h|0)>=0)if((h|0)==2147483647){if(A){h=0-s<<16>>16<<16>>16;do{n[k+(h+x<<1)>>1]=Dn(n[i+(h<<1)>>1]|0,3,f)|0;h=h+1|0}while((h&65535)<<16>>16!=o<<16>>16)}}else b=14;else{r[f>>2]=1;b=14}do{if((b|0)==14){if((1048575-h&h|0)<0){r[f>>2]=1;h=(h>>>31)+2147483647|0}else h=h+-1048576|0;if((h|0)>=0){if(!A)break;I=0-s<<16>>16<<16>>16;qn(k+(x+I<<1)|0,i+(I<<1)|0,(((o+s<<16>>16)+-1&65535)<<1)+2|0)|0;break}if(A){h=0-s<<16>>16<<16>>16;do{I=n[i+(h<<1)>>1]|0;n[k+(h+x<<1)>>1]=(I<<19>>19|0)==(I|0)?I<<3:I>>>15^32767;h=h+1|0}while((h&65535)<<16>>16!=o<<16>>16)}}}while(0);S=_+(x<<2)|0;Yt(E,o,s,a,S);v=n[e>>1]|0;I=e+4|0;T=c+(u<<16>>16<<1)|0;e:do{if(s<<16>>16<a<<16>>16)y=s;else{if((n[I>>1]|0)<=0){i=s;c=-2147483648;g=s;b=3402;while(1){Hi(r[_+(x-(i<<16>>16)<<2)>>2]|0,w,C,f);m=n[C>>1]|0;h=n[b>>1]|0;v=ee(h,n[w>>1]|0)|0;if((v|0)==1073741824){r[f>>2]=1;A=2147483647}else A=v<<1;y=(ee(h,m<<16>>16)|0)>>15;v=A+(y<<1)|0;if((A^y|0)>0&(v^A|0)<0){r[f>>2]=1;v=(A>>>31)+2147483647|0}m=(v|0)<(c|0);g=m?g:i;i=i+-1<<16>>16;if(i<<16>>16<a<<16>>16){y=g;break e}else{c=m?c:v;b=b+-2|0}}}c=s;A=-2147483648;g=s;y=2902+(x+123-(v<<16>>16)<<1)|0;i=3402;while(1){Hi(r[_+(x-(c<<16>>16)<<2)>>2]|0,w,C,f);b=n[C>>1]|0;m=n[i>>1]|0;v=ee(m,n[w>>1]|0)|0;if((v|0)==1073741824){r[f>>2]=1;h=2147483647}else h=v<<1;b=(ee(m,b<<16>>16)|0)>>15;v=h+(b<<1)|0;if((h^b|0)>0&(v^h|0)<0){r[f>>2]=1;v=(h>>>31)+2147483647|0}Hi(v,w,C,f);b=n[C>>1]|0;m=n[y>>1]|0;v=ee(m,n[w>>1]|0)|0;if((v|0)==1073741824){r[f>>2]=1;h=2147483647}else h=v<<1;b=(ee(m,b<<16>>16)|0)>>15;v=h+(b<<1)|0;if((h^b|0)>0&(v^h|0)<0){r[f>>2]=1;v=(h>>>31)+2147483647|0}m=(v|0)<(A|0);g=m?g:c;c=c+-1<<16>>16;if(c<<16>>16<a<<16>>16){y=g;break}else{A=m?A:v;y=y+-2|0;i=i+-2|0}}}}while(0);if(o<<16>>16>0){c=0;i=E;b=k+(x-(y<<16>>16)<<1)|0;g=0;h=0;while(1){v=n[b>>1]|0;m=ee(v,n[i>>1]|0)|0;if((m|0)!=1073741824){A=(m<<1)+g|0;if((m^g|0)>0&(A^g|0)<0){r[f>>2]=1;g=(g>>>31)+2147483647|0}else g=A}else{r[f>>2]=1;g=2147483647}A=ee(v,v)|0;if((A|0)!=1073741824){m=(A<<1)+h|0;if((A^h|0)>0&(m^h|0)<0){r[f>>2]=1;h=(h>>>31)+2147483647|0}else h=m}else{r[f>>2]=1;h=2147483647}c=c+1<<16>>16;if(c<<16>>16>=o<<16>>16)break;else{i=i+2|0;b=b+2|0}}}else{g=0;h=0}m=(p|0)==0;if(!m){Ra(t,0,f);Fa(t,g,h,f)}A=(Ln(h,f)|0)<<16>>16;if((A*13107|0)==1073741824){r[f>>2]=1;h=2147483647}else h=A*26214|0;A=g-h|0;if(((A^g)&(h^g)|0)<0){r[f>>2]=1;A=(g>>>31)+2147483647|0}p=Ln(A,f)|0;n[T>>1]=p;if(p<<16>>16>0){A=l+6|0;n[l+8>>1]=n[A>>1]|0;p=l+4|0;n[A>>1]=n[p>>1]|0;A=l+2|0;n[p>>1]=n[A>>1]|0;n[A>>1]=n[l>>1]|0;n[l>>1]=y;n[e>>1]=en(l,5)|0;n[e+2>>1]=32767;A=32767}else{n[e>>1]=y;e=e+2|0;A=((n[e>>1]|0)*29491|0)>>>15&65535;n[e>>1]=A}n[I>>1]=((jn(A,9830,f)|0)&65535)>>>15^1;if(m){d=B;return y|0}if((jn(u,1,f)|0)<<16>>16){d=B;return y|0}Di(S,E,o,s,a,O,f)|0;Ua(t,n[O>>1]|0);d=B;return y|0}function ra(e,t,i,a,n,r,s,o,l,c){e=e|0;t=t|0;i=i|0;a=a|0;n=n|0;r=r|0;s=s|0;o=o|0;l=l|0;c=c|0;var u=0,p=0;c=d;d=d+48|0;p=c+22|0;u=c;t=e>>>0<6?t:i;i=r<<16>>16>0?22:0;e=n+(i<<1)|0;Un(e,t,p);Un(e,a,u);e=r<<16>>16;r=l+(e<<1)|0;Bn(p,s+(e<<1)|0,r,40);Pn(u,r,r,40,o,1);i=n+(((i<<16)+720896|0)>>>16<<1)|0;Un(i,t,p);Un(i,a,u);e=(e<<16)+2621440>>16;l=l+(e<<1)|0;Bn(p,s+(e<<1)|0,l,40);Pn(u,l,l,40,o,1);d=c;return}function sa(e){e=e|0;var t=0;if(!e){e=-1;return e|0}r[e>>2]=0;t=Fn(12)|0;if(!t){e=-1;return e|0}n[t>>1]=0;n[t+2>>1]=0;n[t+4>>1]=0;n[t+6>>1]=0;n[t+8>>1]=0;n[t+10>>1]=0;r[e>>2]=t;e=0;return e|0}function oa(e){e=e|0;if(!e){e=-1;return e|0}n[e>>1]=0;n[e+2>>1]=0;n[e+4>>1]=0;n[e+6>>1]=0;n[e+8>>1]=0;n[e+10>>1]=0;e=0;return e|0}function la(e){e=e|0;var t=0;if(!e)return;t=r[e>>2]|0;if(!t)return;Rn(t);r[e>>2]=0;return}function ca(e,t,i){e=e|0;t=t|0;i=i|0;var a=0,r=0,s=0,o=0,l=0,c=0,u=0,d=0,p=0,f=0,A=0;p=e+10|0;r=n[p>>1]|0;f=e+8|0;a=n[f>>1]|0;if(!(i<<16>>16)){e=a;d=r;n[p>>1]=d;n[f>>1]=e;return}l=e+4|0;c=e+6|0;u=e+2|0;o=n[c>>1]|0;d=n[l>>1]|0;s=i;i=r;while(1){A=(ee(n[e>>1]|0,-3733)|0)+(((d<<16>>16)*7807|0)+((o<<16>>16)*7807>>15))|0;n[e>>1]=d;A=A+((ee(n[u>>1]|0,-3733)|0)>>15)|0;n[u>>1]=o;A=((i<<16>>16)*1899|0)+A+(ee(a<<16>>16,-3798)|0)|0;i=n[t>>1]|0;A=A+((i<<16>>16)*1899|0)|0;n[t>>1]=(A+2048|0)>>>12;r=A>>>12;d=r&65535;n[l>>1]=d;o=(A<<3)-(r<<15)&65535;n[c>>1]=o;s=s+-1<<16>>16;if(!(s<<16>>16))break;else{A=a;t=t+2|0;a=i;i=A}}n[p>>1]=a;n[f>>1]=i;return}function ua(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var s=0,o=0,l=0,c=0;s=n[(r[a+88>>2]|0)+(e<<1)>>1]|0;if(!(s<<16>>16))return;c=i;l=r[(r[a+92>>2]|0)+(e<<2)>>2]|0;while(1){i=n[l>>1]|0;if(!(i<<16>>16))i=0;else{e=n[t>>1]|0;o=i;a=c+((i<<16>>16)+-1<<1)|0;while(1){i=e<<16>>16;n[a>>1]=i&1;o=o+-1<<16>>16;if(!(o<<16>>16))break;else{e=i>>>1&65535;a=a+-2|0}}i=n[l>>1]|0}t=t+2|0;s=s+-1<<16>>16;if(!(s<<16>>16))break;else{c=c+(i<<16>>16<<1)|0;l=l+2|0}}return}function da(e,t,i,a,s,l){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;l=l|0;var c=0,u=0,p=0,f=0,A=0;A=d;d=d+16|0;p=A+2|0;f=A;c=s<<16>>16;if(s<<16>>16<1){l=-5443;f=-32768;Xa(e,f,l);d=A;return}u=_n(14,i,l)|0;if((c|0)<(u<<16>>16|0))i=a;else{i=(a&65535)+1&65535;s=c>>>1&65535}a=Ya(s,u&65535)|0;n[f>>1]=a;on(a<<16>>16,p,f,l);n[p>>1]=((((i&65535)-(t&65535)<<16)+-65536|0)>>>16)+(o[p>>1]|0);a=Mn(n[f>>1]|0,5,l)|0;c=n[p>>1]|0;a=((c&65535)<<10)+(a&65535)&65535;if(a<<16>>16>18284){l=3037;f=18284;Xa(e,f,l);d=A;return}s=n[f>>1]|0;c=c<<16>>16;if((c*24660|0)==1073741824){r[l>>2]=1;i=2147483647}else i=c*49320|0;f=(s<<16>>16)*24660>>15;c=i+(f<<1)|0;if((i^f|0)>0&(c^i|0)<0){r[l>>2]=1;c=(i>>>31)+2147483647|0}f=c<<13;l=Ln((f>>13|0)==(c|0)?f:c>>31^2147483647,l)|0;f=a;Xa(e,f,l);d=A;return}function pa(e,t,i,a,s,l,c,u,p,f,A,h,m,g,v,b,y,_,w,C){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;l=l|0;c=c|0;u=u|0;p=p|0;f=f|0;A=A|0;h=h|0;m=m|0;g=g|0;v=v|0;b=b|0;y=y|0;_=_|0;w=w|0;C=C|0;var x=0,k=0,T=0,S=0,I=0,E=0,O=0,B=0,L=0,D=0,M=0,N=0,j=0,P=0,U=0,F=0,R=0,Q=0,H=0,z=0,q=0,G=0,$=0,V=0,Y=0,K=0,W=0,X=0,J=0,Z=0,te=0,ie=0,ae=0,ne=0,re=0,se=0,oe=0;oe=d;d=d+80|0;ae=oe+66|0;ne=oe+64|0;re=oe+62|0;se=oe+60|0;R=oe+40|0;Q=oe+20|0;U=oe;n[ae>>1]=t;n[ne>>1]=p;n[re>>1]=f;P=_n(14,i,C)|0;ie=P&65535;n[se>>1]=ie;F=_n(14,f,C)|0;j=(o[a>>1]|0)+65523|0;n[U>>1]=j;O=(o[a+2>>1]|0)+65522|0;B=U+2|0;n[B>>1]=O;L=((t&65535)<<16)+-720896|0;S=L>>16;L=(L>>>15)+15+(o[a+4>>1]|0)|0;D=U+4|0;n[D>>1]=L;M=(o[a+6>>1]|0)+S|0;N=U+6|0;n[N>>1]=M;S=S+1+(o[a+8>>1]|0)|0;I=U+8|0;n[I>>1]=S;x=(o[A>>1]|0)+65523&65535;n[U+10>>1]=x;E=(o[A+2>>1]|0)+65522&65535;n[U+12>>1]=E;k=((p&65535)<<16)+-720896|0;a=k>>16;k=(k>>>15)+15+(o[A+4>>1]|0)&65535;n[U+14>>1]=k;T=(o[A+6>>1]|0)+a&65535;n[U+16>>1]=T;a=a+1+(o[A+8>>1]|0)&65535;n[U+18>>1]=a;Z=(l&65535)-(m&65535)<<16;p=Z>>16;if((Z|0)>0){f=c;i=g<<16>>16>>p&65535}else{f=c<<16>>16>>0-p&65535;i=g}if((Mn(i,1,C)|0)<<16>>16>f<<16>>16)i=1;else i=(((f<<16>>16)+3>>2|0)>(i<<16>>16|0))<<31>>31;A=j+i&65535;n[U>>1]=A;Z=O+i&65535;n[B>>1]=Z;J=L+i&65535;n[D>>1]=J;X=M+i&65535;n[N>>1]=X;W=S+i&65535;n[I>>1]=W;p=a<<16>>16>A<<16>>16?a:A;p=T<<16>>16>p<<16>>16?T:p;p=k<<16>>16>p<<16>>16?k:p;p=E<<16>>16>p<<16>>16?E:p;p=x<<16>>16>p<<16>>16?x:p;p=W<<16>>16>p<<16>>16?W:p;p=X<<16>>16>p<<16>>16?X:p;p=J<<16>>16>p<<16>>16?J:p;p=(Z<<16>>16>p<<16>>16?Z:p)+1&65535;a=0;while(1){i=p-(A&65535)|0;A=i&65535;f=o[s>>1]<<16;i=i<<16>>16;if(A<<16>>16>0)A=A<<16>>16<31?f>>i:0;else{Z=0-i<<16>>16;A=f<<Z;A=(A>>Z|0)==(f|0)?A:f>>31^2147483647}Z=A>>16;n[R+(a<<1)>>1]=Z;n[Q+(a<<1)>>1]=(A>>>1)-(Z<<15);a=a+1|0;if((a|0)==5){i=5;f=h;break}A=n[U+(a<<1)>>1]|0;s=s+2|0}while(1){a=p-(x&65535)|0;x=a&65535;A=o[f>>1]<<16;a=a<<16>>16;if(x<<16>>16>0)A=x<<16>>16<31?A>>a:0;else{J=0-a<<16>>16;Z=A<<J;A=(Z>>J|0)==(A|0)?Z:A>>31^2147483647}Z=A>>16;n[R+(i<<1)>>1]=Z;n[Q+(i<<1)>>1]=(A>>>1)-(Z<<15);A=i+1|0;if((A&65535)<<16>>16==10)break;x=n[U+(A<<1)>>1]|0;i=A;f=f+2|0}H=P<<16>>16;z=n[R>>1]|0;q=n[Q>>1]|0;G=n[R+2>>1]|0;$=n[Q+2>>1]|0;V=n[R+4>>1]|0;Y=n[Q+4>>1]|0;K=n[R+6>>1]|0;W=n[Q+6>>1]|0;X=n[R+8>>1]|0;J=n[Q+8>>1]|0;Z=v&65535;m=F<<16>>16;l=n[R+10>>1]|0;T=n[Q+10>>1]|0;k=n[R+12>>1]|0;s=n[Q+12>>1]|0;i=n[R+14>>1]|0;f=n[Q+14>>1]|0;a=n[R+16>>1]|0;x=n[Q+16>>1]|0;S=n[R+18>>1]|0;Q=n[Q+18>>1]|0;p=2147483647;R=0;A=0;I=782;do{U=n[I>>1]|0;M=(ee(H,n[I+2>>1]|0)|0)>>>15<<16;h=M>>16;L=U<<1;j=(ee(L,U)|0)>>16;g=ee(j,z)|0;if((g|0)==1073741824){r[C>>2]=1;N=2147483647}else N=g<<1;F=(ee(q,j)|0)>>15;g=N+(F<<1)|0;if((N^F|0)>0&(g^N|0)<0){r[C>>2]=1;g=(N>>>31)+2147483647|0}j=ee(G,U)|0;if((j|0)==1073741824){r[C>>2]=1;N=2147483647}else N=j<<1;F=(ee($,U)|0)>>15;j=N+(F<<1)|0;if((N^F|0)>0&(j^N|0)<0){r[C>>2]=1;j=(N>>>31)+2147483647|0}M=(ee(M>>15,h)|0)>>16;N=ee(V,M)|0;if((N|0)==1073741824){r[C>>2]=1;D=2147483647}else D=N<<1;F=(ee(Y,M)|0)>>15;N=D+(F<<1)|0;if((D^F|0)>0&(N^D|0)<0){r[C>>2]=1;N=(D>>>31)+2147483647|0}M=ee(K,h)|0;if((M|0)==1073741824){r[C>>2]=1;D=2147483647}else D=M<<1;F=(ee(W,h)|0)>>15;M=D+(F<<1)|0;if((D^F|0)>0&(M^D|0)<0){r[C>>2]=1;F=(D>>>31)+2147483647|0}else F=M;D=(ee(L,h)|0)>>16;M=ee(X,D)|0;if((M|0)==1073741824){r[C>>2]=1;L=2147483647}else L=M<<1;P=(ee(J,D)|0)>>15;M=L+(P<<1)|0;if((L^P|0)>0&(M^L|0)<0){r[C>>2]=1;M=(L>>>31)+2147483647|0}D=n[I+4>>1]|0;L=n[I+6>>1]|0;I=I+8|0;if((U-Z&65535)<<16>>16<1?(te=D<<16>>16,D<<16>>16<=v<<16>>16):0){O=(ee(L<<16>>16,m)|0)>>>15<<16;U=O>>16;E=te<<1;L=(ee(E,te)|0)>>16;D=ee(l,L)|0;if((D|0)==1073741824){r[C>>2]=1;B=2147483647}else B=D<<1;P=(ee(T,L)|0)>>15;D=B+(P<<1)|0;if((B^P|0)>0&(D^B|0)<0){r[C>>2]=1;D=(B>>>31)+2147483647|0}L=ee(k,te)|0;if((L|0)==1073741824){r[C>>2]=1;B=2147483647}else B=L<<1;P=(ee(s,te)|0)>>15;L=B+(P<<1)|0;if((B^P|0)>0&(L^B|0)<0){r[C>>2]=1;P=(B>>>31)+2147483647|0}else P=L;B=(ee(O>>15,U)|0)>>16;L=ee(i,B)|0;if((L|0)==1073741824){r[C>>2]=1;O=2147483647}else O=L<<1;h=(ee(f,B)|0)>>15;L=O+(h<<1)|0;if((O^h|0)>0&(L^O|0)<0){r[C>>2]=1;h=(O>>>31)+2147483647|0}else h=L;L=ee(a,U)|0;if((L|0)==1073741824){r[C>>2]=1;B=2147483647}else B=L<<1;O=(ee(x,U)|0)>>15;L=B+(O<<1)|0;if((B^O|0)>0&(L^B|0)<0){r[C>>2]=1;c=(B>>>31)+2147483647|0}else c=L;B=(ee(E,U)|0)>>16;L=ee(S,B)|0;if((L|0)==1073741824){r[C>>2]=1;O=2147483647}else O=L<<1;U=(ee(Q,B)|0)>>15;L=O+(U<<1)|0;if((O^U|0)>0&(L^O|0)<0){r[C>>2]=1;L=(O>>>31)+2147483647|0}U=j+g+N+F+M+D+P+h+c+L|0;F=(U|0)<(p|0);p=F?U:p;A=F?R:A}R=R+1<<16>>16}while(R<<16>>16<256);v=(A&65535)<<18>>16;fa(e,782+(v<<1)|0,ie,t,b,y,C);Wa(e,0,u,ne,re,ae,se,C);u=(_n(14,n[re>>1]|0,C)|0)&65535;fa(e,782+((v|2)<<1)|0,u,n[ne>>1]|0,_,w,C);d=oe;return A|0}function fa(e,t,i,a,s,l,c){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;l=l|0;c=c|0;var u=0,p=0,f=0,A=0;A=d;d=d+16|0;p=A+2|0;f=A;n[s>>1]=n[t>>1]|0;u=n[t+2>>1]|0;i=ee(i<<16>>16<<1,u)|0;s=10-(a&65535)|0;t=s&65535;s=s<<16>>16;if(t<<16>>16>0)t=t<<16>>16<31?i>>s:0;else{s=0-s<<16>>16;t=i<<s;t=(t>>s|0)==(i|0)?t:i>>31^2147483647}n[l>>1]=t>>>16;on(u,p,f,c);n[p>>1]=(o[p>>1]|0)+65524;s=Mn(n[f>>1]|0,5,c)|0;a=n[p>>1]|0;s=((a&65535)<<10)+(s&65535)&65535;i=n[f>>1]|0;a=a<<16>>16;if((a*24660|0)==1073741824){r[c>>2]=1;t=2147483647}else t=a*49320|0;f=(i<<16>>16)*24660>>15;a=t+(f<<1)|0;if(!((t^f|0)>0&(a^t|0)<0)){c=a;c=c<<13;c=c+32768|0;c=c>>>16;c=c&65535;Xa(e,s,c);d=A;return}r[c>>2]=1;c=(t>>>31)+2147483647|0;c=c<<13;c=c+32768|0;c=c>>>16;c=c&65535;Xa(e,s,c);d=A;return}function Aa(e,t,i,a,s,l,c,u,p,f,A,h,m,g,v,b,y,_,w,C,x){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;l=l|0;c=c|0;u=u|0;p=p|0;f=f|0;A=A|0;h=h|0;m=m|0;g=g|0;v=v|0;b=b|0;y=y|0;_=_|0;w=w|0;C=C|0;x=x|0;var k=0,T=0,S=0,I=0,E=0,O=0,B=0,L=0,D=0,M=0,N=0,j=0,P=0,U=0,F=0,R=0,Q=0,H=0,z=0,q=0,G=0,$=0,V=0,Y=0,K=0,W=0,X=0,J=0,Z=0,te=0,ie=0,ae=0,ne=0,re=0,se=0,oe=0,le=0,ce=0,ue=0,de=0;de=d;d=d+80|0;le=de+72|0;ce=de+70|0;ue=de+68|0;se=de+66|0;oe=de+56|0;X=de+24|0;W=de+12|0;Y=de+48|0;K=de+40|0;z=de+34|0;G=de+22|0;Q=de+6|0;H=de;ma(5,g,v,Q,H,r[C+72>>2]|0,x)|0;S=_n(14,f,x)|0;q=C+68|0;R=r[q>>2]|0;V=p<<16>>16;$=V+65526|0;g=(o[l>>1]|0)+65523&65535;n[oe>>1]=g;C=(o[l+2>>1]|0)+65522&65535;n[oe+2>>1]=C;ae=$<<16>>16;ne=(($<<17>>17|0)==(ae|0)?$<<1:ae>>>15^32767)+15+(o[l+4>>1]|0)&65535;n[oe+4>>1]=ne;re=(o[l+6>>1]|0)+ae&65535;n[oe+6>>1]=re;l=ae+1+(o[l+8>>1]|0)&65535;n[oe+8>>1]=l;C=C<<16>>16>g<<16>>16?C:g;C=ne<<16>>16>C<<16>>16?ne:C;C=re<<16>>16>C<<16>>16?re:C;C=($a(l<<16>>16>C<<16>>16?l:C,1,x)|0)&65535;l=g;g=0;while(1){f=C-(l&65535)|0;l=f&65535;T=o[s+(g<<1)>>1]<<16;f=f<<16>>16;if(l<<16>>16>0)f=l<<16>>16<31?T>>f:0;else{re=0-f<<16>>16;f=T<<re;f=(f>>re|0)==(T|0)?f:T>>31^2147483647}Hi(f,X+(g<<1)|0,W+(g<<1)|0,x);f=g+1|0;if((f|0)==5)break;l=n[oe+(f<<1)>>1]|0;g=f}U=X+2|0;F=W+2|0;re=S<<16>>16;J=X+4|0;Z=W+4|0;te=X+6|0;ie=W+6|0;ae=X+8|0;ne=W+8|0;O=0;l=2147483647;s=0;f=0;while(1){P=n[Q+(s<<1)>>1]|0;S=ee(P,P)|0;if(S>>>0>1073741823){r[x>>2]=1;S=32767}else S=S>>>15;C=n[W>>1]|0;T=S<<16>>16;S=ee(T,n[X>>1]|0)|0;if((S|0)==1073741824){r[x>>2]=1;g=2147483647}else g=S<<1;j=(ee(C<<16>>16,T)|0)>>15;S=g+(j<<1)|0;if((g^j|0)>0&(S^g|0)<0){r[x>>2]=1;S=(g>>>31)+2147483647|0}C=n[F>>1]|0;T=ee(n[U>>1]|0,P)|0;if((T|0)!=1073741824){g=(T<<1)+S|0;if((T^S|0)>0&(g^S|0)<0){r[x>>2]=1;g=(S>>>31)+2147483647|0}}else{r[x>>2]=1;g=2147483647}S=(ee(C<<16>>16,P)|0)>>15;if((S|0)>32767){r[x>>2]=1;S=32767}j=S<<16;S=(j>>15)+g|0;if((j>>16^g|0)>0&(S^g|0)<0){r[x>>2]=1;j=(g>>>31)+2147483647|0}else j=S;M=(j>>>31)+2147483647|0;N=s&65535;S=O;L=0;D=R;do{T=(ee(n[D>>1]|0,re)|0)>>15;D=D+6|0;if((T|0)>32767){r[x>>2]=1;T=32767}B=T<<16>>16;T=ee(B,B)|0;if((T|0)==1073741824){r[x>>2]=1;E=2147483647}else E=T<<1;Hi(E,le,ce,x);T=ee(B,P)|0;if((T|0)==1073741824){r[x>>2]=1;E=2147483647}else E=T<<1;Hi(E,ue,se,x);g=n[Z>>1]|0;I=n[ce>>1]|0;T=n[J>>1]|0;C=n[le>>1]|0;O=ee(C,T)|0;if((O|0)!=1073741824){E=(O<<1)+j|0;if((O^j|0)>0&(E^j|0)<0){r[x>>2]=1;E=M}}else{r[x>>2]=1;E=2147483647}O=(ee(I<<16>>16,T)|0)>>15;if((O|0)>32767){r[x>>2]=1;O=32767}I=O<<16;O=(I>>15)+E|0;if((I>>16^E|0)>0&(O^E|0)<0){r[x>>2]=1;O=(E>>>31)+2147483647|0}E=(ee(C,g<<16>>16)|0)>>15;if((E|0)>32767){r[x>>2]=1;E=32767}I=E<<16;E=(I>>15)+O|0;if((I>>16^O|0)>0&(E^O|0)<0){r[x>>2]=1;E=(O>>>31)+2147483647|0}T=n[ie>>1]|0;O=ee(n[te>>1]|0,B)|0;if((O|0)!=1073741824){I=(O<<1)+E|0;if((O^E|0)>0&(I^E|0)<0){r[x>>2]=1;I=(E>>>31)+2147483647|0}}else{r[x>>2]=1;I=2147483647}T=(ee(T<<16>>16,B)|0)>>15;if((T|0)>32767){r[x>>2]=1;T=32767}B=T<<16;T=(B>>15)+I|0;if((B>>16^I|0)>0&(T^I|0)<0){r[x>>2]=1;T=(I>>>31)+2147483647|0}C=n[ne>>1]|0;I=n[se>>1]|0;g=n[ae>>1]|0;k=n[ue>>1]|0;O=ee(k,g)|0;do{if((O|0)==1073741824){r[x>>2]=1;O=2147483647}else{E=(O<<1)+T|0;if(!((O^T|0)>0&(E^T|0)<0)){O=E;break}r[x>>2]=1;O=(T>>>31)+2147483647|0}}while(0);E=(ee(I<<16>>16,g)|0)>>15;if((E|0)>32767){r[x>>2]=1;E=32767}B=E<<16;E=(B>>15)+O|0;if((B>>16^O|0)>0&(E^O|0)<0){r[x>>2]=1;E=(O>>>31)+2147483647|0}T=(ee(k,C<<16>>16)|0)>>15;if((T|0)>32767){r[x>>2]=1;T=32767}B=T<<16;T=(B>>15)+E|0;if((B>>16^E|0)>0&(T^E|0)<0){r[x>>2]=1;T=(E>>>31)+2147483647|0}B=(T|0)<(l|0);S=B?L:S;f=B?N:f;l=B?T:l;L=L+1<<16>>16}while(L<<16>>16<32);s=s+1|0;if((s|0)==3){T=S;s=f;break}else O=S}F=(T<<16>>16)*3|0;l=n[R+(F<<1)>>1]|0;n[y>>1]=n[R+(F+1<<1)>>1]|0;n[_>>1]=n[R+(F+2<<1)>>1]|0;l=ee(l<<16>>16,re)|0;if((l|0)==1073741824){r[x>>2]=1;S=2147483647}else S=l<<1;F=9-V|0;R=F&65535;F=F<<16>>16;U=R<<16>>16>0;if(U)S=R<<16>>16<31?S>>F:0;else{j=0-F<<16>>16;P=S<<j;S=(P>>j|0)==(S|0)?P:S>>31^2147483647}n[b>>1]=S>>>16;P=s<<16>>16;Q=n[Q+(P<<1)>>1]|0;n[v>>1]=Q;H=n[H+(P<<1)>>1]|0;Kt(t,i,a,Q,A,Y,K,z,x);Ti(e,n[z>>1]|0,n[b>>1]|0,G,x);if(!((n[Y>>1]|0)!=0&(n[G>>1]|0)>0)){x=T;y=r[w>>2]|0;b=y+2|0;n[y>>1]=H;y=y+4|0;r[w>>2]=y;n[b>>1]=x;d=de;return}B=Y+6|0;n[B>>1]=u;E=K+6|0;n[E>>1]=c;p=((jn(m,p,x)|0)&65535)+10|0;C=p<<16>>16;if((p&65535)<<16>>16<0){f=0-C<<16;if((f|0)<983040)h=h<<16>>16>>(f>>16)&65535;else h=0}else{f=h<<16>>16;g=f<<C;if((g<<16>>16>>C|0)==(f|0))h=g&65535;else h=(f>>>15^32767)&65535}l=n[v>>1]|0;S=n[G>>1]|0;q=r[q>>2]|0;g=n[b>>1]|0;G=10-V|0;C=G<<16>>16;if((G&65535)<<16>>16<0){f=0-C<<16;if((f|0)<983040)u=g<<16>>16>>(f>>16)&65535;else u=0}else{f=g<<16>>16;g=f<<C;if((g<<16>>16>>C|0)==(f|0))u=g&65535;else u=(f>>>15^32767)&65535}s=l<<16>>16;f=ee(s,s)|0;if(f>>>0>1073741823){r[x>>2]=1;l=32767}else l=f>>>15;T=$a(32767-(S&65535)&65535,1,x)|0;S=S<<16>>16;f=ee(n[Y+2>>1]|0,S)|0;if((f|0)==1073741824){r[x>>2]=1;f=2147483647}else f=f<<1;G=f<<1;f=ee(((G>>1|0)==(f|0)?G:f>>31^2147418112)>>16,l<<16>>16)|0;if((f|0)==1073741824){r[x>>2]=1;O=2147483647}else O=f<<1;I=(o[K+2>>1]|0)+65521|0;C=I&65535;f=ee(n[Y+4>>1]|0,S)|0;if((f|0)==1073741824){r[x>>2]=1;l=2147483647}else l=f<<1;f=l<<1;f=(ee(((f>>1|0)==(l|0)?f:l>>31^2147418112)>>16,s)|0)>>15;if((f|0)>32767){r[x>>2]=1;f=32767}n[J>>1]=f;l=$&65535;n[le>>1]=l;l=$a(n[K+4>>1]|0,l,x)|0;f=ee(n[B>>1]|0,S)|0;if((f|0)==1073741824){r[x>>2]=1;f=2147483647}else f=f<<1;k=f<<1;n[te>>1]=((k>>1|0)==(f|0)?k:f>>31^2147418112)>>>16;k=((V<<17>>17|0)==(V|0)?V<<1:V>>>15^32767)+65529&65535;n[le>>1]=k;k=$a(n[E>>1]|0,k,x)|0;f=(ee(n[B>>1]|0,T<<16>>16)|0)>>15;if((f|0)>32767){r[x>>2]=1;f=32767}n[ae>>1]=f;T=$a(k,1,x)|0;g=ee(n[Y>>1]|0,S)|0;if((g|0)==1073741824){r[x>>2]=1;f=2147483647}else f=g<<1;E=Nn(f,le,x)|0;s=(o[le>>1]|0)+47|0;n[le>>1]=s;s=(o[K>>1]|0)-(s&65535)|0;S=s+31&65535;S=C<<16>>16>S<<16>>16?C:S;S=l<<16>>16>S<<16>>16?l:S;S=k<<16>>16>S<<16>>16?k:S;S=(T<<16>>16>S<<16>>16?T:S)<<16>>16;g=S-(I&65535)|0;f=g&65535;g=g<<16>>16;if(f<<16>>16>0)j=f<<16>>16<31?O>>g:0;else{K=0-g<<16>>16;j=O<<K;j=(j>>K|0)==(O|0)?j:O>>31^2147483647}C=S-(l&65535)|0;f=C&65535;g=o[J>>1]<<16;C=C<<16>>16;if(f<<16>>16>0)g=f<<16>>16<31?g>>C:0;else{Y=0-C<<16>>16;K=g<<Y;g=(K>>Y|0)==(g|0)?K:g>>31^2147483647}Hi(g,J,Z,x);k=S-(k&65535)|0;g=k&65535;C=o[te>>1]<<16;k=k<<16>>16;if(g<<16>>16>0)g=g<<16>>16<31?C>>k:0;else{K=0-k<<16>>16;g=C<<K;g=(g>>K|0)==(C|0)?g:C>>31^2147483647}Hi(g,te,ie,x);k=S-(T&65535)|0;g=k&65535;C=o[ae>>1]<<16;k=k<<16>>16;if(g<<16>>16>0)g=g<<16>>16<31?C>>k:0;else{K=0-k<<16>>16;g=C<<K;g=(g>>K|0)==(C|0)?g:C>>31^2147483647}Hi(g,ae,ne,x);k=S+65505|0;n[le>>1]=k;k=k-(s&65535)|0;g=Dn(k&65535,1,x)|0;C=g<<16>>16;if(g<<16>>16>0)C=g<<16>>16<31?E>>C:0;else{K=0-C<<16>>16;C=E<<K;C=(C>>K|0)==(E|0)?C:E>>31^2147483647}do{if(!(k&1))O=C;else{Hi(C,X,W,x);g=n[W>>1]|0;C=n[X>>1]|0;if((C*23170|0)==1073741824){r[x>>2]=1;k=2147483647}else k=C*46340|0;X=(g<<16>>16)*23170>>15;C=k+(X<<1)|0;if(!((k^X|0)>0&(C^k|0)<0)){O=C;break}r[x>>2]=1;O=(k>>>31)+2147483647|0}}while(0);B=(j>>>31)+2147483647|0;E=2147483647;I=0;C=0;L=q;while(1){g=(ee(n[L>>1]|0,re)|0)>>15;L=L+6|0;if((g|0)>32767){r[x>>2]=1;g=32767}k=g&65535;if(k<<16>>16>=u<<16>>16)break;l=g<<16>>16;g=ee(l,l)|0;if((g|0)==1073741824){r[x>>2]=1;f=2147483647}else f=g<<1;Hi(f,ce,ue,x);g=(jn(k,h,x)|0)<<16>>16;g=ee(g,g)|0;if((g|0)==1073741824){r[x>>2]=1;g=2147483647}else g=g<<1;Hi(g,se,oe,x);k=n[Z>>1]|0;f=ee(n[J>>1]|0,l)|0;do{if((f|0)==1073741824){r[x>>2]=1;f=2147483647}else{g=(f<<1)+j|0;if(!((f^j|0)>0&(g^j|0)<0)){f=g;break}r[x>>2]=1;f=B}}while(0);g=(ee(k<<16>>16,l)|0)>>15;if((g|0)>32767){r[x>>2]=1;g=32767}X=g<<16;g=(X>>15)+f|0;if((X>>16^f|0)>0&(g^f|0)<0){r[x>>2]=1;g=(f>>>31)+2147483647|0}s=n[ie>>1]|0;T=n[ue>>1]|0;l=n[te>>1]|0;S=n[ce>>1]|0;f=ee(S,l)|0;do{if((f|0)==1073741824){r[x>>2]=1;k=2147483647}else{k=(f<<1)+g|0;if(!((f^g|0)>0&(k^g|0)<0))break;r[x>>2]=1;k=(g>>>31)+2147483647|0}}while(0);f=(ee(T<<16>>16,l)|0)>>15;if((f|0)>32767){r[x>>2]=1;f=32767}X=f<<16;f=(X>>15)+k|0;if((X>>16^k|0)>0&(f^k|0)<0){r[x>>2]=1;f=(k>>>31)+2147483647|0}g=(ee(S,s<<16>>16)|0)>>15;if((g|0)>32767){r[x>>2]=1;g=32767}X=g<<16;g=(X>>15)+f|0;if((X>>16^f|0)>0&(g^f|0)<0){r[x>>2]=1;g=(f>>>31)+2147483647|0}g=Nn(g,le,x)|0;k=Dn(n[le>>1]|0,1,x)|0;f=k<<16>>16;if(k<<16>>16>0)k=k<<16>>16<31?g>>f:0;else{X=0-f<<16>>16;k=g<<X;k=(k>>X|0)==(g|0)?k:g>>31^2147483647}g=k-O|0;if(((g^k)&(k^O)|0)<0){r[x>>2]=1;g=(k>>>31)+2147483647|0}g=(Ln(g,x)|0)<<16>>16;g=ee(g,g)|0;if((g|0)==1073741824){r[x>>2]=1;k=2147483647}else k=g<<1;S=n[ne>>1]|0;l=n[oe>>1]|0;T=n[ae>>1]|0;s=n[se>>1]|0;f=ee(s,T)|0;do{if((f|0)==1073741824){r[x>>2]=1;g=2147483647}else{g=(f<<1)+k|0;if(!((f^k|0)>0&(g^k|0)<0))break;r[x>>2]=1;g=(k>>>31)+2147483647|0}}while(0);f=(ee(l<<16>>16,T)|0)>>15;if((f|0)>32767){r[x>>2]=1;f=32767}X=f<<16;f=(X>>15)+g|0;if((X>>16^g|0)>0&(f^g|0)<0){r[x>>2]=1;f=(g>>>31)+2147483647|0}g=(ee(s,S<<16>>16)|0)>>15;if((g|0)>32767){r[x>>2]=1;g=32767}X=g<<16;g=(X>>15)+f|0;if((X>>16^f|0)>0&(g^f|0)<0){r[x>>2]=1;g=(f>>>31)+2147483647|0}f=(g|0)<(E|0);C=f?I:C;I=I+1<<16>>16;if(I<<16>>16>=32)break;else E=f?g:E}ue=(C<<16>>16)*3|0;k=n[q+(ue<<1)>>1]|0;n[y>>1]=n[q+(ue+1<<1)>>1]|0;n[_>>1]=n[q+(ue+2<<1)>>1]|0;k=ee(k<<16>>16,re)|0;if((k|0)==1073741824){r[x>>2]=1;k=2147483647}else k=k<<1;if(U)k=R<<16>>16<31?k>>F:0;else{y=0-F<<16>>16;x=k<<y;k=(x>>y|0)==(k|0)?x:k>>31^2147483647}n[b>>1]=k>>>16;x=C;y=r[w>>2]|0;b=y+2|0;n[y>>1]=H;y=y+4|0;r[w>>2]=y;n[b>>1]=x;d=de;return}function ha(e,t,i,a,r,s,o,l){e=e|0;t=t|0;i=i|0;a=a|0;r=r|0;s=s|0;o=o|0;l=l|0;var c=0,u=0,d=0,p=0,f=0;f=(e|0)==7;c=n[a>>1]|0;if(f){c=c<<16>>16>>>1&65535;p=_n(t,i,l)|0;t=p<<16;e=t>>16;if((p<<20>>20|0)==(e|0))e=t>>12;else e=e>>>15^32767}else{p=_n(t,i,l)|0;t=p<<16;e=t>>16;if((p<<21>>21|0)==(e|0))e=t>>11;else e=e>>>15^32767}p=e<<16>>16;l=c<<16>>16;t=l-((ee(p,n[o>>1]|0)|0)>>>15&65535)|0;t=((t&32768|0)!=0?0-t|0:t)&65535;u=1;e=0;d=o;while(1){d=d+6|0;c=l-((ee(n[d>>1]|0,p)|0)>>>15&65535)|0;i=c<<16;c=(i|0)<0?0-(i>>16)|0:c;i=(c<<16>>16|0)<(t<<16>>16|0);e=i?u:e;u=u+1<<16>>16;if(u<<16>>16>=32)break;else t=i?c&65535:t}d=(e<<16>>16)*196608>>16;n[a>>1]=(ee(n[o+(d<<1)>>1]|0,p)|0)>>>15<<(f&1);n[r>>1]=n[o+(d+1<<1)>>1]|0;n[s>>1]=n[o+(d+2<<1)>>1]|0;return e|0}function ma(e,t,i,a,r,s,o){e=e|0;t=t|0;i=i|0;a=a|0;r=r|0;s=s|0;o=o|0;var l=0,c=0,u=0,d=0,p=0,f=0;l=jn(n[i>>1]|0,n[s>>1]|0,o)|0;l=(l&65535)-((l&65535)>>>15&65535)|0;l=(l<<16>>31^l)&65535;u=0;d=1;while(1){c=n[s+(d<<1)>>1]|0;if(c<<16>>16>t<<16>>16)c=l;else{c=jn(n[i>>1]|0,c,o)|0;c=(c&65535)-((c&65535)>>>15&65535)|0;c=(c<<16>>31^c)&65535;f=c<<16>>16<l<<16>>16;c=f?c:l;u=f?d&65535:u}d=d+1|0;if((d|0)==16)break;else l=c}if((e|0)!=5){l=n[s+(u<<16>>16<<1)>>1]|0;if((e|0)==7){n[i>>1]=l&65532;return u|0}else{n[i>>1]=l;return u|0}}c=u<<16>>16;switch(u<<16>>16){case 0:{l=0;break}case 15:{p=8;break}default:if((n[s+(c+1<<1)>>1]|0)>t<<16>>16)p=8;else l=c+65535&65535}if((p|0)==8)l=c+65534&65535;n[r>>1]=l;f=l<<16>>16;n[a>>1]=n[s+(f<<1)>>1]|0;f=f+1|0;n[r+2>>1]=f;f=f<<16>>16;n[a+2>>1]=n[s+(f<<1)>>1]|0;f=f+1|0;n[r+4>>1]=f;n[a+4>>1]=n[s+(f<<16>>16<<1)>>1]|0;n[i>>1]=n[s+(c<<1)>>1]|0;return u|0}function ga(e,t,i,a,s,l,c,u,p,f,A,h){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;l=l|0;c=c|0;u=u|0;p=p|0;f=f|0;A=A|0;h=h|0;var m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0,I=0,E=0,O=0,B=0,L=0,D=0,M=0,N=0,j=0;j=d;d=d+32|0;v=j+20|0;b=j+10|0;g=j;switch(e|0){case 3:case 4:case 6:{A=A+84|0;N=128;break}default:{A=A+80|0;N=64}}M=r[A>>2]|0;m=_n(14,i,h)|0;D=t<<16>>16;L=D+65525|0;e=(o[s>>1]|0)+65523&65535;n[g>>1]=e;t=(o[s+2>>1]|0)+65522&65535;n[g+2>>1]=t;B=L<<16>>16;B=$a(n[s+4>>1]|0,((L<<17>>17|0)==(B|0)?L<<1:B>>>15^32767)+15&65535,h)|0;n[g+4>>1]=B;L=$a(n[s+6>>1]|0,L&65535,h)|0;n[g+6>>1]=L;s=$a(n[s+8>>1]|0,D+65526&65535,h)|0;n[g+8>>1]=s;t=t<<16>>16>e<<16>>16?t:e;t=B<<16>>16>t<<16>>16?B:t;t=L<<16>>16>t<<16>>16?L:t;t=(s<<16>>16>t<<16>>16?s:t)+1&65535;s=0;while(1){i=t-(e&65535)|0;A=i&65535;e=o[a+(s<<1)>>1]<<16;i=i<<16>>16;if(A<<16>>16>0)A=A<<16>>16<31?e>>i:0;else{L=0-i<<16>>16;A=e<<L;A=(A>>L|0)==(e|0)?A:e>>31^2147483647}Hi(A,v+(s<<1)|0,b+(s<<1)|0,h);A=s+1|0;if((A|0)==5)break;e=n[g+(A<<1)>>1]|0;s=A}L=m<<16>>16;x=n[v>>1]|0;k=n[b>>1]|0;T=n[v+2>>1]|0;S=n[b+2>>1]|0;I=n[v+4>>1]|0;E=n[b+4>>1]|0;O=n[v+6>>1]|0;B=n[b+6>>1]|0;C=n[v+8>>1]|0;y=n[b+8>>1]|0;t=2147483647;_=0;A=0;w=M;while(1){s=n[w>>1]|0;if(s<<16>>16>l<<16>>16)m=t;else{m=(ee(n[w+2>>1]|0,L)|0)>>15;if((m|0)>32767){r[h>>2]=1;m=32767}b=s<<16>>16;s=ee(b,b)|0;if(s>>>0>1073741823){r[h>>2]=1;g=32767}else g=s>>>15;i=m<<16>>16;m=ee(i,i)|0;if(m>>>0>1073741823){r[h>>2]=1;v=32767}else v=m>>>15;a=(ee(i,b)|0)>>15;if((a|0)>32767){r[h>>2]=1;a=32767}m=g<<16>>16;g=ee(x,m)|0;if((g|0)==1073741824){r[h>>2]=1;s=2147483647}else s=g<<1;m=(ee(k,m)|0)>>15;g=s+(m<<1)|0;if((s^m|0)>0&(g^s|0)<0){r[h>>2]=1;g=(s>>>31)+2147483647|0}m=ee(T,b)|0;if((m|0)==1073741824){r[h>>2]=1;s=2147483647}else s=m<<1;b=(ee(S,b)|0)>>15;m=s+(b<<1)|0;if((s^b|0)>0&(m^s|0)<0){r[h>>2]=1;m=(s>>>31)+2147483647|0}s=m+g|0;if((m^g|0)>-1&(s^g|0)<0){r[h>>2]=1;s=(g>>>31)+2147483647|0}m=v<<16>>16;g=ee(I,m)|0;if((g|0)==1073741824){r[h>>2]=1;e=2147483647}else e=g<<1;b=(ee(E,m)|0)>>15;g=e+(b<<1)|0;if((e^b|0)>0&(g^e|0)<0){r[h>>2]=1;g=(e>>>31)+2147483647|0}m=g+s|0;if((g^s|0)>-1&(m^s|0)<0){r[h>>2]=1;e=(s>>>31)+2147483647|0}else e=m;m=ee(O,i)|0;if((m|0)==1073741824){r[h>>2]=1;g=2147483647}else g=m<<1;b=(ee(B,i)|0)>>15;m=g+(b<<1)|0;if((g^b|0)>0&(m^g|0)<0){r[h>>2]=1;m=(g>>>31)+2147483647|0}s=m+e|0;if((m^e|0)>-1&(s^e|0)<0){r[h>>2]=1;g=(e>>>31)+2147483647|0}else g=s;s=a<<16>>16;m=ee(C,s)|0;if((m|0)==1073741824){r[h>>2]=1;e=2147483647}else e=m<<1;b=(ee(y,s)|0)>>15;m=e+(b<<1)|0;if((e^b|0)>0&(m^e|0)<0){r[h>>2]=1;s=(e>>>31)+2147483647|0}else s=m;m=s+g|0;if((s^g|0)>-1&(m^g|0)<0){r[h>>2]=1;m=(g>>>31)+2147483647|0}b=(m|0)<(t|0);m=b?m:t;A=b?_:A}w=w+8|0;_=_+1<<16>>16;if((_<<16>>16|0)>=(N|0))break;else t=m}l=A<<16>>16;l=((l<<18>>18|0)==(l|0)?l<<2:l>>>15^32767)<<16>>16;n[c>>1]=n[M+(l<<1)>>1]|0;t=n[M+(l+1<<1)>>1]|0;n[p>>1]=n[M+(l+2<<1)>>1]|0;n[f>>1]=n[M+(l+3<<1)>>1]|0;t=ee(t<<16>>16,L)|0;if((t|0)==1073741824){r[h>>2]=1;e=2147483647}else e=t<<1;i=10-D|0;t=i&65535;i=i<<16>>16;if(t<<16>>16>0){h=t<<16>>16<31?e>>i:0;h=h>>>16;h=h&65535;n[u>>1]=h;d=j;return A|0}else{p=0-i<<16>>16;h=e<<p;h=(h>>p|0)==(e|0)?h:e>>31^2147483647;h=h>>>16;h=h&65535;n[u>>1]=h;d=j;return A|0}return 0}function va(e,t,i,a,r,s,l,c,u){e=e|0;t=t|0;i=i|0;a=a|0;r=r|0;s=s|0;l=l|0;c=c|0;u=u|0;var p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0,I=0,E=0,O=0,B=0,L=0,D=0,M=0,N=0,j=0,P=0,U=0,F=0,R=0,Q=0,H=0,z=0,q=0,G=0,$=0,V=0,Y=0,K=0,W=0,X=0,J=0,Z=0,te=0,ie=0,ae=0,ne=0,re=0,se=0,oe=0,le=0,ce=0,ue=0,de=0,pe=0,fe=0,Ae=0,he=0,me=0,ge=0,ve=0,be=0,ye=0,_e=0,we=0;we=d;d=d+160|0;_e=we;f=e<<16>>16;be=e<<16>>16==10;ye=n[l+(n[s>>1]<<1)>>1]|0;if(e<<16>>16>0){u=0;p=c;while(1){n[p>>1]=u;u=u+1<<16>>16;if(u<<16>>16>=e<<16>>16)break;else p=p+2|0}}if(i<<16>>16<=1){d=we;return}ge=s+2|0;ve=ye<<16>>16;Ae=a+(ve<<1)|0;he=r+(ve*80|0)+(ve<<1)|0;me=s+6|0;K=t&65535;W=s+4|0;X=s+10|0;J=s+8|0;Z=s+14|0;te=s+12|0;ie=s+18|0;ae=s+16|0;ne=c+2|0;re=c+4|0;se=c+6|0;oe=c+8|0;le=c+10|0;ce=c+12|0;ue=c+14|0;de=c+16|0;pe=c+18|0;fe=e<<16>>16>2;V=s+(f+-1<<1)|0;G=1;Y=1;F=0;R=0;$=-1;while(1){q=n[l+(n[ge>>1]<<1)>>1]|0;z=q<<16>>16;t=(o[a+(z<<1)>>1]|0)+(o[Ae>>1]|0)|0;p=(n[r+(ve*80|0)+(z<<1)>>1]<<13)+32768+((n[r+(z*80|0)+(z<<1)>>1]|0)+(n[he>>1]|0)<<12)|0;f=n[me>>1]|0;if(f<<16>>16<40){f=f<<16>>16;A=_e;while(1){Q=(n[r+(f*80|0)+(f<<1)>>1]|0)>>>1;U=n[r+(f*80|0)+(ve<<1)>>1]|0;H=n[r+(f*80|0)+(z<<1)>>1]|0;n[A>>1]=t+(o[a+(f<<1)>>1]|0);n[A+2>>1]=(U+2+Q+H|0)>>>2;f=f+K|0;if((f&65535)<<16>>16<40){f=f<<16>>16;A=A+4|0}else break}S=n[me>>1]|0}else S=f;t=n[W>>1]|0;T=p>>12;f=t<<16>>16;e:do{if(t<<16>>16<40){k=S<<16>>16;if(S<<16>>16<40){A=1;m=t;v=S;g=0;h=-1}else while(1){f=f+K|0;if((f&65535)<<16>>16<40)f=f<<16>>16;else{A=1;H=t;Q=S;f=0;break e}}while(1){x=((n[r+(f*80|0)+(f<<1)>>1]|0)+T>>1)+(n[r+(f*80|0)+(ve<<1)>>1]|0)+(n[r+(f*80|0)+(z<<1)>>1]|0)|0;C=o[a+(f<<1)>>1]|0;_=k;w=S;y=_e;b=g;while(1){p=(o[y>>1]|0)+C|0;u=p<<16>>16;u=(ee(u,u)|0)>>>15;g=(x+(n[r+(f*80|0)+(_<<1)>>1]|0)>>2)+(n[y+2>>1]|0)>>1;if((ee(u<<16>>16,A<<16>>16)|0)>(ee(g,h<<16>>16)|0)){A=g&65535;m=t;v=w;g=p&65535;h=u&65535}else g=b;p=_+K|0;w=p&65535;if(w<<16>>16>=40)break;else{_=p<<16>>16;y=y+4|0;b=g}}f=f+K|0;t=f&65535;if(t<<16>>16<40)f=f<<16>>16;else{H=m;Q=v;f=g;break}}}else{A=1;H=t;Q=S;f=0}}while(0);m=A<<16>>16<<15;A=n[X>>1]|0;if(A<<16>>16<40){p=H<<16>>16;u=Q<<16>>16;t=f&65535;A=A<<16>>16;f=_e;while(1){N=n[r+(A*80|0)+(A<<1)>>1]>>1;M=n[r+(A*80|0)+(ve<<1)>>1]|0;j=n[r+(A*80|0)+(z<<1)>>1]|0;P=n[r+(A*80|0)+(p<<1)>>1]|0;U=n[r+(A*80|0)+(u<<1)>>1]|0;n[f>>1]=(o[a+(A<<1)>>1]|0)+t;n[f+2>>1]=(M+2+N+j+P+U|0)>>>2;A=A+K|0;if((A&65535)<<16>>16<40){A=A<<16>>16;f=f+4|0}else break}N=n[X>>1]|0}else N=A;h=n[J>>1]|0;A=h<<16>>16;e:do{if(h<<16>>16<40){I=H<<16>>16;E=Q<<16>>16;O=N<<16>>16;S=m+32768|0;if(N<<16>>16<40){g=1;m=h;t=N;v=h;f=0;h=-1}else while(1){A=A+K|0;if((A&65535)<<16>>16<40)A=A<<16>>16;else{A=1;U=h;P=N;f=0;break e}}while(1){u=o[a+(A<<1)>>1]|0;T=(n[r+(A*80|0)+(z<<1)>>1]|0)+(n[r+(A*80|0)+(ve<<1)>>1]|0)+(n[r+(A*80|0)+(I<<1)>>1]|0)+(n[r+(A*80|0)+(E<<1)>>1]|0)|0;k=S+(n[r+(A*80|0)+(A<<1)>>1]<<11)|0;C=O;_=N;x=_e;while(1){b=(o[x>>1]|0)+u|0;p=k+(n[x+2>>1]<<14)+(T+(n[r+(A*80|0)+(C<<1)>>1]|0)<<12)|0;y=b<<16>>16;y=(ee(y,y)|0)>>>15;if((ee(y<<16>>16,g<<16>>16)|0)>(ee(p>>16,h<<16>>16)|0)){g=p>>>16&65535;w=v;t=_;f=b&65535;h=y&65535}else w=m;m=C+K|0;_=m&65535;if(_<<16>>16>=40){m=w;break}else{C=m<<16>>16;m=w;x=x+4|0}}A=A+K|0;v=A&65535;if(v<<16>>16<40)A=A<<16>>16;else{A=g;U=m;P=t;break}}}else{A=1;U=h;P=N;f=0}}while(0);g=A<<16>>16<<15;A=n[Z>>1]|0;if(A<<16>>16<40){p=H<<16>>16;u=Q<<16>>16;h=U<<16>>16;m=P<<16>>16;t=f&65535;A=A<<16>>16;f=_e;while(1){B=n[r+(A*80|0)+(A<<1)>>1]>>1;O=n[r+(ve*80|0)+(A<<1)>>1]|0;L=n[r+(z*80|0)+(A<<1)>>1]|0;D=n[r+(p*80|0)+(A<<1)>>1]|0;M=n[r+(u*80|0)+(A<<1)>>1]|0;N=n[r+(h*80|0)+(A<<1)>>1]|0;j=n[r+(m*80|0)+(A<<1)>>1]|0;n[f>>1]=(o[a+(A<<1)>>1]|0)+t;n[f+2>>1]=(O+4+B+L+D+M+N+j|0)>>>3;A=A+K|0;if((A&65535)<<16>>16<40){A=A<<16>>16;f=f+4|0}else break}t=n[Z>>1]|0}else t=A;v=n[te>>1]|0;if(v<<16>>16<40){N=H<<16>>16;B=Q<<16>>16;O=U<<16>>16;E=P<<16>>16;I=t<<16>>16;S=t<<16>>16<40;L=g+32768|0;M=v<<16>>16;u=1;w=v;_=t;D=v;m=0;A=-1;while(1){if(S){g=o[a+(M<<1)>>1]|0;f=(n[r+(M*80|0)+(z<<1)>>1]|0)+(n[r+(M*80|0)+(ve<<1)>>1]|0)+(n[r+(M*80|0)+(N<<1)>>1]|0)+(n[r+(M*80|0)+(B<<1)>>1]|0)+(n[r+(M*80|0)+(O<<1)>>1]|0)+(n[r+(M*80|0)+(E<<1)>>1]|0)|0;h=L+(n[r+(M*80|0)+(M<<1)>>1]<<10)|0;y=I;v=t;k=_;T=_e;while(1){x=(o[T>>1]|0)+g|0;_=h+(n[T+2>>1]<<14)+(f+(n[r+(M*80|0)+(y<<1)>>1]|0)<<11)|0;C=x<<16>>16;C=(ee(C,C)|0)>>>15;if((ee(C<<16>>16,u<<16>>16)|0)>(ee(_>>16,A<<16>>16)|0)){u=_>>>16&65535;w=D;_=v;m=x&65535;A=C&65535}else _=k;b=y+K|0;v=b&65535;if(v<<16>>16>=40)break;else{y=b<<16>>16;k=_;T=T+4|0}}}v=M+K|0;D=v&65535;if(D<<16>>16>=40){j=_;break}else M=v<<16>>16}}else{u=1;w=v;j=t;m=0;A=-1}if(be){y=u<<16>>16<<15;A=n[ie>>1]|0;if(A<<16>>16<40){f=H<<16>>16;t=Q<<16>>16;p=U<<16>>16;u=P<<16>>16;g=w<<16>>16;v=j<<16>>16;h=m&65535;A=A<<16>>16;m=_e;while(1){O=n[r+(A*80|0)+(A<<1)>>1]>>1;E=n[r+(ve*80|0)+(A<<1)>>1]|0;B=n[r+(z*80|0)+(A<<1)>>1]|0;L=n[r+(f*80|0)+(A<<1)>>1]|0;D=n[r+(t*80|0)+(A<<1)>>1]|0;M=n[r+(p*80|0)+(A<<1)>>1]|0;N=n[r+(u*80|0)+(A<<1)>>1]|0;F=n[r+(g*80|0)+(A<<1)>>1]|0;R=n[r+(v*80|0)+(A<<1)>>1]|0;n[m>>1]=(o[a+(A<<1)>>1]|0)+h;n[m+2>>1]=(E+4+O+B+L+D+M+N+F+R|0)>>>3;A=A+K|0;if((A&65535)<<16>>16<40){A=A<<16>>16;m=m+4|0}else break}N=n[ie>>1]|0}else N=A;g=n[ae>>1]|0;if(g<<16>>16<40){O=H<<16>>16;E=Q<<16>>16;I=U<<16>>16;p=P<<16>>16;B=w<<16>>16;L=j<<16>>16;D=N<<16>>16;M=N<<16>>16<40;S=y+32768|0;f=g<<16>>16;u=1;v=g;m=N;t=g;A=-1;while(1){if(M){y=o[a+(f<<1)>>1]|0;h=(n[r+(z*80|0)+(f<<1)>>1]|0)+(n[r+(ve*80|0)+(f<<1)>>1]|0)+(n[r+(O*80|0)+(f<<1)>>1]|0)+(n[r+(E*80|0)+(f<<1)>>1]|0)+(n[r+(I*80|0)+(f<<1)>>1]|0)+(n[r+(p*80|0)+(f<<1)>>1]|0)+(n[r+(B*80|0)+(f<<1)>>1]|0)+(n[r+(L*80|0)+(f<<1)>>1]|0)|0;g=S+(n[r+(f*80|0)+(f<<1)>>1]<<9)|0;T=D;C=N;k=_e;while(1){x=(o[k>>1]|0)+y<<16>>16;x=(ee(x,x)|0)>>>15;_=g+(n[k+2>>1]<<13)+(h+(n[r+(f*80|0)+(T<<1)>>1]|0)<<10)|0;if((ee(x<<16>>16,u<<16>>16)|0)>(ee(_>>16,A<<16>>16)|0)){u=_>>>16&65535;v=t;m=C;A=x&65535}b=T+K|0;C=b&65535;if(C<<16>>16>=40)break;else{T=b<<16>>16;k=k+4|0}}}g=f+K|0;t=g&65535;if(t<<16>>16>=40)break;else f=g<<16>>16}}else{u=1;v=g;m=N;A=-1}}else{v=F;m=R}if((ee(A<<16>>16,G<<16>>16)|0)>(ee(u<<16>>16,$<<16>>16)|0)){n[c>>1]=ye;n[ne>>1]=q;n[re>>1]=H;n[se>>1]=Q;n[oe>>1]=U;n[le>>1]=P;n[ce>>1]=w;n[ue>>1]=j;if(be){n[de>>1]=v;n[pe>>1]=m}}else{u=G;A=$}f=n[ge>>1]|0;if(fe){t=1;p=2;while(1){n[s+(t<<1)>>1]=n[s+(p<<1)>>1]|0;p=p+1|0;if((p&65535)<<16>>16==e<<16>>16)break;else t=t+1|0}}n[V>>1]=f;Y=Y+1<<16>>16;if(Y<<16>>16>=i<<16>>16)break;else{G=u;F=v;R=m;$=A}}d=we;return}function ba(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var r=0,s=0,o=0,l=0,c=0,u=0;l=39;while(1){o=e+(l<<1)|0;s=n[o>>1]|0;r=t+(l<<1)|0;if(s<<16>>16>-1)n[r>>1]=32767;else{n[r>>1]=-32767;if(s<<16>>16==-32768)s=32767;else s=0-(s&65535)&65535;n[o>>1]=s}n[i+(l<<1)>>1]=s;if((l|0)>0)l=l+-1|0;else break}u=8-(a<<16>>16)|0;if((u|0)>0){c=0;r=0}else return;do{a=0;e=0;o=32767;while(1){t=n[i+(a<<1)>>1]|0;l=t<<16>>16>-1?t<<16>>16<o<<16>>16:0;r=l?e:r;s=a+5|0;e=s&65535;if(e<<16>>16>=40)break;else{a=s<<16>>16;o=l?t:o}}n[i+(r<<16>>16<<1)>>1]=-1;c=c+1<<16>>16}while((c<<16>>16|0)<(u|0));c=0;do{t=1;e=1;s=32767;while(1){a=n[i+(t<<1)>>1]|0;l=a<<16>>16>-1?a<<16>>16<s<<16>>16:0;r=l?e:r;o=t+5|0;e=o&65535;if(e<<16>>16>=40)break;else{t=o<<16>>16;s=l?a:s}}n[i+(r<<16>>16<<1)>>1]=-1;c=c+1<<16>>16}while((c<<16>>16|0)<(u|0));c=0;do{t=2;e=2;s=32767;while(1){a=n[i+(t<<1)>>1]|0;l=a<<16>>16>-1?a<<16>>16<s<<16>>16:0;r=l?e:r;o=t+5|0;e=o&65535;if(e<<16>>16>=40)break;else{t=o<<16>>16;s=l?a:s}}n[i+(r<<16>>16<<1)>>1]=-1;c=c+1<<16>>16}while((c<<16>>16|0)<(u|0));c=0;while(1){t=3;e=3;s=32767;while(1){a=n[i+(t<<1)>>1]|0;l=a<<16>>16>-1?a<<16>>16<s<<16>>16:0;r=l?e:r;o=t+5|0;e=o&65535;if(e<<16>>16>=40){s=r;break}else{t=o<<16>>16;s=l?a:s}}n[i+(s<<16>>16<<1)>>1]=-1;c=c+1<<16>>16;if((c<<16>>16|0)>=(u|0)){r=0;break}else r=s}do{t=4;e=4;c=32767;while(1){a=n[i+(t<<1)>>1]|0;l=a<<16>>16>-1?a<<16>>16<c<<16>>16:0;s=l?e:s;o=t+5|0;e=o&65535;if(e<<16>>16>=40)break;else{t=o<<16>>16;c=l?a:c}}n[i+(s<<16>>16<<1)>>1]=-1;r=r+1<<16>>16}while((r<<16>>16|0)<(u|0));return}function ya(e,t,i,a,s,o,l,c){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;o=o|0;l=l|0;c=c|0;var u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0;x=d;d=d+80|0;C=x;h=40;m=t;g=e;p=256;f=256;while(1){u=n[m>>1]|0;m=m+2|0;u=ee(u,u)|0;if((u|0)!=1073741824){A=(u<<1)+p|0;if((u^p|0)>0&(A^p|0)<0){r[c>>2]=1;p=(p>>>31)+2147483647|0}else p=A}else{r[c>>2]=1;p=2147483647}w=n[g>>1]|0;f=(ee(w<<1,w)|0)+f|0;h=h+-1<<16>>16;if(!(h<<16>>16))break;else g=g+2|0}w=sn(p,c)|0;y=w<<5;w=((y>>5|0)==(w|0)?y:w>>31^2147418112)>>16;y=(sn(f,c)|0)<<5>>16;_=39;v=t+78|0;b=C+78|0;u=i+78|0;while(1){g=ee(n[v>>1]|0,w)|0;v=v+-2|0;m=g<<1;t=e+(_<<1)|0;p=n[t>>1]|0;h=ee(p<<16>>16,y)|0;if((h|0)!=1073741824){A=(h<<1)+m|0;if((h^m|0)>0&(A^m|0)<0){r[c>>2]=1;A=(g>>>30&1)+2147483647|0}}else{r[c>>2]=1;A=2147483647}f=A<<10;f=Ln((f>>10|0)==(A|0)?f:A>>31^2147483647,c)|0;if(f<<16>>16>-1)n[u>>1]=32767;else{n[u>>1]=-32767;if(f<<16>>16==-32768)f=32767;else f=0-(f&65535)&65535;if(p<<16>>16==-32768)A=32767;else A=0-(p&65535)&65535;n[t>>1]=A}u=u+-2|0;n[b>>1]=f;if((_|0)<=0)break;else{_=_+-1|0;b=b+-2|0}}t=s<<16>>16;if(s<<16>>16<=0){n[o+(t<<1)>>1]=n[o>>1]|0;d=x;return}g=l&65535;m=0;h=-1;u=0;while(1){if((m|0)<40){f=m;A=m&65535;p=-1;while(1){c=n[C+(f<<1)>>1]|0;l=c<<16>>16>p<<16>>16;p=l?c:p;u=l?A:u;f=f+g|0;A=f&65535;if(A<<16>>16>=40)break;else f=f<<16>>16}}else p=-1;n[a+(m<<1)>>1]=u;if(p<<16>>16>h<<16>>16)n[o>>1]=m;else p=h;m=m+1|0;if((m&65535)<<16>>16==s<<16>>16)break;else h=p}u=n[o>>1]|0;n[o+(t<<1)>>1]=u;if(s<<16>>16>1)p=1;else{d=x;return}do{a=u+1<<16>>16;u=a<<16>>16>=s<<16>>16?0:a;n[o+(p<<1)>>1]=u;n[o+(p+t<<1)>>1]=u;p=p+1|0}while((p&65535)<<16>>16!=s<<16>>16);d=x;return}function _a(e){e=e|0;var t=0;if(!e){e=-1;return e|0}r[e>>2]=0;t=Fn(12)|0;if(!t){e=-1;return e|0}n[t>>1]=8;r[e>>2]=t;n[t+2>>1]=3;n[t+4>>1]=0;r[t+8>>2]=0;e=0;return e|0}function wa(e){e=e|0;var t=0;if(!e)return;t=r[e>>2]|0;if(!t)return;Rn(t);r[e>>2]=0;return}function Ca(e,t,i){e=e|0;t=t|0;i=i|0;var a=0,s=0,o=0;do{if((t|0)==8){a=e+2|0;s=(n[a>>1]|0)+-1<<16>>16;n[a>>1]=s;t=e+8|0;if(!(r[t>>2]|0)){r[i>>2]=1;n[a>>1]=3;break}o=e+4|0;if(s<<16>>16>2&(n[o>>1]|0)>0){r[i>>2]=2;n[o>>1]=(n[o>>1]|0)+-1<<16>>16;break}if(!(s<<16>>16)){r[i>>2]=2;n[a>>1]=n[e>>1]|0;break}else{r[i>>2]=3;break}}else{n[e+2>>1]=n[e>>1]|0;r[i>>2]=0;t=e+8|0}}while(0);r[t>>2]=r[i>>2];return}function xa(e,t,i){e=e|0;t=t|0;i=i|0;var a=0,n=0,s=0;if(!e){e=-1;return e|0}r[e>>2]=0;i=Fn(12)|0;a=i;if(!i){e=-1;return e|0}r[i>>2]=0;n=i+4|0;r[n>>2]=0;s=i+8|0;r[s>>2]=t;if((sa(i)|0)<<16>>16==0?(ai(n,r[s>>2]|0)|0)<<16>>16==0:0){oa(r[i>>2]|0)|0;ri(r[n>>2]|0)|0;r[e>>2]=a;e=0;return e|0}la(i);ni(n);Rn(i);e=-1;return e|0}function ka(e){e=e|0;var t=0;if(!e)return;t=r[e>>2]|0;if(!t)return;la(t);ni((r[e>>2]|0)+4|0);Rn(r[e>>2]|0);r[e>>2]=0;return}function Ta(e,t,i,a,s){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;var l=0,c=0,u=0,p=0,f=0;p=d;d=d+448|0;c=p+320|0;u=p;$n(a|0,0,488)|0;l=0;do{f=i+(l<<1)|0;n[f>>1]=(o[f>>1]|0)&65528;l=l+1|0}while((l|0)!=160);ca(r[e>>2]|0,i,160);f=e+4|0;si(r[f>>2]|0,t,i,c,s,u)|0;ua(r[s>>2]|0,c,a,(r[f>>2]|0)+2392|0);d=p;return}function Sa(e,t,i,a,r,s,o,l,c,u,p,f,A,h,m,g){e=e|0;t=t|0;i=i|0;a=a|0;r=r|0;s=s|0;o=o|0;l=l|0;c=c|0;u=u|0;p=p|0;f=f|0;A=A|0;h=h|0;m=m|0;g=g|0;var v=0,b=0,y=0;y=d;d=d+48|0;v=y+22|0;b=y;Un(r,(e&-2|0)==6?i:t,v);Un(r,a,b);i=p;t=v;r=i+22|0;do{n[i>>1]=n[t>>1]|0;i=i+2|0;t=t+2|0}while((i|0)<(r|0));Pn(s,p,A,40,u,0);Pn(b,A,A,40,u,0);Bn(s,o,m,40);i=f;t=m;r=i+80|0;do{n[i>>1]=n[t>>1]|0;i=i+2|0;t=t+2|0}while((i|0)<(r|0));Pn(s,f,g,40,l,0);Bn(v,g,h,40);Pn(b,h,h,40,c,0);d=y;return}function Ia(e,t,i,a,r,s,l,c,u,d,p,f,A,h,m,g,v){e=e|0;t=t|0;i=i|0;a=a|0;r=r|0;s=s|0;l=l|0;c=c|0;u=u|0;d=d|0;p=p|0;f=f|0;A=A|0;h=h|0;m=m|0;g=g|0;v=v|0;var b=0,y=0,_=0,w=0,C=0;if((t|0)==7){_=11;t=a<<16>>16>>>1&65535;b=2}else{_=13;t=a;b=1}n[g>>1]=a<<16>>16<13017?a:13017;y=i<<16>>16;m=m+(y<<1)|0;g=t<<16>>16;r=r<<16>>16;i=20;t=u;v=m;while(1){u=v+2|0;C=ee(n[v>>1]|0,g)|0;w=ee(n[u>>1]|0,g)|0;C=(ee(n[t>>1]|0,r)|0)+C<<1;w=(ee(n[t+2>>1]|0,r)|0)+w<<1<<b;n[v>>1]=((C<<b)+32768|0)>>>16;n[u>>1]=(w+32768|0)>>>16;i=i+-1<<16>>16;if(!(i<<16>>16))break;else{t=t+4|0;v=v+4|0}}t=a<<16>>16;Pn(s,m,l+(y<<1)|0,40,f,1);i=30;v=0;while(1){w=i+y|0;n[A+(v<<1)>>1]=(o[e+(w<<1)>>1]|0)-(o[l+(w<<1)>>1]|0);w=ee(n[d+(i<<1)>>1]|0,t)|0;C=(ee(n[p+(i<<1)>>1]|0,r)|0)>>_;n[h+(v<<1)>>1]=(o[c+(i<<1)>>1]|0)-(w>>>14)-C;v=v+1|0;if((v|0)==10)break;else i=i+1|0}return}function Ea(e){e=e|0;var t=0;if(!e){e=-1;return e|0}r[e>>2]=0;t=Fn(16)|0;if(!t){e=-1;return e|0}n[t>>1]=0;n[t+2>>1]=0;n[t+4>>1]=0;n[t+6>>1]=0;n[t+8>>1]=0;n[t+10>>1]=0;n[t+12>>1]=0;n[t+14>>1]=0;r[e>>2]=t;e=0;return e|0}function Oa(e){e=e|0;if(!e){e=-1;return e|0}n[e>>1]=0;n[e+2>>1]=0;n[e+4>>1]=0;n[e+6>>1]=0;n[e+8>>1]=0;n[e+10>>1]=0;n[e+12>>1]=0;n[e+14>>1]=0;e=0;return e|0}function Ba(e){e=e|0;var t=0;if(!e)return;t=r[e>>2]|0;if(!t)return;Rn(t);r[e>>2]=0;return}function La(e,t,i){e=e|0;t=t|0;i=i|0;var a=0,r=0,s=0,l=0;a=o[t+6>>1]|0;i=o[t+8>>1]|0;r=a-i|0;r=(r&65535|0)!=32767?r&65535:32767;s=o[t+10>>1]|0;i=i-s|0;r=(i<<16>>16|0)<(r<<16>>16|0)?i&65535:r;i=o[t+12>>1]|0;s=s-i|0;r=(s<<16>>16|0)<(r<<16>>16|0)?s&65535:r;s=o[t+14>>1]|0;i=i-s|0;r=(i<<16>>16|0)<(r<<16>>16|0)?i&65535:r;s=s-(o[t+16>>1]|0)|0;i=n[t+2>>1]|0;l=o[t+4>>1]|0;t=(i&65535)-l|0;t=(t&65535|0)!=32767?t&65535:32767;a=l-a|0;if(((s<<16>>16|0)<(r<<16>>16|0)?s&65535:r)<<16>>16<1500?1:(((a<<16>>16|0)<(t<<16>>16|0)?a&65535:t)<<16>>16|0)<((i<<16>>16>32e3?600:i<<16>>16>30500?800:1100)|0)){s=(n[e>>1]|0)+1<<16>>16;l=s<<16>>16>11;n[e>>1]=l?12:s;return l&1|0}else{n[e>>1]=0;return 0}return 0}function Da(e,t,i){e=e|0;t=t|0;i=i|0;t=Dn(t,3,i)|0;t=$a(t,n[e+2>>1]|0,i)|0;t=$a(t,n[e+4>>1]|0,i)|0;t=$a(t,n[e+6>>1]|0,i)|0;t=$a(t,n[e+8>>1]|0,i)|0;t=$a(t,n[e+10>>1]|0,i)|0;t=$a(t,n[e+12>>1]|0,i)|0;return($a(t,n[e+14>>1]|0,i)|0)<<16>>16>15565|0}function Ma(e,t,i){e=e|0;t=t|0;i=i|0;var a=0;i=e+4|0;n[e+2>>1]=n[i>>1]|0;a=e+6|0;n[i>>1]=n[a>>1]|0;i=e+8|0;n[a>>1]=n[i>>1]|0;a=e+10|0;n[i>>1]=n[a>>1]|0;i=e+12|0;n[a>>1]=n[i>>1]|0;e=e+14|0;n[i>>1]=n[e>>1]|0;n[e>>1]=t<<16>>16>>>3;return}function Na(e){e=e|0;var t=0,i=0,a=0;if(!e){a=-1;return a|0}r[e>>2]=0;t=Fn(128)|0;if(!t){a=-1;return a|0}i=t+72|0;a=i+46|0;do{n[i>>1]=0;i=i+2|0}while((i|0)<(a|0));n[t>>1]=150;n[t+36>>1]=150;n[t+18>>1]=150;n[t+54>>1]=0;n[t+2>>1]=150;n[t+38>>1]=150;n[t+20>>1]=150;n[t+56>>1]=0;n[t+4>>1]=150;n[t+40>>1]=150;n[t+22>>1]=150;n[t+58>>1]=0;n[t+6>>1]=150;n[t+42>>1]=150;n[t+24>>1]=150;n[t+60>>1]=0;n[t+8>>1]=150;n[t+44>>1]=150;n[t+26>>1]=150;n[t+62>>1]=0;n[t+10>>1]=150;n[t+46>>1]=150;n[t+28>>1]=150;n[t+64>>1]=0;n[t+12>>1]=150;n[t+48>>1]=150;n[t+30>>1]=150;n[t+66>>1]=0;n[t+14>>1]=150;n[t+50>>1]=150;n[t+32>>1]=150;n[t+68>>1]=0;n[t+16>>1]=150;n[t+52>>1]=150;n[t+34>>1]=150;n[t+70>>1]=0;n[t+118>>1]=13106;n[t+120>>1]=0;n[t+122>>1]=0;n[t+124>>1]=0;n[t+126>>1]=13106;r[e>>2]=t;a=0;return a|0}function ja(e){e=e|0;var t=0,i=0;if(!e){i=-1;return i|0}t=e+72|0;i=t+46|0;do{n[t>>1]=0;t=t+2|0}while((t|0)<(i|0));n[e>>1]=150;n[e+36>>1]=150;n[e+18>>1]=150;n[e+54>>1]=0;n[e+2>>1]=150;n[e+38>>1]=150;n[e+20>>1]=150;n[e+56>>1]=0;n[e+4>>1]=150;n[e+40>>1]=150;n[e+22>>1]=150;n[e+58>>1]=0;n[e+6>>1]=150;n[e+42>>1]=150;n[e+24>>1]=150;n[e+60>>1]=0;n[e+8>>1]=150;n[e+44>>1]=150;n[e+26>>1]=150;n[e+62>>1]=0;n[e+10>>1]=150;n[e+46>>1]=150;n[e+28>>1]=150;n[e+64>>1]=0;n[e+12>>1]=150;n[e+48>>1]=150;n[e+30>>1]=150;n[e+66>>1]=0;n[e+14>>1]=150;n[e+50>>1]=150;n[e+32>>1]=150;n[e+68>>1]=0;n[e+16>>1]=150;n[e+52>>1]=150;n[e+34>>1]=150;n[e+70>>1]=0;n[e+118>>1]=13106;n[e+120>>1]=0;n[e+122>>1]=0;n[e+124>>1]=0;n[e+126>>1]=13106;i=0;return i|0}function Pa(e){e=e|0;var t=0;if(!e)return;t=r[e>>2]|0;if(!t)return;Rn(t);r[e>>2]=0;return}function Ua(e,t){e=e|0;t=t|0;n[e+118>>1]=t;return}function Fa(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var s=0;i=Ln(i,a)|0;if(i<<16>>16<=0)return;i=i<<16>>16;if((i*21298|0)==1073741824){r[a>>2]=1;s=2147483647}else s=i*42596|0;i=t-s|0;if(((i^t)&(s^t)|0)<0){r[a>>2]=1;i=(t>>>31)+2147483647|0}if((i|0)<=0)return;e=e+104|0;n[e>>1]=o[e>>1]|0|16384;return}function Ra(e,t,i){e=e|0;t=t|0;i=i|0;var a=0;e=e+104|0;a=Dn(n[e>>1]|0,1,i)|0;n[e>>1]=a;if(!(t<<16>>16))return;n[e>>1]=(Dn(a,1,i)|0)&65535|8192;return}function Qa(e,t,i){e=e|0;t=t|0;i=i|0;var a=0,r=0,s=0;r=e+112|0;a=jn(n[r>>1]|0,n[t>>1]|0,i)|0;a=(a&65535)-((a&65535)>>>15&65535)|0;a=((a<<16>>31^a)&65535)<<16>>16<4;s=n[t>>1]|0;n[r>>1]=s;t=t+2|0;s=jn(s,n[t>>1]|0,i)|0;s=(s&65535)-((s&65535)>>>15&65535)|0;a=((s<<16>>31^s)&65535)<<16>>16<4?a?2:1:a&1;n[r>>1]=n[t>>1]|0;r=e+102|0;n[r>>1]=Dn(n[r>>1]|0,1,i)|0;t=e+110|0;if(($a(n[t>>1]|0,a,i)|0)<<16>>16<=3){n[t>>1]=a;return}n[r>>1]=o[r>>1]|0|16384;n[t>>1]=a;return}function Ha(e,t,i){e=e|0;t=t|0;i=i|0;var a=0,s=0,l=0,c=0,u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0,I=0,E=0;E=d;d=d+352|0;f=E+24|0;S=E;c=0;s=0;do{a=n[t+(c+-40<<1)>>1]|0;a=ee(a,a)|0;if((a|0)!=1073741824){l=(a<<1)+s|0;if((a^s|0)>0&(l^s|0)<0){r[i>>2]=1;s=(s>>>31)+2147483647|0}else s=l}else{r[i>>2]=1;s=2147483647}c=c+1|0}while((c|0)!=160);A=s;if((343039-A&A|0)<0){r[i>>2]=1;s=(A>>>31)+2147483647|0}else s=A+-343040|0;if((s|0)<0){T=e+102|0;n[T>>1]=o[T>>1]&16383}p=A+-15e3|0;h=(14999-A&A|0)<0;if(h){r[i>>2]=1;l=(A>>>31)+2147483647|0}else l=p;if((l|0)<0){T=e+108|0;n[T>>1]=o[T>>1]&16383}a=e+72|0;u=e+74|0;l=n[a>>1]|0;c=n[u>>1]|0;s=0;do{T=s<<2;x=jn((n[t+(T<<1)>>1]|0)>>>2&65535,((l<<16>>16)*21955|0)>>>15&65535,i)|0;_=((x<<16>>16)*21955|0)>>>15&65535;y=$a(l,_,i)|0;C=T|1;k=jn((n[t+(C<<1)>>1]|0)>>>2&65535,((c<<16>>16)*6390|0)>>>15&65535,i)|0;w=((k<<16>>16)*6390|0)>>>15&65535;l=$a(c,w,i)|0;n[f+(T<<1)>>1]=$a(y,l,i)|0;n[f+(C<<1)>>1]=jn(y,l,i)|0;C=T|2;l=jn((n[t+(C<<1)>>1]|0)>>>2&65535,_,i)|0;x=$a(x,((l<<16>>16)*21955|0)>>>15&65535,i)|0;T=T|3;c=jn((n[t+(T<<1)>>1]|0)>>>2&65535,w,i)|0;k=$a(k,((c<<16>>16)*6390|0)>>>15&65535,i)|0;n[f+(C<<1)>>1]=$a(x,k,i)|0;n[f+(T<<1)>>1]=jn(x,k,i)|0;s=s+1|0}while((s|0)!=40);n[a>>1]=l;n[u>>1]=c;c=e+76|0;l=e+80|0;s=0;do{T=s<<2;za(f+(T<<1)|0,f+((T|2)<<1)|0,c,i);za(f+((T|1)<<1)|0,f+((T|3)<<1)|0,l,i);s=s+1|0}while((s|0)!=40);c=e+84|0;l=e+86|0;s=e+92|0;a=0;do{T=a<<3;qa(f+(T<<1)|0,f+((T|4)<<1)|0,c,i);qa(f+((T|2)<<1)|0,f+((T|6)<<1)|0,l,i);qa(f+((T|3)<<1)|0,f+((T|7)<<1)|0,s,i);a=a+1|0}while((a|0)!=20);c=e+88|0;l=e+90|0;s=0;do{T=s<<4;qa(f+(T<<1)|0,f+((T|8)<<1)|0,c,i);qa(f+((T|4)<<1)|0,f+((T|12)<<1)|0,l,i);s=s+1|0}while((s|0)!=10);b=Ga(f,e+70|0,32,40,4,1,15,i)|0;n[S+16>>1]=b;y=Ga(f,e+68|0,16,20,8,7,16,i)|0;n[S+14>>1]=y;_=Ga(f,e+66|0,16,20,8,3,16,i)|0;n[S+12>>1]=_;w=Ga(f,e+64|0,16,20,8,2,16,i)|0;n[S+10>>1]=w;C=Ga(f,e+62|0,16,20,8,6,16,i)|0;n[S+8>>1]=C;x=Ga(f,e+60|0,8,10,16,4,16,i)|0;n[S+6>>1]=x;k=Ga(f,e+58|0,8,10,16,12,16,i)|0;n[S+4>>1]=k;T=Ga(f,e+56|0,8,10,16,8,16,i)|0;n[S+2>>1]=T;v=Ga(f,e+54|0,8,10,16,0,16,i)|0;n[S>>1]=v;c=0;a=0;do{l=e+(a<<1)|0;t=yn(n[l>>1]|0)|0;l=n[l>>1]|0;s=t<<16>>16;if(t<<16>>16<0){u=0-s<<16;if((u|0)<983040)u=l<<16>>16>>(u>>16)&65535;else u=0}else{u=l<<16>>16;l=u<<s;if((l<<16>>16>>s|0)==(u|0))u=l&65535;else u=(u>>>15^32767)&65535}l=Ya(Dn(n[S+(a<<1)>>1]|0,1,i)|0,u)|0;g=jn(t,5,i)|0;s=g<<16>>16;if(g<<16>>16<0){u=0-s<<16;if((u|0)<983040)u=l<<16>>16>>(u>>16);else u=0}else{l=l<<16>>16;u=l<<s;if((u<<16>>16>>s|0)!=(l|0))u=l>>>15^32767}u=u<<16>>16;u=ee(u,u)|0;if((u|0)!=1073741824){l=(u<<1)+c|0;if((u^c|0)>0&(l^c|0)<0){r[i>>2]=1;c=(c>>>31)+2147483647|0}else c=l}else{r[i>>2]=1;c=2147483647}a=a+1|0}while((a|0)!=9);g=c<<6;c=(((g>>6|0)==(c|0)?g:c>>31^2147418112)>>16)*3641>>15;if((c|0)>32767){r[i>>2]=1;c=32767}g=n[e>>1]|0;u=g<<16>>16;m=n[e+2>>1]|0;l=(m<<16>>16)+u|0;if((m^g)<<16>>16>-1&(l^u|0)<0){r[i>>2]=1;l=(u>>>31)+2147483647|0}g=n[e+4>>1]|0;u=g+l|0;if((g^l|0)>-1&(u^l|0)<0){r[i>>2]=1;u=(l>>>31)+2147483647|0}g=n[e+6>>1]|0;l=g+u|0;if((g^u|0)>-1&(l^u|0)<0){r[i>>2]=1;l=(u>>>31)+2147483647|0}g=n[e+8>>1]|0;u=g+l|0;if((g^l|0)>-1&(u^l|0)<0){r[i>>2]=1;u=(l>>>31)+2147483647|0}g=n[e+10>>1]|0;l=g+u|0;if((g^u|0)>-1&(l^u|0)<0){r[i>>2]=1;l=(u>>>31)+2147483647|0}g=n[e+12>>1]|0;u=g+l|0;if((g^l|0)>-1&(u^l|0)<0){r[i>>2]=1;u=(l>>>31)+2147483647|0}g=n[e+14>>1]|0;l=g+u|0;if((g^u|0)>-1&(l^u|0)<0){r[i>>2]=1;l=(u>>>31)+2147483647|0}g=n[e+16>>1]|0;u=g+l|0;if((g^l|0)>-1&(u^l|0)<0){r[i>>2]=1;u=(l>>>31)+2147483647|0}m=u<<13;m=((m>>13|0)==(u|0)?m:u>>31^2147418112)>>>16&65535;u=(ee((jn(m,0,i)|0)<<16>>16,-2808)|0)>>15;if((u|0)>32767){r[i>>2]=1;u=32767}f=$a(u&65535,1260,i)|0;g=e+100|0;u=Dn(n[g>>1]|0,1,i)|0;if((c<<16>>16|0)>((f<<16>>16<720?720:f<<16>>16)|0))u=(u&65535|16384)&65535;n[g>>1]=u;if(h){r[i>>2]=1;p=(A>>>31)+2147483647|0}s=n[e+118>>1]|0;h=e+126|0;u=n[h>>1]|0;a=u<<16>>16<19660;a=s<<16>>16<u<<16>>16?a?2621:6553:a?2621:655;t=u&65535;c=t<<16;u=ee(a,u<<16>>16)|0;if((u|0)==1073741824){r[i>>2]=1;u=2147483647}else u=u<<1;l=c-u|0;if(((l^c)&(u^c)|0)<0){r[i>>2]=1;l=(t>>>15)+2147483647|0}c=ee(a,s<<16>>16)|0;do{if((c|0)==1073741824){r[i>>2]=1;u=2147483647}else{u=l+(c<<1)|0;if(!((l^c|0)>0&(u^l|0)<0))break;r[i>>2]=1;u=(l>>>31)+2147483647|0}}while(0);t=Ln(u,i)|0;A=(p|0)>-1;n[h>>1]=A?t<<16>>16<13106?13106:t:13106;t=e+106|0;n[t>>1]=Dn(n[t>>1]|0,1,i)|0;l=e+108|0;u=Dn(n[l>>1]|0,1,i)|0;n[l>>1]=u;c=n[h>>1]|0;e:do{if(A){do{if(c<<16>>16>19660)n[t>>1]=o[t>>1]|16384;else{if(c<<16>>16>16383)break;c=e+116|0;u=0;break e}}while(0);n[l>>1]=u&65535|16384;I=62}else I=62}while(0);do{if((I|0)==62){u=e+116|0;if(c<<16>>16<=22936){c=u;u=0;break}c=u;u=$a(n[u>>1]|0,1,i)|0}}while(0);n[c>>1]=u;if((n[t>>1]&32640)!=32640){f=(n[l>>1]&32767)==32767;n[e+122>>1]=f&1;if(f)I=67}else{n[e+122>>1]=1;I=67}do{if((I|0)==67){c=e+98|0;if((n[c>>1]|0)>=5)break;n[c>>1]=5}}while(0);f=e+102|0;do{if((n[f>>1]&24576)==24576)I=71;else{if((n[e+104>>1]&31744)==31744){I=71;break}if(!(n[g>>1]&32640)){n[e+98>>1]=20;l=32767;break}else{l=v;c=0;u=0}while(1){a=n[e+18+(c<<1)>>1]|0;s=l<<16>>16>a<<16>>16;p=s?l:a;l=s?a:l;p=p<<16>>16<184?184:p;l=l<<16>>16<184?184:l;a=yn(l)|0;s=a<<16>>16;do{if(a<<16>>16<0){t=0-s<<16;if((t|0)>=983040){t=0;break}t=l<<16>>16>>(t>>16)&65535}else{t=l<<16>>16;l=t<<s;if((l<<16>>16>>s|0)==(t|0)){t=l&65535;break}t=(t>>>15^32767)&65535}}while(0);p=Ya(Dn(p,1,i)|0,t)|0;u=$a(u,Dn(p,jn(8,a,i)|0,i)|0,i)|0;c=c+1|0;if((c|0)==9)break;l=n[S+(c<<1)>>1]|0}if(u<<16>>16>1e3){n[e+98>>1]=20;l=32767;break}l=n[g>>1]|0;c=e+98|0;u=n[c>>1]|0;do{if(!(l&16384))I=86;else{if(!(u<<16>>16)){u=l;break}u=jn(u,1,i)|0;n[c>>1]=u;I=86}}while(0);if((I|0)==86){if(u<<16>>16==20){l=32767;break}u=n[g>>1]|0}l=(u&16384)==0?16383:3276}}while(0);if((I|0)==71){n[e+98>>1]=20;l=32767}c=v;u=0;while(1){p=e+18+(u<<1)|0;t=vn(l,jn(c,n[p>>1]|0,i)|0,i)|0;n[p>>1]=$a(n[p>>1]|0,t,i)|0;u=u+1|0;if((u|0)==9)break;c=n[S+(u<<1)>>1]|0}do{if(!(n[g>>1]&30720)){if(n[f>>1]&30720){I=95;break}if(!(n[e+114>>1]|0)){s=2097;a=1638;t=2}else I=95}else I=95}while(0);do{if((I|0)==95){if((n[e+98>>1]|0)==0?(n[e+114>>1]|0)==0:0){s=1867;a=491;t=2;break}s=1638;a=0;t=0}}while(0);l=0;do{c=e+(l<<1)|0;u=jn(n[e+36+(l<<1)>>1]|0,n[c>>1]|0,i)|0;if(u<<16>>16<0){u=vn(s,u,i)|0;u=$a(-2,$a(n[c>>1]|0,u,i)|0,i)|0;u=u<<16>>16<40?40:u}else{u=vn(a,u,i)|0;u=$a(t,$a(n[c>>1]|0,u,i)|0,i)|0;u=u<<16>>16>16e3?16e3:u}n[c>>1]=u;l=l+1|0}while((l|0)!=9);n[e+36>>1]=v;n[e+38>>1]=T;n[e+40>>1]=k;n[e+42>>1]=x;n[e+44>>1]=C;n[e+46>>1]=w;n[e+48>>1]=_;n[e+50>>1]=y;n[e+52>>1]=b;c=m<<16>>16>100;l=c?7:4;c=c?4:5;if(!A){n[e+94>>1]=0;n[e+96>>1]=0;n[e+114>>1]=0;n[e+116>>1]=0;i=0;e=e+120|0;n[e>>1]=i;d=E;return i|0}s=e+114|0;a=n[s>>1]|0;do{if((n[e+116>>1]|0)<=100){if(a<<16>>16)break;a=n[g>>1]|0;do{if(!(a&16368)){if((n[h>>1]|0)>21298)a=1;else break;e=e+120|0;n[e>>1]=a;d=E;return a|0}}while(0);s=e+94|0;if(!(a&16384)){n[s>>1]=0;a=e+96|0;s=n[a>>1]|0;if(s<<16>>16<=0){i=0;e=e+120|0;n[e>>1]=i;d=E;return i|0}n[a>>1]=jn(s,1,i)|0;i=1;e=e+120|0;n[e>>1]=i;d=E;return i|0}else{i=$a(n[s>>1]|0,1,i)|0;n[s>>1]=i;if((i<<16>>16|0)<(c|0)){i=1;e=e+120|0;n[e>>1]=i;d=E;return i|0}n[e+96>>1]=l;i=1;e=e+120|0;n[e>>1]=i;d=E;return i|0}}else{if(a<<16>>16>=250)break;n[s>>1]=250;a=250}}while(0);n[e+94>>1]=4;n[s>>1]=jn(a,1,i)|0;i=1;e=e+120|0;n[e>>1]=i;d=E;return i|0}function za(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var s=0,o=0,l=0;s=(n[i>>1]|0)*21955>>15;if((s|0)>32767){r[a>>2]=1;s=32767}o=jn(n[e>>1]|0,s&65535,a)|0;s=(o<<16>>16)*21955>>15;if((s|0)>32767){r[a>>2]=1;s=32767}l=$a(n[i>>1]|0,s&65535,a)|0;n[i>>1]=o;i=i+2|0;s=(n[i>>1]|0)*6390>>15;if((s|0)>32767){r[a>>2]=1;s=32767}o=jn(n[t>>1]|0,s&65535,a)|0;s=(o<<16>>16)*6390>>15;if((s|0)>32767){r[a>>2]=1;s=32767}s=$a(n[i>>1]|0,s&65535,a)|0;n[i>>1]=o;n[e>>1]=Dn($a(l,s,a)|0,1,a)|0;n[t>>1]=Dn(jn(l,s,a)|0,1,a)|0;return}function qa(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var s=0,o=0;s=(n[i>>1]|0)*13363>>15;if((s|0)>32767){r[a>>2]=1;s=32767}o=jn(n[t>>1]|0,s&65535,a)|0;s=(o<<16>>16)*13363>>15;if((s|0)>32767){r[a>>2]=1;s=32767}s=$a(n[i>>1]|0,s&65535,a)|0;n[i>>1]=o;n[t>>1]=Dn(jn(n[e>>1]|0,s,a)|0,1,a)|0;n[e>>1]=Dn($a(n[e>>1]|0,s,a)|0,1,a)|0;return}function Ga(e,t,i,a,s,o,l,c){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;o=o|0;l=l|0;c=c|0;var u=0,d=0,p=0,f=0,A=0,h=0;if(i<<16>>16<a<<16>>16){f=s<<16>>16;u=o<<16>>16;A=i<<16>>16;d=0;do{h=n[e+((ee(A,f)|0)+u<<1)>>1]|0;h=(h&65535)-((h&65535)>>>15&65535)|0;h=(h<<16>>31^h)<<16;p=(h>>15)+d|0;if((h>>16^d|0)>0&(p^d|0)<0){r[c>>2]=1;d=(d>>>31)+2147483647|0}else d=p;A=A+1|0}while((A&65535)<<16>>16!=a<<16>>16);A=d}else A=0;d=n[t>>1]|0;h=jn(16,l,c)|0;u=h<<16>>16;if(h<<16>>16>0){a=d<<u;if((a>>u|0)!=(d|0))a=d>>31^2147483647}else{u=0-u<<16;if((u|0)<2031616)a=d>>(u>>16);else a=0}u=a+A|0;if((a^A|0)>-1&(u^A|0)<0){r[c>>2]=1;u=(A>>>31)+2147483647|0}h=l<<16>>16;l=l<<16>>16>0;if(l){a=A<<h;if((a>>h|0)!=(A|0))a=A>>31^2147483647}else{a=0-h<<16;if((a|0)<2031616)a=A>>(a>>16);else a=0}n[t>>1]=a>>>16;if(i<<16>>16>0){f=s<<16>>16;d=o<<16>>16;p=0;do{o=n[e+((ee(p,f)|0)+d<<1)>>1]|0;o=(o&65535)-((o&65535)>>>15&65535)|0;o=(o<<16>>31^o)<<16;a=(o>>15)+u|0;if((o>>16^u|0)>0&(a^u|0)<0){r[c>>2]=1;u=(u>>>31)+2147483647|0}else u=a;p=p+1|0}while((p&65535)<<16>>16!=i<<16>>16)}if(l){a=u<<h;if((a>>h|0)==(u|0)){c=a;c=c>>>16;c=c&65535;return c|0}c=u>>31^2147483647;c=c>>>16;c=c&65535;return c|0}else{a=0-h<<16;if((a|0)>=2031616){c=0;c=c>>>16;c=c&65535;return c|0}c=u>>(a>>16);c=c>>>16;c=c&65535;return c|0}return 0}function $a(e,t,i){e=e|0;t=t|0;i=i|0;e=(t<<16>>16)+(e<<16>>16)|0;if((e|0)<=32767){if((e|0)<-32768){r[i>>2]=1;e=-32768}}else{r[i>>2]=1;e=32767}return e&65535|0}function Va(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var r=0,s=0,o=0,l=0,c=0,u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0;x=d;d=d+32|0;w=x+12|0;C=x;n[w>>1]=1024;n[C>>1]=1024;c=n[e+2>>1]|0;o=n[e+20>>1]|0;a=((o+c|0)>>>2)+64512|0;n[w+2>>1]=a;o=((c-o|0)>>>2)+1024|0;n[C+2>>1]=o;c=n[e+4>>1]|0;r=n[e+18>>1]|0;a=((r+c|0)>>>2)-a|0;n[w+4>>1]=a;o=((c-r|0)>>>2)+o|0;n[C+4>>1]=o;r=n[e+6>>1]|0;c=n[e+16>>1]|0;a=((c+r|0)>>>2)-a|0;n[w+6>>1]=a;o=((r-c|0)>>>2)+o|0;n[C+6>>1]=o;c=n[e+8>>1]|0;r=n[e+14>>1]|0;a=((r+c|0)>>>2)-a|0;n[w+8>>1]=a;o=((c-r|0)>>>2)+o|0;n[C+8>>1]=o;r=n[e+10>>1]|0;c=n[e+12>>1]|0;a=((c+r|0)>>>2)-a|0;n[w+10>>1]=a;n[C+10>>1]=((r-c|0)>>>2)+o;o=n[3454]|0;c=o<<16>>16;e=n[w+2>>1]|0;r=(e<<16>>16<<14)+(c<<10)|0;v=r&-65536;r=(r>>>1)-(r>>16<<15)<<16;_=(((ee(r>>16,c)|0)>>15)+(ee(v>>16,c)|0)<<2)+-16777216|0;_=(n[w+4>>1]<<14)+_|0;l=_>>16;_=(_>>>1)-(l<<15)<<16;v=(((ee(_>>16,c)|0)>>15)+(ee(l,c)|0)<<2)-((r>>15)+v)|0;v=(n[w+6>>1]<<14)+v|0;r=v>>16;v=(v>>>1)-(r<<15)<<16;l=(((ee(v>>16,c)|0)>>15)+(ee(r,c)|0)<<2)-((_>>15)+(l<<16))|0;l=(n[w+8>>1]<<14)+l|0;_=l>>16;r=(a<<16>>3)+((((ee((l>>>1)-(_<<15)<<16>>16,c)|0)>>15)+(ee(_,c)|0)<<1)-((v>>15)+(r<<16)))|0;v=w+4|0;c=w;_=0;l=0;a=0;g=w+10|0;r=(r+33554432|0)>>>0<67108863?r>>>10&65535:(r|0)>33554431?32767:-32768;e:while(1){b=e<<16>>16<<14;m=c+6|0;h=c+8|0;A=l<<16>>16;while(1){if((A|0)>=60)break e;c=(A&65535)+1<<16>>16;u=n[6908+(c<<16>>16<<1)>>1]|0;y=u<<16>>16;l=b+(y<<10)|0;s=l&-65536;l=(l>>>1)-(l>>16<<15)<<16;p=(((ee(l>>16,y)|0)>>15)+(ee(s>>16,y)|0)<<2)+-16777216|0;f=n[v>>1]|0;p=(f<<16>>16<<14)+p|0;S=p>>16;p=(p>>>1)-(S<<15)<<16;s=(((ee(p>>16,y)|0)>>15)+(ee(S,y)|0)<<2)-((l>>15)+s)|0;l=n[m>>1]|0;s=(l<<16>>16<<14)+s|0;e=s>>16;s=(s>>>1)-(e<<15)<<16;S=(((ee(s>>16,y)|0)>>15)+(ee(e,y)|0)<<2)-((p>>15)+(S<<16))|0;p=n[h>>1]|0;S=(p<<16>>16<<14)+S|0;T=S>>16;e=(((ee((S>>>1)-(T<<15)<<16>>16,y)|0)>>15)+(ee(T,y)|0)<<1)-((s>>15)+(e<<16))|0;s=n[g>>1]|0;e=(s<<16>>16<<13)+e|0;e=(e+33554432|0)>>>0<67108863?e>>>10&65535:(e|0)>33554431?32767:-32768;if((ee(e<<16>>16,r<<16>>16)|0)<1){y=c;c=f;break}else{A=A+1|0;o=u;r=e}}v=s<<16>>16<<13;g=c<<16>>16<<14;f=l<<16>>16<<14;h=p<<16>>16<<14;s=u<<16>>16;A=4;while(1){T=(o<<16>>16>>>1)+(s>>>1)|0;s=T<<16;m=s>>16;s=b+(s>>6)|0;S=s&-65536;s=(s>>>1)-(s>>16<<15)<<16;p=g+((((ee(s>>16,m)|0)>>15)+(ee(S>>16,m)|0)<<2)+-16777216)|0;c=p>>16;p=(p>>>1)-(c<<15)<<16;S=f+((((ee(p>>16,m)|0)>>15)+(ee(c,m)|0)<<2)-((s>>15)+S))|0;s=S>>16;S=(S>>>1)-(s<<15)<<16;c=h+((((ee(S>>16,m)|0)>>15)+(ee(s,m)|0)<<2)-((p>>15)+(c<<16)))|0;p=c>>16;T=T&65535;s=v+((((ee((c>>>1)-(p<<15)<<16>>16,m)|0)>>15)+(ee(p,m)|0)<<1)-((S>>15)+(s<<16)))|0;s=(s+33554432|0)>>>0<67108863?s>>>10&65535:(s|0)>33554431?32767:-32768;S=(ee(s<<16>>16,e<<16>>16)|0)<1;m=S?u:T;e=S?e:s;o=S?T:o;r=S?s:r;A=A+-1<<16>>16;s=m<<16>>16;if(!(A<<16>>16)){u=s;l=o;o=m;break}else u=m}c=a<<16>>16;s=e<<16>>16;e=(r&65535)-s|0;r=e<<16;if(r){S=(e&65535)-(e>>>15&1)|0;S=S<<16>>31^S;e=(yn(S&65535)|0)<<16>>16;e=(ee((Ya(16383,S<<16>>16<<e&65535)|0)<<16>>16,(l&65535)-u<<16>>16)|0)>>19-e;if((r|0)<0)e=0-(e<<16>>16)|0;o=u-((ee(e<<16>>16,s)|0)>>>10)&65535}n[t+(c<<1)>>1]=o;r=_<<16>>16==0?C:w;T=o<<16>>16;e=n[r+2>>1]|0;s=(e<<16>>16<<14)+(T<<10)|0;S=s&-65536;s=(s>>>1)-(s>>16<<15)<<16;b=(((ee(s>>16,T)|0)>>15)+(ee(S>>16,T)|0)<<2)+-16777216|0;b=(n[r+4>>1]<<14)+b|0;v=b>>16;b=(b>>>1)-(v<<15)<<16;S=(((ee(b>>16,T)|0)>>15)+(ee(v,T)|0)<<2)-((s>>15)+S)|0;S=(n[r+6>>1]<<14)+S|0;s=S>>16;S=(S>>>1)-(s<<15)<<16;v=(((ee(S>>16,T)|0)>>15)+(ee(s,T)|0)<<2)-((b>>15)+(v<<16))|0;v=(n[r+8>>1]<<14)+v|0;b=v>>16;a=a+1<<16>>16;s=(((ee((v>>>1)-(b<<15)<<16>>16,T)|0)>>15)+(ee(b,T)|0)<<1)-((S>>15)+(s<<16))|0;s=(n[r+10>>1]<<13)+s|0;if(a<<16>>16<10){v=r+4|0;c=r;_=_^1;l=y;g=r+10|0;r=(s+33554432|0)>>>0<67108863?s>>>10&65535:(s|0)>33554431?32767:-32768}else{k=13;break}}if((k|0)==13){d=x;return}n[t>>1]=n[i>>1]|0;n[t+2>>1]=n[i+2>>1]|0;n[t+4>>1]=n[i+4>>1]|0;n[t+6>>1]=n[i+6>>1]|0;n[t+8>>1]=n[i+8>>1]|0;n[t+10>>1]=n[i+10>>1]|0;n[t+12>>1]=n[i+12>>1]|0;n[t+14>>1]=n[i+14>>1]|0;n[t+16>>1]=n[i+16>>1]|0;n[t+18>>1]=n[i+18>>1]|0;d=x;return}function Ya(e,t){e=e|0;t=t|0;var i=0,a=0,n=0,r=0,s=0,o=0;n=t<<16>>16;if(e<<16>>16<1?1:e<<16>>16>t<<16>>16){n=0;return n|0}if(e<<16>>16==t<<16>>16){n=32767;return n|0}a=n<<1;i=n<<2;r=e<<16>>16<<3;e=(r|0)<(i|0);r=r-(e?0:i)|0;e=e?0:4;s=(r|0)<(a|0);r=r-(s?0:a)|0;t=(r|0)<(n|0);e=(t&1|(s?e:e|2))<<3^8;t=r-(t?0:n)<<3;if((t|0)>=(i|0)){t=t-i|0;e=e&65528|4}r=(t|0)<(a|0);s=t-(r?0:a)|0;t=(s|0)<(n|0);e=(t&1^1|(r?e:e|2))<<16>>13;t=s-(t?0:n)<<3;if((t|0)>=(i|0)){t=t-i|0;e=e&65528|4}r=(t|0)<(a|0);s=t-(r?0:a)|0;t=(s|0)<(n|0);e=(t&1^1|(r?e:e|2))<<16>>13;t=s-(t?0:n)<<3;if((t|0)>=(i|0)){t=t-i|0;e=e&65528|4}o=(t|0)<(a|0);r=t-(o?0:a)|0;s=(r|0)<(n|0);t=(s&1^1|(o?e:e|2))<<16>>13;e=r-(s?0:n)<<3;if((e|0)>=(i|0)){e=e-i|0;t=t&65528|4}o=(e|0)<(a|0);o=((e-(o?0:a)|0)>=(n|0)|(o?t:t|2))&65535;return o|0}function Ka(e){e=e|0;if(!e){e=-1;return e|0}n[e>>1]=-14336;n[e+8>>1]=-2381;n[e+2>>1]=-14336;n[e+10>>1]=-2381;n[e+4>>1]=-14336;n[e+12>>1]=-2381;n[e+6>>1]=-14336;n[e+14>>1]=-2381;e=0;return e|0}function Wa(e,t,i,a,s,l,c,u){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;l=l|0;c=c|0;u=u|0;var p=0,f=0,A=0,h=0,m=0,g=0;g=d;d=d+16|0;h=g+2|0;m=g;p=0;f=10;while(1){A=n[i>>1]|0;A=((ee(A,A)|0)>>>3)+p|0;p=n[i+2>>1]|0;p=A+((ee(p,p)|0)>>>3)|0;A=n[i+4>>1]|0;A=p+((ee(A,A)|0)>>>3)|0;p=n[i+6>>1]|0;p=A+((ee(p,p)|0)>>>3)|0;f=f+-1<<16>>16;if(!(f<<16>>16))break;else i=i+8|0}f=p<<4;f=(f|0)<0?2147483647:f;if((t|0)==7){on(((Ln(f,u)|0)<<16>>16)*52428|0,h,m,u);A=o[h>>1]<<16;f=n[m>>1]<<1;t=n[e+8>>1]|0;p=(t<<16>>16)*88|0;if(t<<16>>16>-1&(p|0)<-783741){r[u>>2]=1;i=2147483647}else i=p+783741|0;t=(n[e+10>>1]|0)*74|0;p=t+i|0;if((t^i|0)>-1&(p^i|0)<0){r[u>>2]=1;i=(i>>>31)+2147483647|0}else i=p;t=(n[e+12>>1]|0)*44|0;p=t+i|0;if((t^i|0)>-1&(p^i|0)<0){r[u>>2]=1;i=(i>>>31)+2147483647|0}else i=p;e=(n[e+14>>1]|0)*24|0;p=e+i|0;if((e^i|0)>-1&(p^i|0)<0){r[u>>2]=1;p=(i>>>31)+2147483647|0}e=A+-1966080+f|0;i=p-e|0;if(((i^p)&(p^e)|0)<0){r[u>>2]=1;i=(p>>>31)+2147483647|0}u=i>>17;n[a>>1]=u;u=(i>>2)-(u<<15)|0;u=u&65535;n[s>>1]=u;d=g;return}A=bn(f)|0;p=A<<16>>16;if(A<<16>>16>0){i=f<<p;if((i>>p|0)==(f|0))f=i;else f=f>>31^2147483647}else{p=0-p<<16;if((p|0)<2031616)f=f>>(p>>16);else f=0}ln(f,A,h,m);h=ee(n[h>>1]|0,-49320)|0;p=(ee(n[m>>1]|0,-24660)|0)>>15;p=(p&65536|0)==0?p:p|-65536;m=p<<1;i=m+h|0;if((m^h|0)>-1&(i^m|0)<0){r[u>>2]=1;i=(p>>>30&1)+2147483647|0}switch(t|0){case 6:{p=i+2134784|0;if((i|0)>-1&(p^i|0)<0){r[u>>2]=1;p=(i>>>31)+2147483647|0}break}case 5:{n[c>>1]=f>>>16;n[l>>1]=-11-(A&65535);p=i+2183936|0;if((i|0)>-1&(p^i|0)<0){r[u>>2]=1;p=(i>>>31)+2147483647|0}break}case 4:{p=i+2085632|0;if((i|0)>-1&(p^i|0)<0){r[u>>2]=1;p=(i>>>31)+2147483647|0}break}case 3:{p=i+2065152|0;if((i|0)>-1&(p^i|0)<0){r[u>>2]=1;p=(i>>>31)+2147483647|0}break}default:{p=i+2134784|0;if((i|0)>-1&(p^i|0)<0){r[u>>2]=1;p=(i>>>31)+2147483647|0}}}do{if((p|0)<=2097151)if((p|0)<-2097152){r[u>>2]=1;i=-2147483648;break}else{i=p<<10;break}else{r[u>>2]=1;i=2147483647}}while(0);c=(n[e>>1]|0)*11142|0;p=c+i|0;if((c^i|0)>-1&(p^i|0)<0){r[u>>2]=1;p=(i>>>31)+2147483647|0}c=(n[e+2>>1]|0)*9502|0;i=c+p|0;if((c^p|0)>-1&(i^p|0)<0){r[u>>2]=1;i=(p>>>31)+2147483647|0}c=(n[e+4>>1]|0)*5570|0;p=c+i|0;if((c^i|0)>-1&(p^i|0)<0){r[u>>2]=1;p=(i>>>31)+2147483647|0}e=(n[e+6>>1]|0)*3112|0;i=e+p|0;if((e^p|0)>-1&(i^p|0)<0){r[u>>2]=1;i=(p>>>31)+2147483647|0}i=ee(i>>16,(t|0)==4?10878:10886)|0;if((i|0)<0)i=~((i^-256)>>8);else i=i>>8;n[a>>1]=i>>>16;if((i|0)<0)p=~((i^-2)>>1);else p=i>>1;a=i>>16<<15;i=p-a|0;if(((i^p)&(a^p)|0)>=0){u=i;u=u&65535;n[s>>1]=u;d=g;return}r[u>>2]=1;u=(p>>>31)+2147483647|0;u=u&65535;n[s>>1]=u;d=g;return}function Xa(e,t,i){e=e|0;t=t|0;i=i|0;var a=0,r=0,s=0;r=e+4|0;n[e+6>>1]=n[r>>1]|0;s=e+12|0;n[e+14>>1]=n[s>>1]|0;a=e+2|0;n[r>>1]=n[a>>1]|0;r=e+10|0;n[s>>1]=n[r>>1]|0;n[a>>1]=n[e>>1]|0;a=e+8|0;n[r>>1]=n[a>>1]|0;n[a>>1]=t;n[e>>1]=i;return}function Ja(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var r=0,s=0;s=$a(0,n[e+8>>1]|0,a)|0;s=$a(s,n[e+10>>1]|0,a)|0;s=$a(s,n[e+12>>1]|0,a)|0;s=$a(s,n[e+14>>1]|0,a)|0;r=s<<16>>16>>2;r=(s<<16>>16<0?r|49152:r)&65535;n[t>>1]=r<<16>>16<-2381?-2381:r;t=$a(0,n[e>>1]|0,a)|0;t=$a(t,n[e+2>>1]|0,a)|0;t=$a(t,n[e+4>>1]|0,a)|0;a=$a(t,n[e+6>>1]|0,a)|0;e=a<<16>>16>>2;e=(a<<16>>16<0?e|49152:e)&65535;n[i>>1]=e<<16>>16<-14336?-14336:e;return}function Za(e){e=e|0;r[e>>2]=6892;r[e+4>>2]=8180;r[e+8>>2]=21e3;r[e+12>>2]=9716;r[e+16>>2]=22024;r[e+20>>2]=12788;r[e+24>>2]=24072;r[e+28>>2]=26120;r[e+32>>2]=28168;r[e+36>>2]=6876;r[e+40>>2]=7452;r[e+44>>2]=8140;r[e+48>>2]=20980;r[e+52>>2]=16884;r[e+56>>2]=17908;r[e+60>>2]=7980;r[e+64>>2]=8160;r[e+68>>2]=6678;r[e+72>>2]=6646;r[e+76>>2]=6614;r[e+80>>2]=29704;r[e+84>>2]=28680;r[e+88>>2]=3720;r[e+92>>2]=8;r[e+96>>2]=4172;r[e+100>>2]=44;r[e+104>>2]=3436;r[e+108>>2]=30316;r[e+112>>2]=30796;r[e+116>>2]=31276;r[e+120>>2]=7472;r[e+124>>2]=7552;r[e+128>>2]=7632;r[e+132>>2]=7712;return}function en(e,t){e=e|0;t=t|0;var i=0,a=0,r=0,s=0,o=0,l=0,c=0,u=0,p=0,f=0;f=d;d=d+48|0;u=f+18|0;p=f;c=t<<16>>16;qn(p|0,e|0,c<<1|0)|0;if(t<<16>>16>0){i=0;a=0}else{p=c>>1;p=u+(p<<1)|0;p=n[p>>1]|0;p=p<<16>>16;p=e+(p<<1)|0;p=n[p>>1]|0;d=f;return p|0}do{l=0;o=-32767;while(1){r=n[p+(l<<1)>>1]|0;s=r<<16>>16<o<<16>>16;a=s?a:l&65535;l=l+1|0;if((l&65535)<<16>>16==t<<16>>16)break;else o=s?o:r}n[p+(a<<16>>16<<1)>>1]=-32768;n[u+(i<<1)>>1]=a;i=i+1|0}while((i&65535)<<16>>16!=t<<16>>16);p=c>>1;p=u+(p<<1)|0;p=n[p>>1]|0;p=p<<16>>16;p=e+(p<<1)|0;p=n[p>>1]|0;d=f;return p|0}function tn(e,t,i,a,r){e=e|0;t=t|0;i=i|0;a=a|0;r=r|0;var s=0,o=0,l=0,c=0,u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0;s=d;d=d+32|0;o=s;T=t+2|0;k=o+2|0;n[o>>1]=((n[t>>1]|0)>>>1)+((n[e>>1]|0)>>>1);x=t+4|0;C=o+4|0;n[k>>1]=((n[T>>1]|0)>>>1)+((n[e+2>>1]|0)>>>1);w=t+6|0;_=o+6|0;n[C>>1]=((n[x>>1]|0)>>>1)+((n[e+4>>1]|0)>>>1);y=t+8|0;b=o+8|0;n[_>>1]=((n[w>>1]|0)>>>1)+((n[e+6>>1]|0)>>>1);v=t+10|0;g=o+10|0;n[b>>1]=((n[y>>1]|0)>>>1)+((n[e+8>>1]|0)>>>1);m=t+12|0;h=o+12|0;n[g>>1]=((n[v>>1]|0)>>>1)+((n[e+10>>1]|0)>>>1);A=t+14|0;f=o+14|0;n[h>>1]=((n[m>>1]|0)>>>1)+((n[e+12>>1]|0)>>>1);p=t+16|0;u=o+16|0;n[f>>1]=((n[A>>1]|0)>>>1)+((n[e+14>>1]|0)>>>1);c=t+18|0;l=o+18|0;n[u>>1]=((n[p>>1]|0)>>>1)+((n[e+16>>1]|0)>>>1);n[l>>1]=((n[c>>1]|0)>>>1)+((n[e+18>>1]|0)>>>1);dn(o,a,r);dn(t,a+22|0,r);n[o>>1]=((n[i>>1]|0)>>>1)+((n[t>>1]|0)>>>1);n[k>>1]=((n[i+2>>1]|0)>>>1)+((n[T>>1]|0)>>>1);n[C>>1]=((n[i+4>>1]|0)>>>1)+((n[x>>1]|0)>>>1);n[_>>1]=((n[i+6>>1]|0)>>>1)+((n[w>>1]|0)>>>1);n[b>>1]=((n[i+8>>1]|0)>>>1)+((n[y>>1]|0)>>>1);n[g>>1]=((n[i+10>>1]|0)>>>1)+((n[v>>1]|0)>>>1);n[h>>1]=((n[i+12>>1]|0)>>>1)+((n[m>>1]|0)>>>1);n[f>>1]=((n[i+14>>1]|0)>>>1)+((n[A>>1]|0)>>>1);n[u>>1]=((n[i+16>>1]|0)>>>1)+((n[p>>1]|0)>>>1);n[l>>1]=((n[i+18>>1]|0)>>>1)+((n[c>>1]|0)>>>1);dn(o,a+44|0,r);dn(i,a+66|0,r);d=s;return}function an(e,t,i,a,r){e=e|0;t=t|0;i=i|0;a=a|0;r=r|0;var s=0,o=0,l=0,c=0,u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0;s=d;d=d+32|0;o=s;T=t+2|0;k=o+2|0;n[o>>1]=((n[t>>1]|0)>>>1)+((n[e>>1]|0)>>>1);x=t+4|0;C=o+4|0;n[k>>1]=((n[T>>1]|0)>>>1)+((n[e+2>>1]|0)>>>1);w=t+6|0;_=o+6|0;n[C>>1]=((n[x>>1]|0)>>>1)+((n[e+4>>1]|0)>>>1);y=t+8|0;b=o+8|0;n[_>>1]=((n[w>>1]|0)>>>1)+((n[e+6>>1]|0)>>>1);v=t+10|0;g=o+10|0;n[b>>1]=((n[y>>1]|0)>>>1)+((n[e+8>>1]|0)>>>1);m=t+12|0;h=o+12|0;n[g>>1]=((n[v>>1]|0)>>>1)+((n[e+10>>1]|0)>>>1);A=t+14|0;f=o+14|0;n[h>>1]=((n[m>>1]|0)>>>1)+((n[e+12>>1]|0)>>>1);p=t+16|0;u=o+16|0;n[f>>1]=((n[A>>1]|0)>>>1)+((n[e+14>>1]|0)>>>1);c=t+18|0;l=o+18|0;n[u>>1]=((n[p>>1]|0)>>>1)+((n[e+16>>1]|0)>>>1);n[l>>1]=((n[c>>1]|0)>>>1)+((n[e+18>>1]|0)>>>1);dn(o,a,r);n[o>>1]=((n[i>>1]|0)>>>1)+((n[t>>1]|0)>>>1);n[k>>1]=((n[i+2>>1]|0)>>>1)+((n[T>>1]|0)>>>1);n[C>>1]=((n[i+4>>1]|0)>>>1)+((n[x>>1]|0)>>>1);n[_>>1]=((n[i+6>>1]|0)>>>1)+((n[w>>1]|0)>>>1);n[b>>1]=((n[i+8>>1]|0)>>>1)+((n[y>>1]|0)>>>1);n[g>>1]=((n[i+10>>1]|0)>>>1)+((n[v>>1]|0)>>>1);n[h>>1]=((n[i+12>>1]|0)>>>1)+((n[m>>1]|0)>>>1);n[f>>1]=((n[i+14>>1]|0)>>>1)+((n[A>>1]|0)>>>1);n[u>>1]=((n[i+16>>1]|0)>>>1)+((n[p>>1]|0)>>>1);n[l>>1]=((n[i+18>>1]|0)>>>1)+((n[c>>1]|0)>>>1);dn(o,a+44|0,r);d=s;return}function nn(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var r=0,s=0,o=0,l=0,c=0,u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0,I=0,E=0,O=0,B=0,L=0,D=0,M=0,N=0;r=d;d=d+32|0;s=r;D=n[e>>1]|0;n[s>>1]=D-(D>>>2)+((n[t>>1]|0)>>>2);D=e+2|0;O=n[D>>1]|0;M=t+2|0;L=s+2|0;n[L>>1]=O-(O>>>2)+((n[M>>1]|0)>>>2);O=e+4|0;S=n[O>>1]|0;B=t+4|0;E=s+4|0;n[E>>1]=S-(S>>>2)+((n[B>>1]|0)>>>2);S=e+6|0;x=n[S>>1]|0;I=t+6|0;T=s+6|0;n[T>>1]=x-(x>>>2)+((n[I>>1]|0)>>>2);x=e+8|0;_=n[x>>1]|0;k=t+8|0;C=s+8|0;n[C>>1]=_-(_>>>2)+((n[k>>1]|0)>>>2);_=e+10|0;v=n[_>>1]|0;w=t+10|0;y=s+10|0;n[y>>1]=v-(v>>>2)+((n[w>>1]|0)>>>2);v=e+12|0;h=n[v>>1]|0;b=t+12|0;g=s+12|0;n[g>>1]=h-(h>>>2)+((n[b>>1]|0)>>>2);h=e+14|0;p=n[h>>1]|0;m=t+14|0;A=s+14|0;n[A>>1]=p-(p>>>2)+((n[m>>1]|0)>>>2);p=e+16|0;l=n[p>>1]|0;f=t+16|0;u=s+16|0;n[u>>1]=l-(l>>>2)+((n[f>>1]|0)>>>2);l=e+18|0;N=n[l>>1]|0;c=t+18|0;o=s+18|0;n[o>>1]=N-(N>>>2)+((n[c>>1]|0)>>>2);dn(s,i,a);n[s>>1]=((n[e>>1]|0)>>>1)+((n[t>>1]|0)>>>1);n[L>>1]=((n[D>>1]|0)>>>1)+((n[M>>1]|0)>>>1);n[E>>1]=((n[O>>1]|0)>>>1)+((n[B>>1]|0)>>>1);n[T>>1]=((n[S>>1]|0)>>>1)+((n[I>>1]|0)>>>1);n[C>>1]=((n[x>>1]|0)>>>1)+((n[k>>1]|0)>>>1);n[y>>1]=((n[_>>1]|0)>>>1)+((n[w>>1]|0)>>>1);n[g>>1]=((n[v>>1]|0)>>>1)+((n[b>>1]|0)>>>1);n[A>>1]=((n[h>>1]|0)>>>1)+((n[m>>1]|0)>>>1);n[u>>1]=((n[p>>1]|0)>>>1)+((n[f>>1]|0)>>>1);n[o>>1]=((n[l>>1]|0)>>>1)+((n[c>>1]|0)>>>1);dn(s,i+22|0,a);N=n[t>>1]|0;n[s>>1]=N-(N>>>2)+((n[e>>1]|0)>>>2);e=n[M>>1]|0;n[L>>1]=e-(e>>>2)+((n[D>>1]|0)>>>2);e=n[B>>1]|0;n[E>>1]=e-(e>>>2)+((n[O>>1]|0)>>>2);e=n[I>>1]|0;n[T>>1]=e-(e>>>2)+((n[S>>1]|0)>>>2);e=n[k>>1]|0;n[C>>1]=e-(e>>>2)+((n[x>>1]|0)>>>2);e=n[w>>1]|0;n[y>>1]=e-(e>>>2)+((n[_>>1]|0)>>>2);e=n[b>>1]|0;n[g>>1]=e-(e>>>2)+((n[v>>1]|0)>>>2);e=n[m>>1]|0;n[A>>1]=e-(e>>>2)+((n[h>>1]|0)>>>2);e=n[f>>1]|0;n[u>>1]=e-(e>>>2)+((n[p>>1]|0)>>>2);e=n[c>>1]|0;n[o>>1]=e-(e>>>2)+((n[l>>1]|0)>>>2);dn(s,i+44|0,a);dn(t,i+66|0,a);d=r;return}function rn(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var r=0,s=0,o=0,l=0,c=0,u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0,I=0,E=0,O=0,B=0,L=0,D=0,M=0,N=0;r=d;d=d+32|0;s=r;D=n[e>>1]|0;n[s>>1]=D-(D>>>2)+((n[t>>1]|0)>>>2);D=e+2|0;O=n[D>>1]|0;M=t+2|0;L=s+2|0;n[L>>1]=O-(O>>>2)+((n[M>>1]|0)>>>2);O=e+4|0;S=n[O>>1]|0;B=t+4|0;E=s+4|0;n[E>>1]=S-(S>>>2)+((n[B>>1]|0)>>>2);S=e+6|0;x=n[S>>1]|0;I=t+6|0;T=s+6|0;n[T>>1]=x-(x>>>2)+((n[I>>1]|0)>>>2);x=e+8|0;_=n[x>>1]|0;k=t+8|0;C=s+8|0;n[C>>1]=_-(_>>>2)+((n[k>>1]|0)>>>2);_=e+10|0;v=n[_>>1]|0;w=t+10|0;y=s+10|0;n[y>>1]=v-(v>>>2)+((n[w>>1]|0)>>>2);v=e+12|0;h=n[v>>1]|0;b=t+12|0;g=s+12|0;n[g>>1]=h-(h>>>2)+((n[b>>1]|0)>>>2);h=e+14|0;p=n[h>>1]|0;m=t+14|0;A=s+14|0;n[A>>1]=p-(p>>>2)+((n[m>>1]|0)>>>2);p=e+16|0;l=n[p>>1]|0;f=t+16|0;u=s+16|0;n[u>>1]=l-(l>>>2)+((n[f>>1]|0)>>>2);l=e+18|0;N=n[l>>1]|0;c=t+18|0;o=s+18|0;n[o>>1]=N-(N>>>2)+((n[c>>1]|0)>>>2);dn(s,i,a);n[s>>1]=((n[e>>1]|0)>>>1)+((n[t>>1]|0)>>>1);n[L>>1]=((n[D>>1]|0)>>>1)+((n[M>>1]|0)>>>1);n[E>>1]=((n[O>>1]|0)>>>1)+((n[B>>1]|0)>>>1);n[T>>1]=((n[S>>1]|0)>>>1)+((n[I>>1]|0)>>>1);n[C>>1]=((n[x>>1]|0)>>>1)+((n[k>>1]|0)>>>1);n[y>>1]=((n[_>>1]|0)>>>1)+((n[w>>1]|0)>>>1);n[g>>1]=((n[v>>1]|0)>>>1)+((n[b>>1]|0)>>>1);n[A>>1]=((n[h>>1]|0)>>>1)+((n[m>>1]|0)>>>1);n[u>>1]=((n[p>>1]|0)>>>1)+((n[f>>1]|0)>>>1);n[o>>1]=((n[l>>1]|0)>>>1)+((n[c>>1]|0)>>>1);dn(s,i+22|0,a);t=n[t>>1]|0;n[s>>1]=t-(t>>>2)+((n[e>>1]|0)>>>2);e=n[M>>1]|0;n[L>>1]=e-(e>>>2)+((n[D>>1]|0)>>>2);e=n[B>>1]|0;n[E>>1]=e-(e>>>2)+((n[O>>1]|0)>>>2);e=n[I>>1]|0;n[T>>1]=e-(e>>>2)+((n[S>>1]|0)>>>2);e=n[k>>1]|0;n[C>>1]=e-(e>>>2)+((n[x>>1]|0)>>>2);e=n[w>>1]|0;n[y>>1]=e-(e>>>2)+((n[_>>1]|0)>>>2);e=n[b>>1]|0;n[g>>1]=e-(e>>>2)+((n[v>>1]|0)>>>2);e=n[m>>1]|0;n[A>>1]=e-(e>>>2)+((n[h>>1]|0)>>>2);e=n[f>>1]|0;n[u>>1]=e-(e>>>2)+((n[p>>1]|0)>>>2);e=n[c>>1]|0;n[o>>1]=e-(e>>>2)+((n[l>>1]|0)>>>2);dn(s,i+44|0,a);d=r;return}function sn(e,t){e=e|0;t=t|0;var i=0,a=0;if((e|0)<1){t=1073741823;return t|0}i=(bn(e)|0)<<16>>16;t=30-i|0;e=e<<i>>(t&1^1);i=(e>>25<<16)+-1048576>>16;a=n[7030+(i<<1)>>1]|0;t=(a<<16)-(ee(a-(o[7030+(i+1<<1)>>1]|0)<<16>>15,e>>>10&32767)|0)>>(t<<16>>17)+1;return t|0}function on(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;a=bn(e)|0;ln(e<<(a<<16>>16),a,t,i);return}function ln(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;if((e|0)<1){n[i>>1]=0;i=0;n[a>>1]=i;return}else{n[i>>1]=30-(t&65535);i=(e>>25<<16)+-2097152>>16;t=n[7128+(i<<1)>>1]|0;i=((t<<16)-(ee(e>>>9&65534,t-(o[7128+(i+1<<1)>>1]|0)<<16>>16)|0)|0)>>>16&65535;n[a>>1]=i;return}}function cn(e,t,i){e=e|0;t=t|0;i=i|0;var a=0,r=0;a=e+2|0;i=n[a>>1]|0;n[t>>1]=i;r=e+4|0;n[t+2>>1]=(o[r>>1]|0)-(o[e>>1]|0);n[t+4>>1]=(o[e+6>>1]|0)-(o[a>>1]|0);a=e+8|0;n[t+6>>1]=(o[a>>1]|0)-(o[r>>1]|0);n[t+8>>1]=(o[e+10>>1]|0)-(o[e+6>>1]|0);r=e+12|0;n[t+10>>1]=(o[r>>1]|0)-(o[a>>1]|0);n[t+12>>1]=(o[e+14>>1]|0)-(o[e+10>>1]|0);n[t+14>>1]=(o[e+16>>1]|0)-(o[r>>1]|0);n[t+16>>1]=(o[e+18>>1]|0)-(o[e+14>>1]|0);n[t+18>>1]=16384-(o[e+16>>1]|0);e=10;r=t;while(1){i=i<<16>>16;t=(i<<16)+-120782848|0;if((t|0)>0)t=1843-((t>>16)*12484>>16)|0;else t=3427-((i*56320|0)>>>16)|0;a=r+2|0;n[r>>1]=t<<3;e=e+-1<<16>>16;if(!(e<<16>>16))break;i=n[a>>1]|0;r=a}return}function un(e,t,i){e=e|0;t=t|0;i=i|0;i=t<<16>>16;if(t<<16>>16>31){t=0;return t|0}if(t<<16>>16>0)return((1<<i+-1&e|0)!=0&1)+(t<<16>>16<31?e>>i:0)|0;i=0-i<<16>>16;t=e<<i;t=(t>>i|0)==(e|0)?t:e>>31^2147483647;return t|0}function dn(e,t,i){e=e|0;t=t|0;i=i|0;var a=0,s=0,o=0,l=0,c=0,u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0;v=d;d=d+48|0;m=v+24|0;g=v;A=m+4|0;r[m>>2]=16777216;a=0-(n[e>>1]|0)|0;h=m+8|0;r[A>>2]=a<<10;s=n[e+4>>1]|0;u=a>>6;r[h>>2]=33554432-(((ee((a<<9)-(u<<15)<<16>>16,s)|0)>>15)+(ee(u,s)|0)<<2);u=m+4|0;s=(r[u>>2]|0)-(s<<10)|0;r[u>>2]=s;u=m+12|0;a=m+4|0;r[u>>2]=s;i=n[e+8>>1]|0;o=s;p=1;while(1){c=u+-4|0;l=r[c>>2]|0;f=l>>16;r[u>>2]=o+s-(((ee((l>>>1)-(f<<15)<<16>>16,i)|0)>>15)+(ee(f,i)|0)<<2);if((p|0)==2)break;o=r[u+-12>>2]|0;u=c;s=l;p=p+1|0}r[a>>2]=(r[a>>2]|0)-(i<<10);i=m+16|0;a=r[m+8>>2]|0;r[i>>2]=a;c=n[e+12>>1]|0;s=a;u=1;while(1){l=i+-4|0;o=r[l>>2]|0;f=o>>16;r[i>>2]=s+a-(((ee((o>>>1)-(f<<15)<<16>>16,c)|0)>>15)+(ee(f,c)|0)<<2);if((u|0)==3)break;s=r[i+-12>>2]|0;i=l;a=o;u=u+1|0}i=m+4|0;r[i>>2]=(r[i>>2]|0)-(c<<10);i=m+20|0;s=r[m+12>>2]|0;r[i>>2]=s;a=n[e+16>>1]|0;o=s;u=1;while(1){c=i+-4|0;l=r[c>>2]|0;f=l>>16;r[i>>2]=o+s-(((ee((l>>>1)-(f<<15)<<16>>16,a)|0)>>15)+(ee(f,a)|0)<<2);if((u|0)==4)break;o=r[i+-12>>2]|0;i=c;s=l;u=u+1|0}u=m+4|0;r[u>>2]=(r[u>>2]|0)-(a<<10);r[g>>2]=16777216;u=0-(n[e+2>>1]|0)|0;f=g+8|0;r[g+4>>2]=u<<10;a=n[e+6>>1]|0;p=u>>6;r[f>>2]=33554432-(((ee((u<<9)-(p<<15)<<16>>16,a)|0)>>15)+(ee(p,a)|0)<<2);p=g+4|0;a=(r[p>>2]|0)-(a<<10)|0;r[p>>2]=a;p=g+12|0;u=g+4|0;r[p>>2]=a;c=n[e+10>>1]|0;s=a;i=1;while(1){l=p+-4|0;o=r[l>>2]|0;b=o>>16;r[p>>2]=s+a-(((ee((o>>>1)-(b<<15)<<16>>16,c)|0)>>15)+(ee(b,c)|0)<<2);if((i|0)==2)break;s=r[p+-12>>2]|0;p=l;a=o;i=i+1|0}r[u>>2]=(r[u>>2]|0)-(c<<10);u=g+16|0;a=r[g+8>>2]|0;r[u>>2]=a;c=n[e+14>>1]|0;s=a;i=1;while(1){l=u+-4|0;o=r[l>>2]|0;b=o>>16;r[u>>2]=s+a-(((ee((o>>>1)-(b<<15)<<16>>16,c)|0)>>15)+(ee(b,c)|0)<<2);if((i|0)==3)break;s=r[u+-12>>2]|0;u=l;a=o;i=i+1|0}i=g+4|0;r[i>>2]=(r[i>>2]|0)-(c<<10);i=g+20|0;c=r[g+12>>2]|0;r[i>>2]=c;a=n[e+18>>1]|0;l=c;u=1;while(1){s=i+-4|0;o=r[s>>2]|0;b=o>>16;r[i>>2]=l+c-(((ee((o>>>1)-(b<<15)<<16>>16,a)|0)>>15)+(ee(b,a)|0)<<2);if((u|0)==4)break;l=r[i+-12>>2]|0;i=s;c=o;u=u+1|0}l=(r[g+4>>2]|0)-(a<<10)|0;p=m+20|0;c=g+20|0;u=r[m+16>>2]|0;e=(r[p>>2]|0)+u|0;r[p>>2]=e;p=r[g+16>>2]|0;b=(r[c>>2]|0)-p|0;r[c>>2]=b;c=r[m+12>>2]|0;u=u+c|0;r[m+16>>2]=u;o=r[g+12>>2]|0;p=p-o|0;r[g+16>>2]=p;a=r[h>>2]|0;c=c+a|0;r[m+12>>2]=c;s=r[f>>2]|0;h=o-s|0;r[g+12>>2]=h;o=r[A>>2]|0;f=a+o|0;r[m+8>>2]=f;A=s-l|0;r[g+8>>2]=A;m=o+(r[m>>2]|0)|0;g=l-(r[g>>2]|0)|0;n[t>>1]=4096;m=m+4096|0;n[t+2>>1]=(m+g|0)>>>13;n[t+20>>1]=(m-g|0)>>>13;g=f+4096|0;n[t+4>>1]=(g+A|0)>>>13;n[t+18>>1]=(g-A|0)>>>13;g=c+4096|0;n[t+6>>1]=(g+h|0)>>>13;n[t+16>>1]=(g-h|0)>>>13;g=u+4096|0;n[t+8>>1]=(g+p|0)>>>13;n[t+14>>1]=(g-p|0)>>>13;g=e+4096|0;n[t+10>>1]=(g+b|0)>>>13;n[t+12>>1]=(g-b|0)>>>13;d=v;return}function pn(e){e=e|0;var t=0,i=0,a=0,s=0,o=0;if(!e){o=-1;return o|0}r[e>>2]=0;t=Fn(44)|0;if(!t){o=-1;return o|0}i=t+40|0;if((Sn(i)|0)<<16>>16){o=-1;return o|0}a=t;s=7452;o=a+20|0;do{n[a>>1]=n[s>>1]|0;a=a+2|0;s=s+2|0}while((a|0)<(o|0));a=t+20|0;s=7452;o=a+20|0;do{n[a>>1]=n[s>>1]|0;a=a+2|0;s=s+2|0}while((a|0)<(o|0));In(r[i>>2]|0)|0;r[e>>2]=t;o=0;return o|0}function fn(e){e=e|0;var t=0,i=0,a=0;if(!e){a=-1;return a|0}t=e;i=7452;a=t+20|0;do{n[t>>1]=n[i>>1]|0;t=t+2|0;i=i+2|0}while((t|0)<(a|0));t=e+20|0;i=7452;a=t+20|0;do{n[t>>1]=n[i>>1]|0;t=t+2|0;i=i+2|0}while((t|0)<(a|0));In(r[e+40>>2]|0)|0;a=0;return a|0}function An(e){e=e|0;var t=0;if(!e)return;t=r[e>>2]|0;if(!t)return;En(t+40|0);Rn(r[e>>2]|0);r[e>>2]=0;return}function hn(e,t,i,a,s,o,l,c){e=e|0;t=t|0;i=i|0;a=a|0;s=s|0;o=o|0;l=l|0;c=c|0;var u=0,p=0,f=0,A=0,h=0;h=d;d=d+64|0;A=h+44|0;u=h+24|0;p=h+4|0;f=h;if((t|0)==7){Va(a+22|0,u,e,c);Va(a+66|0,o,u,c);an(e,u,o,a,c);if((i|0)==8)a=6;else{kn(r[e+40>>2]|0,u,o,p,A,r[l>>2]|0,c);tn(e+20|0,p,A,s,c);s=(r[l>>2]|0)+10|0;a=7}}else{Va(a+66|0,o,e,c);rn(e,o,a,c);if((i|0)==8)a=6;else{Cn(r[e+40>>2]|0,t,o,A,r[l>>2]|0,f,c);nn(e+20|0,A,s,c);s=(r[l>>2]|0)+6|0;a=7}}if((a|0)==6){a=e;s=a+20|0;do{n[a>>1]=n[o>>1]|0;a=a+2|0;o=o+2|0}while((a|0)<(s|0));d=h;return}else if((a|0)==7){r[l>>2]=s;a=e;s=a+20|0;do{n[a>>1]=n[o>>1]|0;a=a+2|0;o=o+2|0}while((a|0)<(s|0));a=e+20|0;o=A;s=a+20|0;do{n[a>>1]=n[o>>1]|0;a=a+2|0;o=o+2|0}while((a|0)<(s|0));d=h;return}}function mn(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var r=0,s=0,o=0;if(i<<16>>16>0)a=0;else return;do{s=n[e+(a<<1)>>1]|0;o=s>>8;r=n[7194+(o<<1)>>1]|0;n[t+(a<<1)>>1]=((ee((n[7194+(o+1<<1)>>1]|0)-r|0,s&255)|0)>>>8)+r;a=a+1|0}while((a&65535)<<16>>16!=i<<16>>16);return}function gn(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var r=0,s=0,o=0;a=(i<<16>>16)+-1|0;i=a&65535;if(i<<16>>16<=-1)return;r=63;o=t+(a<<1)|0;s=e+(a<<1)|0;while(1){e=n[s>>1]|0;t=r;while(1){a=t<<16>>16;r=n[7194+(a<<1)>>1]|0;if(e<<16>>16>r<<16>>16)t=t+-1<<16>>16;else break}n[o>>1]=(((ee(n[7324+(a<<1)>>1]|0,(e<<16>>16)-(r<<16>>16)|0)|0)+2048|0)>>>12)+(a<<8);i=i+-1<<16>>16;if(i<<16>>16>-1){r=t;o=o+-2|0;s=s+-2|0}else break}return}function vn(e,t,i){e=e|0;t=t|0;i=i|0;e=(ee(t<<16>>16,e<<16>>16)|0)+16384>>15;e=e|0-(e&65536);if((e|0)<=32767){if((e|0)<-32768){r[i>>2]=1;e=-32768}}else{r[i>>2]=1;e=32767}return e&65535|0}function bn(e){e=e|0;var t=0;e:do{if((e|0)!=0?(t=e-(e>>>31)|0,t=t>>31^t,(t&1073741824|0)==0):0){e=t;t=0;while(1){if(e&536870912){e=7;break}if(e&268435456){e=8;break}if(e&134217728){e=9;break}t=t+4<<16>>16;e=e<<4;if(e&1073741824)break e}if((e|0)==7){t=t|1;break}else if((e|0)==8){t=t|2;break}else if((e|0)==9){t=t|3;break}}else t=0}while(0);return t|0}function yn(e){e=e|0;var t=0,i=0;if(!(e<<16>>16)){i=0;return i|0}t=(e&65535)-((e&65535)>>>15&65535)|0;t=(t<<16>>31^t)<<16;e=t>>16;if(!(e&16384)){i=t;t=0}else{i=0;return i|0}while(1){if(e&8192){e=t;i=7;break}if(e&4096){e=t;i=8;break}if(e&2048){e=t;i=9;break}t=t+4<<16>>16;i=i<<4;e=i>>16;if(e&16384){e=t;i=10;break}}if((i|0)==7){i=e|1;return i|0}else if((i|0)==8){i=e|2;return i|0}else if((i|0)==9){i=e|3;return i|0}else if((i|0)==10)return e|0;return 0}function _n(e,t,i){e=e|0;t=t|0;i=i|0;var a=0,s=0,l=0;t=t<<16>>16;if((t&134217727|0)==33554432){r[i>>2]=1;t=2147483647}else t=t<<6;a=t>>>16&31;l=n[7792+(a<<1)>>1]|0;s=l<<16;t=ee(l-(o[7792+(a+1<<1)>>1]|0)<<16>>16,t>>>1&32767)|0;if((t|0)==1073741824){r[i>>2]=1;a=2147483647}else a=t<<1;t=s-a|0;if(((t^s)&(a^s)|0)>=0){l=t;e=e&65535;e=30-e|0;e=e&65535;i=un(l,e,i)|0;return i|0}r[i>>2]=1;l=(l>>>15&1)+2147483647|0;e=e&65535;e=30-e|0;e=e&65535;i=un(l,e,i)|0;return i|0}function wn(e,t,i,a,r,s){e=e|0;t=t|0;i=i|0;a=a|0;r=r|0;s=s|0;var o=0,l=0,c=0,u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0;A=d;d=d+48|0;f=A;p=0-(i&65535)|0;p=r<<16>>16==0?p:p<<1&131070;i=p&65535;p=(i<<16>>16<0?p+6|0:p)<<16>>16;s=6-p|0;n[f>>1]=n[7858+(p<<1)>>1]|0;n[f+2>>1]=n[7858+(s<<1)>>1]|0;n[f+4>>1]=n[7858+(p+6<<1)>>1]|0;n[f+6>>1]=n[7858+(s+6<<1)>>1]|0;n[f+8>>1]=n[7858+(p+12<<1)>>1]|0;n[f+10>>1]=n[7858+(s+12<<1)>>1]|0;n[f+12>>1]=n[7858+(p+18<<1)>>1]|0;n[f+14>>1]=n[7858+(s+18<<1)>>1]|0;n[f+16>>1]=n[7858+(p+24<<1)>>1]|0;n[f+18>>1]=n[7858+(s+24<<1)>>1]|0;n[f+20>>1]=n[7858+(p+30<<1)>>1]|0;n[f+22>>1]=n[7858+(s+30<<1)>>1]|0;n[f+24>>1]=n[7858+(p+36<<1)>>1]|0;n[f+26>>1]=n[7858+(s+36<<1)>>1]|0;n[f+28>>1]=n[7858+(p+42<<1)>>1]|0;n[f+30>>1]=n[7858+(s+42<<1)>>1]|0;n[f+32>>1]=n[7858+(p+48<<1)>>1]|0;n[f+34>>1]=n[7858+(s+48<<1)>>1]|0;n[f+36>>1]=n[7858+(p+54<<1)>>1]|0;n[f+38>>1]=n[7858+(s+54<<1)>>1]|0;s=a<<16>>16>>>1&65535;if(!(s<<16>>16)){d=A;return}p=e+((i<<16>>16>>15<<16>>16)-(t<<16>>16)<<1)|0;while(1){u=p+2|0;o=n[u>>1]|0;t=o;a=p;l=5;c=f;r=16384;i=16384;while(1){m=n[c>>1]|0;g=(ee(m,t<<16>>16)|0)+i|0;h=n[u+-2>>1]|0;i=(ee(h,m)|0)+r|0;m=a;a=a+4|0;v=n[c+2>>1]|0;i=i+(ee(v,o<<16>>16)|0)|0;r=n[a>>1]|0;v=g+(ee(r,v)|0)|0;u=u+-4|0;g=n[c+4>>1]|0;h=v+(ee(g,h)|0)|0;t=n[u>>1]|0;g=i+(ee(t<<16>>16,g)|0)|0;i=n[c+6>>1]|0;r=g+(ee(i,r)|0)|0;o=n[m+6>>1]|0;i=h+(ee(o<<16>>16,i)|0)|0;if(l<<16>>16<=1)break;else{l=l+-1<<16>>16;c=c+8|0}}n[e>>1]=r>>>15;n[e+2>>1]=i>>>15;s=s+-1<<16>>16;if(!(s<<16>>16))break;else{p=p+4|0;e=e+4|0}}d=A;return}function Cn(e,t,i,a,r,s,l){e=e|0;t=t|0;i=i|0;a=a|0;r=r|0;s=s|0;l=l|0;var c=0,u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0,I=0;I=d;d=d+144|0;b=I+120|0;x=I+100|0;T=I+80|0;S=I+60|0;k=I+40|0;m=I+20|0;g=I;gn(i,b,10,l);cn(b,x,l);if((t|0)==8){n[s>>1]=0;u=2147483647;v=0;while(1){f=v*10|0;i=0;p=0;do{C=(o[7980+(p+f<<1)>>1]|0)+(o[8140+(p<<1)>>1]|0)|0;n[g+(p<<1)>>1]=C;C=(o[b+(p<<1)>>1]|0)-(C&65535)|0;n[m+(p<<1)>>1]=C;C=C<<16;i=(ee(C>>15,C>>16)|0)+i|0;p=p+1|0}while((p|0)!=10);if((i|0)<(u|0)){y=S;h=m;A=y+20|0;do{n[y>>1]=n[h>>1]|0;y=y+2|0;h=h+2|0}while((y|0)<(A|0));y=T;h=g;A=y+20|0;do{n[y>>1]=n[h>>1]|0;y=y+2|0;h=h+2|0}while((y|0)<(A|0));y=e;h=7980+(f<<1)|0;A=y+20|0;do{n[y>>1]=n[h>>1]|0;y=y+2|0;h=h+2|0}while((y|0)<(A|0));n[s>>1]=v}else i=u;v=v+1|0;if((v|0)==8)break;else u=i}}else{i=0;do{C=ee(n[8160+(i<<1)>>1]|0,n[e+(i<<1)>>1]|0)|0;C=(C>>>15)+(o[8140+(i<<1)>>1]|0)|0;n[T+(i<<1)>>1]=C;n[S+(i<<1)>>1]=(o[b+(i<<1)>>1]|0)-C;i=i+1|0}while((i|0)!=10)}do{if(t>>>0>=2){C=S+2|0;w=S+4|0;_=o[S>>1]|0;y=n[x>>1]<<1;b=o[C>>1]|0;m=n[x+2>>1]<<1;h=o[w>>1]|0;A=n[x+4>>1]<<1;if((t|0)==5){g=2147483647;s=0;i=0;v=17908;while(1){p=(ee(_-(o[v>>1]|0)<<16>>16,y)|0)>>16;p=ee(p,p)|0;f=(ee(b-(o[v+2>>1]|0)<<16>>16,m)|0)>>16;p=(ee(f,f)|0)+p|0;f=(ee(h-(o[v+4>>1]|0)<<16>>16,A)|0)>>16;f=p+(ee(f,f)|0)|0;p=(f|0)<(g|0);i=p?s:i;s=s+1<<16>>16;if(s<<16>>16>=512)break;else{g=p?f:g;v=v+6|0}}f=(i<<16>>16)*3|0;n[S>>1]=n[17908+(f<<1)>>1]|0;n[C>>1]=n[17908+(f+1<<1)>>1]|0;n[w>>1]=n[17908+(f+2<<1)>>1]|0;n[r>>1]=i;f=S+6|0;p=S+8|0;_=S+10|0;v=o[f>>1]|0;s=n[x+6>>1]<<1;g=o[p>>1]|0;m=n[x+8>>1]<<1;h=o[_>>1]|0;A=n[x+10>>1]<<1;c=2147483647;b=0;i=0;y=9716;while(1){u=(ee(s,v-(o[y>>1]|0)<<16>>16)|0)>>16;u=ee(u,u)|0;t=(ee(m,g-(o[y+2>>1]|0)<<16>>16)|0)>>16;u=(ee(t,t)|0)+u|0;t=(ee(A,h-(o[y+4>>1]|0)<<16>>16)|0)>>16;t=u+(ee(t,t)|0)|0;u=(t|0)<(c|0);i=u?b:i;b=b+1<<16>>16;if(b<<16>>16>=512)break;else{c=u?t:c;y=y+6|0}}c=(i<<16>>16)*3|0;n[f>>1]=n[9716+(c<<1)>>1]|0;n[p>>1]=n[9716+(c+1<<1)>>1]|0;n[_>>1]=n[9716+(c+2<<1)>>1]|0;n[r+2>>1]=i;c=S+12|0;n[r+4>>1]=xn(c,12788,x+12|0,512)|0;b=C;v=w;i=_;u=S;break}else{g=2147483647;s=0;i=0;v=8180;while(1){p=(ee(_-(o[v>>1]|0)<<16>>16,y)|0)>>16;p=ee(p,p)|0;f=(ee(b-(o[v+2>>1]|0)<<16>>16,m)|0)>>16;p=(ee(f,f)|0)+p|0;f=(ee(h-(o[v+4>>1]|0)<<16>>16,A)|0)>>16;f=p+(ee(f,f)|0)|0;p=(f|0)<(g|0);i=p?s:i;s=s+1<<16>>16;if(s<<16>>16>=256)break;else{g=p?f:g;v=v+6|0}}f=(i<<16>>16)*3|0;n[S>>1]=n[8180+(f<<1)>>1]|0;n[C>>1]=n[8180+(f+1<<1)>>1]|0;n[w>>1]=n[8180+(f+2<<1)>>1]|0;n[r>>1]=i;f=S+6|0;p=S+8|0;_=S+10|0;v=o[f>>1]|0;s=n[x+6>>1]<<1;g=o[p>>1]|0;m=n[x+8>>1]<<1;h=o[_>>1]|0;A=n[x+10>>1]<<1;c=2147483647;b=0;i=0;y=9716;while(1){u=(ee(s,v-(o[y>>1]|0)<<16>>16)|0)>>16;u=ee(u,u)|0;t=(ee(m,g-(o[y+2>>1]|0)<<16>>16)|0)>>16;u=(ee(t,t)|0)+u|0;t=(ee(A,h-(o[y+4>>1]|0)<<16>>16)|0)>>16;t=u+(ee(t,t)|0)|0;u=(t|0)<(c|0);i=u?b:i;b=b+1<<16>>16;if(b<<16>>16>=512)break;else{c=u?t:c;y=y+6|0}}c=(i<<16>>16)*3|0;n[f>>1]=n[9716+(c<<1)>>1]|0;n[p>>1]=n[9716+(c+1<<1)>>1]|0;n[_>>1]=n[9716+(c+2<<1)>>1]|0;n[r+2>>1]=i;c=S+12|0;n[r+4>>1]=xn(c,12788,x+12|0,512)|0;b=C;v=w;i=_;u=S;break}}else{w=S+2|0;C=S+4|0;f=o[S>>1]|0;p=n[x>>1]<<1;u=o[w>>1]|0;c=n[x+2>>1]<<1;t=o[C>>1]|0;A=n[x+4>>1]<<1;g=2147483647;s=0;i=0;v=8180;while(1){m=(ee(p,f-(o[v>>1]|0)<<16>>16)|0)>>16;m=ee(m,m)|0;h=(ee(c,u-(o[v+2>>1]|0)<<16>>16)|0)>>16;m=(ee(h,h)|0)+m|0;h=(ee(A,t-(o[v+4>>1]|0)<<16>>16)|0)>>16;h=m+(ee(h,h)|0)|0;m=(h|0)<(g|0);i=m?s:i;s=s+1<<16>>16;if(s<<16>>16>=256)break;else{g=m?h:g;v=v+6|0}}f=(i<<16>>16)*3|0;n[S>>1]=n[8180+(f<<1)>>1]|0;n[w>>1]=n[8180+(f+1<<1)>>1]|0;n[C>>1]=n[8180+(f+2<<1)>>1]|0;n[r>>1]=i;f=S+6|0;p=S+8|0;_=S+10|0;v=o[f>>1]|0;s=n[x+6>>1]<<1;g=o[p>>1]|0;m=n[x+8>>1]<<1;h=o[_>>1]|0;A=n[x+10>>1]<<1;c=2147483647;b=0;i=0;y=9716;while(1){u=(ee(s,v-(o[y>>1]|0)<<16>>16)|0)>>16;u=ee(u,u)|0;t=(ee(m,g-(o[y+2>>1]|0)<<16>>16)|0)>>16;u=(ee(t,t)|0)+u|0;t=(ee(A,h-(o[y+4>>1]|0)<<16>>16)|0)>>16;t=u+(ee(t,t)|0)|0;u=(t|0)<(c|0);i=u?b:i;b=b+1<<16>>16;if(b<<16>>16>=256)break;else{c=u?t:c;y=y+12|0}}c=(i<<16>>16)*6|0;n[f>>1]=n[9716+(c<<1)>>1]|0;n[p>>1]=n[9716+((c|1)<<1)>>1]|0;n[_>>1]=n[9716+(c+2<<1)>>1]|0;n[r+2>>1]=i;c=S+12|0;n[r+4>>1]=xn(c,16884,x+12|0,128)|0;b=w;v=C;i=_;u=S}}while(0);y=e;h=S;A=y+20|0;do{n[y>>1]=n[h>>1]|0;y=y+2|0;h=h+2|0}while((y|0)<(A|0));n[k>>1]=(o[T>>1]|0)+(o[u>>1]|0);n[k+2>>1]=(o[T+2>>1]|0)+(o[b>>1]|0);n[k+4>>1]=(o[T+4>>1]|0)+(o[v>>1]|0);n[k+6>>1]=(o[T+6>>1]|0)+(o[f>>1]|0);n[k+8>>1]=(o[T+8>>1]|0)+(o[p>>1]|0);n[k+10>>1]=(o[T+10>>1]|0)+(o[i>>1]|0);n[k+12>>1]=(o[T+12>>1]|0)+(o[c>>1]|0);n[k+14>>1]=(o[T+14>>1]|0)+(o[S+14>>1]|0);n[k+16>>1]=(o[T+16>>1]|0)+(o[S+16>>1]|0);n[k+18>>1]=(o[T+18>>1]|0)+(o[S+18>>1]|0);On(k,205,10,l);mn(k,a,10,l);d=I;return}function xn(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var r=0,s=0,l=0,c=0,u=0,d=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0;b=e+2|0;y=e+4|0;_=e+6|0;if(a<<16>>16>0){p=o[e>>1]|0;f=n[i>>1]<<1;A=o[b>>1]|0;h=n[i+2>>1]<<1;m=o[y>>1]|0;g=n[i+4>>1]<<1;v=o[_>>1]|0;r=n[i+6>>1]<<1;c=2147483647;u=0;i=0;d=t;while(1){s=(ee(f,p-(o[d>>1]|0)<<16>>16)|0)>>16;s=ee(s,s)|0;l=(ee(h,A-(o[d+2>>1]|0)<<16>>16)|0)>>16;s=(ee(l,l)|0)+s|0;l=(ee(g,m-(o[d+4>>1]|0)<<16>>16)|0)>>16;l=s+(ee(l,l)|0)|0;s=(ee(r,v-(o[d+6>>1]|0)<<16>>16)|0)>>16;s=l+(ee(s,s)|0)|0;l=(s|0)<(c|0);i=l?u:i;u=u+1<<16>>16;if(u<<16>>16>=a<<16>>16)break;else{c=l?s:c;d=d+8|0}}}else i=0;a=i<<16>>16<<2;v=a|1;n[e>>1]=n[t+(a<<1)>>1]|0;n[b>>1]=n[t+(v<<1)>>1]|0;n[y>>1]=n[t+(v+1<<1)>>1]|0;n[_>>1]=n[t+((a|3)<<1)>>1]|0;return i|0}function kn(e,t,i,a,r,s,l){e=e|0;t=t|0;i=i|0;a=a|0;r=r|0;s=s|0;l=l|0;var c=0,u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0,I=0,E=0,O=0,B=0,L=0,D=0,M=0,N=0,j=0;M=d;d=d+192|0;p=M+160|0;u=M+140|0;I=M+120|0;E=M+100|0;O=M+80|0;B=M+60|0;c=M+40|0;L=M+20|0;D=M;gn(t,p,10,l);gn(i,u,10,l);cn(p,I,l);cn(u,E,l);f=0;i=O;t=B;A=c;while(1){S=(((n[e+(f<<1)>>1]|0)*21299|0)>>>15)+(o[20980+(f<<1)>>1]|0)|0;n[i>>1]=S;n[t>>1]=(o[p>>1]|0)-S;n[A>>1]=(o[u>>1]|0)-S;f=f+1|0;if((f|0)==10)break;else{p=p+2|0;u=u+2|0;i=i+2|0;t=t+2|0;A=A+2|0}}n[s>>1]=Tn(B,c,21e3,n[I>>1]|0,n[I+2>>1]|0,n[E>>1]|0,n[E+2>>1]|0,128)|0;n[s+2>>1]=Tn(B+4|0,c+4|0,22024,n[I+4>>1]|0,n[I+6>>1]|0,n[E+4>>1]|0,n[E+6>>1]|0,256)|0;x=B+8|0;k=c+8|0;T=B+10|0;S=c+10|0;i=n[x>>1]|0;h=n[I+8>>1]<<1;m=n[T>>1]|0;g=n[I+10>>1]<<1;v=n[k>>1]|0;b=n[E+8>>1]<<1;y=n[S>>1]|0;_=n[E+10>>1]<<1;u=2147483647;w=0;A=0;C=24072;t=0;while(1){p=n[C>>1]|0;f=(ee(i-p<<16>>16,h)|0)>>16;f=ee(f,f)|0;p=(ee(p+i<<16>>16,h)|0)>>16;p=ee(p,p)|0;N=n[C+2>>1]|0;j=(ee(m-N<<16>>16,g)|0)>>16;f=(ee(j,j)|0)+f|0;N=(ee(N+m<<16>>16,g)|0)>>16;p=(ee(N,N)|0)+p|0;if((f|0)<(u|0)|(p|0)<(u|0)){j=n[C+4>>1]|0;N=(ee(v-j<<16>>16,b)|0)>>16;N=(ee(N,N)|0)+f|0;j=(ee(j+v<<16>>16,b)|0)>>16;j=(ee(j,j)|0)+p|0;p=n[C+6>>1]|0;f=(ee(y-p<<16>>16,_)|0)>>16;f=N+(ee(f,f)|0)|0;p=(ee(p+y<<16>>16,_)|0)>>16;p=j+(ee(p,p)|0)|0;j=(f|0)<(u|0);f=j?f:u;N=(p|0)<(f|0);f=N?p:f;A=j|N?w:A;t=N?1:j?0:t}else f=u;w=w+1<<16>>16;if(w<<16>>16>=256)break;else{u=f;C=C+8|0}}f=A<<16>>16;p=f<<2;A=p|1;u=24072+(A<<1)|0;i=n[24072+(p<<1)>>1]|0;if(!(t<<16>>16)){n[x>>1]=i;n[T>>1]=n[u>>1]|0;n[k>>1]=n[24072+(A+1<<1)>>1]|0;n[S>>1]=n[24072+((p|3)<<1)>>1]|0;t=f<<1}else{n[x>>1]=0-(i&65535);n[T>>1]=0-(o[u>>1]|0);n[k>>1]=0-(o[24072+(A+1<<1)>>1]|0);n[S>>1]=0-(o[24072+((p|3)<<1)>>1]|0);t=f<<1&65534|1}n[s+4>>1]=t;n[s+6>>1]=Tn(B+12|0,c+12|0,26120,n[I+12>>1]|0,n[I+14>>1]|0,n[E+12>>1]|0,n[E+14>>1]|0,256)|0;n[s+8>>1]=Tn(B+16|0,c+16|0,28168,n[I+16>>1]|0,n[I+18>>1]|0,n[E+16>>1]|0,n[E+18>>1]|0,64)|0;u=0;p=L;f=D;i=O;t=B;while(1){N=o[i>>1]|0;n[p>>1]=N+(o[t>>1]|0);j=n[c>>1]|0;n[f>>1]=N+(j&65535);n[e+(u<<1)>>1]=j;u=u+1|0;if((u|0)==10)break;else{p=p+2|0;f=f+2|0;i=i+2|0;t=t+2|0;c=c+2|0}}On(L,205,10,l);On(D,205,10,l);mn(L,a,10,l);mn(D,r,10,l);d=M;return}function Tn(e,t,i,a,r,s,o,l){e=e|0;t=t|0;i=i|0;a=a|0;r=r|0;s=s|0;o=o|0;l=l|0;var c=0,u=0,d=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0;A=n[e>>1]|0;y=e+2|0;m=n[y>>1]|0;v=n[t>>1]|0;_=t+2|0;b=n[_>>1]|0;if(l<<16>>16>0){f=a<<16>>16<<1;p=r<<16>>16<<1;d=s<<16>>16<<1;r=o<<16>>16<<1;s=2147483647;c=0;a=0;u=i;while(1){o=(ee(f,A-(n[u>>1]|0)|0)|0)>>16;o=ee(o,o)|0;if(((o|0)<(s|0)?(h=(ee(p,m-(n[u+2>>1]|0)|0)|0)>>16,h=(ee(h,h)|0)+o|0,(h|0)<(s|0)):0)?(g=(ee(d,v-(n[u+4>>1]|0)|0)|0)>>16,g=(ee(g,g)|0)+h|0,(g|0)<(s|0)):0){o=(ee(r,b-(n[u+6>>1]|0)|0)|0)>>16;o=(ee(o,o)|0)+g|0;w=(o|0)<(s|0);o=w?o:s;a=w?c:a}else o=s;c=c+1<<16>>16;if(c<<16>>16>=l<<16>>16)break;else{s=o;u=u+8|0}}}else a=0;w=a<<16>>16<<2;l=w|1;n[e>>1]=n[i+(w<<1)>>1]|0;n[y>>1]=n[i+(l<<1)>>1]|0;n[t>>1]=n[i+(l+1<<1)>>1]|0;n[_>>1]=n[i+((w|3)<<1)>>1]|0;return a|0}function Sn(e){e=e|0;var t=0,i=0,a=0;if(!e){a=-1;return a|0}r[e>>2]=0;t=Fn(20)|0;if(!t){a=-1;return a|0}i=t;a=i+20|0;do{n[i>>1]=0;i=i+2|0}while((i|0)<(a|0));r[e>>2]=t;a=0;return a|0}function In(e){e=e|0;var t=0;if(!e){t=-1;return t|0}t=e+20|0;do{n[e>>1]=0;e=e+2|0}while((e|0)<(t|0));t=0;return t|0}function En(e){e=e|0;var t=0;if(!e)return;t=r[e>>2]|0;if(!t)return;Rn(t);r[e>>2]=0;return}function On(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var r=0,s=0,o=0;if(i<<16>>16<=0)return;r=t<<16>>16;s=t&65535;o=0;while(1){a=n[e>>1]|0;if(a<<16>>16<t<<16>>16){n[e>>1]=t;a=(t<<16>>16)+r|0}else a=(a&65535)+s|0;o=o+1<<16>>16;if(o<<16>>16>=i<<16>>16)break;else{t=a&65535;e=e+2|0}}return}function Bn(e,t,i,a){e=e|0;t=t|0;i=i|0;a=a|0;var r=0,s=0,o=0,l=0,c=0,u=0,d=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0;r=a<<16>>16;a=r>>>2&65535;if(!(a<<16>>16))return;f=r+-1|0;b=e+20|0;h=t+(r+-4<<1)|0;m=t+(r+-3<<1)|0;g=t+(r+-2<<1)|0;v=t+(f<<1)|0;A=t+(r+-11<<1)|0;f=i+(f<<1)|0;while(1){t=n[b>>1]|0;o=5;l=b;c=A;u=A+-2|0;d=A+-4|0;p=A+-6|0;s=2048;e=2048;r=2048;i=2048;while(1){s=(ee(n[c>>1]|0,t)|0)+s|0;e=(ee(n[u>>1]|0,t)|0)+e|0;r=(ee(n[d>>1]|0,t)|0)+r|0;t=(ee(n[p>>1]|0,t)|0)+i|0;i=n[l+-2>>1]|0;s=s+(ee(n[c+2>>1]|0,i)|0)|0;e=e+(ee(n[u+2>>1]|0,i)|0)|0;r=r+(ee(n[d+2>>1]|0,i)|0)|0;l=l+-4|0;i=t+(ee(n[p+2>>1]|0,i)|0)|0;o=o+-1<<16>>16;t=n[l>>1]|0;if(!(o<<16>>16))break;else{c=c+4|0;u=u+4|0;d=d+4|0;p=p+4|0}}c=(ee(n[v>>1]|0,t)|0)+s|0;u=(ee(n[g>>1]|0,t)|0)+e|0;d=(ee(n[m>>1]|0,t)|0)+r|0;p=(ee(n[h>>1]|0,t)|0)+i|0;n[f>>1]=c>>>12;n[f+-2>>1]=u>>>12;n[f+-4>>1]=d>>>12;n[f+-6>>1]=p>>>12;a=a+-1<<16>>16;if(!(a<<16>>16))break;else{h=h+-8|0;m=m+-8|0;g=g+-8|0;v=v+-8|0;A=A+-8|0;f=f+-8|0}}return}function Ln(e,t){e=e|0;t=t|0;var i=0;i=e+32768|0;if((e|0)>-1&(i^e|0)<0){r[t>>2]=1;i=(e>>>31)+2147483647|0}return i>>>16&65535|0}function Dn(e,t,i){e=e|0;t=t|0;i=i|0;var a=0,n=0;a=t<<16>>16;if(!(t<<16>>16))return e|0;if(t<<16>>16>0){e=e<<16>>16>>(t<<16>>16>15?15:a)&65535;return e|0}n=0-a|0;t=e<<16>>16;n=(n&65535)<<16>>16>15?15:n<<16>>16;a=t<<n;if((a<<16>>16>>n|0)==(t|0)){n=a&65535;return n|0}r[i>>2]=1;n=e<<16>>16>0?32767:-32768;return n|0}function Mn(e,t,i){e=e|0;t=t|0;i=i|0;if(t<<16>>16>15){t=0;return t|0}i=Dn(e,t,i)|0;if(t<<16>>16>0)return i+((1<<(t<<16>>16)+-1&e<<16>>16|0)!=0&1)<<16>>16|0;else{t=i;return t|0}return 0}function Nn(e,t,i){e=e|0;t=t|0;i=i|0;var a=0,s=0,l=0;if((e|0)<1){n[t>>1]=0;i=0;return i|0}s=(bn(e)|0)&65534;l=s&65535;s=s<<16>>16;if(l<<16>>16>0){a=e<<s;if((a>>s|0)!=(e|0))a=e>>31^2147483647}else{s=0-s<<16;if((s|0)<2031616)a=e>>(s>>16);else a=0}n[t>>1]=l;t=a>>>25&63;t=t>>>0>15?t+-16|0:t;l=n[30216+(t<<1)>>1]|0;e=l<<16;a=ee(l-(o[30216+(t+1<<1)>>1]|0)<<16>>16,a>>>10&32767)|0;if((a|0)==1073741824){r[i>>2]=1;s=2147483647}else s=a<<1;a=e-s|0;if(((a^e)&(s^e)|0)>=0){i=a;return i|0}r[i>>2]=1;i=(l>>>15&1)+2147483647|0;return i|0}function jn(e,t,i){e=e|0;t=t|0;i=i|0;e=(e<<16>>16)-(t<<16>>16)|0;if((e+32768|0)>>>0<=65535){i=e;i=i&65535;return i|0}r[i>>2]=1;i=(e|0)>32767?32767:-32768;i=i&65535;return i|0}function Pn(e,t,i,a,r,s){e=e|0;t=t|0;i=i|0;a=a|0;r=r|0;s=s|0;var o=0,l=0,c=0,u=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0,I=0,E=0;T=d;d=d+48|0;A=T;c=A;o=r;l=c+20|0;do{n[c>>1]=n[o>>1]|0;c=c+2|0;o=o+2|0}while((c|0)<(l|0));f=A+18|0;v=e+2|0;b=e+4|0;h=t+20|0;y=e+6|0;_=e+8|0;w=e+10|0;C=e+12|0;x=e+14|0;k=e+16|0;m=e+18|0;g=e+20|0;l=n[f>>1]|0;o=5;u=t;p=i;c=A+20|0;while(1){E=n[e>>1]|0;I=(ee(E,n[u>>1]|0)|0)+2048|0;E=(ee(n[u+2>>1]|0,E)|0)+2048|0;A=l<<16>>16;I=I-(ee(A,n[v>>1]|0)|0)|0;S=n[b>>1]|0;A=E-(ee(A,S)|0)|0;E=n[f+-2>>1]|0;S=I-(ee(E,S)|0)|0;I=n[y>>1]|0;E=A-(ee(I,E)|0)|0;A=n[f+-4>>1]|0;I=S-(ee(A,I)|0)|0;S=n[_>>1]|0;A=E-(ee(S,A)|0)|0;E=n[f+-6>>1]|0;S=I-(ee(E,S)|0)|0;I=n[w>>1]|0;E=A-(ee(E,I)|0)|0;A=n[f+-8>>1]|0;I=S-(ee(A,I)|0)|0;S=n[C>>1]|0;A=E-(ee(S,A)|0)|0;E=n[f+-10>>1]|0;S=I-(ee(E,S)|0)|0;I=n[x>>1]|0;E=A-(ee(I,E)|0)|0;A=n[f+-12>>1]|0;I=S-(ee(A,I)|0)|0;S=n[k>>1]|0;A=E-(ee(A,S)|0)|0;E=n[f+-14>>1]|0;S=I-(ee(E,S)|0)|0;I=n[m>>1]|0;E=A-(ee(I,E)|0)|0;A=n[f+-16>>1]|0;I=S-(ee(A,I)|0)|0;S=n[g>>1]|0;A=E-(ee(S,A)|0)|0;S=I-(ee(n[f+-18>>1]|0,S)|0)|0;S=(S+134217728|0)>>>0<268435455?S>>>12&65535:(S|0)>134217727?32767:-32768;A=A-(ee(n[v>>1]|0,S<<16>>16)|0)|0;f=c+2|0;n[c>>1]=S;n[p>>1]=S;l=(A+134217728|0)>>>0<268435455?A>>>12&65535:(A|0)>134217727?32767:-32768;n[f>>1]=l;n[p+2>>1]=l;o=o+-1<<16>>16;if(!(o<<16>>16))break;else{u=u+4|0;p=p+4|0;c=c+4|0}}a=(a<<16>>16)+-10|0;c=a>>>1&65535;if(c<<16>>16){A=i+18|0;l=t+16|0;f=n[A>>1]|0;u=h;o=i+20|0;while(1){S=n[e>>1]|0;p=(ee(S,n[u>>1]|0)|0)+2048|0;S=(ee(n[l+6>>1]|0,S)|0)+2048|0;l=n[v>>1]|0;I=f<<16>>16;p=p-(ee(I,l)|0)|0;E=n[b>>1]|0;I=S-(ee(I,E)|0)|0;S=n[A+-2>>1]|0;E=p-(ee(S,E)|0)|0;p=n[y>>1]|0;S=I-(ee(p,S)|0)|0;I=n[A+-4>>1]|0;p=E-(ee(I,p)|0)|0;E=n[_>>1]|0;I=S-(ee(E,I)|0)|0;S=n[A+-6>>1]|0;E=p-(ee(S,E)|0)|0;p=n[w>>1]|0;S=I-(ee(S,p)|0)|0;I=n[A+-8>>1]|0;p=E-(ee(I,p)|0)|0;E=n[C>>1]|0;I=S-(ee(E,I)|0)|0;S=n[A+-10>>1]|0;E=p-(ee(S,E)|0)|0;p=n[x>>1]|0;S=I-(ee(p,S)|0)|0;I=n[A+-12>>1]|0;p=E-(ee(I,p)|0)|0;E=n[k>>1]|0;I=S-(ee(I,E)|0)|0;S=n[A+-14>>1]|0;E=p-(ee(S,E)|0)|0;p=n[m>>1]|0;S=I-(ee(p,S)|0)|0;I=n[A+-16>>1]|0;p=E-(ee(I,p)|0)|0;E=n[g>>1]|0;I=S-(ee(E,I)|0)|0;E=p-(ee(n[A+-18>>1]|0,E)|0)|0;p=u+4|0;E=(E+134217728|0)>>>0<268435455?E>>>12&65535:(E|0)>134217727?32767:-32768;l=I-(ee(l,E<<16>>16)|0)|0;A=o+2|0;n[o>>1]=E;do{if((l+134217728|0)>>>0>=268435455){o=o+4|0;if((l|0)>134217727){n[A>>1]=32767;l=32767;break}else{n[A>>1]=-32768;l=-32768;break}}else{l=l>>>12&65535;n[A>>1]=l;o=o+4|0}}while(0);c=c+-1<<16>>16;if(!(c<<16>>16))break;else{E=u;f=l;u=p;l=E}}}if(!(s<<16>>16)){d=T;return}c=r;o=i+(a<<1)|0;l=c+20|0;do{n[c>>1]=n[o>>1]|0;c=c+2|0;o=o+2|0}while((c|0)<(l|0));d=T;return}function Un(e,t,i){e=e|0;t=t|0;i=i|0;n[i>>1]=n[e>>1]|0;n[i+2>>1]=((ee(n[t>>1]|0,n[e+2>>1]|0)|0)+16384|0)>>>15;n[i+4>>1]=((ee(n[t+2>>1]|0,n[e+4>>1]|0)|0)+16384|0)>>>15;n[i+6>>1]=((ee(n[t+4>>1]|0,n[e+6>>1]|0)|0)+16384|0)>>>15;n[i+8>>1]=((ee(n[t+6>>1]|0,n[e+8>>1]|0)|0)+16384|0)>>>15;n[i+10>>1]=((ee(n[t+8>>1]|0,n[e+10>>1]|0)|0)+16384|0)>>>15;n[i+12>>1]=((ee(n[t+10>>1]|0,n[e+12>>1]|0)|0)+16384|0)>>>15;n[i+14>>1]=((ee(n[t+12>>1]|0,n[e+14>>1]|0)|0)+16384|0)>>>15;n[i+16>>1]=((ee(n[t+14>>1]|0,n[e+16>>1]|0)|0)+16384|0)>>>15;n[i+18>>1]=((ee(n[t+16>>1]|0,n[e+18>>1]|0)|0)+16384|0)>>>15;n[i+20>>1]=((ee(n[t+18>>1]|0,n[e+20>>1]|0)|0)+16384|0)>>>15;return}function Fn(e){e=e|0;var t=0,i=0,a=0,n=0,s=0,o=0,l=0,c=0,u=0,d=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0,I=0,E=0,O=0,B=0,L=0,D=0,M=0,N=0,j=0,P=0,U=0,F=0,R=0,Q=0,H=0,z=0,q=0,G=0,$=0,V=0;do{if(e>>>0<245){v=e>>>0<11?16:e+11&-8;e=v>>>3;p=r[26]|0;c=p>>>e;if(c&3){a=(c&1^1)+e|0;t=a<<1;i=144+(t<<2)|0;t=144+(t+2<<2)|0;n=r[t>>2]|0;s=n+8|0;o=r[s>>2]|0;do{if((i|0)==(o|0))r[26]=p&~(1<<a);else{if(o>>>0>=(r[30]|0)>>>0?(d=o+12|0,(r[d>>2]|0)==(n|0)):0){r[d>>2]=i;r[t>>2]=o;break}oe()}}while(0);$=a<<3;r[n+4>>2]=$|3;$=n+($|4)|0;r[$>>2]=r[$>>2]|1;break}t=r[28]|0;if(v>>>0>t>>>0){if(c){n=2<<e;n=c<<e&(n|0-n);n=(n&0-n)+-1|0;s=n>>>12&16;n=n>>>s;a=n>>>5&8;n=n>>>a;i=n>>>2&4;n=n>>>i;o=n>>>1&2;n=n>>>o;l=n>>>1&1;l=(a|s|i|o|l)+(n>>>l)|0;n=l<<1;o=144+(n<<2)|0;n=144+(n+2<<2)|0;i=r[n>>2]|0;s=i+8|0;a=r[s>>2]|0;do{if((o|0)==(a|0)){r[26]=p&~(1<<l);f=t}else{if(a>>>0>=(r[30]|0)>>>0?(u=a+12|0,(r[u>>2]|0)==(i|0)):0){r[u>>2]=o;r[n>>2]=a;f=r[28]|0;break}oe()}}while(0);$=l<<3;t=$-v|0;r[i+4>>2]=v|3;c=i+v|0;r[i+(v|4)>>2]=t|1;r[i+$>>2]=t;if(f){i=r[31]|0;a=f>>>3;o=a<<1;l=144+(o<<2)|0;n=r[26]|0;a=1<<a;if(n&a){n=144+(o+2<<2)|0;o=r[n>>2]|0;if(o>>>0<(r[30]|0)>>>0)oe();else{h=n;m=o}}else{r[26]=n|a;h=144+(o+2<<2)|0;m=l}r[h>>2]=i;r[m+12>>2]=i;r[i+8>>2]=m;r[i+12>>2]=l}r[28]=t;r[31]=c;break}e=r[27]|0;if(e){n=(e&0-e)+-1|0;G=n>>>12&16;n=n>>>G;q=n>>>5&8;n=n>>>q;$=n>>>2&4;n=n>>>$;o=n>>>1&2;n=n>>>o;c=n>>>1&1;c=r[408+((q|G|$|o|c)+(n>>>c)<<2)>>2]|0;n=(r[c+4>>2]&-8)-v|0;o=c;while(1){l=r[o+16>>2]|0;if(!l){l=r[o+20>>2]|0;if(!l){t=n;break}}o=(r[l+4>>2]&-8)-v|0;$=o>>>0<n>>>0;n=$?o:n;o=l;c=$?l:c}e=r[30]|0;if(c>>>0>=e>>>0?(_=c+v|0,c>>>0<_>>>0):0){a=r[c+24>>2]|0;l=r[c+12>>2]|0;do{if((l|0)==(c|0)){o=c+20|0;l=r[o>>2]|0;if(!l){o=c+16|0;l=r[o>>2]|0;if(!l){b=0;break}}while(1){s=l+20|0;n=r[s>>2]|0;if(n){l=n;o=s;continue}s=l+16|0;n=r[s>>2]|0;if(!n)break;else{l=n;o=s}}if(o>>>0<e>>>0)oe();else{r[o>>2]=0;b=l;break}}else{o=r[c+8>>2]|0;if((o>>>0>=e>>>0?(i=o+12|0,(r[i>>2]|0)==(c|0)):0)?(A=l+8|0,(r[A>>2]|0)==(c|0)):0){r[i>>2]=l;r[A>>2]=o;b=l;break}oe()}}while(0);do{if(a){o=r[c+28>>2]|0;s=408+(o<<2)|0;if((c|0)==(r[s>>2]|0)){r[s>>2]=b;if(!b){r[27]=r[27]&~(1<<o);break}}else{if(a>>>0<(r[30]|0)>>>0)oe();o=a+16|0;if((r[o>>2]|0)==(c|0))r[o>>2]=b;else r[a+20>>2]=b;if(!b)break}s=r[30]|0;if(b>>>0<s>>>0)oe();r[b+24>>2]=a;o=r[c+16>>2]|0;do{if(o)if(o>>>0<s>>>0)oe();else{r[b+16>>2]=o;r[o+24>>2]=b;break}}while(0);o=r[c+20>>2]|0;if(o)if(o>>>0<(r[30]|0)>>>0)oe();else{r[b+20>>2]=o;r[o+24>>2]=b;break}}}while(0);if(t>>>0<16){$=t+v|0;r[c+4>>2]=$|3;$=c+($+4)|0;r[$>>2]=r[$>>2]|1}else{r[c+4>>2]=v|3;r[c+(v|4)>>2]=t|1;r[c+(t+v)>>2]=t;a=r[28]|0;if(a){i=r[31]|0;n=a>>>3;o=n<<1;l=144+(o<<2)|0;s=r[26]|0;n=1<<n;if(s&n){o=144+(o+2<<2)|0;s=r[o>>2]|0;if(s>>>0<(r[30]|0)>>>0)oe();else{y=o;w=s}}else{r[26]=s|n;y=144+(o+2<<2)|0;w=l}r[y>>2]=i;r[w+12>>2]=i;r[i+8>>2]=w;r[i+12>>2]=l}r[28]=t;r[31]=_}s=c+8|0;break}oe()}else V=154}else V=154}else if(e>>>0<=4294967231){e=e+11|0;w=e&-8;p=r[27]|0;if(p){c=0-w|0;e=e>>>8;if(e)if(w>>>0>16777215)d=31;else{_=(e+1048320|0)>>>16&8;V=e<<_;y=(V+520192|0)>>>16&4;V=V<<y;d=(V+245760|0)>>>16&2;d=14-(y|_|d)+(V<<d>>>15)|0;d=w>>>(d+7|0)&1|d<<1}else d=0;e=r[408+(d<<2)>>2]|0;e:do{if(!e){l=0;e=0;V=86}else{i=c;l=0;t=w<<((d|0)==31?0:25-(d>>>1)|0);u=e;e=0;while(1){a=r[u+4>>2]&-8;c=a-w|0;if(c>>>0<i>>>0)if((a|0)==(w|0)){a=u;e=u;V=90;break e}else e=u;else c=i;V=r[u+20>>2]|0;u=r[u+16+(t>>>31<<2)>>2]|0;l=(V|0)==0|(V|0)==(u|0)?l:V;if(!u){V=86;break}else{i=c;t=t<<1}}}}while(0);if((V|0)==86){if((l|0)==0&(e|0)==0){e=2<<d;e=p&(e|0-e);if(!e){v=w;V=154;break}e=(e&0-e)+-1|0;b=e>>>12&16;e=e>>>b;m=e>>>5&8;e=e>>>m;y=e>>>2&4;e=e>>>y;_=e>>>1&2;e=e>>>_;l=e>>>1&1;l=r[408+((m|b|y|_|l)+(e>>>l)<<2)>>2]|0;e=0}if(!l){m=c;h=e}else{a=l;V=90}}if((V|0)==90)while(1){V=0;_=(r[a+4>>2]&-8)-w|0;l=_>>>0<c>>>0;c=l?_:c;e=l?a:e;l=r[a+16>>2]|0;if(l){a=l;V=90;continue}a=r[a+20>>2]|0;if(!a){m=c;h=e;break}else V=90}if((h|0)!=0?m>>>0<((r[28]|0)-w|0)>>>0:0){e=r[30]|0;if(h>>>0>=e>>>0?(D=h+w|0,h>>>0<D>>>0):0){c=r[h+24>>2]|0;l=r[h+12>>2]|0;do{if((l|0)==(h|0)){o=h+20|0;l=r[o>>2]|0;if(!l){o=h+16|0;l=r[o>>2]|0;if(!l){x=0;break}}while(1){s=l+20|0;n=r[s>>2]|0;if(n){l=n;o=s;continue}s=l+16|0;n=r[s>>2]|0;if(!n)break;else{l=n;o=s}}if(o>>>0<e>>>0)oe();else{r[o>>2]=0;x=l;break}}else{o=r[h+8>>2]|0;if((o>>>0>=e>>>0?(g=o+12|0,(r[g>>2]|0)==(h|0)):0)?(v=l+8|0,(r[v>>2]|0)==(h|0)):0){r[g>>2]=l;r[v>>2]=o;x=l;break}oe()}}while(0);do{if(c){l=r[h+28>>2]|0;o=408+(l<<2)|0;if((h|0)==(r[o>>2]|0)){r[o>>2]=x;if(!x){r[27]=r[27]&~(1<<l);break}}else{if(c>>>0<(r[30]|0)>>>0)oe();o=c+16|0;if((r[o>>2]|0)==(h|0))r[o>>2]=x;else r[c+20>>2]=x;if(!x)break}l=r[30]|0;if(x>>>0<l>>>0)oe();r[x+24>>2]=c;o=r[h+16>>2]|0;do{if(o)if(o>>>0<l>>>0)oe();else{r[x+16>>2]=o;r[o+24>>2]=x;break}}while(0);o=r[h+20>>2]|0;if(o)if(o>>>0<(r[30]|0)>>>0)oe();else{r[x+20>>2]=o;r[o+24>>2]=x;break}}}while(0);e:do{if(m>>>0>=16){r[h+4>>2]=w|3;r[h+(w|4)>>2]=m|1;r[h+(m+w)>>2]=m;l=m>>>3;if(m>>>0<256){s=l<<1;a=144+(s<<2)|0;n=r[26]|0;o=1<<l;if(n&o){o=144+(s+2<<2)|0;s=r[o>>2]|0;if(s>>>0<(r[30]|0)>>>0)oe();else{k=o;T=s}}else{r[26]=n|o;k=144+(s+2<<2)|0;T=a}r[k>>2]=D;r[T+12>>2]=D;r[h+(w+8)>>2]=T;r[h+(w+12)>>2]=a;break}i=m>>>8;if(i)if(m>>>0>16777215)l=31;else{G=(i+1048320|0)>>>16&8;$=i<<G;q=($+520192|0)>>>16&4;$=$<<q;l=($+245760|0)>>>16&2;l=14-(q|G|l)+($<<l>>>15)|0;l=m>>>(l+7|0)&1|l<<1}else l=0;o=408+(l<<2)|0;r[h+(w+28)>>2]=l;r[h+(w+20)>>2]=0;r[h+(w+16)>>2]=0;s=r[27]|0;n=1<<l;if(!(s&n)){r[27]=s|n;r[o>>2]=D;r[h+(w+24)>>2]=o;r[h+(w+12)>>2]=D;r[h+(w+8)>>2]=D;break}i=r[o>>2]|0;t:do{if((r[i+4>>2]&-8|0)!=(m|0)){l=m<<((l|0)==31?0:25-(l>>>1)|0);while(1){t=i+16+(l>>>31<<2)|0;o=r[t>>2]|0;if(!o)break;if((r[o+4>>2]&-8|0)==(m|0)){I=o;break t}else{l=l<<1;i=o}}if(t>>>0<(r[30]|0)>>>0)oe();else{r[t>>2]=D;r[h+(w+24)>>2]=i;r[h+(w+12)>>2]=D;r[h+(w+8)>>2]=D;break e}}else I=i}while(0);i=I+8|0;t=r[i>>2]|0;$=r[30]|0;if(t>>>0>=$>>>0&I>>>0>=$>>>0){r[t+12>>2]=D;r[i>>2]=D;r[h+(w+8)>>2]=t;r[h+(w+12)>>2]=I;r[h+(w+24)>>2]=0;break}else oe()}else{$=m+w|0;r[h+4>>2]=$|3;$=h+($+4)|0;r[$>>2]=r[$>>2]|1}}while(0);s=h+8|0;break}oe()}else{v=w;V=154}}else{v=w;V=154}}else{v=-1;V=154}}while(0);e:do{if((V|0)==154){e=r[28]|0;if(e>>>0>=v>>>0){t=e-v|0;i=r[31]|0;if(t>>>0>15){r[31]=i+v;r[28]=t;r[i+(v+4)>>2]=t|1;r[i+e>>2]=t;r[i+4>>2]=v|3}else{r[28]=0;r[31]=0;r[i+4>>2]=e|3;V=i+(e+4)|0;r[V>>2]=r[V>>2]|1}s=i+8|0;break}e=r[29]|0;if(e>>>0>v>>>0){V=e-v|0;r[29]=V;s=r[32]|0;r[32]=s+v;r[s+(v+4)>>2]=V|1;r[s+4>>2]=v|3;s=s+8|0;break}if(!(r[144]|0))Hn();p=v+48|0;i=r[146]|0;d=v+47|0;a=i+d|0;i=0-i|0;u=a&i;if(u>>>0>v>>>0){e=r[136]|0;if((e|0)!=0?(I=r[134]|0,D=I+u|0,D>>>0<=I>>>0|D>>>0>e>>>0):0){s=0;break}t:do{if(!(r[137]&4)){e=r[32]|0;i:do{if(e){l=552;while(1){c=r[l>>2]|0;if(c>>>0<=e>>>0?(C=l+4|0,(c+(r[C>>2]|0)|0)>>>0>e>>>0):0){s=l;e=C;break}l=r[l+8>>2]|0;if(!l){V=172;break i}}c=a-(r[29]|0)&i;if(c>>>0<2147483647){l=ce(c|0)|0;D=(l|0)==((r[s>>2]|0)+(r[e>>2]|0)|0);e=D?c:0;if(D){if((l|0)!=(-1|0)){T=l;b=e;V=192;break t}}else V=182}else e=0}else V=172}while(0);do{if((V|0)==172){s=ce(0)|0;if((s|0)!=(-1|0)){e=s;c=r[145]|0;l=c+-1|0;if(!(l&e))c=u;else c=u-e+(l+e&0-c)|0;e=r[134]|0;l=e+c|0;if(c>>>0>v>>>0&c>>>0<2147483647){D=r[136]|0;if((D|0)!=0?l>>>0<=e>>>0|l>>>0>D>>>0:0){e=0;break}l=ce(c|0)|0;V=(l|0)==(s|0);e=V?c:0;if(V){T=s;b=e;V=192;break t}else V=182}else e=0}else e=0}}while(0);i:do{if((V|0)==182){s=0-c|0;do{if(p>>>0>c>>>0&(c>>>0<2147483647&(l|0)!=(-1|0))?(S=r[146]|0,S=d-c+S&0-S,S>>>0<2147483647):0)if((ce(S|0)|0)==(-1|0)){ce(s|0)|0;break i}else{c=S+c|0;break}}while(0);if((l|0)!=(-1|0)){T=l;b=c;V=192;break t}}}while(0);r[137]=r[137]|4;V=189}else{e=0;V=189}}while(0);if((((V|0)==189?u>>>0<2147483647:0)?(E=ce(u|0)|0,O=ce(0)|0,E>>>0<O>>>0&((E|0)!=(-1|0)&(O|0)!=(-1|0))):0)?(B=O-E|0,L=B>>>0>(v+40|0)>>>0,L):0){T=E;b=L?B:e;V=192}if((V|0)==192){c=(r[134]|0)+b|0;r[134]=c;if(c>>>0>(r[135]|0)>>>0)r[135]=c;m=r[32]|0;t:do{if(m){s=552;do{e=r[s>>2]|0;c=s+4|0;l=r[c>>2]|0;if((T|0)==(e+l|0)){M=e;N=c;j=l;P=s;V=202;break}s=r[s+8>>2]|0}while((s|0)!=0);if(((V|0)==202?(r[P+12>>2]&8|0)==0:0)?m>>>0<T>>>0&m>>>0>=M>>>0:0){r[N>>2]=j+b;V=(r[29]|0)+b|0;$=m+8|0;$=($&7|0)==0?0:0-$&7;G=V-$|0;r[32]=m+$;r[29]=G;r[m+($+4)>>2]=G|1;r[m+(V+4)>>2]=40;r[33]=r[148];break}c=r[30]|0;if(T>>>0<c>>>0){r[30]=T;c=T}l=T+b|0;e=552;while(1){if((r[e>>2]|0)==(l|0)){s=e;l=e;V=210;break}e=r[e+8>>2]|0;if(!e){l=552;break}}if((V|0)==210)if(!(r[l+12>>2]&8)){r[s>>2]=T;A=l+4|0;r[A>>2]=(r[A>>2]|0)+b;A=T+8|0;A=(A&7|0)==0?0:0-A&7;d=T+(b+8)|0;d=(d&7|0)==0?0:0-d&7;l=T+(d+b)|0;h=A+v|0;f=T+h|0;e=l-(T+A)-v|0;r[T+(A+4)>>2]=v|3;i:do{if((l|0)!=(m|0)){if((l|0)==(r[31]|0)){V=(r[28]|0)+e|0;r[28]=V;r[31]=f;r[T+(h+4)>>2]=V|1;r[T+(V+h)>>2]=V;break}t=b+4|0;o=r[T+(t+d)>>2]|0;if((o&3|0)==1){u=o&-8;a=o>>>3;a:do{if(o>>>0>=256){i=r[T+((d|24)+b)>>2]|0;s=r[T+(b+12+d)>>2]|0;n:do{if((s|0)==(l|0)){n=d|16;s=T+(t+n)|0;o=r[s>>2]|0;if(!o){s=T+(n+b)|0;o=r[s>>2]|0;if(!o){z=0;break}}while(1){n=o+20|0;a=r[n>>2]|0;if(a){o=a;s=n;continue}n=o+16|0;a=r[n>>2]|0;if(!a)break;else{o=a;s=n}}if(s>>>0<c>>>0)oe();else{r[s>>2]=0;z=o;break}}else{n=r[T+((d|8)+b)>>2]|0;do{if(n>>>0>=c>>>0){c=n+12|0;if((r[c>>2]|0)!=(l|0))break;o=s+8|0;if((r[o>>2]|0)!=(l|0))break;r[c>>2]=s;r[o>>2]=n;z=s;break n}}while(0);oe()}}while(0);if(!i)break;c=r[T+(b+28+d)>>2]|0;o=408+(c<<2)|0;do{if((l|0)!=(r[o>>2]|0)){if(i>>>0<(r[30]|0)>>>0)oe();o=i+16|0;if((r[o>>2]|0)==(l|0))r[o>>2]=z;else r[i+20>>2]=z;if(!z)break a}else{r[o>>2]=z;if(z)break;r[27]=r[27]&~(1<<c);break a}}while(0);c=r[30]|0;if(z>>>0<c>>>0)oe();r[z+24>>2]=i;l=d|16;o=r[T+(l+b)>>2]|0;do{if(o)if(o>>>0<c>>>0)oe();else{r[z+16>>2]=o;r[o+24>>2]=z;break}}while(0);l=r[T+(t+l)>>2]|0;if(!l)break;if(l>>>0<(r[30]|0)>>>0)oe();else{r[z+20>>2]=l;r[l+24>>2]=z;break}}else{o=r[T+((d|8)+b)>>2]|0;s=r[T+(b+12+d)>>2]|0;n=144+(a<<1<<2)|0;do{if((o|0)!=(n|0)){if(o>>>0>=c>>>0?(r[o+12>>2]|0)==(l|0):0)break;oe()}}while(0);if((s|0)==(o|0)){r[26]=r[26]&~(1<<a);break}do{if((s|0)==(n|0))U=s+8|0;else{if(s>>>0>=c>>>0?(F=s+8|0,(r[F>>2]|0)==(l|0)):0){U=F;break}oe()}}while(0);r[o+12>>2]=s;r[U>>2]=o}}while(0);l=T+((u|d)+b)|0;e=u+e|0}l=l+4|0;r[l>>2]=r[l>>2]&-2;r[T+(h+4)>>2]=e|1;r[T+(e+h)>>2]=e;l=e>>>3;if(e>>>0<256){s=l<<1;a=144+(s<<2)|0;n=r[26]|0;o=1<<l;do{if(!(n&o)){r[26]=n|o;q=144+(s+2<<2)|0;G=a}else{o=144+(s+2<<2)|0;s=r[o>>2]|0;if(s>>>0>=(r[30]|0)>>>0){q=o;G=s;break}oe()}}while(0);r[q>>2]=f;r[G+12>>2]=f;r[T+(h+8)>>2]=G;r[T+(h+12)>>2]=a;break}i=e>>>8;do{if(!i)l=0;else{if(e>>>0>16777215){l=31;break}G=(i+1048320|0)>>>16&8;V=i<<G;q=(V+520192|0)>>>16&4;V=V<<q;l=(V+245760|0)>>>16&2;l=14-(q|G|l)+(V<<l>>>15)|0;l=e>>>(l+7|0)&1|l<<1}}while(0);o=408+(l<<2)|0;r[T+(h+28)>>2]=l;r[T+(h+20)>>2]=0;r[T+(h+16)>>2]=0;s=r[27]|0;n=1<<l;if(!(s&n)){r[27]=s|n;r[o>>2]=f;r[T+(h+24)>>2]=o;r[T+(h+12)>>2]=f;r[T+(h+8)>>2]=f;break}i=r[o>>2]|0;a:do{if((r[i+4>>2]&-8|0)!=(e|0)){l=e<<((l|0)==31?0:25-(l>>>1)|0);while(1){t=i+16+(l>>>31<<2)|0;o=r[t>>2]|0;if(!o)break;if((r[o+4>>2]&-8|0)==(e|0)){$=o;break a}else{l=l<<1;i=o}}if(t>>>0<(r[30]|0)>>>0)oe();else{r[t>>2]=f;r[T+(h+24)>>2]=i;r[T+(h+12)>>2]=f;r[T+(h+8)>>2]=f;break i}}else $=i}while(0);i=$+8|0;t=r[i>>2]|0;V=r[30]|0;if(t>>>0>=V>>>0&$>>>0>=V>>>0){r[t+12>>2]=f;r[i>>2]=f;r[T+(h+8)>>2]=t;r[T+(h+12)>>2]=$;r[T+(h+24)>>2]=0;break}else oe()}else{V=(r[29]|0)+e|0;r[29]=V;r[32]=f;r[T+(h+4)>>2]=V|1}}while(0);s=T+(A|8)|0;break e}else l=552;while(1){s=r[l>>2]|0;if(s>>>0<=m>>>0?(o=r[l+4>>2]|0,n=s+o|0,n>>>0>m>>>0):0)break;l=r[l+8>>2]|0}l=s+(o+-39)|0;l=s+(o+-47+((l&7|0)==0?0:0-l&7))|0;c=m+16|0;l=l>>>0<c>>>0?m:l;o=l+8|0;s=T+8|0;s=(s&7|0)==0?0:0-s&7;V=b+-40-s|0;r[32]=T+s;r[29]=V;r[T+(s+4)>>2]=V|1;r[T+(b+-36)>>2]=40;r[33]=r[148];s=l+4|0;r[s>>2]=27;r[o>>2]=r[138];r[o+4>>2]=r[139];r[o+8>>2]=r[140];r[o+12>>2]=r[141];r[138]=T;r[139]=b;r[141]=0;r[140]=o;o=l+28|0;r[o>>2]=7;if((l+32|0)>>>0<n>>>0)do{V=o;o=o+4|0;r[o>>2]=7}while((V+8|0)>>>0<n>>>0);if((l|0)!=(m|0)){e=l-m|0;r[s>>2]=r[s>>2]&-2;r[m+4>>2]=e|1;r[l>>2]=e;n=e>>>3;if(e>>>0<256){o=n<<1;l=144+(o<<2)|0;s=r[26]|0;a=1<<n;if(s&a){i=144+(o+2<<2)|0;t=r[i>>2]|0;if(t>>>0<(r[30]|0)>>>0)oe();else{R=i;Q=t}}else{r[26]=s|a;R=144+(o+2<<2)|0;Q=l}r[R>>2]=m;r[Q+12>>2]=m;r[m+8>>2]=Q;r[m+12>>2]=l;break}i=e>>>8;if(i)if(e>>>0>16777215)o=31;else{$=(i+1048320|0)>>>16&8;V=i<<$;G=(V+520192|0)>>>16&4;V=V<<G;o=(V+245760|0)>>>16&2;o=14-(G|$|o)+(V<<o>>>15)|0;o=e>>>(o+7|0)&1|o<<1}else o=0;a=408+(o<<2)|0;r[m+28>>2]=o;r[m+20>>2]=0;r[c>>2]=0;i=r[27]|0;t=1<<o;if(!(i&t)){r[27]=i|t;r[a>>2]=m;r[m+24>>2]=a;r[m+12>>2]=m;r[m+8>>2]=m;break}i=r[a>>2]|0;i:do{if((r[i+4>>2]&-8|0)!=(e|0)){o=e<<((o|0)==31?0:25-(o>>>1)|0);while(1){t=i+16+(o>>>31<<2)|0;a=r[t>>2]|0;if(!a)break;if((r[a+4>>2]&-8|0)==(e|0)){H=a;break i}else{o=o<<1;i=a}}if(t>>>0<(r[30]|0)>>>0)oe();else{r[t>>2]=m;r[m+24>>2]=i;r[m+12>>2]=m;r[m+8>>2]=m;break t}}else H=i}while(0);i=H+8|0;t=r[i>>2]|0;V=r[30]|0;if(t>>>0>=V>>>0&H>>>0>=V>>>0){r[t+12>>2]=m;r[i>>2]=m;r[m+8>>2]=t;r[m+12>>2]=H;r[m+24>>2]=0;break}else oe()}}else{V=r[30]|0;if((V|0)==0|T>>>0<V>>>0)r[30]=T;r[138]=T;r[139]=b;r[141]=0;r[35]=r[144];r[34]=-1;i=0;do{V=i<<1;$=144+(V<<2)|0;r[144+(V+3<<2)>>2]=$;r[144+(V+2<<2)>>2]=$;i=i+1|0}while((i|0)!=32);V=T+8|0;V=(V&7|0)==0?0:0-V&7;$=b+-40-V|0;r[32]=T+V;r[29]=$;r[T+(V+4)>>2]=$|1;r[T+(b+-36)>>2]=40;r[33]=r[148]}}while(0);t=r[29]|0;if(t>>>0>v>>>0){V=t-v|0;r[29]=V;s=r[32]|0;r[32]=s+v;r[s+(v+4)>>2]=V|1;r[s+4>>2]=v|3;s=s+8|0;break}}r[(Qn()|0)>>2]=12;s=0}else s=0}}while(0);return s|0}function Rn(e){e=e|0;var t=0,i=0,a=0,n=0,s=0,o=0,l=0,c=0,u=0,d=0,p=0,f=0,A=0,h=0,m=0,g=0,v=0,b=0,y=0,_=0,w=0,C=0,x=0,k=0,T=0,S=0;e:do{if(e){n=e+-8|0;u=r[30]|0;t:do{if(n>>>0>=u>>>0?(a=r[e+-4>>2]|0,i=a&3,(i|0)!=1):0){_=a&-8;w=e+(_+-8)|0;do{if(!(a&1)){n=r[n>>2]|0;if(!i)break e;d=-8-n|0;f=e+d|0;A=n+_|0;if(f>>>0<u>>>0)break t;if((f|0)==(r[31]|0)){s=e+(_+-4)|0;n=r[s>>2]|0;if((n&3|0)!=3){S=f;s=A;break}r[28]=A;r[s>>2]=n&-2;r[e+(d+4)>>2]=A|1;r[w>>2]=A;break e}i=n>>>3;if(n>>>0<256){a=r[e+(d+8)>>2]|0;s=r[e+(d+12)>>2]|0;n=144+(i<<1<<2)|0;do{if((a|0)!=(n|0)){if(a>>>0>=u>>>0?(r[a+12>>2]|0)==(f|0):0)break;oe()}}while(0);if((s|0)==(a|0)){r[26]=r[26]&~(1<<i);S=f;s=A;break}do{if((s|0)==(n|0))t=s+8|0;else{if(s>>>0>=u>>>0?(o=s+8|0,(r[o>>2]|0)==(f|0)):0){t=o;break}oe()}}while(0);r[a+12>>2]=s;r[t>>2]=a;S=f;s=A;break}o=r[e+(d+24)>>2]|0;n=r[e+(d+12)>>2]|0;do{if((n|0)==(f|0)){a=e+(d+20)|0;n=r[a>>2]|0;if(!n){a=e+(d+16)|0;n=r[a>>2]|0;if(!n){p=0;break}}while(1){i=n+20|0;t=r[i>>2]|0;if(t){n=t;a=i;continue}i=n+16|0;t=r[i>>2]|0;if(!t)break;else{n=t;a=i}}if(a>>>0<u>>>0)oe();else{r[a>>2]=0;p=n;break}}else{a=r[e+(d+8)>>2]|0;if((a>>>0>=u>>>0?(l=a+12|0,(r[l>>2]|0)==(f|0)):0)?(c=n+8|0,(r[c>>2]|0)==(f|0)):0){r[l>>2]=n;r[c>>2]=a;p=n;break}oe()}}while(0);if(o){n=r[e+(d+28)>>2]|0;a=408+(n<<2)|0;if((f|0)==(r[a>>2]|0)){r[a>>2]=p;if(!p){r[27]=r[27]&~(1<<n);S=f;s=A;break}}else{if(o>>>0<(r[30]|0)>>>0)oe();n=o+16|0;if((r[n>>2]|0)==(f|0))r[n>>2]=p;else r[o+20>>2]=p;if(!p){S=f;s=A;break}}a=r[30]|0;if(p>>>0<a>>>0)oe();r[p+24>>2]=o;n=r[e+(d+16)>>2]|0;do{if(n)if(n>>>0<a>>>0)oe();else{r[p+16>>2]=n;r[n+24>>2]=p;break}}while(0);n=r[e+(d+20)>>2]|0;if(n)if(n>>>0<(r[30]|0)>>>0)oe();else{r[p+20>>2]=n;r[n+24>>2]=p;S=f;s=A;break}else{S=f;s=A}}else{S=f;s=A}}else{S=n;s=_}}while(0);if(S>>>0<w>>>0?(h=e+(_+-4)|0,m=r[h>>2]|0,(m&1|0)!=0):0){if(!(m&2)){if((w|0)==(r[32]|0)){T=(r[29]|0)+s|0;r[29]=T;r[32]=S;r[S+4>>2]=T|1;if((S|0)!=(r[31]|0))break e;r[31]=0;r[28]=0;break e}if((w|0)==(r[31]|0)){T=(r[28]|0)+s|0;r[28]=T;r[31]=S;r[S+4>>2]=T|1;r[S+T>>2]=T;break e}c=(m&-8)+s|0;i=m>>>3;do{if(m>>>0>=256){t=r[e+(_+16)>>2]|0;s=r[e+(_|4)>>2]|0;do{if((s|0)==(w|0)){n=e+(_+12)|0;s=r[n>>2]|0;if(!s){n=e+(_+8)|0;s=r[n>>2]|0;if(!s){C=0;break}}while(1){a=s+20|0;i=r[a>>2]|0;if(i){s=i;n=a;continue}a=s+16|0;i=r[a>>2]|0;if(!i)break;else{s=i;n=a}}if(n>>>0<(r[30]|0)>>>0)oe();else{r[n>>2]=0;C=s;break}}else{n=r[e+_>>2]|0;if((n>>>0>=(r[30]|0)>>>0?(b=n+12|0,(r[b>>2]|0)==(w|0)):0)?(y=s+8|0,(r[y>>2]|0)==(w|0)):0){r[b>>2]=s;r[y>>2]=n;C=s;break}oe()}}while(0);if(t){s=r[e+(_+20)>>2]|0;n=408+(s<<2)|0;if((w|0)==(r[n>>2]|0)){r[n>>2]=C;if(!C){r[27]=r[27]&~(1<<s);break}}else{if(t>>>0<(r[30]|0)>>>0)oe();s=t+16|0;if((r[s>>2]|0)==(w|0))r[s>>2]=C;else r[t+20>>2]=C;if(!C)break}s=r[30]|0;if(C>>>0<s>>>0)oe();r[C+24>>2]=t;n=r[e+(_+8)>>2]|0;do{if(n)if(n>>>0<s>>>0)oe();else{r[C+16>>2]=n;r[n+24>>2]=C;break}}while(0);i=r[e+(_+12)>>2]|0;if(i)if(i>>>0<(r[30]|0)>>>0)oe();else{r[C+20>>2]=i;r[i+24>>2]=C;break}}}else{a=r[e+_>>2]|0;s=r[e+(_|4)>>2]|0;n=144+(i<<1<<2)|0;do{if((a|0)!=(n|0)){if(a>>>0>=(r[30]|0)>>>0?(r[a+12>>2]|0)==(w|0):0)break;oe()}}while(0);if((s|0)==(a|0)){r[26]=r[26]&~(1<<i);break}do{if((s|0)==(n|0))g=s+8|0;else{if(s>>>0>=(r[30]|0)>>>0?(v=s+8|0,(r[v>>2]|0)==(w|0)):0){g=v;break}oe()}}while(0);r[a+12>>2]=s;r[g>>2]=a}}while(0);r[S+4>>2]=c|1;r[S+c>>2]=c;if((S|0)==(r[31]|0)){r[28]=c;break e}else s=c}else{r[h>>2]=m&-2;r[S+4>>2]=s|1;r[S+s>>2]=s}n=s>>>3;if(s>>>0<256){a=n<<1;s=144+(a<<2)|0;t=r[26]|0;i=1<<n;if(t&i){i=144+(a+2<<2)|0;t=r[i>>2]|0;if(t>>>0<(r[30]|0)>>>0)oe();else{x=i;k=t}}else{r[26]=t|i;x=144+(a+2<<2)|0;k=s}r[x>>2]=S;r[k+12>>2]=S;r[S+8>>2]=k;r[S+12>>2]=s;break e}t=s>>>8;if(t)if(s>>>0>16777215)n=31;else{x=(t+1048320|0)>>>16&8;k=t<<x;e=(k+520192|0)>>>16&4;k=k<<e;n=(k+245760|0)>>>16&2;n=14-(e|x|n)+(k<<n>>>15)|0;n=s>>>(n+7|0)&1|n<<1}else n=0;i=408+(n<<2)|0;r[S+28>>2]=n;r[S+20>>2]=0;r[S+16>>2]=0;t=r[27]|0;a=1<<n;i:do{if(t&a){i=r[i>>2]|0;a:do{if((r[i+4>>2]&-8|0)!=(s|0)){n=s<<((n|0)==31?0:25-(n>>>1)|0);while(1){t=i+16+(n>>>31<<2)|0;a=r[t>>2]|0;if(!a)break;if((r[a+4>>2]&-8|0)==(s|0)){T=a;break a}else{n=n<<1;i=a}}if(t>>>0<(r[30]|0)>>>0)oe();else{r[t>>2]=S;r[S+24>>2]=i;r[S+12>>2]=S;r[S+8>>2]=S;break i}}else T=i}while(0);t=T+8|0;i=r[t>>2]|0;k=r[30]|0;if(i>>>0>=k>>>0&T>>>0>=k>>>0){r[i+12>>2]=S;r[t>>2]=S;r[S+8>>2]=i;r[S+12>>2]=T;r[S+24>>2]=0;break}else oe()}else{r[27]=t|a;r[i>>2]=S;r[S+24>>2]=i;r[S+12>>2]=S;r[S+8>>2]=S}}while(0);S=(r[34]|0)+-1|0;r[34]=S;if(!S)t=560;else break e;while(1){t=r[t>>2]|0;if(!t)break;else t=t+8|0}r[34]=-1;break e}}}while(0);oe()}}while(0);return}function Qn(){var e=0;if(!0)e=600;return e|0}function Hn(){var e=0;do{if(!(r[144]|0)){e=re(30)|0;if(!(e+-1&e)){r[146]=e;r[145]=e;r[147]=-1;r[148]=-1;r[149]=0;r[137]=0;r[144]=(ue(0)|0)&-16^1431655768;break}else oe()}}while(0);return}function zn(){}function qn(e,t,i){e=e|0;t=t|0;i=i|0;var n=0;if((i|0)>=4096)return pe(e|0,t|0,i|0)|0;n=e|0;if((e&3)==(t&3)){while(e&3){if(!i)return n|0;a[e>>0]=a[t>>0]|0;e=e+1|0;t=t+1|0;i=i-1|0}while((i|0)>=4){r[e>>2]=r[t>>2];e=e+4|0;t=t+4|0;i=i-4|0}}while((i|0)>0){a[e>>0]=a[t>>0]|0;e=e+1|0;t=t+1|0;i=i-1|0}return n|0}function Gn(e,t,i){e=e|0;t=t|0;i=i|0;var n=0;if((t|0)<(e|0)&(e|0)<(t+i|0)){n=e;t=t+i|0;e=e+i|0;while((i|0)>0){e=e-1|0;t=t-1|0;i=i-1|0;a[e>>0]=a[t>>0]|0}e=n}else qn(e,t,i)|0;return e|0}function $n(e,t,i){e=e|0;t=t|0;i=i|0;var n=0,s=0,o=0,l=0;n=e+i|0;if((i|0)>=20){t=t&255;o=e&3;l=t|t<<8|t<<16|t<<24;s=n&~3;if(o){o=e+4-o|0;while((e|0)<(o|0)){a[e>>0]=t;e=e+1|0}}while((e|0)<(s|0)){r[e>>2]=l;e=e+4|0}}while((e|0)<(n|0)){a[e>>0]=t;e=e+1|0}return e-i|0}return{_free:Rn,___errno_location:Qn,_memmove:Gn,_Decoder_Interface_Decode:Te,_Decoder_Interface_exit:ke,_Encoder_Interface_init:Se,_memset:$n,_malloc:Fn,_memcpy:qn,_Encoder_Interface_exit:Ie,_Decoder_Interface_init:xe,_Encoder_Interface_Encode:Ee,runPostSets:zn,stackAlloc:he,stackSave:me,stackRestore:ge,establishStackSpace:ve,setThrew:be,setTempRet0:we,getTempRet0:Ce}}(t.asmGlobalArg,t.asmLibraryArg,pe);t["_Encoder_Interface_Encode"]=dt["_Encoder_Interface_Encode"];var pt=t["_free"]=dt["_free"];t["runPostSets"]=dt["runPostSets"];var ft=t["_memmove"]=dt["_memmove"];t["_Decoder_Interface_exit"]=dt["_Decoder_Interface_exit"],t["_Encoder_Interface_init"]=dt["_Encoder_Interface_init"];var At,ht=t["_memset"]=dt["_memset"],mt=t["_malloc"]=dt["_malloc"],gt=t["_memcpy"]=dt["_memcpy"];function vt(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function bt(e){function i(){t["calledRun"]||(t["calledRun"]=!0,m||(xe(),ke(),t["onRuntimeInitialized"]&&t["onRuntimeInitialized"](),t["_main"]&&Ct&&t["callMain"](e),Se()))}e=e||t["arguments"],He>0||(Ce(),He>0||t["calledRun"]||(t["setStatus"]?(t["setStatus"]("Running..."),setTimeout((function(){setTimeout((function(){t["setStatus"]("")}),1),i()}),1)):i()))}function yt(e,i){if(!i||!t["noExitRuntime"])throw t["noExitRuntime"]||(m=!0,oe=At,Te(),t["onExit"]&&t["onExit"](e)),o&&"function"===typeof quit&&quit(e),new vt(e)}t["_Decoder_Interface_Decode"]=dt["_Decoder_Interface_Decode"],t["_Decoder_Interface_init"]=dt["_Decoder_Interface_init"],t["_Encoder_Interface_exit"]=dt["_Encoder_Interface_exit"],t["___errno_location"]=dt["___errno_location"],u.stackAlloc=dt["stackAlloc"],u.stackSave=dt["stackSave"],u.stackRestore=dt["stackRestore"],u.establishStackSpace=dt["establishStackSpace"],u.setTempRet0=dt["setTempRet0"],u.getTempRet0=dt["getTempRet0"],vt.prototype=new Error,vt.prototype.constructor=vt,ze=function e(){t["calledRun"]||bt(),t["calledRun"]||(ze=e)},t["callMain"]=t.callMain=function(e){g(0==He,"cannot call main when async dependencies remain! (listen on __ATMAIN__)"),g(0==ge.length,"cannot call main when preRun functions remain to be called"),e=e||[],xe();var i=e.length+1;function a(){for(var e=0;e<3;e++)n.push(0)}var n=[T(De(t["thisProgram"]),"i8",_)];a();for(var r=0;r<i-1;r+=1)n.push(T(De(e[r]),"i8",_)),a();n.push(0),n=T(n,"i32",_),At=u.stackSave();try{var s=t["_main"](i,n,0);yt(s,!0)}catch(o){if(o instanceof vt)return;if("SimulateInfiniteLoop"==o)return t["noExitRuntime"]=!0,void u.stackRestore(At);throw o&&"object"===typeof o&&o.stack&&t.printErr("exception thrown: "+[o,o.stack]),o}},t["run"]=t.run=bt,t["exit"]=t.exit=yt;var _t=[];function wt(e){void 0!==e?(t.print(e),t.printErr(e),e=JSON.stringify(e)):e="",m=!0;var i="\nIf this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.",a="abort("+e+") at "+G()+i;throw _t&&_t.forEach((function(t){a=t(a,e)})),a}if(t["abort"]=t.abort=wt,t["preInit"]){"function"==typeof t["preInit"]&&(t["preInit"]=[t["preInit"]]);while(t["preInit"].length>0)t["preInit"].pop()()}var Ct=!0;return t["noInitialRun"]&&(Ct=!1),t["noExitRuntime"]=!0,bt(),e}();function t(t,i){i=i||8e3,self.postMessage({command:"encode",amr:e.encode(t,i,7)})}function i(t){self.postMessage({command:"decode",amr:e.decode(t)})}self.onmessage=function(e){switch(e.data.command){case"encode":t(e.data.samples,e.data.sampleRate);break;case"decode":i(e.data.buffer);break}}},d=u.toString().replace(/^\s*function.*?\(\)\s*{/,"").replace(/}\s*$/,""),p=(window.URL||window.webkitURL).createObjectURL(new Blob([d],{type:"text/javascript"})),f=function(){function t(){var i=this;e(this,t),this._isInit=!1,this._isInitRecorder=!1,this._recorderControl=new c,this._samples=new Float32Array(0),this._rawData=new Uint8Array(0),this._blob=null,this._onEnded=null,this._onAutoEnded=null,this._onPlay=null,this._onPause=null,this._onResume=null,this._onStop=null,this._onStartRecord=null,this._onCancelRecord=null,this._onFinishRecord=null,this._isPlaying=!1,this._isPaused=!1,this._startCtxTime=0,this._pauseTime=0,this._playEmpty=function(){i._recorderControl.playPcm(new Float32Array(10),24e3)},this._onEndCallback=function(){i._isPlaying&&(i._isPlaying=!1,i._onStop&&i._onStop(),i._onAutoEnded&&i._onAutoEnded()),i._isPaused||i._onEnded&&i._onEnded()},this._runAMRWorker=function(e,t){var i=new Worker(p);i.postMessage(e),i.onmessage=function(e){t(e.data.amr),i.terminate()}}}return a(t,[{key:"isInit",value:function(){return this._isInit}},{key:"initWithArrayBuffer",value:function(e){var i=this;return(this._isInit||this._isInitRecorder)&&t.throwAlreadyInitialized(),this._playEmpty(),new Promise((function(a,n){var r=new Uint8Array(e);i.decodeAMRAsync(r).then((function(s){i._samples=s,i._isInit=!0,i._samples?(i._rawData=r,a()):c.decodeAudioArrayBufferByContext(e).then((function(e){return i._isInit=!0,i.encodeAMRAsync(e,c.getCtxSampleRate())})).then((function(e){return i._rawData=e,i._blob=t.rawAMRData2Blob(e),i.decodeAMRAsync(e)})).then((function(e){i._samples=e,a()})).catch((function(){n(new Error("Failed to decode."))}))}))}))}},{key:"initWithBlob",value:function(e){var i=this;(this._isInit||this._isInitRecorder)&&t.throwAlreadyInitialized(),this._playEmpty(),this._blob=e;var a=new Promise((function(t){var i=new FileReader;i.onload=function(e){t(e.target.result)},i.readAsArrayBuffer(e)}));return a.then((function(e){return i.initWithArrayBuffer(e)}))}},{key:"initWithUrl",value:function(e){var i=this;(this._isInit||this._isInitRecorder)&&t.throwAlreadyInitialized(),this._playEmpty();var a=new Promise((function(t,i){var a=new XMLHttpRequest;a.open("GET",e,!0),a.responseType="arraybuffer",a.onload=function(){t(this.response)},a.onerror=function(){i(new Error("Failed to fetch "+e))},a.send()}));return a.then((function(e){return i.initWithArrayBuffer(e)}))}},{key:"initWithRecord",value:function(){var e=this;return(this._isInit||this._isInitRecorder)&&t.throwAlreadyInitialized(),this._playEmpty(),new Promise((function(t,i){e._recorderControl.initRecorder().then((function(){e._isInitRecorder=!0,t()})).catch((function(e){i(e)}))}))}},{key:"on",value:function(e,t){if("function"===typeof t||null===t)switch(e){case"play":this._onPlay=t;break;case"stop":this._onStop=t;break;case"pause":this._onPause=t;break;case"resume":this._onResume=t;break;case"ended":this._onEnded=t;break;case"autoEnded":this._onAutoEnded=t;break;case"startRecord":this._onStartRecord=t;break;case"cancelRecord":this._onCancelRecord=t;break;case"finishRecord":this._onFinishRecord=t;break;case"*":case"all":this._onEnded=t,this._onAutoEnded=t,this._onPlay=t,this._onPause=t,this._onResume=t,this._onStop=t,this._onStartRecord=t,this._onCancelRecord=t,this._onFinishRecord=t;break}}},{key:"off",value:function(e){this.on(e,null)}},{key:"onPlay",value:function(e){this.on("play",e)}},{key:"onStop",value:function(e){this.on("stop",e)}},{key:"onPause",value:function(e){this.on("pause",e)}},{key:"onResume",value:function(e){this.on("resume",e)}},{key:"onEnded",value:function(e){this.on("ended",e)}},{key:"onAutoEnded",value:function(e){this.on("autoEnded",e)}},{key:"onStartRecord",value:function(e){this.on("startRecord",e)}},{key:"onFinishRecord",value:function(e){this.on("finishRecord",e)}},{key:"onCancelRecord",value:function(e){this.on("cancelRecord",e)}},{key:"play",value:function(e){var t=e&&e<this.getDuration()?parseFloat(e):0;if(!this._isInit)throw new Error("Please init AMR first.");this._onPlay&&this._onPlay(),this._isPlaying=!0,this._isPaused=!1,this._startCtxTime=c.getCtxTime()-t,this._recorderControl.playPcm(this._samples,this._isInitRecorder?c.getCtxSampleRate():8e3,this._onEndCallback.bind(this),t)}},{key:"stop",value:function(){this._recorderControl.stopPcm(),this._isPlaying=!1,this._isPaused=!1,this._onStop&&this._onStop()}},{key:"pause",value:function(){this._isPlaying&&(this._isPlaying=!1,this._isPaused=!0,this._pauseTime=c.getCtxTime()-this._startCtxTime,this._recorderControl.stopPcm(),this._onPause&&this._onPause())}},{key:"resume",value:function(){this._isPaused&&(this._isPlaying=!0,this._isPaused=!1,this._startCtxTime=c.getCtxTime()-this._pauseTime,this._recorderControl.playPcm(this._samples,this._isInitRecorder?c.getCtxSampleRate():8e3,this._onEndCallback.bind(this),this._pauseTime),this._onResume&&this._onResume())}},{key:"playOrResume",value:function(){this._isPaused?this.resume():this.play()}},{key:"pauseOrResume",value:function(){this._isPaused?this.resume():this.pause()}},{key:"playOrPauseOrResume",value:function(){this._isPaused?this.resume():this._isPlaying?this.pause():this.play()}},{key:"setPosition",value:function(e){var t=parseFloat(e);t>this.getDuration()?this.stop():this._isPaused?this._pauseTime=t:this._isPlaying?(this._recorderControl.stopPcmSilently(),this._startCtxTime=c.getCtxTime()-t,this._recorderControl.playPcm(this._samples,this._isInitRecorder?c.getCtxSampleRate():8e3,this._onEndCallback.bind(this),t)):this.play(t)}},{key:"getCurrentPosition",value:function(){return this._isPaused?this._pauseTime:this._isPlaying?c.getCtxTime()-this._startCtxTime:0}},{key:"isPlaying",value:function(){return this._isPlaying}},{key:"isPaused",value:function(){return this._isPaused}},{key:"startRecord",value:function(){this._recorderControl.startRecord(),this._onStartRecord&&this._onStartRecord()}},{key:"finishRecord",value:function(){var e=this;return new Promise((function(i){e._recorderControl.stopRecord(),e._recorderControl.generateRecordSamples().then((function(t){return e._samples=t,e.encodeAMRAsync(t,c.getCtxSampleRate())})).then((function(a){e._rawData=a,e._blob=t.rawAMRData2Blob(e._rawData),e._isInit=!0,e._onFinishRecord&&e._onFinishRecord(),e._recorderControl.releaseRecord(),i()}))}))}},{key:"cancelRecord",value:function(){this._recorderControl.stopRecord(),this._recorderControl.releaseRecord(),this._onCancelRecord&&this._onCancelRecord()}},{key:"isRecording",value:function(){return this._recorderControl.isRecording()}},{key:"getDuration",value:function(){var e=this._isInitRecorder?c.getCtxSampleRate():8e3;return this._samples.length/e}},{key:"getBlob",value:function(){return this._blob}},{key:"destroy",value:function(){this._recorderControl.stopPcmSilently(),this._recorderControl.stopRecord(),this._recorderControl.releaseRecord(),this.off("*"),this._recorderControl=null,this._samples=null,this._rawData=null,this._blob=null}},{key:"encodeAMRAsync",value:function(e,t){var i=this;return new Promise((function(a){i._runAMRWorker({command:"encode",samples:e,sampleRate:t},a)}))}},{key:"decodeAMRAsync",value:function(e){var t=this;return new Promise((function(i){t._runAMRWorker({command:"decode",buffer:e},i)}))}}],[{key:"rawAMRData2Blob",value:function(e){return new Blob([e.buffer],{type:"audio/amr"})}},{key:"throwAlreadyInitialized",value:function(){throw new Error("AMR has been initialized. For a new AMR, please generate a new BenzAMRRecorder().")}},{key:"isPlaySupported",value:function(){return c.isPlaySupported()}},{key:"isRecordSupported",value:function(){return c.isRecordSupported()}}]),t}();return f}))}).call(this,i("c8ba"))},ae7e:function(e,t,i){"use strict";i("2b00")},ae8f:function(e,t,i){e.exports=i.p+"static/img/appid-demo-3-1.c89acd75.svg"},aeae:function(e,t,i){"use strict";i("35b3")},af03:function(e,t,i){var a=i("d039");e.exports=function(e){return a((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},af0d:function(e,t,i){},af1b:function(e,t,i){},af2d:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"label-detail-tab"},[i("el-card",{staticClass:"mb10 detail-card-div",attrs:{shadow:"hover"}},[i("svg",{staticClass:"icon-labelDetail",attrs:{width:100,height:100}},[i("use",{attrs:{href:"#icon-labelDetail"}})]),i("div",{staticClass:"info-div ml15"},[i("div",{staticClass:"title mb15"},[e._v(" "+e._s(e.labelDetail.ruleName)+" ")]),i("div",{staticClass:"creator-div flex"},[i("div",{staticClass:"label-item flex"},[i("div",{staticClass:"label"},[e._v("创建时间:")]),i("span",{staticClass:"message-content"},[e._v(e._s(e.labelDetail.createTime))])]),i("div",{staticClass:"label-item flex",staticStyle:{"margin-left":"50px"}},[i("div",{staticClass:"label"},[e._v("创建人:")]),i("span",{staticClass:"message-content"},[e._v(e._s(e.labelDetail.createBy))])])]),3===e.labelType||1==e.labelType?i("div",{staticClass:"mt5 flex label-item"},[i("div",{staticClass:"label"},[e._v("使用员工:")]),i("div",{staticClass:"message-content"},[e.userList.length+e.departmentList.length!==0?[i("ByLengthUserShow",{attrs:{"department-list":e.departmentList,"user-list":e.userList,"max-length":e.MAXSHOWLENGTH}}),i("span",[e._v(e._s(e.userAndDepartmentList.length>e.MAXSHOWLENGTH?"等"+e.userAndDepartmentList.length+"个":""))])]:i("span",[e._v("全部员工")]),0!==Object.keys(e.labelDetail).length&&e.userList.length+e.departmentList.length>e.MAXSHOWLENGTH?i("span",{staticClass:"ml10 theme-text-color",staticStyle:{cursor:"pointer"},on:{click:e.onShowMore}},[e._v(" 查看 ")]):e._e()],2)]):e._e(),3===e.labelType?i("div",{staticClass:"cycle-div flex"},[i("div",{staticClass:"mt5 label-item flex"},[i("div",{staticClass:"label"},[e._v("生效周期:")]),e.labelDetail.effectBeginTime&&e.labelDetail.effectEndTime?i("span",{staticClass:"message-content"},[e._v(e._s(e.labelDetail.effectBeginTime)+" ~ "+e._s(e.labelDetail.effectEndTime)+" ")]):e._e()])]):e._e()])]),i("div",{staticClass:"rule-list-container"},[i("div",{staticClass:"rule-list-header mb20"},[i("div",{staticClass:"config-title"},[e._v("场景")]),i("div",[e.labelType===e.AUTOLABEL_TYPE["keyWords"]?i("div",{staticClass:"ml20"},[i("div",{staticClass:"flex mb5"},[i("div",{staticClass:"scene-text"},[e._v("为触发以下关键词的客户打上标签")]),0!==Object.keys(e.labelDetail).length?i("div",{staticClass:"tag-list"},e._l(e.labelDetail.tagList,(function(t){return i("el-tag",{key:t.tagId,attrs:{type:"info"}},[e._v(e._s(t.tagName))])})),1):e._e()]),i("el-card",{staticStyle:{width:"600px"}},[i("div",{staticStyle:{display:"flex"}},[i("div",{staticClass:"key-words"},[e._v("模糊匹配:")]),i("div",{staticStyle:{width:"500px"}},e._l(e.labelDetail.fuzzyMatchKeywordList,(function(t,a){return i("el-tag",{key:a,staticClass:"user-tag",attrs:{size:"medium"}},[e._v(" "+e._s(t)+" ")])})),1)]),i("div",{staticStyle:{display:"flex","margin-top":"5px"}},[i("div",{staticClass:"key-words"},[e._v("精准匹配:")]),i("div",{staticStyle:{width:"500px"}},e._l(e.labelDetail.exactMatchKeywordList,(function(t,a){return i("el-tag",{key:a,staticClass:"user-tag",attrs:{size:"medium"}},[e._v(" "+e._s(t)+" ")])})),1)])])],1):e._e(),i("SceneList",{attrs:{"rule-detail":!0,"scene-list":e.sceneList,"label-type":e.labelType},on:{"update:sceneList":function(t){e.sceneList=t},"update:scene-list":function(t){e.sceneList=t}}})],1)])]),i("UseEmployeeModal",{attrs:{title:"使用员工",visible:e.useEmployeeVisible,"user-list":e.userList,"department-list":e.departmentList},on:{"update:visible":function(t){e.useEmployeeVisible=t}}})],1)},n=[],r=i("c7eb"),s=i("5530"),o=i("1da1"),l=i("2909"),c=(i("99af"),i("d81d"),i("fb6a"),i("260e")),u=i("dd70"),d=i("2986"),p=i("62d3"),f=i("e7de"),A=5,h=1,m=2,g={name:"",components:{UseEmployeeModal:p["default"],SceneList:c["default"],ByLengthUserShow:f["a"]},inject:["labelRuleInfo"],data:function(){return{sceneList:[],reluDetail:!0,AUTOLABEL_TYPE:u["j"],MAXSHOWLENGTH:A,FUZZYKEYWORDS:h,ACCURATEKEYWORDS:m,useEmployeeVisible:!1,labelDetail:{}}},computed:{labelType:function(){return this.labelRuleInfo.labelType},ruleId:function(){return this.labelRuleInfo.ruleId},userList:function(){var e=this.labelDetail.userList;return e&&Object(l["a"])(e)||[]},departmentList:function(){var e=this.labelDetail.departmentList;return e&&Object(l["a"])(e)||[]},userAndDepartmentList:function(){return[].concat(Object(l["a"])(this.userList),Object(l["a"])(this.departmentList))}},created:function(){this.getRuleDetail()},mounted:function(){},methods:{getRuleDetail:function(){var e=this;return Object(o["a"])(Object(r["a"])().mark((function t(){var i,a,n;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:n={ruleId:e.ruleId},t.t0=e.labelType,t.next=t.t0===u["j"]["keyWords"]?4:t.t0===u["j"]["intoGroup"]?8:t.t0===u["j"]["newCustomer"]?13:18;break;case 4:return t.next=6,Object(d["q"])(n);case 6:return a=t.sent,t.abrupt("break",18);case 8:return t.next=10,Object(d["m"])(n);case 10:return a=t.sent,e.sceneList=null===(i=a.data.groupSceneList)||void 0===i?void 0:i.map((function(e){return Object(s["a"])(Object(s["a"])({},e),{},{chatRoomList:e.groupList})})),t.abrupt("break",18);case 13:return t.next=15,Object(d["r"])(n);case 15:return a=t.sent,e.sceneList=Object(l["a"])(a.data.customerSceneList),t.abrupt("break",18);case 18:e.labelDetail=a.data;case 19:case"end":return t.stop()}}),t)})))()},onShowMore:function(){this.useEmployeeVisible=!0},dealName:function(e,t){return 0===e.length&&0===t.length?"全部员工":t.length+e.length>A?"等"+(t.length+e.length)+"人":""},dealSplit:function(e){var t="",i=e.slice(0,A);return i.map((function(e,a){t+=a===i.length-1?e.userName:e.userName+"、"})),t}}},v=g,b=(i("89b2"),i("2877")),y=Object(b["a"])(v,a,n,!1,null,"031ed074",null);t["default"]=y.exports},af31:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",e._b({attrs:{width:"800px","append-to-body":"","close-on-click-modal":!1},on:{opened:e.modalOpened,close:e.onClose}},"el-dialog",e.$attrs,!1),[i("el-row",[i("el-col",{style:{height:"350px"},attrs:{xs:24,md:12}},[e.visible?i("vue-cropper",{ref:"cropper",attrs:{img:e.options.img,info:!0,"auto-crop":e.options.autoCrop,"auto-crop-width":e.options.autoCropWidth,"auto-crop-height":e.options.autoCropHeight,"fixed-box":e.options.fixedBox},on:{realTime:e.realTime}}):e._e()],1),i("el-col",{style:{height:"350px"},attrs:{xs:24,md:12}},[i("div",{staticClass:"avatar-upload-preview"},[i("img",{style:e.previews.img,attrs:{src:e.previews.url}})])])],1),i("br"),i("el-row",[i("el-col",{attrs:{lg:2,md:2}},[i("el-upload",{attrs:{action:"#","http-request":e.requestUpload,"show-file-list":!1,"before-upload":e.beforeUpload}},[i("el-button",{attrs:{size:"small"}},[e._v(" 上传 "),i("i",{staticClass:"el-icon-upload el-icon--right"})])],1)],1),i("el-col",{attrs:{lg:{span:1,offset:2},md:2}},[i("el-button",{attrs:{icon:"el-icon-plus",size:"small"},on:{click:function(t){return e.changeScale(1)}}})],1),i("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[i("el-button",{attrs:{icon:"el-icon-minus",size:"small"},on:{click:function(t){return e.changeScale(-1)}}})],1),i("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[i("el-button",{attrs:{icon:"el-icon-refresh-left",size:"small"},on:{click:function(t){return e.rotateLeft()}}})],1),i("el-col",{attrs:{lg:{span:1,offset:1},md:2}},[i("el-button",{attrs:{icon:"el-icon-refresh-right",size:"small"},on:{click:function(t){return e.rotateRight()}}})],1),i("el-col",{attrs:{lg:{span:2,offset:6},md:2}},[i("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.uploadImg()}}},[e._v("提 交")])],1)],1)],1)},n=[],r=i("c7eb"),s=i("1da1"),o=(i("b0c0"),i("7e79")),l=i("dd70"),c=200,u={name:"TailoringImg",components:{VueCropper:o["VueCropper"]},props:{uploadFieldName:{type:String,default:"file"},uploadImgUrl:{type:String,default:""}},data:function(){return{visible:!1,options:{img:this.uploadImgUrl,autoCrop:!0,autoCropWidth:c,autoCropHeight:c,fixedBox:!0},previews:{},MEDIA_TYPE_POSTER:l["cc"],file:{}}},created:function(){},mounted:function(){},methods:{onClose:function(){this.$emit("update:visible",!1),this.options.img=""},modalOpened:function(){this.visible=!0},realTime:function(e){this.previews=e},requestUpload:function(e){var t=e.file;this.file=t},beforeUpload:function(e){var t=this;if(-1===e.type.indexOf("image/"))this.msgError("文件格式错误,请上传图片类型,如:JPG,PNG后缀的文件。");else{var i=new FileReader;i.readAsDataURL(e),i.onload=function(){t.options.img=i.result,t.previews.fileName=e.name}}},changeScale:function(e){e=e||1,this.$refs.cropper.changeScale(e)},rotateLeft:function(){this.$refs.cropper.rotateLeft()},rotateRight:function(){this.$refs.cropper.rotateRight()},uploadImg:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var i;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=new FormData,t.next=3,e.$refs.cropper.getCropBlob((function(t){var a=new File([t],e.file.name,{type:"image/jpeg"});i.append(e.uploadFieldName,a),i.append("fileName",e.file.name),e.$emit("handleUpload",i)}));case 3:case"end":return t.stop()}}),t)})))()}}},d=u,p=i("2877"),f=Object(p["a"])(d,a,n,!1,null,"f9e81062",null);t["a"]=f.exports},afcf:function(e,t,i){"use strict";i.d(t,"a",(function(){return s})),i.d(t,"e",(function(){return o})),i.d(t,"d",(function(){return l})),i.d(t,"b",(function(){return c})),i.d(t,"c",(function(){return u}));var a=i("5530"),n=i("b775"),r=(window.CONFIG.services.wecom,window.CONFIG.services.wecom+"/user/v3");function s(e){return Object(n["a"])({url:"/wecom/resigned/transfer",method:"post",data:e})}function o(e){return Object(n["a"])({url:r+"/leaveUserNoAllocateList",params:Object(a["a"])(Object(a["a"])({},e),{},{isAllocate:0})})}function l(e){return Object(n["a"])({url:r+"/leaveUserAllocateList",params:Object(a["a"])(Object(a["a"])({},e),{},{isAllocate:1})})}function c(e){return Object(n["a"])({url:"/wecom/resigned/transfer/customerRecord",params:e})}function u(e){return Object(n["a"])({url:"/wecom/resigned/transfer/groupRecord",params:e})}},aff9:function(e,t,i){"use strict";i("4fdc")},b01a:function(e,t,i){"use strict";i("8e13")},b0473:function(e,t,i){"use strict";i("d4f4")},b0bb:function(e,t,i){"use strict";i("ca84f")},b131:function(e,t,i){},b156:function(e,t,i){},b175:function(e,t,i){e.exports=i.p+"static/img/customer-step2-1.d08c607d.jpg"},b18e:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"quick-demo"},[a("div",{staticClass:"quick-div",style:0===e.active?" height: 500px;":""},[1===e.active?a("el-alert",{attrs:{title:"您的企业还未完成应用配置,请根据第二步提示操作。",type:"warning","show-icon":"",closable:!1}}):e._e(),a("div",{staticClass:"step-div"},[a("el-steps",{attrs:{direction:"vertical",space:60,active:e.active,"finish-status":"success"}},[a("el-step",{attrs:{title:"授权"}},[0===e.active?a("template",{staticClass:"scan-login",slot:"description"},[a("div",{staticClass:"orange tip"},[e._v(" 请使用企业微信管理员扫描以下二维码授权,允许系统客服人员为您安装应用 ")]),a("div",{staticClass:"qrcode-div"},[a("el-image",{attrs:{src:e.qrcodeUrl,fit:"fit"}})],1)]):e._e()],2),1===e.active?a("el-step",{attrs:{title:"安装应用"}},[a("template",{staticClass:"config-callback",slot:"description"},[a("div",{staticClass:"tip gray-color"},[e._v(" 完成授权后,客服人员将在2个工作日内为企业安装应用,请耐心等待。 ")]),a("div",{staticClass:"orange tip"},[e._v(" 安装期间,您将收到企业微信团队发出的通知,请按照以下步骤,协助安装。 ")]),a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[a("div",{staticClass:"content-title-text"},[a("div",[e._v(" (1) ")]),a("div",[a("span",[e._v("授权应用权限;")]),a("div",{staticStyle:{"margin-top":"10px"}},[e._v("收到请求变更权限通知后,点击“查看详情”,进入变更权限页面,同意授权。操作后,等待客服人员上线应用。")]),a("div",{staticClass:"step-img"},[a("el-image",{staticClass:"part-img",attrs:{src:i("cd6d"),"preview-src-list":[i("cd6d")]}}),a("i",{staticClass:"el-icon-d-arrow-right"}),a("el-image",{staticClass:"part-img",attrs:{src:i("b680f"),"preview-src-list":[i("b680f")]}}),a("i",{staticClass:"el-icon-d-arrow-right"}),a("el-image",{staticClass:"part-img",attrs:{src:i("31f6"),"preview-src-list":[i("31f6")]}})],1)])])])]),a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[a("div",{staticClass:"content-title-text"},[a("div",[e._v(" (2) ")]),a("div",[a("span",[e._v("配置应用可见范围;")]),a("div",{staticStyle:{"margin-top":"10px"}},[e._v("收到设置可见范围通知后,点击“查看详情”,进入配置页面,设置可见范围后,可见范围下员工可使用系统功能,请默认设置根部门。")]),a("div",{staticClass:"step-img"},[a("el-image",{staticClass:"part-img",attrs:{src:i("39c5"),"preview-src-list":[i("39c5")]}}),a("i",{staticClass:"el-icon-d-arrow-right"}),a("el-image",{staticClass:"part-img",attrs:{src:i("4bb1"),"preview-src-list":[i("4bb1")]}}),a("i",{staticClass:"el-icon-d-arrow-right"}),a("el-image",{staticClass:"part-img",attrs:{src:i("a231"),"preview-src-list":[i("a231")]}}),a("i",{staticClass:"el-icon-d-arrow-right"}),a("el-image",{staticClass:"part-img",attrs:{src:i("7e25"),"preview-src-list":[i("7e25")]}})],1)])])])]),a("div",{staticStyle:{margin:"15px 0",color:"black"}},[e._v(" (3)配置完可见范围,点击该按钮,验证企微配置是否完成。 ")]),a("el-button",{staticStyle:{"margin-left":"30px"},attrs:{type:"primary"},on:{click:e.callBackTotal}},[e._v(" 完成可见范围配置 ")])],1)],2):e._e()],1)],1),a("el-dialog",{staticClass:"quick-config-dialog",attrs:{"close-on-click-modal":!1,"append-to-body":!1,title:"企微配置",visible:e.dialogVisible,width:"450px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("i",{staticClass:"iconfont icon-arrow"}),a("div",{staticClass:"quick-tip"},[e._v(" 您的企业还未安装应用,不能正常使用系统功能,该操作较复杂,请授权客服人员为您安装并配置应用信息。 ")]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.onGotoAutoConfig}},[e._v("前往授权")])],1)]),a("el-dialog",{staticClass:"config-dialog",attrs:{title:"温馨提示",visible:e.endConfig,width:"520px","close-on-click-modal":!1},on:{"update:visible":function(t){e.endConfig=t}}},[a("div",{staticStyle:{"text-indent":"2em","font-size":"15px"}},[e._v(" 恭喜,您已经完成当前企业的应用安装和配置,现在可以使用系统功能了,如需开启会话存档和侧边栏功能, 请稍后根据页面中提示进行操作。 ")]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.completeConfiguration}},[e._v("知道了")])],1)]),a("el-dialog",{staticClass:"config-dialog",attrs:{title:"操作须知",visible:e.notEndConfig,width:"460px","close-on-click-modal":!1},on:{"update:visible":function(t){e.notEndConfig=t}}},[a("div",{staticClass:"prompt"},[a("div",{staticClass:"icon"},[a("i",{staticClass:"el-icon-warning"})]),a("div",{staticClass:"text"},[a("div",[e._v("您的应用未安装或未完成可见范围配置。")]),a("div",{staticStyle:{"margin-top":"10px"}},[e._v(" 1. 如果未收到企业微信团队发出的安装通知,请耐心等待,客服人员将在收到授权请求后2个工作日内处理; ")]),a("div",{staticStyle:{"margin-top":"10px"}},[e._v(" 2. 如果已收到安装通知,则请完成应用的可见范围配置。 ")])])]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.notEndConfig=!1}}},[e._v("知道了")])],1)])],1)])},n=[],r=i("c7eb"),s=i("1da1"),o=i("2ff4"),l=i("dd70"),c=3e3,u="2",d=1e4,p={props:{reset:{type:Boolean,default:!1}},data:function(){return{settime:"",NORMAL:l["wc"],AUTH_ENADLE:l["i"],active:0,dialogVisible:!1,endConfig:!1,notEndConfig:!1,qrcodeUrl:""}},computed:{enterPriseWechatConfig:function(){return this.$store.state.enterPriseWechatConfig}},watch:{},created:function(){var e=this;this.isAuth(),this.getDkQrCode(),this.reset?(this.dialogVisible=!1,this.active=0,setTimeout((function(){e.settime=setInterval(e.isScanCode,c),e.isScanCode()}),d)):(this.settime=setInterval(this.isScanCode,c),this.isScanCode())},mounted:function(){},methods:{isAuth:function(){this.enterPriseWechatConfig.status!==l["wc"]||"wp"!==this.enterPriseWechatConfig.corpId.substring(0,u)||this.enterPriseWechatConfig.authorized||(this.dialogVisible=!0),this.enterPriseWechatConfig.status!==l["i"]||"ww"!==this.enterPriseWechatConfig.corpId.substring(0,u)&&!this.enterPriseWechatConfig.authorized||(this.active=1)},getDkQrCode:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var i;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o["d"]({});case 2:i=t.sent,e.qrcodeUrl=i.data;case 4:case"end":return t.stop()}}),t)})))()},isScanCode:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var i,a;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o["f"]({});case 2:if(i=t.sent,!i.data.authSuccess){t.next=10;break}return t.next=6,o["e"]({});case 6:a=t.sent,e.$store.commit("SET_CONFIG",a.data),e.active=1,clearInterval(e.settime);case 10:case"end":return t.stop()}}),t)})))()},onGotoAutoConfig:function(){this.dialogVisible=!1},completeConfiguration:function(){this.endConfig=!1,this.$emit("changeConfiguration",!0)},callBackTotal:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var i;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o["e"]({});case 2:i=t.sent,"ww"!==i.data.corpId.substring(0,u)&&!i.data.authorized||i.data.status!==u?(e.$store.commit("SET_CONFIG",i.data),e.endConfig=!0):e.notEndConfig=!0;case 4:case"end":return t.stop()}}),t)})))()}}},f=p,A=(i("79a7"),i("a2e7"),i("2877")),h=Object(A["a"])(f,a,n,!1,null,"85612d34",null);t["default"]=h.exports},b18f:function(e,t,i){e.exports=i.p+"static/img/security-unconfig.462de224.svg"},b19b:function(e,t,i){},b19f:function(e,t,i){},b1c6:function(e,t,i){},b1d8:function(e,t,i){"use strict";i("ed8c")},b28d:function(e,t,i){"use strict";i("cf1a")},b29e:function(e,t,i){"use strict";i("5f1c")},b2b1:function(e,t,i){e.exports=i.p+"static/img/企微活码移动1.7dddfc9f.png"},b2d4:function(e,t,i){e.exports=i.p+"static/img/contact-step3-4.a7e2faae.jpg"},b311:function(e,t,i){
|
||
/*!
|
||
* clipboard.js v2.0.4
|
||
* https://zenorocha.github.io/clipboard.js
|
||
*
|
||
* Licensed MIT © Zeno Rocha
|
||
*/
|
||
(function(t,i){e.exports=i()})(0,(function(){return function(e){var t={};function i(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=e,i.c=t,i.d=function(e,t,a){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(a,n,function(t){return e[t]}.bind(null,n));return a},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=0)}([function(e,t,i){"use strict";var a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=function(){function e(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,i,a){return i&&e(t.prototype,i),a&&e(t,a),t}}(),r=i(1),s=d(r),o=i(3),l=d(o),c=i(4),u=d(c);function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function A(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=function(e){function t(e,i){p(this,t);var a=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.resolveOptions(i),a.listenClick(e),a}return A(t,e),n(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof e.action?e.action:this.defaultAction,this.target="function"===typeof e.target?e.target:this.defaultTarget,this.text="function"===typeof e.text?e.text:this.defaultText,this.container="object"===a(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,u.default)(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new s.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return m("action",e)}},{key:"defaultTarget",value:function(e){var t=m("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return m("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"===typeof e?[e]:e,i=!!document.queryCommandSupported;return t.forEach((function(e){i=i&&!!document.queryCommandSupported(e)})),i}}]),t}(l.default);function m(e,t){var i="data-clipboard-"+e;if(t.hasAttribute(i))return t.getAttribute(i)}e.exports=h},function(e,t,i){"use strict";var a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=function(){function e(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,i,a){return i&&e(t.prototype,i),a&&e(t,a),t}}(),r=i(2),s=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var c=function(){function e(t){l(this,e),this.resolveOptions(t),this.initSelection()}return n(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var i=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=i+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,s.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,s.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==("undefined"===typeof e?"undefined":a(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=c},function(e,t){function i(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var i=e.hasAttribute("readonly");i||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),i||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var a=window.getSelection(),n=document.createRange();n.selectNodeContents(e),a.removeAllRanges(),a.addRange(n),t=a.toString()}return t}e.exports=i},function(e,t){function i(){}i.prototype={on:function(e,t,i){var a=this.e||(this.e={});return(a[e]||(a[e]=[])).push({fn:t,ctx:i}),this},once:function(e,t,i){var a=this;function n(){a.off(e,n),t.apply(i,arguments)}return n._=t,this.on(e,n,i)},emit:function(e){var t=[].slice.call(arguments,1),i=((this.e||(this.e={}))[e]||[]).slice(),a=0,n=i.length;for(a;a<n;a++)i[a].fn.apply(i[a].ctx,t);return this},off:function(e,t){var i=this.e||(this.e={}),a=i[e],n=[];if(a&&t)for(var r=0,s=a.length;r<s;r++)a[r].fn!==t&&a[r].fn._!==t&&n.push(a[r]);return n.length?i[e]=n:delete i[e],this}},e.exports=i},function(e,t,i){var a=i(5),n=i(6);function r(e,t,i){if(!e&&!t&&!i)throw new Error("Missing required arguments");if(!a.string(t))throw new TypeError("Second argument must be a String");if(!a.fn(i))throw new TypeError("Third argument must be a Function");if(a.node(e))return s(e,t,i);if(a.nodeList(e))return o(e,t,i);if(a.string(e))return l(e,t,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function s(e,t,i){return e.addEventListener(t,i),{destroy:function(){e.removeEventListener(t,i)}}}function o(e,t,i){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,i)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,i)}))}}}function l(e,t,i){return n(document.body,e,t,i)}e.exports=r},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var i=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===i||"[object HTMLCollection]"===i)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"===typeof e||e instanceof String},t.fn=function(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t}},function(e,t,i){var a=i(7);function n(e,t,i,a,n){var r=s.apply(this,arguments);return e.addEventListener(i,r,n),{destroy:function(){e.removeEventListener(i,r,n)}}}function r(e,t,i,a,r){return"function"===typeof e.addEventListener?n.apply(null,arguments):"function"===typeof i?n.bind(null,document).apply(null,arguments):("string"===typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return n(e,t,i,a,r)})))}function s(e,t,i,n){return function(i){i.delegateTarget=a(i.target,t),i.delegateTarget&&n.call(e,i)}}e.exports=r},function(e,t){var i=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var a=Element.prototype;a.matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}function n(e,t){while(e&&e.nodeType!==i){if("function"===typeof e.matches&&e.matches(t))return e;e=e.parentNode}}e.exports=n}])}))},b3802:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("router-view")},n=[],r=i("2877"),s={},o=Object(r["a"])(s,a,n,!1,null,null,null);t["default"]=o.exports},b3a9:function(e,t,i){"use strict";i("a3c7")},b3bb:function(e,t,i){},b3c1:function(e,t,i){"use strict";i("e228")},b3c2:function(e,t,i){},b3c3:function(e,t,i){"use strict";i("acb6")},b444:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"content-item"},[i("el-form",{ref:"verbalTrickItemForm",staticClass:"content-form-item",attrs:{model:e.item,"label-width":"0",disabled:e.disabled}},[e.mediaType===e.MEDIA_TYPE_TEXT?[i("el-input",{style:{width:"360px"},attrs:{type:"textarea",placeholder:e.textPlaceholder,maxlength:1500,"show-word-limit":"",autosize:{minRows:4,maxRows:4},clearable:""},model:{value:e.item.content,callback:function(t){e.$set(e.item,"content",t)},expression:"item.content"}})]:e._e(),e.mediaType===e.MEDIA_TYPE_POSTER?[i("div",{staticClass:"item-div"},[i("el-input",{style:{width:"340px"},attrs:{placeholder:"必填,请填写图片标题,方便检索",autosize:{minRows:4,maxRows:4},clearable:"",maxlength:e.LIMIT_FILENAME,"show-word-limit":""},model:{value:e.item.title,callback:function(t){e.$set(e.item,"title",t)},expression:"item.title"}}),i("UploadDrag",{attrs:{text:"将图片拖到此处,或",tip:"只能上传jpg/png文件,且不超过2M",accept:"image/*","file-url":e.item.url,"file-name":e.item.title,"file-size":e.item.content,multiple:!1,"file-obj":e.item,"media-type":e.MEDIA_TYPE_POSTER,"limit-file-name":e.LIMIT_FILENAME,"disabled-edit":e.disabled},on:{"update:fileUrl":function(t){return e.$set(e.item,"url",t)},"update:file-url":function(t){return e.$set(e.item,"url",t)},"update:fileName":function(t){return e.$set(e.item,"title",t)},"update:file-name":function(t){return e.$set(e.item,"title",t)},"update:fileSize":function(t){return e.$set(e.item,"content",t)},"update:file-size":function(t){return e.$set(e.item,"content",t)}}})],1)]:e._e(),e.mediaType===e.MEDIA_TYPE_VIDEO?[i("div",{staticClass:"item-div"},[i("el-input",{style:{width:"340px"},attrs:{placeholder:"必填,请填写视频标题,方便检索",autosize:{minRows:4,maxRows:4},clearable:"",maxlength:32,"show-word-limit":""},model:{value:e.item.title,callback:function(t){e.$set(e.item,"title",t)},expression:"item.title"}}),i("UploadDrag",{attrs:{text:"将视频拖到此处,或",tip:"只能上传MP4文件,且不超过10M",accept:"video/*","file-url":e.item.url,"file-name":e.item.title,"file-size":e.item.content,multiple:!1,"media-type":e.MEDIA_TYPE_VIDEO,"file-obj":e.item,"limit-file-name":e.LIMIT_FILENAME,"disabled-edit":e.disabled},on:{"update:fileUrl":function(t){return e.$set(e.item,"url",t)},"update:file-url":function(t){return e.$set(e.item,"url",t)},"update:fileName":function(t){return e.$set(e.item,"title",t)},"update:file-name":function(t){return e.$set(e.item,"title",t)},"update:fileSize":function(t){return e.$set(e.item,"content",t)},"update:file-size":function(t){return e.$set(e.item,"content",t)}}})],1)]:e._e(),e.mediaType===e.MEDIA_TYPE_FILE?[i("div",{staticClass:"item-div"},[i("el-input",{style:{width:"340px"},attrs:{placeholder:"必填,请填写文件标题,方便检索",autosize:{minRows:4,maxRows:4},maxlength:32,"show-word-limit":"",clearable:""},model:{value:e.item.title,callback:function(t){e.$set(e.item,"title",t)},expression:"item.title"}}),i("UploadDrag",{attrs:{text:"将文件拖到此处,或",tip:"支持上传doc、pdf等文件,且不超过20M","file-url":e.item.url,"file-name":e.item.title,"file-size":e.item.content,multiple:!1,"media-type":e.MEDIA_TYPE_FILE,"file-obj":e.item,"limit-file-name":e.LIMIT_FILENAME,"disabled-edit":e.disabled},on:{"update:fileUrl":function(t){return e.$set(e.item,"url",t)},"update:file-url":function(t){return e.$set(e.item,"url",t)},"update:fileName":function(t){return e.$set(e.item,"title",t)},"update:file-name":function(t){return e.$set(e.item,"title",t)},"update:fileSize":function(t){return e.$set(e.item,"content",t)},"update:file-size":function(t){return e.$set(e.item,"content",t)}}})],1)]:e._e(),e.mediaType===e.MEDIA_TYPE_RADARLINK?[i("div",{staticClass:"item-div"},[i("RadarLink",{attrs:{"class-name":"material-preview","radar-title":e.radarTitle,"link-title":e.item.title,"cover-url":e.item.coverUrl,content:e.item.content}})],1)]:e._e(),e.mediaType===e.MEDIA_TYPE_SMARTFORM?[i("div",{staticClass:"form-link"},[i("div",{staticClass:"msg-card-info"},[i("div",{staticClass:"msg-card-title"},[e._v(e._s(e.item.formName||e.item.form.formName))]),i("div",{staticClass:"msg-card-desc intwoline"},[e._v(e._s(e.item.description||e.item.form.description))])]),i("svg-icon",{attrs:{"icon-class":"form-preview","class-name":"form-preview"}})],1)]:e._e(),e.mediaType===e.MEDIA_TYPE_IMGLINK?[i("div",{staticClass:"item-div"},[i("el-radio-group",{model:{value:e.item.isDefined,callback:function(t){e.$set(e.item,"isDefined",t)},expression:"item.isDefined"}},[i("el-radio",{attrs:{label:e.DEFAULT_LINK}},[e._v("使用链接默认信息")]),i("el-radio",{attrs:{label:e.CUSTOM_LINK}},[e._v("自定义链接信息")])],1),e.item.isDefined!==e.DEFAULT_LINK?i("div",[i("el-form-item",{attrs:{"label-width":"0",prop:"url"}},[i("el-input",{style:{width:"340px"},attrs:{placeholder:"必填,请填写链接访问地址",autosize:{minRows:4,maxRows:4},clearable:""},model:{value:e.item.url,callback:function(t){e.$set(e.item,"url",t)},expression:"item.url"}})],1),i("el-form-item",{attrs:{"label-width":"0",prop:"title"}},[i("el-input",{style:{width:"340px"},attrs:{type:"textarea",placeholder:"必填,请填写链接的标题",maxlength:e.LINK_TITLE_MAXLENGTH,"show-word-limit":"",autosize:{minRows:4,maxRows:4},clearable:""},model:{value:e.item.title,callback:function(t){e.$set(e.item,"title",t)},expression:"item.title"}})],1),i("el-input",{style:{width:"340px"},attrs:{type:"textarea",placeholder:"选填,请填写链接的摘要。默认是“"+e.IMG_LINK_DIGEST+"”",maxlength:e.LINK_CONTENT_MAXLENGTH,"show-word-limit":"",autosize:{minRows:4,maxRows:4},clearable:""},model:{value:e.item.content,callback:function(t){e.$set(e.item,"content",t)},expression:"item.content"}}),i("UploadDrag",{attrs:{text:"将封面拖到此处,或",tip:"只能上传jpg/png文件,且不超过2M","media-type":e.MEDIA_TYPE_POSTER,"file-obj":Object.assign({},e.item,{url:e.item.coverUrl}),"file-url":e.item.coverUrl,accept:"image/*",multiple:!1,"show-content":!1,"limit-file-name":e.LIMIT_FILENAME,"disabled-edit":e.disabled},on:{"update:fileUrl":function(t){return e.$set(e.item,"coverUrl",t)},"update:file-url":function(t){return e.$set(e.item,"coverUrl",t)}}}),i("VerbalTrickImgLink",{attrs:{title:e.item.title,content:e.item.content,"cover-url":e.item.coverUrl}})],1):i("div",[i("el-form-item",{attrs:{"label-width":"0",prop:"url"}},[i("el-input",{style:{width:"340px"},attrs:{placeholder:"必填,请填写链接访问地址",autosize:{minRows:4,maxRows:4},clearable:""},on:{change:e.sendWordsUrl},model:{value:e.item.url,callback:function(t){e.$set(e.item,"url",t)},expression:"item.url"}})],1),i("VerbalTrickImgLink",{attrs:{title:e.item.title,content:e.item.content,"cover-url":e.item.coverUrl}})],1)],1)]:e._e(),e.mediaType===e.MEDIA_TYPE_MINIAPP?[i("div",{staticClass:"item-div"},[i("el-form-item",{attrs:{"label-width":"0",prop:"accountOriginalId"}},[i("el-input",{style:{width:"340px"},attrs:{placeholder:"必填,请填写与企业关联小程序的账号原始ID",autosize:{minRows:4,maxRows:4},clearable:""},model:{value:e.item.accountOriginalId,callback:function(t){e.$set(e.item,"accountOriginalId",t)},expression:"item.accountOriginalId"}})],1),i("el-form-item",{attrs:{"label-width":"0",prop:"appid"}},[i("el-input",{style:{width:"340px"},attrs:{placeholder:"必填,请填写与企业关联小程序的appid",autosize:{minRows:4,maxRows:4},clearable:""},model:{value:e.item.appid,callback:function(t){e.$set(e.item,"appid",t)},expression:"item.appid"}})],1),i("el-form-item",{attrs:{"label-width":"0",prop:"url"}},[i("el-input",{style:{width:"340px"},attrs:{placeholder:"必填,请填写小程序消息打开后的路径,.html后缀",autosize:{minRows:4,maxRows:4},clearable:""},model:{value:e.item.url,callback:function(t){e.$set(e.item,"url",t)},expression:"item.url"}})],1),i("el-form-item",{attrs:{"label-width":"0",prop:"title"}},[i("el-input",{style:{width:"340px"},attrs:{placeholder:"必填,请填写小程序的标题",maxlength:"32","show-word-limit":"",autosize:{minRows:4,maxRows:4},clearable:""},model:{value:e.item.title,callback:function(t){e.$set(e.item,"title",t)},expression:"item.title"}})],1),i("UploadDrag",{attrs:{text:"将封面拖到此处,或",tip:"只能上传jpg/png文件,且不超过2M","media-type":e.MEDIA_TYPE_POSTER,"file-obj":Object.assign({},e.item,{url:e.item.coverUrl}),"file-url":e.item.coverUrl,accept:"image/*",multiple:!1,"show-content":!1,"limit-file-name":e.LIMIT_FILENAME,"disabled-edit":e.disabled},on:{"update:fileUrl":function(t){return e.$set(e.item,"coverUrl",t)},"update:file-url":function(t){return e.$set(e.item,"coverUrl",t)}}}),i("VerbalTrickAppId",{attrs:{title:e.item.title,"cover-url":e.item.coverUrl}})],1)]:e._e(),i("MoveTool",{attrs:{index:e.contentIndex,item:e.item,list:e.allContentList,"show-tool":e.showTool},on:{"update:list":function(t){e.allContentList=t},getRemoveList:e.getRemoveList}})],2)],1)},n=[],r=i("c7eb"),s=i("1da1"),o=i("5530"),l=(i("b0c0"),i("a9e3"),i("9911"),i("dd70")),c=i("ba70"),u=i("de60"),d=i("7d08"),p=i("d239"),f=i("9543"),A=i("7d3b"),h=32,m={name:"",components:{MoveTool:c["a"],UploadDrag:u["a"],VerbalTrickImgLink:d["default"],VerbalTrickAppId:p["default"],RadarLink:A["default"]},props:{mediaType:{type:String,default:l["fc"]},contentIndex:{type:Number,default:0},formData:{type:Object,default:function(){}},contentList:{type:Array,default:function(){return[]}},item:{type:Object,default:function(){}},textPlaceholder:{type:String,default:"请填写文字"},showTool:{type:Array,default:function(){return["placedAtTop","moveTop","moveBottom","remove"]}},disabled:{type:Boolean,default:!1}},data:function(){return{LINK_TITLE_MAXLENGTH:l["Pb"],LINK_CONTENT_MAXLENGTH:l["Ob"],MEDIA_TYPE_RADARLINK:l["dc"],DEFAULT_LINK:l["L"],CUSTOM_LINK:l["D"],MEDIA_TYPE_TEXT:l["fc"],MEDIA_TYPE_POSTER:l["cc"],MEDIA_TYPE_VIDEO:l["gc"],MEDIA_TYPE_FILE:l["Zb"],MEDIA_TYPE_IMGLINK:l["ac"],MEDIA_TYPE_MINIAPP:l["bc"],DEFAULT_IMG:l["K"],uploadFile:{},LIMIT_FILENAME:h,IMG_LINK_DIGEST:l["Cb"],MEDIA_TYPE_SMARTFORM:l["ec"]}},computed:{allContentList:{get:function(){return this.contentList},set:function(e){this.$emit("update:contentList",e)}},radarTitle:function(){var e,t=Object(o["a"])({},this.item);return(null===(e=t.radar)||void 0===e?void 0:e.radarTitle)||t.radarTitle}},watch:{uploadFile:function(e){this.allContentList[this.contentIndex].title=e.name}},created:function(){},methods:{getRemoveList:function(e){this.$emit("getRemoveList",e)},sendWordsUrl:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.item.url&&Object(f["d"])({url:e.item.url}).then((function(t){var i,a;e.item.content=null===(i=t.data)||void 0===i||null===(i=i.desc)||void 0===i?void 0:i.substring(0,l["Ob"]),e.item.title=null===(a=t.data)||void 0===a||null===(a=a.title)||void 0===a?void 0:a.substring(0,l["Pb"]);var n=4;if(!t.data.isUrl&&t.data.image){if("data"===t.data.image.substring(0,n))return void(e.radarLink.coverUrl=l["K"].link);var r=e.item.url.split("/");e.item.coverUrl="https://"+r[2]+("/"!==t.data.image[0]?"/":"")+t.data.image}else e.item.coverUrl=t.data.image}));case 1:case"end":return t.stop()}}),t)})))()}}},g=m,v=(i("fbf2"),i("2877")),b=Object(v["a"])(g,a,n,!1,null,"f65e6ba6",null);t["default"]=b.exports},b4cc:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"h100"},[i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{staticClass:"demo-form-inline",attrs:{id:"roleTestSearch",inline:!0,model:e.form,"label-width":"100px"}},[i("el-row",[i("el-form-item",[i("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请填写发送者的姓名/昵称"},model:{value:e.form.Ename,callback:function(t){e.$set(e.form,"Ename",t)},expression:"form.Ename"}})],1),i("el-form-item",[i("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请填写接收者的姓名/昵称"},model:{value:e.form.Cname,callback:function(t){e.$set(e.form,"Cname",t)},expression:"form.Cname"}})],1),i("el-form-item",[i("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入聊天内容"},model:{value:e.form.Scontent,callback:function(t){e.$set(e.form,"Scontent",t)},expression:"form.Scontent"}})],1),i("el-form-item",[i("el-date-picker",{staticStyle:{width:"240px"},attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right","default-time":["00:00:00","23:59:59"]},model:{value:e.form.Stime,callback:function(t){e.$set(e.form,"Stime",t)},expression:"form.Stime"}})],1),i("el-form-item",[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.searchList()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1)],1)],1)]},proxy:!0},{key:"data",fn:function(){return[i("div",{staticClass:"content",attrs:{id:"roleTestContent"}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{size:"medium",data:e.fileData,height:e.tableHeight}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.fileData.length}})],1),i("el-table-column",{attrs:{prop:"date",label:"发送者",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{class:(t.row.fromInfo&&t.row.fromInfo.type?"user-item-center":"")+" user-item"},[i("img",{staticClass:"avatar",attrs:{src:t.row.fromInfo&&(t.row.fromInfo.avatar||t.row.fromInfo.avatarMediaid)||e.defaultAvatar}}),i("div",[t.row.fromInfo?i("span",{staticClass:"user-name"},[e._v(e._s(t.row.fromInfo.name))]):e._e(),t.row.fromInfo?i("span",{class:t.row.fromInfo.type===e.wxType?"wx-type-flag":"corp-type-name"},[e._v(e._s(e.renderUserInfo(t.row.fromInfo)))]):e._e(),i("div",{staticClass:"cus-dept"},[e._v(e._s(t.row.fromInfo&&t.row.fromInfo.mainDepartment&&e.departmentList[t.row.fromInfo.mainDepartment]?e.departmentList[t.row.fromInfo.mainDepartment].name:""))])])])]}}])}),i("el-table-column",{attrs:{prop:"date",label:"接收者",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{class:(t.row.toListInfo&&t.row.toListInfo.type?"user-item-center":"")+" user-item"},[i("img",{staticClass:"avatar",attrs:{src:t.row.toListInfo&&(t.row.toListInfo.avatar||t.row.toListInfo.avatarMediaid)||e.defaultAvatar},on:{error:e.defImg}}),i("div",[t.row.toListInfo?i("span",{staticClass:"user-name"},[e._v(e._s(t.row.toListInfo.name||t.row.toListInfo.groupName))]):e._e(),t.row.toListInfo?i("span",{class:t.row.toListInfo.type===e.wxType?"wx-type-flag":"corp-type-name"},[e._v(e._s(e.renderUserInfo(t.row.toListInfo)))]):e._e(),i("div",{staticClass:"cus-dept"},[e._v(e._s(t.row.toListInfo&&t.row.toListInfo.mainDepartment&&e.departmentList[t.row.toListInfo.mainDepartment]?e.departmentList[t.row.toListInfo.mainDepartment].name:""))])])])]}}])}),i("el-table-column",{attrs:{prop:"name",label:"消息内容"},scopedSlots:e._u([{key:"default",fn:function(e){return[i("chat",{attrs:{item:e.row}})]}}])}),i("el-table-column",{attrs:{label:"发送状态",width:"160","label-class-name":"send-label-cell","class-name":"send-cell"},scopedSlots:e._u([{key:"header",fn:function(){return[i("el-select",{staticClass:"noborder send-type-select",attrs:{size:"mini"},on:{change:function(t){return e.chechName(e.floorRange)}},model:{value:e.floorRange,callback:function(t){e.floorRange=t},expression:"floorRange"}},e._l(e.displayOptions,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)]},proxy:!0},{key:"default",fn:function(t){return[i("div",{staticClass:"pers"},[""==t.row.action?i("span"):"send"==t.row.action?i("span",[i("span",{staticClass:"green"}),e._v(" 已发送 ")]):"recall"==t.row.action?i("span",[i("span",{staticClass:"red"}),e._v(" 已撤回 ")]):"switch"==t.row.action?i("span",[i("span",{staticClass:"gay"}),e._v(" 企业日志 ")]):e._e()])]}}])}),i("el-table-column",{attrs:{prop:"address",label:"发送时间",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.parseTime(t.row.msgTime))+" ")]}}])}),i("el-table-column",{attrs:{label:"操作",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.viewContext(a)}}},[e._v("查看上下文")])]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.currentPage,limit:e.pageSize,disabled:e.loading},on:{"update:page":function(t){e.currentPage=t},"update:limit":function(t){e.pageSize=t},pagination:e.currentChange}})],1)]},proxy:!0}])}),i("CheckContext",{attrs:{visible:e.checkContextVisible,"check-context-query":e.checkContextQuery,"chat-type":e.chatType},on:{"update:visible":function(t){e.checkContextVisible=t}}})],1)},n=[],r=i("5530"),s=i("c7eb"),o=i("1da1"),l=(i("d81d"),i("a9e3"),i("d3b7"),i("cc48")),c=i("b66d"),u=i("dd70"),d=i("b741"),p=i("cf45"),f=i("e77d"),A=i("96d5"),h=i("e2e0"),m={components:{RightContainer:c["a"],chat:d["default"],EmptyDefaultIcon:f["a"],CheckContext:A["default"]},mixins:[h["a"]],data:function(){return{wxType:u["Cd"],corpType:u["u"],form:{Ename:"",Cname:"",Scontent:"",Stime:""},currentPage:1,total:0,pageSize:u["Ic"],ac:"",fileData:[],floorRange:"发送状态",displayOptions:[{value:"",label:"全部"},{value:"send",label:"已发送"},{value:"recall",label:"已撤回"}],searchHeight:120,tableHeight:100,defaultAvatar:u["J"],departmentList:[],checkContextVisible:!1,checkContextQuery:null,chatType:"employee",loading:!1}},mounted:function(){var e=this;this.init(),this.calcHeight(),setTimeout((function(){e.calcTableHeight()}),200)},created:function(){this.getDepartmentList()},methods:{viewContext:function(e){var t;this.chatType=null!==(t=e.fromInfo)&&void 0!==t&&t.userId?"employee":"user",this.checkContextQuery={msgId:e.msgId,fromId:(null===e||void 0===e?void 0:e.fromInfo.userId)||(null===e||void 0===e?void 0:e.fromInfo.externalUserid)},e.roomId?this.checkContextQuery.roomId=e.roomId:this.checkContextQuery.receiveId=(null===e||void 0===e?void 0:e.toListInfo.userId)||(null===e||void 0===e?void 0:e.toListInfo.externalUserid),this.checkContextVisible=!0},getDepartmentList:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i,a,n;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("GetDepartmentList");case 2:if(i=t.sent,a={},i.length>0)for(n=0;n<i.length;n++)a[i[n].id]=i[n];e.departmentList=a;case 6:case"end":return t.stop()}}),t)})))()},defImg:function(e){var t=e.srcElement;t.src=this.defaultAvatar,t.onerror=null},searchList:function(){this.init(!1)},calcHeight:function(){var e,t=document.getElementById("roleTestSearch");t&&(e=t.clientHeight,this.searchHeight=e)},calcTableHeight:function(){var e,t=document.getElementById("roleTestContent");if(t){e=t.clientHeight;var i=47;this.tableHeight=e-i}},currentChange:function(){this.init(!0)},init:function(e){var t=this;e||(this.currentPage=1);var i={fromName:this.form.Ename,receiveName:this.form.Cname,keyWord:this.form.Scontent,beginTime:this.form.Stime?this.parseTime(this.form.Stime[0]):"",endTime:this.form.Stime?this.parseTime(this.form.Stime[1]):"",pageNum:this.currentPage,action:this.ac,pageSize:this.pageSize};this.loading=!0,l["a"].getChatAllList(i).then((function(e){var i=e.data.list.map((function(e){if("revoke"===e.msgType){var t,i=null!==(t=e.revoke.content)&&void 0!==t?t:{};return e=Object(r["a"])(Object(r["a"])({},e),i),e.action="recall",e.msgType=i.msgtype,e.msgTime=i.msgtime,e}return e}));t.fileData=i,t.total=Number(e.data.total)})).finally((function(){t.modifyButtonStatus(),t.loading=!1}))},chechName:function(e){""===e?(this.floorRange="全部",this.ac=""):"send"===e?(this.floorRange="已发送",this.ac="send"):"recall"===e&&(this.floorRange="已撤回",this.ac="recall"),this.init()},resetQuery:function(){this.form={Ename:"",Cname:"",Scontent:"",Stime:""},this.searchList()},renderUserInfo:function(e){return Object(p["o"])(e)}}},g=m,v=(i("8197"),i("2877")),b=Object(v["a"])(g,a,n,!1,null,"6aa105ea",null);t["default"]=b.exports},b4cd:function(e,t,i){},b564:function(e,t,i){},b58a:function(e,t,i){},b595:function(e,t,i){},b5b7c:function(e,t,i){"use strict";i("3d67")},b5c0:function(e,t,i){},b5e7:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-drawer",e._g(e._b({staticClass:"welcome-msg-detail-drawer",attrs:{"before-close":e.handleClose,"append-to-body":!0}},"el-drawer",e.$attrs,!1),e.$listeners),[i("div",{staticClass:"welcome-msg-detail"},[i("div",{staticClass:"welcome-msg-detail-info"},[i("div",{staticClass:"welcome-msg-detail-item mb10"},[i("div",{staticClass:"welcome-msg-detail-title"},[e._v("客户范围")]),i("div",{staticClass:"filter flex"},e._l(e.weMsgTlpFilterRules,(function(t,a){return i("div",{key:a,staticClass:"fcc mb10"},[i("div",{class:["filterType","filterValue"].includes(t.type)?"filter-item fcc":"ml5 mr5"},[e._v(" "+e._s(e.getLabel(t))+" ")])])})),0)]),i("div",{staticClass:"welcome-msg-detail-item"},[i("div",{staticClass:"welcome-msg-detail-title"},[e._v(" 欢迎语内容 ")]),i("div",{staticClass:"default-welcome-div"},[i("div",{staticClass:"welcome-msg-title"},[e._v("默认欢迎语")]),i("div",{staticClass:"default-msg-info mb10"},[e._v(e._s(e.item.defaultWelcomeMsg))]),e._l(e.item.defaultMaterialList,(function(t,a){return i("div",{key:a,staticClass:"detail-item mb10"},[i("VerbalTrickDetailPreview",{attrs:{item:e.transferMaterialTypeItem(t)}})],1)}))],2),e.item.weMsgTlpSpecialRules&&e.item.weMsgTlpSpecialRules.length?i("div",{staticClass:"special-welcome-div"},e._l(e.item.weMsgTlpSpecialRules,(function(t,a){return i("div",{key:a},[i("WelcomeDetailSpecial",{attrs:{"special-item":t,"transfer-material-type-item":e.transferMaterialTypeItem,"special-index":a}})],1)})),0):e._e()])]),i("div",{staticClass:"edit-btn"},[i("el-button",{directives:[{name:"show",rawName:"v-show",value:e.checkPermi("edit"),expression:"checkPermi('edit')"}],attrs:{type:"primary"},on:{click:function(){return e.handleEdit(e.item)}}},[e._v("编辑")])],1)])])},n=[],r=i("ade3"),s=i("5530"),o=(i("caad"),i("d3b7"),i("159b"),i("dbe0")),l=i("8e4e"),c=i("dd70"),u={name:"WelcomeDetailDrawer",components:{VerbalTrickDetailPreview:o["default"],WelcomeDetailSpecial:l["default"]},props:{transferMaterialTypeItem:{type:Function,default:function(){}},item:{type:Object,default:function(){}},handleEdit:{type:Function,default:function(){}},checkPermi:{type:Function,default:function(){return!1}}},data:function(){return{SOURCE:c["gd"],GENDER:c["ab"],AND:c["h"],OR:c["Hc"]}},computed:{weMsgTlpFilterRules:function(){var e;return null!==(e=this.item.weMsgTlpFilterRules)&&void 0!==e&&e.length?this.dealFilterItem(this.item.weMsgTlpFilterRules):this.dealFilterItem([{filterType:0,filterCondition:!0,filterValue:null}])}},methods:{handleClose:function(){this.$emit("update:visible",!1)},getFilterValue:function(e){return e.filterType!==c["gd"]?Object(s["a"])(Object(s["a"])({},c["Xc"]),{},Object(r["a"])({},c["e"],"所有性别"))[e.filterValue]||"所有性别":Object(s["a"])(Object(s["a"])({},c["d"]),{},Object(r["a"])({},c["f"],"所有来源"))[e.filterValue]||"所有来源"},dealFilterItem:function(e){var t=[];return e.forEach((function(e,i){for(var a in i&&t.push({type:"multiFilterAssociation"}),e)["filterType","filterCondition","filterValue"].includes(a)&&t.push(Object(s["a"])(Object(r["a"])(Object(r["a"])({},a,e[a]),"type",a),"filterValue"===a&&{filterType:e["filterType"]}))})),t},getLabel:function(e){switch(e.type){case"filterType":return e.filterType===c["gd"]?"来源":"性别";case"filterValue":return this.getFilterValue(e);case"filterCondition":return e.filterCondition?"是":"不是";case"multiFilterAssociation":return",".concat(this.item.multiFilterAssociation?"且":"或")}}}},d=u,p=(i("2808"),i("2877")),f=Object(p["a"])(d,a,n,!1,null,"3ec9b27c",null);t["default"]=f.exports},b60b:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"overview-page"},[i("RightContainer",{attrs:{"config-keys":["chatSecret"],"page-title":"统计 [有效沟通客户数] 、 [有效沟通率] "},scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{inline:!0,model:e.query,"label-width":"100px",size:"small"}},[i("el-form-item",[i("div",{staticClass:"tag-input",on:{click:function(t){e.dialogVisibleSelectUser=!0}}},[e.userAndDepartmentList.length?e._l(e.userAndDepartmentList,(function(e,t){return i("el-tag",{key:t,staticClass:"theme-text-color user-tag iaic"},[i("TagUserShow",{attrs:{name:e.name,"show-icon":!e.userId}})],1)})):i("span",{staticClass:"tag-place"},[e._v("请选择员工/部门")])],2)]),i("el-form-item",[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1,"picker-options":e.pickerOptions},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),i("el-form-item",[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.onSearch()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetForm()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"data",fn:function(){return[i("Statistics",{attrs:{"col-list":e.topLineColList,title:"数据总览"}},[i("template",{slot:"operate"},[i("el-popover",{attrs:{placement:"left-start",trigger:"hover",offset:10}},[i("div",{staticClass:"popover-content"},[i("div",{staticClass:"info"},[i("p",[e._v("聊天总数:员工有发过消息的单聊总数")]),i("p",[e._v("发送消息数:员工在单聊中发送的消息总数")]),i("p",[e._v("平均会话数:发送消息数/聊天总数")]),i("p",[e._v("平均首次回复时长:客户主动发起聊天,员工在一个自然日内首次回复的间隔时长的平均值")]),i("p",[e._v("回复率:客户主动发起聊天后,员工在一个自然日内有回复消息的聊天数/客户主动发起聊天数")]),i("p",[e._v("有效沟通客户数:在一个自然日内,和员工有3轮以上对话的客户数")]),i("p",[e._v("有效沟通率:有效沟通客户数/聊天总数")]),i("p",[e._v("客户好评率:从问卷表单中统计而来,员工收到的评价/(评价人数*10)")])]),i("div",{staticClass:"line"}),i("div",{staticClass:"notice"},[e._v(" 注意: "),i("div",[e._v(" 除“客户好评率”,表中所有统计数来源于会话存档,若员工未开启会话存档或客户拒绝存档,统计数将受影响 ")])])]),i("div",{staticClass:"statistic theme-text-color",attrs:{slot:"reference"},slot:"reference"},[e._v("统计说明")])])],1)],2),i("Statistics",{staticClass:"next-statistics",attrs:{"col-list":e.nextLineColList}}),i("div",{staticClass:"table-overview"},[i("div",{staticClass:"detail-title"},[e._v(" 数据详情 ")]),i("div",{staticClass:"forms-handle-btn"},[i("el-radio-group",{staticClass:"radio-group-div",attrs:{size:"medium"},on:{input:e.dimensionTypeChange},model:{value:e.dimensionType,callback:function(t){e.dimensionType=t},expression:"dimensionType"}},[i("el-radio-button",{attrs:{label:e.STAFF_DIMENSION}},[e._v("员工维度")]),i("el-radio-button",{attrs:{label:e.DATE_DIMENSION}},[e._v("日期维度")])],1),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["statistic:employeeService:export"],expression:"['statistic:employeeService:export']"}],staticClass:"btn-reset btn-export",on:{click:e.exportForms}},[e._v("导出报表")])],1),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",attrs:{data:e.list,"default-sort":{prop:"chatTotal",order:"descending"}},on:{"sort-change":e.changeTableSort}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.list.length}})],1),e.dimensionType===e.STAFF_DIMENSION?i("el-table-column",{attrs:{label:"员工",align:"center",width:"180"},scopedSlots:e._u([{key:"default",fn:function(e){var t=e.row;return[i("UserItem",{attrs:{data:t,"is-staff":!0}})]}}],null,!1,37180352)}):i("el-table-column",{attrs:{label:"日期",align:"center",prop:"time",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e._v(" "+e._s(i.time)+" ")]}}])}),i("el-table-column",{attrs:{sortable:"custom",prop:"chatTotal",label:"聊天总数","min-width":"120"}}),i("el-table-column",{attrs:{sortable:"custom",prop:"sendContactCnt",label:"发送消息数","min-width":"120"}}),i("el-table-column",{attrs:{sortable:"custom",prop:"averageChatTotal",label:"平均会话数","min-width":"120"}}),i("el-table-column",{attrs:{sortable:"custom",prop:"averageFirstReplyDuration",label:"平均首次回复时长","min-width":"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.averageFirstReplyDuration+"分钟"))])]}}])}),i("el-table-column",{attrs:{sortable:"custom",prop:"replyRate",label:"回复率","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.replyRate+"%"))])]}}])}),i("el-table-column",{attrs:{sortable:"custom",prop:"effectiveCommunicationCustomerCnt",label:"有效沟通客户数","min-width":"160"}}),i("el-table-column",{attrs:{sortable:"custom",prop:"effectiveCommunicationRate",label:"有效沟通率","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.effectiveCommunicationRate+"%"))])]}}])}),i("el-table-column",{attrs:{sortable:"custom",prop:"customerPositiveCommentsRate",label:"客户好评率","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.customerPositiveCommentsRate+"%"))])]}}])})],2),i("pagination",{attrs:{total:e.total,disabled:e.loading,page:e.query.pageNum,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}})],1),i("SelectUser",{attrs:{visible:e.dialogVisibleSelectUser,title:"选择员工/部门","is-only-leaf":!1,"selected-user-list":e.userAndDepartmentList},on:{"update:visible":function(t){e.dialogVisibleSelectUser=t},success:e.selectedUserOrDepartment}})]},proxy:!0}])})],1)},n=[],r=i("ade3"),s=i("5530"),o=(i("d81d"),i("fb6a"),i("4e82"),i("b64b"),i("d3b7"),i("159b"),i("515a")),l=i("c958"),c=i("069e"),u=i("e77d"),d=i("b66d"),p=i("86e8"),f=i("dd70"),A=i("c1df"),h=i.n(A),m=i("e2e0"),g=i("2ef0"),v=i("cf45"),b=i("48fb"),y=2592e6,_={ascending:"ASC",descending:"DESC",null:null},w={name:"EmployeeService",components:{RightContainer:d["a"],EmptyDefaultIcon:u["a"],Statistics:c["a"],SelectUser:l["a"],TagUserShow:o["a"],UserItem:p["a"]},mixins:[m["a"]],data:function(){var e=this;return{DATE_DIMENSION:f["G"],STAFF_DIMENSION:f["hd"],selectDate:"",pickerOptions:{disabledDate:function(t){if(""!==e.selectDate){var i=e.selectDate-y,a=e.selectDate+y;return t.getTime()<new Date(v["a"]).getTime()||t.getTime()>(new Date).getTime()||h()(t).isSame(new Date,"day")||t.getTime()<i||t.getTime()>a}return t.getTime()<new Date(v["a"]).getTime()||t.getTime()>(new Date).getTime()||h()(t).isSame(new Date,"day")},onPick:function(t){var i=t.maxDate,a=t.minDate;e.selectDate=a.getTime(),i&&(e.selectDate="")}},dateRange:[v["f"],v["f"]],userAndDepartmentList:[],query:{pageNum:1,pageSize:f["Ic"],beginTime:v["f"],endTime:v["f"]},total:0,list:[],dialogVisibleSelectUser:!1,loading:!1,topLineColList:[{title:"聊天总数",filed:"chatTotal",showPopover:!1},{title:"发送消息数",filed:"sendContactCnt",showPopover:!1},{title:"平均会话数",filed:"averageChatTotal",showPopover:!1},{title:"平均首次回复时长",filed:"averageFirstReplyDuration",showPopover:!1,unit:"分钟"}],nextLineColList:[{title:"回复率",filed:"replyRate",showPopover:!1,unit:"%"},{title:"有效沟通客户数",filed:"effectiveCommunicationCustomerCnt",showPopover:!1},{title:"有效沟通率",filed:"effectiveCommunicationRate",showPopover:!1,unit:"%"},{title:"客户好评率",filed:"customerPositiveCommentsRate",showPopover:!1,unit:"%"}],sortParams:{staffSort:{chatTotal:"descending"},dateSort:{sortName:"chatTotal",sortType:null}},dimensionType:f["hd"]}},computed:{companName:function(){return this.$store.state.enterPriseWechatConfig.companyName}},created:function(){this.onSearch()},methods:{dimensionTypeChange:function(){var e=this;if(this.dimensionType===f["hd"])Object.keys(this.sortParams.staffSort).forEach((function(t){var i;null===(i=e.$refs)||void 0===i||null===(i=i.table)||void 0===i||i.sort(t,e.sortParams.staffSort[t])}));else{var t,i=this.sortParams.dateSort,a=i.sortName,n=i.sortType;null===(t=this.$refs)||void 0===t||null===(t=t.table)||void 0===t||t.sort(a,n)}},setDataOverview:function(e,t){var i=this;e.forEach((function(e){i[e]=i[e].map((function(e){return Object(s["a"])(Object(s["a"])({},e),{},Object(r["a"])({},e.filed,t?t[e.filed]:""))}))}))},getDataOverview:function(){var e=this;Object(b["C"])(this.dealSearchPayload(!0)).then((function(t){e.setDataOverview(["topLineColList","nextLineColList"],t.data)}))},dealSearchPayload:function(e){var t=this;this.query.beginTime=this.dateRange[0],this.query.endTime=this.dateRange[1];var i=Object(g["cloneDeep"])(this.query);e&&(delete i.pageNum,delete i.pageSize);var a={};if(this.dimensionType===f["hd"])Object.keys(this.sortParams.staffSort).forEach((function(e){a["".concat(e,"Sort")]=_[t.sortParams.staffSort[e]]}));else{var n=this.sortParams.dateSort,r=n.sortName,o=n.sortType;a={sortName:r+"Sort",sortType:_[o]}}return Object(s["a"])(Object(s["a"])({},i),a)},getList:function(e){var t=this;e&&(this.query.pageNum=1),this.loading=!0;var i=this.dimensionType===f["hd"]?b["D"]:b["B"];i(this.dealSearchPayload()).then((function(e){t.list=t.dimensionType===f["hd"]?e.rows:t.dealPaging(e.rows),t.total=e.total})).finally((function(){t.loading=!1,t.modifyButtonStatus()}))},dealPaging:function(e){var t=this.query,i=t.pageNum,a=t.pageSize;return e.slice((i-1)*a,i*a)},onSearch:function(){this.getList(!0),this.getDataOverview()},resetForm:function(){var e,t;(this.query=this.$options.data().query,this.dateRange=this.$options.data().dateRange,this.userAndDepartmentList=[],this.dimensionType===f["hd"])?(this.sortParams.staffSort=this.$options.data().sortParams.staffSort,null===(e=this.$refs)||void 0===e||null===(e=e.table)||void 0===e||e.sort("chatTotal","descending")):(this.sortParams.dateSort=this.$options.data().sortParams.dateSort,null===(t=this.$refs)||void 0===t||null===(t=t.table)||void 0===t||t.sort("chatTotal","null"));this.getDataOverview()},selectedUserOrDepartment:function(e){this.userAndDepartmentList=e;var t=Object(v["F"])(e);this.query.userIds=t.useEmployeesList.map((function(e){return e.userId})),this.query.departmentIds=t.useDepartmentList.map((function(e){return e.id}))},exportForms:function(){var e=this,t=this.dimensionType===f["hd"]?b["o"]:b["n"];t(this.dealSearchPayload()).then((function(t){e.download(t.data.msg,!0)})).catch((function(){e.msgError("导出失败!")}))},changeTableSort:function(e){var t=e.prop,i=e.order;this.dimensionType===f["hd"]?this.sortParams.staffSort=Object(r["a"])({},t,i):this.sortParams.dateSort={sortName:t,sortType:i},this.getList(!0)}}},C=w,x=(i("e877"),i("2877")),k=Object(x["a"])(C,a,n,!1,null,"bd173898",null);t["default"]=k.exports},b654:function(e,t,i){},b66d:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",e._b({staticClass:"right-container"},"div",e.$attrs,!1),[i("div",{staticClass:"no-config-info"},[i("NoConfigInfo",{attrs:{message:e.noConfigMessage,"config-keys":e.configKeys,"page-title":e.pageTitle}})],1),e._t("header"),i("div",{staticClass:"search-form-container"},[e._t("search"),e._t("show-search-value"),e._t("search-operate-btn")],2),i("div",{staticClass:"show-data-wrapper"},[i("div",{staticClass:"operate-container"},[i("div",{staticClass:"operate-left"},[e._t("data-stat")],2),i("div",{staticClass:"operate-right"},[e._t("operate-btn")],2)]),i("div",{staticClass:"data-container"},[e._t("data")],2)])],2)},n=[],r=i("f710"),s={name:"RightContainer",components:{NoConfigInfo:r["a"]},props:{noConfigMessage:{type:String,default:""},configKeys:{type:Array,default:function(){return[]}},pageTitle:{type:String,default:""}},data:function(){return{}},computed:{},watch:{},created:function(){},mounted:function(){this.dealSearchTool(),window.addEventListener("resize",this.dealSearchTool)},beforeDestroy:function(){window.removeEventListener("resize",this.dealSearchTool)},methods:{dealSearchTool:function(){var e,t,i=20,a=null===(e=document.getElementsByClassName("fix-right-operate-btn"))||void 0===e?void 0:e[0],n=null===(t=document.getElementsByClassName("last-btn"))||void 0===t?void 0:t[0];if(n&&a){var r=n.offsetParent.clientWidth-(n.clientWidth+n.offsetLeft)||0;if(r-i<a.clientWidth){a.style.position="relative",a.style.bottom="initial",a.style.right="initial";var s=32;a.style.left="".concat(n.offsetParent.clientWidth-a.clientWidth-s,"px")}else a.style.position="absolute",a.style.bottom="15px",a.style.right="15px",a.style.left="initial"}}}},o=s,l=(i("c5a2"),i("2877")),c=i("381e"),u=i.n(c),d=Object(l["a"])(o,a,n,!1,null,"230c8b0e",null);"function"===typeof u.a&&u()(d);t["a"]=d.exports},b680f:function(e,t,i){e.exports=i.p+"static/img/config-step2-(1)-2.3445e39e.png"},b69d:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"contact-demo enterprise-wechat-demo"},[a("div",[a("el-steps",{staticClass:"step-div",attrs:{active:e.active,"align-center":""}},[a("el-step",{attrs:{title:"接收客户变更消息"}}),a("el-step",{attrs:{title:"接收企业变更消息"}})],1)],1),0===e.active?a("div",{staticClass:"content-div"},[a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v("(1)进入企业微信后台 "),a("el-link",{attrs:{type:"primary",href:"https://work.weixin.qq.com/wework_admin/frame#apps",target:"_blank"}},[e._v("【应用管理】")]),e._v(",点击联络易应用,找到“接收消息”,点击“设置API接收”。 ")],1),a("el-image",{staticClass:"part-img",attrs:{src:i("932e"),"preview-src-list":[i("932e")]}})],1),a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v(" (2)将【接收变更】的回调地址、Token和EncodingAESKey复制下来,填写到对应的输入框,点击保存按钮,完成配置。 ")]),a("el-image",{staticClass:"part-img",attrs:{src:i("5c90"),"preview-src-list":[i("5c90")]}})],1)]):e._e(),1===e.active?a("div",{staticClass:"content-div"},[a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v("(1)进入 "),a("el-link",{attrs:{type:"primary",href:"https://work.weixin.qq.com/wework_admin/frame#apps/contactsApi",target:"_blank"}},[e._v("【管理工具】-【通讯录同步】")]),e._v(" 页面。 ")],1),a("el-image",{staticClass:"part-img",attrs:{src:i("26b3"),"preview-src-list":[i("26b3")]}})],1),a("div",{staticClass:"part"},[e._m(0),a("el-image",{staticClass:"part-img",attrs:{src:i("46d4"),"preview-src-list":[i("46d4")]}})],1),a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v(" (3)在客户端确认操作后,企微后台弹窗将自动切换为可编辑状态,将左侧表单中“接收消息”的回调地址、Token、EncodingAESKey复制并填写到弹窗中,保存即可。 ")]),a("el-image",{staticClass:"part-img",attrs:{src:i("3715"),"preview-src-list":[i("3715")]}})],1)]):e._e(),a("div",{staticClass:"btn-div"},[0!=e.active?a("el-button",{staticStyle:{"margin-top":"12px"},on:{click:e.previousStep}},[e._v("上一步")]):e._e(),a("el-button",{staticStyle:{"margin-top":"12px"},attrs:{type:"primary"},on:{click:e.next}},[e._v(e._s(e.STEP_TEXT[e.active]))])],1)])},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"content-title"},[e._v(" (2)点击“已设置接收事件服务器”旁编辑按钮,"),i("span",{staticClass:"red"},[e._v("当前弹窗不要关闭,")]),e._v("此时企微客户端将收到一条企业微信团队发送的确认操作。 ")])}],r=1,s={components:{},props:{},data:function(){return{active:0,STEP_TEXT:{0:"下一步",1:"完成配置"}}},computed:{},watch:{},created:function(){},mounted:function(){},methods:{next:function(){1!==this.active?this.active=this.active+1:this.$emit("closeDrawer")},previousStep:function(){this.active--<0&&(this.active=r)}}},o=s,l=(i("080e"),i("2877")),c=Object(l["a"])(o,a,n,!1,null,"26fd5604",null);t["default"]=c.exports},b6fa:function(e,t,i){e.exports=i.p+"static/img/contact-step3-3.ae922e6b.jpg"},b741:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"chat-item-div"},[i("li",["location"==e.item.msgType?i("div",{staticClass:"msg-type-location"},[e._v(" [位置] "+e._s(e.item.location.address)+" ")]):"weapp"==e.item.msgType?i("div",{staticClass:"msg-type-weapp"},[e._v(" [小程序]"+e._s(e.item.weApp&&e.item.weApp.title||e.item.weapp&&e.item.weapp.title)+" ")]):"text"==e.item.msgType?i("div",{staticClass:"msgtype-text"},[e._v(" "+e._s(e.item.text.content)+" ")]):"mixed"==e.item.msgType?i("div",{staticClass:"msgtype-img"},[i("MixedList",{attrs:{mixed:e.item.mixed.item}})],1):"image"==e.item.msgType?i("div",{staticClass:"msgtype-img"},[i("ImgChatItem",{attrs:{"img-url":e.item.image.attachment}})],1):"video"==e.item.msgType?i("div",{staticClass:"msgtype-video"},[i("VideoChatItem",{attrs:{url:e.item.video.attachment}})],1):"voice"==e.item.msgType?i("div",{staticClass:"msgtype-voice"},[i("VoiceChatItem",{attrs:{item:e.item}})],1):"file"==e.item.msgType?i("div",{staticClass:"msgtype-file"},[i("div",{staticClass:"toe"},[e._v(" [文件] "),i("span",{staticClass:"file-name",attrs:{title:e.item.file.filename||e.item.file.fileName},on:{click:function(t){return e.down(e.item.file)}}},[e._v(e._s(e.item.file.filename||e.item.file.fileName))])])]):"card"==e.item.msgType?i("div",{staticClass:"msg-type-card"},[e._v(" [名片] "+e._s(e.item.card.userName||e.item.card.userId||e.item.card.username||e.item.card.userid)+" "),i("span",{class:e.renderWxFlag(e.item)?"wx-source":"source"},[e._v("@"+e._s(e.renderWxFlag(e.item)?"微信":e.item.card.corpName||e.item.card.corpname))])]):"link"==e.item.msgType?i("div",{staticClass:"msgtype-link"},[e._v(" [链接] "),i("a",{staticClass:"msg-type-link",attrs:{title:e.item.link.title,href:e.item.link.linkUrl||e.item.link.link_url,target:"_blank"}},[e._v(" "+e._s(e.item.link.title)+" ")])]):"external_redpacket"==e.item.msgType?i("div",{staticClass:"msgtype-redpacket"},[i("div",[e._v("[红包] "),e.item.redPacket||e.item.redpacket?i("span",[i("span",[e._v(e._s((e.item.redPacket.type||e.item.redpacket.type)&&(e.redpacketType[e.item.redPacket.type]||"未知红包类型"))+" | ")]),i("span",[e._v(e._s(e.item.redPacket.wish||e.item.redpacket.wish))])]):e._e()])]):"collect"==e.item.msgType?i("div",{staticClass:"msgtype-collect"},[e._v(" [投票] "+e._s(e.item.collect.title)+" ")]):"meeting"==e.item.msgType?i("div",{staticClass:"msgtype-meeting"},[e._v(" [会议] "+e._s(e.item.meeting.topic)+" ")]):"calendar"==e.item.msgType?i("div",{staticClass:"msgtype-calendar"},[e._v(" [日程] "+e._s(e.item.calendar.title)+" ")]):"sphfeed"==e.item.msgType?i("div",{staticClass:"msgtype-sphfeed"},[e._v(" [视频号] "+e._s((e.item.sphFeed||e.item.sphfeed)&&(e.item.sphFeed.feedDesc||e.item.sphfeed.feed_desc))+" ")]):"emotion"==e.item.msgType?i("div",{staticClass:"msgtype-img"},[i("ImgChatItem",{attrs:{"img-url":e.item.emotion.attachment}})],1):"docmsg"==e.item.msgType?i("div",{staticClass:"msg-doc"},[e._v(" [文档] "),i("a",{attrs:{href:e.item.doc.linkUrl||e.item.doc.linkurl,target:"_blank"}},[e._v(e._s(e.item.doc.title))])]):"chatrecord"==e.item.msgType?i("div",{staticClass:"msg-chatrecord"},[e._v(" [会话记录] "+e._s(e.item.chatReCord.title)+" ")]):e._e()])])},n=[],r=i("ade3"),s=(i("caad"),i("fda2"),i("451f"),i("0208")),o=i("f28d"),l=i("deeb"),c=i("6895"),u=i("cf45"),d=1,p=2,f=Object(r["a"])(Object(r["a"])({},d,"普通红包"),p,"拼手气群红包"),A={components:{VoiceChatItem:s["default"],VideoChatItem:o["default"],ImgChatItem:l["default"],MixedList:c["default"]},props:{item:{type:Object,default:function(){}}},data:function(){return{redpacketType:f}},mounted:function(){},methods:{down:function(e){Object(u["w"])(e.attachment,e.fileName||e.filename)},renderWxFlag:function(e){return["微信","微信联系人"].includes(e.card.corpName||e.card.corpname)}}},h=A,m=(i("9e55"),i("2877")),g=Object(m["a"])(h,a,n,!1,null,"159b1ead",null);t["default"]=g.exports},b75b:function(e,t,i){},b75f:function(e,t,i){"use strict";i("dd73")},b80f:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"base-info-page"},[i("div",{staticClass:"base-info-div"},[i("el-form",{ref:"form",staticClass:"form",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[i("div",{staticClass:"config-item"},[i("p",{staticClass:"config-title"},[e._v("基础设置")]),i("el-form-item",{attrs:{label:"活码名称",prop:"activityName"}},[i("el-input",{attrs:{placeholder:"请填写活码名称,向客户传达活动场景",maxlength:"32","show-word-limit":""},model:{value:e.form.activityName,callback:function(t){e.$set(e.form,"activityName",t)},expression:"form.activityName"}})],1),i("el-form-item",{attrs:{label:"活码描述",prop:"activityDesc"}},[i("el-input",{attrs:{type:"textarea",placeholder:"仅内部可见,请填写活码使用场景,方便应用",maxlength:"64","show-word-limit":""},model:{value:e.form.activityDesc,callback:function(t){e.$set(e.form,"activityDesc",t)},expression:"form.activityDesc"}})],1),i("el-form-item",{attrs:{label:"加群引导语"}},[i("el-input",{attrs:{type:"textarea",placeholder:"客户扫描客户群活码后进入页面可以看到的群介绍内容,引导客户加群",maxlength:"2000",rows:4,"show-word-limit":""},model:{value:e.form.guide,callback:function(t){e.$set(e.form,"guide",t)},expression:"form.guide"}})],1),i("el-form-item",{attrs:{label:"无法加群"}},[i("div",{staticClass:"unadd-group"},[i("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.showTip,callback:function(t){e.$set(e.form,"showTip",t)},expression:"form.showTip"}}),i("div",{staticClass:"tip"},[e._v("开启后, 页面底部显示无法进群按钮, 点击可查看提示内容")])],1),i("transition",{attrs:{name:"el-fade-in-linear"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.form.showTip,expression:"form.showTip"}],staticClass:"un-add-group-tip"},[i("el-alert",{attrs:{type:"warning",closable:!1,title:"当客户被分配到的群聊人数已满或进入异常,可联系客服处理"}}),i("el-form-item",{attrs:{label:"提示语"}},[i("el-input",{attrs:{placeholder:"请输入提示语",maxlength:"10","show-word-limit":""},model:{value:e.form.tipMsg,callback:function(t){e.$set(e.form,"tipMsg",t)},expression:"form.tipMsg"}})],1),i("el-form-item",{attrs:{label:"客服二维码"}},[i("div",{staticClass:"display: flex; align-items: center;"},[i("upload",{staticClass:"image-uploader",attrs:{"file-url":e.form.customerServerQrCode,"show-remove-file-icon":!0},on:{"update:fileUrl":function(t){return e.$set(e.form,"customerServerQrCode",t)},"update:file-url":function(t){return e.$set(e.form,"customerServerQrCode",t)}}},[i("div",{attrs:{slot:"tip"},slot:"tip"},[e._v("注:只能上传jpg/png格式图片,且不超过2M")])])],1)])],1)])],1)],1),i("div",{staticClass:"config-item"},[i("p",{staticClass:"config-title",staticStyle:{"margin-bottom":"16px"}},[i("span",{staticStyle:{color:"red","border-left":"none","margin-left":"0px","padding-left":"0px"}},[e._v("*")]),e._v("客户群设置"),i("span",[e._v("客户扫描客户群活码之后被分配的客户群")])]),e.form.createType===e.CREATE_TYPE["group"]?i("el-alert",{staticClass:"group-set-alert-div",attrs:{type:"warning",closable:!1}},[i("div",{staticClass:"group-set-alert"},[i("div",[e._v("1. 将按照客户群添加顺序为客户分配,若某个群已达进群上限,将自动分配下一个客户群")]),i("div",[e._v("2. 客户群扫码进群人数上限是200个,设置进群人数上限时需注意减去已存在人数,避免客户进群失败")]),i("div",[e._v("3. 上传的客户群二维码需和选择的客户群一致,否则会导致统计失败")]),i("div",[e._v("4. 企业微信后台生成的群二维码只有7天有效期")])])]):e._e(),e.form.createType===e.CREATE_TYPE["corp"]?i("el-alert",{staticClass:"group-set-alert-div",attrs:{type:"warning",closable:!1}},[i("div",{staticClass:"group-set-alert"},[i("div",[e._v("1. 按照企微活码添加顺序为客户分配,若某个活码已达进群上限,将自动分配下一个企微活码")]),i("div",[e._v(" 2. 企微活码最多可包含5个客户群,扫码进群人数上限是1000个,设置进群人数上限时需注意减去已存在人数,避免客户进群失败 ")]),i("div",[e._v("3. 不支持在小程序内识别企微活码,如果使用小程序推广活码,请引导客户截图后在微信内识别")]),e.isDKCorp?i("div",[e._v(" 4. 客户识别一次企微活码,则认为其已扫码进群,进群人数统计与实际扫码进群人数有误差 ")]):e._e()])]):e._e(),i("el-form-item",{attrs:{label:"进群方式","label-width":"85px"}},[i("el-radio-group",{attrs:{disabled:!!e.form.id},on:{change:e.changeCreateGroupType},model:{value:e.form.createType,callback:function(t){e.$set(e.form,"createType",t)},expression:"form.createType"}},[i("el-radio",{attrs:{label:e.CREATE_TYPE["group"]}},[e._v("群二维码")]),i("el-radio",{attrs:{label:e.CREATE_TYPE["corp"]}},[e._v("企微活码")])],1)],1),i("el-button",{staticClass:"btn-reset add-customer-btn",on:{click:function(){return e.openDialog()}}},[e._v(" "+e._s(e.form.createType===e.CREATE_TYPE["group"]?"添加客户群":"添加企微活码")+" ")]),i("ActuaList",{attrs:{"remove-list":e.removeList,form:e.form},on:{"update:removeList":function(t){e.removeList=t},"update:remove-list":function(t){e.removeList=t},"update:form":function(t){e.form=t},handleEditCode:e.handleEditCode}})],1),i("div",{staticClass:"config-item qrcode-config"},[i("p",{staticClass:"config-title",staticStyle:{"margin-bottom":"16px"}},[e._v("活码设置"),i("span",[e._v("设置个性化活码,添加企业形象")])]),i("el-form-item",{attrs:{label:"活码头像"}},[i("upload",{staticClass:"image-uploader",attrs:{"file-url":e.form.avatarUrl,"show-remove-file-icon":!0},on:{"update:fileUrl":function(t){return e.$set(e.form,"avatarUrl",t)},"update:file-url":function(t){return e.$set(e.form,"avatarUrl",t)},"update:file":e.handleUploadedHeadImage}},[i("div",{attrs:{slot:"tip"},slot:"tip"},[e._v("注:只能上传jpg/png格式图片,且不超过2M")])])],1),e.form.avatarUrl?i("div",{staticClass:"code-content"},[e.form.avatarUrl?i("el-image",{attrs:{src:e.form.avatarUrl,fit:"fit"}}):e._e()],1):e._e()],1)]),i("div",{staticClass:"qrcode-preview"},[i("PhoneDialog",{attrs:{title:e.form.activityName||"活码名称","custom-dom-flag":!0,"tool-show":!1}},[i("div",[i("div",{staticClass:"preview-guide"},[e._v(" "+e._s(e.form.guide||"加群引导语")+" ")]),i("div",{staticClass:"preview-code-box"},[i("div",{staticClass:"code-box-title"},[e._v("客户群")]),i("div",{staticClass:"code-content"}),i("transition",{attrs:{name:"el-fade-in-linear"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.form.showTip,expression:"form.showTip"}],staticClass:"preview-customer-service"},[i("el-button",{attrs:{type:"danger"}},[e._v(" 无法加群? ")])],1)])],1)])])],1),i("CustomerGroupModal",{directives:[{name:"show",rawName:"v-show",value:e.dialog,expression:"dialog"}],ref:"dialog",attrs:{visible:e.dialog,"is-edit-modal":e.isEditModal,"customer-group-list":e.form.actualList,"edit-index":e.editIndex},on:{"update:visible":function(t){e.dialog=t},"update:customerGroupList":function(t){return e.$set(e.form,"actualList",t)},"update:customer-group-list":function(t){return e.$set(e.form,"actualList",t)}}}),i("EnterpriseCodeModal",{directives:[{name:"show",rawName:"v-show",value:e.enterpriseCodeDialog,expression:"enterpriseCodeDialog"}],ref:"enterpriseCodeDialog",attrs:{visible:e.enterpriseCodeDialog,"is-edit-modal":e.isEditModal,"group-code-list":e.form.actualList,"edit-index":e.editIndex,"group-id":e.form.id},on:{"update:visible":function(t){e.enterpriseCodeDialog=t},"update:groupCodeList":function(t){return e.$set(e.form,"actualList",t)},"update:group-code-list":function(t){return e.$set(e.form,"actualList",t)}}})],1),i("div",{staticClass:"save-btn"},[i("RequestButton",{attrs:{type:"primary","request-method":e.submit,"button-type":"save"}},[e._v("保存")])],1)])},n=[],r=i("5530"),s=(i("d81d"),i("d3b7"),i("2ca0"),i("b850")),o=i("8bd5"),l=i("5504"),c=i("193e"),u=i("1362"),d=i("dd70"),p=i("52a9"),f=i("cf45"),A={components:{PhoneDialog:o["a"],CustomerGroupModal:l["default"],EnterpriseCodeModal:c["default"],ActuaList:u["default"],RequestButton:p["a"]},props:{groupCodeId:{type:String,default:""}},data:function(){return{form:{activityName:"",activityDesc:"",avatarUrl:"",guide:"",showTip:0,tipMsg:"",customerServerQrCode:"",actualList:[],createType:d["v"]["group"]},headImage:null,rules:{activityName:[{required:!0,message:"请输入活码名称",trigger:"blur"}],activityDesc:[{required:!0,message:"请输入活码描述",trigger:"blur"}]},dialog:!1,removeList:[],CREATE_TYPE:d["v"],enterpriseCodeDialog:!1,modalType:"add",editIndex:-1,loading:!1}},computed:{isEditModal:function(){return"edit"===this.modalType},isDKCorp:function(){return this.$store.state.serverInfo.dkCorp}},beforeUpdate:function(){Object(f["k"])(this.$options.data().form,this.form)},created:function(){this.groupCodeId&&this.getGroupDetail()},methods:{changeUploadUrl:function(e){return e.startsWith("/profile")?window.location.origin+e:e},add:function(){var e=this;this.$refs.form.validate((function(t){if(!t)return Object(f["i"])(e.$store,"save");e.loading=!0,Object(s["a"])(Object(r["a"])(Object(r["a"])({},e.form),{},{avatarUrl:e.changeUploadUrl(e.form.avatarUrl),customerServerQrCode:e.changeUploadUrl(e.form.customerServerQrCode),actualList:e.form.actualList.map((function(t,i){return e.form.createType===d["v"]["group"]&&(t.actualGroupQrCode=e.changeUploadUrl(t.actualGroupQrCode)),Object(r["a"])(Object(r["a"])({},t),{},{sortNo:i+1})}))})).then((function(){e.$store.commit("SET_ADD_FLAG",!0),e.$router.back()})).finally((function(){Object(f["i"])(e.$store,"save"),e.loading=!1}))}))},handleUploadedHeadImage:function(e){var t=this,i=new FileReader;i.readAsDataURL(e.raw),i.onload=function(){t.headImage=i.result}},update:function(){var e=this;this.$refs.form.validate((function(t){if(!t)return Object(f["i"])(e.$store,"save");e.loading=!0,Object(s["h"])(e.groupCodeId,Object(r["a"])(Object(r["a"])({},e.form),{},{avatarUrl:e.changeUploadUrl(e.form.avatarUrl),customerServerQrCode:e.changeUploadUrl(e.form.customerServerQrCode),actualList:e.form.actualList.map((function(t,i){return e.form.createType===d["v"]["group"]&&(t.actualGroupQrCode=e.changeUploadUrl(t.actualGroupQrCode)),Object(r["a"])(Object(r["a"])({},t),{},{sortNo:i+1})})),delActualIdList:e.removeList.map((function(e){return e.id}))})).then((function(){e.$store.commit("SET_ADD_FLAG",!1),e.$router.back()})).finally((function(){Object(f["i"])(e.$store,"save"),e.loading=!1}))}))},getGroupDetail:function(){var e=this;this.groupCodeId&&Object(s["e"])({id:this.groupCodeId}).then((function(t){var i,a=t.data;e.form={activityName:a.activityName,activityDesc:a.activityDesc,avatarUrl:a.avatarUrl,guide:a.guide,showTip:parseInt(a.showTip),tipMsg:a.tipMsg,customerServerQrCode:a.customerServerQrCode,uuid:a.uuid,codeUrl:a.codeUrl,actualList:null===(i=a.groupCodeDetailVOList)||void 0===i?void 0:i.map((function(e){return Object(r["a"])(Object(r["a"])({},e),{},{groupList:e.groupDetailVOList})})),id:a.id,createType:a.createType}}))},submit:function(){return this.form.actualList.length?this.groupCodeId?void this.update():this.add():(Object(f["i"])(this.$store,"save"),this.msgWarn("请设置客户群"))},openDialog:function(){var e=this.form.createType===d["v"]["group"]?"dialog":"enterpriseCodeDialog";this[e]=!0,this.$refs[e].initFormData(),this.modalType="add"},changeCreateGroupType:function(){this.form=Object(r["a"])(Object(r["a"])({},this.form),{},{actualList:[]})},handleEditCode:function(e,t){var i=this.form.createType===d["v"]["group"]?"dialog":"enterpriseCodeDialog";this[i]=!0,this.$refs[i].form=Object(r["a"])({},e),this.modalType="edit",this.editIndex=t}}},h=A,m=(i("e698"),i("9a3f"),i("2877")),g=Object(m["a"])(h,a,n,!1,null,"f487fab6",null);t["default"]=g.exports},b850:function(e,t,i){"use strict";i.d(t,"f",(function(){return r})),i.d(t,"a",(function(){return s})),i.d(t,"h",(function(){return o})),i.d(t,"e",(function(){return l})),i.d(t,"g",(function(){return c})),i.d(t,"c",(function(){return u})),i.d(t,"b",(function(){return d})),i.d(t,"d",(function(){return p}));var a=i("b775"),n=window.CONFIG.services.wecom+"/groupCode";function r(e){return Object(a["a"])({url:n+"/list",params:e})}function s(e){return Object(a["a"])({url:n+"/",method:"post",data:e})}function o(e,t){return Object(a["a"])({url:n+"/"+e,method:"put",data:t})}function l(e){return Object(a["a"])({url:n,params:e})}function c(e){return Object(a["a"])({url:n+"/"+e,method:"delete"})}function u(e){return Object(a["a"])({url:n+"/downloadBatch",params:{ids:e},responseType:"blob"})}function d(e){return Object(a["a"])({url:n+"/download",params:{id:e},responseType:"blob"})}function p(e){return Object(a["a"])({url:n+"/appLink",params:e})}},b85a:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"exchange-activities"},[i("el-dialog",{attrs:{title:"选择兑换活动",visible:e.Pvisible,"close-on-click-modal":!1,"before-close":e.onClose}},[i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticStyle:{height:"40px"},attrs:{inline:!0,model:e.query,"label-width":"100px",size:"small"}},[i("el-form-item",[i("el-input",{attrs:{placeholder:"请输入活动名称"},model:{value:e.query.activityName,callback:function(t){e.$set(e.query,"activityName",t)},expression:"query.activityName"}})],1),i("el-form-item",{attrs:{label:" "}},[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.onSearch()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetForm()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{"font-size":"14px"},attrs:{height:"300",data:e.list},on:{select:e.select}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{text:"暂无数据",length:e.list.length}})],1),i("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),i("el-table-column",{attrs:{prop:"activityName",label:"活动名称",align:"center",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-popover",{attrs:{"open-delay":600,placement:"top-start",trigger:"hover","popper-class":"tip-popover",content:""+a.activityName}},[i("div",{staticClass:"intwoline",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(a.activityName))])])]}}])}),i("el-table-column",{attrs:{label:"活动时间",align:"center",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[a.effectStartTime?i("div",[e._v(e._s(a.effectStartTime)+"~"+e._s(a.effectEndTime))]):e._e()]}}])}),i("el-table-column",{attrs:{align:"center",prop:"status",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",[e._v(e._s(a.remainInventory)+"/"+e._s(a.sumInventory))])]}},{key:"header",fn:function(){return[i("div",[i("span",[e._v("库存")]),i("el-popover",{attrs:{placement:"top-start",trigger:"hover","popper-class":"tip-popover",content:"库存即剩余未领取的兑换码"}},[i("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"14px"},attrs:{slot:"reference"},slot:"reference"})])],1)]},proxy:!0}])})],2)]},proxy:!0}])}),i("div",{staticClass:"footer"},[e.total>0?i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.query.pageNum,limit:e.query.pageSize,"pager-count":7,disabled:e.loading},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}}):i("div",{staticClass:"footer-text"},[e.checkPermi(["redeeomCode:activity:add"])?i("div",{staticClass:"use-active data-count-num",on:{click:function(t){e.openHowTouseActiveDrawer=!0}}},[e._v(" 如何使用兑换活动? ")]):i("div",[e._v(" 没有可用的兑换活动,请联系上级创建 ")])]),i("div",{staticClass:"btn"},[i("el-button",{on:{click:function(t){e.Pvisible=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)],1),i("HowToUse",{attrs:{visible:e.openHowTouseActiveDrawer,pvisible:e.Pvisible},on:{"update:visible":function(t){e.openHowTouseActiveDrawer=t},"update:pvisible":function(t){e.Pvisible=t}}})],1)},n=[],r=i("2909"),s=(i("d81d"),i("d3b7"),i("159b"),i("e77d")),o=i("b66d"),l=i("dd70"),c=i("54f4"),u=i("e350"),d=i("e2e0"),p=i("3e7a"),f=1,A={components:{EmptyDefaultIcon:s["a"],RightContainer:o["a"],HowToUse:p["default"]},mixins:[d["a"]],props:{visible:{type:Boolean,default:!1},selectedActiveList:{type:Array,default:function(){return[]}}},data:function(){return{list:[],loading:!1,query:{activityName:"",pageNum:f,pageSize:l["Ic"]},openHowTouseActiveDrawer:!1,total:0,activeList:[]}},computed:{Pvisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}}},watch:{Pvisible:function(e){e?(this.activeList=this.selectedActiveList,this.dealSelectActive()):this.$refs.multipleTable.clearSelection()}},created:function(){this.getList()},methods:{checkPermi:function(e){return Object(u["a"])(e)},dealSelectActive:function(){var e=this;this.list.map((function(t){var i;t.id===(null===(i=e.activeList[0])||void 0===i?void 0:i.id)&&e.$nextTick((function(){e.$refs.multipleTable&&e.$refs.multipleTable.toggleRowSelection(t,!0)}))}))},getList:function(e){var t=this;this.loading=!0,e&&(this.query.pageNum=e),Object(c["getConversionCodeActiveList"])(this.query).then((function(e){var i=e.rows,a=e.total;t.list=i,t.total=a,t.dealSelectActive()})).finally((function(){t.loading=!1,t.modifyButtonStatus()}))},select:function(e){var t=this;e.length?this.list.forEach((function(i){e[e.length-1]===i?(t.$refs.multipleTable.toggleRowSelection(i,!0),t.activeList=[i]):t.$refs.multipleTable.toggleRowSelection(i,!1)})):this.activeList=[]},onSearch:function(){this.getList(1)},resetForm:function(){this.query={activeName:"",pageNum:1,pageSize:l["Ic"]},this.getList()},submit:function(){if(!this.activeList.length)return this.msgWarn("请选择兑换码活动");this.$emit("success",Object(r["a"])(this.activeList)),this.Pvisible=!1},onClose:function(){this.$emit("update:visible",!1)}}},h=A,m=(i("9cb3"),i("2877")),g=Object(m["a"])(h,a,n,!1,null,"24649feb",null);t["a"]=g.exports},b895:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",e._g({attrs:{visible:e.visible,width:"500px",title:"客户范围","custom-class":"customer-scope-dialog"}},e.$listeners),e._l(e.customerDetail,(function(t,a){return i("div",{key:a},[i("div",{staticClass:"customer-scope-list"},[i("div",{staticClass:"item-label"},[e._v(e._s(t.label)+":")]),"userInfoList"===t.key?i("div",{staticClass:"user-item-value"},e._l(t.value,(function(a,n){return i("span",{key:n},[i("TagUserShow",{attrs:{name:a.departmentName||a.userName,"show-icon":!a.userId}}),i("span",{directives:[{name:"show",rawName:"v-show",value:n!==t.value.length-1,expression:"userIndex !== item.value.length-1"}]},[e._v("、")])],1)})),0):i("div",{staticClass:"item-value"},[e._v(" "+e._s(t.value)+" ")])])])})),0)},n=[],r=i("2909"),s=(i("99af"),i("4de4"),i("7db0"),i("caad"),i("a15b"),i("d81d"),i("b0c0"),i("a9e3"),i("d3b7"),i("ac1f"),i("2532"),i("5319"),i("cf45")),o=i("dd70"),l=i("c1df"),c=i.n(l),u=i("515a"),d={components:{TagUserShow:u["a"]},props:{sopDetail:{type:Object,default:function(){}},visible:{type:Boolean,default:!1}},data:function(){return{customerDetail:[]}},watch:{visible:function(e){e&&!this.customerDetail.length&&this.dealCustomerScopeInfo()}},created:function(){var e=this.$route.query,t=Number(e.sopType);[o["ed"]["activity"],o["ed"]["birthday"],o["ed"]["newCustomer"]].includes(t)&&Object(s["H"])(this.$store)},methods:{dealCustomerScopeInfo:function(){var e,t=this,i=this.sopDetail.sopCustomerFilter,a=i.gender,n=i.userInfoList,s=i.departmentInfoList,l=i.tagList,u=i.filterTagList,d=i.startTime,p=i.endTime,f=i.columnList,A=[{key:"userInfoList",label:"所属员工",value:[].concat(Object(r["a"])(n||[]),Object(r["a"])(s||[]))},{key:"gender",label:"性别",value:o["ib"][a]},{key:"tagList",label:"客户标签",value:(l||[]).map((function(e){return e.name})).join("、")},{key:"addTime",label:"添加时间",value:d&&p?c()(d).format("YYYY-MM-DD")+" ~ "+c()(p).format("YYYY-MM-DD"):void 0}];this.customerDetail=A.filter((function(e){return Array.isArray(e.value)?e.value.length:e.value}));var h=f.map((function(e){if(e.type===o["c"])return{label:"来源",value:o["d"][e.propertyValue]};var i,a,n=t.$store.state.customerProperty.customPropertyObj,r=n[e.extendPropertyId];return r.type===o["B"]["singleRadio"]||r.type===o["B"]["selectSingle"]?{label:r.name,value:null===(i=r.optionList.find((function(t){return t.id===e.propertyValue})))||void 0===i?void 0:i.multipleValue}:r.type===o["B"]["dateField"]||"出生日期"===r.name?{label:r.name,value:null===(a=e.propertyValue)||void 0===a?void 0:a.replace(",","~")}:void 0}));(e=this.customerDetail).push.apply(e,Object(r["a"])(h));var m=(u||[]).map((function(e){return e.name})).join("、");m&&this.customerDetail.push({key:"filterTagList",label:"过滤标签",value:m})}}},p=d,f=(i("bb6f"),i("2877")),A=Object(f["a"])(p,a,n,!1,null,"a10064f2",null);t["default"]=A.exports},b8b3:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"page"},[i("ReturnPage",{attrs:{path:"/operationsCenter/drainageCode/customerGroup"}}),i("div",{staticClass:"wrap-body"},[i("el-alert",{attrs:{title:"功能说明",type:"info",description:"客户扫描生成的客户群活码,将打开一个页面,引导客户进群,页面里显示第一个群聊,若该群聊已过期或达到进群上限,则自动分配下一个群聊。","show-icon":"",closable:!1}}),i("div",{staticClass:"wrap-body-form"},[i("BaseInfo",{ref:"baseInfo",attrs:{"group-code-id":e.groupCodeId}})],1)],1)],1)},n=[],r=i("b80f"),s={components:{BaseInfo:r["default"]},data:function(){return{groupCode:null,groupCodeId:""}},created:function(){this.groupCodeId=this.$route.query.groupCodeId},methods:{}},o=s,l=(i("3da4"),i("f6c9"),i("2877")),c=Object(l["a"])(o,a,n,!1,null,"cfede880",null);t["default"]=c.exports},b8d5:function(e,t,i){"use strict";i("f309")},b8d7:function(e,t,i){"use strict";i("4190")},b8ecd:function(e,t,i){"use strict";i("5d6d")},b95d:function(e,t,i){},b9b5:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{staticClass:"foot-button-reverse-dialog-wrapper tag-group-dialog",attrs:{title:(e.form.groupId&&!e.isAddTag?"编辑":"添加")+"标签/组",visible:e.Pvisible,width:"500px","append-to-body":"","close-on-click-modal":!1},on:{"update:visible":function(t){e.Pvisible=t}}},[i("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"标签组",prop:"groupName"}},[i("el-input",{attrs:{maxlength:"15","show-word-limit":"",placeholder:"请输入标签组名称,创建后不可修改",disabled:!!e.form.groupId},model:{value:e.form.groupName,callback:function(t){e.$set(e.form,"groupName","string"===typeof t?t.trim():t)},expression:"form.groupName"}})],1),i("el-form-item",{attrs:{label:"标签",prop:"weTags"}},[e.visibleAdd?i("el-input",{ref:"saveTagInput",staticClass:"input-new-tag",attrs:{maxlength:"30","show-word-limit":""},on:{blur:e.newInputConfirm},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.newInputConfirm(t)}},model:{value:e.newInput,callback:function(t){e.newInput="string"===typeof t?t.trim():t},expression:"newInput"}}):i("el-button",{staticClass:"button-new-tag",attrs:{type:"primary",plain:"",size:"mini",icon:"el-icon-plus"},on:{click:e.showInput}},[e._v("添加标签")]),e._l(e.form.weTags.filter((function(t){return!e.isAddTag||!t.tagId})),(function(t,a){return[1!==t.status?i("el-tag",{key:a,attrs:{type:"primary",closable:"",size:"medium"},on:{close:function(i){return e.closeTag(t,a)}}},[e._v(" "+e._s(t.name)+" ")]):e._e()]}))],2)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("RequestButton",{attrs:{type:"primary","request-method":e.submit,"button-type":"submit"}},[e._v("确 定")]),i("el-button",{on:{click:function(t){e.Pvisible=!1}}},[e._v("取 消")])],1)],1)},n=[],r=i("5530"),s=i("2909"),o=(i("4de4"),i("7db0"),i("d81d"),i("a434"),i("b0c0"),i("e9c4"),i("dca8"),i("b64b"),i("d3b7"),i("38cf"),i("159b"),i("b25c")),l=i("2553"),c=i("cf45"),u=i("52a9"),d={name:"AddTag",components:{RequestButton:u["a"]},props:{visible:{type:Boolean,default:!1},form:{type:Object,default:function(){return{groupName:"",weTags:[]}}},isAddTag:{type:Boolean,default:!1},tagType:{type:String,default:"customer"}},data:function(){var e=this,t=function(t,i,a){if(!i)return a(new Error("标签组名称不能为空"));if(e.form.groupId)a();else if("customer"===e.tagType)o["checkTagGroupName"]({tagGroupName:i}).then((function(e){1===e.data.repeat?a(new Error("已存在相同标签分组,不可重复添加")):a()}));else{var n=e.$store.state.listInfo.groupTagList;n.find((function(e){return e.groupName===i}))?a(new Error("已存在相同标签分组,不可重复添加")):a()}};return{newInput:"",rules:Object.freeze({groupName:[{required:!0,validator:t,trigger:"blur"}],weTags:[{required:!0,message:"标签不能为空",trigger:"blur"}]}),visibleAdd:!1,oldTags:[],isSetOld:!1}},computed:{Pvisible:{get:function(){var e=this;return this.visible&&this.$nextTick((function(){e.$refs["form"].clearValidate()})),this.visible},set:function(e){this.$emit("update:visible",e)}}},watch:{visible:function(e){this.visibleAdd=!1,this.newInput="",e&&(this.isSetOld=!1)}},mounted:function(){},methods:{closeTag:function(e,t){this.setOldTags(),e.id?(e.status=1,this.form.weTags.splice(t,1,e)):this.form.weTags.splice(t,1)},showInput:function(){var e=this;this.setOldTags(),this.visibleAdd=!0,this.$nextTick((function(t){e.$refs.saveTagInput.$refs.input.focus()}))},setOldTags:function(){!this.isSetOld&&(this.oldTags=Object(s["a"])(this.form.weTags)),this.isSetOld=!0},newInputConfirm:function(){var e=this.newInput;if(e){Array.isArray(this.form.weTags)||(this.form.weTags=[]);var t=this.form.weTags.some((function(t){return t.name===e}));if(t)return void this.msgError("标签名已存在,不可重复添加");var i=this.oldTags.find((function(t){return t.name===e}));i?this.form.weTags.push(Object(r["a"])(Object(r["a"])({},i),{},{status:void 0})):this.form.weTags.push({name:e})}this.visibleAdd=!1,this.newInput=""},submit:function(){var e=this;this.$refs["form"].validate((function(t){if(!t)return Object(c["i"])(e.$store,"submit");if(e.visibleAdd)return e.msgError("标签名已存在,不可重复添加"),void Object(c["i"])(e.$store,"submit");if("customer"===e.tagType){e.newInput="";var i=JSON.parse(JSON.stringify(e.form));if(!i.weTags.length)return void Object(c["i"])(e.$store,"submit");o[i.groupId?"update":"add"](i).then((function(t){Object(c["i"])(e.$store,"submit"),e.msgSuccess("操作成功"),e.Pvisible=!1;var a=i.weTags.filter((function(e){return!e.tagId})).map((function(e){return Object(r["a"])(Object(r["a"])({},e),{},{groupName:i.groupName})}));e.$store.dispatch("listInfo/updateTagListById",t.data),e.$emit("success",a)}))}else{var a=e.form,n=a.groupName,s=a.weTags,u={name:n};if(e.form.groupId){u.id=e.form.groupId;var d=[],p=[];s.forEach((function(t){e.oldTags.find((function(e){return e.name===t.name}))||d.push(t)})),e.oldTags.forEach((function(e){s.find((function(t){return e.name===t.name}))||p.push(e.tagId||e.id)})),u.addList=d,u.delList=p}else u.tagList=s;l[e.form.groupId?"update":"add"](u).then((function(t){Object(c["i"])(e.$store,"submit"),e.msgSuccess("操作成功"),e.Pvisible=!1;var i=s.filter((function(e){return!e.id})).map((function(e){return Object(r["a"])(Object(r["a"])({},e),{},{groupName:n})}));e.$store.dispatch("listInfo/updateGroupTagListById",t.data),e.$emit("success",i)}))}}))}}},p=d,f=(i("f742"),i("2877")),A=Object(f["a"])(p,a,n,!1,null,"5d30a206",null);t["a"]=A.exports},b9cd:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.data.mediaType===Number(e.MEDIA_TYPE_POSTER)?i("div",[e.imgLength?i("div",{staticClass:"list"},[i("div",{staticClass:"imglist"},e._l(e.list,(function(e){return i("div",{key:e.id,staticClass:"img"},[i("el-image",{staticStyle:{width:"40px",height:"40px"},attrs:{src:e.url,fit:"fill"}})],1)})),0)]):i("div",{staticClass:"flex"},e._l(e.list,(function(e){return i("div",{key:e.id},[i("el-image",{staticStyle:{width:"50px",height:"50px","margin-right":"5px"},attrs:{src:e.url,fit:"fill"}})],1)})),0)]):e._e(),e.data.mediaType===Number(e.MEDIA_TYPE_VIDEO)?i("div",[i("ContentVideo",{attrs:{data:e.list}})],1):e._e(),e.data.mediaType===Number(e.MEDIA_TYPE_IMGLINK)?i("div",[i("VerbalTrickImgLink",{attrs:{title:e.list.title,"cover-url":e.list.coverUrl}})],1):e._e()])},n=[],r=(i("a9e3"),i("369e")),s=i("0b64"),o=i("dd70"),l=3,c={components:{VerbalTrickImgLink:r["default"],ContentVideo:s["default"]},props:{data:{type:Object,default:function(){}}},data:function(){return{MEDIA_TYPE_POSTER:o["cc"],MEDIA_TYPE_IMGLINK:o["ac"],MEDIA_TYPE_VIDEO:o["gc"],list:{},showContent:!0,imgLength:void 0}},computed:{},watch:{data:{handler:function(e){this.data=e,this.imgLength=void 0,this.getContent()},deep:!0}},mounted:function(){this.getContent()},methods:{getContent:function(){null!==this.data.mediaType&&(this.data.mediaType===Number(o["cc"])?(this.list=this.data.weWordsDetailList,this.data.weWordsDetailList.length>l&&(this.imgLength=!0)):this.list=this.data.weWordsDetailList[0])}}},u=c,d=(i("fa66"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"7e2437bb",null);t["default"]=p.exports},b9df:function(e,t,i){"use strict";i("0979")},b9e6:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",e._g(e._b({staticClass:"group-modal-div",on:{close:e.onClose}},"el-dialog",e.$attrs,!1),e.$listeners),[i("el-form",{ref:"elForm",attrs:{model:e.formData,rules:e.rules,size:"medium","label-width":"78px"}},[e.formData.parentId?i("el-form-item",{attrs:{label:"所属分组",prop:"parentId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",clearable:""},model:{value:e.formData.parentId,callback:function(t){e.$set(e.formData,"parentId",t)},expression:"formData.parentId"}},e._l(e.groupData,(function(e){return i("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1):e._e(),i("el-form-item",{attrs:{label:"分组名称",prop:"name"}},[i("el-input",{attrs:{placeholder:"请输入分组名称",clearable:"",maxlength:"12","show-word-limit":""},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e.formData.parentId?e._e():i("el-form-item",{attrs:{label:"下级分组"}},[e._l(e.lowerGroupList,(function(t,a){return[i("div",{key:a,staticClass:"lower-group-item"},[i("el-input",{attrs:{placeholder:"请填写下级分组名称",maxlength:"12","show-word-limit":"",clearable:""},model:{value:t.name,callback:function(i){e.$set(t,"name",i)},expression:"item.name"}}),i("MoveTool",{attrs:{index:a,item:t,list:e.lowerGroupList},on:{"update:list":function(t){e.lowerGroupList=t},getRemoveList:e.getRemoveList}})],1)]})),i("div",{staticClass:"add-lower-group theme-text-color",on:{click:e.addLowerGroup}},[i("i",{staticClass:"iconfont icon-add theme-text-color",attrs:{title:"添加下级分组"}}),e._v(" 添加下级分组 ")])],2)],1),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.close}},[e._v("取消")]),i("RequestButton",{attrs:{type:"primary","request-method":e.handelConfirm,"button-type":"submit"}},[e._v("确定")])],1)],1)},n=[],r=i("2909"),s=i("5530"),o=(i("99af"),i("d81d"),i("b0c0"),i("a9e3"),i("d3b7"),i("159b"),i("f0ef")),l=i("52a9"),c=i("cf45"),u=i("ba70"),d=i("a8fc"),p=i.n(d),f={name:"GroupModal",components:{MoveTool:u["a"],RequestButton:l["a"]},inheritAttrs:!1,props:{groupData:{type:Array,default:function(){return[]}},formData:{type:Object,default:function(){return{parentId:void 0,name:void 0}}},type:{type:Number,default:null},getList:{type:Function,default:function(){}}},data:function(){return{rules:{parentId:[],name:[{required:!0,message:"请填写分组名称",trigger:"blur"}]},removeList:[]}},computed:{lowerGroupList:{get:function(){return this.formData.children||[]},set:function(e){this.$emit("update:formData",Object(s["a"])(Object(s["a"])({},this.formData),{},{children:e}))}}},watch:{},created:function(){},mounted:function(){},methods:{onClose:function(){this.$refs["elForm"].resetFields()},close:function(){this.$emit("update:visible",!1)},handelConfirm:function(){var e=this;this.$refs["elForm"].validate((function(t){if(!t)return Object(c["i"])(e.$store,"submit");var i=e.dealChildIdList(),a=p()(i,"name");if(a.length!==i.length)return e.msgWarn("下级分组重复"),Object(c["i"])(e.$store,"submit");if(e.formData.id){var n=[];e.removeList.map((function(e){n.push(e.id)})),e.handleUpdateGroup(i,n)}else e.handleAddGroup(i)}))},addLowerGroup:function(){var e=Object(r["a"])(this.lowerGroupList);e.push({name:""}),this.lowerGroupList=e},dealChildIdList:function(){var e=[],t=Object(r["a"])(this.lowerGroupList).reverse();return t.forEach((function(t,i){e.push({childId:t.id,name:t.name,sort:i+1})})),e},handleUpdateGroup:function(e,t){var i=this;Object(o["e"])({childIdList:e,delChildList:t,id:this.formData.id,name:this.formData.name,parentId:"0"===this.formData.parentId?void 0:this.formData.parentId,type:this.type}).then((function(e){Object(c["i"])(i.$store,"submit"),e&&(i.getList(),i.close())}))},handleAddGroup:function(e){var t=this;Object(o["a"])({name:this.formData.name,parentId:this.formData.parentId,type:this.type,childIdList:e}).then((function(e){Object(c["i"])(t.$store,"submit"),e&&(t.getList(),t.msgSuccess("操作成功"),t.close())}))},getRemoveList:function(e){this.removeList=[].concat(Object(r["a"])(this.removeList),Object(r["a"])(e))}}},A=f,h=(i("b8d7"),i("2877")),m=Object(h["a"])(A,a,n,!1,null,"07d11861",null);t["default"]=m.exports},ba59:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"upload-queue",staticStyle:{display:"flex"}},[i("draggable",{staticClass:"el-upload-list el-upload-list--picture-card",staticStyle:{display:"flex"},attrs:{group:"people"},on:{start:function(t){e.drag=!0},end:function(t){e.drag=!1},change:function(t){return e.updateList(e.fileList)}},model:{value:e.fileList,callback:function(t){e.fileList=t},expression:"fileList"}},e._l(e.fileList,(function(t,a){return i("div",{key:a,staticClass:"el-upload-list__item"},[i("el-image",{staticClass:"el-upload-list__item-thumbnail",staticStyle:{width:"70px",height:"70px"},attrs:{src:t.url,fit:"fill"}}),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(i){return e.handlePictureCardPreview(t)}}},[i("i",{staticClass:"el-icon-zoom-in"})]),i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(i){return e.handleDealImgRemove(t,a)}}},[i("i",{staticClass:"el-icon-delete"})])])],1)})),0),i("el-upload",{class:{uploadSty:e.showBtnDealImg,disuploadSty:e.noneBtnImg},attrs:{action:e.action,"list-type":"picture-card","file-list":e.fileList,drag:!0,"http-request":e.customUploadFile,multiple:!0,accept:".jpg,.png","before-upload":e.beforeUpload,"on-change":e.handleEditChange,limit:e.limitNum,"show-file-list":!1}},[i("div",{on:{mouseenter:e.enter,mouseleave:e.leave}},[i("div",{directives:[{name:"show",rawName:"v-show",value:!e.showIcon,expression:"!showIcon"}],staticClass:"upload-icon"},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"}),i("span",[e._v("上传图片")])]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.showIcon,expression:"showIcon"}],staticClass:"upload-icon"},[i("el-button",{staticClass:"hover-button"},[e._v("本地上传")]),i("el-button",{staticClass:"hover-button",on:{click:function(t){return t.stopPropagation(),e.openMaterial(t)}}},[e._v("素材库")])],1)])]),i("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})])],1)},n=[],r=i("2909"),s=(i("99af"),i("4de4"),i("fb6a"),i("a434"),i("b0c0"),i("d3b7"),i("2934")),o=i("dd70"),l=i("cf45"),c=i("1980"),u=i.n(c),d=32,p=9,f=10,A={name:"Upload",components:{draggable:u.a},props:{uploadList:{type:Array,default:function(){return[]}}},data:function(){return{MAX_LONG_SIDE:o["Ub"],MAX_SHORT_SIDE:o["Vb"],temporary:[],drag:!1,showIcon:!1,onSuccessTime:0,showBtnDealImg:!0,noneBtnImg:!1,dialogImageUrl:"",dialogVisible:!1,fileList:[],loading:!1,action:"/api/common/uploadFile2Cos",MEDIA_TYPE_POSTER:o["cc"],limitNum:p,FILE_NAME_LENGTH:d}},computed:{},watch:{uploadList:function(e){this.fileList=e,0===e.length&&(this.showMedia=!0,this.noneBtnImg=!1),this.onSuccessTime=this.fileList.length,this.fileList.length===p&&(this.noneBtnImg=!0)}},created:function(){},methods:{enter:function(){this.showIcon=!0},leave:function(){this.showIcon=!1},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},dealImgName:function(e){var t=e.lastIndexOf("."),i=e.substring(t),a=e.substring(0,t),n=a.slice(0,this.FILE_NAME_LENGTH-i.length)+i;return n},handleBeforeUpload:function(e){this.loading=!0;var t=!0,i=!0;return t=Object(l["q"])(o["cc"],e,this),i=Object(l["t"])(o["cc"],e,this,f),t&&i||(this.loading=!1),t&&i},onSuccess:function(e,t){this.loading=!1,this.fileList[this.onSuccessTime].title=e.data.fileName,this.fileList[this.onSuccessTime].url=e.data.url,this.fileList[this.onSuccessTime].mediaType=0,this.onSuccessTime++,this.fileList.length===this.onSuccessTime&&this.$emit("getType",this.fileList)},onError:function(){this.loading=!1,this.msgError("上传文件失败")},customUploadFile:function(e){var t=this,i=e.file,a=i,n=i.name;i.name.length>this.FILE_NAME_LENGTH&&(n=this.dealImgName(i.name),a=new File([i],n,{type:"image/jpg"}));var r=new FormData;r.append("file",a),r.append("mediaType",o["cc"]),r.append("fileName",n),Object(s["d"])(r).then((function(e){t.onSuccess(e,i)})).catch((function(){t.onError()}))},beforeUpload:function(e){var t=this;return new Promise((function(i,a){var n=t.handleBeforeUpload(e),r=new FileReader;r.readAsDataURL(e),r.onload=function(){var s=new Image;s.src=r.result,s.onload=function(){Object(l["J"])(s.width,s.height)?n?(t.fileList=t.temporary,i()):a():(a(),t.temporary=t.temporary.filter((function(t){return t.uid!==e.uid})),t.fileList=t.temporary,t.noneBtnImg=t.fileList.length>=t.limitNum,t.msgWarn("图片尺寸超过限制,长边≤".concat(o["Ub"],"px,短边≤").concat(o["Vb"],"px,请重新上传")))}}}))},handleEditChange:function(e,t){this.noneBtnImg=t.length>=this.limitNum,this.temporary=Object(r["a"])(t)},handleDealImgRemove:function(e,t){this.fileList.splice(t,1),this.noneBtnImg=this.fileList.length>=this.limitNum,this.$emit("deleteFileList",this.fileList)},openMaterial:function(){this.$emit("openMaterial",!0)},updateList:function(e){this.$emit("getType",e)}}},h=A,m=(i("6b50"),i("2877")),g=Object(m["a"])(h,a,n,!1,null,"6746bc05",null);t["default"]=g.exports},ba70:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tool-div"},[e.showTool.includes("edit")?i("i",{staticClass:"iconfont icon-tool-edit",attrs:{title:"编辑"},on:{click:function(t){return e.moveGroup("edit",e.index,e.item)}}}):e._e(),e.showTool.includes("placedAtTop")?i("i",{class:"iconfont icon-placedAtTop"+(0===e.index?" disabled-tool":""),attrs:{title:"置顶"},on:{click:function(t){return e.moveGroup("placedAtTop",e.index,e.item,0===e.index)}}}):e._e(),e.showTool.includes("moveTop")?i("i",{class:"el-icon-top"+(0===e.index?" disabled-tool":""),attrs:{title:"上移"},on:{click:function(t){return e.moveGroup("moveTop",e.index,e.item,0===e.index)}}}):e._e(),e.showTool.includes("moveBottom")?i("i",{class:"el-icon-bottom"+(e.checkLastItem(e.index)?" disabled-tool":""),attrs:{title:"下移"},on:{click:function(t){e.moveGroup("moveBottom",e.index,e.item,e.checkLastItem(e.index))}}}):e._e(),e.showTool.includes("remove")?i("i",{staticClass:"el-icon-remove-outline",attrs:{title:"移除"},on:{click:function(t){return e.moveGroup("remove",e.index,e.item)}}}):e._e()])},n=[],r=i("2909"),s=(i("a434"),i("a9e3"),{name:"",components:{},props:{index:{type:Number,default:0},item:{type:Object,default:function(){}},list:{type:Array,default:function(){return[]}},removeList:{type:Array,default:function(){return[]}},showTool:{type:Array,default:function(){return["placedAtTop","moveTop","moveBottom","remove"]}},manualRemove:{type:Boolean,default:!1}},data:function(){return{}},created:function(){},mounted:function(){},methods:{moveGroup:function(e,t,i,a){if(!a){var n=Object(r["a"])(this.list);switch(e){case"edit":this.$emit("handleEdit",i,t);break;case"placedAtTop":n.splice(t,1),n.unshift(i);break;case"moveTop":n.splice(t-1,0,n.splice(t,1)[0]);break;case"moveBottom":n.splice(t,0,n.splice(t+1,1)[0]);break;case"remove":if(this.manualRemove)return void this.$emit("handleRemove",t,i);n.splice(t,1);var s=Object(r["a"])(this.removeList);s.push(i),this.$emit("getRemoveList",s);break}this.$emit("update:list",n)}},checkLastItem:function(e){var t;return e===(null===(t=this.list)||void 0===t?void 0:t.length)-1}}}),o=s,l=(i("b8d5"),i("2877")),c=Object(l["a"])(o,a,n,!1,null,"d9e7af50",null);t["a"]=c.exports},ba93:function(e,t,i){e.exports=i.p+"static/img/chat-step2-1.e50637bf.jpg"},baab:function(e,t,i){e.exports=i.p+"static/img/config-step-4.d63afdbd.jpeg"},bb08:function(e,t,i){"use strict";i("6435")},bb49:function(e,t,i){"use strict";i.r(t);var a=["platform-eleme","eleme","delete-solid","delete","s-tools","setting","user-solid","user","phone","phone-outline","more","more-outline","star-on","star-off","s-goods","goods","warning","warning-outline","question","info","remove","circle-plus","success","error","zoom-in","zoom-out","remove-outline","circle-plus-outline","circle-check","circle-close","s-help","help","minus","plus","check","close","picture","picture-outline","picture-outline-round","upload","upload2","download","camera-solid","camera","video-camera-solid","video-camera","message-solid","bell","s-cooperation","s-order","s-platform","s-fold","s-unfold","s-operation","s-promotion","s-home","s-release","s-ticket","s-management","s-open","s-shop","s-marketing","s-flag","s-comment","s-finance","s-claim","s-custom","s-opportunity","s-data","s-check","s-grid","menu","share","d-caret","caret-left","caret-right","caret-bottom","caret-top","bottom-left","bottom-right","back","right","bottom","top","top-left","top-right","arrow-left","arrow-right","arrow-down","arrow-up","d-arrow-left","d-arrow-right","video-pause","video-play","refresh","refresh-right","refresh-left","finished","sort","sort-up","sort-down","rank","loading","view","c-scale-to-original","date","edit","edit-outline","folder","folder-opened","folder-add","folder-remove","folder-delete","folder-checked","tickets","document-remove","document-delete","document-copy","document-checked","document","document-add","printer","paperclip","takeaway-box","search","monitor","attract","mobile","scissors","umbrella","headset","brush","mouse","coordinate","magic-stick","reading","data-line","data-board","pie-chart","data-analysis","collection-tag","film","suitcase","suitcase-1","receiving","collection","files","notebook-1","notebook-2","toilet-paper","office-building","school","table-lamp","house","no-smoking","smoking","shopping-cart-full","shopping-cart-1","shopping-cart-2","shopping-bag-1","shopping-bag-2","sold-out","sell","present","box","bank-card","money","coin","wallet","discount","price-tag","news","guide","male","female","thumb","cpu","link","connection","open","turn-off","set-up","chat-round","chat-line-round","chat-square","chat-dot-round","chat-dot-square","chat-line-square","message","postcard","position","turn-off-microphone","microphone","close-notification","bangzhu","time","odometer","crop","aim","switch-button","full-screen","copy-document","mic","stopwatch","medal-1","medal","trophy","trophy-1","first-aid-kit","discover","place","location","location-outline","location-information","add-location","delete-location","map-location","alarm-clock","timer","watch-1","watch","lock","unlock","key","service","mobile-phone","bicycle","truck","ship","basketball","football","soccer","baseball","wind-power","light-rain","lightning","heavy-rain","sunrise","sunrise-1","sunset","sunny","cloudy","partly-cloudy","cloudy-and-sunny","moon","moon-night","dish","dish-1","food","chicken","fork-spoon","knife-fork","burger","tableware","sugar","dessert","ice-cream","hot-water","water-cup","coffee-cup","cold-drink","goblet","goblet-full","goblet-square","goblet-square-full","refrigerator","grape","watermelon","cherry","apple","pear","orange","coffee","ice-tea","ice-drink","milk-tea","potato-strips","lollipop","ice-cream-square","ice-cream-round"];t["default"]=a},bb5d:function(e,t,i){"use strict";i("ffbc")},bb6f:function(e,t,i){"use strict";i("1977")},bb92:function(e,t,i){"use strict";i("392c")},bbf6:function(e,t,i){},bc43:function(e,t,i){},bc77:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"takecontent"},[i("ul",e._l(e.allChat,(function(t,a){return i("li",{key:a},[i("div",{style:{color:"send"==t.action?"#199ed8":"#999"}},[e._v(e._s(t.from)+" "),i("span",{style:{color:"send"==t.action?"#199ed8":"#999"}},[e._v(e._s(e.parseTime(t.msgtime)))])]),"text"==t.msgtype?i("div",{staticClass:"msgtypetext"},[e._v(" "+e._s(t.text.content)+" ")]):"image"==t.msgtype?i("div",{staticClass:"msgtypeimg"},[i("img",{attrs:{src:t.image.attachment}})]):"file"==t.msgtype?i("div",{staticClass:"msgtypefile",on:{click:function(i){return e.down(t.file)}}},[e._v(" "+e._s(t.file.filename)+" ")]):"voice"==t.msgtype?i("div",{staticClass:"msgtypevoice"},[i("i",{staticClass:"el-icon-video-play",on:{click:function(i){return e.play(t,"voice")}}})]):"video"==t.msgtype?i("div",{staticClass:"msgtypevideo"},[i("i",{staticClass:"el-icon-video-play",on:{click:function(i){return e.play(t,"video")}}})]):"location"==t.msgtype?i("div",{staticClass:"msgtypecard "},[i("div",{staticClass:"card_name"}),i("div",{staticClass:"card_foot"},[e._v(e._s(t.location.address))])]):"weapp"==t.msgtype?i("div",{staticClass:"msgtypecard "},[i("div",{staticClass:"card_name"}),i("div",{staticClass:"card_foot"},[e._v("小程序")])]):"external_redpacket"==t.msgtype?i("div",[e._v(" [这是一条红包消息] ")]):"card"==t.msgtype?i("div",{staticClass:"msgtypecard "},[i("div",{staticClass:"card_name"},[e._v(e._s(t.card.corpname))]),i("div",{staticClass:"card_foot"},[e._v("个人名片")])]):"link"==t.msgType?i("div",{staticClass:"msgtypelink"},[i("a",{staticClass:"msg-type-link",attrs:{href:t.link.linkUrl,target:"_blank"}},[i("div",{staticClass:"msg-type-title"},[e._v(e._s(t.link.title))]),i("div",{staticClass:"msg-type-desc"},[i("div",[e._v(e._s(t.link.description))]),i("img",{attrs:{src:t.link.image_url||t.link.imageUrl}})])])]):e._e()])})),0),i("el-dialog",{attrs:{visible:e.dia,"show-close":!1,"append-to-body":""},on:{"update:visible":function(t){e.dia=t}}},[i("p",[e._v("播放")])])],1)},n=[],r=i("cf45"),s={props:{allChat:{type:Array,default:function(){return[]}}},data:function(){return{dia:!1}},methods:{play:function(){this.dia=!0},down:function(e){Object(r["w"])(e.attachment,e.fileName||e.file.filename)}}},o=s,l=(i("aff9"),i("2877")),c=Object(l["a"])(o,a,n,!1,null,"0e34da29",null);t["default"]=c.exports},bce6:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-col",{class:{greenicon:Number(e.erchatsTable[e.field])>=1,redicon:Number(e.erchatsTable[e.field])<0},attrs:{span:8}},[e._v("较"+e._s(e.time)+" "),e.erchatsTable[e.field]===e.DATA_STATISTICS_DEFAULT_SHOW?i("span",[e._v(e._s(e.DATA_STATISTICS_DEFAULT_SHOW))]):i("span",[e._v(e._s(""+(e.erchatsTable[e.field]?e.erchatsTable[e.field]>0?"+"+e.erchatsTable[e.field]:e.erchatsTable[e.field]:0)+e.unit))])])},n=[],r=i("dd70"),s={name:"DiffItem",components:{},props:{erchatsTable:{type:Object,default:function(){}},field:{type:String,default:""},time:{type:String,default:"昨天"},unit:{type:String,default:""}},data:function(){return{DATA_STATISTICS_DEFAULT_SHOW:r["F"]}}},o=s,l=i("2877"),c=Object(l["a"])(o,a,n,!1,null,null,null);t["default"]=c.exports},bcef:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"签到列表",visible:e.Pvisible,width:"70%","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.Pvisible=t}}},[i("div",{staticClass:"app-container"},[i("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[i("el-form-item",{attrs:{label:"微信名称",prop:"wxName"}},[i("el-input",{attrs:{placeholder:"请输入微信名称",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.wxName,callback:function(t){e.$set(e.queryParams,"wxName",t)},expression:"queryParams.wxName"}})],1),i("el-form-item",{attrs:{label:"企业名称",prop:"qyName"}},[i("el-input",{attrs:{placeholder:"请输入企业名称",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.qyName,callback:function(t){e.$set(e.queryParams,"qyName",t)},expression:"queryParams.qyName"}})],1),i("el-form-item",{attrs:{label:"用户姓名",prop:"userName"}},[i("el-input",{attrs:{placeholder:"请输入用户姓名",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.userName,callback:function(t){e.$set(e.queryParams,"userName",t)},expression:"queryParams.userName"}})],1),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),i("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")]),i("el-button",{attrs:{type:"warning",plain:"",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1)],1),i("el-table",{attrs:{height:"70%",data:e.test?e.qdinfoList:e.siginData},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{label:"微信unionid",align:"center",prop:"unionId"}}),i("el-table-column",{attrs:{label:"签到时间",align:"center",prop:"createdAt",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e.parseTime(t.row.createdAt,"{y}-{m}-{d}")))])]}}])}),i("el-table-column",{attrs:{label:"企业名称",align:"center",prop:"qyName"}}),i("el-table-column",{attrs:{label:"用户姓名",align:"center",prop:"userName"}}),i("el-table-column",{attrs:{label:"手机",align:"center",prop:"mobile"}}),i("el-table-column",{attrs:{label:"是否委托第三方代账",align:"center",prop:"isSf"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.isSf?i("span",[e._v("是")]):i("span",[e._v("否")])]}}])})],1),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.totalK>0,expression:"totalK>0"}],attrs:{total:e.totalK,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:function(t){return e.getList()}}})],1)])},n=[],r=(i("d81d"),i("ac1f"),i("00b4"),i("42b0")),s=i("cf45"),o={name:"SiginKh",components:{},props:{visible:{type:Boolean,default:!1},data:{type:Array,default:null},totalK:{default:!1}},data:function(){return{loading:!0,test:!1,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,qdinfoList:[],title:"",open:!1,queryParams:{pageNum:1,pageSize:10,unionId:void 0,createdAt:void 0,wxName:void 0,txUrl:void 0,qyName:void 0,userName:void 0,mobile:void 0,isSf:void 0,hmId:void 0,siginId:void 0},form:{},rules:{}}},computed:{Pvisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e),e||(this.$emit("close"),this.test=!1)}},siginData:{get:function(){return this.data},set:function(e){this.$emit("update:data",e)}},khTotal:{get:function(){return this.totalK},set:function(e){this.$emit("update:totalK",e)}}},created:function(){},methods:{parseTime:s["L"],getList:function(){var e=this;this.queryParams.siginId=this.siginData[0].siginId,this.loading=!0,Object(r["h"])(this.queryParams).then((function(t){e.test=!0,e.qdinfoList=t.rows,e.total=t.total,e.loading=!1}))},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={id:void 0,unionId:void 0,createdAt:void 0,wxName:void 0,txUrl:void 0,qyName:void 0,userName:void 0,mobile:void 0,isSf:void 0,hmId:void 0,siginId:void 0},this.resetForm("form")},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.id})),this.single=1!==e.length,this.multiple=!e.length},handleAdd:function(){this.reset(),this.open=!0,this.title="添加签到信息"},handleUpdate:function(e){var t=this;this.reset();var i=e.id||this.ids;Object(r["f"])(i).then((function(e){t.form=e.data,t.open=!0,t.title="修改签到信息"}))},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(null!=e.form.id?Object(r["j"])(e.form).then((function(t){e.msgSuccess("修改成功"),e.open=!1,e.getList()})):Object(r["a"])(e.form).then((function(t){e.msgSuccess("新增成功"),e.open=!1,e.getList()})))}))},handleDelete:function(e){var t=this,i=e.id||this.ids;this.$confirm('是否确认删除签到信息编号为"'+i+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(r["d"])(i)})).then((function(){t.getList(),t.msgSuccess("删除成功")}))},handleExport:function(){var e=this;this.queryParams.siginId=this.siginData[0].siginId;var t=this.queryParams;this.$confirm("是否确认导出所有签到信息数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(r["e"])(t)})).then((function(t){e.download(t.msg)}))}}},l=o,c=i("2877"),u=Object(c["a"])(l,a,n,!1,null,null,null);t["default"]=u.exports},bcf9:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"strategy-item-div"},[i("div",{staticClass:"title section-title-border"},[e._v(e._s(e.item.strategyName))]),i("div",{staticClass:"content"},[i("div",{staticClass:"word strategy-item"},[i("div",{staticClass:"label"},[e._v("敏感词")]),i("div",{staticClass:"audit-scope-column"},e._l(e.wordList,(function(t,a){return i("el-tag",{key:a,staticClass:"tag-item theme-text-color",attrs:{size:"medium"}},[e._v(" "+e._s(t)+" ")])})),1)]),i("div",{staticClass:"scope strategy-item"},[i("div",{staticClass:"label"},[e._v("审计范围")]),i("ByLengthUserShow",{attrs:{"max-length":e.MAX_SHOW_LENGTH,"user-list":e.item.auditUserScope.filter((function(t){return t.scopeType===e.SCOPELIST_TYPE.USER||t.scopeType===e.SCOPELIST_TYPE.ALL_USER})).map((function(e){return Object.assign({},e,{userName:e.auditScopeName})})),"department-list":e.item.auditUserScope.filter((function(t){return t.scopeType===e.SCOPELIST_TYPE.DEPARTMENT})).map((function(e){return Object.assign({},e,{departmentName:e.auditScopeName,departmentId:e.id})}))}}),e.item.auditUserScope&&e.item.auditUserScope.length>e.MAX_SHOW_LENGTH?i("span",[e._v(" 等"+e._s(e.item.auditUserScope.length)+"人 ")]):e._e()],1),i("div",{staticClass:"user-list strategy-item"},[i("div",{staticClass:"label"},[e._v("审计人员")]),i("div",[e._v(e._s(e.item.auditUserName))])]),i("div",{staticClass:"notify-switch strategy-item",staticStyle:{"margin-bottom":"0"}},[i("div",{staticClass:"label"},[e._v("提醒通知")]),i("div",[i("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(t){return e.handleStatusChange(e.item)}},model:{value:e.item.alertFlag,callback:function(t){e.$set(e.item,"alertFlag",t)},expression:"item.alertFlag"}})],1),i("div",{staticClass:"desc"},[e._v("当审计范围内员工发送敏感词给客户,将给审计人员发送应用通知")])]),i("div",{staticClass:"tool"},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:sensitive:edit"],expression:"['wecom:sensitive:edit']"}],staticClass:"iconfont icon-tool-edit",attrs:{size:"mini",type:"text"},on:{click:function(t){return e.handleUpdate(e.item)}}},[e._v("编辑")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:sensitive:remove"],expression:"['wecom:sensitive:remove']"}],attrs:{icon:"el-icon-delete",size:"mini",type:"text"},on:{click:function(t){return e.handleDelete(e.item)}}},[e._v("删除")])],1)])])},n=[],r=i("dd70"),s=i("e7de"),o=1,l=3,c=10,u={components:{ByLengthUserShow:s["a"]},props:{item:{type:Object,default:function(){}},handleStatusChange:{type:Function,default:function(){}},handleUpdate:{type:Function,default:function(){}},handleDelete:{type:Function,default:function(){}}},data:function(){return{departType:[o,l],MAX_SHOW_LENGTH:c,SCOPELIST_TYPE:r["Uc"]}},computed:{wordList:function(){var e=this.item.patternWords.split(",")||[];return e}}},d=u,p=(i("d3ee"),i("2877")),f=Object(p["a"])(d,a,n,!1,null,"bb7a1ef2",null);t["default"]=f.exports},bcff:function(e,t,i){},bd35:function(e,t,i){},bdc4:function(e,t,i){},bddf:function(e,t,i){"use strict";i("e56e")},be34:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{model:e.query,inline:!0,"label-width":"100px"}},[i("el-form-item",{attrs:{prop:"sender"}},[i("el-input",{attrs:{placeholder:"请输入创建人姓名",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(1)}},model:{value:e.query.sender,callback:function(t){e.$set(e.query,"sender",t)},expression:"query.sender"}})],1),i("el-form-item",{attrs:{prop:"content"}},[i("el-input",{attrs:{placeholder:"请输入消息内容",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(1)}},model:{value:e.query.content,callback:function(t){e.$set(e.query,"content",t)},expression:"query.content"}})],1),i("el-form-item",{attrs:{prop:"pushType"}},[i("el-select",{attrs:{placeholder:"请选择群发类型",size:"small"},model:{value:e.query.pushType,callback:function(t){e.$set(e.query,"pushType",t)},expression:"query.pushType"}},e._l(e.pushType,(function(e,t,a){return i("el-option",{key:a,attrs:{label:e,value:t}})})),1)],1),i("el-form-item",[i("el-date-picker",{attrs:{"picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),i("el-form-item",{attrs:{label:" "}},[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.getList(1)}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list},on:{"selection-change":e.handleSelectionChange}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{"btn-text":"新建群发",length:e.list.length,"btn-click":e.goToGroupMessageAdd,"btn-show-condition":e.getQueryObj()}})],1),i("el-table-column",{attrs:{label:"消息内容",align:"center",prop:"contentList"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"message-text intwoline"},[e._v(e._s(e.getTextMessageList(t.row.seedMessageList||[])))]),i("div",{staticClass:"message-appendix"},[e._v(e._s(e.dealMessageList(t.row.seedMessageList.slice(1))))])]}}])}),i("el-table-column",{attrs:{label:"任务名称",align:"center",prop:"taskName"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("pre",[e._v(e._s(t.row.taskName))])]}}])}),i("el-table-column",{attrs:{label:"群发类型",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.pushType[t.row.pushType])+" ")]}}])}),i("el-table-column",{attrs:{label:"发送结果",align:"center",prop:"sendInfo",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("pre",[e._v(e._s(e._f("sendInfo")(t.row)))])]}}])}),i("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"sendTime",width:"180"}}),i("el-table-column",{attrs:{label:"操作",align:"center",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerMessagePush:push:view"],expression:"['customerMessagePush:push:view']"}],attrs:{size:"mini",type:"text"},on:{click:function(i){return e.goRoute(t.row.messageId,"detail")}}},[e._v("详情")]),i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(i){return e.goToGroupMessageAdd("copy",t.row)}}},[e._v("复制")]),i("br"),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerMessagePush:push:asyncResult"],expression:"['customerMessagePush:push:asyncResult']"}],attrs:{size:"mini",type:"text"},on:{click:function(i){return e.syncMsg(t.row)}}},[e._v("刷新")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerMessagePush:push:edit"],expression:"['customerMessagePush:push:edit']"}],attrs:{size:"mini",type:"text",disabled:t.row.checkStatus===e.GROUP_MESSAG_STATUS_SENDED||!t.row.settingTime},on:{click:function(i){return e.goToGroupMessageAdd("edit",t.row)}}},[e._v("编辑")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerMessagePush:push:edit"],expression:"['customerMessagePush:push:edit']"}],attrs:{size:"mini",type:"text",disabled:t.row.checkStatus===e.GROUP_MESSAG_STATUS_SENDED||!t.row.settingTime},on:{click:function(i){return e.deleteTask(t.row)}}},[e._v("删除")])]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{disabled:e.loading,total:e.total,page:e.query.pageNum,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}})]},proxy:!0}])})],1)},n=[],r=i("c7eb"),s=i("1da1"),o=i("5530"),l=i("2909"),c=(i("99af"),i("a15b"),i("d81d"),i("b0c0"),i("e9c4"),i("b64b"),i("d3b7"),i("159b"),i("3464")),u=i("ed08"),d=i("dd70"),p=i("e77d"),f=i("b66d"),A=i("e2e0"),h={name:"Operlog",components:{EmptyDefaultIcon:p["a"],RightContainer:f["a"]},filters:{sendInfo:function(e){var t=e.pushType===d["tb"]?"个群":"人";return"预计发送 ".concat(e.expectSend," ").concat(t,"\n已发送 ").concat(e.actualSend," ").concat(t)}},mixins:[A["a"]],data:function(){return{loading:!1,ids:[],total:0,list:[],dateRange:[],query:{pageNum:1,pageSize:d["Ic"],sender:void 0,content:void 0,pushType:void 0,beginTime:void 0,endTime:void 0},pushType:{0:"发给客户",1:"发给客户群"},pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},GROUP_MESSAG_STATUS_SENDED:d["xb"]}},created:function(){if(this.$store.getters.saveCondition&&Object.keys(this.$store.getters.searchQuery[this.$route.name]||{}).length){var e=this.$store.getters.searchQuery[this.$route.name],t=e.beginTime,i=e.endTime;t&&i&&(this.dateRange=[t,i]),this.query=this.$store.getters.searchQuery[this.$route.name]}this.getList()},methods:{getList:function(e){var t=this;this.dateRange?(this.query.beginTime=this.dateRange[0],this.query.endTime=this.dateRange[1]):(this.query.beginTime="",this.query.endTime=""),e&&(this.query.pageNum=e),this.loading=!0,Object(c["e"])(this.query).then((function(e){var i=e.rows,a=e.total,n=Object(l["a"])(i);n.forEach((function(e){e.contentList=e.content.split(",")})),t.list=n,t.total=+a,t.ids=[]})).finally((function(){t.modifyButtonStatus(),t.loading=!1}))},resetQuery:function(){this.dateRange=[],this.query=this.$options.data().query,this.getList(1)},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.id}))},goRoute:function(e,t){this.$store.commit("SET_SEARCH_QUERY",{pageName:this.$route.name,query:this.query}),Object(u["l"])(this.$router,t,{},{id:e})},syncMsg:function(e){var t=this,i=e.msgid,a=e.messageId,n=i.split(",");Object(c["i"])({msgids:n,messageId:a}).then((function(){t.msgSuccess("同步成功"),t.getList()})).catch((function(){}))},dealAttachments:function(e){return JSON.stringify(e.map((function(e){var t=Object(o["a"])({},e);return e.imageMessage&&(t.imageMessage=JSON.stringify(e.imageMessage)),e.fileDTO&&(t.fileDTO=JSON.stringify(e.fileDTO)),e.linkMessage&&(t.linkMessage=JSON.stringify(e.linkMessage)),e.miniprogramMessage&&(t.miniprogramMessage=JSON.stringify(e.miniprogramMessage)),e.videoDTO&&(t.videoDTO=JSON.stringify(e.videoDTO)),t})))},goToGroupMessageAdd:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"copy"===e||"edit"===e?Object(c["c"])({messageId:i.messageId}).then((function(a){var n=Object(o["a"])({},a.data);n.content=n.textMessage.content,n.attachments=t.dealAttachments(n.attachments),delete n.textMessage,"copy"===e?delete n.messageId:n.messageId=i.messageId,Object(u["l"])(t.$router,"add",{},n)})):Object(u["l"])(this.$router,"add",{},i)},getQueryObj:function(){var e=this.query,t=e.sender,i=e.content,a=e.pushType,n=e.beginTime,r=e.endTime;return{sender:t,content:i,pushType:a,beginTime:n,endTime:r}},dealMessageList:function(e){return e.map((function(e){return"["+d["ic"][e.messageType]+"]"})).join("")},getTextMessageList:function(e){var t=[];return e.map((function(e){e.messageType===d["fc"]&&t.push(e.content)})),t.join(",")},deleteTask:function(e){var t=this;this.confirmModal({msg:"当前群发记录将从系统删除,员工不再执行,是否继续?"},Object(s["a"])(Object(r["a"])().mark((function i(){return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:Object(c["b"])({messageId:e.messageId}).then((function(){t.msgSuccess("删除成功"),t.getList()}));case 1:case"end":return i.stop()}}),i)}))))}}},m=h,g=(i("38423"),i("2877")),v=Object(g["a"])(m,a,n,!1,null,"3d0db009",null);t["default"]=v.exports},be5e:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"login"},[e._m(0),e._m(1),i("div",{staticClass:"qd-form"},[i("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[i("el-form-item",{staticStyle:{"margin-top":"10px"},attrs:{label:"企业名称",prop:"qyName"}},[i("el-autocomplete",{staticClass:"inline-input",staticStyle:{width:"100%"},attrs:{"fetch-suggestions":e.querySearch,placeholder:"请输入企业名称","trigger-on-focus":!1},on:{select:e.handleSelect},model:{value:e.form.qyName,callback:function(t){e.$set(e.form,"qyName",t)},expression:"form.qyName"}})],1),i("el-form-item",{staticClass:"custom-form-item",attrs:{prop:"userName"},scopedSlots:e._u([{key:"label",fn:function(){return[i("p",{domProps:{innerHTML:e._s("姓 名")}})]},proxy:!0}])},[i("el-input",{attrs:{clearable:"",placeholder:"请输入用户姓名"},model:{value:e.form.userName,callback:function(t){e.$set(e.form,"userName",t)},expression:"form.userName"}})],1),i("el-form-item",{staticClass:"custom-form-item",attrs:{label:"手机号码",prop:"mobile"}},[i("el-input",{attrs:{clearable:"",placeholder:"请输入用户电话"},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1)],1),i("p",{staticStyle:{"padding-left":"100px","font-size":"12px","padding-top":"10px"}},[e._v("手机号用于直播课观看登录,请填写正确手机号")])],1),i("div",{staticClass:"app-button",on:{click:function(t){return e.submitForm("form")}}},[i("p",[e._v("立即申请")])]),e._m(2)])},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"login-top"},[i("div",{staticClass:"app-top-title"},[i("div",{staticClass:"app-title"},[e._v("首期财税直播课火热来袭")])]),i("div",{staticClass:"app-title-bt"},[i("p",[e._v("国家税务总局南昌市税务局第一税务分局全国统一")])]),i("div",{staticClass:"app-title2"},[i("p",[e._v("丰富的财税直播课 "),i("span",{staticStyle:{"padding-left":"15px"}},[e._v("助力财务人提升")])])]),i("div",{staticClass:"app-title3"},[i("p",[e._v("更多精品直播课持续建设中")])])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-title4"},[i("span",[e._v("填写信息")]),i("span",{staticStyle:{color:"red","padding-left":"15px"}},[e._v("获取免费")]),i("span",[e._v("听课权限")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"bot-ts"},[i("p",[e._v('申请即可获得"财税系列直播课"'),i("span",{staticStyle:{color:"red"}},[e._v("永久性免费")]),e._v("听课权限")])])}],r=i("c7eb"),s=i("1da1"),o=(i("b0c0"),i("d3b7"),i("ac1f"),i("00b4"),i("159b"),i("42b0")),l=i("3347"),c=(i("17d4"),i("34e1")),u=i("8e7c"),d=(i("837c"),i("362b")),p={name:"Cwpx",data:function(){var e=function(e,t,i){if(!t)return i(new Error("请输入用户电话"));var a=/^1[3-9]\d{9}$/;a.test(t)?i():i(new Error("请输入正确的用户电话"))};return{empleCodeId:null,costomerName:null,NewCustomers:!1,restaurants:[],qdmc:"",pxsj:"",pxdz:"",queryParams:{pageNum:1,pageSize:10,createdAt:void 0,WXname:void 0,spuId:void 0,skuId:void 0,txUrl:void 0,qyName:void 0,userName:void 0,mobile:void 0,unionId:void 0,isSf:void 0,siginId:""},imge:{hmimgurl:null},form:{},rules:{qyName:[{required:!0,message:"请输入企业名称",trigger:"blur"}],isSf:[{required:!0,message:"请选择是否第三方",trigger:"blur"}],mobile:[{required:!0,validator:e,trigger:"blur"}]}}},created:function(){document.title="签到",this.getQrUser(),this.getUserData()},methods:{reset:function(){this.form={createdAt:void 0,WXname:void 0,spuId:void 0,skuId:void 0,txUrl:void 0,qyName:void 0,userName:void 0,mobile:void 0,unionId:void 0,isSf:void 0,siginId:void 0}},getQrUser:function(){var e=this;this.queryParams.siginId=this.$route.query.id,this.queryParams.siginId?Object(l["a"])(this.queryParams.siginId).then((function(t){e.qdmc=t.data.signinName,t.data.trainingTime&&(e.pxsj=t.data.trainingTime),e.pxsj&&(e.pxsj=e.pxsj+"~"),t.data.endTime&&(e.pxsj=e.pxsj+t.data.endTime),e.pxdz=t.data.trainingAddress,e.imge.hmimgurl=t.data.empleUrlImg,e.form.spuId=t.data.zbId,e.form.skuId=t.data.skuId,e.form.siginId=e.queryParams.siginId,e.form.empleCodeId=t.data.empleCodeId,e.empleCodeId=t.data.empleCodeId,e.unionSf(t.data.beginTime,t.data.periodTime)})):this.msgError("初始化信息失败")},handleSelect:function(e){var t=this;Object(u["d"])(e.id).then((function(e){t.form.nsrsbh=e.data.nsrsbh,t.form.sssj=e.data.sssj,t.form.zcTime=e.data.zcTime,t.form.hyType=e.data.hyType,t.form.address=e.data.address,t.form.jbxxId=e.data.id,t.form.isWx="F",t.form.isOther="N"}))},unionSf:function(e,t){new Date(e);var i=new Date(t),a=new Date;!t||a<i||this.$router.push({path:"/qdFail"})},getQy:function(e){var t=this;return Object(s["a"])(Object(r["a"])().mark((function i(){var a;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return t.restaurants=[],a={pageNum:1,pageSize:10,nsrmc:e},i.next=4,Object(u["e"])(a).then((function(e){e.rows.forEach((function(e,i,a){t.restaurants[i]={value:e.nsrmc,id:e.id}}))}));case 4:case"end":return i.stop()}}),i)})))()},querySearch:function(e,t){var i=this;return Object(s["a"])(Object(r["a"])().mark((function a(){return Object(r["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,i.getQy(e);case 2:t(i.restaurants);case 3:case"end":return a.stop()}}),a)})))()},getUserData:function(){var e=this;this.$route.query.code&&Object(d["a"])(this.$route.query.code).then((function(t){e.queryParams.unionId=t.data.unionId,e.getUnion()}))},getUnion:function(){var e=this;if(this.queryParams.unionId){var t={unionid:this.queryParams.unionId};Object(c["h"])(t).then((function(t){t.total>0&&(e.costomerName=t.rows[0].name,e.NewCustomers=!0)}))}else this.queryParams.unionId="null"},submitForm:function(e){var t=this;return Object(s["a"])(Object(r["a"])().mark((function i(){return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:t.$refs[e].validate((function(e){if(e){if(t.form.unionId=t.queryParams.unionId,!t.form.unionId)return void t.msgError("获取到用户信息,请联系管理员");if("null"===t.form.unionId)return void t.msgError("获取到用户信息,请联系管理员");t.form.id?Object(o["j"])(t.form).then((function(e){t.msgSuccess("提交成功"),t.NewCustomers?t.$router.push({path:"/oldCustomer",query:{costomerName:t.costomerName,empleCodeId:t.empleCodeId}}):t.$router.push({path:"/increase",query:{msgUrl:t.imge.hmimgurl}})})):Object(o["a"])(t.form).then((function(e){t.msgSuccess("提交成功"),t.NewCustomers?t.$router.push({path:"/oldCustomer",query:{costomerName:t.costomerName,empleCodeId:t.form.empleCodeId}}):t.$router.push({path:"/increase",query:{msgUrl:t.imge.hmimgurl}})}))}}));case 1:case"end":return i.stop()}}),i)})))()}}},f=p,A=(i("a814"),i("2877")),h=Object(A["a"])(f,a,n,!1,null,"576a342b",null);t["default"]=h.exports},bef9:function(e,t,i){"use strict";i("c215")},bf0c:function(e,t,i){"use strict";i("b564")},bf24:function(e,t,i){},bf86:function(e,t,i){"use strict";i("4fc3")},bfb2:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("Statistics",{attrs:{title:"获客情况","col-list":e.colList}},[i("template",{slot:"extraInfo"},[e.loading?i("i",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"loading"}):i("el-tooltip",{attrs:{effect:"dark",content:"更新统计",placement:"top"}},[i("i",{staticClass:"el-icon-refresh theme-text-color refresh",on:{click:e.refreshSituation}})])],1),i("template",{slot:"operate"},[i("el-popover",{attrs:{trigger:"hover",placement:"left-start"}},[i("div",{staticClass:"popover-content"},[i("div",{staticClass:"info"},[i("p",[e._v("今日新增客户:企业下,今天通过获客链接添加员工的客户数")]),i("p",[e._v(" 累计新增客户:截止到今天,企业下通过获客链接添加员工的客户数 ")]),i("p",[e._v("剩余使用量:企业购买的获客助手使用量余额")])])]),i("div",{attrs:{slot:"reference"},slot:"reference"},[i("span",{staticClass:"statistic theme-text-color mr10 f14"},[e._v("统计说明")])])]),i("el-button",{attrs:{plain:"",type:"primary"},on:{click:e.openWarnConfig}},[e._v("告警设置")]),i("el-button",{attrs:{plain:"",type:"primary"},on:{click:e.openLink}},[e._v("购买使用量")])],1)],2),i("AlarmSetting",{attrs:{visible:e.alarmSettingVisible},on:{"update:visible":function(t){e.alarmSettingVisible=t}}})],1)},n=[],r=i("ade3"),s=i("5530"),o=(i("d81d"),i("d3b7"),i("8107")),l=i("8525"),c=i("069e"),u={name:"",components:{Statistics:c["a"],AlarmSetting:l["default"]},props:{},data:function(){return{colList:[{newCustomerCnt:0,title:"今日新增客户",filed:"newCustomerCnt"},{total:0,title:"累计新增客户",filed:"total"},{balance:0,title:"剩余使用量",filed:"balance"}],alarmSettingVisible:!1,loading:!1}},created:function(){},mounted:function(){this.getCustomerSituation()},methods:{getCustomerSituation:function(){var e=this,t=50,i="balance";Object(o["l"])().then((function(a){var n;null!==a&&void 0!==a&&a.data?e.colList=null===(n=e.colList)||void 0===n?void 0:n.map((function(e){var n=Object(s["a"])(Object(s["a"])({},e),{},Object(r["a"])({},e.filed,a.data[e.filed]));return e.filed===i&&a.data[i]<=t&&(n.numColor="#EE6665"),n})):e.colList=[{newCustomerCnt:0,title:"今日新增客户",filed:"newCustomerCnt"},{total:0,title:"累计新增客户",filed:"total"},{balance:0,title:"剩余使用量",filed:"balance"}]}))},refreshSituation:function(){var e=this;this.loading=!0,Object(o["t"])().then((function(){e.getCustomerSituation()})).finally((function(){e.loading=!1}))},openWarnConfig:function(){this.alarmSettingVisible=!0},openLink:function(){var e="https://work.weixin.qq.com/wework_admin/frame#/customer/customerAcquisition/buy";window.open(e)}}},d=u,p=(i("ca34e"),i("2877")),f=Object(p["a"])(d,a,n,!1,null,"6ce8e4d4",null);t["default"]=f.exports},bfb8:function(e,t,i){"use strict";i("3943")},bfcf:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"content"},[i("div",{staticClass:"header-container"},[i("el-input",{staticStyle:{width:"240px"},attrs:{"prefix-icon":"el-icon-search",placeholder:"请输入渠道名称,回车搜索"},on:{input:e.channelNameClear},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSearchChannelName(t)}},model:{value:e.query.channelName,callback:function(t){e.$set(e.query,"channelName",t)},expression:"query.channelName"}})],1),i("div",{staticClass:"content-container"},[i("RightContainer",{scopedSlots:e._u([{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.channelList}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.channelList.length}})],1),i("el-table-column",{attrs:{prop:"channelName",label:"渠道",align:"center"}}),i("el-table-column",{attrs:{prop:"clickNum",label:"点击次数",align:"center"}}),i("el-table-column",{attrs:{prop:"clickPersonNum",label:"点击人数",align:"center"}}),i("el-table-column",{attrs:{label:"操作",align:"center",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",[i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.openChannelVisible(a)}}},[e._v("详情")])],1)]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.channelList.length>0,expression:"channelList.length > 0"}],attrs:{total:e.total,disabled:e.loading,limit:e.query.pageSize,page:e.query.pageNum},on:{"update:limit":function(t){return e.$set(e.query,"pageSize",t)},"update:page":function(t){return e.$set(e.query,"pageNum",t)},pagination:function(t){return e.getChannelClickRecord()}}})]},proxy:!0}])})],1),i("div",{staticClass:"channel-dialog"},[i("el-dialog",{attrs:{title:e.channelDetailQuery.channelName+"的点击详情",visible:e.channelVisible,width:"65%"},on:{"update:visible":function(t){e.channelVisible=t}}},[i("div",{staticClass:"header-container"},[i("el-input",{staticStyle:{width:"240px"},attrs:{"prefix-icon":"el-icon-search",placeholder:"请输入客户昵称,回车搜索"},on:{input:e.channelDetailCustomerNameClear},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSearchCustomerName(t)}},model:{value:e.channelDetailQuery.customerName,callback:function(t){e.$set(e.channelDetailQuery,"customerName",t)},expression:"channelDetailQuery.customerName"}})],1),i("div",{staticClass:"content-container"},[i("RightContainer",{scopedSlots:e._u([{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.detailLoading,expression:"detailLoading"}],attrs:{data:e.channelDetailList}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.channelDetailList.length}})],1),i("el-table-column",{attrs:{label:"客户",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"user-info"},[i("img",{attrs:{src:t.row.headImageUrl}}),i("span",[e._v(e._s(t.row.customerName))])])]}}])}),i("el-table-column",{attrs:{prop:"clickNum",label:"点击次数",align:"center"}}),i("el-table-column",{attrs:{label:"最近点击时间",align:"center",prop:"clickTime",width:"180"}}),i("el-table-column",{attrs:{label:"操作",align:"center",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.checkCustomerInfo(a)}}},[e._v("客户资料")])]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.channelDetailList.length>0,expression:"channelDetailList.length > 0"}],attrs:{total:e.detailListTotal,disabled:e.detailLoading,limit:e.channelDetailQuery.pageSize,page:e.channelDetailQuery.pageNum},on:{"update:limit":function(t){return e.$set(e.channelDetailQuery,"pageSize",t)},"update:page":function(t){return e.$set(e.channelDetailQuery,"pageNum",t)},pagination:function(t){return e.getChannelClickRecordDetail()}}})]},proxy:!0}])})],1),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.channelVisible=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.channelVisible=!1}}},[e._v("确 定")])],1)])],1)])},n=[],r=(i("b0c0"),i("b64b"),i("b66d")),s=i("dd70"),o=i("e753"),l=i("e77d"),c=i("ed08"),u=i("f9d1"),d={customer:1,channel:2},p={components:{RightContainer:r["a"],EmptyDefaultIcon:l["a"]},props:{radarId:{type:String,default:""}},data:function(){return{query:{channelName:"",pageNum:s["M"],pageSize:s["Ic"],radarId:this.radarId},loading:!1,channelList:[],channelDetailQuery:{channelName:"",customerName:"",radarId:this.radarId,pageNum:s["M"],pageSize:s["Ic"]},total:0,detailLoading:!1,channelDetailList:[],detailListTotal:0,channelVisible:!1}},watch:{channelVisible:function(e){e||(this.channelDetailQuery.customerName="",this.$store.commit("SET_SEARCH_QUERY",{pageName:this.$route.name,query:{channelQuery:this.query,channelDetailQuery:null}}))}},created:function(){if(window.sessionStorage.removeItem("clickRecord"),this.$store.getters.saveCondition&&Object.keys(this.$store.getters.searchQuery[this.$route.name]||{}).length){var e=this.$store.getters.searchQuery[this.$route.name],t=e.channelDetailQuery,i=e.channelQuery;this.query=i,t&&(this.channelDetailQuery=t,this.getChannelClickRecordDetail(),this.channelVisible=!0)}this.getChannelClickRecord()},methods:{openChannelVisible:function(e){this.channelDetailQuery.channelName=e.channelName,this.getChannelClickRecordDetail(),this.channelVisible=!0},checkCustomerInfo:function(e){window.sessionStorage.setItem("clickRecord",d["channel"]),this.$store.commit("SET_SEARCH_QUERY",{pageName:this.$route.name,query:{channelQuery:this.query,channelDetailQuery:this.channelDetailQuery}}),Object(c["l"])(this.$router,o["b"],{},{id:e.externalId,prePageType:"channelClickRecord"})},onSearchChannelName:function(){this.getChannelClickRecord(1)},channelNameClear:function(e){e||this.getChannelClickRecord(1)},channelDetailCustomerNameClear:function(e){e||this.getChannelClickRecordDetail(1)},onSearchCustomerName:function(){this.getChannelClickRecordDetail(1)},getChannelClickRecord:function(e){var t=this;e&&(this.query.pageNum=e),this.loading=!0,Object(u["e"])(this.query).then((function(e){var i=e.rows,a=e.total;t.loading=!1,t.channelList=i,t.total=a}))},getChannelClickRecordDetail:function(e){var t=this;e&&(this.channelDetailQuery.pageNum=e),this.detailLoading=!0,Object(u["f"])(this.channelDetailQuery).then((function(e){var i=e.rows,a=e.total;t.detailLoading=!1,t.channelDetailList=i,t.detailListTotal=a}))}}},f=p,A=(i("2abc"),i("2877")),h=Object(A["a"])(f,a,n,!1,null,"6dbb8e94",null);t["default"]=h.exports},c02b:function(e,t,i){"use strict";i("5030")},c0e9:function(e,t,i){
|
||
/*!
|
||
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
||
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
||
* Released under MIT License
|
||
*/
|
||
(function(t,i){e.exports=i()})(0,(function(){"use strict";
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};function t(t,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function a(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(a.prototype=i.prototype,new a)}var i=function(){return i=Object.assign||function(e){for(var t,i=1,a=arguments.length;i<a;i++)for(var n in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},i.apply(this,arguments)};function a(e,t,i,a){function n(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function s(e){try{l(a.next(e))}catch(qt){r(qt)}}function o(e){try{l(a["throw"](e))}catch(qt){r(qt)}}function l(e){e.done?i(e.value):n(e.value).then(s,o)}l((a=a.apply(e,t||[])).next())}))}function n(e,t){var i,a,n,r,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return r={next:o(0),throw:o(1),return:o(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function o(e){return function(t){return l([e,t])}}function l(r){if(i)throw new TypeError("Generator is already executing.");while(s)try{if(i=1,a&&(n=2&r[0]?a["return"]:r[0]?a["throw"]||((n=a["return"])&&n.call(a),0):a.next)&&!(n=n.call(a,r[1])).done)return n;switch(a=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,a=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(n=s.trys,!(n=n.length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){s.label=r[1];break}if(6===r[0]&&s.label<n[1]){s.label=n[1],n=r;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(r);break}n[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(qt){r=[6,qt],a=0}finally{i=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}}for(var r=function(){function e(e,t,i,a){this.left=e,this.top=t,this.width=i,this.height=a}return e.prototype.add=function(t,i,a,n){return new e(this.left+t,this.top+i,this.width+a,this.height+n)},e.fromClientRect=function(t,i){return new e(i.left+t.windowBounds.left,i.top+t.windowBounds.top,i.width,i.height)},e.fromDOMRectList=function(t,i){var a=Array.from(i).find((function(e){return 0!==e.width}));return a?new e(a.left+t.windowBounds.left,a.top+t.windowBounds.top,a.width,a.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),s=function(e,t){return r.fromClientRect(e,t.getBoundingClientRect())},o=function(e){var t=e.body,i=e.documentElement;if(!t||!i)throw new Error("Unable to get document size");var a=Math.max(Math.max(t.scrollWidth,i.scrollWidth),Math.max(t.offsetWidth,i.offsetWidth),Math.max(t.clientWidth,i.clientWidth)),n=Math.max(Math.max(t.scrollHeight,i.scrollHeight),Math.max(t.offsetHeight,i.offsetHeight),Math.max(t.clientHeight,i.clientHeight));return new r(0,0,a,n)},l=function(e){var t=[],i=0,a=e.length;while(i<a){var n=e.charCodeAt(i++);if(n>=55296&&n<=56319&&i<a){var r=e.charCodeAt(i++);56320===(64512&r)?t.push(((1023&n)<<10)+(1023&r)+65536):(t.push(n),i--)}else t.push(n)}return t},c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var i=e.length;if(!i)return"";var a=[],n=-1,r="";while(++n<i){var s=e[n];s<=65535?a.push(s):(s-=65536,a.push(55296+(s>>10),s%1024+56320)),(n+1===i||a.length>16384)&&(r+=String.fromCharCode.apply(String,a),a.length=0)}return r},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d="undefined"===typeof Uint8Array?[]:new Uint8Array(256),p=0;p<u.length;p++)d[u.charCodeAt(p)]=p;for(var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A="undefined"===typeof Uint8Array?[]:new Uint8Array(256),h=0;h<f.length;h++)A[f.charCodeAt(h)]=h;for(var m=function(e){var t,i,a,n,r,s=.75*e.length,o=e.length,l=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var c="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),u=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<o;t+=4)i=A[e.charCodeAt(t)],a=A[e.charCodeAt(t+1)],n=A[e.charCodeAt(t+2)],r=A[e.charCodeAt(t+3)],u[l++]=i<<2|a>>4,u[l++]=(15&a)<<4|n>>2,u[l++]=(3&n)<<6|63&r;return c},g=function(e){for(var t=e.length,i=[],a=0;a<t;a+=2)i.push(e[a+1]<<8|e[a]);return i},v=function(e){for(var t=e.length,i=[],a=0;a<t;a+=4)i.push(e[a+3]<<24|e[a+2]<<16|e[a+1]<<8|e[a]);return i},b=5,y=11,_=2,w=y-b,C=65536>>b,x=1<<b,k=x-1,T=1024>>b,S=C+T,I=S,E=32,O=I+E,B=65536>>y,L=1<<w,D=L-1,M=function(e,t,i){return e.slice?e.slice(t,i):new Uint16Array(Array.prototype.slice.call(e,t,i))},N=function(e,t,i){return e.slice?e.slice(t,i):new Uint32Array(Array.prototype.slice.call(e,t,i))},j=function(e,t){var i=m(e),a=Array.isArray(i)?v(i):new Uint32Array(i),n=Array.isArray(i)?g(i):new Uint16Array(i),r=24,s=M(n,r/2,a[4]/2),o=2===a[5]?M(n,(r+a[4])/2):N(a,Math.ceil((r+a[4])/4));return new P(a[0],a[1],a[2],a[3],s,o)},P=function(){function e(e,t,i,a,n,r){this.initialValue=e,this.errorValue=t,this.highStart=i,this.highValueIndex=a,this.index=n,this.data=r}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>b],t=(t<<_)+(e&k),this.data[t];if(e<=65535)return t=this.index[C+(e-55296>>b)],t=(t<<_)+(e&k),this.data[t];if(e<this.highStart)return t=O-B+(e>>y),t=this.index[t],t+=e>>b&D,t=this.index[t],t=(t<<_)+(e&k),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),U="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",F="undefined"===typeof Uint8Array?[]:new Uint8Array(256),R=0;R<U.length;R++)F[U.charCodeAt(R)]=R;var Q="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",H=50,z=1,q=2,G=3,$=4,V=5,Y=7,K=8,W=9,X=10,J=11,Z=12,ee=13,te=14,ie=15,ae=16,ne=17,re=18,se=19,oe=20,le=21,ce=22,ue=23,de=24,pe=25,fe=26,Ae=27,he=28,me=29,ge=30,ve=31,be=32,ye=33,_e=34,we=35,Ce=36,xe=37,ke=38,Te=39,Se=40,Ie=41,Ee=42,Oe=43,Be=[9001,65288],Le="!",De="×",Me="÷",Ne=j(Q),je=[ge,Ce],Pe=[z,q,G,V],Ue=[X,K],Fe=[Ae,fe],Re=Pe.concat(Ue),Qe=[ke,Te,Se,_e,we],He=[ie,ee],ze=function(e,t){void 0===t&&(t="strict");var i=[],a=[],n=[];return e.forEach((function(e,r){var s=Ne.get(e);if(s>H?(n.push(!0),s-=H):n.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return a.push(r),i.push(ae);if(s===$||s===J){if(0===r)return a.push(r),i.push(ge);var o=i[r-1];return-1===Re.indexOf(o)?(a.push(a[r-1]),i.push(o)):(a.push(r),i.push(ge))}return a.push(r),s===ve?i.push("strict"===t?le:xe):s===Ee||s===me?i.push(ge):s===Oe?e>=131072&&e<=196605||e>=196608&&e<=262141?i.push(xe):i.push(ge):void i.push(s)})),[a,i,n]},qe=function(e,t,i,a){var n=a[i];if(Array.isArray(e)?-1!==e.indexOf(n):e===n){var r=i;while(r<=a.length){r++;var s=a[r];if(s===t)return!0;if(s!==X)break}}if(n===X){r=i;while(r>0){r--;var o=a[r];if(Array.isArray(e)?-1!==e.indexOf(o):e===o){var l=i;while(l<=a.length){l++;s=a[l];if(s===t)return!0;if(s!==X)break}}if(o!==X)break}}return!1},Ge=function(e,t){var i=e;while(i>=0){var a=t[i];if(a!==X)return a;i--}return 0},$e=function(e,t,i,a,n){if(0===i[a])return De;var r=a-1;if(Array.isArray(n)&&!0===n[r])return De;var s=r-1,o=r+1,l=t[r],c=s>=0?t[s]:0,u=t[o];if(l===q&&u===G)return De;if(-1!==Pe.indexOf(l))return Le;if(-1!==Pe.indexOf(u))return De;if(-1!==Ue.indexOf(u))return De;if(Ge(r,t)===K)return Me;if(Ne.get(e[r])===J)return De;if((l===be||l===ye)&&Ne.get(e[o])===J)return De;if(l===Y||u===Y)return De;if(l===W)return De;if(-1===[X,ee,ie].indexOf(l)&&u===W)return De;if(-1!==[ne,re,se,de,he].indexOf(u))return De;if(Ge(r,t)===ce)return De;if(qe(ue,ce,r,t))return De;if(qe([ne,re],le,r,t))return De;if(qe(Z,Z,r,t))return De;if(l===X)return Me;if(l===ue||u===ue)return De;if(u===ae||l===ae)return Me;if(-1!==[ee,ie,le].indexOf(u)||l===te)return De;if(c===Ce&&-1!==He.indexOf(l))return De;if(l===he&&u===Ce)return De;if(u===oe)return De;if(-1!==je.indexOf(u)&&l===pe||-1!==je.indexOf(l)&&u===pe)return De;if(l===Ae&&-1!==[xe,be,ye].indexOf(u)||-1!==[xe,be,ye].indexOf(l)&&u===fe)return De;if(-1!==je.indexOf(l)&&-1!==Fe.indexOf(u)||-1!==Fe.indexOf(l)&&-1!==je.indexOf(u))return De;if(-1!==[Ae,fe].indexOf(l)&&(u===pe||-1!==[ce,ie].indexOf(u)&&t[o+1]===pe)||-1!==[ce,ie].indexOf(l)&&u===pe||l===pe&&-1!==[pe,he,de].indexOf(u))return De;if(-1!==[pe,he,de,ne,re].indexOf(u)){var d=r;while(d>=0){var p=t[d];if(p===pe)return De;if(-1===[he,de].indexOf(p))break;d--}}if(-1!==[Ae,fe].indexOf(u)){d=-1!==[ne,re].indexOf(l)?s:r;while(d>=0){p=t[d];if(p===pe)return De;if(-1===[he,de].indexOf(p))break;d--}}if(ke===l&&-1!==[ke,Te,_e,we].indexOf(u)||-1!==[Te,_e].indexOf(l)&&-1!==[Te,Se].indexOf(u)||-1!==[Se,we].indexOf(l)&&u===Se)return De;if(-1!==Qe.indexOf(l)&&-1!==[oe,fe].indexOf(u)||-1!==Qe.indexOf(u)&&l===Ae)return De;if(-1!==je.indexOf(l)&&-1!==je.indexOf(u))return De;if(l===de&&-1!==je.indexOf(u))return De;if(-1!==je.concat(pe).indexOf(l)&&u===ce&&-1===Be.indexOf(e[o])||-1!==je.concat(pe).indexOf(u)&&l===re)return De;if(l===Ie&&u===Ie){var f=i[r],A=1;while(f>0){if(f--,t[f]!==Ie)break;A++}if(A%2!==0)return De}return l===be&&u===ye?De:Me},Ve=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var i=ze(e,t.lineBreak),a=i[0],n=i[1],r=i[2];"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(n=n.map((function(e){return-1!==[pe,ge,Ee].indexOf(e)?xe:e})));var s="keep-all"===t.wordBreak?r.map((function(t,i){return t&&e[i]>=19968&&e[i]<=40959})):void 0;return[a,n,s]},Ye=function(){function e(e,t,i,a){this.codePoints=e,this.required=t===Le,this.start=i,this.end=a}return e.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),Ke=function(e,t){var i=l(e),a=Ve(i,t),n=a[0],r=a[1],s=a[2],o=i.length,c=0,u=0;return{next:function(){if(u>=o)return{done:!0,value:null};var e=De;while(u<o&&(e=$e(i,r,n,++u,s))===De);if(e!==De||u===o){var t=new Ye(i,e,c,u);return c=u,{value:t,done:!1}}return{done:!0,value:null}}}},We=1,Xe=2,Je=4,Ze=8,et=10,tt=47,it=92,at=9,nt=32,rt=34,st=61,ot=35,lt=36,ct=37,ut=39,dt=40,pt=41,ft=95,At=45,ht=33,mt=60,gt=62,vt=64,bt=91,yt=93,_t=61,wt=123,Ct=63,xt=125,kt=124,Tt=126,St=128,It=65533,Et=42,Ot=43,Bt=44,Lt=58,Dt=59,Mt=46,Nt=0,jt=8,Pt=11,Ut=14,Ft=31,Rt=127,Qt=-1,Ht=48,zt=97,qt=101,Gt=102,$t=117,Vt=122,Yt=65,Kt=69,Wt=70,Xt=85,Jt=90,Zt=function(e){return e>=Ht&&e<=57},ei=function(e){return e>=55296&&e<=57343},ti=function(e){return Zt(e)||e>=Yt&&e<=Wt||e>=zt&&e<=Gt},ii=function(e){return e>=zt&&e<=Vt},ai=function(e){return e>=Yt&&e<=Jt},ni=function(e){return ii(e)||ai(e)},ri=function(e){return e>=St},si=function(e){return e===et||e===at||e===nt},oi=function(e){return ni(e)||ri(e)||e===ft},li=function(e){return oi(e)||Zt(e)||e===At},ci=function(e){return e>=Nt&&e<=jt||e===Pt||e>=Ut&&e<=Ft||e===Rt},ui=function(e,t){return e===it&&t!==et},di=function(e,t,i){return e===At?oi(t)||ui(t,i):!!oi(e)||!(e!==it||!ui(e,t))},pi=function(e,t,i){return e===Ot||e===At?!!Zt(t)||t===Mt&&Zt(i):Zt(e===Mt?t:e)},fi=function(e){var t=0,i=1;e[t]!==Ot&&e[t]!==At||(e[t]===At&&(i=-1),t++);var a=[];while(Zt(e[t]))a.push(e[t++]);var n=a.length?parseInt(c.apply(void 0,a),10):0;e[t]===Mt&&t++;var r=[];while(Zt(e[t]))r.push(e[t++]);var s=r.length,o=s?parseInt(c.apply(void 0,r),10):0;e[t]!==Kt&&e[t]!==qt||t++;var l=1;e[t]!==Ot&&e[t]!==At||(e[t]===At&&(l=-1),t++);var u=[];while(Zt(e[t]))u.push(e[t++]);var d=u.length?parseInt(c.apply(void 0,u),10):0;return i*(n+o*Math.pow(10,-s))*Math.pow(10,l*d)},Ai={type:2},hi={type:3},mi={type:4},gi={type:13},vi={type:8},bi={type:21},yi={type:9},_i={type:10},wi={type:11},Ci={type:12},xi={type:14},ki={type:23},Ti={type:1},Si={type:25},Ii={type:24},Ei={type:26},Oi={type:27},Bi={type:28},Li={type:29},Di={type:31},Mi={type:32},Ni=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(l(e))},e.prototype.read=function(){var e=[],t=this.consumeToken();while(t!==Mi)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case rt:return this.consumeStringToken(rt);case ot:var t=this.peekCodePoint(0),i=this.peekCodePoint(1),a=this.peekCodePoint(2);if(li(t)||ui(i,a)){var n=di(t,i,a)?Xe:We,r=this.consumeName();return{type:5,value:r,flags:n}}break;case lt:if(this.peekCodePoint(0)===st)return this.consumeCodePoint(),gi;break;case ut:return this.consumeStringToken(ut);case dt:return Ai;case pt:return hi;case Et:if(this.peekCodePoint(0)===st)return this.consumeCodePoint(),xi;break;case Ot:if(pi(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Bt:return mi;case At:var s=e,o=this.peekCodePoint(0),l=this.peekCodePoint(1);if(pi(s,o,l))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(di(s,o,l))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(o===At&&l===gt)return this.consumeCodePoint(),this.consumeCodePoint(),Ii;break;case Mt:if(pi(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case tt:if(this.peekCodePoint(0)===Et){this.consumeCodePoint();while(1){var u=this.consumeCodePoint();if(u===Et&&(u=this.consumeCodePoint(),u===tt))return this.consumeToken();if(u===Qt)return this.consumeToken()}}break;case Lt:return Ei;case Dt:return Oi;case mt:if(this.peekCodePoint(0)===ht&&this.peekCodePoint(1)===At&&this.peekCodePoint(2)===At)return this.consumeCodePoint(),this.consumeCodePoint(),Si;break;case vt:var d=this.peekCodePoint(0),p=this.peekCodePoint(1),f=this.peekCodePoint(2);if(di(d,p,f)){r=this.consumeName();return{type:7,value:r}}break;case bt:return Bi;case it:if(ui(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case yt:return Li;case _t:if(this.peekCodePoint(0)===st)return this.consumeCodePoint(),vi;break;case wt:return wi;case xt:return Ci;case $t:case Xt:var A=this.peekCodePoint(0),h=this.peekCodePoint(1);return A!==Ot||!ti(h)&&h!==Ct||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case kt:if(this.peekCodePoint(0)===st)return this.consumeCodePoint(),yi;if(this.peekCodePoint(0)===kt)return this.consumeCodePoint(),bi;break;case Tt:if(this.peekCodePoint(0)===st)return this.consumeCodePoint(),_i;break;case Qt:return Mi}return si(e)?(this.consumeWhiteSpace(),Di):Zt(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):oi(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:c(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return"undefined"===typeof e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){var e=[],t=this.consumeCodePoint();while(ti(t)&&e.length<6)e.push(t),t=this.consumeCodePoint();var i=!1;while(t===Ct&&e.length<6)e.push(t),t=this.consumeCodePoint(),i=!0;if(i){var a=parseInt(c.apply(void 0,e.map((function(e){return e===Ct?Ht:e}))),16),n=parseInt(c.apply(void 0,e.map((function(e){return e===Ct?Wt:e}))),16);return{type:30,start:a,end:n}}var r=parseInt(c.apply(void 0,e),16);if(this.peekCodePoint(0)===At&&ti(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();var s=[];while(ti(t)&&s.length<6)s.push(t),t=this.consumeCodePoint();n=parseInt(c.apply(void 0,s),16);return{type:30,start:r,end:n}}return{type:30,start:r,end:r}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&this.peekCodePoint(0)===dt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===dt?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Qt)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===ut||t===rt){var i=this.consumeStringToken(this.consumeCodePoint());return 0===i.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Qt||this.peekCodePoint(0)===pt)?(this.consumeCodePoint(),{type:22,value:i.value}):(this.consumeBadUrlRemnants(),ki)}while(1){var a=this.consumeCodePoint();if(a===Qt||a===pt)return{type:22,value:c.apply(void 0,e)};if(si(a))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Qt||this.peekCodePoint(0)===pt?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,e)}):(this.consumeBadUrlRemnants(),ki);if(a===rt||a===ut||a===dt||ci(a))return this.consumeBadUrlRemnants(),ki;if(a===it){if(!ui(a,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),ki;e.push(this.consumeEscapedCodePoint())}else e.push(a)}},e.prototype.consumeWhiteSpace=function(){while(si(this.peekCodePoint(0)))this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){while(1){var e=this.consumeCodePoint();if(e===pt||e===Qt)return;ui(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){var t=5e4,i="";while(e>0){var a=Math.min(t,e);i+=c.apply(void 0,this._value.splice(0,a)),e-=a}return this._value.shift(),i},e.prototype.consumeStringToken=function(e){var t="",i=0;do{var a=this._value[i];if(a===Qt||void 0===a||a===e)return t+=this.consumeStringSlice(i),{type:0,value:t};if(a===et)return this._value.splice(0,i),Ti;if(a===it){var n=this._value[i+1];n!==Qt&&void 0!==n&&(n===et?(t+=this.consumeStringSlice(i),i=-1,this._value.shift()):ui(a,n)&&(t+=this.consumeStringSlice(i),t+=c(this.consumeEscapedCodePoint()),i=-1))}i++}while(1)},e.prototype.consumeNumber=function(){var e=[],t=Je,i=this.peekCodePoint(0);i!==Ot&&i!==At||e.push(this.consumeCodePoint());while(Zt(this.peekCodePoint(0)))e.push(this.consumeCodePoint());i=this.peekCodePoint(0);var a=this.peekCodePoint(1);if(i===Mt&&Zt(a)){e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=Ze;while(Zt(this.peekCodePoint(0)))e.push(this.consumeCodePoint())}i=this.peekCodePoint(0),a=this.peekCodePoint(1);var n=this.peekCodePoint(2);if((i===Kt||i===qt)&&((a===Ot||a===At)&&Zt(n)||Zt(a))){e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=Ze;while(Zt(this.peekCodePoint(0)))e.push(this.consumeCodePoint())}return[fi(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],i=e[1],a=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(di(a,n,r)){var s=this.consumeName();return{type:15,number:t,flags:i,unit:s}}return a===ct?(this.consumeCodePoint(),{type:16,number:t,flags:i}):{type:17,number:t,flags:i}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(ti(e)){var t=c(e);while(ti(this.peekCodePoint(0))&&t.length<6)t+=c(this.consumeCodePoint());si(this.peekCodePoint(0))&&this.consumeCodePoint();var i=parseInt(t,16);return 0===i||ei(i)||i>1114111?It:i}return e===Qt?It:e},e.prototype.consumeName=function(){var e="";while(1){var t=this.consumeCodePoint();if(li(t))e+=c(t);else{if(!ui(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=c(this.consumeEscapedCodePoint())}}},e}(),ji=function(){function e(e){this._tokens=e}return e.create=function(t){var i=new Ni;return i.write(t),new e(i.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){var e=this.consumeToken();while(31===e.type)e=this.consumeToken();if(32===e.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(31===e.type);if(32===e.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){var e=[];while(1){var t=this.consumeComponentValue();if(32===t.type)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){var t={type:e,values:[]},i=this.consumeToken();while(1){if(32===i.type||Gi(i,e))return t;this.reconsumeToken(i),t.values.push(this.consumeComponentValue()),i=this.consumeToken()}},e.prototype.consumeFunction=function(e){var t={name:e.value,values:[],type:18};while(1){var i=this.consumeToken();if(32===i.type||3===i.type)return t;this.reconsumeToken(i),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return"undefined"===typeof e?Mi:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),Pi=function(e){return 15===e.type},Ui=function(e){return 17===e.type},Fi=function(e){return 20===e.type},Ri=function(e){return 0===e.type},Qi=function(e,t){return Fi(e)&&e.value===t},Hi=function(e){return 31!==e.type},zi=function(e){return 31!==e.type&&4!==e.type},qi=function(e){var t=[],i=[];return e.forEach((function(e){if(4===e.type){if(0===i.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(i),void(i=[])}31!==e.type&&i.push(e)})),i.length&&t.push(i),t},Gi=function(e,t){return 11===t&&12===e.type||(28===t&&29===e.type||2===t&&3===e.type)},$i=function(e){return 17===e.type||15===e.type},Vi=function(e){return 16===e.type||$i(e)},Yi=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},Ki={type:17,number:0,flags:Je},Wi={type:16,number:50,flags:Je},Xi={type:16,number:100,flags:Je},Ji=function(e,t,i){var a=e[0],n=e[1];return[Zi(a,t),Zi("undefined"!==typeof n?n:a,i)]},Zi=function(e,t){if(16===e.type)return e.number/100*t;if(Pi(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},ea="deg",ta="grad",ia="rad",aa="turn",na={name:"angle",parse:function(e,t){if(15===t.type)switch(t.unit){case ea:return Math.PI*t.number/180;case ta:return Math.PI/200*t.number;case ia:return t.number;case aa:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")}},ra=function(e){return 15===e.type&&(e.unit===ea||e.unit===ta||e.unit===ia||e.unit===aa)},sa=function(e){var t=e.filter(Fi).map((function(e){return e.value})).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Ki,Ki];case"to top":case"bottom":return oa(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Ki,Xi];case"to right":case"left":return oa(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Xi,Xi];case"to bottom":case"top":return oa(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Xi,Ki];case"to left":case"right":return oa(270)}return 0},oa=function(e){return Math.PI*e/180},la={name:"color",parse:function(e,t){if(18===t.type){var i=ma[t.name];if("undefined"===typeof i)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return i(e,t.values)}if(5===t.type){if(3===t.value.length){var a=t.value.substring(0,1),n=t.value.substring(1,2),r=t.value.substring(2,3);return da(parseInt(a+a,16),parseInt(n+n,16),parseInt(r+r,16),1)}if(4===t.value.length){a=t.value.substring(0,1),n=t.value.substring(1,2),r=t.value.substring(2,3);var s=t.value.substring(3,4);return da(parseInt(a+a,16),parseInt(n+n,16),parseInt(r+r,16),parseInt(s+s,16)/255)}if(6===t.value.length){a=t.value.substring(0,2),n=t.value.substring(2,4),r=t.value.substring(4,6);return da(parseInt(a,16),parseInt(n,16),parseInt(r,16),1)}if(8===t.value.length){a=t.value.substring(0,2),n=t.value.substring(2,4),r=t.value.substring(4,6),s=t.value.substring(6,8);return da(parseInt(a,16),parseInt(n,16),parseInt(r,16),parseInt(s,16)/255)}}if(20===t.type){var o=va[t.value.toUpperCase()];if("undefined"!==typeof o)return o}return va.TRANSPARENT}},ca=function(e){return 0===(255&e)},ua=function(e){var t=255&e,i=255&e>>8,a=255&e>>16,n=255&e>>24;return t<255?"rgba("+n+","+a+","+i+","+t/255+")":"rgb("+n+","+a+","+i+")"},da=function(e,t,i,a){return(e<<24|t<<16|i<<8|Math.round(255*a)<<0)>>>0},pa=function(e,t){if(17===e.type)return e.number;if(16===e.type){var i=3===t?1:255;return 3===t?e.number/100*i:Math.round(e.number/100*i)}return 0},fa=function(e,t){var i=t.filter(zi);if(3===i.length){var a=i.map(pa),n=a[0],r=a[1],s=a[2];return da(n,r,s,1)}if(4===i.length){var o=i.map(pa),l=(n=o[0],r=o[1],s=o[2],o[3]);return da(n,r,s,l)}return 0};function Aa(e,t,i){return i<0&&(i+=1),i>=1&&(i-=1),i<1/6?(t-e)*i*6+e:i<.5?t:i<2/3?6*(t-e)*(2/3-i)+e:e}var ha=function(e,t){var i=t.filter(zi),a=i[0],n=i[1],r=i[2],s=i[3],o=(17===a.type?oa(a.number):na.parse(e,a))/(2*Math.PI),l=Vi(n)?n.number/100:0,c=Vi(r)?r.number/100:0,u="undefined"!==typeof s&&Vi(s)?Zi(s,1):1;if(0===l)return da(255*c,255*c,255*c,1);var d=c<=.5?c*(l+1):c+l-c*l,p=2*c-d,f=Aa(p,d,o+1/3),A=Aa(p,d,o),h=Aa(p,d,o-1/3);return da(255*f,255*A,255*h,u)},ma={hsl:ha,hsla:ha,rgb:fa,rgba:fa},ga=function(e,t){return la.parse(e,ji.create(t).parseComponentValue())},va={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},ba={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map((function(e){if(Fi(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},ya={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},_a=function(e,t){var i=la.parse(e,t[0]),a=t[1];return a&&Vi(a)?{color:i,stop:a}:{color:i,stop:null}},wa=function(e,t){var i=e[0],a=e[e.length-1];null===i.stop&&(i.stop=Ki),null===a.stop&&(a.stop=Xi);for(var n=[],r=0,s=0;s<e.length;s++){var o=e[s].stop;if(null!==o){var l=Zi(o,t);l>r?n.push(l):n.push(r),r=l}else n.push(null)}var c=null;for(s=0;s<n.length;s++){var u=n[s];if(null===u)null===c&&(c=s);else if(null!==c){for(var d=s-c,p=n[c-1],f=(u-p)/(d+1),A=1;A<=d;A++)n[c+A-1]=f*A;c=null}}return e.map((function(e,i){var a=e.color;return{color:a,stop:Math.max(Math.min(1,n[i]/t),0)}}))},Ca=function(e,t,i){var a=t/2,n=i/2,r=Zi(e[0],t)-a,s=n-Zi(e[1],i);return(Math.atan2(s,r)+2*Math.PI)%(2*Math.PI)},xa=function(e,t,i){var a="number"===typeof e?e:Ca(e,t,i),n=Math.abs(t*Math.sin(a))+Math.abs(i*Math.cos(a)),r=t/2,s=i/2,o=n/2,l=Math.sin(a-Math.PI/2)*o,c=Math.cos(a-Math.PI/2)*o;return[n,r-c,r+c,s-l,s+l]},ka=function(e,t){return Math.sqrt(e*e+t*t)},Ta=function(e,t,i,a,n){var r=[[0,0],[0,t],[e,0],[e,t]];return r.reduce((function(e,t){var r=t[0],s=t[1],o=ka(i-r,a-s);return(n?o<e.optimumDistance:o>e.optimumDistance)?{optimumCorner:t,optimumDistance:o}:e}),{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},Sa=function(e,t,i,a,n){var r=0,s=0;switch(e.size){case 0:0===e.shape?r=s=Math.min(Math.abs(t),Math.abs(t-a),Math.abs(i),Math.abs(i-n)):1===e.shape&&(r=Math.min(Math.abs(t),Math.abs(t-a)),s=Math.min(Math.abs(i),Math.abs(i-n)));break;case 2:if(0===e.shape)r=s=Math.min(ka(t,i),ka(t,i-n),ka(t-a,i),ka(t-a,i-n));else if(1===e.shape){var o=Math.min(Math.abs(i),Math.abs(i-n))/Math.min(Math.abs(t),Math.abs(t-a)),l=Ta(a,n,t,i,!0),c=l[0],u=l[1];r=ka(c-t,(u-i)/o),s=o*r}break;case 1:0===e.shape?r=s=Math.max(Math.abs(t),Math.abs(t-a),Math.abs(i),Math.abs(i-n)):1===e.shape&&(r=Math.max(Math.abs(t),Math.abs(t-a)),s=Math.max(Math.abs(i),Math.abs(i-n)));break;case 3:if(0===e.shape)r=s=Math.max(ka(t,i),ka(t,i-n),ka(t-a,i),ka(t-a,i-n));else if(1===e.shape){o=Math.max(Math.abs(i),Math.abs(i-n))/Math.max(Math.abs(t),Math.abs(t-a));var d=Ta(a,n,t,i,!1);c=d[0],u=d[1];r=ka(c-t,(u-i)/o),s=o*r}break}return Array.isArray(e.size)&&(r=Zi(e.size[0],a),s=2===e.size.length?Zi(e.size[1],n):r),[r,s]},Ia=function(e,t){var i=oa(180),a=[];return qi(t).forEach((function(t,n){if(0===n){var r=t[0];if(20===r.type&&"to"===r.value)return void(i=sa(t));if(ra(r))return void(i=na.parse(e,r))}var s=_a(e,t);a.push(s)})),{angle:i,stops:a,type:1}},Ea=function(e,t){var i=oa(180),a=[];return qi(t).forEach((function(t,n){if(0===n){var r=t[0];if(20===r.type&&-1!==["top","left","right","bottom"].indexOf(r.value))return void(i=sa(t));if(ra(r))return void(i=(na.parse(e,r)+oa(270))%oa(360))}var s=_a(e,t);a.push(s)})),{angle:i,stops:a,type:1}},Oa=function(e,t){var i=oa(180),a=[],n=1,r=0,s=3,o=[];return qi(t).forEach((function(t,i){var r=t[0];if(0===i){if(Fi(r)&&"linear"===r.value)return void(n=1);if(Fi(r)&&"radial"===r.value)return void(n=2)}if(18===r.type)if("from"===r.name){var s=la.parse(e,r.values[0]);a.push({stop:Ki,color:s})}else if("to"===r.name){s=la.parse(e,r.values[0]);a.push({stop:Xi,color:s})}else if("color-stop"===r.name){var o=r.values.filter(zi);if(2===o.length){s=la.parse(e,o[1]);var l=o[0];Ui(l)&&a.push({stop:{type:16,number:100*l.number,flags:l.flags},color:s})}}})),1===n?{angle:(i+oa(180))%oa(360),stops:a,type:n}:{size:s,shape:r,stops:a,position:o,type:n}},Ba="closest-side",La="farthest-side",Da="closest-corner",Ma="farthest-corner",Na="circle",ja="ellipse",Pa="cover",Ua="contain",Fa=function(e,t){var i=0,a=3,n=[],r=[];return qi(t).forEach((function(t,s){var o=!0;if(0===s){var l=!1;o=t.reduce((function(e,t){if(l)if(Fi(t))switch(t.value){case"center":return r.push(Wi),e;case"top":case"left":return r.push(Ki),e;case"right":case"bottom":return r.push(Xi),e}else(Vi(t)||$i(t))&&r.push(t);else if(Fi(t))switch(t.value){case Na:return i=0,!1;case ja:return i=1,!1;case"at":return l=!0,!1;case Ba:return a=0,!1;case Pa:case La:return a=1,!1;case Ua:case Da:return a=2,!1;case Ma:return a=3,!1}else if($i(t)||Vi(t))return Array.isArray(a)||(a=[]),a.push(t),!1;return e}),o)}if(o){var c=_a(e,t);n.push(c)}})),{size:a,shape:i,stops:n,position:r,type:2}},Ra=function(e,t){var i=0,a=3,n=[],r=[];return qi(t).forEach((function(t,s){var o=!0;if(0===s?o=t.reduce((function(e,t){if(Fi(t))switch(t.value){case"center":return r.push(Wi),!1;case"top":case"left":return r.push(Ki),!1;case"right":case"bottom":return r.push(Xi),!1}else if(Vi(t)||$i(t))return r.push(t),!1;return e}),o):1===s&&(o=t.reduce((function(e,t){if(Fi(t))switch(t.value){case Na:return i=0,!1;case ja:return i=1,!1;case Ua:case Ba:return a=0,!1;case La:return a=1,!1;case Da:return a=2,!1;case Pa:case Ma:return a=3,!1}else if($i(t)||Vi(t))return Array.isArray(a)||(a=[]),a.push(t),!1;return e}),o)),o){var l=_a(e,t);n.push(l)}})),{size:a,shape:i,stops:n,position:r,type:2}},Qa=function(e){return 1===e.type},Ha=function(e){return 2===e.type},za={name:"image",parse:function(e,t){if(22===t.type){var i={url:t.value,type:0};return e.cache.addImage(t.value),i}if(18===t.type){var a=$a[t.name];if("undefined"===typeof a)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return a(e,t.values)}throw new Error("Unsupported image type "+t.type)}};function qa(e){return!(20===e.type&&"none"===e.value)&&(18!==e.type||!!$a[e.name])}var Ga,$a={"linear-gradient":Ia,"-moz-linear-gradient":Ea,"-ms-linear-gradient":Ea,"-o-linear-gradient":Ea,"-webkit-linear-gradient":Ea,"radial-gradient":Fa,"-moz-radial-gradient":Ra,"-ms-radial-gradient":Ra,"-o-radial-gradient":Ra,"-webkit-radial-gradient":Ra,"-webkit-gradient":Oa},Va={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var i=t[0];return 20===i.type&&"none"===i.value?[]:t.filter((function(e){return zi(e)&&qa(e)})).map((function(t){return za.parse(e,t)}))}},Ya={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map((function(e){if(Fi(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Ka={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return qi(t).map((function(e){return e.filter(Vi)})).map(Yi)}},Wa={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return qi(t).map((function(e){return e.filter(Fi).map((function(e){return e.value})).join(" ")})).map(Xa)}},Xa=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}};(function(e){e["AUTO"]="auto",e["CONTAIN"]="contain",e["COVER"]="cover"})(Ga||(Ga={}));var Ja,Za={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return qi(t).map((function(e){return e.filter(en)}))}},en=function(e){return Fi(e)||Vi(e)},tn=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},an=tn("top"),nn=tn("right"),rn=tn("bottom"),sn=tn("left"),on=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return Yi(t.filter(Vi))}}},ln=on("top-left"),cn=on("top-right"),un=on("bottom-right"),dn=on("bottom-left"),pn=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},fn=pn("top"),An=pn("right"),hn=pn("bottom"),mn=pn("left"),gn=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Pi(t)?t.number:0}}},vn=gn("top"),bn=gn("right"),yn=gn("bottom"),_n=gn("left"),wn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Cn={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},xn={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(Fi).reduce((function(e,t){return e|kn(t.value)}),0)}},kn=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Tn={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Sn={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return 20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0}};(function(e){e["NORMAL"]="normal",e["STRICT"]="strict"})(Ja||(Ja={}));var In,En={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return Ja.STRICT;case"normal":default:return Ja.NORMAL}}},On={name:"line-height",initialValue:"normal",prefix:!1,type:4},Bn=function(e,t){return Fi(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:Vi(e)?Zi(e,t):t},Ln={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return 20===t.type&&"none"===t.value?null:za.parse(e,t)}},Dn={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},Mn={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Nn=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},jn=Nn("top"),Pn=Nn("right"),Un=Nn("bottom"),Fn=Nn("left"),Rn={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(Fi).map((function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}}))}},Qn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},Hn=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},zn=Hn("top"),qn=Hn("right"),Gn=Hn("bottom"),$n=Hn("left"),Vn={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Yn={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Kn={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&Qi(t[0],"none")?[]:qi(t).map((function(t){for(var i={color:va.TRANSPARENT,offsetX:Ki,offsetY:Ki,blur:Ki},a=0,n=0;n<t.length;n++){var r=t[n];$i(r)?(0===a?i.offsetX=r:1===a?i.offsetY=r:i.blur=r,a++):i.color=la.parse(e,r)}return i}))}},Wn={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Xn={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(20===t.type&&"none"===t.value)return null;if(18===t.type){var i=er[t.name];if("undefined"===typeof i)throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return i(t.values)}return null}},Jn=function(e){var t=e.filter((function(e){return 17===e.type})).map((function(e){return e.number}));return 6===t.length?t:null},Zn=function(e){var t=e.filter((function(e){return 17===e.type})).map((function(e){return e.number})),i=t[0],a=t[1];t[2],t[3];var n=t[4],r=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var s=t[12],o=t[13];return t[14],t[15],16===t.length?[i,a,n,r,s,o]:null},er={matrix:Jn,matrix3d:Zn},tr={type:16,number:50,flags:Je},ir=[tr,tr],ar={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var i=t.filter(Vi);return 2!==i.length?ir:[i[0],i[1]]}},nr={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}};(function(e){e["NORMAL"]="normal",e["BREAK_ALL"]="break-all",e["KEEP_ALL"]="keep-all"})(In||(In={}));for(var rr={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return In.BREAK_ALL;case"keep-all":return In.KEEP_ALL;case"normal":default:return In.NORMAL}}},sr={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(20===t.type)return{auto:!0,order:0};if(Ui(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},or={name:"time",parse:function(e,t){if(15===t.type)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},lr={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return Ui(t)?t.number:1}},cr={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ur={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(Fi).map((function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(e){return 0!==e}))}},dr={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var i=[],a=[];return t.forEach((function(e){switch(e.type){case 20:case 0:i.push(e.value);break;case 17:i.push(e.number.toString());break;case 4:a.push(i.join(" ")),i.length=0;break}})),i.length&&a.push(i.join(" ")),a.map((function(e){return-1===e.indexOf(" ")?e:"'"+e+"'"}))}},pr={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},fr={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(Ui(t))return t.number;if(Fi(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},Ar={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(Fi).map((function(e){return e.value}))}},hr={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},mr=function(e,t){return 0!==(e&t)},gr={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var i=t[0];return 20===i.type&&"none"===i.value?[]:t}},vr={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var i=t[0];if(20===i.type&&"none"===i.value)return null;for(var a=[],n=t.filter(Hi),r=0;r<n.length;r++){var s=n[r],o=n[r+1];if(20===s.type){var l=o&&Ui(o)?o.number:1;a.push({counter:s.value,increment:l})}}return a}},br={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return[];for(var i=[],a=t.filter(Hi),n=0;n<a.length;n++){var r=a[n],s=a[n+1];if(Fi(r)&&"none"!==r.value){var o=s&&Ui(s)?s.number:0;i.push({counter:r.value,reset:o})}}return i}},yr={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(Pi).map((function(t){return or.parse(e,t)}))}},_r={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var i=t[0];if(20===i.type&&"none"===i.value)return null;var a=[],n=t.filter(Ri);if(n.length%2!==0)return null;for(var r=0;r<n.length;r+=2){var s=n[r].value,o=n[r+1].value;a.push({open:s,close:o})}return a}},wr=function(e,t,i){if(!e)return"";var a=e[Math.min(t,e.length-1)];return a?i?a.open:a.close:""},Cr={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&Qi(t[0],"none")?[]:qi(t).map((function(t){for(var i={color:255,offsetX:Ki,offsetY:Ki,blur:Ki,spread:Ki,inset:!1},a=0,n=0;n<t.length;n++){var r=t[n];Qi(r,"inset")?i.inset=!0:$i(r)?(0===a?i.offsetX=r:1===a?i.offsetY=r:2===a?i.blur=r:i.spread=r,a++):i.color=la.parse(e,r)}return i}))}},xr={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var i=[0,1,2],a=[];return t.filter(Fi).forEach((function(e){switch(e.value){case"stroke":a.push(1);break;case"fill":a.push(0);break;case"markers":a.push(2);break}})),i.forEach((function(e){-1===a.indexOf(e)&&a.push(e)})),a}},kr={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Tr={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Pi(t)?t.number:0}},Sr=function(){function e(e,t){var i,a;this.animationDuration=Or(e,yr,t.animationDuration),this.backgroundClip=Or(e,ba,t.backgroundClip),this.backgroundColor=Or(e,ya,t.backgroundColor),this.backgroundImage=Or(e,Va,t.backgroundImage),this.backgroundOrigin=Or(e,Ya,t.backgroundOrigin),this.backgroundPosition=Or(e,Ka,t.backgroundPosition),this.backgroundRepeat=Or(e,Wa,t.backgroundRepeat),this.backgroundSize=Or(e,Za,t.backgroundSize),this.borderTopColor=Or(e,an,t.borderTopColor),this.borderRightColor=Or(e,nn,t.borderRightColor),this.borderBottomColor=Or(e,rn,t.borderBottomColor),this.borderLeftColor=Or(e,sn,t.borderLeftColor),this.borderTopLeftRadius=Or(e,ln,t.borderTopLeftRadius),this.borderTopRightRadius=Or(e,cn,t.borderTopRightRadius),this.borderBottomRightRadius=Or(e,un,t.borderBottomRightRadius),this.borderBottomLeftRadius=Or(e,dn,t.borderBottomLeftRadius),this.borderTopStyle=Or(e,fn,t.borderTopStyle),this.borderRightStyle=Or(e,An,t.borderRightStyle),this.borderBottomStyle=Or(e,hn,t.borderBottomStyle),this.borderLeftStyle=Or(e,mn,t.borderLeftStyle),this.borderTopWidth=Or(e,vn,t.borderTopWidth),this.borderRightWidth=Or(e,bn,t.borderRightWidth),this.borderBottomWidth=Or(e,yn,t.borderBottomWidth),this.borderLeftWidth=Or(e,_n,t.borderLeftWidth),this.boxShadow=Or(e,Cr,t.boxShadow),this.color=Or(e,wn,t.color),this.direction=Or(e,Cn,t.direction),this.display=Or(e,xn,t.display),this.float=Or(e,Tn,t.cssFloat),this.fontFamily=Or(e,dr,t.fontFamily),this.fontSize=Or(e,pr,t.fontSize),this.fontStyle=Or(e,hr,t.fontStyle),this.fontVariant=Or(e,Ar,t.fontVariant),this.fontWeight=Or(e,fr,t.fontWeight),this.letterSpacing=Or(e,Sn,t.letterSpacing),this.lineBreak=Or(e,En,t.lineBreak),this.lineHeight=Or(e,On,t.lineHeight),this.listStyleImage=Or(e,Ln,t.listStyleImage),this.listStylePosition=Or(e,Dn,t.listStylePosition),this.listStyleType=Or(e,Mn,t.listStyleType),this.marginTop=Or(e,jn,t.marginTop),this.marginRight=Or(e,Pn,t.marginRight),this.marginBottom=Or(e,Un,t.marginBottom),this.marginLeft=Or(e,Fn,t.marginLeft),this.opacity=Or(e,lr,t.opacity);var n=Or(e,Rn,t.overflow);this.overflowX=n[0],this.overflowY=n[n.length>1?1:0],this.overflowWrap=Or(e,Qn,t.overflowWrap),this.paddingTop=Or(e,zn,t.paddingTop),this.paddingRight=Or(e,qn,t.paddingRight),this.paddingBottom=Or(e,Gn,t.paddingBottom),this.paddingLeft=Or(e,$n,t.paddingLeft),this.paintOrder=Or(e,xr,t.paintOrder),this.position=Or(e,Yn,t.position),this.textAlign=Or(e,Vn,t.textAlign),this.textDecorationColor=Or(e,cr,null!==(i=t.textDecorationColor)&&void 0!==i?i:t.color),this.textDecorationLine=Or(e,ur,null!==(a=t.textDecorationLine)&&void 0!==a?a:t.textDecoration),this.textShadow=Or(e,Kn,t.textShadow),this.textTransform=Or(e,Wn,t.textTransform),this.transform=Or(e,Xn,t.transform),this.transformOrigin=Or(e,ar,t.transformOrigin),this.visibility=Or(e,nr,t.visibility),this.webkitTextStrokeColor=Or(e,kr,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=Or(e,Tr,t.webkitTextStrokeWidth),this.wordBreak=Or(e,rr,t.wordBreak),this.zIndex=Or(e,sr,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return ca(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return mr(this.display,4)||mr(this.display,33554432)||mr(this.display,268435456)||mr(this.display,536870912)||mr(this.display,67108864)||mr(this.display,134217728)},e}(),Ir=function(){function e(e,t){this.content=Or(e,gr,t.content),this.quotes=Or(e,_r,t.quotes)}return e}(),Er=function(){function e(e,t){this.counterIncrement=Or(e,vr,t.counterIncrement),this.counterReset=Or(e,br,t.counterReset)}return e}(),Or=function(e,t,i){var a=new Ni,n=null!==i&&"undefined"!==typeof i?i.toString():t.initialValue;a.write(n);var r=new ji(a.read());switch(t.type){case 2:var s=r.parseComponentValue();return t.parse(e,Fi(s)?s.value:t.initialValue);case 0:return t.parse(e,r.parseComponentValue());case 1:return t.parse(e,r.parseComponentValues());case 4:return r.parseComponentValue();case 3:switch(t.format){case"angle":return na.parse(e,r.parseComponentValue());case"color":return la.parse(e,r.parseComponentValue());case"image":return za.parse(e,r.parseComponentValue());case"length":var o=r.parseComponentValue();return $i(o)?o:Ki;case"length-percentage":var l=r.parseComponentValue();return Vi(l)?l:Ki;case"time":return or.parse(e,r.parseComponentValue())}break}},Br="data-html2canvas-debug",Lr=function(e){var t=e.getAttribute(Br);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Dr=function(e,t){var i=Lr(e);return 1===i||t===i},Mr=function(){function e(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Dr(t,3),this.styles=new Sr(e,window.getComputedStyle(t,null)),Eo(t)&&(this.styles.animationDuration.some((function(e){return e>0}))&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=s(this.context,t),Dr(t,4)&&(this.flags|=16)}return e}(),Nr="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",jr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Pr="undefined"===typeof Uint8Array?[]:new Uint8Array(256),Ur=0;Ur<jr.length;Ur++)Pr[jr.charCodeAt(Ur)]=Ur;for(var Fr=function(e){var t,i,a,n,r,s=.75*e.length,o=e.length,l=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var c="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),u=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<o;t+=4)i=Pr[e.charCodeAt(t)],a=Pr[e.charCodeAt(t+1)],n=Pr[e.charCodeAt(t+2)],r=Pr[e.charCodeAt(t+3)],u[l++]=i<<2|a>>4,u[l++]=(15&a)<<4|n>>2,u[l++]=(3&n)<<6|63&r;return c},Rr=function(e){for(var t=e.length,i=[],a=0;a<t;a+=2)i.push(e[a+1]<<8|e[a]);return i},Qr=function(e){for(var t=e.length,i=[],a=0;a<t;a+=4)i.push(e[a+3]<<24|e[a+2]<<16|e[a+1]<<8|e[a]);return i},Hr=5,zr=11,qr=2,Gr=zr-Hr,$r=65536>>Hr,Vr=1<<Hr,Yr=Vr-1,Kr=1024>>Hr,Wr=$r+Kr,Xr=Wr,Jr=32,Zr=Xr+Jr,es=65536>>zr,ts=1<<Gr,is=ts-1,as=function(e,t,i){return e.slice?e.slice(t,i):new Uint16Array(Array.prototype.slice.call(e,t,i))},ns=function(e,t,i){return e.slice?e.slice(t,i):new Uint32Array(Array.prototype.slice.call(e,t,i))},rs=function(e,t){var i=Fr(e),a=Array.isArray(i)?Qr(i):new Uint32Array(i),n=Array.isArray(i)?Rr(i):new Uint16Array(i),r=24,s=as(n,r/2,a[4]/2),o=2===a[5]?as(n,(r+a[4])/2):ns(a,Math.ceil((r+a[4])/4));return new ss(a[0],a[1],a[2],a[3],s,o)},ss=function(){function e(e,t,i,a,n,r){this.initialValue=e,this.errorValue=t,this.highStart=i,this.highValueIndex=a,this.index=n,this.data=r}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>Hr],t=(t<<qr)+(e&Yr),this.data[t];if(e<=65535)return t=this.index[$r+(e-55296>>Hr)],t=(t<<qr)+(e&Yr),this.data[t];if(e<this.highStart)return t=Zr-es+(e>>zr),t=this.index[t],t+=e>>Hr&is,t=this.index[t],t=(t<<qr)+(e&Yr),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),os="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ls="undefined"===typeof Uint8Array?[]:new Uint8Array(256),cs=0;cs<os.length;cs++)ls[os.charCodeAt(cs)]=cs;var us,ds=1,ps=2,fs=3,As=4,hs=5,ms=7,gs=8,vs=9,bs=10,ys=11,_s=12,ws=13,Cs=14,xs=15,ks=function(e){var t=[],i=0,a=e.length;while(i<a){var n=e.charCodeAt(i++);if(n>=55296&&n<=56319&&i<a){var r=e.charCodeAt(i++);56320===(64512&r)?t.push(((1023&n)<<10)+(1023&r)+65536):(t.push(n),i--)}else t.push(n)}return t},Ts=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var i=e.length;if(!i)return"";var a=[],n=-1,r="";while(++n<i){var s=e[n];s<=65535?a.push(s):(s-=65536,a.push(55296+(s>>10),s%1024+56320)),(n+1===i||a.length>16384)&&(r+=String.fromCharCode.apply(String,a),a.length=0)}return r},Ss=rs(Nr),Is="×",Es="÷",Os=function(e){return Ss.get(e)},Bs=function(e,t,i){var a=i-2,n=t[a],r=t[i-1],s=t[i];if(r===ps&&s===fs)return Is;if(r===ps||r===fs||r===As)return Es;if(s===ps||s===fs||s===As)return Es;if(r===gs&&-1!==[gs,vs,ys,_s].indexOf(s))return Is;if((r===ys||r===vs)&&(s===vs||s===bs))return Is;if((r===_s||r===bs)&&s===bs)return Is;if(s===ws||s===hs)return Is;if(s===ms)return Is;if(r===ds)return Is;if(r===ws&&s===Cs){while(n===hs)n=t[--a];if(n===Cs)return Is}if(r===xs&&s===xs){var o=0;while(n===xs)o++,n=t[--a];if(o%2===0)return Is}return Es},Ls=function(e){var t=ks(e),i=t.length,a=0,n=0,r=t.map(Os);return{next:function(){if(a>=i)return{done:!0,value:null};var e=Is;while(a<i&&(e=Bs(t,r,++a))===Is);if(e!==Is||a===i){var s=Ts.apply(null,t.slice(n,a));return n=a,{value:s,done:!1}}return{done:!0,value:null}}}},Ds=function(e){var t,i=Ls(e),a=[];while(!(t=i.next()).done)t.value&&a.push(t.value.slice());return a},Ms=function(e){var t=123;if(e.createRange){var i=e.createRange();if(i.getBoundingClientRect){var a=e.createElement("boundtest");a.style.height=t+"px",a.style.display="block",e.body.appendChild(a),i.selectNode(a);var n=i.getBoundingClientRect(),r=Math.round(n.height);if(e.body.removeChild(a),r===t)return!0}}return!1},Ns=function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var i=e.createRange();t.innerHTML="function"===typeof"".repeat?"👨".repeat(10):"";var a=t.firstChild,n=l(a.data).map((function(e){return c(e)})),r=0,s={},o=n.every((function(e,t){i.setStart(a,r),i.setEnd(a,r+e.length);var n=i.getBoundingClientRect();r+=e.length;var o=n.x>s.x||n.y>s.y;return s=n,0===t||o}));return e.body.removeChild(t),o},js=function(){return"undefined"!==typeof(new Image).crossOrigin},Ps=function(){return"string"===typeof(new XMLHttpRequest).responseType},Us=function(e){var t=new Image,i=e.createElement("canvas"),a=i.getContext("2d");if(!a)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{a.drawImage(t,0,0),i.toDataURL()}catch(qt){return!1}return!0},Fs=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},Rs=function(e){var t=e.createElement("canvas"),i=100;t.width=i,t.height=i;var a=t.getContext("2d");if(!a)return Promise.reject(!1);a.fillStyle="rgb(0, 255, 0)",a.fillRect(0,0,i,i);var n=new Image,r=t.toDataURL();n.src=r;var s=Qs(i,i,0,0,n);return a.fillStyle="red",a.fillRect(0,0,i,i),Hs(s).then((function(t){a.drawImage(t,0,0);var n=a.getImageData(0,0,i,i).data;a.fillStyle="red",a.fillRect(0,0,i,i);var s=e.createElement("div");return s.style.backgroundImage="url("+r+")",s.style.height=i+"px",Fs(n)?Hs(Qs(i,i,0,0,s)):Promise.reject(!1)})).then((function(e){return a.drawImage(e,0,0),Fs(a.getImageData(0,0,i,i).data)})).catch((function(){return!1}))},Qs=function(e,t,i,a,n){var r="http://www.w3.org/2000/svg",s=document.createElementNS(r,"svg"),o=document.createElementNS(r,"foreignObject");return s.setAttributeNS(null,"width",e.toString()),s.setAttributeNS(null,"height",t.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",i.toString()),o.setAttributeNS(null,"y",a.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(o),o.appendChild(n),s},Hs=function(e){return new Promise((function(t,i){var a=new Image;a.onload=function(){return t(a)},a.onerror=i,a.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},zs={get SUPPORT_RANGE_BOUNDS(){var e=Ms(document);return Object.defineProperty(zs,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=zs.SUPPORT_RANGE_BOUNDS&&Ns(document);return Object.defineProperty(zs,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=Us(document);return Object.defineProperty(zs,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"===typeof Array.from&&"function"===typeof window.fetch?Rs(document):Promise.resolve(!1);return Object.defineProperty(zs,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=js();return Object.defineProperty(zs,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=Ps();return Object.defineProperty(zs,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(zs,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!("undefined"===typeof Intl||!Intl.Segmenter);return Object.defineProperty(zs,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},qs=function(){function e(e,t){this.text=e,this.bounds=t}return e}(),Gs=function(e,t,i,a){var n=Ws(t,i),s=[],o=0;return n.forEach((function(t){if(i.textDecorationLine.length||t.trim().length>0)if(zs.SUPPORT_RANGE_BOUNDS){var n=Vs(a,o,t.length).getClientRects();if(n.length>1){var l=Ys(t),c=0;l.forEach((function(t){s.push(new qs(t,r.fromDOMRectList(e,Vs(a,c+o,t.length).getClientRects()))),c+=t.length}))}else s.push(new qs(t,r.fromDOMRectList(e,n)))}else{var u=a.splitText(t.length);s.push(new qs(t,$s(e,a))),a=u}else zs.SUPPORT_RANGE_BOUNDS||(a=a.splitText(t.length));o+=t.length})),s},$s=function(e,t){var i=t.ownerDocument;if(i){var a=i.createElement("html2canvaswrapper");a.appendChild(t.cloneNode(!0));var n=t.parentNode;if(n){n.replaceChild(a,t);var o=s(e,a);return a.firstChild&&n.replaceChild(a.firstChild,a),o}}return r.EMPTY},Vs=function(e,t,i){var a=e.ownerDocument;if(!a)throw new Error("Node has no owner document");var n=a.createRange();return n.setStart(e,t),n.setEnd(e,t+i),n},Ys=function(e){if(zs.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map((function(e){return e.segment}))}return Ds(e)},Ks=function(e,t){if(zs.SUPPORT_NATIVE_TEXT_SEGMENTATION){var i=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(i.segment(e)).map((function(e){return e.segment}))}return Js(e,t)},Ws=function(e,t){return 0!==t.letterSpacing?Ys(e):Ks(e,t)},Xs=[32,160,4961,65792,65793,4153,4241],Js=function(e,t){var i,a=Ke(e,{lineBreak:t.lineBreak,wordBreak:"break-word"===t.overflowWrap?"break-word":t.wordBreak}),n=[],r=function(){if(i.value){var e=i.value.slice(),t=l(e),a="";t.forEach((function(e){-1===Xs.indexOf(e)?a+=c(e):(a.length&&n.push(a),n.push(c(e)),a="")})),a.length&&n.push(a)}};while(!(i=a.next()).done)r();return n},Zs=function(){function e(e,t,i){this.text=eo(t.data,i.textTransform),this.textBounds=Gs(e,this.text,i,t)}return e}(),eo=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(to,io);case 2:return e.toUpperCase();default:return e}},to=/(^|\s|:|-|\(|\))([a-z])/g,io=function(e,t,i){return e.length>0?t+i.toUpperCase():e},ao=function(e){function i(t,i){var a=e.call(this,t,i)||this;return a.src=i.currentSrc||i.src,a.intrinsicWidth=i.naturalWidth,a.intrinsicHeight=i.naturalHeight,a.context.cache.addImage(a.src),a}return t(i,e),i}(Mr),no=function(e){function i(t,i){var a=e.call(this,t,i)||this;return a.canvas=i,a.intrinsicWidth=i.width,a.intrinsicHeight=i.height,a}return t(i,e),i}(Mr),ro=function(e){function i(t,i){var a=e.call(this,t,i)||this,n=new XMLSerializer,r=s(t,i);return i.setAttribute("width",r.width+"px"),i.setAttribute("height",r.height+"px"),a.svg="data:image/svg+xml,"+encodeURIComponent(n.serializeToString(i)),a.intrinsicWidth=i.width.baseVal.value,a.intrinsicHeight=i.height.baseVal.value,a.context.cache.addImage(a.svg),a}return t(i,e),i}(Mr),so=function(e){function i(t,i){var a=e.call(this,t,i)||this;return a.value=i.value,a}return t(i,e),i}(Mr),oo=function(e){function i(t,i){var a=e.call(this,t,i)||this;return a.start=i.start,a.reversed="boolean"===typeof i.reversed&&!0===i.reversed,a}return t(i,e),i}(Mr),lo=[{type:15,flags:0,unit:"px",number:3}],co=[{type:16,flags:0,number:50}],uo=function(e){return e.width>e.height?new r(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new r(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},po=function(e){var t=e.type===ho?new Array(e.value.length+1).join("•"):e.value;return 0===t.length?e.placeholder||"":t},fo="checkbox",Ao="radio",ho="password",mo=707406591,go=function(e){function i(t,i){var a=e.call(this,t,i)||this;switch(a.type=i.type.toLowerCase(),a.checked=i.checked,a.value=po(i),a.type!==fo&&a.type!==Ao||(a.styles.backgroundColor=3739148031,a.styles.borderTopColor=a.styles.borderRightColor=a.styles.borderBottomColor=a.styles.borderLeftColor=2779096575,a.styles.borderTopWidth=a.styles.borderRightWidth=a.styles.borderBottomWidth=a.styles.borderLeftWidth=1,a.styles.borderTopStyle=a.styles.borderRightStyle=a.styles.borderBottomStyle=a.styles.borderLeftStyle=1,a.styles.backgroundClip=[0],a.styles.backgroundOrigin=[0],a.bounds=uo(a.bounds)),a.type){case fo:a.styles.borderTopRightRadius=a.styles.borderTopLeftRadius=a.styles.borderBottomRightRadius=a.styles.borderBottomLeftRadius=lo;break;case Ao:a.styles.borderTopRightRadius=a.styles.borderTopLeftRadius=a.styles.borderBottomRightRadius=a.styles.borderBottomLeftRadius=co;break}return a}return t(i,e),i}(Mr),vo=function(e){function i(t,i){var a=e.call(this,t,i)||this,n=i.options[i.selectedIndex||0];return a.value=n&&n.text||"",a}return t(i,e),i}(Mr),bo=function(e){function i(t,i){var a=e.call(this,t,i)||this;return a.value=i.value,a}return t(i,e),i}(Mr),yo=function(e){function i(t,i){var a=e.call(this,t,i)||this;a.src=i.src,a.width=parseInt(i.width,10)||0,a.height=parseInt(i.height,10)||0,a.backgroundColor=a.styles.backgroundColor;try{if(i.contentWindow&&i.contentWindow.document&&i.contentWindow.document.documentElement){a.tree=xo(t,i.contentWindow.document.documentElement);var n=i.contentWindow.document.documentElement?ga(t,getComputedStyle(i.contentWindow.document.documentElement).backgroundColor):va.TRANSPARENT,r=i.contentWindow.document.body?ga(t,getComputedStyle(i.contentWindow.document.body).backgroundColor):va.TRANSPARENT;a.backgroundColor=ca(n)?ca(r)?a.styles.backgroundColor:r:n}}catch(qt){}return a}return t(i,e),i}(Mr),_o=["OL","UL","MENU"],wo=function(e,t,i,a){for(var n=t.firstChild,r=void 0;n;n=r)if(r=n.nextSibling,So(n)&&n.data.trim().length>0)i.textNodes.push(new Zs(e,n,i.styles));else if(Io(n))if(Go(n)&&n.assignedNodes)n.assignedNodes().forEach((function(t){return wo(e,t,i,a)}));else{var s=Co(e,n);s.styles.isVisible()&&(ko(n,s,a)?s.flags|=4:To(s.styles)&&(s.flags|=2),-1!==_o.indexOf(n.tagName)&&(s.flags|=8),i.elements.push(s),n.slot,n.shadowRoot?wo(e,n.shadowRoot,s,a):zo(n)||No(n)||qo(n)||wo(e,n,s,a))}},Co=function(e,t){return Fo(t)?new ao(e,t):Po(t)?new no(e,t):No(t)?new ro(e,t):Bo(t)?new so(e,t):Lo(t)?new oo(e,t):Do(t)?new go(e,t):qo(t)?new vo(e,t):zo(t)?new bo(e,t):Ro(t)?new yo(e,t):new Mr(e,t)},xo=function(e,t){var i=Co(e,t);return i.flags|=4,wo(e,t,i,i),i},ko=function(e,t,i){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||jo(e)&&i.styles.isTransparent()},To=function(e){return e.isPositioned()||e.isFloating()},So=function(e){return e.nodeType===Node.TEXT_NODE},Io=function(e){return e.nodeType===Node.ELEMENT_NODE},Eo=function(e){return Io(e)&&"undefined"!==typeof e.style&&!Oo(e)},Oo=function(e){return"object"===typeof e.className},Bo=function(e){return"LI"===e.tagName},Lo=function(e){return"OL"===e.tagName},Do=function(e){return"INPUT"===e.tagName},Mo=function(e){return"HTML"===e.tagName},No=function(e){return"svg"===e.tagName},jo=function(e){return"BODY"===e.tagName},Po=function(e){return"CANVAS"===e.tagName},Uo=function(e){return"VIDEO"===e.tagName},Fo=function(e){return"IMG"===e.tagName},Ro=function(e){return"IFRAME"===e.tagName},Qo=function(e){return"STYLE"===e.tagName},Ho=function(e){return"SCRIPT"===e.tagName},zo=function(e){return"TEXTAREA"===e.tagName},qo=function(e){return"SELECT"===e.tagName},Go=function(e){return"SLOT"===e.tagName},$o=function(e){return e.tagName.indexOf("-")>0},Vo=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},e.prototype.pop=function(e){var t=this;e.forEach((function(e){return t.counters[e].pop()}))},e.prototype.parse=function(e){var t=this,i=e.counterIncrement,a=e.counterReset,n=!0;null!==i&&i.forEach((function(e){var i=t.counters[e.counter];i&&0!==e.increment&&(n=!1,i.length||i.push(1),i[Math.max(0,i.length-1)]+=e.increment)}));var r=[];return n&&a.forEach((function(e){var i=t.counters[e.counter];r.push(e.counter),i||(i=t.counters[e.counter]=[]),i.push(e.reset)})),r},e}(),Yo={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Ko={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Wo={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Xo={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Jo=function(e,t,i,a,n,r){return e<t||e>i?dl(e,n,r.length>0):a.integers.reduce((function(t,i,n){while(e>=i)e-=i,t+=a.values[n];return t}),"")+r},Zo=function(e,t,i,a){var n="";do{i||e--,n=a(e)+n,e/=t}while(e*t>=t);return n},el=function(e,t,i,a,n){var r=i-t+1;return(e<0?"-":"")+(Zo(Math.abs(e),r,a,(function(e){return c(Math.floor(e%r)+t)}))+n)},tl=function(e,t,i){void 0===i&&(i=". ");var a=t.length;return Zo(Math.abs(e),a,!1,(function(e){return t[Math.floor(e%a)]}))+i},il=1,al=2,nl=4,rl=8,sl=function(e,t,i,a,n,r){if(e<-9999||e>9999)return dl(e,4,n.length>0);var s=Math.abs(e),o=n;if(0===s)return t[0]+o;for(var l=0;s>0&&l<=4;l++){var c=s%10;0===c&&mr(r,il)&&""!==o?o=t[c]+o:c>1||1===c&&0===l||1===c&&1===l&&mr(r,al)||1===c&&1===l&&mr(r,nl)&&e>100||1===c&&l>1&&mr(r,rl)?o=t[c]+(l>0?i[l-1]:"")+o:1===c&&l>0&&(o=i[l-1]+o),s=Math.floor(s/10)}return(e<0?a:"")+o},ol="十百千萬",ll="拾佰仟萬",cl="マイナス",ul="마이너스",dl=function(e,t,i){var a=i?". ":"",n=i?"、":"",r=i?", ":"",s=i?" ":"";switch(t){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var o=el(e,48,57,!0,a);return o.length<4?"0"+o:o;case 4:return tl(e,"〇一二三四五六七八九",n);case 6:return Jo(e,1,3999,Yo,3,a).toLowerCase();case 7:return Jo(e,1,3999,Yo,3,a);case 8:return el(e,945,969,!1,a);case 9:return el(e,97,122,!1,a);case 10:return el(e,65,90,!1,a);case 11:return el(e,1632,1641,!0,a);case 12:case 49:return Jo(e,1,9999,Ko,3,a);case 35:return Jo(e,1,9999,Ko,3,a).toLowerCase();case 13:return el(e,2534,2543,!0,a);case 14:case 30:return el(e,6112,6121,!0,a);case 15:return tl(e,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return tl(e,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return sl(e,"零一二三四五六七八九",ol,"負",n,al|nl|rl);case 47:return sl(e,"零壹貳參肆伍陸柒捌玖",ll,"負",n,il|al|nl|rl);case 42:return sl(e,"零一二三四五六七八九",ol,"负",n,al|nl|rl);case 41:return sl(e,"零壹贰叁肆伍陆柒捌玖",ll,"负",n,il|al|nl|rl);case 26:return sl(e,"〇一二三四五六七八九","十百千万",cl,n,0);case 25:return sl(e,"零壱弐参四伍六七八九","拾百千万",cl,n,il|al|nl);case 31:return sl(e,"영일이삼사오육칠팔구","십백천만",ul,r,il|al|nl);case 33:return sl(e,"零一二三四五六七八九","十百千萬",ul,r,0);case 32:return sl(e,"零壹貳參四五六七八九","拾百千",ul,r,il|al|nl);case 18:return el(e,2406,2415,!0,a);case 20:return Jo(e,1,19999,Xo,3,a);case 21:return el(e,2790,2799,!0,a);case 22:return el(e,2662,2671,!0,a);case 22:return Jo(e,1,10999,Wo,3,a);case 23:return tl(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return tl(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return el(e,3302,3311,!0,a);case 28:return tl(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return tl(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return el(e,3792,3801,!0,a);case 37:return el(e,6160,6169,!0,a);case 38:return el(e,4160,4169,!0,a);case 39:return el(e,2918,2927,!0,a);case 40:return el(e,1776,1785,!0,a);case 43:return el(e,3046,3055,!0,a);case 44:return el(e,3174,3183,!0,a);case 45:return el(e,3664,3673,!0,a);case 46:return el(e,3872,3881,!0,a);case 3:default:return el(e,48,57,!0,a)}},pl="data-html2canvas-ignore",fl=function(){function e(e,t,i){if(this.context=e,this.options=i,this.scrolledElements=[],this.referenceElement=t,this.counters=new Vo,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,t){var i=this,r=hl(e,t);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var s=e.defaultView.pageXOffset,o=e.defaultView.pageYOffset,l=r.contentWindow,c=l.document,u=vl(r).then((function(){return a(i,void 0,void 0,(function(){var e,i;return n(this,(function(a){switch(a.label){case 0:return this.scrolledElements.forEach(Cl),l&&(l.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||l.scrollY===t.top&&l.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(l.scrollX-t.left,l.scrollY-t.top,0,0))),e=this.options.onclone,i=this.clonedReferenceElement,"undefined"===typeof i?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:a.sent(),a.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,gl(c)]:[3,4];case 3:a.sent(),a.label=4;case 4:return"function"===typeof e?[2,Promise.resolve().then((function(){return e(c,i)})).then((function(){return r}))]:[2,r]}}))}))}));return c.open(),c.write(_l(document.doctype)+"<html></html>"),wl(this.referenceElement.ownerDocument,s,o),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),u},e.prototype.createElementClone=function(e){if(Dr(e,2),Po(e))return this.createCanvasClone(e);if(Uo(e))return this.createVideoClone(e);if(Qo(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Fo(t)&&(Fo(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),$o(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return yl(e.style,t),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var i=[].slice.call(t.cssRules,0).reduce((function(e,t){return t&&"string"===typeof t.cssText?e+t.cssText:e}),""),a=e.cloneNode(!1);return a.textContent=i,a}}catch(qt){if(this.context.logger.error("Unable to access cssRules property",qt),"SecurityError"!==qt.name)throw qt}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var i=e.ownerDocument.createElement("img");try{return i.src=e.toDataURL(),i}catch(qt){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var a=e.cloneNode(!1);try{a.width=e.width,a.height=e.height;var n=e.getContext("2d"),r=a.getContext("2d");if(r)if(!this.options.allowTaint&&n)r.putImageData(n.getImageData(0,0,e.width,e.height),0,0);else{var s=null!==(t=e.getContext("webgl2"))&&void 0!==t?t:e.getContext("webgl");if(s){var o=s.getContextAttributes();!1===(null===o||void 0===o?void 0:o.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}r.drawImage(e,0,0)}return a}catch(qt){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return a},e.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var i=t.getContext("2d");try{return i&&(i.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||i.getImageData(0,0,t.width,t.height)),t}catch(qt){this.context.logger.info("Unable to clone video as it is tainted",e)}var a=e.ownerDocument.createElement("canvas");return a.width=e.offsetWidth,a.height=e.offsetHeight,a},e.prototype.appendChildNode=function(e,t,i){Io(t)&&(Ho(t)||t.hasAttribute(pl)||"function"===typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&Io(t)&&Qo(t)||e.appendChild(this.cloneNode(t,i))},e.prototype.cloneChildNodes=function(e,t,i){for(var a=this,n=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;n;n=n.nextSibling)if(Io(n)&&Go(n)&&"function"===typeof n.assignedNodes){var r=n.assignedNodes();r.length&&r.forEach((function(e){return a.appendChildNode(t,e,i)}))}else this.appendChildNode(t,n,i)},e.prototype.cloneNode=function(e,t){if(So(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var i=e.ownerDocument.defaultView;if(i&&Io(e)&&(Eo(e)||Oo(e))){var a=this.createElementClone(e);a.style.transitionProperty="none";var n=i.getComputedStyle(e),r=i.getComputedStyle(e,":before"),s=i.getComputedStyle(e,":after");this.referenceElement===e&&Eo(a)&&(this.clonedReferenceElement=a),jo(a)&&El(a);var o=this.counters.parse(new Er(this.context,n)),l=this.resolvePseudoContent(e,a,r,us.BEFORE);$o(e)&&(t=!0),Uo(e)||this.cloneChildNodes(e,a,t),l&&a.insertBefore(l,a.firstChild);var c=this.resolvePseudoContent(e,a,s,us.AFTER);return c&&a.appendChild(c),this.counters.pop(o),(n&&(this.options.copyStyles||Oo(e))&&!Ro(e)||t)&&yl(n,a),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([a,e.scrollLeft,e.scrollTop]),(zo(e)||qo(e))&&(zo(a)||qo(a))&&(a.value=e.value),a}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,i,a){var n=this;if(i){var r=i.content,s=t.ownerDocument;if(s&&r&&"none"!==r&&"-moz-alt-content"!==r&&"none"!==i.display){this.counters.parse(new Er(this.context,i));var o=new Ir(this.context,i),l=s.createElement("html2canvaspseudoelement");yl(i,l),o.content.forEach((function(t){if(0===t.type)l.appendChild(s.createTextNode(t.value));else if(22===t.type){var i=s.createElement("img");i.src=t.value,i.style.opacity="1",l.appendChild(i)}else if(18===t.type){if("attr"===t.name){var a=t.values.filter(Fi);a.length&&l.appendChild(s.createTextNode(e.getAttribute(a[0].value)||""))}else if("counter"===t.name){var r=t.values.filter(zi),c=r[0],u=r[1];if(c&&Fi(c)){var d=n.counters.getCounterValue(c.value),p=u&&Fi(u)?Mn.parse(n.context,u.value):3;l.appendChild(s.createTextNode(dl(d,p,!1)))}}else if("counters"===t.name){var f=t.values.filter(zi),A=(c=f[0],f[1]);u=f[2];if(c&&Fi(c)){var h=n.counters.getCounterValues(c.value),m=u&&Fi(u)?Mn.parse(n.context,u.value):3,g=A&&0===A.type?A.value:"",v=h.map((function(e){return dl(e,m,!1)})).join(g);l.appendChild(s.createTextNode(v))}}}else if(20===t.type)switch(t.value){case"open-quote":l.appendChild(s.createTextNode(wr(o.quotes,n.quoteDepth++,!0)));break;case"close-quote":l.appendChild(s.createTextNode(wr(o.quotes,--n.quoteDepth,!1)));break;default:l.appendChild(s.createTextNode(t.value))}})),l.className=Tl+" "+Sl;var c=a===us.BEFORE?" "+Tl:" "+Sl;return Oo(t)?t.className.baseValue+=c:t.className+=c,l}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();(function(e){e[e["BEFORE"]=0]="BEFORE",e[e["AFTER"]=1]="AFTER"})(us||(us={}));var Al,hl=function(e,t){var i=e.createElement("iframe");return i.className="html2canvas-container",i.style.visibility="hidden",i.style.position="fixed",i.style.left="-10000px",i.style.top="0px",i.style.border="0",i.width=t.width.toString(),i.height=t.height.toString(),i.scrolling="no",i.setAttribute(pl,"true"),e.body.appendChild(i),i},ml=function(e){return new Promise((function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()}))},gl=function(e){return Promise.all([].slice.call(e.images,0).map(ml))},vl=function(e){return new Promise((function(t,i){var a=e.contentWindow;if(!a)return i("No window assigned for iframe");var n=a.document;a.onload=e.onload=function(){a.onload=e.onload=null;var i=setInterval((function(){n.body.childNodes.length>0&&"complete"===n.readyState&&(clearInterval(i),t(e))}),50)}}))},bl=["all","d","content"],yl=function(e,t){for(var i=e.length-1;i>=0;i--){var a=e.item(i);-1===bl.indexOf(a)&&t.style.setProperty(a,e.getPropertyValue(a))}return t},_l=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},wl=function(e,t,i){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||i!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,i)},Cl=function(e){var t=e[0],i=e[1],a=e[2];t.scrollLeft=i,t.scrollTop=a},xl=":before",kl=":after",Tl="___html2canvas___pseudoelement_before",Sl="___html2canvas___pseudoelement_after",Il='{\n content: "" !important;\n display: none !important;\n}',El=function(e){Ol(e,"."+Tl+xl+Il+"\n ."+Sl+kl+Il)},Ol=function(e,t){var i=e.ownerDocument;if(i){var a=i.createElement("style");a.textContent=t,e.appendChild(a)}},Bl=function(){function e(){}return e.getOrigin=function(t){var i=e._link;return i?(i.href=t,i.href=i.href,i.protocol+i.hostname+i.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),Ll=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:Fl(e)||jl(e)?((this._cache[e]=this.loadImage(e)).catch((function(){})),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return a(this,void 0,void 0,(function(){var t,i,a,r,s=this;return n(this,(function(n){switch(n.label){case 0:return t=Bl.isSameOrigin(e),i=!Pl(e)&&!0===this._options.useCORS&&zs.SUPPORT_CORS_IMAGES&&!t,a=!Pl(e)&&!t&&!Fl(e)&&"string"===typeof this._options.proxy&&zs.SUPPORT_CORS_XHR&&!i,t||!1!==this._options.allowTaint||Pl(e)||Fl(e)||a||i?(r=e,a?[4,this.proxy(r)]:[3,2]):[2];case 1:r=n.sent(),n.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise((function(e,t){var a=new Image;a.onload=function(){return e(a)},a.onerror=t,(Ul(r)||i)&&(a.crossOrigin="anonymous"),a.src=r,!0===a.complete&&setTimeout((function(){return e(a)}),500),s._options.imageTimeout>0&&setTimeout((function(){return t("Timed out ("+s._options.imageTimeout+"ms) loading image")}),s._options.imageTimeout)}))];case 3:return[2,n.sent()]}}))}))},e.prototype.has=function(e){return"undefined"!==typeof this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,i=this._options.proxy;if(!i)throw new Error("No proxy defined");var a=e.substring(0,256);return new Promise((function(n,r){var s=zs.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(200===o.status)if("text"===s)n(o.response);else{var e=new FileReader;e.addEventListener("load",(function(){return n(e.result)}),!1),e.addEventListener("error",(function(e){return r(e)}),!1),e.readAsDataURL(o.response)}else r("Failed to proxy resource "+a+" with status code "+o.status)},o.onerror=r;var l=i.indexOf("?")>-1?"&":"?";if(o.open("GET",""+i+l+"url="+encodeURIComponent(e)+"&responseType="+s),"text"!==s&&o instanceof XMLHttpRequest&&(o.responseType=s),t._options.imageTimeout){var c=t._options.imageTimeout;o.timeout=c,o.ontimeout=function(){return r("Timed out ("+c+"ms) proxying "+a)}}o.send()}))},e}(),Dl=/^data:image\/svg\+xml/i,Ml=/^data:image\/.*;base64,/i,Nl=/^data:image\/.*/i,jl=function(e){return zs.SUPPORT_SVG_DRAWING||!Rl(e)},Pl=function(e){return Nl.test(e)},Ul=function(e){return Ml.test(e)},Fl=function(e){return"blob"===e.substr(0,4)},Rl=function(e){return"svg"===e.substr(-3).toLowerCase()||Dl.test(e)},Ql=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,i){return new e(this.x+t,this.y+i)},e}(),Hl=function(e,t,i){return new Ql(e.x+(t.x-e.x)*i,e.y+(t.y-e.y)*i)},zl=function(){function e(e,t,i,a){this.type=1,this.start=e,this.startControl=t,this.endControl=i,this.end=a}return e.prototype.subdivide=function(t,i){var a=Hl(this.start,this.startControl,t),n=Hl(this.startControl,this.endControl,t),r=Hl(this.endControl,this.end,t),s=Hl(a,n,t),o=Hl(n,r,t),l=Hl(s,o,t);return i?new e(this.start,a,s,l):new e(l,o,r,this.end)},e.prototype.add=function(t,i){return new e(this.start.add(t,i),this.startControl.add(t,i),this.endControl.add(t,i),this.end.add(t,i))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),ql=function(e){return 1===e.type},Gl=function(){function e(e){var t=e.styles,i=e.bounds,a=Ji(t.borderTopLeftRadius,i.width,i.height),n=a[0],r=a[1],s=Ji(t.borderTopRightRadius,i.width,i.height),o=s[0],l=s[1],c=Ji(t.borderBottomRightRadius,i.width,i.height),u=c[0],d=c[1],p=Ji(t.borderBottomLeftRadius,i.width,i.height),f=p[0],A=p[1],h=[];h.push((n+o)/i.width),h.push((f+u)/i.width),h.push((r+A)/i.height),h.push((l+d)/i.height);var m=Math.max.apply(Math,h);m>1&&(n/=m,r/=m,o/=m,l/=m,u/=m,d/=m,f/=m,A/=m);var g=i.width-o,v=i.height-d,b=i.width-u,y=i.height-A,_=t.borderTopWidth,w=t.borderRightWidth,C=t.borderBottomWidth,x=t.borderLeftWidth,k=Zi(t.paddingTop,e.bounds.width),T=Zi(t.paddingRight,e.bounds.width),S=Zi(t.paddingBottom,e.bounds.width),I=Zi(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||r>0?$l(i.left+x/3,i.top+_/3,n-x/3,r-_/3,Al.TOP_LEFT):new Ql(i.left+x/3,i.top+_/3),this.topRightBorderDoubleOuterBox=n>0||r>0?$l(i.left+g,i.top+_/3,o-w/3,l-_/3,Al.TOP_RIGHT):new Ql(i.left+i.width-w/3,i.top+_/3),this.bottomRightBorderDoubleOuterBox=u>0||d>0?$l(i.left+b,i.top+v,u-w/3,d-C/3,Al.BOTTOM_RIGHT):new Ql(i.left+i.width-w/3,i.top+i.height-C/3),this.bottomLeftBorderDoubleOuterBox=f>0||A>0?$l(i.left+x/3,i.top+y,f-x/3,A-C/3,Al.BOTTOM_LEFT):new Ql(i.left+x/3,i.top+i.height-C/3),this.topLeftBorderDoubleInnerBox=n>0||r>0?$l(i.left+2*x/3,i.top+2*_/3,n-2*x/3,r-2*_/3,Al.TOP_LEFT):new Ql(i.left+2*x/3,i.top+2*_/3),this.topRightBorderDoubleInnerBox=n>0||r>0?$l(i.left+g,i.top+2*_/3,o-2*w/3,l-2*_/3,Al.TOP_RIGHT):new Ql(i.left+i.width-2*w/3,i.top+2*_/3),this.bottomRightBorderDoubleInnerBox=u>0||d>0?$l(i.left+b,i.top+v,u-2*w/3,d-2*C/3,Al.BOTTOM_RIGHT):new Ql(i.left+i.width-2*w/3,i.top+i.height-2*C/3),this.bottomLeftBorderDoubleInnerBox=f>0||A>0?$l(i.left+2*x/3,i.top+y,f-2*x/3,A-2*C/3,Al.BOTTOM_LEFT):new Ql(i.left+2*x/3,i.top+i.height-2*C/3),this.topLeftBorderStroke=n>0||r>0?$l(i.left+x/2,i.top+_/2,n-x/2,r-_/2,Al.TOP_LEFT):new Ql(i.left+x/2,i.top+_/2),this.topRightBorderStroke=n>0||r>0?$l(i.left+g,i.top+_/2,o-w/2,l-_/2,Al.TOP_RIGHT):new Ql(i.left+i.width-w/2,i.top+_/2),this.bottomRightBorderStroke=u>0||d>0?$l(i.left+b,i.top+v,u-w/2,d-C/2,Al.BOTTOM_RIGHT):new Ql(i.left+i.width-w/2,i.top+i.height-C/2),this.bottomLeftBorderStroke=f>0||A>0?$l(i.left+x/2,i.top+y,f-x/2,A-C/2,Al.BOTTOM_LEFT):new Ql(i.left+x/2,i.top+i.height-C/2),this.topLeftBorderBox=n>0||r>0?$l(i.left,i.top,n,r,Al.TOP_LEFT):new Ql(i.left,i.top),this.topRightBorderBox=o>0||l>0?$l(i.left+g,i.top,o,l,Al.TOP_RIGHT):new Ql(i.left+i.width,i.top),this.bottomRightBorderBox=u>0||d>0?$l(i.left+b,i.top+v,u,d,Al.BOTTOM_RIGHT):new Ql(i.left+i.width,i.top+i.height),this.bottomLeftBorderBox=f>0||A>0?$l(i.left,i.top+y,f,A,Al.BOTTOM_LEFT):new Ql(i.left,i.top+i.height),this.topLeftPaddingBox=n>0||r>0?$l(i.left+x,i.top+_,Math.max(0,n-x),Math.max(0,r-_),Al.TOP_LEFT):new Ql(i.left+x,i.top+_),this.topRightPaddingBox=o>0||l>0?$l(i.left+Math.min(g,i.width-w),i.top+_,g>i.width+w?0:Math.max(0,o-w),Math.max(0,l-_),Al.TOP_RIGHT):new Ql(i.left+i.width-w,i.top+_),this.bottomRightPaddingBox=u>0||d>0?$l(i.left+Math.min(b,i.width-x),i.top+Math.min(v,i.height-C),Math.max(0,u-w),Math.max(0,d-C),Al.BOTTOM_RIGHT):new Ql(i.left+i.width-w,i.top+i.height-C),this.bottomLeftPaddingBox=f>0||A>0?$l(i.left+x,i.top+Math.min(y,i.height-C),Math.max(0,f-x),Math.max(0,A-C),Al.BOTTOM_LEFT):new Ql(i.left+x,i.top+i.height-C),this.topLeftContentBox=n>0||r>0?$l(i.left+x+I,i.top+_+k,Math.max(0,n-(x+I)),Math.max(0,r-(_+k)),Al.TOP_LEFT):new Ql(i.left+x+I,i.top+_+k),this.topRightContentBox=o>0||l>0?$l(i.left+Math.min(g,i.width+x+I),i.top+_+k,g>i.width+x+I?0:o-x+I,l-(_+k),Al.TOP_RIGHT):new Ql(i.left+i.width-(w+T),i.top+_+k),this.bottomRightContentBox=u>0||d>0?$l(i.left+Math.min(b,i.width-(x+I)),i.top+Math.min(v,i.height+_+k),Math.max(0,u-(w+T)),d-(C+S),Al.BOTTOM_RIGHT):new Ql(i.left+i.width-(w+T),i.top+i.height-(C+S)),this.bottomLeftContentBox=f>0||A>0?$l(i.left+x+I,i.top+y,Math.max(0,f-(x+I)),A-(C+S),Al.BOTTOM_LEFT):new Ql(i.left+x+I,i.top+i.height-(C+S))}return e}();(function(e){e[e["TOP_LEFT"]=0]="TOP_LEFT",e[e["TOP_RIGHT"]=1]="TOP_RIGHT",e[e["BOTTOM_RIGHT"]=2]="BOTTOM_RIGHT",e[e["BOTTOM_LEFT"]=3]="BOTTOM_LEFT"})(Al||(Al={}));var $l=function(e,t,i,a,n){var r=(Math.sqrt(2)-1)/3*4,s=i*r,o=a*r,l=e+i,c=t+a;switch(n){case Al.TOP_LEFT:return new zl(new Ql(e,c),new Ql(e,c-o),new Ql(l-s,t),new Ql(l,t));case Al.TOP_RIGHT:return new zl(new Ql(e,t),new Ql(e+s,t),new Ql(l,c-o),new Ql(l,c));case Al.BOTTOM_RIGHT:return new zl(new Ql(l,t),new Ql(l,t+o),new Ql(e+s,c),new Ql(e,c));case Al.BOTTOM_LEFT:default:return new zl(new Ql(l,c),new Ql(l-s,c),new Ql(e,t+o),new Ql(e,t))}},Vl=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Yl=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Kl=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Wl=function(){function e(e,t,i){this.offsetX=e,this.offsetY=t,this.matrix=i,this.type=0,this.target=6}return e}(),Xl=function(){function e(e,t){this.path=e,this.target=t,this.type=1}return e}(),Jl=function(){function e(e){this.opacity=e,this.type=2,this.target=6}return e}(),Zl=function(e){return 0===e.type},ec=function(e){return 1===e.type},tc=function(e){return 2===e.type},ic=function(e,t){return e.length===t.length&&e.some((function(e,i){return e===t[i]}))},ac=function(e,t,i,a,n){return e.map((function(e,r){switch(r){case 0:return e.add(t,i);case 1:return e.add(t+a,i);case 2:return e.add(t+a,i+n);case 3:return e.add(t,i+n)}return e}))},nc=function(){function e(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),rc=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new Gl(this.container),this.container.styles.opacity<1&&this.effects.push(new Jl(this.container.styles.opacity)),null!==this.container.styles.transform){var i=this.container.bounds.left+this.container.styles.transformOrigin[0].number,a=this.container.bounds.top+this.container.styles.transformOrigin[1].number,n=this.container.styles.transform;this.effects.push(new Wl(i,a,n))}if(0!==this.container.styles.overflowX){var r=Vl(this.curves),s=Kl(this.curves);ic(r,s)?this.effects.push(new Xl(r,6)):(this.effects.push(new Xl(r,2)),this.effects.push(new Xl(s,4)))}}return e.prototype.getEffects=function(e){var t=-1===[2,3].indexOf(this.container.styles.position),i=this.parent,a=this.effects.slice(0);while(i){var n=i.effects.filter((function(e){return!ec(e)}));if(t||0!==i.container.styles.position||!i.parent){if(a.unshift.apply(a,n),t=-1===[2,3].indexOf(i.container.styles.position),0!==i.container.styles.overflowX){var r=Vl(i.curves),s=Kl(i.curves);ic(r,s)||a.unshift(new Xl(s,6))}}else a.unshift.apply(a,n);i=i.parent}return a.filter((function(t){return mr(t.target,e)}))},e}(),sc=function(e,t,i,a){e.container.elements.forEach((function(n){var r=mr(n.flags,4),s=mr(n.flags,2),o=new rc(n,e);mr(n.styles.display,2048)&&a.push(o);var l=mr(n.flags,8)?[]:a;if(r||s){var c=r||n.styles.isPositioned()?i:t,u=new nc(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var d=n.styles.zIndex.order;if(d<0){var p=0;c.negativeZIndex.some((function(e,t){return d>e.element.container.styles.zIndex.order?(p=t,!1):p>0})),c.negativeZIndex.splice(p,0,u)}else if(d>0){var f=0;c.positiveZIndex.some((function(e,t){return d>=e.element.container.styles.zIndex.order?(f=t+1,!1):f>0})),c.positiveZIndex.splice(f,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else n.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);sc(o,u,r?u:i,l)}else n.styles.isInlineLevel()?t.inlineLevel.push(o):t.nonInlineLevel.push(o),sc(o,t,i,l);mr(n.flags,8)&&oc(n,l)}))},oc=function(e,t){for(var i=e instanceof oo?e.start:1,a=e instanceof oo&&e.reversed,n=0;n<t.length;n++){var r=t[n];r.container instanceof so&&"number"===typeof r.container.value&&0!==r.container.value&&(i=r.container.value),r.listValue=dl(i,r.container.styles.listStyleType,!0),i+=a?-1:1}},lc=function(e){var t=new rc(e,null),i=new nc(t),a=[];return sc(t,i,i,a),oc(t.container,a),i},cc=function(e,t){switch(t){case 0:return Ac(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return Ac(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return Ac(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return Ac(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},uc=function(e,t){switch(t){case 0:return Ac(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return Ac(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return Ac(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return Ac(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},dc=function(e,t){switch(t){case 0:return Ac(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return Ac(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return Ac(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return Ac(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},pc=function(e,t){switch(t){case 0:return fc(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return fc(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return fc(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return fc(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},fc=function(e,t){var i=[];return ql(e)?i.push(e.subdivide(.5,!1)):i.push(e),ql(t)?i.push(t.subdivide(.5,!0)):i.push(t),i},Ac=function(e,t,i,a){var n=[];return ql(e)?n.push(e.subdivide(.5,!1)):n.push(e),ql(i)?n.push(i.subdivide(.5,!0)):n.push(i),ql(a)?n.push(a.subdivide(.5,!0).reverse()):n.push(a),ql(t)?n.push(t.subdivide(.5,!1).reverse()):n.push(t),n},hc=function(e){var t=e.bounds,i=e.styles;return t.add(i.borderLeftWidth,i.borderTopWidth,-(i.borderRightWidth+i.borderLeftWidth),-(i.borderTopWidth+i.borderBottomWidth))},mc=function(e){var t=e.styles,i=e.bounds,a=Zi(t.paddingLeft,i.width),n=Zi(t.paddingRight,i.width),r=Zi(t.paddingTop,i.width),s=Zi(t.paddingBottom,i.width);return i.add(a+t.borderLeftWidth,r+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+a+n),-(t.borderTopWidth+t.borderBottomWidth+r+s))},gc=function(e,t){return 0===e?t.bounds:2===e?mc(t):hc(t)},vc=function(e,t){return 0===e?t.bounds:2===e?mc(t):hc(t)},bc=function(e,t,i){var a=gc(Cc(e.styles.backgroundOrigin,t),e),n=vc(Cc(e.styles.backgroundClip,t),e),r=wc(Cc(e.styles.backgroundSize,t),i,a),s=r[0],o=r[1],l=Ji(Cc(e.styles.backgroundPosition,t),a.width-s,a.height-o),c=xc(Cc(e.styles.backgroundRepeat,t),l,r,a,n),u=Math.round(a.left+l[0]),d=Math.round(a.top+l[1]);return[c,u,d,s,o]},yc=function(e){return Fi(e)&&e.value===Ga.AUTO},_c=function(e){return"number"===typeof e},wc=function(e,t,i){var a=t[0],n=t[1],r=t[2],s=e[0],o=e[1];if(!s)return[0,0];if(Vi(s)&&o&&Vi(o))return[Zi(s,i.width),Zi(o,i.height)];var l=_c(r);if(Fi(s)&&(s.value===Ga.CONTAIN||s.value===Ga.COVER)){if(_c(r)){var c=i.width/i.height;return c<r!==(s.value===Ga.COVER)?[i.width,i.width/r]:[i.height*r,i.height]}return[i.width,i.height]}var u=_c(a),d=_c(n),p=u||d;if(yc(s)&&(!o||yc(o))){if(u&&d)return[a,n];if(!l&&!p)return[i.width,i.height];if(p&&l){var f=u?a:n*r,A=d?n:a/r;return[f,A]}var h=u?a:i.width,m=d?n:i.height;return[h,m]}if(l){var g=0,v=0;return Vi(s)?g=Zi(s,i.width):Vi(o)&&(v=Zi(o,i.height)),yc(s)?g=v*r:o&&!yc(o)||(v=g/r),[g,v]}var b=null,y=null;if(Vi(s)?b=Zi(s,i.width):o&&Vi(o)&&(y=Zi(o,i.height)),null===b||o&&!yc(o)||(y=u&&d?b/a*n:i.height),null!==y&&yc(s)&&(b=u&&d?y/n*a:i.width),null!==b&&null!==y)return[b,y];throw new Error("Unable to calculate background-size for element")},Cc=function(e,t){var i=e[t];return"undefined"===typeof i?e[0]:i},xc=function(e,t,i,a,n){var r=t[0],s=t[1],o=i[0],l=i[1];switch(e){case 2:return[new Ql(Math.round(a.left),Math.round(a.top+s)),new Ql(Math.round(a.left+a.width),Math.round(a.top+s)),new Ql(Math.round(a.left+a.width),Math.round(l+a.top+s)),new Ql(Math.round(a.left),Math.round(l+a.top+s))];case 3:return[new Ql(Math.round(a.left+r),Math.round(a.top)),new Ql(Math.round(a.left+r+o),Math.round(a.top)),new Ql(Math.round(a.left+r+o),Math.round(a.height+a.top)),new Ql(Math.round(a.left+r),Math.round(a.height+a.top))];case 1:return[new Ql(Math.round(a.left+r),Math.round(a.top+s)),new Ql(Math.round(a.left+r+o),Math.round(a.top+s)),new Ql(Math.round(a.left+r+o),Math.round(a.top+s+l)),new Ql(Math.round(a.left+r),Math.round(a.top+s+l))];default:return[new Ql(Math.round(n.left),Math.round(n.top)),new Ql(Math.round(n.left+n.width),Math.round(n.top)),new Ql(Math.round(n.left+n.width),Math.round(n.height+n.top)),new Ql(Math.round(n.left),Math.round(n.height+n.top))]}},kc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Tc="Hidden Text",Sc=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var i=this._document.createElement("div"),a=this._document.createElement("img"),n=this._document.createElement("span"),r=this._document.body;i.style.visibility="hidden",i.style.fontFamily=e,i.style.fontSize=t,i.style.margin="0",i.style.padding="0",i.style.whiteSpace="nowrap",r.appendChild(i),a.src=kc,a.width=1,a.height=1,a.style.margin="0",a.style.padding="0",a.style.verticalAlign="baseline",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.appendChild(this._document.createTextNode(Tc)),i.appendChild(n),i.appendChild(a);var s=a.offsetTop-n.offsetTop+2;i.removeChild(n),i.appendChild(this._document.createTextNode(Tc)),i.style.lineHeight="normal",a.style.verticalAlign="super";var o=a.offsetTop-i.offsetTop+2;return r.removeChild(i),{baseline:s,middle:o}},e.prototype.getMetrics=function(e,t){var i=e+" "+t;return"undefined"===typeof this._data[i]&&(this._data[i]=this.parseMetrics(e,t)),this._data[i]},e}(),Ic=function(){function e(e,t){this.context=e,this.options=t}return e}(),Ec=1e4,Oc=function(e){function i(t,i){var a=e.call(this,t,i)||this;return a._activeEffects=[],a.canvas=i.canvas?i.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),i.canvas||(a.canvas.width=Math.floor(i.width*i.scale),a.canvas.height=Math.floor(i.height*i.scale),a.canvas.style.width=i.width+"px",a.canvas.style.height=i.height+"px"),a.fontMetrics=new Sc(document),a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-i.x,-i.y),a.ctx.textBaseline="bottom",a._activeEffects=[],a.context.logger.debug("Canvas renderer initialized ("+i.width+"x"+i.height+") with scale "+i.scale),a}return t(i,e),i.prototype.applyEffects=function(e){var t=this;while(this._activeEffects.length)this.popEffect();e.forEach((function(e){return t.applyEffect(e)}))},i.prototype.applyEffect=function(e){this.ctx.save(),tc(e)&&(this.ctx.globalAlpha=e.opacity),Zl(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),ec(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},i.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},i.prototype.renderStack=function(e){return a(this,void 0,void 0,(function(){var t;return n(this,(function(i){switch(i.label){case 0:return t=e.element.container.styles,t.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}}))}))},i.prototype.renderNode=function(e){return a(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return mr(e.container.flags,16),e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}}))}))},i.prototype.renderTextWithLetterSpacing=function(e,t,i){var a=this;if(0===t)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+i);else{var n=Ys(e.text);n.reduce((function(t,n){return a.ctx.fillText(n,t,e.bounds.top+i),t+a.ctx.measureText(n).width}),e.bounds.left)}},i.prototype.createFontStyle=function(e){var t=e.fontVariant.filter((function(e){return"normal"===e||"small-caps"===e})).join(""),i=Nc(e.fontFamily).join(", "),a=Pi(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,a,i].join(" "),i,a]},i.prototype.renderTextNode=function(e,t){return a(this,void 0,void 0,(function(){var i,a,r,s,o,l,c,u,d=this;return n(this,(function(n){return i=this.createFontStyle(t),a=i[0],r=i[1],s=i[2],this.ctx.font=a,this.ctx.direction=1===t.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",o=this.fontMetrics.getMetrics(r,s),l=o.baseline,c=o.middle,u=t.paintOrder,e.textBounds.forEach((function(e){u.forEach((function(i){switch(i){case 0:d.ctx.fillStyle=ua(t.color),d.renderTextWithLetterSpacing(e,t.letterSpacing,l);var a=t.textShadow;a.length&&e.text.trim().length&&(a.slice(0).reverse().forEach((function(i){d.ctx.shadowColor=ua(i.color),d.ctx.shadowOffsetX=i.offsetX.number*d.options.scale,d.ctx.shadowOffsetY=i.offsetY.number*d.options.scale,d.ctx.shadowBlur=i.blur.number,d.renderTextWithLetterSpacing(e,t.letterSpacing,l)})),d.ctx.shadowColor="",d.ctx.shadowOffsetX=0,d.ctx.shadowOffsetY=0,d.ctx.shadowBlur=0),t.textDecorationLine.length&&(d.ctx.fillStyle=ua(t.textDecorationColor||t.color),t.textDecorationLine.forEach((function(t){switch(t){case 1:d.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+l),e.bounds.width,1);break;case 2:d.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:d.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+c),e.bounds.width,1);break}})));break;case 1:t.webkitTextStrokeWidth&&e.text.trim().length&&(d.ctx.strokeStyle=ua(t.webkitTextStrokeColor),d.ctx.lineWidth=t.webkitTextStrokeWidth,d.ctx.lineJoin=window.chrome?"miter":"round",d.ctx.strokeText(e.text,e.bounds.left,e.bounds.top+l)),d.ctx.strokeStyle="",d.ctx.lineWidth=0,d.ctx.lineJoin="miter";break}}))})),[2]}))}))},i.prototype.renderReplacedElement=function(e,t,i){if(i&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var a=mc(e),n=Kl(t);this.path(n),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(i,0,0,e.intrinsicWidth,e.intrinsicHeight,a.left,a.top,a.width,a.height),this.ctx.restore()}},i.prototype.renderNodeContent=function(e){return a(this,void 0,void 0,(function(){var t,a,s,o,l,c,u,d,p,f,A,h,m,g,v,b,y,_,w;return n(this,(function(n){switch(n.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,a=e.curves,s=t.styles,o=0,l=t.textNodes,n.label=1;case 1:return o<l.length?(c=l[o],[4,this.renderTextNode(c,s)]):[3,4];case 2:n.sent(),n.label=3;case 3:return o++,[3,1];case 4:if(!(t instanceof ao))return[3,8];n.label=5;case 5:return n.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return b=n.sent(),this.renderReplacedElement(t,a,b),[3,8];case 7:return n.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof no&&this.renderReplacedElement(t,a,t.canvas),!(t instanceof ro))return[3,12];n.label=9;case 9:return n.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return b=n.sent(),this.renderReplacedElement(t,a,b),[3,12];case 11:return n.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof yo&&t.tree?(u=new i(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}),[4,u.render(t.tree)]):[3,14];case 13:d=n.sent(),t.width&&t.height&&this.ctx.drawImage(d,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),n.label=14;case 14:if(t instanceof go&&(p=Math.min(t.bounds.width,t.bounds.height),t.type===fo?t.checked&&(this.ctx.save(),this.path([new Ql(t.bounds.left+.39363*p,t.bounds.top+.79*p),new Ql(t.bounds.left+.16*p,t.bounds.top+.5549*p),new Ql(t.bounds.left+.27347*p,t.bounds.top+.44071*p),new Ql(t.bounds.left+.39694*p,t.bounds.top+.5649*p),new Ql(t.bounds.left+.72983*p,t.bounds.top+.23*p),new Ql(t.bounds.left+.84*p,t.bounds.top+.34085*p),new Ql(t.bounds.left+.39363*p,t.bounds.top+.79*p)]),this.ctx.fillStyle=ua(mo),this.ctx.fill(),this.ctx.restore()):t.type===Ao&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+p/2,t.bounds.top+p/2,p/4,0,2*Math.PI,!0),this.ctx.fillStyle=ua(mo),this.ctx.fill(),this.ctx.restore())),Bc(t)&&t.value.length){switch(f=this.createFontStyle(s),_=f[0],A=f[1],h=this.fontMetrics.getMetrics(_,A).baseline,this.ctx.font=_,this.ctx.fillStyle=ua(s.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Dc(t.styles.textAlign),w=mc(t),m=0,t.styles.textAlign){case 1:m+=w.width/2;break;case 2:m+=w.width;break}g=w.add(m,0,0,-w.height/2+1),this.ctx.save(),this.path([new Ql(w.left,w.top),new Ql(w.left+w.width,w.top),new Ql(w.left+w.width,w.top+w.height),new Ql(w.left,w.top+w.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new qs(t.value,g),s.letterSpacing,h),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!mr(t.styles.display,2048))return[3,20];if(null===t.styles.listStyleImage)return[3,19];if(v=t.styles.listStyleImage,0!==v.type)return[3,18];b=void 0,y=v.url,n.label=15;case 15:return n.trys.push([15,17,,18]),[4,this.context.cache.match(y)];case 16:return b=n.sent(),this.ctx.drawImage(b,t.bounds.left-(b.width+10),t.bounds.top),[3,18];case 17:return n.sent(),this.context.logger.error("Error loading list-style-image "+y),[3,18];case 18:return[3,20];case 19:e.listValue&&-1!==t.styles.listStyleType&&(_=this.createFontStyle(s)[0],this.ctx.font=_,this.ctx.fillStyle=ua(s.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",w=new r(t.bounds.left,t.bounds.top+Zi(t.styles.paddingTop,t.bounds.width),t.bounds.width,Bn(s.lineHeight,s.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new qs(e.listValue,w),s.letterSpacing,Bn(s.lineHeight,s.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),n.label=20;case 20:return[2]}}))}))},i.prototype.renderStackContent=function(e){return a(this,void 0,void 0,(function(){var t,i,a,r,s,o,l,c,u,d,p,f,A,h,m;return n(this,(function(n){switch(n.label){case 0:return mr(e.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:n.sent(),t=0,i=e.negativeZIndex,n.label=2;case 2:return t<i.length?(m=i[t],[4,this.renderStack(m)]):[3,5];case 3:n.sent(),n.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:n.sent(),a=0,r=e.nonInlineLevel,n.label=7;case 7:return a<r.length?(m=r[a],[4,this.renderNode(m)]):[3,10];case 8:n.sent(),n.label=9;case 9:return a++,[3,7];case 10:s=0,o=e.nonPositionedFloats,n.label=11;case 11:return s<o.length?(m=o[s],[4,this.renderStack(m)]):[3,14];case 12:n.sent(),n.label=13;case 13:return s++,[3,11];case 14:l=0,c=e.nonPositionedInlineLevel,n.label=15;case 15:return l<c.length?(m=c[l],[4,this.renderStack(m)]):[3,18];case 16:n.sent(),n.label=17;case 17:return l++,[3,15];case 18:u=0,d=e.inlineLevel,n.label=19;case 19:return u<d.length?(m=d[u],[4,this.renderNode(m)]):[3,22];case 20:n.sent(),n.label=21;case 21:return u++,[3,19];case 22:p=0,f=e.zeroOrAutoZIndexOrTransformedOrOpacity,n.label=23;case 23:return p<f.length?(m=f[p],[4,this.renderStack(m)]):[3,26];case 24:n.sent(),n.label=25;case 25:return p++,[3,23];case 26:A=0,h=e.positiveZIndex,n.label=27;case 27:return A<h.length?(m=h[A],[4,this.renderStack(m)]):[3,30];case 28:n.sent(),n.label=29;case 29:return A++,[3,27];case 30:return[2]}}))}))},i.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},i.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},i.prototype.formatPath=function(e){var t=this;e.forEach((function(e,i){var a=ql(e)?e.start:e;0===i?t.ctx.moveTo(a.x,a.y):t.ctx.lineTo(a.x,a.y),ql(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)}))},i.prototype.renderRepeat=function(e,t,i,a){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(i,a),this.ctx.fill(),this.ctx.translate(-i,-a)},i.prototype.resizeImage=function(e,t,i){var a;if(e.width===t&&e.height===i)return e;var n=null!==(a=this.canvas.ownerDocument)&&void 0!==a?a:document,r=n.createElement("canvas");r.width=Math.max(1,t),r.height=Math.max(1,i);var s=r.getContext("2d");return s.drawImage(e,0,0,e.width,e.height,0,0,t,i),r},i.prototype.renderBackgroundImage=function(e){return a(this,void 0,void 0,(function(){var t,i,a,r,s,o;return n(this,(function(l){switch(l.label){case 0:t=e.styles.backgroundImage.length-1,i=function(i){var r,s,o,l,c,u,d,p,f,A,h,m,g,v,b,y,_,w,C,x,k,T,S,I,E,O,B,L,D,M,N;return n(this,(function(n){switch(n.label){case 0:if(0!==i.type)return[3,5];r=void 0,s=i.url,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,a.context.cache.match(s)];case 2:return r=n.sent(),[3,4];case 3:return n.sent(),a.context.logger.error("Error loading background-image "+s),[3,4];case 4:return r&&(o=bc(e,t,[r.width,r.height,r.width/r.height]),y=o[0],T=o[1],S=o[2],C=o[3],x=o[4],v=a.ctx.createPattern(a.resizeImage(r,C,x),"repeat"),a.renderRepeat(y,v,T,S)),[3,6];case 5:Qa(i)?(l=bc(e,t,[null,null,null]),y=l[0],T=l[1],S=l[2],C=l[3],x=l[4],c=xa(i.angle,C,x),u=c[0],d=c[1],p=c[2],f=c[3],A=c[4],h=document.createElement("canvas"),h.width=C,h.height=x,m=h.getContext("2d"),g=m.createLinearGradient(d,f,p,A),wa(i.stops,u).forEach((function(e){return g.addColorStop(e.stop,ua(e.color))})),m.fillStyle=g,m.fillRect(0,0,C,x),C>0&&x>0&&(v=a.ctx.createPattern(h,"repeat"),a.renderRepeat(y,v,T,S))):Ha(i)&&(b=bc(e,t,[null,null,null]),y=b[0],_=b[1],w=b[2],C=b[3],x=b[4],k=0===i.position.length?[Wi]:i.position,T=Zi(k[0],C),S=Zi(k[k.length-1],x),I=Sa(i,T,S,C,x),E=I[0],O=I[1],E>0&&O>0&&(B=a.ctx.createRadialGradient(_+T,w+S,0,_+T,w+S,E),wa(i.stops,2*E).forEach((function(e){return B.addColorStop(e.stop,ua(e.color))})),a.path(y),a.ctx.fillStyle=B,E!==O?(L=e.bounds.left+.5*e.bounds.width,D=e.bounds.top+.5*e.bounds.height,M=O/E,N=1/M,a.ctx.save(),a.ctx.translate(L,D),a.ctx.transform(1,0,0,M,0,0),a.ctx.translate(-L,-D),a.ctx.fillRect(_,N*(w-D)+D,C,x*N),a.ctx.restore()):a.ctx.fill())),n.label=6;case 6:return t--,[2]}}))},a=this,r=0,s=e.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return r<s.length?(o=s[r],[5,i(o)]):[3,4];case 2:l.sent(),l.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}))},i.prototype.renderSolidBorder=function(e,t,i){return a(this,void 0,void 0,(function(){return n(this,(function(a){return this.path(cc(i,t)),this.ctx.fillStyle=ua(e),this.ctx.fill(),[2]}))}))},i.prototype.renderDoubleBorder=function(e,t,i,r){return a(this,void 0,void 0,(function(){var a,s;return n(this,(function(n){switch(n.label){case 0:return t<3?[4,this.renderSolidBorder(e,i,r)]:[3,2];case 1:return n.sent(),[2];case 2:return a=uc(r,i),this.path(a),this.ctx.fillStyle=ua(e),this.ctx.fill(),s=dc(r,i),this.path(s),this.ctx.fill(),[2]}}))}))},i.prototype.renderNodeBackgroundAndBorders=function(e){return a(this,void 0,void 0,(function(){var t,i,a,r,s,o,l,c,u=this;return n(this,(function(n){switch(n.label){case 0:return this.applyEffects(e.getEffects(2)),t=e.container.styles,i=!ca(t.backgroundColor)||t.backgroundImage.length,a=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],r=Lc(Cc(t.backgroundClip,0),e.curves),i||t.boxShadow.length?(this.ctx.save(),this.path(r),this.ctx.clip(),ca(t.backgroundColor)||(this.ctx.fillStyle=ua(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:n.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach((function(t){u.ctx.save();var i=Vl(e.curves),a=t.inset?0:Ec,n=ac(i,-a+(t.inset?1:-1)*t.spread.number,(t.inset?1:-1)*t.spread.number,t.spread.number*(t.inset?-2:2),t.spread.number*(t.inset?-2:2));t.inset?(u.path(i),u.ctx.clip(),u.mask(n)):(u.mask(i),u.ctx.clip(),u.path(n)),u.ctx.shadowOffsetX=t.offsetX.number+a,u.ctx.shadowOffsetY=t.offsetY.number,u.ctx.shadowColor=ua(t.color),u.ctx.shadowBlur=t.blur.number,u.ctx.fillStyle=t.inset?ua(t.color):"rgba(0,0,0,1)",u.ctx.fill(),u.ctx.restore()})),n.label=2;case 2:s=0,o=0,l=a,n.label=3;case 3:return o<l.length?(c=l[o],0!==c.style&&!ca(c.color)&&c.width>0?2!==c.style?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,s,e.curves,2)]:[3,11]):[3,13];case 4:return n.sent(),[3,11];case 5:return 3!==c.style?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,s,e.curves,3)];case 6:return n.sent(),[3,11];case 7:return 4!==c.style?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,s,e.curves)];case 8:return n.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,s,e.curves)];case 10:n.sent(),n.label=11;case 11:s++,n.label=12;case 12:return o++,[3,3];case 13:return[2]}}))}))},i.prototype.renderDashedDottedBorder=function(e,t,i,r,s){return a(this,void 0,void 0,(function(){var a,o,l,c,u,d,p,f,A,h,m,g,v,b,y,_;return n(this,(function(n){return this.ctx.save(),a=pc(r,i),o=cc(r,i),2===s&&(this.path(o),this.ctx.clip()),ql(o[0])?(l=o[0].start.x,c=o[0].start.y):(l=o[0].x,c=o[0].y),ql(o[1])?(u=o[1].end.x,d=o[1].end.y):(u=o[1].x,d=o[1].y),p=0===i||2===i?Math.abs(l-u):Math.abs(c-d),this.ctx.beginPath(),3===s?this.formatPath(a):this.formatPath(o.slice(0,2)),f=t<3?3*t:2*t,A=t<3?2*t:t,3===s&&(f=t,A=t),h=!0,p<=2*f?h=!1:p<=2*f+A?(m=p/(2*f+A),f*=m,A*=m):(g=Math.floor((p+A)/(f+A)),v=(p-g*f)/(g-1),b=(p-(g+1)*f)/g,A=b<=0||Math.abs(A-v)<Math.abs(A-b)?v:b),h&&(3===s?this.ctx.setLineDash([0,f+A]):this.ctx.setLineDash([f,A])),3===s?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=2*t+1.1,this.ctx.strokeStyle=ua(e),this.ctx.stroke(),this.ctx.setLineDash([]),2===s&&(ql(o[0])&&(y=o[3],_=o[0],this.ctx.beginPath(),this.formatPath([new Ql(y.end.x,y.end.y),new Ql(_.start.x,_.start.y)]),this.ctx.stroke()),ql(o[1])&&(y=o[1],_=o[2],this.ctx.beginPath(),this.formatPath([new Ql(y.end.x,y.end.y),new Ql(_.start.x,_.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]}))}))},i.prototype.render=function(e){return a(this,void 0,void 0,(function(){var t;return n(this,(function(i){switch(i.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=ua(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=lc(e),[4,this.renderStack(t)];case 1:return i.sent(),this.applyEffects([]),[2,this.canvas]}}))}))},i}(Ic),Bc=function(e){return e instanceof bo||(e instanceof vo||e instanceof go&&e.type!==Ao&&e.type!==fo)},Lc=function(e,t){switch(e){case 0:return Vl(t);case 2:return Yl(t);case 1:default:return Kl(t)}},Dc=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Mc=["-apple-system","system-ui"],Nc=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter((function(e){return-1===Mc.indexOf(e)})):e},jc=function(e){function i(t,i){var a=e.call(this,t,i)||this;return a.canvas=i.canvas?i.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),a.options=i,a.canvas.width=Math.floor(i.width*i.scale),a.canvas.height=Math.floor(i.height*i.scale),a.canvas.style.width=i.width+"px",a.canvas.style.height=i.height+"px",a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-i.x,-i.y),a.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+i.width+"x"+i.height+" at "+i.x+","+i.y+") with scale "+i.scale),a}return t(i,e),i.prototype.render=function(e){return a(this,void 0,void 0,(function(){var t,i;return n(this,(function(a){switch(a.label){case 0:return t=Qs(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,Pc(t)];case 1:return i=a.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=ua(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(i,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},i}(Ic),Pc=function(e){return new Promise((function(t,i){var a=new Image;a.onload=function(){t(a)},a.onerror=i,a.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},Uc=function(){function e(e){var t=e.id,i=e.enabled;this.id=t,this.enabled=i,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.debug||this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&"undefined"!==typeof window&&window.console&&console.info},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.warn||this.info.apply(this,e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.error||this.info.apply(this,e))},e.instances={},e}(),Fc=function(){function e(t,i){var a;this.windowBounds=i,this.instanceName="#"+e.instanceCount++,this.logger=new Uc({id:this.instanceName,enabled:t.logging}),this.cache=null!==(a=t.cache)&&void 0!==a?a:new Ll(this,t)}return e.instanceCount=1,e}(),Rc=function(e,t){return void 0===t&&(t={}),Qc(e,t)};"undefined"!==typeof window&&Bl.setContext(window);var Qc=function(e,t){return a(void 0,void 0,void 0,(function(){var a,l,c,u,d,p,f,A,h,m,g,v,b,y,_,w,C,x,k,T,S,I,E,O,B,L,D,M,N,j,P,U,F,R,Q,H,z,q,G;return n(this,(function(n){switch(n.label){case 0:if(!e||"object"!==typeof e)return[2,Promise.reject("Invalid element provided as first argument")];if(a=e.ownerDocument,!a)throw new Error("Element is not attached to a Document");if(l=a.defaultView,!l)throw new Error("Document is not attached to a Window");return c={allowTaint:null!==(E=t.allowTaint)&&void 0!==E&&E,imageTimeout:null!==(O=t.imageTimeout)&&void 0!==O?O:15e3,proxy:t.proxy,useCORS:null!==(B=t.useCORS)&&void 0!==B&&B},u=i({logging:null===(L=t.logging)||void 0===L||L,cache:t.cache},c),d={windowWidth:null!==(D=t.windowWidth)&&void 0!==D?D:l.innerWidth,windowHeight:null!==(M=t.windowHeight)&&void 0!==M?M:l.innerHeight,scrollX:null!==(N=t.scrollX)&&void 0!==N?N:l.pageXOffset,scrollY:null!==(j=t.scrollY)&&void 0!==j?j:l.pageYOffset},p=new r(d.scrollX,d.scrollY,d.windowWidth,d.windowHeight),f=new Fc(u,p),A=null!==(P=t.foreignObjectRendering)&&void 0!==P&&P,h={allowTaint:null!==(U=t.allowTaint)&&void 0!==U&&U,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:A,copyStyles:A},f.logger.debug("Starting document clone with size "+p.width+"x"+p.height+" scrolled to "+-p.left+","+-p.top),m=new fl(f,e,h),g=m.clonedReferenceElement,g?[4,m.toIFrame(a,p)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return v=n.sent(),b=jo(g)||Mo(g)?o(g.ownerDocument):s(f,g),y=b.width,_=b.height,w=b.left,C=b.top,x=Hc(f,g,t.backgroundColor),k={canvas:t.canvas,backgroundColor:x,scale:null!==(R=null!==(F=t.scale)&&void 0!==F?F:l.devicePixelRatio)&&void 0!==R?R:1,x:(null!==(Q=t.x)&&void 0!==Q?Q:0)+w,y:(null!==(H=t.y)&&void 0!==H?H:0)+C,width:null!==(z=t.width)&&void 0!==z?z:Math.ceil(y),height:null!==(q=t.height)&&void 0!==q?q:Math.ceil(_)},A?(f.logger.debug("Document cloned, using foreign object rendering"),I=new jc(f,k),[4,I.render(g)]):[3,3];case 2:return T=n.sent(),[3,5];case 3:return f.logger.debug("Document cloned, element located at "+w+","+C+" with size "+y+"x"+_+" using computed rendering"),f.logger.debug("Starting DOM parsing"),S=xo(f,g),x===S.styles.backgroundColor&&(S.styles.backgroundColor=va.TRANSPARENT),f.logger.debug("Starting renderer for element at "+k.x+","+k.y+" with size "+k.width+"x"+k.height),I=new Oc(f,k),[4,I.render(S)];case 4:T=n.sent(),n.label=5;case 5:return(null===(G=t.removeContainer)||void 0===G||G)&&(fl.destroy(v)||f.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),f.logger.debug("Finished rendering"),[2,T]}}))}))},Hc=function(e,t,i){var a=t.ownerDocument,n=a.documentElement?ga(e,getComputedStyle(a.documentElement).backgroundColor):va.TRANSPARENT,r=a.body?ga(e,getComputedStyle(a.body).backgroundColor):va.TRANSPARENT,s="string"===typeof i?ga(e,i):null===i?va.TRANSPARENT:4294967295;return t===a.documentElement?ca(n)?ca(r)?s:r:n:s};return Rc}))},c0ec:function(e,t,i){},c151:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"选择活码",visible:e.Pvisible,"close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.Pvisible=t}}},[i("el-form",{ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[i("el-form-item",{attrs:{label:"活动名称",prop:"title"}},[i("el-input",{attrs:{placeholder:"请输入活动名称",clearable:"",size:"small"},model:{value:e.queryParams.scenario,callback:function(t){e.$set(e.queryParams,"scenario",t)},expression:"queryParams.scenario"}})],1),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:function(t){return e.getEmpleList()}}},[e._v("搜索")])],1)],1),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.empleList}},[i("el-table-column",{attrs:{label:"活码预览",align:"center",width:"100",prop:"qrCode"},scopedSlots:e._u([{key:"default",fn:function(e){var t=e.row;return[i("div",{staticClass:"code-left"},[i("el-popover",{attrs:{placement:"bottom",trigger:"hover"}},[i("el-image",{staticClass:"code-image--small",attrs:{slot:"reference",src:t.qrCode},slot:"reference"}),i("el-image",{staticClass:"code-image",attrs:{src:t.qrCode}})],1)],1)]}}])}),i("el-table-column",{attrs:{label:"活动场景",align:"center",prop:"scenario","show-overflow-tooltip":""}}),i("el-table-column",{attrs:{label:"活码员工",align:"center",prop:"useUserName,departmentName","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(e){return[i("ListUserShow",{staticStyle:{"margin-left":"60px"},attrs:{"use-user-name":e.row.useUserName,"department-name":e.row.departmentName}})]}}])}),i("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(i){return e.submit(t.row)}}},[e._v("选中")])]}}])})],1),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getEmpleList}})],1)},n=[],r=(i("d3b7"),i("3ca3"),i("159b"),i("ddb0"),i("2b3d"),i("bf19"),i("9861"),i("62db")),s=i("79b6"),o=i("ed08"),l={name:"SelectEmple",components:{ListUserShow:s["a"]},props:{visible:{type:Boolean,default:!1}},data:function(){return{empleList:[],total:0,loading:!0,queryParams:{pageNum:1,pageSize:10,scenario:void 0}}},computed:{Pvisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e),e||this.$emit("close")}}},created:function(){this.getEmpleList()},watch:{},methods:{getEmpleList:function(){var e=this;this.loading=!0,Object(r["i"])(this.queryParams).then((function(t){e.empleList=t.rows,e.total=t.total,e.loading=!1}))},downloadBatch:function(e){var t=this;this.ids.length?this.confirmModal({msg:"即将以压缩包形式下载已选中的活码图片,是否继续?"},(function(){return Object(r["c"])(t.ids+"").then((function(e){if(null!=e){var t=new Blob([e],{type:"application/zip"}),i=window.URL.createObjectURL(t),a=document.createElement("a");a.href=i,a.download="批量员工活码.zip",a.click(),URL.revokeObjectURL(i)}}))})):this.msgWarn("请至少选择一个员工活码")},getLink:function(e){var t=this;e.appLink?Object(o["c"])(e.appLink):(this.loading=!0,Object(r["e"])({id:e.id}).then((function(i){i.data&&(t.list.forEach((function(t){t.id===e.id&&(t.appLink=i.data)})),Object(o["c"])(i.data)),t.loading=!1})).catch((function(){t.loading=!1})))},submit:function(e){e?(this.$emit("success",e),this.Pvisible=!1):this.msgWarn("请选择使用活码")}}},c=l,u=i("2877"),d=Object(u["a"])(c,a,n,!1,null,null,null);t["default"]=d.exports},c1c9:function(e,t,i){var a=i("a454"),n=i("f3c1"),r=n(a);e.exports=r},c215:function(e,t,i){},c224:function(e,t,i){"use strict";i("7eb1")},c25c:function(e,t,i){"use strict";i("3d6f")},c2a4:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"wrap"},[i("ReturnPage",{attrs:{path:"/operationsCenter/conversionCode/list"}}),i("div",{staticClass:"wrap-body"},[i("el-alert",{attrs:{title:"功能说明",type:"info",description:"结合员工活码或其他功能使用,向指定客户发送兑换活动下的兑换码,客户获得兑换码后换取专属权益。","show-icon":"",closable:!1}}),i("div",{staticClass:"wrap-body-form"},[i("el-form",{ref:"form",staticClass:"form",attrs:{model:e.form,"label-width":"100px",rules:e.rules}},[i("p",{staticClass:"config-title",staticStyle:{"margin-bottom":"16px"}},[e._v("基础设置")]),i("el-alert",{staticStyle:{"margin-left":"26px",width:"550px"},attrs:{title:"兑换码具有唯一性,发送给A客户后即视为已兑换,不会发送给B客户",type:"warning",closable:!1}}),i("el-form-item",{attrs:{label:"活动名称",prop:"activityName"}},[i("el-input",{attrs:{maxlength:"32","show-word-limit":"",placeholder:"请填写活动名称或兑换商品,方便区分管理",clearable:""},model:{value:e.form.activityName,callback:function(t){e.$set(e.form,"activityName",t)},expression:"form.activityName"}})],1),i("el-form-item",{attrs:{label:"活动时间"}},[i("el-date-picker",{attrs:{"picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"left"},model:{value:e.activeTime,callback:function(t){e.activeTime=t},expression:"activeTime"}})],1),i("p",{staticClass:"config-title",staticStyle:{"margin-bottom":"16px"}},[e._v("高级设置")]),i("el-form-item",{attrs:{label:"参与限制",prop:"skipVerify"}},[i("div",{staticStyle:{width:"600px"}},[i("el-switch",{attrs:{"active-value":e.ENABLE_ALARM_OR_LIMITED["open"],"inactive-value":e.ENABLE_ALARM_OR_LIMITED["close"]},model:{value:e.form.enableLimited,callback:function(t){e.$set(e.form,"enableLimited",t)},expression:"form.enableLimited"}}),i("span",{staticClass:"we-emple-code-tags-tip"},[e._v("开启后,同一活动,客户只能参与一次,不开启则默认可参与多次")])],1)]),i("el-form-item",{attrs:{label:"告警通知",prop:"skipVerify"}},[i("div",[i("el-switch",{attrs:{"active-value":e.ENABLE_ALARM_OR_LIMITED["open"],"inactive-value":e.ENABLE_ALARM_OR_LIMITED["close"]},on:{change:e.changeEnableAlarm},model:{value:e.form.enableAlarm,callback:function(t){e.$set(e.form,"enableAlarm",t)},expression:"form.enableAlarm"}}),i("span",{staticClass:"we-emple-code-tags-tip"},[e._v("开启后,当兑换码库存等于阈值,向员工发送告警通知")]),e.form.enableAlarm?i("div",{staticClass:"form-range-area"},[i("el-form-item",{staticStyle:{padding:"8px 0"},attrs:{label:"告警阈值","label-width":"80px",prop:"alarmThreshold"}},[i("el-input",{staticStyle:{width:"97px"},attrs:{size:"mini",min:0,clearable:""},on:{input:e.handleEdit},model:{value:e.form.alarmThreshold,callback:function(t){e.$set(e.form,"alarmThreshold",t)},expression:"form.alarmThreshold"}})],1),i("el-form-item",{staticStyle:{padding:"8px 0"},attrs:{label:"通知员工","label-width":"80px",prop:"useUsers"}},[i("el-button",{attrs:{icon:"el-icon-plus"},on:{click:function(t){e.dialogVisibleSelectUser=!0}}},[e._v(e._s(0===e.form.useUsers.length?"添加成员":"修改成员"))]),e._l(e.form.useUsers,(function(t,a){return i("el-tag",{key:a,staticClass:"theme-text-color user-tag"},[e._v(e._s(t.name))])}))],2)],1):e._e()],1)])],1)],1)],1),i("div",{staticClass:"wrap-footer"},[i("RequestButton",{attrs:{type:"primary","request-method":e.save,"button-type":"save"}},[e._v(e._s(this.$route.query.id?"保存":"创建活动,导入兑换码"))])],1),i("SelectUser",{attrs:{"is-only-leaf":!0,visible:e.dialogVisibleSelectUser,title:"选择员工","selected-user-list":e.form.useUsers},on:{"update:visible":function(t){e.dialogVisibleSelectUser=t},success:e.selectedUser}})],1)},n=[],r=i("5530"),s=(i("d81d"),i("d3b7"),i("ac1f"),i("5319"),i("c958")),o=i("52a9"),l=i("cf45"),c=i("54f4"),u={open:1,close:0},d=864e5,p=2,f={name:"Add",components:{RequestButton:o["a"],SelectUser:s["a"]},data:function(){return{ENABLE_ALARM_OR_LIMITED:u,form:{activityName:"",enableLimited:u["open"],enableAlarm:u["close"],alarmThreshold:void 0,useUsers:[]},pickerOptions:{disabledDate:function(e){return e.getTime()<(new Date).getTime()-d}},activeTime:[],dialogVisibleSelectUser:!1,rules:{activityName:[{required:!0,message:"请填写活动名称",trigger:"blur"}],alarmThreshold:[{required:!0,message:"请填写告警阈值",trigger:"blur"}],useUsers:[{required:!0,message:" ",trigger:"blur"}]}}},beforeUpdate:function(){Object(l["k"])(this.$options.data().form,this.form)},created:function(){var e=this;this.$route.query.id&&c["getConversionCodeActiveDetail"]({id:this.$route.query.id}).then((function(t){var i=t.data,a=i.activityName,n=i.effectEndTime,s=i.effectStartTime,o=i.enableLimited,l=i.enableAlarm,c=i.alarmUserList,u=i.alarmThreshold;e.form=Object(r["a"])(Object(r["a"])({},e.form),{},{activityName:a,enableLimited:o,enableAlarm:l,alarmThreshold:u}),"0000-00-00"!==s&&"0000-00-00"!==n&&(e.activeTime.push(s),e.activeTime.push(n)),e.form.useUsers=c&&c.map((function(e){var t={name:e.businessName};return t["userId"]=e.targetId,t}))||[]}))},methods:{selectedUser:function(e){this.form.useUsers=e},handleEdit:function(e){var t=e.replace(/[^\d]/g,"");t=t.replace(/^0+(\d)/,"$1"),this.form.alarmThreshold=t},changeEnableAlarm:function(){this.form.alarmThreshold=void 0,this.form.useUsers=[]},save:function(){var e=this;this.$refs["form"].validate((function(t){if(!t)return Object(l["i"])(e.$store,"save"),!(e.form.useUsers.length||!e.form.enableAlarm)&&(e.msgError("请选择员工"),!1);var i=e.form.useUsers.map((function(e){return{targetId:e.userId||e.id,type:p}})),a=Object(r["a"])(Object(r["a"])({},e.form),{},{effectStartTime:e.activeTime&&e.activeTime[0]||"",effectEndTime:e.activeTime&&e.activeTime[1]||"",useUsers:i,id:e.$route.query.id});c[e.$route.query.id?"updateConversionCodeActive":"addConversionCodeActive"](a).then((function(t){e.msgSuccess("操作成功"),e.$store.commit("SET_ADD_FLAG",!e.$route.query.id),e.$route.query.id?e.$router.go(-1):e.$router.push({path:"/operationsCenter/conversionCode/conversionCodeDetail",query:{id:t.data||e.$route.query.id,addFlag:!0}})})).finally((function(){Object(l["i"])(e.$store,"save")}))}))}}},A=f,h=(i("a07c"),i("c991"),i("2877")),m=Object(h["a"])(A,a,n,!1,null,"e7078c3e",null);t["default"]=m.exports},c2ab:function(e,t,i){},c2b7:function(e,t,i){},c2c3:function(e,t,i){"use strict";i("1a3a")},c2c6:function(e,t,i){"use strict";i("ac9e")},c32a:function(e,t,i){"use strict";i("dafc")},c35a:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",e._g(e._b({staticClass:"import-file-div",attrs:{width:"443px","append-to-body":"",title:"导入"+e.title}},"el-dialog",e.$attrs,!1),e.$listeners),[i("div",{directives:[{name:"show",rawName:"v-show",value:e.step===e.FIRST_STEP,expression:"step === FIRST_STEP"}],staticClass:"first-step"},[e.alertTitle?i("el-alert",{attrs:{title:e.alertTitle,type:"warning",closable:!1}}):e._e(),i("div",{staticClass:"download-template"},[i("div",[e._v("1. 下载模板,将要导入的"+e._s(e.title)+"填入模板中")]),i("el-link",{staticClass:"download-div theme-text-color",attrs:{href:e.href,underline:!1,target:"_blank",download:e.href,icon:"el-icon-download"}},[e._v("下载模板")])],1),i("div",{staticClass:"upload-template"},[e._v(" 2. 上传填写好的模板文件 "),i("el-upload",{staticClass:"upload-div",attrs:{"http-request":e.customUploadFile,action:e.action,"on-remove":e.resetData,accept:e.accept,"file-list":e.fileList}},[i("el-button",{directives:[{name:"show",rawName:"v-show",value:0===e.fileList.length,expression:"fileList.length === 0"}],staticClass:"upload-info",attrs:{size:"small",type:"primary"}},[i("span",[e._v("上传")]),i("i",{staticClass:"iconfont icon-upload",staticStyle:{color:"#fff"}})])],1)],1)],1),i("div",{directives:[{name:"show",rawName:"v-show",value:e.step===e.SECOND_STEP,expression:"step === SECOND_STEP"}],staticClass:"second-step"},[i("div",{staticClass:"total"},[e._v("导入完成,导入"),i("span",{staticClass:"success theme-text-color"},[e._v("成功"+e._s(e.importInfo.successNum||0)+"条")]),e._v(",导入"),i("span",{staticClass:"fail"},[e._v("失败"+e._s(e.importInfo.failNum||0)+"条")])]),e.importInfo&&e.importInfo.failNum>0?i("div",{staticClass:"error-div"},[i("div",{staticClass:"err-tip"},[e._v("下载导入失败报告,查看错误原因")]),i("el-link",{staticClass:"download-div theme-text-color",attrs:{underline:!1,icon:"el-icon-download"},on:{click:function(t){return e.downloadErrFile(e.importInfo.url)}}},[e._v("下载导入失败报告")])],1):e._e()]),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.close}},[e._v("取消")]),i("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.handelConfirm}},[e._v("确定")])],1)])},n=[],r=(i("b0c0"),i("dd70")),s=i("989b"),o=1,l=2,c={name:"",components:{},props:{alertTitle:{type:String,default:""},uploadParams:{type:Object,default:function(){}},action:{type:String,default:""},accept:{type:String,default:"*"},loading:{type:Boolean,default:!1},importInfo:{type:Object,default:function(){}},title:{type:String,default:""},href:{type:String,default:""}},data:function(){return{importFile:{},FIRST_STEP:o,SECOND_STEP:l,step:o,FILE_EXCEL_TYPE:r["U"],fileList:[],formData:null}},created:function(){},mounted:function(){},methods:{close:function(){this.resetData(),this.$emit("update:visible",!1)},handelConfirm:function(){if(this.step===l)return this.resetData(),void this.$emit("update:visible",!1);this.formData?(this.$emit("handleImportFile",this.formData),this.step===l?(this.resetData(),this.$emit("update:visible",!1)):this.step=this.step+1):this.msgWarn("请上传话术模板")},resetData:function(){this.formData=null,this.step=o,this.fileList=[]},dealFormat:function(e){var t=!0;return t="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===e.type,t||this.msgError("上传文件只能是 xlsx 格式!"),t},handleBeforeUpload:function(e){var t=!0;return t=this.dealFormat(e),t},customUploadFile:function(e){var t=e.file,i=this.handleBeforeUpload(t);if(i){var a=new FormData;for(var n in a.append("file",t),this.uploadParams)a.append(n,this.uploadParams[n]);this.formData=a,this.fileList=[{name:t.name}]}},downloadErrFile:function(e){Object(s["a"])(e)}}},u=c,d=(i("371c"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"65e78094",null);t["a"]=p.exports},c3e0:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"material-miniapp-container item-container material-item-scss"},[i("div",{staticClass:"cover-img"},[i("MaskItem",{attrs:{"tool-list":e.toolList,"selected-material-list":e.selectedMaterialList,"material-item":e.item,"media-type":e.MEDIA_TYPE_MINIAPP},on:{selectMaterial:e.onSelectMaterial,openMaterialDialog:e.openMaterialDialog,getList:e.getList,changeList:e.changeList}}),i("el-image",{attrs:{fit:"contain",src:e.item.coverUrl}},[i("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[i("i",{staticClass:"iconfont icon-mini-app"})])]),i("div",{staticClass:"bottom-desc"},[i("TagList",{attrs:{"tag-list":e.tagList}}),e.showExpireTime?i("div",{staticClass:"expire-time"},[e._v(" "+e._s(e.item.expireTime)+" 过期 ")]):e._e()],1)],1),i("div",{staticClass:"desc"},[e.item.showMaterial&&!e.hideStatus?i("div",{staticClass:"publish-status"},[e._v("发布")]):e._e(),i("div",{staticClass:"file-title inoneline",attrs:{title:e.item.materialName}},[e._v(e._s(e.item.materialName))])])])},n=[],r=i("e8d4"),s=i("3d09"),o=i("dd70"),l=i("cf45"),c=i("f7d0"),u={name:"MiniAppItem",components:{TagList:r["a"],MaskItem:s["a"]},props:{item:{type:Object,default:function(){}},hideStatus:{type:Boolean,default:!1},showExpireTime:{type:Boolean,default:!1},toolList:{type:Array,default:null},selectedMaterialList:{type:Array,default:function(){return[]}},selectMaterial:{type:Function,default:function(){}}},data:function(){return{MEDIA_TYPE_MINIAPP:o["bc"]}},computed:{tagList:function(){return Object(l["K"])(this.item.tagList||[],this.$store)}},methods:{onSelectMaterial:function(){Object(c["a"])(this.selectedMaterialList,this.item,this.selectMaterial)},openMaterialDialog:function(e){this.$emit("openMaterialDialog",e)},getList:function(){this.$emit("getList")},changeList:function(e){this.$emit("changeList",e)}}},d=u,p=(i("dbe4"),i("9ec6"),i("2877")),f=Object(p["a"])(d,a,n,!1,null,"1a36caea",null);t["a"]=f.exports},c3e2:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"drag"},[e.index?i("div",{staticClass:"drag-item",on:{click:function(t){return e.$emit("changeSort","moveTop")}}},[i("i",{staticClass:"el-icon-top"})]):e._e(),e.lastIndex?e._e():i("div",{staticClass:"drag-item",on:{click:function(t){return e.$emit("changeSort","moveBottom")}}},[i("i",{staticClass:"el-icon-bottom"})]),i("div",{staticClass:"drag-item",on:{click:function(t){return e.$emit("changeSort","delete")}}},[i("i",{staticClass:"el-icon-remove-outline"})])])},n=[],r=(i("a9e3"),{props:{item:{type:Object,default:function(){}},index:{type:Number,default:1},lastIndex:{type:Boolean,default:!1}}}),s=r,o=(i("3bab"),i("2877")),l=Object(o["a"])(s,a,n,!1,null,"090a4188",null);t["default"]=l.exports},c3f8:function(e,t,i){"use strict";i.d(t,"e",(function(){return r})),i.d(t,"d",(function(){return s})),i.d(t,"a",(function(){return o})),i.d(t,"g",(function(){return l})),i.d(t,"f",(function(){return c})),i.d(t,"c",(function(){return u})),i.d(t,"b",(function(){return d}));var a=i("b775"),n=window.CONFIG.services.wecom+"/communityNewGroup";function r(e){return Object(a["a"])({url:n+"/list",method:"get",params:e})}function s(e){return Object(a["a"])({url:n+"/"+e,method:"get"})}function o(e){return Object(a["a"])({url:n+"/",method:"post",data:e})}function l(e,t){return Object(a["a"])({url:n+"/"+e,method:"put",data:t})}function c(e){return Object(a["a"])({url:n+"/"+e,method:"DELETE"})}function u(e){return Object(a["a"])({url:n+"/downloadBatch",params:{ids:e},responseType:"blob"})}function d(e){return Object(a["a"])({url:n+"/download",params:{id:e},responseType:"blob"})}},c408:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"shabowbox"},[i("div",{staticClass:"close",on:{click:e.closeModal}},[i("i",{staticClass:"el-icon-circle-close"})]),i("div",{staticClass:"shabowbox-video"},[i("video-player",{ref:"videoPlayer",staticClass:"video-player vjs-custom-skin",attrs:{id:"videoPlayer",playsinline:!0,options:e.playerOptions}})],1)])},n=[],r=i("5530"),s=(i("fda2"),i("451f"),i("dd70")),o={props:{},data:function(){return{playerOptions:{playbackRates:s["Nc"],autoplay:!1,controls:!0,preload:"auto",muted:!1,loop:!1,language:"zh-CN",aspectRatio:"16:9",fluid:!0,poster:"",width:document.documentElement.clientWidth,height:"475",notSupportedMessage:"此视频暂无法播放,请稍后再试"},dia:!1}},mounted:function(){},methods:{play:function(e){this.playerOptions=Object(r["a"])(Object(r["a"])({},this.playerOptions),{},{sources:[{type:s["xd"],src:e}]}),this.dia=!0;var t=this.$refs.videoPlayer.player;t.play()},closeModal:function(){this.$emit("closeModal")}}},l=o,c=(i("3efd"),i("2877")),u=Object(c["a"])(l,a,n,!1,null,"5e625c82",null);t["default"]=u.exports},c430c:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("MaPage",{ref:"page",attrs:{type:e.MEDIA_TYPE_FILE,selected:e.selectedMaterialList,"select-material":e.selectMaterial},on:{"update:selected":function(t){e.selectedMaterialList=t}},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.list,n=t.getList,r=t.changeList,s=t.edit;return[e._l(a,(function(t,a){return[i("FileItem",{key:a,attrs:{item:t,"show-icon":!0,"tool-list":["download",t.showMaterial?"published":"publish","edit","remove"],"desc-field":"content","show-file-size":!0,type:e.MEDIA_TYPE_FILE,"selected-material-list":e.selectedMaterialList,"select-material":e.selectMaterial},on:{openMaterialDialog:s,getList:n,changeList:r}})]}))]}}])})},n=[],r=i("2d03"),s=i("8fc0"),o=i("dd70"),l={name:"FileList",components:{MaPage:r["default"],FileItem:s["a"]},data:function(){return{selectedMaterialList:[],MEDIA_TYPE_FILE:o["Zb"]}},watch:{},created:function(){},methods:{selectMaterial:function(e){this.selectedMaterialList=e}}},c=l,u=i("2877"),d=Object(u["a"])(c,a,n,!1,null,null,null);t["default"]=d.exports},c4a1:function(e,t,i){"use strict";i("c2ab")},c5a2:function(e,t,i){"use strict";i("2f42")},c5c3:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"intelligent-form-list-wrap"},[i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{model:e.query,inline:!0,"label-width":"100px"}},[i("el-form-item",{attrs:{prop:"formName"}},[i("el-input",{attrs:{placeholder:"请输入表单名称",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSearch(!0)}},model:{value:e.query.formName,callback:function(t){e.$set(e.query,"formName",t)},expression:"query.formName"}})],1),i("el-form-item",{attrs:{prop:"enableFlag"}},[i("el-select",{attrs:{clearable:"",placeholder:"请选择启用状态"},model:{value:e.query.enableFlag,callback:function(t){e.$set(e.query,"enableFlag",t)},expression:"query.enableFlag"}},e._l(e.options,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),i("el-form-item",[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.timeSection,callback:function(t){e.timeSection=t},expression:"timeSection"}})],1),i("el-form-item",{attrs:{label:" "}},[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.onSearch(!0)}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery(),e.getFormList()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"operate-btn",fn:function(){return[e.roleKey?i("div",{staticClass:"operate-btn"},[i("el-button",{staticClass:"btn-reset",on:{click:e.batchUpdateGroup}},[e._v("批量修改分组")]),i("el-button",{staticClass:"btn-reset",on:{click:e.batchDelete}},[e._v("批量删除")]),i("el-button",{attrs:{type:"primary"},on:{click:e.addForm}},[e._v("新增表单")])],1):e._e()]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list},on:{"selection-change":e.handleSelectionChange}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.list.length}})],1),i("el-table-column",{attrs:{type:"selection",width:"55",fixed:"left"}}),i("el-table-column",{attrs:{prop:"formName",label:"表单名称",align:"center",width:"180",fixed:"left"}}),i("el-table-column",{attrs:{prop:"submitCount",label:"提交人数",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"submit-count"},[e._v(" "+e._s(t.row.submitCount||0)+" "),i("el-popover",{attrs:{placement:"top",content:"当前表单未绑定公众号,数据收集将受影响",trigger:"hover","popper-class":"tip-popover"}},[t.row.bindWeChatPublicPlatformFlag?e._e():i("i",{staticClass:"iconfont icon-InfoCircleOutlined",staticStyle:{color:"red","font-size":"14px"},attrs:{slot:"reference"},slot:"reference"})])],1)]}}])}),i("el-table-column",{attrs:{prop:"enableFlag",label:"启用状态",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{on:{change:function(i){return e.changeEnableFlag(i,t.row)}},model:{value:t.row.enableFlag,callback:function(i){e.$set(t.row,"enableFlag",i)},expression:"scope.row.enableFlag"}})]}}])}),i("el-table-column",{attrs:{prop:"groupName",label:"所属分组",align:"center"}}),i("el-table-column",{attrs:{prop:"createBy",label:"创建人",align:"center"}}),i("el-table-column",{attrs:{prop:"createTime",label:"创建时间",align:"center",width:"200"}}),i("el-table-column",{attrs:{label:"操作",align:"center",width:"120",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"flex-column"},[i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(i){return e.handleSpread(t.row)}}},[e._v("推广")]),i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(i){return e.handleDetails(t.row)}}},[e._v("详情")]),e.roleKey?i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("编辑")]):e._e(),e.roleKey?i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(i){return e.handleDelete(t.row.id)}}},[e._v("删除")]):e._e()],1)]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.list.length>0,expression:"list.length > 0"}],attrs:{total:e.total,disabled:e.loading,limit:e.query.pageSize,page:e.query.pageNum,"select-data-len":e.multiSelect.length},on:{"update:limit":function(t){return e.$set(e.query,"pageSize",t)},"update:page":function(t){return e.$set(e.query,"pageNum",t)},pagination:function(){return e.onSearch()}}})]},proxy:!0}])}),i("BatchUpdateGroup",{attrs:{visible:e.batchVisible,"group-tree-data":e.selectGroupTreeData,"multi-select":e.multiSelect,"get-list":function(){return e.onSearch()}},on:{"update:visible":function(t){e.batchVisible=t}}}),i("SpreadDialog",{ref:"SpreadDialog",attrs:{visible:e.spreadVisible,"form-row-data":e.formRowData},on:{"update:visible":function(t){e.spreadVisible=t}}})],1)},n=[],r=i("c7eb"),s=i("1da1"),o=i("5530"),l=i("2909"),c=(i("d81d"),i("b0c0"),i("a9e3"),i("b64b"),i("d3b7"),i("ed08")),u=i("b66d"),d=i("e77d"),p=i("6d78"),f=i("4c79"),A=i("e2e0"),h=i("c7ea"),m=i("dd70"),g={name:"VerbalTrickList",components:{RightContainer:u["a"],EmptyDefaultIcon:d["a"],SpreadDialog:p["default"],BatchUpdateGroup:f["default"]},mixins:[A["a"]],inject:["getDepartmentId"],props:{type:{type:Number,default:m["Ib"]["enterprise"]},groupTreeData:{type:Array,default:function(){return[]}},roleKey:{type:Boolean,default:!0},selectedGroupId:{type:String,default:""},selectGroupParentId:{type:String,default:""}},data:function(){return{INTELLIGENT_FORM_TYPE:m["Ib"],TREE_ALL_GROUP_ID:m["sd"],options:[{label:"全部",value:null},{label:"启用",value:!0},{label:"关闭",value:!1}],timeSection:void 0,query:{formName:"",enableFlag:void 0,pageSize:m["Ic"],pageNum:1,beginTime:void 0,endTime:void 0},total:0,list:[],loading:!1,addVerbalTrickDrawerVisible:!1,multiSelect:[],batchVisible:!1,spreadVisible:!1,formRowData:void 0}},computed:{selectGroupTreeData:function(){var e=Object(l["a"])(this.groupTreeData);return e[0]&&e[0].id===m["sd"]?e[0].children:e},departmentId:function(){return this.getDepartmentId()}},watch:{selectedGroupId:function(){this.onSearch(!0)}},created:function(){if(this.$store.getters.saveCondition&&Object.keys(this.$store.getters.searchQuery[this.$route.name].query||{}).length){var e=this.$store.getters.searchQuery[this.$route.name].query,t=e.beginTime,i=e.endTime;t&&i&&(this.timeSection=[t,i]),this.query=this.$store.getters.searchQuery[this.$route.name].query}},mounted:function(){},methods:{resetQuery:function(){this.query=this.$options.data().query,this.timeSection=void 0},handleSpread:function(e){var t,i;this.spreadVisible=!0;var a=(null===e||void 0===e?void 0:e.id)!==(null===(t=this.formRowData)||void 0===t?void 0:t.id);this.formRowData=e,a&&(null===(i=this.$refs.SpreadDialog)||void 0===i||i.getNewSpreadData(e.id))},handleDetails:function(e){this.goRouterToForm("formDetail",{id:e.id})},handleEdit:function(e){this.goRouterToForm("editForm",{id:e.id,sourceType:this.type})},addForm:function(){var e=this.selectGroupParentId&&this.selectGroupParentId!==m["sd"],t={selectedGroup:this.selectedGroupId?e?[this.selectGroupParentId,this.selectedGroupId]:[this.selectedGroupId]:void 0,sourceType:this.type,departmentId:this.departmentId};this.goRouterToForm("editForm",t)},goRouterToForm:function(e,t){var i=this.selectGroupParentId&&this.selectGroupParentId!==m["sd"];window.sessionStorage.setItem("intelligent_form_active",this.type),window.sessionStorage.setItem("intelligent_form_department_id",this.departmentId),this.$store.commit("SET_SEARCH_QUERY",{pageName:this.$route.name,query:{query:this.query,selectedGroup:this.selectedGroupId?i?[this.selectGroupParentId,this.selectedGroupId]:[this.selectedGroupId]:void 0}}),Object(c["l"])(this.$router,e,{},t)},getPayload:function(){this.timeSection?(this.query.beginTime=this.timeSection[0],this.query.endTime=this.timeSection[1]):(this.query.beginTime=void 0,this.query.endTime=void 0);var e=Object(o["a"])(Object(o["a"])({},this.query),{},{groupId:this.selectedGroupId,sourceType:this.type});return this.type===m["Ib"]["department"]&&(e=Object(o["a"])(Object(o["a"])({},e),{},{departmentId:this.departmentId})),e},clearFormData:function(){this.list=[],this.total=0},getFormList:function(){var e=this;this.loading=!0,Object(h["o"])(this.getPayload()).then((function(t){e.list=t.rows,e.total=t.total?Number(t.total):0})).catch((function(){e.clearFormData()})).finally((function(){e.modifyButtonStatus(),e.loading=!1}))},onSearch:function(e){e&&(this.query.pageNum=1),this.getFormList()},handleSelectionChange:function(e){this.multiSelect=e},deleteForm:function(){var e=arguments,t=this;return Object(s["a"])(Object(r["a"])().mark((function i(){var a,n;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a=e.length>0&&void 0!==e[0]?e[0]:{},i.next=3,Object(h["t"])(a);case 3:n=i.sent,n&&(t.msgSuccess("删除成功"),t.onSearch());case 5:case"end":return i.stop()}}),i)})))()},handleDelete:function(e){var t=this;this.confirmModal({msg:"所选表单的数据将被删除,且不可撤回,是否继续?"},(function(){t.deleteForm({idList:[e]})}))},batchDelete:function(){var e=this;if(0!==this.multiSelect.length){var t=[];this.multiSelect.map((function(e){t.push(e.id)})),this.confirmModal({msg:"所选表单的数据将被删除,且不可撤回,是否继续?"},(function(){e.deleteForm({idList:t})}))}else this.msgWarn("请勾选要操作的表单")},batchUpdateGroup:function(){0!==this.multiSelect.length?this.batchVisible=!0:this.msgWarn("请勾选要操作的表单")},changeEnableFlag:function(e,t){var i=this;Object(h["d"])({enableFlag:e,id:t.id}).then((function(e){i.msgSuccess("操作成功")})).catch((function(){t.enableFlag=!e}))}}},v=g,b=(i("22aa"),i("2877")),y=Object(b["a"])(v,a,n,!1,null,"054c8434",null);t["default"]=y.exports},c5c7:function(e,t,i){"use strict";i("42e6")},c5d0:function(e,t,i){"use strict";var a=i("23e7"),n=i("857a"),r=i("af03");a({target:"String",proto:!0,forced:r("italics")},{italics:function(){return n(this,"i","","")}})},c615:function(e,t,i){},c640:function(e,t,i){},c677:function(e,t,i){"use strict";i.d(t,"c",(function(){return r})),i.d(t,"g",(function(){return s})),i.d(t,"a",(function(){return o})),i.d(t,"h",(function(){return l})),i.d(t,"d",(function(){return c})),i.d(t,"b",(function(){return u})),i.d(t,"f",(function(){return d})),i.d(t,"e",(function(){return p})),i.d(t,"i",(function(){return f}));var a=i("b775"),n=window.CONFIG.services.wecom+"/sensitive";function r(e){return Object(a["a"])({url:n+"/hit/list",method:"get",params:e})}function s(e){return Object(a["a"])({url:n+"/list",method:"get",params:e})}function o(e){return Object(a["a"])({url:n,method:"post",data:e})}function l(e){return Object(a["a"])({url:n,method:"put",data:e})}function c(e){return Object(a["a"])({url:n+"/"+e,method:"get"})}function u(e){return Object(a["a"])({url:n+"/"+e,method:"delete"})}function d(e){return Object(a["a"])({url:n+"/act/hit/list",method:"get",params:e})}function p(e){return Object(a["a"])({url:n+"/act/list",method:"get",params:e})}function f(e){return Object(a["a"])({url:n+"/act",method:"PUT",data:e})}},c67a:function(e,t,i){e.exports=i.p+"static/img/workSheetCustomerService.1fa894cf.png"},c691:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[i("el-form-item",{attrs:{label:"登记序号",prop:"djxh"}},[i("el-input",{attrs:{placeholder:"请输入登记序号",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.djxh,callback:function(t){e.$set(e.queryParams,"djxh",t)},expression:"queryParams.djxh"}})],1),i("el-form-item",{attrs:{label:"纳税人识别号",prop:"nsrsbh"}},[i("el-input",{attrs:{placeholder:"请输入纳税人识别号",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.nsrsbh,callback:function(t){e.$set(e.queryParams,"nsrsbh",t)},expression:"queryParams.nsrsbh"}})],1),i("el-form-item",{attrs:{label:"纳税人名称",prop:"nsrmc"}},[i("el-input",{attrs:{placeholder:"请输入纳税人名称",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.nsrmc,callback:function(t){e.$set(e.queryParams,"nsrmc",t)},expression:"queryParams.nsrmc"}})],1),i("el-form-item",{attrs:{label:"注册地址",prop:"zcdz"}},[i("el-input",{attrs:{placeholder:"请输入注册地址",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.zcdz,callback:function(t){e.$set(e.queryParams,"zcdz",t)},expression:"queryParams.zcdz"}})],1),i("el-form-item",{attrs:{label:"法人姓名",prop:"fr"}},[i("el-input",{attrs:{placeholder:"请输入法人姓名",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.fr,callback:function(t){e.$set(e.queryParams,"fr",t)},expression:"queryParams.fr"}})],1),i("el-form-item",{attrs:{label:"法人电话",prop:"frdh"}},[i("el-input",{attrs:{placeholder:"请输入法人电话",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.frdh,callback:function(t){e.$set(e.queryParams,"frdh",t)},expression:"queryParams.frdh"}})],1),i("el-form-item",{attrs:{label:"联系人",prop:"lxr"}},[i("el-input",{attrs:{placeholder:"请输入联系人",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.lxr,callback:function(t){e.$set(e.queryParams,"lxr",t)},expression:"queryParams.lxr"}})],1),i("el-form-item",{attrs:{label:"联系人电话",prop:"lxrdh"}},[i("el-input",{attrs:{placeholder:"请输入联系人电话",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.lxrdh,callback:function(t){e.$set(e.queryParams,"lxrdh",t)},expression:"queryParams.lxrdh"}})],1),i("el-form-item",{attrs:{label:"所在地区",prop:"address"}},[i("el-input",{attrs:{placeholder:"请输入所在地区",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.address,callback:function(t){e.$set(e.queryParams,"address",t)},expression:"queryParams.address"}})],1),i("el-form-item",{attrs:{label:"所属税局",prop:"sssj"}},[i("el-input",{attrs:{placeholder:"请输入所属税局",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.sssj,callback:function(t){e.$set(e.queryParams,"sssj",t)},expression:"queryParams.sssj"}})],1),i("el-form-item",{attrs:{label:"专管员姓名",prop:"zgyxm"}},[i("el-input",{attrs:{placeholder:"请输入专管员姓名",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.zgyxm,callback:function(t){e.$set(e.queryParams,"zgyxm",t)},expression:"queryParams.zgyxm"}})],1),i("el-form-item",{attrs:{label:"专管员电话",prop:"zgydh"}},[i("el-input",{attrs:{placeholder:"请输入专管员电话",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.zgydh,callback:function(t){e.$set(e.queryParams,"zgydh",t)},expression:"queryParams.zgydh"}})],1),i("el-form-item",{attrs:{label:"行业类别",prop:"hyType"}},[i("el-select",{attrs:{placeholder:"请选择行业类别",clearable:"",size:"small"},model:{value:e.queryParams.hyType,callback:function(t){e.$set(e.queryParams,"hyType",t)},expression:"queryParams.hyType"}},[i("el-option",{attrs:{label:"请选择字典生成",value:""}})],1)],1),i("el-form-item",{attrs:{label:"注册日期",prop:"zcTime"}},[i("el-date-picker",{attrs:{clearable:"",size:"small",type:"date","value-format":"yyyy-MM-dd",placeholder:"选择注册日期"},model:{value:e.queryParams.zcTime,callback:function(t){e.$set(e.queryParams,"zcTime",t)},expression:"queryParams.zcTime"}})],1),i("el-form-item",{attrs:{label:"经营范围",prop:"jyfw"}},[i("el-input",{attrs:{placeholder:"请输入经营范围",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.jyfw,callback:function(t){e.$set(e.queryParams,"jyfw",t)},expression:"queryParams.jyfw"}})],1),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),i("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),i("el-row",{staticClass:"mb8",attrs:{gutter:10}},[i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["xiaoe:qyjbxx:add"],expression:"['xiaoe:qyjbxx:add']"}],attrs:{type:"primary",plain:"",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1),i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["xiaoe:qyjbxx:edit"],expression:"['xiaoe:qyjbxx:edit']"}],attrs:{type:"success",plain:"",icon:"el-icon-edit",size:"mini",disabled:e.single},on:{click:e.handleUpdate}},[e._v("修改")])],1),i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["xiaoe:qyjbxx:remove"],expression:"['xiaoe:qyjbxx:remove']"}],attrs:{type:"danger",plain:"",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["xiaoe:qyjbxx:export"],expression:"['xiaoe:qyjbxx:export']"}],attrs:{type:"warning",plain:"",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1),i("right-toolbar",{attrs:{"show-search":e.showSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:e.getList}})],1),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.qyjbxxList},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),e._e(),i("el-table-column",{attrs:{label:"纳税人识别号",align:"center",prop:"nsrsbh",width:"155"}}),i("el-table-column",{attrs:{label:"纳税人名称",align:"center",prop:"nsrmc",width:"160"}}),i("el-table-column",{attrs:{label:"注册地址",align:"center",prop:"zcdz","show-overflow-tooltip":!0}}),i("el-table-column",{attrs:{label:"法人姓名",align:"center",prop:"fr"}}),i("el-table-column",{attrs:{label:"法人电话",align:"center",prop:"frdh"}}),i("el-table-column",{attrs:{label:"联系人",align:"center",prop:"lxr"}}),i("el-table-column",{attrs:{label:"联系人电话",align:"center",prop:"lxrdh"}}),i("el-table-column",{attrs:{label:"所在地区",align:"center",prop:"address"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticStyle:{"text-overflow":"ellipsis",width:"100px","white-space":"nowrap",overflow:"hidden","line-height":"10px"},attrs:{title:t.row.address}},[e._v(" "+e._s(t.row.address)+" ")])]}}])}),i("el-table-column",{attrs:{label:"所属税局",align:"center",prop:"sssj"}}),i("el-table-column",{attrs:{label:"专管员姓名",align:"center",prop:"zgyxm"}}),i("el-table-column",{attrs:{label:"专管员电话",align:"center",prop:"zgydh"}}),i("el-table-column",{attrs:{label:"行业类别",align:"center",prop:"hyType"}}),i("el-table-column",{attrs:{label:"注册日期",align:"center",prop:"zcTime",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e.parseTime(t.row.zcTime,"{y}-{m}-{d}")))])]}}])}),i("el-table-column",{attrs:{label:"经营范围",align:"center",prop:"jyfw"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticStyle:{"text-overflow":"ellipsis",width:"100px","white-space":"nowrap",overflow:"hidden","line-height":"25px"},attrs:{title:t.row.jyfw}},[e._v(" "+e._s(t.row.jyfw)+" ")])]}}])}),i("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["xiaoe:qyjbxx:edit"],expression:"['xiaoe:qyjbxx:edit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(i){return e.handleUpdate(t.row)}}},[e._v("修改")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["xiaoe:qyjbxx:remove"],expression:"['xiaoe:qyjbxx:remove']"}],attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("删除")])]}}])})],1),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),i("el-dialog",{attrs:{title:e.title,visible:e.open,width:"500px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[i("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[i("el-form-item",{attrs:{label:"登记序号",prop:"djxh"}},[i("el-input",{attrs:{placeholder:"请输入登记序号"},model:{value:e.form.djxh,callback:function(t){e.$set(e.form,"djxh",t)},expression:"form.djxh"}})],1),i("el-form-item",{attrs:{label:"纳税人识别号",prop:"nsrsbh"}},[i("el-input",{attrs:{placeholder:"请输入纳税人识别号"},model:{value:e.form.nsrsbh,callback:function(t){e.$set(e.form,"nsrsbh",t)},expression:"form.nsrsbh"}})],1),i("el-form-item",{attrs:{label:"纳税人名称",prop:"nsrmc"}},[i("el-input",{attrs:{placeholder:"请输入纳税人名称"},model:{value:e.form.nsrmc,callback:function(t){e.$set(e.form,"nsrmc",t)},expression:"form.nsrmc"}})],1),i("el-form-item",{attrs:{label:"注册地址",prop:"zcdz"}},[i("el-input",{attrs:{placeholder:"请输入注册地址"},model:{value:e.form.zcdz,callback:function(t){e.$set(e.form,"zcdz",t)},expression:"form.zcdz"}})],1),i("el-form-item",{attrs:{label:"法人姓名",prop:"fr"}},[i("el-input",{attrs:{placeholder:"请输入法人姓名"},model:{value:e.form.fr,callback:function(t){e.$set(e.form,"fr",t)},expression:"form.fr"}})],1),i("el-form-item",{attrs:{label:"法人电话",prop:"frdh"}},[i("el-input",{attrs:{placeholder:"请输入法人电话"},model:{value:e.form.frdh,callback:function(t){e.$set(e.form,"frdh",t)},expression:"form.frdh"}})],1),i("el-form-item",{attrs:{label:"联系人",prop:"lxr"}},[i("el-input",{attrs:{placeholder:"请输入联系人"},model:{value:e.form.lxr,callback:function(t){e.$set(e.form,"lxr",t)},expression:"form.lxr"}})],1),i("el-form-item",{attrs:{label:"联系人电话",prop:"lxrdh"}},[i("el-input",{attrs:{placeholder:"请输入联系人电话"},model:{value:e.form.lxrdh,callback:function(t){e.$set(e.form,"lxrdh",t)},expression:"form.lxrdh"}})],1),i("el-form-item",{attrs:{label:"所在地区",prop:"address"}},[i("el-input",{attrs:{placeholder:"请输入所在地区"},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}})],1),i("el-form-item",{attrs:{label:"所属税局",prop:"sssj"}},[i("el-input",{attrs:{placeholder:"请输入所属税局"},model:{value:e.form.sssj,callback:function(t){e.$set(e.form,"sssj",t)},expression:"form.sssj"}})],1),i("el-form-item",{attrs:{label:"专管员姓名",prop:"zgyxm"}},[i("el-input",{attrs:{placeholder:"请输入专管员姓名"},model:{value:e.form.zgyxm,callback:function(t){e.$set(e.form,"zgyxm",t)},expression:"form.zgyxm"}})],1),i("el-form-item",{attrs:{label:"专管员电话",prop:"zgydh"}},[i("el-input",{attrs:{placeholder:"请输入专管员电话"},model:{value:e.form.zgydh,callback:function(t){e.$set(e.form,"zgydh",t)},expression:"form.zgydh"}})],1),i("el-form-item",{attrs:{label:"行业类别",prop:"hyType"}},[i("el-select",{attrs:{placeholder:"请选择行业类别"},model:{value:e.form.hyType,callback:function(t){e.$set(e.form,"hyType",t)},expression:"form.hyType"}},[i("el-option",{attrs:{label:"请选择字典生成",value:""}})],1)],1),i("el-form-item",{attrs:{label:"注册日期",prop:"zcTime"}},[i("el-date-picker",{attrs:{clearable:"",size:"small",type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择注册日期"},model:{value:e.form.zcTime,callback:function(t){e.$set(e.form,"zcTime",t)},expression:"form.zcTime"}})],1),i("el-form-item",{attrs:{label:"经营范围",prop:"jyfw"}},[i("el-input",{attrs:{placeholder:"请输入经营范围"},model:{value:e.form.jyfw,callback:function(t){e.$set(e.form,"jyfw",t)},expression:"form.jyfw"}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),i("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},n=[],r=(i("d81d"),i("8e7c")),s={name:"Qyjbxx",components:{},data:function(){return{loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,qyjbxxList:[],title:"",open:!1,queryParams:{pageNum:1,pageSize:10,djxh:void 0,nsrsbh:void 0,nsrmc:void 0,zcdz:void 0,fr:void 0,frdh:void 0,lxr:void 0,lxrdh:void 0,address:void 0,sssj:void 0,zgyxm:void 0,zgydh:void 0,hyType:void 0,zcTime:void 0,jyfw:void 0},form:{},rules:{}}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(r["e"])(this.queryParams).then((function(t){e.qyjbxxList=t.rows,e.total=t.total,e.loading=!1}))},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={id:void 0,djxh:void 0,nsrsbh:void 0,nsrmc:void 0,zcdz:void 0,fr:void 0,frdh:void 0,lxr:void 0,lxrdh:void 0,address:void 0,sssj:void 0,zgyxm:void 0,zgydh:void 0,hyType:void 0,zcTime:void 0,jyfw:void 0},this.resetForm("form")},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.id})),this.single=1!==e.length,this.multiple=!e.length},handleAdd:function(){this.reset(),this.open=!0,this.title="添加企业基本信息"},handleUpdate:function(e){var t=this;this.reset();var i=e.id||this.ids;Object(r["d"])(i).then((function(e){t.form=e.data,t.open=!0,t.title="修改企业基本信息"}))},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(null!=e.form.id?Object(r["f"])(e.form).then((function(t){e.msgSuccess("修改成功"),e.open=!1,e.getList()})):Object(r["a"])(e.form).then((function(t){e.msgSuccess("新增成功"),e.open=!1,e.getList()})))}))},handleDelete:function(e){var t=this,i=e.id||this.ids;this.$confirm('是否确认删除企业基本信息编号为"'+i+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(r["b"])(i)})).then((function(){t.getList(),t.msgSuccess("删除成功")}))},handleExport:function(){var e=this,t=this.queryParams;this.$confirm("是否确认导出所有企业基本信息数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(r["c"])(t)})).then((function(t){e.download(t.msg)}))}}},o=s,l=(i("b29e"),i("2877")),c=Object(l["a"])(o,a,n,!1,null,"1d19e828",null);t["default"]=c.exports},c71c:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{inline:!0,model:e.query}},[i("el-form-item",{attrs:{prop:"activityName"}},[i("el-input",{attrs:{clearable:"",placeholder:"请输入活动名称"},on:{clear:function(t){return e.getList(1)}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(1)}},model:{value:e.query.activityName,callback:function(t){e.$set(e.query,"activityName",t)},expression:"query.activityName"}})],1),i("el-form-item",{attrs:{prop:"createBy"}},[i("el-input",{attrs:{placeholder:"请输入创建人姓名"},model:{value:e.query.createBy,callback:function(t){e.$set(e.query,"createBy",t)},expression:"query.createBy"}})],1),i("el-form-item",[i("el-popover",{attrs:{placement:"top-start",trigger:"hover","popper-class":"tip-popover",content:"创建时间"}},[i("el-date-picker",{attrs:{slot:"reference","value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},slot:"reference",model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1)],1),i("el-form-item",[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.getList(1)}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"data-stat",fn:function(){return[i("span",[e._v("客户通过兑换码换取专属权益,是店铺快速引流渠道之一"),i("el-button",{staticClass:"data-count-num",attrs:{type:"text"},on:{click:function(t){e.openHowTouseActiveDrawer=!0}}},[e._v("如何使用兑换活动?")])],1)]},proxy:!0},{key:"operate-btn",fn:function(){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["redeeomCode:activity:add"],expression:"['redeeomCode:activity:add']"}],attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.goRoute("conversionCodeAdd")}}},[e._v("新建兑换活动")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["redeeomCode:activity:del"],expression:"['redeeomCode:activity:del']"}],staticClass:"btn-reset",attrs:{type:"reset",size:"mini"},on:{click:function(t){return e.batchDel()}}},[e._v("批量删除")])]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,"max-height":"600"},on:{"selection-change":e.handleSelectionChange}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.list.length}})],1),i("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),i("el-table-column",{attrs:{prop:"activityName",label:"活动名称",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-popover",{attrs:{"open-delay":600,placement:"top-start",trigger:"hover","popper-class":"tip-popover",content:""+a.activityName}},[i("div",{staticClass:"intwoline",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(a.activityName))])])]}}])}),i("el-table-column",{attrs:{label:"活动时间",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[a.effectStartTime?i("div",[e._v(e._s(a.effectStartTime)+"~"+e._s(a.effectEndTime))]):e._e()]}}])}),i("el-table-column",{attrs:{align:"center",width:"150",prop:"status"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",[e._v(e._s(a.remainInventory)+"/"+e._s(a.sumInventory))])]}},{key:"header",fn:function(){return[i("div",[i("span",[e._v("库存")]),i("el-popover",{attrs:{placement:"top-start",trigger:"hover","popper-class":"tip-popover",content:"库存即剩余未领取的兑换码"}},[i("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"14px"},attrs:{slot:"reference"},slot:"reference"})])],1)]},proxy:!0}])}),i("el-table-column",{attrs:{label:"创建人",align:"center",prop:"createBy"}}),i("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"createTime",width:"180"}}),i("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.goRoute("conversionCodeDetail",a.id)}}},[e._v("兑换码")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["redeeomCode:activity:edit"],expression:"['redeeomCode:activity:edit']"}],attrs:{type:"text"},on:{click:function(t){return e.goRoute("conversionCodeAdd",a.id)}}},[e._v("编辑")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["redeeomCode:activity:del"],expression:"['redeeomCode:activity:del']"}],attrs:{type:"text"},on:{click:function(t){return e.handleDelete(a.id)}}},[e._v("删除")])]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,disabled:e.loading,page:e.query.pageNum,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}})]},proxy:!0}])}),i("HowToUse",{attrs:{visible:e.openHowTouseActiveDrawer},on:{"update:visible":function(t){e.openHowTouseActiveDrawer=t}}})],1)},n=[],r=i("c7eb"),s=i("1da1"),o=(i("d81d"),i("b0c0"),i("b64b"),i("d3b7"),i("e77d")),l=i("ed08"),c=i("3e7a"),u=i("b66d"),d=i("54f4"),p=i("dd70"),f=i("e2e0"),A=1,h={name:"List",components:{RightContainer:u["a"],EmptyDefaultIcon:o["a"],HowToUse:c["default"]},mixins:[f["a"]],data:function(){return{loading:!1,ids:[],query:{activityName:"",effectStartTime:"",effectEndTime:"",createBy:"",pageNum:A,pageSize:p["Ic"]},dateRange:[],list:[],total:0,openHowTouseActiveDrawer:!1}},created:function(){if(this.$store.getters.saveCondition&&Object.keys(this.$store.getters.searchQuery[this.$route.name]||{}).length){var e=this.$store.getters.searchQuery[this.$route.name],t=e.effectStartTime,i=e.effectEndTime;t&&i&&(this.dateRange=[t,i]),this.query=this.$store.getters.searchQuery[this.$route.name]}this.$store.dispatch("app/setBusininessDesc","\n <div>客户通过兑换码领取内容商品等专属权益,帮助店铺快速引流、拓宽销售渠道、提高商品转化率</div>\n "),this.getList()},methods:{getList:function(e){var t=this;this.query.effectStartTime=this.dateRange&&this.dateRange[0],this.query.effectEndTime=this.dateRange&&this.dateRange[1],e&&(this.query.pageNum=e),this.loading=!0,Object(d["getConversionCodeActiveList"])(this.query).then((function(e){var i=e.rows,a=e.total;t.list=i,t.total=a})).finally((function(){t.modifyButtonStatus(),t.loading=!1}))},goRoute:function(e,t){this.$store.commit("SET_SEARCH_QUERY",{pageName:this.$route.name,query:this.query}),Object(l["l"])(this.$router,e,{},{id:t})},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.id}))},resetQuery:function(){this.dateRange=[],this.query=this.$options.data().query,this.getList(1)},handleDelete:function(e){this.delConversionCodeActive({idList:[e]})},batchDel:function(){this.ids.length<=0?this.msgWarn("请至少选择一个兑换活动"):this.delConversionCodeActive({idList:this.ids})},delConversionCodeActive:function(e){var t=this;this.confirmModal({msg:"若该活动在员工活码或新客进群中被使用,删除后将失效,且不可恢复,是否继续?"},Object(s["a"])(Object(r["a"])().mark((function i(){return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:Object(d["deleteConversionCodeActive"])(e).then((function(){t.getList()}));case 1:case"end":return i.stop()}}),i)}))))}}},m=h,g=i("2877"),v=Object(g["a"])(m,a,n,!1,null,null,null);t["default"]=v.exports},c738:function(e,t,i){},c745:function(e,t,i){e.exports=i.p+"static/img/business-card.36ebf261.svg"},c766:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"rule-record"},[i("div",{staticClass:"record-search"},["rule"===e.type?i("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入任务名称,回车搜索",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(){return e.dealGetList(1)}()},submit:function(e){e.preventDefault()}},model:{value:e.query.ruleName,callback:function(t){e.$set(e.query,"ruleName",t)},expression:"query.ruleName"}}):e._e(),"employee"===e.type?i("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入员工名称,回车搜索",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(){return e.dealGetList(1)}()},submit:function(e){e.preventDefault()}},model:{value:e.employeeQuery.userName,callback:function(t){e.$set(e.employeeQuery,"userName",t)},expression:"employeeQuery.userName"}}):e._e()],1),i("div",[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{text:"暂无数据"}})],1),e.isCustomerRule||e.isGroupRule?i("el-table-column",{key:"id",attrs:{label:"序号",prop:"id",width:"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.$index+1)+" ")]}}],null,!1,3056706777)}):e._e(),e.isCustomerRule||e.isGroupRule?i("el-table-column",{key:"ruleName",attrs:{label:"任务名称",prop:"ruleName","show-overflow-tooltip":!0}}):e._e(),e.isCustomerRule||e.isGroupRule?i("el-table-column",{key:"time",attrs:{label:"提醒时间",prop:"time"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("RemindPerform",{attrs:{"rule-item":t.row,"sop-type":e.sopType}})]}}],null,!1,1678327842)}):e._e(),e.isCustomerEmployee||e.isGroupEmployee?i("el-table-column",{key:"userName",attrs:{label:"员工",prop:"userName",width:"250px","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"flex user-info-div"},[i("div",{staticClass:"user-img"},[i("el-image",{staticStyle:{width:"35px",height:"35px"},attrs:{src:e.getHeadImgUrl(t.row.headImageUrl)}},[i("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[i("i",{staticClass:"iconfont icon-unknown-gender",staticStyle:{"font-size":"35px","vertical-align":"text-top"}})])])],1),i("div",{staticClass:"user-info ml10"},[i("div",[e._v(e._s(t.row.userName))]),i("div",{staticClass:"corp-type-name"},[e._v(e._s(t.row.corpName))])])])]}}],null,!1,1534198747)}):e._e(),e.isGroupEmployee?i("el-table-column",{key:"groupCount",attrs:{label:"客户群数",prop:"groupCount"}}):e._e(),i("el-table-column",{key:"taskCount",attrs:{label:"任务总数",prop:"taskCount"}}),i("el-table-column",{key:"taskExecuteCount",attrs:{label:"已执行",prop:"taskExecuteCount"}}),i("el-table-column",{key:"taskUnExecuteCount",attrs:{label:"未执行",prop:"taskUnExecuteCount"}}),i("el-table-column",{key:"executeRate",attrs:{label:"执行率",prop:"executeRate"}}),i("el-table-column",{attrs:{label:"操作","class-name":"small-padding fixed-width",prop:"operate"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:group:view"],expression:"['customerManage:group:view']"}],attrs:{size:"mini",type:"text"},on:{click:function(i){return e.onDetail(t.row)}}},[e._v("执行详情")])]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:"rule"===e.type&&e.total>0,expression:"type === 'rule' && total > 0"}],attrs:{total:e.total,disabled:e.loading,page:e.query.pageNum,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(){return e.dealGetList()}}}),i("pagination",{directives:[{name:"show",rawName:"v-show",value:"employee"===e.type&&e.total>0,expression:"type === 'employee' && total > 0"}],attrs:{total:e.total,disabled:e.loading,page:e.employeeQuery.pageNum,limit:e.employeeQuery.pageSize},on:{"update:page":function(t){return e.$set(e.employeeQuery,"pageNum",t)},"update:limit":function(t){return e.$set(e.employeeQuery,"pageSize",t)},pagination:function(){return e.dealGetList()}}})],1),[e.SOP_TYPE["cycle"],e.SOP_TYPE["groupCalendar"]].includes(e.sopType)?e._e():i("PerformRecordModal",{ref:"performRecordModal",attrs:{visible:e.recordModalVisible,title:"执行详情","rule-id":e.currentRuleId,"user-id":e.currentUserId,"sop-id":e.sopId,"sop-type":e.sopType,"is-customer-rule":e.isCustomerRule,"is-customer-employee":e.isCustomerEmployee,"is-group-rule":e.isGroupRule,"is-group-employee":e.isGroupEmployee,type:e.type},on:{"update:visible":function(t){e.recordModalVisible=t}}}),e.sopType===e.SOP_TYPE["cycle"]?i("CyclePerformRecordModal",{ref:"cyclePerformRecordModal",attrs:{visible:e.cycleRecordModalVisible,title:"执行详情","rule-id":e.currentRuleId,"user-id":e.currentUserId,"sop-id":e.sopId,"sop-type":e.sopType,"is-group-rule":e.isGroupRule,"is-group-employee":e.isGroupEmployee,type:e.type},on:{"update:visible":function(t){e.cycleRecordModalVisible=t}}}):e._e(),e.sopType===e.SOP_TYPE["groupCalendar"]?i("CalendarPerformRecordModal",{ref:"calendarPerformRecordModal",attrs:{visible:e.calendarRecordModalVisible,title:"执行详情","rule-id":e.currentRuleId,"user-id":e.currentUserId,"sop-id":e.sopId,"is-group-rule":e.isGroupRule,"is-group-employee":e.isGroupEmployee,type:e.type},on:{"update:visible":function(t){e.calendarRecordModalVisible=t}}}):e._e()],1)},n=[],r=i("ade3"),s=i("2909"),o=(i("caad"),i("d3b7"),i("2532"),i("9815")),l=i("dd70"),c=i("e77d"),u=i("8bc1"),d=i("a4ad"),p=i("4b73"),f=i("0491"),A=i("cf45"),h={name:"",components:{EmptyDefaultIcon:c["a"],RemindPerform:u["default"],PerformRecordModal:d["default"],CyclePerformRecordModal:p["default"],CalendarPerformRecordModal:f["default"]},props:{sopId:{type:String,default:null},type:{type:String,default:"rule"}},inject:["sopInfo"],data:function(){return{query:{pageNum:1,pageSize:l["Ic"],ruleName:""},employeeQuery:{pageNum:1,pageSize:l["Ic"],userName:""},list:[],total:0,recordModalVisible:!1,cycleRecordModalVisible:!1,calendarRecordModalVisible:!1,SOP_TYPE:l["ed"],currentRuleId:null,currentUserId:null,loading:!1}},computed:{sopType:function(){return this.sopInfo.sopType},isCustomerRule:function(){return this.isCustomer&&"rule"===this.type},isCustomerEmployee:function(){return this.isCustomer&&"employee"===this.type},isGroupRule:function(){return this.isGroup&&"rule"===this.type},isGroupEmployee:function(){return this.isGroup&&"employee"===this.type},isGroup:function(){return[l["ed"]["timing"],l["ed"]["cycle"],l["ed"]["groupCalendar"]].includes(this.sopType)},isCustomer:function(){return[l["ed"]["newCustomer"],l["ed"]["activity"],l["ed"]["birthday"]].includes(this.sopType)}},watch:{type:function(e){this.dealGetList()}},created:function(){},mounted:function(){this.dealGetList(1)},methods:{getHeadImgUrl:A["B"],dealGetList:function(e){var t=this.type;switch(t){case"rule":this.getRulesRecordList(e);break;case"employee":this.getSopEmployeeRecordList(e);break}},getRulesRecordList:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.query.pageNum;this.query.pageNum=t;var i=this.query;this.loading=!0,Object(o["k"])({sopId:this.sopId,pageNum:t,pageSize:i.pageSize,ruleName:i.ruleName}).then((function(t){var i;t&&(e.list=null!==(i=t.rows)&&void 0!==i&&i.length?Object(s["a"])(t.rows):[],e.total=t.total)})).finally((function(){e.loading=!1}))},getSopEmployeeRecordList:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.employeeQuery.pageNum;this.employeeQuery.pageNum=t;var i=this.employeeQuery;this.loading=!0,Object(o["i"])({sopId:this.sopId,pageNum:t,pageSize:i.pageSize,userName:i.userName}).then((function(t){var i;t&&(e.list=null!==t&&void 0!==t&&null!==(i=t.rows)&&void 0!==i&&i.length?Object(s["a"])(t.rows):[],e.total=null===t||void 0===t?void 0:t.total)})).finally((function(){e.loading=!1}))},onDetail:function(e){var t={};switch(this.type){case"rule":this.currentRuleId=e.ruleId,t={ruleId:e.ruleId};break;case"employee":this.currentUserId=e.userId,t={userId:e.userId};break}var i=Object(r["a"])(Object(r["a"])({},l["ed"]["cycle"],"cyclePerformRecordModal"),l["ed"]["groupCalendar"],"calendarPerformRecordModal"),a=Object(r["a"])(Object(r["a"])({},l["ed"]["cycle"],"cycleRecordModalVisible"),l["ed"]["groupCalendar"],"calendarRecordModalVisible"),n=i[this.sopType]||"performRecordModal",s=a[this.sopType]||"recordModalVisible";this.$refs[n].getDetailList(t),this.$refs[n].resetQuery(),this[s]=!0}}},m=h,g=(i("0759"),i("2877")),v=Object(g["a"])(m,a,n,!1,null,"f145ae4c",null);t["default"]=v.exports},c7a1:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("RightContainer",{attrs:{"config-keys":["contactSecret"],"page-title":"正常使用新客进群"},scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{inline:!0,model:e.query,"label-width":"100px",size:"small"}},[i("el-form-item",{attrs:{prop:"scenario"}},[i("el-input",{attrs:{placeholder:"请输入活码名称"},model:{value:e.query.scenario,callback:function(t){e.$set(e.query,"scenario",t)},expression:"query.scenario"}})],1),i("el-form-item",{attrs:{prop:"createBy"}},[i("el-input",{attrs:{placeholder:"请输入创建人姓名"},model:{value:e.query.createBy,callback:function(t){e.$set(e.query,"createBy",t)},expression:"query.createBy"}})],1),i("el-form-item",[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"daterange","picker-options":e.pickerOptions,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),i("el-form-item",{attrs:{label:" "}},[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.getList(1)}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"operate-btn",fn:function(){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:communityNewGroup:add"],expression:"['wecom:communityNewGroup:add']"}],attrs:{type:"primary"},on:{click:function(t){return e.goRoute()}}},[e._v("新建活码")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:customer:export"],expression:"['customerManage:customer:export']"}],on:{click:function(t){return e.remove()}}},[e._v("批量删除")]),i("el-button",{on:{click:function(t){return e.downloadBatch()}}},[e._v("批量下载")])]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"customer-table",attrs:{data:e.list},on:{"selection-change":e.handleSelectionChange}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{"btn-text":"新建活码",length:e.list.length,"btn-click":e.goRoute,"btn-show-condition":e.getQueryObj(),"btn-config":["contactSecret"],"btn-permi-key":["wecom:communityNewGroup:add"]}})],1),i("el-table-column",{attrs:{type:"selection",width:"50",align:"center",fixed:""}}),i("el-table-column",{attrs:{prop:"qrCode",label:"活码预览",align:"center",width:"200",fixed:""},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",{staticClass:"code-left"},[i("el-popover",{attrs:{placement:"bottom",trigger:"hover"}},[i("el-image",{staticClass:"code-image--small",attrs:{slot:"reference",src:a.qrCode},slot:"reference"}),i("el-image",{staticClass:"code-image",attrs:{src:a.qrCode}})],1)],1),i("div",{staticClass:"code-right"},[i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.download(a)}}},[e._v("下载")]),i("br"),i("el-button",{directives:[{name:"copy",rawName:"v-copy",value:a.qrCode,expression:"row.qrCode"}],attrs:{type:"text"}},[e._v("复制图片链接")]),i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.getLink(a)}}},[e._v("复制小程序链接")])],1)]}}])}),i("el-table-column",{attrs:{prop:"scenario",label:"活码名称",align:"center",fixed:""}}),i("el-table-column",{attrs:{prop:"weEmpleCodeUseScops",label:"使用员工",align:"center","class-name":"tag-wrapper"},scopedSlots:e._u([{key:"default",fn:function(e){var t=e.row;return[i("ListUserShow",{attrs:{"use-user-name":t.useUserName,"department-name":t.departmentName}})]}}])}),i("el-table-column",{attrs:{prop:"weEmpleCodeTags",label:"新客标签",align:"center",width:"160","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return e._l(a.weEmpleCodeTags,(function(t,a){return i("el-tag",{key:a,attrs:{size:"medium",type:"info"}},[e._v(e._s(t.tagName))])}))}}])}),i("el-table-column",{attrs:{prop:"cusNumber",label:"添加好友数",align:"center",width:"100"}}),i("el-table-column",{attrs:{prop:"createBy",label:"创建人",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"al"},[i("div",{staticClass:"cus-owner"},[e._v(e._s(t.row.createBy))]),i("div",{staticClass:"cus-dept"},[e._v(e._s(t.row.mainDepartmentName))])])]}}])}),i("el-table-column",{attrs:{prop:"createTime",label:"创建时间",align:"center",width:"160"}}),i("el-table-column",{attrs:{label:"操作",align:"center",width:"180","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:communityNewGroup:edit"],expression:"['wecom:communityNewGroup:edit']"}],attrs:{type:"text"},on:{click:function(t){return e.goRoute(a.id)}}},[e._v("编辑")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:communityNewGroup:remove"],expression:"['wecom:communityNewGroup:remove']"}],attrs:{type:"text"},on:{click:function(t){return e.remove(a.id)}}},[e._v("删除")]),i("el-dropdown",{attrs:{trigger:"click",placement:"bottom"}},[i("el-button",{staticClass:"ml10",attrs:{type:"text"}},[e._v("更多")]),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{directives:[{name:"copy",rawName:"v-copy",value:a.id,expression:"row.id"}]},[e._v("复制活码ID")])],1)],1)]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:1*e.total,disabled:e.loading,page:e.query.pageNum,limit:e.query.pageSize,"select-data-len":e.ids.length},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}})]},proxy:!0}])})],1)},n=[],r=i("3835"),s=(i("a15b"),i("d81d"),i("b0c0"),i("b64b"),i("d3b7"),i("3ca3"),i("159b"),i("ddb0"),i("2b3d"),i("bf19"),i("9861"),i("c3f8")),o=i("62db"),l=i("ed08"),c=i("dd70"),u=i("e77d"),d=i("b66d"),p=i("79b6"),f=i("e2e0"),A={components:{EmptyDefaultIcon:u["a"],RightContainer:d["a"],ListUserShow:p["a"]},mixins:[f["a"]],props:{},data:function(){return{query:{pageNum:1,pageSize:c["Ic"],scenario:"",createBy:"",beginTime:"",endTime:""},dateRange:[],total:0,form:{},list:[],dialogVisible:!1,disabled:!1,loading:!1,status:["正常","停用"],pushType:{0:"发给客户",1:"发给客户群"},queryUser:[],ids:[]}},computed:{},watch:{dateRange:function(e){if(e&&2===e.length){var t=Object(r["a"])(e,2);this.query.beginTime=t[0],this.query.endTime=t[1]}else this.query.beginTime="",this.query.endTime=""}},created:function(){if(this.$store.getters.saveCondition&&Object.keys(this.$store.getters.searchQuery[this.$route.name]||{}).length){var e=this.$store.getters.searchQuery[this.$route.name],t=e.beginTime,i=e.endTime;t&&i&&(this.dateRange=[t,i]),this.query=this.$store.getters.searchQuery[this.$route.name]}this.getList(),this.$store.dispatch("app/setBusininessDesc","\n <div>指在客户通过员工活码加为好友后,员工自动推送入群引导语和群活码,客户可通过群活码扫码入群。</div>\n ")},methods:{getList:function(e){var t=this;e&&(this.query.pageNum=e),this.loading=!0,Object(s["e"])(this.query).then((function(e){var i=e.rows,a=e.total;t.list=i,t.total=a,i.length||(t.query.pageNum=1,Object(s["e"])(t.query).then((function(e){var i=e.rows,a=e.total;t.list=i,t.total=a})).finally((function(){t.modifyButtonStatus(),t.loading=!1})))})).finally((function(){t.modifyButtonStatus(),t.loading=!1}))},goRoute:function(e){this.$store.commit("SET_SEARCH_QUERY",{pageName:this.$route.name,query:this.query}),Object(l["l"])(this.$router,"newCustomerAev",{},{id:e})},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.id}))},remove:function(e){var t=this;if(e||this.ids.length){var i=e||this.ids;this.confirmModal({msg:"删除后,已下载的活码将失效,是否继续?"},(function(){return Object(s["f"])(i).then((function(e){t.getList(),t.msgSuccess("删除成功")}))}))}else this.msgWarn("请至少选择一个活码")},download:function(e){var t=e.scenario+".png";Object(s["b"])(e.id).then((function(e){if(null!=e){var i=new Blob([e],{type:"application/zip"}),a=window.URL.createObjectURL(i),n=document.createElement("a");n.href=a,n.download=t,n.click(),URL.revokeObjectURL(a)}}))},downloadBatch:function(){var e=this;this.ids.length?this.confirmModal({msg:"即将以压缩包形式下载已选中的活码图片,是否继续?"},(function(){return Object(s["c"])(e.ids+"").then((function(e){if(null!=e){var t=new Blob([e],{type:"application/zip"}),i=window.URL.createObjectURL(t),a=document.createElement("a");a.href=i,a.download="批量员工活码.zip",a.click(),URL.revokeObjectURL(i)}}))})):this.msgWarn("请至少选择一个活码")},resetQuery:function(){var e=this;this.dateRange=[],this.query=this.$options.data().query,this.$nextTick((function(){e.getList(1)}))},getQueryObj:function(){var e=this.query,t=e.scenario,i=e.createBy,a=e.beginTime,n=e.endTime;return{scenario:t,createBy:i,beginTime:a,endTime:n}},getString:function(e,t){var i=[];return"".concat("groupName"===t?e.map((function(e){return i.push(e["chatGroupName"])})):e.map((function(e){return i.push(e[t])}))),i.join("、")},getLink:function(e){var t=this;e.appLink?Object(l["c"])(e.appLink):(this.loading=!0,Object(o["e"])({id:e.id}).then((function(i){i.data&&(t.list.forEach((function(t){t.id===e.id&&(t.appLink=i.data)})),Object(l["c"])(i.data)),t.loading=!1})).catch((function(){t.loading=!1})))}}},h=A,m=(i("2584"),i("2877")),g=Object(m["a"])(h,a,n,!1,null,"1a3ed4f8",null);t["default"]=g.exports},c7d8:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"form-setting"},[i("el-form",{attrs:{"label-position":"top","label-width":"80px",model:e.filedForm}},[i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("必填")]),i("el-switch",{model:{value:e.filedForm.required,callback:function(t){e.$set(e.filedForm,"required",t)},expression:"filedForm.required"}})],1)]),i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("标题")])]),i("el-input",{attrs:{resize:"none","show-word-limit":"",maxlength:100,type:"textarea",rows:6},model:{value:e.filedForm.title,callback:function(t){e.$set(e.filedForm,"title",t)},expression:"filedForm.title"}})],1),i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("选项")])]),e._l(e.filedForm.options,(function(t){return i("div",{key:t.id,staticClass:"form-item-options"},[i("el-input",{attrs:{resize:"none","show-word-limit":"",maxlength:50,type:"textarea",rows:3},model:{value:t.label,callback:function(i){e.$set(t,"label",i)},expression:"item.label"}}),i("i",{directives:[{name:"show",rawName:"v-show",value:e.filedForm.options.length>1,expression:"filedForm.options.length > 1"}],staticClass:"el-icon-remove-outline ml10",on:{click:function(i){return e.removeOptions(t)}}})],1)})),i("el-button",{staticStyle:{padding:"9px"},attrs:{icon:"el-icon-plus"},on:{click:e.addOptions}},[e._v("添加选项")])],2)],1)],1)},n=[],r=i("5530"),s=(i("4de4"),i("d3b7"),i("ec26")),o=i("81f6"),l={components:{},props:{component:{type:Object,default:function(){}}},data:function(){return{filedForm:{required:!0,title:"单选",options:[]}}},watch:{filedForm:{deep:!0,handler:function(e){o["a"].$emit("changeFiledSettingValue",Object(r["a"])(Object(r["a"])({},e),this.filedForm))}}},created:function(){this.initFiledForm()},mounted:function(){this.filedForm=Object(r["a"])(Object(r["a"])({},this.filedForm),this.component)},methods:{initFiledForm:function(){for(var e=3,t=0;t<e;t++)this.addOptions()},removeOptions:function(e){this.filedForm.options=this.filedForm.options.filter((function(t){return t.id!==e.id}))},addOptions:function(){var e=this.filedForm.options.length+1;this.filedForm.options.push({id:Object(s["a"])(),label:"选项"+e})}}},c=l,u=(i("c80f"),i("2877")),d=Object(u["a"])(c,a,n,!1,null,"cd06d884",null);t["default"]=d.exports},c7e9:function(e,t,i){"use strict";i.r(t);i("d81d"),i("d3b7"),i("ac1f"),i("466d"),i("ddb0");var a=i("23f1"),n=function(e){return e.keys()},r=/\.\/(.*)\.svg/,s=n(a).map((function(e){return e.match(r)[1]}));t["default"]=s},c7ea:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"q",(function(){return s})),i.d(t,"u",(function(){return o})),i.d(t,"h",(function(){return l})),i.d(t,"e",(function(){return c})),i.d(t,"o",(function(){return u})),i.d(t,"d",(function(){return d})),i.d(t,"t",(function(){return p})),i.d(t,"c",(function(){return f})),i.d(t,"r",(function(){return A})),i.d(t,"a",(function(){return h})),i.d(t,"k",(function(){return m})),i.d(t,"l",(function(){return g})),i.d(t,"g",(function(){return v})),i.d(t,"f",(function(){return b})),i.d(t,"n",(function(){return y})),i.d(t,"s",(function(){return _})),i.d(t,"p",(function(){return w})),i.d(t,"i",(function(){return C})),i.d(t,"j",(function(){return x})),i.d(t,"m",(function(){return k}));var a=i("b775"),n=window.CONFIG.services.wecom+"/form";function r(e){return Object(a["a"])({url:n+"/group/add",method:"post",data:e})}function s(e){return Object(a["a"])({url:n+"/group/tree",method:"get",params:e})}function o(e){return Object(a["a"])({url:n+"/group/remove",method:"delete",params:e})}function l(e){return Object(a["a"])({url:n+"/group/edit",method:"post",data:e})}function c(e){return Object(a["a"])({url:n+"/group/changeSort",method:"post",data:e})}function u(e){return Object(a["a"])({url:n+"/page",method:"get",params:e})}function d(e){return Object(a["a"])({url:n+"/enableForm",method:"post",params:e})}function p(e){return Object(a["a"])({url:n+"/remove",method:"post",data:e})}function f(e){return Object(a["a"])({url:n+"/updateBatch/group",method:"post",data:e})}function A(e){return Object(a["a"])({url:n+"/promotional",method:"get",params:e})}function h(e){return Object(a["a"])({url:n+"/add",method:"post",data:e})}function m(e){return Object(a["a"])({url:n+"/detail",method:"get",params:e})}function g(e){return Object(a["a"])({url:n+"/total/view",method:"get",params:e})}function v(e){return Object(a["a"])({url:n+"/edit/detail",method:"get",params:e})}function b(e){return Object(a["a"])({url:n+"/edit",method:"post",data:e})}function y(e){return Object(a["a"])({url:n+"/record/getCustomerOperRecord",method:"get",params:e})}function _(e){return Object(a["a"])({url:n+"/record/getUserSendRecord",method:"get",params:e})}function w(e){return Object(a["a"])({url:n+"/record/getFormResult",method:"get",params:e})}function C(e){return Object(a["a"])({url:n+"/record/exportCustomerOperRecord",method:"get",params:e})}function x(e){return Object(a["a"])({url:n+"/record/exportUserSendRecord",method:"get",params:e})}function k(e){return Object(a["a"])({url:n+"/group/trees",method:"get",params:e})}},c80f:function(e,t,i){"use strict";i("df6b")},c815:function(e,t,i){},c81a:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-dialog",e._g(e._b({attrs:{"close-on-click-modal":!1,"modal-append-to-body":!1},on:{open:e.onOpen,close:e.onClose}},"el-dialog",e.$attrs,!1),e.$listeners),[i("el-row",{attrs:{gutter:0}},[i("el-form",{ref:"elForm",attrs:{model:e.formData,rules:e.rules,size:"small","label-width":"100px"}},[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"选项名",prop:"label"}},[i("el-input",{attrs:{placeholder:"请输入选项名",clearable:""},model:{value:e.formData.label,callback:function(t){e.$set(e.formData,"label",t)},expression:"formData.label"}})],1)],1),i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"选项值",prop:"value"}},[i("el-input",{attrs:{placeholder:"请输入选项值",clearable:""},model:{value:e.formData.value,callback:function(t){e.$set(e.formData,"value",t)},expression:"formData.value"}},[i("el-select",{style:{width:"100px"},attrs:{slot:"append"},slot:"append",model:{value:e.dataType,callback:function(t){e.dataType=t},expression:"dataType"}},e._l(e.dataTypeOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.value,disabled:e.disabled}})})),1)],1)],1)],1)],1)],1),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:e.handelConfirm}},[e._v(" 确定 ")]),i("el-button",{on:{click:e.close}},[e._v(" 取消 ")])],1)],1)],1)},n=[],r=i("ed08"),s={components:{},inheritAttrs:!1,props:[],data:function(){return{id:100,formData:{label:void 0,value:void 0},rules:{label:[{required:!0,message:"请输入选项名",trigger:"blur"}],value:[{required:!0,message:"请输入选项值",trigger:"blur"}]},dataType:"string",dataTypeOptions:[{label:"字符串",value:"string"},{label:"数字",value:"number"}]}},computed:{},watch:{"formData.value":function(e){this.dataType=Object(r["m"])(e)?"number":"string"}},created:function(){},mounted:function(){},methods:{onOpen:function(){this.formData={label:void 0,value:void 0}},onClose:function(){},close:function(){this.$emit("update:visible",!1)},handelConfirm:function(){var e=this;this.$refs.elForm.validate((function(t){t&&("number"===e.dataType&&(e.formData.value=parseFloat(e.formData.value)),e.formData.id=e.id++,e.$emit("commit",e.formData),e.close())}))}}},o=s,l=i("2877"),c=Object(l["a"])(o,a,n,!1,null,null,null);t["default"]=c.exports},c841:function(e,t,i){},c858:function(e,t,i){"use strict";i("5edf8")},c85c:function(e,t,i){},c887:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("MaPage",{ref:"page",attrs:{type:e.MEDIA_TYPE_MINIAPP,selected:e.selectedMaterialList,"select-material":e.selectMaterial},on:{"update:selected":function(t){e.selectedMaterialList=t}},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.list,n=t.getList,r=t.changeList,s=t.edit;return[e._l(a,(function(t,a){return[i("MiniAppItem",{key:a,attrs:{item:t,"tool-list":[t.showMaterial?"published":"publish","edit","remove"],"selected-material-list":e.selectedMaterialList,"select-material":e.selectMaterial},on:{openMaterialDialog:s,getList:n,changeList:r}})]}))]}}])})},n=[],r=i("2d03"),s=i("c3e0"),o=i("dd70"),l={name:"MiniAppList",components:{MaPage:r["default"],MiniAppItem:s["a"]},data:function(){return{selectedMaterialList:[],MEDIA_TYPE_MINIAPP:o["bc"]}},watch:{},created:function(){},methods:{selectMaterial:function(e){this.selectedMaterialList=e}}},c=l,u=i("2877"),d=Object(u["a"])(c,a,n,!1,null,"47ac7340",null);t["default"]=d.exports},c8ad:function(e,t,i){"use strict";i("0323")},c91b:function(e,t,i){"use strict";i("3d7e")},c91d:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.showMedia?i("el-upload",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{action:e.action,drag:!0,"show-file-list":!1,"http-request":e.customUploadFile,accept:".mp4","before-upload":e.beforeUpload}},[i("div",{on:{mouseenter:e.enter,mouseleave:e.leave}},[i("div",{directives:[{name:"show",rawName:"v-show",value:!e.showIcon,expression:"!showIcon"}],staticClass:"upload-icon"},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"}),i("span",[e._v("上传视频")])]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.showIcon,expression:"showIcon"}],staticClass:"upload-icon"},[i("el-button",{staticClass:"hover-button"},[e._v("本地上传")]),i("el-button",{staticClass:"hover-button",on:{click:function(t){return t.stopPropagation(),e.openMaterial(t)}}},[e._v("素材库")])],1)])]):i("div",{staticStyle:{width:"360px"}},[i("div",{staticClass:"preview-div"},[i("i",{staticClass:"el-icon-close",on:{click:e.removeFile}}),[i("div",{staticClass:"cover-img"},[i("video",{attrs:{src:e.mediaLink.url}}),i("svg",{staticClass:"icon-player",attrs:{width:30,height:30}},[i("use",{attrs:{href:"#icon-player"}})])]),i("div",{staticClass:"file-info"},[i("div",{staticClass:"inoneline"},[e._v(e._s(e.mediaLink.title))]),i("div",{staticClass:"file-size"},[e._v(e._s(e.getFileSize(e.mediaLink.size)))])])]],2)])],1)},n=[],r=(i("fb6a"),i("b0c0"),i("a9e3"),i("2934")),s=i("dd70"),o=i("cf45"),l=32,c=30,u=50,d={name:"UploadVideo",components:{},props:{uploadList:{type:Array,default:function(){return[]}}},data:function(){return{showIcon:!1,VIDEOTIME:c,loading:!1,action:"/api/common/uploadFile2Cos",MEDIA_TYPE_VIDEO:s["gc"],showMedia:!0,mediaLink:{},fileList:[],FILE_NAME_LENGTH:l}},computed:{},watch:{uploadList:function(e){0!==e.length?(this.showMedia=!1,this.mediaLink=e[0]):this.showMedia=!0}},created:function(){0!==this.uploadList.length&&(this.showMedia=!1,this.mediaLink.url=this.uploadList[0].url,this.mediaLink.title=this.uploadList[0].title,this.mediaLink.size=this.uploadList[0].size)},mounted:function(){},methods:{getFileSize:function(e){return Object(o["x"])(e)},enter:function(){this.showIcon=!0},leave:function(){this.showIcon=!1},handleBeforeUpload:function(e){this.loading=!0;var t=!0,i=!0;return t=Object(o["q"])(s["gc"],e,this),i=Object(o["t"])(s["gc"],e,this,u),t&&i||(this.loading=!1),t&&i},onSuccess:function(e,t){this.loading=!1,this.showMedia=!1,this.mediaLink.mediaType=Number(s["gc"]),this.mediaLink.title=e.data.fileName,this.mediaLink.url=e.data.url,this.mediaLink.size=t.size,this.fileList.push(this.mediaLink),this.$emit("getType",this.fileList)},onError:function(){this.loading=!1,this.msgError("上传文件失败")},dealImgName:function(e){var t=e.lastIndexOf("."),i=e.substring(t),a=e.substring(0,t),n=a.slice(0,this.FILE_NAME_LENGTH-i.length)+i;return n},customUploadFile:function(e){var t=this,i=e.file,a=i,n=i.name;i.name.length>this.FILE_NAME_LENGTH&&(n=this.dealImgName(i.name),a=new File([i],n,{type:"video/mp4"}));var o=new FormData;o.append("file",a),o.append("mediaType",s["gc"]),o.append("fileName",n),Object(r["d"])(o).then((function(e){t.onSuccess(e,i)})).catch((function(){t.onError()}))},beforeUpload:function(e){var t=this.handleBeforeUpload(e);return!!t},openMaterial:function(){this.$emit("openMaterial",!0)},removeFile:function(){this.showMedia=!0,this.fileList=[],this.$emit("deleteFileList",this.fileList)}}},p=d,f=(i("9f7c"),i("2877")),A=Object(f["a"])(p,a,n,!1,null,"2d81c35a",null);t["default"]=A.exports},c91f:function(e,t,i){},c94e:function(e,t,i){},c950:function(e,t,i){},c958:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{staticClass:"dialog-div",attrs:{title:e.title,visible:e.Pvisible,"close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.Pvisible=t}}},[e.alertText?i("el-alert",{class:"alert "+e.alertClass,attrs:{title:e.alertText,type:"warning","close-text":" ","show-icon":""}}):e._e(),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:12,xs:24}},[i("div",{staticClass:"head-container"},[i("el-input",{attrs:{"prefix-icon":"el-icon-search",placeholder:"请输入员工姓名,回车搜索"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchList(t)}},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}}),e.isDepLinkage?i("el-checkbox",{staticClass:"dep-link mt5 mb5",attrs:{label:"父子联动"},model:{value:e.depLinkage,callback:function(t){e.depLinkage=t},expression:"depLinkage"}}):e._e(),i("UserTree",e._b({ref:"userTree",staticClass:"select-user-tree",attrs:{"dep-linkage":e.depLinkage,"filter-text":e.filterText,visible:e.Pvisible,"department-id-key":e.departmentIdKey},on:{updateUserList:e.updateUserList}},"UserTree",e.$attrs,!1))],1)]),i("el-col",{staticClass:"user-list",attrs:{span:12,xs:24}},[i("el-row",{attrs:{gutter:10}},[i("div",{staticClass:"user-list-top mb5"},[i("span",{staticStyle:{"line-height":"32px"}},[e._v("选择人员列表 "),e.showTip?i("el-popover",{attrs:{width:"267",trigger:"click",placement:"top",content:"若勾选部门,则表示该部门下当前所有员工被选中,不包含子部门的员工。"}},[i("i",{staticClass:"el-icon-warning cp",staticStyle:{color:"#E65100"},attrs:{slot:"reference"},slot:"reference"})]):e._e()],1),i("el-button",{on:{click:e.resetChecked}},[e._v("一键清空")])],1)]),i("empty-default-icon",{attrs:{text:"暂无员工",length:e.userList.length}}),i("div",{staticClass:"selected-list"},e._l(e.userList,(function(t,a){return i("el-row",{key:a},[i("i",{class:t.userId?"el-icon-user-solid":"iconfont icon-folder f14",staticStyle:{"margin-left":"0"}}),e._v(" "+e._s(t.name)+" "),i("i",{staticClass:"el-icon-minus fr cp",attrs:{title:"取消选择"},on:{click:function(i){return e.cancle(a,t)}}})])})),1)],1)],1),i("div",{attrs:{slot:"footer"},slot:"footer"},[e._t("footer",[i("el-button",{on:{click:function(t){e.Pvisible=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])])],2)],1)},n=[],r=i("c7eb"),s=i("1da1"),o=i("2909"),l=(i("a434"),i("d3b7"),i("e77d")),c=i("379b"),u={name:"SelectUser",components:{EmptyDefaultIcon:l["a"],UserTree:c["a"]},props:{visible:{type:Boolean,default:!1},title:{type:String,default:"组织架构"},alertText:{type:String,default:""},alertClass:{type:String,default:""},departmentIdKey:{type:String,default:"id"},isNull:{type:Boolean,default:!0},isDepLinkage:{type:Boolean,default:!1}},data:function(){return{userList:[],filterText:"",showTip:!1,depLinkage:!1}},computed:{Pvisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e),e||this.$emit("close")}},departmentInfo:function(){return this.$store.state.departmentInfo}},watch:{userList:function(e){var t=this,i=e.some((function(e){return e[t.departmentIdKey]&&!e.userId}));this.showTip=i}},methods:{resetChecked:function(){this.userList=[],this.$refs.userTree.resetChecked()},submit:function(){this.isNull||this.userList.length?(this.$emit("success",Object(o["a"])(this.userList)),this.Pvisible=!1):this.msgWarn("请选择使用员工")},cancle:function(e){e>-1&&this.userList.splice(e,1)},searchList:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$refs.userTree.searchList();case 1:case"end":return t.stop()}}),t)})))()},updateUserList:function(e){this.userList=e}}},d=u,p=(i("b1d8"),i("2877")),f=Object(p["a"])(d,a,n,!1,null,"7b728a66",null);t["a"]=f.exports},c97d:function(e,t,i){e.exports=i.p+"static/img/企微活码pc1.de438eaa.png"},c991:function(e,t,i){"use strict";i("5fe6")},ca00:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"verbal-trick-list-page"},[i("div",{staticClass:"header-container"},[i("el-input",{staticStyle:{width:"240px"},attrs:{"prefix-icon":"el-icon-search",placeholder:"请输入话术标题或内容,回车搜索"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSearch(t)}},model:{value:e.query.searchValue,callback:function(t){e.$set(e.query,"searchValue",t)},expression:"query.searchValue"}}),e.roleKey?i("div",{staticClass:"operate-btn"},[i("el-button",{staticClass:"btn-reset",on:{click:e.importVerbalTrick}},[e._v("导入话术")]),i("el-button",{staticClass:"btn-reset",on:{click:e.batchUpdateGroup}},[e._v("批量修改分组")]),i("el-button",{staticClass:"btn-reset",on:{click:e.batchDelete}},[e._v("批量删除")]),i("el-button",{attrs:{type:"primary"},on:{click:e.addVerbalTrick}},[e._v("添加话术")])],1):e._e()],1),i("div",{staticClass:"content-container"},[i("RightContainer",{scopedSlots:e._u([{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list},on:{"selection-change":e.handleSelectionChange}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.list.length}})],1),i("el-table-column",{attrs:{type:"selection",width:"55"}}),i("el-table-column",{attrs:{prop:"codeUrl",label:"话术内容",align:"center",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"verbal-trick-detail"},[e._l(t.row.weWordsDetailList.slice(0,2),(function(e,t){return i("div",{key:t,staticClass:"content-div"},[i("VerbalTrickDetailPreview",{attrs:{item:e}})],1)})),t.row.weWordsDetailList&&t.row.weWordsDetailList.length>2?i("div",{staticClass:"check-more theme-text-color",on:{click:function(i){return e.handleCheckMore(t.row)}}},[e._v("共"+e._s(t.row.weWordsDetailList.length)+"条 查看更多")]):e._e()],2)]}}])}),i("el-table-column",{attrs:{prop:"title",label:"话术标题",align:"center"}}),i("el-table-column",{attrs:{prop:"groupId",label:"所属分组",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v(e._s(e.dealGroupName(t.row)))])]}}])}),i("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.roleKey?i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("编辑")]):e._e(),e.roleKey?i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(i){return e.handleDelete(t.row,t.index)}}},[e._v("删除")]):e._e()]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.list.length>0,expression:"list.length > 0"}],attrs:{total:e.total,limit:e.query.pageSize,disabled:e.loading,page:e.query.pageNum,"select-data-len":e.multiSelect.length},on:{"update:limit":function(t){return e.$set(e.query,"pageSize",t)},"update:page":function(t){return e.$set(e.query,"pageNum",t)},pagination:function(){return e.getAllWordsList()}}})]},proxy:!0}])})],1),i("AddVerbalTrickDrawer",{ref:"addVerbalTrickDrawer",attrs:{visible:e.addVerbalTrickDrawerVisible,"add-verbal-trick-drawer-visible":e.addVerbalTrickDrawerVisible,type:e.type,"group-tree-data":e.selectGroupTreeData,"selected-group":e.selectedGroup},on:{"update:visible":function(t){e.addVerbalTrickDrawerVisible=t},getList:function(t){return e.getAllWordsList({},t)}}}),i("VerbalTrickDetailDrawer",{attrs:{title:"话术详情",visible:e.verbalTrickDetailDrawerVisible,item:e.verbalTrickDetail,"deal-group-name":e.dealGroupName,"handle-edit":e.handleEdit,"role-key":e.roleKey},on:{"update:visible":function(t){e.verbalTrickDetailDrawerVisible=t}}}),i("ImportFile",{attrs:{visible:e.importVisible,title:"话术",href:"EasyInk话术导入模版.xlsx","alert-title":"仅支持导入文字话术","upload-params":{type:e.type},loading:e.importLoading,"import-info":e.importInfo},on:{"update:visible":function(t){e.importVisible=t},handleImportFile:e.handleImportFile}}),i("BatchUpdateGroup",{attrs:{visible:e.batchVisible,title:"批量修改所属分组",width:"443px","group-tree-data":e.selectGroupTreeData,"multi-select":e.multiSelect},on:{"update:visible":function(t){e.batchVisible=t},getList:function(){return e.getAllWordsList({})}}})],1)},n=[],r=i("c7eb"),s=i("1da1"),o=i("5530"),l=i("2909"),c=(i("c740"),i("caad"),i("d81d"),i("b0c0"),i("a9e3"),i("d3b7"),i("2532"),i("b66d")),u=i("e77d"),d=i("9543"),p=i("32db"),f=i("c35a"),A=i("dd70"),h=i("dbe0"),m=i("f28b"),g=i("7140"),v=i("ed08"),b={name:"VerbalTrickList",components:{RightContainer:c["a"],EmptyDefaultIcon:u["a"],AddVerbalTrickDrawer:p["default"],ImportFile:f["a"],VerbalTrickDetailPreview:h["default"],VerbalTrickDetailDrawer:m["default"],BatchUpdateGroup:g["default"]},props:{type:{type:Number,default:A["wd"]["enterprise"]},allGroupData:{type:Array,default:function(){return[]}},groupTreeData:{type:Array,default:function(){return[]}},categoryIds:{type:Array,default:function(){return[]}},roleKey:{type:Boolean,default:!0},selectedGroup:{type:String,default:""},handleGetGroup:{type:Function,default:function(){}}},data:function(){return{MEDIA_TYPE_TEXT:A["fc"],MEDIA_TYPE_POSTER:A["cc"],query:{searchValue:"",pageSize:A["Ic"],pageNum:1},total:0,list:[],loading:!1,addVerbalTrickDrawerVisible:!1,verbalTrickDetailDrawerVisible:!1,verbalTrickDetail:{},importVisible:!1,multiSelect:[],batchVisible:!1,importLoading:!1,importInfo:{}}},computed:{selectGroupTreeData:function(){var e=Object(l["a"])(this.groupTreeData);return e[0]&&"0"===e[0].id?e[0].children:e}},created:function(){},mounted:function(){},methods:{handleDelete:function(e){var t=this;this.confirmModal({msg:"话术删除后,员工不可在客户端侧边栏使用,是否继续?"},(function(){t.deleteWords({ids:[e.id]})}))},handleEdit:function(e){var t;(this.addVerbalTrickDrawerVisible=!0,this.$refs.addVerbalTrickDrawer)&&(this.$refs.addVerbalTrickDrawer.formData=Object(v["h"])(e),null===(t=this.$refs.addVerbalTrickDrawer.$refs)||void 0===t||null===(t=t.verbalForm)||void 0===t||t.resetFields())},getAllWordsList:function(e,t){t&&(this.query=this.$options.data().query);var i=Object(o["a"])({pageSize:this.query.pageSize,pageNum:this.query.pageNum,content:this.query.searchValue,categoryIds:this.categoryIds},e);if(!i.categoryIds||!i.categoryIds.length)return!1;this.getWordsList(i)},getWordsList:function(e){var t=this;return Object(s["a"])(Object(r["a"])().mark((function i(){var a;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return t.loading=!0,i.next=3,Object(d["c"])(e);case 3:a=i.sent,a&&(t.list=a.rows,t.total=a.total?Number(a.total):0,t.loading=!1);case 5:case"end":return i.stop()}}),i)})))()},addVerbalTrick:function(){var e;if(!this.allGroupData.length)return this.msgWarn("请先添加分组"),!1;this.$refs.addVerbalTrickDrawer.formData={categoryId:void 0,title:void 0,weWordsDetailList:[{mediaType:A["fc"],content:""}],isPush:[A["wd"]["enterprise"],A["wd"]["enterprise"]].includes(this.type)},null===(e=this.$refs.addVerbalTrickDrawer.$refs)||void 0===e||null===(e=e.verbalForm)||void 0===e||e.resetFields(),this.addVerbalTrickDrawerVisible=!0},handleCheckMore:function(e){this.verbalTrickDetailDrawerVisible=!0,this.verbalTrickDetail=e},dealGroupName:function(e){var t,i=this.allGroupData.findIndex((function(t){return t.id===e.categoryId}));return i>-1&&(t=this.allGroupData[i].name),t},onSearch:function(){this.query.pageNum=1,this.getAllWordsList({content:this.query.searchValue})},importVerbalTrick:function(){this.importVisible=!0},handleSelectionChange:function(e){this.multiSelect=e},deleteWords:function(){var e=arguments,t=this;return Object(s["a"])(Object(r["a"])().mark((function i(){var a,n;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a=e.length>0&&void 0!==e[0]?e[0]:{},i.next=3,Object(d["b"])(a);case 3:n=i.sent,n&&(t.msgSuccess("操作成功"),t.getAllWordsList({}));case 5:case"end":return i.stop()}}),i)})))()},batchDelete:function(){var e=this;if(0!==this.multiSelect.length){var t=[];this.multiSelect.map((function(e){t.push(e.id)})),this.confirmModal({msg:"话术删除后,员工不可在客户端侧边栏使用,是否继续?"},(function(){e.deleteWords({ids:t}).then((function(t){e.msgSuccess("删除成功")}))}))}else this.msgWarn("请勾选要操作的话术")},batchUpdateGroup:function(){0!==this.multiSelect.length?this.batchVisible=!0:this.msgWarn("请勾选要操作的话术")},handleImportFile:function(e){var t=this;this.importLoading=!0,Object(d["e"])(e).then((function(e){t.handleGetGroup();var i=e.data;t.importInfo={successNum:i.successNum,failNum:i.failNum,url:i.url}})).finally((function(){t.importLoading=!1}))}}},y=b,_=(i("a9df"),i("2877")),w=Object(_["a"])(y,a,n,!1,null,"794bb27c",null);t["default"]=w.exports},ca34:function(e,t,i){},ca34e:function(e,t,i){"use strict";i("79d6")},ca84f:function(e,t,i){},ca89:function(e,t,i){e.exports=i.p+"static/img/企微活码后台2.c4b7962b.png"},caa7:function(e,t,i){e.exports=i.p+"static/img/empty-icon.9f471db1.svg"},cac4:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"config-radar enterprise-wechat-demo"},[a("div",[a("el-steps",{staticClass:"step-div",attrs:{active:e.active,"align-center":""}},[a("el-step",{attrs:{title:"绑定微信开放平台"}}),a("el-step",{attrs:{title:"企业微信后台绑定"}}),a("el-step",{attrs:{title:"微信公众号配置"}})],1)],1),0===e.active?a("div",{staticClass:"content-div"},[a("div",{staticClass:"part"},[a("div",{staticClass:"content-title orange"},[e._v("绑定之前需确认自己是否有公众号,若没有,则需要进入微信公众平台进行注册。")]),a("div",{staticClass:"content-title"},[e._v(" (1)登录"),a("el-link",{attrs:{type:"primary",href:"https://open.weixin.qq.com",target:"_blank"}},[e._v("微信开放平台")]),e._v(",进入【管理中心】-【公众帐号】,进行绑定公众号。 ")],1),a("el-image",{staticClass:"part-img",attrs:{src:i("306c"),"preview-src-list":[i("306c")]}})],1),a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v(" (2)绑定成功后可在微信公众平台查看是否绑定成功。 ")]),a("el-image",{staticClass:"part-img",attrs:{src:i("80d9"),"preview-src-list":[i("80d9")]}})],1)]):e._e(),1===e.active?a("div",{staticClass:"content-div"},[a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v(" (1)企业管理员扫码登录 企业微信后台,进入 "),a("el-link",{attrs:{type:"primary",href:"https://work.weixin.qq.com/wework_admin/frame#customer/analysis",target:"_blank"}},[e._v("【客户与上下游】 -【客户联系】")]),e._v(",绑定微信开发者ID。 ")],1),a("div",{staticClass:"content-title orange"},[e._v(" 微信公众号、开放平台、企业微信都需要是同一主体。 ")]),a("el-image",{staticClass:"part-img",attrs:{src:i("07b8"),"preview-src-list":[i("07b8")]}})],1)]):e._e(),e.active===e.LAST_STEP_NUMBER?a("div",{staticClass:"content-div"},[a("div",{staticClass:"content-title orange"},[e._v(" 以下是您前面步骤中绑定的微信公众号对应配置,网页授权域名为“middleProcessing服务的域名地址” ")]),a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"165px",rules:e.rules}},[a("el-form-item",{attrs:{label:"开发者ID(AppID)",prop:"officialAccountAppId"}},[a("el-input",{model:{value:e.form.officialAccountAppId,callback:function(t){e.$set(e.form,"officialAccountAppId",t)},expression:"form.officialAccountAppId"}})],1),a("el-form-item",{attrs:{label:"开发者密码(AppSecret)",prop:"officialAccountAppSecret"}},[a("el-input",{model:{value:e.form.officialAccountAppSecret,callback:function(t){e.$set(e.form,"officialAccountAppSecret",t)},expression:"form.officialAccountAppSecret"}})],1),a("el-form-item",{attrs:{label:"网页授权域名",prop:"officialAccountDomain"}},[a("el-input",{model:{value:e.form.officialAccountDomain,callback:function(t){e.$set(e.form,"officialAccountDomain",t)},expression:"form.officialAccountDomain"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保存")])],1)],1),a("div",{staticClass:"part"},[a("div",{staticClass:"content-title"},[e._v(" 配置获取入口如下: ")]),a("el-image",{staticClass:"part-img",attrs:{src:i("baab"),"preview-src-list":[i("baab")]}}),a("el-image",{staticClass:"part-img",attrs:{src:i("9948"),"preview-src-list":[i("9948")]}})],1)],1):e._e(),a("div",{staticClass:"btn-div"},[0!=e.active?a("el-button",{staticStyle:{"margin-top":"12px"},on:{click:e.previousStep}},[e._v("上一步")]):e._e(),a("el-button",{staticStyle:{"margin-top":"12px"},attrs:{type:"primary"},on:{click:e.next}},[e._v(e._s(e.STEP_TEXT[e.active]))])],1)])},n=[],r=i("5530"),s=i("c7eb"),o=i("1da1"),l=i("ade3"),c=i("689a"),u=2,d={name:"",components:{},props:{},data:function(){return{active:0,STEP_TEXT:Object(l["a"])({0:"下一步",1:"下一步"},u,"完成配置"),LAST_STEP_NUMBER:u,appId:"",form:{},rules:{officialAccountAppId:[{required:!0,message:"请输入appId",trigger:"blur"}],officialAccountAppSecret:[{required:!0,message:"请输入appSecret",trigger:"blur"}],officialAccountDomain:[{required:!0,message:"请输入网页授权域名",trigger:"blur"}]}}},created:function(){this.init()},mounted:function(){},methods:{next:function(){if(this.active!==u)this.active=this.active+1;else{var e=this.form;(null!==e&&void 0!==e&&e.officialAccountAppId||null!==e&&void 0!==e&&e.officialAccountAppSecret||null!==e&&void 0!==e&&e.officialAccountDomain)&&this.$emit("closeTip"),this.$emit("closeDrawer")}},previousStep:function(){this.active--<0&&(this.active=u)},submitForm:function(e){var t=this;this.$refs["form"].validate((function(e){if(e){var i=t.form,a=i.officialAccountAppId,n=i.officialAccountAppSecret,r=i.officialAccountDomain;t.handleUpdateConfig({officialAccountAppId:a,officialAccountAppSecret:n,officialAccountDomain:r})}}))},handleUpdateConfig:function(e){var t=this;return Object(o["a"])(Object(s["a"])().mark((function i(){var a;return Object(s["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,Object(c["d"])(e);case 2:a=i.sent,a&&(t.handleGetConfig(),t.msgSuccess("修改成功"));case 4:case"end":return i.stop()}}),i)})))()},handleGetConfig:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(c["a"])({});case 2:return i=t.sent,e.form=Object(r["a"])({},i.data),t.abrupt("return",i.data);case 5:case"end":return t.stop()}}),t)})))()},init:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.handleGetConfig();case 2:i=t.sent,i&&(e.active=u);case 5:case"end":return t.stop()}}),t)})))()}}},p=d,f=(i("e87b3"),i("f678"),i("2877")),A=Object(f["a"])(p,a,n,!1,null,"349e7c59",null);t["default"]=A.exports},cae1:function(e,t,i){"use strict";i("addc")},cafd:function(e,t,i){},cb29:function(e,t,i){var a=i("23e7"),n=i("81d5"),r=i("44d2");a({target:"Array",proto:!0},{fill:n}),r("fill")},cb31:function(e,t,i){"use strict";i("515f")},cb58:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"flex add-welcome-page"},[i("ReturnPage",{attrs:{path:"/operationsCenter/drainageCode/welcome",query:{welcomeMsgTplType:this.$route.query.welcomeMsgTplType}}}),i("div",{staticClass:"wrap-body"},[i("el-alert",{attrs:{title:"功能说明",type:"info",description:"管理员为企业成员设置欢迎语,客户添加成员后自动回复欢迎语,让其第一时间感受服务体验。","show-icon":"",closable:!1}}),i("div",{staticClass:"add-container"},[i("div",{staticClass:"wrap-body-form"},[i("el-form",{ref:"form",staticClass:"form",attrs:{model:e.form,"label-width":"100px",rules:e.rules}},[i("p",{staticClass:"config-title"},[e._v("基础设置")]),i("el-alert",{staticClass:"alert-tip",attrs:{type:"warning",closable:!1}},[i("div",[e._v("1. 若客户通过员工活码或新客进群活码添加,则该欢迎语不生效")]),i("div",[e._v("2. 若在企业微信后台设置了欢迎语,则该欢迎语不生效")]),i("div",[e._v("3. 若成员被设置了多个欢迎语,则使用最新创建的欢迎语")])]),i("el-form-item",{attrs:{label:"使用员工",prop:"weEmpleCodeUseScops"}},[i("el-button",{staticClass:"mr10",attrs:{plain:"",icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.dialogVisibleSelectUser=!0}}},[e._v(e._s(e.form.weEmpleCodeUseScops.length?"修改":"添加")+"成员")]),e._l(e.form.weEmpleCodeUseScops,(function(t,a){return i("el-tag",{key:a,staticClass:"user-tag",attrs:{size:"medium",closable:""},on:{close:function(t){return e.handleClose(a)}}},[e._v(e._s(t&&t.userName))])}))],2),i("el-form-item",{staticStyle:{width:"560px"},attrs:{label:"客户范围"}},[i("div",{staticClass:"customer-scope"},[i("div",{staticClass:"title"},[e._v("满足条件")]),e._l(e.weMsgTlpFilterRules,(function(t,a){return i("div",{key:a,staticClass:"scope-item"},[t.isMultiFilterAssociation?[i("el-select",{staticClass:"mr10",staticStyle:{width:"56px"},attrs:{disabled:1!==a},on:{change:e.changeCondition},model:{value:t.filterValue,callback:function(i){e.$set(t,"filterValue",i)},expression:"item.filterValue"}},e._l(e.CONDITION_OPTIONS,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)]:[i("el-select",{staticClass:"mr10",staticStyle:{width:"88px"},on:{change:function(i){return t.filterValue=i===e.SOURCE?e.ALL_SOURCE:e.ALL_GENGER}},model:{value:t.filterType,callback:function(i){e.$set(t,"filterType",i)},expression:"item.filterType"}},e._l(e.KEY_OPTIONS,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),i("el-select",{staticClass:"mr10",staticStyle:{width:"70px"},model:{value:t.filterCondition,callback:function(i){e.$set(t,"filterCondition",i)},expression:"item.filterCondition"}},e._l(e.IS_OPTIONS,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),i("el-select",{staticClass:"mr10",staticStyle:{width:"158px"},attrs:{placeholder:"未选择则默认所有"},model:{value:t.filterValue,callback:function(i){e.$set(t,"filterValue",i)},expression:"item.filterValue"}},e._l(t.filterType===e.SOURCE?e.SOURCE_OPTIONS:e.GENDER_OPTIONS,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),a?i("i",{staticClass:"el-icon-remove-outline delete",on:{click:function(t){return e.removeScopeItem(a)}}}):e._e()]],2)})),i("div",{staticClass:"add-scope-item",on:{click:e.addScopeItem}},[i("i",{staticClass:"el-icon-plus"})])],2)]),i("el-form-item",{staticStyle:{width:"570px"},attrs:{label:"默认欢迎语"}},[i("el-input",{attrs:{type:"textarea",maxlength:e.welMsgMaxlength,"show-word-limit":"",autosize:{minRows:4,maxRows:10},placeholder:"请输入欢迎语"},model:{value:e.form.defaultWelcomeMsg,callback:function(t){e.$set(e.form,"defaultWelcomeMsg",t)},expression:"form.defaultWelcomeMsg"}}),i("div",{staticClass:"quick-actions"},[i("span",{on:{click:function(t){return e.handeAddTextClick("#客户昵称#")}}},[e._v("#客户昵称#")]),i("span",{on:{click:function(t){return e.handeAddTextClick("#员工姓名#")}}},[e._v("#员工姓名#")])]),i("AddAppendixBtn",{attrs:{"sub-title":e.subTitle,"limit-select-length":e.limitSelectLength,"max-appendix-num":e.MAX_APPENDIX_NUM,"appendix-list":e.appendixList,"remove-appendix-list":e.removeAppendixList,"hide-video-cover":!0},on:{"update:appendixList":function(t){e.appendixList=t},"update:appendix-list":function(t){e.appendixList=t},"update:removeAppendixList":function(t){e.removeAppendixList=t},"update:remove-appendix-list":function(t){e.removeAppendixList=t}}})],1),i("p",{staticClass:"config-title mt10"},[e._v("特殊时段欢迎语"),i("span",[e._v("可在特定时段回复不同的欢迎语,让欢迎语更灵活")])]),i("el-alert",{staticClass:"alert-tip",attrs:{type:"warning",title:"在设置的特殊时段外的时间,将回复默认欢迎语",closable:!1}}),i("el-form-item",{attrs:{label:"时段欢迎语"}},[i("el-switch",{model:{value:e.form.welcomeSwitch,callback:function(t){e.$set(e.form,"welcomeSwitch",t)},expression:"form.welcomeSwitch"}}),i("span",{staticClass:"switch-tip"},[e._v("开启后,在指定时段回复个性欢迎语")])],1),e.form.welcomeSwitch?i("div",{staticClass:"step-div ml5"},[i("el-steps",{attrs:{direction:"vertical"}},e._l(e.weMsgTlpSpecialRules,(function(t,a){return i("el-step",{key:a},[i("template",{slot:"description"},[i("SpecialWelStep",{attrs:{"rule-item":t,"hande-add-text-click":e.handeAddTextClick,"sub-title":e.subTitle,"wel-msg-maxlength":e.welMsgMaxlength,"we-msg-tlp-special-rules":e.weMsgTlpSpecialRules,index:a,"check-repeat-time":e.checkRepeatTime},on:{"update:ruleItem":function(e){t=e},"update:rule-item":function(e){t=e},"update:weMsgTlpSpecialRules":function(t){e.weMsgTlpSpecialRules=t},"update:we-msg-tlp-special-rules":function(t){e.weMsgTlpSpecialRules=t},removeSpecialRule:e.removeSpecialRule}})],1)],2)})),1),i("div",[i("el-button",{staticStyle:{"margin-left":"100px"},attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.addWelRule}},[e._v("添加欢迎语")])],1)],1):e._e()],1)],1),i("div",{staticClass:"preview-wrap"},[i("PhoneDialog",{attrs:{message:e.form.defaultWelcomeMsg,"msg-list":e.appendixList,"un-show-video-cover":!0}})],1)])],1),i("div",{staticClass:"wrap-footer"},[i("RequestButton",{attrs:{type:"primary","request-method":e.submit,"button-type":"submit"}},[e._v("保存")])],1),i("SelectUser",{key:e.form.codeType,attrs:{visible:e.dialogVisibleSelectUser,title:"选择使用员工","is-only-leaf":2!==e.form.codeType,"is-sigle-select":1==e.form.codeType,"selected-user-list":e.form.weEmpleCodeUseScops||[]},on:{"update:visible":function(t){e.dialogVisibleSelectUser=t},success:e.selectedUser}})],1)},n=[],r=i("5530"),s=i("2909"),o=(i("99af"),i("4de4"),i("caad"),i("d81d"),i("4e82"),i("a434"),i("b0c0"),i("a9e3"),i("d3b7"),i("ac1f"),i("2532"),i("466d"),i("159b"),i("74e9")),l=i("dd70"),c=i("aa50"),u=i("c958"),d=i("4887"),p=i("fa5d"),f=i("ed08"),A=i("8bd5"),h=i("a8fc"),m=i.n(h),g=i("52a9"),v=i("cf45"),b=1e3,y=[{value:l["gd"],label:"来源"},{value:l["ab"],label:"性别"}],_=[{value:!1,label:"不是"},{value:!0,label:"是"}],w=[{value:l["h"],label:"且"},{value:l["Hc"],label:"或"}],C=[{label:"所有性别",value:l["e"]},{label:l["Xc"][l["fb"]],value:l["fb"]},{label:l["Xc"][l["cb"]],value:l["cb"]},{label:l["Xc"][l["bb"]],value:l["bb"]}],x=[{label:"所有来源",value:l["f"]}].concat(Object(s["a"])(Object(v["D"])({key:"value",value:"label"}))),k={components:{ReturnPage:c["a"],SelectUser:u["a"],AddAppendixBtn:d["a"],SpecialWelStep:p["default"],PhoneDialog:A["a"],RequestButton:g["a"]},props:{},data:function(){var e=this,t=function(t,i,a){e.form.defaultWelcomeMsg||e.appendixList.length?a():a(new Error("请填写默认欢迎语"))};return{MAX_APPENDIX_NUM:l["Tb"],MEDIA_TO_WELCOME_TYPE:l["Wb"],WELCOME_APPENDIX_TYPE:l["zd"],KEY_OPTIONS:y,IS_OPTIONS:_,GENDER_OPTIONS:C,SOURCE_OPTIONS:x,SOURCE:l["gd"],CONDITION_OPTIONS:w,AND:l["h"],OR:l["Hc"],ALL_SOURCE:l["f"],ALL_GENGER:l["e"],dialogVisible:!1,dialogVisibleSelectMaterial:!1,rules:{weEmpleCodeUseScops:[{type:"array",required:!0,message:"请选择使用员工",trigger:"change"}],defaultWelcomeMsg:[{required:!0,validator:t,trigger:"change"}]},form:{defaultWelcomeMsg:"",weEmpleCodeUseScops:[],welcomeSwitch:!1},weMsgTlpSpecialRules:[{weekendList:[],time:[],specialWelcomeMsg:"",specialMaterialList:[]}],loading:!1,welcomeMsgTplType:l["Q"],employType:l["Q"],dialogVisibleSelectUser:!1,limitSelectLength:l["Tb"],appendixList:[],subTitle:"已添加 0 个附件,还可选择 9 个",welMsgMaxlength:b,removeAppendixList:[],removeSpecialRuleList:[],weMsgTlpFilterRules:[{filterType:l["gd"],filterCondition:!0,filterValue:l["f"]}],multiFilterAssociation:l["Hc"]}},computed:{},watch:{appendixList:function(e){this.subTitle="已添加 ".concat(e.length," 个附件,还可选择 ").concat(l["Tb"]-e.length," 个"),this.limitSelectLength=l["Tb"]-e.length}},created:function(){this.form=Object.assign(this.form,this.$route.query),this.$route.meta.title=(this.form.id?"编辑":"新增")+"好友欢迎语",this.form.id&&this.getDetail(this.form.id),this.welcomeMsgTplType=l["Q"]},mounted:function(){},beforeUpdate:function(){Object(v["k"])(Object(r["a"])(Object(r["a"])({},this.$options.data().form),{},{appendixList:this.$options.data().appendixList,welcomeMsgTplType:l["Q"]}),Object(r["a"])({appendixList:this.appendixList},this.form))},methods:{getData:function(){},goBack:function(){this.$router.push("welcome?welcomeMsgTplType="+window.location.hash.match(/welcomeMsgTplType=(\d)/)[1])},checkEmptyWelContent:function(e){var t=this,i=e.some((function(e,i){var a=!1;return e.weekendBeginTime&&e.weekendEndTime&&e.weekendList.length||(t.msgWarn("请设置时段欢迎语".concat(i+1,"的生效时段")),a=!0),e.specialWelcomeMsg||e.specialMaterialList.length||(t.msgWarn("请设置时段欢迎语".concat(i+1,"的欢迎语")),a=!0),a}));return i},checkRepeatWeek:function(e){var t=this,i=[];e.map((function(e){t.weMsgTlpSpecialRules.map((function(t,a){if(t.weekendList.includes(e)){var n=t.weekendBeginTime.split(":"),r=parseInt(n[0]+n[1]),s=t.weekendEndTime.split(":"),o=parseInt(s[0]+s[1]);i.push([r,o,a+1])}}))}));var a=m()(i,(function(e){return"".concat(e[0]).concat(e[1]).concat(e[2])}));return this.checkCoincidence(a)},checkRepeatTime:function(e){var t=Object(f["k"])(e);if(t.length){var i=this.checkRepeatWeek(t);if(i.flag&&i.first!==i.second)return this.msgWarn("时段欢迎语".concat(i.first,"与时段欢迎语").concat(i.second,"的生效时段存在重复")),!1}return!0},checkSpecialWel:function(e,t){if(!e.length)return this.msgWarn("请设置时段欢迎语"),!1;var i=this.checkEmptyWelContent(e);return!i&&this.checkRepeatTime(t)},dealWeMsgTlpFilterRules:function(e){var t=this,i=[];return e.forEach((function(e,a){e.filterType===l["ab"]&&(e.filterValue=Number(e.filterValue)),0!==a?i.push({isMultiFilterAssociation:!0,filterValue:t.multiFilterAssociation?l["h"]:l["Hc"]},e):i.push(e)})),i},submit:function(){var e=this;this.$refs["form"].validate((function(t){if(t){var i=Object(r["a"])({},e.form),a=Object(f["e"])(e.appendixList),n=[],s=3,l={useUserIds:i.weEmpleCodeUseScops.map((function(e){return e.userId})),weMsgTlp:{defaultWelcomeMsg:i.defaultWelcomeMsg,defaultMaterialList:a,multiFilterAssociation:e.multiFilterAssociation}};if(l.weMsgTlpFilterRules=e.weMsgTlpFilterRules.filter((function(e){return!e.isMultiFilterAssociation})),i.welcomeSwitch){var c=e.weMsgTlpSpecialRules.map((function(e){var t,i,a;return n=n.concat(e.weekendList),Object(r["a"])(Object(r["a"])({},e),{},{specialMaterialList:Object(f["e"])(e.specialMaterialList),weekendBeginTime:(null===(t=e.weekendBeginTime)||void 0===t?void 0:t.split(":").length)===s?e.weekendBeginTime:e.weekendBeginTime+":00",weekendEndTime:(null===(i=e.weekendEndTime)||void 0===i?void 0:i.split(":").length)===s?e.weekendEndTime:e.weekendEndTime+":00",removeSpecialRuleMaterialIds:null===(a=e.removeAppendixList)||void 0===a?void 0:a.map((function(e){return e.id}))})}));if(l=Object(r["a"])(Object(r["a"])({},l),{},{weMsgTlpSpecialRules:c}),!e.checkSpecialWel(c,n))return Object(v["i"])(e.$store,"submit")}var u,d,p=Object(r["a"])({},l);if(i.id)p=Object(r["a"])(Object(r["a"])(Object(r["a"])({},p),p.weMsgTlp),{},{id:i.id,removeMaterialIds:null===(u=e.removeAppendixList)||void 0===u?void 0:u.map((function(e){return e.id})),removeSpecialRuleIds:null===(d=e.removeSpecialRuleList)||void 0===d?void 0:d.map((function(e){return e.id}))});(e.form.id?o["e"]:o["a"])(p).then((function(){e.$store.commit("SET_ADD_FLAG",!e.form.id),e.msgSuccess("操作成功"),e.goBack()})).finally((function(){Object(v["i"])(e.$store,"submit"),e.loading=!1}))}else Object(v["i"])(e.$store,"submit")}))},selectedUser:function(e){var t={userIds:[],departmentIds:[]};this.form.weEmpleCodeUseScops=e.map((function(e){return e.userId&&t.userIds.push(e.userId),e.id&&t.departmentIds.push(e.id),Object(r["a"])(Object(r["a"])({},e),{},{userId:e.id||e.userId,userName:e.name})}))},handeAddTextClick:function(e,t){if(t||0===t){var i=Object(s["a"])(this.weMsgTlpSpecialRules)||[],a=i[t].specialWelcomeMsg;return a.length+e.length>this.welMsgMaxlength?void this.msgWarn("字数已达上限"):(i[t]=Object(r["a"])(Object(r["a"])({},i[t]),{},{specialWelcomeMsg:a+e}),void(this.weMsgTlpSpecialRules=i))}this.form.defaultWelcomeMsg.length+e.length>this.welMsgMaxlength?this.msgWarn("字数已达上限"):this.form.defaultWelcomeMsg=this.form.defaultWelcomeMsg+e},addWelRule:function(){var e=Object(s["a"])(this.weMsgTlpSpecialRules);this.weMsgTlpSpecialRules=[].concat(Object(s["a"])(e),[{weekendList:[],time:[],specialWelcomeMsg:"",specialMaterialList:[]}])},checkCoincidence:function(e){var t=Object(s["a"])(e);t.sort((function(e,t){return e[0]-t[0]}));for(var i=1;i<t.length;i++)if(t[i][0]<t[i-1][1])return{flag:!0,first:t[i-1][2],second:t[i][2]};return{flag:!1}},getDetail:function(e){var t=this;Object(o["i"])(e).then((function(e){var i,a=Object(r["a"])({},e.data);t.form=Object(r["a"])(Object(r["a"])({},t.form),{},{weEmpleCodeUseScops:null===(i=a.useUsers)||void 0===i?void 0:i.map((function(e){return Object(r["a"])(Object(r["a"])({},e),{},{name:e.userName})})),defaultWelcomeMsg:a.defaultWelcomeMsg,welcomeSwitch:0!==a.weMsgTlpSpecialRules.length});var n=a.weMsgTlpSpecialRules.map((function(e){var t=Object(s["a"])(Object(f["f"])(e.specialMaterialList));return Object(r["a"])(Object(r["a"])({},e),{},{weekendList:e.weekends.split(",").map((function(e){return Number(e)})),specialMaterialList:t.sort((function(e,t){return e.sortNo-t.sortNo}))})}));t.weMsgTlpSpecialRules=n,t.multiFilterAssociation=a.multiFilterAssociation,t.weMsgTlpFilterRules=t.dealWeMsgTlpFilterRules(a.weMsgTlpFilterRules.length?a.weMsgTlpFilterRules:[{filterType:l["gd"],filterCondition:!0,filterValue:l["f"]}]);var o=Object(f["f"])(a.defaultMaterialList);o.sort((function(e,t){return e.sortNo-t.sortNo})),t.appendixList=o}))},removeSpecialRule:function(e){var t=Object(s["a"])(this.removeSpecialRuleList);t.push(e),this.removeSpecialRuleList=t},handleClose:function(e){this.form.weEmpleCodeUseScops.splice(e,1)},addScopeItem:function(){this.weMsgTlpFilterRules.push({isMultiFilterAssociation:!0,filterValue:this.multiFilterAssociation},{filterType:l["gd"],filterCondition:!0,filterValue:l["f"]})},removeScopeItem:function(e){this.weMsgTlpFilterRules.splice(e-1,2)},changeCondition:function(e){this.multiFilterAssociation=e,this.weMsgTlpFilterRules=this.weMsgTlpFilterRules.map((function(t){return t.isMultiFilterAssociation&&(t.filterValue=e),t}))}}},T=k,S=(i("4a10"),i("ef68d"),i("2877")),I=Object(S["a"])(T,a,n,!1,null,"0e0ba6e1",null);t["default"]=I.exports},cbd9:function(e,t,i){"use strict";i("73e3")},cc38:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"show-condition",on:{click:e.openConditionDialog}},[i("span",[e._v("显示条件")]),i("div",{staticClass:"fcc"},[e.getSetRules().index?i("span",{staticClass:"condition-nums"},[e._v(" "+e._s(e.getSetRules().index)+"个条件 ")]):e._e(),i("i",{staticClass:"el-icon-arrow-right ml5"})])]),i("el-dialog",{attrs:{title:"设置显示条件",visible:e.dialogVisible,width:"800px","close-on-click-modal":!1,"close-on-press-escape":!1,"before-close":e.cancelCondition},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("div",{staticClass:"mb20"},[e._v("当填写者的选择满足以下任一条件时,显示当前题目")]),e._l(e.ruleList,(function(t){return i("div",{key:t.id,staticClass:"mb10"},[i("el-select",{staticStyle:{width:"300px"},attrs:{placeholder:"请选择"},on:{change:function(i){return e.changeRuleQuestion(t)}},model:{value:t.questionId,callback:function(i){e.$set(t,"questionId",i)},expression:"item.questionId"}},e._l(e.questionOptions,(function(e){return i("el-option",{key:e.id,attrs:{label:e.title,value:e.id}})})),1),i("span",{staticClass:"ml10 mr10"},[e._v(" 选中 ")]),i("el-select",{staticStyle:{width:"300px"},attrs:{multiple:"",placeholder:"请选择"},model:{value:t.answer,callback:function(i){e.$set(t,"answer",i)},expression:"item.answer"}},e._l(t.answerOptions,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1),i("i",{staticClass:"el-icon-remove-outline ml10",staticStyle:{cursor:"pointer"},on:{click:function(i){return e.removeRule(t)}}})],1)})),i("el-button",{staticStyle:{padding:"9px"},attrs:{icon:"el-icon-plus"},on:{click:e.addCondition}},[e._v("添加条件")]),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.cancelCondition}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.confimAddCondition}},[e._v("确 定")])],1)],2)],1)},n=[],r=i("5530"),s=(i("4de4"),i("d81d"),i("d3b7"),i("159b"),i("ec26")),o=i("81f6"),l=i("2ef0"),c={props:{component:{type:Object,default:function(){}}},data:function(){return{dialogVisible:!1,value:"",ruleList:[],componentList:[],original:[]}},computed:{questionOptions:function(){return this.componentList}},watch:{component:{deep:!0,handler:function(e){var t;this.ruleList=Object(l["cloneDeep"])(null!==e&&void 0!==e&&null!==(t=e.ruleList)&&void 0!==t&&t.length?e.ruleList:[{id:Object(s["a"])()}])}}},mounted:function(){var e=this;o["a"].$on("allComponents",(function(t){e.componentList=t,e.original=t,e.ruleList=e.ruleList.map((function(e){var i=Object(l["find"])(t,{id:e.questionId});return i?Object(r["a"])(Object(r["a"])({},e),{},{answerOptions:i.options,answer:e.answer.filter((function(e){return Object(l["find"])(i.options,{id:e})}))}):e}))}))},beforeDestroy:function(){o["a"].$off("allComponents")},methods:{confimAddCondition:function(){this.ruleList=this.ruleList.filter((function(e){return e.questionId&&e.answer})),this.dialogVisible=!1,o["a"].$emit("changeFiledSettingValue",{ruleList:this.ruleList,id:this.component.id}),this.$emit("updateComponentItem",this.ruleList)},removeRule:function(e){this.ruleList=this.ruleList.filter((function(t){return e.id!==t.id}))},addCondition:function(){var e=this;this.componentList=[],this.original.forEach((function(t){var i=Object(l["find"])(e.ruleList,{questionId:t.id});i||e.componentList.push(t)})),this.ruleList.push({id:Object(s["a"])()})},cancelCondition:function(){var e;this.dialogVisible=!1,this.ruleList=Object(l["cloneDeep"])(null!==(e=this.component)&&void 0!==e&&null!==(e=e.ruleList)&&void 0!==e&&e.length?this.component.ruleList:[{id:Object(s["a"])()}])},openConditionDialog:function(){this.ruleList.length||this.ruleList.push({id:Object(s["a"])()}),this.dialogVisible=!0},getSetRules:function(){var e,t=0,i=[];return null===this||void 0===this||null===(e=this.ruleList)||void 0===e||e.forEach((function(e){e.answer&&e.questionId&&(i.push(e),t++)})),{index:t,newArr:i}},changeRuleQuestion:function(e){var t;e.answer=void 0,e.answerOptions=(null===(t=Object(l["find"])(this.original,{id:e.questionId}))||void 0===t?void 0:t.options)||[]}}},u=c,d=(i("579e"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"d0ee8452",null);t["default"]=p.exports},cc43:function(e,t,i){"use strict";i("fe9e")},cc48:function(e,t,i){"use strict";i.d(t,"a",(function(){return m}));var a=i("5530"),n=i("b775"),r="2",s={personal:0,room:1},o=function(e){var t=Object(a["a"])({isRoom:r===e.searchType?s["room"]:s["personal"]},e);return Object(n["a"])({url:"/chat/mapping/list",method:"get",params:t})},l=function(e){return Object(n["a"])({url:"/wecom/finance/getChatContactList",method:"get",params:e})},c=function(){return Object(n["a"])({url:"/wecom/page/getCorpBasicData",method:"get"})},u=function(){return Object(n["a"])({url:"/wecom/page/getCorpRealTimeData",method:"get"})},d=function(e){return Object(n["a"])({url:"/wecom/finance/getChatRoomContactList",method:"get",params:e})},p=function(e){return Object(n["a"])({url:"/wecom/customer/listV2",method:"get",params:e})},f=function(e){return Object(n["a"])({url:"/wecom/finance/getChatAllList",method:"get",params:e})},A=function(){return Object(n["a"])({url:"/wecom/pagehome/reloadredis",method:"get"})},h=function(e){return Object(n["a"])({url:"/wecom/finance/view/context",method:"get",params:e})},m={indexEchart:u,indexTable:c,getTree:o,chatList:l,listByCustomer:p,getChatAllList:f,chatGrounpList:d,reloadredis:A,viewContext:h}},cc67:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"list group"},[e.loading?e._e():i("empty-default-icon",{attrs:{text:"暂无聊天对象",length:e.personList.length}},[e.personList?i("div",[i("ul",e._l(e.personList,(function(t,a){return i("li",{key:a,class:{liActive:a==e.groupIndex},on:{click:function(i){return e.liClick(t,a)}}},[i("el-row",{staticStyle:{padding:"10px",display:"flex"}},[i("span",{staticClass:"fl"},[i("div",{staticClass:"ninebox"},[t.roomInfo?i("ul",e._l(t.roomInfo.avatar.split(","),(function(e,t){return i("li",{key:t},[i("img",{attrs:{src:e}})])})),0):e._e()])]),i("span",{staticClass:"fl",staticStyle:{"margin-left":"10px","line-height":"25px",flex:"1",display:"flex","flex-direction":"column","justify-content":"space-between",padding:"2px 0",overflow:"hidden"}},[i("p",{staticClass:"flex",staticStyle:{"justify-content":"space-between"}},[i("span",{staticClass:"inoneline",staticStyle:{width:"70px"}},[e._v(e._s(t.roomInfo&&t.roomInfo.groupName||t.finalChatContext&&t.finalChatContext.roomInfo&&t.finalChatContext.roomInfo.name||""))]),t.finalChatContext?i("span",{staticClass:"fr gray inoneline"},[e._v(e._s(e.dealTime(t.finalChatContext.msgtime)))]):e._e()]),t.finalChatContext&&t.finalChatContext.fromInfo?i("div",[t.finalChatContext.text?i("p",{staticClass:"gray inoneline",attrs:{title:t.finalChatContext.fromInfo.name+":"+t.finalChatContext.text.content}},[e._v(e._s(t.finalChatContext.fromInfo.name)+":"+e._s(t.finalChatContext.text.content))]):t.finalChatContext.image?i("p",{staticClass:"gray inoneline",attrs:{title:t.finalChatContext.fromInfo.name+":[图片]"}},[e._v(e._s(t.finalChatContext.fromInfo.name)+":[图片]")]):i("p",{staticClass:"gray inoneline",attrs:{title:t.finalChatContext.fromInfo.name+":[消息]"}},[e._v(e._s(t.finalChatContext.fromInfo.name)+":[消息]")])]):e._e()])])],1)})),0)]):e._e()])],1)},n=[],r=i("cf45"),s=i("c1df"),o=i.n(s),l=i("e77d"),c={components:{EmptyDefaultIcon:l["a"]},props:{personList:{type:Array,default:function(){return[]}},loading:{type:Boolean,defluat:!1}},data:function(){return{loadings:!0,groupIndex:-1}},watch:{personList:function(){this.groupIndex=-1}},mounted:function(){sessionStorage.removeItem("list"),sessionStorage.removeItem("insideList")},methods:{liClick:function(e,t){this.groupIndex=t,this.$emit("groupFn",e)},dealTime:function(e){var t=o()(Object(r["L"])(e)),i=0===o()().diff(t,"year"),a=o()().dayOfYear()===t.dayOfYear(),n=o()().dayOfYear()===t.dayOfYear()+1;return i?a?t.format("HH:mm"):n?"昨天":t.format("MM-DD"):t.format("YYYY-MM-DD")}}},u=c,d=(i("ef0c"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"276548d8",null);t["default"]=p.exports},cc6c:function(e,t,i){e.exports=i.p+"static/img/401.089007e7.gif"},cc71:function(e,t,i){"use strict";var a=i("23e7"),n=i("857a"),r=i("af03");a({target:"String",proto:!0,forced:r("bold")},{bold:function(){return n(this,"b","","")}})},cc7d:function(e,t,i){},ccf7:function(e,t,i){"use strict";i("a54b")},cd40:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{inline:!0,model:e.query,"label-width":"100px"}},[i("el-form-item",{attrs:{prop:"userName"}},[i("el-input",{attrs:{placeholder:"请输入离职员工姓名"},model:{value:e.query.userName,callback:function(t){e.$set(e.query,"userName",t)},expression:"query.userName"}})],1),i("el-form-item",[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"daterange","picker-options":e.pickerOptions,"range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),i("el-form-item",{attrs:{label:""}},[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.getList(1)}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.list,"tooltip-effect":"dark"}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{text:"暂无数据"}})],1),i("el-table-column",{attrs:{type:"index",label:"序号",width:"55"}}),i("el-table-column",{attrs:{prop:"userName",label:"已离职员工"}}),i("el-table-column",{attrs:{prop:"mainDepartmentName",label:"所属部门"}}),i("el-table-column",{attrs:{prop:"allocateCustomerNum",label:"已分配客户","show-overflow-tooltip":""}}),i("el-table-column",{attrs:{prop:"allocateGroupNum",label:"已分配客户群","show-overflow-tooltip":""}}),i("el-table-column",{attrs:{prop:"transferTime",label:"分配时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.transferTime))]}}])}),i("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:dimission/allocatedStaffDetail"],expression:"['customerManage:dimission/allocatedStaffDetail']"}],attrs:{type:"text",size:"small"},on:{click:function(i){return e.goRoute(t.row)}}},[e._v("详情")])]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{disabled:e.loading,total:e.total,page:e.query.pageNum,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}})]},proxy:!0}])})},n=[],r=(i("b64b"),i("d3b7"),i("159b"),i("afcf")),s=i("ed08"),o=i("dd70"),l=i("b66d"),c=i("e77d"),u=i("e2e0"),d={name:"AllocatedStaffList",components:{RightContainer:l["a"],EmptyDefaultIcon:c["a"]},mixins:[u["a"]],props:{},data:function(){return{query:{pageNum:1,pageSize:o["Ic"],userName:void 0,beginTime:void 0,endTime:void 0},loading:!1,total:0,list:[],dialogVisibleSelectUser:!1,dateRange:[]}},computed:{},watch:{},created:function(){var e=this;this.$route.query&&Object.keys(this.query).forEach((function(t){e.$route.query[t]&&(e.query[t]=e.$route.query[t])})),this.getList()},mounted:function(){},methods:{getList:function(e){var t=this;this.dateRange?(this.query.beginTime=this.dateRange[0],this.query.endTime=this.dateRange[1]):(this.query.beginTime="",this.query.endTime=""),e&&(this.query.pageNum=e),this.loading=!0,Object(r["d"])(this.query).then((function(e){var i=e.rows,a=e.total;t.list=i,t.total=+a})).finally((function(){t.modifyButtonStatus(),t.loading=!1}))},resetForm:function(e){this.dateRange=[],this.$refs[e].resetFields()},resetQuery:function(){var e=this;this.resetForm("queryForm"),this.$nextTick((function(){e.getList(1)}))},goRoute:function(e){Object(s["l"])(this.$router,"allocatedStaffDetail",this.query,{id:e.id})}}},p=d,f=i("2877"),A=Object(f["a"])(p,a,n,!1,null,"771f9f28",null);t["default"]=A.exports},cd6d:function(e,t,i){e.exports=i.p+"static/img/config-step2-(1)-1.e9e65cd5.png"},cd7b:function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return n}));i("b64b");var a=function(e){var t=e.state.materialInfo.categoryInfo;(!e.state.materialInfo||t&&0===Object.keys(t).length)&&e.dispatch("GetCategory")},n=function(e){var t=e.state.materialInfo.allTagObj;(!e.state.materialInfo||t&&0===Object.keys(t).length)&&e.dispatch("GetMaterialTag")}},cd8a:function(e,t,i){e.exports=i.p+"static/img/企微活码pc3.c36d34bf.png"},cda5:function(e,t,i){e.exports=i.p+"static/img/addCustomerByNormal.8dc49b24.png"},cdde:function(e,t,i){},cde7:function(e,t){},ce3f:function(e,t,i){e.exports=i.p+"static/img/login-unconfig-bg.c8c34a45.svg"},ce6b:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"common-tree"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.treeDataEmpty,expression:"treeDataEmpty"}],staticClass:"common-tree-empty"},[e._t("empty")],2),i("div",{directives:[{name:"show",rawName:"v-show",value:!e.treeDataEmpty,expression:"!treeDataEmpty"}],staticClass:"common-tree-content"},[i("el-tree",e._g(e._b({ref:"commonTree",attrs:{"node-key":e.nodeKey,data:e.data,props:e.props,"default-expanded-keys":e.defaultExpandedKeys,"filter-node-method":e.filterNode,"empty-text":""},on:{"node-click":e.nodeClick},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.node,a=t.data;return[e._t("default",null,{node:i,data:a})]}}],null,!0)},"el-tree",e.$attrs,!1),e.$listeners))],1)])},n=[],r=(i("4de4"),i("d3b7"),{name:"CommonTree",components:{},props:{data:{type:Array,default:function(){return[]}},treeClass:{type:String,default:""},nodeKey:{type:String,default:""},props:{type:Object,default:function(){}},defaultExpandedKeys:{type:Array,default:function(){return[]}},filterNodeMethod:{type:Function,default:function(){}},nodeClick:{type:Function,default:function(){}},renderContent:{type:Function,default:function(){}}},data:function(){return{treeDataEmpty:!1}},computed:{},watch:{data:function(e){this.treeDataEmpty=0===e.length}},created:function(){},mounted:function(){},methods:{filterNode:function(e,t,i){return this.filterNodeMethod(e,t,i)},filter:function(e){this.$refs.commonTree.filter(e),this.treeDataEmpty=this.$refs.commonTree.isEmpty}}}),s=r,o=i("2877"),l=Object(o["a"])(s,a,n,!1,null,null,null);t["a"]=l.exports},ce83:function(e,t,i){},ceac:function(e,t,i){var a=i("2eaa"),n=i("5c69"),r=i("100e"),s=i("dcbe"),o=r((function(e,t){return s(e)?a(e,n(t,1,s,!0)):[]}));e.exports=o},cebd:function(e,t,i){"use strict";i("4041")},cef8:function(e,t,i){},cf1a:function(e,t,i){},cf80:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return r})),i.d(t,"e",(function(){return s})),i.d(t,"d",(function(){return o})),i.d(t,"a",(function(){return l}));var a=i("b775"),n=function(e){return Object(a["a"])({url:"/wecom/transfer/customerList",method:"get",params:e})},r=function(e){return Object(a["a"])({url:"/wecom/transfer/recordList",method:"get",params:e})},s=function(e){return Object(a["a"])({url:"/wecom/transfer",method:"post",data:e})},o=function(){return Object(a["a"])({url:"/wecom/transfer/config",method:"get"})};function l(e){return Object(a["a"])({url:"/wecom/transfer/editConfig",method:"put",data:e})}},d044:function(e,t,i){var a;(function(t,i){e.exports=i()})(0,(function(){function e(e){this.mode=i.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,a=this.data.length;t<a;t++){var n=[],r=this.data.charCodeAt(t);r>65536?(n[0]=240|(1835008&r)>>>18,n[1]=128|(258048&r)>>>12,n[2]=128|(4032&r)>>>6,n[3]=128|63&r):r>2048?(n[0]=224|(61440&r)>>>12,n[1]=128|(4032&r)>>>6,n[2]=128|63&r):r>128?(n[0]=192|(1984&r)>>>6,n[1]=128|63&r):n[0]=r,this.parsedData.push(n)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function t(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}e.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,i=this.parsedData.length;t<i;t++)e.put(this.parsedData[t],8)}},t.prototype={addData:function(t){var i=new e(t);this.dataList.push(i),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,i){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var a=0;a<this.moduleCount;a++){this.modules[a]=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++)this.modules[a][n]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,i),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=t.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,i)},setupPositionProbePattern:function(e,t){for(var i=-1;i<=7;i++)if(!(e+i<=-1||this.moduleCount<=e+i))for(var a=-1;a<=7;a++)t+a<=-1||this.moduleCount<=t+a||(this.modules[e+i][t+a]=0<=i&&i<=6&&(0==a||6==a)||0<=a&&a<=6&&(0==i||6==i)||2<=i&&i<=4&&2<=a&&a<=4)},getBestMaskPattern:function(){for(var e=0,t=0,i=0;i<8;i++){this.makeImpl(!0,i);var a=s.getLostPoint(this);(0==i||e>a)&&(e=a,t=i)}return t},createMovieClip:function(e,t,i){var a=e.createEmptyMovieClip(t,i),n=1;this.make();for(var r=0;r<this.modules.length;r++)for(var s=r*n,o=0;o<this.modules[r].length;o++){var l=o*n,c=this.modules[r][o];c&&(a.beginFill(0,100),a.moveTo(l,s),a.lineTo(l+n,s),a.lineTo(l+n,s+n),a.lineTo(l,s+n),a.endFill())}return a},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=s.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var i=0;i<e.length;i++){var a=e[t],n=e[i];if(null==this.modules[a][n])for(var r=-2;r<=2;r++)for(var o=-2;o<=2;o++)this.modules[a+r][n+o]=-2==r||2==r||-2==o||2==o||0==r&&0==o}},setupTypeNumber:function(e){for(var t=s.getBCHTypeNumber(this.typeNumber),i=0;i<18;i++){var a=!e&&1==(t>>i&1);this.modules[Math.floor(i/3)][i%3+this.moduleCount-8-3]=a}for(i=0;i<18;i++){a=!e&&1==(t>>i&1);this.modules[i%3+this.moduleCount-8-3][Math.floor(i/3)]=a}},setupTypeInfo:function(e,t){for(var i=this.errorCorrectLevel<<3|t,a=s.getBCHTypeInfo(i),n=0;n<15;n++){var r=!e&&1==(a>>n&1);n<6?this.modules[n][8]=r:n<8?this.modules[n+1][8]=r:this.modules[this.moduleCount-15+n][8]=r}for(n=0;n<15;n++){r=!e&&1==(a>>n&1);n<8?this.modules[8][this.moduleCount-n-1]=r:n<9?this.modules[8][15-n-1+1]=r:this.modules[8][15-n-1]=r}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var i=-1,a=this.moduleCount-1,n=7,r=0,o=this.moduleCount-1;o>0;o-=2){6==o&&o--;while(1){for(var l=0;l<2;l++)if(null==this.modules[a][o-l]){var c=!1;r<e.length&&(c=1==(e[r]>>>n&1));var u=s.getMask(t,a,o-l);u&&(c=!c),this.modules[a][o-l]=c,n--,-1==n&&(r++,n=7)}if(a+=i,a<0||this.moduleCount<=a){a-=i,i=-i;break}}}}},t.PAD0=236,t.PAD1=17,t.createData=function(e,i,a){for(var n=u.getRSBlocks(e,i),r=new d,o=0;o<a.length;o++){var l=a[o];r.put(l.mode,4),r.put(l.getLength(),s.getLengthInBits(l.mode,e)),l.write(r)}var c=0;for(o=0;o<n.length;o++)c+=n[o].dataCount;if(r.getLengthInBits()>8*c)throw new Error("code length overflow. ("+r.getLengthInBits()+">"+8*c+")");r.getLengthInBits()+4<=8*c&&r.put(0,4);while(r.getLengthInBits()%8!=0)r.putBit(!1);while(1){if(r.getLengthInBits()>=8*c)break;if(r.put(t.PAD0,8),r.getLengthInBits()>=8*c)break;r.put(t.PAD1,8)}return t.createBytes(r,n)},t.createBytes=function(e,t){for(var i=0,a=0,n=0,r=new Array(t.length),o=new Array(t.length),l=0;l<t.length;l++){var u=t[l].dataCount,d=t[l].totalCount-u;a=Math.max(a,u),n=Math.max(n,d),r[l]=new Array(u);for(var p=0;p<r[l].length;p++)r[l][p]=255&e.buffer[p+i];i+=u;var f=s.getErrorCorrectPolynomial(d),A=new c(r[l],f.getLength()-1),h=A.mod(f);o[l]=new Array(f.getLength()-1);for(p=0;p<o[l].length;p++){var m=p+h.getLength()-o[l].length;o[l][p]=m>=0?h.get(m):0}}var g=0;for(p=0;p<t.length;p++)g+=t[p].totalCount;var v=new Array(g),b=0;for(p=0;p<a;p++)for(l=0;l<t.length;l++)p<r[l].length&&(v[b++]=r[l][p]);for(p=0;p<n;p++)for(l=0;l<t.length;l++)p<o[l].length&&(v[b++]=o[l][p]);return v};for(var i={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},n={L:1,M:0,Q:3,H:2},r={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},s={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){var t=e<<10;while(s.getBCHDigit(t)-s.getBCHDigit(s.G15)>=0)t^=s.G15<<s.getBCHDigit(t)-s.getBCHDigit(s.G15);return(e<<10|t)^s.G15_MASK},getBCHTypeNumber:function(e){var t=e<<12;while(s.getBCHDigit(t)-s.getBCHDigit(s.G18)>=0)t^=s.G18<<s.getBCHDigit(t)-s.getBCHDigit(s.G18);return e<<12|t},getBCHDigit:function(e){var t=0;while(0!=e)t++,e>>>=1;return t},getPatternPosition:function(e){return s.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,i){switch(e){case r.PATTERN000:return(t+i)%2==0;case r.PATTERN001:return t%2==0;case r.PATTERN010:return i%3==0;case r.PATTERN011:return(t+i)%3==0;case r.PATTERN100:return(Math.floor(t/2)+Math.floor(i/3))%2==0;case r.PATTERN101:return t*i%2+t*i%3==0;case r.PATTERN110:return(t*i%2+t*i%3)%2==0;case r.PATTERN111:return(t*i%3+(t+i)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new c([1],0),i=0;i<e;i++)t=t.multiply(new c([1,o.gexp(i)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case i.MODE_NUMBER:return 10;case i.MODE_ALPHA_NUM:return 9;case i.MODE_8BIT_BYTE:return 8;case i.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case i.MODE_NUMBER:return 12;case i.MODE_ALPHA_NUM:return 11;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else{if(!(t<41))throw new Error("type:"+t);switch(e){case i.MODE_NUMBER:return 14;case i.MODE_ALPHA_NUM:return 13;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),i=0,a=0;a<t;a++)for(var n=0;n<t;n++){for(var r=0,s=e.isDark(a,n),o=-1;o<=1;o++)if(!(a+o<0||t<=a+o))for(var l=-1;l<=1;l++)n+l<0||t<=n+l||0==o&&0==l||s==e.isDark(a+o,n+l)&&r++;r>5&&(i+=3+r-5)}for(a=0;a<t-1;a++)for(n=0;n<t-1;n++){var c=0;e.isDark(a,n)&&c++,e.isDark(a+1,n)&&c++,e.isDark(a,n+1)&&c++,e.isDark(a+1,n+1)&&c++,0!=c&&4!=c||(i+=3)}for(a=0;a<t;a++)for(n=0;n<t-6;n++)e.isDark(a,n)&&!e.isDark(a,n+1)&&e.isDark(a,n+2)&&e.isDark(a,n+3)&&e.isDark(a,n+4)&&!e.isDark(a,n+5)&&e.isDark(a,n+6)&&(i+=40);for(n=0;n<t;n++)for(a=0;a<t-6;a++)e.isDark(a,n)&&!e.isDark(a+1,n)&&e.isDark(a+2,n)&&e.isDark(a+3,n)&&e.isDark(a+4,n)&&!e.isDark(a+5,n)&&e.isDark(a+6,n)&&(i+=40);var u=0;for(n=0;n<t;n++)for(a=0;a<t;a++)e.isDark(a,n)&&u++;var d=Math.abs(100*u/t/t-50)/5;return i+=10*d,i}},o={glog:function(e){if(e<1)throw new Error("glog("+e+")");return o.LOG_TABLE[e]},gexp:function(e){while(e<0)e+=255;while(e>=256)e-=255;return o.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},l=0;l<8;l++)o.EXP_TABLE[l]=1<<l;for(l=8;l<256;l++)o.EXP_TABLE[l]=o.EXP_TABLE[l-4]^o.EXP_TABLE[l-5]^o.EXP_TABLE[l-6]^o.EXP_TABLE[l-8];for(l=0;l<255;l++)o.LOG_TABLE[o.EXP_TABLE[l]]=l;function c(e,t){if(void 0==e.length)throw new Error(e.length+"/"+t);var i=0;while(i<e.length&&0==e[i])i++;this.num=new Array(e.length-i+t);for(var a=0;a<e.length-i;a++)this.num[a]=e[a+i]}function u(e,t){this.totalCount=e,this.dataCount=t}function d(){this.buffer=[],this.length=0}c.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),i=0;i<this.getLength();i++)for(var a=0;a<e.getLength();a++)t[i+a]^=o.gexp(o.glog(this.get(i))+o.glog(e.get(a)));return new c(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=o.glog(this.get(0))-o.glog(e.get(0)),i=new Array(this.getLength()),a=0;a<this.getLength();a++)i[a]=this.get(a);for(a=0;a<e.getLength();a++)i[a]^=o.gexp(o.glog(e.get(a))+t);return new c(i,0).mod(e)}},u.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],u.getRSBlocks=function(e,t){var i=u.getRsBlockTable(e,t);if(void 0==i)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var a=i.length/3,n=[],r=0;r<a;r++)for(var s=i[3*r+0],o=i[3*r+1],l=i[3*r+2],c=0;c<s;c++)n.push(new u(o,l));return n},u.getRsBlockTable=function(e,t){switch(t){case n.L:return u.RS_BLOCK_TABLE[4*(e-1)+0];case n.M:return u.RS_BLOCK_TABLE[4*(e-1)+1];case n.Q:return u.RS_BLOCK_TABLE[4*(e-1)+2];case n.H:return u.RS_BLOCK_TABLE[4*(e-1)+3];default:return}},d.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var i=0;i<t;i++)this.putBit(1==(e>>>t-i-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var p=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function f(){return"undefined"!=typeof CanvasRenderingContext2D}function A(){var e=!1,t=navigator.userAgent;if(/android/i.test(t)){e=!0;var i=t.toString().match(/android ([0-9]\.[0-9])/i);i&&i[1]&&(e=parseFloat(i[1]))}return e}var h=function(){var e=function(e,t){this._el=e,this._htOption=t};return e.prototype.draw=function(e){var t=this._htOption,i=this._el,a=e.getModuleCount();Math.floor(t.width/a),Math.floor(t.height/a);function n(e,t){var i=document.createElementNS("http://www.w3.org/2000/svg",e);for(var a in t)t.hasOwnProperty(a)&&i.setAttribute(a,t[a]);return i}this.clear();var r=n("svg",{viewBox:"0 0 "+String(a)+" "+String(a),width:"100%",height:"100%",fill:t.colorLight});r.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),i.appendChild(r),r.appendChild(n("rect",{fill:t.colorLight,width:"100%",height:"100%"})),r.appendChild(n("rect",{fill:t.colorDark,width:"1",height:"1",id:"template"}));for(var s=0;s<a;s++)for(var o=0;o<a;o++)if(e.isDark(s,o)){var l=n("use",{x:String(o),y:String(s)});l.setAttributeNS("http://www.w3.org/1999/xlink","href","#template"),r.appendChild(l)}},e.prototype.clear=function(){while(this._el.hasChildNodes())this._el.removeChild(this._el.lastChild)},e}(),m="svg"===document.documentElement.tagName.toLowerCase(),g=m?h:f()?function(){function e(){this._elImage.src=this._elCanvas.toDataURL("image/png"),this._elImage.style.display="block",this._elCanvas.style.display="none"}if(this._android&&this._android<=2.1){var t=1/window.devicePixelRatio,i=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(e,a,n,r,s,o,l,c,u){if("nodeName"in e&&/img/i.test(e.nodeName))for(var d=arguments.length-1;d>=1;d--)arguments[d]=arguments[d]*t;else"undefined"==typeof c&&(arguments[1]*=t,arguments[2]*=t,arguments[3]*=t,arguments[4]*=t);i.apply(this,arguments)}}function a(e,t){var i=this;if(i._fFail=t,i._fSuccess=e,null===i._bSupportDataURI){var a=document.createElement("img"),n=function(){i._bSupportDataURI=!1,i._fFail&&i._fFail.call(i)},r=function(){i._bSupportDataURI=!0,i._fSuccess&&i._fSuccess.call(i)};return a.onabort=n,a.onerror=n,a.onload=r,void(a.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==")}!0===i._bSupportDataURI&&i._fSuccess?i._fSuccess.call(i):!1===i._bSupportDataURI&&i._fFail&&i._fFail.call(i)}var n=function(e,t){this._bIsPainted=!1,this._android=A(),this._htOption=t,this._elCanvas=document.createElement("canvas"),this._elCanvas.width=t.width,this._elCanvas.height=t.height,e.appendChild(this._elCanvas),this._el=e,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage=document.createElement("img"),this._elImage.alt="Scan me!",this._elImage.style.display="none",this._el.appendChild(this._elImage),this._bSupportDataURI=null};return n.prototype.draw=function(e){var t=this._elImage,i=this._oContext,a=this._htOption,n=e.getModuleCount(),r=a.width/n,s=a.height/n,o=Math.round(r),l=Math.round(s);t.style.display="none",this.clear();for(var c=0;c<n;c++)for(var u=0;u<n;u++){var d=e.isDark(c,u),p=u*r,f=c*s;i.strokeStyle=d?a.colorDark:a.colorLight,i.lineWidth=1,i.fillStyle=d?a.colorDark:a.colorLight,i.fillRect(p,f,r,s),i.strokeRect(Math.floor(p)+.5,Math.floor(f)+.5,o,l),i.strokeRect(Math.ceil(p)-.5,Math.ceil(f)-.5,o,l)}this._bIsPainted=!0},n.prototype.makeImage=function(){this._bIsPainted&&a.call(this,e)},n.prototype.isPainted=function(){return this._bIsPainted},n.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},n.prototype.round=function(e){return e?Math.floor(1e3*e)/1e3:e},n}():function(){var e=function(e,t){this._el=e,this._htOption=t};return e.prototype.draw=function(e){for(var t=this._htOption,i=this._el,a=e.getModuleCount(),n=Math.floor(t.width/a),r=Math.floor(t.height/a),s=['<table style="border:0;border-collapse:collapse;">'],o=0;o<a;o++){s.push("<tr>");for(var l=0;l<a;l++)s.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+n+"px;height:"+r+"px;background-color:"+(e.isDark(o,l)?t.colorDark:t.colorLight)+';"></td>');s.push("</tr>")}s.push("</table>"),i.innerHTML=s.join("");var c=i.childNodes[0],u=(t.width-c.offsetWidth)/2,d=(t.height-c.offsetHeight)/2;u>0&&d>0&&(c.style.margin=d+"px "+u+"px")},e.prototype.clear=function(){this._el.innerHTML=""},e}();function v(e,t){for(var i=1,a=b(e),r=0,s=p.length;r<=s;r++){var o=0;switch(t){case n.L:o=p[r][0];break;case n.M:o=p[r][1];break;case n.Q:o=p[r][2];break;case n.H:o=p[r][3];break}if(a<=o)break;i++}if(i>p.length)throw new Error("Too long data");return i}function b(e){var t=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=e?3:0)}return a=function(e,t){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:n.H},"string"===typeof t&&(t={text:t}),t)for(var i in t)this._htOption[i]=t[i];"string"==typeof e&&(e=document.getElementById(e)),this._htOption.useSVG&&(g=h),this._android=A(),this._el=e,this._oQRCode=null,this._oDrawing=new g(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)},a.prototype.makeCode=function(e){this._oQRCode=new t(v(e,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(e),this._oQRCode.make(),this._el.title=e,this._oDrawing.draw(this._oQRCode),this.makeImage()},a.prototype.makeImage=function(){"function"==typeof this._oDrawing.makeImage&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},a.prototype.clear=function(){this._oDrawing.clear()},a.CorrectLevel=n,a}))},d063:function(e,t,i){e.exports=i.p+"static/img/企微活码移动2.fcb8c0b5.png"},d0b2:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"icon-dialog"},[i("el-dialog",e._g(e._b({attrs:{width:"980px","modal-append-to-body":!1},on:{open:e.onOpen,close:e.onClose}},"el-dialog",e.$attrs,!1),e.$listeners),[i("div",{attrs:{slot:"title"},slot:"title"},[e._v(" 选择图标 "),i("el-input",{style:{width:"260px"},attrs:{size:"mini",placeholder:"请输入图标名称","prefix-icon":"el-icon-search",clearable:""},model:{value:e.key,callback:function(t){e.key=t},expression:"key"}})],1),i("ul",{staticClass:"icon-ul"},e._l(e.iconList,(function(t){return i("li",{key:t,class:e.active===t?"active-item":"",on:{click:function(i){return e.onSelect(t)}}},[i("i",{class:t}),i("div",[e._v(e._s(t))])])})),0)])],1)},n=[],r=(i("4de4"),i("d81d"),i("d3b7"),i("de0a")),s=r.map((function(e){return"el-icon-".concat(e)})),o={inheritAttrs:!1,props:["current"],data:function(){return{iconList:s,active:null,key:""}},watch:{key:function(e){this.iconList=e?s.filter((function(t){return t.indexOf(e)>-1})):s}},methods:{onOpen:function(){this.active=this.current,this.key=""},onClose:function(){},onSelect:function(e){this.active=e,this.$emit("select",e),this.$emit("update:visible",!1)}}},l=o,c=(i("f044"),i("2877")),u=Object(c["a"])(l,a,n,!1,null,"945eb216",null);t["default"]=u.exports},d0f2:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-tabs",{staticClass:"white-tabs",model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"敏感消息记录",name:"record"}},[a("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.form}},[a("el-form-item",[a("div",{staticClass:"tag-input",on:{click:function(t){e.dialogVisibleSelectUser=!0}}},[e.queryUser.length?e._l(e.queryUser,(function(t,i){return a("el-tag",{key:i,attrs:{type:"info"}},[e._v(e._s(t.name))])})):a("span",{staticClass:"tag-place"},[e._v("请选择员工")])],2)]),a("el-form-item",[a("el-input",{attrs:{placeholder:"请输入关键词"},model:{value:e.form.keyword,callback:function(t){e.$set(e.form,"keyword",t)},expression:"form.keyword"}})],1),a("el-form-item",[a("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.getSensitiveList(1)}}},[e._v("查询")]),a("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"data",fn:function(){return[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,size:"medium"}},[a("template",{slot:"empty"},[a("empty-default-icon",{attrs:{length:e.tableData.length}})],1),a("el-table-column",{attrs:{label:"发送者"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.fromInfo?a("div",{staticClass:"user-item"},[a("img",{attrs:{src:t.row.fromInfo.avatarMediaid||t.row.fromInfo.avatar||i("3cb6")},on:{error:e.defImg}}),a("div",{staticClass:"name"},[a("span",[e._v(e._s(t.row.fromInfo&&(t.row.fromInfo.name||t.row.fromInfo.groupName)))]),a("div",{staticClass:"cus-dept"},[e._v(e._s(t.row.fromInfo&&e.departmentList[t.row.fromInfo.mainDepartment]?e.departmentList[t.row.fromInfo.mainDepartment].name:""))])])]):e._e()]}}])}),a("el-table-column",{attrs:{label:"接收者"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.toListInfo?a("div",{class:(t.row.toListInfo&&t.row.toListInfo.type?"user-item-center":"")+" user-item"},[a("img",{attrs:{src:t.row.toListInfo.avatar||t.row.toListInfo.avatarMediaid||i("3cb6")},on:{error:e.defImg}}),a("div",{staticClass:"name"},[a("span",[e._v(e._s(t.row.toListInfo&&(t.row.toListInfo.name||t.row.toListInfo.groupName)))]),a("span",{class:t.row.toListInfo.type===e.wxType?"wx-type-flag":"customer-type"},[e._v(e._s(e.renderUserInfo(t.row.toListInfo)))]),a("div",{staticClass:"cus-dept"},[e._v(e._s(t.row.toListInfo&&e.departmentList[t.row.toListInfo.mainDepartment]?e.departmentList[t.row.toListInfo.mainDepartment].name:""))])])]):e._e()]}}])}),a("el-table-column",{attrs:{label:"敏感词"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pattern_words||t.row.patternWords))])]}}])}),a("el-table-column",{attrs:{prop:"content",label:"消息内容"}}),a("el-table-column",{attrs:{prop:"msgtime",label:"发送时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e.parseTime(t.row.msgtime)))])]}}])}),a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.viewContext(i)}}},[e._v("查看上下文")])]}}])})],2),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.form.pageNum,limit:e.form.pageSize,disabled:e.loading},on:{"update:page":function(t){return e.$set(e.form,"pageNum",t)},"update:limit":function(t){return e.$set(e.form,"pageSize",t)},pagination:function(t){return e.getSensitiveList()}}}),a("SelectUser",{attrs:{visible:e.dialogVisibleSelectUser,title:"选择添加人","is-sigle-select":!0,"selected-user-list":e.queryUser},on:{"update:visible":function(t){e.dialogVisibleSelectUser=t},success:e.selectedUser}})]},proxy:!0}])})],1),a("el-tab-pane",{attrs:{label:"敏感词设置",name:"settings"}},[a("set-sensitive-word")],1),a("CheckContext",{attrs:{visible:e.checkContextVisible,"check-context-query":e.checkContextQuery},on:{"update:visible":function(t){e.checkContextVisible=t}}})],1)},n=[],r=i("c7eb"),s=i("1da1"),o=(i("d81d"),i("a9e3"),i("d3b7"),i("c677")),l=i("c958"),c=i("dd70"),u=i("5efd"),d=i("b66d"),p=i("e77d"),f=i("cf45"),A=i("96d5"),h=i("e2e0"),m={components:{SelectUser:l["a"],setSensitiveWord:u["default"],RightContainer:d["a"],EmptyDefaultIcon:p["a"],CheckContext:A["default"]},mixins:[h["a"]],data:function(){return{activeName:"record",form:{pageSize:c["Ic"],pageNum:1,scopeType:"",auditScopeId:"",keyword:""},selectDate:"",dateRangeValue:"",tableData:[],queryUser:[],total:0,dialogVisibleSelectUser:!1,floorRange:"全部",displayOptions:[{value:"0",label:"全部"},{value:"1",label:"已发送"},{value:"2",label:"已撤回"},{value:"3",label:"已删除"}],STATUS_MAP:{0:"全部",1:"已发送",2:"已撤回",3:"已删除"},wxType:c["Cd"],departmentList:[],checkContextVisible:!1,checkContextQuery:null,loading:!1}},mounted:function(){this.getSensitiveList()},created:function(){this.getDepartmentList()},methods:{viewContext:function(e){this.checkContextQuery={msgId:e.msgId,fromId:(null===e||void 0===e?void 0:e.fromInfo.userId)||(null===e||void 0===e?void 0:e.fromInfo.externalUserid)},e.roomId?this.checkContextQuery.roomId=e.roomId:this.checkContextQuery.receiveId=(null===e||void 0===e?void 0:e.toListInfo.userId)||(null===e||void 0===e?void 0:e.toListInfo.externalUserid),this.checkContextVisible=!0},getDepartmentList:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){var i,a,n;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("GetDepartmentList");case 2:if(i=t.sent,a={},i.length>0)for(n=0;n<i.length;n++)a[i[n].id]=i[n];e.departmentList=a;case 6:case"end":return t.stop()}}),t)})))()},getSensitiveList:function(e){var t=this;e&&(this.form.pageNum=e),this.form.scopeType=c["Vc"]["personal"],this.loading=!0,o["c"](this.form).then((function(e){t.tableData=e.rows,t.total=Number(e.total)})).finally((function(){t.modifyButtonStatus(),t.loading=!1}))},chechName:function(e){this.floorRange="0"===e?"全部":"1"===e?"已发送":"2"===e?"已撤回":"已删除"},defImg:function(e){var t=e.srcElement;t.src=i("3cb6"),t.onerror=null},selectedUser:function(e){this.queryUser=e,this.form.auditScopeId=e.map((function(e){return e.userId}))+""},resetQuery:function(){this.form={pageSize:c["Ic"],pageNum:1,scopeType:"",auditScopeId:"",keyword:""},this.queryUser=[],this.getSensitiveList(1)},renderUserInfo:function(e){return Object(f["o"])(e)}}},g=m,v=(i("4321"),i("2877")),b=Object(v["a"])(g,a,n,!1,null,"129fc5ae",null);t["default"]=b.exports},d15e:function(e,t,i){"use strict";i("71b2")},d1b0:function(e,t,i){e.exports={menuText:"#333",menuActiveText:"#333",subMenuActiveText:"#333",menuBg:"#fff",menuHover:"#fafafa",subMenuBg:"#fff",subMenuHover:"#fafafa",sideBarWidth:"250px"}},d239:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"appid-preview-div"},[i("div",{staticClass:"title"},[e._v(e._s(e.title))]),i("div",{staticClass:"cover-div"},[i("el-image",{staticClass:"cover-img",attrs:{src:e.coverUrl,fit:"cover"}},[i("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[i("svg",{staticClass:"icon-mini-app",attrs:{width:25,height:25}},[i("use",{attrs:{href:"#icon-mini-app"}})])])])],1),e._m(0)])},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"desc"},[i("i",{staticClass:"iconfont icon-mini-app"}),i("span",[e._v("小程序")])])}],r={name:"",components:{},props:{title:{type:String,default:""},coverUrl:{type:String,default:""}},data:function(){return{}},created:function(){},mounted:function(){}},s=r,o=(i("7bc1"),i("2877")),l=Object(o["a"])(s,a,n,!1,null,"80171ade",null);t["default"]=l.exports},d23a:function(e,t,i){},d29d:function(e,t,i){},d2d3:function(e,t,i){"use strict";i("07dc")},d331:function(e,t){},d3707:function(e,t,i){},d382:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"page"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.list,"tooltip-effect":"dark"}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{text:"暂无数据"}})],1),"customer"===e.type?i("el-table-column",{attrs:{prop:"customerName",label:"客户"}}):i("el-table-column",{attrs:{prop:"groupName",label:"客户群"}}),i("el-table-column",{attrs:{prop:"customer"===e.type?"takeUserName":"newOwnerName",label:"继承员工"}}),i("el-table-column",{attrs:{prop:"mainDepartmentName",label:"继承员工所属部门","show-overflow-tooltip":""}}),i("el-table-column",{attrs:{prop:"allocateTime",label:"继承时间","show-overflow-tooltip":""}}),i("el-table-column",{attrs:{prop:"status",label:"分配结果","show-overflow-tooltip":""},scopedSlots:e._u([{key:"header",fn:function(){return[i("span",[e._v("分配结果")]),i("el-popover",{attrs:{placement:"top-start",content:"分配成功仅表示客户/客户群进入分配流程,并不代表最终分配成功",trigger:"hover","popper-class":"tip-popover"}},[i("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"14px"},attrs:{slot:"reference"},slot:"reference"})])]},proxy:!0},{key:"default",fn:function(t){return[i("div",[e._v(e._s(e.getInheritStatusText(t.row)))])]}}])}),i("el-table-column",{attrs:{prop:"failReason",label:"备注","show-overflow-tooltip":""}}),i("el-table-column",{attrs:{label:"操作",width:"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:"customer"===e.type?["customerManage:customer:view"]:["customerManage:group:view"],expression:"type === 'customer' ? ['customerManage:customer:view'] : ['customerManage:group:view']"}],attrs:{size:"small",type:"text"},on:{click:function(i){"customer"===e.type?e.gotoDetail(t,"customer"):e.gotoDetail(t,"group")}}},[e._v("详情")]),e.showReAllocate(t.row)?i("el-button",{attrs:{size:"small",type:"text"},on:{click:function(){return e.reAllocate(t)}}},[e._v("重新分配")]):e._e()]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.query.pageNum,disabled:e.loading,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}}),i("AllocateModal",{attrs:{"dialog-visible-select-user":e.dialogVisibleSelectUser,"current-rows":e.currentRows,"get-list":e.getList,type:"group"===e.type?"reAllocateCustomerGroup":"reAllocateCustomer"},on:{"update:dialogVisibleSelectUser":function(t){e.dialogVisibleSelectUser=t},"update:dialog-visible-select-user":function(t){e.dialogVisibleSelectUser=t}}})],1)},n=[],r=(i("d3b7"),i("afcf")),s=i("dd70"),o=i("e753"),l=i("e77d"),c=i("56ae"),u=2,d="0",p={name:"AllocatedStaffDetailList",components:{EmptyDefaultIcon:l["a"],AllocateModal:c["default"]},props:{dateRange:{type:Array,default:function(){return[]}},type:{type:String,default:"customer"},modifyButtonStatus:{type:Function,default:null}},data:function(){return{query:{pageNum:1,pageSize:s["Ic"],beginTime:void 0,endTime:void 0},loading:!1,total:0,list:[],dialogVisibleSelectUser:!1,currentRows:[]}},computed:{},watch:{dateRange:function(e,t){0===e.length&&t.length===u&&this.getList()}},created:function(){},mounted:function(){this.query.recordId=this.$route.query.id,this.getList()},methods:{getList:function(e){var t=this;this.dateRange&&this.dateRange.length===u?(this.query.beginTime=this.dateRange[0],this.query.endTime=this.dateRange[1]):(this.query.beginTime="",this.query.endTime=""),e&&(this.query.pageNum=e),this.loading=!0,("customer"===this.type?r["b"]:r["c"])(this.query).then((function(e){var i=e.rows,a=e.total;t.list=i,t.total=+a})).finally((function(){t.modifyButtonStatus(),t.loading=!1}))},gotoDetail:function(e,t){"group"===t?this.$router.push({path:"/customerManage/customerCenter/groupDetail",query:e.row}):this.$router.push({path:o["b"],query:{id:e.row.externalUserid,userId:e.row.handoverUserId,prePageType:"allocatedStaffDetailList",dimissionTime:e.row.dimissionTime}})},getInheritStatusText:function(e){var t;return null!==(t=s["N"][e.status])&&void 0!==t?t:(null===e||void 0===e?void 0:e.allocateResult)===d?"失败":"成功"},showReAllocate:function(e){return e.status?e.status>s["Fb"]:e.allocateResult===d},reAllocate:function(e){this.dialogVisibleSelectUser=!0,e.row.userId||(e.row.userId=e.row.takeOverUserId||e.row.oldOwner),this.currentRows=[e.row]}}},f=p,A=i("2877"),h=Object(A["a"])(f,a,n,!1,null,"82768b2e",null);t["default"]=h.exports},d390:function(e,t,i){},d394:function(e,t,i){"use strict";i("31d5")},d3cb:function(e,t,i){},d3ee:function(e,t,i){"use strict";i("bbf6")},d3fc:function(e,t,i){"use strict";i("db9c")},d41a:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[i("el-form-item",{attrs:{label:"所属员工",prop:"empleCodeId"}},[i("el-input",{attrs:{placeholder:"请选择所属员工",clearable:"",size:"small"},model:{value:e.queryParams.empleCodeId,callback:function(t){e.$set(e.queryParams,"empleCodeId",t)},expression:"queryParams.empleCodeId"}})],1),i("el-form-item",{attrs:{label:"直播名称",prop:"zbName"}},[i("el-input",{attrs:{placeholder:"请输入直播名称",clearable:"",size:"small"},model:{value:e.queryParams.zbName,callback:function(t){e.$set(e.queryParams,"zbName",t)},expression:"queryParams.zbName"}})],1),i("el-form-item",{attrs:{label:"签到名称",prop:"signinName"}},[i("el-input",{attrs:{placeholder:"请输入签到码名称",clearable:"",size:"small"},model:{value:e.queryParams.signinName,callback:function(t){e.$set(e.queryParams,"signinName",t)},expression:"queryParams.signinName"}})],1),i("el-form-item",{attrs:{label:"活动名称",prop:"name"}},[i("el-input",{attrs:{placeholder:"请输入活动名称",clearable:"",size:"small"},model:{value:e.queryParams.name,callback:function(t){e.$set(e.queryParams,"name",t)},expression:"queryParams.name"}})],1),i("el-form-item",{attrs:{label:"培训时间",prop:"trainingTime"}},[i("el-date-picker",{attrs:{clearable:"",size:"small",type:"date","value-format":"yyyy-MM-dd",placeholder:"选择培训时间"},model:{value:e.queryParams.trainingTime,callback:function(t){e.$set(e.queryParams,"trainingTime",t)},expression:"queryParams.trainingTime"}})],1),i("el-form-item",{attrs:{label:"结束时间",prop:"endTime"}},[i("el-date-picker",{attrs:{clearable:"",size:"small",type:"date","value-format":"yyyy-MM-dd",placeholder:"选择结束时间"},model:{value:e.queryParams.endTime,callback:function(t){e.$set(e.queryParams,"endTime",t)},expression:"queryParams.endTime"}})],1),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),i("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),i("el-row",{staticClass:"mb8",attrs:{gutter:10}},[i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["siginCode:siginCode:add"],expression:"['siginCode:siginCode:add']"}],attrs:{type:"primary",plain:"",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1),i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["siginCode:siginCode:edit"],expression:"['siginCode:siginCode:edit']"}],attrs:{type:"success",plain:"",icon:"el-icon-edit",size:"mini",disabled:e.single},on:{click:e.handleUpdate}},[e._v("修改")])],1),i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["siginCode:siginCode:remove"],expression:"['siginCode:siginCode:remove']"}],attrs:{type:"danger",plain:"",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),i("el-col",{attrs:{span:1.5}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["siginCode:siginCode:export"],expression:"['siginCode:siginCode:export']"}],attrs:{type:"warning",plain:"",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1),i("right-toolbar",{attrs:{"show-search":e.showSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:e.getList}})],1),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.siginCodeList},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),i("el-table-column",{attrs:{label:"签到码",align:"center",prop:"id"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.openQrCode(t.row)}}},[e._v("查看")])]}}])}),i("el-table-column",{attrs:{label:"签到码名称",width:"150",align:"center",prop:"signinName"}}),i("el-table-column",{attrs:{label:"所属区域",align:"center",prop:"region"}}),i("el-table-column",{attrs:{label:"活动名称",align:"center",prop:"name"}}),i("el-table-column",{attrs:{label:"活码人员",align:"center",prop:"empleUserName"}}),i("el-table-column",{attrs:{label:"签到数",align:"center",prop:"signinNum"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.signinNum?i("span",{staticStyle:{color:"#2d8ff4"},on:{click:function(i){return e.openSiginKh(t.row)}}},[e._v(e._s(t.row.signinNum))]):i("span",[e._v(e._s(0))])]}}])}),i("el-table-column",{attrs:{label:"添加好友数",align:"center",prop:"friendNun"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.friendNun?i("span",{staticStyle:{color:"#2d8ff4"}},[e._v(e._s(t.row.friendNun))]):i("span",[e._v(e._s(0))])]}}])}),i("el-table-column",{attrs:{label:"负责人",align:"center",prop:"userName"}}),i("el-table-column",{attrs:{label:"直播名称",align:"center",prop:"zbName"}}),i("el-table-column",{attrs:{label:"签到码有效期起",align:"center",prop:"beginTime",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e.parseTime(t.row.beginTime,"{y}-{m}-{d}")))])]}}])}),i("el-table-column",{attrs:{label:"签到码有效期止",align:"center",prop:"periodTime",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e.parseTime(t.row.periodTime,"{y}-{m}-{d}")))])]}}])}),i("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["siginCode:siginCode:edit"],expression:"['siginCode:siginCode:edit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-plus"},on:{click:function(i){return e.copy(t.row)}}},[e._v("复制")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["siginCode:siginCode:edit"],expression:"['siginCode:siginCode:edit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(i){return e.handleUpdate(t.row)}}},[e._v("修改")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["siginCode:siginCode:remove"],expression:"['siginCode:siginCode:remove']"}],attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("删除")])]}}])})],1),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),i("el-dialog",{attrs:{title:e.title,visible:e.open,width:"1000px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[i("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"150px"}},[i("p",{staticStyle:{"margin-left":"20px"}},[i("b",[e._v("基本信息")])]),i("el-form-item",{attrs:{label:"签到码标题",prop:"signinName"}},[i("el-input",{attrs:{placeholder:"请输入签到码名称"},model:{value:e.form.signinName,callback:function(t){e.$set(e.form,"signinName",t)},expression:"form.signinName"}})],1),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{label:"所属区域",prop:"region"}},[i("el-select",{staticClass:"el-input-width",attrs:{placeholder:"请选择所属区域"},model:{value:e.form.region,callback:function(t){e.$set(e.form,"region",t)},expression:"form.region"}},[i("el-option",{attrs:{label:"江西",value:"江西"}}),i("el-option",{attrs:{label:"广州",value:"广州"}}),i("el-option",{attrs:{label:"河南",value:"河南"}})],1)],1)],1),i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{label:"负责人",prop:"userName"}},[i("div",{staticClass:"tag-input",on:{click:function(t){e.selectUserType="query"}}},[e.form.userName?[i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.form.userName))])]:i("span",{staticClass:"tag-place"},[e._v("请选择员工")])],2)])],1)],1),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{label:"培训开始时间",prop:"trainingTime"}},[i("el-date-picker",{attrs:{clearable:"",size:"small",type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择培训时间"},on:{change:e.timeChange},model:{value:e.form.trainingTime,callback:function(t){e.$set(e.form,"trainingTime",t)},expression:"form.trainingTime"}})],1)],1),i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{label:"培训结束时间",prop:"endTime"}},[i("el-date-picker",{attrs:{clearable:"",size:"small",type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择结束时间"},model:{value:e.form.endTime,callback:function(t){e.$set(e.form,"endTime",t)},expression:"form.endTime"}})],1)],1)],1),i("el-form-item",{attrs:{label:"培训地址",prop:"trainingAddress"}},[i("el-input",{attrs:{placeholder:"请输入活动地址"},model:{value:e.form.trainingAddress,callback:function(t){e.$set(e.form,"trainingAddress",t)},expression:"form.trainingAddress"}})],1),i("el-form-item",{attrs:{label:"直播小程序地址",prop:"zbImgUrl"}},[i("el-input",{attrs:{placeholder:"请输入直播小程序地址"},model:{value:e.form.zbImgUrl,callback:function(t){e.$set(e.form,"zbImgUrl",t)},expression:"form.zbImgUrl"}})],1),i("el-form-item",{attrs:{label:"需要指定学员的直播",prop:"zbName"}},[i("div",{staticClass:"tag-input-2",on:{click:function(t){e.selectZbList=!0}}},[e.form.zbName?i("span",[e._v(e._s(e.form.zbName))]):i("span",{staticClass:"tag-place"},[e._v("请选择指定直播")])])]),i("el-form-item",{attrs:{label:"说明",prop:"remark"}},[i("el-input",{attrs:{type:"textarea",placeholder:"请输入内容",maxlength:"300","show-word-limit":""},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1),i("p",{staticStyle:{"margin-left":"20px","margin-top":"20px"}},[i("b",[e._v("签到信息")])]),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{label:"签到类型",prop:"signinType"}},[i("el-radio",{attrs:{label:"0"},model:{value:e.form.signinType,callback:function(t){e.$set(e.form,"signinType",t)},expression:"form.signinType"}},[e._v("普通签到")]),i("el-radio",{attrs:{label:"1"},model:{value:e.form.signinType,callback:function(t){e.$set(e.form,"signinType",t)},expression:"form.signinType"}},[e._v("信息核对")])],1)],1),i("el-col",{attrs:{span:14}},[i("el-form-item",{attrs:{label:"签到流程",prop:"signinProcess"}},[i("el-radio",{attrs:{label:"0"},model:{value:e.form.signinProcess,callback:function(t){e.$set(e.form,"signinProcess",t)},expression:"form.signinProcess"}},[e._v("先签到后添加好友")]),i("el-radio",{attrs:{label:"1"},model:{value:e.form.signinProcess,callback:function(t){e.$set(e.form,"signinProcess",t)},expression:"form.signinProcess"}},[e._v("先添加好友后签到")])],1)],1)],1),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{label:"签到码有效期起",prop:"beginTime"}},[i("el-date-picker",{attrs:{clearable:"",size:"small",type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择签到码有效期起"},model:{value:e.form.beginTime,callback:function(t){e.$set(e.form,"beginTime",t)},expression:"form.beginTime"}})],1)],1),i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{label:"签到码有效期止",prop:"periodTime"}},[i("el-date-picker",{attrs:{clearable:"",size:"small",type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择签到码有效期止"},model:{value:e.form.periodTime,callback:function(t){e.$set(e.form,"periodTime",t)},expression:"form.periodTime"}})],1)],1)],1),i("p",{staticStyle:{"margin-left":"20px","margin-top":"20px"}},[i("b",[e._v("签到页模板")])]),i("el-form-item",{attrs:{label:"模板文件",prop:"qdTemplate"}},[i("el-radio",{attrs:{size:"large",label:"swj"},model:{value:e.form.qdTemplate,callback:function(t){e.$set(e.form,"qdTemplate",t)},expression:"form.qdTemplate"}},[e._v("税局直播")]),i("el-radio",{attrs:{size:"large",label:"cw"},model:{value:e.form.qdTemplate,callback:function(t){e.$set(e.form,"qdTemplate",t)},expression:"form.qdTemplate"}},[e._v("财务直播")])],1),i("p",{staticStyle:{"margin-left":"20px","margin-top":"20px"}},[i("b",[e._v("员工活码")])]),i("el-form-item",{attrs:{label:"员工活码",prop:"name"}},[i("div",{staticClass:"tag-input-2",on:{click:function(t){e.selectEmpleList=!0}}},[e.form.name?i("span",[e._v(e._s(e.form.name))]):i("span",{staticClass:"tag-place"},[e._v("请选择指定员工活码")])])])],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),i("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1),i("SelectUser",{attrs:{"is-sigle-select":"",visible:"query"===e.selectUserType,title:"选择员工","selected-user-list":e.queryUser},on:{click:function(t){e.selectUserType="query"},success:e.submitSelectUser,close:function(t){e.selectUserType=""}}}),i("select-zb",{attrs:{visible:e.selectZbList},on:{close:function(t){e.selectZbList=!1},success:e.submitSelectZb}}),i("select-emple",{attrs:{visible:e.selectEmpleList},on:{close:function(t){e.selectEmpleList=!1},success:e.submitSelectEmple}}),i("sigin-kh",{attrs:{visible:e.khListVisible,data:e.khList,"total-k":e.totalK},on:{close:function(t){e.khListVisible=!1}}}),i("el-dialog",{attrs:{title:"查看二维码",visible:e.dialogVisible,width:"35%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("div",{staticClass:"kpewm-box",attrs:{id:"capture"}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:7}},[i("img",{attrs:{src:e.siginQrcode}})]),i("el-col",{attrs:{span:13}},[i("p",[i("b",[e._v("活动名称:")]),e._v(e._s(e.sigindata.signinName))]),i("p",[i("b",[e._v("负责人:")]),e._v(e._s(e.sigindata.userName))]),i("p",[i("b",[e._v("签到有效期:")]),e._v(e._s(e.parseTime(e.sigindata.beginTime,"{y}-{m}-{d}"))+" ~ "+e._s(e.parseTime(e.sigindata.periodTime,"{y}-{m}-{d}")))])])],1)],1),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.xzewm(e.sigindata.signinName)}}},[e._v("下 载")])],1)])],1)},n=[],r=(i("53ca"),i("c7eb")),s=i("1da1"),o=(i("d81d"),i("b0c0"),i("d3b7"),i("159b"),i("b775"));function l(e){return Object(o["a"])({url:"/xiaoe/siginCode/list",method:"get",params:e})}function c(e){return Object(o["a"])({url:"/xiaoe/siginCode/"+e,method:"get"})}function u(e){return Object(o["a"])({url:"/xiaoe/siginCode",method:"post",data:e})}function d(e){return Object(o["a"])({url:"/xiaoe/siginCode",method:"put",data:e})}function p(e){return Object(o["a"])({url:"/xiaoe/siginCode/"+e,method:"delete"})}function f(e){return Object(o["a"])({url:"/xiaoe/siginCode/export",method:"get",params:e})}var A=i("cf45"),h=i("c958"),m=(i("cf80"),i("ef6c")),g=i("49bc"),v=i("c151"),b=i("bcef"),y=(i("d044"),i("d055")),_=i.n(y),w=i("42b0"),C=(i("7b1d"),i("c0e9")),x=i.n(C),k={name:"SiginCode",components:{SelectEmple:v["default"],SelectUser:h["a"],SelectZb:g["default"],SiginKh:b["default"]},data:function(){var e=this,t=function(t,i,a){return e.form.userName?a():a(new Error("负责人不能为空"))},i=function(t,i,a){var n=e.form.beginTime;return n>i?a(new Error("过期时间不能小于开始时间")):a()},a=function(t,i,a){var n=e.form.trainingTime;return n>i?a(new Error("结束时间不能小于开始时间")):a()};return{canvasUrl2:null,queryUser:[],khListVisible:!1,khList:[],totalK:0,siginId:null,selectUserType:null,selectZbList:!1,selectEmpleList:!1,sigindata:{},loading:!0,dialogVisible:!1,ids:[],siginQrcode:null,single:!0,multiple:!0,showSearch:!0,total:0,siginCodeList:[],title:"",open:!1,queryParams:{pageNum:1,pageSize:10,userId:void 0,zbId:void 0,empleCodeId:void 0,coursewareId:void 0,zbName:void 0,signinCode:void 0,signinName:void 0,region:void 0,name:void 0,trainingTime:void 0,endTime:void 0,beginTime:void 0,periodTime:void 0,signinNum:void 0,friendNun:void 0,signinType:void 0,signinProcess:void 0,userIds:void 0},form:{},rules:{signinProcess:[{required:!0,message:"请选择一个签到流程",trigger:"blur"}],region:[{required:!0,message:"所属区域不能为空",trigger:"blur"}],signinName:[{required:!0,message:"签到码标题不能为空",trigger:"blur"}],zbId:[{required:!0,message:"直播id不能为空",trigger:"blur"}],empleCodeId:[{required:!0,message:"员工活码id不能为空",trigger:"blur"}],updateTime:[{required:!0,message:"更新时间不能为空",trigger:"blur"}],name:[{required:!0,message:"员工活码不能为空",trigger:"blur"}],userName:[{required:!0,validator:t,trigger:"blur"}],periodTime:[{validator:i,trigger:"blur"}],endTime:[{validator:a,trigger:"blur"}],qdTemplate:[{required:!0,message:"签到页模板不能为空",trigger:"blur"}],zbImgUrl:[{required:!0,message:"直播小程序图片链接不能为空",trigger:"blur"}]}}},created:function(){this.getList()},methods:{parseTime:A["L"],getList:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,l(e.queryParams).then((function(t){e.siginCodeList=t.rows,e.total=t.total,e.siginCodeList.forEach((function(e,t,i){var a={pageNum:1,pageSize:10,siginId:e.id};Object(w["h"])(a).then((function(t){e.signinNum=t.total}))})),e.loading=!1}));case 3:case"end":return t.stop()}}),t)})))()},copy:function(e){var t=this;this.confirmModal({msg:"确定复制【"+e.signinName+"】信息?"},(function(){return c(e.id).then((function(e){t.form=e.data,t.form.id=null,u(t.form).then((function(e){t.msgSuccess("复制成功"),t.getList()}))}))}))},openSiginKh:function(e){var t=this,i={pageNum:1,pageSize:10,siginId:e.id};Object(w["h"])(i).then((function(e){for(var i=0;i<e.rows.length;i++)e.rows[i].unionId=window.btoa(e.rows[i].unionId);t.khList=e.rows,t.totalK=e.total,t.khListVisible=!0}))},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={id:void 0,userId:void 0,zbId:void 0,empleCodeId:void 0,coursewareId:void 0,zbName:void 0,signinCode:void 0,signinName:void 0,region:void 0,name:void 0,trainingTime:void 0,endTime:void 0,beginTime:void 0,periodTime:void 0,createTime:void 0,updateTime:void 0,signinNum:void 0,friendNun:void 0,signinType:void 0,signinProcess:void 0,remark:void 0,zbImgUrl:void 0},this.resetForm("form")},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},getUserName:function(e){Object(m["f"])({userId:e}).then((function(e){if(e.data)return e.data.name}))},timeChange:function(){var e=new Date(this.form.trainingTime);e=e.setHours(e.getHours()+2),this.form.endTime=Object(A["L"])(new Date(e))},openQrCode:function(e){var t=this;this.siginQrcode=null,this.sigindata={};var i="https://crm.fxjcyl.com/qdinfoApp?id="+e.id;_.a.toDataURL(i).then((function(i){t.siginQrcode=i,t.sigindata=e,t.dialogVisible=!0}))},xzewm:function(e){var t=this;return Object(s["a"])(Object(r["a"])().mark((function i(){return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,x()(document.querySelector("#capture"),{useCORS:!0,allowTaint:!1}).then((function(i){t.canvasUrl2=i.toDataURL("image/png");var a=document.createElement("a");a.href=t.canvasUrl2,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a)}));case 2:case 3:case"end":return i.stop()}}),i)})))()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.id})),this.single=1!==e.length,this.multiple=!e.length},handleAdd:function(){this.reset(),this.open=!0,this.title="添加签到码信息详情"},handleUpdate:function(e){var t=this;this.reset();var i=e.id||this.ids;c(i).then((function(e){t.form=e.data,t.open=!0,t.title="修改签到码信息详情"}))},submitSelectUser:function(e){var t,i;"query"===this.selectUserType&&(this.queryUser=e,this.form.userId=null===(t=e[0])||void 0===t?void 0:t.userId,this.form.userName=null===(i=e[0])||void 0===i?void 0:i.name,this.selectUserType="")},submitSelectZb:function(e){this.form.zbId=e.id,this.form.skuId=e.skuId,this.form.zbName=e.title,this.selectZbList=!1},submitSelectEmple:function(e){this.form.empleCodeId=e.id,this.form.name=e.scenario,this.form.empleUserName=e.useUserName,this.form.empleUrlImg=e.qrCode,this.selectEmpleList=!1},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(null!=e.form.id?d(e.form).then((function(t){e.msgSuccess("修改成功"),e.open=!1,e.getList()})):u(e.form).then((function(t){e.msgSuccess("新增成功"),e.open=!1,e.getList()})))}))},handleDelete:function(e){var t=this,i=e.id||this.ids;this.$confirm('是否确认删除签到码信息详情编号为"'+i+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return p(i)})).then((function(){t.getList(),t.msgSuccess("删除成功")}))},handleExport:function(){var e=this,t=this.queryParams;this.$confirm("是否确认导出所有签到码信息详情数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return f(t)})).then((function(t){e.download(t.msg)}))}}},T=k,S=(i("a6d1"),i("2877")),I=Object(S["a"])(T,a,n,!1,null,"cf7dc45c",null);t["default"]=I.exports},d45f:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",e._g(e._b({staticClass:"import-file-div",attrs:{width:"500px","append-to-body":"",title:"导入批量打标签任务","close-on-click-modal":e.step===e.SECOND_STEP},on:{close:e.close}},"el-dialog",e.$attrs,!1),e.$listeners),[i("div",{directives:[{name:"show",rawName:"v-show",value:e.step===e.FIRST_STEP,expression:"step === FIRST_STEP"}],staticClass:"first-step"},[i("div",{staticClass:"download-template"},[i("div",[e._v("1. 下载模板,将要打标签的客户信息填入模板中")]),i("el-link",{staticClass:"download-div theme-text-color",attrs:{href:e.href,underline:!1,target:"_blank",download:e.href}},[i("svg-icon",{attrs:{"icon-class":"download-icon","class-name":"theme-text-color"}}),e._v(" 下载模板 ")],1)],1),i("div",{staticClass:"upload-template"},[e._v(" 2. 上传填写好的模板文件 "),i("el-form",{ref:"form",attrs:{model:e.uploadForm,rules:e.rules,"label-width":"80px"}},[i("el-form-item",{attrs:{label:"任务名称",prop:"taskName"}},[i("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请填写任务名称,方便管理",maxlength:"32","show-word-limit":""},model:{value:e.uploadForm.taskName,callback:function(t){e.$set(e.uploadForm,"taskName",t)},expression:"uploadForm.taskName"}})],1),i("el-form-item",{attrs:{label:"客户标签",prop:"tag"}},[i("el-button",{staticClass:"mr10",attrs:{icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.selectTagVisible=!0}}},[e._v("添加标签")]),e._l(e.selectedTags,(function(t,a){return i("el-tag",{key:a,staticClass:"mt5",attrs:{type:"info",closable:"",size:"medium"},on:{close:function(i){return e.deleteTag(t)}}},[e._v(e._s(t.name))])}))],2),i("el-form-item",{attrs:{label:"模板文件",prop:"file"}},[i("el-upload",{staticClass:"upload-div",attrs:{"http-request":e.customUploadFile,"on-remove":e.removeFile,action:"","file-list":e.fileList,"before-upload":e.handleBeforeUpload}},[i("el-button",{directives:[{name:"show",rawName:"v-show",value:0===e.fileList.length,expression:"fileList.length === 0"}],staticClass:"upload-info",attrs:{size:"mini",type:"primary"}},[i("span",[e._v("上传")]),i("i",{staticClass:"iconfont icon-upload",staticStyle:{color:"#fff"}})])],1)],1)],1)],1)]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.step===e.SECOND_STEP,expression:"step === SECOND_STEP"}],staticClass:"second-step"},[i("div",{staticClass:"total"},[e._v(" 导入完成,导入"),i("span",{staticClass:"success theme-text-color"},[e._v("成功"+e._s(e.importInfo.successNum||0)+"条")]),e._v(",导入"),i("span",{staticClass:"fail"},[e._v("失败"+e._s(e.importInfo.failNum||0)+"条")])]),e.importInfo&&e.importInfo.failNum>0?i("div",{staticClass:"error-div"},[i("div",{staticClass:"err-tip"},[e._v("下载导入失败报告,查看错误原因")]),i("el-link",{staticClass:"download-div theme-text-color",attrs:{underline:!1,icon:"el-icon-download"},on:{click:function(t){return e.downloadErrFile(e.importInfo.url)}}},[e._v("下载导入失败报告")])],1):e._e()]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.step===e.FIRST_STEP,expression:"step === FIRST_STEP"}],attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.close}},[e._v("取消")]),i("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.handelConfirm}},[e._v("确定")])],1),i("SelectTag",{attrs:{type:"query",title:"选择标签","is-show-add":!0,visible:e.selectTagVisible,selected:e.selectedTags},on:{"update:visible":function(t){e.selectTagVisible=t},success:e.submitSelectTag}})],1)},n=[],r=i("2909"),s=(i("c740"),i("d81d"),i("a434"),i("b0c0"),i("dca8"),i("d3b7"),i("dd70")),o=i("989b"),l=i("eccc"),c=i("aada"),u=1,d=2,p={name:"",components:{SelectTag:c["a"]},props:{href:{type:String,default:""}},data:function(){var e=this;return{FIRST_STEP:u,SECOND_STEP:d,step:u,FILE_EXCEL_TYPE:s["U"],fileList:[],uploadFile:null,importInfo:{},uploadForm:{},selectedTags:[],loading:!1,rules:Object.freeze({taskName:[{required:!0,message:"请填写任务名称",trigger:"blur"}],tag:[{required:!0,validator:function(t,i,a){return e.selectedTags.length?a():a(new Error("请选择标签"))},trigger:"blur"}],file:[{required:!0,validator:function(t,i,a){return e.fileList.length?a():a(new Error("请上传文件"))},trigger:"blur"}]}),selectTagVisible:!1}},created:function(){},mounted:function(){},methods:{close:function(){this.step===d&&this.$emit("onSearch"),this.resetData(),this.$emit("update:visible",!1)},clearValidate:function(e){this.$refs["form"].clearValidate(e)},handelConfirm:function(){var e=this;this.$refs["form"].validate((function(t){if(t){var i=new FormData;i.append("file",e.uploadFile),i.append("taskName",e.uploadForm.taskName),i.append("tagIds",e.uploadForm.tagIds),e.loading=!0,Object(l["c"])(i).then((function(t){e.importInfo=t.data,e.step=d})).finally((function(){e.loading=!1}))}}))},resetData:function(){this.uploadForm={},this.step=u,this.selectedTags=[],this.removeFile(),this.$refs["form"].resetFields()},removeFile:function(){this.fileList=[],this.uploadFile=null},handleBeforeUpload:function(e){var t="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===e.type;return t||this.msgError("上传文件只能是 xlsx 格式!"),t},customUploadFile:function(e){var t=e.file;this.uploadFile=t,this.clearValidate("file"),this.fileList=[{name:t.name}]},submitSelectTag:function(e){this.uploadForm.tagIds=e.map((function(e){return e.tagId})),this.selectedTags=Object(r["a"])(e),this.selectTagVisible=!1,this.clearValidate("tag")},deleteTag:function(e){var t=this.selectedTags.findIndex((function(t){return t.tagId===e.tagId}));this.selectedTags.splice(t,1),this.uploadForm.tagIds=this.selectedTags.map((function(e){return e.tagId}))},downloadErrFile:function(e){Object(o["a"])(e)}}},f=p,A=(i("a6bb"),i("2877")),h=Object(A["a"])(f,a,n,!1,null,"4a82c744",null);t["default"]=h.exports},d4f4:function(e,t,i){},d4fd:function(e,t,i){},d544:function(e,t,i){e.exports=i.p+"static/img/contact-step4-1.02cb7f54.jpg"},d5d1:function(e,t,i){},d60a:function(e,t){e.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},d61c:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"part"},[a("div",{staticClass:"content-text"},[e._v(" (1)登录企业微信后台 "),a("el-link",{attrs:{type:"primary",href:"https://work.weixin.qq.com/wework_admin/frame#apps",target:"_blank"}},[e._v("【应用管理】")]),e._v(",进入联络易应用,点 击“配置”聊天工具栏。 ")],1),a("el-image",{staticClass:"part-img",attrs:{src:i("e60f"),"preview-src-list":[i("e60f")]}})],1),a("div",{staticClass:"part"},[a("div",{staticClass:"content-text"},[e._v(" (2)点击“配置页面”按钮,将【聊天工具栏】生成的链接分别复制并填入弹窗,完成配置。 ")]),a("el-image",{staticClass:"part-img",attrs:{src:i("8c58"),"preview-src-list":[i("8c58")]}})],1)])},n=[],r={},s=r,o=i("2877"),l=Object(o["a"])(s,a,n,!1,null,"2c9e5b05",null);t["default"]=l.exports},d652:function(e,t,i){"use strict";i("ede8")},d68f:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{ref:"tuiImageEditor",staticStyle:{width:"100%",height:"700px"}}),i("select-material",{ref:"selectMaterial",attrs:{type:"1","show-arr":[1],visible:e.visible},on:{"update:visible":function(t){e.visible=t},success:e.getMaterial}})],1)},n=[],r=i("53ca"),s=i("c7eb"),o=i("1da1"),l=(i("99af"),i("cb29"),i("b0c0"),i("e9c4"),i("b64b"),i("d3b7"),i("cc71"),i("c5d0"),i("159b"),i("abe2")),c=i.n(l),u=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"选择素材",visible:e.Pvisible,width:"650px","close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.Pvisible=t}}},[i("div",[i("el-tabs",{model:{value:e.Ptype,callback:function(t){e.Ptype=t},expression:"Ptype"}},[e.showArr.includes(0)?i("el-tab-pane",{attrs:{name:"0"}},[i("span",{attrs:{slot:"label"},slot:"label"},[i("i",{staticClass:"el-icon-date"}),e._v(" 文本 ")]),i("list",{attrs:{type:"4"},on:{change:e.changeText}})],1):e._e(),e.showArr.includes(1)?i("el-tab-pane",{attrs:{name:"1"}},[i("span",{attrs:{slot:"label"},slot:"label"},[i("i",{staticClass:"el-icon-date"}),e._v(" 图片 ")]),i("list",{attrs:{type:"0"},on:{change:e.changeImage}})],1):e._e()],1)],1),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.Pvisible=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)])},d=[],p=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-form",{ref:"form",attrs:{model:e.query,"label-width":"68px"}},[i("el-form-item",{attrs:{label:"选择分组"}},[i("el-cascader",{attrs:{options:e.treeData,props:e.groupProps},model:{value:e.query.categoryId,callback:function(t){e.$set(e.query,"categoryId",t)},expression:"query.categoryId"}}),i("el-input",{staticClass:"ml10 mr10",staticStyle:{width:"150px"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(1)}},model:{value:e.query.search,callback:function(t){e.$set(e.query,"search",t)},expression:"query.search"}}),i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.getList(1)}}},[e._v("查询")])],1)],1),4==e.type?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"table-list",attrs:{data:e.list,"show-header":!1}},[i("el-table-column",{attrs:{width:"30"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-radio",{attrs:{label:t.row},model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[e._v("'")])]}}],null,!1,1641004812)}),i("el-table-column",{attrs:{prop:"content"}})],1):e._e(),0==e.type?i("el-radio-group",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"img-wrap",model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},e._l(e.list,(function(t,a){return i("el-radio",{key:a,attrs:{label:t}},[i("div",{staticClass:"ma-img ac mb20"},[i("el-card",{attrs:{shadow:"hover","body-style":"padding: 0px;"}},[i("img",{staticClass:"img-li",attrs:{src:t.materialUrl,alt:""}})]),i("div",{staticClass:"mt10 toe"},[e._v(e._s(t.materialName))])],1)])})),1):e._e(),i("el-pagination",{staticClass:"fr",attrs:{"current-page":e.query.pageNum,"page-size":e.query.pageSize,layout:"prev, pager, next",total:e.total},on:{"current-change":e.getList}})],1)},f=[],A=i("9094"),h=i("dd70"),m=1,g="4",v={components:{},props:{type:{type:String,default:"4"}},data:function(){return{loading:!0,query:{pageNum:m,pageSize:h["Ic"],categoryId:"",search:"",mediaType:g,isExpire:!1},list:[],total:0,treeData:[],treeProps:{children:"children",label:"name"},groupProps:{checkStrictly:!0,children:"children",label:"name",value:"id",emitPath:!1},radio:""}},computed:{},watch:{radio:function(e){this.$emit("change",e)}},created:function(){this.query.mediaType=this.type,this.getTree(),this.getList()},mounted:function(){},methods:{getTree:function(){var e=this;Object(A["i"])(this.type).then((function(t){var i=t.data;e.treeData=i}))},getList:function(e){var t=this;e&&(this.query.pageNum=e),this.loading=!0,Object(A["e"])(this.query).then((function(e){var i=e.rows,a=e.total;t.list=i,t.total=+a,t.loading=!1,t.$emit("listChange",t.list)})).catch((function(){t.loading=!1}))}}},b=v,y=(i("2dfa"),i("2877")),_=Object(y["a"])(b,p,f,!1,null,"0e72e41c",null),w=_.exports,C={components:{list:w},props:{visible:{type:Boolean,default:!1},type:{type:String,default:"0"},showArr:{type:Array,default:function(){return[0,1]}}},data:function(){return{text:{},image:{},file:{}}},computed:{Pvisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}},Ptype:{get:function(){return this.type},set:function(e){this.$emit("update:type",e)}}},watch:{},created:function(){},mounted:function(){},methods:{submit:function(){this.Pvisible=!1,this.$emit("success",this.text,this.image,this.file)},changeText:function(e){this.text=e},changeImage:function(e){this.image=e}}},x=C,k=(i("a0a1"),Object(y["a"])(x,u,d,!1,null,"4c7ac11b",null)),T=k.exports,S=i("5118"),I=i("fec2"),E=i.n(I),O=i("3cf1"),B=i.n(O),L={includeUI:{initMenu:"filter"}},D={cssMaxHeight:700},M={name:"PosterPage",components:{selectMaterial:T},props:{btnContainer:null,includeUi:{type:Boolean,default:!0},options:{type:Object,default:function(){return D}}},data:function(){return{qrCodeUrl:"http://"+location.hostname+"/static/img/qrCodeImage.a6d01316.png",visible:!1}},mounted:function(){var e=this,t=D;if(this.includeUi&&(t=Object.assign(L,this.options)),this.editorInstance,this.editorInstance=new c.a(this.$refs.tuiImageEditor,t),document.getElementsByClassName("tui-image-editor-header")[0].innerHTML="",window.localStorage.getItem("record")){var i=JSON.parse(window.localStorage.getItem("record"));i.forEach((function(t){Object(S["setTimeout"])((function(){e.editorInstance.addIcon(t.type,t).then((function(e){})).catch((function(e){}))}),500)}))}this.editorInstance.events.addText=[],this.editorInstance._handlers.addText=null,this.editorInstance.ui._actions.text.modeChange=function(){},document.getElementsByClassName("tui-image-editor-submenu")[0].style.display="none",document.getElementsByClassName("tie-btn-text")[0].style.display="none",document.getElementsByClassName("tui-image-editor-main")[0].style.top="0",document.getElementsByClassName("tui-image-editor-align-wrap")[0].style.verticalAlign="top",this.initBtn(),this.addEventListener()},destroyed:function(){this.editorInstance.destroy(),this.editorInstance=null},methods:{getBackgroundUrl:function(e,t){var i=this;this.editorInstance.loadImageFromURL(e,"imagePoster").then(function(){var e=Object(o["a"])(Object(s["a"])().mark((function e(a){return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:try{i.editorInstance.addText("",{position:{x:-100,y:-100}}).then((function(e){})).catch((function(){}))}catch(a){}Object(S["setTimeout"])((function(){t.length&&i.reShowDisplay(t)}),500);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},reShowDisplay:function(e){var t=this;return Object(o["a"])(Object(s["a"])().mark((function i(){var a,n,r;return Object(s["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:a=0,n=e.length,r=null;case 3:if(!(a<n)){i.next=11;break}if(r=e[a],!r){i.next=8;break}return i.next=8,t.createReShowDisplay(r);case 8:a++,i.next=3;break;case 11:t.editorInstance.addText("",{position:{x:-100,y:-100}}),t.activateImageMode();case 13:case"end":return i.stop()}}),i)})))()},createReShowDisplay:function(e){var t=this;return new Promise((function(i){switch(e.type){case 1:t.showSubMenu("text"),t.activateTextMode(),t.editorInstance.addText(e.content,{position:{x:e.left,y:e.top}}).then(function(t){this.activeObjectId=t.id,t.left=e.left,t.top=e.top,t.fontSize=e.fontSize,t.fill=e.fontColor,t.textAlign=e.textAlign,this.getRecord(t),this.editorInstance.changeTextStyle(t.id,{fontSize:e.fontSize,fill:e.fontColor,textAlign:1===e.fontTextAlign?"left":2===e.fontTextAlign?"center":"right"}).then((function(){i()}))}.bind(t));break;case 2:case 3:t.activateImageMode(),t.editorInstance.addImageObject(2===e.type?e.imgPath:e.imgPath===t.qrCodeUrl?B.a:e.imgPath).then((function(a){t.activeObjectId=a.id;var n={};e.displayId=a.id,n.url=e.imgPath,n.randomId=a.id,n.objType=e.type,t.editorInstance.setObjectProperties(a.id,{left:e.left+e.width/2,top:e.top+e.height/2}).then((function(){var a={left:e.left+e.width/2,top:e.top+e.height/2,width:e.width,height:e.height,angle:e.rotate,id:e.displayId};t.getRecord(a),i()})),t.$emit("getImageData",n)}));break}}))},initBtn:function(){this.activeObjectId=null,this.btn_deleteAll=document.getElementsByClassName("tie-btn-deleteAll")[0],this.btn_deleteAll.name="deleteAll",this.btn_delete=document.getElementsByClassName("tie-btn-delete")[0],this.btn_delete.name="delete",this.btn_reset=document.getElementsByClassName("tie-btn-reset")[0],this.btn_reset.style.display="none",this.btn_redo=document.getElementsByClassName("tie-btn-redo")[0],this.btn_redo.name="redo",this.btn_undo=document.getElementsByClassName("tie-btn-undo")[0],this.btn_undo.name="undo",this.btnText=document.getElementById("btn-text"),this.btnText.name="btnText",this.btnImage=document.getElementById("btn-image"),this.btnImage.name="btnImage",this.btnQrCode=document.getElementById("btn-qrCode"),this.btnQrCode.name="btnQrCode",this.displayingSubMenu=null,this.textSubMenu=document.getElementById("text-sub-menu"),this.btnTextStyle=document.getElementsByClassName("btn-text-style"),this.btnClose=document.getElementsByClassName("close")[0],this.btnClose.name="btnClose",this.inputFontSizeRange=document.getElementById("input-font-size-range"),this.inputStrokeWidthRange=document.getElementById("input-stroke-width-range"),this.inputCheckTransparent=document.getElementById("input-check-transparent"),this.inputCheckGrayscale=document.getElementById("input-check-grayscale"),this.inputCheckInvert=document.getElementById("input-check-invert"),this.inputCheckSepia=document.getElementById("input-check-sepia"),this.inputCheckSepia2=document.getElementById("input-check-sepia2"),this.inputCheckSharpen=document.getElementById("input-check-sharpen"),this.inputCheckEmboss=document.getElementById("input-check-emboss"),this.inputCheckRemoveWhite=document.getElementById("input-check-remove-white"),this.inputRangeRemoveWhiteThreshold=document.getElementById("input-range-remove-white-threshold"),this.inputRangeRemoveWhiteDistance=document.getElementById("input-range-remove-white-distance"),this.textColorpicker=E.a.create({container:document.getElementById("tui-text-color-picker"),color:"#000000"}),this.textColorpicker.on("selectColor",function(e){if(this.activeObjectId){this.editorInstance.changeTextStyle(this.activeObjectId,{fill:e.color});var t=this.records[this.activeObjectId];t&&(t.fill=e.color,this.records[this.activeObjectId]=t)}}.bind(this))},addEventListener:function(){this.btn_deleteAll.addEventListener("click",this.mouseClickHandler.bind(this)),this.btn_delete.addEventListener("click",this.mouseClickHandler.bind(this)),this.btn_redo.addEventListener("click",this.mouseClickHandler.bind(this)),this.btn_undo.addEventListener("click",this.mouseClickHandler.bind(this)),this.btnText.addEventListener("click",this.mouseClickHandler.bind(this)),this.btnImage.addEventListener("click",this.mouseClickHandler.bind(this)),this.btnQrCode.addEventListener("click",this.mouseClickHandler.bind(this)),this.btnClose.addEventListener("click",this.mouseClickHandler.bind(this));var e=0,t=this.btnTextStyle.length;while(e<t)this.btnTextStyle[e].name="textStyle",this.btnTextStyle[e].addEventListener("click",this.mouseClickHandler.bind(this)),e++;this.editorInstance.on({objectAdded:function(e){},undoStackChanged:this.onUndoStackChanged.bind(this),redoStackChanged:this.onRedoStackChanged.bind(this),objectScaled:this.onObjectScaled.bind(this),addText:this.onAddText.bind(this),textEditing:this.textEditing.bind(this),objectActivated:this.objectActivated.bind(this),objectMoved:this.onObjectMoved.bind(this)}),this.btn_deleteAll.addEventListener("click",this.mouseClickHandler.bind(this)),this.btn_delete.addEventListener("click",this.mouseClickHandler.bind(this)),this.btn_reset.addEventListener("click",this.mouseClickHandler.bind(this)),this.btn_redo.addEventListener("click",this.mouseClickHandler.bind(this)),this.btn_undo.addEventListener("click",this.mouseClickHandler.bind(this)),this.btnText.addEventListener("click",this.mouseClickHandler.bind(this)),this.btnImage.addEventListener("click",this.mouseClickHandler.bind(this)),this.btnClose.addEventListener("click",this.mouseClickHandler.bind(this)),e=0,t=this.btnTextStyle.length;while(e<t)this.btnTextStyle[e].name="textStyle",this.btnTextStyle[e].addEventListener("click",this.mouseClickHandler.bind(this)),e++},redoHandler:function(){this.displayingSubMenu&&(this.displayingSubMenu.style.display="none"),this.btn_redo.matches(".disabled")||this.editorInstance.redo()},undoHandler:function(){this.displayingSubMenu&&(this.displayingSubMenu.style.display="none"),this.btn_undo.matches(".disabled")||this.editorInstance.undo()},onAddText:function(e){this.editorInstance.addText("请输入文字",{position:e.originPosition}).then(function(e){this.getRecord(e)}.bind(this))},textEditing:function(e){},onObjectMoved:function(e){this.getRecord(e)},objectActivated:function(e){this.activeObjectId=e.id,this.getRecord(e,!0),"text"===e.type||"i-text"===e.type?(this.showSubMenu("text"),this.setTextToolbar(e),this.activateTextMode()):this.displayingSubMenu&&(this.displayingSubMenu.style.display="none")},onObjectScaled:function(e){if(this.getRecord(e),"text"===e.type||"i-text"===e.type){var t=e.fontSize;t=t>100?100:t<10?10:t,this.inputFontSizeRange.value=t}},onRedoStackChanged:function(e){e?this.btn_redo.classList.remove("disabled"):this.btn_redo.classList.add("disabled"),this.resizeEditor()},onUndoStackChanged:function(e){e?this.btn_undo.classList.remove("disabled"):this.btn_undo.classList.add("disabled"),this.resizeEditor()},mouseClickHandler:function(e){var t=e.currentTarget.name;switch(t){case"btnText":this.showSubMenu("text"),this.activateTextMode();break;case"btnImage":this.getImages();break;case"deleteAll":this.clearObjects();break;case"delete":this.clearActivtyObject();break;case"redo":this.redoHandler();break;case"undo":this.undoHandler();break;case"textStyle":this.checkTextStyle(e.currentTarget);break;case"btnClose":this.closeHandler();break;case"btnQrCode":this.qrCodeHandler();break}},qrCodeHandler:function(){this.activateImageMode(),this.addImage(B.a,3)},clearObjects:function(){this.displayingSubMenu&&(this.displayingSubMenu.style.display="none"),this.editorInstance.clearObjects()},clearActivtyObject:function(){this.displayingSubMenu&&(this.displayingSubMenu.style.display="none"),this.activeObjectId&&this.editorInstance.removeObject(this.activeObjectId)},closeHandler:function(){this.editorInstance.stopDrawingMode(),this.displayingSubMenu&&(this.displayingSubMenu.style.display="none")},checkTextStyle:function(e){if(!e)throw Error("textStyle is null");if(this.activeObjectId){var t,i=e.getAttribute("data-style-type");switch(i){case"b":t={fontWeight:"bold"},this.records[this.activeObjectId]&&(this.records[this.activeObjectId].bold=!0);break;case"i":t={fontStyle:"italic"},this.records[this.activeObjectId]&&(this.records[this.activeObjectId].italic=!0);break;case"u":t={underline:!0};break;case"l":t={textAlign:"left"},this.records[this.activeObjectId]&&(this.records[this.activeObjectId].textAlign="left");break;case"c":t={textAlign:"center"},this.records[this.activeObjectId]&&(this.records[this.activeObjectId].textAlign="center");break;case"r":t={textAlign:"right"},this.records[this.activeObjectId]&&(this.records[this.activeObjectId].textAlign="right");break;default:t={}}this.editorInstance.changeTextStyle(this.activeObjectId,t)}},setTextToolbar:function(e){var t=e.fontSize,i=e.fill;this.inputFontSizeRange.value=t,this.textColorpicker.setColor(i)},showSubMenu:function(e){var t=null;switch(e){case"text":t=this.textSubMenu;break;default:t=0}this.displayingSubMenu&&(this.displayingSubMenu.style.display="none"),t.style.display="block",this.displayingSubMenu=t},inputFontSizeRangeChange:function(){var e=this.inputFontSizeRange.value;if(this.activeObjectId){var t=parseInt(e,10);t=t>100?100:t<10?10:t,this.editorInstance.changeTextStyle(this.activeObjectId,{fontSize:t}),this.records[this.activeObjectId]&&(this.records[this.activeObjectId].fontSize=t)}},activateTextMode:function(){"TEXT"!==this.editorInstance.getDrawingMode()&&(this.editorInstance.stopDrawingMode(),this.editorInstance.startDrawingMode("TEXT"))},getRootElement:function(){return this.$refs.tuiImageEditor},invoke:function(e){for(var t,i=arguments.length,a=new Array(i>1?i-1:0),n=1;n<i;n++)a[n-1]=arguments[n];(t=console).log.apply(t,["invoke"].concat(a));var r,s=null;if(this.editorInstance[e])s=(r=this.editorInstance)[e].apply(r,a);else if(e.indexOf(".")>-1){var o=this.getMethod(this.editorInstance,e);"function"===typeof o&&(s=o.apply(void 0,a))}return s},getMethod:function(e,t){var i,a=this.parseDotMethodName(t),n=a.first,s=a.rest,o="Object"!==e.constructor.name,l=Object(r["a"])(e[n]);return i=o&&"function"===l?e[n].bind(e):e[n],s.length>0?this.getMethod(i,s):i},parseDotMethodName:function(e){var t=e.indexOf("."),i=e,a="";return t>-1&&(i=e.substring(0,t),a=e.substring(t+1,e.length)),{first:i,rest:a}},getImages:function(){this.visible=!0},getMaterial:function(e,t,i){this.activateImageMode(),this.addImage(t.materialUrl,2),this.visible=!1},addImage:function(e,t){var i=this;if(!e||!e.length)throw Error("imgPath can't null");this.editorInstance.addImageObject(e).then((function(a){var n={};n.url=3===t?i.qrCodeUrl:e,n.randomId=a.id,n.objType=t,i.$emit("getImageData",n)}))},addText:function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.editorInstance.addText(e||"双击输入文字",{position:t}).then((function(e){}))},activateImageMode:function(){this.editorInstance.stopDrawingMode()},resizeEditor:function(){var e=document.getElementsByClassName("tui-image-editor")[0],t=document.getElementsByClassName("tui-image-editor-canvas-container")[0];e.style.height=window.getComputedStyle(t).maxHeight},getRecord:function(e,t){this.records||(this.records={});var i=this.records[e.id];i&&t||(i?(i.left=e.left,i.top=e.top,i.width=e.width,i.height=e.height,i.angle=e.angle,"text"!==e.type&&"i-text"!==e.type||(i.text=e.text,i.fontSize=e.fontSize,i.fill=e.fontColor,i.textAlign=e.textAlign),this.records[e.id]=i):this.records[e.id]=e)}}},N=M,j=Object(y["a"])(N,a,n,!1,null,null,null);t["default"]=j.exports},d6c3:function(e,t,i){"use strict";i("ce83")},d730:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"alarming"},[i("el-tabs",{staticClass:"white-tabs",model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:sensitiveact:list"],expression:"['wecom:sensitiveact:list']"}],attrs:{label:"敏感行为记录",name:"record"}},[i("RightContainer",{scopedSlots:e._u([{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.recordSensitive,size:"medium"}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.recordSensitive.length}})],1),i("el-table-column",{attrs:{label:"操作人"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{class:(t.row.operateObj&&t.row.operateObj.type?"user-info-center":"")+" user-info"},[i("img",{attrs:{width:35,height:35,src:t.row.operateObj&&t.row.operateObj.avatar||t.row.operatorHeadImageUrl||e.defaultUserImg}}),i("span",{staticClass:"inoneline"},[e._v(e._s(t.row.operateObj&&t.row.operateObj.name||t.row.operator))]),t.row.operateObj?i("span",{class:t.row.operateObj.type===e.wxType?"wx-type-flag":"customer-type"},[e._v(e._s(e.renderUserInfo(t.row.operateObj)))]):e._e()])]}}])}),i("el-table-column",{attrs:{label:"操作对象"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{class:(t.row.operateTargetObj&&t.row.operateTargetObj.type?"user-info-center":"")+" user-info"},[i("img",{attrs:{width:35,src:t.row.operateTargetObj&&t.row.operateTargetObj.avatar||t.row.operateTargetHeadImageUrl||e.defaultUserImg}}),i("div",[i("span",{staticClass:"inoneline"},[e._v(e._s(t.row.operateTargetObj&&t.row.operateTargetObj.name||t.row.operateTarget))]),t.row.operateTargetObj?i("span",{class:t.row.operateTargetObj.type===e.wxType?"wx-type-flag":"customer-type"},[e._v(e._s(e.renderUserInfo(t.row.operateTargetObj)))]):e._e()])])]}}])}),i("el-table-column",{attrs:{prop:"sensitiveAct",label:"敏感行为"}}),i("el-table-column",{attrs:{prop:"createTime",label:"操作时间"}})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{disabled:e.loading,total:e.recordPageTotal,page:e.recordPageConfig.pageNum,limit:e.recordPageConfig.pageSize},on:{"update:page":function(t){return e.$set(e.recordPageConfig,"pageNum",t)},"update:limit":function(t){return e.$set(e.recordPageConfig,"pageSize",t)},pagination:function(t){return e.getSensiveRecordList()}}})]},proxy:!0}])})],1),i("el-tab-pane",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:sensitiveact:edit"],expression:"['wecom:sensitiveact:edit']"}],attrs:{label:"敏感行为管理",name:"manage"}},[i("AlarmingManage",{attrs:{data:e.tabData,"handle-status-change":e.handleStatusChange}})],1)],1)],1)},n=[],r=i("2909"),s=(i("a9e3"),i("b64b"),i("d3b7"),i("159b"),i("c677")),o=i("dd70"),l=i("b66d"),c=i("6701"),u=i("cf45"),d=i("e77d"),p={components:{RightContainer:l["a"],AlarmingManage:c["default"],EmptyDefaultIcon:d["a"]},data:function(){return{activeName:"record",recordSensitive:[],tabData:[],total:0,query:{pageNum:1,pageSize:o["Ic"]},recordPageTotal:0,recordPageConfig:{pageNum:1,pageSize:o["Ic"]},defaultUserImg:o["J"],wxType:o["Cd"],loading:!1}},mounted:function(){this.getSensiveRecordList(),this.getSensitiveManagementList()},methods:{dealUserInfo:function(e,t){var i=null;if(e[t])try{i=JSON.parse(e[t])}catch(a){}return i},getSensiveRecordList:function(){var e=this;this.loading=!0,s["f"](this.recordPageConfig).then((function(t){var i=Object(r["a"])(t.rows);i.forEach((function(t){var i=e.dealUserInfo(t,"operateTarget"),a=e.dealUserInfo(t,"operator");i&&(t.operateTargetObj=i),a&&(t.operateObj=a)})),e.recordSensitive=i,e.recordPageTotal=Number(t.total)})).finally((function(){e.loading=!1}))},getSensitiveManagementList:function(){var e=this;s["e"](this.query).then((function(t){e.tabData=t.rows,e.total=Number(t.total)}))},handleStatusChange:function(e){var t=this;s["i"](e).then((function(e){t.msgSuccess("操作成功")}))},renderUserInfo:function(e,t){return Object(u["o"])(e,t)}}},f=p,A=(i("0676"),i("2877")),h=Object(A["a"])(f,a,n,!1,null,"82c25ca0",null);t["default"]=h.exports},d7aa:function(e,t,i){"use strict";i("d994")},d7b1:function(e,t,i){"use strict";i.d(t,"d",(function(){return r})),i.d(t,"c",(function(){return s})),i.d(t,"b",(function(){return o})),i.d(t,"a",(function(){return l})),i.d(t,"e",(function(){return c})),i.d(t,"g",(function(){return u})),i.d(t,"f",(function(){return d}));var a=i("b775"),n=window.CONFIG.services.wecom+"/application";function r(){return Object(a["a"])({url:n+"/getMyApplicationList"})}function s(e){return Object(a["a"])({url:n+"/getApplicationList",params:e})}function o(e){return Object(a["a"])({url:n+"/getApplicationDetail",params:e})}function l(e){return Object(a["a"])({url:n+"/deleteMyApplication",method:"POST",data:e})}function c(e){return Object(a["a"])({url:n+"/installApplication",method:"POST",data:e})}function u(e){return Object(a["a"])({url:n+"/updateMyApplicationConfig",method:"POST",data:e})}function d(e){return Object(a["a"])({url:n+"/setMyApplicationUseScope",method:"POST",data:e})}},d7cd:function(e,t,i){"use strict";i("1681")},d7cf:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("RightContainer",{attrs:{"config-keys":["contactSecret"],"page-title":"正常使用老客进群"},scopedSlots:e._u([{key:"search",fn:function(){return[a("el-form",{ref:"queryForm",attrs:{inline:"","label-position":"right",model:e.query,"label-width":"100px"}},[a("el-form-item",{attrs:{prop:"taskName"}},[a("el-input",{attrs:{placeholder:"请输入任务名称"},model:{value:e.query.taskName,callback:function(t){e.$set(e.query,"taskName",t)},expression:"query.taskName"}})],1),a("el-form-item",{attrs:{prop:"createBy"}},[a("el-input",{attrs:{placeholder:"请输入创建人姓名"},model:{value:e.query.createBy,callback:function(t){e.$set(e.query,"createBy",t)},expression:"query.createBy"}})],1),a("el-form-item",[a("el-date-picker",{staticStyle:{width:"240px"},attrs:{"value-format":"yyyy-MM-dd",type:"daterange","picker-options":e.pickerOptions,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),a("el-form-item",{attrs:{label:" "}},[a("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.getList(1)}}},[e._v("查询")]),a("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"operate-btn",fn:function(){return[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:communitytagGroup:add"],expression:"['wecom:communitytagGroup:add']"}],attrs:{type:"primary"},on:{click:function(t){return e.goRoute()}}},[e._v(" 添加任务 ")]),a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:communitytagGroup:remove"],expression:"['wecom:communitytagGroup:remove']"}],on:{click:e.handleBulkRemove}},[e._v(" 批量删除 ")])]},proxy:!0},{key:"data",fn:function(){return[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list},on:{"selection-change":e.handleSelectionChange}},[a("template",{slot:"empty"},[a("empty-default-icon",{attrs:{"btn-text":"新建老客进群",length:e.list.length,"btn-click":e.goRoute,"btn-show-condition":e.getQueryObj(),"btn-permi-key":["wecom:communitytagGroup:add"]}})],1),a("el-table-column",{attrs:{type:"selection",width:"50",align:"center"}}),a("el-table-column",{attrs:{label:"任务名称",align:"center",prop:"taskName","show-overflow-tooltip":!0}}),a("el-table-column",{attrs:{prop:"emplList",label:"使用员工",align:"center","class-name":"tag-wrapper"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-tooltip",{attrs:{content:e.getString(i.scopeList,"name"),placement:"bottom-end",effect:"dark"}},[a("p",{staticClass:"ellipsis-style"},[e._v(e._s(e.getString(i.scopeList,"name")))])])]}}])}),a("el-table-column",{attrs:{prop:"sendScope",label:"发送范围",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e._v(" "+e._s(0===parseInt(i.sendScope)?"全部客户":"指定客户")+" ")]}}])}),a("el-table-column",{attrs:{prop:"createBy",label:"创建人",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"al"},[a("div",{staticClass:"cus-owner"},[e._v(e._s(t.row.createBy))]),a("div",{staticClass:"cus-dept"},[e._v(e._s(t.row.mainDepartmentName))])])]}}])}),a("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"createTime",width:"160"}}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"180","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:communitytagGroup:remove"],expression:"['wecom:communitytagGroup:remove']"}],attrs:{size:"mini",type:"text"},on:{click:function(i){return e.openCustomerDialog(t.row)}}},[e._v("进群详情")]),a("br"),a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:communitytagGroup:remove"],expression:"['wecom:communitytagGroup:remove']"}],attrs:{size:"mini",type:"text"},on:{click:function(i){return e.handleRemove(t.row.taskId)}}},[e._v("删除")])]}}])})],2),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,disabled:e.loading,page:e.query.pageNum,limit:e.query.pageSize,"select-data-len":e.multiSelect.length},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}})]},proxy:!0}])}),a("el-dialog",{attrs:{title:"客户进群详情",visible:e.dialogVisible,width:"800px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"enter-group-detail"},[a("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[a("div",{staticClass:"top-search"},[a("el-form",{ref:"customerForm",attrs:{inline:"","label-position":"right",model:e.customerQuery,"label-width":"80px"}},[a("el-form-item",{attrs:{prop:"customerName"}},[a("el-input",{attrs:{placeholder:"请输入客户名称"},model:{value:e.customerQuery.customerName,callback:function(t){e.$set(e.customerQuery,"customerName",t)},expression:"customerQuery.customerName"}})],1),a("el-form-item",{attrs:{prop:"isInGroup"}},[a("el-select",{attrs:{placeholder:"请选择进群状态",size:"small",clearable:""},model:{value:e.customerQuery.isInGroup,callback:function(t){e.$set(e.customerQuery,"isInGroup",t)},expression:"customerQuery.isInGroup"}},e._l(e.inGroupOptions,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{prop:"isSent"}},[a("el-select",{attrs:{placeholder:"请选择发送状态",size:"small",clearable:""},model:{value:e.customerQuery.isSent,callback:function(t){e.$set(e.customerQuery,"isSent",t)},expression:"customerQuery.isSent"}},e._l(e.sendStatusOptions,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary",loading:e.detailSearchLoading},on:{click:function(){e.detailSearchLoading=!0,e.customerSearch()}}},[e._v("查询")]),a("el-button",{staticClass:"btn-reset",attrs:{loading:e.detailResetLoading},on:{click:function(){e.detailResetLoading=!0,e.resetCustomerQuery()}}},[e._v("重置")])],1)],1)],1)]},proxy:!0},{key:"data-stat",fn:function(){return[e.createType===e.CREATE_TYPE["corp"]?a("div",{staticClass:"tip-text"},[e._v(" 当前任务的进群方式是企微活码,无法获知所在客户群 ")]):e._e()]},proxy:!0},{key:"data",fn:function(){return[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.customerLoading,expression:"customerLoading"}],attrs:{data:e.customerList,height:"430px"}},[a("template",{slot:"empty"},[a("empty-default-icon",{attrs:{length:e.customerList.length}})],1),a("el-table-column",{attrs:{label:"客户",align:"center",prop:"customerName",width:"180px"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("div",{staticStyle:{display:"flex","align-items":"center"}},[a("el-image",{staticStyle:{width:"35px",height:"35px"},attrs:{src:n.avatar||i("3e20"),fit:"fill"}}),a("p",{staticClass:"customer-name"},[e._v(e._s(n.customerName))])],1)]}}])}),a("el-table-column",{attrs:{label:"所属员工",align:"center",prop:"username"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"al"},[a("div",{staticClass:"cus-owner"},[e._v(e._s(t.row.username))]),a("div",{staticClass:"cus-dept"},[e._v(e._s(t.row.mainDepartmentName))])])]}}])}),a("el-table-column",{attrs:{prop:"status",label:"送达状态",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("span",[e._v(e._s(e.SEND_STATUS_TEXT[i.status]||""))])]}}])},[a("template",{slot:"header"},[a("div",[e._v(" 送达状态 "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"若员工在企业微信执行了群发任务,则视为已发",placement:"top"}},[a("svg",{staticClass:"icon-question",attrs:{width:14,height:14}},[a("use",{attrs:{href:"#icon-question"}})])])],1)])],2),a("el-table-column",{attrs:{prop:"inGroup",label:"是否已进群",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e.createType!==e.CREATE_TYPE["corp"]?[e._v(" "+e._s(1*i.inGroup?"是":"否")+" ")]:e._e()]}}])},[a("template",{slot:"header"},[a("div",[e._v(" 是否已进群 "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"若客户已经在群活码下的客户群,则是为已进群",placement:"top"}},[a("svg",{staticClass:"icon-question",attrs:{width:"14px",height:"14px"}},[a("use",{attrs:{href:"#icon-question"}})])])],1)])],2),a("el-table-column",{attrs:{label:"所在客户群",align:"center",prop:"inGroupName"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e._v(e._s(e.createType===e.CREATE_TYPE["corp"]?"":i.inGroupName))]}}])}),a("el-table-column",{attrs:{label:"备注",align:"center",prop:"remark"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("span",[e._v(e._s(e.REMARK_MAP[i.status]||""))])]}}])})],2),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.customerTotal>0,expression:"customerTotal > 0"}],attrs:{total:e.customerTotal,disabled:e.customerLoading,page:e.customerQuery.pageNum,limit:e.customerQuery.pageSize},on:{"update:page":function(t){return e.$set(e.customerQuery,"pageNum",t)},"update:limit":function(t){return e.$set(e.customerQuery,"pageSize",t)},pagination:e.changePage}})]},proxy:!0}])})],1)])],1)},n=[],r=i("3835"),s=i("ade3"),o=(i("a15b"),i("d81d"),i("b0c0"),i("a9e3"),i("b64b"),i("d3b7"),i("71bc")),l=i("ed08"),c=i("dd70"),u=i("e77d"),d=i("b66d"),p=i("e2e0"),f="0",A="1",h="2",m="3",g=Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])({},A,"已送达"),h,"送达失败"),m,"送达失败"),f,"未送达"),v={2:"已不是好友",3:"其他员工已发送",4:"接收已达上限",5:"创建失败,小程序未关联企业或信息错误",6:"创建失败,未获取到有效附件信息",7:"未发送",8:"创建失败,群发内容异常"},b={components:{EmptyDefaultIcon:u["a"],RightContainer:d["a"]},mixins:[p["a"]],props:{},data:function(){return{query:{pageNum:1,pageSize:c["Ic"],taskName:"",createBy:"",beginTime:"",endTime:""},total:0,loading:!1,list:[],dateRange:[],multiSelect:[],customerSearchId:"",customerQuery:{pageNum:1,pageSize:c["Ic"],customerName:"",isInGroup:"",isSent:""},customerTotal:0,customerLoading:!1,customerList:[],customerShowList:[],inGroupOptions:[{label:"在群",value:1},{label:"不在群",value:0}],sendStatusOptions:[{label:"已送达",value:1},{label:"未送达",value:0},{label:"送达失败",value:Number(h)}],dialogVisible:!1,REMARK_MAP:v,SEND_STATUS_TEXT:g,CREATE_TYPE:c["v"],createType:null,detailSearchLoading:!1,detailResetLoading:!1}},computed:{isDKCorp:function(){return this.$store.state.serverInfo.dkCorp}},watch:{dateRange:function(e){if(e&&2===e.length){var t=Object(r["a"])(e,2);this.query.beginTime=t[0],this.query.endTime=t[1]}else this.query.beginTime="",this.query.endTime=""},dialogVisible:function(e){e||this.$refs["customerForm"].resetFields(),this.customerList=[],this.customerTotal=0}},created:function(){if(this.$store.getters.saveCondition&&Object.keys(this.$store.getters.searchQuery[this.$route.name]||{}).length){var e=this.$store.getters.searchQuery[this.$route.name],t=e.beginTime,i=e.endTime;t&&i&&(this.dateRange=[t,i]),this.query=this.$store.getters.searchQuery[this.$route.name]}this.getList(1),this.$store.dispatch("app/setBusininessDesc","\n <div>企业通过下发任务通知员工给选中的标签客户主动发送加群引导语以及群活码,客户扫码后入群。</div>\n ")},methods:{getList:function(e){var t=this;e&&(this.query.pageNum=e),this.loading=!0,Object(o["c"])(this.query).then((function(e){var i=e.rows,a=e.total;t.list=i,t.total=+a})).finally((function(){t.modifyButtonStatus(),t.loading=!1}))},getStat:function(e){var t=this;e&&(this.customerQuery.pageNum=e),this.customerLoading=!0,Object(o["d"])(this.customerSearchId,this.customerQuery).then((function(e){var i=e.rows,a=e.total;t.customerList=i,t.customerTotal=+a})).finally((function(){t.customerLoading=!1,t.detailResetLoading=!1,t.detailSearchLoading=!1}))},goRoute:function(e){this.$store.commit("SET_SEARCH_QUERY",{pageName:this.$route.name,query:this.query}),Object(l["l"])(this.$router,"oldCustomerAev",this.query,{id:e})},resetQuery:function(){var e=this;this.dateRange=[],this.query=this.$options.data().query,this.$nextTick((function(){e.getList(1)}))},getDisplayTags:function(e){var t=e.tagList.map((function(e){return e&&e.name}));return t.join(" ")},handleBulkRemove:function(){var e=this;this.multiSelect.length?this.confirmModal({msg:"即将删除该任务,删除后将不可见且无法撤销,是否继续?"},(function(){var t=e.multiSelect.map((function(e){return e.taskId}));Object(o["e"])(t+"").then((function(t){e.getList()}))})):this.msgWarn("请至少选择一个任务")},handleRemove:function(e){var t=this;this.confirmModal({msg:"即将删除该任务,删除后将不可见且无法撤销,是否继续?"},(function(){Object(o["e"])(e+"").then((function(e){t.getList()}))}))},handleSelectionChange:function(e){this.multiSelect=e},openCustomerDialog:function(e){this.customerSearchId=e.taskId,this.dialogVisible=!0,this.createType=e.groupCodeInfo.createType,this.getStat(1)},customerSearch:function(){this.getStat(1)},resetCustomerQuery:function(){this.$refs["customerForm"].resetFields(),this.getStat(1)},changePage:function(){this.getStat()},getString:function(e,t){var i=[];return e.map((function(e){return i.push(e[t])})),i.join("、")},getQueryObj:function(){var e=this.query,t=e.taskName,i=e.createBy,a=e.beginTime,n=e.endTime;return{taskName:t,createBy:i,beginTime:a,endTime:n}}}},y=b,_=(i("1a96"),i("2877")),w=Object(_["a"])(y,a,n,!1,null,"f2278398",null);t["default"]=w.exports},d842:function(e,t,i){},d87a:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"config-content"},["generationDevelopment"!==e.applicationType?i("div",{staticClass:"tip"},[i("i",{staticClass:"el-icon-info"}),e._v(" "+e._s(e.tip)+" ")]):e._e(),i("div",{staticClass:"config-list"},[e._l(e.params,(function(t,a){return[i("div",{key:a,staticClass:"config-item"},[i("div",{class:"generationDevelopment"===e.applicationFromType?"newlabel":"label"},[t.required?i("span",{staticClass:"require"},[e._v("*")]):e._e(),e._v(" "+e._s(t.label)+" "),t.toolTipText?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.toolTipText,placement:"top-start"}},[t.iconLabel?i("i",{class:t.iconLabel}):e._e()]):e._e()],1),"input"===t.type?i("el-input",{attrs:{placeholder:""+(t.placeholder?t.placeholder:"请输入"+t.label),clearable:"",disabled:"copy"===t.btnType||e.isThirdType&&e.disableInputField.includes(t.field)},on:{input:function(){return e.clearTip(t)}},model:{value:e.form[t.field],callback:function(i){e.$set(e.form,t.field,i)},expression:"form[item.field]"}}):e._e(),"upload"===t.type?i("upload-txt",{staticClass:"upload-div",attrs:{"file-url":e.form.certFilePath,"file-name":e.form.certFileName,file:e.certFile},on:{"update:fileUrl":function(t){return e.$set(e.form,"certFilePath",t)},"update:file-url":function(t){return e.$set(e.form,"certFilePath",t)},"update:fileName":function(t){return e.$set(e.form,"certFileName",t)},"update:file-name":function(t){return e.$set(e.form,"certFileName",t)},"update:file":function(t){e.certFile=t}}}):e._e(),t.btnText&&"saveAll"===t.btnType?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:"copy"===t.btnType?[]:["wechat:corp:edit"],expression:"item.btnType === 'copy' ? [] : ['wechat:corp:edit']"}],staticClass:"btn-reset",on:{click:e.onSaveAll}},[e._v(e._s(t.btnText))]):!t.btnText||e.isThirdType&&e.disableInputField.includes(t.field)?e._e():["copy"===t.btnType?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:"copy"===t.btnType?[]:["wechat:corp:edit"],expression:"item.btnType === 'copy' ? [] : ['wechat:corp:edit']"},{name:"copy",rawName:"v-copy",value:e.form[t.field],expression:"form[item.field]"}],on:{click:function(i){return e.onSaveSingle(t.btnType,t.field)}}},[e._v(" "+e._s(t.btnText)+" ")]):i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:"copy"===t.btnType?[]:["wechat:corp:edit"],expression:"item.btnType === 'copy' ? [] : ['wechat:corp:edit']"}],on:{click:function(i){return e.onSaveSingle(t.btnType,t.field)}}},[e._v(" "+e._s(t.btnText)+" ")])],"企业ID"===t.label&&e.showWarnTip?i("div",{staticClass:"warn-tip-text"},[i("i",{staticClass:"el-icon-warning"}),e._v("请替换为当前企业的ID。")]):e._e()],2)]}))],2)])},n=[],r=i("ade3"),s=i("5530"),o=(i("caad"),i("d81d"),i("d3b7"),i("2532"),i("2ff4")),l=i("2502"),c=i("dd70"),u={components:{},props:{params:{type:Array,default:function(){return[]}},tip:{type:String,default:""},btnText:{type:String,default:""},form:{type:Object,default:function(){return{}}},oldForm:{type:Object,default:function(){}},btnType:{type:String,default:""},applicationType:{type:String,default:""},applicationFromType:{type:String,default:""}},data:function(){var e=this.$store.state.serverInfo&&this.$store.state.serverInfo.serverType===c["bd"];return{certFile:{},disableInputField:["h5DoMainName"],isThirdType:e,showWarnTip:!1}},computed:{},watch:{certFile:function(e){e&&e.response&&e.response.url&&this.onSaveSingle("save","certFilePath")},form:function(e){var t;e&&null!==(t=this.params)&&void 0!==t&&t.length&&this.checkEnterpriseIdValid(this.params)}},created:function(){},methods:{addOrUpdateConfig:function(e,t){e.id?this.updateConfig(e,t):this.addConfig(Object(s["a"])(Object(s["a"])({},e),{},{status:0}),t)},addConfig:function(e,t){var i=this;o["a"](e).then((function(){t?t():(i.msgSuccess("操作成功"),i.$emit("getNowConfig"))})).catch((function(){i.dialogVisible=!1}))},updateConfig:function(e,t){var i=this;o["g"](e).then((function(){t?t():(i.msgSuccess("操作成功"),i.$emit("getNowConfig"))})).catch((function(){i.dialogVisible=!1}))},onSaveAll:function(){var e=this,t={id:this.form.id};this.params.map((function(i){t[i.field]=e.form[i.field]})),this.checkEnterpriseIdValid(this.params)||(t=Object(l["b"])(t),this.dealUpdateCorpId(t)&&this.addOrUpdateConfig(t,this.contactChangeSuccessAlert))},dealUpdateCorpId:function(e){var t=this,i=this.params.some((function(e){return"corpId"===e.field}));return!i||this.oldForm.corpId===e.corpId||(this.confirmModal({msg:"当前企业修改后,EasyInk下所有在线员工将被强制下线,原有企业数据不可查看,是否继续?"},(function(){t.addOrUpdateConfig(e,t.contactChangeSuccessAlert)})),!1)},onSaveSingle:function(e,t){if(this.form[t]){var i=Object(r["a"])({agentSecret:this.form.agentSecret,id:this.form.id},t,this.form[t]);"save"===e&&(i=Object(l["b"])(i),this.addOrUpdateConfig(i))}else this.msgInfo("请输入要保存的内容")},contactChangeSuccessAlert:function(){this.$alert(c["R"],"配置成功",{confirmButtonText:"我知道了",dangerouslyUseHTMLString:!0}),this.$emit("getNowConfig")},checkEnterpriseIdValid:function(e){var t=this;if(this.$store.state.serverInfo.serverType!==c["bd"]){var i=e.some((function(e){return"企业ID"===e.label&&t.form[e.field].includes("_")}));return this.showWarnTip=i,i}},clearTip:function(e){"企业ID"===e.label&&(this.showWarnTip=!1)}}},d=u,p=(i("dffe"),i("2877")),f=Object(p["a"])(d,a,n,!1,null,"1f6c4e24",null);t["default"]=f.exports},d8df:function(e,t,i){e.exports=i.p+"static/img/add-code-1.4d18b95c.png"},d994:function(e,t,i){},da28:function(e,t,i){"use strict";i("9fb2")},da99:function(e,t,i){e.exports=i.p+"static/img/mobile-step-1-2.84388b03.png"},dad4:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.detailLoading,expression:"detailLoading"}],staticClass:"link-detail-page"},[i("div",{staticClass:"page-card mb10"},[i("ReturnPage",{attrs:{"show-text":"获客链接详情"}}),i("div",{staticClass:"page-header"},[i("div",{staticClass:"header-left"},[i("div",{staticClass:"label-item"},[i("div",{staticClass:"label-title"},[e._v("链接名称:")]),i("span",[e._v(e._s(e.form.scenario))])]),i("div",{staticClass:"label-item"},[i("div",{staticClass:"label-title"},[e._v("场景描述:")]),i("span",[e._v(" "+e._s(e.form.description)+" ")])]),i("div",{staticClass:"label-item"},[i("div",{staticClass:"label-title pt5"},[e._v("使用员工:")]),i("div",{staticClass:"flexw"},e._l(e.form.weEmpleCodeUseScops,(function(t,a){return i("el-tag",{key:a,staticClass:"user-tag aic mb5",attrs:{size:"small"}},[i("TagUserShow",{attrs:{name:t.businessName,"show-icon":t.businessIdType===e.SCOPELIST_TYPE.DEPARTMENT}})],1)})),1)]),i("div",{staticClass:"label-item"},[i("div",{staticClass:"label-title pt5"},[e._v("客户标签:")]),i("div",{staticClass:"flexw"},e._l(e.form.weEmpleCodeTags,(function(t,a){return i("el-tag",{key:a,staticClass:"tag mb5",attrs:{size:"small"}},[e._v(e._s(t.tagName))])})),1)]),i("div",{staticClass:"label-item"},[i("div",{staticClass:"label-title"},[e._v("客户备注:")]),i("span",[e._v(e._s(e.form.remarkName))])])]),i("div",{staticClass:"header-right"},[i("div",{staticClass:"label-item aic"},[i("span",{staticClass:"label-title"},[e._v("自动通过:")]),i("div",{staticClass:"aic"},[i("el-switch",{staticClass:"mr10",attrs:{"active-value":1,"inactive-value":0,disabled:""},model:{value:e.form.isAutoPass,callback:function(t){e.$set(e.form,"isAutoPass",t)},expression:"form.isAutoPass"}}),e.form.skipVerify===e.SKIP_VERIFY["close"]?i("span",{staticClass:"ml10 auto-pass"},[e._v("客户添加需要员工手动同意添加请求")]):e.form.skipVerify===e.SKIP_VERIFY["allDay"]?i("span",[e._v("全天生效")]):e.form.skipVerify===e.SKIP_VERIFY["timeAdd"]?i("span",[e._v(e._s(e.form.effectTimeOpen+"~"+e.form.effectTimeClose+"生效"))]):e._e()],1)]),i("div",{staticClass:"label-item"},[i("span",{staticClass:"label-title"},[e._v("欢迎语:")]),e.form.welcomeMsg||e.form.materialList&&e.form.materialList.length?i("div",{staticClass:"welcome-div"},[i("div",{staticClass:"welcome-div-content"},[e.form.welcomeMsg?i("div",{staticClass:"welcome-item"},[e._v("[文字] "+e._s(e.form.welcomeMsg))]):e._e(),e.form.materialList&&e.form.materialList.length?e._l(e.form.materialList,(function(t,a){return i("div",{key:a},[t.mediaType===e.MEDIA_TO_WELCOME_TYPE[e.MEDIA_TYPE_SMARTFORM]?i("div",{staticClass:"welcome-item"},[i("div",[e._v(" "+e._s("["+e.MESSAGE_MEDIA_TYPE[t.mediaType]+"] "+t.form.formName)+" ")])]):i("div",{staticClass:"welcome-item"},[e._v(" "+e._s("["+e.MESSAGE_MEDIA_TYPE[t.mediaType]+"] "+t.materialName)+" ")])])})):e._e()],2),e.form.materialList&&e.form.materialList.length||e.form.welcomeMsg?i("div",{staticClass:"preview theme-text-color",on:{click:function(t){e.previewVisible=!0}}},[e._v(" 预览效果 ")]):e._e()]):e._e()])])])],1),i("Statistics",{attrs:{"col-list":e.colList,title:"数据总览"}},[i("template",{slot:"operate"},[i("el-popover",{attrs:{placement:"left-start",trigger:"hover",offset:10}},[i("div",{staticClass:"popover-content"},[i("div",{staticClass:"info"},[i("p",[e._v("累计添加客户数:截止到今天,累计通过链接添加员工的客户数量")]),i("p",[e._v("今日新增客户数:今天通过链接添加员工的客户数量")]),i("p",[e._v("今日流失客户数:今天把员工删除或拉黑的客户数量")]),i("p",[e._v(" 今日新客留存率:今日未将员工删除或拉黑的新增客户/今日新增客户 ")])])]),i("div",{staticClass:"statistic-explain theme-text-color",attrs:{slot:"reference"},slot:"reference"},[e._v(" 统计说明 ")])])],1)],2),i("DetailCustomerCnt",{attrs:{"emple-code-id":e.empleCodeId,"channel-list":e.channelList}}),i("RightContainer",{scopedSlots:e._u([{key:"header",fn:function(){return[i("div",{staticClass:"forms-handle-btn"},[i("el-radio-group",{attrs:{size:"medium"},on:{input:e.dimensionTypeChange},model:{value:e.dimensionType,callback:function(t){e.dimensionType=t},expression:"dimensionType"}},[i("el-radio-button",{attrs:{label:e.CLIENT_DIMENSION}},[e._v("客户维度")]),i("el-radio-button",{attrs:{label:e.CHANNEL_DIMENSION}},[e._v("渠道维度")]),i("el-radio-button",{attrs:{label:e.DATE_DIMENSION}},[e._v("日期维度")])],1),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customer:assistant:export"],expression:"['customer:assistant:export']"},{name:"preventReClick",rawName:"v-preventReClick"}],staticClass:"btn-reset btn-export",attrs:{loading:e.exportLoad},on:{click:e.exportForms}},[e._v("导出报表")])],1)]},proxy:!0},{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",attrs:{inline:!0,model:e.pageQuery,"label-width":"100px"}},[i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.dimensionType===e.CLIENT_DIMENSION,expression:"dimensionType === CLIENT_DIMENSION"}]},[i("el-input",{attrs:{placeholder:"请输入客户名称",clearable:""},model:{value:e.pageQuery.name,callback:function(t){e.$set(e.pageQuery,"name",t)},expression:"pageQuery.name"}})],1),i("el-form-item",[i("div",{staticClass:"tag-input",on:{click:function(t){e.dialogVisibleSelectUser=!0}}},[e.userList.length?e._l(e.userList,(function(e,t){return i("el-tag",{key:t,attrs:{type:"info"}},[i("TagUserShow",{attrs:{name:e.name,"show-icon":!e.userId}})],1)})):i("span",{staticClass:"tag-place"},[e._v("请选择员工")])],2)]),i("el-form-item",[i("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择渠道"},model:{value:e.pageQuery.channelId,callback:function(t){e.$set(e.pageQuery,"channelId",t)},expression:"pageQuery.channelId"}},e._l(e.channelList,(function(e){return i("el-option",{key:e.channelId,attrs:{label:e.name,value:e.channelId}})})),1)],1),i("el-form-item",[i("el-date-picker",{staticStyle:{width:"260px"},attrs:{"popper-class":"forbid-clear-picker",type:"datetimerange",format:"yyyy-MM-dd HH:mm","value-format":"yyyy-MM-dd HH:mm","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"],clearable:!1},model:{value:e.statisticTime,callback:function(t){e.statisticTime=t},expression:"statisticTime"}})],1),i("el-form-item",{attrs:{label:" "}},[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.getStatisticByCustomer(1)}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetSearch()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"data",fn:function(){return[e.dimensionType===e.CLIENT_DIMENSION?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"showTable",attrs:{data:e.list}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.list.length,text:"暂无数据"}})],1),i("el-table-column",{attrs:{prop:"customer",label:"客户","min-width":"300"},scopedSlots:e._u([{key:"default",fn:function(e){var t=e.row;return[i("UserItem",{attrs:{data:t}})]}}],null,!1,867051345)}),i("el-table-column",{attrs:{prop:"addCustomer",label:"添加员工","min-width":"265"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",[i("div",{staticClass:"f14"},[e._v(e._s(a.userName))]),i("div",[e._v(e._s(a.departmentName))])])]}}],null,!1,397839630)}),i("el-table-column",{attrs:{prop:"channelName",label:"添加渠道","min-width":"265"}}),i("el-table-column",{attrs:{prop:"addTime",label:"添加时间","min-width":"180"}}),i("el-table-column",{attrs:{label:"操作","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:customer:view"],expression:"['customerManage:customer:view']"}],attrs:{type:"text"},on:{click:function(t){return e.skipToUserDetails(a)}}},[e._v("客户资料")])]}}],null,!1,300898283)})],2):i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"showTable",attrs:{data:e.list}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.list.length,text:"暂无数据"}})],1),e.dimensionType===e.CHANNEL_DIMENSION?i("el-table-column",{attrs:{prop:"name",label:"渠道","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",{staticClass:"intwoline"},[e._v(e._s(a.name))])]}}],null,!1,2922847063)}):e._e(),e.dimensionType===e.DATE_DIMENSION?i("el-table-column",{attrs:{prop:"date",label:"日期","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e._v(" "+e._s(i.date)+" ")]}}],null,!1,2869077803)}):e._e(),i("el-table-column",{attrs:{prop:"accumulateCustomerCnt",label:"累计添加客户数","min-width":"180"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e._v(" "+e._s(i.accumulateCustomerCnt)+" ")]}}])}),i("el-table-column",{attrs:{prop:"newCustomerCnt",label:"新增客户数","min-width":"180"}}),i("el-table-column",{attrs:{prop:"lossCustomerCnt",label:"流失客户数","min-width":"180"}}),i("el-table-column",{attrs:{prop:"retainNewCustomerRate",label:"新客留存率","min-width":"180"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e._v(" "+e._s(i.retainNewCustomerRate===e.DATA_STATISTICS_DEFAULT_SHOW?e.DATA_STATISTICS_DEFAULT_SHOW:i.retainNewCustomerRate+"%")+" ")]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:1*e.total,disabled:e.loading,page:e.pageQuery.pageNum,limit:e.pageQuery.pageSize},on:{"update:page":function(t){return e.$set(e.pageQuery,"pageNum",t)},"update:limit":function(t){return e.$set(e.pageQuery,"pageSize",t)},pagination:function(t){return e.handleChangePage()}}})]},proxy:!0}])}),i("el-dialog",{staticClass:"preview-dialog",attrs:{title:"预览效果",visible:e.previewVisible,width:"500px","append-to-body":"","close-on-click-modal":!1},on:{"update:visible":function(t){e.previewVisible=t}}},[i("div",{staticClass:"preview-phone"},[i("PhoneDialog",{attrs:{message:e.form.welcomeMsg,"msg-list":e.form.materialList}})],1)]),i("SelectUser",{directives:[{name:"show",rawName:"v-show",value:e.dialogVisibleSelectUser,expression:"dialogVisibleSelectUser"}],attrs:{visible:e.dialogVisibleSelectUser,title:"选择员工","is-only-leaf":!0,"selected-user-list":e.userList},on:{"update:visible":function(t){e.dialogVisibleSelectUser=t},success:e.selectedUser}})],1)},n=[],r=i("c7eb"),s=i("1da1"),o=i("2909"),l=i("ade3"),c=i("5530"),u=(i("a15b"),i("d81d"),i("b0c0"),i("b64b"),i("d3b7"),i("c958")),d=i("b66d"),p=i("e77d"),f=i("515a"),A=i("8bd5"),h=i("069e"),m=i("dd70"),g=i("e753"),v=i("cf45"),b=i("8107"),y=i("5519"),_=i("038c"),w=i("86e8"),C=i("ed08"),x=i("e2e0"),k={components:{Statistics:h["a"],EmptyDefaultIcon:p["a"],RightContainer:d["a"],PhoneDialog:A["a"],TagUserShow:f["a"],SelectUser:u["a"],DetailCustomerCnt:_["default"],UserItem:w["a"]},mixins:[x["a"]],data:function(){return{detailLoading:!1,empleCodeId:void 0,statisticTime:[v["e"]+" 00:00",v["d"]+" 23:59"],pageQuery:{pageNum:1,pageSize:m["Ic"],name:"",channelId:""},userList:[],SCOPELIST_TYPE:m["Uc"],dialogVisibleSelectUser:!1,previewVisible:!1,form:{weEmpleCodeUseScops:[],weEmpleCodeTags:[]},CLIENT_DIMENSION:m["q"],dimensionType:m["q"],total:0,list:[],enableBehaviorRecord:!1,colList:[{title:"累计添加客户",filed:"accumulateCustomerCnt"},{title:"今日新增客户",content:"",filed:"newCustomerCnt"},{title:"今日流失客户",filed:"lossCustomerCnt"},{title:"今日新客留存率",filed:"retainNewCustomerRate",unit:"%"}],loading:!1,exportLoad:!1,channelList:[],beginTime:"",endTime:"",CHANNEL_DIMENSION:m["n"],DATE_DIMENSION:m["G"],MEDIA_TO_WELCOME_TYPE:m["Wb"],MEDIA_TYPE_SMARTFORM:m["ec"],MESSAGE_MEDIA_TYPE:m["ic"],DATA_STATISTICS_DEFAULT_SHOW:m["F"],SKIP_VERIFY:m["dd"]}},created:function(){var e=this.$route.query.id;this.empleCodeId=e,e&&(this.setQueryParams(),this.getDetail(e),this.getOverview(e),this.getChannelList(e),this.getStatisticByCustomer())},methods:{getOverview:function(e){var t=this;Object(b["h"])(e).then((function(e){var i;t.colList=null===(i=t.colList)||void 0===i?void 0:i.map((function(t){var i=Object(c["a"])(Object(c["a"])({},t),{},Object(l["a"])({},t.filed,(null===e||void 0===e?void 0:e.data)&&(null===e||void 0===e?void 0:e.data[t.filed])));return i}))}))},getChannelList:function(e){var t=this;Object(b["f"])({empleCodeId:e}).then((function(e){var i=e.rows,a=i.reverse();t.channelList=Object(o["a"])(a)}))},selectedUser:function(e){this.userList=e},getStatisticByCustomer:function(e){var t=this;e&&(this.pageQuery.pageNum=e),this.loading=!0,this.getStatisticSearchDetailsDataFun()(this.getSearchPayload()).then((function(e){var i=e.rows,a=e.total;t.list=Object(o["a"])(i),t.total=a})).finally((function(){t.modifyButtonStatus(),t.loading=!1}))},getSearchPayload:function(){this.statisticTime?(this.pageQuery.beginTime=this.statisticTime[0],this.pageQuery.endTime=this.statisticTime[1]):(this.pageQuery.beginTime="",this.pageQuery.endTime="");var e=Object(v["F"])(this.userList),t=e.useEmployeesList.map((function(e){return e.userId}));this.pageQuery.userIds=t.join(",");var i=Object(c["a"])({},this.pageQuery);return this.dimensionType!==m["q"]&&delete i.name,Object(c["a"])(Object(c["a"])({},i),{},{empleCodeId:this.empleCodeId})},getStatisticSearchDetailsDataFun:function(){switch(this.dimensionType){case m["q"]:return b["r"];case m["n"]:return b["q"];case m["G"]:return b["s"]}},resetSearch:function(){this.pageQuery={pageNum:1,pageSize:m["Ic"],channelId:"",name:""},this.statisticTime=[v["e"]+" 00:00",v["d"]+" 23:59"],this.userList=[],this.getStatisticByCustomer(1)},dimensionTypeChange:function(){this.resetSearch()},handleChangePage:function(){this.getStatisticByCustomer()},getDetail:function(e){var t=this;return Object(s["a"])(Object(r["a"])().mark((function i(){var a,n;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return t.detailLoading=!0,i.next=3,Object(b["g"])(e);case 3:a=i.sent,t.detailLoading=!1,a&&(n=Object(c["a"])({},null===a||void 0===a?void 0:a.data),t.form=Object(c["a"])(Object(c["a"])({},n),{},{welcomeMsg:Object(y["a"])(n).welcomeMsg,materialList:Object(y["a"])(n).materialList}));case 6:case"end":return i.stop()}}),i)})))()},skipToUserDetails:function(e){this.$store.commit("SET_SEARCH_QUERY",{pageName:this.$route.name,query:Object(c["a"])(Object(c["a"])({},this.pageQuery),{},{userList:this.userList.map((function(e){return{userId:e.userId,name:e.name}})),statisticTime:this.statisticTime})}),Object(C["l"])(this.$router,g["b"],{},{id:e.externalUserId,userId:e.userId,prePageType:"customer"})},exportForms:function(){var e=this,t=Object(l["a"])(Object(l["a"])(Object(l["a"])({},m["q"],b["d"]),m["n"],b["c"]),m["G"],b["e"]);this.exportLoad=!0,this.msgInfo("正在导出中..."),t[this.dimensionType](this.getSearchPayload()).then((function(t){e.download(t.data.msg,!0)})).catch((function(){e.msgError("导出失败!")})).finally((function(){e.exportLoad=!1}))},setQueryParams:function(){if(this.$store.getters.saveCondition&&Object.keys(this.$store.getters.searchQuery[this.$route.name]||{}).length){var e=this.$store.getters.searchQuery[this.$route.name],t=e.userList,i=e.statisticTime,a=e.name,n=e.channelId,r=e.pageNum,s=e.pageSize;this.userList=t||[],this.statisticTime=i||[],this.pageQuery={name:a,channelId:n,pageNum:r,pageSize:s}}}}},T=k,S=(i("7f4a"),i("2877")),I=Object(S["a"])(T,a,n,!1,null,"f6d9654a",null);t["default"]=I.exports},dafc:function(e,t,i){},db19:function(e,t,i){},db7d:function(e,t,i){"use strict";i("3d52")},db9c:function(e,t,i){},dbca:function(e,t,i){},dbe0:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.item.mediaType===e.MEDIA_TYPE_RADARLINK?i("div",[i("RadarLink",{attrs:{"radar-title":e.radarTitle,"class-name":"link-preview","link-title":e.item.title,"cover-url":e.item.coverUrl,content:e.item.content}})],1):e.item.mediaType===e.MEDIA_TYPE_SMARTFORM?i("div",{staticClass:"content-item-div"},[i("svg-icon",{attrs:{"icon-class":"form-preview","class-name":"form-preview"}}),i("div",{staticClass:"file-info"},[i("div",{staticClass:"inoneline"},[e._v(e._s(e.item.formName||e.item.form.formName))]),i("div",{staticClass:"desc"},[e._v(e._s(e.item.description||e.item.form.description))])])],1):i("div",[e.item.mediaType.toString()===e.MEDIA_TYPE_TEXT?i("div",{staticClass:"content-item-div"},[e._v(e._s(e.item.content))]):i("div",{staticClass:"content-item-div"},[i("div",{staticClass:"cover-img"},[e.item.mediaType.toString()===e.MEDIA_TYPE_FILE?i("svg",{staticClass:"icon",attrs:{"aria-hidden":"true",width:"60",height:"60"}},[i("use",{attrs:{"xlink:href":"#icon-"+e.getFileIconClass}})]):e.item.mediaType.toString()===e.MEDIA_TYPE_VIDEO?i("video",{attrs:{src:e.item.url}}):i("el-image",{attrs:{src:e.dealCoverUrl(e.item,e.item.mediaType)}},[e.item.mediaType.toString()===e.MEDIA_TYPE_IMGLINK?i("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[i("svg",{staticClass:"icon-img-link",attrs:{width:25,height:25}},[i("use",{attrs:{href:"#icon-img-link"}})])]):e._e()])],1),i("div",{staticClass:"file-info"},[i("div",{staticClass:"inoneline"},[e._v(e._s(e.item.title))]),i("div",{staticClass:"desc"},[e._v(e._s(e.dealContent(e.item.content,e.item.mediaType)))])])])])},n=[],r=i("5530"),s=(i("caad"),i("d3b7"),i("25f0"),i("2532"),i("dd70")),o=i("cf45"),l=i("7d3b"),c={name:"",components:{RadarLink:l["default"]},props:{item:{type:Object,default:function(){}}},data:function(){return{MEDIA_TYPE_TEXT:s["fc"],MEDIA_TYPE_FILE:s["Zb"],MEDIA_TYPE_VIDEO:s["gc"],MEDIA_TYPE_IMGLINK:s["ac"],MEDIA_TYPE_RADARLINK:s["dc"],MEDIA_TYPE_SMARTFORM:s["ec"]}},computed:{getFileIconClass:function(){return Object(o["z"])(this.item.url)},radarTitle:function(){var e,t=Object(r["a"])({},this.item);return(null===(e=t.radar)||void 0===e?void 0:e.radarTitle)||t.radarTitle}},created:function(){},mounted:function(){},methods:{dealContent:function(e,t){return[s["cc"],s["gc"],s["Zb"]].includes(t.toString())?Object(o["x"])(e):e},dealCoverUrl:function(e,t){return[s["ac"],s["bc"]].includes(t.toString())?e.coverUrl:e.url}}},u=c,d=(i("e6f4"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"bb27f22a",null);t["default"]=p.exports},dbe4:function(e,t,i){"use strict";i("9047")},dc6e:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"material-video-container item-container material-item-scss"},[i("div",{staticClass:"cover-img"},[i("MaskItem",{attrs:{"tool-list":e.toolList,"selected-material-list":e.selectedMaterialList,"material-item":e.item,"media-type":e.MEDIA_TYPE_VIDEO},on:{selectMaterial:e.onSelectMaterial,openMaterialDialog:e.openMaterialDialog,getList:e.getList,changeList:e.changeList,onPreview:e.onPreview}}),e.item.coverUrl?i("el-image",{attrs:{src:e.item.coverUrl}},[i("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[i("svg",{staticClass:"icon-default-video",attrs:{width:30,height:30}},[i("use",{attrs:{href:"#icon-default-video"}})])])]):i("video",{attrs:{id:"video","webkit-playsinline":"true",playsinline:"true",autoplay:!1,preload:"auto",poster:e.item.coverUrl,src:e.item.materialUrl},on:{onError:e.onErrorVideo}}),i("div",{staticClass:"bottom-desc"},[i("TagList",{attrs:{"tag-list":e.tagList}}),e.showExpireTime?i("div",{staticClass:"expire-time"},[e._v(" "+e._s(e.item.expireTime)+" 过期 ")]):e._e()],1)],1),i("div",{staticClass:"desc"},[e.item.showMaterial&&!e.hideStatus?i("div",{staticClass:"publish-status"},[e._v("发布")]):e._e(),i("div",{staticClass:"file-title inoneline",attrs:{title:e.item.materialName}},[e._v(e._s(e.item.materialName))])]),i("VideoModal",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],ref:"videoModal",on:{closeModal:e.closeModal}})],1)},n=[],r=i("e8d4"),s=i("3d09"),o=i("dd70"),l=i("cf45"),c=i("c408"),u=i("f7d0"),d={name:"VideoItem",components:{TagList:r["a"],MaskItem:s["a"],VideoModal:c["default"]},props:{item:{type:Object,default:function(){}},hideStatus:{type:Boolean,default:!1},showExpireTime:{type:Boolean,default:!1},toolList:{type:Array,default:null},selectMaterial:{type:Function,default:function(){}},selectedMaterialList:{type:Array,default:function(){return[]}}},data:function(){return{MEDIA_TYPE_VIDEO:o["gc"],visible:!1}},computed:{tagList:function(){return Object(l["K"])(this.item.tagList||[],this.$store)}},watch:{},created:function(){},mounted:function(){},methods:{onErrorVideo:function(e){},changeList:function(e){this.$emit("changeList",e)},onPreview:function(){this.visible=!0,this.$refs.videoModal.play(this.item.materialUrl)},getList:function(){this.$emit("getList")},openMaterialDialog:function(e){this.$emit("openMaterialDialog",e)},onSelectMaterial:function(){Object(u["a"])(this.selectedMaterialList,this.item,this.selectMaterial)},closeModal:function(){this.visible=!1}}},p=d,f=(i("5e0a"),i("d2d3"),i("2877")),A=Object(f["a"])(p,a,n,!1,null,"546fae4a",null);t["a"]=A.exports},dca8:function(e,t,i){var a=i("23e7"),n=i("bb2f"),r=i("d039"),s=i("861d"),o=i("f183").onFreeze,l=Object.freeze,c=r((function(){l(1)}));a({target:"Object",stat:!0,forced:c,sham:!n},{freeze:function(e){return l&&s(e)?l(o(e)):e}})},dcbe:function(e,t,i){var a=i("30c9"),n=i("1310");function r(e){return n(e)&&a(e)}e.exports=r},dd3f:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"quick-demo enterprise-wechat-demo"},[i("div",{staticClass:"quick-div"},[i("el-alert",{attrs:{title:"即将为你自动化配置侧边工具栏页面",type:"warning","show-icon":"",closable:!1}}),i("div",{staticClass:"step-div"},[i("el-steps",{attrs:{direction:"vertical",active:e.active,"finish-status":"success"}},[i("el-step",{attrs:{title:"扫码登录"}},[0===e.active?i("template",{staticClass:"scan-login",slot:"description"},[i("div",{staticClass:"orange tip"},[e._v(" 请使用企业微信管理员扫码登录,成功登录后将开始自动化配置 ")]),e.qrcodeUrl&&!e.qrcodeLoad?i("div",{staticClass:"qrcode-div"},[e.scanLoginError?i("div",{staticClass:"overdue-div"},[i("div",[i("i",{staticClass:"el-icon-warning"})]),i("div",{staticClass:"overdue-tip"},[i("span",[e._v(e._s(e.scanLoginErrText))]),e.refresh?e._e():i("span",{staticClass:"reGet",on:{click:e.reGetQrcode}},[e._v("刷新")])])]):e._e(),i("img",{attrs:{src:e.qrcodeUrl}})]):i("div",{staticClass:"qrcode-div"},[i("div",[i("i",{staticClass:"el-icon-loading"})])]),e.needCode?i("CodeValidata",{attrs:{"qrcode-key":e.qrcodeKey,"tl-key":e.tlKey,tel:e.tel},on:{loginSuccessAndConfig:e.loginSuccessAndConfig}}):e._e()],1):e._e()],2),e.active>0?i("el-step",{attrs:{title:"自动化配置"}},[i("template",{staticClass:"auto-config",slot:"description"},[1===e.active?i("div",[i("div",{staticClass:"orange tip"},[e._v("自动化配置期间,请勿关闭当前界面")]),i("div",{staticClass:"config-progress"},[i("el-progress",{attrs:{type:"circle",percentage:e.configPercentage,status:e.configStatus}}),"exception"===e.configStatus?i("div",{staticClass:"err-tip"},[e._v(" "+e._s(e.configErrTip)+" ")]):e._e()],1),"exception"===e.configStatus?i("div",[i("el-button",{attrs:{type:"primary"},on:{click:e.reStartAutoConfig}},[e._v("重新配置")])],1):e._e()]):e._e(),e.active>1?i("div",["success"===e.configStatus?i("div",[i("div",{staticClass:"orange tip"},[e._v("已完成侧边工具栏配置")]),i("div",{staticClass:"config-progress"},[i("el-progress",{attrs:{type:"circle",percentage:e.configPercentage,status:e.configStatus}})],1),i("div",[i("el-button",{staticStyle:{"margin-top":"12px"},attrs:{type:"primary"},on:{click:e.finishConfig}},[e._v("完成配置")])],1)]):e._e()]):e._e()])],2):e._e()],1)],1)],1)])},n=[],r=i("5530"),s=i("c7eb"),o=i("1da1"),l=(i("b64b"),i("50fc")),c=i("2ff4"),u=i("2502"),d=i("dd70"),p=i("376d"),f=null,A=200,h=100,m=10,g={components:{CodeValidata:p["default"]},props:{configId:{type:String,default:""},extraDrawer:{type:Boolean,default:!1},form:{type:Object,default:function(){return{}}},defaultDomain:{type:Object,default:function(){return{}}}},data:function(){return{active:0,qrcodeUrl:"",qrcodeLoad:!1,qrcodeKey:"",scanLoginError:!1,scanLoginErrText:"登录失败",configPercentage:0,timerCount:A,progressTimer:null,configStatus:"",configErrTip:"配置失败",configLoad:!1,checkTimeStart:!0,isThirdType:this.$store.state.serverInfo&&this.$store.state.serverInfo.serverType===d["bd"],tel:"",needCode:!1,tlKey:"",refresh:!1}},computed:{},watch:{extraDrawer:function(e){e&&this.reGetQrcode(),this.checkTimeStart=e}},created:function(){},mounted:function(){this.isThirdType&&this.initConfig()},methods:{checkQrcode:function(e){var t=this;return Object(o["a"])(Object(s["a"])().mark((function i(){return Object(s["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,Object(l["b"])({qrcodeKey:e,status:"QRCODE_SCAN_NEVER"}).then((function(i){switch(i.data.status){case"QRCODE_SCAN_NEVER":break;case"QRCODE_EXPIRE":t.scanLoginError=!0,t.scanLoginErrText="二维码已过期",t.stopTimer();break;case"QRCODE_SCAN_SUCC":t.loginSuccessAndConfig();break;case"QRCODE_LOGIN_FAIL":t.scanLoginError=!0,t.scanLoginErrText="登录失败",t.stopTimer();break;case"QRCODE_LOGIN_FAIL_CORP_MISMATCH":t.dealScanInconformity();break;case"NEED_MOBILE_CONFIRM":t.stopTimer(),t.refresh=!0,t.scanLoginError=!0,t.scanLoginErrText="登录中",t.needCode=!0,t.tlKey=i.data.tlKey,t.tel=i.data.tel;break;case"WAIT_MOBILE_CONFIRM":t.stopTimer(),t.needCode=!0;break;default:break}t.checkTimeStart&&t.timerCount>=0&&(t.timerCount=t.timerCount-1,clearTimeout(f),f=setTimeout((function(){t.checkQrcode(e),clearTimeout(f)}),2500))}));case 2:case"end":return i.stop()}}),i)})))()},loginSuccessAndConfig:function(){this.active=1,this.stopTimer(),this.startAutoConfig()},dealScanInconformity:function(){var e=this;this.isThirdType?(this.scanLoginError=!0,this.scanLoginErrText="与注册企业不一致",this.stopTimer()):(this.qrcodeLoad=!0,this.stopTimer(),this.confirmModal({msg:"当前扫码企业与现有企业不一致,若继续,则EasyInk下所有在线员工将被强制下线,原有企业数据不可查看,是否继续?"},(function(){e.loginSuccessAndConfig()}),(function(){e.$emit("closeDrawer"),e.init(),e.qrcodeUrl="",e.qrcodeLoad=!1})))},stopTimer:function(){clearTimeout(f),this.checkTimeStart=!1},addConfig:function(e){var t=this;return Object(o["a"])(Object(s["a"])().mark((function i(){var a;return Object(s["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a=!0,i.next=3,c["a"](e).then((function(e){t.$emit("getNowConfig"),a=!0})).catch((function(e){t.msgError(e.msg||"企微配置添加失败"),a=!1}));case 3:return i.abrupt("return",a);case 4:case"end":return i.stop()}}),i)})))()},reGetQrcode:function(){this.qrcodeUrl="",this.needCode=!1,this.tlKey="",this.tel="",this.scanLoginError=!1,this.checkTimeStart=!0,this.timerCount=A,this.getQrcode()},initConfig:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i,a;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.configId){t.next=7;break}return i=Object(u["b"])({status:0}),t.next=4,e.addConfig(i);case 4:if(a=t.sent,a){t.next=7;break}return t.abrupt("return");case 7:e.getQrcode();case 8:case"end":return t.stop()}}),t)})))()},getQrcode:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:Object(l["d"])({}).then((function(t){e.qrcodeUrl=t.data.qrcodeUrl,e.qrcodeKey=t.data.qrcodeKey,e.checkQrcode(t.data.qrcodeKey)}));case 1:case"end":return t.stop()}}),t)})))()},nextStep:function(){this.active=this.active+1},reStartAutoConfig:function(){this.configPercentage=0,this.configStatus="",this.configErrTip="配置失败",this.startAutoConfig()},startAutoConfig:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i,a;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.configLoad){t.next=2;break}return t.abrupt("return");case 2:if(i={},e.defaultDomain&&Object.keys(e.defaultDomain).length){t.next=8;break}return t.next=6,Object(l["e"])({});case 6:a=t.sent,e.defaultDomain=a.data;case 8:e.isThirdType&&(i={dashboardDomain:e.defaultDomain.dashboard,sidebarDomain:e.defaultDomain.sidebar,weComSystemDomain:e.defaultDomain.scrm}),e.loadProgress(),e.configLoad=!0,e.handleAutoConfig(Object(r["a"])(Object(r["a"])({},i),{},{qrcodeKey:e.qrcodeKey}));case 12:case"end":return t.stop()}}),t)})))()},handleAutoConfig:function(e){var t=this;Object(l["a"])(e).then((function(e){t.configLoad=!1,clearInterval(t.progressTimer),t.configStatus="success",t.configPercentage=h,t.nextStep(),t.$emit("getNowConfig")})).catch((function(e){t.configLoad=!1,clearInterval(t.progressTimer),t.configPercentage=h,t.configStatus="exception",t.configErrTip=e&&e.msg||"配置失败"}))},loadProgress:function(){var e=this;this.progressTimer=setInterval((function(){e.configPercentage<h-m?e.configPercentage=e.configPercentage+m:clearInterval(e.progressTimer)}),800)},init:function(){clearTimeout(f),this.active=0,this.checkTimeStart=!0,this.timerCount=A},finishConfig:function(){this.checkTimeStart=!1,this.init(),this.$emit("closeDrawer")},updateConfig:function(e,t){var i=this;c["g"](e).then((function(){t(),i.$emit("getNowConfig")})).catch((function(e){i.msgError(e.msg||"企微配置更新失败")}))}}},v=g,b=(i("73da"),i("bef9"),i("2877")),y=Object(b["a"])(v,a,n,!1,null,"32678a68",null);t["default"]=y.exports},dd53:function(e,t,i){"use strict";i("582b")},dd73:function(e,t,i){},dd7b:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.webLoginLoading,expression:"webLoginLoading"}],staticClass:"login"},[a("img",{staticClass:"login-logo",style:"top:"+e.logoTop+"px",attrs:{src:i("eea2"),alt:""}}),a("div",{staticClass:"login-wrap"},[a("div",{staticClass:"login-tab-wrap"},[a("div",{directives:[{name:"show",rawName:"v-show",value:!e.isAuth,expression:"!isAuth"}],class:["login-tab",e.activeTab===e.qrCodeLoginType?"active":""],on:{click:function(t){return e.changeActiveTab(e.qrCodeLoginType)}}},[a("div",{staticClass:"login-tab-text",staticStyle:{color:"#6bb4ab"}},[e._v("扫码登录")]),a("div",{staticClass:"login-tab-after"})]),a("div",{directives:[{name:"show",rawName:"v-show",value:!e.isThird,expression:"!isThird"}],class:["login-tab","login-tab2",e.activeTab===e.passwordLoginType?"active":""],on:{click:function(t){return e.changeActiveTab(e.passwordLoginType)}}},[a("div",{staticClass:"login-tab-before"}),a("div",{staticClass:"login-tab-text"},[e._v("账密登录")]),a("div",{staticClass:"login-tab-after"})]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.isAuth,expression:"isAuth"}],class:["login-tab","active"],on:{click:function(t){return e.changeActiveTab(e.qrCodeLoginType)}}},[a("div",{staticClass:"login-tab-text"},[e._v("企业注册")]),a("div",{staticClass:"login-tab-after"})])]),a("div",{staticClass:"login-form-wrap"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.isThird&&!e.isAuth&&e.isEnterPriseUnAuth,expression:"isThird && !isAuth && isEnterPriseUnAuth"}],staticClass:"login-third-err-wrap"},[a("div",{staticClass:"err-title"},[e._v("登录失败")]),e._m(0),a("el-button",{staticClass:"primary-btn",attrs:{type:"primary"},on:{click:function(t){e.isAuth=!0,e.isEnterPriseUnAuth=!1}}},[e._v("我是企业管理员,去授权")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:e.isThird&&!e.isAuth&&e.isEnterPriseUnConfig,expression:"isThird && !isAuth && isEnterPriseUnConfig"}],staticClass:"login-third-err-wrap"},[a("div",{staticClass:"err-title"},[e._v("登录失败")]),e._m(1),a("el-button",{attrs:{type:"primary"},on:{click:e.reThirdScan}},[e._v("已配置,重新扫码")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:e.isThird&&e.isAuth,expression:"isThird && isAuth"}],staticClass:"login-third-auth-wrap"},[e._m(2),a("div",{staticClass:"third-btn-area"},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:!e.isGoneAuth,expression:"!isGoneAuth"}],staticClass:"primary-btn",attrs:{type:"primary"},on:{click:e.gotoAuth}},[e._v("我是企业管理员,去授权")]),a("el-button",{directives:[{name:"show",rawName:"v-show",value:e.isGoneAuth,expression:"isGoneAuth"}],staticClass:"primary-btn",attrs:{type:"primary"},on:{click:function(t){e.isAuth=!1,e.isGoneAuth=!1,e.isEnterPriseUnAuth=!1}}},[e._v("我已授权,去扫码登录")]),a("el-button",{directives:[{name:"show",rawName:"v-show",value:e.isGoneAuth,expression:"isGoneAuth"}],on:{click:e.gotoAuth}},[e._v("重新授权")]),a("el-button",{on:{click:e.gotoRegister}},[e._v("还没有企业微信,去注册")])],1)]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.isThird&&!e.isAuth&&!e.isEnterPriseUnAuth&&!e.isEnterPriseUnConfig,expression:"isThird && !isAuth && !isEnterPriseUnAuth && !isEnterPriseUnConfig"}],staticClass:"login-third-wrap",style:e.authRedict?"justify-content: center;":""},[e.authRedict?e._e():a("div",{staticClass:"step"},[a("p",[e._v("① 企业已注册EasyInk,员工可直接扫码登录")]),a("p",[e._v("② 企业未注册EasyInk,需要企业管理员前往授权")])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.isThird&&!e.isAuth&&!e.isEnterPriseUnAuth&&!e.isEnterPriseUnConfig,expression:"isThird && !isAuth && !isEnterPriseUnAuth && !isEnterPriseUnConfig"}],staticClass:"third-btn-area"},[a("el-button",{staticClass:"primary-btn",attrs:{loading:e.loginLoading,type:"primary"},on:{click:e.gotoLogin}},[a("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#icon-work-logo"}})]),e._v("企业微信扫码登录 ")]),e.authRedict?e._e():a("el-button",{staticStyle:{color:"#6bb4ab"},on:{click:function(t){e.isAuth=!0}}},[a("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#icon-easyWeCom-logo"}})]),e._v("授权EasyInk ")])],1)]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.activeTab===e.qrCodeLoginType&&!e.isThird,expression:"activeTab === qrCodeLoginType && !isThird"}],staticClass:"login-qrcode-wrap"},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.hasEnterprise,expression:"hasEnterprise"}],staticClass:"login-info"},[a("img",{attrs:{src:i("7a3f")}}),a("span",[e._v("员工请在此使用企业微信扫码登录")])]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.hasEnterprise,expression:"hasEnterprise"}],staticClass:"qrcode-area"},[a("div",{staticClass:"qrcode",attrs:{id:"qrcode"}})]),a("div",{directives:[{name:"show",rawName:"v-show",value:!e.hasEnterprise,expression:"!hasEnterprise"}],staticClass:"no-enterprise-info"},[a("el-alert",{attrs:{title:"系统未配置有效企业,请联系系统管理员",type:"warning",closable:!1,"show-icon":""}})],1)]),a("el-form",{directives:[{name:"show",rawName:"v-show",value:e.activeTab===e.passwordLoginType,expression:"activeTab === passwordLoginType"}],ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules}},[a("el-alert",{attrs:{title:"系统超级管理员请在此登录",type:"warning",closable:!1,"show-icon":""}}),a("el-form-item",{attrs:{prop:"username"}},[a("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:"请输入账号"},on:{change:e.autoSetPwd},model:{value:e.loginForm.username,callback:function(t){e.$set(e.loginForm,"username",t)},expression:"loginForm.username"}}),a("i",{staticClass:"iconfont icon-account"})],1),a("el-form-item",{attrs:{prop:"password"}},[a("el-input",{attrs:{type:e.pwdVisible?"text":"password","auto-complete":"off",placeholder:"请输入密码"},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}}),a("i",{staticClass:"iconfont icon-password"}),a("i",{class:[e.pwdVisible?"icon-plaintext":"icon-ciphertext","iconfont"],on:{click:e.changePwdVisible}})],1),a("el-form-item",{attrs:{prop:"code"}},[a("el-input",{staticStyle:{width:"63%"},attrs:{"auto-complete":"off",placeholder:"请输入验证码"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}},model:{value:e.loginForm.code,callback:function(t){e.$set(e.loginForm,"code",t)},expression:"loginForm.code"}}),a("i",{staticClass:"iconfont icon-verification"}),a("div",{staticClass:"login-code"},[a("img",{staticClass:"login-code-img",attrs:{src:e.codeUrl},on:{click:e.getCode}})])],1),a("el-checkbox",{staticClass:"fl",staticStyle:{margin:"0px 0px 25px 0px",padding:"10px 0 0 5px"},model:{value:e.loginForm.rememberMe,callback:function(t){e.$set(e.loginForm,"rememberMe",t)},expression:"loginForm.rememberMe"}},[e._v("记住密码")]),a("el-form-item",{staticStyle:{width:"100%"}},[a("el-button",{staticClass:"primary-btn",staticStyle:{width:"100%"},attrs:{loading:e.loading,size:"medium",type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e.loading?a("span",[e._v("登 录 中...")]):a("span",[e._v("登 录")])])],1)],1),e.isEnterPriseUnAuth?a("img",{staticClass:"login-bg-error",attrs:{src:i("3a7c"),alt:""}}):e.isEnterPriseUnConfig?a("img",{staticClass:"login-bg-error",attrs:{src:i("ce3f"),alt:""}}):a("img",{staticClass:"login-bg-default",attrs:{src:i("3722"),alt:""}})],1)])]),a("div",{staticClass:"cp",staticStyle:{position:"absolute",bottom:"20px",width:"100%","text-align":"center",color:"#999"},on:{click:e.openLink}},[e._v(e._s(e.icp))])])},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"err-info"},[i("p",[e._v("所在企业未授权EasyInk应用")]),i("p",[e._v("请联系企业管理员前往授权")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"err-info"},[i("p",[e._v("所在企业未配置通讯录")]),i("p",[e._v("请联系企业管理员登录系统并完善配置")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"step"},[i("p",[e._v("① 使用EasyInk需通过企业微信授权进行企业验证")]),i("p",[e._v("② 未注册企业微信的用户请先注册")]),i("p",[e._v("③ 完成授权后,需扫码登录系统完成初始化配置")])])}],r=i("5530"),s=i("c7eb"),o=i("1da1"),l=(i("99af"),i("caad"),i("a9e3"),i("ac1f"),i("2532"),i("466d"),i("7ded")),c=i("a78e"),u=i.n(c),d=i("cf45"),p=i("5c96"),f=i("dd70"),A=i("5f87"),h="CODE",m="STATE",g=1,v=2,b=30,y="AUTH_STATE",_="THIRD_LOGIN_STATE",w="SERVER_TYPE",C="WEB_LOGIN",x=1001,k=1e3,T={name:"Login",data:function(){return{activeTab:g,hasEnterprise:!0,codeUrl:"",cookiePassword:"",loginForm:{username:"",password:"",rememberMe:!1,code:""},loginRules:{username:[{required:!0,trigger:"submit",message:"用户名不能为空"}],password:[{required:!0,trigger:"submit",message:"密码不能为空"}],code:[{required:!0,trigger:"submit",message:"验证码不能为空"}]},loading:!1,redirect:void 0,dialogVisible:!0,isDemonstrationLogin:!1,pwdVisible:!1,logoTop:0,isThird:u.a.get(w)===f["bd"]||!1,isAuth:!1,isGoneAuth:!1,authRedict:!1,thirdLoginUrl:"",isEnterPriseUnAuth:!1,isEnterPriseUnConfig:!1,qrCodeLoginType:g,passwordLoginType:v,loginLoading:!1,webLoginLoading:!1,icp:""}},watch:{$route:{handler:function(e){this.redirect=e.query&&e.query.redirect},immediate:!0}},mounted:function(){this.setLogoTop(),window.addEventListener("resize",this.setLogoTop),this.getServerType(),this.checkCode(),this.checkAuthCode()},created:function(){Object(d["C"])()},methods:{checkCode:function(){var e=this,t=window.location.href,i=u.a.get(h),a=u.a.get(m);if(i)if(a===C){var n=t.match(/code=(.*)&state/)[1],r=t.match(/state=(.*)#/)[1],s={code:n,state:r};Object(l["l"])(s).then((function(e){u.a.remove(h),u.a.remove(m)})).catch((function(){u.a.remove(h),u.a.remove(m)}))}else this.wecomLogin(i,a);else if(t.includes("code=")&&!t.includes("auth_code=")&&t.includes("&state=")){var o=t.match(/code=(.*)&state/)[1];if(t.match(/state=(.*)#/)[1]===C){var c=t.match(/state=(.*)#/)[1];u.a.set(h,o),u.a.set(m,c);var d={code:o,state:c};this.webLoginLoading=!0,Object(l["l"])(d).then((function(t){Object(A["c"])(t.data.token),e.$router.push({path:e.redirect||"/"}),u.a.remove(h),u.a.remove(m),e.webLoginLoading=!1})).catch((function(){e.webLoginLoading=!1,u.a.remove(h),u.a.remove(m)}))}else{var p=Number(t.match(/state=(.*)&/)[1]);u.a.set(h,o),u.a.set(m,p),window.location.href="/"}}},checkAuthCode:function(){var e=window.location.href;if(e.includes("auth_code=")){var t=e.match(/auth_code=(.*)&state/)[1];e.includes("state=".concat(y))?(this.authRedict=!0,Object(l["d"])({authCode:t}).then((function(){Object(d["m"])()}))):e.includes("state=".concat(_))&&this.qrcodeLogin3rd(t)}},gotoRegister:function(){window.location.href="https://work.weixin.qq.com/wework_admin/register_wx"},gotoLogin:function(){window.location.href=this.thirdLoginUrl},gotoAuth:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.isGoneAuth=!0,i=window.open(),Object(l["e"])().then((function(e){var t=e.data,a=t.suiteId,n=t.preAuthCode,r=encodeURIComponent(window.location.origin);i.location.href="https://open.work.weixin.qq.com/3rdapp/install?suite_id=".concat(a,"&pre_auth_code=").concat(n,"&redirect_uri=").concat(r,"&state=").concat(y)})).catch((function(e){i.close()}));case 3:case"end":return t.stop()}}),t)})))()},reThirdScan:function(){this.isEnterPriseUnConfig=!1,this.isEnterPriseUnAuth=!1},getServerType:function(){var e=this;this.$store.dispatch("GetServerType").then((function(t){var i;e.isThird=t.data.serverType===f["bd"],u.a.set(w,t.data.serverType),e.getWxConfig(e.isThird),e.icp=null===t||void 0===t||null===(i=t.data)||void 0===i?void 0:i.icp}))},getWxConfig:function(e){var t=this;e?Object(l["f"])().then((function(e){var i=e.data.appid,a="member",n=encodeURIComponent(window.location.origin);t.thirdLoginUrl="https://open.work.weixin.qq.com/wwopen/sso/3rd_qrConnect?appid=".concat(i,"&redirect_uri=").concat(n,"&state=").concat(_,"&usertype=").concat(a)})):Object(l["a"])().then((function(e){if(e.data){var i=e.data,a=i.corpId,n=i.agentId,r=i.status,s=window.WwLogin;new s({id:"qrcode",appid:a,agentid:n,redirect_uri:window.location.origin,state:r,href:"data:text/css;base64,LmltcG93ZXJCb3ggLnFyY29kZSB7d2lkdGg6IDE2NXB4O30KLmltcG93ZXJCb3ggLndycF9jb2RlIHsKICAgIHdpZHRoOiAyMDBweDsKICAgIGhlaWdodDogMjAwcHg7CiAgICBib3JkZXI6IDFweCBzb2xpZCAjZDdkN2Q3OwogICAgcGFkZGluZzogMTdweDsKICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7CiAgICBtYXJnaW46IDIwcHggYXV0byAwIWltcG9ydGFudDsKfQouaW1wb3dlckJveCAudGl0bGUge2Rpc3BsYXk6IG5vbmU7fQouc3RhdHVzX2ljb24ge2Rpc3BsYXk6IG5vbmUgICFpbXBvcnRhbnR9Ci5pbXBvd2VyQm94IC5zdGF0dXMge3RleHQtYWxpZ246IGNlbnRlcjt9CiN3eF9kZWZhdWx0X3RpcCBwOm50aC1jaGlsZCgyKSB7CiAgICBkaXNwbGF5OiBub25lOwp9Cgog",lang:"zh"})}else t.hasEnterprise=!1,t.changeActiveTab(v)})).catch((function(){t.hasEnterprise=!1,t.changeActiveTab(v)}))},wecomLogin:function(e,t){var i=this;this.$store.dispatch("Login",{code:e,state:t,type:"qrcode"}).then((function(){i.$router.push({path:i.redirect||"/"}),u.a.remove(h),u.a.remove(m)})).catch((function(){u.a.remove(h),u.a.remove(m)}))},qrcodeLogin3rd:function(e){var t=this;this.loginLoading=!0,Object(d["m"])(),this.$store.dispatch("Login",{authCode:e,type:"third"}).then((function(){t.$router.push({path:t.redirect||"/"})})).catch((function(e){t.loginLoading=!1,e.code===x?t.isEnterPriseUnAuth=!0:e.code===k?t.isEnterPriseUnConfig=!0:p["Notification"].error({title:e.msg})}))},changeActiveTab:function(e){this.activeTab=e,e===v&&this.getCode()},setLogoTop:function(){var e;this.logoTop=((null===(e=document.getElementsByClassName("login")[0])||void 0===e?void 0:e.offsetTop)-52)/2},getCode:function(){var e=this;Object(l["b"])().then((function(t){e.codeUrl="data:image/gif;base64,"+t.img,e.uuid=t.uuid}))},getCookie:function(e){var t=u.a.get(e),i=u.a.get("rememberMe");this.loginForm={username:void 0===e?this.loginForm.username:e,password:void 0===t?this.loginForm.password:t,rememberMe:void 0!==i&&Boolean(i)}},autoSetPwd:function(){this.getCookie(this.loginForm.username)},handleLogin:function(){var e=this;this.$refs.loginForm.validate((function(t){var i;t&&(e.loading=!0,e.loginForm.rememberMe?(u.a.set(e.loginForm.username,e.loginForm.password,{expires:b}),u.a.set("rememberMe",e.loginForm.rememberMe,{expires:b})):(u.a.remove(e.loginForm.username),u.a.remove("rememberMe")),e.loginForm.uuid=e.uuid,e.$store.dispatch("Login",Object(r["a"])(Object(r["a"])({},e.loginForm),{},{publicKey:null===(i=e.$store.state)||void 0===i||null===(i=i.secretKey)||void 0===i?void 0:i.RSAPublicKey})).then((function(){e.hasEnterprise?e.$router.push({path:e.redirect||"/",query:null}):e.$router.push({path:"/system/configCenter/enterpriseWechat",query:null})})).catch((function(){e.loading=!1,e.getCode()})))}))},changePwdVisible:function(){this.pwdVisible=!this.pwdVisible},openLink:function(){var e="https://beian.miit.gov.cn/";window.open(e)}}},S=T,I=(i("4917"),i("2877")),E=Object(I["a"])(S,a,n,!1,null,"3cc74770",null);t["default"]=E.exports},dd9d:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"add-smart-form wrap"},[i("div",{staticClass:"wrap-body"},[i("div",{staticClass:"wrap-body-form drawer-div"},[i("el-form",{ref:"form",staticClass:"form",attrs:{model:e.formSetting,"label-width":"80px",rules:e.rules}},[i("p",{staticClass:"config-title",staticStyle:{"margin-bottom":"10px"}},[e._v("基础设置")]),i("el-form-item",{attrs:{label:"所属分组",prop:"belongGroup"}},[i("el-cascader",{staticStyle:{width:"360px"},attrs:{options:e.belongGroupOptions,props:{expandTrigger:"hover",label:"name",value:"id",checkStrictly:!0},placeholder:"请选择表单所属分组"},model:{value:e.belongGroup,callback:function(t){e.belongGroup=t},expression:"belongGroup"}})],1),i("el-form-item",{attrs:{label:"截止时间",required:"",prop:"deadLineType","label-width":"78px"}},[i("el-radio-group",{model:{value:e.formSetting.deadLineType,callback:function(t){e.$set(e.formSetting,"deadLineType",t)},expression:"formSetting.deadLineType"}},[i("el-radio",{attrs:{label:e.FORVER_EFFECT}},[e._v("永久有效")]),i("el-radio",{attrs:{label:e.CUSTOMER_DATE}},[e._v("自定义日期")])],1),e.formSetting.deadLineType===e.CUSTOMER_DATE?i("el-form-item",{staticStyle:{"padding-left":"0px"}},[i("el-date-picker",{staticStyle:{width:"225px"},attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"选择日期"},model:{value:e.formSetting.customDate,callback:function(t){e.$set(e.formSetting,"customDate",t)},expression:"formSetting.customDate"}})],1):e._e()],1),e.isThirdApplication?i("el-form-item",{attrs:{label:"公众号","label-width":"78px"}},[i("el-select",{staticStyle:{width:"360px"},attrs:{placeholder:"请选择公众号"},model:{value:e.formSetting.weChatPublicPlatform,callback:function(t){e.$set(e.formSetting,"weChatPublicPlatform",t)},expression:"formSetting.weChatPublicPlatform"}},e._l(e.officialAccountOption,(function(e){return i("el-option",{key:e.officialAccountAppId,attrs:{label:e.nickName,value:e.officialAccountAppId}})})),1),i("div",{staticClass:"weChatPublicPlatform-info"},[e._v(" 为保证精准匹配客户,需绑定企业已认证公众号进行授权 ")])],1):e._e(),i("p",{staticClass:"config-title",staticStyle:{margin:"10px 0"}},[e._v("提交设置")]),i("el-form-item",{attrs:{label:"提交次数",prop:"submitCntType","label-width":"78px",required:""}},[i("el-radio-group",{model:{value:e.formSetting.submitCntType,callback:function(t){e.$set(e.formSetting,"submitCntType",t)},expression:"formSetting.submitCntType"}},[i("el-radio",{attrs:{label:e.NOT_LIMIT}},[e._v("不限制次数")]),i("el-radio",{attrs:{label:e.ONE_TIME}},[e._v("每个客户限提交1次")])],1)],1),i("el-form-item",{attrs:{label:"提交结果"}},[i("el-radio-group",{model:{value:e.formSetting.submitActionType,callback:function(t){e.$set(e.formSetting,"submitActionType",t)},expression:"formSetting.submitActionType"}},[i("el-radio",{attrs:{label:e.NOT_JUMP}},[e._v("不跳转")]),i("el-radio",{attrs:{label:e.JUMP_RESULT_PAGE}},[e._v("跳转结果页")]),i("el-radio",{attrs:{label:e.JUMP_LINK}},[e._v("跳转链接")])],1),e.formSetting.submitActionType===e.JUMP_RESULT_PAGE?i("div",{staticClass:"item-div mt10"},[i("el-form-item",{attrs:{"label-width":"0",prop:"url"}},[i("div",{staticClass:"jump-result-page-item mb10"},[i("span",{staticClass:"item-label"},[e._v("图标")]),i("UploadFile",{attrs:{"file-url":e.formSetting.actionInfoParam.iconUrl,multiple:!1,"show-type":e.UPLOAD_ONE_TYPE,"show-file-list":!1,limit:e.UPLOAD_NUMS_LIMIT,"list-type":"picture-card",drag:!1,accept:".jpg,.png,.gif"},on:{"update:fileUrl":function(t){return e.$set(e.formSetting.actionInfoParam,"iconUrl",t)},"update:file-url":function(t){return e.$set(e.formSetting.actionInfoParam,"iconUrl",t)}}}),i("span",{staticClass:"item-image-info"},[e._v(" 注:只能上传jpg/png格式图片,且不超过2M ")])],1),i("div",{staticClass:"jump-result-page-item"},[i("span",{staticClass:"item-label"},[e._v("文案")]),i("el-input",{attrs:{resize:"none","show-word-limit":"",maxlength:20,type:"textarea",rows:3},model:{value:e.formSetting.actionInfoParam.document,callback:function(t){e.$set(e.formSetting.actionInfoParam,"document",t)},expression:"formSetting.actionInfoParam.document"}})],1)])],1):e._e(),e.formSetting.submitActionType===e.JUMP_LINK?i("div",{staticClass:"item-div mt10"},[i("el-form-item",{attrs:{"label-width":"58px"}},[i("div",{attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name-required"},[e._v("地址")])]),i("el-input",{attrs:{placeholder:"请输入链接访问地址",clearable:""},model:{value:e.formSetting.actionInfoParam.url,callback:function(t){e.$set(e.formSetting.actionInfoParam,"url",t)},expression:"formSetting.actionInfoParam.url"}})],1)],1):e._e()],1),i("p",{staticClass:"config-title",staticStyle:{margin:"10px 0"}},[e._v("高级设置")]),i("el-form-item",{attrs:{label:"行为通知",prop:"actionNoteFlag"}},[i("div",{staticClass:"advanced-setting-item"},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.formSetting.actionNoteFlag,callback:function(t){e.$set(e.formSetting,"actionNoteFlag",t)},expression:"formSetting.actionNoteFlag"}}),i("span",{staticClass:"we-emple-code-tags-tip"},[e._v("开启后,当客户提交表单,将发送应用提醒通知所属员工")])],1)]),i("el-form-item",{attrs:{label:"轨迹记录",prop:"tractRecordFlag"}},[i("div",{staticClass:"advanced-setting-item"},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.formSetting.tractRecordFlag,callback:function(t){e.$set(e.formSetting,"tractRecordFlag",t)},expression:"formSetting.tractRecordFlag"}}),i("span",{staticClass:"we-emple-code-tags-tip"},[e._v("开启后,当客户访问或提交表单,会记录在其客户资料的活动轨迹下")])],1)]),i("el-form-item",{attrs:{label:"客户标签",prop:"customerLabelFlag"}},[i("div",{staticClass:"advanced-setting-item"},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.formSetting.customerLabelFlag,callback:function(t){e.$set(e.formSetting,"customerLabelFlag",t)},expression:"formSetting.customerLabelFlag"}}),i("span",{staticClass:"we-emple-code-tags-tip"},[e._v("开启后,当客户访问或提交表单,为其打上指定客户标签")])],1)]),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.formSetting.customerLabelFlag,expression:"formSetting.customerLabelFlag"}],attrs:{label:"",prop:"customerTags"}},[i("div",{staticClass:"item-div"},[i("div",[e._v(" 点击表单 "),i("el-button",{staticClass:"mr10 ml10",attrs:{icon:"el-icon-plus",size:"mini"},on:{click:function(t){return e.selectTag("clickLabelIdList")}}},[e._v("添加标签")]),e._l(e.formSetting.labelSetting.clickLabelIdList,(function(t,a){return i("el-tag",{key:a,attrs:{size:"medium",closable:""},on:{close:function(i){return e.closeTag(t,a,"clickLabelIdList")}}},[e._v(e._s(t.tagName||t.name))])}))],2),i("div",{staticClass:"mt5"},[e._v(" 提交表单 "),i("el-button",{staticClass:"mr10 ml10",attrs:{icon:"el-icon-plus",size:"mini"},on:{click:function(t){return e.selectTag("submitLabelIdList")}}},[e._v("添加标签")]),e._l(e.formSetting.labelSetting.submitLabelIdList,(function(t,a){return i("el-tag",{key:a,attrs:{size:"medium",closable:""},on:{close:function(i){return e.closeTag(t,a,"submitLabelIdList")}}},[e._v(e._s(t.tagName||t.name))])}))],2)])])],1),i("PhoneDialog",{attrs:{"form-setting":e.formSetting,form:e.form,"is-form-preview":""}})],1)]),i("div",{staticClass:"wrap-footer"},[i("RequestButton",{attrs:{type:"primary","request-method":e.submitForm,"button-type":"submitForm"}},[e._v("保存")])],1),i("SelectTag",{attrs:{visible:e.dialogVisibleSelectTag,type:"search",selected:e.formSetting.labelSetting[e.addTagType],"info-msg":"客户"+("clickLabelIdList"===e.addTagType?"点击":"提交")+"表单后,将自动打上选中的标签","is-show-add":!0},on:{"update:visible":function(t){e.dialogVisibleSelectTag=t},success:e.submitSelectTag}})],1)},n=[],r=i("2909"),s=i("5530"),o=(i("99af"),i("d81d"),i("a434"),i("dca8"),i("b64b"),i("d3b7"),i("159b"),i("fbc0")),l=i("52a9"),c=i("cf45"),u=i("aada"),d=i("8bd5"),p=i("a125"),f=i.n(p),A=i("689a"),h=i("dd70"),m=i("81f6"),g=i("c7ea"),v=1,b={components:{SelectTag:u["a"],RequestButton:l["a"],UploadFile:o["default"],PhoneDialog:d["a"]},props:{formInitValue:{type:Object,default:function(){}}},data:function(){var e=this;return{SERVER_TYPE_THIRD:h["bd"],CUSTOMER_DATE:h["x"],FORVER_EFFECT:h["X"],NOT_LIMIT:h["zc"],ONE_TIME:h["Gc"],NOT_JUMP:h["yc"],JUMP_RESULT_PAGE:h["Nb"],JUMP_LINK:h["Mb"],UPLOAD_NUMS_LIMIT:v,UPLOAD_ONE_TYPE:h["ud"],officialAccountOption:[],belongGroup:[],belongGroupOptions:[],sourceType:void 0,formSetting:{deadLineType:h["X"],submitCntType:h["Gc"],submitActionType:h["Nb"],actionInfoParam:{document:"提交成功",iconUrl:"https://wecomsaas-1253559996.cos.ap-guangzhou.myqcloud.com/2023/01/16/form.png"},labelSetting:{clickLabelIdList:[],submitLabelIdList:[]}},form:{},formId:void 0,addTagType:"clickLabelIdList",removeTagList:{clickLabelIdList:[],submitLabelIdList:[]},dialogVisibleSelectTag:!1,rules:Object.freeze({belongGroup:[{required:!0,message:"",validator:function(t,i,a){e.belongGroup.length?a():a(new Error("请填写选择所属分组"))},trigger:"blur"}]})}},computed:{isThirdApplication:function(){return this.$store.state.serverInfo&&this.$store.state.serverInfo.serverType===h["bd"]}},created:function(){this.getFormGoup(),this.formInitValue.id&&this.initFrom(),this.isThirdApplication&&this.getWechatOpenConfig()},mounted:function(){var e=this;m["a"].$on("formFieldListJson",(function(t){e.form.formFieldListJson=t})),m["a"].$on("formSet",(function(t){e.form=Object(s["a"])(Object(s["a"])({},e.form),t)}))},beforeDestroy:function(){m["a"].$off("formFieldListJson"),m["a"].$off("formSet")},methods:{getWechatOpenConfig:function(){var e=this;Object(A["a"])().then((function(t){e.officialAccountOption=t.data,t.data.length&&(e.formSetting.weChatPublicPlatform=t.data[0].officialAccountAppId)}))},initFrom:function(){if(this.formId=this.formInitValue.id,this.belongGroup=this.getBelongGroup(this.belongGroupOptions,this.formInitValue.groupId),this.formSetting.submitActionType===h["Nb"]){var e=JSON.parse(this.formInitValue.actionInfoParamJson),t=e.iconUrl,i=e.document,a=e.url;this.formSetting=Object(s["a"])(Object(s["a"])({},this.formSetting),{},{actionInfoParam:{document:i,iconUrl:t,url:a},labelSetting:Object(s["a"])({},JSON.parse(this.formInitValue.labelSettingJson))})}this.formSetting=Object(s["a"])(Object(s["a"])({},this.formSetting),this.formInitValue)},getBelongGroup:function(e,t){var i=[t+""];return e.forEach((function(e){e.children&&e.children.forEach((function(e){+e.id===t&&i.unshift(""+e.parentId)}))})),i},selectTag:function(e){this.dialogVisibleSelectTag=!0,this.addTagType=e},getFormGoup:function(){var e=this;this.sourceType=this.formInitValue.sourceType,Object(g["q"])({sourceType:this.sourceType,departmentId:this.formInitValue.departmentId}).then((function(t){e.belongGroupOptions=t.data,e.belongGroup=e.formInitValue.selectedGroup||[],e.formInitValue.id&&(e.belongGroup=e.getBelongGroup(e.belongGroupOptions,e.formInitValue.groupId))}))},submitSelectTag:function(e){var t=f()(this.formSetting.labelSetting[this.addTagType],e,"tagId");this.formSetting.labelSetting[this.addTagType]=Object(r["a"])(e),this.dialogVisibleSelectTag=!1,t=this.removeTagList[this.addTagType].concat(t),this.removeTagList[this.addTagType]=t},closeTag:function(e,t,i){this.formSetting.labelSetting[i].splice(t,1),this.removeTagList[i].push(e)},dealSubmitResult:function(e){var t=!0,i=this.formSetting,a=i.submitActionType,n=i.actionInfoParam;if(a===h["Nb"]){var r=n.document;r||(this.msgWarn("请填写文案"),t=!1),e.formSetting.actionInfoParam={iconUrl:n.iconUrl,document:n.document}}return a===h["Mb"]&&(n.url||(this.msgWarn("请填写跳转链接"),t=!1),e.formSetting.actionInfoParam={url:n.url}),a===h["yc"]&&(e.formSetting.actionInfoParam={}),t},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){if(!t)return Object(c["i"])(e.$store,"submitForm");if(!e.formSetting.customDate&&e.formSetting.deadLineType===h["x"])return Object(c["i"])(e.$store,"submitForm"),e.msgWarn("请选择截止时间");e.formSetting.customerLabelFlag||(e.formSetting.labelSetting.clickLabelIdList=[],e.formSetting.labelSetting.submitLabelIdList=[]);var i={id:e.formId,form:Object(s["a"])(Object(s["a"])({},e.form),{},{groupId:2===e.belongGroup.length?+e.belongGroup[1]:+e.belongGroup[0]}),formSetting:Object(s["a"])(Object(s["a"])({},e.formSetting),{},{labelSetting:{clickLabelIdList:e.formSetting.labelSetting.clickLabelIdList.map((function(e){return e.tagId})),submitLabelIdList:e.formSetting.labelSetting.submitLabelIdList.map((function(e){return e.tagId}))}})},a=e.dealSubmitResult(i);a?(e.formId?g["f"]:g["a"])(i).then((function(){e.$store.commit("SET_ADD_FLAG",!e.formId),e.$router.push("intelligentForm"),e.msgSuccess("操作成功")})).finally((function(){Object(c["i"])(e.$store,"submitForm")})):Object(c["i"])(e.$store,"submitForm")}))}}},y=b,_=(i("9690"),i("d7cd"),i("2877")),w=Object(_["a"])(y,a,n,!1,null,"576fb5f4",null);t["default"]=w.exports},ddb0e:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"sop-list-page"},[i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{inline:!0,model:e.query,"label-width":"100px",size:"small"}},[i("el-form-item",{attrs:{prop:"name"}},[i("el-input",{attrs:{placeholder:"请输入"+e.sopName+"名称",clearable:""},model:{value:e.query.name,callback:function(t){e.$set(e.query,"name",t)},expression:"query.name"}})],1),e.showUseEmployees?i("el-form-item",{attrs:{prop:"user"}},[i("el-input",{attrs:{placeholder:"请输入员工姓名"},model:{value:e.query.userName,callback:function(t){e.$set(e.query,"userName",t)},expression:"query.userName"}})],1):e._e(),i("el-form-item",{attrs:{prop:"status"}},[i("el-select",{attrs:{placeholder:"请选择启用状态",clearable:""},model:{value:e.query.isOpen,callback:function(t){e.$set(e.query,"isOpen",t)},expression:"query.isOpen"}},e._l(e.enabledStatus,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),i("el-form-item",[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.onSearch()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetForm()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"data-stat",fn:function(){return[i("div",[e._v(" "+e._s(e.sopTip)+" ")])]},proxy:!0},{key:"operate-btn",fn:function(){return[i("el-dropdown",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:e.dealPermission("switch"),expression:"dealPermission('switch')"}],staticClass:"dropdown-reset",attrs:{"split-button":""},on:{click:function(){return e.handleBatchIsOpen(!0)},command:function(t){return e.handleBatchIsOpen(t)}}},[e._v(" 批量开启 "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{staticStyle:{width:"108px"},attrs:{command:!1}},[e._v("批量关闭")])],1)],1),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:e.dealPermission("del"),expression:"dealPermission('del')"}],on:{click:e.batchDel}},[e._v("批量删除")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:e.dealPermission("add"),expression:"dealPermission('add')"}],attrs:{type:"primary"},on:{click:function(t){return e.goRoute("addSOP")}}},[e._v(e._s("新增"+e.sopName))])]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],key:e.sopType,ref:"table",attrs:{data:e.list,"tooltip-effect":"dark","highlight-current-row":""},on:{"selection-change":e.handleSelectionChange}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{text:"暂无数据"}})],1),i("el-table-column",{key:"row-1",attrs:{type:"selection",align:"center",width:"55"}}),i("el-table-column",{key:"row-2",attrs:{label:e.sopName+"名称",prop:"name",align:"left"}}),e.showUseEmployees?i("el-table-column",{key:"row-3",attrs:{label:"使用员工",prop:"scopeList",align:"left","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("ListUserShow",{attrs:{"use-user-name":e.getUseUserName(a.scopeList.map((function(t){return t.type===e.SCOPELIST_TYPE.USER?t.userName:void 0})).filter((function(e){return e&&e.trim()}))),"department-name":e.getUseUserName(a.scopeList.map((function(t){return t.type===e.SCOPELIST_TYPE.DEPARTMENT?t.departmentName:void 0})).filter((function(e){return e&&e.trim()})))}})]}}],null,!1,2119960882)}):e._e(),i("el-table-column",{key:"row-4",attrs:{label:"启用状态",prop:"isOpen",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-switch",{attrs:{disabled:!e.checkPermi()},on:{change:function(t){return e.changeStatus(t,a)}},model:{value:a.isOpen,callback:function(t){e.$set(a,"isOpen",t)},expression:"row.isOpen"}})]}}])}),i("el-table-column",{key:"row-5",attrs:{label:"创建人",prop:"username",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",[i("div",[e._v(e._s(a.createUserName))]),i("div",[e._v(e._s(a.mainDepartmentName))])])]}}])}),i("el-table-column",{key:"row-6",attrs:{label:"创建时间",prop:"createTime",align:"left"}}),i("el-table-column",{key:"row-7",attrs:{label:"操作",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(t){return e.onDetail(a)}}},[e._v("详情")]),e.showUseEmployees?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:e.dealPermission("edit"),expression:"dealPermission('edit')"}],attrs:{type:"text",size:"small"},on:{click:function(){return e.editEmployee(a)}}},[e._v("修改员工")]):e._e(),i("br"),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:e.dealPermission("edit"),expression:"dealPermission('edit')"}],attrs:{type:"text",size:"small"},on:{click:function(t){return e.goRoute("addSOP",{id:a.id})}}},[e._v("编辑")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:e.dealPermission("del"),expression:"dealPermission('del')"}],attrs:{type:"text",size:"small"},on:{click:function(t){return e.handleDelete(a)}}},[e._v("删除")])]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:1*e.total,page:e.query.pageNum,disabled:e.loading,limit:e.query.pageSize,"select-data-len":e.multipleSelection.length},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getSopList()}}})]},proxy:!0}])}),i("SelectUser",{attrs:{visible:e.dialogVisibleSelectUser,title:"选择使用员工","selected-user-list":e.selectUserList||[],"is-only-leaf":!1,"is-dep-linkage":"","is-null":!1},on:{"update:visible":function(t){e.dialogVisibleSelectUser=t},success:e.submitSelectUser}})],1)},n=[],r=i("2909"),s=i("ade3"),o=i("c7eb"),l=i("1da1"),c=i("5530"),u=(i("99af"),i("caad"),i("a15b"),i("d81d"),i("b0c0"),i("a9e3"),i("b64b"),i("2532"),i("b66d")),d=i("e77d"),p=i("c958"),f=i("ed08"),A=i("dd70"),h=i("e350"),m=i("9815"),g=i("79b6"),v=i("cf45"),b=i("e2e0"),y={name:"",components:{RightContainer:u["a"],EmptyDefaultIcon:d["a"],SelectUser:p["a"],ListUserShow:g["a"]},mixins:[b["a"]],props:{sopType:{type:Number,default:null},showUseEmployees:{type:Boolean,default:!1},sopName:{type:String,default:"SOP"},sopTip:{type:String,default:""},type:{type:String,default:"customer"}},data:function(){return{enabledStatus:[{label:"全部",value:-1},{label:"启用",value:1},{label:"关闭",value:0}],query:{name:"",userName:"",isOpen:null,pageNum:1,pageSize:A["Ic"]},total:0,list:[],multipleSelection:[],dialogVisibleSelectUser:!1,selectUserList:[],loading:!1,currentSopId:null,SCOPELIST_TYPE:A["Uc"]}},computed:{isGroup:function(){return[A["ed"]["timing"],A["ed"]["cycle"]].includes(this.sopType)}},watch:{sopType:function(e){var t=this;(e||0===e)&&this.$nextTick((function(){t.query.pageNum=1,t.multipleSelection=[],t.$refs.table&&t.$refs.table.doLayout(),t.getSopList()}))}},created:function(){this.$store.getters.saveCondition&&Object.keys(this.$store.getters.searchQuery[this.$route.name]||{}).length&&(this.query=this.$store.getters.searchQuery[this.$route.name]),this.getSopList()},mounted:function(){},methods:{getUseUserName:function(e){return e.join(",")},onSearch:function(){this.getSopList({pageNum:1})},resetForm:function(){this.query={name:"",userName:"",isOpen:null,pageNum:1,pageSize:A["Ic"]},this.getSopList()},batchDel:function(){this.multipleSelection.length<=0?this.msgWarn("".concat("groupCalendar"===this.type?"请至少选择一个群日历":"请至少选择一个sop任务")):this.deleteSop({sopIdList:this.multipleSelection.map((function(e){return e.id})),sopType:this.sopType},"batch")},goRoute:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Object(c["a"])({},t);switch(this.sopType){case A["ed"]["timing"]:case A["ed"]["cycle"]:i.prePageType="groupSOP";break;case A["ed"]["newCustomer"]:case A["ed"]["activity"]:case A["ed"]["birthday"]:i.prePageType="customerSOP";break;case A["ed"]["groupCalendar"]:i.prePageType="groupCalendarSOP";break}this.$store.commit("SET_SEARCH_QUERY",{pageName:this.$route.name,query:this.query}),Object(f["l"])(this.$router,e,{},Object(c["a"])(Object(c["a"])({},i),{},{sopType:this.sopType}))},handleSelectionChange:function(e){this.multipleSelection=e},onDetail:function(e){this.goRoute("SOPDetail",{id:e.id})},handleBatchIsOpen:function(e){var t=this;if(this.multipleSelection.length<=0)this.msgWarn("".concat("groupCalendar"===this.type?"请至少选择一个群日历":"请至少选择一个sop任务"));else{var i="";switch(this.type){case"customer":i=e?"选中的SOP开启后,自动执行SOP下的规则,给使用员工发送任务提醒,是否继续?":"选中的SOP关闭后,SOP下的规则将失效,不会给使用员工发送任务提醒,是否继续?";break;case"group":i=e?"选中的SOP开启后,自动执行SOP下的规则,给群聊的群主发送任务提醒,是否继续?":"选中的SOP关闭后,SOP下的规则将失效,不会给群聊的群主发送任务提醒,是否继续?";break;case"groupCalendar":i=e?"选中的日历开启后,自动执行日历下的规则,给群聊的群主发送任务提醒,是否继续?":"选中的日历关闭后,日历下的规则将失效,不会给群聊的群主发送任务提醒,是否继续?";break}this.confirmModal({msg:i},Object(l["a"])(Object(o["a"])().mark((function i(){return Object(o["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:t.batchSwitchSop({isOpen:e,sopIdList:t.multipleSelection.map((function(e){return e.id}))});case 1:case"end":return i.stop()}}),i)}))))}},batchSwitchSop:function(e){var t=this;Object(m["b"])(e).then((function(e){e&&(t.msgSuccess("设置成功"),t.getSopList())}))},changeStatus:function(e,t){this.batchSwitchSop({isOpen:e,sopIdList:[t.id]})},submitSelectUser:function(e){var t,i,a=Object(v["F"])(e);this.editUser({id:this.currentSopId,userIdList:(null===a||void 0===a||null===(t=a.useEmployeesList)||void 0===t?void 0:t.map((function(e){return e.userId})))||[],departmentIdList:(null===a||void 0===a||null===(i=a.useDepartmentList)||void 0===i?void 0:i.map((function(e){return e.id})))||[]})},editEmployee:function(e){this.dialogVisibleSelectUser=!0,this.currentSopId=e.id,this.selectUserList=e.scopeList.map((function(e){return Object(c["a"])(Object(c["a"])({},e),{},Object(s["a"])(Object(s["a"])({},e.type===A["Uc"]["USER"]?"userId":"id",e.targetId),"name",e.type===A["Uc"]["USER"]?e.userName:e.departmentName))}))},getSopList:function(){var e=arguments,t=this;return Object(l["a"])(Object(o["a"])().mark((function i(){var a,n,s,l,u;return Object(o["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a=e.length>0&&void 0!==e[0]?e[0]:{},i.prev=1,n=t.query,s=Object(c["a"])(Object(c["a"])({sopType:t.sopType},n),{},{isOpen:-1===n.isOpen?null:n.isOpen},a),t.loading=!0,i.next=7,Object(m["j"])(s);case 7:l=i.sent,t.query=Object(c["a"])(Object(c["a"])({},n),{},{pageNum:s.pageNum}),l&&(t.loading=!1,u=Object(r["a"])(l.rows),t.list=u,t.modifyButtonStatus(),t.total=l.total),i.next=16;break;case 12:i.prev=12,i.t0=i["catch"](1),t.modifyButtonStatus(),t.loading=!1;case 16:case"end":return i.stop()}}),i,null,[[1,12]])})))()},handleDelete:function(e){this.deleteSop({sopIdList:[e.id],sopType:this.sopType})},deleteSop:function(e,t){var i=this;return Object(l["a"])(Object(o["a"])().mark((function a(){return Object(o["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:i.confirmModal({msg:"选中的".concat(i.sopName,"删除后,").concat(i.sopName,"下的规则将失效,数据将被删除且不可恢复,是否继续?")},Object(l["a"])(Object(o["a"])().mark((function a(){var n,r,s;return Object(o["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Object(m["c"])(e);case 2:n=a.sent,n&&(i.msgSuccess("删除成功"),r=t?i.multipleSelection.length:1,s=i.list.length===r&&i.query.pageNum>1?i.query.pageNum-1:i.query.pageNum,i.getSopList({pageNum:s}));case 4:case"end":return a.stop()}}),a)}))));case 1:case"end":return a.stop()}}),a)})))()},editUser:function(e){var t=this;Object(m["d"])(e).then((function(e){e&&(t.msgSuccess("修改成功"),t.getSopList())}))},checkPermi:function(){var e=this.dealPermission("switch");return Object(h["a"])(e)},dealPermission:function(e){var t=[];switch(this.sopType){case A["ed"]["cycle"]:case A["ed"]["timing"]:t=["wecom:groupSop:".concat(e)];break;case A["ed"]["newCustomer"]:case A["ed"]["activity"]:case A["ed"]["birthday"]:t=["wecom:customerSop:".concat(e)];break;case A["ed"]["groupCalendar"]:t=["wecom:groupCalendar:".concat(e)];break}return t}}},_=y,w=i("2877"),C=Object(w["a"])(_,a,n,!1,null,null,null);t["default"]=C.exports},de0a:function(e){e.exports=JSON.parse('["platform-eleme","eleme","delete-solid","delete","s-tools","setting","user-solid","user","phone","phone-outline","more","more-outline","star-on","star-off","s-goods","goods","warning","warning-outline","question","info","remove","circle-plus","success","error","zoom-in","zoom-out","remove-outline","circle-plus-outline","circle-check","circle-close","s-help","help","minus","plus","check","close","picture","picture-outline","picture-outline-round","upload","upload2","download","camera-solid","camera","video-camera-solid","video-camera","message-solid","bell","s-cooperation","s-order","s-platform","s-fold","s-unfold","s-operation","s-promotion","s-home","s-release","s-ticket","s-management","s-open","s-shop","s-marketing","s-flag","s-comment","s-finance","s-claim","s-custom","s-opportunity","s-data","s-check","s-grid","menu","share","d-caret","caret-left","caret-right","caret-bottom","caret-top","bottom-left","bottom-right","back","right","bottom","top","top-left","top-right","arrow-left","arrow-right","arrow-down","arrow-up","d-arrow-left","d-arrow-right","video-pause","video-play","refresh","refresh-right","refresh-left","finished","sort","sort-up","sort-down","rank","loading","view","c-scale-to-original","date","edit","edit-outline","folder","folder-opened","folder-add","folder-remove","folder-delete","folder-checked","tickets","document-remove","document-delete","document-copy","document-checked","document","document-add","printer","paperclip","takeaway-box","search","monitor","attract","mobile","scissors","umbrella","headset","brush","mouse","coordinate","magic-stick","reading","data-line","data-board","pie-chart","data-analysis","collection-tag","film","suitcase","suitcase-1","receiving","collection","files","notebook-1","notebook-2","toilet-paper","office-building","school","table-lamp","house","no-smoking","smoking","shopping-cart-full","shopping-cart-1","shopping-cart-2","shopping-bag-1","shopping-bag-2","sold-out","sell","present","box","bank-card","money","coin","wallet","discount","price-tag","news","guide","male","female","thumb","cpu","link","connection","open","turn-off","set-up","chat-round","chat-line-round","chat-square","chat-dot-round","chat-dot-square","chat-line-square","message","postcard","position","turn-off-microphone","microphone","close-notification","bangzhu","time","odometer","crop","aim","switch-button","full-screen","copy-document","mic","stopwatch","medal-1","medal","trophy","trophy-1","first-aid-kit","discover","place","location","location-outline","location-information","add-location","delete-location","map-location","alarm-clock","timer","watch-1","watch","lock","unlock","key","service","mobile-phone","bicycle","truck","ship","basketball","football","soccer","baseball","wind-power","light-rain","lightning","heavy-rain","sunrise","sunrise-1","sunset","sunny","cloudy","partly-cloudy","cloudy-and-sunny","moon","moon-night","dish","dish-1","food","chicken","fork-spoon","knife-fork","burger","tableware","sugar","dessert","ice-cream","hot-water","water-cup","coffee-cup","cold-drink","goblet","goblet-full","goblet-square","goblet-square-full","refrigerator","grape","watermelon","cherry","apple","pear","orange","coffee","ice-tea","ice-drink","milk-tea","potato-strips","lollipop","ice-cream-square","ice-cream-round"]')},de51:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"employ"},[a("el-row",[a("el-col",{staticClass:"borderR",attrs:{span:6}},[a("div",{staticClass:"hd_box",staticStyle:{height:"92px"}},[a("div",{staticClass:"hd_name"},[e._v("客户列表("+e._s(e.employAmount)+")")]),a("div",{staticClass:"paddingT10"},[a("el-input",{attrs:{placeholder:"输入客户昵称,回车搜索","prefix-icon":"el-icon-search"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(){e.customerQuery.pageNum=1,e.customerList()}()}},model:{value:e.employName,callback:function(t){e.employName=t},expression:"employName"}})],1)]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.userListLoading,expression:"userListLoading"}],staticClass:"ct_box ct_boxFirst"},[a("empty-default-icon",{staticClass:"h100",attrs:{text:"暂无客户",desc:"若首次加载,请耐心等待后台数据同步,稍后回来","desc-show-condition":{employName:e.employName},length:e.CList.length}},[a("ul",{staticClass:"customer-list"},e._l(e.CList,(function(t){return a("li",{key:t.externalUserid,class:{liActive:t.externalUserid===e.employId},on:{click:function(i){return e.personCheck(t)}}},[a("div",{staticClass:"customer-item"},[a("img",{attrs:{src:t.avatar||i("3e20"),alt:"头像"}}),a("div",{staticClass:"toe"},[e._v(e._s(t.name))])])])})),0),a("div",{staticClass:"footer-button"},[a("el-button",{staticClass:"mr10",attrs:{size:"mini",disabled:e.customerQuery.pageNum===e.DEFAULT_PAGE_NUM,type:"primary",plain:"",icon:"el-icon-arrow-left"},on:{click:function(t){return e.customerPageChange(!1)}}},[e._v(" 上一页 ")]),a("el-button",{staticClass:"ml10",attrs:{size:"mini",disabled:e.CList.length<e.customerQuery.pageSize,type:"primary",plain:""},on:{click:function(t){return e.customerPageChange(!0)}}},[a("span",[e._v("下一页")]),a("i",{staticClass:"el-icon-arrow-right"})])],1)])],1)]),a("el-col",{staticClass:"borderR",attrs:{span:6}},[a("div",{staticClass:"hd_box"},[a("div",{staticClass:"hd_name"},[e._v(e._s(e.talkName))])]),a("div",{staticClass:"hd_tabs"},[a("el-tabs",{staticClass:"group-tabs",on:{"tab-click":e.handleChatTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[e.activeName===e.PRIVATE_CHAT?a("div",{staticClass:"search"},[a("el-input",{attrs:{placeholder:"请输入聊天对象昵称",clearable:"","prefix-icon":"el-icon-search"},on:{clear:e.handleChatTabClick},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(){e.query.pageNum=e.DEFAULT_PAGE_NUM,e.handleChatTabClick()}()}},model:{value:e.query.chatName,callback:function(t){e.$set(e.query,"chatName",t)},expression:"query.chatName"}})],1):e._e(),a("el-tab-pane",{staticClass:"hd-tab-pane",attrs:{label:"单聊",name:e.PRIVATE_CHAT}},[e.activeName===e.PRIVATE_CHAT?a("list",{attrs:{"person-list":e.showPersonList,loading:e.loading},on:{chatFn:e.chatFn}}):e._e()],1),a("el-tab-pane",{staticClass:"hd-tab-pane",attrs:{label:"群聊",name:e.GROUP_CHAT}},[e.activeName===e.GROUP_CHAT?a("grouplist",{attrs:{"person-list":e.showPersonList,loading:e.loading},on:{groupFn:e.groupFn}}):e._e()],1)],1),e.showPersonList.length?a("div",{staticClass:"footer-button"},[a("el-button",{staticClass:"mr10",attrs:{disabled:e.query.pageNum===e.DEFAULT_PAGE_NUM,type:"primary",size:"mini",plain:"",icon:"el-icon-arrow-left"},on:{click:function(t){return e.pageChange(!1)}}},[e._v(" 上一页 ")]),a("el-button",{staticClass:"ml10",attrs:{disabled:e.showPersonList.length<e.query.pageSize,type:"primary",size:"mini",plain:""},on:{click:function(t){return e.pageChange(!0)}}},[a("span",[e._v("下一页")]),a("i",{staticClass:"el-icon-arrow-right"})])],1):e._e()],1)]),a("el-col",{staticClass:"chat-content-div",attrs:{span:12}},[a("div",{staticClass:" hd_tabthree"},[a("el-tabs",{staticClass:"tabthree-tabs",on:{"tab-click":function(t){return e.activeNameThreeClick()}},model:{value:e.activeNameThree,callback:function(t){e.activeNameThree=t},expression:"activeNameThree"}},[a("el-tab-pane",{staticClass:"tabthree-tab-pane",attrs:{label:"全部",name:e.MSG_TYPE_ALL}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.contentLoading,expression:"contentLoading"}],staticClass:"ct_box"},[a("div",{staticClass:"hds_time"},[a("el-date-picker",{attrs:{type:"daterange",format:"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},on:{change:e.activeNameThreeClick},model:{value:e.takeTime,callback:function(t){e.takeTime=t},expression:"takeTime"}})],1),a("chats",{attrs:{"all-chat":e.allChat,"chat-data":e.chatData,"chat-type":"user"}}),e.allChat.length>=1?a("el-pagination",{staticClass:"pagination",attrs:{background:"",layout:"prev, pager, next","current-page":e.currentPage,total:e.total},on:{"current-change":e.currentChange}}):e._e()],1)]),a("el-tab-pane",{staticClass:"tabthree-tab-pane",attrs:{label:"图片",name:e.MSG_TYPE_IMG}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.contentLoading,expression:"contentLoading"}],staticClass:"ct_box"},[a("div",{staticClass:"hds_time"},[a("el-date-picker",{attrs:{type:"daterange",format:"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},on:{change:e.activeNameThreeClick},model:{value:e.takeTime,callback:function(t){e.takeTime=t},expression:"takeTime"}})],1),a("chats",{attrs:{"all-chat":e.allChatImg,"chat-data":e.chatData,"chat-type":"user"}}),e.allChatImg.length>=1?a("el-pagination",{staticClass:"pagination",attrs:{background:"",layout:"prev, pager, next",total:e.total,"current-page":e.currentPage},on:{"current-change":e.currentChange}}):e._e()],1)]),a("el-tab-pane",{staticClass:"tabthree-tab-pane",attrs:{label:"视频",name:e.MSG_TYPE_VIDEO}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.contentLoading,expression:"contentLoading"}],staticClass:"ct_box"},[a("div",{staticClass:"hds_time"},[a("el-date-picker",{attrs:{type:"daterange",format:"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},on:{change:e.activeNameThreeClick},model:{value:e.takeTime,callback:function(t){e.takeTime=t},expression:"takeTime"}})],1),a("chats",{attrs:{"all-chat":e.allVideo,"chat-data":e.chatData,"chat-type":"user"}}),e.allVideo.length>=1?a("el-pagination",{staticClass:"pagination",attrs:{background:"",layout:"prev, pager, next",total:e.total,"current-page":e.currentPage},on:{"current-change":e.currentChange}}):e._e()],1)]),a("el-tab-pane",{staticClass:"tabthree-tab-pane",attrs:{label:"文件",name:e.MSG_TYPE_FILE}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.contentLoading,expression:"contentLoading"}],staticClass:"ct_box"},[a("div",{staticClass:"hds_time"},[a("el-date-picker",{attrs:{type:"daterange",format:"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},on:{change:e.activeNameThreeClick},model:{value:e.takeTime,callback:function(t){e.takeTime=t},expression:"takeTime"}})],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.allFile}},[a("template",{slot:"empty"},[a("empty-default-icon",{attrs:{text:"暂无聊天记录"}})],1),a("el-table-column",{attrs:{label:"类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.msgType||t.row.msgtype)+" ")]}}])}),a("el-table-column",{attrs:{label:"名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.file.filename||t.row.file.fileName)+" ")]}}])}),a("el-table-column",{attrs:{label:"大小"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.filterSize(t.row.file.fileSize||t.row.file.filesize))+" ")]}}])}),a("el-table-column",{attrs:{prop:"action",label:"来源"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.fromInfo&&t.row.fromInfo.name)+" ")]}}])}),a("el-table-column",{attrs:{prop:"action",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.download(t.row)}}},[e._v("下载")])]}}])})],2)],1)]),a("el-tab-pane",{staticClass:"tabthree-tab-pane",attrs:{label:"图文链接",name:e.MSG_TYPE_LINK}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.contentLoading,expression:"contentLoading"}],staticClass:"ct_box"},[a("div",{staticClass:"hds_time"},[a("el-date-picker",{attrs:{type:"daterange",format:"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},on:{change:e.activeNameThreeClick},model:{value:e.takeTime,callback:function(t){e.takeTime=t},expression:"takeTime"}})],1),a("chats",{attrs:{"all-chat":e.allLInk,"chat-data":e.chatData,"chat-type":"user"}}),e.allLInk&&e.allLInk.length>=1?a("el-pagination",{staticClass:"pagination",attrs:{background:"",layout:"prev, pager, next",total:e.total,"current-page":e.currentPage},on:{"current-change":e.currentChange}}):e._e()],1)]),a("el-tab-pane",{staticClass:"tabthree-tab-pane",attrs:{label:"语音通话",name:e.MSG_TYPE_VOICE}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.contentLoading,expression:"contentLoading"}],staticClass:"ct_box"},[a("div",{staticClass:"hds_time"},[a("el-date-picker",{attrs:{type:"daterange",format:"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},on:{change:e.activeNameThreeClick},model:{value:e.takeTime,callback:function(t){e.takeTime=t},expression:"takeTime"}})],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.allVoice}},[a("template",{slot:"empty"},[a("empty-default-icon",{attrs:{text:"暂无聊天记录"}})],1),a("el-table-column",{attrs:{prop:"date",label:"发起人"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.fromInfo.name)+" ")]}}])}),a("el-table-column",{attrs:{prop:"name",label:"通话时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.parseTime(t.row.msgtime||t.row.msgTime))+" ")]}}])}),a("el-table-column",{attrs:{prop:"address",label:"时长"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.voice.play_length||t.row.voice.playLength)+"s ")]}}])}),a("el-table-column",{attrs:{prop:"address",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.voiceLook(t.row.voice)}}},[e._v("查看")])]}}])})],2)],1)])],1)],1)])],1)],1)},n=[],r=i("2909"),s=i("5530"),o=(i("4de4"),i("b0c0"),i("a9e3"),i("d3b7"),i("6f80")),l=i("613f"),c=i("cc67"),u=i("e77d"),d=i("cc48"),p=i("cf45"),f=i("34e1"),A=i("dd70"),h="2",m="0",g={components:{list:o["default"],chats:l["default"],grouplist:c["default"],EmptyDefaultIcon:u["a"]},data:function(){return{employAmount:0,employName:"",talkName:"",chatContent:"",activeName:m,activeNameThree:"0",takeTime:"",fileData:[],CList:[],personList:[],showPersonList:[],loading:!1,employId:"",chatData:{},allChat:[],allChatImg:[],allFile:[],allLInk:[],allVoice:[],allVideo:[],currentPage:1,total:0,chatType:"singleChat",MSG_TYPE_VIDEO:A["rc"],MSG_TYPE_IMG:A["pc"],MSG_TYPE_FILE:A["oc"],MSG_TYPE_LINK:A["qc"],MSG_TYPE_VOICE:A["sc"],MSG_TYPE_ALL:A["nc"],contentLoading:!1,userListLoading:!0,DEFAULT_PAGE_NUM:A["M"],query:{pageNum:A["M"],pageSize:A["Mc"],chatName:""},customerQuery:{pageNum:A["M"],pageSize:A["Mc"]},PRIVATE_CHAT:m,GROUP_CHAT:h}},mounted:function(){this.customerList()},methods:{filterSize:p["x"],chatFn:function(e){this.chatData=e,this.activeNameThreeClick()},pageChange:function(e){e?this.query.pageNum++:this.query.pageNum--,this.getChatList()},customerPageChange:function(e){e?this.customerQuery.pageNum++:this.customerQuery.pageNum--,this.customerList()},groupFn:function(e){this.chatData=e,this.activeNameThreeClick("",!0)},currentChange:function(e){if(this.currentPage=e,this.activeName===h)return this.activeNameThreeClick(!0,!0);this.activeNameThreeClick(!0)},personCheck:function(e){this.talkName=e.name,this.employId=e.externalUserid,this.query.pageNum=A["M"],this.query.chatName="",this.getChatList()},getChatList:function(){var e=this;this.employId&&(this.loading=!0,this.personList=[],d["a"].getTree(Object(s["a"])({fromId:this.employId,searchType:this.activeName},this.query)).then((function(t){var i=t.rows;e.personList=i,e.matchChatObject(e.chatContent)})).finally((function(){e.loading=!1})))},activeNameThreeClick:function(e,t){var i=this,a="groupChat"===this.chatType||t;e||(this.currentPage=1);var n="";n="0"===this.activeNameThree?"":A["mc"][this.activeNameThree];var r={fromId:this.chatData.fromId,msgType:n,pageSize:"10",pageNum:this.currentPage,beginTime:this.takeTime?Object(p["T"])(this.takeTime[0]):"",endTime:this.takeTime?Object(p["T"])(this.takeTime[1]):""};a?r.roomId=this.chatData.roomId:r.receiveId=this.chatData.receiveId,this.contentLoading=!0,a?d["a"].chatGrounpList(r).then((function(e){i.total=Number(e.data.total),i.resortData(e.data)})).finally((function(){i.contentLoading=!1})):d["a"].chatList(r).then((function(e){i.total=Number(e.data.total),i.resortData(e.data)})).finally((function(){i.contentLoading=!1}))},resortData:function(e){if(e){var t=e.list||[];switch(this.activeNameThree){case A["nc"]:this.allChat=t;break;case A["pc"]:this.allChatImg=t;break;case A["oc"]:this.allFile=t;break;case A["qc"]:this.allLInk=t;break;case A["sc"]:this.allVoice=t;break;case A["rc"]:this.allVideo=t;break}}},customerList:function(){var e=this,t=Object(s["a"])({name:this.employName,userId:"",tagIds:"",beginTime:"",endTime:"",status:"",isOpenChat:"1",queryType:1},this.customerQuery);this.userListLoading=!0,this.activeName===h&&(t.chatName=""),this.employAmount||Object(f["j"])(t).then((function(t){e.employAmount=t.data.ignoreDuplicateCount})).catch((function(){})),Object(f["i"])(t).then((function(t){e.CList=t.rows})).finally((function(){e.userListLoading=!1}))},download:function(e){Object(p["w"])(e.file.attachment,e.file.fileName||e.file.filename)},voiceLook:function(e){Object(p["v"])(e.attachment)},handleChatTabClick:function(){this.activeName===h?(this.chatType="groupChat",this.query.chatName=""):this.chatType="singleChat",this.getChatList()},matchChatObject:function(e){this.showPersonList=e?this.personList.filter((function(t){var i,a;return(null===t||void 0===t||null===(i=t.receiveWeUser)||void 0===i||null===(i=i.name)||void 0===i?void 0:i.indexOf(e))>=0||(null===t||void 0===t||null===(a=t.roomInfo)||void 0===a||null===(a=a.groupName)||void 0===a?void 0:a.indexOf(e))>=0||0})):Object(r["a"])(this.personList)}}},v=g,b=(i("243f"),i("2877")),y=Object(b["a"])(v,a,n,!1,null,"2be9529d",null);t["default"]=y.exports},de60:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.fileObj.url?i("div",{staticClass:"preview-div"},[e.disabledEdit?e._e():i("i",{staticClass:"el-icon-close",on:{click:e.removeFile}}),e.mediaType===e.MEDIA_TYPE_POSTER?[i("div",{staticClass:"cover-img"},[i("el-image",{attrs:{src:e.fileObj.url,width:60,height:60}})],1),i("div",{staticClass:"file-info"},[i("div",{staticClass:"inoneline"},[e._v(e._s(e.fileObj.title))]),i("div",{staticClass:"file-size"},[e._v(e._s(e.getFileSize(e.fileObj.content)))])])]:e._e(),e.mediaType===e.MEDIA_TYPE_FILE?[i("div",{staticClass:"cover-img"},[i("svg",{staticClass:"icon",attrs:{"aria-hidden":"true",width:"50",height:"50"}},[i("use",{attrs:{"xlink:href":"#icon-"+e.getFileIconClass}})])]),i("div",{staticClass:"file-info"},[i("div",{staticClass:"inoneline"},[e._v(e._s(e.fileObj.title))]),i("div",{staticClass:"file-size"},[e._v(e._s(e.getFileSize(e.fileObj.content)))])])]:e._e(),e.mediaType===e.MEDIA_TYPE_VIDEO?[i("div",{staticClass:"cover-img"},[i("video",{attrs:{src:e.fileObj.url}}),i("svg",{staticClass:"icon-player",attrs:{width:25,height:25}},[i("use",{attrs:{href:"#icon-player"}})])]),i("div",{staticClass:"file-info"},[i("div",{staticClass:"inoneline"},[e._v(e._s(e.fileObj.title))]),i("div",{staticClass:"file-size"},[e._v(e._s(e.getFileSize(e.fileObj.content)))])])]:e._e()],2):i("el-upload",e._b({directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"upload-drag-div",attrs:{drag:"",action:e.action,"http-request":e.customUploadFile}},"el-upload",e.$attrs,!1),[i("i",{staticClass:"el-icon-upload"}),i("div",{staticClass:"el-upload__text"},[i("div",{staticClass:"text"},[e._v(" "+e._s(e.text)),i("em",[e._v("点击上传")])]),e.tip?i("div",{staticClass:"tip"},[e._v(e._s(e.tip))]):e._e()])])},n=[],r=(i("b0c0"),i("a9e3"),i("2934")),s=i("cf45"),o=i("dd70"),l=100,c=10,u={name:"",components:{},props:{text:{type:String,default:"将文件拖到此处,或"},tip:{type:String,default:""},action:{type:String,default:""},fileName:{type:String,default:""},limitFileName:{type:Number,default:l},mediaType:{type:String,default:o["cc"]},fileObj:{type:Object,default:function(){}},showContent:{type:Boolean,default:!0},disabledEdit:{type:Boolean,default:!1}},data:function(){return{loading:!1,MEDIA_TYPE_POSTER:o["cc"],MEDIA_TYPE_VIDEO:o["gc"],MEDIA_TYPE_FILE:o["Zb"]}},computed:{getFileIconClass:function(){return Object(s["z"])(this.fileObj.url)}},created:function(){},mounted:function(){},methods:{customUploadFile:function(e){var t=this,i=e.file,a=this.handleBeforeUpload(i);if(a){var n=i;if(i.name.length>this.limitFileName){var o=Object(s["r"])(i.name,this.limitFileName);n=new File([i],o,{type:"image/jpeg"})}var l=new FormData;l.append("file",n),l.append("mediaType",this.mediaType),l.append("fileName",n.name),Object(r["d"])(l).then((function(e){t.onSuccess(e,n)})).catch((function(){t.loading=!1,t.msgError("上传文件失败")}))}},handleBeforeUpload:function(e){this.loading=!0;var t=!0,i=!0;return t=Object(s["q"])(this.mediaType,e,this),i=Object(s["t"])(this.mediaType,e,this,c),t&&i||(this.loading=!1),t&&i},onSuccess:function(e,t){if(this.loading=!1,this.$emit("update:fileUrl",e.data.url),!this.fileName){var i=Object(s["r"])(t.name);this.$emit("update:fileName",i)}this.$emit("update:fileSize",t.size),this.$emit("update:file",t)},getFileSize:function(e){return this.fileObj.content&&this.showContent?Object(s["x"])(e):""},removeFile:function(){this.$emit("update:fileUrl",null),this.$emit("update:fileName",null),this.$emit("update:fileSize",null),this.$emit("update:file",{})}}},d=u,p=(i("0dc1"),i("2877")),f=Object(p["a"])(d,a,n,!1,null,"ab02fe96",null);t["a"]=f.exports},deeb:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"img-chat-item"},[i("img",{staticClass:"thumb",attrs:{src:e.imgUrl},on:{click:function(t){return e.showImg(e.imgUrl)}}}),i("el-dialog",{attrs:{"append-to-body":"",visible:e.dialogVisible,width:"30%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("img",{staticStyle:{width:"100%","max-height":"600px"},attrs:{src:e.imgSrc}}),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"})])],1)},n=[],r={props:{imgUrl:{type:String,default:""}},data:function(){return{dialogVisible:!1,imgSrc:""}},mounted:function(){},methods:{showImg:function(e){this.imgSrc=e,this.dialogVisible=!0}}},s=r,o=i("2877"),l=Object(o["a"])(s,a,n,!1,null,"b61910e4",null);t["default"]=l.exports},df6b:function(e,t,i){},df7e:function(e,t,i){},dfe1:function(e,t,i){"use strict";i("08af")},dffe:function(e,t,i){"use strict";i("649ee")},e019:function(e,t,i){},e04d:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"group-message-detail-page"},[a("el-card",{staticClass:"mb10",attrs:{shadow:"hover"}},[a("div",{staticClass:"back-area"},[a("i",{staticClass:"iconfont icon-restore",on:{click:e.handleGoBack}}),a("span",{on:{click:e.handleGoBack}},[e._v("返回")])]),a("div",[a("el-image",{staticClass:"part-img",attrs:{src:i("ef94")}})],1),a("div",[a("div",{staticClass:"creator-div"},[a("div",{staticClass:"label"},[e._v("创建时间:")]),a("span",[e._v(e._s(e.data.sendTime))]),a("div",{staticClass:"label"},[e._v("创建人:")]),a("span",[e._v(e._s(e.data.createBy))]),a("div",{staticClass:"label"},[e._v("发布类型:")]),e.data.type===e.SELF?a("span",[e._v(" 个人 ")]):e._e(),e.data.type!==e.SELF?a("span",[e._v(" 企业 ")]):e._e(),a("div",{staticClass:"label"},[e._v("发布时间:")]),a("span",[e._v(e._s(0===e.data.taskType?"立即发送":e.data.sendTime))])]),a("div",[a("div",{staticClass:"mt15"},[a("div",{staticClass:"taglist"},[a("div",[a("span",[e._v("可见范围:")]),a("span",{staticStyle:{color:"#333333"}},[e._v(e._s(e.text))])]),e._l(e.data.tagList,(function(t){return a("el-tag",{key:t.tagId,staticClass:"tag ml5"},[e._v(e._s(t.name))])}))],2)])]),a("div",{staticClass:"mt15 flex aic"},[a("div",{staticClass:"content"},[e._v("发布内容:")]),a("div",{staticClass:"message-content"},[e.data.mediaType===Number(e.MEDIA_TYPE_IMGLINK)?a("div",[a("div",{staticClass:"message-text"},[e._v(e._s(e.data.content))]),a("VerbalTrickImgLink",{attrs:{title:e.data.weWordsDetailList[0].title,"cover-url":e.data.weWordsDetailList[0].coverUrl}})],1):e._e(),e.data.mediaType===Number(e.MEDIA_TYPE_POSTER)?a("div",[a("div",{staticClass:"message-text"},[e._v(e._s(e.data.content))]),a("div",{staticClass:"flex mt5"},e._l(e.data.weWordsDetailList,(function(e){return a("div",{key:e.id},[a("el-image",{staticStyle:{width:"78px",height:"78px","margin-right":"4px"},attrs:{src:e.url,fit:"fill"}})],1)})),0)]):e._e(),e.data.mediaType===Number(e.MEDIA_TYPE_VIDEO)?a("div",{staticClass:"message-content"},[a("div",{staticClass:"message-text"},[e._v(e._s(e.data.content))]),a("ContentVideo",{attrs:{data:e.data.weWordsDetailList[0]}})],1):e._e(),[null,Number(e.MEDIA_TYPE_TEXT)].includes(e.data.mediaType)?a("div",{staticClass:"message-content"},[a("div",{staticClass:"message-text"},[e._v(e._s(e.data.content))])]):e._e()])])])]),a("Statistics",{attrs:{"col-list":e.colList,title:"发布统计"}},[a("template",{slot:"extraButton"},[a("span",{staticClass:"fontgay"},[e._v("更新于"+e._s(e.uptime))])])],2),e.data.momentTaskId?a("el-tabs",{staticClass:"group-message-detail-page-table mt15"},[a("TabContent",{attrs:{"users-id":e.data.users,"moment-task-id":e.data.momentTaskId,"send-time":e.data.sendTime,type:e.data.type},on:{refshTime:e.refshTime}})],1):e._e()],1)},n=[],r=i("ade3"),s=i("5530"),o=(i("caad"),i("d81d"),i("fb6a"),i("b64b"),i("d3b7"),i("2532"),i("159b"),i("4490")),l=i("46ad"),c=i("069e"),u=i("369e"),d=i("0b64"),p=i("dd70"),f=1,A=0,h={components:{TabContent:o["default"],Statistics:c["a"],VerbalTrickImgLink:u["default"],ContentVideo:d["default"]},props:{},data:function(){return{data:{},SELF:f,TASKTYPE:A,MEDIA_TYPE_POSTER:p["cc"],MEDIA_TYPE_IMGLINK:p["ac"],MEDIA_TYPE_VIDEO:p["gc"],MEDIA_TYPE_TEXT:p["fc"],text:"全部客户",uptime:"",colList:[{title:"员工总数",showPopover:!0,content:"需要发布该朋友圈的员工数量",filed:"userNum"},{title:"已发布员工",showPopover:!0,content:"收到通知后48小时内发布朋友圈的员工",filed:"publishNum"},{title:"待发布员工",showPopover:!0,content:"发出通知后48小时内没有发布朋友圈的员工",filed:"notPublishNum"},{title:"过期朋友圈",showPopover:!0,content:"收到通知后没有在48小时内发布朋友圈的员工,若48小时后发布,仍视为过期",filed:"expireNum"}]}},computed:{},watch:{},created:function(){this.getMomentTaskBasicInfo(),this.getTotal()},mounted:function(){},methods:{getTotal:function(){var e=this;Object(l["e"])({momentTaskId:this.$route.query.id}).then((function(t){var i=t.data;e.colList=e.colList.map((function(e){return Object(s["a"])(Object(s["a"])({},e),{},Object(r["a"])({},e.filed,i[e.filed]))})),e.uptime=i.updateTime}))},getMomentTaskBasicInfo:function(){var e=this;Object(l["d"])({momentTaskId:this.$route.query.id}).then((function(t){var i=t.data;e.data=i;var a=i.tagList?i.tagList.length:0;i.pushRange===p["Y"].PART_CLIENR&&(i.selectUser===p["Z"].IS_SELECT&&0===a&&(e.text="部分客户"),0!==a&&(e.text=i.selectUser===p["Z"].NO_SELECT?"客户被打上标签":"部分员工下客户被打上标签"))}))},handleGoBack:function(){var e=this,t={};Object.keys(this.$route.query).forEach((function(i){i.includes("_")&&(t[i.slice(0,-1)]=e.$route.query[i])})),this.$router.push({path:"/operationsCenter/moments/record",query:t})},refshTime:function(){this.getTotal()}}},m=h,g=(i("8fdd"),i("2877")),v=Object(g["a"])(m,a,n,!1,null,"675de7ad",null);t["default"]=v.exports},e05b:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("RightContainer",{class:e.viewType===e.VIEW_TYPE["chart"]?"chart-show":"",scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{inline:!0,model:e.query,"label-width":"100px",size:"small"}},[i("el-form-item",{attrs:{prop:"status"}},[i("el-select",{attrs:{"collapse-tags":"",filterable:"",multiple:"",placeholder:"请选择标签组",clearable:""},model:{value:e.query.tagGroupIds,callback:function(t){e.$set(e.query,"tagGroupIds",t)},expression:"query.tagGroupIds"}},e._l(e.tagGroup,(function(e){return i("el-option",{key:e.tagGroupId,attrs:{label:e.groupTagName,value:e.tagGroupId}})})),1)],1),i("el-form-item",{attrs:{prop:"name"}},[i("div",{staticClass:"tag-input",on:{click:function(t){e.dialogVisibleSelectUser=!0}}},[e.userAndDepartmentList.length?e._l(e.userAndDepartmentList,(function(e,t){return i("el-tag",{key:t,staticClass:"theme-text-color user-tag iaic"},[i("TagUserShow",{attrs:{name:e.name,"show-icon":!e.userId}})],1)})):i("span",{staticClass:"tag-place"},[e._v("请选择员工/部门")])],2)]),i("el-form-item",[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:""},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),i("el-form-item",[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.onSearch()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetForm()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"data-stat",fn:function(){return[i("div",{staticClass:"total-text"},[e._v(" "+e._s(e.LABEL_STAT[e.activeType])+" ")])]},proxy:!0},{key:"operate-btn",fn:function(){return[i("div",{staticClass:"flex"},[i("el-radio-group",{attrs:{size:"small"},on:{input:e.dimensionTypeChange},model:{value:e.viewType,callback:function(t){e.viewType=t},expression:"viewType"}},[i("el-radio-button",{attrs:{label:e.VIEW_TYPE["table"]}},[e._v("表格视图")]),i("el-radio-button",{attrs:{label:e.VIEW_TYPE["chart"]}},[e._v("图表视图")])],1),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["statistic:labelStatistics:export"],expression:"['statistic:labelStatistics:export']"}],on:{click:e.exportForms}},[e._v("导出报表")])],1)]},proxy:!0},{key:"data",fn:function(){return[e.viewType===e.VIEW_TYPE["table"]?i("TableShow",{ref:"tableShow",attrs:{"modify-button-status":e.modifyButtonStatus,"get-search-payload":e.getSearchPayload}}):i("ChartShow",{ref:"chartShow",attrs:{"modify-button-status":e.modifyButtonStatus,"get-search-payload":e.getSearchPayload}}),i("SelectUser",{attrs:{visible:e.dialogVisibleSelectUser,title:"选择员工/部门","is-only-leaf":!1,"selected-user-list":e.userAndDepartmentList},on:{"update:visible":function(t){e.dialogVisibleSelectUser=t},success:e.selectedUserOrDepartment}})]},proxy:!0}])})},n=[],r=i("ade3"),s=(i("d81d"),i("b66d")),o=i("515a"),l=i("c958"),c=i("cf45"),u=i("5142"),d=i("9d52"),p=i("dd70"),f=i("48fb"),A=i("2553"),h=i("b25c"),m=i("e2e0"),g={table:1,chart:2},v=Object(r["a"])(Object(r["a"])({},p["ld"]["customer"],"统计员工在查询时间内添加的客户,被打上企业客户标签的情况(受官方接口限制,不提供个人标签的统计)"),p["ld"]["group"],"统计员工在查询时间内创建的客户群,被打上群标签的情况"),b={name:"",components:{RightContainer:s["a"],TagUserShow:o["a"],SelectUser:l["a"],TableShow:u["default"],ChartShow:d["default"]},mixins:[m["a"]],data:function(){return{dialogVisibleSelectUser:!1,userAndDepartmentList:[],dateRange:[],query:{beginTime:void 0,endTime:void 0,tagGroupIds:[]},tagGroup:[],viewType:g["table"],VIEW_TYPE:g,LABEL_STAT:v}},inject:["tagType"],computed:{activeType:function(){return this.tagType()}},watch:{activeType:function(){this.viewType=g["table"],this.resetForm(),this.getTagGroupList()}},created:function(){this.onSearch(),this.getTagGroupList()},methods:{dimensionTypeChange:function(){this.onSearch()},selectedUserOrDepartment:function(e){this.userAndDepartmentList=e},onSearch:function(){var e=this;this.$nextTick((function(){e.viewType===g["table"]?e.$refs["tableShow"].getList(!0):e.$refs["chartShow"].reset()}))},getTagGroupList:function(){var e=this,t=this.activeType===p["ld"]["customer"]?h["tagGroupList"]:A["groupTagList"];t().then((function(t){e.tagGroup=t.rows}))},resetForm:function(){var e=this;this.userAndDepartmentList=[],this.query=this.$options.data().query,this.dateRange=[],this.$nextTick((function(){e.viewType===g["table"]?e.$refs["tableShow"].reset():e.$refs["chartShow"].reset()}))},getSearchPayload:function(){if(this.dateRange?(this.query.beginTime=this.dateRange[0],this.query.endTime=this.dateRange[1]):(this.query.beginTime="",this.query.endTime=""),this.userAndDepartmentList&&this.userAndDepartmentList.length>0){var e=Object(c["F"])(this.userAndDepartmentList);this.query.departmentIds=e.useDepartmentList.map((function(e){return e.id})),this.query.userIds=e.useEmployeesList.map((function(e){return e.userId}))}else this.query.departmentIds=[],this.query.userIds=[];return this.query},exportForms:function(){var e,t=this;e=this.viewType===g["table"]?this.$refs["tableShow"].getPayload():this.$refs["chartShow"].getPayload();var i=this.activeType===p["ld"]["customer"]?f["i"]:f["j"];i(e).then((function(e){t.download(e.data.msg,!0)})).catch((function(){t.msgError("导出失败!")}))}}},y=b,_=(i("4b80"),i("2877")),w=Object(_["a"])(y,a,n,!1,null,"a3e92e52",null);t["default"]=w.exports},e06c:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{model:e.query,inline:!0,"label-width":"100px"}},[i("el-form-item",[i("el-input",{attrs:{placeholder:"请输入朋友圈内容",clearable:""},on:{clear:function(t){return e.getFriendsCircleList(1)}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getFriendsCircleList(1)}},model:{value:e.query.content,callback:function(t){e.$set(e.query,"content",t)},expression:"query.content"}})],1),i("el-form-item",[i("el-select",{attrs:{placeholder:"请选择发布类型",size:"small"},model:{value:e.query.type,callback:function(t){e.$set(e.query,"type",t)},expression:"query.type"}},e._l(e.options,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),i("el-form-item",[i("el-date-picker",{attrs:{"picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),i("el-form-item",{attrs:{label:" "}},[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.getFriendsCircleList(1)}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list},on:{"selection-change":e.handleSelectionChange}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.list.length}})],1),i("el-table-column",{attrs:{label:"朋友圈内容",align:"center",prop:"weWordsDetailList",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"message-text intwoline"},[e._v(e._s(t.row.content))]),i("Content",{attrs:{data:t.row}})]}}])}),i("el-table-column",{attrs:{label:"发布类型",align:"center",prop:"type"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("pre",[e._v(e._s(t.row.type===e.type?"个人":"企业"))])]}}])}),i("el-table-column",{attrs:{label:"发布时间",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.taskType===e.taskType?i("div",[i("div",[e._v("定时发布")]),e._v(" "+e._s(t.row.sendTime)+" ")]):i("div",[e._v(" 立即发布 ")])]}}])}),i("el-table-column",{attrs:{label:"发布结果",align:"center",prop:"sendInfo",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("pre",[e._v(e._s(e._f("sendInfo")(t.row)))])]}}])}),i("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"createTime",width:"180"}}),i("el-table-column",{attrs:{label:"操作",align:"center",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:moments:detail"],expression:"['wecom:moments:detail']"}],style:t.row.status!==e.HAS_SEND?"color:#AAAAAA":"",attrs:{size:"mini",type:"text",disabled:t.row.status!==e.HAS_SEND},on:{click:function(i){return e.goRoute(t.row.momentTaskId,"detail")}}},[e._v("详情")]),i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(i){return e.goToGroupMessageAdd("copy",t.row)}}},[e._v("复制")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:moments:edit"],expression:"['wecom:moments:edit']"}],style:t.row.status!==e.NOT_SEND?"color:#AAAAAA":"",attrs:{size:"mini",type:"text",disabled:t.row.status!==e.NOT_SEND},on:{click:function(i){return e.goToGroupMessageAdd("edit",t.row)}}},[e._v("编辑")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:moments:del"],expression:"['wecom:moments:del']"}],attrs:{size:"mini",type:"text"},on:{click:function(i){return e.deleteTask(t.row)}}},[e._v("删除")])]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,disabled:e.loading,page:e.query.pageNum,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getFriendsCircleList()}}})]},proxy:!0}])})],1)},n=[],r=(i("99af"),i("d81d"),i("a9e3"),i("b64b"),i("d3b7"),i("ed08")),s=i("e753"),o=i("dd70"),l=i("b66d"),c=i("46ad"),u=i("e77d"),d=i("b9cd"),p=i("e2e0"),f=1,A=1,h=3,m=0,g={name:"Operlog",components:{RightContainer:l["a"],Content:d["default"],EmptyDefaultIcon:u["a"]},filters:{sendInfo:function(e){return"已发布员工 ".concat(e.publishNum,"人\n待发布员工 ").concat(e.notPublishNum,"人")}},mixins:[p["a"]],data:function(){return{loading:!1,ids:[],HAS_SEND:h,NOT_SEND:m,total:0,list:[],dateRange:[],type:f,taskType:A,query:{pageNum:1,pageSize:o["Ic"],beginTime:void 0,content:void 0,endTime:void 0,type:void 0},pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}},options:[{label:"全部",value:-1},{label:"个人",value:1},{label:"企业",value:0}]}},created:function(){if(this.$store.getters.saveCondition&&Object.keys(this.$store.getters.searchQuery[s["d"]]||{}).length){var e=this.$store.getters.searchQuery[s["d"]],t=e.beginTime,i=e.endTime;t&&i&&(this.dateRange=[t,i]),this.query=this.$store.getters.searchQuery[s["d"]]}this.getFriendsCircleList()},methods:{getFriendsCircleList:function(e){var t=this;this.query.beginTime=this.dateRange[0],this.query.endTime=this.dateRange[1],this.query.type&&(this.query.type=Number(this.query.type)),e&&(this.query.pageNum=e),this.loading=!0,Object(c["c"])(this.query).then((function(e){var i=e.rows,a=e.total;t.list=i,t.total=+a})).finally((function(){t.loading=!1,t.modifyButtonStatus()}))},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.id}))},resetQuery:function(){this.dateRange=[],this.query=this.$options.data().query,this.getFriendsCircleList(1)},goRoute:function(e,t){this.$store.commit("SET_SEARCH_QUERY",{pageName:s["d"],query:this.query}),Object(r["l"])(this.$router,t,{},{id:e})},deleteTask:function(e){var t=this;e.status===m&&this.confirmModal({msg:"该朋友圈删除后,员工将不接收发布通知,是否继续?"},(function(){Object(c["b"])({momentTaskId:e.momentTaskId}).then((function(e){t.msgSuccess("操作成功"),t.getFriendsCircleList()}))})),e.status===h&&this.confirmModal({msg:"该朋友圈发布记录将从系统删除,不会删除已发布到企业微信的记录,是否继续?"},(function(){Object(c["b"])({momentTaskId:e.momentTaskId}).then((function(e){t.msgSuccess("操作成功"),t.getFriendsCircleList()}))}))},goToGroupMessageAdd:function(e,t){var i={};i.from=e,i.user=t.userList,i.momentTaskId=t.momentTaskId,Object(r["l"])(this.$router,"release",{},i)}}},v=g,b=(i("5c6f"),i("2877")),y=Object(b["a"])(v,a,n,!1,null,"5b0f99c8",null);t["default"]=y.exports},e08a:function(e,t,i){},e0d6:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"list"},[e.loading?e._e():i("empty-default-icon",{staticClass:"h100",attrs:{text:"暂无聊天对象",length:e.list.length}},[e.personList.length>=1?i("ul",e._l(e.list,(function(t,a){return i("li",{key:a,class:{liActive:a==e.personIndex},on:{click:function(i){return e.liClick(t,a)}}},[i("el-row",{staticClass:"row-div"},[i("span",{staticClass:"fl"},[i("img",{attrs:{src:e.getHeadImgUrl(t.receiveWeUser.avatarMediaid)}})]),i("span",{staticClass:"fl",staticStyle:{"margin-left":"10px"}},[i("p",{staticClass:"intwoline"},[e._v(e._s(t.receiveWeUser.name))])]),t.finalChatContext?i("span",{staticClass:"time"},[e._v(e._s(e.dealTime(t.finalChatContext.msgtime)))]):e._e()])],1)})),0):e._e()])],1)},n=[],r=i("e77d"),s=i("cf45"),o=i("ed08"),l={components:{EmptyDefaultIcon:r["a"]},props:{personList:{type:Array,default:function(){return[]}},loading:{type:Boolean,defluat:!1}},data:function(){return{loadings:!0,personIndex:-1,list:[]}},watch:{personList:function(e){this.personIndex=-1,this.list=e}},methods:{dealTime:function(e){return Object(o["g"])(e)},getHeadImgUrl:s["B"],liClick:function(e,t){this.personIndex=t,this.$emit("chatFn",e)}}},c=l,u=(i("37c9"),i("2877")),d=Object(u["a"])(c,a,n,!1,null,"427a6130",null);t["default"]=d.exports},e0f0:function(e,t,i){},e125:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("MaPage",{ref:"page",attrs:{type:e.MEDIA_TYPE_IMGLINK,selected:e.selectedMaterialList,"select-material":e.selectMaterial},on:{"update:selected":function(t){e.selectedMaterialList=t}},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.list,n=t.getList,r=t.changeList,s=t.edit;return[e._l(a,(function(t,a){return[i("FileItem",{key:a,attrs:{item:t,"tool-list":["preview",t.showMaterial?"published":"publish","edit","remove"],"desc-field":"digest",type:e.MEDIA_TYPE_IMGLINK,"selected-material-list":e.selectedMaterialList,"select-material":e.selectMaterial},on:{openMaterialDialog:s,getList:n,changeList:r}})]}))]}}])})},n=[],r=i("2d03"),s=i("8fc0"),o=i("dd70"),l={name:"GraphicList",components:{MaPage:r["default"],FileItem:s["a"]},data:function(){return{MEDIA_TYPE_IMGLINK:o["ac"],selectedMaterialList:[]}},watch:{},created:function(){},methods:{selectMaterial:function(e){this.selectedMaterialList=e}}},c=l,u=i("2877"),d=Object(u["a"])(c,a,n,!1,null,null,null);t["default"]=d.exports},e13b:function(e,t,i){},e188:function(e,t,i){},e1c7:function(e,t,i){e.exports=i.p+"static/img/tongxunlutongbu.483e9bd4.png"},e1e4:function(e,t,i){},e228:function(e,t,i){},e25e:function(e,t,i){"use strict";i("11c5")},e27b:function(e,t,i){},e28e:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"activeness-page"},[i("SelectUser",{attrs:{visible:e.dialogVisibleSelectUser,title:"选择员工/部门","is-dep-linkage":"","is-only-leaf":!1,"selected-user-list":e.userAndDepartmentList},on:{"update:visible":function(t){e.dialogVisibleSelectUser=t},success:e.selectedUserOrDepartment}}),i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{inline:!0,model:e.query,"label-width":"80px",size:"small"}},[i("el-form-item",{attrs:{prop:"name"}},[i("div",{staticClass:"tag-input",on:{click:function(t){e.dialogVisibleSelectUser=!0}}},[e.userAndDepartmentList.length?e._l(e.userAndDepartmentList,(function(e,t){return i("el-tag",{key:t,staticClass:"theme-text-color user-tag iaic"},[i("TagUserShow",{attrs:{name:e.name,"show-icon":!e.userId}})],1)})):i("span",{staticClass:"tag-place"},[e._v("请选择员工/部门")])],2)]),i("el-form-item",{attrs:{label:"添加时间"}},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期",clearable:!1},model:{value:e.addDateRange,callback:function(t){e.addDateRange=t},expression:"addDateRange"}})],1),i("el-form-item",{attrs:{label:"发送时间"}},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions,clearable:!1},model:{value:e.sendDateRange,callback:function(t){e.sendDateRange=t},expression:"sendDateRange"}})],1),i("el-form-item",[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.onSearch()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetForm()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"data",fn:function(){return[i("div",{staticClass:"tendency-chart"},[i("div",{staticClass:"chart-title"},[e._v("趋势图")]),i("div",{staticClass:"chart-info"},[e._v("统计某个时间段内员工添加的客户,在某个时间段内发送的消息情况")]),i("div",{staticClass:"echars-show"},[i("Graphics",{attrs:{"echars-options-data":e.echarsOptionsData}})],1)]),i("div",{staticClass:"data-details"},[i("div",{staticClass:"details-title"},[e._v("数据详情")]),i("div",{staticClass:"forms-handle-btn"},[i("el-radio-group",{staticClass:"radio-group-div",attrs:{size:"medium"},on:{input:e.radioGroupChange},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-radio-button",{attrs:{label:e.DATA_DIMENSION["date"]}},[e._v("日期维度")]),i("el-radio-button",{attrs:{label:e.DATA_DIMENSION["staff"]}},[e._v("员工维度")]),i("el-radio-button",{attrs:{label:e.DATA_DIMENSION["client"]}},[e._v("客户维度")])],1),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["statistic:customerContact:export"],expression:"['statistic:customerContact:export']"}],staticClass:"btn-reset btn-export",on:{click:e.exportForms}},[e._v("导出报表")])],1),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{length:e.list.length}})],1),e.activeName!==e.DATA_DIMENSION["date"]?i("el-table-column",{key:"staffOrClient",attrs:{prop:"",label:e.activeName===e.DATA_DIMENSION["staff"]?"员工":"客户","min-width":"180"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("UserItem",{attrs:{data:a,"is-staff":e.activeName===e.DATA_DIMENSION["staff"]}})]}}],null,!1,1372715615)}):e._e(),e.activeName===e.DATA_DIMENSION["date"]?i("el-table-column",{key:"time",attrs:{prop:"time",label:"日期","min-width":"180"}}):e._e(),e.activeName===e.DATA_DIMENSION["client"]?i("el-table-column",{key:"userInfo",attrs:{prop:"",label:"所属员工","min-width":"180"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",[i("div",[e._v(e._s(a.userName))]),i("div",[e._v(e._s(a.departmentName))])])]}}],null,!1,1388168491)}):e._e(),i("el-table-column",{key:"userSendMessageCnt",attrs:{prop:"userSendMessageCnt",label:"员工发送消息数","min-width":"180"}}),i("el-table-column",{key:"customerSendMessageCnt",attrs:{prop:"customerSendMessageCnt",label:"客户发送消息数","min-width":"180"}}),e.activeName!==e.DATA_DIMENSION["client"]?i("el-table-column",{key:"chatCustomerCnt",attrs:{prop:"chatCustomerCnt",label:"会话客户数","min-width":"180"}}):e._e(),e.activeName!==e.DATA_DIMENSION["client"]?i("el-table-column",{key:"customerAverageMessageCnt",attrs:{prop:"customerAverageMessageCnt",label:"客户平均消息数","min-width":"180"}}):e._e(),e.activeName!==e.DATA_DIMENSION["date"]?i("el-table-column",{key:"handle",attrs:{label:"操作","min-width":"180"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e.activeName===e.DATA_DIMENSION["staff"]?i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.openClientDialog(a)}}},[e._v("详情")]):e._e(),e.activeName===e.DATA_DIMENSION["client"]?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["customerManage:customer:view"],expression:"['customerManage:customer:view']"}],attrs:{type:"text"},on:{click:function(t){return e.skipToUserDetails(a)}}},[e._v("客户详情")]):e._e()]}}],null,!1,3807871597)}):e._e()],2),i("pagination",{attrs:{disabled:e.loading,total:1*e.total,page:e.query.pageNum,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}})],1)]},proxy:!0}])}),i("ClientDetailsDialog",{ref:"clientDetailsDialogRef",attrs:{visible:e.detailsDialogVisible,"show-details-client":e.showDetailsClient,"parent-query":e.query},on:{"update:visible":function(t){e.detailsDialogVisible=t}}})],1)},n=[],r=i("c7eb"),s=i("1da1"),o=(i("d81d"),i("e9c4"),i("a9e3"),i("b64b"),i("d3b7"),i("07ac"),i("b66d")),l=i("dd70"),c=i("e753"),u=i("7c3b"),d=i("a239"),p=i("86e8"),f=i("e77d"),A=i("515a"),h=i("c958"),m=i("cf45"),g=i("48fb"),v=i("e2e0"),b=i("ed08"),y={name:"",components:{RightContainer:o["a"],ClientDetailsDialog:u["default"],Graphics:d["default"],UserItem:p["a"],EmptyDefaultIcon:f["a"],TagUserShow:A["a"],SelectUser:h["a"]},mixins:[v["a"]],data:function(){var e=this;return{dialogVisibleSelectUser:!1,userAndDepartmentList:[],pickerMinDate:"",pickerOptions:{onPick:function(t){e.pickerMinDate=new Date(t.minDate).getTime()},disabledDate:function(t){if(e.pickerMinDate){var i=new Date(Object(m["b"])(e.pickerMinDate)).getTime(),a=new Date(Object(m["c"])(e.pickerMinDate)).getTime();return t.getTime()>a||t.getTime()<i||t.getTime()<new Date(m["a"]).getTime()||t.getTime()>new Date(m["f"]).getTime()}return t.getTime()<new Date(m["a"]).getTime()||t.getTime()>new Date(m["f"]).getTime()}},activeName:l["E"]["date"],addDateRange:[m["f"],m["f"]],sendDateRange:[m["f"],m["f"]],query:{departmentIds:[],userIds:[],pageNum:1,pageSize:l["Ic"],beginTime:void 0,endTime:void 0,sendStartTime:void 0,sendEndTime:void 0},total:0,list:[],loading:!1,DATA_DIMENSION:l["E"],detailsDialogVisible:!1,showDetailsClient:void 0,echarsOptionsData:{xAxisData:[],clientSendMessageList:[],userSendMessageList:[]},isSkipToCustomerDetail:!1}},watch:{activeName:{handler:function(e){this.getList(!0)}}},created:function(){this.setQueryParams();var e=Object(b["j"])();e.detailsActiveName?this.activeName=Number(e.detailsActiveName):this.getList(!0),this.getChartData()},beforeDestroy:function(){if(!this.isSkipToCustomerDetail){var e=Object.values(l["w"]);e.map((function(e){return sessionStorage.removeItem(e)}))}},methods:{radioGroupChange:function(e){Object(b["b"])("detailsActiveName",e)},setQueryParams:function(){var e=sessionStorage.getItem(l["w"]["addDateRange"]),t=sessionStorage.getItem(l["w"]["sendDateRange"]),i=sessionStorage.getItem(l["w"]["userAndDepartmentList"]);this.addDateRange=e?JSON.parse(e):[m["f"],m["f"]],this.sendDateRange=t?JSON.parse(t):[m["f"],m["f"]],this.userAndDepartmentList=i?JSON.parse(i):[]},selectedUserOrDepartment:function(e){this.userAndDepartmentList=e},getSearchPayload:function(){if(this.addDateRange?(this.query.beginTime=this.addDateRange[0],this.query.endTime=this.addDateRange[1]):(this.query.beginTime="",this.query.endTime=""),this.sendDateRange?(this.query.sendStartTime=this.sendDateRange[0],this.query.sendEndTime=this.sendDateRange[1]):(this.query.sendStartTime="",this.query.sendEndTime=""),this.userAndDepartmentList&&this.userAndDepartmentList.length>0){var e=Object(m["F"])(this.userAndDepartmentList);this.query.departmentIds=e.useDepartmentList.map((function(e){return e.id})),this.query.userIds=e.useEmployeesList.map((function(e){return e.userId}))}else this.query.departmentIds=[],this.query.userIds=[];return this.setSessionStorage(),this.query},setSessionStorage:function(){sessionStorage.setItem(l["w"]["addDateRange"],JSON.stringify(this.addDateRange)),sessionStorage.setItem(l["w"]["sendDateRange"],JSON.stringify(this.sendDateRange)),sessionStorage.setItem(l["w"]["userAndDepartmentList"],JSON.stringify(this.userAndDepartmentList))},getList:function(e){var t=this;e&&(this.query.pageNum=1),this.loading=!0,this.getDiffSearchDetailsDataFun()(this.getSearchPayload()).then((function(e){t.list=e.rows,t.total=e.total||0})).finally((function(){t.loading=!1,t.modifyButtonStatus()}))},getDiffSearchDetailsDataFun:function(){switch(this.activeName){case l["E"]["date"]:return g["q"];case l["E"]["staff"]:return g["s"];case l["E"]["client"]:return g["p"]}},getDiffExportFormsFun:function(){switch(this.activeName){case l["E"]["date"]:return g["e"];case l["E"]["staff"]:return g["f"];case l["E"]["client"]:return g["d"]}},getChartData:function(){var e=this;Object(g["r"])(this.getSearchPayload()).then((function(t){var i=t.data.map((function(e){return e.time})),a=t.data.map((function(e){return e.customerSendMessageCnt})),n=t.data.map((function(e){return e.userSendMessageCnt}));e.$set(e.echarsOptionsData,"xAxisData",i),e.$set(e.echarsOptionsData,"clientSendMessageList",a),e.$set(e.echarsOptionsData,"userSendMessageList",n)}))},onSearch:function(){this.getList(!0),this.getChartData()},resetForm:function(){this.userAndDepartmentList=[],this.query=this.$options.data().query,this.pickerMinDate="",this.addDateRange=[m["f"],m["f"]],this.sendDateRange=[m["f"],m["f"]],this.getList(!0),this.getChartData()},exportForms:function(){var e=this;this.getDiffExportFormsFun()(this.getSearchPayload()).then((function(t){e.download(t.data.msg,!0)})).catch((function(){e.msgError("导出失败!")}))},openClientDialog:function(e){var t=this;return Object(s["a"])(Object(r["a"])().mark((function i(){var a;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return t.detailsDialogVisible=!0,t.showDetailsClient=e,i.next=4,t.$nextTick();case 4:null===(a=t.$refs)||void 0===a||null===(a=a.clientDetailsDialogRef)||void 0===a||a.getList(!0);case 5:case"end":return i.stop()}}),i)})))()},skipToUserDetails:function(e){this.isSkipToCustomerDetail=!0,Object(b["l"])(this.$router,c["b"],{},{id:e.externalUserId,userId:e.userId,prePageType:"customer"})}}},_=y,w=(i("ede5"),i("2877")),C=Object(w["a"])(_,a,n,!1,null,"6d832386",null);t["default"]=C.exports},e298:function(e,t,i){"use strict";i("d390")},e2b8:function(e,t,i){},e2e0:function(e,t,i){"use strict";t["a"]={data:function(){return{searchButtonLoading:!1,resetButtonLoading:!1}},methods:{modifyButtonStatus:function(){this.searchButtonLoading=!1,this.resetButtonLoading=!1}}}},e2e1:function(e,t,i){},e2f7:function(e,t,i){e.exports=i.p+"static/img/conversation-unconfig.36ebf261.svg"},e30f:function(e,t,i){},e350:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));i("caad"),i("d3b7"),i("2532");var a=i("4360");function n(e){var t="*:*:*";if(e&&e instanceof Array&&e.length>0){var i=a["a"].getters&&a["a"].getters.permissions,n=e,r=i.some((function(e){return t===e||n.includes(e)}));return!!r}return!1}},e393:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-calendar",{staticClass:"calendar-container",scopedSlots:e._u([{key:"dateCell",fn:function(t){var a=t.date,n=t.data;return[i("div",{staticClass:"custom-calendar-item",on:{click:function(){return e.handleClickCalendar(a)}}},[i("p",{staticClass:"mb10"},[e._v(" "+e._s(n.day.split("-")[2])+" ")]),e._l(e.dealCalendar(a),(function(t,n){return i("div",{key:n+a.getTime(),staticClass:"rule-name mb5 toe",attrs:{title:t.name},on:{click:function(i){return i.stopPropagation(),function(){return e.handleEditCalendarItem(t)}()}}},[e._v(" 「"+e._s(t.formatTime)+"」"+e._s(t.name)+" ")])}))],2)]}}]),model:{value:e.calendarVal,callback:function(t){e.calendarVal=t},expression:"calendarVal"}})},n=[],r=i("5530"),s=(i("4de4"),i("d81d"),i("d3b7"),i("ed08")),o=i("c1df"),l=i.n(o),c={name:"",components:{},props:{ruleList:{type:Array,default:function(){return[]}}},data:function(){return{calendarVal:new Date}},created:function(){},mounted:function(){},methods:{handleClickCalendar:function(e){this.$emit("handleClickCalendar",e)},handleEditCalendarItem:function(e){this.$emit("handleEditCalendarItem",e)},dealCalendar:function(e){var t=Object(s["h"])(this.ruleList),i=t.filter((function(t){return l()(t.alertInfo.time).format("YYYY-MM-DD")===l()(e).format("YYYY-MM-DD")}));return i=i.map((function(e){return Object(r["a"])(Object(r["a"])({},e),{},{formatTime:l()(e.alertInfo.time).format("HH:mm")})})),i}}},u=c,d=(i("28a7"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"d14e16b8",null);t["default"]=p.exports},e4ed:function(e,t,i){"use strict";i("4e1e")},e541:function(e,t,i){},e552:function(e,t,i){"use strict";var a,n;function r(e,t,i){var a=function(t,i){return e.js_beautify(t,i)};return a.js=e.js_beautify,a.css=t.css_beautify,a.html=i.html_beautify,a.js_beautify=e.js_beautify,a.css_beautify=t.css_beautify,a.html_beautify=i.html_beautify,a}a=[i("e943"),i("4d7c"),i("a6c1")],n=function(e,t,i){return r(e,t,i)}.apply(t,a),void 0===n||(e.exports=n)},e56e:function(e,t,i){},e60d:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"verbal-trick-content-page"},[i("div",{class:e.groupData.length?"verbal-trick-group":"verbal-trick-group empty"},[i("common-tree",{ref:"tree",staticClass:"left-tree",attrs:{data:e.groupData.length?e.treeData:[],"node-key":"id","default-expand-all":"","highlight-current":"",props:e.defaultProps},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.node,n=t.data;return i("div",{staticClass:"custom-tree-node",on:{click:function(t){return t.stopPropagation(),e.selectGroup(n)}}},[i("div",{staticClass:"group-left"},[n.id!==e.ALL_GROUP_ID?i("svg",{staticClass:"icon-folder",attrs:{width:20,height:20}},[i("use",{attrs:{href:"#icon-folder"}})]):e._e(),i("span",[e._v(e._s(a.label))])]),i("span",{staticClass:"right-tool"},[n.id===e.ALL_GROUP_ID&&e.roleKey?i("i",{staticClass:"iconfont icon-add",attrs:{title:"添加"},on:{click:function(t){return t.stopPropagation(),e.addGroup(n,0)}}}):e._e(),n.id!==e.ALL_GROUP_ID&&e.roleKey?i("el-dropdown",{staticClass:"dropdown-list",attrs:{trigger:"click"},on:{command:function(t){return e.handleCommand(t,n)}}},[e.roleKey?i("i",{staticClass:"iconfont icon-more",on:{click:function(e){return e.stopPropagation()}}}):e._e(),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{attrs:{command:"edit"}},[i("i",{staticClass:"iconfont el-icon-edit-outline"}),e._v("编辑")]),i("el-dropdown-item",{attrs:{command:"placedAtTop",disabled:0===e.dealList(n).index}},[i("i",{staticClass:"iconfont icon-placedAtTop"}),e._v("置顶 ")]),i("el-dropdown-item",{attrs:{command:"moveTop",disabled:0===e.dealList(n).index}},[i("i",{staticClass:"iconfont el-icon-top"}),e._v("上移")]),i("el-dropdown-item",{attrs:{command:"moveBottom",disabled:e.checkLastItem(e.dealList(n))}},[i("i",{staticClass:"iconfont el-icon-bottom"}),e._v("下移")]),i("el-dropdown-item",{attrs:{command:"delete"}},[i("i",{staticClass:"iconfont el-icon-delete"}),e._v("删除")])],1)],1):e._e()],1)])}}])},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{text:"暂无分组"}},[i("template",{slot:"customBtn"},[e.roleKey?i("div",{staticClass:"customBtn"},[e._v("分组用于话术分类,添加话术前先"),i("el-button",{attrs:{type:"text"},on:{click:e.addGroup}},[e._v("添加分组")])],1):e._e()])],2)],1)],2)],1),i("VerbalTrickList",{ref:"verbalTrickList",attrs:{type:e.type,"all-group-data":e.groupData,"group-tree-data":e.treeData,"category-ids":e.categoryIds,"role-key":e.roleKey,"selected-group":e.selectGroupData,"handle-get-group":e.getAllList}}),i("GroupModal",{attrs:{visible:e.groupVisible,title:(e.groupFromData.id?"编辑":"新增")+"分组",width:"443px","group-data":e.firstGroup,"form-data":e.groupFromData,type:e.type,"get-list":function(){return e.getWordScategoryListByType(e.type)}},on:{"update:visible":function(t){e.groupVisible=t},"update:formData":function(t){e.groupFromData=t},"update:form-data":function(t){e.groupFromData=t}}})],1)},n=[],r=i("5530"),s=i("c7eb"),o=i("1da1"),l=i("2909"),c=(i("99af"),i("4de4"),i("c740"),i("d81d"),i("4e82"),i("a434"),i("a9e3"),i("d3b7"),i("f0ef")),u=i("dd70"),d=i("b9e6"),p=i("ca00"),f=i("cf45"),A=i("e350"),h=i("ce6b"),m=i("e77d"),g="0",v={name:"VerbalTrickContent",components:{GroupModal:d["default"],VerbalTrickList:p["default"],CommonTree:h["a"],EmptyDefaultIcon:m["a"]},props:{type:{type:Number,default:u["wd"]["enterprise"]}},data:function(){return{groupData:[],defaultProps:{label:"name",children:"children"},groupVisible:!1,groupFromData:{parentId:void 0,name:void 0},ALL_GROUP_ID:g,categoryIds:[],roleKey:!0,selectGroupData:""}},computed:{treeData:function(){var e=[{id:g,name:"全部"}].concat(Object(l["a"])(this.groupData));return this.handleTree(e)},firstGroup:function(){var e=Object(l["a"])(this.groupData);return e=e.filter((function(e){return e.parentId===g})),e}},watch:{type:function(e){void 0!==e&&(this.roleKey=this.verbalTrickManage(e),this.getAllList())}},created:function(){this.getAllList(),this.roleKey=this.verbalTrickManage(this.type)},mounted:function(){},methods:{verbalTrickManage:function(e){switch(e){case u["wd"]["enterprise"]:return Object(A["a"])(["wecom:corpWords:manage"]);case u["wd"]["department"]:return Object(A["a"])(["wecom:deptWords:manage"])}return!0},getAllList:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i,a;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.getWordScategoryListByType(e.type);case 2:if(i=t.sent,!i){t.next=11;break}if(e.$refs.tree&&e.$refs.tree.$refs.commonTree.setCurrentKey(g),a=i.map((function(e){return e.id})),0!==a.length){t.next=9;break}return e.$refs.verbalTrickList.list=[],t.abrupt("return");case 9:e.categoryIds=Object(l["a"])(a),e.$refs.verbalTrickList.getAllWordsList({categoryIds:a},!0);case 11:case"end":return t.stop()}}),t)})))()},selectGroup:function(e){this.selectGroupData=e.id,this.$refs.tree&&this.$refs.tree.$refs.commonTree.setCurrentKey(e.id);var t=[];e.id!==g&&t.push(e.id),e.children&&e.children.map((function(e){t.push(e.id),e.children&&e.children.map((function(e){t.push(e.id)}))})),this.categoryIds=[].concat(t),this.$refs.verbalTrickList.query.pageNum=1,this.$refs.verbalTrickList.getAllWordsList({categoryIds:t})},getWordScategoryListByType:function(e){var t=arguments,i=this;return Object(o["a"])(Object(s["a"])().mark((function a(){var n,o,u;return Object(s["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return n=t.length>1&&void 0!==t[1]?t[1]:{},a.next=3,Object(c["c"])(Object(r["a"])({type:e},n));case 3:return o=a.sent,o&&(u=Object(l["a"])(o.data),u.sort((function(e,t){return t.sort-e.sort})),i.groupData=u),a.abrupt("return",i.groupData);case 6:case"end":return a.stop()}}),a)})))()},addGroup:function(){this.groupVisible=!0,this.groupFromData={}},handleCommand:function(e,t){var i=this;switch(e){case"edit":this.groupVisible=!0,this.groupFromData=Object(r["a"])({},t),"0"===this.groupFromData.parentId&&(this.groupFromData.parentId=null);break;case"delete":this.confirmModal({msg:"该分组下分组和话术都将被删除,且不可撤回,是否继续?"},Object(o["a"])(Object(s["a"])().mark((function e(){var a;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(c["d"])({id:t.id});case 2:a=e.sent,a&&(i.msgSuccess("删除成功"),i.getWordScategoryListByType(i.type));case 4:case"end":return e.stop()}}),e)}))));break;case"placedAtTop":var a=this.dealList(t),n=Object(l["a"])(a.list),u=a.index;u>-1&&(n.splice(u,1),n.unshift(t)),this.changeGroupSort(n);break;case"moveTop":var d=this.dealList(t),p=Object(l["a"])(d.list);p.splice(d.index-1,0,p.splice(d.index,1)[0]),this.changeGroupSort(p);break;case"moveBottom":var f=this.dealList(t),A=Object(l["a"])(f.list);A.splice(f.index,0,A.splice(f.index+1,1)[0]),this.changeGroupSort(A);break}},changeGroupSort:function(e){var t=this;return Object(o["a"])(Object(s["a"])().mark((function i(){var a,n;return Object(s["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a=Object(l["a"])(Object(f["p"])(e)),i.next=3,Object(c["b"])({sortList:a});case 3:n=i.sent,n&&t.getWordScategoryListByType(t.type);case 5:case"end":return i.stop()}}),i)})))()},dealList:function(e){var t,i;if("0"===e.parentId)i=Object(l["a"])(this.treeData[0].children),t=i.findIndex((function(t){return t.id===e.id}));else{var a=this.treeData[0].children.findIndex((function(t){return t.id===e.parentId}));a>-1&&(i=Object(l["a"])(this.treeData[0].children[a].children),t=i.findIndex((function(t){return t.id===e.id})))}return{list:i,index:t}},checkLastItem:function(e){var t;return e.index===(null===(t=e.list)||void 0===t?void 0:t.length)-1}}},b=v,y=(i("0d16"),i("2877")),_=Object(y["a"])(b,a,n,!1,null,"b9bbe6c0",null);t["default"]=_.exports},e60f:function(e,t,i){e.exports=i.p+"static/img/chatside-step1.48dfb6f6.png"},e634:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"label-list-page"},[i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{inline:!0,model:e.query,"label-width":"100px",size:"small"}},[i("el-form-item",{attrs:{prop:"name"}},[i("el-input",{attrs:{placeholder:"请输入规则名称",clearable:""},model:{value:e.query.ruleName,callback:function(t){e.$set(e.query,"ruleName",t)},expression:"query.ruleName"}})],1),i("el-form-item",[i("div",{staticClass:"tag-input",on:{click:function(t){e.selectTagVisible=!0}}},[e.selectedTags.length?e._l(e.selectedTags,(function(t,a){return i("el-tag",{key:a,attrs:{type:"info",closable:""},on:{close:function(i){return e.deleteTag(t)}}},[e._v(" "+e._s(t.name)+" ")])})):i("span",{staticClass:"tag-place"},[e._v("请选择标签")])],2)]),i("el-form-item",{attrs:{prop:"user"}},[i("el-input",{attrs:{placeholder:"请输入创建人姓名",clearable:""},model:{value:e.query.createBy,callback:function(t){e.$set(e.query,"createBy",t)},expression:"query.createBy"}})],1),i("el-form-item",{attrs:{prop:"status"}},[i("el-select",{attrs:{placeholder:"请选择启用状态",clearable:""},model:{value:e.query.status,callback:function(t){e.$set(e.query,"status",t)},expression:"query.status"}},e._l(e.enabledStatus,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),i("el-form-item",[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.onSearch()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetForm()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"data-stat",fn:function(){return[i("div",[e._v(" "+e._s(e.labelTip)+" ")])]},proxy:!0},{key:"operate-btn",fn:function(){return[i("el-dropdown",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:autotag:enable"],expression:"['wecom:autotag:enable']"}],staticClass:"dropdown-reset",attrs:{"split-button":""},on:{click:function(){return e.handleBatchIsOpen(!0)},command:function(t){return e.handleBatchIsOpen(t)}}},[e._v(" 批量开启 "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{staticStyle:{width:"108px"},attrs:{command:!1}},[e._v("批量关闭")])],1)],1),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:autotag:del"],expression:"['wecom:autotag:del']"}],on:{click:e.batchDel}},[e._v("批量删除")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:autotag:add"],expression:"['wecom:autotag:add']"}],attrs:{type:"primary"},on:{click:function(t){return e.goRoute("addRule")}}},[e._v("新增规则")])]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],key:e.labelType,ref:"table",attrs:{data:e.list,"tooltip-effect":"dark","highlight-current-row":""},on:{"selection-change":e.handleSelectionChange}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{text:"暂无数据"}})],1),i("el-table-column",{key:"row-1",attrs:{type:"selection",align:"center",width:"55"}}),i("el-table-column",{key:"row-2",attrs:{label:"规则名称",prop:"ruleName",align:"left",width:"250"}}),i("el-table-column",{key:"row-3",attrs:{label:"标签",prop:"tagList",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",{staticClass:"tagList"},e._l(e.dealTagList(a.tagList),(function(t){return i("el-tag",{key:t.tagId,staticClass:"mb5",attrs:{type:"info"}},[e._v(e._s(t.tagName))])})),1)]}}])}),i("el-table-column",{key:"row-4",attrs:{prop:"status",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-switch",{attrs:{disabled:!e.checkPermi(["wecom:autotag:enable"])},on:{change:function(t){return e.changeStatus(t,a)}},model:{value:a.status,callback:function(t){e.$set(a,"status",t)},expression:"row.status"}})]}},{key:"header",fn:function(){return[i("div",[i("span",[e._v("启用状态")]),i("el-popover",{attrs:{placement:"top",trigger:"hover","popper-class":"tip-popover",content:"关闭则规则不生效"}},[i("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"14px"},attrs:{slot:"reference"},slot:"reference"})])],1)]},proxy:!0}])}),i("el-table-column",{key:"row-5",attrs:{label:"创建人",prop:"createBy",align:"left",width:"199"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",[i("div",{staticStyle:{color:"#333333","font-size":"14px"}},[e._v(e._s(a.createBy))]),i("div",{staticClass:"cus-dept"},[e._v(e._s(a.mainDepartmentName||""))])])]}}])}),i("el-table-column",{key:"row-6",attrs:{label:"创建时间",prop:"createTime",align:"left",width:"199"}}),i("el-table-column",{key:"row-7",attrs:{label:"操作",width:"199"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(t){return e.goRoute("labelDetail",{id:a.id})}}},[e._v("详情")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:autotag:edit"],expression:"['wecom:autotag:edit']"}],attrs:{type:"text",size:"small"},on:{click:function(t){return e.goRoute("addRule",{id:a.id})}}},[e._v("编辑")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:autotag:del"],expression:"['wecom:autotag:del']"}],attrs:{type:"text",size:"small"},on:{click:function(t){return e.handleDelete(a)}}},[e._v("删除")])]}}])})],2),i("pagination",{attrs:{total:1*e.total,disabled:e.loading,page:e.query.pageNum,limit:e.query.pageSize,"select-data-len":e.multipleSelection.length},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getLabelList()}}})]},proxy:!0}])}),i("SelectTag",{attrs:{type:"query",title:"选择标签",visible:e.selectTagVisible,selected:e.selectedTags},on:{"update:visible":function(t){e.selectTagVisible=t},success:e.submitSelectTag}})],1)},n=[],r=i("2909"),s=i("c7eb"),o=i("ade3"),l=i("5530"),c=i("1da1"),u=(i("4de4"),i("c740"),i("d81d"),i("a434"),i("b0c0"),i("a9e3"),i("b64b"),i("d3b7"),i("b66d")),d=i("aada"),p=i("2986"),f=i("dd70"),A=i("ed08"),h=i("e350"),m=i("e77d"),g=i("e2e0"),v={name:"",components:{RightContainer:u["a"],EmptyDefaultIcon:m["a"],SelectTag:d["a"]},mixins:[g["a"]],props:{labelType:{type:Number,default:null},labelTip:{type:String,default:""}},data:function(){return{selectedTags:[],selectTagVisible:!1,enabledStatus:[{label:"全部",value:-1},{label:"启用",value:!0},{label:"关闭",value:!1}],AUTOLABEL_TYPE:f["j"],query:{ruleName:"",createBy:"",tagIdList:[],status:null,pageNum:1,pageSize:f["Ic"]},total:0,list:[],multipleSelection:[],loading:!1}},computed:{dealTagList:function(){return function(e){return e&&e.filter((function(e){return null!==e}))||[]}}},watch:{labelType:function(){var e=this;this.$nextTick((function(){e.query.pageNum=1,e.multipleSelection=[],e.getLabelList()}))}},created:function(){var e=this.$store.getters.searchQuery[this.$route.name];this.$store.getters.saveCondition&&Object.keys(e||{}).length&&(this.selectedTags=e.selectedTags,delete e.selectedTags,this.query=e),this.getLabelList()},mounted:function(){},methods:{checkPermi:function(e){return Object(h["a"])(e)},onSearch:function(){this.getLabelList({pageNum:1})},resetForm:function(){this.query={ruleName:"",createBy:"",status:null,pageNum:1,pageSize:f["Ic"],tagIdList:[]},this.selectedTags=[],this.getLabelList()},getLabelList:function(){var e=arguments,t=this;return Object(c["a"])(Object(s["a"])().mark((function i(){var a,n,r,c;return Object(s["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:a=e.length>0&&void 0!==e[0]?e[0]:{},n=t.query,r=Object(l["a"])(Object(l["a"])({},n),{},{status:-1===n.status?null:n.status},a),c=Object(o["a"])(Object(o["a"])(Object(o["a"])({},f["j"]["keyWords"],p["o"]),f["j"]["intoGroup"],p["k"]),f["j"]["newCustomer"],p["h"]),t.loading=!0,c[t.labelType](r,{pageNum:r.pageNum,pageSize:r.pageSize}).then((function(e){t.total=(null===e||void 0===e?void 0:e.total)||0,t.list=(null===e||void 0===e?void 0:e.rows)||[]})).finally((function(){t.modifyButtonStatus(),t.loading=!1}));case 6:case"end":return i.stop()}}),i)})))()},handleDelete:function(e){this.deleteRule({idList:[e.id]})},batchDel:function(){this.multipleSelection.length<=0?this.msgWarn("请至少选择一个规则"):this.deleteRule({idList:this.multipleSelection.map((function(e){return e.id}))},"batch")},deleteRule:function(e,t){var i=this;return Object(c["a"])(Object(s["a"])().mark((function a(){return Object(s["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:i.confirmModal({msg:"选中的规则删除后,将不再生效,客户已被打上的标签不会被移除,是否继续?"},Object(c["a"])(Object(s["a"])().mark((function a(){var n,r,o;return Object(s["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:a.t0=i.labelType,a.next=a.t0===f["j"]["keyWords"]?3:a.t0===f["j"]["intoGroup"]?7:a.t0===f["j"]["newCustomer"]?11:15;break;case 3:return a.next=5,Object(p["f"])(e);case 5:return n=a.sent,a.abrupt("break",15);case 7:return a.next=9,Object(p["e"])(e);case 9:return n=a.sent,a.abrupt("break",15);case 11:return a.next=13,Object(p["d"])(e);case 13:return n=a.sent,a.abrupt("break",15);case 15:n&&(i.msgSuccess("删除成功"),r=t?i.multipleSelection.length:1,o=i.list.length===r&&i.query.pageNum>1?i.query.pageNum-1:i.query.pageNum,i.getLabelList({pageNum:o}));case 16:case"end":return a.stop()}}),a)}))));case 1:case"end":return a.stop()}}),a)})))()},handleSelectionChange:function(e){this.multipleSelection=e},changeStatus:function(e,t){var i=this;this.confirmModal({msg:e?"选中的规则开启后,若客户满足设置的场景,系统自动给客户打上标签,是否继续?":"选中的规则关闭后,将不再生效,不会自动给客户打上标签,是否继续?"},(function(){i.batchSwitchSop({status:e,idList:[t.id]})}),(function(){t.status=!e}))},handleBatchIsOpen:function(e){var t=this;0!==this.multipleSelection.length?this.confirmModal({msg:e?"选中的规则开启后,若客户满足设置的场景,系统自动给客户打上标签,是否继续?":"选中的规则关闭后,将不再生效,不会自动给客户打上标签,是否继续?"},(function(){t.batchSwitchSop({status:e,idList:t.multipleSelection.map((function(e){return e.id}))})})):this.msgWarn("请至少选择一个规则")},batchSwitchSop:function(e){var t=this;Object(p["w"])(e).then((function(e){e&&(t.msgSuccess("设置成功"),t.getLabelList())}))},goRoute:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.$store.commit("SET_SEARCH_QUERY",{pageName:this.$route.name,query:Object(l["a"])(Object(l["a"])({},this.query),{},{selectedTags:this.selectedTags})}),Object(A["l"])(this.$router,e,{},Object(l["a"])(Object(l["a"])({},t),{},{labelType:this.labelType}))},submitSelectTag:function(e){this.query.tagIdList=e.map((function(e){return e.tagId})),this.selectedTags=Object(r["a"])(e),this.selectTagVisible=!1},deleteTag:function(e){var t=this.selectedTags.findIndex((function(t){return t.tagId===e.tagId}));this.selectedTags.splice(t,1),this.query.tagIdList=this.selectedTags.map((function(e){return e.tagId}))}}},b=v,y=(i("e836"),i("2877")),_=Object(y["a"])(b,a,n,!1,null,"650e2d28",null);t["default"]=_.exports},e677:function(e,t,i){"use strict";i("ca34")},e698:function(e,t,i){"use strict";i("431d")},e6b3:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"drawer-div"},[a("el-tabs",{staticClass:"drawer-tabs",attrs:{"tab-position":"left"}},[a("el-tab-pane",{attrs:{label:"方法一"}},[a("div",{staticClass:"content"},[e._v(" 1. 登录小程序后台"),a("el-link",{attrs:{type:"primary",href:"https://mp.weixin.qq.com/",target:"_blank"}},[e._v("https://mp.weixin.qq.com/")]),e._v(", 点击【工具】,选择【生成小程序码】 ")],1),a("el-image",{staticClass:"part-img",attrs:{src:i("9f42"),"preview-src-list":[i("9f42")]}}),a("div",{staticClass:"content"},[e._v(" 2. 鼠标移到【获取更多页面路径】上,在弹窗中填入小程序项目成员的微信号,点击【开启】 ")]),a("el-image",{staticClass:"part-img",attrs:{src:i("2adb"),"preview-src-list":[i("2adb")]}}),a("div",{staticClass:"content"},[e._v(" 3. 项目成员访问小程序,进入指定页面,点击右上角菜单后,复制当前页面路径 ")]),a("el-image",{staticClass:"part-img",staticStyle:{width:"250px",height:"529px"},attrs:{src:i("86a1"),"preview-src-list":[i("86a1")]}})],1),a("el-tab-pane",{attrs:{label:"方法二"}},[a("div",{staticClass:"content"},[e._v(" 登录小程序后台"),a("el-link",{attrs:{type:"primary",href:"https://mp.weixin.qq.com/",target:"_blank"}},[e._v("https://mp.weixin.qq.com/")]),e._v(", 进入【统计】,查看【平台数据-页面分析】的页面路径 ")],1),a("el-image",{staticClass:"part-img",attrs:{src:i("67b3"),"preview-src-list":[i("67b3")]}}),a("div",{staticClass:"content"},[e._v(" 切换到【平台数据-页面分析】,在详细数据中可查看到页面路径,注意复制下来要拼上“.html” ")]),a("el-image",{staticClass:"part-img",attrs:{src:i("9af6"),"preview-src-list":[i("9af6")]}})],1)],1)],1)},n=[],r=i("dd70"),s={name:"GetAppIDDemo",components:{},props:{},data:function(){return{WX_PAAS_URL:r["Bd"]}}},o=s,l=(i("bf86"),i("2877")),c=Object(l["a"])(o,a,n,!1,null,"336d9acc",null);t["default"]=c.exports},e6f4:function(e,t,i){"use strict";i("3085")},e73b:function(e,t,i){},e77d:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",e._b({class:0===e.length?"empty-list":""},"div",e.$attrs,!1),[a("div",{directives:[{name:"show",rawName:"v-show",value:0===e.length,expression:"length === 0"}],staticClass:"empty-div"},[a("img",{staticClass:"empty-img",attrs:{src:e.emptyIcon||i("caa7"),alt:""}}),a("div",{staticClass:"content"},[e.text?a("div",{staticClass:"text"},[e._v(e._s(e.text))]):e._e(),e.desc&&e.canShowDesc&&e.descConfigShow?a("div",{staticClass:"desc"},[e._v(e._s(e.desc))]):e._e(),e.btnText&&e.canShowBtn&&e.btnConfigShow?a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:e.btnPermiKey,expression:"btnPermiKey"}],staticClass:"empty-btn",attrs:{type:"primary",icon:e.btnIcon,loading:e.btnLoading},on:{click:e.onBtnClick}},[e._v(e._s(e.btnText))]):e._e(),e._t("customBtn")],2)]),e._t("default")],2)},n=[],r=(i("a9e3"),i("d3b7"),{components:{},props:{length:{type:Number,default:0},text:{type:String,default:"暂无数据"},desc:{type:String,default:""},btnText:{type:String,default:""},btnIcon:{type:String,default:""},btnClick:{type:Function,default:function(){}},emptyIcon:{type:String,default:""},descShowCondition:{type:Object,default:function(){}},descConfig:{type:Array,default:function(){return[]}},btnShowCondition:{type:Object,default:function(){}},btnConfig:{type:Array,default:function(){return[]}},btnPermiKey:{type:Array,default:function(){return[]}},btnLoading:{type:Boolean,default:!1}},data:function(){return{enterPriseWechatConfig:this.$store&&this.$store.state.enterPriseWechatConfig}},computed:{canShowDesc:function(){return this.queryShowConfig(this.descShowCondition)},descConfigShow:function(){return 0===this.descConfig.length||this.configShow(this.descConfig)},canShowBtn:function(){return this.queryShowConfig(this.btnShowCondition)},btnConfigShow:function(){return 0===this.btnConfig.length||this.configShow(this.btnConfig)}},watch:{},created:function(){},mounted:function(){},methods:{onBtnClick:function(){this.btnClick&&this.btnClick()},configShow:function(e){var t=this;return e.length>0&&e.every((function(e){return!(!t.enterPriseWechatConfig||!t.enterPriseWechatConfig[e])}))},queryShowConfig:function(e){for(var t in e){var i;if(null!==(i=e[t])&&void 0!==i&&i.length)return!1}return!0}}}),s=r,o=(i("3184"),i("2877")),l=i("0e20"),c=i.n(l),u=Object(o["a"])(s,a,n,!1,null,"c7b6cb24",null);"function"===typeof c.a&&c()(u);t["a"]=u.exports},e7de:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"aic",staticStyle:{"flex-wrap":"wrap"}},[e._l(e.userList.slice(0,e.maxLength),(function(t,a){return i("div",{key:a},[i("span",[e._v(e._s(t[e.usename]))]),a===e.maxLength-1||a===e.userList.length-1&&0===e.departmentList.length?e._e():i("span",[e._v("、")])])})),e._l(e.userList.length>e.maxLength?[]:e.departmentList.slice(0,e.maxLength-e.userList.length),(function(t,a){return i("div",{key:a+e.userList.length,staticClass:"aic"},[i("i",{staticClass:"iconfont icon-folder mr2",staticStyle:{"font-size":"14px"}}),i("span",[e._v(e._s(t.departmentName))]),a!==e.departmentList.length-1&&a!==e.maxLength-1-e.userList.length?i("span",[e._v("、")]):e._e()])}))],2)},n=[],r=(i("a9e3"),{name:"ByLengthUserShow",props:{userList:{type:Array,default:function(){return[]}},departmentList:{type:Array,default:function(){return[]}},maxLength:{type:Number,default:5},usename:{type:String,default:"userName"}},data:function(){return{}}}),s=r,o=i("2877"),l=Object(o["a"])(s,a,n,!1,null,null,null);t["a"]=l.exports},e7fb:function(e,t,i){e.exports=i.p+"static/img/contact-step4-2.d9176fe3.jpg"},e818:function(e,t,i){"use strict";i("a4a9")},e836:function(e,t,i){"use strict";i("b3bb")},e877:function(e,t,i){"use strict";i("5674")},e87b:function(e,t,i){"use strict";i("a56b")},e87b3:function(e,t,i){"use strict";i("cafd")},e8d4:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tag-list"},[e._l(e.tagList.slice(0,2),(function(t){return[t.tagName?i("BorderColor",{key:t.labelId,staticClass:"tag-item inoneline theme-text-color",attrs:{"all-border":"",title:t.tagName}},[e._v(e._s(t.tagName))]):e._e()]})),i("el-popover",{attrs:{placement:"top-start",trigger:"hover"}},[i("div",{staticClass:"all-tag"},[e._l(e.tagList,(function(t){return[t.tagName?i("BorderColor",{key:t.labelId,staticClass:"tag-item-all inoneline theme-text-color",attrs:{"all-border":"",title:t.tagName}},[e._v(e._s(t.tagName))]):e._e()]}))],2),i("BorderColor",{directives:[{name:"show",rawName:"v-show",value:e.tagList.length>2,expression:"tagList.length > 2"}],staticClass:"tag-item theme-text-color",attrs:{slot:"reference","all-border":""},slot:"reference"},[e._v("...")])],1)],2)},n=[],r={name:"Taglist",components:{},props:{tagList:{type:Array,default:function(){return[]}}},data:function(){return{}}},s=r,o=(i("9199"),i("2877")),l=Object(o["a"])(s,a,n,!1,null,"02e13381",null);t["a"]=l.exports},e8fd:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-drawer",{staticClass:"material-list-drawer",attrs:{title:e.drawerTitle,visible:e.drawerVisible,"before-close":e.handleClose,"append-to-body":!0},on:{"update:visible":function(t){e.drawerVisible=t}}},[i("div",{staticClass:"sub-title"},[e._v(e._s(e.subTitle))]),i("div",{staticClass:"drawer-container"},[i("div",{staticClass:"tab-container"},[i("el-radio-group",{staticClass:"radio-group-div",attrs:{size:"medium"},on:{change:e.changeTab},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-radio-button",{attrs:{label:e.MEDIA_TYPE_POSTER,disabled:e.moment&&(e.momentType===e.MEDIA_TYPE_VIDEO||e.chooseMaterial)}},[e._v("海报")]),i("el-radio-button",{attrs:{label:e.MEDIA_TYPE_IMGLINK,disabled:e.moment&&(e.momentType===e.MEDIA_TYPE_VIDEO||e.momentType===e.MEDIA_TYPE_POSTER||!e.chooseMaterial)}},[e._v("链接")]),i("el-radio-button",{attrs:{label:e.MEDIA_TYPE_VIDEO,disabled:e.moment&&(e.momentType===e.MEDIA_TYPE_POSTER||e.momentType===e.MEDIA_TYPE_IMGLINK)}},[e._v("视频")]),i("el-radio-button",{attrs:{label:e.MEDIA_TYPE_FILE,disabled:e.moment}},[e._v("文件")]),i("el-radio-button",{attrs:{label:e.MEDIA_TYPE_MINIAPP,disabled:e.moment}},[e._v("小程序")]),i("el-radio-button",{directives:[{name:"show",rawName:"v-show",value:!e.moment&&!e.radarHidden,expression:"!moment && !radarHidden"}],attrs:{label:e.MEDIA_TYPE_RADARLINK,disabled:e.moment&&!e.chooseMaterial}},[e._v("雷达")]),i("el-radio-button",{directives:[{name:"show",rawName:"v-show",value:!e.moment&&!e.radarHidden,expression:"!moment && !radarHidden"}],attrs:{label:e.MEDIA_TYPE_SMARTFORM,disabled:e.moment&&!e.chooseMaterial}},[e._v("智能表单")])],1),i("div",{staticClass:"tab-right-btn"},[e._t("tab-right-btn")],2)],1),i("div",{staticClass:"search-container"},[i("div",{staticClass:"search-item"},[e.isOtherMaterialType(e.activeName)?e.activeName===e.MEDIA_TYPE_RADARLINK?i("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"输入雷达/链接标题",clearable:""},model:{value:e.radarQuery.searchTitle,callback:function(t){e.$set(e.radarQuery,"searchTitle",t)},expression:"radarQuery.searchTitle"}}):i("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"输入表单名称",clearable:""},model:{value:e.otherQuery.formName,callback:function(t){e.$set(e.otherQuery,"formName",t)},expression:"otherQuery.formName"}}):i("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入素材标题",clearable:""},model:{value:e.query.search,callback:function(t){e.$set(e.query,"search",t)},expression:"query.search"}})],1),i("div",{staticClass:"search-item"},[i("div",{directives:[{name:"show",rawName:"v-show",value:!e.isOtherMaterialType(e.activeName),expression:"!isOtherMaterialType(activeName)"}]},[i("el-select",{staticStyle:{width:"240px"},attrs:{clearable:"",filterable:"",multiple:"","collapse-tags":"",placeholder:"请选择标签"},model:{value:e.tagIdList,callback:function(t){e.tagIdList=t},expression:"tagIdList"}},e._l(e.allTagList,(function(e,t){return i("el-option",{key:t,attrs:{label:e.tagName,value:e.id}})})),1)],1),i("div",{directives:[{name:"show",rawName:"v-show",value:e.activeName===e.MEDIA_TYPE_RADARLINK,expression:"activeName === MEDIA_TYPE_RADARLINK"}]},[i("el-select",{staticStyle:{width:"240px"},attrs:{clearable:!this.$store.state.user.isSuperAdmin,placeholder:"请选择雷达类型"},model:{value:e.radarQuery.type,callback:function(t){e.$set(e.radarQuery,"type",t)},expression:"radarQuery.type"}},e._l(e.radarSelect,(function(e,t){return i("el-option",{key:t,attrs:{label:e.name,value:e.type}})})),1)],1),e.activeName===e.MEDIA_TYPE_SMARTFORM?i("div",[i("el-cascader",{staticStyle:{width:"240px"},attrs:{options:e.belongGroupOptions,props:{expandTrigger:"hover",label:"name",value:"id",checkStrictly:!0},placeholder:"请选择表单所属分组"},model:{value:e.otherQuery.belongGroup,callback:function(t){e.$set(e.otherQuery,"belongGroup",t)},expression:"otherQuery.belongGroup"}})],1):e._e()]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.onSearch()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1),i("div",{staticClass:"content-container"},[i("div",{staticClass:"material-content"},[i("div",{staticClass:"operate-container"},[i("div",{staticClass:"data-stat"},[e._v(" 共 "),i("span",{staticClass:"num theme-text-color"},[e._v(e._s(e.total))]),e._v(" 个"+e._s("search"===e.type?"过期的":"")+e._s(e.MEDIA_TYPE[e.activeName])),i("span",{directives:[{name:"show",rawName:"v-show",value:e.activeName!==e.MEDIA_TYPE_SMARTFORM,expression:"activeName!==MEDIA_TYPE_SMARTFORM"}]},[e._v("素材")])]),e.activeName!==e.MEDIA_TYPE_RADARLINK&&e.activeName!==e.MEDIA_TYPE_SMARTFORM?i("div",{staticClass:"right-btn"},[e._t("right-btn")],2):e._e()]),i("empty-default-icon",{staticClass:"material-list-div",attrs:{length:e.list.length,text:"暂无"+("search"===e.type?"过期":"")+"素材"}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.isLoading,expression:"isLoading"}],staticClass:"material-list"},[e._l(e.list,(function(t,a){return[e.activeName===e.MEDIA_TYPE_POSTER?i("Poster",{key:a,attrs:{item:t,"tool-list":e.posterToolList,"show-expire-time":e.showExpireTime,"selected-material-list":e.selectedMaterialList,"select-material":e.selectMaterial,"hide-status":"search"===e.type},on:{getList:e.getList}}):e._e(),e.activeName===e.MEDIA_TYPE_IMGLINK?i("FileItem",{key:a,attrs:{item:t,"tool-list":e.imgLinkToolList,type:e.MEDIA_TYPE_IMGLINK,"show-expire-time":e.showExpireTime,"selected-material-list":e.selectedMaterialList,"select-material":e.selectMaterial,"desc-field":"digest","hide-status":"search"===e.type},on:{getList:e.getList}}):e._e(),e.activeName===e.MEDIA_TYPE_VIDEO?i("VideoItem",{key:a,attrs:{item:t,"tool-list":e.videoToolList,"show-expire-time":e.showExpireTime,"selected-material-list":e.selectedMaterialList,"select-material":e.selectMaterial,"hide-status":"search"===e.type},on:{getList:e.getList}}):e._e(),e.activeName===e.MEDIA_TYPE_FILE?i("FileItem",{key:a,attrs:{item:t,"tool-list":e.fileToolList,"show-icon":!0,type:e.MEDIA_TYPE_FILE,"show-expire-time":e.showExpireTime,"selected-material-list":e.selectedMaterialList,"select-material":e.selectMaterial,"hide-status":"search"===e.type,"show-file-size":!0,"desc-field":"content"},on:{getList:e.getList}}):e._e(),e.activeName===e.MEDIA_TYPE_MINIAPP?i("MiniAppItem",{key:a,attrs:{item:t,"tool-list":e.miniappToolList,"show-expire-time":e.showExpireTime,"selected-material-list":e.selectedMaterialList,"select-material":e.selectMaterial,"hide-status":"search"===e.type},on:{getList:e.getList}}):e._e(),e.activeName===e.MEDIA_TYPE_RADARLINK?i("FileItem",{key:a,attrs:{item:t,type:e.MEDIA_TYPE_RADARLINK,"show-expire-time":e.showExpireTime,"selected-material-list":e.selectedMaterialList,"select-material":e.selectMaterial,"hide-status":"search"===e.type,"desc-field":"digest"},on:{getList:e.getList}}):e._e(),e.activeName===e.MEDIA_TYPE_SMARTFORM?i("FileItem",{key:a,attrs:{item:t,type:e.MEDIA_TYPE_SMARTFORM,"show-expire-time":!1,"selected-material-list":e.selectedMaterialList,"select-material":e.selectMaterial,"hide-status":"search"===e.type,"desc-field":"digest"},on:{getList:e.getList}}):e._e()]}))],2)])],1),i("div",{staticClass:"drawer-footer",style:"select"===e.type&&e.total>0?{justifyContent:"space-between"}:{justifyContent:"end"}},[e.total>0?i("pagination",{attrs:{disabled:e.isLoading,total:e.total,page:e.getPaginationQuery(e.activeName).pageNum,limit:e.getPaginationQuery(e.activeName).pageSize,layout:"select"===e.type?"sizes, prev, pager, next":"total, sizes, prev, pager, next, jumper"},on:{"update:page":function(t){e.$set(e.getPaginationQuery(e.activeName),"pageNum",t)},"update:limit":function(t){e.$set(e.getPaginationQuery(e.activeName),"pageSize",t)},pagination:e.getAndClearSelected}}):e._e(),i("div",{directives:[{name:"show",rawName:"v-show",value:"select"===e.type,expression:"type === 'select'"}],staticClass:"dialog-footer"},[i("el-button",{on:{click:function(t){e.drawerVisible=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)])])])},n=[],r=i("2909"),s=i("c7eb"),o=i("1da1"),l=(i("a15b"),i("d81d"),i("a9e3"),i("07ac"),i("ac1f"),i("841c"),i("0de2")),c=i("c3e0"),u=i("dc6e"),d=i("8fc0"),p=i("e2e0"),f=i("dd70"),A=i("9094"),h=i("e77d"),m=i("cd7b"),g=i("cf45"),v=i("c7ea"),b={name:"MaterialListDrawer",components:{Poster:l["a"],MiniAppItem:c["a"],VideoItem:u["a"],FileItem:d["a"],EmptyDefaultIcon:h["a"]},mixins:[p["a"]],props:{drawerTitle:{type:String,default:""},visible:{type:Boolean,default:!1},list:{type:Array,default:function(){return[]}},getList:{type:Function,default:function(){}},posterToolList:{type:Array,default:null},imgLinkToolList:{type:Array,default:null},videoToolList:{type:Array,default:null},fileToolList:{type:Array,default:null},miniappToolList:{type:Array,default:null},query:{type:Object,default:function(){}},total:{type:Number,default:0},isLoading:{type:Boolean,default:!1},subTitle:{type:String,default:""},type:{type:String,default:"search"},limitSelectLength:{type:Number,default:null},materialType:{type:String,default:f["cc"]},showExpireTime:{type:Boolean,default:!0},emptyExpireList:{type:Function,default:function(){}},moment:{type:Boolean,default:!1},momentType:{type:String,default:f["cc"]},chooseMaterial:{type:Boolean,default:!1},radarQuery:{type:Object,default:function(){}},otherQuery:{type:Object,default:function(){}},radarHidden:{type:Boolean,default:!1}},data:function(){return{MEDIA_TYPE_POSTER:f["cc"],MEDIA_TYPE_IMGLINK:f["ac"],MEDIA_TYPE_VIDEO:f["gc"],MEDIA_TYPE_FILE:f["Zb"],MEDIA_TYPE_MINIAPP:f["bc"],MEDIA_TYPE_RADARLINK:f["dc"],activeName:this.materialType,MEDIA_TYPE:f["Xb"],tagIdList:[],RADAR_TYPE:f["Qc"],selectedMaterialList:[],MEDIA_TYPE_SMARTFORM:f["ec"],isOtherMaterialType:g["I"],belongGroupOptions:[{id:"corpFormGroup",name:"企业表单",children:[]}]}},computed:{radarSelect:function(){return this.$store.state.user.isSuperAdmin?[{type:f["Qc"]["enterprise"],name:"企业雷达"}]:[{type:f["Qc"]["enterprise"],name:"企业雷达"},{type:f["Qc"]["department"],name:"部门雷达"},{type:f["Qc"]["personal"],name:"个人雷达"}]},drawerVisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}},allTagList:function(){var e=this.$store.state.materialInfo&&this.$store.state.materialInfo.allTagObj,t=Object.values(e);return t}},watch:{momentType:function(e){this.query.mediaType=e,this.query.pageNum=1,e===f["ac"]?(this.query.mediaType=f["cc"],this.activeName=f["cc"],this.getList({mediaType:f["cc"]})):(this.activeName=e,this.getList({mediaType:e}))},selectedMaterialList:function(e){this.$emit("changeSelectedMaterialNum",e.length)},materialType:function(e){this.activeName=e,this.query.pageNum=1,this.radarQuery.pageNum=1,e===f["ec"]&&(this.otherQuery.pageNum=1,this.otherQuery.belongGroup=["corpFormGroup"],this.getFormGoup()),this.getList({mediaType:e})}},created:function(){},mounted:function(){Object(m["a"])(this.$store)},methods:{getFormGoup:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(g["E"])(e.$store);case 2:i=t.sent,i?Object(v["m"])({departmentId:i.department[0]}).then((function(t){var a=t.data,n=a.corpFormGroup,r=a.departmentFormGroup,s=a.selfFormGroup;e.otherQuery.departmentId=i.department[0],e.belongGroupOptions=[{id:"corpFormGroup",name:"企业表单",children:n},{id:"departmentFormGroup",name:"部门表单",children:r},{id:"selfFormGroup",name:"我的表单",children:s}]})):Object(v["q"])({sourceType:f["Ib"]["enterprise"],departmentId:""}).then((function(t){e.belongGroupOptions=[{id:"corpFormGroup",name:"企业表单",children:t.data}]}));case 4:case"end":return t.stop()}}),t)})))()},handleClose:function(){this.drawerVisible=!1,this.tagIdList=[],this.query.search="",this.query.pageNum=1},resetQuery:function(){this.tagIdList=[],this.query.search="",this.query.pageNum=1,this.radarQuery&&(this.radarQuery.type=this.$store.state.user.isSuperAdmin?f["Qc"]["enterprise"]:"",this.radarQuery.pageNum=1,this.radarQuery.searchTitle=""),this.otherQuery&&(this.otherQuery.pageNum=1,this.otherQuery.formName="",this.otherQuery.belongGroup=["corpFormGroup"]),this.onSearch()},changeTab:function(){"search"===this.type&&(this.selectedMaterialList=[],this.$emit("emptyExpireList")),this.$emit("update:materialType",this.activeName),this.query.pageNum=1,this.query.mediaType=this.activeName},onSearch:function(){this.radarQuery&&(this.radarQuery.pageNum=1),this.otherQuery&&(this.otherQuery.pageNum=1),this.getList({pageNum:1,tagIds:this.tagIdList&&this.tagIdList.join(","),mediaType:this.materialType},this.modifyButtonStatus),this.$emit("changeTagIdList",this.tagIdList)},selectMaterial:function(e){this.selectedMaterialList=e},selectAll:function(e){if(e)this.selectedMaterialList=[];else{var t=Object(r["a"])(this.list);this.selectedMaterialList=t}},batchRestore:function(e){var t=this;this.checkSelectedNum()&&this.confirmModal({msg:"即将把过期素材恢复到素材库,如需发布到侧边栏,请在素材库操作,是否继续?"},Object(o["a"])(Object(s["a"])().mark((function i(){var a,n;return Object(s["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a=t.dealIdsList(),i.next=3,Object(A["m"])({ids:a,mediaType:t.activeName});case 3:n=i.sent,n&&(t.msgSuccess("恢复成功"),t.getAndClearSelected(),e());case 5:case"end":return i.stop()}}),i)}))))},completeDelete:function(e){var t=this;this.checkSelectedNum()&&this.confirmModal({msg:"选中素材将被删除,是否继续?"},Object(o["a"])(Object(s["a"])().mark((function i(){var a,n;return Object(s["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a=t.dealIdsList(),i.next=3,Object(A["k"])({ids:a.join(","),mediaType:t.activeName});case 3:n=i.sent,n&&(t.msgSuccess("删除成功"),t.getAndClearSelected(),e());case 5:case"end":return i.stop()}}),i)}))))},dealIdsList:function(){var e=[];return this.selectedMaterialList.map((function(t){e.push(t.id)})),e},checkSelectedNum:function(){return 0!==this.selectedMaterialList.length||(this.msgWarn("请至少选择一个素材"),!1)},getAndClearSelected:function(){"search"===this.type&&(this.selectedMaterialList=[]),this.getList({mediaType:this.materialType})},submit:function(){"number"===typeof this.limitSelectLength&&this.selectedMaterialList.length>this.limitSelectLength?this.msgInfo("最多支持再发送".concat(this.limitSelectLength,"个附件,请重新选择")):(this.drawerVisible=!1,this.$emit("submit",this.selectedMaterialList),this.selectedMaterialList=[])},getPaginationQuery:function(e){return e===f["ec"]?this.otherQuery:e===f["dc"]?this.radarQuery:this.query}}},y=b,_=(i("6fdf"),i("2877")),w=Object(_["a"])(y,a,n,!1,null,"99c64b84",null);t["a"]=w.exports},e928:function(e,t,i){"use strict";i("35f2")},e939:function(e,t,i){e.exports=i.p+"static/img/chat-step1-1.c19f1976.jpg"},e943:function(e,t,i){var a,n;(function(){var i=function(e){var t={};function i(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=e,i.c=t,i.d=function(e,t,a){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(a,n,function(t){return e[t]}.bind(null,n));return a},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=0)}([function(e,t,i){"use strict";var a=i(1).Beautifier,n=i(5).Options;function r(e,t){var i=new a(e,t);return i.beautify()}e.exports=r,e.exports.defaultOptions=function(){return new n}},function(e,t,i){"use strict";var a=i(2).Output,n=i(3).Token,r=i(4),s=i(5).Options,o=i(7).Tokenizer,l=i(7).line_starters,c=i(7).positionable_operators,u=i(7).TOKEN;function d(e,t){return-1!==t.indexOf(e)}function p(e){return e.replace(/^\s+/g,"")}function f(e){for(var t={},i=0;i<e.length;i++)t[e[i].replace(/-/g,"_")]=e[i];return t}function A(e,t){return e&&e.type===u.RESERVED&&e.text===t}function h(e,t){return e&&e.type===u.RESERVED&&d(e.text,t)}var m=["case","return","do","if","throw","else","await","break","continue","async"],g=["before-newline","after-newline","preserve-newline"],v=f(g),b=[v.before_newline,v.preserve_newline],y={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function _(e,t){t.multiline_frame||t.mode===y.ForInitializer||t.mode===y.Conditional||e.remove_indent(t.start_line_index)}function w(e){e=e.replace(r.allLineBreaks,"\n");var t=[],i=e.indexOf("\n");while(-1!==i)t.push(e.substring(0,i)),e=e.substring(i+1),i=e.indexOf("\n");return e.length&&t.push(e),t}function C(e){return e===y.ArrayLiteral}function x(e){return d(e,[y.Expression,y.ForInitializer,y.Conditional])}function k(e,t){for(var i=0;i<e.length;i++){var a=e[i].trim();if(a.charAt(0)!==t)return!1}return!0}function T(e,t){for(var i,a=0,n=e.length;a<n;a++)if(i=e[a],i&&0!==i.indexOf(t))return!1;return!0}function S(e,t){t=t||{},this._source_text=e||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new s(t)}S.prototype.create_flags=function(e,t){var i=0;e&&(i=e.indentation_level,!this._output.just_added_newline()&&e.line_indent_level>i&&(i=e.line_indent_level));var a={mode:t,parent:e,last_token:e?e.last_token:new n(u.START_BLOCK,""),last_word:e?e.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:i,alignment:0,line_indent_level:e?e.line_indent_level:i,start_line_index:this._output.get_line_number(),ternary_depth:0};return a},S.prototype._reset=function(e){var t=e.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new a(this._options,t),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(y.BlockStatement);var i=new o(e,this._options);return this._tokens=i.tokenize(),e},S.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e,t=this._reset(this._source_text),i=this._options.eol;"auto"===this._options.eol&&(i="\n",t&&r.lineBreak.test(t||"")&&(i=t.match(r.lineBreak)[0]));var a=this._tokens.next();while(a)this.handle_token(a),this._last_last_text=this._flags.last_token.text,this._flags.last_token=a,a=this._tokens.next();return e=this._output.get_code(i),e},S.prototype.handle_token=function(e,t){e.type===u.START_EXPR?this.handle_start_expr(e):e.type===u.END_EXPR?this.handle_end_expr(e):e.type===u.START_BLOCK?this.handle_start_block(e):e.type===u.END_BLOCK?this.handle_end_block(e):e.type===u.WORD||e.type===u.RESERVED?this.handle_word(e):e.type===u.SEMICOLON?this.handle_semicolon(e):e.type===u.STRING?this.handle_string(e):e.type===u.EQUALS?this.handle_equals(e):e.type===u.OPERATOR?this.handle_operator(e):e.type===u.COMMA?this.handle_comma(e):e.type===u.BLOCK_COMMENT?this.handle_block_comment(e,t):e.type===u.COMMENT?this.handle_comment(e,t):e.type===u.DOT?this.handle_dot(e):e.type===u.EOF?this.handle_eof(e):(e.type,u.UNKNOWN,this.handle_unknown(e,t))},S.prototype.handle_whitespace_and_comments=function(e,t){var i=e.newlines,a=this._options.keep_array_indentation&&C(this._flags.mode);if(e.comments_before){var n=e.comments_before.next();while(n)this.handle_whitespace_and_comments(n,t),this.handle_token(n,t),n=e.comments_before.next()}if(a)for(var r=0;r<i;r+=1)this.print_newline(r>0,t);else if(this._options.max_preserve_newlines&&i>this._options.max_preserve_newlines&&(i=this._options.max_preserve_newlines),this._options.preserve_newlines&&i>1){this.print_newline(!1,t);for(var s=1;s<i;s+=1)this.print_newline(!0,t)}};var I=["async","break","continue","return","throw","yield"];S.prototype.allow_wrap_or_preserved_newline=function(e,t){if(t=void 0!==t&&t,!this._output.just_added_newline()){var i=this._options.preserve_newlines&&e.newlines||t,a=d(this._flags.last_token.text,c)||d(e.text,c);if(a){var n=d(this._flags.last_token.text,c)&&d(this._options.operator_position,b)||d(e.text,c);i=i&&n}if(i)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(h(this._flags.last_token,I))return;this._output.set_wrap_point()}}},S.prototype.print_newline=function(e,t){if(!t&&";"!==this._flags.last_token.text&&","!==this._flags.last_token.text&&"="!==this._flags.last_token.text&&(this._flags.last_token.type!==u.OPERATOR||"--"===this._flags.last_token.text||"++"===this._flags.last_token.text)){var i=this._tokens.peek();while(this._flags.mode===y.Statement&&(!this._flags.if_block||!A(i,"else"))&&!this._flags.do_block)this.restore_mode()}this._output.add_new_line(e)&&(this._flags.multiline_frame=!0)},S.prototype.print_token_line_indentation=function(e){this._output.just_added_newline()&&(this._options.keep_array_indentation&&e.newlines&&("["===e.text||C(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(e.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},S.prototype.print_token=function(e){if(this._output.raw)this._output.add_raw_token(e);else{if(this._options.comma_first&&e.previous&&e.previous.type===u.COMMA&&this._output.just_added_newline()&&","===this._output.previous_line.last()){var t=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(t),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(e),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(e),this._output.non_breaking_space=!0,this._output.add_token(e.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)}},S.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},S.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},S.prototype.set_mode=function(e){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,e),this._flags=this.create_flags(this._previous_flags,e),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},S.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===y.Statement&&_(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},S.prototype.start_of_object_property=function(){return this._flags.parent.mode===y.ObjectLiteral&&this._flags.mode===y.Statement&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||h(this._flags.last_token,["get","set"]))},S.prototype.start_of_statement=function(e){var t=!1;return t=t||h(this._flags.last_token,["var","let","const"])&&e.type===u.WORD,t=t||A(this._flags.last_token,"do"),t=t||!(this._flags.parent.mode===y.ObjectLiteral&&this._flags.mode===y.Statement)&&h(this._flags.last_token,I)&&!e.newlines,t=t||A(this._flags.last_token,"else")&&!(A(e,"if")&&!e.comments_before),t=t||this._flags.last_token.type===u.END_EXPR&&(this._previous_flags.mode===y.ForInitializer||this._previous_flags.mode===y.Conditional),t=t||this._flags.last_token.type===u.WORD&&this._flags.mode===y.BlockStatement&&!this._flags.in_case&&!("--"===e.text||"++"===e.text)&&"function"!==this._last_last_text&&e.type!==u.WORD&&e.type!==u.RESERVED,t=t||this._flags.mode===y.ObjectLiteral&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||h(this._flags.last_token,["get","set"])),!!t&&(this.set_mode(y.Statement),this.indent(),this.handle_whitespace_and_comments(e,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e,h(e,["do","for","if","while"])),!0)},S.prototype.handle_start_expr=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e);var t=y.Expression;if("["===e.text){if(this._flags.last_token.type===u.WORD||")"===this._flags.last_token.text)return h(this._flags.last_token,l)&&(this._output.space_before_token=!0),this.print_token(e),this.set_mode(t),this.indent(),void(this._options.space_in_paren&&(this._output.space_before_token=!0));t=y.ArrayLiteral,C(this._flags.mode)&&("["!==this._flags.last_token.text&&(","!==this._flags.last_token.text||"]"!==this._last_last_text&&"}"!==this._last_last_text)||this._options.keep_array_indentation||this.print_newline()),d(this._flags.last_token.type,[u.START_EXPR,u.END_EXPR,u.WORD,u.OPERATOR])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===u.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,t=y.ForInitializer):d(this._flags.last_token.text,["if","while"])?(this._output.space_before_token=this._options.space_before_conditional,t=y.Conditional):d(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:"import"===this._flags.last_token.text&&""===e.whitespace_before?this._output.space_before_token=!1:(d(this._flags.last_token.text,l)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===u.EQUALS||this._flags.last_token.type===u.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e);else if(this._flags.last_token.type===u.WORD){this._output.space_before_token=!1;var i=this._tokens.peek(-3);if(this._options.space_after_named_function&&i){var a=this._tokens.peek(-4);h(i,["async","function"])||"*"===i.text&&h(a,["async","function"])?this._output.space_before_token=!0:this._flags.mode===y.ObjectLiteral&&("{"!==i.text&&","!==i.text&&("*"!==i.text||"{"!==a.text&&","!==a.text)||(this._output.space_before_token=!0))}}else this.allow_wrap_or_preserved_newline(e);(this._flags.last_token.type===u.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(d(this._last_last_text,["function","yield"])||this._flags.mode===y.ObjectLiteral&&d(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}";"===this._flags.last_token.text||this._flags.last_token.type===u.START_BLOCK?this.print_newline():this._flags.last_token.type!==u.END_EXPR&&this._flags.last_token.type!==u.START_EXPR&&this._flags.last_token.type!==u.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==u.COMMA||this.allow_wrap_or_preserved_newline(e,e.newlines),this.print_token(e),this.set_mode(t),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},S.prototype.handle_end_expr=function(e){while(this._flags.mode===y.Statement)this.restore_mode();this.handle_whitespace_and_comments(e),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(e,"]"===e.text&&C(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==u.START_EXPR||this._options.space_in_empty_paren?this._output.space_before_token=!0:(this._output.trim(),this._output.space_before_token=!1)),this.deindent(),this.print_token(e),this.restore_mode(),_(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===y.Conditional&&(this._previous_flags.mode=y.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},S.prototype.handle_start_block=function(e){this.handle_whitespace_and_comments(e);var t=this._tokens.peek(),i=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===u.END_EXPR?(this.set_mode(y.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(y.BlockStatement):i&&(d(i.text,[":",","])&&d(t.type,[u.STRING,u.WORD,u.RESERVED])||d(t.text,["get","set","..."])&&d(i.type,[u.WORD,u.RESERVED]))?d(this._last_last_text,["class","interface"])?this.set_mode(y.BlockStatement):this.set_mode(y.ObjectLiteral):this._flags.last_token.type===u.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(y.BlockStatement):d(this._flags.last_token.type,[u.EQUALS,u.START_EXPR,u.COMMA,u.OPERATOR])||h(this._flags.last_token,["return","throw","import","default"])?this.set_mode(y.ObjectLiteral):this.set_mode(y.BlockStatement);var a=!t.comments_before&&"}"===t.text,n=a&&"function"===this._flags.last_word&&this._flags.last_token.type===u.END_EXPR;if(this._options.brace_preserve_inline){var r=0,s=null;this._flags.inline_frame=!0;do{if(r+=1,s=this._tokens.peek(r-1),s.newlines){this._flags.inline_frame=!1;break}}while(s.type!==u.EOF&&(s.type!==u.END_BLOCK||s.opened!==e))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==u.OPERATOR&&(n||this._flags.last_token.type===u.EQUALS||h(this._flags.last_token,m)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!C(this._previous_flags.mode)||this._flags.last_token.type!==u.START_EXPR&&this._flags.last_token.type!==u.COMMA||((this._flags.last_token.type===u.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===u.COMMA||this._flags.last_token.type===u.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(e),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==u.OPERATOR&&this._flags.last_token.type!==u.START_EXPR&&(this._flags.last_token.type!==u.START_BLOCK||this._flags.inline_frame?this._output.space_before_token=!0:this.print_newline())),this.print_token(e),this.indent(),a||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},S.prototype.handle_end_block=function(e){this.handle_whitespace_and_comments(e);while(this._flags.mode===y.Statement)this.restore_mode();var t=this._flags.last_token.type===u.START_BLOCK;this._flags.inline_frame&&!t?this._output.space_before_token=!0:"expand"===this._options.brace_style?t||this.print_newline():t||(C(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(e)},S.prototype.handle_word=function(e){if(e.type===u.RESERVED)if(d(e.text,["set","get"])&&this._flags.mode!==y.ObjectLiteral)e.type=u.WORD;else if("import"===e.text&&"("===this._tokens.peek().text)e.type=u.WORD;else if(d(e.text,["as","from"])&&!this._flags.import_block)e.type=u.WORD;else if(this._flags.mode===y.ObjectLiteral){var t=this._tokens.peek();":"===t.text&&(e.type=u.WORD)}if(this.start_of_statement(e)?h(this._flags.last_token,["var","let","const"])&&e.type===u.WORD&&(this._flags.declaration_statement=!0):!e.newlines||x(this._flags.mode)||this._flags.last_token.type===u.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===u.EQUALS||!this._options.preserve_newlines&&h(this._flags.last_token,["var","let","const","set","get"])?this.handle_whitespace_and_comments(e):(this.handle_whitespace_and_comments(e),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(A(e,"while"))return this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0,void(this._flags.do_while=!0);this.print_newline(),this._flags.do_block=!1}if(this._flags.if_block)if(!this._flags.else_block&&A(e,"else"))this._flags.else_block=!0;else{while(this._flags.mode===y.Statement)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&h(e,["case","default"]))return this.print_newline(),this._flags.last_token.type!==u.END_BLOCK&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(e),void(this._flags.in_case=!0);if(this._flags.last_token.type!==u.COMMA&&this._flags.last_token.type!==u.START_EXPR&&this._flags.last_token.type!==u.EQUALS&&this._flags.last_token.type!==u.OPERATOR||this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e),A(e,"function"))return(d(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!d(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==u.OPERATOR)&&(this._output.just_added_blankline()||e.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===u.RESERVED||this._flags.last_token.type===u.WORD?h(this._flags.last_token,["get","set","new","export"])||h(this._flags.last_token,I)||A(this._flags.last_token,"default")&&"export"===this._last_last_text||"declare"===this._flags.last_token.text?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===u.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!x(this._flags.mode)&&!C(this._flags.mode))&&this.print_newline(),this.print_token(e),void(this._flags.last_word=e.text);var i="NONE";if(this._flags.last_token.type===u.END_BLOCK?this._previous_flags.inline_frame?i="SPACE":h(e,["else","catch","finally","from"])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines?i="NEWLINE":(i="SPACE",this._output.space_before_token=!0):i="NEWLINE":this._flags.last_token.type===u.SEMICOLON&&this._flags.mode===y.BlockStatement?i="NEWLINE":this._flags.last_token.type===u.SEMICOLON&&x(this._flags.mode)?i="SPACE":this._flags.last_token.type===u.STRING?i="NEWLINE":this._flags.last_token.type===u.RESERVED||this._flags.last_token.type===u.WORD||"*"===this._flags.last_token.text&&(d(this._last_last_text,["function","yield"])||this._flags.mode===y.ObjectLiteral&&d(this._last_last_text,["{",","]))?i="SPACE":this._flags.last_token.type===u.START_BLOCK?i=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===u.END_EXPR&&(this._output.space_before_token=!0,i="NEWLINE"),h(e,l)&&")"!==this._flags.last_token.text&&(i=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),h(e,["else","catch","finally"]))if((this._flags.last_token.type!==u.END_BLOCK||this._previous_flags.mode!==y.BlockStatement||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var a=this._output.current_line;"}"!==a.last()&&this.print_newline(),this._output.space_before_token=!0}else"NEWLINE"===i?h(this._flags.last_token,m)||"declare"===this._flags.last_token.text&&h(e,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==u.END_EXPR?this._flags.last_token.type===u.START_EXPR&&h(e,["var","let","const"])||":"===this._flags.last_token.text||(A(e,"if")&&A(e.previous,"else")?this._output.space_before_token=!0:this.print_newline()):h(e,l)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&C(this._flags.mode)&&","===this._flags.last_token.text&&"}"===this._last_last_text?this.print_newline():"SPACE"===i&&(this._output.space_before_token=!0);!e.previous||e.previous.type!==u.WORD&&e.previous.type!==u.RESERVED||(this._output.space_before_token=!0),this.print_token(e),this._flags.last_word=e.text,e.type===u.RESERVED&&("do"===e.text?this._flags.do_block=!0:"if"===e.text?this._flags.if_block=!0:"import"===e.text?this._flags.import_block=!0:this._flags.import_block&&A(e,"from")&&(this._flags.import_block=!1))},S.prototype.handle_semicolon=function(e){this.start_of_statement(e)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(e);var t=this._tokens.peek();while(this._flags.mode===y.Statement&&(!this._flags.if_block||!A(t,"else"))&&!this._flags.do_block)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(e)},S.prototype.handle_string=function(e){this.start_of_statement(e)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(e),this._flags.last_token.type===u.RESERVED||this._flags.last_token.type===u.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===u.COMMA||this._flags.last_token.type===u.START_EXPR||this._flags.last_token.type===u.EQUALS||this._flags.last_token.type===u.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e):this.print_newline()),this.print_token(e)},S.prototype.handle_equals=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0},S.prototype.handle_comma=function(e){this.handle_whitespace_and_comments(e,!0),this.print_token(e),this._output.space_before_token=!0,this._flags.declaration_statement?(x(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)):this._flags.mode===y.ObjectLiteral||this._flags.mode===y.Statement&&this._flags.parent.mode===y.ObjectLiteral?(this._flags.mode===y.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)},S.prototype.handle_operator=function(e){var t="*"===e.text&&(h(this._flags.last_token,["function","yield"])||d(this._flags.last_token.type,[u.START_BLOCK,u.COMMA,u.END_BLOCK,u.SEMICOLON])),i=d(e.text,["-","+"])&&(d(this._flags.last_token.type,[u.START_BLOCK,u.START_EXPR,u.EQUALS,u.OPERATOR])||d(this._flags.last_token.text,l)||","===this._flags.last_token.text);if(this.start_of_statement(e));else{var a=!t;this.handle_whitespace_and_comments(e,a)}if(h(this._flags.last_token,m))return this._output.space_before_token=!0,void this.print_token(e);if("*"!==e.text||this._flags.last_token.type!==u.DOT)if("::"!==e.text){if(this._flags.last_token.type===u.OPERATOR&&d(this._options.operator_position,b)&&this.allow_wrap_or_preserved_newline(e),":"===e.text&&this._flags.in_case)return this.print_token(e),this._flags.in_case=!1,this._flags.case_body=!0,void(this._tokens.peek().type!==u.START_BLOCK?(this.indent(),this.print_newline()):this._output.space_before_token=!0);var n=!0,r=!0,s=!1;if(":"===e.text?0===this._flags.ternary_depth?n=!1:(this._flags.ternary_depth-=1,s=!0):"?"===e.text&&(this._flags.ternary_depth+=1),!i&&!t&&this._options.preserve_newlines&&d(e.text,c)){var o=":"===e.text,p=o&&s,f=o&&!s;switch(this._options.operator_position){case v.before_newline:return this._output.space_before_token=!f,this.print_token(e),o&&!p||this.allow_wrap_or_preserved_newline(e),void(this._output.space_before_token=!0);case v.after_newline:return this._output.space_before_token=!0,!o||p?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(e):this._output.space_before_token=!1,this.print_token(e),void(this._output.space_before_token=!0);case v.preserve_newline:return f||this.allow_wrap_or_preserved_newline(e),n=!(this._output.just_added_newline()||f),this._output.space_before_token=n,this.print_token(e),void(this._output.space_before_token=!0)}}if(t){this.allow_wrap_or_preserved_newline(e),n=!1;var A=this._tokens.peek();r=A&&d(A.type,[u.WORD,u.RESERVED])}else"..."===e.text?(this.allow_wrap_or_preserved_newline(e),n=this._flags.last_token.type===u.START_BLOCK,r=!1):(d(e.text,["--","++","!","~"])||i)&&(this._flags.last_token.type!==u.COMMA&&this._flags.last_token.type!==u.START_EXPR||this.allow_wrap_or_preserved_newline(e),n=!1,r=!1,!e.newlines||"--"!==e.text&&"++"!==e.text||this.print_newline(!1,!0),";"===this._flags.last_token.text&&x(this._flags.mode)&&(n=!0),this._flags.last_token.type===u.RESERVED?n=!0:this._flags.last_token.type===u.END_EXPR?n=!("]"===this._flags.last_token.text&&("--"===e.text||"++"===e.text)):this._flags.last_token.type===u.OPERATOR&&(n=d(e.text,["--","-","++","+"])&&d(this._flags.last_token.text,["--","-","++","+"]),d(e.text,["+","-"])&&d(this._flags.last_token.text,["--","++"])&&(r=!0)),(this._flags.mode!==y.BlockStatement||this._flags.inline_frame)&&this._flags.mode!==y.Statement||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline());this._output.space_before_token=this._output.space_before_token||n,this.print_token(e),this._output.space_before_token=r}else this.print_token(e);else this.print_token(e)},S.prototype.handle_block_comment=function(e,t){return this._output.raw?(this._output.add_raw_token(e),void(e.directives&&"end"===e.directives.preserve&&(this._output.raw=this._options.test_output_raw))):e.directives?(this.print_newline(!1,t),this.print_token(e),"start"===e.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):r.newline.test(e.text)||e.newlines?void this.print_block_commment(e,t):(this._output.space_before_token=!0,this.print_token(e),void(this._output.space_before_token=!0))},S.prototype.print_block_commment=function(e,t){var i,a=w(e.text),n=!1,r=!1,s=e.whitespace_before,o=s.length;if(this.print_newline(!1,t),this.print_token_line_indentation(e),this._output.add_token(a[0]),this.print_newline(!1,t),a.length>1){for(a=a.slice(1),n=k(a,"*"),r=T(a,s),n&&(this._flags.alignment=1),i=0;i<a.length;i++)n?(this.print_token_line_indentation(e),this._output.add_token(p(a[i]))):r&&a[i]?(this.print_token_line_indentation(e),this._output.add_token(a[i].substring(o))):(this._output.current_line.set_indent(-1),this._output.add_token(a[i])),this.print_newline(!1,t);this._flags.alignment=0}},S.prototype.handle_comment=function(e,t){e.newlines?this.print_newline(!1,t):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(e),this.print_newline(!1,t)},S.prototype.handle_dot=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e,!0),h(this._flags.last_token,m)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(e,")"===this._flags.last_token.text&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(e)},S.prototype.handle_unknown=function(e,t){this.print_token(e),"\n"===e.text[e.text.length-1]&&this.print_newline(!1,t)},S.prototype.handle_eof=function(e){while(this._flags.mode===y.Statement)this.restore_mode();this.handle_whitespace_and_comments(e)},e.exports.Beautifier=S},function(e,t,i){"use strict";function a(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function r(e,t){this.__indent_cache=new n(e,t),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new a(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}a.prototype.clone_empty=function(){var e=new a(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},a.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},a.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},a.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},a.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},a.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},a.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},a.prototype.is_empty=function(){return 0===this.__items.length},a.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},a.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},a.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},a.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},a.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},a.prototype.trim=function(){while(" "===this.last())this.__items.pop(),this.__character_count-=1},a.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var i=this.__base_string_length;return t=t||0,e<0&&(i=0),i+=e*this.__indent_size,i+=t,i},n.prototype.get_indent_string=function(e,t){var i=this.__base_string;return t=t||0,e<0&&(e=0,i=""),t+=e*this.__indent_size,this.__ensure_cache(t),i+=this.__cache[t],i},n.prototype.__ensure_cache=function(e){while(e>=this.__cache.length)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,i="";this.__indent_size&&e>=this.__indent_size&&(t=Math.floor(e/this.__indent_size),e-=t*this.__indent_size,i=new Array(t+1).join(this.__indent_string)),e&&(i+=new Array(e+1).join(" ")),this.__cache.push(i)},r.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},r.prototype.get_line_number=function(){return this.__lines.length},r.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},r.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},r.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join("\n");return"\n"!==e&&(i=i.replace(/[\n]/g,e)),i},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},r.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},r.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},r.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},r.prototype.remove_indent=function(e){var t=this.__lines.length;while(e<t)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},r.prototype.trim=function(e){e=void 0!==e&&e,this.current_line.trim();while(e&&this.__lines.length>1&&this.current_line.is_empty())this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},r.prototype.just_added_newline=function(){return this.current_line.is_empty()},r.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},r.prototype.ensure_empty_line_above=function(e,t){var i=this.__lines.length-2;while(i>=0){var n=this.__lines[i];if(n.is_empty())break;if(0!==n.item(0).indexOf(e)&&n.item(-1)!==t){this.__lines.splice(i+1,0,new a(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=r},function(e,t,i){"use strict";function a(e,t,i,a){this.type=e,this.text=t,this.comments_before=null,this.newlines=i||0,this.whitespace_before=a||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}e.exports.Token=a},function(e,t,i){"use strict";var a="\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",n="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",s="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",o="(?:\\\\u[0-9a-fA-F]{4}|["+a+r+"])",l="(?:\\\\u[0-9a-fA-F]{4}|["+n+r+s+"])*";t.identifier=new RegExp(o+l,"g"),t.identifierStart=new RegExp(o),t.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+n+r+s+"])+");t.newline=/[\n\r\u2028\u2029]/,t.lineBreak=new RegExp("\r\n|"+t.newline.source),t.allLineBreaks=new RegExp(t.lineBreak.source,"g")},function(e,t,i){"use strict";var a=i(6).Options,n=["before-newline","after-newline","preserve-newline"];function r(e){a.call(this,e,"js");var t=this.raw_options.brace_style||null;"expand-strict"===t?this.raw_options.brace_style="expand":"collapse-preserve-inline"===t?this.raw_options.brace_style="collapse,preserve-inline":void 0!==this.raw_options.braces_on_own_line&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var r=0;r<i.length;r++)"preserve-inline"===i[r]?this.brace_preserve_inline=!0:this.brace_style=i[r];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",n),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}r.prototype=new a,e.exports.Options=r},function(e,t,i){"use strict";function a(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php"],["auto"])}function n(e,t){var i,a={};for(i in e=r(e),e)i!==t&&(a[i]=e[i]);if(t&&e[t])for(i in e[t])a[i]=e[t][i];return a}function r(e){var t,i={};for(t in e){var a=t.replace(/-/g,"_");i[a]=e[t]}return i}a.prototype._get_array=function(e,t){var i=this.raw_options[e],a=t||[];return"object"===typeof i?null!==i&&"function"===typeof i.concat&&(a=i.concat()):"string"===typeof i&&(a=i.split(/[^a-zA-Z0-9_\/\-]+/)),a},a.prototype._get_boolean=function(e,t){var i=this.raw_options[e],a=void 0===i?!!t:!!i;return a},a.prototype._get_characters=function(e,t){var i=this.raw_options[e],a=t||"";return"string"===typeof i&&(a=i.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),a},a.prototype._get_number=function(e,t){var i=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var a=parseInt(i,10);return isNaN(a)&&(a=t),a},a.prototype._get_selection=function(e,t,i){var a=this._get_selection_list(e,t,i);if(1!==a.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return a[0]},a.prototype._get_selection_list=function(e,t,i){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(i=i||[t[0]],!this._is_valid_selection(i,t))throw new Error("Invalid Default Value!");var a=this._get_array(e,i);if(!this._is_valid_selection(a,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return a},a.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=a,e.exports.normalizeOpts=r,e.exports.mergeOpts=n},function(e,t,i){"use strict";var a=i(8).InputScanner,n=i(9).Tokenizer,r=i(9).TOKEN,s=i(13).Directives,o=i(4),l=i(12).Pattern,c=i(14).TemplatablePattern;function u(e,t){return-1!==t.indexOf(e)}var d={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:r.START,RAW:r.RAW,EOF:r.EOF},p=new s(/\/\*/,/\*\//),f=/0[xX][0123456789abcdefABCDEF]*|0[oO][01234567]*|0[bB][01]*|\d+n|(?:\.\d+|\d+\.?\d*)(?:[eE][+-]?\d+)?/,A=/[0-9]/,h=/[^\d\.]/,m=">>> === !== << && >= ** != == <= >> || < / - + > : & % ? ^ | *".split(" "),g=">>>= ... >>= <<= === >>> !== **= => ^= :: /= << <= == && -= >= >> != -- += ** || ++ %= &= *= |= = ! ? > < : / ^ - + * & % ~ |";g=g.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),g=g.replace(/ /g,"|");var v,b=new RegExp(g),y="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),_=y.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as"]),w=new RegExp("^(?:"+_.join("|")+")$"),C=function(e,t){n.call(this,e,t),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var i=new l(this._input),a=new c(this._input).read_options(this._options);this.__patterns={template:a,identifier:a.starting_with(o.identifier).matching(o.identifierMatch),number:i.matching(f),punct:i.matching(b),comment:i.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:i.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:i.matching(/<!--/),html_comment_end:i.matching(/-->/),include:i.starting_with(/#include/).until_after(o.lineBreak),shebang:i.starting_with(/#!/).until_after(o.lineBreak),xml:i.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[\s\S]+?}|!\[CDATA\[[\s\S]*?\]\])(\s+{[\s\S]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{[\s\S]+?}))*\s*(\/?)\s*>/),single_quote:a.until(/['\\\n\r\u2028\u2029]/),double_quote:a.until(/["\\\n\r\u2028\u2029]/),template_text:a.until(/[`\\$]/),template_expression:a.until(/[`}\\]/)}};function x(e){var t="",i=0,n=new a(e),r=null;while(n.hasNext())if(r=n.match(/([\s]|[^\\]|\\\\)+/g),r&&(t+=r[0]),"\\"===n.peek()){if(n.next(),"x"===n.peek())r=n.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==n.peek()){t+="\\",n.hasNext()&&(t+=n.next());continue}r=n.match(/u([0-9A-Fa-f]{4})/g)}if(!r)return e;if(i=parseInt(r[1],16),i>126&&i<=255&&0===r[0].indexOf("x"))return e;if(i>=0&&i<32){t+="\\"+r[0];continue}t+=34===i||39===i||92===i?"\\"+String.fromCharCode(i):String.fromCharCode(i)}return t}C.prototype=new n,C.prototype._is_comment=function(e){return e.type===d.COMMENT||e.type===d.BLOCK_COMMENT||e.type===d.UNKNOWN},C.prototype._is_opening=function(e){return e.type===d.START_BLOCK||e.type===d.START_EXPR},C.prototype._is_closing=function(e,t){return(e.type===d.END_BLOCK||e.type===d.END_EXPR)&&t&&("]"===e.text&&"["===t.text||")"===e.text&&"("===t.text||"}"===e.text&&"{"===t.text)},C.prototype._reset=function(){v=!1},C.prototype._get_next_token=function(e,t){var i=null;this._readWhitespace();var a=this._input.peek();return null===a?this._create_token(d.EOF,""):(i=i||this._read_string(a),i=i||this._read_word(e),i=i||this._read_singles(a),i=i||this._read_comment(a),i=i||this._read_regexp(a,e),i=i||this._read_xml(a,e),i=i||this._read_non_javascript(a),i=i||this._read_punctuation(),i=i||this._create_token(d.UNKNOWN,this._input.next()),i)},C.prototype._read_word=function(e){var t;return t=this.__patterns.identifier.read(),""!==t?(t=t.replace(o.allLineBreaks,"\n"),e.type!==d.DOT&&(e.type!==d.RESERVED||"set"!==e.text&&"get"!==e.text)&&w.test(t)?"in"===t||"of"===t?this._create_token(d.OPERATOR,t):this._create_token(d.RESERVED,t):this._create_token(d.WORD,t)):(t=this.__patterns.number.read(),""!==t?this._create_token(d.WORD,t):void 0)},C.prototype._read_singles=function(e){var t=null;return"("===e||"["===e?t=this._create_token(d.START_EXPR,e):")"===e||"]"===e?t=this._create_token(d.END_EXPR,e):"{"===e?t=this._create_token(d.START_BLOCK,e):"}"===e?t=this._create_token(d.END_BLOCK,e):";"===e?t=this._create_token(d.SEMICOLON,e):"."===e&&h.test(this._input.peek(1))?t=this._create_token(d.DOT,e):","===e&&(t=this._create_token(d.COMMA,e)),t&&this._input.next(),t},C.prototype._read_punctuation=function(){var e=this.__patterns.punct.read();if(""!==e)return"="===e?this._create_token(d.EQUALS,e):this._create_token(d.OPERATOR,e)},C.prototype._read_non_javascript=function(e){var t="";if("#"===e){if(this._is_first_token()&&(t=this.__patterns.shebang.read(),t))return this._create_token(d.UNKNOWN,t.trim()+"\n");if(t=this.__patterns.include.read(),t)return this._create_token(d.UNKNOWN,t.trim()+"\n");e=this._input.next();var i="#";if(this._input.hasNext()&&this._input.testChar(A)){do{e=this._input.next(),i+=e}while(this._input.hasNext()&&"#"!==e&&"="!==e);return"#"===e||("["===this._input.peek()&&"]"===this._input.peek(1)?(i+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(i+="{}",this._input.next(),this._input.next())),this._create_token(d.WORD,i)}this._input.back()}else if("<"===e&&this._is_first_token()){if(t=this.__patterns.html_comment_start.read(),t){while(this._input.hasNext()&&!this._input.testChar(o.newline))t+=this._input.next();return v=!0,this._create_token(d.COMMENT,t)}}else if(v&&"-"===e&&(t=this.__patterns.html_comment_end.read(),t))return v=!1,this._create_token(d.COMMENT,t);return null},C.prototype._read_comment=function(e){var t=null;if("/"===e){var i="";if("*"===this._input.peek(1)){i=this.__patterns.block_comment.read();var a=p.get_directives(i);a&&"start"===a.ignore&&(i+=p.readIgnored(this._input)),i=i.replace(o.allLineBreaks,"\n"),t=this._create_token(d.BLOCK_COMMENT,i),t.directives=a}else"/"===this._input.peek(1)&&(i=this.__patterns.comment.read(),t=this._create_token(d.COMMENT,i))}return t},C.prototype._read_string=function(e){if("`"===e||"'"===e||'"'===e){var t=this._input.next();return this.has_char_escapes=!1,t+="`"===e?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(e),this.has_char_escapes&&this._options.unescape_strings&&(t=x(t)),this._input.peek()===e&&(t+=this._input.next()),t=t.replace(o.allLineBreaks,"\n"),this._create_token(d.STRING,t)}return null},C.prototype._allow_regexp_or_xml=function(e){return e.type===d.RESERVED&&u(e.text,["return","case","throw","else","do","typeof","yield"])||e.type===d.END_EXPR&&")"===e.text&&e.opened.previous.type===d.RESERVED&&u(e.opened.previous.text,["if","while","for"])||u(e.type,[d.COMMENT,d.START_EXPR,d.START_BLOCK,d.START,d.END_BLOCK,d.OPERATOR,d.EQUALS,d.EOF,d.SEMICOLON,d.COMMA])},C.prototype._read_regexp=function(e,t){if("/"===e&&this._allow_regexp_or_xml(t)){var i=this._input.next(),a=!1,n=!1;while(this._input.hasNext()&&(a||n||this._input.peek()!==e)&&!this._input.testChar(o.newline))i+=this._input.peek(),a?a=!1:(a="\\"===this._input.peek(),"["===this._input.peek()?n=!0:"]"===this._input.peek()&&(n=!1)),this._input.next();return this._input.peek()===e&&(i+=this._input.next(),i+=this._input.read(o.identifier)),this._create_token(d.STRING,i)}return null},C.prototype._read_xml=function(e,t){if(this._options.e4x&&"<"===e&&this._allow_regexp_or_xml(t)){var i="",a=this.__patterns.xml.read_match();if(a){var n=a[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),r=0===n.indexOf("{"),s=0;while(a){var l=!!a[1],c=a[2],u=!!a[a.length-1]||"![CDATA["===c.slice(0,8);if(!u&&(c===n||r&&c.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(l?--s:++s),i+=a[0],s<=0)break;a=this.__patterns.xml.read_match()}return a||(i+=this._input.match(/[\s\S]*/g)[0]),i=i.replace(o.allLineBreaks,"\n"),this._create_token(d.STRING,i)}}return null},C.prototype._read_string_recursive=function(e,t,i){var a,n;"'"===e?n=this.__patterns.single_quote:'"'===e?n=this.__patterns.double_quote:"`"===e?n=this.__patterns.template_text:"}"===e&&(n=this.__patterns.template_expression);var r=n.read(),s="";while(this._input.hasNext()){if(s=this._input.next(),s===e||!t&&o.newline.test(s)){this._input.back();break}"\\"===s&&this._input.hasNext()?(a=this._input.peek(),"x"===a||"u"===a?this.has_char_escapes=!0:"\r"===a&&"\n"===this._input.peek(1)&&this._input.next(),s+=this._input.next()):i&&("${"===i&&"$"===s&&"{"===this._input.peek()&&(s+=this._input.next()),i===s&&(s+="`"===e?this._read_string_recursive("}",t,"`"):this._read_string_recursive("`",t,"${"),this._input.hasNext()&&(s+=this._input.next()))),s+=n.read(),r+=s}return r},e.exports.Tokenizer=C,e.exports.TOKEN=d,e.exports.positionable_operators=m.slice(),e.exports.line_starters=y.slice()},function(e,t,i){"use strict";var a=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},n.prototype.peek=function(e){var t=null;return e=e||0,e+=this.__position,e>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},n.prototype.__match=function(e,t){e.lastIndex=t;var i=e.exec(this.__input);return!i||a&&e.sticky||i.index!==t&&(i=null),i},n.prototype.test=function(e,t){return t=t||0,t+=this.__position,t>=0&&t<this.__input_length&&!!this.__match(e,t)},n.prototype.testChar=function(e,t){var i=this.peek(t);return e.lastIndex=0,null!==i&&e.test(i)},n.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(e,t,i){var a,n="";return e&&(a=this.match(e),a&&(n+=a[0])),!t||!a&&e||(n+=this.readUntil(t,i)),n},n.prototype.readUntil=function(e,t){var i="",a=this.__position;e.lastIndex=this.__position;var n=e.exec(this.__input);return n?(a=n.index,t&&(a+=n[0].length)):a=this.__input_length,i=this.__input.substring(this.__position,a),this.__position=a,i},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,t){var i=null,n="g";return t&&a&&(n="y"),"string"===typeof e&&""!==e?i=new RegExp(e,n):e&&(i=new RegExp(e.source,n)),i},n.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(e){var t=this.__position,i=this.readUntilAfter(e);return this.__position=t,i},n.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},function(e,t,i){"use strict";var a=i(8).InputScanner,n=i(3).Token,r=i(10).TokenStream,s=i(11).WhitespacePattern,o={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(e,t){this._input=new a(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new s(this._input)};l.prototype.tokenize=function(){var e;this._input.restart(),this.__tokens=new r,this._reset();var t=new n(o.START,""),i=null,a=[],s=new r;while(t.type!==o.EOF){e=this._get_next_token(t,i);while(this._is_comment(e))s.add(e),e=this._get_next_token(t,i);s.isEmpty()||(e.comments_before=s,s=new r),e.parent=i,this._is_opening(e)?(a.push(i),i=e):i&&this._is_closing(e,i)&&(e.opened=i,i.closed=e,i=a.pop(),e.parent=i),e.previous=t,t.next=e,this.__tokens.add(e),t=e}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(e,t){this._readWhitespace();var i=this._input.read(/.+/g);return i?this._create_token(o.RAW,i):this._create_token(o.EOF,"")},l.prototype._is_comment=function(e){return!1},l.prototype._is_opening=function(e){return!1},l.prototype._is_closing=function(e,t){return!1},l.prototype._create_token=function(e,t){var i=new n(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return i},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=l,e.exports.TOKEN=o},function(e,t,i){"use strict";function a(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}a.prototype.restart=function(){this.__position=0},a.prototype.isEmpty=function(){return 0===this.__tokens_length},a.prototype.hasNext=function(){return this.__position<this.__tokens_length},a.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__tokens[this.__position],this.__position+=1),e},a.prototype.peek=function(e){var t=null;return e=e||0,e+=this.__position,e>=0&&e<this.__tokens_length&&(t=this.__tokens[e]),t},a.prototype.add=function(e){this.__parent_token&&(e.parent=this.__parent_token),this.__tokens.push(e),this.__tokens_length+=1},e.exports.TokenStream=a},function(e,t,i){"use strict";var a=i(12).Pattern;function n(e,t){a.call(this,e,t),t?this._line_regexp=this._input.get_regexp(t._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}n.prototype=new a,n.prototype.__set_whitespace_patterns=function(e,t){e+="\\t ",t+="\\n\\r",this._match_pattern=this._input.get_regexp("["+e+t+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+t+"]")},n.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var e=this._input.read(this._match_pattern);if(" "===e)this.whitespace_before_token=" ";else if(e){var t=this.__split(this._newline_regexp,e);this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]}return e},n.prototype.matching=function(e,t){var i=this._create();return i.__set_whitespace_patterns(e,t),i._update(),i},n.prototype._create=function(){return new n(this._input,this)},n.prototype.__split=function(e,t){e.lastIndex=0;var i=0,a=[],n=e.exec(t);while(n)a.push(t.substring(i,n.index)),i=n.index+n[0].length,n=e.exec(t);return i<t.length?a.push(t.substring(i,t.length)):a.push(""),a},e.exports.WhitespacePattern=n},function(e,t,i){"use strict";function a(e,t){this._input=e,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,t&&(this._starting_pattern=this._input.get_regexp(t._starting_pattern,!0),this._match_pattern=this._input.get_regexp(t._match_pattern,!0),this._until_pattern=this._input.get_regexp(t._until_pattern),this._until_after=t._until_after)}a.prototype.read=function(){var e=this._input.read(this._starting_pattern);return this._starting_pattern&&!e||(e+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),e},a.prototype.read_match=function(){return this._input.match(this._match_pattern)},a.prototype.until_after=function(e){var t=this._create();return t._until_after=!0,t._until_pattern=this._input.get_regexp(e),t._update(),t},a.prototype.until=function(e){var t=this._create();return t._until_after=!1,t._until_pattern=this._input.get_regexp(e),t._update(),t},a.prototype.starting_with=function(e){var t=this._create();return t._starting_pattern=this._input.get_regexp(e,!0),t._update(),t},a.prototype.matching=function(e){var t=this._create();return t._match_pattern=this._input.get_regexp(e,!0),t._update(),t},a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){},e.exports.Pattern=a},function(e,t,i){"use strict";function a(e,t){e="string"===typeof e?e:e.source,t="string"===typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}a.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;var i=this.__directive_pattern.exec(e);while(i)t[i[1]]=i[2],i=this.__directive_pattern.exec(e);return t},a.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=a},function(e,t,i){"use strict";var a=i(12).Pattern,n={django:!1,erb:!1,handlebars:!1,php:!1};function r(e,t){a.call(this,e,t),this.__template_pattern=null,this._disabled=Object.assign({},n),this._excluded=Object.assign({},n),t&&(this.__template_pattern=this._input.get_regexp(t.__template_pattern),this._excluded=Object.assign(this._excluded,t._excluded),this._disabled=Object.assign(this._disabled,t._disabled));var i=new a(e);this.__patterns={handlebars_comment:i.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:i.starting_with(/{{{/).until_after(/}}}/),handlebars:i.starting_with(/{{/).until_after(/}}/),php:i.starting_with(/<\?(?:[=]|php)/).until_after(/\?>/),erb:i.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:i.starting_with(/{%/).until_after(/%}/),django_value:i.starting_with(/{{/).until_after(/}}/),django_comment:i.starting_with(/{#/).until_after(/#}/)}}r.prototype=new a,r.prototype._create=function(){return new r(this._input,this)},r.prototype._update=function(){this.__set_templated_pattern()},r.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},r.prototype.read_options=function(e){var t=this._create();for(var i in n)t._disabled[i]=-1===e.templating.indexOf(i);return t._update(),t},r.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},r.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);var t=this._read_template();while(t)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},r.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},r.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var i=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==i||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==i||(e=e||this.__patterns.erb.read())}else"{"===t&&(this._disabled.handlebars||this._excluded.handlebars||(e=e||this.__patterns.handlebars_comment.read(),e=e||this.__patterns.handlebars_unescaped.read(),e=e||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=e||this.__patterns.django_comment.read(),e=e||this.__patterns.django.read())));return e},e.exports.TemplatablePattern=r}]),r=i;a=[],n=function(){return{js_beautify:r}}.apply(t,a),void 0===n||(e.exports=n)})()},e9c3:function(e,t,i){},e9c6:function(e,t,i){"use strict";i("98ed")},ea19:function(e,t,i){},ea36:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"wrap"},[a("ReturnPage",{attrs:{path:"/operationsCenter/drainageCode/staff"}}),a("div",{staticClass:"wrap-body"},[a("el-alert",{attrs:{title:"功能说明",type:"info",description:"客户扫描生成的员工活码,将被随机分配一个员工,添加员工后,会自动被打上预设的客户标签等,同时收到预设的欢迎语,完成引流。","show-icon":"",closable:!1}}),a("div",{staticClass:"wrap-body-form"},[a("el-form",{ref:"form",staticClass:"form",attrs:{model:e.form,"label-width":"100px",rules:e.rules}},[a("p",{staticClass:"config-title"},[e._v("基础设置")]),a("el-form-item",{attrs:{label:"活码场景",prop:"scenario"}},[a("el-input",{attrs:{maxlength:"32","show-word-limit":"",placeholder:"请填写活码使用场景,方便区分",clearable:""},model:{value:e.form.scenario,callback:function(t){e.$set(e.form,"scenario",t)},expression:"form.scenario"}})],1),a("el-form-item",{attrs:{label:"活码类型",prop:"codeType"}},[a("el-radio-group",{on:{change:e.codeTypeChange},model:{value:e.form.codeType,callback:function(t){e.$set(e.form,"codeType",t)},expression:"form.codeType"}},e._l(e.type,(function(t,i,n){return a("el-radio",{key:n,attrs:{label:+i,disabled:e.disableMultipleUserRadio&&t===e.multipleUserValue}},[e._v(e._s(t))])})),1)],1),a("el-form-item",{attrs:{label:"使用员工",prop:"weEmpleCodeUseScops"}},[a("div",{staticClass:"flexw"},[a("el-button",{staticClass:"mr10 mb5",attrs:{plain:"",icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.dialogVisibleSelectUser=!0}}},[e._v(e._s(e.form.weEmpleCodeUseScops.length?"修改":"添加")+"成员")]),e._l(e.form.weEmpleCodeUseScops,(function(t,i){return a("el-tag",{key:i,staticClass:"user-tag mb5",attrs:{closable:"",size:"medium"},on:{close:function(t){return e.handleClose(i)}}},[a("TagUserShow",{attrs:{name:t.businessName,"show-icon":t.businessIdType===e.SCOPELIST_TYPE.DEPARTMENT}})],1)}))],2)]),a("el-form-item",{attrs:{label:"客户标签"}},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.tagFlag,callback:function(t){e.$set(e.form,"tagFlag",t)},expression:"form.tagFlag"}}),a("span",{staticClass:"we-emple-code-tags-tip"},[e._v("开启后,根据使用场景做标记,自动为扫码添加的客户打上标签")])],1),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.form.tagFlag,expression:"form.tagFlag"}],attrs:{label:"",prop:"weEmpleCodeTags"}},[a("el-button",{staticClass:"mr10",attrs:{plain:"",icon:"el-icon-plus",size:"mini"},on:{click:function(t){e.dialogVisibleSelectTag=!0}}},[e._v("添加标签")]),e._l(e.form.weEmpleCodeTags,(function(t,i){return a("el-tag",{key:i,attrs:{closable:"",size:"medium"},on:{close:function(i){return e.deleteTag(t)}}},[e._v(e._s(t.tagName))])}))],2),a("el-form-item",{attrs:{label:"客户备注"}},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.isAutoSetRemark,callback:function(t){e.$set(e.form,"isAutoSetRemark",t)},expression:"form.isAutoSetRemark"}}),a("span",{staticClass:"we-emple-code-tags-tip"},[e._v("开启后,为扫码添加的客户修改备注,方便查看来源")]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.form.isAutoSetRemark,expression:"form.isAutoSetRemark"}],staticClass:"remark"},[a("el-alert",{attrs:{title:"客户备注最多可设置20个字符,客户昵称较长时可能导致设置失败",type:"warning",closable:!1}}),a("el-form-item",{attrs:{label:"备注位置","label-width":"68px"}},[a("el-radio-group",{model:{value:e.form.remarkType,callback:function(t){e.$set(e.form,"remarkType",t)},expression:"form.remarkType"}},[a("el-radio",{attrs:{label:e.REMARK_TYPE["previous"]}},[e._v("在昵称前")]),a("el-radio",{attrs:{label:e.REMARK_TYPE["after"]}},[e._v("在昵称后")])],1),a("el-form-item",{attrs:{prop:"remarkName"}},[a("el-input",{attrs:{placeholder:"请输入备注",maxlength:20,"show-word-limit":""},model:{value:e.form.remarkName,callback:function(t){e.$set(e.form,"remarkName",t)},expression:"form.remarkName"}},[e.form.remarkType===e.REMARK_TYPE["after"]?a("template",{slot:"prepend"},[e._v("客户昵称-")]):e._e(),e.form.remarkType===e.REMARK_TYPE["previous"]?a("template",{slot:"append"},[e._v("-客户昵称")]):e._e()],2)],1)],1)],1)],1),a("p",{staticClass:"config-title",staticStyle:{"margin-bottom":"16px"}},[e._v(" 欢迎语"),a("span",[e._v("设置个性欢迎语,扫码添加的客户将自动收到该欢迎语")])]),a("el-alert",{attrs:{title:"若使用人员已在企业微信后台或其他第三方应用设置了欢迎语,则此处欢迎语不生效",type:"warning",closable:!1}}),a("el-form-item",{attrs:{label:"类型",prop:"welcomeMsgType"}},[a("el-radio-group",{on:{change:e.welcomeMsgTypeChange},model:{value:e.form.welcomeMsgType,callback:function(t){e.$set(e.form,"welcomeMsgType",t)},expression:"form.welcomeMsgType"}},[a("el-radio",{attrs:{label:e.NORMAL_WORD}},[e._v("普通欢迎语")]),a("el-radio",{attrs:{label:e.ACTIVE_WORD}},[e._v("活动欢迎语")])],1)],1),e.form.welcomeMsgType===e.NORMAL_WORD?a("div",[a("el-form-item",{attrs:{label:"发送内容"}},[a("el-input",{staticClass:"welcome-textarea",attrs:{type:"textarea",maxlength:e.welMsgMaxlength,"show-word-limit":"",autosize:{minRows:10,maxRows:50},placeholder:"请输入欢迎语"},model:{value:e.form.welcomeMsg,callback:function(t){e.$set(e.form,"welcomeMsg",t)},expression:"form.welcomeMsg"}}),a("div",{staticClass:"quick-actions"},[a("span",{on:{click:function(t){return e.handeAddTextClick("#客户昵称#")}}},[e._v("#客户昵称#")]),a("span",{on:{click:function(t){return e.handeAddTextClick("#员工姓名#")}}},[e._v("#员工姓名#")])]),a("AddAppendixBtn",{attrs:{"sub-title":e.subTitle,"limit-select-length":e.limitSelectLength,"max-appendix-num":e.MAX_APPENDIX_NUM,"appendix-list":e.appendixList},on:{"update:appendixList":function(t){e.appendixList=t},"update:appendix-list":function(t){e.appendixList=t}}})],1)],1):a("div",[a("el-form-item",{attrs:{label:"兑换活动",prop:"exchangeActivities"}},[a("div",[a("el-button",{staticClass:"mr10",attrs:{icon:"el-icon-plus",plain:"",size:"mini"},on:{click:function(t){e.dialogVisibleActivityPopup=!0}}},[e._v(e._s(e.activeList.length?"修改":"选择")+"活动")]),e._l(e.activeList,(function(t,i){return a("el-tag",{key:i,attrs:{size:"medium",closable:""},on:{close:e.delTag}},[e._v(e._s(t.activityName))])}))],2)]),a("el-form-item",{attrs:{label:"发送内容",prop:"sendValue"}},[a("ReferCode",{attrs:{type:"staffAdd","code-msg":e.codeMsg,"code-material-list":e.codeMaterialList},on:{"update:codeMsg":function(t){e.codeMsg=t},"update:code-msg":function(t){e.codeMsg=t},"update:codeMaterialList":function(t){e.codeMaterialList=t},"update:code-material-list":function(t){e.codeMaterialList=t}}})],1)],1),a("p",{staticClass:"config-title",staticStyle:{"margin-bottom":"16px"}},[e._v("添加客户设置")]),a("el-alert",{attrs:{title:"若员工在客户端设置 -> 隐私中开启了“加我为联系人”不需要验证,则该功能将失效",type:"warning",closable:!1}}),a("el-form-item",{attrs:{label:"自动通过",prop:"skipVerify"}},[a("div",[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.isAutoPass,callback:function(t){e.$set(e.form,"isAutoPass",t)},expression:"form.isAutoPass"}}),a("span",{staticClass:"we-emple-code-tags-tip"},[e._v("开启后,客户扫码添加使用人员时无需确认,自动同意添加请求")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:e.form.isAutoPass,expression:"form.isAutoPass"}],staticClass:"add-time"},[a("el-alert",{attrs:{title:"在生效时段外,客户扫码添加,需要使用人员手动同意添加请求",type:"warning",closable:!1}}),a("el-form-item",{attrs:{label:"生效时间段","label-width":"82px"}},[a("el-radio-group",{model:{value:e.form.skipVerify,callback:function(t){e.$set(e.form,"skipVerify",t)},expression:"form.skipVerify"}},[a("el-radio",{attrs:{label:e.SKIP_VERIFY["allDay"]}},[e._v("全天")]),a("el-radio",{attrs:{label:e.SKIP_VERIFY["timeAdd"]}},[e._v("选择时间段")])],1),e.form.skipVerify===e.SKIP_VERIFY["timeAdd"]?a("el-time-picker",{attrs:{"is-range":"","value-format":"HH:mm",format:"HH:mm","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",placeholder:"选择时间范围"},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}}):e._e()],1)],1)])],1),a("div",{staticClass:"preview-wrap"},[a("el-image",{staticStyle:{width:"180px",height:"180px"},attrs:{src:e.form.qrCode||i("677a"),fit:"fit"}}),a("div",{staticClass:"tip mb20"},[e._v("二维码预览")]),e.form.welcomeMsg||e.materialSelected||e.appendixList.length?a("PhoneDialog",{attrs:{message:e.form.welcomeMsg,"is-other":!!e.materialSelected,"msg-list":e.appendixList}},[a("el-image",{staticClass:"phone-dialog-image",attrs:{src:e.materialSelected,fit:"fit"}})],1):e._e()],1)],1)],1),a("div",{staticClass:"wrap-footer"},[a("RequestButton",{attrs:{type:"primary","request-method":e.submit,"button-type":"save"}},[e._v("保存")])],1),a("SelectUser",{key:e.form.codeType,attrs:{visible:e.dialogVisibleSelectUser,title:"选择使用员工","is-only-leaf":2!==e.form.codeType,"is-sigle-select":1==e.form.codeType,"selected-user-list":e.form.weEmpleCodeUseScops||[],"department-id-key":e.DEPARTMENT_ID_KEY},on:{"update:visible":function(t){e.dialogVisibleSelectUser=t},success:e.selectedUser}}),a("ActivityPopup",{attrs:{visible:e.dialogVisibleActivityPopup,"selected-active-list":e.activeList},on:{"update:visible":function(t){e.dialogVisibleActivityPopup=t},success:e.selectedActivity}}),a("SelectTag",{attrs:{visible:e.dialogVisibleSelectTag,selected:e.form.weEmpleCodeTags,type:"search","info-msg":"通过活码添加员工的客户,将被自动打上选中的标签","is-mandatory":0,"is-show-add":!0},on:{"update:visible":function(t){e.dialogVisibleSelectTag=t},success:e.submitSelectTag}}),a("el-dialog",{key:"a",attrs:{title:"选择欢迎语",visible:e.dialogVisibleSelectWel,width:"500","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisibleSelectWel=t}}},[a("div",[a("el-input",{staticClass:"welcome-input",attrs:{placeholder:"请输入关键字"},model:{value:e.welQuery.welcomeMsg,callback:function(t){e.$set(e.welQuery,"welcomeMsg",t)},expression:"welQuery.welcomeMsg"}},[a("el-button",{attrs:{slot:"append"},on:{click:e.getWelList},slot:"append"},[e._v("查询")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.welLoading,expression:"welLoading"}],ref:"table",attrs:{data:e.welList,"max-height":300,"show-header":!1,"highlight-current-row":""},on:{"current-change":e.handleCurrentChange}},[a("el-table-column",{attrs:{property:"welcomeMsg","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e.welSelected.id===i.id?a("i",{staticClass:"el-icon-check",staticStyle:{color:"rgb(65, 133, 244)","font-size":"25px"}}):e._e()]}}])})],1)],1),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogVisibleSelectWel=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.selectWelcome}},[e._v("确 定")])],1)])],1)},n=[],r=i("5530"),s=(i("99af"),i("c740"),i("d81d"),i("a434"),i("b0c0"),i("dca8"),i("b64b"),i("d3b7"),i("159b"),i("62db")),o=i("b775"),l=window.CONFIG.services.wecom+"/tlp";function c(e){return Object(o["a"])({url:l+"/list",params:e})}var u=i("8bd5"),d=i("c958"),p=i("aada"),f=i("52a9"),A=i("cf45"),h=i("dd70"),m=i("1698"),g=i("515a"),v=i("5db3"),b=i("4887"),y=i("b85a"),_={components:{PhoneDialog:u["a"],SelectTag:p["a"],ActivityPopup:y["a"],AddAppendixBtn:b["a"],SelectUser:d["a"],RequestButton:f["a"],TagUserShow:g["a"],ReferCode:v["a"]},data:function(){var e=this;return{NORMAL_WORD:h["xc"],ACTIVE_WORD:h["a"],MAX_APPENDIX_NUM:h["Tb"],dialogVisibleSelectUser:!1,dialogVisibleSelectTag:!1,dialogVisibleSelectMaterial:!1,dialogVisibleSelectWel:!1,loading:!1,form:{codeType:1,qrCode:"",isAutoPass:1,weEmpleCodeTags:[],weEmpleCodeUseScops:[],scenario:"",isAutoSetRemark:0,remarkType:m["c"]["previous"],remarkName:"",welcomeMsg:"",skipVerify:h["dd"]["allDay"],tagFlag:0,welcomeMsgType:h["xc"]},time:["00:00","23:59"],query:{pageNum:1,pageSize:h["Ic"],categoryId:"",search:"",mediaType:h["cc"],isExpire:!1},materialSelected:"",welQuery:{welcomeMsg:""},welLoading:!1,welList:[],welSelected:{},welMsgMaxlength:m["b"],type:h["P"],MEDIA_TYPE_POSTER:h["cc"],MEDIA_TYPE:h["Xb"],MESSAGE_MEDIA_TYPE:h["ic"],appendixList:[],subTitle:"已添加 0 个附件,还可选择 9 个",limitSelectLength:h["Tb"],multipleUserValue:h["P"][h["k"]],disableMultipleUserRadio:!1,rules:Object.freeze({scenario:[{required:!0,message:"请输入活码使用场景",trigger:"blur"}],weEmpleCodeUseScops:[{type:"array",required:!0,message:"请选择使用员工",trigger:"change"}],remarkName:[{validator:function(t,i,a){e.form.isAutoSetRemark&&!i.length?a(new Error("请输入备注")):a()},trigger:"blur"}],exchangeActivities:[{required:!0,message:"该项为必填项"}]}),SKIP_VERIFY:h["dd"],qrCode:"",dragSource:void 0,dragTarget:void 0,SCOPELIST_TYPE:h["Uc"],DEPARTMENT_ID_KEY:m["a"],REMARK_TYPE:m["c"],activeList:[],dialogVisibleActivityPopup:!1,codeMaterialList:{codeSuccessMaterialList:[],codeFailMaterialList:[],codeRepeatMaterialList:[]},codeMsg:{codeSuccessMsg:"",codeFailMsg:"",codeRepeatMsg:""}}},watch:{appendixList:function(e){this.subTitle="已添加 ".concat(e.length," 个附件,还可选择 ").concat(h["Tb"]-e.length," 个"),this.limitSelectLength=h["Tb"]-e.length}},created:function(){var e=this.$route.query.id;e&&this.getDetail(e)},beforeUpdate:function(){var e=Object(r["a"])(Object(r["a"])({},this.$options.data().form),{},{activeList:this.$options.data().activeList,codeMaterialList:this.$options.data().codeMaterialList,codeMsg:this.$options.data().codeMsg,appendixList:this.$options.data().appendixList}),t=Object(r["a"])(Object(r["a"])({},this.form),{},{activeList:this.activeList,codeMaterialList:this.codeMaterialList,codeMsg:this.codeMsg,appendixList:this.appendixList});Object(A["k"])(e,t)},methods:{getDetail:function(e){var t=this;this.loading=!0,Object(s["g"])(e).then((function(e){var i=e.data;if(i.weEmpleCodeUseScops=i.weEmpleCodeUseScops.map((function(e){return Object(r["a"])(Object(r["a"])({},e),{},{userId:e.businessIdType===h["Uc"].USER?e.businessId:void 0,name:e.businessName})})),t.form=i,t.appendixList=i.materialList||[],t.time[0]=i.effectTimeOpen?i.effectTimeOpen:"00:00",t.time[1]=i.effectTimeClose?i.effectTimeClose:"00:00",t.materialSelected=null==i.weMaterial?"":i.weMaterial.materialUrl,t.loading=!1,t.qrCode=i.qrCode,i.id&&i.codeType===h["l"]&&(t.disableMultipleUserRadio=!0),i.welcomeMsgType){t.activeList=i.codeActivity?[i.codeActivity]:[];var a=i.codeSuccessMaterialList,n=i.codeRepeatMaterialList,s=i.codeFailMaterialList,o=i.codeFailMsg,l=i.codeRepeatMsg,c=i.codeSuccessMsg;t.codeMaterialList.codeSuccessMaterialList=a,t.codeMaterialList.codeFailMaterialList=s,t.codeMaterialList.codeRepeatMaterialList=n,t.codeMsg.codeSuccessMsg=c,t.codeMsg.codeFailMsg=o,t.codeMsg.codeRepeatMsg=l}}))},getWelList:function(){var e=this;this.welLoading=!0,c(this.welQuery).then((function(t){var i=t.rows;e.welList=i,e.$refs.table.$forceUpdate(),e.welLoading=!1}))},codeTypeChange:function(){this.form.weEmpleCodeUseScops=[],this.$route.query.id||(this.form.qrCode="")},selectedUser:function(e){var t=this,i={userIds:[],departmentIds:[]};this.form.weEmpleCodeUseScops=e.map((function(e){return e.userId&&i.userIds.push(e.userId),!e.userId&&i.departmentIds.push(e[m["a"]]),Object(r["a"])(Object(r["a"])({},e),{},{businessId:e.userId||e[m["a"]],id:void 0,businessName:e.name,businessIdType:e.userId?t.SCOPELIST_TYPE["USER"]:t.SCOPELIST_TYPE["DEPARTMENT"]})})),i.userIds+="",i.departmentIds+="",this.$route.query.id||Object(s["j"])(i).then((function(e){var i=e.data;t.$set(t.form,"qrCode",i.qr_code)}))},submitSelectTag:function(e){this.dialogVisibleSelectTag=!1,this.form.weEmpleCodeTags=e.map((function(e){return{tagId:e.tagId,tagName:e.name||e.tagName}}))},selectWelcome:function(){this.form.welcomeMsg=this.welSelected.welcomeMsg,this.form.mediaId=this.welSelected.mediaId,this.materialSelected=this.welSelected.materialUrl,this.dialogVisibleSelectWel=!1},handleCurrentChange:function(e){e&&(this.welSelected=e)},dealAttachemnts:function(e){var t=[];return e.forEach((function(e){var i={};i.welcomeMsgType=e.mediaType,t.push(e)})),t},handeAddTextClick:function(e){this.form.welcomeMsg.length+e.length<=this.welMsgMaxlength&&(this.form.welcomeMsg=this.form.welcomeMsg+e)},submit:function(){var e=this;this.$refs["form"].validate((function(t){if(!t)return Object(A["i"])(e.$store,"save"),!1;if(!e.form.weEmpleCodeUseScops.length)return e.msgError("请至少选择一名使用员工"),void Object(A["i"])(e.$store,"save");if(e.form.tagFlag&&!e.form.weEmpleCodeTags.length)return e.msgError("请至少选择一个客户标签"),void Object(A["i"])(e.$store,"save");if(e.form.materialList=e.dealAttachemnts(e.appendixList),e.form.isAutoPass&&e.form.skipVerify===m["d"]&&(e.form.effectTimeOpen=e.time[0],e.form.effectTimeClose=e.time[1]),e.form.isAutoPass||(e.form.skipVerify=m["e"]),e.form.welcomeMsgType){e.form.codeActivity=e.activeList[0];var i=e.codeMaterialList,a=i.codeFailMaterialList,n=i.codeSuccessMaterialList,o=i.codeRepeatMaterialList,l=e.codeMsg,c=l.codeFailMsg,u=l.codeSuccessMsg,d=l.codeRepeatMsg;if(e.form=Object(r["a"])(Object(r["a"])({},e.form),{},{codeSuccessMaterialList:n,codeRepeatMaterialList:o,codeFailMaterialList:a,codeFailMsg:c,codeRepeatMsg:d,codeSuccessMsg:u}),!e.activeList.length)return e.msgError("请选择兑换活动"),void Object(A["i"])(e.$store,"save");if(!(u||c||d))return e.msgError("请至少填写一项发送内容"),void Object(A["i"])(e.$store,"save")}e.loading=!0,(e.form.id?s["m"]:s["a"])(e.form).then((function(){e.$store.commit("SET_ADD_FLAG",!e.form.id),e.qrCode!==e.form.qrCode&&e.form.id?e.msgSuccess("活码已更新,请重新下载"):e.msgSuccess("操作成功"),e.$router.back()})).finally((function(){Object(A["i"])(e.$store,"save"),e.loading=!1}))}))},selectedActivity:function(e){this.activeList=e},delTag:function(){this.activeList=[]},welcomeMsgTypeChange:function(){var e=this;this.form.welcomeMsg="",this.appendixList=[],Object.keys(this.codeMsg).forEach((function(t){e.codeMsg[t]=""})),Object.keys(this.codeMaterialList).forEach((function(t){e.codeMaterialList[t]=[]}))},deleteTag:function(e){var t=this.form.weEmpleCodeTags.findIndex((function(t){return t.tagId===e.tagId}));this.form.weEmpleCodeTags.splice(t,1)},handleClose:function(e){this.form.weEmpleCodeUseScops.splice(e,1)}}},w=_,C=(i("e677"),i("b3c3"),i("2877")),x=Object(C["a"])(w,a,n,!1,null,"56b1a0a6",null);t["default"]=x.exports},eace:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-alert",{style:"width: 408px;margin-top:0;",attrs:{title:"同时满足以下条件的客户执行SOP规则",type:"warning",closable:!1}}),i("el-form-item",{staticStyle:{padding:"10px 0"},attrs:{label:"性别","label-width":"68px"}},[i("el-radio-group",{model:{value:e.customerInfo.gender,callback:function(t){e.$set(e.customerInfo,"gender",t)},expression:"customerInfo.gender"}},[i("el-radio",{attrs:{label:e.GENDER_TYPE["allGender"]}},[e._v("全部")]),i("el-radio",{attrs:{label:e.GENDER_TYPE["male"]}},[e._v("男性")]),i("el-radio",{attrs:{label:e.GENDER_TYPE["feMale"]}},[e._v("女性")]),i("el-radio",{attrs:{label:e.GENDER_TYPE["unKnown"]}},[e._v("未知性别")])],1)],1),i("el-form-item",{staticStyle:{padding:"10px 0"},attrs:{label:"客户标签","label-width":"68px"}},[i("el-button",{attrs:{icon:"el-icon-plus"},on:{click:e.openAddTag}},[e._v("添加标签")]),e._l(e.customerInfo.tagList,(function(t,a){return i("el-tag",{key:a,attrs:{type:"info",closable:""},on:{close:function(i){return e.deleteOneSelectTag("tag",t)}}},[e._v(e._s(t.name))])}))],2),i("el-form-item",{staticStyle:{padding:"10px 0"},attrs:{label:"添加时间","label-width":"68px"}},[i("el-date-picker",{staticStyle:{width:"320px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},model:{value:e.customerInfo.addTime,callback:function(t){e.$set(e.customerInfo,"addTime",t)},expression:"customerInfo.addTime"}})],1),e.sopType===e.SOP_TYPE["activity"]?i("el-form-item",{staticStyle:{padding:"10px 0"},attrs:{label:"所属员工","label-width":"68px"}},[i("el-button",{attrs:{icon:"el-icon-plus"},on:{click:function(t){e.dialogVisibleSelectUser=!0}}},[e._v(e._s(0===e.customerInfo.useStaff.length?"添加成员":"修改成员"))]),e._l(e.customerInfo.useStaff,(function(t,a){return i("el-tag",{key:a,staticClass:"user-tag iaic",attrs:{closable:""},on:{close:function(t){return e.handleClose(a)}}},[i("TagUserShow",{attrs:{"show-icon":!t.userId,name:t.name}})],1)}))],2):e._e(),i("el-form-item",{staticStyle:{padding:"10px 0"},attrs:{label:"其他属性","label-width":"68px"}},[i("div",{staticClass:"flex customer-property-list"},e._l(e.customerInfo.customPropertyList,(function(t,a){return i("div",{key:a,staticClass:"mr10 mb10"},["出生日期"===t.name?i("BasePropertyItem",{attrs:{item:t,list:e.customerInfo.customPropertyList,index:a,"edit-status":!0,"is-customer-scoped":!0},on:{"update:list":function(t){return e.$set(e.customerInfo,"customPropertyList",t)}}}):i("CustomPropertyItem",{attrs:{item:t,list:e.customerInfo.customPropertyList,index:a,"edit-status":!0,"select-single-radio":!0,"is-customer-scoped":!0},on:{"update:list":function(t){return e.$set(e.customerInfo,"customPropertyList",t)}}})],1)})),0),i("div",{staticClass:"add-other-property",on:{click:function(t){e.selectPropertyVisible=!0}}},[i("i",{staticClass:"el-icon-plus"})])]),i("el-form-item",{staticStyle:{padding:"10px 0 0"},attrs:{label:"过滤标签","label-width":"68px"}},[i("el-button",{attrs:{icon:"el-icon-plus"},on:{click:e.openFilterTag}},[e._v("添加标签")]),e._l(e.customerInfo.filterTagList,(function(t,a){return i("el-tag",{key:a,attrs:{type:"info",closable:""},on:{close:function(i){return e.deleteOneSelectTag("filter",t)}}},[e._v(e._s(t.name))])})),i("div",{staticClass:"range-item-tip"},[e._v("若客户包含过滤标签,则不会收到本次消息")])],2),i("SelectTag",{attrs:{visible:e.dialogVisibleSelectTag,title:"选择标签",type:"search","info-msg":"筛选出被打上选中标签的客户,执行SOP",selected:"filter"===e.tagType?e.customerInfo.filterTagList:e.customerInfo.tagList,"tag-type":"customer"},on:{"update:visible":function(t){e.dialogVisibleSelectTag=t},success:e.submitSelectTag}}),i("SelectUser",{attrs:{visible:e.dialogVisibleSelectUser,title:"选择使用员工","is-dep-linkage":"","is-only-leaf":!1,"selected-user-list":e.customerInfo.useStaff},on:{"update:visible":function(t){e.dialogVisibleSelectUser=t},success:e.selectedUser}}),i("SelectProperty",{attrs:{visible:e.selectPropertyVisible,"selected-value":e.customerInfo.customPropertyList},on:{"update:visible":function(t){e.selectPropertyVisible=t},submit:e.handleSelectProperty}})],1)},n=[],r=i("2909"),s=i("5530"),o=(i("7db0"),i("c740"),i("d81d"),i("a434"),i("a9e3"),i("dca8"),i("d3b7"),i("c958")),l=i("3cb1"),c=i("423f"),u=i("cf45"),d=i("dd70"),p=i("515a"),f=i("06b4"),A=i("aada"),h=i("2ef0"),m={allGender:d["eb"],male:d["cb"],feMale:d["bb"],unKnown:d["fb"]},g={components:{CustomPropertyItem:l["default"],BasePropertyItem:c["default"],TagUserShow:p["a"],SelectProperty:f["default"],SelectTag:A["a"],SelectUser:o["a"]},props:{customerScopeInfo:{type:Object,default:function(){}}},data:function(){return{GENDER_TYPE:Object.freeze(m),SOP_TYPE:Object.freeze(d["ed"]),dialogVisibleSelectTag:!1,dialogVisibleSelectUser:!1,selectPropertyVisible:!1,tagType:"tag",customerInfo:{gender:null,tagList:[],addTime:[],useEmployeesList:[],useDepartmentList:[],customPropertyList:[],filterTagList:[],useStaff:[]},sopType:null}},watch:{customerInfo:{handler:function(e){this.$emit("updateCustomerScopeInfo",e)},deep:!0}},created:function(){var e=this.$route.query;this.customerInfo=Object(s["a"])(Object(s["a"])({},this.customerInfo),this.customerScopeInfo),this.sopType=Number(e.sopType),Number(e.sopType)!==d["ed"]["activity"]&&(this.customerInfo.gender=m["allGender"])},beforeUpdate:function(){Object(u["k"])(this.$options.data().customerInfo,this.customerInfo)},methods:{openAddTag:function(){this.dialogVisibleSelectTag=!0,this.tagType="tag"},openFilterTag:function(){this.dialogVisibleSelectTag=!0,this.tagType="filter"},deleteOneSelectTag:function(e,t){var i="filter"===e?Object(r["a"])(this.customerInfo.filterTagList):Object(r["a"])(this.customerInfo.tagList),a=i.findIndex((function(e){return e.tagId===t.tagId}));i.splice(a,1),this.customerInfo["filter"===e?"filterTagList":"tagList"]=i},selectedUser:function(e){this.customerInfo.useStaff=e;var t=Object(u["F"])(e);this.customerInfo.useEmployeesList=t.useEmployeesList,this.customerInfo.useDepartmentList=t.useDepartmentList},handleSelectProperty:function(e){var t=this,i=Object(h["cloneDeep"])(e).map((function(e){var i=t.customerInfo.customPropertyList.find((function(t){return t.id===e.id}));return i||e}));this.customerInfo.customPropertyList=i},submitSelectTag:function(e){this.customerInfo["filter"===this.tagType?"filterTagList":"tagList"]=e,this.dialogVisibleSelectTag=!1},handleClose:function(e){this.customerInfo.useStaff.splice(e,1)}}},v=g,b=(i("bb92"),i("2877")),y=Object(b["a"])(v,a,n,!1,null,"48c859ba",null);t["default"]=y.exports},eb20:function(e,t,i){"use strict";i("6e3d")},eb6bb:function(e,t,i){"use strict";i("bdc4")},ec26:function(e,t,i){"use strict";var a,n=new Uint8Array(16);function r(){if(!a&&(a="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!a))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(n)}var s=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function o(e){return"string"===typeof e&&s.test(e)}for(var l=o,c=[],u=0;u<256;++u)c.push((u+256).toString(16).substr(1));function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!l(i))throw TypeError("Stringified UUID is invalid");return i}var p=d;function f(e,t,i){e=e||{};var a=e.random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){i=i||0;for(var n=0;n<16;++n)t[i+n]=a[n];return t}return p(a)}t["a"]=f},ec55:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"errPage-container"},[i("el-button",{staticClass:"pan-back-btn",attrs:{icon:"arrow-left"},on:{click:e.back}},[e._v(" 返回 ")]),i("el-row",[i("el-col",{attrs:{span:12}},[i("h1",{staticClass:"text-jumbo text-ginormous"},[e._v(" 401错误! ")]),i("h2",[e._v("您没有访问权限!")]),i("h6",[e._v("对不起,您没有访问权限,请不要进行非法操作!您可以返回主页面")]),i("ul",{staticClass:"list-unstyled"},[i("li",{staticClass:"link-type"},[i("router-link",{attrs:{to:"/"}},[e._v(" 回首页 ")])],1)])]),i("el-col",{attrs:{span:12}},[i("img",{attrs:{src:e.errGif,width:"313",height:"428",alt:"Girl has dropped her ice cream."}})])],1)],1)},n=[],r=i("cc6c"),s=i.n(r),o={name:"Page401",data:function(){return{errGif:s.a+"?"+ +new Date}},methods:{back:function(){this.$route.query.noGoBack?this.$router.push({path:"/"}):this.$router.go(-1)}}},l=o,c=(i("52ae"),i("2877")),u=Object(c["a"])(l,a,n,!1,null,"06d41152",null);t["default"]=u.exports},eccc:function(e,t,i){"use strict";i.d(t,"c",(function(){return r})),i.d(t,"e",(function(){return s})),i.d(t,"a",(function(){return o})),i.d(t,"d",(function(){return l})),i.d(t,"b",(function(){return c}));var a=i("b775"),n=window.CONFIG.services.wecom+"/batchTagTask";function r(e){return Object(a["a"])({url:n+"/import",method:"POST",data:e})}function s(e){return Object(a["a"])({url:n+"/list",method:"GET",params:e})}function o(e){return Object(a["a"])({url:n+"/delete",method:"DELETE",params:e})}function l(e){return Object(a["a"])({url:n+"/detail",method:"GET",params:e})}function c(e){return Object(a["a"])({url:n+"/export",method:"POST",data:e})}},ecdf:function(e,t,i){},ece1:function(e,t,i){},ed12:function(e,t,i){e.exports=i.p+"static/img/friends-step3-3.e59f8c5b.png"},ed69:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"basicInfoForm",attrs:{model:e.info,rules:e.rules,"label-width":"150px"}},[i("el-row",[i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"表名称",prop:"tableName"}},[i("el-input",{attrs:{placeholder:"请输入仓库名称"},model:{value:e.info.tableName,callback:function(t){e.$set(e.info,"tableName",t)},expression:"info.tableName"}})],1)],1),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"表描述",prop:"tableComment"}},[i("el-input",{attrs:{placeholder:"请输入"},model:{value:e.info.tableComment,callback:function(t){e.$set(e.info,"tableComment",t)},expression:"info.tableComment"}})],1)],1),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"实体类名称",prop:"className"}},[i("el-input",{attrs:{placeholder:"请输入"},model:{value:e.info.className,callback:function(t){e.$set(e.info,"className",t)},expression:"info.className"}})],1)],1),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"作者",prop:"functionAuthor"}},[i("el-input",{attrs:{placeholder:"请输入"},model:{value:e.info.functionAuthor,callback:function(t){e.$set(e.info,"functionAuthor",t)},expression:"info.functionAuthor"}})],1)],1),i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"备注",prop:"remark"}},[i("el-input",{attrs:{type:"textarea",rows:3},model:{value:e.info.remark,callback:function(t){e.$set(e.info,"remark",t)},expression:"info.remark"}})],1)],1)],1)],1)},n=[],r={name:"BasicInfoForm",props:{info:{type:Object,default:null}},data:function(){return{rules:{tableName:[{required:!0,message:"请输入表名称",trigger:"blur"}],tableComment:[{required:!0,message:"请输入表描述",trigger:"blur"}],className:[{required:!0,message:"请输入实体类名称",trigger:"blur"}],functionAuthor:[{required:!0,message:"请输入作者",trigger:"blur"}]}}}},s=r,o=i("2877"),l=Object(o["a"])(s,a,n,!1,null,null,null);t["default"]=l.exports},ed71:function(e,t,i){e.exports=i.p+"static/img/contact-step1-1.6043c2f7.jpg"},ed8c:function(e,t,i){},edb4:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"form-setting"},[i("el-form",{attrs:{"label-position":"top","label-width":"80px",model:e.filedForm}},[i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("必填")]),i("el-switch",{model:{value:e.filedForm.required,callback:function(t){e.$set(e.filedForm,"required",t)},expression:"filedForm.required"}})],1)]),i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("标题")])]),i("el-input",{attrs:{resize:"none","show-word-limit":"",maxlength:100,type:"textarea",rows:6},model:{value:e.filedForm.title,callback:function(t){e.$set(e.filedForm,"title",t)},expression:"filedForm.title"}})],1),i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("选项")])]),e._l(e.filedForm.options,(function(t){return i("div",{key:t.id,staticClass:"form-item-options"},[i("el-input",{attrs:{resize:"none","show-word-limit":"",maxlength:50,type:"textarea",rows:3},model:{value:t.label,callback:function(i){e.$set(t,"label",i)},expression:"item.label"}}),i("i",{directives:[{name:"show",rawName:"v-show",value:e.filedForm.options.length>1,expression:"filedForm.options.length > 1"}],staticClass:"el-icon-remove-outline ml10",on:{click:function(i){return e.removeOptions(t)}}})],1)})),i("el-button",{staticStyle:{padding:"9px"},attrs:{icon:"el-icon-plus"},on:{click:e.addOptions}},[e._v("添加选项")])],2),i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("可选数量")])]),i("div",{staticClass:"select-nums mb10"},[i("span",[e._v("最少")]),i("el-select",{attrs:{placeholder:"不限制"},model:{value:e.filedForm.minSelectNums,callback:function(t){e.$set(e.filedForm,"minSelectNums",t)},expression:"filedForm.minSelectNums"}},e._l(e.selectOptionsNums,(function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value,disabled:!!e.filedForm.maxSelectNums&&!(t.value<=e.filedForm.maxSelectNums)}})})),1)],1),i("div",{staticClass:"select-nums"},[i("span",[e._v("最多")]),i("el-select",{attrs:{placeholder:"请选择"},model:{value:e.filedForm.maxSelectNums,callback:function(t){e.$set(e.filedForm,"maxSelectNums",t)},expression:"filedForm.maxSelectNums"}},e._l(e.selectOptionsNums,(function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value,disabled:!!e.filedForm.minSelectNums&&!(t.value>=e.filedForm.minSelectNums)}})})),1)],1)])],1)],1)},n=[],r=i("2909"),s=i("5530"),o=(i("99af"),i("4de4"),i("d81d"),i("d3b7"),i("ec26")),l=i("81f6"),c={components:{},props:{component:{type:Object,default:function(){}}},data:function(){return{filedForm:{required:!0,title:"下拉框",options:[],minSelectNums:"",maxSelectNums:""},selectOptionsNums:[]}},watch:{filedForm:{deep:!0,handler:function(e){l["a"].$emit("changeFiledSettingValue",Object(s["a"])(Object(s["a"])({},e),this.filedForm))}}},created:function(){this.initFiledForm()},mounted:function(){this.filedForm=Object(s["a"])(Object(s["a"])({},this.filedForm),this.component),this.setSelectOptionsNums()},methods:{initFiledForm:function(){for(var e=3,t=0;t<e;t++)this.addOptions()},removeOptions:function(e){this.filedForm.options=this.filedForm.options.filter((function(t){return t.id!==e.id})),this.setSelectOptionsNums()},addOptions:function(){var e=this.filedForm.options.length+1;this.filedForm.options.push({id:Object(o["a"])(),label:"选项"+e}),this.setSelectOptionsNums()},setSelectOptionsNums:function(){this.selectOptionsNums=[{value:"",label:"不限制"}].concat(Object(r["a"])(this.filedForm.options.map((function(e,t){return{value:t+1,label:"".concat(t+1,"项")}}))))}}},u=c,d=(i("3f9f"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"0d9ac200",null);t["default"]=p.exports},edb9a:function(e,t,i){},edd2:function(e,t,i){"use strict";i("187b")},ede5:function(e,t,i){"use strict";i("af0d")},ede8:function(e,t,i){},ee02:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"msg-content"},[e._t("default"),e.isRevoke?i("span",{staticClass:"msg-type-revoke"},[e._v("( 已撤回 )")]):e._e()],2)},n=[],r={props:{isRevoke:{type:Boolean,default:!1}}},s=r,o=(i("f6ae"),i("2877")),l=Object(o["a"])(s,a,n,!1,null,"78e6d222",null);t["default"]=l.exports},ee31:function(e,t,i){},ee46:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"form",staticClass:"user-pwd-form",attrs:{model:e.user,rules:e.rules,"label-width":"80px"}},[i("el-form-item",{attrs:{label:"旧密码",prop:"oldPassword"}},[i("el-input",{attrs:{placeholder:"请输入旧密码",type:"password"},model:{value:e.user.oldPassword,callback:function(t){e.$set(e.user,"oldPassword",t)},expression:"user.oldPassword"}})],1),i("el-form-item",{attrs:{label:"新密码",prop:"newPassword"}},[i("el-input",{attrs:{placeholder:"请输入新密码",type:"password"},model:{value:e.user.newPassword,callback:function(t){e.$set(e.user,"newPassword",t)},expression:"user.newPassword"}})],1),i("el-form-item",{attrs:{label:"确认密码",prop:"confirmPassword"}},[i("el-input",{attrs:{placeholder:"请确认密码",type:"password"},model:{value:e.user.confirmPassword,callback:function(t){e.$set(e.user,"confirmPassword",t)},expression:"user.confirmPassword"}})],1),i("el-form-item",[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.submit}},[e._v("更新密码")])],1)],1)},n=[],r=i("c0c7"),s=i("21f2"),o={data:function(){var e=this,t=function(t,i,a){e.user.newPassword!==i?a(new Error("两次输入的密码不一致")):a()};return{test:"1test",user:{oldPassword:void 0,newPassword:void 0,confirmPassword:void 0},rules:{oldPassword:[{required:!0,message:"旧密码不能为空",trigger:"blur"}],newPassword:[{required:!0,message:"新密码不能为空",trigger:"blur"},{min:6,max:20,message:"长度在 6 到 20 个字符",trigger:"blur"}],confirmPassword:[{required:!0,message:"确认密码不能为空",trigger:"blur"},{required:!0,validator:t,trigger:"blur"}]}}},methods:{submit:function(){var e=this;this.$refs["form"].validate((function(t){if(t){var i,a=null===(i=e.$store.state)||void 0===i||null===(i=i.secretKey)||void 0===i?void 0:i.RSAPublicKey;Object(r["c"])(Object(s["a"])(e.user.oldPassword,a),Object(s["a"])(e.user.newPassword,a)).then((function(t){e.msgSuccess("修改成功")}))}}))},close:function(){this.$store.dispatch("tagsView/delView",this.$route),this.$router.push({path:"/index"})}}},l=o,c=(i("b0bb"),i("2877")),u=Object(c["a"])(l,a,n,!1,null,"01d38c98",null);t["default"]=u.exports},eea2:function(e,t,i){e.exports=i.p+"static/img/login_logo.a189f728.svg"},eed6:function(e,t,i){var a=i("2c66");function n(e){return e&&e.length?a(e):[]}e.exports=n},ef0c:function(e,t,i){"use strict";i("0ed0")},ef68:function(e,t,i){e.exports=i.p+"static/img/appid-demo-1-1.3ce92b38.svg"},ef68d:function(e,t,i){"use strict";i("ab76")},ef81:function(e,t,i){e.exports=i.p+"static/img/linkUseTip-3-1.c8ca4b6e.png"},ef90:function(e,t,i){},ef94:function(e,t,i){e.exports=i.p+"static/img/moment.499cdcfe.png"},efce:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"form-detail-page"},[a("div",{staticClass:"page-card mb10"},[a("ReturnPage"),a("div",{staticClass:"page-header"},[a("div",{staticClass:"header-left"},[a("div",{staticClass:"header-left-item"},[a("span",{staticClass:"label"},[e._v("表单链接:")]),a("div",{staticClass:"form-link"},[a("div",{staticClass:"msg-card-info"},[a("div",{staticClass:"msg-card-title"},[e._v(e._s(e.formDetail.formName))]),a("div",{staticClass:"msg-card-desc intwoline"},[e._v(e._s(e.formDetail.description))])]),a("svg-icon",{attrs:{"icon-class":"form-preview","class-name":"form-preview"}})],1),a("span",{staticClass:"preview-form",on:{click:function(t){e.previewDialogVisible=!0}}},[e._v("预览")])]),e.isThirdApplication?a("div",{staticClass:"header-left-item"},[a("span",{staticClass:"label"},[e._v("公众号:")]),e.formDetail.weChatPublicPlatformNickName?a("div",{staticClass:"form-link"},[a("el-image",{staticStyle:{width:"40px",height:"40px"},attrs:{src:e.formDetail.weChatPublicPlatformHeadImg}}),a("div",{staticClass:"fcc ml10"},[a("span",[e._v(e._s(e.formDetail.weChatPublicPlatformNickName))])])],1):e._e()]):e._e(),a("div",{staticClass:"mb10"},[a("span",{staticClass:"label"},[e._v("截止时间:")]),e._v(" "+e._s(e.formDetail.deadLineType===e.FORVER_EFFECT?"永久有效":e.formDetail.customDate)+" ")]),a("div",[a("span",{staticClass:"label"},[e._v("提交次数:")]),e._v(" "+e._s(e.SUBMIT_NUMS[e.formDetail.submitCntType])+" ")])]),a("div",{staticClass:"header-right"},[a("div",{staticClass:"header-right-item mb10"},[a("span",{staticClass:"label"},[e._v("提交结果:")]),e.formDetail.submitActionType===e.NOT_JUMP?a("span",[e._v("不跳转")]):e.formDetail.submitActionType===e.JUMP_LINK?a("span",[e._v("跳转链接")]):a("div",{staticClass:"submit-result"},[a("div",{staticClass:"submit-result-image"},[a("span",{staticClass:"mr10"},[e._v("图标")]),a("el-image",{attrs:{src:e.submitResult.iconUrl}})],1),a("div",{staticClass:"submit-result-text"},[a("span",{staticClass:"mr10"},[e._v("文案")]),a("span",[e._v(e._s(e.submitResult.document))])])])]),a("div",{staticClass:"mb10"},[a("span",{staticClass:"label"},[e._v("行为通知:")]),a("el-switch",{attrs:{disabled:""},model:{value:e.formDetail.actionNoteFlag,callback:function(t){e.$set(e.formDetail,"actionNoteFlag",t)},expression:"formDetail.actionNoteFlag"}})],1),a("div",{staticClass:"mb10"},[a("span",{staticClass:"label"},[e._v("轨迹记录:")]),a("el-switch",{attrs:{disabled:""},model:{value:e.formDetail.tractRecordFlag,callback:function(t){e.$set(e.formDetail,"tractRecordFlag",t)},expression:"formDetail.tractRecordFlag"}})],1),a("div",{staticClass:"customer-tag"},[a("span",{staticClass:"label"},[e._v("客户标签:")]),e.labelSetting.clickLabelIdList.length||e.labelSetting.submitLabelIdList.length?a("div",{staticClass:"item-div"},[e.labelSetting.clickLabelIdList.length?a("div",[e._v(" 点击表单 "),e._l(e.labelSetting.clickLabelIdList,(function(t,i){return a("el-tag",{key:i,staticClass:"tag ml5 mb5"},[e._v(e._s(t.tagName||t.name))])}))],2):e._e(),e.labelSetting.submitLabelIdList.length?a("div",{staticClass:"mt10"},[e._v(" 提交表单 "),e._l(e.labelSetting.submitLabelIdList,(function(t,i){return a("el-tag",{key:i,staticClass:"tag ml5 mb5"},[e._v(e._s(t.tagName||t.name))])}))],2):e._e()]):e._e()])])])],1),a("Statistics",{attrs:{"col-list":e.colList,title:"数据总览"}}),a("div",{staticClass:"mt10 page-record bg-white"},[a("div",{staticClass:"operate-button"},[a("el-radio-group",{staticClass:"mb15",attrs:{size:"medium"},on:{input:function(){return e.reset()}},model:{value:e.activeRecord,callback:function(t){e.activeRecord=t},expression:"activeRecord"}},[a("el-radio-button",{attrs:{label:e.CLICK_RECORD["customer"]}},[e._v("客户操作记录")]),a("el-radio-button",{attrs:{label:e.CLICK_RECORD["staff"]}},[e._v("员工发送记录")])],1),a("el-button",{staticClass:"export",attrs:{plain:""},on:{click:e.exportReport}},[e._v("导出报表")])],1),a("div",{staticClass:"search-form"},[a("el-select",{staticClass:"commit-time",staticStyle:{width:"100px"},attrs:{placeholder:"请选择"},model:{value:e.searchForm.timeType,callback:function(t){e.$set(e.searchForm,"timeType",t)},expression:"searchForm.timeType"}},e._l(e.commitTimeOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),a("el-date-picker",{staticStyle:{"border-top-left-radius":"0px","border-bottom-left-radius":"0px",width:"280px"},attrs:{type:"datetimerange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"],"value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.searchForm.dateRange,callback:function(t){e.$set(e.searchForm,"dateRange",t)},expression:"searchForm.dateRange"}}),e.activeRecord===e.CLICK_RECORD["customer"]?[a("el-input",{staticClass:"ml10 mr10",staticStyle:{width:"240px"},attrs:{clearable:"",placeholder:"请输入客户名称"},model:{value:e.searchForm.customerName,callback:function(t){e.$set(e.searchForm,"customerName",t)},expression:"searchForm.customerName"}}),a("el-select",{staticStyle:{width:"240px"},attrs:{clearable:"",placeholder:"请选择点击渠道"},model:{value:e.searchForm.channelType,callback:function(t){e.$set(e.searchForm,"channelType",t)},expression:"searchForm.channelType"}},e._l(e.getChannelTypeOptions(),(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)]:e._e(),e.activeRecord===e.CLICK_RECORD["staff"]?a("el-input",{staticClass:"ml10 mr10",staticStyle:{width:"240px"},attrs:{clearable:"",placeholder:"请输入员工姓名"},model:{value:e.searchForm.userName,callback:function(t){e.$set(e.searchForm,"userName",t)},expression:"searchForm.userName"}}):e._e(),a("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"ml10",attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.search()}}},[e._v("查询")]),a("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.reset()}}},[e._v("重置")])],2),a("div",{staticClass:"search-table"},[a("RightContainer",{scopedSlots:e._u([{key:"data",fn:function(){return[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.recordList}},[a("template",{slot:"empty"},[a("empty-default-icon",{attrs:{length:e.recordList.length}})],1),e.activeRecord===e.CLICK_RECORD["customer"]?[a("el-table-column",{attrs:{label:"客户",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"user-info"},[a("img",{attrs:{src:t.row.externalUserHeadImage,alt:""}}),a("span",{staticClass:"intwoline"},[e._v(e._s(t.row.externalUserName))])])]}}],null,!1,2387372102)}),a("el-table-column",{attrs:{prop:"userName",label:"所属员工",align:"center"}}),a("el-table-column",{attrs:{label:"点击渠道",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e.CLICK_CHANNEL[t.row.channelType]))])]}}],null,!1,1840694665)}),a("el-table-column",{attrs:{prop:"createTime",label:"点击时间",align:"center"}}),a("el-table-column",{attrs:{prop:"commitTime",label:"提交时间",align:"center"}}),a("el-table-column",{attrs:{label:"操作",align:"center",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.openFormDetail(i)}}},[e._v("表单详情")]),a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){return e.checkCustomerInfo(i)}}},[e._v("客户资料")])]}}],null,!1,68018555)})]:[a("el-table-column",{attrs:{label:"员工",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"user-info"},[a("img",{attrs:{src:t.row.userHeadImage||i("3e20"),alt:""}}),a("div",{staticClass:"user-info-userName"},[a("span",[e._v(e._s(t.row.userName))]),a("span",{staticClass:"user-info-departmentName"},[e._v(e._s(e.companName)+e._s(e.companName&&t.row.departmentName&&"/")+e._s(t.row.departmentName))])])])]}}])}),a("el-table-column",{attrs:{prop:"clickCount",label:"点击人数",align:"center"}}),a("el-table-column",{attrs:{prop:"submitCount",label:"提交人数",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.submitCount)+" ")]}}])}),a("el-table-column",{attrs:{prop:"submitPercent",label:"填写率",align:"center"}})]],2),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.recordList.length>0,expression:"recordList.length > 0"}],attrs:{total:e.total,disabled:e.loading,limit:e.searchForm.pageSize,page:e.searchForm.pageNum},on:{"update:limit":function(t){return e.$set(e.searchForm,"pageSize",t)},"update:page":function(t){return e.$set(e.searchForm,"pageNum",t)},pagination:e.search}})]},proxy:!0}])})],1)]),a("el-drawer",{staticClass:"form-result",attrs:{visible:e.drawerVisible},on:{"update:visible":function(t){e.drawerVisible=t}}},[a("div",{staticClass:"title",attrs:{slot:"title"},slot:"title"},[a("span",{staticClass:"title-text"},[e._v(e._s(e.commitResult.formName))]),a("el-tag",{staticClass:"title-tag",attrs:{size:"mini"}},[e._v(e._s(e.commitResult.channelType?e.CLICK_CHANNEL[e.commitResult.channelType]:""))])],1),a("div",{staticClass:"form-result-content"},[a("div",{staticClass:"content-header"},[a("div",{staticClass:"user-info"},[a("img",{attrs:{src:e.commitResult.externalUserHeadImage,alt:""}}),a("span",[e._v(e._s(e.commitResult.externalUserName))])]),a("div",{staticClass:"commit-time"},[e._v(" "+e._s(e.commitResult.commitTime)+" ")])]),a("div",{staticClass:"content-commit"},e._l(JSON.parse(e.commitResult.formResult||"[]").filter((function(e){return e.showFlag})),(function(t,i){return a("div",{key:i},[a("div",{staticClass:"commit-item"},[a("div",{staticClass:"commit-index"},[e._v(" "+e._s(i+1)+". ")]),a("div",{staticClass:"commit-result"},[a("div",{staticClass:"commit-question"},[e._v(" "+e._s(t.question)+" ")]),a("div",{staticClass:"commit-answer"},[[e.RADIO_COMPONENT,e.CHECKBOX_COMPONENT,e.SELECT_COMPONENT,e.ONE_LINE_TEXT_COMPONENT,e.MANY_LINE_TEXT_COMPONENT,e.DATE_TIME_COMPONENT].includes(t.type)?a("div",[e._v(" "+e._s(t.answer)+" ")]):e._e(),t.type===e.SCORE_COMPONENT?a("div",{staticClass:"score-component"},[a("el-rate",{attrs:{disabled:"","disabled-void-color":"#C0CBD9",colors:["#EE0A24","#EE0A24","#EE0A24"]},model:{value:t.answer,callback:function(i){e.$set(t,"answer",i)},expression:"commitItem.answer"}}),a("span",[e._v(e._s(t.text))])],1):e._e(),t.type===e.NPS_COMPONENT?a("div",{staticClass:"nps-component"},[e._v(" "+e._s(t.answer)+" ")]):e._e()])])])])})),0)]),a("div",{staticClass:"footer"},[a("div",{staticClass:"confirm-btn-div"},[a("el-button",{attrs:{disabled:1===e.commitResult.index},on:{click:function(t){return e.changeCommitResult(e.commitResult.index,!0)}}},[e._v("上一个")]),a("el-button",{attrs:{disabled:e.commitResult.index===e.commitList.length},on:{click:function(t){return e.changeCommitResult(e.commitResult.index,!1)}}},[e._v("下一个")])],1)])]),a("el-dialog",{attrs:{title:"预览",visible:e.previewDialogVisible,width:"500px"},on:{"update:visible":function(t){e.previewDialogVisible=t}}},[a("div",{staticClass:"preview-phone-dialog"},[a("PhoneDialog",{attrs:{"form-setting":e.formSetting,form:e.formForm,"is-form-preview":""}})],1)])],1)},n=[],r=i("5530"),s=i("ade3"),o=(i("a4d3"),i("e01a"),i("d81d"),i("b0c0"),i("dca8"),i("b64b"),i("d3b7"),i("ac1f"),i("841c"),i("159b"),i("dd70")),l=i("e753"),c=i("069e"),u=i("e77d"),d=i("b66d"),p=i("8bd5"),f=i("c7ea"),A=i("ed08"),h=i("e2e0"),m=i("2ef0"),g={customer:1,staff:2},v=1,b=2,y=4,_=11,w=1,C=3,x=5,k=6,T=7,S=8,I=9,E=12,O=Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])({},y,"侧边栏"),_,"推广"),w,"员工活码"),C,"群发"),x,"欢迎语"),T,"群SOP"),S,"新客进群"),I,"群日历"),k,"客户SOP"),E,"获客助手"),B=Object(s["a"])(Object(s["a"])({},o["zc"],"不限制次数"),o["Gc"],"每个客户限提交一次"),L={components:{Statistics:c["a"],EmptyDefaultIcon:u["a"],RightContainer:d["a"],PhoneDialog:p["a"]},mixins:[h["a"]],data:function(){return{commitTimeOptions:Object.freeze([{value:v,label:"点击时间"},{value:b,label:"提交时间"}]),FORVER_EFFECT:o["X"],SUBMIT_NUMS:B,NOT_JUMP:o["yc"],JUMP_RESULT_PAGE:o["Nb"],JUMP_LINK:o["Mb"],SERVER_TYPE_THIRD:o["bd"],CLICK_RECORD:g,CLICK_CHANNEL:O,RADIO_COMPONENT:o["Rc"],CHECKBOX_COMPONENT:o["p"],SELECT_COMPONENT:o["Zc"],ONE_LINE_TEXT_COMPONENT:o["Fc"],MANY_LINE_TEXT_COMPONENT:o["Sb"],DATE_TIME_COMPONENT:o["H"],SCORE_COMPONENT:o["Wc"],NPS_COMPONENT:o["Bc"],activeRecord:g["customer"],colList:[{title:"总点击人数",filed:"clickTotalCount",showPopover:!0,placement:"top",content:"统计有点击表单的客户,已去重,若同一客户访问了两个员工发出的表单,计为1"},{title:"总提交人数",filed:"submitTotalCount",showPopover:!0,placement:"top",content:"统计有提交表单的客户,已去重,若同一客户填写了两个员工发出的表单,计为1"},{unit:"%",title:"填写率",filed:"submitPercent",showPopover:!0,placement:"top",content:"填写率=提交人数/访问人数"},{title:"今日点击人数",filed:"todayClickCount",showPopover:!0,content:"统计有点击表单的客户,已去重,若同一客户访问了两个员工发出的表单,计为1",placement:"top"},{title:"今日提交人数",filed:"todaySubmitCount",showPopover:!0,content:"统计有提交表单的客户,已去重,若同一客户填写了两个员工发出的表单,计为1",placement:"top"},{title:"今日填写率",unit:"%",filed:"todaySubmitPercent",showPopover:!0,content:"填写率=提交人数/访问人数",placement:"top"}],previewDialogVisible:!1,recordList:[],loading:!1,total:0,formId:void 0,formDetail:{},labelSetting:{clickLabelIdList:[],submitLabelIdList:[]},submitResult:{},searchForm:{pageSize:o["Ic"],pageNum:1,timeType:v},drawerVisible:!1,commitResult:{index:1},commitList:[],formForm:{},formSetting:{}}},computed:{isThirdApplication:function(){return this.$store.state.serverInfo&&this.$store.state.serverInfo.serverType===o["bd"]},companName:function(){return this.$store.state.enterPriseWechatConfig.companyName}},created:function(){if(this.$store.getters.saveCondition&&Object.keys(this.$store.getters.searchQuery[this.$route.name]||{}).length){var e=this.$store.getters.searchQuery[this.$route.name],t=e.beginTime,i=e.endTime;t&&i&&(this.searchForm.dateRange=[t,i]),this.searchForm=this.$store.getters.searchQuery[this.$route.name]}var a=this.$route.query;this.formId=a.id,this.getFormSet(),this.getOverview(),this.search()},methods:{getChannelTypeOptions:function(){var e=[];return Object.keys(O).forEach((function(t){e.push({value:+t,label:O[t]})})),e},getFormSet:function(){var e=this;Object(f["k"])({id:this.formId}).then((function(t){e.formDetail=t.data,t.data.submitActionType===o["Nb"]&&(e.submitResult=JSON.parse(t.data.actionInfoParamJson)),e.labelSetting.clickLabelIdList=t.data.labelSetting.clickLabelIdList||[],e.labelSetting.submitLabelIdList=t.data.labelSetting.submitLabelIdList||[],e.formSetting={actionInfoParam:JSON.parse(e.formDetail.actionInfoParamJson),submitActionType:e.formDetail.submitActionType};var i=e.formDetail,a=i.description,n=i.descriptionFlag,r=i.formFieldListJson,s=i.formName,l=i.headImageOpenFlag,c=i.headImageUrl,u=i.showSortFlag,d=i.submitColor,p=i.submitText;e.formForm={isFormDetail:!0,description:a,descriptionFlag:n,formFieldListJson:r,formName:s,headImageOpenFlag:l,headImageUrl:c,showSortFlag:u,submitColor:d,submitText:p}}))},getOverview:function(){var e=this;Object(f["l"])({id:this.formId}).then((function(t){e.colList=e.colList.map((function(e){return Object(r["a"])(Object(r["a"])({},e),{},Object(s["a"])({},e.filed,t.data[e.filed]))}))}))},checkCustomerInfo:function(e){this.$store.commit("SET_SEARCH_QUERY",{pageName:this.$route.name,query:this.searchForm}),Object(A["l"])(this.$router,l["b"],{},{id:e.externalUserId,prePageType:"staffClickRecord"})},openFormDetail:function(e){var t=this;this.drawerVisible=!0;var i={formId:this.formId,channelType:this.searchForm.channelType||""};Object(f["p"])(i).then((function(i){t.commitList=i.data.map((function(i,a){return i.recordId===e.recordId&&(t.commitResult=Object(r["a"])(Object(r["a"])({},i),{},{index:a+1})),Object(r["a"])(Object(r["a"])({},i),{},{index:a+1})}))}))},search:function(){var e=this;this.loading=!0;var t=this.activeRecord===g["customer"];(t?f["n"]:f["s"])(this.getSearchPayload()).then((function(t){e.recordList=t.rows,e.total=t.total})).finally((function(){e.modifyButtonStatus(),e.loading=!1}))},reset:function(){this.searchForm=this.$options.data().searchForm,this.search()},changeCommitResult:function(e,t){this.commitResult=Object(m["find"])(this.commitList,{index:t?e-1:e+1})},getSearchPayload:function(){var e=Object(r["a"])(Object(r["a"])({},this.searchForm),{},{formId:this.formId});return this.searchForm.dateRange&&(e.beginTime=this.searchForm.dateRange[0],e.endTime=this.searchForm.dateRange[1],delete e.dateRange),e},exportReport:function(){var e=this,t=this.activeRecord===g["customer"];(t?f["i"]:f["j"])(this.getSearchPayload()).then((function(t){e.download(t.data.msg,!0)})).catch((function(){e.msgError("导出失败!")}))}}},D=L,M=(i("f5ef"),i("2877")),N=Object(M["a"])(D,a,n,!1,null,"6a1644f6",null);t["default"]=N.exports},f01f:function(e,t,i){"use strict";i("9b7a")},f02a:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"customer-sop-page"},[i("div",{staticClass:"header-radio-group"},[i("el-radio-group",{staticClass:"radio-group-div",attrs:{size:"medium"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-radio-button",{attrs:{label:e.SOP_TYPE["newCustomer"]}},[e._v("新客SOP")]),i("el-radio-button",{attrs:{label:e.SOP_TYPE["activity"]}},[e._v("活动SOP")]),i("el-radio-button",{attrs:{label:e.SOP_TYPE["birthday"]}},[e._v("生日SOP")])],1)],1),i("div",{staticClass:"content-container"},[i("SOPList",{attrs:{type:"customer","sop-type":e.activeName,"show-use-employees":e.activeName!==e.SOP_TYPE["activity"],"sop-tip":e.dealSopTip()}})],1)])},n=[],r=(i("99af"),i("a9e3"),i("ddb0e")),s=i("dd70"),o=i("cf45"),l={name:"",components:{SOPList:r["default"]},props:{},data:function(){return{activeName:s["ed"]["newCustomer"],SOP_TYPE:s["ed"]}},watch:{activeName:function(e){var t=window.location.href;t=Object(o["N"])(t),window.history.pushState({},0,"".concat(t,"?sopType=").concat(e))}},created:function(){this.$store.dispatch("app/setBusininessDesc","\n <div>制定标准化客户服务运营方案,到指定时间提醒员工去执行,提升企业运营效率和留存率</div>\n ");var e=this.$route.query,t=e.sopType;this.activeName=t?Number(t):s["ed"]["newCustomer"]},mounted:function(){},methods:{dealSopTip:function(){var e="";switch(this.activeName){case s["ed"]["newCustomer"]:e="对新增的客户发送指定内容";break;case s["ed"]["activity"]:e="对指定客户发送指定内容,实现精准营销";break;case s["ed"]["birthday"]:e="客户过生日时发送指定内容";break}return e}}},c=l,u=(i("3021"),i("2877")),d=Object(u["a"])(c,a,n,!1,null,"61a21a70",null);t["default"]=d.exports},f044:function(e,t,i){"use strict";i("fcdb")},f05d:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-drawer",e._g(e._b({staticClass:"get-qrcode-drawer",attrs:{title:"如何创建客户群","before-close":e.handleClose,"append-to-body":!0,size:"780px"}},"el-drawer",e.$attrs,!1),e.$listeners),[a("el-tabs",{attrs:{"tab-position":"left"}},[a("el-tab-pane",{attrs:{label:"电脑端"}},[a("div",{staticClass:"step-title"},[e._v(" 如何在Windows电脑端创建客户群? ")]),a("div",{staticClass:"section-item"},[a("div",{staticClass:"content-text"},[e._v("打开企业微信应用,进入工作台下的「客户群」,点击“创建一个客户群”按钮,完成创建。")]),a("el-image",{staticClass:"part-img",attrs:{src:i("ae40"),"preview-src-list":[i("ae40")]}})],1)]),a("el-tab-pane",{attrs:{label:"移动端"}},[a("div",{staticClass:"step-title"},[e._v(" 如何在移动端创建客户群? ")]),a("div",{staticClass:"section-item"},[a("div",{staticClass:"content-text"},[e._v("打开企业微信APP,进入工作台下的「客户群」,点击“创建一个客户群”按钮,完成创建。")]),a("div",{staticClass:"part-div wider-part-div",staticStyle:{width:"538px"}},[a("el-image",{staticClass:"part-img",attrs:{src:i("2622"),"preview-src-list":[i("2622")]}}),a("el-image",{staticClass:"part-img",attrs:{src:i("02c7"),"preview-src-list":[i("02c7")]}}),a("el-image",{staticClass:"part-img",attrs:{src:i("94eb"),"preview-src-list":[i("94eb")]}})],1)])])],1)],1)},n=[],r={name:"",components:{},props:{},data:function(){return{}},methods:{handleClose:function(){this.$emit("update:visible",!1)}}},s=r,o=(i("c91b"),i("a9a0"),i("2877")),l=Object(o["a"])(s,a,n,!1,null,"689b8191",null);t["default"]=l.exports},f08b:function(e,t,i){},f0e8:function(e,t,i){e.exports=i.p+"static/img/appCenterEmpty.eb20cfe3.png"},f0ef:function(e,t,i){"use strict";i.d(t,"c",(function(){return r})),i.d(t,"d",(function(){return s})),i.d(t,"a",(function(){return o})),i.d(t,"e",(function(){return l})),i.d(t,"b",(function(){return c}));var a=i("b775"),n=window.CONFIG.services.wecom+"/wordscategory";function r(e){return Object(a["a"])({url:n+"/list",params:e})}function s(e){return Object(a["a"])({url:n+"/delete",method:"DELETE",data:e})}function o(e){return Object(a["a"])({url:n+"/add",method:"post",data:e})}function l(e){return Object(a["a"])({url:n+"/update",method:"put",data:e})}function c(e){return Object(a["a"])({url:n+"/changeSort",method:"put",data:e})}},f110:function(e,t,i){"use strict";i("c94e")},f138:function(e,t,i){},f15b:function(e,t,i){},f180:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"verbal-trick-manage-div"},[i("div",{staticClass:"header-radio-group"},[i("el-radio-group",{staticClass:"radio-group-div",attrs:{size:"medium"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-radio-button",{attrs:{label:e.VERBAL_TRICK_TYPE["enterprise"]}},[e._v("企业话术")]),e.showBtn?i("el-radio-button",{attrs:{label:e.VERBAL_TRICK_TYPE["department"]}},[e._v("部门话术")]):e._e(),e.showBtn?i("el-radio-button",{attrs:{label:e.VERBAL_TRICK_TYPE["personal"]}},[e._v("我的话术")]):e._e()],1)],1),i("div",{staticClass:"list-container"},[e.activeName===e.VERBAL_TRICK_TYPE["enterprise"]?i("VerbalTrickContent",{attrs:{type:e.activeName}}):e._e(),e.activeName===e.VERBAL_TRICK_TYPE["department"]?i("VerbalTrickContent",{attrs:{type:e.activeName}}):e._e(),e.activeName===e.VERBAL_TRICK_TYPE["personal"]?i("VerbalTrickContent",{attrs:{type:e.activeName}}):e._e()],1)])},n=[],r=i("dd70"),s=i("e60d"),o=i("4360"),l={name:"VerbalTrickManage",components:{VerbalTrickContent:s["default"]},props:{},data:function(){return{VERBAL_TRICK_TYPE:r["wd"],activeName:r["wd"]["enterprise"]}},computed:{showBtn:function(){var e=o["a"].getters.isSuperAdmin;return!e}},created:function(){this.$store.dispatch("app/setBusininessDesc","\n <div>员工可在客户端侧边栏【素材库】使用企业话术进行快捷回复</div>\n ")},mounted:function(){},methods:{}},c=l,u=(i("284e"),i("2877")),d=Object(u["a"])(c,a,n,!1,null,"de684060",null);t["default"]=d.exports},f22f:function(e,t,i){},f28b:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-drawer",e._g(e._b({staticClass:"verbal-trick-detail-drawer",attrs:{"before-close":e.handleClose,"append-to-body":!0}},"el-drawer",e.$attrs,!1),e.$listeners),[i("div",{staticClass:"verbal-trick-detail"},[i("div",{staticClass:"verbal-trick-detail-info"},[i("div",{staticClass:"verbal-trick-title"},[e._v(e._s(e.item.title))]),i("div",{staticClass:"group-info"},[e._v("所属分组:"+e._s(e.dealGroupName(e.item)))]),e._l(e.item.weWordsDetailList,(function(e,t){return i("div",{key:t,staticClass:"detail-item"},[i("VerbalTrickDetailPreview",{attrs:{item:e}})],1)}))],2),e.roleKey?i("div",{staticClass:"edit-btn"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleEdit(e.item)}}},[e._v("编辑")])],1):e._e()])])},n=[],r=i("dbe0"),s={name:"",components:{VerbalTrickDetailPreview:r["default"]},props:{item:{type:Object,default:function(){}},dealGroupName:{type:Function,default:function(){}},handleEdit:{type:Function,default:function(){}},roleKey:{type:Boolean,default:!0}},data:function(){return{}},created:function(){},mounted:function(){},methods:{handleClose:function(){this.$emit("update:visible",!1)}}},o=s,l=(i("fc07"),i("2877")),c=Object(l["a"])(o,a,n,!1,null,"6b43b6ad",null);t["default"]=c.exports},f28d:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"video-item"},[i("i",{staticClass:"el-icon-video-play",on:{click:function(t){return e.play(e.url,"video")}}})]),i("VideoModal",{directives:[{name:"show",rawName:"v-show",value:e.dia,expression:"dia"}],ref:"videoModal",on:{closeModal:e.closeModal}})],1)},n=[],r=(i("fda2"),i("451f"),i("c408")),s={components:{VideoModal:r["default"]},props:{url:{type:String,default:function(){}}},data:function(){return{dia:!1}},mounted:function(){},methods:{play:function(e){this.dia=!0,this.$refs.videoModal.play(e)},closeModal:function(){this.dia=!1}}},o=s,l=(i("53b5"),i("2877")),c=Object(l["a"])(o,a,n,!1,null,"1653ef3f",null);t["default"]=c.exports},f2e1:function(e,t,i){"use strict";i("76ac")},f309:function(e,t,i){},f38b:function(e,t,i){"use strict";i("2d0e")},f3c1:function(e,t){var i=800,a=16,n=Date.now;function r(e){var t=0,r=0;return function(){var s=n(),o=a-(s-r);if(r=s,o>0){if(++t>=i)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}e.exports=r},f418:function(e,t,i){},f4e3:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",e._b({attrs:{width:"500px","custom-class":"dialog"},on:{close:function(t){return e.$emit("update:visible",!1)}}},"el-dialog",e.$attrs,!1),[i("el-form",{ref:"BatchUpdateUser",attrs:{model:e.form,rules:e.rules,size:"mini","label-width":"80px"}},[e.showUpdateUserRes?[i("div",{staticClass:"result"},[i("p",{staticClass:"resultText"},[e._v("修改完成,修改"),i("span",{staticClass:"success"},[e._v("成功"+e._s(e.updateUserRes.successCount)+"个")]),e._v(",修改"),i("span",{staticClass:"fail"},[e._v("失败"+e._s(e.updateUserRes.failCount)+"个")])]),e.updateUserRes.fileUrl?[i("p",{staticClass:"failReportText"},[e._v("下载修改失败报告,查看错误原因")]),i("el-link",{staticClass:"downfailReportText theme-text-color",attrs:{underline:!1,icon:"el-icon-download"},on:{click:function(t){return e.downloadErrFile(e.updateUserRes.fileUrl)}}},[e._v("下载修改失败报告")])]:e._e()],2)]:[i("el-form-item",{attrs:{label:"批量修改"}},[i("el-radio-group",{model:{value:e.type,callback:function(t){e.type=t},expression:"type"}},[i("el-radio",{attrs:{label:1}},[e._v("角色")]),e.isDKCorp?e._e():i("el-radio",{attrs:{label:2}},[e._v("职务")]),e.isDKCorp?e._e():i("el-radio",{attrs:{label:3}},[e._v("所在部门")])],1)],1),e.type===e.ROLE_TYPE?i("el-form-item",{attrs:{label:"角色",prop:"roleId",required:""}},[i("el-select",{staticStyle:{width:"308px"},attrs:{placeholder:"请选择"},model:{value:e.form.roleId,callback:function(t){e.$set(e.form,"roleId",t)},expression:"form.roleId"}},e._l(e.roleData,(function(e){return i("el-option",{key:e.roleId,attrs:{label:e.roleName,value:e.roleId}})})),1)],1):e.type===e.POSITION_TYPE?i("el-form-item",{attrs:{label:"职务",prop:"position",required:""}},[i("el-input",{staticStyle:{width:"308px"},attrs:{"show-word-limit":"",maxlength:"64"},model:{value:e.form.position,callback:function(t){e.$set(e.form,"position",t)},expression:"form.position"}})],1):e.type===e.DEPARTMENT_TYPE?i("el-form-item",{attrs:{label:"所在部门",prop:"department",required:""}},[i("el-cascader",{staticStyle:{width:"308px"},attrs:{options:e.treeData,"show-all-levels":!1,props:{expandTrigger:"hover",checkStrictly:!0,emitPath:!1,value:"id",label:"name"}},model:{value:e.form.department,callback:function(t){e.$set(e.form,"department",t)},expression:"form.department"}})],1):e._e()]],2),i("div",{attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){return e.$emit("update:visible",!1)}}},[e._v("取消")]),i("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.submit}},[e._v("确定")])],1)],1)},n=[],r=i("5530"),s=i("c7eb"),o=i("1da1"),l=(i("d3b7"),i("07ac"),i("989b")),c=i("3528"),u=1,d=2,p=3,f={name:"",components:{},props:{multiSelect:{type:Array,default:function(){return[]}},updateUserRes:{type:Object,default:function(){}},loading:{type:Boolean,default:function(){return!1}},isDKCorp:{type:Boolean,default:function(){return!1}}},data:function(){return{ROLE_TYPE:u,POSITION_TYPE:d,DEPARTMENT_TYPE:p,type:1,roleData:[],treeData:[],defaultProps:{value:"id",label:"name",children:"children",checkStrictly:!0,emitPath:!1},rules:{roleId:[{required:!0,message:"请选择员工角色",trigger:"blur"}],department:[{required:!0,message:"请选择员工部门",trigger:"blur"}],position:[{required:!0,message:"请填写员工职务",trigger:"blur"}]},form:{}}},computed:{showUpdateUserRes:function(){return Object.values(this.updateUserRes).some((function(e){return e}))}},watch:{type:function(){this.form={}}},created:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return Object(c["d"])().then((function(t){e.roleData=t.rows})),t.prev=1,t.next=4,e.$store.dispatch("GetDepartmentList");case 4:i=t.sent,e.treeData=e.handleTree(i||[]),t.next=12;break;case 8:t.prev=8,t.t0=t["catch"](1),e.scopeDeptList=[],e.treeData=[];case 12:case"end":return t.stop()}}),t,null,[[1,8]])})))()},methods:{submit:function(){var e=this;this.showUpdateUserRes?this.$emit("update:visible",!1):this.$refs["BatchUpdateUser"].validate(function(){var t=Object(o["a"])(Object(s["a"])().mark((function t(i){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i){t.next=2;break}return t.abrupt("return");case 2:e.$emit("submit",Object(r["a"])(Object(r["a"])({},e.form),{},{type:e.type}));case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},downloadErrFile:function(e){Object(l["a"])(e)}}},A=f,h=(i("1d47"),i("2877")),m=Object(h["a"])(A,a,n,!1,null,"f09a969a",null);t["default"]=m.exports},f507:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("div",{staticClass:"content-wrap"},[e._m(0),a("div",{staticClass:"flex"},[a("el-form",{ref:"form",staticStyle:{"margin-right":"170px"},attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[a("div",{staticClass:"form-base-wrap"},[a("div",{staticClass:"base-title"},[e._v("基础设置")]),a("div",{staticClass:"base-content"},[a("el-alert",{style:"width: 550px;",attrs:{type:"warning",closable:!1}},[a("div",[e._v("1. 每个客户每天可收到员工发表的3条朋友圈,企业发表的4条朋友圈")]),a("div",[e._v("2. 员工需在企业微信APP上发表朋友圈,PC端暂不支持")])]),a("el-form-item",{staticStyle:{padding:"0"},attrs:{label:"发布类型",prop:"type","label-width":"68px"}},[a("el-radio",{attrs:{label:0},model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},[e._v("企业")]),a("el-radio",{attrs:{label:1},model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},[e._v("个人")])],1),a("el-form-item",{staticStyle:{padding:"0"},attrs:{label:"可见范围",prop:"pushRange","label-width":"68px"}},[a("el-radio-group",{model:{value:e.form.pushRange,callback:function(t){e.$set(e.form,"pushRange",t)},expression:"form.pushRange"}},[a("el-radio",{attrs:{label:0}},[e._v("全部客户")]),a("el-radio",{attrs:{label:1}},[e._v("部分客户")])],1),1===e.form.pushRange?a("div",{staticClass:"form-range-area"},[1===e.form.pushRange?a("el-form-item",{staticStyle:{padding:"8px 0"},attrs:{label:"客户标签","label-width":"68px"}},[a("el-button",{attrs:{icon:"el-icon-plus"},on:{click:function(t){return e.showSelectTagDialog("tags")}}},[e._v("添加标签")]),e._l(e.form.tags,(function(t,i){return a("el-tag",{key:i,staticClass:"theme-text-color",attrs:{type:"info",closable:""},on:{close:function(i){return e.deleteOneSelectTag("tags",t)}}},[e._v(e._s(t.name))])}))],2):e._e(),1===e.form.pushRange?a("el-form-item",{staticStyle:{padding:"8px 0"},attrs:{label:"所属员工","label-width":"68px"}},[a("el-button",{attrs:{icon:"el-icon-plus"},on:{click:function(t){e.dialogVisibleSelectUser=!0}}},[e._v(e._s(0===e.userAndDepartmentList.length?"添加成员":"修改成员"))]),e._l(e.userAndDepartmentList,(function(t,i){return a("el-tag",{key:i,staticClass:"theme-text-color user-tag iaic",attrs:{closable:""},on:{close:function(t){return e.handleClose(i)}}},[a("TagUserShow",{attrs:{name:t.name,"show-icon":!t.userId}})],1)}))],2):e._e()],1):e._e()],1),a("el-form-item",{staticStyle:{padding:"0"},attrs:{label:"发送时间",prop:"taskType","label-width":"68px"}},[a("el-radio-group",{model:{value:e.form.taskType,callback:function(t){e.$set(e.form,"taskType",t)},expression:"form.taskType"}},[a("el-radio",{attrs:{label:0}},[e._v("立即发布")]),a("el-radio",{attrs:{label:1}},[e._v("定时发布")])],1),1===e.form.taskType?a("el-form-item",{attrs:{prop:"sendTime"}},[a("el-date-picker",{staticStyle:{width:"225px"},attrs:{"value-format":"yyyy-MM-dd HH:mm",type:"datetime",placeholder:"选择发送时间"},model:{value:e.form.sendTime,callback:function(t){e.$set(e.form,"sendTime",t)},expression:"form.sendTime"}})],1):e._e()],1)],1)]),a("div",{staticClass:"form-base-wrap"},[a("div",{staticClass:"base-title"},[e._v("朋友圈内容")]),a("div",{staticClass:"base-content group-content-text"},[a("el-form-item",[a("el-input",{attrs:{type:"textarea",maxlength:"1000","show-word-limit":"",autosize:{minRows:10,maxRows:50},placeholder:"请输入"},model:{value:e.form.text.content,callback:function(t){e.$set(e.form.text,"content",t)},expression:"form.text.content"}}),a("div",{staticClass:"appendix-box"},[a("el-radio-group",{on:{change:e.changeMomentsContent},model:{value:e.momentsContent,callback:function(t){e.momentsContent=t},expression:"momentsContent"}},[a("el-radio",{attrs:{label:e.MEDIA_TYPE_POSTER}},[e._v("图片")]),a("el-radio",{attrs:{label:e.MEDIA_TYPE_VIDEO}},[e._v("视频")]),a("el-radio",{attrs:{label:e.MEDIA_TYPE_IMGLINK}},[e._v("链接")])],1),e.momentsContent===e.MEDIA_TYPE_POSTER?a("div",[a("div",[a("FriendsUpload",{staticClass:"friendsupload",attrs:{"upload-list":e.form.attachments},on:{"update:uploadList":function(t){return e.$set(e.form,"attachments",t)},"update:upload-list":function(t){return e.$set(e.form,"attachments",t)},getType:e.getType,openMaterial:e.openMaterial,deleteFileList:e.deleteFileList}})],1),a("div",{staticClass:"momentsContent-tip"},[e._v("只能上传jpg/png文件,且大小不超过10M,长边≤10800px,短边≤1080px")])]):e._e(),e.momentsContent===e.MEDIA_TYPE_VIDEO?a("div",[a("UploadVideo",{attrs:{"upload-list":e.form.attachments},on:{"update:uploadList":function(t){return e.$set(e.form,"attachments",t)},"update:upload-list":function(t){return e.$set(e.form,"attachments",t)},openMaterial:e.openMaterial,getType:e.getType,deleteFileList:e.deleteFileList}}),a("div",{staticClass:"momentsContent-tip"},[e._v("只能上传mp4文件,时长不超过30s,大小不宜超过10M,建议尺寸1280×720")])],1):e._e(),e.momentsContent===e.MEDIA_TYPE_IMGLINK?a("div",[a("div",{staticClass:"item-div"},[a("el-radio-group",{model:{value:e.isDefined,callback:function(t){e.isDefined=t},expression:"isDefined"}},[a("el-radio",{attrs:{label:e.DEFAULT_LINK}},[e._v("使用链接默认信息")]),a("el-radio",{attrs:{label:e.CUSTOM_LINK}},[e._v("自定义链接信息")])],1),e.isDefined===e.CUSTOM_LINK?a("div",[a("el-form-item",{attrs:{"label-width":"0",prop:"url"}},[a("el-input",{style:{width:"340px"},attrs:{placeholder:"必填,请填写链接访问地址",autosize:{minRows:2,maxRows:2},clearable:""},on:{clear:e.clear},model:{value:e.link.addressUrl,callback:function(t){e.$set(e.link,"addressUrl",t)},expression:"link.addressUrl"}})],1),a("el-form-item",{attrs:{"label-width":"0",prop:"title"}},[a("el-input",{style:{width:"340px"},attrs:{type:"textarea",placeholder:"必填,请填写链接的标题",maxlength:e.LINK_TITLE_MAXLENGTH,"show-word-limit":"",autosize:{minRows:2,maxRows:2},clearable:""},model:{value:e.link.title,callback:function(t){e.$set(e.link,"title",t)},expression:"link.title"}})],1),a("Uploadimg",{attrs:{"upload-list":e.form.attachments},on:{"update:uploadList":function(t){return e.$set(e.form,"attachments",t)},"update:upload-list":function(t){return e.$set(e.form,"attachments",t)},openMaterial:e.openMaterial,getType:e.getType,deleteFileList:e.deleteFileList}}),a("div",{staticClass:"momentsContent-tip"},[e._v("只能上传jpg/png文件,且大小不超过10M,长边≤10800px,短边≤1080px")]),a("VerbalTrickImgLink",{attrs:{title:e.link.title,"cover-url":e.link.coverUrl}})],1):e._e(),e.isDefined===e.DEFAULT_LINK?a("div",[a("el-form-item",{attrs:{"label-width":"0",prop:"url"}},[a("el-input",{style:{width:"340px"},attrs:{placeholder:"必填,请填写链接访问地址",autosize:{minRows:4,maxRows:4},clearable:""},on:{change:e.sendWordsUrl,clear:e.clear},model:{value:e.link.addressUrl,callback:function(t){e.$set(e.link,"addressUrl",t)},expression:"link.addressUrl"}})],1),a("VerbalTrickImgLink",{attrs:{title:e.link.title,"cover-url":e.link.coverUrl}})],1):e._e()],1)]):e._e()],1)],1)],1)]),0===e.form.type?a("div",{staticClass:"form-base-wrap"},[a("div",{staticClass:"base-title"},[e._v("操作步骤")]),a("div",{staticClass:"base-content stat-content"},[e._v(" 企业发表朋友圈操作步骤如下: "),a("div",{staticClass:"step"},[a("div",[e._v("1. 管理员创建朋友圈后,员工的企业微信APP收到「客户朋友圈」的消息通知,如图一")]),a("div",{staticClass:"step-txt"},[e._v("2. 员工点击「客户朋友圈」,进入朋友圈,点击右上角的徽标,如图二")]),a("div",{staticClass:"step-txt"},[e._v("3. 进入待发表页面,点击“发表”按钮,如图三,实现朋友圈一键发布")])]),a("div",{staticClass:"step-img"},[a("el-image",{staticClass:"part-img",attrs:{src:i("3557"),"preview-src-list":[i("3557")]}}),a("i",{staticClass:"el-icon-d-arrow-right"}),a("el-image",{staticClass:"part-img",attrs:{src:i("9350"),"preview-src-list":[i("9350")]}}),a("i",{staticClass:"el-icon-d-arrow-right"}),a("el-image",{staticClass:"part-img",attrs:{src:i("ed12"),"preview-src-list":[i("ed12")]}})],1)])]):a("div",{staticClass:"form-base-wrap"},[a("div",{staticClass:"base-title"},[e._v("操作步骤")]),a("div",{staticClass:"base-content stat-content"},[e._v(" 个人发表朋友圈操作步骤如下: "),a("div",{staticClass:"step"},[a("div",[e._v("1. 管理员创建朋友圈后,员工的企业微信APP收到「联络易助手」的消息通知,如图一")]),a("div",{staticClass:"step-txt"},[e._v("2. 员工进入「联络易助手」,点击“前往发布”进入详情页,如图二")]),a("div",{staticClass:"step-txt"},[e._v("3. 如图三,点击“前往发送”按钮,跳转到发表朋友圈页面,根据提示设置可见客户,点击“发表”按钮实现朋友圈发布")])]),a("div",{staticClass:"step-img"},[a("el-image",{staticClass:"part-img",attrs:{src:i("37cf"),"preview-src-list":[i("37cf")]}}),a("i",{staticClass:"el-icon-d-arrow-right"}),a("el-image",{staticClass:"part-img",attrs:{src:i("19b1"),"preview-src-list":[i("19b1")]}}),a("i",{staticClass:"el-icon-d-arrow-right"}),a("el-image",{staticClass:"part-img",attrs:{src:i("9501"),"preview-src-list":[i("9501")]}})],1)])])])],1),a("div",{staticClass:"group-btn-wrapper"},[a("RequestButton",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:moments:publish"],expression:"['wecom:moments:publish']"}],attrs:{type:"primary","request-method":e.submit,"button-type":"submit"}},[e._v("通知员工发布")])],1),a("SelectUser",{attrs:{visible:e.dialogVisibleSelectUser,title:"选择员工","is-only-leaf":!1,"selected-user-list":e.userAndDepartmentList},on:{"update:visible":function(t){e.dialogVisibleSelectUser=t},success:e.selectedUser}}),a("SelectTag",{attrs:{visible:e.dialogVisibleSelectTag,title:"选择标签",type:"search","info-msg":"筛选出被打上选中标签的客户,进行群发",selected:e.form[e.selectTagType]},on:{"update:visible":function(t){e.dialogVisibleSelectTag=t},success:e.submitSelectTag}}),a("MaterialListDrawer",{ref:"materialDrawer",attrs:{"drawer-title":"选择素材",moment:!0,"moment-type":e.momentsContent,"choose-material":e.chooseMaterial,visible:e.dialogVisibleSelectMaterial,list:e.materialList,"get-list":e.getMaterialList,"poster-tool-list":["preview"],"imglink-tool-list":["preview"],"video-tool-list":["preview"],query:e.query,"radar-query":e.radarQuery,"sub-title":e.subTitle,type:"select",total:e.total,"is-loading":e.isLoadingMaterial,"limit-select-length":e.limitSelectLength,"material-type":e.materialType,"show-expire-time":!1},on:{"update:visible":function(t){e.dialogVisibleSelectMaterial=t},"update:query":function(t){e.query=t},"update:radarQuery":function(t){e.radarQuery=t},"update:radar-query":function(t){e.radarQuery=t},"update:materialType":function(t){e.materialType=t},"update:material-type":function(t){e.materialType=t},submit:e.handleAddApendixList}},[a("template",{slot:"right-btn"},[a("div",{staticClass:"right-btn-div"},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wechat:material:add"],expression:"['wechat:material:add']"}],attrs:{type:"primary"},on:{click:function(t){return e.handleAddMaterial(null,~~e.materialType)}}},[e._v("添加"+e._s(e.MEDIA_TYPE[e.materialType]))])],1)])],2),a("MaterialAddModal",{ref:"saveToMaterial",attrs:{form:e.materialForm,type:String(e.appendixType),"show-material-save":!e.isOperatingMaterial&&!e.materialForm.isAdded,"show-material-setting":!!e.isOperatingMaterial||e.materialForm.saveToMaterial,"modal-title":"添加"+e.MEDIA_TYPE[e.appendixType],visible:e.showAppendixAddModal,"get-list":e.getMaterialList,"is-operating-material":e.isOperatingMaterial},on:{"update:form":function(t){e.materialForm=t},"update:visible":function(t){e.showAppendixAddModal=t},submit:function(t){return e.handleAddApendix(e.appendix)}}})],1)])},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"group-info"},[i("i",{staticClass:"el-icon-info"}),i("div",[i("div",{staticClass:"info-title"},[e._v("功能说明")]),i("div",{staticClass:"info-desc"},[e._v("管理员统一创建内容,员工收到任务通知,确认操作后发布到朋友圈。")])])])}],r=i("c7eb"),s=i("1da1"),o=i("2909"),l=i("5530"),c=(i("99af"),i("4de4"),i("c740"),i("d81d"),i("a434"),i("b0c0"),i("e9c4"),i("a9e3"),i("b64b"),i("d3b7"),i("3ca3"),i("9911"),i("159b"),i("ddb0"),i("52a9")),u=i("c958"),d=i("aada"),p=i("515a"),f=i("dd70"),A=i("e8fd"),h=i("369e"),m=i("9094"),g=i("6485"),v=i("c91d"),b=i("6477"),y=i("ba59"),_=i("9543"),w=i("46ad"),C=i("cf45"),x=i("c1df"),k=i.n(x),T=9,S=1,I=100,E="friendscircle",O=2,B={components:{SelectTag:d["a"],SelectUser:u["a"],MaterialListDrawer:A["a"],VerbalTrickImgLink:h["default"],FriendsUpload:y["default"],MaterialAddModal:g["default"],UploadVideo:v["default"],Uploadimg:b["default"],RequestButton:c["a"],TagUserShow:p["a"]},props:{},data:function(){return{LINK_TITLE_MAXLENGTH:f["Pb"],LINK_CONTENT_MAXLENGTH:f["Ob"],DEFAULT_LINK:f["L"],CUSTOM_LINK:f["D"],FROM_MATERIAL:O,RADAR_TYPE:f["Qc"],DEFAULT_IMG:f["K"],FRIENDSCIRCLE:E,radarQuery:{type:"",searchTitle:"",pageNum:1,pageSize:f["Ic"]},limitFileName:I,loading:!1,CHOSEVIDEO:".mp4",momentsContent:f["cc"],isDefined:f["L"],subTitle:"已添加 0 个附件,还可选择 9 个",form:{type:0,pushRange:0,taskType:0,tags:[],sendTime:"",text:{content:""},attachments:[],users:[]},link:{},rules:{},dialogVisibleSelectUser:!1,dialogVisibleSelectTag:!1,dialogVisibleSelectMaterial:!1,query:{pageNum:1,pageSize:f["Ic"],categoryId:"",search:"",mediaType:f["cc"],isExpire:!1},materialList:[],appendixList:[],MEDIA_TYPE_POSTER:f["cc"],MEDIA_TYPE_IMGLINK:f["ac"],MEDIA_TYPE_VIDEO:f["gc"],MEDIA_TYPE:f["Xb"],MEDIA_TYPE_RADARLINK:f["dc"],appendixType:f["cc"],showAppendixAddModal:!1,materialForm:{},total:0,isLoadingMaterial:!0,limitSelectLength:T,isOperatingMaterial:!1,materialType:f["cc"],selectTagType:"tags",from:"copy",momentTaskId:"",chooseMaterial:!1,userAndDepartmentList:[]}},computed:{isOnlyTag:function(){return this.form.tag[0]&&0===this.form.type},categoryId:function(){var e;return null===(e=this.$store.state.materialInfo)||void 0===e||null===(e=e.categoryInfo[this.appendixType])||void 0===e?void 0:e.id}},watch:{momentsContent:function(e){this.query.mediaType=e,this.materialType=e,this.appendixType=e,e===f["ac"]&&(this.query.mediaType=f["cc"],this.materialType=f["cc"],this.appendixType=f["cc"])},isDefined:function(e){e===O?(this.form.attachments=[],this.link={},this.materialType=f["ac"],this.chooseMaterial=!0,this.dialogVisibleSelectMaterial=!0):(this.chooseMaterial=!1,this.materialType=f["cc"])},chooseMaterial:function(e){this.link={},this.form.attachments=[]},form:{deep:!0,handler:function(){this.subTitle=this.momentsContent===f["cc"]?"已添加 ".concat(this.form.attachments.length," 个附件,还可选择 ").concat(T-this.form.attachments.length," 个"):"已添加 ".concat(this.form.attachments.length," 个附件,还可选择 ").concat(S-this.form.attachments.length," 个")}}},beforeUpdate:function(){var e=Object(l["a"])(Object(l["a"])({},this.$options.data().form),{},{momentsContent:this.$options.data().momentsContent}),t=Object(l["a"])(Object(l["a"])({},this.form),{},{momentsContent:this.momentsContent});Object(C["k"])(e,t)},created:function(){},mounted:function(){var e=this;0!==Object.keys(this.$route.query).length&&(this.loading=!0,this.from=this.$route.query.from,this.momentTaskId=this.$route.query.momentTaskId,Object(w["d"])({momentTaskId:this.$route.query.momentTaskId}).then((function(t){var i=t.data,a=i.pushRange,n=i.content,r=i.type,s=i.taskType,c=i.sendTime,u=i.mediaType,d=i.useDepartmentList,p=i.useUserList,A=null===d||void 0===d?void 0:d.map((function(e){return e.name=e.departmentName,e.id=e.departmentId,e})),h=null===p||void 0===p?void 0:p.map((function(e){return e.name=e.userName,e}));switch(e.userAndDepartmentList=[].concat(Object(o["a"])(A||[]),Object(o["a"])(h||[])),i.tagList&&(e.form.tags=i.tagList),e.form.text.content=n,e.form=Object(l["a"])(Object(l["a"])({},e.form),{},{pushRange:a,type:r,taskType:s,sendTime:c}),e.momentsContent=String(u),u){case Number(f["cc"]):e.form.attachments=i.weWordsDetailList;break;case Number(f["gc"]):e.form.attachments.push(i.weWordsDetailList[0]);break;case Number(f["ac"]):var m=i.weWordsDetailList[0],g=m.coverUrl,v=m.title,b=m.url,y=m.isDefined;e.isDefined=y,e.link={coverUrl:g,title:v,addressUrl:b,url:g,from:"edit"},e.form.attachments.push(i.weWordsDetailList[0]);break}e.loading=!1}))),this.getMaterialList({mediaType:this.materialType})},methods:{clear:function(){this.isDefined===f["L"]?(this.link={},this.form.attachments=[]):this.link.url=""},sendWordsUrl:function(){var e=this;return Object(s["a"])(Object(r["a"])().mark((function t(){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.link.addressUrl&&Object(_["d"])({url:e.link.addressUrl}).then((function(t){var i,a=4,n=t.data.image.substring(t.data.image.length-a,t.data.image.length),r=null!==t.data.image&&t.data.isUrl&&(".png"===n||".jpg"===n);e.link=Object(l["a"])(Object(l["a"])({},e.link),{},{coverUrl:r?t.data.image:f["K"].link}),e.$set(e.link,"title",null===(i=t.data)||void 0===i||null===(i=i.title)||void 0===i?void 0:i.substring(0,f["Pb"])),e.form.attachments[0]=e.link,e.form.attachments[0].url=e.link.coverUrl,e.form.attachments[0].mediaType=Number(f["ac"])}));case 1:case"end":return t.stop()}}),t)})))()},changeMomentsContent:function(){this.form.attachments=[],this.link={}},getType:function(e){this.form.attachments=e,this.momentsContent===f["ac"]&&(this.link.coverUrl=e[0].url,this.link.url=e[0].url)},deleteFileList:function(e){this.form.attachments=e,this.link.coverUrl=null,this.link.url=null},openMaterial:function(e){this.dialogVisibleSelectMaterial=e},selectedUser:function(e){this.userAndDepartmentList=e},submitSelectTag:function(e){this.form[this.selectTagType]=e,this.dialogVisibleSelectTag=!1},goRoute:function(){window.open("#/operationsCenter/material/materialManage")},submit:function(){var e=this;this.loading=!0;var t=JSON.parse(JSON.stringify(this.form));"edit"===this.from&&(t.momentTaskId=this.momentTaskId),delete t.from,Promise.resolve().then((function(){var i;if(1===t.pushRange&&(!e.userAndDepartmentList.length&&0===Number(!(null===(i=t.tags)||void 0===i||!i.length))))return e.msgInfo("请设置可见范围"),Object(C["i"])(e.$store,"submit"),Promise.reject();if(1===t.taskType){if(""===t.sendTime)return e.msgInfo("请设置发布时间"),Object(C["i"])(e.$store,"submit"),Promise.reject();if(k.a.now()>new Date(t.sendTime).getTime())return e.msgInfo("发布时间不能小于当前时间"),Object(C["i"])(e.$store,"submit"),Promise.reject()}if(e.momentsContent===f["ac"]){if(0===Object.keys(e.link).length&&""===e.form.text.content)return e.msgInfo("请设置朋友圈内容"),Object(C["i"])(e.$store,"submit"),Promise.reject();if(0!==Object.keys(e.link).length){if(!e.link.addressUrl)return e.msgInfo("请填写链接访问地址"),Promise.reject();if(!e.link.title)return e.msgInfo("请填写链接标题"),Promise.reject();if(!e.link.coverUrl)return e.msgInfo("请上传封面"),Promise.reject();Object(C["i"])(e.$store,"submit")}e.link.mediaType=Number(f["ac"]),t.attachments[0]=e.link,e.form.attachments[0]=e.link,e.form.attachments[0].isDefined=e.isDefined}return t.attachments.forEach((function(e){delete e.status,delete e.uid,delete e.percentage,delete e.raw,e.mediaType===Number(f["cc"])&&(delete e.size,delete e.name),e.mediaType===Number(f["ac"])&&(e.url=e.addressUrl)})),t=e.dealUserDepAndTag(t),t.momentTaskId?Object(w["i"])(t):Object(w["a"])(t)})).then((function(){Object(C["i"])(e.$store,"submit"),e.msgSuccess("操作成功"),e.loading=!1,window.sessionStorage.setItem("change",!1),e.$router.push("record")})).catch((function(){Object(C["i"])(e.$store,"submit"),e.loading=!1}))},dealUserDepAndTag:function(e){if(this.userAndDepartmentList&&this.userAndDepartmentList.length>0){var t=Object(C["F"])(this.userAndDepartmentList);e.departments=t.useDepartmentList.map((function(e){return e.id})),e.users=t.useEmployeesList.map((function(e){return e.userId}))}else e.departments=[],e.users=[];return e.tags=e.tags&&e.tags.map((function(e){return e.tagId})),e},getMaterialList:function(e,t){var i=this;this.isLoadingMaterial=!0,Object(m["e"])(Object(l["a"])(Object(l["a"])({},this.query),e)).then((function(e){i.materialList=e.rows,i.total=Number(e.total),i.isLoadingMaterial=!1})).finally((function(){t&&t()}))},dealGetImageInfo:function(e){return Object(s["a"])(Object(r["a"])().mark((function t(){var i;return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=new Image,i.src=e,t.abrupt("return",new Promise((function(e){i.onload=function(){e({width:i.width,height:i.height})}})));case 3:case"end":return t.stop()}}),t)})))()},handleAddApendixList:function(e){var t=this;return Object(s["a"])(Object(r["a"])().mark((function i(){var a,n,l,c;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(a=9,t.momentsContent!==f["cc"]&&(a=1),!(e.length+t.form.attachments.length<=a)){i.next=11;break}return i.next=5,Promise.all(e.map(function(){var e=Object(s["a"])(Object(r["a"])().mark((function e(i){var a,n,s;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a={},a.url=i.materialUrl,t.momentsContent!==f["gc"]){e.next=8;break}a.title=i.materialName,a.mediaType=i.mediaType,a.size=i.content,e.next=32;break;case 8:if(t.momentsContent!==f["ac"]){e.next=25;break}return t.link.mediaType=t.isDefined===O?Number(f["dc"]):Number(f["ac"]),e.next=12,t.dealGetImageInfo(i.materialUrl);case 12:if(n=e.sent,a.width=n.width,a.height=n.height,Object(C["J"])(n.width,n.height)&&(t.link.coverUrl=i.materialUrl,t.link.url=i.materialUrl),t.isDefined!==O){e.next=23;break}return t.link.coverUrl=i.coverUrl,t.link.url=i.url||i.materialUrl,t.link.title=i.materialName,t.link.addressUrl=i.url||i.materialUrl,i.mediaType===Number(f["dc"])&&(t.link.extraId=i.extraId),e.abrupt("return");case 23:e.next=32;break;case 25:return e.next=27,t.dealGetImageInfo(i.materialUrl);case 27:s=e.sent,a.title=i.materialName,a.mediaType=i.mediaType,a.width=s.width,a.height=s.height;case 32:return e.abrupt("return",a);case 33:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 5:l=i.sent,c=l.filter((function(e){return Object(C["J"])(e.width,e.height)})),c.length!==l.length&&t.msgWarn("图片尺寸超过限制,长边≤".concat(f["Ub"],"px,短边≤").concat(f["Vb"],"px,请重新上传")),(n=t.form.attachments).push.apply(n,Object(o["a"])(c)),i.next=12;break;case 11:t.momentsContent===f["cc"]?t.msgWarn("上传海报不能超过".concat(a,"个!请重新选择")):t.isDefined===O?t.msgWarn("只允许添加一个链接"):t.msgWarn(t.momentsContent===f["ac"]?"只允许添加一张封面图片":"只允许添加一个视频");case 12:case"end":return i.stop()}}),i)})))()},handleAddMaterial:function(e,t){var i=this;this.isOperatingMaterial=!0,this.showAppendixAddModal=!0,this.appendixType=t,this.materialForm=Object.assign({},e||{categoryId:this.categoryId}),this.$nextTick((function(){var e;null===(e=i.$refs["materialAddModal"])||void 0===e||null===(e=e.$refs)||void 0===e||null===(e=e.form)||void 0===e||e.clearValidate()}))},showSelectTagDialog:function(e){this.selectTagType=e,this.dialogVisibleSelectTag=!0},deleteOneSelectTag:function(e,t){var i=Object(o["a"])(this.form[e]),a=i.findIndex((function(e){return e.tagId===t.tagId}));i.splice(a,1),this.form[e]=i},handleClose:function(e){this.userAndDepartmentList.splice(e,1)}}},L=B,D=(i("052f"),i("2877")),M=Object(D["a"])(L,a,n,!1,null,"312ca0af",null);t["default"]=M.exports},f54b:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{inline:!0,model:e.query,"label-width":"100px",size:"small"}},[i("el-form-item",[i("el-input",{attrs:{placeholder:"请输入客户名称"},model:{value:e.query.customerName,callback:function(t){e.$set(e.query,"customerName",t)},expression:"query.customerName"}})],1),e.labelType===e.AUTOLABEL_TYPE["intoGroup"]?i("el-form-item",[i("el-input",{attrs:{placeholder:"请输入客户群昵称"},model:{value:e.query.groupName,callback:function(t){e.$set(e.query,"groupName",t)},expression:"query.groupName"}})],1):e._e(),e.labelType!==e.AUTOLABEL_TYPE["intoGroup"]?i("el-form-item",[i("div",{staticClass:"tag-input",on:{click:function(t){e.dialogVisibleSelectUser=!0}}},[e.selectUserList.length?e._l(e.selectUserList,(function(t,a){return i("el-tag",{key:a,attrs:{type:"info"}},[e._v(e._s(t.name))])})):i("span",{staticClass:"tag-place"},[e._v("请选择员工")])],2)]):e._e(),e.labelType===e.AUTOLABEL_TYPE["newCustomer"]?i("el-form-item",[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"daterange","picker-options":e.pickerOptions,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",align:"right"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1):e._e(),i("el-form-item",{attrs:{label:" "}},[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.onSearch()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetForm()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"data-stat",fn:function(){return[i("div",{staticClass:"total-text"},[[e._v(" 共 "),i("span",{staticClass:"theme-text-color"},[e._v(e._s(e.totalCount))]),e._v(" 个客户触发规则 ")],e.labelType!==e.AUTOLABEL_TYPE["intoGroup"]?[e._v(" ,去重后 "),i("span",{staticClass:"theme-text-color"},[e._v(e._s(e.ignoreDuplicateCount))]),e._v(" 个客户 ")]:e._e(),i("el-popover",{attrs:{placement:"top-start",trigger:"hover","popper-class":"tip-popover"}},[i("div",[e._v("若客户添加多个员工,不重复计数")]),i("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"14px"},attrs:{slot:"reference"},slot:"reference"})])],2)]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{text:"暂无数据",length:e.list.length}})],1),i("el-table-column",{attrs:{label:"客户",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",{staticClass:"customer-info cp"},[i("img",{attrs:{src:a.avatar}}),i("div",{staticClass:"customer-name"},[i("div",{staticClass:"intwoline"},[i("span",[e._v(e._s(a.customerName))]),a.corpFullName||a.type===e.wxType?i("span",{class:a.type===e.wxType?"wx-type-flag":"corp-type-name"},[e._v(e._s(e.renderUserInfo(a)))]):e._e()])])])]}}])}),e.labelType!==e.AUTOLABEL_TYPE["intoGroup"]?i("el-table-column",{staticClass:"trest1",attrs:{label:"员工",align:"center",prop:"userName"}}):e._e(),i("el-table-column",{attrs:{align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"tag-list"},e._l(t.row.tagNameDistinctList,(function(t,a){return i("el-tag",{key:a,attrs:{type:"info"}},[e._v(" "+e._s(t)+" ")])})),1)]}}])},[i("template",{slot:"header"},[i("div",[i("span",[e._v("客户标签")]),i("el-popover",{attrs:{placement:"top",trigger:"hover","popper-class":"tip-popover"}},[i("div",[e._v("触发规则后被打上的客户标签")]),i("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"14px"},attrs:{slot:"reference"},slot:"reference"})])],1)])],2),e.labelType===e.AUTOLABEL_TYPE["keyWords"]?i("el-table-column",{attrs:{align:"center",prop:"hitCount"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"theme-text-color",on:{click:function(i){return e.setTriggerDetail(t.row)}}},[e._v(" "+e._s(t.row.hitCount)+" ")])]}}],null,!1,2567531958)},[i("template",{slot:"header"},[i("div",[i("span",[e._v("触发的关键词")]),i("el-popover",{attrs:{placement:"top-start",trigger:"hover","popper-class":"tip-popover"}},[i("div",[e._v("点击数字查看触发详情")]),i("i",{staticClass:"iconfont icon-question",staticStyle:{"font-size":"14px"},attrs:{slot:"reference"},slot:"reference"})])],1)])],2):e._e(),e.labelType===e.AUTOLABEL_TYPE["intoGroup"]?i("el-table-column",{attrs:{label:"进去的客户群",align:"center",prop:"groupName"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"user-info"},[e._v(e._s(t.row.groupName))])]}}],null,!1,1038603965)}):e._e(),e.labelType===e.AUTOLABEL_TYPE["intoGroup"]?i("el-table-column",{attrs:{label:"进入群聊时间",align:"center",prop:"joinTime"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"user-info"},[e._v(e._s(t.row.joinTime))])]}}],null,!1,2297844338)}):e._e(),e.labelType===e.AUTOLABEL_TYPE["newCustomer"]?i("el-table-column",{attrs:{label:"添加时间",align:"center",prop:"addTime"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"user-info"},[e._v(e._s(t.row.addTime))])]}}],null,!1,3243619345)}):e._e(),i("el-table-column",{attrs:{label:"操作",align:"center",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(i){return e.goRoute(t.row)}}},[e._v("客户详情")]),e.labelType===e.AUTOLABEL_TYPE["keyWords"]?i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(i){return e.setTriggerDetail(t.row)}}},[e._v("触发详情")]):e._e()]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{disabled:e.loading,total:e.total,page:e.query.pageNum,limit:e.query.pageSize},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getRecordList()}}}),i("SelectUser",{attrs:{visible:e.dialogVisibleSelectUser,title:"选择添加人","selected-user-list":e.selectUserList},on:{"update:visible":function(t){e.dialogVisibleSelectUser=t},success:e.selectedUser}}),i("div",{staticClass:"trigger-detail"},[i("el-dialog",{attrs:{title:"触发详情",visible:e.triggerDetailDialogVisible},on:{"update:visible":function(t){e.triggerDetailDialogVisible=t}}},[i("el-input",{staticStyle:{width:"240px",height:"32px"},attrs:{placeholder:"请输入关键词,回车搜索"},on:{input:function(t){return e.inputChange()}},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getTriggerDetail({pageNum:1})}},model:{value:e.triggerKeywords,callback:function(t){e.triggerKeywords=t},expression:"triggerKeywords"}}),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.triggerLoading,expression:"triggerLoading"}],staticClass:"mt15",staticStyle:{"font-size":"14px"},attrs:{height:"300px",data:e.triggerKeywordsList}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{text:"暂无数据",length:e.triggerKeywordsList.length}})],1),i("el-table-column",{attrs:{label:"关键词",align:"center",prop:"keyword",width:"180"}}),i("el-table-column",{attrs:{label:"触发时间",align:"center",prop:"createTime",width:"164"}}),i("el-table-column",{attrs:{label:"触发文本",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-popover",{attrs:{"open-delay":600,placement:"top",trigger:"hover",width:"400",content:""+t.row.fromText}},[i("span",{staticClass:"intwoline",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(t.row.fromText))])])]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.triggerTotal>0,expression:"triggerTotal > 0"}],staticClass:"page",attrs:{total:e.triggerTotal,disabled:e.triggerLoading,page:e.triggerDetailQuery.pageNum,limit:e.triggerDetailQuery.pageSize},on:{"update:page":function(t){return e.$set(e.triggerDetailQuery,"pageNum",t)},"update:limit":function(t){return e.$set(e.triggerDetailQuery,"pageSize",t)},pagination:function(t){return e.getTriggerDetail()}}})],1)],1)]},proxy:!0}])})},n=[],r=i("5530"),s=i("c7eb"),o=i("1da1"),l=(i("d81d"),i("b0c0"),i("b64b"),i("d3b7"),i("c958")),c=i("b66d"),u=i("e77d"),d=i("dd70"),p=i("ed08"),f=i("e2e0"),A=i("cf45"),h=i("2986"),m="1",g={name:"LabelDetail",components:{SelectUser:l["a"],RightContainer:c["a"],EmptyDefaultIcon:u["a"]},mixins:[f["a"]],props:{},inject:["labelRuleInfo"],data:function(){return{ACTIVENAME:m,AUTOLABEL_TYPE:d["j"],triggerDetailQuery:{pageNum:1,pageSize:d["Ic"]},query:{pageNum:1,pageSize:d["Ic"],customerName:"",groupName:"",beginTime:"",endTime:""},selectUserList:[],wxType:d["Cd"],dateRange:[],ignoreDuplicateCount:0,totalCount:0,total:1,loading:!1,list:[],dialogVisibleSelectUser:!1,triggerDetailDialogVisible:!1,triggerKeywords:"",triggerKeywordsList:[],triggerTotal:0,triggerList:{customerId:"",userId:""},triggerLoading:!1}},computed:{labelType:function(){return this.labelRuleInfo.labelType},ruleId:function(){return this.labelRuleInfo.ruleId}},watch:{triggerDetailDialogVisible:function(){this.triggerKeywords="",this.triggerDetailQuery={pageNum:1,pageSize:d["Ic"]}}},created:function(){var e=this.$store.getters.searchQuery[this.$route.name];if(this.$store.getters.saveCondition&&Object.keys(e||{}).length){var t=e.beginTime,i=e.endTime;t&&i&&(this.dateRange=[t,i]),this.selectUserList=e.selectUserList,delete e.selectUserList,this.query=e}this.getRecordList(),this.getRecordCount()},mounted:function(){},methods:{onSearch:function(){this.query.beginTime=this.dateRange[0],this.query.endTime=this.dateRange[1],this.getRecordList({pageNum:1})},getRecordCount:function(){var e=this;return Object(o["a"])(Object(s["a"])().mark((function t(){var i,a,n;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:t.t0=e.labelType,t.next=t.t0===d["j"]["keyWords"]?3:t.t0===d["j"]["intoGroup"]?7:t.t0===d["j"]["newCustomer"]?11:15;break;case 3:return t.next=5,Object(h["n"])(e.ruleId);case 5:return n=t.sent,t.abrupt("break",15);case 7:return t.next=9,Object(h["j"])(e.ruleId);case 9:return n=t.sent,t.abrupt("break",15);case 11:return t.next=13,Object(h["g"])(e.ruleId);case 13:return n=t.sent,t.abrupt("break",15);case 15:e.ignoreDuplicateCount=(null===(i=n)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.distinctCount)||0,e.totalCount=(null===(a=n)||void 0===a||null===(a=a.data)||void 0===a?void 0:a.count)||0;case 17:case"end":return t.stop()}}),t)})))()},resetForm:function(){this.query={customerName:"",groupName:"",beginTime:null,pageNum:1,pageSize:d["Ic"],endTime:null},this.selectUserList=[],this.dateRange=[],this.getRecordList()},goRoute:function(e){window.sessionStorage.setItem("DetailActive",m),this.$store.commit("SET_SEARCH_QUERY",{pageName:this.$route.name,query:Object(r["a"])(Object(r["a"])({},this.query),{},{selectUserList:this.selectUserList})}),Object(p["l"])(this.$router,"customerDetail",{},{id:e.customerId,userId:e.userId,prePageType:"labelDetail"})},selectedUser:function(e){this.selectUserList=e,this.query.userIdList=e.map((function(e){return e.userId}))},getTriggerDetail:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.triggerDetailDialogVisible=!0,1===t.pageNum&&(this.triggerDetailQuery={pageNum:1,pageSize:d["Ic"]});var i=this.triggerDetailQuery,a=Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])({},i),t),this.triggerList),{},{ruleId:this.ruleId,keyword:this.triggerKeywords});this.triggerLoading=!0,Object(h["s"])(a).then((function(t){e.triggerKeywordsList=t.rows,e.triggerTotal=t.total})).finally((function(){e.triggerLoading=!1}))},setTriggerDetail:function(e){this.triggerList={userId:e.userId,customerId:e.customerId},this.getTriggerDetail()},inputChange:function(){this.triggerKeywords||this.getTriggerDetail({pageNum:1})},getRecordList:function(){var e=arguments,t=this;return Object(o["a"])(Object(s["a"])().mark((function i(){var a,n,o,l,c,u;return Object(s["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:a=e.length>0&&void 0!==e[0]?e[0]:{},i.prev=1,l=t.query,c=Object(r["a"])(Object(r["a"])({},l),{},{ruleId:t.ruleId},a),t.loading=!0,i.t0=t.labelType,i.next=i.t0===d["j"]["keyWords"]?8:i.t0===d["j"]["intoGroup"]?12:i.t0===d["j"]["newCustomer"]?16:20;break;case 8:return i.next=10,Object(h["p"])(c);case 10:return u=i.sent,i.abrupt("break",20);case 12:return i.next=14,Object(h["l"])(c);case 14:return u=i.sent,i.abrupt("break",20);case 16:return i.next=18,Object(h["i"])(c);case 18:return u=i.sent,i.abrupt("break",20);case 20:t.total=(null===(n=u)||void 0===n?void 0:n.total)||0,t.list=(null===(o=u)||void 0===o?void 0:o.rows)||[],t.loading=!1,t.modifyButtonStatus(),i.next=30;break;case 26:i.prev=26,i.t1=i["catch"](1),t.loading=!1,t.modifyButtonStatus();case 30:case"end":return i.stop()}}),i,null,[[1,26]])})))()},renderUserInfo:function(e){return Object(A["o"])(e)}}},v=g,b=(i("ffc5"),i("2877")),y=Object(b["a"])(v,a,n,!1,null,"170df09e",null);t["default"]=y.exports},f5af:function(e,t,i){"use strict";i("e1e4")},f5ef:function(e,t,i){"use strict";i("4a75")},f671:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"page-wrap"},[i("NoConfigInfo",{staticClass:"mb15",attrs:{"config-keys":["chatSecret"],"page-title":"统计「新客开口率」、「服务响应率」、「客户活跃度」"}}),i("div",{staticClass:"header-radio-group"},[i("el-radio-group",{staticClass:"radio-group-div",attrs:{size:"medium"},on:{input:e.radioGroupChange},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-radio-button",{attrs:{label:e.CUSTOMER_LABEL_TYPE["overview"]}},[e._v("客户概况")]),i("el-radio-button",{attrs:{label:e.CUSTOMER_LABEL_TYPE["activeness"]}},[e._v("客户活跃度")])],1)],1),i("div",{staticClass:"content-container"},[e.activeName===e.CUSTOMER_LABEL_TYPE["overview"]?i("CustomerOverview"):e._e(),e.activeName===e.CUSTOMER_LABEL_TYPE["activeness"]?i("CustomerActiveness"):e._e()],1)],1)},n=[],r=(i("d81d"),i("a9e3"),i("07ac"),i("dd70")),s=i("e753"),o=i("48bd"),l=i("e28e"),c=i("f710"),u=i("ed08"),d={name:"",components:{CustomerOverview:o["default"],CustomerActiveness:l["default"],NoConfigInfo:c["a"]},props:{},data:function(){return{activeName:r["z"]["overview"],CUSTOMER_LABEL_TYPE:r["z"]}},created:function(){var e=this,t=Object(u["j"])();t.activeName&&this.$nextTick((function(){e.activeName=Number(t.activeName)}))},methods:{radioGroupChange:function(e){Object(u["b"])("activeName",e)}},beforeRouteEnter:function(e,t,i){if(t.path!==s["b"]){var a=Object.values(r["w"]);a.map((function(e){return sessionStorage.removeItem(e)}))}i()}},p=d,f=(i("bddf"),i("2877")),A=Object(f["a"])(p,a,n,!1,null,"1e6ca93f",null);t["default"]=A.exports},f678:function(e,t,i){"use strict";i("cc7d")},f6aa:function(e,t,i){"use strict";i("4b1a")},f6ae:function(e,t,i){"use strict";i("93bf")},f6c9:function(e,t,i){"use strict";i("aaf5")},f710:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.showAlert&&!e.configKeys.every((function(t){return!(!e.$store.getters.enterPriseWechatConfig||!e.$store.getters.enterPriseWechatConfig[t])}))?i("el-alert",{style:e.alertStyle,attrs:{title:e.showMessage,type:"warning","show-icon":""}}):e._e()},n=[],r=(i("ac1f"),i("5319"),i("4360")),s="当前企业尚未配置“通讯录”功能",o="当前企业尚未配置“会话存档”功能",l=",无法[pageTitle],请联系系统管理员前往【系统设置】完成企微配置";function c(e){return e.indexOf("contactSecret")>=0?s+l:e.indexOf("chatSecret")>=0?o+l:void 0}function u(e){if(!e["contactSecret"])return s+l}var d={name:"NoConfigInfo",components:{},props:{message:{type:String,default:""},configKeys:{type:Array,default:function(){return[]}},alertStyle:{type:String,default:""},pageTitle:{type:String,default:""}},data:function(){var e=this.message;!this.message&&this.configKeys.length>0&&(e=1===this.configKeys.length?c(this.configKeys):u(r["a"].getters.enterPriseWechatConfig),e=e&&e.replace("[pageTitle]",this.pageTitle));var t=this.configKeys.length>0&&e;return{showAlert:t,showMessage:e}},computed:{},watch:{},created:function(){},mounted:function(){},methods:{}},p=d,f=i("2877"),A=i("3aa1"),h=i.n(A),m=Object(f["a"])(p,a,n,!1,null,"79a0488b",null);"function"===typeof h.a&&h()(m);t["a"]=m.exports},f742:function(e,t,i){"use strict";i("f15b")},f745:function(e,t,i){"use strict";i("2720")},f794:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container",staticStyle:{padding:"0"}},[i("RightContainer",{scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0}},[i("el-form-item",{attrs:{prop:"menuName"}},[i("el-input",{attrs:{placeholder:"请输入菜单名称",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.menuName,callback:function(t){e.$set(e.queryParams,"menuName",t)},expression:"queryParams.menuName"}})],1),i("el-form-item",{attrs:{prop:"status"}},[i("el-select",{attrs:{placeholder:"请选择菜单开启状态",clearable:"",size:"small"},model:{value:e.queryParams.status,callback:function(t){e.$set(e.queryParams,"status",t)},expression:"queryParams.status"}},e._l(e.statusOptions,(function(e){return i("el-option",{key:e.dictValue,attrs:{label:e.dictLabel,value:e.dictValue}})})),1)],1),i("el-form-item",[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.handleQuery()}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"operate-btn",fn:function(){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:menu:add"],expression:"['system:menu:add']"}],attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增菜单")])]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.menuList,"row-key":"menuId","tree-props":{children:"children",hasChildren:"hasChildren"}}},[i("el-table-column",{attrs:{prop:"menuName",label:"菜单名称","show-overflow-tooltip":!0,width:"160"}}),i("el-table-column",{attrs:{prop:"icon",label:"图标",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(e){return[i("svg-icon",{attrs:{"icon-class":e.row.icon}})]}}])}),i("el-table-column",{attrs:{prop:"orderNum",label:"排序",width:"60"}}),i("el-table-column",{attrs:{prop:"perms",label:"权限标识","show-overflow-tooltip":!0}}),i("el-table-column",{attrs:{prop:"component",label:"组件路径","show-overflow-tooltip":!0}}),i("el-table-column",{attrs:{prop:"status",label:"状态",formatter:e.statusFormat,width:"80"}}),i("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"createTime"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e.parseTime(t.row.createTime)))])]}}])}),i("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:menu:edit"],expression:"['system:menu:edit']"}],attrs:{size:"mini",type:"text"},on:{click:function(i){return e.handleUpdate(t.row)}}},[e._v("修改")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:menu:add"],expression:"['system:menu:add']"}],attrs:{size:"mini",type:"text"},on:{click:function(i){return e.handleAdd(t.row)}}},[e._v("新增")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:menu:remove"],expression:"['system:menu:remove']"}],attrs:{size:"mini",type:"text"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("删除")])]}}])})],1)]},proxy:!0}])}),i("el-dialog",{staticClass:"foot-button-reverse-dialog-wrapper",attrs:{title:e.title,visible:e.open,width:"600px","append-to-body":"","close-on-click-modal":!1},on:{"update:visible":function(t){e.open=t}}},[i("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[i("el-row",[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"上级菜单"}},[i("treeselect",{attrs:{options:e.menuOptions,normalizer:e.normalizer,"show-count":!0,placeholder:"选择上级菜单"},model:{value:e.form.parentId,callback:function(t){e.$set(e.form,"parentId",t)},expression:"form.parentId"}})],1)],1),i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"菜单类型",prop:"menuType"}},[i("el-radio-group",{model:{value:e.form.menuType,callback:function(t){e.$set(e.form,"menuType",t)},expression:"form.menuType"}},[i("el-radio",{attrs:{label:"M"}},[e._v("目录")]),i("el-radio",{attrs:{label:"C"}},[e._v("菜单")]),i("el-radio",{attrs:{label:"F"}},[e._v("按钮")]),i("el-radio",{attrs:{label:"P"}},[e._v("页面")])],1)],1)],1),i("el-col",{attrs:{span:24}},["F"!=e.form.menuType?i("el-form-item",{attrs:{label:"菜单图标"}},[i("el-popover",{attrs:{placement:"bottom-start",width:"460",trigger:"click"},on:{show:function(t){return e.$refs["iconSelect"].reset()}}},[i("IconSelect",{ref:"iconSelect",on:{selected:e.selected}}),i("el-input",{attrs:{slot:"reference",placeholder:"点击选择图标"},slot:"reference",model:{value:e.form.icon,callback:function(t){e.$set(e.form,"icon",t)},expression:"form.icon"}},[e.form.icon?i("svg-icon",{staticClass:"el-input__icon",staticStyle:{height:"32px",width:"16px"},attrs:{slot:"prefix","icon-class":e.form.icon},slot:"prefix"}):i("i",{staticClass:"el-icon-search el-input__icon",attrs:{slot:"prefix"},slot:"prefix"})],1)],1)],1):e._e()],1),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"菜单名称",prop:"menuName"}},[i("el-input",{attrs:{placeholder:"请输入菜单名称"},model:{value:e.form.menuName,callback:function(t){e.$set(e.form,"menuName",t)},expression:"form.menuName"}})],1)],1),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"显示排序",prop:"orderNum"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.orderNum,callback:function(t){e.$set(e.form,"orderNum",t)},expression:"form.orderNum"}})],1)],1),i("el-col",{attrs:{span:12}},["F"!=e.form.menuType?i("el-form-item",{attrs:{label:"是否外链"}},[i("el-radio-group",{model:{value:e.form.isFrame,callback:function(t){e.$set(e.form,"isFrame",t)},expression:"form.isFrame"}},[i("el-radio",{attrs:{label:"0"}},[e._v("是")]),i("el-radio",{attrs:{label:"1"}},[e._v("否")])],1)],1):e._e()],1),i("el-col",{attrs:{span:12}},["F"!=e.form.menuType?i("el-form-item",{attrs:{label:"路由地址",prop:"path"}},[i("el-input",{attrs:{placeholder:"请输入路由地址"},model:{value:e.form.path,callback:function(t){e.$set(e.form,"path",t)},expression:"form.path"}})],1):e._e()],1),["C","P"].includes(e.form.menuType)?i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"组件路径",prop:"component"}},[i("el-input",{attrs:{placeholder:"请输入组件路径"},model:{value:e.form.component,callback:function(t){e.$set(e.form,"component",t)},expression:"form.component"}})],1)],1):e._e(),i("el-col",{attrs:{span:12}},["M"!=e.form.menuType?i("el-form-item",{attrs:{label:"权限标识"}},[i("el-input",{attrs:{placeholder:"请权限标识",maxlength:"50"},model:{value:e.form.perms,callback:function(t){e.$set(e.form,"perms",t)},expression:"form.perms"}})],1):e._e()],1),i("el-col",{attrs:{span:12}},["F"!=e.form.menuType?i("el-form-item",{attrs:{label:"显示状态"}},[i("el-radio-group",{model:{value:e.form.visible,callback:function(t){e.$set(e.form,"visible",t)},expression:"form.visible"}},e._l(e.visibleOptions,(function(t){return i("el-radio",{key:t.dictValue,attrs:{label:t.dictValue}},[e._v(e._s(t.dictLabel))])})),1)],1):e._e()],1),i("el-col",{attrs:{span:12}},["F"!=e.form.menuType?i("el-form-item",{attrs:{label:"菜单状态"}},[i("el-radio-group",{model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},e._l(e.statusOptions,(function(t){return i("el-radio",{key:t.dictValue,attrs:{label:t.dictValue}},[e._v(e._s(t.dictLabel))])})),1)],1):e._e()],1)],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("RequestButton",{attrs:{type:"primary","request-method":e.submitForm,"button-type":"submit"}},[e._v("确 定")]),i("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},n=[],r=(i("d3b7"),i("52a9")),s=i("cf45"),o=i("a6dc"),l=i("ca17"),c=i.n(l),u=(i("542c"),function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"icon-body"},[i("el-input",{staticStyle:{position:"relative"},attrs:{clearable:"",placeholder:"请输入图标名称"},on:{clear:e.filterIcons},nativeOn:{input:function(t){return e.filterIcons(t)}},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}},[i("i",{staticClass:"el-icon-search el-input__icon",attrs:{slot:"suffix"},slot:"suffix"})]),i("div",{staticClass:"icon-list"},e._l(e.iconList,(function(t,a){return i("div",{key:a,on:{click:function(i){return e.selectedIcon(t)}}},[i("svg-icon",{staticStyle:{height:"30px",width:"16px"},attrs:{"icon-class":t}}),i("span",[e._v(e._s(t))])],1)})),0)],1)}),d=[],p=(i("4de4"),i("caad"),i("b0c0"),i("2532"),i("d81d"),i("ac1f"),i("466d"),i("ddb0"),i("23f1")),f=function(e){return e.keys()},A=/\.\/(.*)\.svg/,h=f(p).map((function(e){return e.match(A)[1]})),m=h,g={name:"IconSelect",data:function(){return{name:"",iconList:m}},methods:{filterIcons:function(){var e=this;this.iconList=m,this.name&&(this.iconList=this.iconList.filter((function(t){return t.includes(e.name)})))},selectedIcon:function(e){this.$emit("selected",e),document.body.click()},reset:function(){this.name="",this.iconList=m}}},v=g,b=(i("fd89"),i("2877")),y=Object(b["a"])(v,u,d,!1,null,"44d589bf",null),_=y.exports,w=i("b66d"),C=i("e2e0"),x={name:"Menu",components:{Treeselect:c.a,IconSelect:_,RightContainer:w["a"],RequestButton:r["a"]},mixins:[C["a"]],data:function(){return{loading:!0,showSearch:!0,menuList:[],menuOptions:[],title:"",open:!1,visibleOptions:[],statusOptions:[],queryParams:{menuName:void 0,visible:void 0},form:{},rules:{menuName:[{required:!0,message:"菜单名称不能为空",trigger:"blur"}],orderNum:[{required:!0,message:"菜单顺序不能为空",trigger:"blur"}],path:[{required:!0,message:"路由地址不能为空",trigger:"blur"}]}}},created:function(){var e=this;this.getList(),this.getDicts("sys_show_hide").then((function(t){e.visibleOptions=t.data})),this.getDicts("sys_normal_disable").then((function(t){e.statusOptions=t.data}))},methods:{selected:function(e){this.form.icon=e},getList:function(){var e=this;this.loading=!0,Object(o["d"])(this.queryParams).then((function(t){e.menuList=e.handleTree(t.data,"menuId")})).finally((function(){e.modifyButtonStatus(),e.loading=!1}))},normalizer:function(e){var t;return!e.children||null!==(t=e.children)&&void 0!==t&&t.length||delete e.children,{id:e.menuId,label:e.menuName,children:e.children}},getTreeselect:function(){var e=this;Object(o["d"])().then((function(t){e.menuOptions=[];var i={menuId:0,menuName:"主类目",children:[]};i.children=e.handleTree(t.data,"menuId"),e.menuOptions.push(i)}))},visibleFormat:function(e,t){return"F"===e.menuType?"":this.selectDictLabel(this.visibleOptions,e.visible)},statusFormat:function(e,t){return"F"===e.menuType?"":this.selectDictLabel(this.statusOptions,e.status)},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={menuId:void 0,parentId:0,menuName:void 0,icon:void 0,menuType:"M",orderNum:void 0,isFrame:"1",visible:"0",status:"0"},this.resetForm("form")},handleQuery:function(){this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleAdd:function(e){this.reset(),this.getTreeselect(),null!=e&&e.menuId?this.form.parentId=e.menuId:this.form.parentId=0,this.open=!0,this.title="添加菜单"},handleUpdate:function(e){var t=this;this.reset(),this.getTreeselect(),Object(o["c"])(e.menuId).then((function(e){t.form=e.data,t.open=!0,t.title="修改菜单"}))},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t?void 0!==e.form.menuId?Object(o["f"])(e.form).then((function(t){Object(s["i"])(e.$store,"submit"),e.msgSuccess("修改成功"),e.open=!1,e.getList()})):Object(o["a"])(e.form).then((function(t){Object(s["i"])(e.$store,"submit"),e.msgSuccess("新增成功"),e.open=!1,e.getList()})):Object(s["i"])(e.$store,"submit")}))},handleDelete:function(e){var t=this;this.confirmModal({msg:"即将删除菜单项“"+e.menuName+"”,删除后系统将不再显示,是否继续?"},(function(){return Object(o["b"])(e.menuId).then((function(){t.getList(),t.msgSuccess("删除成功")})).catch((function(){}))}))}}},k=x,T=Object(b["a"])(k,a,n,!1,null,null,null);t["default"]=T.exports},f7d0:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var a=i("2909");i("c740"),i("a434");function n(e,t,i){var n=Object(a["a"])(e),r=e.findIndex((function(e){return e.id===t.id}));r>-1?n.splice(r,1):n.push(t),i(n)}},f82c:function(e,t,i){"use strict";i.r(t);var a,n,r=i("2877"),s={},o=Object(r["a"])(s,a,n,!1,null,null,null);t["default"]=o.exports},f853:function(e,t,i){"use strict";i("8a40")},f8b7:function(e,t,i){"use strict";i.d(t,"f",(function(){return r})),i.d(t,"b",(function(){return s})),i.d(t,"c",(function(){return o})),i.d(t,"d",(function(){return l})),i.d(t,"e",(function(){return c})),i.d(t,"a",(function(){return u}));var a=i("b775"),n=window.CONFIG.services.wecom+"/order";function r(e){return Object(a["a"])({url:n+"/verifyNetwork",method:"get",params:e,disableErrMsg:!0})}function s(e){return Object(a["a"])({url:n+"/getBindTotal",method:"get",params:e})}function o(e){return Object(a["a"])({url:n+"/listOfBindDetail",method:"get",params:e})}function l(e){return Object(a["a"])({url:n+"/networkUser",method:"get",params:e})}function c(e){return Object(a["a"])({url:n+"/unbindUser",method:"post",data:e})}function u(e){return Object(a["a"])({url:n+"/bindUser",method:"post",data:e})}},f8cf:function(e,t,i){e.exports=i.p+"static/img/delete-customer.d4f5aeb2.svg"},f8f0:function(e,t,i){"use strict";i("278d")},f922:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"form-setting"},[i("el-form",{attrs:{"label-position":"top","label-width":"80px",model:e.filedForm}},[i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("必填")]),i("el-switch",{model:{value:e.filedForm.required,callback:function(t){e.$set(e.filedForm,"required",t)},expression:"filedForm.required"}})],1)]),i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("标题")])]),i("el-input",{attrs:{resize:"none","show-word-limit":"",maxlength:100,type:"textarea",rows:6},model:{value:e.filedForm.title,callback:function(t){e.$set(e.filedForm,"title",t)},expression:"filedForm.title"}})],1),i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("提示语")])]),i("el-input",{attrs:{resize:"none","show-word-limit":"",maxlength:200,type:"textarea",rows:6},model:{value:e.filedForm.info,callback:function(t){e.$set(e.filedForm,"info",t)},expression:"filedForm.info"}})],1),i("el-form-item",[i("div",{staticClass:"form-label",attrs:{slot:"label"},slot:"label"},[i("span",{staticClass:"label-name"},[e._v("日期类型 ")])]),i("el-radio-group",{model:{value:e.filedForm.dataType,callback:function(t){e.$set(e.filedForm,"dataType",t)},expression:"filedForm.dataType"}},[i("el-radio",{attrs:{label:e.YEAR_MONTH_TYPE}},[e._v("年-月-日")]),i("el-radio",{attrs:{label:e.HOURS_MINUTE_TYPE}},[e._v("年-月-日 时:分")])],1)],1)],1)],1)},n=[],r=i("5530"),s=i("81f6"),o=1,l=2,c={components:{},props:{component:{type:Object,default:function(){}}},data:function(){return{HOURS_MINUTE_TYPE:l,YEAR_MONTH_TYPE:o,filedForm:{required:!0,title:"日期时间",info:"请选择",dataType:o}}},watch:{filedForm:{deep:!0,handler:function(e){s["a"].$emit("changeFiledSettingValue",Object(r["a"])(Object(r["a"])({},e),this.filedForm))}}},mounted:function(){this.filedForm=Object(r["a"])(Object(r["a"])({},this.filedForm),this.component)}},u=c,d=(i("1640"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"e5af0568",null);t["default"]=p.exports},f952:function(e,t,i){"use strict";i("8586a")},f9d1:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"k",(function(){return s})),i.d(t,"d",(function(){return o})),i.d(t,"j",(function(){return l})),i.d(t,"r",(function(){return c})),i.d(t,"n",(function(){return u})),i.d(t,"l",(function(){return d})),i.d(t,"a",(function(){return p})),i.d(t,"c",(function(){return f})),i.d(t,"q",(function(){return A})),i.d(t,"o",(function(){return h})),i.d(t,"g",(function(){return m})),i.d(t,"h",(function(){return g})),i.d(t,"e",(function(){return v})),i.d(t,"f",(function(){return b})),i.d(t,"i",(function(){return y})),i.d(t,"m",(function(){return _})),i.d(t,"p",(function(){return w}));var a=i("b775"),n=window.CONFIG.services.wecom+"/radar";function r(e){return Object(a["a"])({url:n+"/add",method:"post",data:e})}function s(e){return Object(a["a"])({url:n+"/list",method:"get",params:e})}function o(e){return Object(a["a"])({url:n+"/remove",method:"delete",data:e})}function l(e){return Object(a["a"])({url:n+"/get",method:"get",params:e})}function c(e){return Object(a["a"])({url:n+"/update",method:"put",data:e})}function u(e){return Object(a["a"])({url:n+"/record/getTotal",method:"get",params:e})}function d(e){return Object(a["a"])({url:n+"/channel/list",method:"get",params:e})}function p(e){return Object(a["a"])({url:n+"/channel/add",method:"post",data:e})}function f(e){return Object(a["a"])({url:n+"/channel/remove",method:"delete",data:e})}function A(e){return Object(a["a"])({url:n+"/channel/update",method:"put",data:e})}function h(e){return Object(a["a"])({url:n+"/record/getTimeRangeAnalyseCount",method:"get",params:e})}function m(e){return Object(a["a"])({url:n+"/record/getChannelSort",method:"get",params:e})}function g(e){return Object(a["a"])({url:n+"/record/getCustomerClickRecord",method:"get",params:e})}function v(e){return Object(a["a"])({url:n+"/record/getChannelClickRecord",method:"get",params:e})}function b(e){return Object(a["a"])({url:n+"/record/getChannelClickRecordDetail",method:"get",params:e})}function y(e){return Object(a["a"])({url:n+"/record/getCustomerClickRecordDetail",method:"get",params:e})}function _(e){return Object(a["a"])({url:n+"/config",method:"get",params:e})}function w(e){return Object(a["a"])({url:n+"/config",method:"post",data:e})}},f9de:function(e,t,i){"use strict";i("51fe")},fa5d:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"special-step-page"},[i("div",{staticClass:"step-row-div time-stamp-div"},[i("div",{staticClass:"label"},[e._v("生效时段")]),i("div",{staticStyle:{margin:"0 10px 0 0"}},[e._v("每周")]),i("el-select",{staticStyle:{width:"184px","margin-right":"8px"},attrs:{multiple:"",placeholder:"请选择",clearable:""},model:{value:e.ruleItem.weekendList,callback:function(t){e.$set(e.ruleItem,"weekendList",t)},expression:"ruleItem.weekendList"}},e._l(e.weekOptions,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),i("el-time-picker",{staticStyle:{width:"172px","margin-right":"10px","padding-left":"6px","padding-right":"0"},attrs:{"is-range":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",placeholder:"选择时间范围","value-format":"HH:mm",format:"HH:mm"},on:{blur:e.handleBlur,focus:e.handleFocus},model:{value:e.timeStamp,callback:function(t){e.timeStamp=t},expression:"timeStamp"}}),i("div",[e._v("发送以下欢迎语")])],1),i("div",{staticClass:"step-row-div",staticStyle:{"align-items":"initial"}},[i("div",{staticClass:"label"},[e._v("欢迎语")]),i("div",{staticClass:"welcome-input-div"},[i("el-input",{attrs:{type:"textarea",maxlength:e.welMsgMaxlength,"show-word-limit":"",autosize:{minRows:4,maxRows:10},placeholder:"请输入欢迎语"},model:{value:e.ruleItem.specialWelcomeMsg,callback:function(t){e.$set(e.ruleItem,"specialWelcomeMsg",t)},expression:"ruleItem.specialWelcomeMsg"}}),i("div",{staticClass:"quick-actions"},[i("span",{on:{click:function(t){return e.handeAddTextClick("#客户昵称#",e.index)}}},[e._v("#客户昵称#")]),i("span",{on:{click:function(t){return e.handeAddTextClick("#员工姓名#",e.index)}}},[e._v("#员工姓名#")])]),i("AddAppendixBtn",{attrs:{"sub-title":e.subTitle,"limit-select-length":e.limitSelectLength,"max-appendix-num":e.MAX_APPENDIX_NUM,"appendix-list":e.specialMaterialList,"msg-tip":"时段欢迎语"+e.index+"最多支持设置9个欢迎语","remove-appendix-list":e.removeAppendixList},on:{"update:appendixList":function(t){e.specialMaterialList=t},"update:appendix-list":function(t){e.specialMaterialList=t},"update:removeAppendixList":function(t){e.removeAppendixList=t},"update:remove-appendix-list":function(t){e.removeAppendixList=t}}})],1),i("div",{staticClass:"tool-div theme-text-color"},[i("div",{staticStyle:{"margin-right":"10px"},on:{click:e.onPreview}},[e._v("预览效果")]),i("div",{on:{click:function(t){return e.handleDelWel(e.index)}}},[e._v("删除")])])]),i("el-dialog",{staticClass:"preview-dialog",attrs:{title:"预览效果",visible:e.previewVisible,width:"500px","append-to-body":"","close-on-click-modal":!1},on:{"update:visible":function(t){e.previewVisible=t}}},[i("div",{staticClass:"preview-phone"},[i("PhoneDialog",{attrs:{message:e.ruleItem.specialWelcomeMsg,"msg-list":e.specialMaterialList,"un-show-video-cover":!0}})],1)])],1)},n=[],r=i("c7eb"),s=i("1da1"),o=i("2909"),l=(i("99af"),i("d81d"),i("a434"),i("a9e3"),i("4887")),c=i("dd70"),u=i("8bd5"),d={name:"",components:{AddAppendixBtn:l["a"],PhoneDialog:u["a"]},props:{ruleItem:{type:Object,default:function(){}},handeAddTextClick:{type:Function,default:function(){}},subTitle:{type:String,default:""},welMsgMaxlength:{type:Number,default:0},weMsgTlpSpecialRules:{type:Array,default:function(){return[]}},index:{type:Number,default:0},checkRepeatTime:{type:Function,default:function(){}}},data:function(){var e=function(){for(var e=c["Ed"],t=[],i=0;i<e.length;i++)t.push({label:"周".concat(e[i]),value:i+1});return t};return{weekOptions:e(),specialMaterialList:[],timeStamp:[],previewVisible:!1,removeAppendixList:[],MAX_APPENDIX_NUM:c["Tb"],limitSelectLength:c["Tb"]}},watch:{specialMaterialList:function(e){var t=Object(o["a"])(this.weMsgTlpSpecialRules);t[this.index].specialMaterialList=e,this.$emit("update:weMsgTlpSpecialRules",t),this.limitSelectLength=c["Tb"]-e.length},timeStamp:function(e){if(e){var t=Object(o["a"])(this.weMsgTlpSpecialRules);t[this.index].weekendBeginTime=e[0],t[this.index].weekendEndTime=e[1],this.$emit("update:weMsgTlpSpecialRules",t)}},removeAppendixList:function(e){if(e&&e.length){var t=Object(o["a"])(this.weMsgTlpSpecialRules);t[this.index].removeAppendixList=e,this.$emit("update:weMsgTlpSpecialRules",t)}}},created:function(){},mounted:function(){this.specialMaterialList=Object(o["a"])(this.ruleItem.specialMaterialList),this.timeStamp=[this.ruleItem.weekendBeginTime||"00:00:00",this.ruleItem.weekendEndTime||"23:59:59"]},methods:{handleDelWel:function(e){var t=this;this.confirmModal({msg:"该时段欢迎语将被删除,是否继续?"},Object(s["a"])(Object(r["a"])().mark((function i(){var a;return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:a=Object(o["a"])(t.weMsgTlpSpecialRules),a.splice(e,1),t.$emit("update:weMsgTlpSpecialRules",a),t.$emit("removeSpecialRule",t.ruleItem);case 4:case"end":return i.stop()}}),i)}))))},onPreview:function(){this.previewVisible=!0},handleBlur:function(){var e=[];this.weMsgTlpSpecialRules.map((function(t){e=e.concat(t.weekendList)})),this.checkRepeatTime(e)},handleFocus:function(){this.timeStamp[0]||this.timeStamp[1]||(this.timeStamp=["00:00:00","23:59:59"])}}},p=d,f=(i("8d33"),i("2877")),A=Object(f["a"])(p,a,n,!1,null,"c9ac440a",null);t["default"]=A.exports},fa66:function(e,t,i){"use strict";i("1057")},fa77:function(e,t,i){e.exports=i.p+"static/img/appid-demo-1-3.3517a536.svg"},faa1:function(e,t,i){e.exports=i.p+"static/img/easyWeComLogo.d840c63a.png"},fab6:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("RightContainer",{attrs:{"config-keys":["contactSecret"],"page-title":"正常使用员工活码"},scopedSlots:e._u([{key:"search",fn:function(){return[i("el-form",{ref:"queryForm",staticClass:"top-search",attrs:{model:e.query,inline:!0,"label-width":"100px"}},[i("el-form-item",{attrs:{prop:"useUserName"}},[i("el-input",{attrs:{placeholder:"请输入员工姓名",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(1)}},model:{value:e.query.useUserName,callback:function(t){e.$set(e.query,"useUserName",t)},expression:"query.useUserName"}})],1),i("el-form-item",{attrs:{prop:"scenario"}},[i("el-input",{attrs:{placeholder:"请输入活动场景",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(1)}},model:{value:e.query.scenario,callback:function(t){e.$set(e.query,"scenario",t)},expression:"query.scenario"}})],1),i("el-form-item",{attrs:{prop:"createBy"}},[i("el-input",{attrs:{placeholder:"请输入创建人姓名",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(1)}},model:{value:e.query.createBy,callback:function(t){e.$set(e.query,"createBy",t)},expression:"query.createBy"}})],1),i("el-form-item",[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1),i("el-form-item",{attrs:{label:" "}},[i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],attrs:{type:"primary",loading:e.searchButtonLoading},on:{click:function(){e.searchButtonLoading=!0,e.getList(1)}}},[e._v("查询")]),i("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick",value:200,expression:"200"}],staticClass:"btn-reset",attrs:{loading:e.resetButtonLoading},on:{click:function(){e.resetButtonLoading=!0,e.resetQuery()}}},[e._v("重置")])],1)],1)]},proxy:!0},{key:"operate-btn",fn:function(){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:code:add"],expression:"['wecom:code:add']"}],attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.goRoute("staffAdd")}}},[e._v("新建员工活码")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:code:remove"],expression:"['wecom:code:remove']"}],staticClass:"btn-reset",attrs:{type:"reset",size:"mini"},on:{click:function(t){return e.remove()}}},[e._v("批量删除")]),i("el-button",{staticClass:"btn-reset",attrs:{type:"reset",size:"mini"},on:{click:function(t){return e.downloadBatch()}}},[e._v("批量下载")])]},proxy:!0},{key:"data",fn:function(){return[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,"max-height":"600"},on:{"selection-change":e.handleSelectionChange}},[i("template",{slot:"empty"},[i("empty-default-icon",{attrs:{"btn-text":"新建员工活码",length:e.list.length,"btn-click":e.goToStaffAdd,"btn-show-condition":e.getQueryObj(),"btn-config":["contactSecret"],"btn-permi-key":["wecom:code:add"]}})],1),i("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),i("el-table-column",{attrs:{label:"活码预览",align:"center",width:"200",prop:"qrCode"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("div",{staticClass:"code-left"},[i("el-popover",{attrs:{placement:"bottom",trigger:"hover"}},[i("el-image",{staticClass:"code-image--small",attrs:{slot:"reference",src:a.qrCode},slot:"reference"}),i("el-image",{staticClass:"code-image",attrs:{src:a.qrCode}})],1)],1),i("div",{staticClass:"code-right"},[i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.download(a.id,a.useUserName,a.scenario)}}},[e._v("下载")]),i("el-button",{directives:[{name:"copy",rawName:"v-copy",value:a.qrCode,expression:"row.qrCode"}],staticClass:"copy-btn",attrs:{type:"text"}},[e._v("复制图片链接")]),i("el-button",{staticClass:"copy-btn",attrs:{type:"text"},on:{click:function(t){return e.getLink(a)}}},[e._v("复制小程序链接")])],1)]}}])}),i("el-table-column",{attrs:{label:"员工",align:"center",prop:"useUserName,departmentName","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(e){return[i("ListUserShow",{attrs:{"use-user-name":e.row.useUserName,"department-name":e.row.departmentName}})]}}])}),i("el-table-column",{attrs:{label:"活动场景",align:"center",prop:"scenario","show-overflow-tooltip":""}}),i("el-table-column",{attrs:{label:"创建人",align:"center",prop:"createBy"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"al"},[i("div",{staticClass:"cus-owner"},[e._v(e._s(t.row.createBy))]),i("div",{staticClass:"cus-dept"},[e._v(e._s(t.row.mainDepartmentName))])])]}}])}),i("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"createTime",width:"180"}}),i("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.copy(a.id,a.scenario)}}},[e._v("复制")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:code:query"],expression:"['wecom:code:query']"}],attrs:{type:"text"},on:{click:function(t){return e.goRoute("staffDetail",a.id)}}},[e._v("详情")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:code:edit"],expression:"['wecom:code:edit']"}],attrs:{type:"text"},on:{click:function(t){return e.goRoute("staffAdd",a.id)}}},[e._v("编辑")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:code:remove"],expression:"['wecom:code:remove']"}],attrs:{type:"text"},on:{click:function(t){return e.remove(a.id)}}},[e._v("删除")]),i("el-dropdown",{attrs:{trigger:"click",placement:"bottom"}},[i("el-button",{staticClass:"ml10",attrs:{type:"text"}},[e._v("更多")]),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{directives:[{name:"copy",rawName:"v-copy",value:a.id,expression:"row.id"}]},[e._v("复制活码ID")])],1)],1)]}}])})],2),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{disabled:e.loading,total:e.total,page:e.query.pageNum,limit:e.query.pageSize,"select-data-len":e.ids.length},on:{"update:page":function(t){return e.$set(e.query,"pageNum",t)},"update:limit":function(t){return e.$set(e.query,"pageSize",t)},pagination:function(t){return e.getList()}}})]},proxy:!0}])})],1)},n=[],r=i("c7eb"),s=i("5530"),o=i("1da1"),l=(i("d81d"),i("b0c0"),i("b64b"),i("d3b7"),i("3ca3"),i("159b"),i("ddb0"),i("2b3d"),i("bf19"),i("9861"),i("62db")),c=i("e77d"),u=i("ed08"),d=i("dd70"),p=i("b66d"),f=i("79b6"),A=i("e2e0"),h={name:"CodeStaff",components:{EmptyDefaultIcon:c["a"],RightContainer:p["a"],ListUserShow:f["a"]},mixins:[A["a"]],data:function(){return{query:{pageNum:1,pageSize:d["Ic"],useUserName:void 0,scenario:void 0,createBy:void 0,beginTime:void 0,endTime:void 0},form:{},dateRange:[],loading:!1,ids:[],total:0,list:[]}},created:function(){if(this.$store.getters.saveCondition&&Object.keys(this.$store.getters.searchQuery[this.$route.name]||{}).length){var e=this.$store.getters.searchQuery[this.$route.name],t=e.beginTime,i=e.endTime;t&&i&&(this.dateRange=[t,i]),this.query=this.$store.getters.searchQuery[this.$route.name]}this.getList(),this.$store.dispatch("app/setBusininessDesc","\n <div>支持单人、批量单人及多人方式新建员工活码,客户可以通过扫描员工活码添加员工为好友,并支持自动给客户打标签和发送欢迎语。</div>\n ")},methods:{copy:function(e,t){var i=this;this.confirmModal({msg:"确定复制【"+t+"】活码?"},(function(){return i.getDetail(e)}))},getDetail:function(e){var t=this;return Object(o["a"])(Object(r["a"])().mark((function i(){return Object(r["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:t.loading=!0,Object(l["g"])(e).then(function(){var e=Object(o["a"])(Object(r["a"])().mark((function e(i){var a;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=i.data,a.weEmpleCodeUseScops=a.weEmpleCodeUseScops.map((function(e){return Object(s["a"])(Object(s["a"])({},e),{},{userId:e.businessIdType===d["Uc"].USER?e.businessId:void 0,name:e.businessName})})),t.form.codeType=a.codeType,t.form.isAutoPass=a.isAutoPass,t.form.isAutoSetRemark=a.isAutoSetRemark,t.form.materialList=a.materialList,t.form.qrCode=a.qrCode,t.form.remarkName=a.remarkName,t.form.remarkType=a.remarkType,t.form.scenario=a.scenario,t.form.skipVerify=a.skipVerify,t.form.weEmpleCodeTags=a.weEmpleCodeTags,t.form.weEmpleCodeUseScops=a.weEmpleCodeUseScops,t.form.welcomeMsg=a.welcomeMsg,t.form.welcomeMsgType=a.welcomeMsgType,t.form.tagFlag=a.tagFlag,e.next=19,Object(l["a"])(t.form).then((function(){t.msgSuccess("复制成功"),t.getList(1)}));case 19:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return i.stop()}}),i)})))()},getList:function(e){var t=this;this.dateRange?(this.query.beginTime=this.dateRange[0],this.query.endTime=this.dateRange[1]):(this.query.beginTime="",this.query.endTime=""),e&&(this.query.pageNum=e),this.loading=!0,Object(l["i"])(this.query).then((function(e){var i=e.rows,a=e.total;t.list=i,t.total=+a,t.loading=!1,t.ids=[]})).finally((function(){t.loading=!1,t.modifyButtonStatus()}))},resetQuery:function(){this.dateRange=[],this.query=this.$options.data().query,this.getList(1)},goRoute:function(e,t){this.$store.commit("SET_SEARCH_QUERY",{pageName:this.$route.name,query:this.query}),Object(u["l"])(this.$router,e,{},{id:t})},goToStaffAdd:function(){this.goRoute("staffAdd")},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.id}))},remove:function(e){var t=this;if(e||this.ids.length){var i=e||this.ids;this.confirmModal({msg:"删除后,已下载的活码将失效,是否继续?"},(function(){return Object(l["l"])(i).then((function(){t.getList(),t.msgSuccess("删除成功")}))}))}else this.msgWarn("请至少选择一个员工活码")},download:function(e,t,i){var a=t+"-"+i+".png";Object(l["b"])(e).then((function(e){if(null!=e){var t=new Blob([e],{type:"application/zip"}),i=window.URL.createObjectURL(t),n=document.createElement("a");n.href=i,n.download=a,n.click(),URL.revokeObjectURL(i)}}))},downloadBatch:function(e){var t=this;this.ids.length?this.confirmModal({msg:"即将以压缩包形式下载已选中的活码图片,是否继续?"},(function(){return Object(l["c"])(t.ids+"").then((function(e){if(null!=e){var t=new Blob([e],{type:"application/zip"}),i=window.URL.createObjectURL(t),a=document.createElement("a");a.href=i,a.download="批量员工活码.zip",a.click(),URL.revokeObjectURL(i)}}))})):this.msgWarn("请至少选择一个员工活码")},getQueryObj:function(){var e=this.query,t=e.useUserName,i=e.scenario,a=e.createBy,n=e.beginTime,r=e.endTime;return{useUserName:t,scenario:i,createBy:a,beginTime:n,endTime:r}},getLink:function(e){var t=this;e.appLink?Object(u["c"])(e.appLink):(this.loading=!0,Object(l["e"])({id:e.id}).then((function(i){i.data&&(t.list.forEach((function(t){t.id===e.id&&(t.appLink=i.data)})),Object(u["c"])(i.data)),t.loading=!1})).catch((function(){t.loading=!1})))}}},m=h,g=(i("3e34"),i("2877")),v=Object(g["a"])(m,a,n,!1,null,"610826d6",null);t["default"]=v.exports},fb36:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"popTree",staticClass:"select-tree-div"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowSelect,expression:"isShowSelect"}],staticClass:"mask"}),i("el-popover",{attrs:{placement:"bottom-start",width:e.popoverWidth,trigger:"manual"},on:{hide:e.popoverHide},model:{value:e.isShowSelect,callback:function(t){e.isShowSelect=t},expression:"isShowSelect"}},[i("el-tree",{ref:"tree",staticClass:"common-tree",attrs:{width:e.width,data:e.treeData,props:e.obj,"show-checkbox":e.multiple,"node-key":e.obj.id,"check-strictly":e.checkStrictly,"default-expanded-keys":e.defaultExpandKeys,"expand-on-click-node":e.multiple&&e.expandClickNode,"check-on-click-node":e.checkClickNode,"highlight-current":!0},on:{"check-change":e.nodeClick,"node-click":e.nodeClick}}),i("el-select",{ref:"select",staticClass:"tree-select",style:e.selectStyle,attrs:{slot:"reference",multiple:e.multiple,clearable:e.clearable,"collapse-tags":e.collapseTags,placeholder:e.placeholder},on:{"remove-tag":e.removeTag,clear:e.clean},nativeOn:{click:function(t){return e.selectClick(t)}},slot:"reference",model:{value:e.returnDataKeys,callback:function(t){e.returnDataKeys=t},expression:"returnDataKeys"}},e._l(e.options,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),i("el-row",[e.multiple?i("el-button",{staticClass:"ok",attrs:{size:"mini",type:"text"},on:{click:function(t){e.isShowSelect=!1}}},[e._v("确定")]):e._e()],1)],1)],1)},n=[],r=(i("99af"),i("d81d"),i("a9e3"),i("d3b7"),i("25f0"),{name:"SelectTree",props:{data:{type:Array,default:function(){return[]}},obj:{type:Object,required:!1,default:function(){return{id:"id",label:"label",children:"children",path:"path",content:"content",pid:"pid"}}},multiple:{type:Boolean,default:function(){return!1}},clearable:{type:Boolean,default:function(){return!1}},collapseTags:{type:Boolean,default:function(){return!1}},checkStrictly:{type:Boolean,default:function(){return!1}},checkClickNode:{type:Boolean,default:function(){return!1}},expandClickNode:{type:Boolean,default:function(){return!1}},defaultKey:{type:[Number,String,Array,Object],default:function(){return[]}},width:{type:String,default:function(){return"100%"}},height:{type:String,default:function(){return"300px"}},defaultExpandKeys:{type:Array,default:function(){return[]}},placeholder:{type:String,default:function(){return""}},selectStyle:{type:String,default:function(){return""}}},data:function(){return{popoverWidth:"0px",isShowSelect:!1,options:[],returnDatas:[],returnDataKeys:[]}},computed:{treeData:function(){var e=this;return this.$nextTick((function(){e.init()})),this.data},allDefaultKey:function(){return this.defaultKey}},watch:{isShowSelect:function(e){this.$refs.select.blur()}},mounted:function(){var e=this;this.$nextTick((function(){document.addEventListener("click",(function(t){var i=e.$refs.popTree;i&&!t.target.contains(i)&&(e.isShowSelect=!1)}))}))},methods:{init:function(){if(void 0!==this.defaultKey&&this.defaultKey.length>0)if(this.multiple){if(-1===Object.prototype.toString.call(this.defaultKey).indexOf("Array"))return;if(-1!==Object.prototype.toString.call(this.defaultKey[0]).indexOf("Object"))this.setDatas(this.defaultKey);else{if(-1===Object.prototype.toString.call(this.defaultKey[0]).indexOf("Number")&&-1===Object.prototype.toString.call(this.defaultKey[0]).indexOf("String"))return;this.setKeys(this.defaultKey)}}else{if(-1===Object.prototype.toString.call(this.defaultKey).indexOf("Number")&&-1===Object.prototype.toString.call(this.defaultKey).indexOf("String")&&-1===Object.prototype.toString.call(this.defaultKey).indexOf("Object"))return;this.setKey(this.defaultKey)}},selectClick:function(){var e=26;return this.$nextTick((function(){this.popoverWidth=this.$refs.select.$el.clientWidth-e})),this.isShowSelect=!this.isShowSelect},nodeClick:function(e,t){var i=this;if(this.multiple){var a=this.$refs.tree.getCheckedKeys(),n=[];this.options=a.map((function(e){var t=i.$refs.tree.getNode(e);return n.push(t.data),{label:t.label,value:t.key}})),this.returnDataKeys=this.options.map((function(e){return e.value})),this.returnDatas=n}else this.isShowSelect=!1,this.setKey(t.key)},clean:function(){this.$refs.tree.setCurrentKey(null),this.returnDatas=null,this.returnDataKeys="",this.popoverHide()},setKey:function(e){this.$refs.tree.setCurrentKey(e);var t=this.$refs.tree.getNode(e);this.setData(null===t||void 0===t?void 0:t.data)},setData:function(e){this.options=[],e&&(this.options.push({label:e[this.obj.label],value:e[this.obj.id]}),this.returnDatas=e,this.returnDataKeys=e[this.obj.id])},setKeys:function(e){var t=this;this.$refs.tree.setCheckedKeys(e),this.returnDataKeys=e;var i=[];e.map((function(e){var a=t.$refs.tree.getNode(e);return i.push(a.data),{label:a.label,value:a.key}})),this.returnDatas=i,this.popoverHide()},setDatas:function(e){var t=this;this.$refs.tree.setCheckedNodes(e),this.returnDatas=e;var i=[];e.map((function(e){i.push(e[t.obj.id])})),this.returnDataKeys=i,this.popoverHide()},removeTag:function(e){var t=this;this.$refs.tree.setChecked(e,!1);var i=this.$refs.tree.getNode(e);!this.checkStrictly&&i.childNodes.length>0&&this.treeToList(i).map((function(e){e.childNodes.length<=0&&t.$refs.tree.setChecked(e,!1)})),this.nodeClick(),this.popoverHide()},popoverHide:function(){this.$emit("getValue",this.returnDataKeys,this.returnDatas)},clearSelectedNodes:function(){for(var e=this.$refs.tree.getCheckedKeys(),t=0;t<e.length;t++)this.$refs.tree.setChecked(e[t],!1)},treeToList:function(e){var t=[],i=[];t=t.concat(e);while(t.length){var a=t.shift();a.childNodes&&(t=t.concat(a.childNodes)),i.push(a)}return i},switchTree:function(){return this.buildTree(this.data,this.defaultValue)},buildTree:function(e,t){var i=this,a=function(t){for(var n=[],r=0;r<e.length;r++){var s=e[r];s[i.obj.pid]===t&&(s[i.obj.children]=a(s[i.obj.id]),n.push(s))}return n};return a(t)}}}),s=r,o=(i("edd2"),i("2877")),l=Object(o["a"])(s,a,n,!1,null,"07d11a60",null);t["a"]=l.exports},fb56:function(e,t,i){e.exports=i.p+"static/img/contact-step2-4.57a6eaba.jpg"},fbc0:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.showType===e.DRAG_ONE_TYPE||e.showType===e.UPLOAD_ONE_TYPE?i("div",{staticClass:"el-upload-list--picture-card upload-list"},[e.fileUrl?i("div",{staticClass:"preview-div"},[e.showType===e.DRAG_ONE_TYPE?i("el-image",{staticStyle:{width:"100%",height:"121px"},attrs:{src:e.fileUrl,fit:"cover"}}):e._e(),e.showType===e.UPLOAD_ONE_TYPE?i("el-image",{staticStyle:{width:"80px",height:"80px","border-radius":"5px"},attrs:{src:e.fileUrl,fit:"fill"}}):e._e(),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-delete",on:{click:e.removeFile}},[i("i",{staticClass:"el-icon-delete"})])])],1):i("el-upload",e._b({directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"line-height":"12px"},attrs:{action:e.action,"before-upload":e.handleBeforeUpload,"http-request":e.customUploadFile}},"el-upload",e.$attrs,!1),[e.showType===e.DRAG_ONE_TYPE?i("div",[i("i",{staticClass:"el-icon-upload"}),i("div",{staticClass:"el-upload__text"},[i("div",{staticClass:"text"},[e._v(" "+e._s(e.text)),i("em",[e._v("点击上传")])]),e.tip?i("div",{staticClass:"tip"},[e._v(e._s(e.tip))]):e._e()])]):i("div",{staticClass:"upload-icon"},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"}),i("span",[e._v("上传图片")])])])],1):i("div",{staticClass:"carousel-upload"},[e._l(e.fileList,(function(t,a){return i("div",{key:a,staticClass:"el-upload-list--picture-card upload-list mr5 mb5 "},[i("div",{staticClass:"preview-div"},[i("el-image",{staticStyle:{width:"80px",height:"80px","border-radius":"5px"},attrs:{src:t.url,fit:"fill"}}),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleDealImgRemove(a)}}},[i("i",{staticClass:"el-icon-delete"})])])],1)])})),i("el-upload",e._b({directives:[{name:"show",rawName:"v-show",value:e.fileList.length!==e.limit,expression:"fileList.length !== limit"}],attrs:{action:e.action,"list-type":"picture-card","file-list":e.fileList,"http-request":e.customUploadFile,"before-upload":e.handleBeforeUpload,limit:e.limit,"show-file-list":!1}},"el-upload",e.$attrs,!1),[i("div",{staticClass:"upload-icon"},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"}),i("span",[e._v("上传图片")])])]),i("span",{staticClass:"tip"},[e._v(" "+e._s(e.tip)+" ")])],2)},n=[],r=(i("a434"),i("b0c0"),i("a9e3"),i("2934")),s=i("cf45"),o=i("dd70"),l=2,c={name:"",components:{},props:{text:{type:String,default:"将文件拖到此处,或"},showType:{type:Number,default:o["O"]},tip:{type:String,default:""},action:{type:String,default:""},fileUrl:{type:String,default:""},limit:{type:Number,default:o["Tb"]},fileUrlList:{type:Array,default:function(){return[]}}},data:function(){return{loading:!1,IMAGE_COMPONENT:o["Bb"],CAROUSEL_COMPONENT:o["m"],DRAG_ONE_TYPE:o["O"],UPLOAD_ONE_TYPE:o["ud"],fileList:[]}},computed:{getFileIconClass:function(){return Object(s["z"])(this.fileUrl)}},watch:{fileUrlList:{deep:!0,handler:function(e){this.fileList=e}}},created:function(){},mounted:function(){},methods:{handleDealImgRemove:function(e){this.fileList.splice(e,1),this.$emit("update:fileUrlList",this.fileList)},customUploadFile:function(e){var t=this,i=e.file,a=this.handleBeforeUpload(i);if(a){var n=i,s=new FormData;s.append("file",n),s.append("mediaType",o["cc"]),s.append("fileName",i.name),Object(r["d"])(s).then((function(e){t.onSuccess(e)})).catch((function(){t.loading=!1,t.msgError("上传文件失败")}))}},handleBeforeUpload:function(e){this.loading=!0;var t=!0,i=!0;return t=Object(s["q"])(o["cc"],e,this),i=Object(s["t"])(o["cc"],e,this,l),t&&i||(this.loading=!1),t&&i},onSuccess:function(e){this.showType===o["O"]||this.showType===o["ud"]?this.$emit("update:fileUrl",e.data.url):(this.fileList.push(e.data),this.$emit("update:fileUrlList",this.fileList)),this.loading=!1},removeFile:function(){this.$emit("update:fileUrl",null),this.$emit("update:fileName",null),this.$emit("update:fileSize",null),this.$emit("update:file",{})}}},u=c,d=(i("9f79"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"3edc23be",null);t["default"]=p.exports},fbf0:function(e,t,i){},fbf2:function(e,t,i){"use strict";i("4467")},fc07:function(e,t,i){"use strict";i("4d8f")},fc5a:function(e,t,i){"use strict";i("4af6")},fc95:function(e,t,i){e.exports=i.p+"static/img/企微活码移动4.96eb572e.png"},fcac:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"show-data-wrapper"},[0!=e.myAppList.length?i("div",e._l(e.myAppList,(function(t){return i("AppInfo",{key:t.appid,attrs:{"app-name":t.name,"app-sketch":t.description,"app-logo":t.logoUrl,"show-tip":e.dealShowTip(t)}},[!t.config.url&&!t.applicationEntranceUrl||e.isShielding(t)?e._e():i("el-button",{attrs:{type:"primary"},on:{click:function(){return e.openApp(t)}}},[e._v("进入应用")]),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["wecom:myApplication:update"],expression:"['wecom:myApplication:update']"}],staticClass:"app-config-btn btn-reset",on:{click:function(){return e.handleAppConfigClick(t)}}},[e._v("应用设置")])],1)})),1):i("div",{staticClass:"empty"},[i("div",{staticClass:"empty-title"},[e._v("开启高效且持续的营收增长之路")]),i("div",{staticClass:"empty-des"},[e._v("为企业提供更多应用工具,满足多场景、多行业的需求,提升运营服务能力")]),i("div",[i("el-button",{staticClass:"empty-btn",attrs:{type:"primary"},on:{click:e.handleGotoAppCenter}},[e._v("了解详情")])],1)])])},n=[],r=(i("99af"),i("caad"),i("d81d"),i("b0c0"),i("e9c4"),i("b64b"),i("2532"),i("5ec8")),s=i("d7b1"),o={name:"",components:{AppInfo:r["default"]},props:{},data:function(){return{empty:!1,myAppList:[]}},created:function(){this.getList()},mounted:function(){},methods:{handleAppConfigClick:function(e){this.$router.push({path:"appConfig",query:{appId:e.appid,config:encodeURIComponent(JSON.stringify(e.config))}})},getList:function(){var e=this;Object(s["d"])().then((function(t){t.data.map((function(e){e.config=e.config&&JSON.parse(e.config)})),e.myAppList=t.data}))},openApp:function(e){var t=e.config.url||e.applicationEntranceUrl;if(e.name.includes("工单")){if(!e.config.networkId)return void this.msgWarn("请先联系管理员配置网点ID");t="".concat(t,"/").concat(e.config.networkId)}window.open(t)},handleGotoAppCenter:function(){this.$router.push({path:"appCenter"})},dealShowTip:function(e){if(e.name)return!e.config.url&&!e.applicationEntranceUrl&&!e.sidebarRedirectUrl},isShielding:function(e){var t;return null===e||void 0===e||null===(t=e.name)||void 0===t?void 0:t.includes("工单")}}},l=o,c=(i("3133"),i("2877")),u=Object(c["a"])(l,a,n,!1,null,"9e57b934",null);t["default"]=u.exports},fcc5:function(e,t,i){},fcdb:function(e,t,i){},fd11:function(e,t,i){"use strict";i("8e9f")},fd2a:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-drawer",{staticClass:"advancedScreening-drawer",attrs:{title:"高级筛选",visible:e.Pvisible,size:780,"append-to-body":""},on:{"update:visible":function(t){e.Pvisible=t}}},[i("el-form",{ref:"elForm",staticClass:"drawer-container",attrs:{inline:!0,"label-position":"top"}},[e._l(e.formItemData,(function(t,a){return i("el-form-item",{key:a,attrs:{label:t.label,prop:"name"}},[t.type===e.CUSTOMER_PROPERTY_VALUE["singleText"]?i("el-input",{attrs:{placeholder:t.placeholder,clearable:""},model:{value:t.value,callback:function(i){e.$set(t,"value",i)},expression:"formItem.value"}}):e._e(),t.type===e.CUSTOMER_PROPERTY_VALUE["selectSingle"]?i("el-select",{attrs:{multiple:t.multiple,placeholder:t.placeholder,clearable:""},model:{value:t.value,callback:function(i){e.$set(t,"value",i)},expression:"formItem.value"}},e._l(t.options,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e._e(),t.type===e.CUSTOMER_PROPERTY_VALUE["dateField"]?i("el-date-picker",{attrs:{"picker-options":t.customDateField?e.customPickerOptions:e.pickerOptions(t),"value-format":"addTime"===t.field?"yyyy-MM-dd":"yyyy-MM-dd HH:mm",type:"addTime"===t.field?"daterange":"datetimerange","default-time":"addTime"===t.field?[]:["00:00:00","23:59:59"],format:"addTime"===t.field?"yyyy-MM-dd":"yyyy-MM-dd HH:mm",align:"right","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.value,callback:function(i){e.$set(t,"value",i)},expression:"formItem.value"}}):e._e(),t.type===e.SELECT_USER_TYPE?i("div",[i("div",{staticClass:"tag-input",on:{click:function(t){e.dialogVisibleSelectUser=!0}}},[e.queryUser.length?e._l(e.queryUser,(function(t,a){return i("el-tag",{key:a,attrs:{type:"info"}},[e._v(e._s(t.name))])})):i("span",{staticClass:"tag-place"},[e._v(e._s(t.placeholder))])],2)]):e._e(),t.type===e.SELECT_TAG_TYPE?i("div",[i("div",{staticClass:"tag-input",on:{click:e.showTagDialog}},[e.queryTag.length?e._l(e.queryTag,(function(t,a){return i("el-tag",{key:a,attrs:{type:"info",closable:""},on:{close:function(i){return e.deleteTag(t)}}},[e._v(e._s(t.tagName||t.name))])})):i("span",{staticClass:"tag-place"},[e._v(e._s(t.placeholder))])],2)]):e._e()],1)})),i("div",{staticClass:"drawer-footer"},[i("el-button",{on:{click:function(t){return e.reset()}}},[e._v("重 置")]),i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.search()}}},[e._v("查 询")])],1)],2),i("SelectTag",{attrs:{visible:e.dialogVisibleSelectTag,selected:e.selectedTagList,"is-show-add":!0,type:"search","info-msg":"通过新客进群任务的活码添加员工的客户,将被自动打上选中的标签"},on:{"update:visible":function(t){e.dialogVisibleSelectTag=t},success:e.submitSelectTag}}),i("SelectUser",{attrs:{visible:e.dialogVisibleSelectUser,title:"选择添加人","selected-user-list":e.queryUser},on:{"update:visible":function(t){e.dialogVisibleSelectUser=t},success:e.selectedUser}})],1)},n=[],r=i("5530"),s=i("2909"),o=(i("a4d3"),i("e01a"),i("99af"),i("4de4"),i("c740"),i("caad"),i("d81d"),i("a434"),i("b0c0"),i("d3b7"),i("2532"),i("159b"),i("dd70")),l=i("c958"),c=i("aada"),u=i("2ef0"),d=i("c1df"),p=i.n(d),f=i("cf45"),A=11,h=12,m={birthday:"出生日期",remarkMobiles:"电话",email:"邮箱",address:"地址",description:"描述"},g={"出生日期":"birthday","电话":"phone","邮箱":"email","地址":"address","描述":"desc"},v={components:{SelectUser:l["a"],SelectTag:c["a"]},props:{visible:{type:Boolean,default:!1},searchValue:{type:Array,default:function(){return[]}}},data:function(){return{SELECT_USER_TYPE:A,SELECT_TAG_TYPE:h,CUSTOMER_PROPERTY_VALUE:o["B"],customPickerOptions:{disabledDate:function(){return!1}},formItemData:[{field:"name",baseField:!0,label:"客户名称/备注",value:void 0,placeholder:"请输入客户名称/备注",type:o["B"]["singleText"]},{field:"status",baseField:!0,label:"客户状态",value:void 0,placeholder:"请选择客户状态",type:o["B"]["selectSingle"],options:[{label:o["C"][o["g"]],value:o["g"]},{label:o["C"][o["s"]],value:o["s"]},{label:o["C"][o["Qb"]],value:o["Qb"]},{label:o["C"][o["rd"]],value:o["rd"]},{label:o["C"][o["qd"]],value:o["qd"]}]},{field:"userIds",baseField:!0,label:"所属员工",value:[],type:A,placeholder:"请选择员工"},{field:"addTime",baseField:!0,label:"添加时间",value:void 0,type:o["B"]["dateField"]},{field:"tagIds",baseField:!0,label:"客户标签",value:[],type:h,placeholder:"请选择标签"},{field:"corpFullName",label:"企业名称",value:void 0,placeholder:"请输入企业名称",type:o["B"]["singleText"]},{field:"addWay",multiple:!0,label:"来源",value:void 0,placeholder:"请选择来源",type:o["B"]["selectSingle"],options:Object(f["D"])({key:"value",value:"label"})},{field:"gender",multiple:!0,label:"性别",value:void 0,placeholder:"请选择性别",type:o["B"]["selectSingle"],options:[{label:o["Xc"][o["fb"]],value:o["fb"]},{label:o["Xc"][o["cb"]],value:o["cb"]},{label:o["Xc"][o["bb"]],value:o["bb"]}]}],dialogVisibleSelectUser:!1,dialogVisibleSelectTag:!1,queryUser:[],queryTag:[],selectedTagList:[]}},computed:{Pvisible:{get:function(){return this.visible},set:function(e){this.$emit("update:visible",e)}}},watch:{searchValue:{handler:function(e){this.dealInit(e)},deep:!0},visible:function(e){e&&(this.reset(),this.dealInit(this.searchValue))}},mounted:function(){this.getPropertyList()},methods:{pickerOptions:function(e){return{disabledDate:function(t){return"addTime"===e.field?t.getTime()>Date.now():t.getTime()>new Date(p()(new Date).format("YYYY-MM-DD 23:59:59")).getTime()}}},dealInit:function(e){var t=this;e.forEach((function(e){var i=Object(u["findIndex"])(t.formItemData,(function(t){return t.field===e.field}));-1!==i&&("userIds"===e.field&&(t.queryUser=e.value),"tagIds"===e.field&&(t.queryTag=e.value),t.$set(t.formItemData[i],"value",e.value))}))},getPropertyList:function(){var e=this;this.$store.state.customerProperty.customerProperList&&0!==this.$store.state.customerProperty.customerProperList.length?this.dealShowList(this.$store.state.customerProperty.customerProperList):this.$store.dispatch("GetCustomerProperty").then((function(t){e.dealShowList(e.$store.state.customerProperty.customerProperList)}))},dealShowList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$store.state.customerProperty.customerProperList,t=[o["B"]["singleText"],o["B"]["mulText"],o["B"]["singleRadio"],o["B"]["mulRadio"],o["B"]["selectSingle"],o["B"]["dateField"],o["B"]["sysField"]],i=e.filter((function(e){return e.status&&t.includes(e.type)})).map((function(e){return e.name===m["birthday"]&&e.type===o["B"]["sysField"]?{field:g[e.name],label:e.name,value:void 0,type:o["B"]["dateField"]}:[m["address"],m["description"],m["email"],m["remarkMobiles"]].includes(e.name)&&e.type===o["B"]["sysField"]?{field:g[e.name],label:e.name,value:void 0,placeholder:"请输入"+e.name,type:o["B"]["singleText"]}:[o["B"]["singleRadio"],o["B"]["mulRadio"],o["B"]["selectSingle"]].includes(e.type)?{field:e.id,label:e.name,multiple:!0,value:void 0,placeholder:"请选择"+e.name,type:o["B"]["selectSingle"],options:e.optionList.map((function(e){return{value:e.id,label:e.multipleValue}}))}:e.type===o["B"]["mulText"]||e.type===o["B"]["singleText"]?{field:e.id,label:e.name,value:void 0,placeholder:"请输入"+e.name,type:o["B"]["singleText"]}:e.type===o["B"]["dateField"]?{field:e.id,customDateField:!0,label:e.name,value:void 0,type:o["B"]["dateField"]}:void 0}));this.formItemData=[].concat(Object(s["a"])(this.formItemData),Object(s["a"])(i))},showTagDialog:function(){this.selectedTagList=Object(s["a"])(this.queryTag),this.dialogVisibleSelectTag=!0},deleteTag:function(e){var t=this.queryTag.findIndex((function(t){return t.tagId===e.tagId}));this.queryTag.splice(t,1)},selectedUser:function(e){this.queryUser=e},submitSelectTag:function(e){this.dialogVisibleSelectTag=!1,this.queryTag=e.map((function(e){return{tagId:e.tagId,tagName:e.name||e.tagName}}))},search:function(){this.Pvisible=!1,this.$emit("searchByAdvanced",this.dealBaseField(),this.dealSystemAndSetField())},dealBaseField:function(){var e=this;return this.formItemData.filter((function(e){return e.baseField})).map((function(t){return t.type===A&&(t.value=e.queryUser),t.type===h&&(t.value=e.queryTag),t}))},dealSystemAndSetField:function(){return this.formItemData.filter((function(e){return!e.baseField})).filter((function(e){return e.type===o["B"]["selectSingle"]?void 0!==e.value&&e.value.length:void 0!==e.value&&""!==e.value&&null!==e.value}))},reset:function(){this.queryUser=[],this.queryTag=[],this.formItemData=this.formItemData.map((function(e){return Object(r["a"])(Object(r["a"])({},e),{},{value:void 0})}))}}},b=v,y=(i("d3fc"),i("2877")),_=Object(y["a"])(b,a,n,!1,null,"bf9c268e",null);t["default"]=_.exports},fd89:function(e,t,i){"use strict";i("c91f")},fe0f:function(e,t,i){e.exports=i.p+"static/img/appid-demo-2-2.ecb85ac0.png"},fe9e:function(e,t,i){},fec2:function(e,t,i){
|
||
/*!
|
||
* TOAST UI Color Picker
|
||
* @version 2.2.8
|
||
* @author NHN Cloud FE Development Team <dl_javascript@nhn.com>
|
||
* @license MIT
|
||
*/
|
||
(function(t,i){e.exports=i()})(window,(function(){return function(e){var t={};function i(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=e,i.c=t,i.d=function(e,t,a){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(a,n,function(t){return e[t]}.bind(null,n));return a},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="dist",i(i.s=33)}([function(e,t,i){"use strict";function a(e,t){var i,a,n,r,s=Object.prototype.hasOwnProperty;for(n=1,r=arguments.length;n<r;n+=1)for(a in i=arguments[n],i)s.call(i,a)&&(e[a]=i[a]);return e}e.exports=a},function(e,t,i){"use strict";function a(e){return e instanceof Array}e.exports=a},function(e,t,i){"use strict";var a=i(1),n=i(6),r=i(7);function s(e,t,i){a(e)?n(e,t,i):r(e,t,i)}e.exports=s},function(e,t,i){"use strict";function a(e){return void 0===e}e.exports=a},function(e,t,i){"use strict";var a=i(22),n=i(2),r=i(6),s=i(7),o=i(37),l=0,c={getLength:function(e){var t=0;return s(e,(function(){t+=1})),t},map:function(e,t,i){var a=[];return n(e,(function(){a.push(t.apply(i||null,arguments))})),a},filter:function(e,t,i){var a=[];return r(e,(function(e){t.apply(i||null,arguments)&&a.push(e)})),a},generateId:function(){return l+=1,l},isOldBrowser:function(){return a.msie&&a.version<9}(),sendHostName:function(){o("color-picker","UA-129987462-1")}};e.exports=c},function(e,t,i){"use strict";var a=i(1);function n(e,t,i){var n,r;if(i=i||0,!a(t))return-1;if(Array.prototype.indexOf)return Array.prototype.indexOf.call(t,e,i);for(r=t.length,n=i;i>=0&&n<r;n+=1)if(t[n]===e)return n;return-1}e.exports=n},function(e,t,i){"use strict";function a(e,t,i){var a=0,n=e.length;for(i=i||null;a<n;a+=1)if(!1===t.call(i,e[a],a,e))break}e.exports=a},function(e,t,i){"use strict";function a(e,t,i){var a;for(a in i=i||null,e)if(e.hasOwnProperty(a)&&!1===t.call(i,e[a],a,e))break}e.exports=a},function(e,t,i){"use strict";var a=i(39),n=i(13),r=i(41),s=i(3),o=i(9),l=i(19),c=i(4);function u(e,t){var i=c.generateId();e=e||{},s(t)&&(t=o.appendHTMLElement("div")),a(t,"tui-view-"+i),this.id=i,this.container=t,this.childs=new l((function(e){return e.id})),this.parent=null}u.prototype.addChild=function(e,t){t&&t.call(e,this),e.parent=this,this.childs.add(e)},u.prototype.removeChild=function(e,t){var i=r(e)?this.childs.items[e]:e;t&&t.call(i,this),this.childs.remove(i.id)},u.prototype.render=function(){this.childs.each((function(e){e.render()}))},u.prototype.recursive=function(e,t){n(e)&&(t||e(this),this.childs.each((function(t){t.recursive(e)})))},u.prototype.resize=function(){var e=Array.prototype.slice.call(arguments),t=this.parent;while(t)n(t._onResize)&&t._onResize.apply(t,e),t=t.parent},u.prototype._beforeDestroy=function(){},u.prototype._destroy=function(){this._beforeDestroy(),this.container.innerHTML="",this.id=this.parent=this.childs=this.container=null},u.prototype.destroy=function(e){this.childs&&(this.childs.each((function(e){e.destroy(!0),e._destroy()})),this.childs.clear()),e||this._destroy()},u.prototype.getViewBound=function(){var e=this.container.getBoundingClientRect();return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}},e.exports=u},function(e,t,i){"use strict";var a={appendHTMLElement:function(e,t,i){var a=document.createElement(e);return a.className=i||"",t?t.appendChild(a):document.body.appendChild(a),a}};e.exports=a},function(e,t,i){"use strict";var a=i(0),n=i(20),r=i(11),s=i(21),o=i(1),l=i(13),c=i(2),u=/\s+/g;function d(){this.events=null,this.contexts=null}d.mixin=function(e){a(e.prototype,d.prototype)},d.prototype._getHandlerItem=function(e,t){var i={handler:e};return t&&(i.context=t),i},d.prototype._safeEvent=function(e){var t,i=this.events;return i||(i=this.events={}),e&&(t=i[e],t||(t=[],i[e]=t),i=t),i},d.prototype._safeContext=function(){var e=this.contexts;return e||(e=this.contexts=[]),e},d.prototype._indexOfContext=function(e){var t=this._safeContext(),i=0;while(t[i]){if(e===t[i][0])return i;i+=1}return-1},d.prototype._memorizeContext=function(e){var t,i;n(e)&&(t=this._safeContext(),i=this._indexOfContext(e),i>-1?t[i][1]+=1:t.push([e,1]))},d.prototype._forgetContext=function(e){var t,i;n(e)&&(t=this._safeContext(),i=this._indexOfContext(e),i>-1&&(t[i][1]-=1,t[i][1]<=0&&t.splice(i,1)))},d.prototype._bindEvent=function(e,t,i){var a=this._safeEvent(e);this._memorizeContext(i),a.push(this._getHandlerItem(t,i))},d.prototype.on=function(e,t,i){var a=this;r(e)?(e=e.split(u),c(e,(function(e){a._bindEvent(e,t,i)}))):s(e)&&(i=t,c(e,(function(e,t){a.on(t,e,i)})))},d.prototype.once=function(e,t,i){var a=this;if(s(e))return i=t,void c(e,(function(e,t){a.once(t,e,i)}));function n(){t.apply(i,arguments),a.off(e,n,i)}this.on(e,n,i)},d.prototype._spliceMatches=function(e,t){var i,a=0;if(o(e))for(i=e.length;a<i;a+=1)!0===t(e[a])&&(e.splice(a,1),i-=1,a-=1)},d.prototype._matchHandler=function(e){var t=this;return function(i){var a=e===i.handler;return a&&t._forgetContext(i.context),a}},d.prototype._matchContext=function(e){var t=this;return function(i){var a=e===i.context;return a&&t._forgetContext(i.context),a}},d.prototype._matchHandlerAndContext=function(e,t){var i=this;return function(a){var n=e===a.handler,r=t===a.context,s=n&&r;return s&&i._forgetContext(a.context),s}},d.prototype._offByEventName=function(e,t){var i=this,a=l(t),n=i._matchHandler(t);e=e.split(u),c(e,(function(e){var t=i._safeEvent(e);a?i._spliceMatches(t,n):(c(t,(function(e){i._forgetContext(e.context)})),i.events[e]=[])}))},d.prototype._offByHandler=function(e){var t=this,i=this._matchHandler(e);c(this._safeEvent(),(function(e){t._spliceMatches(e,i)}))},d.prototype._offByObject=function(e,t){var i,a=this;this._indexOfContext(e)<0?c(e,(function(e,t){a.off(t,e)})):r(t)?(i=this._matchContext(e),a._spliceMatches(this._safeEvent(t),i)):l(t)?(i=this._matchHandlerAndContext(t,e),c(this._safeEvent(),(function(e){a._spliceMatches(e,i)}))):(i=this._matchContext(e),c(this._safeEvent(),(function(e){a._spliceMatches(e,i)})))},d.prototype.off=function(e,t){r(e)?this._offByEventName(e,t):arguments.length?l(e)?this._offByHandler(e):s(e)&&this._offByObject(e,t):(this.events={},this.contexts=[])},d.prototype.fire=function(e){this.invoke.apply(this,arguments)},d.prototype.invoke=function(e){var t,i,a,n;if(!this.hasListener(e))return!0;t=this._safeEvent(e),i=Array.prototype.slice.call(arguments,1),a=0;while(t[a]){if(n=t[a],!1===n.handler.apply(n.context,i))return!1;a+=1}return!0},d.prototype.hasListener=function(e){return this.getListenerLength(e)>0},d.prototype.getListenerLength=function(e){var t=this._safeEvent(e);return t.length},e.exports=d},function(e,t,i){"use strict";function a(e){return"string"===typeof e||e instanceof String}e.exports=a},function(e,t,i){"use strict";var a=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,n={leadingZero:function(e,t){var i="",a=0;if((e+"").length>t)return e+"";for(;a<t-1;a+=1)i+="0";return(i+e).slice(-1*t)},isValidRGB:function(e){return a.test(e)},
|
||
// @license RGB <-> HSV conversion utilities based off of http://www.cs.rit.edu/~ncs/color/t_convert.html
|
||
hexToRGB:function(e){var t,i,a;return!!n.isValidRGB(e)&&(e=e.substring(1),t=parseInt(e.substr(0,2),16),i=parseInt(e.substr(2,2),16),a=parseInt(e.substr(4,2),16),[t,i,a])},rgbToHEX:function(e,t,i){var a="#"+n.leadingZero(e.toString(16),2)+n.leadingZero(t.toString(16),2)+n.leadingZero(i.toString(16),2);return!!n.isValidRGB(a)&&a},rgbToHSV:function(e,t,i){var a,n,r,s,o,l;if(e/=255,t/=255,i/=255,a=Math.max(e,t,i),n=Math.min(e,t,i),o=a,l=a-n,s=0===a?0:l/a,a===n)r=0;else{switch(a){case e:r=(t-i)/l+(t<i?6:0);break;case t:r=(i-e)/l+2;break;case i:r=(e-t)/l+4;break}r/=6}return[Math.round(360*r),Math.round(100*s),Math.round(100*o)]},hsvToRGB:function(e,t,i){var a,n,r,s,o,l,c,u;if(e=Math.max(0,Math.min(360,e)),t=Math.max(0,Math.min(100,t)),i=Math.max(0,Math.min(100,i)),t/=100,i/=100,0===t)return a=n=r=i,[Math.round(255*a),Math.round(255*n),Math.round(255*r)];switch(e/=60,s=Math.floor(e),o=e-s,l=i*(1-t),c=i*(1-t*o),u=i*(1-t*(1-o)),s){case 0:a=i,n=u,r=l;break;case 1:a=c,n=i,r=l;break;case 2:a=l,n=i,r=u;break;case 3:a=l,n=c,r=i;break;case 4:a=u,n=l,r=i;break;default:a=i,n=l,r=c;break}return[Math.round(255*a),Math.round(255*n),Math.round(255*r)]}};e.exports=n},function(e,t,i){"use strict";function a(e){return e instanceof Function}e.exports=a},function(e,t,i){"use strict";var a=i(11),n=i(2),r=i(26);function s(e,t,i,r){a(t)?n(t.split(/\s+/g),(function(t){o(e,t,i,r)})):n(t,(function(t,a){o(e,a,t,i)}))}function o(e,t,i,a){function n(t){i.call(a||e,t||window.event)}"addEventListener"in e?e.addEventListener(t,n):"attachEvent"in e&&e.attachEvent("on"+t,n),l(e,t,i,n)}function l(e,t,i,a){var s=r(e,t),o=!1;n(s,(function(e){return e.handler!==i||(o=!0,!1)})),o||s.push({handler:i,wrappedHandler:a})}e.exports=s},function(e,t,i){"use strict";function a(e){e.preventDefault?e.preventDefault():e.returnValue=!1}e.exports=a},function(e,t,i){"use strict";function a(e){return e.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}))}e.exports=a},function(e,t,i){"use strict";var a=i(11),n=i(2),r=i(26);function s(e,t,i){a(t)?n(t.split(/\s+/g),(function(t){o(e,t,i)})):n(t,(function(t,i){o(e,i,t)}))}function o(e,t,i){var a,s=r(e,t);i?(n(s,(function(n,r){return i!==n.handler||(l(e,t,n.wrappedHandler),a=r,!1)})),s.splice(a,1)):(n(s,(function(i){l(e,t,i.wrappedHandler)})),s.splice(0,s.length))}function l(e,t,i){"removeEventListener"in e?e.removeEventListener(t,i):"detachEvent"in e&&e.detachEvent("on"+t,i)}e.exports=s},function(e,t,i){"use strict";var a=i(50);function n(e,t){var i=a(t.prototype);i.constructor=e,e.prototype=i}e.exports=n},function(e,t,i){"use strict";var a=i(6),n=i(7),r=i(0),s=i(1),o=i(20),l=i(13),c=i(21),u=i(4),d=Array.prototype.slice;function p(e){this.items={},this.length=0,l(e)&&(this.getItemID=e)}p.and=function(e){var t;return e=d.call(arguments),t=e.length,function(i){for(var a=0;a<t;a+=1)if(!e[a].call(null,i))return!1;return!0}},p.or=function(e){var t;return e=d.call(arguments),t=e.length,function(i){for(var a=1,n=e[0].call(null,i);a<t;a+=1)n=n||e[a].call(null,i);return n}},p.merge=function(e){var t={},i=new p(e.getItemID);return a(arguments,(function(e){r(t,e.items)})),i.items=t,i.length=u.getLength(i.items),i},p.prototype.getItemID=function(e){return e._id+""},p.prototype.add=function(e){var t,i;arguments.length>1?a(d.call(arguments),(function(e){this.add(e)}),this):(t=this.getItemID(e),i=this.items,i[t]||(this.length+=1),i[t]=e)},p.prototype.remove=function(e){var t,i,a=[];return this.length?arguments.length>1?(a=u.map(d.call(arguments),(function(e){return this.remove(e)}),this),a):(t=this.items,c(e)&&(e=this.getItemID(e)),t[e]?(this.length-=1,i=t[e],delete t[e],i):a):a},p.prototype.clear=function(){this.items={},this.length=0},p.prototype.has=function(e){var t,i;return!!this.length&&(t=l(e),i=!1,t?this.each((function(t){return!0!==e(t)||(i=!0,!1)})):(e=c(e)?this.getItemID(e):e,i=o(this.items[e])),i)},p.prototype.doWhenHas=function(e,t,i){var a=this.items[e];o(a)&&t.call(i||this,a)},p.prototype.find=function(e){var t=new p;return this.hasOwnProperty("getItemID")&&(t.getItemID=this.getItemID),this.each((function(i){!0===e(i)&&t.add(i)})),t},p.prototype.groupBy=function(e,t){var i,n,r={},o=l(e),c=this.getItemID;if(s(e)){if(a(e,(function(e){r[e+""]=new p(c)})),!t)return r;e=t,o=!0}return this.each((function(t){o?n=e(t):(n=t[e],l(n)&&(n=n.apply(t))),i=r[n],i||(i=r[n]=new p(c)),i.add(t)})),r},p.prototype.single=function(){var e;return this.each((function(t){return e=t,!1}),this),e},p.prototype.sort=function(e){var t=[];return this.each((function(e){t.push(e)})),l(e)&&(t=t.sort(e)),t},p.prototype.each=function(e,t){n(this.items,e,t||this)},p.prototype.toArray=function(){return this.length?u.map(this.items,(function(e){return e})):[]},e.exports=p},function(e,t,i){"use strict";var a=i(3),n=i(36);function r(e){return!a(e)&&!n(e)}e.exports=r},function(e,t,i){"use strict";function a(e){return e===Object(e)}e.exports=a},function(e,t,i){"use strict";var a={chrome:!1,firefox:!1,safari:!1,msie:!1,edge:!1,others:!1,version:0};function n(){var e,t,i=window.navigator,n=i.appName.replace(/\s/g,"_"),r=i.userAgent,s=/MSIE\s([0-9]+[.0-9]*)/,o=/Trident.*rv:11\./,l=/Edge\/(\d+)\./,c={firefox:/Firefox\/(\d+)\./,chrome:/Chrome\/(\d+)\./,safari:/Version\/([\d.]+).*Safari\/(\d+)/},u={Microsoft_Internet_Explorer:function(){var e=r.match(s);e?(a.msie=!0,a.version=parseFloat(e[1])):a.others=!0},Netscape:function(){var i=!1;if(o.exec(r))a.msie=!0,a.version=11,i=!0;else if(l.exec(r))a.edge=!0,a.version=r.match(l)[1],i=!0;else for(e in c)if(c.hasOwnProperty(e)&&(t=r.match(c[e]),t&&t.length>1)){a[e]=i=!0,a.version=parseFloat(t[1]||0);break}i||(a.others=!0)}},d=u[n];d&&u[n]()}"undefined"!==typeof window&&window.navigator&&n(),e.exports=a},function(e,t,i){"use strict";var a=i(3);function n(e){return e&&e.className?a(e.className.baseVal)?e.className:e.className.baseVal:""}e.exports=n},function(e,t,i){"use strict";(function(t){var a=i(10),n=i(42),r=i(44),s=i(47),o=i(28),l=i(17),c=i(14),u=i(15),d=i(0);function p(e,t){c(t,"mousedown",this._onMouseDown,this),this.options=d({distance:10},e),this.container=t,this._isMoved=!1,this._distance=0,this._dragStartFired=!1,this._dragStartEventData=null}p.prototype.destroy=function(){l(this.container,"mousedown",this._onMouseDown),this.options=this.container=this._isMoved=this._distance=this._dragStartFired=this._dragStartEventData=null},p.prototype._toggleDragEvent=function(e){var i=this.container;e?(n(i),c(window,"dragstart",u),c(t.document,{mousemove:this._onMouseMove,mouseup:this._onMouseUp},this)):(r(i),l(window,"dragstart",u),l(t.document,{mousemove:this._onMouseMove,mouseup:this._onMouseUp}))},p.prototype._getEventData=function(e){return{target:o(e),originEvent:e}},p.prototype._onMouseDown=function(e){0===s(e)&&(this._distance=0,this._dragStartFired=!1,this._dragStartEventData=this._getEventData(e),this._toggleDragEvent(!0))},p.prototype._onMouseMove=function(e){var t=this.options.distance;u(e),this._isMoved=!0,this._distance<t?this._distance+=1:this._dragStartFired||(this._dragStartFired=!0,this.invoke("dragStart",this._dragStartEventData))?this.fire("drag",this._getEventData(e)):this._toggleDragEvent(!1)},p.prototype._onMouseUp=function(e){if(this._toggleDragEvent(!1),this._isMoved)return this._isMoved=!1,void this.fire("dragEnd",this._getEventData(e));this.fire("click",this._getEventData(e))},a.mixin(p),e.exports=p}).call(this,i(25))},function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(a){"object"===typeof window&&(i=window)}e.exports=i},function(e,t,i){"use strict";var a="_feEventKey";function n(e,t){var i,n=e[a];return n||(n=e[a]={}),i=n[t],i||(i=n[t]=[]),i}e.exports=n},function(e,t,i){"use strict";function a(e){var t,i,a=document.documentElement.style;for(t=0,i=e.length;t<i;t+=1)if(e[t]in a)return e[t];return!1}e.exports=a},function(e,t,i){"use strict";function a(e){return e.target||e.srcElement}e.exports=a},function(e,t,i){"use strict";var a=i(10),n=i(28),r=i(17),s=i(14),o=i(30),l=i(0),c=i(18),u=i(9),d=i(12),p=i(8),f=i(51);function A(e,t){this.options=l({cssPrefix:"tui-colorpicker-",preset:["#181818","#282828","#383838","#585858","#B8B8B8","#D8D8D8","#E8E8E8","#F8F8F8","#AB4642","#DC9656","#F7CA88","#A1B56C","#86C1B9","#7CAFC2","#BA8BAF","#A16946"],detailTxt:"Detail"},e),t=u.appendHTMLElement("div",t,this.options.cssPrefix+"palette-container"),p.call(this,e,t)}c(A,p),A.prototype._onClick=function(e){var t=this.options,i=n(e),a={};if(o(i,t.cssPrefix+"palette-button"))return a.color=i.value,void this.fire("_selectColor",a);o(i,t.cssPrefix+"palette-toggle-slider")&&this.fire("_toggleSlider")},A.prototype._onChange=function(e){var t=this.options,i=n(e),a={};o(i,t.cssPrefix+"palette-hex")&&(a.color=i.value,this.fire("_selectColor",a))},A.prototype._beforeDestroy=function(){this._toggleEvent(!1)},A.prototype._toggleEvent=function(e){var t,i=this.options,a=this.container,n=e?s:r;n(a,"click",this._onClick,this),t=a.querySelector("."+i.cssPrefix+"palette-hex",a),t&&n(t,"change",this._onChange,this)},A.prototype.render=function(e){var t=this.options,i="";this._toggleEvent(!1),i=f({cssPrefix:t.cssPrefix,preset:t.preset,detailTxt:t.detailTxt,color:e,isValidRGB:d.isValidRGB,getItemClass:function(e){return e?"":" "+t.cssPrefix+"color-transparent"},isSelected:function(i){return i===e?" "+t.cssPrefix+"selected":""}}),this.container.innerHTML=i,this._toggleEvent(!0)},a.mixin(A),e.exports=A},function(e,t,i){"use strict";var a=i(5),n=i(23);function r(e,t){var i;return e.classList?e.classList.contains(t):(i=n(e).split(/\s+/),a(t,i)>-1)}e.exports=r},function(e,t,i){"use strict";var a=i(10),n=i(53),r=i(54),s=i(30),o=i(0),l=i(18),c=i(9),u=i(32),d=i(12),p=i(8),f=i(24),A=i(57),h=-7,m=112,g=-3,v=115,b=359.99;function y(e,t){t=c.appendHTMLElement("div",t,e.cssPrefix+"slider-container"),t.style.display="none",p.call(this,e,t),this.options=o({color:"#f8f8f8",cssPrefix:"tui-colorpicker-"},e),this._dragDataCache={},this.sliderHandleElement=null,this.huebarHandleElement=null,this.baseColorElement=null,this.drag=new f({distance:0},t),this.colorSliderPosLimitRange=[h,m],this.huebarPosLimitRange=[g,v],this.drag.on({dragStart:this._onDragStart,drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this)}l(y,p),y.prototype._beforeDestroy=function(){this.drag.off(),this.drag=this.options=this._dragDataCache=this.sliderHandleElement=this.huebarHandleElement=this.baseColorElement=null},y.prototype.toggle=function(e){this.container.style.display=e?"block":"none"},y.prototype.isVisible=function(){return"block"===this.container.style.display},y.prototype.render=function(e){var t,i,a=this.container,n=this.options,r=A.layout;d.isValidRGB(e)&&(r=r.replace(/{{slider}}/,A.slider),r=r.replace(/{{huebar}}/,A.huebar),r=r.replace(/{{cssPrefix}}/g,n.cssPrefix),r=r.replace(/{{id}}/g,n.id),this.container.innerHTML=r,this.sliderSvgElement=a.querySelector("."+n.cssPrefix+"svg-slider"),this.huebarSvgElement=a.querySelector("."+n.cssPrefix+"svg-huebar"),this.sliderHandleElement=a.querySelector("."+n.cssPrefix+"slider-handle"),this.huebarHandleElement=a.querySelector("."+n.cssPrefix+"huebar-handle"),this.baseColorElement=a.querySelector("."+n.cssPrefix+"slider-basecolor"),t=d.hexToRGB(e),i=d.rgbToHSV.apply(null,t),this.moveHue(i[0],!0),this.moveSaturationAndValue(i[1],i[2],!0))},y.prototype._setColorSliderPosMax=function(){var e=this.sliderSvgElement.getClientRects()[0];e&&(this.colorSliderPosLimitRange[1]=e.height-10)},y.prototype._moveColorSliderHandle=function(e,t,i){var a,n=this.sliderHandleElement;t=Math.max(this.colorSliderPosLimitRange[0],t),t=Math.min(this.colorSliderPosLimitRange[1],t),e=Math.max(this.colorSliderPosLimitRange[0],e),e=Math.min(this.colorSliderPosLimitRange[1],e),u.setTranslateXY(n,e,t),a=t>50?"white":"black",u.setStrokeColor(n,a),i||this.fire("_selectColor",{color:d.rgbToHEX.apply(null,this.getRGB())})},y.prototype.moveSaturationAndValue=function(e,t,i){var a,n,r,s;e=e||0,t=t||0,a=Math.abs(this.colorSliderPosLimitRange[0]),n=this.colorSliderPosLimitRange[1],r=e*n/100-a,s=n-t*n/100-a,this._moveColorSliderHandle(r,s,i)},y.prototype._moveColorSliderByPosition=function(e,t){var i=this.colorSliderPosLimitRange[0];this._moveColorSliderHandle(e+i,t+i)},y.prototype.getSaturationAndValue=function(){var e,t,i=Math.abs(this.colorSliderPosLimitRange[0]),a=i+this.colorSliderPosLimitRange[1],n=u.getTranslateXY(this.sliderHandleElement);return e=(n[1]+i)/a*100,t=100-(n[0]+i)/a*100,[e,t]},y.prototype._setHueBarPosMax=function(){var e=this.huebarSvgElement.getClientRects()[0];e&&(this.huebarPosLimitRange[1]=e.height-7)},y.prototype._moveHueHandle=function(e,t){var i,a,n=this.huebarHandleElement,r=this.baseColorElement;e=Math.max(this.huebarPosLimitRange[0],e),e=Math.min(this.huebarPosLimitRange[1],e),u.setTranslateY(n,e),i=d.hsvToRGB(this.getHue(),100,100),a=d.rgbToHEX.apply(null,i),u.setGradientColorStop(r,a),t||this.fire("_selectColor",{color:d.rgbToHEX.apply(null,this.getRGB())})},y.prototype.moveHue=function(e,t){var i,a,n=0;i=Math.abs(this.huebarPosLimitRange[0]),a=i+this.huebarPosLimitRange[1],e=e||0,n=a*e/b-i,this._moveHueHandle(n,t)},y.prototype._moveHueByPosition=function(e){var t=this.huebarPosLimitRange[0];this._moveHueHandle(e+t)},y.prototype.getHue=function(){var e,t,i=this.huebarHandleElement,a=u.getTranslateXY(i);return e=Math.abs(this.huebarPosLimitRange[0]),t=e+this.huebarPosLimitRange[1],(a[0]+e)*b/t},y.prototype.getHSV=function(){var e=this.getSaturationAndValue(),t=this.getHue();return[t].concat(e)},y.prototype.getRGB=function(){return d.hsvToRGB.apply(null,this.getHSV())},y.prototype._prepareColorSliderForMouseEvent=function(e){var t,i=this.options,a=r(e.target,"."+i.cssPrefix+"slider-part");return t=this._dragDataCache={isColorSlider:s(a,i.cssPrefix+"slider-left"),parentElement:a},t},y.prototype._onClick=function(e){var t=this._prepareColorSliderForMouseEvent(e),i=n(e.originEvent,t.parentElement);t.isColorSlider?this._moveColorSliderByPosition(i[0],i[1]):this._moveHueByPosition(i[1]),this._dragDataCache=null},y.prototype._onDragStart=function(e){this._setColorSliderPosMax(),this._setHueBarPosMax(),this._prepareColorSliderForMouseEvent(e)},y.prototype._onDrag=function(e){var t=this._dragDataCache,i=n(e.originEvent,t.parentElement);t.isColorSlider?this._moveColorSliderByPosition(i[0],i[1]):this._moveHueByPosition(i[1])},y.prototype._onDragEnd=function(){this._dragDataCache=null},a.mixin(y),e.exports=y},function(e,t,i){"use strict";var a=i(4).isOldBrowser,n=/[\.\-0-9]+/g,r=-6,s={getTranslateXY:function(e){var t;return a?(t=e.style,[parseFloat(t.top),parseFloat(t.left)]):(t=e.getAttribute("transform"),t?(t=t.match(n),[parseFloat(t[1]),parseFloat(t[0])]):[0,0])},setTranslateXY:function(e,t,i){a?(e.style.left=t+"px",e.style.top=i+"px"):e.setAttribute("transform","translate("+t+","+i+")")},setTranslateY:function(e,t){a?e.style.top=t+"px":e.setAttribute("transform","translate("+r+","+t+")")},setStrokeColor:function(e,t){a?e.strokecolor=t:e.setAttribute("stroke",t)},setGradientColorStop:function(e,t){a?e.color=t:e.setAttribute("stop-color",t)}};e.exports=s},function(e,t,i){i(34),e.exports=i(35)},function(e,t,i){},function(e,t,i){"use strict";var a=i(19),n=i(8),r=i(24),s=i(48),o=i(29),l=i(31),c=i(12),u=i(32),d={Collection:a,View:n,Drag:r,create:s,Palette:o,Slider:l,colorutil:c,svgvml:u};e.exports=d},function(e,t,i){"use strict";function a(e){return null===e}e.exports=a},function(e,t,i){"use strict";var a=i(3),n=i(38),r=6048e5;function s(e){var t=(new Date).getTime();return t-e>r}function o(e,t){var i="https://www.google-analytics.com/collect",r=location.hostname,o="event",l="use",c="TOAST UI "+e+" for "+r+": Statistics",u=window.localStorage.getItem(c);(a(window.tui)||!1!==window.tui.usageStatistics)&&(u&&!s(u)||(window.localStorage.setItem(c,(new Date).getTime()),setTimeout((function(){"interactive"!==document.readyState&&"complete"!==document.readyState||n(i,{v:1,t:o,tid:t,cid:r,dp:r,dh:e,el:e,ec:l})}),1e3)))}e.exports=o},function(e,t,i){"use strict";var a=i(7);function n(e,t){var i=document.createElement("img"),n="";return a(t,(function(e,t){n+="&"+t+"="+e})),n=n.substring(1),i.src=e+"?"+n,i.style.display="none",document.body.appendChild(i),document.body.removeChild(i),i}e.exports=n},function(e,t,i){"use strict";var a=i(2),n=i(5),r=i(23),s=i(40);function o(e){var t,i=Array.prototype.slice.call(arguments,1),o=e.classList,l=[];o?a(i,(function(t){e.classList.add(t)})):(t=r(e),t&&(i=[].concat(t.split(/\s+/),i)),a(i,(function(e){n(e,l)<0&&l.push(e)})),s(e,l))}e.exports=o},function(e,t,i){"use strict";var a=i(1),n=i(3);function r(e,t){t=a(t)?t.join(" "):t,t=t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),n(e.className.baseVal)?e.className=t:e.className.baseVal=t}e.exports=r},function(e,t,i){"use strict";function a(e){return"number"===typeof e||e instanceof Number}e.exports=a},function(e,t,i){"use strict";var a=i(14),n=i(15),r=i(43),s=i(27),o="onselectstart"in document,l="prevUserSelect",c=s(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);function u(e){e||(e=document),o?a(e,"selectstart",n):(e=e===document?document.documentElement:e,r(e,l,e.style[c]),e.style[c]="none")}e.exports=u},function(e,t,i){"use strict";var a=i(16);function n(e,t,i){e.dataset?e.dataset[t]=i:e.setAttribute("data-"+a(t),i)}e.exports=n},function(e,t,i){"use strict";var a=i(17),n=i(15),r=i(45),s=i(46),o=i(27),l="onselectstart"in document,c="prevUserSelect",u=o(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);function d(e){e||(e=document),l?a(e,"selectstart",n):(e=e===document?document.documentElement:e,e.style[u]=r(e,c)||"auto",s(e,c))}e.exports=d},function(e,t,i){"use strict";var a=i(16);function n(e,t){return e.dataset?e.dataset[t]:e.getAttribute("data-"+a(t))}e.exports=n},function(e,t,i){"use strict";var a=i(16);function n(e,t){e.dataset?delete e.dataset[t]:e.removeAttribute("data-"+a(t))}e.exports=n},function(e,t,i){"use strict";var a=i(22),n=i(5),r=["0","1","3","5","7"],s=["2","6"],o=["4"];function l(e){return a.msie&&a.version<=8?c(e):e.button}function c(e){var t=String(e.button);return n(t,r)>-1?0:n(t,s)>-1?2:n(t,o)>-1?1:null}e.exports=l},function(e,t,i){"use strict";var a=i(10),n=i(0),r=i(4),s=i(12),o=i(49),l=i(29),c=i(31),u=0;function d(){return u+=1,u}function p(e){var t;if(!(this instanceof p))return new p(e);if(e=this.options=n({container:null,color:"#f8f8f8",preset:["#181818","#282828","#383838","#585858","#b8b8b8","#d8d8d8","#e8e8e8","#f8f8f8","#ab4642","#dc9656","#f7ca88","#a1b56c","#86c1b9","#7cafc2","#ba8baf","#a16946"],cssPrefix:"tui-colorpicker-",detailTxt:"Detail",id:d(),usageStatistics:!0},e),!e.container)throw new Error("ColorPicker(): need container option.");t=this.layout=new o(e,e.container),this.palette=new l(e,t.container),this.palette.on({_selectColor:this._onSelectColorInPalette,_toggleSlider:this._onToggleSlider},this),this.slider=new c(e,t.container),this.slider.on("_selectColor",this._onSelectColorInSlider,this),t.addChild(this.palette),t.addChild(this.slider),this.render(e.color),e.usageStatistics&&r.sendHostName()}p.prototype._onSelectColorInPalette=function(e){var t=e.color,i=this.options;s.isValidRGB(t)||""===t?(this.fire("selectColor",{color:t,origin:"palette"}),i.color!==t&&(i.color=t,this.render(t))):this.render()},p.prototype._onToggleSlider=function(){this.slider.toggle(!this.slider.isVisible())},p.prototype._onSelectColorInSlider=function(e){var t=e.color,i=this.options;this.fire("selectColor",{color:t,origin:"slider"}),i.color!==t&&(i.color=t,this.palette.render(t))},p.prototype.setColor=function(e){if(!s.isValidRGB(e))throw new Error("ColorPicker#setColor(): need valid hex string color value");this.options.color=e,this.render(e)},p.prototype.getColor=function(){return this.options.color},p.prototype.toggle=function(e){this.layout.container.style.display=e?"block":"none"},p.prototype.render=function(e){this.layout.render(e||this.options.color)},p.prototype.destroy=function(){this.layout.destroy(),this.options.container.innerHTML="",this.layout=this.slider=this.palette=this.options=null},a.mixin(p),e.exports=p},function(e,t,i){"use strict";var a=i(0),n=i(18),r=i(9),s=i(8);function o(e,t){this.options=a({cssPrefix:"tui-colorpicker-"},e),t=r.appendHTMLElement("div",t,this.options.cssPrefix+"container"),s.call(this,e,t),this.render()}n(o,s),o.prototype.render=function(e){this.recursive((function(t){t.render(e)}),!0)},e.exports=o},function(e,t,i){"use strict";function a(e){function t(){}return t.prototype=e,new t}e.exports=a},function(e,t,i){"use strict";var a=i(52);e.exports=function(e){var t=['<li><input class="{{cssPrefix}}palette-button{{isSelected @this}}{{getItemClass @this}}" type="button"',"{{if isValidRGB @this}}",' style="background-color:{{@this}};color:{{@this}}"',"{{/if}}",' title="{{@this}}" value="{{@this}}" /></li>'].join(""),i=['<ul class="{{cssPrefix}}clearfix">',"{{each preset}}",t,"{{/each}}","</ul>",'<div class="{{cssPrefix}}clearfix" style="overflow:hidden">','<input type="button" class="{{cssPrefix}}palette-toggle-slider" value="{{detailTxt}}" />','<input type="text" class="{{cssPrefix}}palette-hex" value="{{color}}" maxlength="7" />','<span class="{{cssPrefix}}palette-preview" style="background-color:{{color}};color:{{color}}">{{color}}</span>',"</div>"].join("\n");return a(i,e)}},function(e,t,i){"use strict";var a=i(5),n=i(2),r=i(1),s=i(11),o=i(0),l=/{{\s?|\s?}}/g,c=/^[a-zA-Z0-9_@]+\[[a-zA-Z0-9_@"']+\]$/,u=/\[\s?|\s?\]/,d=/^[a-zA-Z_]+\.[a-zA-Z_]+$/,p=/\./,f=/^["']\w+["']$/,A=/"|'/g,h=/^-?\d+\.?\d*$/,m=2,g={if:w,each:C,with:x},v=3==="a".split(/a/).length,b=function(){return v?function(e,t){return e.split(t)}:function(e,t){var i,a,n=[],r=0;t.global||(t=new RegExp(t,"g")),i=t.exec(e);while(null!==i)a=i.index,n.push(e.slice(r,a)),r=a+i[0].length,i=t.exec(e);return n.push(e.slice(r)),n}}();function y(e,t){var i,a=t[e];return"true"===e?a=!0:"false"===e?a=!1:f.test(e)?a=e.replace(A,""):c.test(e)?(i=e.split(u),a=y(i[0],t)[y(i[1],t)]):d.test(e)?(i=e.split(p),a=y(i[0],t)[i[1]]):h.test(e)&&(a=parseFloat(e)),a}function _(e,t){var i=[e],a=[],r=0,s=0;return n(t,(function(e,n){0===e.indexOf("if")?r+=1:"/if"===e?r-=1:r||0!==e.indexOf("elseif")&&"else"!==e||(i.push("else"===e?["true"]:e.split(" ").slice(1)),a.push(t.slice(s,n)),s=n+1)})),a.push(t.slice(s)),{exps:i,sourcesInsideIf:a}}function w(e,t,i){var a=_(e,t),r=!1,s="";return n(a.exps,(function(e,t){return r=S(e,i),r&&(s=E(a.sourcesInsideIf[t],i)),!r})),s}function C(e,t,i){var a=S(e,i),s=r(a)?"@index":"@key",l={},c="";return n(a,(function(e,a){l[s]=a,l["@this"]=e,o(i,l),c+=E(t.slice(),i)})),c}function x(e,t,i){var n=a("as",e),r=e[n+1],s=S(e.slice(0,n),i),l={};return l[r]=s,E(t,o(i,l))||""}function k(e,t,i){var a=e.splice(t+1,i-t);return a.pop(),a}function T(e,t,i){var a,n=g[e],r=1,o=0,l=o+m,c=t[l];while(r&&s(c))0===c.indexOf(e)?r+=1:0===c.indexOf("/"+e)&&(r-=1,a=l),l+=m,c=t[l];if(r)throw Error(e+" needs {{/"+e+"}} expression.");return t[o]=n(t[o].split(" ").slice(1),k(t,o,a),i),t}function S(e,t){var i=y(e[0],t);return i instanceof Function?I(i,e.slice(1),t):i}function I(e,t,i){var a=[];return n(t,(function(e){a.push(y(e,i))})),e.apply(null,a)}function E(e,t){var i,a,n,r=1,o=e[r];while(s(o))i=o.split(" "),a=i[0],g[a]?(n=T(a,e.splice(r,e.length-r),t),e=e.concat(n)):e[r]=S(i,t),r+=m,o=e[r];return e.join("")}function O(e,t){return E(b(e,l),t)}e.exports=O},function(e,t,i){"use strict";var a=i(1);function n(e,t){var i,n=a(e),r=n?e[0]:e.clientX,s=n?e[1]:e.clientY;return t?(i=t.getBoundingClientRect(),[r-i.left-t.clientLeft,s-i.top-t.clientTop]):[r,s]}e.exports=n},function(e,t,i){"use strict";var a=i(55);function n(e,t){var i=e.parentNode;if(a(e,t))return e;while(i&&i!==document){if(a(i,t))return i;i=i.parentNode}return null}e.exports=n},function(e,t,i){"use strict";var a=i(5),n=i(56),r=Element.prototype,s=r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||function(e){var t=this.document||this.ownerDocument;return a(this,n(t.querySelectorAll(e)))>-1};function o(e,t){return s.call(e,t)}e.exports=o},function(e,t,i){"use strict";var a=i(6);function n(e){var t;try{t=Array.prototype.slice.call(e)}catch(i){t=[],a(e,(function(e){t.push(e)}))}return t}e.exports=n},function(e,t,i){"use strict";(function(t){var a=i(4).isOldBrowser,n=['<div class="{{cssPrefix}}slider-left {{cssPrefix}}slider-part">{{slider}}</div>','<div class="{{cssPrefix}}slider-right {{cssPrefix}}slider-part">{{huebar}}</div>'].join("\n"),r=['<svg class="{{cssPrefix}}svg {{cssPrefix}}svg-slider">',"<defs>",'<linearGradient id="{{cssPrefix}}svg-fill-color-{{id}}" x1="0%" y1="0%" x2="100%" y2="0%">','<stop offset="0%" stop-color="rgb(255,255,255)" />','<stop class="{{cssPrefix}}slider-basecolor" offset="100%" stop-color="rgb(255,0,0)" />',"</linearGradient>",'<linearGradient id="{{cssPrefix}}svn-fill-black-{{id}}" x1="0%" y1="0%" x2="0%" y2="100%">','<stop offset="0%" style="stop-color:rgb(0,0,0);stop-opacity:0" />','<stop offset="100%" style="stop-color:rgb(0,0,0);stop-opacity:1" />',"</linearGradient>","</defs>",'<rect width="100%" height="100%" fill="url(#{{cssPrefix}}svg-fill-color-{{id}})"></rect>','<rect width="100%" height="100%" fill="url(#{{cssPrefix}}svn-fill-black-{{id}})"></rect>','<path transform="translate(0,0)" class="{{cssPrefix}}slider-handle" d="M0 7.5 L15 7.5 M7.5 15 L7.5 0 M2 7 a5.5 5.5 0 1 1 0 1 Z" stroke="black" stroke-width="0.75" fill="none" />',"</svg>"].join("\n"),s=['<div class="{{cssPrefix}}vml-slider">','<v:rect strokecolor="none" class="{{cssPrefix}}vml {{cssPrefix}}vml-slider-bg">','<v:fill class="{{cssPrefix}}vml {{cssPrefix}}slider-basecolor" type="gradient" method="none" color="#ff0000" color2="#fff" angle="90" />',"</v:rect>",'<v:rect strokecolor="#ccc" class="{{cssPrefix}}vml {{cssPrefix}}vml-slider-bg">','<v:fill type="gradient" method="none" color="black" color2="white" o:opacity2="0%" class="{{cssPrefix}}vml" />',"</v:rect>",'<v:shape class="{{cssPrefix}}vml {{cssPrefix}}slider-handle" coordsize="1 1" style="width:1px;height:1px;"path="m 0,7 l 14,7 m 7,14 l 7,0 ar 12,12 2,2 z" filled="false" stroked="true" />',"</div>"].join("\n"),o=['<svg class="{{cssPrefix}}svg {{cssPrefix}}svg-huebar">',"<defs>",'<linearGradient id="g-{{id}}" x1="0%" y1="0%" x2="0%" y2="100%">','<stop offset="0%" stop-color="rgb(255,0,0)" />','<stop offset="16.666%" stop-color="rgb(255,255,0)" />','<stop offset="33.333%" stop-color="rgb(0,255,0)" />','<stop offset="50%" stop-color="rgb(0,255,255)" />','<stop offset="66.666%" stop-color="rgb(0,0,255)" />','<stop offset="83.333%" stop-color="rgb(255,0,255)" />','<stop offset="100%" stop-color="rgb(255,0,0)" />',"</linearGradient>","</defs>",'<rect width="18px" height="100%" fill="url(#g-{{id}})"></rect>','<path transform="translate(-6,-3)" class="{{cssPrefix}}huebar-handle" d="M0 0 L4 4 L0 8 L0 0 Z" fill="black" stroke="none" />',"</svg>"].join("\n"),l=['<div class="{{cssPrefix}}vml-huebar">','<v:rect strokecolor="#ccc" class="{{cssPrefix}}vml {{cssPrefix}}vml-huebar-bg">','<v:fill type="gradient" method="none" colors="0% rgb(255,0,0), 16.666% rgb(255,255,0), 33.333% rgb(0,255,0), 50% rgb(0,255,255), 66.666% rgb(0,0,255), 83.333% rgb(255,0,255), 100% rgb(255,0,0)" angle="180" class="{{cssPrefix}}vml" />',"</v:rect>",'<v:shape class="{{cssPrefix}}vml {{cssPrefix}}huebar-handle" coordsize="1 1" style="width:1px;height:1px;position:absolute;z-index:1;right:22px;top:-3px;"path="m 0,0 l 4,4 l 0,8 l 0,0 z" filled="true" fillcolor="black" stroked="false" />',"</div>"].join("\n");a&&t.document.namespaces.add("v","urn:schemas-microsoft-com:vml"),e.exports={layout:n,slider:a?s:r,huebar:a?l:o}}).call(this,i(25))}])}))},fecf:function(e,t,i){},fee3:function(e,t,i){"use strict";i("7710")},ff43:function(e,t,i){"use strict";i("95ad")},ff51:function(e,t,i){},ffbc:function(e,t,i){},ffc5:function(e,t,i){"use strict";i("c738")}}]); |